@arcgis/coding-components 4.32.0-next.48 → 4.32.0-next.49

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 (63) hide show
  1. package/dist/arcgis-coding-components/{3JXOPQZM.js → 3IXFUYJ2.js} +2 -2
  2. package/dist/arcgis-coding-components/{ORN2TVYJ.js → 4GUUYMHH.js} +2 -2
  3. package/dist/arcgis-coding-components/{Z56ZYJZI.js → 4M546UGR.js} +2 -2
  4. package/dist/arcgis-coding-components/{UP7W27RI.js → 4QLNIEDA.js} +2 -2
  5. package/dist/arcgis-coding-components/{EI3REWX2.js → 5APHGQKN.js} +3 -3
  6. package/dist/arcgis-coding-components/{MIWD4EOI.js → 5IXW6YTB.js} +2 -2
  7. package/dist/arcgis-coding-components/{O6B7H7WU.js → 67DA24UQ.js} +1 -1
  8. package/dist/arcgis-coding-components/{CQUZJELK.js → 6Y3ZHT7H.js} +2 -2
  9. package/dist/arcgis-coding-components/{KTUG2KJX.js → A2REL5YW.js} +1 -1
  10. package/dist/arcgis-coding-components/{JORELBOL.js → AFNBVO3P.js} +2 -2
  11. package/dist/arcgis-coding-components/{JYVMJW22.js → BFG65HPE.js} +2 -2
  12. package/dist/arcgis-coding-components/{TX6OIWL7.js → BYGD5KVT.js} +2 -2
  13. package/dist/arcgis-coding-components/{5DNLQ4VX.js → CO5TWG76.js} +2 -2
  14. package/dist/arcgis-coding-components/{T2M4H5TA.js → DSHEQBWH.js} +2 -2
  15. package/dist/arcgis-coding-components/{EQQVZES4.js → DYOJW6IY.js} +2 -2
  16. package/dist/arcgis-coding-components/{Q5HJXYFH.js → DYPBMCTS.js} +2 -2
  17. package/dist/arcgis-coding-components/{KRPEUABG.js → EYRDRL7M.js} +2 -2
  18. package/dist/arcgis-coding-components/{NODVYDEK.js → HZYQVSPU.js} +2 -2
  19. package/dist/arcgis-coding-components/{FU27HF6W.js → IFFJDIUC.js} +2 -2
  20. package/dist/arcgis-coding-components/{BRXQVZHV.js → IX7Z724M.js} +2 -2
  21. package/dist/arcgis-coding-components/{HYB3XVFC.js → IYKMJQAH.js} +2 -2
  22. package/dist/arcgis-coding-components/{EXVQ7D4L.js → JGHGCPHK.js} +2 -2
  23. package/dist/arcgis-coding-components/{DWLMD7EE.js → K7YKEXSI.js} +2 -2
  24. package/dist/arcgis-coding-components/{3JRCEWCD.js → KUMSWFJ3.js} +2 -2
  25. package/dist/arcgis-coding-components/{AFPDZKKY.js → LRK2U6DC.js} +1 -1
  26. package/dist/arcgis-coding-components/{ZFBEJ4YA.js → OTBSDPPV.js} +2 -2
  27. package/dist/arcgis-coding-components/{UK4R3GCB.js → QL6WB4LP.js} +1 -1
  28. package/dist/arcgis-coding-components/{A33OQWOC.js → QPUPO474.js} +2 -2
  29. package/dist/arcgis-coding-components/{D2DWBYBD.js → QSGXIPW4.js} +2 -2
  30. package/dist/arcgis-coding-components/{ILRVQ5JS.js → RLTTGKNJ.js} +2 -2
  31. package/dist/arcgis-coding-components/{X3MVIYJB.js → RUTAHSN6.js} +2 -2
  32. package/dist/arcgis-coding-components/{RH3BXK5Q.js → TKFWEYRI.js} +2 -2
  33. package/dist/arcgis-coding-components/{QCTH2JPP.js → UHR5GUFO.js} +2 -2
  34. package/dist/arcgis-coding-components/{2VPTVCNA.js → WVKSWR7H.js} +2 -2
  35. package/dist/arcgis-coding-components/{K7V6WM4S.js → ZGFOOK7M.js} +2 -2
  36. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  37. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +45 -45
  38. package/dist/chunks/arcade-defaults.js +1 -1
  39. package/dist/chunks/arcade-executor.js +1 -1
  40. package/dist/chunks/arcade-mode.js +1 -1
  41. package/dist/chunks/arcade-service-accessors.js +1 -1
  42. package/dist/chunks/fields.js +1 -1
  43. package/dist/chunks/language-defaults-base.js +1 -1
  44. package/dist/chunks/markdown.js +1 -1
  45. package/dist/chunks/monaco-importer.js +1 -1
  46. package/dist/chunks/runtime.js +1 -1
  47. package/dist/chunks/sql-expr-defaults.js +1 -1
  48. package/dist/chunks/sql-expr-mode.js +1 -1
  49. package/dist/chunks/useT9n.js +1 -1
  50. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  51. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  52. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  53. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  54. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  55. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  56. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  57. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  58. package/dist/docs/api.json +2 -2
  59. package/dist/docs/docs.json +2 -2
  60. package/dist/docs/web-types.json +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/loader.js +1 -1
  63. package/package.json +7 -7
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var JU=Object.defineProperty;var hT=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var R=(e,t)=>()=>(e&&(t=e(e=0)),t);var gT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qs=(e,t)=>{for(var r in t)JU(e,r,{get:t[r],enumerable:!0})};function ZW(e,t){let r=e;for(;r;){if(r===t)return!0;if(!r.parentNode)return!1;r.parentNode instanceof ShadowRoot?r=r.parentNode.host:r=r.parentNode}return!1}function YW(e,t,r){let{subscribe:n}=JW(t);return n(i=>{i.some(s=>ZW(e,s.target))&&r()})}function JW(e){let t=e.join(","),r=Rx[t];if(r!==void 0)return r;let n=new Set,i=new MutationObserver(s=>n.forEach(c=>c(s)));globalThis.document&&i.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let o={subscribe(s){return n.add(s),{remove:()=>{n.delete(s),n.size===0&&(i.disconnect(),Rx[t]=void 0)}}}};return Rx[t]=o,o}function XW(e,t){let r=e;for(;r;){let n=r.closest?.(t);if(n)return n;let i=r.getRootNode?.();if(i===globalThis.document)return null;r=i.host}return null}function QW(e,t,r){return XW(e,`[${t}]`)?.getAttribute(t)??r}function Ot(e,t,...r){try{return e?.call(t,...r)}catch(n){console.error(n,e)}}async function xh(e,t,...r){try{let n=e?.call(t,...r);return n instanceof Promise?await n:n}catch(n){console.error(n,e)}}async function o8(e,t,r=""){let n=`${t}/${r}`,i=`${n}${e}.json`;return Dx[i]??(Dx[i]=s8(e,n)),await Dx[i]}async function s8(e,t){let r=`${t}${e}.json`;try{let n=await fetch(r);if(n.ok)return await n.json()}catch(n){return console.error(n),{}}return e===Sw?{}:await s8(Sw,t)}function Fx(e,t){let r=QW(e,"lang",globalThis.navigator?.language||Sw);return{lang:r,t9nLocale:a8(r,t)}}function a8(e,t){let[r,n]=e.split("-"),i=r.toLowerCase(),o=i;return n&&(o=`${i}-${n.toUpperCase()}`),o=tB[o]??o,t&&o==="nb"?"no":eB.has(o)?o:n?a8(i):Sw}function c8(e,t,r,n,i){let o,s=()=>void rB(e,t,n,i).then(c=>{(o?.lang!==c.lang||o.t9nLocale!==c.t9nLocale||o.t9nStrings!==c.t9nStrings)&&r(c),o=c}).catch(console.error);return s(),YW(e,["lang"],s)}async function rB(e,t,r=e.tagName.toLowerCase().split("-").slice(1).join("-"),n){let{lang:i,t9nLocale:o}=Fx(e,n),s=`${t}/${r}/t9n`,a=r===null?{}:await o8(o,s,"messages.");if(r!==null&&Object.keys(a).length===0){let d=`${r}.t9n.`;a=await o8(o,s,d)}return{lang:i,t9nLocale:o,t9nStrings:a}}function l8(e,t){let r=t>iB?oB:t/sB,n=0,i=setInterval(()=>{n+=r,n>=t&&(clearInterval(i),e())},r);return i}function u8(e){return e!==void 0}var xo,Rx,KW,eB,Sw,tB,Dx,Ew,nB,iB,oB,sB,So=R(()=>{"use strict";xo=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};Rx={};KW=["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","no","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],eB=new Set(KW),Sw="en",tB={pt:"pt-PT",no:"nb",zh:"zh-CN"};Dx={};Ew=e=>e.replace(nB,(t,r)=>`${r===0?"":"-"}${t.toLowerCase()}`),nB=/[A-Z]+(?![a-z])|[A-Z]/gu;iB=4e3,oB=2e3,sB=4});function me(e){return typeof oc[e]=="function"?oc[e]=oc[e](globalThis):oc[e]}var oc,rt=R(()=>{oc=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},me.add=(e,t,r,n)=>{(n||oc[e]===void 0)&&(oc[e]=t),r&&me(e)},me.cache=oc,me.add("big-integer-warning-enabled",!0),me.add("esri-deprecation-warnings",!0),me.add("esri-tests-disable-screenshots",!1),me.add("esri-tests-use-full-window",!1),me.add("esri-tests-post-to-influx",!0),me.add("esri-cim-animations-enable-status","enabled"),me.add("esri-cim-animations-spotlight",!1),me.add("esri-cim-animations-freeze-time",!1),me.add("enable-feature:multiple-highlights",!1),(()=>{me.add("host-webworker",globalThis.WorkerGlobalScope!==void 0&&self instanceof globalThis.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(me.add("host-browser",e),me.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),me.add("dom",e),me("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(me.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),me.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),me.add("khtml",n.includes("Konqueror")?i:void 0),me.add("edge",parseFloat(r.split("Edge/")[1])||void 0),me.add("opr",parseFloat(r.split("OPR/")[1])||void 0),me.add("webkit",!me("wp")&&!me("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),me.add("chrome",!me("edge")&&!me("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),me.add("android",!me("wp")&&parseFloat(r.split("Android ")[1])||void 0),me.add("safari",!n.includes("Safari")||me("wp")||me("chrome")||me("android")||me("edge")||me("opr")?void 0:parseFloat(n.split("Version/")[1])),me.add("mac",n.includes("Macintosh")),!me("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",c=parseFloat(s.replace(/_/,".").replaceAll("_",""));me.add(o,c),me.add("ios",c)}me("webkit")||(!r.includes("Gecko")||me("wp")||me("khtml")||me("edge")||me.add("mozilla",i),me("mozilla")&&me.add("ff",parseFloat(r.split("Firefox/")[1]||r.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&me.add("esri-mobile",t),r&&me.add("esri-iPhone",r),me.add("esri-geolocation",!!navigator.geolocation)}me.add("esri-wasm","WebAssembly"in globalThis),me.add("esri-performance-mode-frames-between-render",20),me.add("esri-force-performance-mode",!1),me.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),me.add("wasm-simd",()=>{let e=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(e))}),me.add("esri-atomics","Atomics"in globalThis),me.add("esri-workers","Worker"in globalThis),me.add("web-feat:cache","caches"in globalThis),me.add("esri-workers-arraybuffer-transfer",!me("safari")||Number(me("safari"))>=12),me.add("workers-pool-size",8),me.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),me.add("featurelayer-simplify-payload-size-factors",[1,1,4]),me.add("featurelayer-fast-triangulation-enabled",!0),me.add("featurelayer-animation-enabled",!0),me.add("featurelayer-snapshot-enabled",!0),me.add("featurelayer-snapshot-point-min-threshold",8e4),me.add("featurelayer-snapshot-point-max-threshold",4e5),me.add("featurelayer-snapshot-point-coverage",.1),me.add("featurelayer-query-max-depth",4),me.add("featurelayer-query-pausing-enabled",!1),me.add("featurelayer-advanced-symbols",!1),me.add("featurelayer-pbf",!0),me.add("featurelayer-pbf-statistics",!1),me.add("feature-layers-workers",!0),me.add("feature-polyline-generalization-factor",1),me.add("mapview-transitions-duration",200),me.add("mapview-essential-goto-duration",200),me.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),me.add("mapserver-pbf-version-support",10.81),me.add("mapservice-popup-identify-max-tolerance",20),me("host-webworker")||me("host-browser")&&(me.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),me.add("esri-image-decode",()=>{if("decode"in new Image){let e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then(()=>{me.add("esri-image-decode",!0,!0,!0)}).catch(()=>{me.add("esri-image-decode",!1,!0,!0)})}return!1}),me.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});var yu,Hr=R(()=>{yu=class e{constructor(t=1){this._seed=t}set seed(t){this._seed=t??Math.random()*e._m}getInt(){return this._seed=(e._a*this._seed+e._c)%e._m,this._seed}getFloat(){return this.getInt()/(e._m-1)}getIntRange(t,r){return Math.round(this.getFloatRange(t,r))}getFloatRange(t,r){let n=r-t;return t+this.getInt()/e._m*n}};yu._m=2147483647,yu._a=48271,yu._c=0});function sc(e,t,r){if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function $x(e,t,r,n){n=n||d8;let i=Math.max(0,n.last-10);for(let s=i;s<r;++s)if(e[s]===t)return n.last=s,s;let o=Math.min(i,r);for(let s=0;s<o;++s)if(e[s]===t)return n.last=s,s;return-1}function p8(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;Eo.clear();for(let c=0;c<n;++c)Eo.add(t[c]);i=i||d8;let s=Math.max(0,i.last-10);for(let c=s;c<r;++c)if(Eo.has(e[c])&&(o?.push(e[c]),Eo.delete(e[c]),e[c]=e[r-1],--r,--c,Eo.size===0||r===0))return Eo.clear(),r;for(let c=0;c<s;++c)if(Eo.has(e[c])&&(o?.push(e[c]),Eo.delete(e[c]),e[c]=e[r-1],--r,--c,Eo.size===0||r===0))return Eo.clear(),r;return Eo.clear(),r}function f8(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function m8(e,t){return e!=null}var aB,ece,Sh,d8,Eo,tce,ac=R(()=>{Hr();aB=1.5,ece=1/aB;Sh=class{constructor(){this.last=0}},d8=new Sh;Eo=new Set;tce=new yu});function h8(e){return e?.constructor?.name==="Int8Array"}function g8(e){return e?.constructor?.name==="Uint8Array"}function w8(e){return e?.constructor?.name==="Uint8ClampedArray"}function y8(e){return e?.constructor?.name==="Int16Array"}function b8(e){return e?.constructor?.name==="Uint16Array"}function v8(e){return e?.constructor?.name==="Int32Array"}function _8(e){return e?.constructor?.name==="Uint32Array"}function x8(e){return e?.constructor?.name==="Float32Array"}function S8(e){return e?.constructor?.name==="Float64Array"}var E8=R(()=>{rt()});function Pw(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&Pw(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function Ye(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=A8(e);if(t!=null)return t;if(T8(e))return e.clone();if(P8(e))return e.map(Ye);if(M8(e))throw new Error("Trying to clone an unclonable Accessor instance");let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=Ye(e[n]);return r}function Tw(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=A8(e);if(t!=null)return t;if(P8(e)){let n=!0,i=e.map(o=>{let s=Tw(o);return o!=null&&s==null&&(n=!1),s});return n?i:null}if(T8(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(M8(e))return null;let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=Tw(i);if(i!=null&&o==null)return null;r[n]=o}return r}function T8(e){return typeof e.clone=="function"}function P8(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function M8(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function C8(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function A8(e){if(h8(e)||g8(e)||w8(e)||y8(e)||b8(e)||v8(e)||_8(e)||x8(e)||S8(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,Ye(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(Ye(r));return t}return null}function Eh(e,t){return e===t||typeof e=="number"&&isNaN(e)&&typeof t=="number"&&isNaN(t)||typeof e?.getTime=="function"&&typeof t?.getTime=="function"&&e.getTime()===t.getTime()||!1}function I8(e,t){return e===t||(e==null||typeof e=="string"?e===t:typeof e=="number"?e===t||typeof t=="number"&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&sc(e,t):e instanceof Set?t instanceof Set&&lB(e,t):e instanceof Map?t instanceof Map&&uB(e,t):!!C8(e)&&C8(t)&&cB(e,t))}function cB(e,t){if(e===null||t===null)return!1;let r=Object.keys(e);if(t===null||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}function lB(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function uB(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let i=t.get(r);if(i!==n||i===void 0&&!t.has(r))return!1}return!0}var mr=R(()=>{ac();E8()});function L8(e,t,r=!1){return N8(e,t,r)}function ji(e,t){if(t!=null)return t[e]||k8(e.split("."),!1,t)}function Ks(e,t,r){let n=e.split("."),i=n.pop(),o=k8(n,!0,r);o&&i&&(o[i]=t)}function k8(e,t,r){let n=r;for(let i of e){if(n==null)return;if(!(i in n)){if(!t)return;n[i]={}}n=n[i]}return n}function N8(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=n[i],s=t[i];return o===s?n:o===void 0?(n[i]=Ye(s),n):(Array.isArray(s)||Array.isArray(n)?(o=o?Array.isArray(o)?n[i]=o.slice():n[i]=[o]:n[i]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(c=>{o.includes(c)||o.push(c)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=N8(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var ms=R(()=>{mr()});function O8(e){return e??""}function hs(e,t){return t?e.replaceAll(dB,typeof t=="object"?(r,n)=>O8(ji(n,t)):(r,n)=>O8(t(n))):e}function R8(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function D8(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var dB,cc=R(()=>{ms();dB=/\{([^}]+)\}/g});var ea,Mw,Aw,Iw,Co,ff,vr,To,lc=R(()=>{ea=class extends Error{},Mw=class extends ea{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},Aw=class extends ea{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},Iw=class extends ea{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Co=class extends ea{},ff=class extends ea{constructor(t){super(`Invalid unit ${t}`)}},vr=class extends ea{},To=class extends ea{constructor(){super("Zone is an abstract class")}}});var ke,Po,Si,uc,Ch,Vx,Th,Ph,Mh,Ah,Ih,Lh,kh,Nh,Oh,Rh,Dh,Fh,$h,Vh,Ux,Uh,zh,Wh,Bh,Gh=R(()=>{ke="numeric",Po="short",Si="long",uc={year:ke,month:ke,day:ke},Ch={year:ke,month:Po,day:ke},Vx={year:ke,month:Po,day:ke,weekday:Po},Th={year:ke,month:Si,day:ke},Ph={year:ke,month:Si,day:ke,weekday:Si},Mh={hour:ke,minute:ke},Ah={hour:ke,minute:ke,second:ke},Ih={hour:ke,minute:ke,second:ke,timeZoneName:Po},Lh={hour:ke,minute:ke,second:ke,timeZoneName:Si},kh={hour:ke,minute:ke,hourCycle:"h23"},Nh={hour:ke,minute:ke,second:ke,hourCycle:"h23"},Oh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Po},Rh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Si},Dh={year:ke,month:ke,day:ke,hour:ke,minute:ke},Fh={year:ke,month:ke,day:ke,hour:ke,minute:ke,second:ke},$h={year:ke,month:Po,day:ke,hour:ke,minute:ke},Vh={year:ke,month:Po,day:ke,hour:ke,minute:ke,second:ke},Ux={year:ke,month:Po,day:ke,weekday:Po,hour:ke,minute:ke},Uh={year:ke,month:Si,day:ke,hour:ke,minute:ke,timeZoneName:Po},zh={year:ke,month:Si,day:ke,hour:ke,minute:ke,second:ke,timeZoneName:Po},Wh={year:ke,month:Si,day:ke,weekday:Si,hour:ke,minute:ke,timeZoneName:Si},Bh={year:ke,month:Si,day:ke,weekday:Si,hour:ke,minute:ke,second:ke,timeZoneName:Si}});var kr,bu=R(()=>{lc();kr=class{get type(){throw new To}get name(){throw new To}get ianaName(){return this.name}get isUniversal(){throw new To}offsetName(t,r){throw new To}formatOffset(t,r){throw new To}offset(t){throw new To}equals(t){throw new To}get isValid(){throw new To}}});var zx,dc,kw=R(()=>{Gn();bu();zx=null,dc=class e extends kr{static get instance(){return zx===null&&(zx=new e),zx}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return Nw(t,r,n)}formatOffset(t,r){return pc(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function pB(e){return Rw[e]||(Rw[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Rw[e]}function mB(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,c,a,d,h]=n;return[s,i,o,c,a,d,h]}function hB(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=fB[o];o==="era"?n[c]=s:qe(c)||(n[c]=parseInt(s,10))}return n}var Rw,fB,Ow,or,fc=R(()=>{Gn();bu();Rw={};fB={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};Ow={},or=class e extends kr{static create(t){return Ow[t]||(Ow[t]=new e(t)),Ow[t]}static resetCache(){Ow={},Rw={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return Nw(t,r,n,this.name)}formatOffset(t,r){return pc(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=pB(this.name),[i,o,s,c,a,d,h]=n.formatToParts?hB(n,r):mB(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=mf({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),E=+r,P=E%1e3;return E-=P>=0?P:1e3+P,(v-E)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function gB(e,t={}){let r=JSON.stringify([e,t]),n=F8[r];return n||(n=new Intl.ListFormat(e,t),F8[r]=n),n}function Bx(e,t={}){let r=JSON.stringify([e,t]),n=Wx[r];return n||(n=new Intl.DateTimeFormat(e,t),Wx[r]=n),n}function wB(e,t={}){let r=JSON.stringify([e,t]),n=Gx[r];return n||(n=new Intl.NumberFormat(e,t),Gx[r]=n),n}function yB(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=jx[i];return o||(o=new Intl.RelativeTimeFormat(e,t),jx[i]=o),o}function bB(){return jh||(jh=new Intl.DateTimeFormat().resolvedOptions().locale,jh)}function vB(e){let t=$8[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,$8[e]=t}return t}function _B(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(r===-1)return[e];{let n,i;try{n=Bx(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=Bx(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function xB(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function SB(e){let t=[];for(let r=1;r<=12;r++){let n=Ce.utc(2009,r,1);t.push(e(n))}return t}function EB(e){let t=[];for(let r=1;r<=7;r++){let n=Ce.utc(2016,11,13+r);t.push(e(n))}return t}function Dw(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function CB(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}var F8,Wx,Gx,jx,jh,$8,qx,Hx,Zx,TB,St,Hh=R(()=>{Gn();Vw();mc();hc();fc();F8={};Wx={};Gx={};jx={};jh=null;$8={};qx=class{constructor(t,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:o,...s}=n;if(!r||Object.keys(s).length>0){let c={useGrouping:!1,...n};n.padTo>0&&(c.minimumIntegerDigits=n.padTo),this.inf=wB(t,c)}}format(t){if(this.inf){let r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{let r=this.floor?Math.floor(t):hf(t,3);return hr(r,this.padTo)}}},Hx=class{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),c=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&or.create(c).valid?(i=c,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=Bx(r,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},Zx=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&Fw()&&(this.rtf=yB(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):V8(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},TB={firstDay:1,minimalDays:4,weekend:[6,7]},St=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,i,o=!1){let s=t||xt.defaultLocale,c=s||(o?"en-US":bB()),a=r||xt.defaultNumberingSystem,d=n||xt.defaultOutputCalendar,h=qh(i)||xt.defaultWeekSettings;return new e(c,a,d,h,s)}static resetCache(){jh=null,Wx={},Gx={},jx={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return e.create(t,r,n,i)}constructor(t,r,n,i,o){let[s,c,a]=_B(t);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=xB(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=CB(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,qh(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,r=!1){return Dw(this,t,Yx,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=SB(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return Dw(this,t,Jx,()=>{let n=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=r?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=EB(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return Dw(this,void 0,()=>Xx,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ce.utc(2016,11,13,9),Ce.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Dw(this,t,Qx,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ce.utc(-40,1,1),Ce.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){let i=this.dtFormatter(t,r),o=i.formatToParts(),s=o.find(c=>c.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new qx(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new Hx(t,this.intl,r)}relFormatter(t={}){return new Zx(this.intl,this.isEnglish(),t)}listFormatter(t={}){return gB(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:$w()?vB(this.locale):TB}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}});var eS,Rt,gf=R(()=>{Gn();bu();eS=null,Rt=class e extends kr{static get utcInstance(){return eS===null&&(eS=new e(0)),eS}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new e(vu(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${pc(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${pc(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return pc(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}});var wf,tS=R(()=>{bu();wf=class extends kr{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}});function Mo(e,t){let r;if(qe(e)||e===null)return t;if(e instanceof kr)return e;if(U8(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?dc.instance:n==="utc"||n==="gmt"?Rt.utcInstance:Rt.parseSpecifier(n)||or.create(e)}else return Ao(e)?Rt.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new wf(e)}var Uw=R(()=>{bu();fc();gf();tS();Gn();kw()});function W8(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(e[r].search(rS.hanidec)!==-1)t+=PB.indexOf(e[r]);else for(let i in z8){let[o,s]=z8[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function B8(){yf={}}function qi({numberingSystem:e},t=""){let r=e||"latn";return yf[r]||(yf[r]={}),yf[r][t]||(yf[r][t]=new RegExp(`${rS[r]}${t}`)),yf[r][t]}var rS,z8,PB,yf,nS=R(()=>{rS={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},z8={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},PB=rS.hanidec.replace(/[\[|\]]/g,"").split("");yf={}});var G8,j8,q8,H8,Z8,Y8,J8,X8,xt,mc=R(()=>{kw();fc();Hh();hc();Uw();Gn();nS();G8=()=>Date.now(),j8="system",q8=null,H8=null,Z8=null,Y8=60,X8=null,xt=class{static get now(){return G8}static set now(t){G8=t}static set defaultZone(t){j8=t}static get defaultZone(){return Mo(j8,dc.instance)}static get defaultLocale(){return q8}static set defaultLocale(t){q8=t}static get defaultNumberingSystem(){return H8}static set defaultNumberingSystem(t){H8=t}static get defaultOutputCalendar(){return Z8}static set defaultOutputCalendar(t){Z8=t}static get defaultWeekSettings(){return X8}static set defaultWeekSettings(t){X8=qh(t)}static get twoDigitCutoffYear(){return Y8}static set twoDigitCutoffYear(t){Y8=t%100}static get throwOnInvalid(){return J8}static set throwOnInvalid(t){J8=t}static resetCaches(){St.resetCache(),or.resetCache(),Ce.resetCache(),B8()}}});var cn,Zh=R(()=>{cn=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Hi(e,t){return new cn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function zw(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function eP(e,t,r){return r+(xu(e)?K8:Q8)[t-1]}function tP(e,t){let r=xu(e)?K8:Q8,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function Ww(e,t){return(e-t+7)%7+1}function Yh(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=eP(n,i,o),c=Ww(zw(n,i,o),r),a=Math.floor((s-c+14-t)/7),d;return a<1?(d=n-1,a=_u(d,t,r)):a>_u(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...Xh(e)}}function iS(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=Ww(zw(n,1,t),r),c=gc(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=gc(d)):a>c?(d=n+1,a-=gc(n)):d=n;let{month:h,day:g}=tP(d,a);return{year:d,month:h,day:g,...Xh(e)}}function Bw(e){let{year:t,month:r,day:n}=e,i=eP(t,r,n);return{year:t,ordinal:i,...Xh(e)}}function oS(e){let{year:t,ordinal:r}=e,{month:n,day:i}=tP(t,r);return{year:t,month:n,day:i,...Xh(e)}}function sS(e,t){if(!qe(e.localWeekday)||!qe(e.localWeekNumber)||!qe(e.localWeekYear)){if(!qe(e.weekday)||!qe(e.weekNumber)||!qe(e.weekYear))throw new Co("Cannot mix locale-based week fields with ISO-based week fields");return qe(e.localWeekday)||(e.weekday=e.localWeekday),qe(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),qe(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function rP(e,t=4,r=1){let n=Jh(e.weekYear),i=Ei(e.weekNumber,1,_u(e.weekYear,t,r)),o=Ei(e.weekday,1,7);return n?i?o?!1:Hi("weekday",e.weekday):Hi("week",e.weekNumber):Hi("weekYear",e.weekYear)}function nP(e){let t=Jh(e.year),r=Ei(e.ordinal,1,gc(e.year));return t?r?!1:Hi("ordinal",e.ordinal):Hi("year",e.year)}function aS(e){let t=Jh(e.year),r=Ei(e.month,1,12),n=Ei(e.day,1,bf(e.year,e.month));return t?r?n?!1:Hi("day",e.day):Hi("month",e.month):Hi("year",e.year)}function cS(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=Ei(t,0,23)||t===24&&r===0&&n===0&&i===0,s=Ei(r,0,59),c=Ei(n,0,59),a=Ei(i,0,999);return o?s?c?a?!1:Hi("millisecond",i):Hi("second",n):Hi("minute",r):Hi("hour",t)}var Q8,K8,lS=R(()=>{Gn();Zh();lc();Q8=[0,31,59,90,120,151,181,212,243,273,304,334],K8=[0,31,60,91,121,152,182,213,244,274,305,335]});function qe(e){return typeof e>"u"}function Ao(e){return typeof e=="number"}function Jh(e){return typeof e=="number"&&e%1===0}function U8(e){return typeof e=="string"}function oP(e){return Object.prototype.toString.call(e)==="[object Date]"}function Fw(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function $w(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function sP(e){return Array.isArray(e)?e:[e]}function uS(e,t,r){if(e.length!==0)return e.reduce((n,i)=>{let o=[t(i),i];return n&&r(n[0],o[0])===n[0]?n:o},null)[1]}function aP(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function wc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qh(e){if(e==null)return null;if(typeof e!="object")throw new vr("Week settings must be an object");if(!Ei(e.firstDay,1,7)||!Ei(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Ei(t,1,7)))throw new vr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ei(e,t,r){return Jh(e)&&e>=t&&e<=r}function MB(e,t){return e-t*Math.floor(e/t)}function hr(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function ta(e){if(!(qe(e)||e===null||e===""))return parseInt(e,10)}function yc(e){if(!(qe(e)||e===null||e===""))return parseFloat(e)}function Qh(e){if(!(qe(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function hf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function xu(e){return e%4===0&&(e%100!==0||e%400===0)}function gc(e){return xu(e)?366:365}function bf(e,t){let r=MB(t-1,12)+1,n=e+(t-r)/12;return r===2?xu(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function mf(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function iP(e,t,r){return-Ww(zw(e,1,t),r)+t-1}function _u(e,t=4,r=1){let n=iP(e,t,r),i=iP(e+1,t,r);return(gc(e)-n+i)/7}function Kh(e){return e>99?e:e>xt.twoDigitCutoffYear?1900+e:2e3+e}function Nw(e,t,r,n=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:t,...o},c=new Intl.DateTimeFormat(r,s).formatToParts(i).find(a=>a.type.toLowerCase()==="timezonename");return c?c.value:null}function vu(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function dS(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new vr(`Invalid unit value ${e}`);return t}function vf(e,t){let r={};for(let n in e)if(wc(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=dS(i)}return r}function pc(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${hr(r,2)}:${hr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${hr(r,2)}${hr(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Xh(e){return aP(e,["hour","minute","second","millisecond"])}var Gn=R(()=>{lc();mc();lS()});function Yx(e){switch(e){case"narrow":return[...IB];case"short":return[...pS];case"long":return[...AB];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}function Jx(e){switch(e){case"narrow":return[...LB];case"short":return[...mS];case"long":return[...fS];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function Qx(e){switch(e){case"narrow":return[...OB];case"short":return[...NB];case"long":return[...kB];default:return null}}function cP(e){return Xx[e.hour<12?0:1]}function lP(e,t){return Jx(t)[e.weekday-1]}function uP(e,t){return Yx(t)[e.month-1]}function dP(e,t){return Qx(t)[e.year<0?0:1]}function V8(e,t,r="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){let g=e==="days";switch(t){case 1:return g?"tomorrow":`next ${i[e][0]}`;case-1:return g?"yesterday":`last ${i[e][0]}`;case 0:return g?"today":`this ${i[e][0]}`;default:}}let s=Object.is(t,-0)||t<0,c=Math.abs(t),a=c===1,d=i[e],h=n?a?d[1]:d[2]||d[1]:a?i[e][0]:e;return s?`${c} ${h} ago`:`in ${c} ${h}`}var AB,pS,IB,fS,mS,LB,Xx,kB,NB,OB,Vw=R(()=>{Gh();Gn();AB=["January","February","March","April","May","June","July","August","September","October","November","December"],pS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],IB=["J","F","M","A","M","J","J","A","S","O","N","D"];fS=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],mS=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],LB=["M","T","W","T","F","S","S"];Xx=["AM","PM"],kB=["Before Christ","Anno Domini"],NB=["BC","AD"],OB=["B","A"]});function pP(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var RB,ln,eg=R(()=>{Vw();Gh();Gn();RB={D:uc,DD:Ch,DDD:Th,DDDD:Ph,t:Mh,tt:Ah,ttt:Ih,tttt:Lh,T:kh,TT:Nh,TTT:Oh,TTTT:Rh,f:Dh,ff:$h,fff:Uh,ffff:Wh,F:Fh,FF:Vh,FFF:zh,FFFF:Bh},ln=class e{static create(t,r={}){return new e(t,r)}static parseFormat(t){let r=null,n="",i=!1,o=[];for(let s=0;s<t.length;s++){let c=t.charAt(s);c==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||c===r?n+=c:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=c,r=c)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(t){return RB[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...r}).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,{...this.opts,...r})}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return hr(t,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(E,P)=>this.loc.extract(t,E,P),s=E=>t.isOffsetFixed&&t.offset===0&&E.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,E.format):"",c=()=>n?cP(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(E,P)=>n?uP(t,E):o(P?{month:E}:{month:E,day:"numeric"},"month"),d=(E,P)=>n?lP(t,E):o(P?{weekday:E}:{weekday:E,month:"long",day:"numeric"},"weekday"),h=E=>{let P=e.macroTokenToFormatOpts(E);return P?this.formatWithSystemDefault(t,P):E},g=E=>n?dP(t,E):o({era:E},"era"),v=E=>{switch(E){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return h(E)}};return pP(e.parseFormat(r),v)}formatDurationFromString(t,r){let n=a=>{switch(a[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=a=>d=>{let h=n(d);return h?this.num(a.get(h),d.length):d},o=e.parseFormat(r),s=o.reduce((a,{literal:d,val:h})=>d?a:a.concat(h),[]),c=t.shiftTo(...s.map(n).filter(a=>a));return pP(o,i(c))}}});function xf(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function Sf(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,c,a]=o(t,i);return[{...r,...s},c||n,a]},[{},null,1]).slice(0,2)}function Ef(e,...t){if(e==null)return[null,null];for(let[r,n]of t){let i=r.exec(e);if(i)return n(i)}return[null,null]}function hP(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=ta(t[r+i]);return[n,null,r+i]}}function _f(e,t,r){let n=e[t];return qe(n)?r:ta(n)}function GB(e,t){return[{year:_f(e,t),month:_f(e,t+1,1),day:_f(e,t+2,1)},null,t+3]}function Cf(e,t){return[{hours:_f(e,t,0),minutes:_f(e,t+1,0),seconds:_f(e,t+2,0),milliseconds:Qh(e[t+3])},null,t+4]}function tg(e,t){let r=!e[t]&&!e[t+1],n=vu(e[t+1],e[t+2]),i=r?null:Rt.instance(n);return[{},i,t+3]}function rg(e,t){let r=e[t]?or.create(e[t]):null;return[{},r,t+1]}function HB(e){let[t,r,n,i,o,s,c,a,d]=e,h=t[0]==="-",g=a&&a[0]==="-",v=(E,P=!1)=>E!==void 0&&(P||E&&h)?-E:E;return[{years:v(yc(r)),months:v(yc(n)),weeks:v(yc(i)),days:v(yc(o)),hours:v(yc(s)),minutes:v(yc(c)),seconds:v(yc(a),a==="-0"),milliseconds:v(Qh(d),g)}]}function wS(e,t,r,n,i,o,s){let c={year:t.length===2?Kh(ta(t)):ta(t),month:pS.indexOf(r)+1,day:ta(n),hour:ta(i),minute:ta(o)};return s&&(c.second=ta(s)),e&&(c.weekday=e.length>3?fS.indexOf(e)+1:mS.indexOf(e)+1),c}function JB(e){let[,t,r,n,i,o,s,c,a,d,h,g]=e,v=wS(t,i,n,r,o,s,c),E;return a?E=ZB[a]:d?E=0:E=vu(h,g),[v,new Rt(E)]}function XB(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function fP(e){let[,t,r,n,i,o,s,c]=e;return[wS(t,i,n,r,o,s,c),Rt.utcInstance]}function tG(e){let[,t,r,n,i,o,s,c]=e;return[wS(t,c,r,n,i,o,s),Rt.utcInstance]}function vP(e){return Ef(e,[rG,bP],[nG,sG],[iG,aG],[oG,cG])}function _P(e){return Ef(XB(e),[YB,JB])}function xP(e){return Ef(e,[QB,fP],[KB,fP],[eG,tG])}function SP(e){return Ef(e,[qB,HB])}function EP(e){return Ef(e,[jB,lG])}function CP(e){return Ef(e,[uG,bP],[dG,pG])}var mP,gP,DB,hS,wP,gS,FB,$B,VB,UB,zB,WB,yP,BB,jB,qB,ZB,YB,QB,KB,eG,rG,nG,iG,oG,bP,sG,aG,cG,lG,uG,dG,pG,yS=R(()=>{Gn();Vw();gf();fc();mP=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;gP=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,DB=`(?:${gP.source}?(?:\\[(${mP.source})\\])?)?`,hS=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,wP=RegExp(`${hS.source}${DB}`),gS=RegExp(`(?:T${wP.source})?`),FB=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,$B=/(\d{4})-?W(\d\d)(?:-?(\d))?/,VB=/(\d{4})-?(\d{3})/,UB=hP("weekYear","weekNumber","weekDay"),zB=hP("year","ordinal"),WB=/(\d{4})-(\d\d)-(\d\d)/,yP=RegExp(`${hS.source} ?(?:${gP.source}|(${mP.source}))?`),BB=RegExp(`(?: ${yP.source})?`);jB=RegExp(`^T?${hS.source}$`),qB=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;ZB={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};YB=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;QB=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,KB=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,eG=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;rG=xf(FB,gS),nG=xf($B,gS),iG=xf(VB,gS),oG=xf(wP),bP=Sf(GB,Cf,tg,rg),sG=Sf(UB,Cf,tg,rg),aG=Sf(zB,Cf,tg,rg),cG=Sf(Cf,tg,rg);lG=Sf(Cf);uG=xf(WB,BB),dG=xf(yP),pG=Sf(Cf,tg,rg)});function bc(e,t,r=!1){let n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new gr(n)}function AP(e,t){let r=t.milliseconds??0;for(let n of hG.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function PP(e,t){let r=AP(e,t)<0?-1:1;Su.reduceRight((n,i)=>{if(qe(t[i]))return n;if(n){let o=t[n]*r,s=e[i][n],c=Math.floor(o/s);t[i]+=c*r,t[n]-=c*s*r}return i},null),Su.reduce((n,i)=>{if(qe(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function gG(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var TP,MP,fG,Zi,Tf,mG,Su,hG,gr,ng=R(()=>{lc();eg();Zh();Hh();yS();Gn();mc();hc();TP="Invalid Duration",MP={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},fG={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...MP},Zi=146097/400,Tf=146097/4800,mG={years:{quarters:4,months:12,weeks:Zi/7,days:Zi,hours:Zi*24,minutes:Zi*24*60,seconds:Zi*24*60*60,milliseconds:Zi*24*60*60*1e3},quarters:{months:3,weeks:Zi/28,days:Zi/4,hours:Zi*24/4,minutes:Zi*24*60/4,seconds:Zi*24*60*60/4,milliseconds:Zi*24*60*60*1e3/4},months:{weeks:Tf/7,days:Tf,hours:Tf*24,minutes:Tf*24*60,seconds:Tf*24*60*60,milliseconds:Tf*24*60*60*1e3},...MP},Su=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],hG=Su.slice(0).reverse();gr=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?mG:fG;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||St.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return e.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new vr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:vf(t,e.normalizeUnit),loc:St.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(Ao(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new vr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=SP(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){let[n]=EP(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new vr("need to specify a reason the Duration is invalid");let n=t instanceof cn?t:new cn(t,r);if(xt.throwOnInvalid)throw new Iw(n);return new e({invalid:n})}static normalizeUnit(t){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!r)throw new ff(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?ln.create(this.loc,n).formatDurationFromString(this,t):TP}toHuman(t={}){if(!this.isValid)return TP;let r=Su.map(n=>{let i=this.values[n];return qe(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=hf(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ce.fromMillis(r,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?AP(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t),n={};for(let i of Su)(wc(r.values,i)||wc(this.values,i))&&(n[i]=r.get(i)+this.get(i));return bc(this,{values:n},!0)}minus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=dS(t(this.values[n],n));return bc(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...vf(t,e.normalizeUnit)};return bc(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){let s={loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:i,conversionAccuracy:n};return bc(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return PP(this.matrix,t),bc(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=gG(this.normalize().shiftToAll().toObject());return bc(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>e.normalizeUnit(s));let r={},n={},i=this.toObject(),o;for(let s of Su)if(t.indexOf(s)>=0){o=s;let c=0;for(let d in n)c+=this.matrix[d][s]*n[d],n[d]=0;Ao(i[s])&&(c+=i[s]);let a=Math.trunc(c);r[s]=a,n[s]=(c*1e3-a*1e3)/1e3}else Ao(i[s])&&(n[s]=i[s]);for(let s in n)n[s]!==0&&(r[o]+=s===o?n[s]:n[s]/this.matrix[o][s]);return PP(this.matrix,r),bc(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return bc(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of Su)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function wG(e,t){return!e||!e.isValid?ra.invalid("missing or invalid start"):!t||!t.isValid?ra.invalid("missing or invalid end"):t<e?ra.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var Pf,ra,bS=R(()=>{hc();ng();mc();lc();Zh();eg();Gh();Pf="Invalid Interval";ra=class e{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new vr("need to specify a reason the Interval is invalid");let n=t instanceof cn?t:new cn(t,r);if(xt.throwOnInvalid)throw new Aw(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=Mf(t),i=Mf(r),o=wG(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=gr.fromDurationLike(r),i=Mf(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=gr.fromDurationLike(r),i=Mf(t);return e.fromDateTimes(i.minus(n),i)}static fromISO(t,r){let[n,i]=(t||"").split("/",2);if(n&&i){let o,s;try{o=Ce.fromISO(n,r),s=o.isValid}catch{s=!1}let c,a;try{c=Ce.fromISO(i,r),a=c.isValid}catch{a=!1}if(s&&a)return e.fromDateTimes(o,c);if(s){let d=gr.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=gr.fromISO(n,r);if(d.isValid)return e.before(c,d)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",r){if(!this.isValid)return NaN;let n=this.start.startOf(t,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(t,r),Math.floor(i.diff(n,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?e.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];let r=t.map(Mf).filter(s=>this.contains(s)).sort((s,c)=>s.toMillis()-c.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,c=+s>+this.e?this.e:s;n.push(e.fromDateTimes(i,c)),i=c,o+=1}return n}splitBy(t){let r=gr.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,s=[];for(;n<this.e;){let c=this.start.plus(r.mapUnits(a=>a*i));o=+c>+this.e?this.e:c,s.push(e.fromDateTimes(n,o)),n=o,i+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:e.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;let r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return e.fromDateTimes(r,n)}static merge(t){let[r,n]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[i,o.union(s)]:[i.concat([o]),s]:[i,s],[[],null]);return n&&r.push(n),r}static xor(t){let r=null,n=0,i=[],o=t.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]),s=Array.prototype.concat(...o),c=s.sort((a,d)=>a.time-d.time);for(let a of c)n+=a.type==="s"?1:-1,n===1?r=a.time:(r&&+r!=+a.time&&i.push(e.fromDateTimes(r,a.time)),r=null);return e.merge(i)}difference(...t){return e.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Pf}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=uc,r={}){return this.isValid?ln.create(this.s.loc.clone(r),t).formatInterval(this):Pf}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Pf}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Pf}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Pf}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:Pf}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):gr.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var na,vS=R(()=>{hc();mc();Hh();fc();Uw();Gn();na=class{static hasDST(t=xt.defaultZone){let r=Ce.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return or.isValidZone(t)}static normalizeZone(t){return Mo(t,xt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||St.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||St.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||St.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||St.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return St.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return St.create(r,null,"gregory").eras(t)}static features(){return{relative:Fw(),localeWeek:$w()}}}});function IP(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(gr.fromMillis(n).as("days"))}function yG(e,t,r){let n=[["years",(a,d)=>d.year-a.year],["quarters",(a,d)=>d.quarter-a.quarter+(d.year-a.year)*4],["months",(a,d)=>d.month-a.month+(d.year-a.year)*12],["weeks",(a,d)=>{let h=IP(a,d);return(h-h%7)/7}],["days",IP]],i={},o=e,s,c;for(let[a,d]of n)r.indexOf(a)>=0&&(s=a,i[a]=d(e,t),c=o.plus(i),c>t?(i[a]--,e=o.plus(i),e>t&&(c=e,i[a]--,e=o.plus(i))):e=c);return[e,i,c,s]}function LP(e,t,r,n){let[i,o,s,c]=yG(e,t,r),a=t-i,d=r.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);d.length===0&&(s<t&&(s=i.plus({[c]:1})),s!==i&&(o[c]=(o[c]||0)+a/(s-i)));let h=gr.fromObject(o,n);return d.length>0?gr.fromMillis(a,n).shiftTo(...d).plus(h):h}var kP=R(()=>{ng()});function Tt(e,t=r=>r){return{regex:e,deser:([r])=>t(W8(r))}}function _G(e){return e.replace(/\./g,"\\.?").replace(DP,RP)}function NP(e){return e.replace(/\./g,"").replace(DP," ").toLowerCase()}function Io(e,t){return e===null?null:{regex:RegExp(e.map(_G).join("|")),deser:([r])=>e.findIndex(n=>NP(r)===NP(n))+t}}function OP(e,t){return{regex:e,deser:([,r,n])=>vu(r,n),groups:t}}function Gw(e){return{regex:e,deser:([t])=>t}}function xG(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function SG(e,t){let r=qi(t),n=qi(t,"{2}"),i=qi(t,"{3}"),o=qi(t,"{4}"),s=qi(t,"{6}"),c=qi(t,"{1,2}"),a=qi(t,"{1,3}"),d=qi(t,"{1,6}"),h=qi(t,"{1,9}"),g=qi(t,"{2,4}"),v=qi(t,"{4,6}"),E=F=>({regex:RegExp(xG(F.val)),deser:([W])=>W,literal:!0}),A=(F=>{if(e.literal)return E(F);switch(F.val){case"G":return Io(t.eras("short"),0);case"GG":return Io(t.eras("long"),0);case"y":return Tt(d);case"yy":return Tt(g,Kh);case"yyyy":return Tt(o);case"yyyyy":return Tt(v);case"yyyyyy":return Tt(s);case"M":return Tt(c);case"MM":return Tt(n);case"MMM":return Io(t.months("short",!0),1);case"MMMM":return Io(t.months("long",!0),1);case"L":return Tt(c);case"LL":return Tt(n);case"LLL":return Io(t.months("short",!1),1);case"LLLL":return Io(t.months("long",!1),1);case"d":return Tt(c);case"dd":return Tt(n);case"o":return Tt(a);case"ooo":return Tt(i);case"HH":return Tt(n);case"H":return Tt(c);case"hh":return Tt(n);case"h":return Tt(c);case"mm":return Tt(n);case"m":return Tt(c);case"q":return Tt(c);case"qq":return Tt(n);case"s":return Tt(c);case"ss":return Tt(n);case"S":return Tt(a);case"SSS":return Tt(i);case"u":return Gw(h);case"uu":return Gw(c);case"uuu":return Tt(r);case"a":return Io(t.meridiems(),0);case"kkkk":return Tt(o);case"kk":return Tt(g,Kh);case"W":return Tt(c);case"WW":return Tt(n);case"E":case"c":return Tt(r);case"EEE":return Io(t.weekdays("short",!1),1);case"EEEE":return Io(t.weekdays("long",!1),1);case"ccc":return Io(t.weekdays("short",!0),1);case"cccc":return Io(t.weekdays("long",!0),1);case"Z":case"ZZ":return OP(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return OP(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return Gw(/[a-z_+-/]{1,256}?/i);case" ":return Gw(/[^\S\n\r]/);default:return E(F)}})(e)||{invalidReason:bG};return A.token=e,A}function CG(e,t,r){let{type:n,value:i}=e;if(n==="literal"){let a=/^\s+$/.test(i);return{literal:!a,val:a?" ":i}}let o=t[n],s=n;n==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let c=EG[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function TG(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function PG(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(wc(r,s)){let c=r[s],a=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(n.slice(o,o+a))),o+=a}return[n,i]}else return[n,{}]}function MG(e){let t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return qe(e.z)||(r=or.create(e.z)),qe(e.Z)||(r||(r=new Rt(e.Z)),n=e.Z),qe(e.q)||(e.M=(e.q-1)*3+1),qe(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),qe(e.u)||(e.S=Qh(e.u)),[Object.keys(e).reduce((o,s)=>{let c=t(s);return c&&(o[c]=e[s]),o},{}),r,n]}function AG(){return _S||(_S=Ce.fromMillis(1555555555555)),_S}function IG(e,t){if(e.literal)return e;let r=ln.macroTokenToFormatOpts(e.val),n=ES(r,t);return n==null||n.includes(void 0)?e:n}function xS(e,t){return Array.prototype.concat(...e.map(r=>IG(r,t)))}function SS(e,t,r){return new ig(e,r).explainFromTokens(t)}function FP(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=SS(e,t,r);return[n,i,o,s]}function ES(e,t){if(!e)return null;let n=ln.create(t,e).dtFormatter(AG()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>CG(s,e,o))}var bG,vG,RP,DP,EG,_S,ig,$P=R(()=>{Gn();eg();gf();fc();hc();nS();lc();bG="missing Intl.DateTimeFormat.formatToParts support";vG="\xA0",RP=`[ ${vG}]`,DP=new RegExp(RP,"g");EG={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};_S=null;ig=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=xS(ln.parseFormat(r),t),this.units=this.tokens.map(n=>SG(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=TG(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=PG(t,this.regex,this.handlers),[i,o,s]=n?MG(n):[null,null,void 0];if(wc(n,"a")&&wc(n,"H"))throw new Co("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:o,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}});function og(e){return new cn("unsupported zone",`the zone "${e.name}" is not supported`)}function TS(e){return e.weekData===null&&(e.weekData=Yh(e.c)),e.weekData}function PS(e){return e.localWeekData===null&&(e.localWeekData=Yh(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Eu(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ce({...r,...t,old:r})}function qP(e,t,r){let n=e-t*60*1e3,i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*60*1e3;let o=r.offset(n);return i===o?[n,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function jw(e,t){e+=t*60*1e3;let r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Hw(e,t,r){return qP(mf(e),t,r)}function UP(e,t){let r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:i,day:Math.min(e.c.day,bf(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=gr.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),c=mf(o),[a,d]=qP(c,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function Af(e,t,r,n,i,o){let{setZone:s,zone:c}=r;if(e&&Object.keys(e).length!==0||t){let a=t||c,d=Ce.fromObject(e,{...r,zone:a,specificOffset:o});return s?d:d.setZone(c)}else return Ce.invalid(new cn("unparsable",`the input "${i}" can't be parsed as ${n}`))}function qw(e,t,r=!0){return e.isValid?ln.create(St.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function MS(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=hr(e.c.year,r?6:4),t?(n+="-",n+=hr(e.c.month),n+="-",n+=hr(e.c.day)):(n+=hr(e.c.month),n+=hr(e.c.day)),n}function zP(e,t,r,n,i,o){let s=hr(e.c.hour);return t?(s+=":",s+=hr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=hr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=hr(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=hr(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=hr(Math.trunc(-e.o/60)),s+=":",s+=hr(Math.trunc(-e.o%60))):(s+="+",s+=hr(Math.trunc(e.o/60)),s+=":",s+=hr(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function RG(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new ff(e);return t}function WP(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return RG(e)}}function DG(e){return Yw[e]||(Zw===void 0&&(Zw=xt.now()),Yw[e]=e.offset(Zw)),Yw[e]}function BP(e,t){let r=Mo(t.zone,xt.defaultZone);if(!r.isValid)return Ce.invalid(og(r));let n=St.fromObject(t),i,o;if(qe(e.year))i=xt.now();else{for(let a of ZP)qe(e[a])&&(e[a]=HP[a]);let s=aS(e)||cS(e);if(s)return Ce.invalid(s);let c=DG(r);[i,o]=Hw(e,c,r)}return new Ce({ts:i,zone:r,loc:n,o})}function GP(e,t,r){let n=qe(r.round)?!0:r.round,i=(s,c)=>(s=hf(s,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(s,c)),o=s=>r.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(r.unit)return i(o(r.unit),r.unit);for(let s of r.units){let c=o(s);if(Math.abs(c)>=1)return i(c,s)}return i(e>t?-0:0,r.units[r.units.length-1])}function jP(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}function Mf(e){if(Ce.isDateTime(e))return e;if(e&&e.valueOf&&Ao(e.valueOf()))return Ce.fromJSDate(e);if(e&&typeof e=="object")return Ce.fromObject(e);throw new vr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var CS,VP,HP,LG,kG,ZP,NG,OG,Zw,Yw,Ce,hc=R(()=>{ng();bS();mc();vS();eg();gf();Hh();Gn();Uw();kP();yS();$P();lS();Gh();lc();Zh();CS="Invalid DateTime",VP=864e13;HP={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},LG={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},kG={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ZP=["year","month","day","hour","minute","second","millisecond"],NG=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],OG=["year","ordinal","hour","minute","second","millisecond"];Yw={},Ce=class e{constructor(t){let r=t.zone||xt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new cn("invalid input"):null)||(r.isValid?null:og(r));this.ts=qe(t.ts)?xt.now():t.ts;let i=null,o=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[i,o]=[t.old.c,t.old.o];else{let c=Ao(t.o)&&!t.old?t.o:r.offset(this.ts);i=jw(this.ts,c),n=Number.isNaN(i.year)?new cn("invalid input"):null,i=n?null:i,o=n?null:c}this._zone=r,this.loc=t.loc||St.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,r]=jP(arguments),[n,i,o,s,c,a,d]=r;return BP({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static utc(){let[t,r]=jP(arguments),[n,i,o,s,c,a,d]=r;return t.zone=Rt.utcInstance,BP({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=oP(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=Mo(r.zone,xt.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:St.fromObject(r)}):e.invalid(og(i))}static fromMillis(t,r={}){if(Ao(t))return t<-VP||t>VP?e.invalid("Timestamp out of range"):new e({ts:t,zone:Mo(r.zone,xt.defaultZone),loc:St.fromObject(r)});throw new vr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(Ao(t))return new e({ts:t*1e3,zone:Mo(r.zone,xt.defaultZone),loc:St.fromObject(r)});throw new vr("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=Mo(r.zone,xt.defaultZone);if(!n.isValid)return e.invalid(og(n));let i=St.fromObject(r),o=vf(t,WP),{minDaysInFirstWeek:s,startOfWeek:c}=sS(o,i),a=xt.now(),d=qe(r.specificOffset)?n.offset(a):r.specificOffset,h=!qe(o.ordinal),g=!qe(o.year),v=!qe(o.month)||!qe(o.day),E=g||v,P=o.weekYear||o.weekNumber;if((E||h)&&P)throw new Co("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&h)throw new Co("Can't mix ordinal dates with month/day");let A=P||o.weekday&&!E,F,W,z=jw(a,d);A?(F=NG,W=LG,z=Yh(z,s,c)):h?(F=OG,W=kG,z=Bw(z)):(F=ZP,W=HP);let j=!1;for(let Ee of F){let Ne=o[Ee];qe(Ne)?j?o[Ee]=W[Ee]:o[Ee]=z[Ee]:j=!0}let G=A?rP(o,s,c):h?nP(o):aS(o),Y=G||cS(o);if(Y)return e.invalid(Y);let ie=A?iS(o,s,c):h?oS(o):o,[U,fe]=Hw(ie,d,n),Ae=new e({ts:U,zone:n,o:fe,loc:i});return o.weekday&&E&&t.weekday!==Ae.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Ae.toISO()}`):Ae.isValid?Ae:e.invalid(Ae.invalid)}static fromISO(t,r={}){let[n,i]=vP(t);return Af(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=_P(t);return Af(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=xP(t);return Af(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(qe(t)||qe(r))throw new vr("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,a,d,h]=FP(s,t,r);return h?e.invalid(h):Af(c,a,n,`format ${r}`,t,d)}static fromString(t,r,n={}){return e.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=CP(t);return Af(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new vr("need to specify a reason the DateTime is invalid");let n=t instanceof cn?t:new cn(t,r);if(xt.throwOnInvalid)throw new Mw(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=ES(t,St.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return xS(ln.parseFormat(t),St.fromObject(r)).map(i=>i.val).join("")}static resetCache(){Zw=void 0,Yw={}}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?TS(this).weekYear:NaN}get weekNumber(){return this.isValid?TS(this).weekNumber:NaN}get weekday(){return this.isValid?TS(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?PS(this).weekday:NaN}get localWeekNumber(){return this.isValid?PS(this).weekNumber:NaN}get localWeekYear(){return this.isValid?PS(this).weekYear:NaN}get ordinal(){return this.isValid?Bw(this.c).ordinal:NaN}get monthShort(){return this.isValid?na.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?na.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?na.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?na.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,r=6e4,n=mf(this.c),i=this.zone.offset(n-t),o=this.zone.offset(n+t),s=this.zone.offset(n-i*r),c=this.zone.offset(n-o*r);if(s===c)return[this];let a=n-s*r,d=n-c*r,h=jw(a,s),g=jw(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Eu(this,{ts:a}),Eu(this,{ts:d})]:[this]}get isInLeapYear(){return xu(this.year)}get daysInMonth(){return bf(this.year,this.month)}get daysInYear(){return this.isValid?gc(this.year):NaN}get weeksInWeekYear(){return this.isValid?_u(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?_u(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=ln.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(Rt.instance(t),r)}toLocal(){return this.setZone(xt.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=Mo(t,xt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(r||n){let o=t.offset(this.ts),s=this.toObject();[i]=Hw(s,o,t)}return Eu(this,{ts:i,zone:t})}else return e.invalid(og(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return Eu(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=vf(t,WP),{minDaysInFirstWeek:n,startOfWeek:i}=sS(r,this.loc),o=!qe(r.weekYear)||!qe(r.weekNumber)||!qe(r.weekday),s=!qe(r.ordinal),c=!qe(r.year),a=!qe(r.month)||!qe(r.day),d=c||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new Co("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new Co("Can't mix ordinal dates with month/day");let g;o?g=iS({...Yh(this.c,n,i),...r},n,i):qe(r.ordinal)?(g={...this.toObject(),...r},qe(r.day)&&(g.day=Math.min(bf(g.year,g.month),g.day))):g=oS({...Bw(this.c),...r});let[v,E]=Hw(g,this.o,this.zone);return Eu(this,{ts:v,o:E})}plus(t){if(!this.isValid)return this;let r=gr.fromDurationLike(t);return Eu(this,UP(this,r))}minus(t){if(!this.isValid)return this;let r=gr.fromDurationLike(t).negate();return Eu(this,UP(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=gr.normalizeUnit(t);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(i==="weeks")if(r){let o=this.loc.getStartOfWeek(),{weekday:s}=this;s<o&&(n.weekNumber=this.weekNumber-1),n.weekday=o}else n.weekday=1;if(i==="quarters"){let o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)}endOf(t,r){return this.isValid?this.plus({[t]:1}).startOf(t,r).minus(1):this}toFormat(t,r={}){return this.isValid?ln.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):CS}toLocaleString(t=uc,r={}){return this.isValid?ln.create(this.loc.clone(r),t).formatDateTime(this):CS}toLocaleParts(t={}){return this.isValid?ln.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;let s=t==="extended",c=MS(this,s);return c+="T",c+=zP(this,s,r,n,i,o),c}toISODate({format:t="extended"}={}){return this.isValid?MS(this,t==="extended"):null}toISOWeekDate(){return qw(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+zP(this,s==="extended",r,t,n,o):null}toRFC2822(){return qw(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return qw(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?MS(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||t)&&(n&&(i+=" "),r?i+="z":t&&(i+="ZZ")),qw(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():CS}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let r={...this.c};return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return gr.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=sP(r).map(gr.normalizeUnit),s=t.valueOf()>this.valueOf(),c=s?this:t,a=s?t:this,d=LP(c,a,o,i);return s?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(e.now(),t,r)}until(t){return this.isValid?ra.fromDateTimes(this,t):this}hasSame(t,r,n){if(!this.isValid)return!1;let i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(r,n)<=i&&i<=o.endOf(r,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let r=t.base||e.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0,i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),GP(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?GP(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new vr("min requires all arguments be DateTimes");return uS(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new vr("max requires all arguments be DateTimes");return uS(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return SS(s,t,r)}static fromStringExplain(t,r,n={}){return e.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){let{locale:n=null,numberingSystem:i=null}=r,o=St.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new ig(o,t)}static fromFormatParser(t,r,n={}){if(qe(t)||qe(r))throw new vr("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new vr(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:c,zone:a,specificOffset:d,invalidReason:h}=r.explainFromTokens(t);return h?e.invalid(h):Af(c,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return uc}static get DATE_MED(){return Ch}static get DATE_MED_WITH_WEEKDAY(){return Vx}static get DATE_FULL(){return Th}static get DATE_HUGE(){return Ph}static get TIME_SIMPLE(){return Mh}static get TIME_WITH_SECONDS(){return Ah}static get TIME_WITH_SHORT_OFFSET(){return Ih}static get TIME_WITH_LONG_OFFSET(){return Lh}static get TIME_24_SIMPLE(){return kh}static get TIME_24_WITH_SECONDS(){return Nh}static get TIME_24_WITH_SHORT_OFFSET(){return Oh}static get TIME_24_WITH_LONG_OFFSET(){return Rh}static get DATETIME_SHORT(){return Dh}static get DATETIME_SHORT_WITH_SECONDS(){return Fh}static get DATETIME_MED(){return $h}static get DATETIME_MED_WITH_SECONDS(){return Vh}static get DATETIME_MED_WITH_WEEKDAY(){return Ux}static get DATETIME_FULL(){return Uh}static get DATETIME_FULL_WITH_SECONDS(){return zh}static get DATETIME_HUGE(){return Wh}static get DATETIME_HUGE_WITH_SECONDS(){return Bh}}});var kn=R(()=>{hc();ng();bS();vS();bu();gf();fc();tS();kw();mc()});function Cu(e){return e instanceof kr?e===Zr.instance:e?.toString().toLowerCase()==="unknown"}function Jw(e){return Cu(e)?Zr.instance:e}var Zr,sg=R(()=>{kn();Zr=class{};Zr.instance=new or("Etc/UTC")});function If(e,t,r){return e<t?e-t:e>r?e-r:0}function Lf(e,t,r){return e<t?t:e>r?r:e}function Lo(e,t=!0){if(e instanceof kr)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return Zr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=Rt.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=or.create(e);if(!r.isValid){if(t)throw new AS(Xw.TimeZoneNotRecognized);return null}return r}var Xw,FG,AS,kf,IS=R(()=>{cc();sg();kn();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(Xw||(Xw={}));FG={[Xw.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},AS=class e extends Error{constructor(t,r){super(hs(FG[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};kf=class e{constructor(t){this._date=t,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(t=0,r=1,n=1,i=0,o=0,s=0,c=0,a){if(isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(c))return null;let d=Ce.local(t,r).daysInMonth,h=Ce.fromObject({day:Lf(n,1,d),year:t,month:Lf(r,1,12),hour:Lf(i,0,23),minute:Lf(o,0,59),second:Lf(s,0,59),millisecond:Lf(c,0,999)},{zone:Lo(a)});return h=h.plus({months:If(r,1,12),days:If(n,1,d),hours:If(i,0,23),minutes:If(o,0,59),seconds:If(s,0,59),milliseconds:If(c,0,999)}),new e(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=Lo(r);return t.isUnknownTimeZone||n===Zr.instance?e.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t._date.setZone(n))}static dateJSToArcadeDate(t){return new e(Ce.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Lo(r);return new e(Ce.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(Ce.fromMillis(t,{zone:Zr.instance}))}static unknownDateJSToArcadeDate(t){return new e(Ce.fromMillis(t.getTime(),{zone:Zr.instance}))}static epochToArcadeDate(t,r="system"){let n=Lo(r);return new e(Ce.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=Lo(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=Lo(r);return t.zone===Zr.instance||n===Zr.instance?e.fromParts(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t.setZone(n))}static nowToArcadeDate(t){let r=Lo(t);return new e(Ce.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(Ce.utc())}get isSystem(){return this.timeZone==="system"||this.timeZone===e.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===Zr.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let t=this._date.weekday;return t>6&&(t=0),t}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if(this._date.zone.type==="system")return"system";let t=this.zone;return t.type==="fixed"?t.fixed===0?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new e(this._date.plus(t))}diff(t,r="milliseconds"){return this._date.diff(t._date,r)[r]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,r){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:r&&!this.isUnknownTimeZone})}toFormat(t,r){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,r)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new e(this._date.toUTC())}toLocal(){return new e(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;let r=Ce.fromISO(t,{setZone:!0});return new e(r)}}});function Pt(e){return e?{remove(){e&&(e(),e=void 0)}}:$G}function VG(e){e.forEach(t=>t?.remove())}function Tu(e){return Pt(()=>VG(e))}var $G,oi=R(()=>{$G={remove:()=>{}}});function JP(){let e=LS?.getAttribute("lang"),t=globalThis.navigator?.language;return zG??e??t??"en"}function Yi(){return ag===void 0&&(ag=JP()),ag}function kS(e){return Qw.push(e),Pt(()=>Qw.splice(Qw.indexOf(e),1))}function Nf(e){return Kw.push(e),Pt(()=>Kw.splice(Kw.indexOf(e),1))}function YP(){let e=UG??JP();ag!==e&&([...Kw].forEach(t=>t(e)),ag=e,[...Qw].forEach(t=>t(e)))}var UG,ag,zG,LS,Qw,Kw,vc=R(()=>{oi();zG=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,LS=globalThis.document?.documentElement;Qw=[];Kw=[];globalThis.addEventListener?.("languagechange",YP),LS&&new MutationObserver(()=>{YP()}).observe(LS,{attributeFilter:["lang"]})});function XP(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="",r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(let n of e.match(r)||[])switch(n){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=n;break;default:n.length>=2&&n.slice(0,1)==="["&&n.slice(-1)==="]"?t+=`'${n.slice(1,-1)}'`:t+=`'${n}'`}return t}var un,cg=R(()=>{IS();vc();kn();un=class e{constructor(t,r,n){this._year=t,this._month=r,this._day=n,this.declaredRootClass="esri.core.sql.dateonly"}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(t){return t instanceof e&&t.day===this.day&&t.month===this.month&&t.year===this.year}clone(){return new e(this._year,this._month,this._day)}toDateTime(t){return Ce.fromObject({day:this.day,month:this.month,year:this.year},{zone:Lo(t)})}toDateTimeLuxon(t){return Ce.fromObject({day:this.day,month:this.month,year:this.year},{zone:Lo(t)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(t=null,r=!0){if(t===null||t==="")return this.toString();if(r&&(t=XP(t)),!t)return"";let n=this.toDateTime("unknown");return kf.dateTimeToArcadeDate(n).toFormat(t,{locale:Yi(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return kf.dateTimeToArcadeDate(t)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(t,r){return e.fromDateTime(this.toUTCDateTime().plus({[t]:r}))}toUTCDateTime(){return Ce.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){let r=Ce.fromMillis(t,{zone:Rt.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=Ce.fromSeconds(t,{zone:Rt.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromReader(t){if(!t)return null;let r=t.split("-");return r.length!==3?null:new e(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10))}static fromParts(t,r,n){let i=new e(t,r,n);return i.isValid===!1?null:i}static fromDateJS(t){return e.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return e.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,r=null){if(t===""||t===null)return null;let n=[];if(r)(r=XP(r))&&n.push(r);else if(r===null||r===""){let i=Ce.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Ce.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=Ce.fromJSDate(new Date).setZone(Lo(t));return new e(r.year,r.month,r.day)}}});var K,WG,oe,_c=R(()=>{cc();(function(e){e.InvalidFunctionParameters="InvalidFunctionParameters",e.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",e.UnsupportedSqlFunction="UnsupportedSqlFunction",e.UnsupportedOperator="UnsupportedOperator",e.UnsupportedSyntax="UnsupportedSyntax",e.UnsupportedIsRhs="UnsupportedIsRhs",e.UnsupportedIsLhs="UnsupportedIsLhs",e.InvalidDataType="InvalidDataType",e.CannotCastValue="CannotCastValue",e.FunctionNotRecognized="FunctionNotRecognized",e.InvalidTime="InvalidTime",e.InvalidParameterCount="InvalidParameterCount",e.InvalidTimeStamp="InvalidTimeStamp",e.InvalidDate="InvalidDate",e.InvalidOperator="InvalidOperator",e.IllegalInterval="IllegalInterval",e.YearMonthIntervals="YearMonthIntervals",e.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",e.MissingStatisticParameters="MissingStatisticParameters"})(K||(K={}));WG={[K.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[K.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[K.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[K.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[K.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[K.UnsupportedOperator]:"Unsupported operator - {operator}",[K.UnsupportedSyntax]:"Unsupported syntax - {node}",[K.UnsupportedSqlFunction]:"Sql function not found = {function}",[K.InvalidDataType]:"Invalid sql data type",[K.InvalidDate]:"Invalid date encountered",[K.InvalidOperator]:"Invalid operator encountered",[K.InvalidTime]:"Invalid time encountered",[K.IllegalInterval]:"Illegal interval",[K.FunctionNotRecognized]:"Function not recognized",[K.InvalidTimeStamp]:"Invalid timestamp encountered",[K.InvalidParameterCount]:"Invalid parameter count for call to {name}",[K.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[K.YearMonthIntervals]:"Year-Month Intervals not supported",[K.CannotCastValue]:"Cannot cast value to the required data type"},oe=class e extends Error{constructor(t,r){super(hs(WG[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function QP(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var vn,lg=R(()=>{kn();vn=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=Ce.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return QP(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return QP(this.toDateTime().offset%60)}toMilliseconds(){return this.toDateTime().toMillis()}get hour(){return this.toDateTime().hour}get minute(){return this.toDateTime().minute}get second(){return this.toDateTime().second}get day(){return this.toDateTime().day}get month(){return this.toDateTime().month}get year(){return this.toDateTime().year}startOfDay(){return e.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(t){return new e(Ce.fromJSDate(t).toISO({includeOffset:!0}))}static fromDateTime(t){return new e(t.toISO({includeOffset:!0}))}static fromParts(t,r,n=0,i=0,o=0,s=0,c=0,a=!1,d=0,h=0){let g=`${t.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,v="";s<10&&(v="0");let E=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${v+s.toString()}`;c!==0&&(E+="."+c.toString().padStart(3,"0"));let P=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new e(g+"T"+E+P)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let t=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return t&&(t=t.replace(".000","")),t}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(t){let r=this.toDateTime().plus(t);return e.fromDateTime(r)}}});function O(e,t,r,n){var i,o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}var gt=R(()=>{});var ey,NS=R(()=>{ey="20241213"});var Mt,xc=R(()=>{rt();ms();NS();Mt={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(L8(Mt,globalThis.esriConfig,!0),delete Mt.has),!Mt.assetsPath){{let e="4.32.0";Mt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${ey}/assets`}Mt.defaultAssetsPath=Mt.assetsPath}});function BG(e,t,...r){console[e](`[${t}]`,...r)}function GG(...e){return D8(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var KP,ot,it=R(()=>{xc();rt();cc();KP={info:0,warn:1,error:2,none:3},ot=class e{constructor(t){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},t.level!=null&&(this.level=t.level),t.writer!=null&&(this.writer=t.writer),this._module=t.module,e._loggers.set(this.module,this);let r=this.module.lastIndexOf(".");r!==-1&&(this._parent=e.getLogger(this.module.slice(0,r)))}get module(){return this._module}get parent(){return this._parent}error(...t){this._log("error","always",...t)}warn(...t){this._log("warn","always",...t)}info(...t){this._log("info","always",...t)}errorOnce(...t){this._log("error","once",...t)}warnOnce(...t){this._log("warn","once",...t)}infoOnce(...t){this._log("info","once",...t)}errorOncePerTick(...t){this._log("error","oncePerTick",...t)}warnOncePerTick(...t){this._log("warn","oncePerTick",...t)}infoOncePerTick(...t){this._log("info","oncePerTick",...t)}get test(){}static get test(){}static getLogger(t){return t=typeof t!="string"?t.declaredClass:t,e._loggers.get(t)||new e({module:t})}_log(t,r,...n){if(this._matchLevel(t)){if(r!=="always"&&!e._throttlingDisabled){let i=GG(n),o=this._loggedMessages[t].get(i);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=e._tickCounter)return;this._loggedMessages[t].set(i,e._tickCounter),e._scheduleTickCounterIncrement()}for(let i of Mt.log.interceptors)if(i(t,this.module,...n))return;this._inheritedWriter()(t,this.module,...n)}}_parentWithMember(t,r){let n=this;for(;n!=null;){let i=n[t];if(i!=null)return i;n=n.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",BG)}_matchLevel(t){let r=Mt.log.level||"warn";return KP[this._parentWithMember("level",r)]<=KP[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};ot._loggers=new Map,ot._tickCounter=0,ot._tickCounterScheduled=!1,ot._throttlingDisabled=!1});function ty(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var OS=R(()=>{});function jG(e){return e==null?e:new Date(e)}function qG(e){return e==null?e:!!e}function HG(e){return e==null?e:e.toString()}function $S(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function ZG(e){return e==null?e:Math.round(parseFloat(e))}function YG(e){return null}function tM(e,t){return r=>{let n=e(r);return t.step!=null&&(n=Math.round(n/t.step)*t.step),t.min!=null&&(n=Math.max(t.min,n)),t.max!=null&&(n=Math.min(t.max,n)),n}}function rM(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function ry(e,t){return t!=null&&e&&!(t instanceof e)}function nM(e){return e&&"isCollection"in e}function eM(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function JG(e,t){if(!t?.constructor||!nM(t.constructor))return RS(e,t)?t:new e(t);let r=eM(e.prototype.itemType),n=eM(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(RS(e,t),t):new e(t):t}function RS(e,t){return!!rM(t)&&(Of().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+ny(e)+"'"),!0)}function VS(e,t){return t==null?t:nM(e)?JG(e,t):ry(e,t)?RS(e,t)?t:new e(t):t}function ny(e){return e?.prototype?.declaredClass||"unknown"}function QG(e){switch(e){case Number:return t=>$S(t);case ai:return ZG;case Boolean:return qG;case String:return HG;case Date:return jG;case dg:return YG;default:return ty(XG,e,()=>VS.bind(null,e))}}function si(e,t){let r=QG(e);return arguments.length===1?r:r(t)}function Rf(e,t,r){return arguments.length===1?Rf.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function iM(e,t){return arguments.length===1?Rf(r=>si(e,r)):Rf(r=>si(e,r),t)}function oM(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>oM(e,t-1,n)):e(r)}function ug(e,t,r){if(arguments.length===2)return o=>ug(e,t,o);if(!r)return r;r=oM(e,t,r);let n=t,i=r;for(;n>0&&Array.isArray(i);)n--,i=i[0];if(i!==void 0)for(let o=0;o<n;o++)r=[r];return r}function sM(e,t,r){return arguments.length===2?ug(n=>si(e,n),t):ug(n=>si(e,n),t,r)}function iy(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function oy(e,t){if(arguments.length===2)return oy(e).call(null,t);let r=new Set,n=e.filter(c=>typeof c!="function"),i=e.filter(c=>typeof c=="function");for(let c of e)typeof c!="string"&&typeof c!="number"||r.add(c);let o=null,s=null;return(c,a)=>{if(c==null)return c;let d=typeof c,h=d==="string"||d==="number";return h&&(r.has(c)||i.some(g=>d==="string"&&g===String||d==="number"&&g===Number))||d==="object"&&i.some(g=>!ry(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),Of().error("Accessor#set",`'${c}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof c=="object"&&i.length?(s||(s=i.map(g=>ny(g)).join(", ")),Of().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):Of().error("Accessor#set",`'${c}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function ko(e,t){if(arguments.length===2)return ko(e).call(null,t);let r={},n=[],i=[];for(let a in e.typeMap){let d=e.typeMap[a];r[a]=si(d),n.push(ny(d)),i.push(a)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,c=typeof e.key=="string"?a=>a[e.key]:e.key;return a=>{if(e.base&&!ry(e.base,a)||a==null)return a;let d=c(a)||e.defaultKeyValue,h=r[d];if(!h)return Of().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${s()})`),null;if(!ry(e.typeMap[d],a))return a;if(typeof e.key=="string"&&!rM(a)){let g={};for(let v in a)v!==e.key&&(g[v]=a[v]);return h(g)}return h(a)}}function aM(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function US(e){switch(e.type){case"native":return si(e.value);case"array":return Rf(US(e.value));case"one-of":return KG(e);default:return null}}function KG(e){let t=null;return(r,n)=>FS(r,e)?r:(t==null&&(t=DS(e)),Of().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function DS(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case ai:return"integer";case Date:return"date";case dg:return"null";default:return ny(e.value)}case"array":return`array of ${DS(e.value)}`;case"one-of":{let t=e.values.map(r=>DS(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function FS(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case ai:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case dg:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!FS(r,t.value));case"one-of":return t.values.some(r=>FS(e,r))}}var Of,XG,ai,dg,Ji=R(()=>{rt();it();OS();Of=()=>ot.getLogger("esri.core.accessorSupport.ensureTypes");XG=new WeakMap;ai=class{},dg=class{}});function Ci(e){return e.__accessor__??null}function lM(e,t){return e?.metadata?.[t]!=null}function Df(e,t,r){return r?sy(e,t,{policy:r,path:""}):sy(e,t,null)}function sy(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,c="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,c=r.policy(s)),c==="replace"||c==="replace-arrays"&&Array.isArray(n[o]))return n[o]=t[o],n;if(n[o]===void 0)return n[o]=Ye(t[o]),n;let a=n[o],d=t[o];if(a===d)return n;if(Array.isArray(d)||Array.isArray(n))a=a?Array.isArray(a)?n[o]=a.slice():n[o]=[a]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(h=>{a.includes(h)||a.push(h)}));else if(d&&typeof d=="object")if(r){let h=r.path;r.path=s,n[o]=sy(a,d,r),r.path=h}else n[o]=sy(a,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function ay(e){return Array.isArray(e)?e:e.split(".")}function cM(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function ej(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...cM(r));return t}return cM(e)}function zS(e,t,r,n){let i=ej(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return Tu(o)}return n(e,i[0],r)}var ia=R(()=>{oi();mr()});function uM(e,t){let r=e[e.length-1]==="?"?e.slice(0,-1):e;if(t.getItemAt!=null||Array.isArray(t)){let i=parseInt(r,10);if(!isNaN(i))return Array.isArray(t)?t[i]:t.at(i)}let n=Ci(t);return lM(n,r)?n.get(r):t[r]}function dM(e,t,r){if(e==null)return e;let n=uM(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:dM(n,t,r+1)}function Pu(e,t,r=0){return typeof t!="string"||t.includes(".")?dM(e,ay(t),r):uM(t,e)}function gs(e,t){return Pu(e,t)}function WS(e,t){return Pu(t,e)!==void 0}var Mu=R(()=>{ia()});function Sc(e){let t=e.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(let n in t)t[n]=Ye(t[n]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function Ff(e,t){let r=Sc(e),n=r[t];return n||(n=r[t]={}),n}function pM(e,t){return Df(e,t,rj)}function rj(e){return tj.test(e)?"replace":"merge"}var tj,$f=R(()=>{mr();ia();tj=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function nj(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(ji(n,t)??"").toString())}var Vf,BS=R(()=>{ms();Vf=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&nj(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var Ge,Nn=R(()=>{mr();it();BS();Ge=class e extends Vf{constructor(t,r,n){super(t,r,n)}toJSON(){if(this.details!=null)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(t,r)=>{if(r&&typeof r=="object"&&typeof r.toJSON=="function")return r;try{return Ye(r)}catch{return"[object]"}}))}}catch(t){throw ot.getLogger("esri.core.Error").error(t),t}return{name:this.name,message:this.message,details:this.details}}static fromJSON(t){return new e(t.name,t.message,t.details)}};Ge.prototype.type="error"});function Uf(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Uf(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Uf(gs(e,i),o,r)}let n=e.__accessor__;n!=null&&ij(t,n),e[t]=r}}function ij(e,t){if(me("esri-unknown-property-errors")&&!oj(e,t))throw new Ge("set:unknown-property",sj(e,t))}function oj(e,t){return t.metadata[e]!=null}function sj(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var GS=R(()=>{Nn();rt();it();Mu()});function V(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let n=Object.getOwnPropertyDescriptor(t,r),i=Ff(t,r);n&&(n.get||n.set?(i.get=n.get||i.get,i.set=n.set||i.set):"value"in n&&("value"in e&&ot.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),i.value=e.value=n.value)),e.readOnly!=null&&(i.readOnly=e.readOnly);let o=e.aliasOf;if(o){let a=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,h;i.dependsOn=[a],i.get=function(){let g=gs(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=gs(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Uf(this,a,g)})}let s=e.type,c=e.types;if(!i.cast){let a;s?a=aj(s):c&&(a=Array.isArray(c)?Rf(ko(c[0])):ko(c)),e.cast=cj(e.cast,a)}pM(i,e),e.range&&(i.cast=tM(i.cast,e.range))}}function cy(e,t,r){let n=Ff(e,r);n.json||(n.json={});let i=n.json;return t!==void 0&&(i.origins||(i.origins={}),i.origins[t]||(i.origins[t]={}),i=i.origins[t]),i}function aj(e){let t=0,r=e;if(aM(e))return US(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(iy(n))return t===0?oy(n):ug(oy(n),t);if(t===1)return iM(n);if(t>1)return sM(n,t);let i=e;return i.from?i.from:si(i)}function cj(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var yt=R(()=>{it();Ji();Mu();$f();GS()});var ly,jS=R(()=>{ly=Symbol("Accessor-beforeDestroy")});var dn,pg=R(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(dn||(dn={}))});var bt,uy=R(()=>{(function(e){e[e.Dirty=1]="Dirty",e[e.Overridden=2]="Overridden",e[e.Computing=4]="Computing",e[e.NonNullable=8]="NonNullable",e[e.HasDefaultValue=16]="HasDefaultValue",e[e.DepTrackingInitialized=32]="DepTrackingInitialized",e[e.AutoTracked=64]="AutoTracked",e[e.ExplicitlyTracking=128]="ExplicitlyTracking"})(bt||(bt={}))});var ws,fg=R(()=>{ws=class{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.accessed?.clear(),this.clear()}onAccessed(t){this._observer!=null&&t!==this._observer&&(this.accessed==null&&(this.accessed=new Set),this.accessed.add(t))}onTrackingEnd(){this._observer!=null&&(this.clear(),this.accessed!=null&&(this._handles==null&&(this._handles=[]),this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(this._handles!=null){for(let t=0;t<this._handles.length;++t)this._handles[t].remove();this._handles.length=0}}}});function Ke(e){hg.onAccessed(e)}function No(e,t,r){if(dy)return qS(e,t,r);let n=null;return hM(e),n=t.call(r),gM(),n}function mM(e,t){return No(fy,e,t)}function qS(e,t,r){let n=dy;dy=!0,hM(e);let i=null;try{i=t.call(r)}catch(o){py&&ot.getLogger("esri.core.accessorSupport.tracking").error(o)}return gM(),dy=n,i}function hM(e){hg=e,mg.push(e)}function gM(){let e=mg.length;if(e>1){let t=mg.pop();hg=mg[e-2],t.onTrackingEnd()}else if(e===1){let t=mg.pop();hg=fy,t.onTrackingEnd()}else hg=fy}function HS(e,t){if(t.flags&bt.DepTrackingInitialized)return;t.flags|=bt.DepTrackingInitialized;let r=py;py=!1,t.flags&bt.AutoTracked?qS(t.trackingTarget,t.metadata.get,e):ZS(e,t),py=r}function ZS(e,t){t.flags&bt.ExplicitlyTracking||(t.flags|=bt.ExplicitlyTracking,qS(t.trackingTarget,()=>{let r=t.metadata.dependsOn||lj;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=ay(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=fM(s,i[o],o!==i.length-1)}else fM(e,n,!1)}),t.flags&=~bt.ExplicitlyTracking)}function fM(e,t,r){let n=t[t.length-1]==="?"?t.slice(0,-1):t;if(e.getItemAt!=null||Array.isArray(e)){let o=parseInt(n,10);if(!isNaN(o))return Array.isArray(e)?e[o]:e.at(o)}let i=Ci(e);if(i){let o=i.propertiesByName.get(n);o&&(Ke(o),HS(e,o))}return r?e[n]:void 0}var fy,mg,hg,dy,py,lj,Au=R(()=>{rt();it();ia();uy();fg();fy=new ws,mg=[],hg=fy;dy=!1,py=!1;lj=[]});function wM(e){if(e.json&&e.json.origins){let t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(let n in r)if(t[n]){let i=t[n];r[n].forEach(o=>{t[o]=i}),delete t[n]}}}var yM=R(()=>{});var gg,bM=R(()=>{BS();gg=class extends Vf{constructor(t,r,n){super(t,r,n)}};gg.prototype.type="warning"});function my(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var YS=R(()=>{});function XS(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||pj(e)&&Ks("read.reader",QS(e),t))}function QS(e){let t=e.ndimArray??0;if(t>1)return dj(e);if(t===1)return vM(e);if("type"in e&&xM(e.type)){let r=e.type.prototype?.itemType?.Type,n=vM(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let c=n(i,o,s);return c&&new e.type(c)}}return KS(e)}function KS(e){return"type"in e?uj(e.type):fj(e.types)}function uj(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void JS().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${i}'`);let o=new e;return o.read(t,n),o}:e.fromJSON}function _M(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>_M(e,i,r,n-1)):e(t,void 0,r)}function dj(e){let t=KS(e),r=_M.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let c=n,a=i;for(;c>0&&Array.isArray(a);)c--,a=a[0];if(a!==void 0)for(let d=0;d<c;d++)i=[i];return i}}function vM(e){let t=KS(e);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let c of r){let a=t(c,void 0,i);a!==void 0&&s.push(a)}return s}let o=t(r,void 0,i);return o!==void 0?[o]:void 0}}function xM(e){if(!my(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?e4(t.Type):SM(t.Type))}function pj(e){return"types"in e?SM(e.types):e4(e.type)}function e4(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||xM(e))}function SM(e){for(let t in e.typeMap)if(!e4(e.typeMap[t]))return!1;return!0}function fj(e){let t=null,r=e.errorContext??"type",n=e.validate;return(i,o,s)=>{if(i==null)return i;let c=typeof i;if(c!=="object")return void JS().error(`Expected JSON value of type 'object' to deserialize, but got '${c}'`);t||(t=mj(e));let a=e.key;if(typeof a!="string")return;let d=i[a],h=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!h){let v=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new gg(`${r}:unsupported`,v,{definition:i,context:s})),void JS().error(v)}let g=new h;return g.read(i,s),n?n(g):g}}function mj(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=Sc(n.prototype);if(typeof e.key=="function")continue;let o=i[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&o.json.type.length===1&&typeof o.json.type[0]=="string"){t[o.json.type[0]]=n;continue}let s=o.json?.write;if(!s?.writer){t[r]=n;continue}let c=s.target,a=typeof c=="string"?c:e.key,d={};s.writer(r,d,a),d[a]&&(t[d[a]]=n)}return t}var JS,t4=R(()=>{it();ms();bM();$f();YS();JS=()=>ot.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function PM(e){if(e.json||(e.json={}),CM(e.json),TM(e.json),EM(e.json),e.json.origins)for(let t in e.json.origins)CM(e.json.origins[t]),TM(e.json.origins[t]),EM(e.json.origins[t]);return!0}function EM(e){e.name&&(e.read&&typeof e.read=="object"?e.read.source===void 0&&(e.read.source=e.name):e.read={source:e.name},e.write&&typeof e.write=="object"?e.write.target===void 0&&(e.write.target=e.name):e.write={target:e.name})}function CM(e){typeof e.read=="boolean"?e.read={enabled:e.read}:typeof e.read=="function"?e.read={enabled:!0,reader:e.read}:e.read&&typeof e.read=="object"&&e.read.enabled===void 0&&(e.read.enabled=!0)}function TM(e){typeof e.write=="boolean"?e.write={enabled:e.write}:typeof e.write=="function"?e.write={enabled:!0,writer:e.write}:e.write&&typeof e.write=="object"&&e.write.enabled===void 0&&(e.write.enabled=!0)}var MM=R(()=>{});function r4(e,t){if(!t.write||t.write.writer||t.write.enabled===!1&&!t.write.overridePolicy)return;let r=e?.ndimArray??0;e&&(r===1||"type"in e&&my(e.type))?t.write.writer=yj:r>1?t.write.writer=bj(r):t.types?Array.isArray(t.types)?t.write.writer=gj(t.types[0]):t.write.writer=hj(t.types):t.write.writer=wg}function hj(e){return(t,r,n,i)=>t?AM(t,e,i)?wg(t,r,n,i):void 0:wg(t,r,n,i)}function AM(e,t,r){for(let n in t.typeMap)if(e instanceof t.typeMap[n])return!0;if(r?.messages){let n=t.errorContext??"type",i=`Values of type '${(typeof t.key!="function"?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&e&&r.messages.push(new Ge(`${n}:unsupported`,i,{definition:e,context:r})),ot.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function gj(e){return(t,r,n,i)=>!t||!Array.isArray(t)?wg(t,r,n,i):wg(t.filter(o=>AM(o,e,i)),r,n,i)}function wg(e,t,r,n){Ks(r,hy(e,n),t)}function hy(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?wj(e):e}function wj(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function yj(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>hy(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[hy(e,n)],Ks(r,i,t)}function IM(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>IM(n,t,r-1)):hy(e,t)}function bj(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=IM(t,i,e);let s=e,c=o;for(;s>0&&Array.isArray(c);)s--,c=c[0];if(c!==void 0)for(let a=0;a<s;a++)o=[o]}Ks(n,o,r)}}var LM=R(()=>{Nn();it();ms();YS()});function kM(e,t){return i4(e,"any",t?.origin)}function gy(e,t){return i4(e,"read",t?.origin)}function NM(e,t){return i4(e,"write",t?.origin)}function i4(e,t,r){let n=e?.json;if(n?.origins&&r){let i;i=r==="link-chart"?n.origins[r]&&(t==="any"||t in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],i&&(t==="any"||t in i)&&(n=i)}return n}function vj(e){let t=_j(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?xj(n):t;XS(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),r4(i,n)}XS(t,e.json,!0),r4(t,e.json)}function _j(e){return e.json.types?n4(e.json):e.type?OM(e):n4(e)}function xj(e){return e.type?OM(e):n4(e)}function OM(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!iy(r);)r=r[0],t++;return{type:r,ndimArray:t}}function n4(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function RM(e){PM(e)&&(wM(e),vj(e))}var wy=R(()=>{Ji();yM();t4();MM();LM()});function Le(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,Ej(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!o4.has(i.initialize)&&(o4.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!s4.has(i.destroy)&&(s4.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);o4.clear(),s4.clear();let o=class extends t{constructor(...c){if(super(...c),this.constructor===o&&typeof this.postscript=="function"){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let a=r.length-1;a>=0;a--)r[a].call(this)}}),n.length){let a=!1,d=this[ly];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!a){a=!0,d.call(this);for(let h=0;h<n.length;h++)n[h].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};o.__accessorMetadata__=Sc(t.prototype),o.prototype.declaredClass=e;let s=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(o,"name",{value:s,configurable:!0}),o}}function Sj(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;r.mutable&&Ke(n);let i=r.store;return i.has(e)?i.get(e):n.metadata.value}:function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n!==void 0)return n.getComputed(r)}}function Ej(e){let t=e.prototype,r=Sc(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];RM(o),n[i]={enumerable:!0,configurable:!0,get:Sj(i,o),set(s){let c=this.__accessor__;if(c!==void 0){if(c.mutable)return c.initialized&&o.readOnly?DM("read-only",i):c.lifecycle===dn.CONSTRUCTED&&o.constructOnly?DM("construct-only",i):void c.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(e.prototype,n)}var o4,s4,DM,ft=R(()=>{rt();it();jS();pg();$f();Au();wy();o4=new Set,s4=new Set;DM=(e,t)=>{ot.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function Cj(e,t,r=!1){let n=`\u{1F6D1} DEPRECATED - ${t}`;if(!r)return void e.warn(n);let i=FM.get(e);i||(i=new Set,FM.set(e,i)),i.has(t)||(i.add(t),e.warn(n))}function $M(e,t,r={}){if(me("esri-deprecation-warnings")){let{moduleName:n}=r;Tj(e,`Function: ${(n?n+"::":"")+t+"()"}`,r)}}function Tj(e,t,r={}){if(me("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,c=t;n&&(c+=`
1
+ "use strict";(()=>{var JU=Object.defineProperty;var hT=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var R=(e,t)=>()=>(e&&(t=e(e=0)),t);var gT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qs=(e,t)=>{for(var r in t)JU(e,r,{get:t[r],enumerable:!0})};function ZW(e,t){let r=e;for(;r;){if(r===t)return!0;if(!r.parentNode)return!1;r.parentNode instanceof ShadowRoot?r=r.parentNode.host:r=r.parentNode}return!1}function YW(e,t,r){let{subscribe:n}=JW(t);return n(i=>{i.some(s=>ZW(e,s.target))&&r()})}function JW(e){let t=e.join(","),r=Rx[t];if(r!==void 0)return r;let n=new Set,i=new MutationObserver(s=>n.forEach(c=>c(s)));globalThis.document&&i.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let o={subscribe(s){return n.add(s),{remove:()=>{n.delete(s),n.size===0&&(i.disconnect(),Rx[t]=void 0)}}}};return Rx[t]=o,o}function XW(e,t){let r=e;for(;r;){let n=r.closest?.(t);if(n)return n;let i=r.getRootNode?.();if(i===globalThis.document)return null;r=i.host}return null}function QW(e,t,r){return XW(e,`[${t}]`)?.getAttribute(t)??r}function Ot(e,t,...r){try{return e?.call(t,...r)}catch(n){console.error(n,e)}}async function xh(e,t,...r){try{let n=e?.call(t,...r);return n instanceof Promise?await n:n}catch(n){console.error(n,e)}}async function o8(e,t,r=""){let n=`${t}/${r}`,i=`${n}${e}.json`;return Dx[i]??(Dx[i]=s8(e,n)),await Dx[i]}async function s8(e,t){let r=`${t}${e}.json`;try{let n=await fetch(r);if(n.ok)return await n.json()}catch(n){return console.error(n),{}}return e===Sw?{}:await s8(Sw,t)}function Fx(e,t){let r=QW(e,"lang",globalThis.navigator?.language||Sw);return{lang:r,t9nLocale:a8(r,t)}}function a8(e,t){let[r,n]=e.split("-"),i=r.toLowerCase(),o=i;return n&&(o=`${i}-${n.toUpperCase()}`),o=tB[o]??o,t&&o==="nb"?"no":eB.has(o)?o:n?a8(i):Sw}function c8(e,t,r,n,i){let o,s=()=>void rB(e,t,n,i).then(c=>{(o?.lang!==c.lang||o.t9nLocale!==c.t9nLocale||o.t9nStrings!==c.t9nStrings)&&r(c),o=c}).catch(console.error);return s(),YW(e,["lang"],s)}async function rB(e,t,r=e.tagName.toLowerCase().split("-").slice(1).join("-"),n){let{lang:i,t9nLocale:o}=Fx(e,n),s=`${t}/${r}/t9n`,a=r===null?{}:await o8(o,s,"messages.");if(r!==null&&Object.keys(a).length===0){let d=`${r}.t9n.`;a=await o8(o,s,d)}return{lang:i,t9nLocale:o,t9nStrings:a}}function l8(e,t){let r=t>iB?oB:t/sB,n=0,i=setInterval(()=>{n+=r,n>=t&&(clearInterval(i),e())},r);return i}function u8(e){return e!==void 0}var xo,Rx,KW,eB,Sw,tB,Dx,Ew,nB,iB,oB,sB,So=R(()=>{"use strict";xo=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};Rx={};KW=["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","no","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],eB=new Set(KW),Sw="en",tB={pt:"pt-PT",no:"nb",zh:"zh-CN"};Dx={};Ew=e=>e.replace(nB,(t,r)=>`${r===0?"":"-"}${t.toLowerCase()}`),nB=/[A-Z]+(?![a-z])|[A-Z]/gu;iB=4e3,oB=2e3,sB=4});function me(e){return typeof oc[e]=="function"?oc[e]=oc[e](globalThis):oc[e]}var oc,rt=R(()=>{oc=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},me.add=(e,t,r,n)=>{(n||oc[e]===void 0)&&(oc[e]=t),r&&me(e)},me.cache=oc,me.add("big-integer-warning-enabled",!0),me.add("esri-deprecation-warnings",!0),me.add("esri-tests-disable-screenshots",!1),me.add("esri-tests-use-full-window",!1),me.add("esri-tests-post-to-influx",!0),me.add("esri-cim-animations-enable-status","enabled"),me.add("esri-cim-animations-spotlight",!1),me.add("esri-cim-animations-freeze-time",!1),me.add("enable-feature:multiple-highlights",!1),(()=>{me.add("host-webworker",globalThis.WorkerGlobalScope!==void 0&&self instanceof globalThis.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(me.add("host-browser",e),me.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),me.add("dom",e),me("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(me.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),me.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),me.add("khtml",n.includes("Konqueror")?i:void 0),me.add("edge",parseFloat(r.split("Edge/")[1])||void 0),me.add("opr",parseFloat(r.split("OPR/")[1])||void 0),me.add("webkit",!me("wp")&&!me("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),me.add("chrome",!me("edge")&&!me("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),me.add("android",!me("wp")&&parseFloat(r.split("Android ")[1])||void 0),me.add("safari",!n.includes("Safari")||me("wp")||me("chrome")||me("android")||me("edge")||me("opr")?void 0:parseFloat(n.split("Version/")[1])),me.add("mac",n.includes("Macintosh")),!me("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",c=parseFloat(s.replace(/_/,".").replaceAll("_",""));me.add(o,c),me.add("ios",c)}me("webkit")||(!r.includes("Gecko")||me("wp")||me("khtml")||me("edge")||me.add("mozilla",i),me("mozilla")&&me.add("ff",parseFloat(r.split("Firefox/")[1]||r.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&me.add("esri-mobile",t),r&&me.add("esri-iPhone",r),me.add("esri-geolocation",!!navigator.geolocation)}me.add("esri-wasm","WebAssembly"in globalThis),me.add("esri-performance-mode-frames-between-render",20),me.add("esri-force-performance-mode",!1),me.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),me.add("wasm-simd",()=>{let e=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(e))}),me.add("esri-atomics","Atomics"in globalThis),me.add("esri-workers","Worker"in globalThis),me.add("web-feat:cache","caches"in globalThis),me.add("esri-workers-arraybuffer-transfer",!me("safari")||Number(me("safari"))>=12),me.add("workers-pool-size",8),me.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),me.add("featurelayer-simplify-payload-size-factors",[1,1,4]),me.add("featurelayer-fast-triangulation-enabled",!0),me.add("featurelayer-animation-enabled",!0),me.add("featurelayer-snapshot-enabled",!0),me.add("featurelayer-snapshot-point-min-threshold",8e4),me.add("featurelayer-snapshot-point-max-threshold",4e5),me.add("featurelayer-snapshot-point-coverage",.1),me.add("featurelayer-query-max-depth",4),me.add("featurelayer-query-pausing-enabled",!1),me.add("featurelayer-advanced-symbols",!1),me.add("featurelayer-pbf",!0),me.add("featurelayer-pbf-statistics",!1),me.add("feature-layers-workers",!0),me.add("feature-polyline-generalization-factor",1),me.add("mapview-transitions-duration",200),me.add("mapview-essential-goto-duration",200),me.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),me.add("mapserver-pbf-version-support",10.81),me.add("mapservice-popup-identify-max-tolerance",20),me("host-webworker")||me("host-browser")&&(me.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),me.add("esri-image-decode",()=>{if("decode"in new Image){let e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then(()=>{me.add("esri-image-decode",!0,!0,!0)}).catch(()=>{me.add("esri-image-decode",!1,!0,!0)})}return!1}),me.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});var yu,Hr=R(()=>{yu=class e{constructor(t=1){this._seed=t}set seed(t){this._seed=t??Math.random()*e._m}getInt(){return this._seed=(e._a*this._seed+e._c)%e._m,this._seed}getFloat(){return this.getInt()/(e._m-1)}getIntRange(t,r){return Math.round(this.getFloatRange(t,r))}getFloatRange(t,r){let n=r-t;return t+this.getInt()/e._m*n}};yu._m=2147483647,yu._a=48271,yu._c=0});function sc(e,t,r){if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function $x(e,t,r,n){n=n||d8;let i=Math.max(0,n.last-10);for(let s=i;s<r;++s)if(e[s]===t)return n.last=s,s;let o=Math.min(i,r);for(let s=0;s<o;++s)if(e[s]===t)return n.last=s,s;return-1}function p8(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;Eo.clear();for(let c=0;c<n;++c)Eo.add(t[c]);i=i||d8;let s=Math.max(0,i.last-10);for(let c=s;c<r;++c)if(Eo.has(e[c])&&(o?.push(e[c]),Eo.delete(e[c]),e[c]=e[r-1],--r,--c,Eo.size===0||r===0))return Eo.clear(),r;for(let c=0;c<s;++c)if(Eo.has(e[c])&&(o?.push(e[c]),Eo.delete(e[c]),e[c]=e[r-1],--r,--c,Eo.size===0||r===0))return Eo.clear(),r;return Eo.clear(),r}function f8(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function m8(e,t){return e!=null}var aB,ece,Sh,d8,Eo,tce,ac=R(()=>{Hr();aB=1.5,ece=1/aB;Sh=class{constructor(){this.last=0}},d8=new Sh;Eo=new Set;tce=new yu});function h8(e){return e?.constructor?.name==="Int8Array"}function g8(e){return e?.constructor?.name==="Uint8Array"}function w8(e){return e?.constructor?.name==="Uint8ClampedArray"}function y8(e){return e?.constructor?.name==="Int16Array"}function b8(e){return e?.constructor?.name==="Uint16Array"}function v8(e){return e?.constructor?.name==="Int32Array"}function _8(e){return e?.constructor?.name==="Uint32Array"}function x8(e){return e?.constructor?.name==="Float32Array"}function S8(e){return e?.constructor?.name==="Float64Array"}var E8=R(()=>{rt()});function Pw(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&Pw(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function Ye(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=A8(e);if(t!=null)return t;if(T8(e))return e.clone();if(P8(e))return e.map(Ye);if(M8(e))throw new Error("Trying to clone an unclonable Accessor instance");let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=Ye(e[n]);return r}function Tw(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=A8(e);if(t!=null)return t;if(P8(e)){let n=!0,i=e.map(o=>{let s=Tw(o);return o!=null&&s==null&&(n=!1),s});return n?i:null}if(T8(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(M8(e))return null;let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=Tw(i);if(i!=null&&o==null)return null;r[n]=o}return r}function T8(e){return typeof e.clone=="function"}function P8(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function M8(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function C8(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function A8(e){if(h8(e)||g8(e)||w8(e)||y8(e)||b8(e)||v8(e)||_8(e)||x8(e)||S8(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,Ye(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(Ye(r));return t}return null}function Eh(e,t){return e===t||typeof e=="number"&&isNaN(e)&&typeof t=="number"&&isNaN(t)||typeof e?.getTime=="function"&&typeof t?.getTime=="function"&&e.getTime()===t.getTime()||!1}function I8(e,t){return e===t||(e==null||typeof e=="string"?e===t:typeof e=="number"?e===t||typeof t=="number"&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&sc(e,t):e instanceof Set?t instanceof Set&&lB(e,t):e instanceof Map?t instanceof Map&&uB(e,t):!!C8(e)&&C8(t)&&cB(e,t))}function cB(e,t){if(e===null||t===null)return!1;let r=Object.keys(e);if(t===null||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}function lB(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function uB(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let i=t.get(r);if(i!==n||i===void 0&&!t.has(r))return!1}return!0}var mr=R(()=>{ac();E8()});function L8(e,t,r=!1){return N8(e,t,r)}function ji(e,t){if(t!=null)return t[e]||k8(e.split("."),!1,t)}function Ks(e,t,r){let n=e.split("."),i=n.pop(),o=k8(n,!0,r);o&&i&&(o[i]=t)}function k8(e,t,r){let n=r;for(let i of e){if(n==null)return;if(!(i in n)){if(!t)return;n[i]={}}n=n[i]}return n}function N8(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=n[i],s=t[i];return o===s?n:o===void 0?(n[i]=Ye(s),n):(Array.isArray(s)||Array.isArray(n)?(o=o?Array.isArray(o)?n[i]=o.slice():n[i]=[o]:n[i]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(c=>{o.includes(c)||o.push(c)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=N8(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var ms=R(()=>{mr()});function O8(e){return e??""}function hs(e,t){return t?e.replaceAll(dB,typeof t=="object"?(r,n)=>O8(ji(n,t)):(r,n)=>O8(t(n))):e}function R8(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function D8(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var dB,cc=R(()=>{ms();dB=/\{([^}]+)\}/g});var ea,Mw,Aw,Iw,Co,ff,vr,To,lc=R(()=>{ea=class extends Error{},Mw=class extends ea{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},Aw=class extends ea{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},Iw=class extends ea{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Co=class extends ea{},ff=class extends ea{constructor(t){super(`Invalid unit ${t}`)}},vr=class extends ea{},To=class extends ea{constructor(){super("Zone is an abstract class")}}});var ke,Po,Si,uc,Ch,Vx,Th,Ph,Mh,Ah,Ih,Lh,kh,Nh,Oh,Rh,Dh,Fh,$h,Vh,Ux,Uh,zh,Wh,Bh,Gh=R(()=>{ke="numeric",Po="short",Si="long",uc={year:ke,month:ke,day:ke},Ch={year:ke,month:Po,day:ke},Vx={year:ke,month:Po,day:ke,weekday:Po},Th={year:ke,month:Si,day:ke},Ph={year:ke,month:Si,day:ke,weekday:Si},Mh={hour:ke,minute:ke},Ah={hour:ke,minute:ke,second:ke},Ih={hour:ke,minute:ke,second:ke,timeZoneName:Po},Lh={hour:ke,minute:ke,second:ke,timeZoneName:Si},kh={hour:ke,minute:ke,hourCycle:"h23"},Nh={hour:ke,minute:ke,second:ke,hourCycle:"h23"},Oh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Po},Rh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Si},Dh={year:ke,month:ke,day:ke,hour:ke,minute:ke},Fh={year:ke,month:ke,day:ke,hour:ke,minute:ke,second:ke},$h={year:ke,month:Po,day:ke,hour:ke,minute:ke},Vh={year:ke,month:Po,day:ke,hour:ke,minute:ke,second:ke},Ux={year:ke,month:Po,day:ke,weekday:Po,hour:ke,minute:ke},Uh={year:ke,month:Si,day:ke,hour:ke,minute:ke,timeZoneName:Po},zh={year:ke,month:Si,day:ke,hour:ke,minute:ke,second:ke,timeZoneName:Po},Wh={year:ke,month:Si,day:ke,weekday:Si,hour:ke,minute:ke,timeZoneName:Si},Bh={year:ke,month:Si,day:ke,weekday:Si,hour:ke,minute:ke,second:ke,timeZoneName:Si}});var kr,bu=R(()=>{lc();kr=class{get type(){throw new To}get name(){throw new To}get ianaName(){return this.name}get isUniversal(){throw new To}offsetName(t,r){throw new To}formatOffset(t,r){throw new To}offset(t){throw new To}equals(t){throw new To}get isValid(){throw new To}}});var zx,dc,kw=R(()=>{Gn();bu();zx=null,dc=class e extends kr{static get instance(){return zx===null&&(zx=new e),zx}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return Nw(t,r,n)}formatOffset(t,r){return pc(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function pB(e){return Rw[e]||(Rw[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Rw[e]}function mB(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,c,a,d,h]=n;return[s,i,o,c,a,d,h]}function hB(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=fB[o];o==="era"?n[c]=s:qe(c)||(n[c]=parseInt(s,10))}return n}var Rw,fB,Ow,or,fc=R(()=>{Gn();bu();Rw={};fB={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};Ow={},or=class e extends kr{static create(t){return Ow[t]||(Ow[t]=new e(t)),Ow[t]}static resetCache(){Ow={},Rw={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return Nw(t,r,n,this.name)}formatOffset(t,r){return pc(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=pB(this.name),[i,o,s,c,a,d,h]=n.formatToParts?hB(n,r):mB(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=mf({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),E=+r,P=E%1e3;return E-=P>=0?P:1e3+P,(v-E)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function gB(e,t={}){let r=JSON.stringify([e,t]),n=F8[r];return n||(n=new Intl.ListFormat(e,t),F8[r]=n),n}function Bx(e,t={}){let r=JSON.stringify([e,t]),n=Wx[r];return n||(n=new Intl.DateTimeFormat(e,t),Wx[r]=n),n}function wB(e,t={}){let r=JSON.stringify([e,t]),n=Gx[r];return n||(n=new Intl.NumberFormat(e,t),Gx[r]=n),n}function yB(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=jx[i];return o||(o=new Intl.RelativeTimeFormat(e,t),jx[i]=o),o}function bB(){return jh||(jh=new Intl.DateTimeFormat().resolvedOptions().locale,jh)}function vB(e){let t=$8[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,$8[e]=t}return t}function _B(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(r===-1)return[e];{let n,i;try{n=Bx(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=Bx(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function xB(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function SB(e){let t=[];for(let r=1;r<=12;r++){let n=Ce.utc(2009,r,1);t.push(e(n))}return t}function EB(e){let t=[];for(let r=1;r<=7;r++){let n=Ce.utc(2016,11,13+r);t.push(e(n))}return t}function Dw(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function CB(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}var F8,Wx,Gx,jx,jh,$8,qx,Hx,Zx,TB,St,Hh=R(()=>{Gn();Vw();mc();hc();fc();F8={};Wx={};Gx={};jx={};jh=null;$8={};qx=class{constructor(t,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:o,...s}=n;if(!r||Object.keys(s).length>0){let c={useGrouping:!1,...n};n.padTo>0&&(c.minimumIntegerDigits=n.padTo),this.inf=wB(t,c)}}format(t){if(this.inf){let r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{let r=this.floor?Math.floor(t):hf(t,3);return hr(r,this.padTo)}}},Hx=class{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),c=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&or.create(c).valid?(i=c,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=Bx(r,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},Zx=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&Fw()&&(this.rtf=yB(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):V8(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},TB={firstDay:1,minimalDays:4,weekend:[6,7]},St=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,i,o=!1){let s=t||xt.defaultLocale,c=s||(o?"en-US":bB()),a=r||xt.defaultNumberingSystem,d=n||xt.defaultOutputCalendar,h=qh(i)||xt.defaultWeekSettings;return new e(c,a,d,h,s)}static resetCache(){jh=null,Wx={},Gx={},jx={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return e.create(t,r,n,i)}constructor(t,r,n,i,o){let[s,c,a]=_B(t);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=xB(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=CB(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,qh(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,r=!1){return Dw(this,t,Yx,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=SB(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return Dw(this,t,Jx,()=>{let n=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=r?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=EB(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return Dw(this,void 0,()=>Xx,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ce.utc(2016,11,13,9),Ce.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Dw(this,t,Qx,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ce.utc(-40,1,1),Ce.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){let i=this.dtFormatter(t,r),o=i.formatToParts(),s=o.find(c=>c.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new qx(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new Hx(t,this.intl,r)}relFormatter(t={}){return new Zx(this.intl,this.isEnglish(),t)}listFormatter(t={}){return gB(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:$w()?vB(this.locale):TB}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}});var eS,Rt,gf=R(()=>{Gn();bu();eS=null,Rt=class e extends kr{static get utcInstance(){return eS===null&&(eS=new e(0)),eS}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new e(vu(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${pc(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${pc(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return pc(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}});var wf,tS=R(()=>{bu();wf=class extends kr{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}});function Mo(e,t){let r;if(qe(e)||e===null)return t;if(e instanceof kr)return e;if(U8(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?dc.instance:n==="utc"||n==="gmt"?Rt.utcInstance:Rt.parseSpecifier(n)||or.create(e)}else return Ao(e)?Rt.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new wf(e)}var Uw=R(()=>{bu();fc();gf();tS();Gn();kw()});function W8(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(e[r].search(rS.hanidec)!==-1)t+=PB.indexOf(e[r]);else for(let i in z8){let[o,s]=z8[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function B8(){yf={}}function qi({numberingSystem:e},t=""){let r=e||"latn";return yf[r]||(yf[r]={}),yf[r][t]||(yf[r][t]=new RegExp(`${rS[r]}${t}`)),yf[r][t]}var rS,z8,PB,yf,nS=R(()=>{rS={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},z8={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},PB=rS.hanidec.replace(/[\[|\]]/g,"").split("");yf={}});var G8,j8,q8,H8,Z8,Y8,J8,X8,xt,mc=R(()=>{kw();fc();Hh();hc();Uw();Gn();nS();G8=()=>Date.now(),j8="system",q8=null,H8=null,Z8=null,Y8=60,X8=null,xt=class{static get now(){return G8}static set now(t){G8=t}static set defaultZone(t){j8=t}static get defaultZone(){return Mo(j8,dc.instance)}static get defaultLocale(){return q8}static set defaultLocale(t){q8=t}static get defaultNumberingSystem(){return H8}static set defaultNumberingSystem(t){H8=t}static get defaultOutputCalendar(){return Z8}static set defaultOutputCalendar(t){Z8=t}static get defaultWeekSettings(){return X8}static set defaultWeekSettings(t){X8=qh(t)}static get twoDigitCutoffYear(){return Y8}static set twoDigitCutoffYear(t){Y8=t%100}static get throwOnInvalid(){return J8}static set throwOnInvalid(t){J8=t}static resetCaches(){St.resetCache(),or.resetCache(),Ce.resetCache(),B8()}}});var cn,Zh=R(()=>{cn=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Hi(e,t){return new cn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function zw(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function eP(e,t,r){return r+(xu(e)?K8:Q8)[t-1]}function tP(e,t){let r=xu(e)?K8:Q8,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function Ww(e,t){return(e-t+7)%7+1}function Yh(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=eP(n,i,o),c=Ww(zw(n,i,o),r),a=Math.floor((s-c+14-t)/7),d;return a<1?(d=n-1,a=_u(d,t,r)):a>_u(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...Xh(e)}}function iS(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=Ww(zw(n,1,t),r),c=gc(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=gc(d)):a>c?(d=n+1,a-=gc(n)):d=n;let{month:h,day:g}=tP(d,a);return{year:d,month:h,day:g,...Xh(e)}}function Bw(e){let{year:t,month:r,day:n}=e,i=eP(t,r,n);return{year:t,ordinal:i,...Xh(e)}}function oS(e){let{year:t,ordinal:r}=e,{month:n,day:i}=tP(t,r);return{year:t,month:n,day:i,...Xh(e)}}function sS(e,t){if(!qe(e.localWeekday)||!qe(e.localWeekNumber)||!qe(e.localWeekYear)){if(!qe(e.weekday)||!qe(e.weekNumber)||!qe(e.weekYear))throw new Co("Cannot mix locale-based week fields with ISO-based week fields");return qe(e.localWeekday)||(e.weekday=e.localWeekday),qe(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),qe(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function rP(e,t=4,r=1){let n=Jh(e.weekYear),i=Ei(e.weekNumber,1,_u(e.weekYear,t,r)),o=Ei(e.weekday,1,7);return n?i?o?!1:Hi("weekday",e.weekday):Hi("week",e.weekNumber):Hi("weekYear",e.weekYear)}function nP(e){let t=Jh(e.year),r=Ei(e.ordinal,1,gc(e.year));return t?r?!1:Hi("ordinal",e.ordinal):Hi("year",e.year)}function aS(e){let t=Jh(e.year),r=Ei(e.month,1,12),n=Ei(e.day,1,bf(e.year,e.month));return t?r?n?!1:Hi("day",e.day):Hi("month",e.month):Hi("year",e.year)}function cS(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=Ei(t,0,23)||t===24&&r===0&&n===0&&i===0,s=Ei(r,0,59),c=Ei(n,0,59),a=Ei(i,0,999);return o?s?c?a?!1:Hi("millisecond",i):Hi("second",n):Hi("minute",r):Hi("hour",t)}var Q8,K8,lS=R(()=>{Gn();Zh();lc();Q8=[0,31,59,90,120,151,181,212,243,273,304,334],K8=[0,31,60,91,121,152,182,213,244,274,305,335]});function qe(e){return typeof e>"u"}function Ao(e){return typeof e=="number"}function Jh(e){return typeof e=="number"&&e%1===0}function U8(e){return typeof e=="string"}function oP(e){return Object.prototype.toString.call(e)==="[object Date]"}function Fw(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function $w(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function sP(e){return Array.isArray(e)?e:[e]}function uS(e,t,r){if(e.length!==0)return e.reduce((n,i)=>{let o=[t(i),i];return n&&r(n[0],o[0])===n[0]?n:o},null)[1]}function aP(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function wc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qh(e){if(e==null)return null;if(typeof e!="object")throw new vr("Week settings must be an object");if(!Ei(e.firstDay,1,7)||!Ei(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Ei(t,1,7)))throw new vr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ei(e,t,r){return Jh(e)&&e>=t&&e<=r}function MB(e,t){return e-t*Math.floor(e/t)}function hr(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function ta(e){if(!(qe(e)||e===null||e===""))return parseInt(e,10)}function yc(e){if(!(qe(e)||e===null||e===""))return parseFloat(e)}function Qh(e){if(!(qe(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function hf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function xu(e){return e%4===0&&(e%100!==0||e%400===0)}function gc(e){return xu(e)?366:365}function bf(e,t){let r=MB(t-1,12)+1,n=e+(t-r)/12;return r===2?xu(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function mf(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function iP(e,t,r){return-Ww(zw(e,1,t),r)+t-1}function _u(e,t=4,r=1){let n=iP(e,t,r),i=iP(e+1,t,r);return(gc(e)-n+i)/7}function Kh(e){return e>99?e:e>xt.twoDigitCutoffYear?1900+e:2e3+e}function Nw(e,t,r,n=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:t,...o},c=new Intl.DateTimeFormat(r,s).formatToParts(i).find(a=>a.type.toLowerCase()==="timezonename");return c?c.value:null}function vu(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function dS(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new vr(`Invalid unit value ${e}`);return t}function vf(e,t){let r={};for(let n in e)if(wc(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=dS(i)}return r}function pc(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${hr(r,2)}:${hr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${hr(r,2)}${hr(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Xh(e){return aP(e,["hour","minute","second","millisecond"])}var Gn=R(()=>{lc();mc();lS()});function Yx(e){switch(e){case"narrow":return[...IB];case"short":return[...pS];case"long":return[...AB];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}function Jx(e){switch(e){case"narrow":return[...LB];case"short":return[...mS];case"long":return[...fS];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function Qx(e){switch(e){case"narrow":return[...OB];case"short":return[...NB];case"long":return[...kB];default:return null}}function cP(e){return Xx[e.hour<12?0:1]}function lP(e,t){return Jx(t)[e.weekday-1]}function uP(e,t){return Yx(t)[e.month-1]}function dP(e,t){return Qx(t)[e.year<0?0:1]}function V8(e,t,r="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){let g=e==="days";switch(t){case 1:return g?"tomorrow":`next ${i[e][0]}`;case-1:return g?"yesterday":`last ${i[e][0]}`;case 0:return g?"today":`this ${i[e][0]}`;default:}}let s=Object.is(t,-0)||t<0,c=Math.abs(t),a=c===1,d=i[e],h=n?a?d[1]:d[2]||d[1]:a?i[e][0]:e;return s?`${c} ${h} ago`:`in ${c} ${h}`}var AB,pS,IB,fS,mS,LB,Xx,kB,NB,OB,Vw=R(()=>{Gh();Gn();AB=["January","February","March","April","May","June","July","August","September","October","November","December"],pS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],IB=["J","F","M","A","M","J","J","A","S","O","N","D"];fS=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],mS=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],LB=["M","T","W","T","F","S","S"];Xx=["AM","PM"],kB=["Before Christ","Anno Domini"],NB=["BC","AD"],OB=["B","A"]});function pP(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var RB,ln,eg=R(()=>{Vw();Gh();Gn();RB={D:uc,DD:Ch,DDD:Th,DDDD:Ph,t:Mh,tt:Ah,ttt:Ih,tttt:Lh,T:kh,TT:Nh,TTT:Oh,TTTT:Rh,f:Dh,ff:$h,fff:Uh,ffff:Wh,F:Fh,FF:Vh,FFF:zh,FFFF:Bh},ln=class e{static create(t,r={}){return new e(t,r)}static parseFormat(t){let r=null,n="",i=!1,o=[];for(let s=0;s<t.length;s++){let c=t.charAt(s);c==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||c===r?n+=c:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=c,r=c)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(t){return RB[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...r}).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,{...this.opts,...r})}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return hr(t,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(E,P)=>this.loc.extract(t,E,P),s=E=>t.isOffsetFixed&&t.offset===0&&E.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,E.format):"",c=()=>n?cP(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(E,P)=>n?uP(t,E):o(P?{month:E}:{month:E,day:"numeric"},"month"),d=(E,P)=>n?lP(t,E):o(P?{weekday:E}:{weekday:E,month:"long",day:"numeric"},"weekday"),h=E=>{let P=e.macroTokenToFormatOpts(E);return P?this.formatWithSystemDefault(t,P):E},g=E=>n?dP(t,E):o({era:E},"era"),v=E=>{switch(E){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return h(E)}};return pP(e.parseFormat(r),v)}formatDurationFromString(t,r){let n=a=>{switch(a[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=a=>d=>{let h=n(d);return h?this.num(a.get(h),d.length):d},o=e.parseFormat(r),s=o.reduce((a,{literal:d,val:h})=>d?a:a.concat(h),[]),c=t.shiftTo(...s.map(n).filter(a=>a));return pP(o,i(c))}}});function xf(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function Sf(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,c,a]=o(t,i);return[{...r,...s},c||n,a]},[{},null,1]).slice(0,2)}function Ef(e,...t){if(e==null)return[null,null];for(let[r,n]of t){let i=r.exec(e);if(i)return n(i)}return[null,null]}function hP(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=ta(t[r+i]);return[n,null,r+i]}}function _f(e,t,r){let n=e[t];return qe(n)?r:ta(n)}function GB(e,t){return[{year:_f(e,t),month:_f(e,t+1,1),day:_f(e,t+2,1)},null,t+3]}function Cf(e,t){return[{hours:_f(e,t,0),minutes:_f(e,t+1,0),seconds:_f(e,t+2,0),milliseconds:Qh(e[t+3])},null,t+4]}function tg(e,t){let r=!e[t]&&!e[t+1],n=vu(e[t+1],e[t+2]),i=r?null:Rt.instance(n);return[{},i,t+3]}function rg(e,t){let r=e[t]?or.create(e[t]):null;return[{},r,t+1]}function HB(e){let[t,r,n,i,o,s,c,a,d]=e,h=t[0]==="-",g=a&&a[0]==="-",v=(E,P=!1)=>E!==void 0&&(P||E&&h)?-E:E;return[{years:v(yc(r)),months:v(yc(n)),weeks:v(yc(i)),days:v(yc(o)),hours:v(yc(s)),minutes:v(yc(c)),seconds:v(yc(a),a==="-0"),milliseconds:v(Qh(d),g)}]}function wS(e,t,r,n,i,o,s){let c={year:t.length===2?Kh(ta(t)):ta(t),month:pS.indexOf(r)+1,day:ta(n),hour:ta(i),minute:ta(o)};return s&&(c.second=ta(s)),e&&(c.weekday=e.length>3?fS.indexOf(e)+1:mS.indexOf(e)+1),c}function JB(e){let[,t,r,n,i,o,s,c,a,d,h,g]=e,v=wS(t,i,n,r,o,s,c),E;return a?E=ZB[a]:d?E=0:E=vu(h,g),[v,new Rt(E)]}function XB(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function fP(e){let[,t,r,n,i,o,s,c]=e;return[wS(t,i,n,r,o,s,c),Rt.utcInstance]}function tG(e){let[,t,r,n,i,o,s,c]=e;return[wS(t,c,r,n,i,o,s),Rt.utcInstance]}function vP(e){return Ef(e,[rG,bP],[nG,sG],[iG,aG],[oG,cG])}function _P(e){return Ef(XB(e),[YB,JB])}function xP(e){return Ef(e,[QB,fP],[KB,fP],[eG,tG])}function SP(e){return Ef(e,[qB,HB])}function EP(e){return Ef(e,[jB,lG])}function CP(e){return Ef(e,[uG,bP],[dG,pG])}var mP,gP,DB,hS,wP,gS,FB,$B,VB,UB,zB,WB,yP,BB,jB,qB,ZB,YB,QB,KB,eG,rG,nG,iG,oG,bP,sG,aG,cG,lG,uG,dG,pG,yS=R(()=>{Gn();Vw();gf();fc();mP=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;gP=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,DB=`(?:${gP.source}?(?:\\[(${mP.source})\\])?)?`,hS=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,wP=RegExp(`${hS.source}${DB}`),gS=RegExp(`(?:T${wP.source})?`),FB=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,$B=/(\d{4})-?W(\d\d)(?:-?(\d))?/,VB=/(\d{4})-?(\d{3})/,UB=hP("weekYear","weekNumber","weekDay"),zB=hP("year","ordinal"),WB=/(\d{4})-(\d\d)-(\d\d)/,yP=RegExp(`${hS.source} ?(?:${gP.source}|(${mP.source}))?`),BB=RegExp(`(?: ${yP.source})?`);jB=RegExp(`^T?${hS.source}$`),qB=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;ZB={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};YB=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;QB=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,KB=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,eG=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;rG=xf(FB,gS),nG=xf($B,gS),iG=xf(VB,gS),oG=xf(wP),bP=Sf(GB,Cf,tg,rg),sG=Sf(UB,Cf,tg,rg),aG=Sf(zB,Cf,tg,rg),cG=Sf(Cf,tg,rg);lG=Sf(Cf);uG=xf(WB,BB),dG=xf(yP),pG=Sf(Cf,tg,rg)});function bc(e,t,r=!1){let n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new gr(n)}function AP(e,t){let r=t.milliseconds??0;for(let n of hG.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function PP(e,t){let r=AP(e,t)<0?-1:1;Su.reduceRight((n,i)=>{if(qe(t[i]))return n;if(n){let o=t[n]*r,s=e[i][n],c=Math.floor(o/s);t[i]+=c*r,t[n]-=c*s*r}return i},null),Su.reduce((n,i)=>{if(qe(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function gG(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var TP,MP,fG,Zi,Tf,mG,Su,hG,gr,ng=R(()=>{lc();eg();Zh();Hh();yS();Gn();mc();hc();TP="Invalid Duration",MP={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},fG={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...MP},Zi=146097/400,Tf=146097/4800,mG={years:{quarters:4,months:12,weeks:Zi/7,days:Zi,hours:Zi*24,minutes:Zi*24*60,seconds:Zi*24*60*60,milliseconds:Zi*24*60*60*1e3},quarters:{months:3,weeks:Zi/28,days:Zi/4,hours:Zi*24/4,minutes:Zi*24*60/4,seconds:Zi*24*60*60/4,milliseconds:Zi*24*60*60*1e3/4},months:{weeks:Tf/7,days:Tf,hours:Tf*24,minutes:Tf*24*60,seconds:Tf*24*60*60,milliseconds:Tf*24*60*60*1e3},...MP},Su=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],hG=Su.slice(0).reverse();gr=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?mG:fG;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||St.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return e.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new vr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:vf(t,e.normalizeUnit),loc:St.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(Ao(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new vr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=SP(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){let[n]=EP(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new vr("need to specify a reason the Duration is invalid");let n=t instanceof cn?t:new cn(t,r);if(xt.throwOnInvalid)throw new Iw(n);return new e({invalid:n})}static normalizeUnit(t){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!r)throw new ff(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?ln.create(this.loc,n).formatDurationFromString(this,t):TP}toHuman(t={}){if(!this.isValid)return TP;let r=Su.map(n=>{let i=this.values[n];return qe(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=hf(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ce.fromMillis(r,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?AP(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t),n={};for(let i of Su)(wc(r.values,i)||wc(this.values,i))&&(n[i]=r.get(i)+this.get(i));return bc(this,{values:n},!0)}minus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=dS(t(this.values[n],n));return bc(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...vf(t,e.normalizeUnit)};return bc(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){let s={loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:i,conversionAccuracy:n};return bc(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return PP(this.matrix,t),bc(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=gG(this.normalize().shiftToAll().toObject());return bc(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>e.normalizeUnit(s));let r={},n={},i=this.toObject(),o;for(let s of Su)if(t.indexOf(s)>=0){o=s;let c=0;for(let d in n)c+=this.matrix[d][s]*n[d],n[d]=0;Ao(i[s])&&(c+=i[s]);let a=Math.trunc(c);r[s]=a,n[s]=(c*1e3-a*1e3)/1e3}else Ao(i[s])&&(n[s]=i[s]);for(let s in n)n[s]!==0&&(r[o]+=s===o?n[s]:n[s]/this.matrix[o][s]);return PP(this.matrix,r),bc(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return bc(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of Su)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function wG(e,t){return!e||!e.isValid?ra.invalid("missing or invalid start"):!t||!t.isValid?ra.invalid("missing or invalid end"):t<e?ra.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var Pf,ra,bS=R(()=>{hc();ng();mc();lc();Zh();eg();Gh();Pf="Invalid Interval";ra=class e{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new vr("need to specify a reason the Interval is invalid");let n=t instanceof cn?t:new cn(t,r);if(xt.throwOnInvalid)throw new Aw(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=Mf(t),i=Mf(r),o=wG(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=gr.fromDurationLike(r),i=Mf(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=gr.fromDurationLike(r),i=Mf(t);return e.fromDateTimes(i.minus(n),i)}static fromISO(t,r){let[n,i]=(t||"").split("/",2);if(n&&i){let o,s;try{o=Ce.fromISO(n,r),s=o.isValid}catch{s=!1}let c,a;try{c=Ce.fromISO(i,r),a=c.isValid}catch{a=!1}if(s&&a)return e.fromDateTimes(o,c);if(s){let d=gr.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=gr.fromISO(n,r);if(d.isValid)return e.before(c,d)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",r){if(!this.isValid)return NaN;let n=this.start.startOf(t,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(t,r),Math.floor(i.diff(n,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?e.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];let r=t.map(Mf).filter(s=>this.contains(s)).sort((s,c)=>s.toMillis()-c.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,c=+s>+this.e?this.e:s;n.push(e.fromDateTimes(i,c)),i=c,o+=1}return n}splitBy(t){let r=gr.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,s=[];for(;n<this.e;){let c=this.start.plus(r.mapUnits(a=>a*i));o=+c>+this.e?this.e:c,s.push(e.fromDateTimes(n,o)),n=o,i+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:e.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;let r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return e.fromDateTimes(r,n)}static merge(t){let[r,n]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[i,o.union(s)]:[i.concat([o]),s]:[i,s],[[],null]);return n&&r.push(n),r}static xor(t){let r=null,n=0,i=[],o=t.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]),s=Array.prototype.concat(...o),c=s.sort((a,d)=>a.time-d.time);for(let a of c)n+=a.type==="s"?1:-1,n===1?r=a.time:(r&&+r!=+a.time&&i.push(e.fromDateTimes(r,a.time)),r=null);return e.merge(i)}difference(...t){return e.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Pf}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=uc,r={}){return this.isValid?ln.create(this.s.loc.clone(r),t).formatInterval(this):Pf}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Pf}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Pf}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Pf}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:Pf}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):gr.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var na,vS=R(()=>{hc();mc();Hh();fc();Uw();Gn();na=class{static hasDST(t=xt.defaultZone){let r=Ce.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return or.isValidZone(t)}static normalizeZone(t){return Mo(t,xt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||St.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||St.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||St.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||St.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return St.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return St.create(r,null,"gregory").eras(t)}static features(){return{relative:Fw(),localeWeek:$w()}}}});function IP(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(gr.fromMillis(n).as("days"))}function yG(e,t,r){let n=[["years",(a,d)=>d.year-a.year],["quarters",(a,d)=>d.quarter-a.quarter+(d.year-a.year)*4],["months",(a,d)=>d.month-a.month+(d.year-a.year)*12],["weeks",(a,d)=>{let h=IP(a,d);return(h-h%7)/7}],["days",IP]],i={},o=e,s,c;for(let[a,d]of n)r.indexOf(a)>=0&&(s=a,i[a]=d(e,t),c=o.plus(i),c>t?(i[a]--,e=o.plus(i),e>t&&(c=e,i[a]--,e=o.plus(i))):e=c);return[e,i,c,s]}function LP(e,t,r,n){let[i,o,s,c]=yG(e,t,r),a=t-i,d=r.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);d.length===0&&(s<t&&(s=i.plus({[c]:1})),s!==i&&(o[c]=(o[c]||0)+a/(s-i)));let h=gr.fromObject(o,n);return d.length>0?gr.fromMillis(a,n).shiftTo(...d).plus(h):h}var kP=R(()=>{ng()});function Tt(e,t=r=>r){return{regex:e,deser:([r])=>t(W8(r))}}function _G(e){return e.replace(/\./g,"\\.?").replace(DP,RP)}function NP(e){return e.replace(/\./g,"").replace(DP," ").toLowerCase()}function Io(e,t){return e===null?null:{regex:RegExp(e.map(_G).join("|")),deser:([r])=>e.findIndex(n=>NP(r)===NP(n))+t}}function OP(e,t){return{regex:e,deser:([,r,n])=>vu(r,n),groups:t}}function Gw(e){return{regex:e,deser:([t])=>t}}function xG(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function SG(e,t){let r=qi(t),n=qi(t,"{2}"),i=qi(t,"{3}"),o=qi(t,"{4}"),s=qi(t,"{6}"),c=qi(t,"{1,2}"),a=qi(t,"{1,3}"),d=qi(t,"{1,6}"),h=qi(t,"{1,9}"),g=qi(t,"{2,4}"),v=qi(t,"{4,6}"),E=F=>({regex:RegExp(xG(F.val)),deser:([W])=>W,literal:!0}),A=(F=>{if(e.literal)return E(F);switch(F.val){case"G":return Io(t.eras("short"),0);case"GG":return Io(t.eras("long"),0);case"y":return Tt(d);case"yy":return Tt(g,Kh);case"yyyy":return Tt(o);case"yyyyy":return Tt(v);case"yyyyyy":return Tt(s);case"M":return Tt(c);case"MM":return Tt(n);case"MMM":return Io(t.months("short",!0),1);case"MMMM":return Io(t.months("long",!0),1);case"L":return Tt(c);case"LL":return Tt(n);case"LLL":return Io(t.months("short",!1),1);case"LLLL":return Io(t.months("long",!1),1);case"d":return Tt(c);case"dd":return Tt(n);case"o":return Tt(a);case"ooo":return Tt(i);case"HH":return Tt(n);case"H":return Tt(c);case"hh":return Tt(n);case"h":return Tt(c);case"mm":return Tt(n);case"m":return Tt(c);case"q":return Tt(c);case"qq":return Tt(n);case"s":return Tt(c);case"ss":return Tt(n);case"S":return Tt(a);case"SSS":return Tt(i);case"u":return Gw(h);case"uu":return Gw(c);case"uuu":return Tt(r);case"a":return Io(t.meridiems(),0);case"kkkk":return Tt(o);case"kk":return Tt(g,Kh);case"W":return Tt(c);case"WW":return Tt(n);case"E":case"c":return Tt(r);case"EEE":return Io(t.weekdays("short",!1),1);case"EEEE":return Io(t.weekdays("long",!1),1);case"ccc":return Io(t.weekdays("short",!0),1);case"cccc":return Io(t.weekdays("long",!0),1);case"Z":case"ZZ":return OP(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return OP(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return Gw(/[a-z_+-/]{1,256}?/i);case" ":return Gw(/[^\S\n\r]/);default:return E(F)}})(e)||{invalidReason:bG};return A.token=e,A}function CG(e,t,r){let{type:n,value:i}=e;if(n==="literal"){let a=/^\s+$/.test(i);return{literal:!a,val:a?" ":i}}let o=t[n],s=n;n==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let c=EG[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function TG(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function PG(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(wc(r,s)){let c=r[s],a=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(n.slice(o,o+a))),o+=a}return[n,i]}else return[n,{}]}function MG(e){let t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return qe(e.z)||(r=or.create(e.z)),qe(e.Z)||(r||(r=new Rt(e.Z)),n=e.Z),qe(e.q)||(e.M=(e.q-1)*3+1),qe(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),qe(e.u)||(e.S=Qh(e.u)),[Object.keys(e).reduce((o,s)=>{let c=t(s);return c&&(o[c]=e[s]),o},{}),r,n]}function AG(){return _S||(_S=Ce.fromMillis(1555555555555)),_S}function IG(e,t){if(e.literal)return e;let r=ln.macroTokenToFormatOpts(e.val),n=ES(r,t);return n==null||n.includes(void 0)?e:n}function xS(e,t){return Array.prototype.concat(...e.map(r=>IG(r,t)))}function SS(e,t,r){return new ig(e,r).explainFromTokens(t)}function FP(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=SS(e,t,r);return[n,i,o,s]}function ES(e,t){if(!e)return null;let n=ln.create(t,e).dtFormatter(AG()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>CG(s,e,o))}var bG,vG,RP,DP,EG,_S,ig,$P=R(()=>{Gn();eg();gf();fc();hc();nS();lc();bG="missing Intl.DateTimeFormat.formatToParts support";vG="\xA0",RP=`[ ${vG}]`,DP=new RegExp(RP,"g");EG={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};_S=null;ig=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=xS(ln.parseFormat(r),t),this.units=this.tokens.map(n=>SG(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=TG(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=PG(t,this.regex,this.handlers),[i,o,s]=n?MG(n):[null,null,void 0];if(wc(n,"a")&&wc(n,"H"))throw new Co("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:o,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}});function og(e){return new cn("unsupported zone",`the zone "${e.name}" is not supported`)}function TS(e){return e.weekData===null&&(e.weekData=Yh(e.c)),e.weekData}function PS(e){return e.localWeekData===null&&(e.localWeekData=Yh(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Eu(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ce({...r,...t,old:r})}function qP(e,t,r){let n=e-t*60*1e3,i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*60*1e3;let o=r.offset(n);return i===o?[n,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function jw(e,t){e+=t*60*1e3;let r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Hw(e,t,r){return qP(mf(e),t,r)}function UP(e,t){let r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:i,day:Math.min(e.c.day,bf(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=gr.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),c=mf(o),[a,d]=qP(c,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function Af(e,t,r,n,i,o){let{setZone:s,zone:c}=r;if(e&&Object.keys(e).length!==0||t){let a=t||c,d=Ce.fromObject(e,{...r,zone:a,specificOffset:o});return s?d:d.setZone(c)}else return Ce.invalid(new cn("unparsable",`the input "${i}" can't be parsed as ${n}`))}function qw(e,t,r=!0){return e.isValid?ln.create(St.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function MS(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=hr(e.c.year,r?6:4),t?(n+="-",n+=hr(e.c.month),n+="-",n+=hr(e.c.day)):(n+=hr(e.c.month),n+=hr(e.c.day)),n}function zP(e,t,r,n,i,o){let s=hr(e.c.hour);return t?(s+=":",s+=hr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=hr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=hr(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=hr(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=hr(Math.trunc(-e.o/60)),s+=":",s+=hr(Math.trunc(-e.o%60))):(s+="+",s+=hr(Math.trunc(e.o/60)),s+=":",s+=hr(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function RG(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new ff(e);return t}function WP(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return RG(e)}}function DG(e){return Yw[e]||(Zw===void 0&&(Zw=xt.now()),Yw[e]=e.offset(Zw)),Yw[e]}function BP(e,t){let r=Mo(t.zone,xt.defaultZone);if(!r.isValid)return Ce.invalid(og(r));let n=St.fromObject(t),i,o;if(qe(e.year))i=xt.now();else{for(let a of ZP)qe(e[a])&&(e[a]=HP[a]);let s=aS(e)||cS(e);if(s)return Ce.invalid(s);let c=DG(r);[i,o]=Hw(e,c,r)}return new Ce({ts:i,zone:r,loc:n,o})}function GP(e,t,r){let n=qe(r.round)?!0:r.round,i=(s,c)=>(s=hf(s,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(s,c)),o=s=>r.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(r.unit)return i(o(r.unit),r.unit);for(let s of r.units){let c=o(s);if(Math.abs(c)>=1)return i(c,s)}return i(e>t?-0:0,r.units[r.units.length-1])}function jP(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}function Mf(e){if(Ce.isDateTime(e))return e;if(e&&e.valueOf&&Ao(e.valueOf()))return Ce.fromJSDate(e);if(e&&typeof e=="object")return Ce.fromObject(e);throw new vr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var CS,VP,HP,LG,kG,ZP,NG,OG,Zw,Yw,Ce,hc=R(()=>{ng();bS();mc();vS();eg();gf();Hh();Gn();Uw();kP();yS();$P();lS();Gh();lc();Zh();CS="Invalid DateTime",VP=864e13;HP={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},LG={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},kG={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ZP=["year","month","day","hour","minute","second","millisecond"],NG=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],OG=["year","ordinal","hour","minute","second","millisecond"];Yw={},Ce=class e{constructor(t){let r=t.zone||xt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new cn("invalid input"):null)||(r.isValid?null:og(r));this.ts=qe(t.ts)?xt.now():t.ts;let i=null,o=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[i,o]=[t.old.c,t.old.o];else{let c=Ao(t.o)&&!t.old?t.o:r.offset(this.ts);i=jw(this.ts,c),n=Number.isNaN(i.year)?new cn("invalid input"):null,i=n?null:i,o=n?null:c}this._zone=r,this.loc=t.loc||St.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,r]=jP(arguments),[n,i,o,s,c,a,d]=r;return BP({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static utc(){let[t,r]=jP(arguments),[n,i,o,s,c,a,d]=r;return t.zone=Rt.utcInstance,BP({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=oP(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=Mo(r.zone,xt.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:St.fromObject(r)}):e.invalid(og(i))}static fromMillis(t,r={}){if(Ao(t))return t<-VP||t>VP?e.invalid("Timestamp out of range"):new e({ts:t,zone:Mo(r.zone,xt.defaultZone),loc:St.fromObject(r)});throw new vr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(Ao(t))return new e({ts:t*1e3,zone:Mo(r.zone,xt.defaultZone),loc:St.fromObject(r)});throw new vr("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=Mo(r.zone,xt.defaultZone);if(!n.isValid)return e.invalid(og(n));let i=St.fromObject(r),o=vf(t,WP),{minDaysInFirstWeek:s,startOfWeek:c}=sS(o,i),a=xt.now(),d=qe(r.specificOffset)?n.offset(a):r.specificOffset,h=!qe(o.ordinal),g=!qe(o.year),v=!qe(o.month)||!qe(o.day),E=g||v,P=o.weekYear||o.weekNumber;if((E||h)&&P)throw new Co("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&h)throw new Co("Can't mix ordinal dates with month/day");let A=P||o.weekday&&!E,F,W,z=jw(a,d);A?(F=NG,W=LG,z=Yh(z,s,c)):h?(F=OG,W=kG,z=Bw(z)):(F=ZP,W=HP);let j=!1;for(let Ee of F){let Ne=o[Ee];qe(Ne)?j?o[Ee]=W[Ee]:o[Ee]=z[Ee]:j=!0}let G=A?rP(o,s,c):h?nP(o):aS(o),Y=G||cS(o);if(Y)return e.invalid(Y);let ie=A?iS(o,s,c):h?oS(o):o,[U,fe]=Hw(ie,d,n),Ae=new e({ts:U,zone:n,o:fe,loc:i});return o.weekday&&E&&t.weekday!==Ae.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Ae.toISO()}`):Ae.isValid?Ae:e.invalid(Ae.invalid)}static fromISO(t,r={}){let[n,i]=vP(t);return Af(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=_P(t);return Af(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=xP(t);return Af(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(qe(t)||qe(r))throw new vr("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,a,d,h]=FP(s,t,r);return h?e.invalid(h):Af(c,a,n,`format ${r}`,t,d)}static fromString(t,r,n={}){return e.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=CP(t);return Af(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new vr("need to specify a reason the DateTime is invalid");let n=t instanceof cn?t:new cn(t,r);if(xt.throwOnInvalid)throw new Mw(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=ES(t,St.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return xS(ln.parseFormat(t),St.fromObject(r)).map(i=>i.val).join("")}static resetCache(){Zw=void 0,Yw={}}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?TS(this).weekYear:NaN}get weekNumber(){return this.isValid?TS(this).weekNumber:NaN}get weekday(){return this.isValid?TS(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?PS(this).weekday:NaN}get localWeekNumber(){return this.isValid?PS(this).weekNumber:NaN}get localWeekYear(){return this.isValid?PS(this).weekYear:NaN}get ordinal(){return this.isValid?Bw(this.c).ordinal:NaN}get monthShort(){return this.isValid?na.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?na.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?na.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?na.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,r=6e4,n=mf(this.c),i=this.zone.offset(n-t),o=this.zone.offset(n+t),s=this.zone.offset(n-i*r),c=this.zone.offset(n-o*r);if(s===c)return[this];let a=n-s*r,d=n-c*r,h=jw(a,s),g=jw(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Eu(this,{ts:a}),Eu(this,{ts:d})]:[this]}get isInLeapYear(){return xu(this.year)}get daysInMonth(){return bf(this.year,this.month)}get daysInYear(){return this.isValid?gc(this.year):NaN}get weeksInWeekYear(){return this.isValid?_u(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?_u(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=ln.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(Rt.instance(t),r)}toLocal(){return this.setZone(xt.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=Mo(t,xt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(r||n){let o=t.offset(this.ts),s=this.toObject();[i]=Hw(s,o,t)}return Eu(this,{ts:i,zone:t})}else return e.invalid(og(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return Eu(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=vf(t,WP),{minDaysInFirstWeek:n,startOfWeek:i}=sS(r,this.loc),o=!qe(r.weekYear)||!qe(r.weekNumber)||!qe(r.weekday),s=!qe(r.ordinal),c=!qe(r.year),a=!qe(r.month)||!qe(r.day),d=c||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new Co("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new Co("Can't mix ordinal dates with month/day");let g;o?g=iS({...Yh(this.c,n,i),...r},n,i):qe(r.ordinal)?(g={...this.toObject(),...r},qe(r.day)&&(g.day=Math.min(bf(g.year,g.month),g.day))):g=oS({...Bw(this.c),...r});let[v,E]=Hw(g,this.o,this.zone);return Eu(this,{ts:v,o:E})}plus(t){if(!this.isValid)return this;let r=gr.fromDurationLike(t);return Eu(this,UP(this,r))}minus(t){if(!this.isValid)return this;let r=gr.fromDurationLike(t).negate();return Eu(this,UP(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=gr.normalizeUnit(t);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(i==="weeks")if(r){let o=this.loc.getStartOfWeek(),{weekday:s}=this;s<o&&(n.weekNumber=this.weekNumber-1),n.weekday=o}else n.weekday=1;if(i==="quarters"){let o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)}endOf(t,r){return this.isValid?this.plus({[t]:1}).startOf(t,r).minus(1):this}toFormat(t,r={}){return this.isValid?ln.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):CS}toLocaleString(t=uc,r={}){return this.isValid?ln.create(this.loc.clone(r),t).formatDateTime(this):CS}toLocaleParts(t={}){return this.isValid?ln.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;let s=t==="extended",c=MS(this,s);return c+="T",c+=zP(this,s,r,n,i,o),c}toISODate({format:t="extended"}={}){return this.isValid?MS(this,t==="extended"):null}toISOWeekDate(){return qw(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+zP(this,s==="extended",r,t,n,o):null}toRFC2822(){return qw(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return qw(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?MS(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||t)&&(n&&(i+=" "),r?i+="z":t&&(i+="ZZ")),qw(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():CS}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let r={...this.c};return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return gr.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=sP(r).map(gr.normalizeUnit),s=t.valueOf()>this.valueOf(),c=s?this:t,a=s?t:this,d=LP(c,a,o,i);return s?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(e.now(),t,r)}until(t){return this.isValid?ra.fromDateTimes(this,t):this}hasSame(t,r,n){if(!this.isValid)return!1;let i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(r,n)<=i&&i<=o.endOf(r,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let r=t.base||e.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0,i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),GP(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?GP(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new vr("min requires all arguments be DateTimes");return uS(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new vr("max requires all arguments be DateTimes");return uS(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return SS(s,t,r)}static fromStringExplain(t,r,n={}){return e.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){let{locale:n=null,numberingSystem:i=null}=r,o=St.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new ig(o,t)}static fromFormatParser(t,r,n={}){if(qe(t)||qe(r))throw new vr("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new vr(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:c,zone:a,specificOffset:d,invalidReason:h}=r.explainFromTokens(t);return h?e.invalid(h):Af(c,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return uc}static get DATE_MED(){return Ch}static get DATE_MED_WITH_WEEKDAY(){return Vx}static get DATE_FULL(){return Th}static get DATE_HUGE(){return Ph}static get TIME_SIMPLE(){return Mh}static get TIME_WITH_SECONDS(){return Ah}static get TIME_WITH_SHORT_OFFSET(){return Ih}static get TIME_WITH_LONG_OFFSET(){return Lh}static get TIME_24_SIMPLE(){return kh}static get TIME_24_WITH_SECONDS(){return Nh}static get TIME_24_WITH_SHORT_OFFSET(){return Oh}static get TIME_24_WITH_LONG_OFFSET(){return Rh}static get DATETIME_SHORT(){return Dh}static get DATETIME_SHORT_WITH_SECONDS(){return Fh}static get DATETIME_MED(){return $h}static get DATETIME_MED_WITH_SECONDS(){return Vh}static get DATETIME_MED_WITH_WEEKDAY(){return Ux}static get DATETIME_FULL(){return Uh}static get DATETIME_FULL_WITH_SECONDS(){return zh}static get DATETIME_HUGE(){return Wh}static get DATETIME_HUGE_WITH_SECONDS(){return Bh}}});var kn=R(()=>{hc();ng();bS();vS();bu();gf();fc();tS();kw();mc()});function Cu(e){return e instanceof kr?e===Zr.instance:e?.toString().toLowerCase()==="unknown"}function Jw(e){return Cu(e)?Zr.instance:e}var Zr,sg=R(()=>{kn();Zr=class{};Zr.instance=new or("Etc/UTC")});function If(e,t,r){return e<t?e-t:e>r?e-r:0}function Lf(e,t,r){return e<t?t:e>r?r:e}function Lo(e,t=!0){if(e instanceof kr)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return Zr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=Rt.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=or.create(e);if(!r.isValid){if(t)throw new AS(Xw.TimeZoneNotRecognized);return null}return r}var Xw,FG,AS,kf,IS=R(()=>{cc();sg();kn();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(Xw||(Xw={}));FG={[Xw.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},AS=class e extends Error{constructor(t,r){super(hs(FG[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};kf=class e{constructor(t){this._date=t,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(t=0,r=1,n=1,i=0,o=0,s=0,c=0,a){if(isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(c))return null;let d=Ce.local(t,r).daysInMonth,h=Ce.fromObject({day:Lf(n,1,d),year:t,month:Lf(r,1,12),hour:Lf(i,0,23),minute:Lf(o,0,59),second:Lf(s,0,59),millisecond:Lf(c,0,999)},{zone:Lo(a)});return h=h.plus({months:If(r,1,12),days:If(n,1,d),hours:If(i,0,23),minutes:If(o,0,59),seconds:If(s,0,59),milliseconds:If(c,0,999)}),new e(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=Lo(r);return t.isUnknownTimeZone||n===Zr.instance?e.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t._date.setZone(n))}static dateJSToArcadeDate(t){return new e(Ce.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Lo(r);return new e(Ce.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(Ce.fromMillis(t,{zone:Zr.instance}))}static unknownDateJSToArcadeDate(t){return new e(Ce.fromMillis(t.getTime(),{zone:Zr.instance}))}static epochToArcadeDate(t,r="system"){let n=Lo(r);return new e(Ce.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=Lo(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=Lo(r);return t.zone===Zr.instance||n===Zr.instance?e.fromParts(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t.setZone(n))}static nowToArcadeDate(t){let r=Lo(t);return new e(Ce.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(Ce.utc())}get isSystem(){return this.timeZone==="system"||this.timeZone===e.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===Zr.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let t=this._date.weekday;return t>6&&(t=0),t}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if(this._date.zone.type==="system")return"system";let t=this.zone;return t.type==="fixed"?t.fixed===0?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new e(this._date.plus(t))}diff(t,r="milliseconds"){return this._date.diff(t._date,r)[r]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,r){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:r&&!this.isUnknownTimeZone})}toFormat(t,r){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,r)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new e(this._date.toUTC())}toLocal(){return new e(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;let r=Ce.fromISO(t,{setZone:!0});return new e(r)}}});function Pt(e){return e?{remove(){e&&(e(),e=void 0)}}:$G}function VG(e){e.forEach(t=>t?.remove())}function Tu(e){return Pt(()=>VG(e))}var $G,oi=R(()=>{$G={remove:()=>{}}});function JP(){let e=LS?.getAttribute("lang"),t=globalThis.navigator?.language;return zG??e??t??"en"}function Yi(){return ag===void 0&&(ag=JP()),ag}function kS(e){return Qw.push(e),Pt(()=>Qw.splice(Qw.indexOf(e),1))}function Nf(e){return Kw.push(e),Pt(()=>Kw.splice(Kw.indexOf(e),1))}function YP(){let e=UG??JP();ag!==e&&([...Kw].forEach(t=>t(e)),ag=e,[...Qw].forEach(t=>t(e)))}var UG,ag,zG,LS,Qw,Kw,vc=R(()=>{oi();zG=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,LS=globalThis.document?.documentElement;Qw=[];Kw=[];globalThis.addEventListener?.("languagechange",YP),LS&&new MutationObserver(()=>{YP()}).observe(LS,{attributeFilter:["lang"]})});function XP(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="",r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(let n of e.match(r)||[])switch(n){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=n;break;default:n.length>=2&&n.slice(0,1)==="["&&n.slice(-1)==="]"?t+=`'${n.slice(1,-1)}'`:t+=`'${n}'`}return t}var un,cg=R(()=>{IS();vc();kn();un=class e{constructor(t,r,n){this._year=t,this._month=r,this._day=n,this.declaredRootClass="esri.core.sql.dateonly"}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(t){return t instanceof e&&t.day===this.day&&t.month===this.month&&t.year===this.year}clone(){return new e(this._year,this._month,this._day)}toDateTime(t){return Ce.fromObject({day:this.day,month:this.month,year:this.year},{zone:Lo(t)})}toDateTimeLuxon(t){return Ce.fromObject({day:this.day,month:this.month,year:this.year},{zone:Lo(t)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(t=null,r=!0){if(t===null||t==="")return this.toString();if(r&&(t=XP(t)),!t)return"";let n=this.toDateTime("unknown");return kf.dateTimeToArcadeDate(n).toFormat(t,{locale:Yi(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return kf.dateTimeToArcadeDate(t)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(t,r){return e.fromDateTime(this.toUTCDateTime().plus({[t]:r}))}toUTCDateTime(){return Ce.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){let r=Ce.fromMillis(t,{zone:Rt.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=Ce.fromSeconds(t,{zone:Rt.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromReader(t){if(!t)return null;let r=t.split("-");return r.length!==3?null:new e(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10))}static fromParts(t,r,n){let i=new e(t,r,n);return i.isValid===!1?null:i}static fromDateJS(t){return e.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return e.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,r=null){if(t===""||t===null)return null;let n=[];if(r)(r=XP(r))&&n.push(r);else if(r===null||r===""){let i=Ce.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Ce.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=Ce.fromJSDate(new Date).setZone(Lo(t));return new e(r.year,r.month,r.day)}}});var K,WG,oe,_c=R(()=>{cc();(function(e){e.InvalidFunctionParameters="InvalidFunctionParameters",e.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",e.UnsupportedSqlFunction="UnsupportedSqlFunction",e.UnsupportedOperator="UnsupportedOperator",e.UnsupportedSyntax="UnsupportedSyntax",e.UnsupportedIsRhs="UnsupportedIsRhs",e.UnsupportedIsLhs="UnsupportedIsLhs",e.InvalidDataType="InvalidDataType",e.CannotCastValue="CannotCastValue",e.FunctionNotRecognized="FunctionNotRecognized",e.InvalidTime="InvalidTime",e.InvalidParameterCount="InvalidParameterCount",e.InvalidTimeStamp="InvalidTimeStamp",e.InvalidDate="InvalidDate",e.InvalidOperator="InvalidOperator",e.IllegalInterval="IllegalInterval",e.YearMonthIntervals="YearMonthIntervals",e.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",e.MissingStatisticParameters="MissingStatisticParameters"})(K||(K={}));WG={[K.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[K.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[K.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[K.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[K.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[K.UnsupportedOperator]:"Unsupported operator - {operator}",[K.UnsupportedSyntax]:"Unsupported syntax - {node}",[K.UnsupportedSqlFunction]:"Sql function not found = {function}",[K.InvalidDataType]:"Invalid sql data type",[K.InvalidDate]:"Invalid date encountered",[K.InvalidOperator]:"Invalid operator encountered",[K.InvalidTime]:"Invalid time encountered",[K.IllegalInterval]:"Illegal interval",[K.FunctionNotRecognized]:"Function not recognized",[K.InvalidTimeStamp]:"Invalid timestamp encountered",[K.InvalidParameterCount]:"Invalid parameter count for call to {name}",[K.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[K.YearMonthIntervals]:"Year-Month Intervals not supported",[K.CannotCastValue]:"Cannot cast value to the required data type"},oe=class e extends Error{constructor(t,r){super(hs(WG[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function QP(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var vn,lg=R(()=>{kn();vn=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=Ce.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return QP(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return QP(this.toDateTime().offset%60)}toMilliseconds(){return this.toDateTime().toMillis()}get hour(){return this.toDateTime().hour}get minute(){return this.toDateTime().minute}get second(){return this.toDateTime().second}get day(){return this.toDateTime().day}get month(){return this.toDateTime().month}get year(){return this.toDateTime().year}startOfDay(){return e.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(t){return new e(Ce.fromJSDate(t).toISO({includeOffset:!0}))}static fromDateTime(t){return new e(t.toISO({includeOffset:!0}))}static fromParts(t,r,n=0,i=0,o=0,s=0,c=0,a=!1,d=0,h=0){let g=`${t.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,v="";s<10&&(v="0");let E=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${v+s.toString()}`;c!==0&&(E+="."+c.toString().padStart(3,"0"));let P=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new e(g+"T"+E+P)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let t=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return t&&(t=t.replace(".000","")),t}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(t){let r=this.toDateTime().plus(t);return e.fromDateTime(r)}}});function O(e,t,r,n){var i,o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}var gt=R(()=>{});var ey,NS=R(()=>{ey="20241214"});var Mt,xc=R(()=>{rt();ms();NS();Mt={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(L8(Mt,globalThis.esriConfig,!0),delete Mt.has),!Mt.assetsPath){{let e="4.32.0";Mt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${ey}/assets`}Mt.defaultAssetsPath=Mt.assetsPath}});function BG(e,t,...r){console[e](`[${t}]`,...r)}function GG(...e){return D8(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var KP,ot,it=R(()=>{xc();rt();cc();KP={info:0,warn:1,error:2,none:3},ot=class e{constructor(t){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},t.level!=null&&(this.level=t.level),t.writer!=null&&(this.writer=t.writer),this._module=t.module,e._loggers.set(this.module,this);let r=this.module.lastIndexOf(".");r!==-1&&(this._parent=e.getLogger(this.module.slice(0,r)))}get module(){return this._module}get parent(){return this._parent}error(...t){this._log("error","always",...t)}warn(...t){this._log("warn","always",...t)}info(...t){this._log("info","always",...t)}errorOnce(...t){this._log("error","once",...t)}warnOnce(...t){this._log("warn","once",...t)}infoOnce(...t){this._log("info","once",...t)}errorOncePerTick(...t){this._log("error","oncePerTick",...t)}warnOncePerTick(...t){this._log("warn","oncePerTick",...t)}infoOncePerTick(...t){this._log("info","oncePerTick",...t)}get test(){}static get test(){}static getLogger(t){return t=typeof t!="string"?t.declaredClass:t,e._loggers.get(t)||new e({module:t})}_log(t,r,...n){if(this._matchLevel(t)){if(r!=="always"&&!e._throttlingDisabled){let i=GG(n),o=this._loggedMessages[t].get(i);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=e._tickCounter)return;this._loggedMessages[t].set(i,e._tickCounter),e._scheduleTickCounterIncrement()}for(let i of Mt.log.interceptors)if(i(t,this.module,...n))return;this._inheritedWriter()(t,this.module,...n)}}_parentWithMember(t,r){let n=this;for(;n!=null;){let i=n[t];if(i!=null)return i;n=n.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",BG)}_matchLevel(t){let r=Mt.log.level||"warn";return KP[this._parentWithMember("level",r)]<=KP[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};ot._loggers=new Map,ot._tickCounter=0,ot._tickCounterScheduled=!1,ot._throttlingDisabled=!1});function ty(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var OS=R(()=>{});function jG(e){return e==null?e:new Date(e)}function qG(e){return e==null?e:!!e}function HG(e){return e==null?e:e.toString()}function $S(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function ZG(e){return e==null?e:Math.round(parseFloat(e))}function YG(e){return null}function tM(e,t){return r=>{let n=e(r);return t.step!=null&&(n=Math.round(n/t.step)*t.step),t.min!=null&&(n=Math.max(t.min,n)),t.max!=null&&(n=Math.min(t.max,n)),n}}function rM(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function ry(e,t){return t!=null&&e&&!(t instanceof e)}function nM(e){return e&&"isCollection"in e}function eM(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function JG(e,t){if(!t?.constructor||!nM(t.constructor))return RS(e,t)?t:new e(t);let r=eM(e.prototype.itemType),n=eM(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(RS(e,t),t):new e(t):t}function RS(e,t){return!!rM(t)&&(Of().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+ny(e)+"'"),!0)}function VS(e,t){return t==null?t:nM(e)?JG(e,t):ry(e,t)?RS(e,t)?t:new e(t):t}function ny(e){return e?.prototype?.declaredClass||"unknown"}function QG(e){switch(e){case Number:return t=>$S(t);case ai:return ZG;case Boolean:return qG;case String:return HG;case Date:return jG;case dg:return YG;default:return ty(XG,e,()=>VS.bind(null,e))}}function si(e,t){let r=QG(e);return arguments.length===1?r:r(t)}function Rf(e,t,r){return arguments.length===1?Rf.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function iM(e,t){return arguments.length===1?Rf(r=>si(e,r)):Rf(r=>si(e,r),t)}function oM(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>oM(e,t-1,n)):e(r)}function ug(e,t,r){if(arguments.length===2)return o=>ug(e,t,o);if(!r)return r;r=oM(e,t,r);let n=t,i=r;for(;n>0&&Array.isArray(i);)n--,i=i[0];if(i!==void 0)for(let o=0;o<n;o++)r=[r];return r}function sM(e,t,r){return arguments.length===2?ug(n=>si(e,n),t):ug(n=>si(e,n),t,r)}function iy(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function oy(e,t){if(arguments.length===2)return oy(e).call(null,t);let r=new Set,n=e.filter(c=>typeof c!="function"),i=e.filter(c=>typeof c=="function");for(let c of e)typeof c!="string"&&typeof c!="number"||r.add(c);let o=null,s=null;return(c,a)=>{if(c==null)return c;let d=typeof c,h=d==="string"||d==="number";return h&&(r.has(c)||i.some(g=>d==="string"&&g===String||d==="number"&&g===Number))||d==="object"&&i.some(g=>!ry(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),Of().error("Accessor#set",`'${c}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof c=="object"&&i.length?(s||(s=i.map(g=>ny(g)).join(", ")),Of().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):Of().error("Accessor#set",`'${c}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function ko(e,t){if(arguments.length===2)return ko(e).call(null,t);let r={},n=[],i=[];for(let a in e.typeMap){let d=e.typeMap[a];r[a]=si(d),n.push(ny(d)),i.push(a)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,c=typeof e.key=="string"?a=>a[e.key]:e.key;return a=>{if(e.base&&!ry(e.base,a)||a==null)return a;let d=c(a)||e.defaultKeyValue,h=r[d];if(!h)return Of().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${s()})`),null;if(!ry(e.typeMap[d],a))return a;if(typeof e.key=="string"&&!rM(a)){let g={};for(let v in a)v!==e.key&&(g[v]=a[v]);return h(g)}return h(a)}}function aM(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function US(e){switch(e.type){case"native":return si(e.value);case"array":return Rf(US(e.value));case"one-of":return KG(e);default:return null}}function KG(e){let t=null;return(r,n)=>FS(r,e)?r:(t==null&&(t=DS(e)),Of().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function DS(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case ai:return"integer";case Date:return"date";case dg:return"null";default:return ny(e.value)}case"array":return`array of ${DS(e.value)}`;case"one-of":{let t=e.values.map(r=>DS(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function FS(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case ai:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case dg:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!FS(r,t.value));case"one-of":return t.values.some(r=>FS(e,r))}}var Of,XG,ai,dg,Ji=R(()=>{rt();it();OS();Of=()=>ot.getLogger("esri.core.accessorSupport.ensureTypes");XG=new WeakMap;ai=class{},dg=class{}});function Ci(e){return e.__accessor__??null}function lM(e,t){return e?.metadata?.[t]!=null}function Df(e,t,r){return r?sy(e,t,{policy:r,path:""}):sy(e,t,null)}function sy(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,c="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,c=r.policy(s)),c==="replace"||c==="replace-arrays"&&Array.isArray(n[o]))return n[o]=t[o],n;if(n[o]===void 0)return n[o]=Ye(t[o]),n;let a=n[o],d=t[o];if(a===d)return n;if(Array.isArray(d)||Array.isArray(n))a=a?Array.isArray(a)?n[o]=a.slice():n[o]=[a]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(h=>{a.includes(h)||a.push(h)}));else if(d&&typeof d=="object")if(r){let h=r.path;r.path=s,n[o]=sy(a,d,r),r.path=h}else n[o]=sy(a,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function ay(e){return Array.isArray(e)?e:e.split(".")}function cM(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function ej(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...cM(r));return t}return cM(e)}function zS(e,t,r,n){let i=ej(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return Tu(o)}return n(e,i[0],r)}var ia=R(()=>{oi();mr()});function uM(e,t){let r=e[e.length-1]==="?"?e.slice(0,-1):e;if(t.getItemAt!=null||Array.isArray(t)){let i=parseInt(r,10);if(!isNaN(i))return Array.isArray(t)?t[i]:t.at(i)}let n=Ci(t);return lM(n,r)?n.get(r):t[r]}function dM(e,t,r){if(e==null)return e;let n=uM(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:dM(n,t,r+1)}function Pu(e,t,r=0){return typeof t!="string"||t.includes(".")?dM(e,ay(t),r):uM(t,e)}function gs(e,t){return Pu(e,t)}function WS(e,t){return Pu(t,e)!==void 0}var Mu=R(()=>{ia()});function Sc(e){let t=e.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(let n in t)t[n]=Ye(t[n]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function Ff(e,t){let r=Sc(e),n=r[t];return n||(n=r[t]={}),n}function pM(e,t){return Df(e,t,rj)}function rj(e){return tj.test(e)?"replace":"merge"}var tj,$f=R(()=>{mr();ia();tj=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function nj(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(ji(n,t)??"").toString())}var Vf,BS=R(()=>{ms();Vf=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&nj(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var Ge,Nn=R(()=>{mr();it();BS();Ge=class e extends Vf{constructor(t,r,n){super(t,r,n)}toJSON(){if(this.details!=null)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(t,r)=>{if(r&&typeof r=="object"&&typeof r.toJSON=="function")return r;try{return Ye(r)}catch{return"[object]"}}))}}catch(t){throw ot.getLogger("esri.core.Error").error(t),t}return{name:this.name,message:this.message,details:this.details}}static fromJSON(t){return new e(t.name,t.message,t.details)}};Ge.prototype.type="error"});function Uf(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Uf(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Uf(gs(e,i),o,r)}let n=e.__accessor__;n!=null&&ij(t,n),e[t]=r}}function ij(e,t){if(me("esri-unknown-property-errors")&&!oj(e,t))throw new Ge("set:unknown-property",sj(e,t))}function oj(e,t){return t.metadata[e]!=null}function sj(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var GS=R(()=>{Nn();rt();it();Mu()});function V(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let n=Object.getOwnPropertyDescriptor(t,r),i=Ff(t,r);n&&(n.get||n.set?(i.get=n.get||i.get,i.set=n.set||i.set):"value"in n&&("value"in e&&ot.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),i.value=e.value=n.value)),e.readOnly!=null&&(i.readOnly=e.readOnly);let o=e.aliasOf;if(o){let a=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,h;i.dependsOn=[a],i.get=function(){let g=gs(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=gs(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Uf(this,a,g)})}let s=e.type,c=e.types;if(!i.cast){let a;s?a=aj(s):c&&(a=Array.isArray(c)?Rf(ko(c[0])):ko(c)),e.cast=cj(e.cast,a)}pM(i,e),e.range&&(i.cast=tM(i.cast,e.range))}}function cy(e,t,r){let n=Ff(e,r);n.json||(n.json={});let i=n.json;return t!==void 0&&(i.origins||(i.origins={}),i.origins[t]||(i.origins[t]={}),i=i.origins[t]),i}function aj(e){let t=0,r=e;if(aM(e))return US(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(iy(n))return t===0?oy(n):ug(oy(n),t);if(t===1)return iM(n);if(t>1)return sM(n,t);let i=e;return i.from?i.from:si(i)}function cj(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var yt=R(()=>{it();Ji();Mu();$f();GS()});var ly,jS=R(()=>{ly=Symbol("Accessor-beforeDestroy")});var dn,pg=R(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(dn||(dn={}))});var bt,uy=R(()=>{(function(e){e[e.Dirty=1]="Dirty",e[e.Overridden=2]="Overridden",e[e.Computing=4]="Computing",e[e.NonNullable=8]="NonNullable",e[e.HasDefaultValue=16]="HasDefaultValue",e[e.DepTrackingInitialized=32]="DepTrackingInitialized",e[e.AutoTracked=64]="AutoTracked",e[e.ExplicitlyTracking=128]="ExplicitlyTracking"})(bt||(bt={}))});var ws,fg=R(()=>{ws=class{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.accessed?.clear(),this.clear()}onAccessed(t){this._observer!=null&&t!==this._observer&&(this.accessed==null&&(this.accessed=new Set),this.accessed.add(t))}onTrackingEnd(){this._observer!=null&&(this.clear(),this.accessed!=null&&(this._handles==null&&(this._handles=[]),this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(this._handles!=null){for(let t=0;t<this._handles.length;++t)this._handles[t].remove();this._handles.length=0}}}});function Ke(e){hg.onAccessed(e)}function No(e,t,r){if(dy)return qS(e,t,r);let n=null;return hM(e),n=t.call(r),gM(),n}function mM(e,t){return No(fy,e,t)}function qS(e,t,r){let n=dy;dy=!0,hM(e);let i=null;try{i=t.call(r)}catch(o){py&&ot.getLogger("esri.core.accessorSupport.tracking").error(o)}return gM(),dy=n,i}function hM(e){hg=e,mg.push(e)}function gM(){let e=mg.length;if(e>1){let t=mg.pop();hg=mg[e-2],t.onTrackingEnd()}else if(e===1){let t=mg.pop();hg=fy,t.onTrackingEnd()}else hg=fy}function HS(e,t){if(t.flags&bt.DepTrackingInitialized)return;t.flags|=bt.DepTrackingInitialized;let r=py;py=!1,t.flags&bt.AutoTracked?qS(t.trackingTarget,t.metadata.get,e):ZS(e,t),py=r}function ZS(e,t){t.flags&bt.ExplicitlyTracking||(t.flags|=bt.ExplicitlyTracking,qS(t.trackingTarget,()=>{let r=t.metadata.dependsOn||lj;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=ay(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=fM(s,i[o],o!==i.length-1)}else fM(e,n,!1)}),t.flags&=~bt.ExplicitlyTracking)}function fM(e,t,r){let n=t[t.length-1]==="?"?t.slice(0,-1):t;if(e.getItemAt!=null||Array.isArray(e)){let o=parseInt(n,10);if(!isNaN(o))return Array.isArray(e)?e[o]:e.at(o)}let i=Ci(e);if(i){let o=i.propertiesByName.get(n);o&&(Ke(o),HS(e,o))}return r?e[n]:void 0}var fy,mg,hg,dy,py,lj,Au=R(()=>{rt();it();ia();uy();fg();fy=new ws,mg=[],hg=fy;dy=!1,py=!1;lj=[]});function wM(e){if(e.json&&e.json.origins){let t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(let n in r)if(t[n]){let i=t[n];r[n].forEach(o=>{t[o]=i}),delete t[n]}}}var yM=R(()=>{});var gg,bM=R(()=>{BS();gg=class extends Vf{constructor(t,r,n){super(t,r,n)}};gg.prototype.type="warning"});function my(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var YS=R(()=>{});function XS(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||pj(e)&&Ks("read.reader",QS(e),t))}function QS(e){let t=e.ndimArray??0;if(t>1)return dj(e);if(t===1)return vM(e);if("type"in e&&xM(e.type)){let r=e.type.prototype?.itemType?.Type,n=vM(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let c=n(i,o,s);return c&&new e.type(c)}}return KS(e)}function KS(e){return"type"in e?uj(e.type):fj(e.types)}function uj(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void JS().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${i}'`);let o=new e;return o.read(t,n),o}:e.fromJSON}function _M(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>_M(e,i,r,n-1)):e(t,void 0,r)}function dj(e){let t=KS(e),r=_M.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let c=n,a=i;for(;c>0&&Array.isArray(a);)c--,a=a[0];if(a!==void 0)for(let d=0;d<c;d++)i=[i];return i}}function vM(e){let t=KS(e);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let c of r){let a=t(c,void 0,i);a!==void 0&&s.push(a)}return s}let o=t(r,void 0,i);return o!==void 0?[o]:void 0}}function xM(e){if(!my(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?e4(t.Type):SM(t.Type))}function pj(e){return"types"in e?SM(e.types):e4(e.type)}function e4(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||xM(e))}function SM(e){for(let t in e.typeMap)if(!e4(e.typeMap[t]))return!1;return!0}function fj(e){let t=null,r=e.errorContext??"type",n=e.validate;return(i,o,s)=>{if(i==null)return i;let c=typeof i;if(c!=="object")return void JS().error(`Expected JSON value of type 'object' to deserialize, but got '${c}'`);t||(t=mj(e));let a=e.key;if(typeof a!="string")return;let d=i[a],h=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!h){let v=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new gg(`${r}:unsupported`,v,{definition:i,context:s})),void JS().error(v)}let g=new h;return g.read(i,s),n?n(g):g}}function mj(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=Sc(n.prototype);if(typeof e.key=="function")continue;let o=i[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&o.json.type.length===1&&typeof o.json.type[0]=="string"){t[o.json.type[0]]=n;continue}let s=o.json?.write;if(!s?.writer){t[r]=n;continue}let c=s.target,a=typeof c=="string"?c:e.key,d={};s.writer(r,d,a),d[a]&&(t[d[a]]=n)}return t}var JS,t4=R(()=>{it();ms();bM();$f();YS();JS=()=>ot.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function PM(e){if(e.json||(e.json={}),CM(e.json),TM(e.json),EM(e.json),e.json.origins)for(let t in e.json.origins)CM(e.json.origins[t]),TM(e.json.origins[t]),EM(e.json.origins[t]);return!0}function EM(e){e.name&&(e.read&&typeof e.read=="object"?e.read.source===void 0&&(e.read.source=e.name):e.read={source:e.name},e.write&&typeof e.write=="object"?e.write.target===void 0&&(e.write.target=e.name):e.write={target:e.name})}function CM(e){typeof e.read=="boolean"?e.read={enabled:e.read}:typeof e.read=="function"?e.read={enabled:!0,reader:e.read}:e.read&&typeof e.read=="object"&&e.read.enabled===void 0&&(e.read.enabled=!0)}function TM(e){typeof e.write=="boolean"?e.write={enabled:e.write}:typeof e.write=="function"?e.write={enabled:!0,writer:e.write}:e.write&&typeof e.write=="object"&&e.write.enabled===void 0&&(e.write.enabled=!0)}var MM=R(()=>{});function r4(e,t){if(!t.write||t.write.writer||t.write.enabled===!1&&!t.write.overridePolicy)return;let r=e?.ndimArray??0;e&&(r===1||"type"in e&&my(e.type))?t.write.writer=yj:r>1?t.write.writer=bj(r):t.types?Array.isArray(t.types)?t.write.writer=gj(t.types[0]):t.write.writer=hj(t.types):t.write.writer=wg}function hj(e){return(t,r,n,i)=>t?AM(t,e,i)?wg(t,r,n,i):void 0:wg(t,r,n,i)}function AM(e,t,r){for(let n in t.typeMap)if(e instanceof t.typeMap[n])return!0;if(r?.messages){let n=t.errorContext??"type",i=`Values of type '${(typeof t.key!="function"?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&e&&r.messages.push(new Ge(`${n}:unsupported`,i,{definition:e,context:r})),ot.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function gj(e){return(t,r,n,i)=>!t||!Array.isArray(t)?wg(t,r,n,i):wg(t.filter(o=>AM(o,e,i)),r,n,i)}function wg(e,t,r,n){Ks(r,hy(e,n),t)}function hy(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?wj(e):e}function wj(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function yj(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>hy(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[hy(e,n)],Ks(r,i,t)}function IM(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>IM(n,t,r-1)):hy(e,t)}function bj(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=IM(t,i,e);let s=e,c=o;for(;s>0&&Array.isArray(c);)s--,c=c[0];if(c!==void 0)for(let a=0;a<s;a++)o=[o]}Ks(n,o,r)}}var LM=R(()=>{Nn();it();ms();YS()});function kM(e,t){return i4(e,"any",t?.origin)}function gy(e,t){return i4(e,"read",t?.origin)}function NM(e,t){return i4(e,"write",t?.origin)}function i4(e,t,r){let n=e?.json;if(n?.origins&&r){let i;i=r==="link-chart"?n.origins[r]&&(t==="any"||t in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],i&&(t==="any"||t in i)&&(n=i)}return n}function vj(e){let t=_j(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?xj(n):t;XS(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),r4(i,n)}XS(t,e.json,!0),r4(t,e.json)}function _j(e){return e.json.types?n4(e.json):e.type?OM(e):n4(e)}function xj(e){return e.type?OM(e):n4(e)}function OM(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!iy(r);)r=r[0],t++;return{type:r,ndimArray:t}}function n4(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function RM(e){PM(e)&&(wM(e),vj(e))}var wy=R(()=>{Ji();yM();t4();MM();LM()});function Le(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,Ej(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!o4.has(i.initialize)&&(o4.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!s4.has(i.destroy)&&(s4.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);o4.clear(),s4.clear();let o=class extends t{constructor(...c){if(super(...c),this.constructor===o&&typeof this.postscript=="function"){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let a=r.length-1;a>=0;a--)r[a].call(this)}}),n.length){let a=!1,d=this[ly];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!a){a=!0,d.call(this);for(let h=0;h<n.length;h++)n[h].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};o.__accessorMetadata__=Sc(t.prototype),o.prototype.declaredClass=e;let s=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(o,"name",{value:s,configurable:!0}),o}}function Sj(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;r.mutable&&Ke(n);let i=r.store;return i.has(e)?i.get(e):n.metadata.value}:function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n!==void 0)return n.getComputed(r)}}function Ej(e){let t=e.prototype,r=Sc(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];RM(o),n[i]={enumerable:!0,configurable:!0,get:Sj(i,o),set(s){let c=this.__accessor__;if(c!==void 0){if(c.mutable)return c.initialized&&o.readOnly?DM("read-only",i):c.lifecycle===dn.CONSTRUCTED&&o.constructOnly?DM("construct-only",i):void c.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(e.prototype,n)}var o4,s4,DM,ft=R(()=>{rt();it();jS();pg();$f();Au();wy();o4=new Set,s4=new Set;DM=(e,t)=>{ot.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function Cj(e,t,r=!1){let n=`\u{1F6D1} DEPRECATED - ${t}`;if(!r)return void e.warn(n);let i=FM.get(e);i||(i=new Set,FM.set(e,i)),i.has(t)||(i.add(t),e.warn(n))}function $M(e,t,r={}){if(me("esri-deprecation-warnings")){let{moduleName:n}=r;Tj(e,`Function: ${(n?n+"::":"")+t+"()"}`,r)}}function Tj(e,t,r={}){if(me("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,c=t;n&&(c+=`
2
2
  \u{1F6E0}\uFE0F Replacement: ${n}`),i&&(c+=`
3
3
  \u2699\uFE0F Version: ${i}`),o&&(c+=`
4
4
  \u{1F517} See ${o} for more details.`),Cj(e,c,s)}}var FM,VM=R(()=>{rt();FM=new WeakMap});function a4(e){return e!=null&&typeof e[Symbol.iterator]=="function"}var UM=R(()=>{});function yy(e){return e||"_default_"}function zM(e){for(let t of e)t instanceof zf?t.removeAll():t.remove()}function WM(e){return e!=null&&(!!e.remove||e instanceof zf)}var zf,BM=R(()=>{UM();zf=class{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let t=0;return this._groups.forEach(r=>{t+=r.length}),t}add(t,r){if(a4(t)){let n=this._getOrCreateGroup(r);for(let i of t)WM(i)&&n.push(i)}else WM(t)&&this._getOrCreateGroup(r).push(t);return this}forEach(t,r){if(typeof t=="function")this._groups.forEach(n=>n.forEach(t));else{let n=this._getGroup(t);n&&r&&n.forEach(r)}}has(t){return this._groups.has(yy(t))}remove(t){if(typeof t!="string"&&a4(t)){for(let r of t)this.remove(r);return this}return this.has(t)?(zM(this._getGroup(t)),this._groups.delete(yy(t)),this):this}removeAll(){return this._groups.forEach(zM),this._groups.clear(),this}removeReference(t){return this._groups.delete(t),this}_getOrCreateGroup(t){if(this.has(t))return this._getGroup(t);let r=[];return this._groups.set(yy(t),r),r}_getGroup(t){return this._groups.get(yy(t))}}});function GM(e,t){if(e==null)throw new Error(t??"value is None")}function yg(e){return e?.destroy(),null}function bg(e){return e?.remove(),null}function jM(e){return e?.abort(),null}var Ec=R(()=>{});function Pj(e){return e?.release&&typeof e.release=="function"}function Mj(e){return e?.acquire&&typeof e.acquire=="function"}var Oo,vg=R(()=>{Oo=class e{constructor(t,r,n,i=1,o=0){this._ctor=t,this._acquireFunction=r,this._releaseFunction=n,this.allocationSize=i,this._pool=new Array(o),this._initialSize=o;for(let s=0;s<o;s++)this._pool[s]=new this._ctor;this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...t){let r;if(e.test.disabled)r=new this._ctor;else{if(this._pool.length===0){let n=this.allocationSize;for(let i=0;i<n;i++)this._pool[i]=new this._ctor}r=this._pool.pop()}return this._acquireFunction?this._acquireFunction(r,...t):Mj(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):Pj(t)&&t.release(),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let r=t;r<this._pool.length;++r){let n=this._pool[r];this._dispose(n)}this._pool.length=t}}_dispose(t){t.dispose&&typeof t.dispose=="function"&&t.dispose()}};Oo.test={disabled:!1}});var by,qM=R(()=>{ac();by=class{constructor(t,r){this._observers=t,this._observer=r}remove(){f8(this._observers,this._observer)}}});var Wf,Aj,c4=R(()=>{oi();qM();Wf=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return Aj;this._observers==null&&(this._observers=[]);let r=this._observers,n=!1,i=!1,o=r.length;for(let s=0;s<o;++s){let c=r[s];if(c.destroyed)i=!0;else if(c===t){n=!0;break}}return n||(r.push(t),i&&this._removeDestroyedObservers()),new by(r,t)}_removeDestroyedObservers(){let t=this._observers;if(!t||t.length===0)return;let r=t.length,n=0;for(let i=0;i<r;++i){for(;i+n<r&&t[i+n].destroyed;)++n;if(n>0){if(!(i+n<r))break;t[i]=t[i+n]}}t.length=r-n}destroy(){if(this.destroyed)return;this.destroyed=!0;let t=this._observers;if(t!=null){for(let r of t)r.onCommitted();this._observers=null}}},Aj=Pt()});function vy(e){switch(e){case"defaults":return ct.DEFAULTS;case"service":return ct.SERVICE;case"portal-item":return ct.PORTAL_ITEM;case"web-scene":return ct.WEB_SCENE;case"web-map":return ct.WEB_MAP;case"link-chart":return ct.LINK_CHART;case"user":return ct.USER;default:return null}}function _y(e){switch(e){case ct.DEFAULTS:return"defaults";case ct.SERVICE:return"service";case ct.PORTAL_ITEM:return"portal-item";case ct.WEB_SCENE:return"web-scene";case ct.WEB_MAP:return"web-map";case ct.LINK_CHART:return"link-chart";case ct.USER:return"user"}}function HM(e){return _y(e)}var ct,ype,Cc=R(()=>{(function(e){e[e.DEFAULTS=0]="DEFAULTS",e[e.COMPUTED=1]="COMPUTED",e[e.SERVICE=2]="SERVICE",e[e.PORTAL_ITEM=3]="PORTAL_ITEM",e[e.WEB_SCENE=4]="WEB_SCENE",e[e.WEB_MAP=5]="WEB_MAP",e[e.LINK_CHART=6]="LINK_CHART",e[e.USER=7]="USER"})(ct||(ct={}));ype=ct.USER+1});var _g,ZM=R(()=>{c4();Cc();Au();uy();fg();_g=class extends Wf{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this.trackingTarget=new ws(this),this.flags=0,this.flags=bt.Dirty|(r.nonNullable?bt.NonNullable:0)|(r.hasOwnProperty("value")?bt.HasDefaultValue:0)|(r.get===void 0?bt.DepTrackingInitialized:0)|(r.dependsOn===void 0?bt.AutoTracked:0)}destroy(){this.flags&bt.Dirty&&this.onCommitted(),super.destroy(),this.trackingTarget.destroy()}getComputed(t){t.mutable&&Ke(this);let r=t.store,n=this.propertyName,i=this.flags,o=r.get(n);if(i&bt.Computing||~i&bt.Dirty&&r.has(n))return o;this.flags|=bt.Computing;let s=t.host,c;i&bt.AutoTracked?c=No(this.trackingTarget,this.metadata.get,s):(ZS(s,this),c=this.metadata.get.call(s)),this.flags|=bt.DepTrackingInitialized,r.set(n,c,ct.COMPUTED);let a=r.get(n);return a===o?this.flags&=~bt.Dirty:mM(this.commit,this),this.flags&=~bt.Computing,a}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~bt.Dirty,this.onCommitted()}onInvalidated(){~this.flags&bt.Overridden&&(this.flags|=bt.Dirty);let t=this._observers;if(t&&t.length>0)for(let r of t)r.onInvalidated()}onCommitted(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onCommitted()}}}});var xy,YM=R(()=>{mr();Cc();xy=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,Ye(n))}),r}get(t){return this._values.get(t)}originOf(){return ct.USER}keys(){return[...this._values.keys()]}set(t,r){this._values.set(t,r)}delete(t){this._values.delete(t)}has(t){return this._values.has(t)}forEach(t){this._values.forEach(t)}}});function Sy(e,t,r){return e!==void 0}function JM(e,t,r,n){return e!==void 0&&(!(r==null&&e.flags&bt.NonNullable)||(n.lifecycle,dn.INITIALIZING,!1))}var Ey,u4,l4,XM=R(()=>{rt();mr();it();vg();pg();ZM();Cc();YM();Au();uy();fg();Ey=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=dn.INITIALIZING,this.store=new xy,this.mutable=!0,this._origin=ct.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new _g(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=dn.CONSTRUCTING}constructed(){this.lifecycle=dn.CONSTRUCTED}destroy(){this.lifecycle=dn.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==dn.INITIALIZING}get(t){let r=this.propertiesByName.get(t);if(r.metadata.get)return r.getComputed(this);this.mutable&&Ke(r);let n=this.store;return n.has(t)?n.get(t):r.metadata.value}originOf(t){let r=this.store.originOf(t);if(r===void 0){let n=this.propertiesByName.get(t);if(n!==void 0&&n.flags&bt.HasDefaultValue)return"defaults"}return _y(r)}has(t){return this.propertiesByName.has(t)&&this.store.has(t)}keys(){return[...this.propertiesByName.keys()]}internalGet(t){let r=this.propertiesByName.get(t);if(Sy(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);Sy(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!Sy(i))return"";let o=new ws,s=No(o,()=>i.metadata.get?.call(t)),c=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
@@ -6,8 +6,8 @@
6
6
  `);return c}setAtOrigin(t,r,n){let i=this.propertiesByName.get(t);if(Sy(i))return this._setAtOrigin(i,r,n)}isOverridden(t){let r=this.propertiesByName.get(t);return r!==void 0&&!!(r.flags&bt.Overridden)}clearOverride(t){let r=this.propertiesByName.get(t);r&&r.flags&bt.Overridden&&(r.flags&=~bt.Overridden,r.notifyChange())}override(t,r){let n=this.propertiesByName.get(t);if(!JM(n,t,r,this))return;let i=n.metadata.cast;if(i){let o=this._cast(i,r),{valid:s,value:c}=o;if(l4.release(o),!s)return;r=c}n.flags|=bt.Overridden,this._internalSet(n,r)}set(t,r){let n=this.propertiesByName.get(t);if(!JM(n,t,r,this))return;let i=n.metadata.cast;if(i){let s=this._cast(i,r),{valid:c,value:a}=s;if(l4.release(s),!c)return;r=a}let o=n.metadata.set;o?o.call(this.host,r):this._internalSet(n,r)}setDefaultOrigin(t){this._origin=vy(t)}getDefaultOrigin(){return _y(this._origin)}notifyChange(t){let r=this.propertiesByName.get(t);r!==void 0&&r.notifyChange()}invalidate(t){let r=this.propertiesByName.get(t);r!==void 0&&r.invalidate()}commit(t){let r=this.propertiesByName.get(t);r!==void 0&&r.commit()}_internalSet(t,r){let n=this.lifecycle!==dn.INITIALIZING?this._origin:ct.DEFAULTS;this._setAtOrigin(t,r,n)}_setAtOrigin(t,r,n){let i=this.store,o=t.propertyName;i.has(o,n)&&Eh(r,i.get(o))&&~t.flags&bt.Overridden&&n===i.originOf(o)||(t.invalidate(),i.set(o,r,n),t.commit(),HS(this.host,t))}_cast(t,r){let n=l4.acquire();return n.valid=!0,n.value=r,t&&(n.value=t.call(this.host,r,n)),n}},u4=class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}},l4=new Oo(u4)});function d4(){return Ij}var Ij,QM,KM=R(()=>{(function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"})(QM||(QM={}))});function Lj(e){e.length=0}var jn,p4,Cy=R(()=>{vg();jn=class{constructor(t=50,r=50){this._pool=new Oo(Array,void 0,Lj,r,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return p4.acquire()}static release(t){return p4.release(t)}static prune(){p4.prune()}},p4=new jn(100)});var Ty,eA=R(()=>{vg();Ty=class extends Oo{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...t){let r=super.acquire(...t);return this._set.delete(r),r}release(t){t&&!this._set.has(t)&&(super.release(t),this._set.add(t))}_dispose(t){this._set.delete(t),super._dispose(t)}}});function f4(e){Py.push(e),Py.length===1&&queueMicrotask(()=>{let t=Py.slice();Py.length=0;for(let r of t)r()})}var Py,tA=R(()=>{Py=[]});var xg,rA=R(()=>{xg=class{constructor(t,r=30){this.name=t,this._counter=0,this._samples=new Array(r)}push(t){t!=null&&(this._samples[++this._counter%this._samples.length]=t)}set(t){t!=null&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,r)=>t-r)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,r)=>t+r,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}});var m4,h4,nA=R(()=>{(function(e){let t=(o,s,c,a)=>{let d=s,h=s,g=c>>>1,v=o[d-1];for(;h<=g;){h=d<<1,h<c&&a(o[h-1],o[h])<0&&++h;let E=o[h-1];if(a(E,v)<=0)break;o[d-1]=E,d=h}o[d-1]=v},r=(o,s)=>o<s?-1:o>s?1:0;function n(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)t(o,h,c,a);let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,t(o,d,h,a)}}function*i(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)t(o,h,c,a),yield;let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,t(o,d,h,a),yield}}e.sort=n,e.iterableSort=i})(m4||(m4={}));h4=m4});function iA(e){e.data.length>kj*e.length&&(e.data.length=Math.floor(e.length*Nj))}var kj,Nj,Sg,oA=R(()=>{ac();nA();kj=1.5,Nj=1.1,Sg=class{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new Sh,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),t.deallocator!==void 0&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>iA(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){let r=new Array;for(let n=0;n<this._length;n++){let i=this.data[n];t(i)&&r.push(i)}return r}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,r){let n=this.data.indexOf(t,r);return n!==-1&&n<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let r=t;r<this._length;++r)this.data[r]=this._deallocator(this.data[r]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,r=t.length){for(let n=0;n<r;n++)this.data[this._length++]=t[n]}fill(t,r){for(let n=0;n<r;n++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,iA(this)}pop(){if(this.length===0)return;let t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){let r=$x(this.data,t,this.length,this._hint);if(r!==-1)return this.data.splice(r,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex($x(this.data,t,this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,r=t.length,n){this.length=p8(this.data,t,this.length,r,this._hint,n),this._shrink()}front(){if(this.length!==0)return this.data[0]}back(){if(this.length!==0)return this.data[this.length-1]}swapElements(t,r){if(t>=this.length||r>=this.length||t===r)return;let n=this.data[t];this.data[t]=this.data[r],this.data[r]=n}sort(t){h4.sort(this.data,0,this.length,t)}iterableSort(t){return h4.iterableSort(this.data,0,this.length,t)}some(t,r){for(let n=0;n<this.length;++n)if(t.call(r,this.data[n],n,this.data))return!0;return!1}find(t,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)if(t.call(r,n[o]))return n[o]}filterInPlace(t,r){let n=0;for(let i=0;i<this._length;++i){let o=this.data[i];t.call(r,o,i,this.data)&&(this.data[i]=this.data[n],this.data[n]=o,n++)}if(this._deallocator)for(let i=n;i<this._length;i++)this.data[i]=this._deallocator(this.data[i]);return this._length=n,this._shrink(),this}forAll(t,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)t.call(r,n[o],o,n)}forEach(t,r){this.data.slice(0,this.length).forEach(t,r)}map(t,r){let n=new Array(this.length);for(let i=0;i<this.length;++i)n[i]=t.call(r,this.data[i],i,this.data);return n}reduce(t,r){let n=r;for(let i=0;i<this.length;++i)n=t(n,this.data[i],i,this.data);return n}has(t){let r=this.length,n=this.data;for(let i=0;i<r;++i)if(n[i]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}});function Oj(e){return{setTimeout:(t,r)=>{let n=e.setTimeout(t,r);return Pt(()=>e.clearTimeout(n))}}}var sA,aA=R(()=>{oi();sA=Oj(globalThis)});function Eg(e){return Rj(e)||cA(e)}function Rj(e){return e!=null&&typeof e=="object"&&"on"in e&&typeof e.on=="function"}function cA(e){return e!=null&&typeof e=="object"&&"addEventListener"in e&&typeof e.addEventListener=="function"}function Tc(e,t,r){if(!Eg(e))throw new TypeError("target is not a Evented or EventTarget object");return cA(e)?Dj(e,t,r):e.on(t,r)}function Dj(e,t,r,n){if(Array.isArray(t)){let i=t.slice();for(let o of i)e.addEventListener(o,r,n);return Pt(()=>{for(let o of i)e.removeEventListener(o,r,n)})}return e.addEventListener(t,r,n),Pt(()=>e.removeEventListener(t,r,n))}function lA(e,t,r){if(!Eg(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=Tc(e,t,i=>{n.remove(),r.call(e,i)});return n}var Cg=R(()=>{oi()});function ys(e="Aborted"){return new Ge("AbortError",e)}function My(e){return e instanceof AbortSignal?e:e?.signal??void 0}function oa(e){let t=My(e);return t!=null&&t.aborted}function g4(e){if(!Tg(e))throw e}function Ti(e,t){let r=My(e);if(r!=null){if(!r.aborted)return lA(r,"abort",()=>t());t()}}function Tg(e){return e?.name==="AbortError"}function Fj(e,t=void 0,r){let n=new AbortController;return Ti(r,()=>n.abort()),new Promise((i,o)=>{let s=setTimeout(()=>{s=0,i(t)},e);Ti(n,()=>{s&&(clearTimeout(s),o(ys()))})})}function $j(e){return e&&typeof e.then=="function"}function uA(e){return $j(e)?e:Promise.resolve(e)}function dA(e,t=-1){let r,n,i,o,s=null,c=(...a)=>{if(r){n=a,o&&o.reject(ys()),o=ci();let v=o.promise;if(s){let E=s;s=null,E.abort()}return v}if(i=o||ci(),o=null,t>0){let v=new AbortController;r=uA(e(...a,v.signal));let E=r;Fj(t).then(()=>{r===E&&(o?v.abort():s=v)})}else r=1,r=uA(e(...a));let d=()=>{let v=n;n=i=r=s=null,v!=null&&c(...v)},h=r,g=i;return h.then(d,d),h.then(g.resolve,g.reject),g.promise};return c}function ci(){let e,t,r=new Promise((i,o)=>{e=i,t=o}),n=i=>{e(i)};return n.resolve=i=>e(i),n.reject=i=>t(i),n.timeout=(i,o)=>sA.setTimeout(()=>n.reject(o),i),n.promise=r,n}var Ro=R(()=>{aA();Nn();Cg();it();Ec()});var pA=R(()=>{});function Vj(){Mg!=null&&(cancelAnimationFrame(Mg),Mg=requestAnimationFrame(hA))}function Ly(e){let t=new w4(e);return b4.push(t),Iy.willDispatch||(Iy.willDispatch=!0,f4(wA)),t}function Uj(e=!1){Bf.forAll(t=>{t.removed=!0}),e&&gA()}function hA(){let e=performance.now();Mg=null,Mg=Bf.some(r=>!r.paused&&!r.removed)?requestAnimationFrame(hA):null,Iy.executeFrameTasks(e)}function zj(e){let t=e-fA;fA=e;let r=mA>0?mA:1e3/60,n=Math.max(0,t-r);Pg.time=e,Pg.frameDuration=r-n;for(let i=0;i<y4.length;i++){let o=performance.now(),s=y4[i];Bf.forAll(c=>{c.paused||c.removed||(i===0&&c.ticks++,c.phases[s]&&(Pg.elapsedFrameTime=performance.now()-e,Pg.deltaTime=c.ticks===0?0:t,c.phases[s]?.call(c,Pg)))}),Gj[i].push(performance.now()-o)}gA(),jj.push(performance.now()-e)}function gA(){Bf.forAll(e=>{e.removed&&Ay.push(e)}),Bf.removeUnorderedMany(Ay.data,Ay.length),Ay.clear()}function wA(){for(;b4.length;){let e=b4.shift();e.isActive&&e.callback()}Iy.willDispatch=!1}function Wj(e=1,t){let r=ci(),n=()=>{oa(t)?r.reject(ys()):e===0?r():(--e,f4(()=>n()))};return n(),r.promise}function Bj(e){return Wj(1,e)}async function yA(e){await Bj(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}var w4,fA,mA,Pg,y4,b4,Bf,Iy,Mg,Ay,Gj,jj,ky=R(()=>{tA();rA();oA();Ro();pA();w4=class{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}},fA=0,mA=0,Pg={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},y4=["prepare","preRender","render","postRender","update","finish"],b4=[],Bf=new Sg;Iy={frameTasks:Bf,willDispatch:!1,clearFrameTasks:Uj,dispatch:wA,executeFrameTasks:zj,reschedule:Vj};Mg=null;Ay=new Sg;Gj=y4.map(e=>new xg(e)),jj=new xg("total")});function bA(e,t){if(!t)return e;for(let r of t)r!=null&&e.add(r);return e}function vA(e,t){let r=new Set;return bA(r,e),bA(r,t),r}var v4=R(()=>{});function Ny(){return++qj}var qj,_A=R(()=>{qj=0});function Hj(){}var Iu,_4,xA,x4=R(()=>{fg();Iu=class extends ws{constructor(t){super(new _4(t)),this._observer&&xA.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&xA.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}},_4=class{constructor(t){this._notify=t,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let t=this._invalidCount;if(t===1)return this._invalidCount=0,void this._notify();this._invalidCount=t>0?t-1:0}destroy(){this.destroyed=!0,this._notify=Hj}},xA=new FinalizationRegistry(e=>{e.deref()?.destroy()})});function E4(e,t){let r=new Iu(o),n=null,i=!1;function o(){if(!r||i)return;if(S4)return void Zj(o);let c=n;r.clear(),S4=!0,i=!0,n=No(r,e),i=!1,S4=!1,t(n,c),Yj()}function s(){r&&(r.destroy(),r=null,n=null)}return i=!0,n=No(r,e),i=!1,Pt(s)}function C4(e,t){let r=new Iu(i),n=null;function i(){t(n,s)}function o(){r&&(r.destroy(),r=null),n=null}function s(){return r?(r.clear(),n=No(r,e),n):null}return s(),Pt(o)}function Zj(e){Oy.includes(e)||Oy.unshift(e)}function Yj(){for(;Oy.length;)Oy.pop()()}var S4,Oy,T4=R(()=>{oi();Au();x4();S4=!1,Oy=[]});function Fy(e){Pc.delete(e),Pc.add(e),Dy||(Dy=Ly(Xj))}function Jj(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function SA(e){for(let t of Pc.values())t.target===e&&(t.removed=!0)}function Xj(){let e=10;for(;Dy&&e--;){Dy=null;let t=Qj(),r=Ry.acquire();for(let n of t){let i=n.uid;Jj(n),i===n.uid&&n.removed&&r.push(n)}for(let n of Pc)n.removed&&(r.push(n),Pc.delete(n));for(let n of r)Lu.pool.release(n);Ry.release(r),Ry.release(t),Kj.forEach(n=>n())}}function Qj(){let e=Ry.acquire();e.length=Pc.size;let t=0;for(let r of Pc)e[t]=r,++t;return Pc.clear(),e}function eq(e,t,r){let n=zS(e,t,r,(i,o,s)=>{let c,a,d=C4(()=>Pu(i,o),(h,g)=>{i.__accessor__?.lifecycle===dn.DESTROYED||c&&c.uid!==a?n.remove():(c||(c=Lu.acquireUntracked(h,s,g,i,o),a=c.uid),Fy(c))});return Pt(()=>{d.remove(),c&&(c.uid!==a||c.removed||(c.removed=!0,Fy(c)),c=null),n=d=null})});return n}function tq(e,t,r){let n=zS(e,t,r,(i,o,s)=>{let c=!1;return E4(()=>Pu(i,o),(a,d)=>{i.__accessor__.lifecycle!==dn.DESTROYED?c||(c=!0,Eh(d,a)||s.call(i,a,d,o,i),c=!1):n.remove()})});return n}function EA(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==dn.DESTROYED?n?tq(e,t,r):eq(e,t,r):Pt()}function rq(e,t,r){let n,i,o=C4(e,(s,c)=>{n&&n.uid!==i?o.remove():(n||(n=Lu.acquireTracked(s,t,c,r),i=n.uid),Fy(n))});return Pt(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,Fy(n)),n=null),o=null})}function nq(e,t,r){let n=!1;return E4(e,(i,o)=>{n||(n=!0,r(o,i)||t(i,o),n=!1)})}function CA(e,t,r=!1,n=I8){return r?nq(e,t,n):rq(e,t,n)}var Ag,Lu,Ry,Pc,Dy,Kj,P4=R(()=>{Cy();oi();mr();eA();ky();v4();_A();Mu();pg();T4();ia();(function(e){e[e.Untracked=0]="Untracked",e[e.Tracked=1]="Tracked"})(Ag||(Ag={}));Lu=class{constructor(){this.uid=Ny(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(t,r,n,i,o){return this.pool.acquire(Ag.Untracked,t,r,n,i,o,Eh)}static acquireTracked(t,r,n,i){return this.pool.acquire(Ag.Tracked,t,r,n,null,null,i)}notify(t,r){this.type===Ag.Untracked?this.callback.call(this.target,t,r,this.path,this.target):this.callback.call(null,t,r,void 0,void 0)}acquire(t,r,n,i,o,s,c){this.uid=Ny(),this.removed=!1,this.type=t,this.oldValue=r,this.callback=n,this.getValue=i,this.target=o,this.path=s,this.equals=c}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=Ny(),this.removed=!0}};Lu.pool=new Ty(Lu);Ry=new jn,Pc=new Set;Kj=new Set});function iq(e){if(e==null)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}var TA,PA,bs,M4,Yr,Mc=R(()=>{VM();BM();it();Ec();jS();Mu();pg();$f();XM();GS();KM();P4();yt();ft();bs=Symbol("Accessor-Handles"),M4=Symbol("Accessor-Initialized"),Yr=class e{static createSubclass(t={}){if(Array.isArray(t))throw new Error("Multi-inheritance unsupported since 4.16");let{properties:r,declaredClass:n,constructor:i}=t;delete t.declaredClass,delete t.properties,delete t.constructor;let o=this;class s extends o{constructor(...a){super(...a),this.inherited=null,i&&i.apply(this,a)}}Sc(s.prototype);for(let c in t){let a=t[c];s.prototype[c]=typeof a=="function"?function(...d){let h=this.inherited,g;this.inherited=function(...v){if(o.prototype[c])return o.prototype[c].apply(this,v)};try{g=a.apply(this,d)}catch(v){throw this.inherited=h,v}return this.inherited=h,g}:t[c]}for(let c in r){let a=iq(r[c]);V(a)(s.prototype,c)}return Le(n)(s)}static freeze(t){return t instanceof e?t.__accessor__.mutable=!1:Object.freeze(t),t}static isFrozen(t){return t instanceof e?!t.__accessor__.mutable:Object.isFrozen(t)}constructor(...t){if(this[TA]=null,this[PA]=!1,this.constructor===e)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let r=new Ey(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:r}),t.length>0&&(r.ctorArgs=this.normalizeCtorArgs?.apply(this,t)??t[0]),d4()?.onInstanceConstruct(this)}postscript(){let t=this.__accessor__,r=t.ctorArgs;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[M4]=!0}initialize(){}[ly](){this[bs]=yg(this[bs])}destroy(){this.destroyed||(SA(this),this.__accessor__.destroy(),d4()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[M4]}get destroyed(){return this.__accessor__?.lifecycle===dn.DESTROYED||!1}commitProperty(t){gs(this,t)}hasOwnProperty(t){return this.__accessor__?this.__accessor__.has(t):Object.prototype.hasOwnProperty.call(this,t)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(t,r){return Uf(this,t,r),this}watch(t,r,n){return $M(ot.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html#watch",warnOnce:!0}),EA(this,t,r,n)}addHandles(t,r){if(this.destroyed){let n=Array.isArray(t)?t:[t];for(let i of n)i.remove();return}(this[bs]??(this[bs]=new zf)).add(t,r)}removeHandles(t){this[bs]?.remove(t)}removeAllHandles(){this[bs]?.removeAll()}removeHandlesReference(t){this[bs]?.removeReference(t)}hasHandles(t){return this[bs]?.has(t)===!0}_override(t,r){r===void 0?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_clearOverride(t){return this.__accessor__.clearOverride(t)}_overrideIfSome(t,r){r==null?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_isOverridden(t){return this.__accessor__.isOverridden(t)}notifyChange(t){this.__accessor__.notifyChange(t)}_get(t){return this.__accessor__.internalGet(t)}_set(t,r){return this.__accessor__.internalSet(t,r),this}};TA=bs,PA=M4});var $y,A4,MA=R(()=>{mr();Cc();$y=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,Ye(n.value),n.origin)}),r}get(t,r){r=this._normalizeOrigin(r);let n=this._values.get(t);return r==null||n?.origin===r?n?.value:void 0}originOf(t){return this._values.get(t)?.origin??ct.USER}keys(t){t=this._normalizeOrigin(t);let r=[...this._values.keys()];return t==null?r:r.filter(n=>this._values.get(n)?.origin===t)}set(t,r,n){if((n=this._normalizeOrigin(n))===ct.DEFAULTS){let i=this._values.get(t);if(i?.origin!=null&&i.origin>n)return}this._values.set(t,new A4(r,n))}delete(t,r){(r=this._normalizeOrigin(r))!=null&&this._values.get(t)?.origin!==r||this._values.delete(t)}has(t,r){return(r=this._normalizeOrigin(r))!=null?this._values.get(t)?.origin===r:this._values.has(t)}forEach(t){this._values.forEach(({value:r},n)=>t(r,n))}_normalizeOrigin(t){if(t!=null)return t===ct.DEFAULTS?t:ct.USER}},A4=class{constructor(t,r){this.value=t,this.origin=r}}});function AA(e,t,r){t.keys().forEach(i=>{r.set(i,t.get(i),ct.DEFAULTS)});let n=e.metadata;Object.keys(n).forEach(i=>{e.internalGet(i)&&r.set(i,e.internalGet(i),ct.DEFAULTS)})}var IA=R(()=>{Cc()});function oq(e,t,r){if(!e?.read||e.read.enabled===!1||!e.read.source)return!1;let n=e.read.source;if(typeof n=="string"){if(n===t||n.includes(".")&&n.indexOf(t)===0&&WS(n,r))return!0}else for(let i of n)if(i===t||i.includes(".")&&i.indexOf(t)===0&&WS(i,r))return!0;return!1}function sq(e){return e&&(!e.read||e.read.enabled!==!1&&!e.read.source)}function aq(e,t,r,n,i){let o=gy(t[r],i);sq(o)&&(e[r]=!0);for(let s of Object.getOwnPropertyNames(t))o=gy(t[s],i),oq(o,r,n)&&(e[s]=!0)}function cq(e,t,r,n){let i=r.metadata,o=kM(i[t],n),s=o?.default;if(s===void 0)return;let c=typeof s=="function"?s.call(e,t,n):s;c!==void 0&&r.set(t,c)}function LA(e,t,r=lq){if(!t||typeof t!="object")return;let n=Ci(e),i=n.metadata,o={};for(let s of Object.getOwnPropertyNames(t))aq(o,i,s,t,r);n.setDefaultOrigin(r.origin);for(let s of Object.getOwnPropertyNames(o)){let c=gy(i[s],r).read,a=c?.source,d;d=a&&typeof a=="string"?Pu(t,a):t[s],c?.reader&&(d=c.reader.call(e,d,t,r)),d!==void 0&&n.set(s,d)}if(!r||!r.ignoreDefaults){n.setDefaultOrigin("defaults");for(let s of Object.getOwnPropertyNames(i))o[s]||cq(e,s,n,r)}n.setDefaultOrigin("user")}var lq,kA=R(()=>{Mu();ia();wy();lq={origin:"service"}});function uq(e,t,r,n,i){let o={};return t.write?.writer?.call(e,n,o,r,i),o}function dq(e,t,r,n,i,o){if(!n?.write)return!1;let s=gs(e,r);if(!i&&n.write.overridePolicy){let c=n.write.overridePolicy.call(e,s,r,o??void 0);c!==void 0&&(i=c)}if(i||(i=n.write),!i||i.enabled===!1||i.layerContainerTypes&&o?.layerContainerType&&!i.layerContainerTypes.includes(o.layerContainerType))return!1;if((s===null&&!i.allowNull&&!i.writerEnsuresNonNull||s===void 0)&&i.isRequired){let c=new Ge("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return c&&o?.messages?o.messages.push(c):c&&!o&&ot.getLogger("esri.core.accessorSupport.write").error(c.name,c.message),!1}return!(s===void 0||s===null&&!i.allowNull&&!i.writerEnsuresNonNull||!i.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||t.store.originOf(r)===ct.DEFAULTS)&&pq(e,r,o,n,s)||!i.ignoreOrigin&&o?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<vy(o.origin))}function pq(e,t,r,n,i){let o=n.default;if(o===void 0)return!1;if(n.defaultEquals!=null)return n.defaultEquals(i);if(typeof o=="function"){if(Array.isArray(i)){let s=o.call(e,t,r??void 0);return sc(s,i)}return!1}return o===i}function NA(e,t,r){if(e&&typeof e.toJSON=="function"&&(!e.toJSON.isDefaultToJSON||!e.write))return Df(t,e.toJSON(r));let n=Ci(e),i=n.metadata;for(let o in i){let s=NM(i[o],r);if(!dq(e,n,o,s,void 0,r))continue;let c=gs(e,o),a=uq(e,s,s.write&&typeof s.write.target=="string"?s.write.target:o,c,r);Object.keys(a).length>0&&(t=Df(t,a),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>Df(t,a,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:HM(n.store.originOf(o)),newOrigin:r.origin}))}return t}var OA=R(()=>{ac();Nn();it();Mu();Cc();ia();wy()});function fq(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");let r=new this;return r.read(e,t),r}var RA,Ig,ut,Nr=R(()=>{gt();Mc();MA();IA();kA();ia();OA();ft();RA=e=>{let t=class extends e{constructor(...r){super(...r);let n=Ci(this),i=n.store,o=new $y;n.store=o,AA(n,i,o)}read(r,n){LA(this,r,n)}write(r,n){return NA(this,r??{},n)}toJSON(r){return this.write({},r)}static fromJSON(r,n){return fq.call(this,r,n)}};return t=O([Le("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};Ig=class extends RA(Yr){};Ig=O([Le("esri.core.JSONSupport")],Ig),function(e){function t(r){return r&&typeof r=="object"&&"toJSON"in r&&typeof r.toJSON=="function"}e.JSONSupportMixin=RA,e.isSerializable=t}(Ig||(Ig={}));ut=Ig});function Pi(e,t,r){let n,i;return t===void 0||Array.isArray(t)?(i=e,r=t,n=[void 0]):(i=t,n=Array.isArray(e)?e:[e]),(o,s)=>{let c=o.constructor.prototype;n.forEach(a=>{let d=cy(o,a,i);d.read&&typeof d.read=="object"||(d.read={}),d.read.reader=c[s],r&&(d.read.source=(d.read.source||[]).concat(r))})}}var Gf=R(()=>{yt()});function mq(e){let t={};for(let r in e)t[e[r]]=r;return t}function DA(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function Xi(){return function(e,t){return new Or(e,{ignoreUnknown:!0,...t})}}var Or,Mi=R(()=>{ms();Or=class{constructor(t,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=mq(t),this.apiValues=DA(this._apiToJSON),this.jsonValues=DA(this._jsonToAPI),this.read=n=>this.fromJSON(n),this.write=(n,i,o)=>{let s=this.toJSON(n);s!==void 0&&Ks(o,s,i)},this.write.isJSONMapWriter=!0}toJSON(t){if(t==null)return null;if(this._apiToJSON.hasOwnProperty(t)){let r=this._apiToJSON[t];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?void 0:t}fromJSON(t){return t!=null&&this._jsonToAPI.hasOwnProperty(t)?this._jsonToAPI[t]:this._options.ignoreUnknown?void 0:t}}});var Lg,Do,Vy,Uy,zy=R(()=>{Lg=class{constructor(t,r,n,i,o,s){this.semiMajorAxis=t,this.flattening=r,this.outerAtmosphereRimWidth=n,this.atmosphereHeight=i,this.scaleHeight=o;let c=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*c,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=s||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}},Do=new Lg(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),Vy=new Lg(3396190,1/169.8944472236118,23e4,6e4,.111),Uy=new Lg(1737400,0,0,0,0)});function Wy(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function I4(e){let t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}var By=R(()=>{});function FA(e){let t=new Uint8Array(e),r="";for(let n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}var $A=R(()=>{});function Cq(){let e=On.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${`${On.scheme}://${On.host}${On.port!=null?`:${On.port}`:""}`}${t}`}function Ac(e){if(!e)return null;let t={path:null,query:null},r=new Rn(e),n=e.indexOf("?");return r.query===null?t.path=e:(t.path=e.slice(0,n),t.query=Ic(r.query)),r.fragment&&(t.hash=r.fragment,r.query===null&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function Ic(e){let t=e.split("&"),r={};for(let n of t){if(!n)continue;let i=n.indexOf("="),o,s;i<0?(o=decodeURIComponent(n),s=""):(o=decodeURIComponent(n.slice(0,i)),s=decodeURIComponent(n.slice(i+1)));let c=r[o];typeof c=="string"&&(c=r[o]=[c]),Array.isArray(c)?c.push(s):r[o]=s}return r}function ku(e,t){return e?t&&typeof t=="function"?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(n==null)return"";let i=encodeURIComponent(r)+"=",o=t?.[r];return o?i+encodeURIComponent(o(n)):Array.isArray(n)?n.map(s=>ut.isSerializable(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)).join("&"):ut.isSerializable(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)}).filter(r=>r).join("&"):""}function WA(e=!1){let t,r=jf.proxyUrl;if(typeof e=="string"){t=Pq(e);let n=qf(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw hq().warn(VA),new Ge("urlUtils:proxy-not-set",VA);return t&&L4()&&(r=Xy(r)),Ac(r)}function BA(e){let t=e.indexOf("?");return t!==-1?(kg.path=e.slice(0,t),kg.query=e.slice(t+1)):(kg.path=e,kg.query=null),kg}function GA(e){return e=(e=HA(e=kq(e=BA(e).path),!0)).toLowerCase()}function jA(e){let t={proxyUrl:e.proxyUrl,urlPrefix:GA(e.urlPrefix)},r=jf.proxyRules,n=t.urlPrefix,i=r.length;for(let o=0;o<r.length;o++){let s=r[o].urlPrefix;if(n.indexOf(s)===0){if(n.length===s.length)return-1;i=o;break}s.indexOf(n)===0&&(i=o+1)}return r.splice(i,0,t),i}function qf(e){let t=jf.proxyRules,r=GA(e);for(let n=0;n<t.length;n++)if(r.indexOf(t[n].urlPrefix)===0)return t[n]}function N4(e,t=jf.interceptors){let r=n=>n==null||n instanceof RegExp&&n.test(e)||typeof n=="string"&&e.startsWith(n);if(t){for(let n of t)if(Array.isArray(n.urls)){if(n.urls.some(r))return n}else if(r(n.urls))return n}return null}function qn(e,t,r=!1){if(!e||!t)return!1;let n=k4(e),i=k4(t);return!(!r&&n.scheme!==i.scheme)&&n.host!=null&&i.host!=null&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function qy(e){if(typeof e=="string"){if(!qA(e))return!0;e=k4(e)}if(qn(e,On))return!0;let t=jf.trustedServers||[];for(let r=0;r<t.length;r++){let n=Tq(t[r]);for(let i=0;i<n.length;i++)if(qn(e,n[i]))return!0}return!1}function Tq(e){return Gy[e]||(R4(e)||kc(e)?Gy[e]=[new Rn(Lc(e))]:Gy[e]=[new Rn(`http://${e}`),new Rn(`https://${e}`)]),Gy[e]}function Lc(e,t=Eq,r){return kc(e)?r?.preserveProtocolRelative?e:On.scheme==="http"&&On.authority===li(e).slice(2)?`http:${e}`:`https:${e}`:R4(e)?e:O4(e[0]==="/"?Lq(t):t,e)}function Hy(e){return e=Rq(e=Oq(e=Nq(e=Lc(e=e.trim()))))}function O4(...e){let t=e.filter(m8);if(!t?.length)return;let r=[];if(qA(t[0])){let i=t[0],o=i.indexOf("//");o!==-1&&(r.push(i.slice(0,o+1)),Aq(t[0])&&(r[0]+="/"),t[0]=i.slice(o+2))}else t[0][0]==="/"&&r.push("");let n=t.reduce((i,o)=>o?i.concat(o.split("/")):i,[]);for(let i=0;i<n.length;i++){let o=n[i];o===".."&&r.length>0&&r[r.length-1]!==".."?r.pop():(!o&&i===n.length-1||o&&(o!=="."||r.length===0))&&r.push(o)}return r.join("/")}function li(e,t=!1){if(e==null||Zy(e)||Yy(e))return null;let r=e.indexOf("://");if(r===-1&&kc(e))r=2;else{if(r===-1)return null;r+=3}let n=e.indexOf("/",r);return n!==-1&&(e=e.slice(0,n)),t&&(e=HA(e,!0)),e}function qA(e){return kc(e)||R4(e)}function Zy(e){return e!=null&&e.slice(0,5)==="blob:"}function Yy(e){return e!=null&&e.slice(0,5)==="data:"}function Jy(e){return FA(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function kc(e){return e!=null&&e[0]==="/"&&e[1]==="/"}function R4(e){return e!=null&&UA.test(e)}function Pq(e){return e!=null&&gq.test(e)||On.scheme==="https"&&kc(e)}function Mq(e){return e!=null&&zA.test(e)||On.scheme==="http"&&kc(e)}function Aq(e){return e!=null&&wq.test(e)}function Xy(e){return kc(e)?`https:${e}`:e.replace(zA,"https:")}function Iq(){return On.scheme==="http"}function L4(){return On.scheme==="https"}function HA(e,t=!1){return kc(e)?e.slice(2):(e=e.replace(UA,""),t&&e.length>1&&e[0]==="/"&&e[1]==="/"&&(e=e.slice(2)),e)}function Lq(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return r===-1?e:e.slice(0,r)}function kq(e){return e.endsWith("/")?e:`${e}/`}function Nq(e){if(/^https?:\/\//i.test(e)){let t=BA(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}function Oq(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function Rq(e){let t=jf.httpsDomains;if(!Mq(e))return e;let r=e.indexOf("/",7),n;if(n=r===-1?e:e.slice(0,r),n=n.toLowerCase().slice(7),yq.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return Iq()&&n===On.authority&&!bq.test(e)||(L4()&&n===On.authority||t&&t.some(i=>n===i||n.endsWith(`.${i}`))||L4()&&!qf(e))&&(e=Xy(e)),e}function k4(e){return typeof e=="string"?new Rn(Lc(e)):(e.scheme||(e.scheme=On.scheme),e)}function Hf(e,t){if(!t)return e;let r=Ac(e),n=r.query||{};for(let[o,s]of Object.entries(t))s!=null&&(n[o]=s);let i=ku(n);return i?`${r.path}?${i}`:r.path}var hq,jf,VA,UA,zA,gq,wq,yq,bq,vq,_q,Rn,Gy,xq,On,Sq,Eq,jy,kg,Nc=R(()=>{xc();ac();Nn();Nr();it();By();$A();hq=()=>ot.getLogger("esri.core.urlUtils"),jf=Mt.request,VA="esri/config: esriConfig.request.proxyUrl is not set.",UA=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,zA=/^\s*http:/i,gq=/^\s*https:/i,wq=/^\s*file:/i,yq=/:\d+$/,bq=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,vq=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),_q=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$"),Rn=class{constructor(t=""){this.uri=t,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let r=this.uri.match(vq);this.scheme=r[2]||(r[1]?"":null),this.authority=r[4]||(r[3]?"":null),this.path=r[5],this.query=r[7]||(r[6]?"":null),this.fragment=r[9]||(r[8]?"":null),this.authority!=null&&(r=this.authority.match(_q),this.user=r[3]||null,this.password=r[4]||null,this.host=r[6]||r[7],this.port=r[9]||null)}toString(){return this.uri}},Gy={},xq=new Rn(Mt.applicationUrl),On=xq,Sq=Cq(),Eq=Sq,jy=()=>On;kg={path:"",query:""}});function ZA(e){Jr=e}var Dq,Jr,Fq,Qy=R(()=>{rt();Nc();NS();Symbol.dispose??(Symbol.dispose=Symbol("Symbol.dispose")),Symbol.asyncDispose??(Symbol.asyncDispose=Symbol("Symbol.asyncDispose"));Dq="4.32",Fq=Dq;Fq=`4.32.0-next.${ey}`;me("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),me("host-webworker")});function Vq(e){let t=li(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!$q.has(t)&&!e.endsWith("/sharing/rest/generateToken")}function YA(e,t){return!(!t&&!Mt.apiKey||!Vq(e))}var $q,JA=R(()=>{xc();Nc();$q=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"])});function QA(e,t,r=!1,n){return new Promise((i,o)=>{if(oa(n))return void o(XA());let s=()=>{d(),o(new Error(`Unable to load ${t}`))},c=()=>{let h=e;d(),i(h)},a=()=>{if(!e)return;let h=e;d(),h.src="",o(XA())},d=()=>{me("esri-image-decode")||(e.removeEventListener("error",s),e.removeEventListener("load",c)),s=null,c=null,e=null,n?.removeEventListener("abort",a),a=null,r&&URL.revokeObjectURL(t)};n?.addEventListener("abort",a),me("esri-image-decode")?e.decode().then(c,s):(e.addEventListener("error",s),e.addEventListener("load",c))})}function XA(){try{return new DOMException("Aborted","AbortError")}catch{let e=new Error;return e.name="AbortError",e}}function KA(){return new Error(Uq)}function eI(e){Mt.request.crossOriginNoCorsDomains||(Mt.request.crossOriginNoCorsDomains={});let t=Mt.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[li(r)??""]=0:(t[li("http://"+r)??""]=0,t[li("https://"+r)??""]=0)}function tI(e){let t=Mt.request.crossOriginNoCorsDomains;if(t){let r=li(e);if(r)return r=r.toLowerCase(),!qn(r,jy())&&t[r]<Date.now()-36e5}return!1}async function rI(e){let t=Ac(e);e=t.path,t.query?.f==="json"&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}let r=Mt.request.crossOriginNoCorsDomains,n=li(e);r&&n&&(r[n.toLowerCase()]=Date.now())}var Uq,nI=R(()=>{xc();rt();Ro();Nc();Uq="Timeout exceeded"});var iI={};qs(iI,{execute:()=>zq});function zq(e,t){let r=t.responseType;r?r!=="array-buffer"&&r!=="blob"&&r!=="json"&&r!=="native"&&r!=="native-request-init"&&r!=="text"&&(r="text"):r="json",t.responseType=r;let n=t.signal;return delete t.signal,globalThis.invokeStaticMessage("request",{url:e,options:t},{signal:n}).then(async i=>{let o,s,c,a,d;if(i.data)if(i.data instanceof ArrayBuffer){if(!(r!=="json"&&r!=="text"&&r!=="blob"||(o=new Blob([i.data]),r!=="json"&&r!=="text"||(a=await o.text(),r!=="json")))){try{s=JSON.parse(a||null)}catch(h){let g={...h,url:e,requestOptions:t};throw new Ge("request:server",h.message,g)}if(s.error){let h={...s.error,url:e,requestOptions:t};throw new Ge("request:server",s.error.message,h)}}}else r==="native"&&(i.data.signal=n,c=await fetch(i.data.url,i.data),i.httpStatus=c.status);switch(r){case"blob":d=o;break;case"json":d=s;break;case"native":d=c;break;case"text":d=a;break;default:d=i.data}return{data:d,httpStatus:i.httpStatus,requestOptions:t,ssl:i.ssl,url:e}})}var oI=R(()=>{Nn()});var Zf,Nu,Ky=R(()=>{gt();Mc();oi();ft();Zf=class e{constructor(){this._emitter=new e.EventEmitter(this)}emit(t,r){return this._emitter.emit(t,r)}on(t,r){return this._emitter.on(t,r)}once(t,r){return this._emitter.once(t,r)}hasEventListener(t){return this._emitter.hasEventListener(t)}};(function(e){class t{constructor(i=null){this._target=i,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(i,o){let s=this._listenersMap?.get(i);if(!s)return!1;let c=this._target||this,a=!1;for(let d of s.slice()){let h="deref"in d?d.deref():d;h?h?.call(c,o):a=!0}return a&&(s=s.filter(d=>!("deref"in d)||d.deref()!=null),this._listenersMap.set(i,s)),s.length>0}on(i,o){if(Array.isArray(i)){let c=i.map(a=>this.on(a,o));return Tu(c)}if(i.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??(this._listenersMap=new Map);let s=this._listenersMap.get(i)||[];return s.push(o),this._listenersMap.set(i,s),Pt(()=>{let c=this._listenersMap?.get(i),a=c?.indexOf(o)??-1;a>=0&&c.splice(a,1)})}once(i,o){let s=this.on(i,c=>{s.remove(),("deref"in o?o.deref():o)?.call(null,c)});return s}hasEventListener(i){let o=this._listenersMap?.get(i);return o!=null&&o.length>0}}e.EventEmitter=t,e.EventedMixin=n=>{let i=class extends n{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(o,s){return this._emitter.emit(o,s)}on(o,s){return this._emitter.on(o,s)}once(o,s){return this._emitter.once(o,s)}hasEventListener(o){return this._emitter.hasEventListener(o)}};return i=O([Le("esri.core.Evented")],i),i};let r=class extends Yr{constructor(){super(...arguments),this._emitter=new Zf.EventEmitter(this)}destroy(){this._emitter.clear()}emit(n,i){return this._emitter.emit(n,i)}on(n,i){return this._emitter.on(n,i)}once(n,i){return this._emitter.once(n,i)}hasEventListener(n){return this._emitter.hasEventListener(n)}};r=O([Le("esri.core.Evented.EventedAccessor")],r),e.EventedAccessor=r})(Zf||(Zf={}));Nu=Zf});var D4,sI=R(()=>{D4=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]])});function Wq(e){return"timeZoneIANA"in e}function Bq(e){return e.startsWith("UTC")}function eb(e,t=Fo){return e?Wq(e)?e.timeZoneIANA:Gq(e,t):t}function Gq(e,t=Fo){if(!e||!D4.has(e.timeZone))return t;let r=D4.get(e.timeZone);return Bq(e.timeZone)||e.respectsDaylightSaving?r:jq(r)}function jq(e){let t=Ce.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return r===0?"Etc/UTC":`Etc/GMT${Rt.instance(-r).formatOffset(0,"narrow")}`}var Fo,Ou,Yf,aI,Ng=R(()=>{sI();kn();Fo="system",Ou="unknown",Yf="UTC",aI=Intl.DateTimeFormat().resolvedOptions().timeZone});function Yq(e){let t=F4.get(e);if(!t){let r=Yi(),n=Hq[r]||r,i=tb(e.timeZone??Fo),o={...e,timeZone:i};t=new Intl.DateTimeFormat(n,o),F4.set(e,t)}return t}function Jf(e,t=Zq){return Yq(t).format(e)}function tb(e){switch(e){case Fo:return aI;case Ou:return Yf;default:return e}}var vs,Og,Rg,Dg,Oc,Ru,cI,Fg,$g,qq,vhe,Hq,F4,Zq,rb=R(()=>{Mi();vc();Ng();kn();vs={year:"numeric",month:"numeric",day:"numeric"},Og={year:"numeric",month:"long",day:"numeric"},Rg={year:"numeric",month:"short",day:"numeric"},Dg={year:"numeric",month:"long",weekday:"long",day:"numeric"},Oc={hour:"numeric",minute:"numeric"},Ru={...Oc,second:"numeric"},cI={hourCycle:"h23"},Fg={...Oc,...cI},$g={...Ru,...cI},qq={"short-date":vs,"short-date-short-time":{...vs,...Oc},"short-date-short-time-24":{...vs,...Fg},"short-date-long-time":{...vs,...Ru},"short-date-long-time-24":{...vs,...$g},"short-date-le":vs,"short-date-le-short-time":{...vs,...Oc},"short-date-le-short-time-24":{...vs,...Fg},"short-date-le-long-time":{...vs,...Ru},"short-date-le-long-time-24":{...vs,...$g},"long-month-day-year":Og,"long-month-day-year-short-time":{...Og,...Oc},"long-month-day-year-short-time-24":{...Og,...Fg},"long-month-day-year-long-time":{...Og,...Ru},"long-month-day-year-long-time-24":{...Og,...$g},"day-short-month-year":Rg,"day-short-month-year-short-time":{...Rg,...Oc},"day-short-month-year-short-time-24":{...Rg,...Fg},"day-short-month-year-long-time":{...Rg,...Ru},"day-short-month-year-long-time-24":{...Rg,...$g},"long-date":Dg,"long-date-short-time":{...Dg,...Oc},"long-date-short-time-24":{...Dg,...Fg},"long-date-long-time":{...Dg,...Ru},"long-date-long-time-24":{...Dg,...$g},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":Oc,"long-time":Ru},vhe=Xi()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),Hq={ar:"ar-u-nu-latn-ca-gregory"},F4=new WeakMap,Zq=qq["short-date-short-time"];Nf(()=>{F4=new WeakMap})});function Xq(e){let t=e||lI;if(!nb.has(t)){let r=Yi(),n=Jq[Yi()]||r;nb.set(t,new Intl.NumberFormat(n,e))}return nb.get(t)}function Xf(e,t){return Object.is(e,-0)&&(e=0),Xq(t).format(e)}var Jq,nb,lI,$4=R(()=>{vc();Jq={ar:"ar-u-nu-latn"},nb=new WeakMap,lI={};Nf(()=>{nb=new WeakMap,lI={}})});function V4(e,t,r={}){let{format:n={}}=r;return hs(e,i=>Qq(i,t,n))}function Qq(e,t,r){let n,i,o=e.indexOf(":");if(o===-1?n=e.trim():(n=e.slice(0,o).trim(),i=e.slice(o+1).trim()),!n)return"";let s=ji(n,t);if(s==null)return"";let c=(i?r?.[i]:null)??r?.[n];return c?Kq(s,c):i?eH(s,i):U4(s)}function Kq(e,t){switch(t.type){case"date":return Jf(e,t.intlOptions);case"number":return Xf(e,t.intlOptions);default:return uI().warn("missing format descriptor for key {key}"),U4(e)}}function eH(e,t){switch(t.toLowerCase()){case"dateformat":return Jf(e);case"numberformat":return Xf(e);default:return uI().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?Jf(e):/^numberformat/i.test(t)?Xf(e):U4(e)}}function U4(e){switch(typeof e){case"string":return e;case"number":return Xf(e);case"boolean":return""+e;default:return e instanceof Date?Jf(e):""}}var uI,z4=R(()=>{it();ms();cc();rb();$4();uI=()=>ot.getLogger("esri.intl.substitute")});function pI(e){return e in tH}function fI(e){for(let t of Qf.keys())hI(e.pattern,t)&&Qf.delete(t)}function mI(e){return Vg.includes(e)||(fI(e),Vg.unshift(e)),Pt(()=>{let t=Vg.indexOf(e);t>-1&&(Vg.splice(t,1),fI(e))})}async function W4(e){let t=Yi();Qf.has(e)||Qf.set(e,rH(e,t));let r=Qf.get(e);return r&&await nH.add(r),r}function B4(e){if(!dI.test(e))return null;let t=dI.exec(e);if(t===null)return null;let[,r,n]=t,i=r+(n?"-"+n.toUpperCase():"");return pI(i)?i:pI(r)?r:null}async function rH(e,t){let r=[];for(let n of Vg)if(hI(n.pattern,e))try{return await n.fetchMessageBundle(e,t)}catch(i){r.push(i)}throw r.length?new Ge("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new Ge("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}function hI(e,t){return typeof e=="string"?t.startsWith(e):e.test(t)}var dI,tH,Vg,Qf,nH,Ug=R(()=>{Nn();oi();Ro();vc();dI=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,tH={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};Vg=[],Qf=new Map;Nf(()=>{Qf.clear()});nH=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=ci())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&this._numLoading===0&&(this._dfd.resolve(),this._dfd=null)}}});async function iH(e,t,r,n){let i=t.exec(r);if(!i)throw new Ge("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);let o=i[1]?`${i[1]}/`:"",s=i[2],c=B4(n),a=`${o}${s}.json`,d=c?`${o}${s}_${c}.json`:a,h;try{h=await gI(e(d))}catch(g){if(d===a)throw new Ge("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:g});try{h=await gI(e(a))}catch(v){throw new Ge("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:v})}}return h}async function gI(e){if(wI.fetchBundleAsset!=null)return wI.fetchBundleAsset(e);let t=await wr(e,{responseType:"text"});return JSON.parse(t.data)}function yI(e){return new G4(e)}var G4,wI,bI=R(()=>{ib();Nn();Ug();G4=class{constructor({base:t="",pattern:r,location:n=new URL(window.location.href)}){let i;i=typeof n=="string"?o=>new URL(o,new URL(n,window.location.href)).href:n instanceof URL?o=>new URL(o,n).href:n,this.pattern=typeof r=="string"?new RegExp(`^${r}`):r,this.getAssetUrl=i,t=t?t.endsWith("/")?t:t+"/":"",this.matcher=new RegExp(`^${t}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(t,r){return iH(this.getAssetUrl,this.matcher,t,r)}};wI={}});var j4=R(()=>{rb();$4();z4();vc();Ug();Ug();bI();ob();mI(yI({pattern:"esri/",location:Kf}))});function vI(e){return typeof e=="string"?document.getElementById(e):e??null}var _I=R(()=>{});var Rc,q4,xI,zg,SI,EI=R(()=>{gt();Mc();Ro();ft();(function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"})(Rc||(Rc={}));q4=class{constructor(){this._resolver=ci(),this._status=Rc.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=Rc.RESOLVED,this._cleanUp()},()=>{this._status=Rc.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===Rc.RESOLVED}isRejected(){return this._status===Rc.REJECTED}isFulfilled(){return this._status!==Rc.PENDING}abort(){this._resolver.reject(ys())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let t=ci(),r=[...this._resolvingPromises,t.promise],n=this._allPromise=Promise.all(r);n.then(()=>{this.isFulfilled()||this._allPromise!==n||this._resolver.resolve()},i=>{this.isFulfilled()||this._allPromise!==n||Tg(i)||this._resolver.reject(i)}),t.resolve()}},xI=e=>{let t=class extends e{constructor(...r){super(...r),this._promiseProps=new q4,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(r,n){return this._promiseProps.promise.then(()=>this).then(r,n)}catch(r){return this.when(null,r)}addResolvingPromise(r){r&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in r?r.when():r)}};return t=O([Le("esri.core.Promise")],t),t},zg=class extends xI(Yr){};zg=O([Le("esri.core.Promise")],zg),function(e){e.EsriPromiseMixin=xI}(zg||(zg={}));SI=zg});function oH(e){return{ok:!0,value:e}}function sH(e){return{ok:!1,error:e}}function aH(e){return e!=null&&e.ok===!0?e.value:null}function cH(e){return e!=null&&e.ok===!1?e.error:null}var Du,CI=R(()=>{gt();Mc();Ec();Ro();yt();ft();Du=class extends Yr{get value(){return aH(this._result)}get error(){return cH(this._result)}get finished(){return this._result!=null}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=jM(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(n=>{this._result=oH(n),this._cleanup()},n=>{this._result=sH(n),this._cleanup()}),this._abortHandle=Ti(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=bg(this._abortHandle),this._abortController=null}};O([V()],Du.prototype,"value",null),O([V()],Du.prototype,"error",null),O([V()],Du.prototype,"finished",null),O([V()],Du.prototype,"promise",void 0),O([V()],Du.prototype,"_result",void 0),Du=O([Le("esri.core.asyncUtils.ReactiveTask")],Du)});var _t,TI=R(()=>{(function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"})(_t||(_t={}))});function PI(e){return(t,r)=>{t[r]=e}}var MI=R(()=>{});var sb,AI=R(()=>{c4();sb=class extends Wf{notify(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});function II(e){e&&typeof e=="object"&&"destroy"in e&&typeof e.destroy=="function"&&e.destroy()}function H4(e){return e?e instanceof Vc?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function Z4(e){if(e?.length)return e[0]}function lH(e,t,r,n){let i=Math.min(e.length-r,t.length-n),o=0;for(;o<i&&e[r+o]===t[n+o];)o++;return o}function LI(e,t,r,n){t&&t.forEach((i,o,s)=>{e.push(i),LI(e,r.call(n,i,o,s),r,n)})}var sa,J4,X4,Qi,Dc,Fc,$c,Y4,uH,Vc,kI=R(()=>{gt();Cy();Ky();oi();mr();vg();TI();ky();Ji();Au();yt();MI();ft();AI();J4=class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}},X4=class{constructor(t,r,n,i,o){this.target=t,this.added=r,this.removed=n,this.start=i,this.deleteCount=o}},Qi=new Oo(J4,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});Dc=new Set,Fc=new Set,$c=new Set,Y4=new Map,uH=0,Vc=sa=class extends Nu.EventedAccessor{static isCollection(e){return e!=null&&e instanceof sa}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new sb,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:uH++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof sa?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),this._emitter.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get items(){return Ke(this._observable),this._items}set items(e){this._emitBeforeChanges(_t.ADD)||(this._splice(0,this.length,H4(e)),this._emitAfterChanges(_t.ADD))}hasEventListener(e){return!this.destroyed&&(e==="change"?this._chgListeners.length>0:this._emitter.hasEventListener(e))}on(e,t){if(this.destroyed)return Pt();if(e==="change"){let r=this._chgListeners,n={removed:!1,callback:t};return r.push(n),this._notifications&&this._notifications.push({listeners:r.slice(),items:this._items.slice(),changes:[]}),Pt(()=>{n.removed=!0,r.splice(r.indexOf(n),1)})}return this._emitter.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,n=this.on(e,i=>{r()?.call(null,i),n.remove()});return n}add(e,t){if(Ke(this._observable),this._emitBeforeChanges(_t.ADD))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(_t.ADD),this}addMany(e,t=this._items.length){if(Ke(this._observable),!e?.length)return this;if(this._emitBeforeChanges(_t.ADD))return this;let r=this.getNextIndex(t);return this._splice(r,0,H4(e)),this._emitAfterChanges(_t.ADD),this}at(e){if(Ke(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if(Ke(this._observable),!this.length||this._emitBeforeChanges(_t.REMOVE))return[];let e=this._removeAllRaw();return this._emitAfterChanges(_t.REMOVE),e}_removeAllRaw(){return this.length===0?[]:this._splice(0,this.length)||[]}clone(){return Ke(this._observable),this._createNewInstance({items:this._items.map(Ye)})}concat(...e){Ke(this._observable);let t=e.map(H4);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if(Ke(this._observable),!this.length||this._emitBeforeChanges(_t.REMOVE))return;let r=this._splice(0,this.length),n=r.length;for(let i=0;i<n;i++)e.call(t,r[i],i,r);this._emitAfterChanges(_t.REMOVE)}destroyAll(){this.drain(II)}destroyMany(e){let t=this.removeMany(e);return t.forEach(II),t}every(e,t){return Ke(this._observable),this._items.every(e,t)}filter(e,t){Ke(this._observable);let r=arguments.length===2?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return Ke(this._observable),this._items.find(e,t)}findIndex(e,t){return Ke(this._observable),this._items.findIndex(e,t)}flatten(e,t){Ke(this._observable);let r=[];return LI(r,this,e,t),new sa(r)}forEach(e,t){return Ke(this._observable),this._items.forEach(e,t)}getItemAt(e){return Ke(this._observable),this._items[e]}getNextIndex(e){Ke(this._observable);let t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return Ke(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return Ke(this._observable),this._items.indexOf(e,t)}join(e=","){return Ke(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return Ke(this._observable),this._items.lastIndexOf(e,t)}map(e,t){Ke(this._observable);let r=this._items.map(e,t);return new sa({items:r})}reorder(e,t=this.length-1){Ke(this._observable);let r=this.indexOf(e);if(r!==-1){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(_t.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(_t.MOVE)}return e}}pop(){if(Ke(this._observable),!this.length||this._emitBeforeChanges(_t.REMOVE))return;let e=Z4(this._splice(this.length-1,1));return this._emitAfterChanges(_t.REMOVE),e}push(...e){return Ke(this._observable),this._emitBeforeChanges(_t.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(_t.ADD)),this.length}reduce(e,t){Ke(this._observable);let r=this._items;return arguments.length===2?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){Ke(this._observable);let r=this._items;return arguments.length===2?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return Ke(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if(Ke(this._observable),e<0||e>=this.length||this._emitBeforeChanges(_t.REMOVE))return;let t=Z4(this._splice(e,1));return this._emitAfterChanges(_t.REMOVE),t}removeMany(e){if(Ke(this._observable),!e?.length||this._emitBeforeChanges(_t.REMOVE))return[];let t=e instanceof sa?e.toArray():e,r=this._items,n=[],i=t.length;for(let o=0;o<i;o++){let s=t[o],c=r.indexOf(s);if(c>-1){let a=1+lH(t,r,o+1,c+1),d=this._splice(c,a);d&&d.length>0&&n.push.apply(n,d),o+=a-1}}return this._emitAfterChanges(_t.REMOVE),n}reverse(){if(Ke(this._observable),this._emitBeforeChanges(_t.MOVE))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(_t.MOVE),this}shift(){if(Ke(this._observable),!this.length||this._emitBeforeChanges(_t.REMOVE))return;let e=Z4(this._splice(0,1));return this._emitAfterChanges(_t.REMOVE),e}slice(e=0,t=this.length){return Ke(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return Ke(this._observable),this._items.some(e,t)}sort(e){if(Ke(this._observable),!this.length||this._emitBeforeChanges(_t.MOVE))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(_t.MOVE),this}splice(e,t,...r){Ke(this._observable);let n=(t?_t.REMOVE:0)|(r.length?_t.ADD:0);if(this._emitBeforeChanges(n))return[];let i=this._splice(e,t,r)||[];return this._emitAfterChanges(n),i}toArray(){return Ke(this._observable),this._items.slice()}toJSON(){return Ke(this._observable),this.toArray()}toLocaleString(){return Ke(this._observable),this._items.toLocaleString()}toString(){return Ke(this._observable),this._items.toString()}unshift(...e){return Ke(this._observable),!e.length||this._emitBeforeChanges(_t.ADD)||(this._splice(0,0,e),this._emitAfterChanges(_t.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let n=this._items,i=this.itemType,o,s;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=Ly(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){let c=Qi.acquire();c.target=this,c.cancellable=!0;for(let a=0,d=s.length;a<d;a++)o=s[a],c.reset(o),this.emit("before-remove",c),c.defaultPrevented&&(s.splice(a,1),n.splice(e,0,o),e+=1,a-=1,d-=1);Qi.release(c)}if(this.length=this._items.length,this.hasEventListener("after-remove")){let c=Qi.acquire();c.target=this,c.cancellable=!1;let a=s.length;for(let d=0;d<a;d++)c.reset(s[d]),this.emit("after-remove",c);Qi.release(c)}}if(r?.length){if(i){let h=[];for(let g of r){let v=i.ensureType(g);v==null&&g!=null||h.push(v)}r=h}let c=this.hasEventListener("before-add"),a=this.hasEventListener("after-add"),d=e===this.length;if(c||a){let h=Qi.acquire();h.target=this,h.cancellable=!0;let g=Qi.acquire();g.target=this,g.cancellable=!1;for(let v of r)c?(h.reset(v),this.emit("before-add",h),h.defaultPrevented||(d?n.push(v):n.splice(e++,0,v),this._set("length",n.length),a&&(g.reset(v),this.emit("after-add",g)))):(d?n.push(v):n.splice(e++,0,v),this._set("length",n.length),g.reset(v),this.emit("after-add",g));Qi.release(g),Qi.release(h)}else{if(d)for(let h of r)n.push(h);else n.splice(e,0,...r);this._set("length",n.length)}}if((r?.length||s?.length)&&this._notifyChangeEvent(r,s),this.hasEventListener("after-splice")){let c=new X4(this,r,s,e,t);this.emit("after-splice",c)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=Qi.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,Qi.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=Qi.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),Qi.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let r=t.changes;Dc.clear(),Fc.clear(),$c.clear();for(let{added:a,removed:d}of r){if(a)if($c.size===0&&Fc.size===0)for(let h of a)Dc.add(h);else for(let h of a)Fc.has(h)?($c.add(h),Fc.delete(h)):$c.has(h)||Dc.add(h);if(d)if($c.size===0&&Dc.size===0)for(let h of d)Fc.add(h);else for(let h of d)Dc.has(h)?Dc.delete(h):($c.delete(h),Fc.add(h))}let n=jn.acquire();Dc.forEach(a=>{n.push(a)});let i=jn.acquire();Fc.forEach(a=>{i.push(a)});let o=this._items,s=t.items,c=jn.acquire();if($c.forEach(a=>{s.indexOf(a)!==o.indexOf(a)&&c.push(a)}),t.listeners&&(n.length||i.length||c.length)){let a={target:this,added:n,removed:i,moved:c},d=t.listeners.length;for(let h=0;h<d;h++){let g=t.listeners[h];g.removed||g.callback.call(this,a)}}jn.release(n),jn.release(i),jn.release(c)}Dc.clear(),Fc.clear(),$c.clear()}};Vc.ofType=e=>{if(!e)return sa;if(Y4.has(e))return Y4.get(e);let t=null;if(typeof e=="function")t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let n in e.typeMap){let i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let r=class extends sa{};return O([PI({Type:e,ensureType:typeof e=="function"?si(e):ko(e)})],r.prototype,"itemType",void 0),r=O([Le(`esri.core.Collection<${t}>`)],r),Y4.set(e,r),r},O([V()],Vc.prototype,"_updating",void 0),O([V()],Vc.prototype,"length",void 0),O([V()],Vc.prototype,"items",null),O([V({readOnly:!0})],Vc.prototype,"updating",null),Vc=sa=O([Le("esri.core.Collection")],Vc)});function Wg(e,t,r={}){return OI(e,t,r,dH)}function NI(e,t,r={}){return OI(e,t,r,pH)}function OI(e,t,r={},n){let i=null,o=r.once?(s,c)=>{n(s)&&(bg(i),t(s,c))}:(s,c)=>{n(s)&&t(s,c)};if(i=CA(e,o,r.sync,r.equals),r.initial){let s=e();o(s,s)}return i}function dH(e){return!0}function pH(e){return!!e}var ab,Q4=R(()=>{CI();kI();Cg();oi();Ec();Ro();P4();T4();ab={sync:!0,initial:!0}});function RI(){if(fH)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=r=>e[r].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}var fH,DI=R(()=>{fH="randomUUID"in crypto});function hH(e){let t="__accessorMetadata__"in e?si(e):e;return function(...r){if(r.push(t),typeof r[2]=="number")throw new Error("Using @cast has parameter decorator is not supported since 4.16");return gH.apply(this,r)}}function gH(e,t,r,n){Ff(e,t).cast=n}function wH(e){return(t,r)=>{Ff(t,e).cast=t[r]}}function aa(...e){if(e.length!==3||typeof e[1]!="string")return e.length===1&&mH.call(e[0])==="[object Function]"?hH(e[0]):e.length===1&&typeof e[0]=="string"?wH(e[0]):void 0}var mH,Bg=R(()=>{Ji();$f();mH=Object.prototype.toString});function zI(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function yH(e,t,r){}function bH(e,t,r){}function _H(e,t){return vH.test(t)?"":t}function SH(e,t){e=Gg.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,s="";function c(){if(!n){var h=Gg.trim(e.slice(i,o)),g=h.indexOf(":");if(g!==-1){var v=Gg.trim(h.slice(0,g)),E=Gg.trim(h.slice(g+1));if(v){var P=t(i,s.length,v,E,h);P&&(s+=P+"; ")}}}i=o+1}for(;o<r;o++){var a=e[o];if(a==="/"&&e[o+1]==="*"){var d=e.indexOf("*/",o+2);if(d===-1)break;o=d+1,i=o+1,n=!1}else a==="("?n=!0:a===")"?n=!1:a===";"?n||c():a===`
7
7
  `&&c()}return Gg.trim(s)}function FI(e){return e==null}function TH(e){var t={};for(var r in e)t[r]=e[r];return t}function WI(e){e=TH(e||{}),e.whiteList=e.whiteList||cb.whiteList,e.onAttr=e.onAttr||cb.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||cb.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||cb.safeAttrValue,this.options=e}function BI(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}function IH(e,t,r){}function LH(e,t,r){}function kH(e,t,r){}function NH(e,t,r){}function jI(e){return e.replace(RH,"&lt;").replace(DH,"&gt;")}function OH(e,t,r,n){if(r=XI(r),t==="href"||t==="src"){if(r=fb.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(t==="background"){if(lb.lastIndex=0,lb.test(r))return""}else if(t==="style"){if($I.lastIndex=0,$I.test(r)||(VI.lastIndex=0,VI.test(r)&&(lb.lastIndex=0,lb.test(r))))return"";n!==!1&&(n=n||GI,r=n.process(r))}return r=QI(r),r}function qI(e){return e.replace(FH,"&quot;")}function HI(e){return e.replace($H,'"')}function ZI(e){return e.replace(VH,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function YI(e){return e.replace(UH,":").replace(zH," ")}function JI(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return fb.trim(t)}function XI(e){return e=HI(e),e=ZI(e),e=YI(e),e=JI(e),e}function QI(e){return e=qI(e),e=jI(e),e}function WH(){return""}function BH(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(s){return r?!0:fb.indexOf(e,s)!==-1}var i=[],o=!1;return{onIgnoreTag:function(s,c,a){if(n(s))if(a.isClosing){var d="[/removed]",h=a.position+d.length;return i.push([o!==!1?o:a.position,h]),o=!1,d}else return o||(o=a.position),"[removed]";else return t(s,c,a)},remove:function(s){var c="",a=0;return fb.forEach(i,function(d){c+=s.slice(a,d[0]),a=d[1]}),c+=s.slice(a),c}}}function GH(e){for(var t="",r=0;r<e.length;){var n=e.indexOf("<!--",r);if(n===-1){t+=e.slice(r);break}t+=e.slice(r,n);var i=e.indexOf("-->",n);if(i===-1)break;r=i+3}return t}function jH(e){var t=e.split("");return t=t.filter(function(r){var n=r.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),t.join("")}function qH(e){var t=Uc.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=Uc.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function HH(e){return e.slice(0,2)==="</"}function ZH(e,t,r){var n="",i=0,o=!1,s=!1,c=0,a=e.length,d="",h="";e:for(c=0;c<a;c++){var g=e.charAt(c);if(o===!1){if(g==="<"){o=c;continue}}else if(s===!1){if(g==="<"){n+=r(e.slice(i,c)),o=c,i=c;continue}if(g===">"){n+=r(e.slice(i,o)),h=e.slice(o,c+1),d=qH(h),n+=t(o,n.length,d,h,HH(h)),i=c+1,o=!1;continue}if(g==='"'||g==="'")for(var v=1,E=e.charAt(c-v);E.trim()===""||E==="=";){if(E==="="){s=g;continue e}E=e.charAt(c-++v)}}else if(g===s){s=!1;continue}}return i<e.length&&(n+=r(e.substr(i))),n}function JH(e,t){var r=0,n=0,i=[],o=!1,s=e.length;function c(v,E){if(v=Uc.trim(v),v=v.replace(YH,"").toLowerCase(),!(v.length<1)){var P=t(v,E||"");P&&i.push(P)}}for(var a=0;a<s;a++){var d=e.charAt(a),h,g;if(o===!1&&d==="="){o=e.slice(r,a),r=a+1,n=e.charAt(r)==='"'||e.charAt(r)==="'"?r:QH(e,a+1);continue}if(o!==!1&&a===n){if(g=e.indexOf(d,a+1),g===-1)break;h=Uc.trim(e.slice(n+1,g)),c(o,h),o=!1,a=g,r=a+1;continue}if(/\s|\n|\t/.test(d))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(g=XH(e,a),g===-1){h=Uc.trim(e.slice(r,a)),c(h),o=!1,r=a+1;continue}else{a=g-1;continue}else if(g=KH(e,a-1),g===-1){h=Uc.trim(e.slice(r,a)),h=UI(h),c(o,h),o=!1,r=a+1;continue}else continue}return r<e.length&&(o===!1?c(e.slice(r)):c(o,UI(Uc.trim(e.slice(r))))),Uc.trim(i.join(" "))}function XH(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function QH(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function KH(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function eZ(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function UI(e){return eZ(e)?e.substr(1,e.length-2):e}function ub(e){return e==null}function iZ(e){var t=db.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=db.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=db.trim(e.slice(0,-1))),{html:e,closing:r}}function oZ(e){var t={};for(var r in e)t[r]=e[r];return t}function sZ(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(n){return n.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function eL(e){e=oZ(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=$o.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=sZ(e.whiteList||e.allowList):e.whiteList=$o.whiteList,e.onTag=e.onTag||$o.onTag,e.onTagAttr=e.onTagAttr||$o.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||$o.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||$o.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||$o.safeAttrValue,e.escapeHtml=e.escapeHtml||$o.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new tZ(e.css))}var pb,K4,yr,e5,Fu,vH,xH,Gg,EH,cb,CH,PH,t5,r5,MH,AH,fb,GI,RH,DH,FH,$H,VH,UH,zH,lb,$I,VI,mb,Uc,YH,tZ,$o,KI,rZ,nZ,db,aZ,em,cZ,tL,rL=R(()=>{pb=function(){return pb=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},pb.apply(this,arguments)},K4={exports:{}},yr={},e5={exports:{}},Fu={};vH=/javascript\s*\:/img;Fu.whiteList=zI();Fu.getDefaultWhiteList=zI;Fu.onAttr=yH;Fu.onIgnoreAttr=bH;Fu.safeAttrValue=_H;xH={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},Gg=xH;EH=SH,cb=Fu,CH=EH;WI.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onAttr,o=r.onIgnoreAttr,s=r.safeAttrValue,c=CH(e,function(a,d,h,g,v){var E=n[h],P=!1;if(E===!0?P=E:typeof E=="function"?P=E(g):E instanceof RegExp&&(P=E.test(g)),P!==!0&&(P=!1),g=s(h,g),!!g){var A={position:d,sourcePosition:a,source:v,isWhite:P};if(P){var F=i(h,g,A);return FI(F)?h+":"+g:F}else{var F=o(h,g,A);if(!FI(F))return F}}});return c};PH=WI;(function(e,t){var r=Fu,n=PH;function i(s,c){var a=new n(c);return a.process(s)}t=e.exports=i,t.FilterCSS=n;for(var o in r)t[o]=r[o]})(e5,e5.exports);t5=e5.exports,r5={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}},MH=t5.FilterCSS,AH=t5.getDefaultWhiteList,fb=r5;GI=new MH;RH=/</g,DH=/>/g,FH=/"/g,$H=/&quot;/g,VH=/&#([a-zA-Z0-9]*);?/gim,UH=/&colon;?/gim,zH=/&newline;?/gim,lb=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,$I=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,VI=/u\s*r\s*l\s*\(.*/gi;yr.whiteList=BI();yr.getDefaultWhiteList=BI;yr.onTag=IH;yr.onIgnoreTag=LH;yr.onTagAttr=kH;yr.onIgnoreTagAttr=NH;yr.safeAttrValue=OH;yr.escapeHtml=jI;yr.escapeQuote=qI;yr.unescapeQuote=HI;yr.escapeHtmlEntities=ZI;yr.escapeDangerHtml5Entities=YI;yr.clearNonPrintableCharacter=JI;yr.friendlyAttrValue=XI;yr.escapeAttrValue=QI;yr.onIgnoreTagStripAll=WH;yr.StripTagBody=BH;yr.stripCommentTag=GH;yr.stripBlankChar=jH;yr.cssFilter=GI;yr.getDefaultCSSWhiteList=AH;mb={},Uc=r5;YH=/[^a-zA-Z0-9\\_:.-]/gim;mb.parseTag=ZH;mb.parseAttr=JH;tZ=t5.FilterCSS,$o=yr,KI=mb,rZ=KI.parseTag,nZ=KI.parseAttr,db=r5;eL.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onTag,o=r.onIgnoreTag,s=r.onTagAttr,c=r.onIgnoreTagAttr,a=r.safeAttrValue,d=r.escapeHtml,h=t.cssFilter;r.stripBlankChar&&(e=$o.stripBlankChar(e)),r.allowCommentTag||(e=$o.stripCommentTag(e));var g=!1;r.stripIgnoreTagBody&&(g=$o.StripTagBody(r.stripIgnoreTagBody,o),o=g.onIgnoreTag);var v=rZ(e,function(E,P,A,F,W){var z={sourcePosition:E,position:P,isClosing:W,isWhite:Object.prototype.hasOwnProperty.call(n,A)},j=i(A,F,z);if(!ub(j))return j;if(z.isWhite){if(z.isClosing)return"</"+A+">";var G=iZ(F),Y=n[A],ie=nZ(G.html,function(U,fe){var Ae=db.indexOf(Y,U)!==-1,Ee=s(A,U,fe,Ae);return ub(Ee)?Ae?(fe=a(A,U,fe,h),fe?U+'="'+fe+'"':U):(Ee=c(A,U,fe,Ae),ub(Ee)?void 0:Ee):Ee});return F="<"+A,ie&&(F+=" "+ie),G.closing&&(F+=" /"),F+=">",F}else return j=o(A,F,z),ub(j)?d(F):j},d);return g&&(v=g.remove(v)),v};aZ=eL;(function(e,t){var r=yr,n=mb,i=aZ;function o(c,a){var d=new i(a);return d.process(c)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=i,function(){for(var c in r)t[c]=r[c];for(var a in n)t[a]=n[a]}();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=e.exports)})(K4,K4.exports);em=K4.exports,cZ=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},tL=function(){function e(t,r){var n=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=pb(pb({},em.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(o,s,c,a){return o==="a"&&s==="href"||(o==="img"||o==="source")&&s==="src"?n.sanitizeUrl(c):em.safeAttrValue(o,s,c,a)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var i;t&&!r?i=t:t&&r?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(t).forEach(function(o){if(o==="whiteList")i.whiteList=n._extendObjectOfArrays([n.arcgisWhiteList,t.whiteList||{}]);else if(o==="css"){var s=t.css.whiteList;s!=null&&t.css instanceof Object&&Object.keys(s).forEach(function(c){return i.css.whiteList[c]=s[c]})}else i[o]=t[o]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new em.FilterXSS(i)}return e.prototype.sanitize=function(t,r){switch(r===void 0&&(r={}),typeof t){case"number":return isNaN(t)||!isFinite(t)?null:t;case"boolean":return t;case"string":return this._xssFilter.process(t);case"object":return this._iterateOverObject(t,r);default:return r.allowUndefined&&typeof t>"u"?void 0:null}},e.prototype.sanitizeUrl=function(t,r){var n=(r??{}).isProtocolRequired,i=n===void 0?!0:n,o=this._trim(t.substring(0,t.indexOf(":"))),s=t==="/",c=/^#/.test(t),a=o&&this.allowedProtocols.indexOf(o.toLowerCase())>-1;return s||c||a?em.escapeAttrValue(t):!o&&!i?em.escapeAttrValue("https://".concat(t)):""},e.prototype.sanitizeHTMLAttribute=function(t,r,n,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(t,r,n,i):em.safeAttrValue(t,r,n,i)},e.prototype.validate=function(t,r){r===void 0&&(r={});var n=this.sanitize(t,r);return{isValid:t===n,sanitized:n}},e.prototype.encodeHTML=function(t){var r=this;return String(t).replace(/[&<>"'\/]/g,function(n){return r._entityMap[n]})},e.prototype.encodeAttrValue=function(t){var r=/^[a-zA-Z0-9]$/;return String(t).replace(/[\x00-\xFF]/g,function(n,i){return r.test(n)?n:"&#x".concat(Number(t.charCodeAt(i)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(t){var r={};return t.forEach(function(n){Object.keys(n).forEach(function(i){Array.isArray(n[i])&&Array.isArray(r[i])?r[i]=r[i].concat(n[i]):r[i]=n[i]})}),r},e.prototype._iterateOverObject=function(t,r){var n=this;r===void 0&&(r={});try{var i=!1,o=void 0;if(Array.isArray(t))o=t.reduce(function(c,a){var d=n.validate(a,r);return d.isValid?c.concat([a]):(i=!0,c.concat([d.sanitized]))},[]);else if(cZ(t)){var s=Object.keys(t);o=s.reduce(function(c,a){var d=t[a],h=n.validate(d,r);return h.isValid?c[a]=d:(i=!0,c[a]=h.sanitized),c},{})}else return r.allowUndefined&&typeof t>"u"?void 0:null;return i?o:t}catch{return null}},e.prototype._trim=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},e}()});function gb(){hb.clear()}function nL(e){return hb.get(e)}function iL(e,t){hb.set(e,t)}function wb(e){hb.delete(e)}var hb,n5=R(()=>{hb=new Map});function oL(...e){let t=jn.acquire();for(let n=0;n<e.length;n++){let i=e[n],o=typeof i;if(o==="string")t.push(i);else if(Array.isArray(i))t.push.apply(t,i);else if(o==="object")for(let s in i)i[s]&&t.push(s)}let r=t.join(" ");return jn.release(t),r}async function sL(e,t){await yA(My(t));let r=typeof e=="function"?e():e;r&&("setFocus"in r&&typeof r.setFocus=="function"?await r.setFocus():r instanceof HTMLElement&&r.focus())}var g1e,lZ,uZ,dZ,i5,yb=R(()=>{rL();Cy();oi();rt();it();Ro();Q4();ky();n5();g1e=(()=>{let e=new Map,t=new ResizeObserver(n=>{gb();for(let i of n)e.get(i.target)?.(i)}),r=(n,i,o)=>(e.set(n,i),t.observe(n,o),Pt(()=>{t.unobserve(n),e.delete(n)}));return(n,i,o)=>{let s=null;return Tu([Wg(()=>typeof n=="function"?n():n,c=>{s?.remove(),c&&(s=r(c,i,o))},ab),Pt(()=>s?.remove())])}})(),lZ=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"],uZ=lZ.reduce((e,t)=>(e[t]=[],e),{}),dZ=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],i5=new tL({whiteList:uZ,onTagAttr:(e,t,r)=>{let n=`${t}="${r}"`;if(dZ.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)});function c5(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;let t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}var dL,vb,pL,aL,_b,u5,fL,pZ,o5,fZ,s5,a5,mL,cL,lL,uL,mZ,bb,hZ,d5,$u,l5,gZ,wZ,tm,hL=R(()=>{yb();dL="http://www.w3.org/",vb=`${dL}2000/svg`,pL=`${dL}1999/xlink`,aL=[],_b=(e,t)=>{let r={};return Object.keys(e).forEach(n=>{r[n]=e[n]}),t&&Object.keys(t).forEach(n=>{r[n]=t[n]}),r},u5=(e,t)=>e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties),fL=e=>{if(typeof e!="string")throw new Error("Style values must be strings")},pZ=(e,t,r)=>{if(t.vnodeSelector!==""){for(let n=r;n<e.length;n++)if(u5(e[n],t))return n}return-1},o5=(e,t,r,n)=>{let i=e[t];if(i.vnodeSelector==="")return;let o=i.properties;if(!(o&&(o.key===void 0?o.bind:o.key))){for(let s=0;s<e.length;s++)if(s!==t){let c=e[s];if(u5(c,i))throw new Error(`${r.vnodeSelector} had a ${i.vnodeSelector} child ${n==="added"?n:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}}},fZ=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},s5=[],a5=!1,mL=e=>{(e.children||[]).forEach(mL),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},cL=()=>{a5=!1,s5.forEach(mL),s5.length=0},lL=e=>{s5.push(e),a5||(a5=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(cL,{timeout:16}):setTimeout(cL,16))},uL=e=>{let t=e.domNode;if(e.properties){let r=e.properties.exitAnimation;if(r)return t.style.pointerEvents="none",void r(t,()=>{t.parentNode&&(t.parentNode.removeChild(t),lL(e))},e.properties)}t.parentNode&&(t.parentNode.removeChild(t),lL(e))},mZ=(e,t,r)=>{if(!t)return;let n=r.eventHandlerInterceptor,i=Object.keys(t),o=i.length;for(let s=0;s<o;s++){let c=i[s],a=t[c];if(c==="className")throw new Error('Property "className" is not supported, use "class".');if(c==="class")l5(e,a,!0);else if(c==="classes"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let v=d[g];a[v]&&e.classList.add(v)}}else if(c==="styles"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let v=d[g],E=a[v];E&&(fL(E),r.styleApplyer(e,v,E))}}else if(c!=="key"&&a!=null){let d=typeof a;d==="function"?(c.lastIndexOf("on",0)===0&&(n&&(a=n(c,a,e,t)),c==="oninput"&&function(){let h=a;a=function(g){h.apply(this,[g]),g.target["oninput-value"]=g.target.value}}()),e[c]=a):r.namespace===vb?c==="href"?e.setAttributeNS(pL,c,a):e.setAttribute(c,a):d==="string"&&c!=="value"?c==="innerHTML"?e[c]=i5.sanitize(a):c5(e)&&c in e?e[c]=a:e.setAttribute(c,a):e[c]=a}}};hZ=(e,t,r)=>{if(t)for(let n of t)$u(n,e,void 0,r)},d5=(e,t,r)=>{hZ(e,t.children,r),t.text&&(e.textContent=t.text),mZ(e,t.properties,r),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children])},$u=(e,t,r,n)=>{let i,o=0,s=e.vnodeSelector,c=t.ownerDocument;if(s==="")i=e.domNode=c.createTextNode(e.text),r!==void 0?t.insertBefore(i,r):t.appendChild(i);else{for(let a=0;a<=s.length;++a){let d=s.charAt(a);if(a===s.length||d==="."||d==="#"){let h=s.charAt(o-1),g=s.slice(o,a);h==="."?i.classList.add(g):h==="#"?i.id=g:(g==="svg"&&(n=_b(n,{namespace:vb})),n.namespace!==void 0?i=e.domNode=c.createElementNS(n.namespace,g):(i=e.domNode=e.domNode||c.createElement(g),g==="input"&&e.properties&&e.properties.type!==void 0&&i.setAttribute("type",e.properties.type)),r!==void 0?t.insertBefore(i,r):i.parentNode!==t&&t.appendChild(i)),o=a+1}}d5(i,e,n)}},l5=(e,t,r)=>{t&&t.split(" ").forEach(n=>{n&&e.classList.toggle(n,r)})},gZ=(e,t,r,n)=>{if(!r)return;let i=!1,o=Object.keys(r),s=o.length;for(let c=0;c<s;c++){let a=o[c],d=r[a],h=t[a];if(a==="class")h!==d&&(l5(e,h,!1),l5(e,d,!0));else if(a==="classes"){let g=e.classList,v=Object.keys(d),E=v.length;for(let P=0;P<E;P++){let A=v[P],F=!!d[A];F!==!!h[A]&&(i=!0,F?g.add(A):g.remove(A))}}else if(a==="styles"){let g=Object.keys(d),v=g.length;for(let E=0;E<v;E++){let P=g[E],A=d[P];A!==h[P]&&(i=!0,A?(fL(A),n.styleApplyer(e,P,A)):n.styleApplyer(e,P,""))}}else if(d||typeof h!="string"||(d=""),a!=="value"||c5(e)){if(d!==h){let g=typeof d;g==="function"&&n.eventHandlerInterceptor||(n.namespace===vb?a==="href"?e.setAttributeNS(pL,a,d):e.setAttribute(a,d):g==="string"?a==="innerHTML"?e[a]=i5.sanitize(d):a==="role"&&d===""?e.removeAttribute(a):c5(e)&&a in e?e[a]=d:e.setAttribute(a,d):e[a]!==d&&(e[a]=d),i=!0)}}else{let g=e[a];g!==d&&(e["oninput-value"]?g===e["oninput-value"]:d!==h)&&(e[a]=d,e["oninput-value"]=void 0),d!==h&&(i=!0)}}return i},wZ=(e,t,r,n,i)=>{if(r===n)return!1;n=n||aL;let o,s=(r=r||aL).length,c=n.length,a=0,d=0,h=!1;for(;d<c;){let g=a<s?r[a]:void 0,v=n[d];if(g!==void 0&&u5(g,v))h=bb(g,v,i)||h,a++;else{let E=pZ(r,v,a+1);if(E>=0){for(o=a;o<E;o++)uL(r[o]),o5(r,o,e,"removed");h=bb(r[E],v,i)||h,a=E+1}else $u(v,t,a<s?r[a].domNode:void 0,i),fZ(v),o5(n,d,e,"added")}d++}if(s>a)for(o=a;o<s;o++)uL(r[o]),o5(r,o,e,"removed");return h};bb=(e,t,r)=>{let n=e.domNode,i=!1;if(e===t)return!1;let o=!1;if(t.vnodeSelector===""){if(t.text!==e.text){let s=n.ownerDocument.createTextNode(t.text);return n.parentNode.replaceChild(s,n),t.domNode=s,i=!0,i}t.domNode=n}else t.vnodeSelector.lastIndexOf("svg",0)===0&&(r=_b(r,{namespace:vb})),e.text!==t.text&&(o=!0,t.text===void 0?n.removeChild(n.firstChild):n.textContent=t.text),t.domNode=n,o=wZ(t,n,e.children,t.children,r)||o,o=gZ(n,e.properties,t.properties,r)||o,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[n,r,t.vnodeSelector,t.properties,t.children]);return o&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(n,t.properties,e.properties),i};tm=(e,t)=>({getLastRender:()=>e,update:r=>{if(e.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let n=e;e=r,bb(n,r,t)},domNode:e.domNode})});var yZ,rm,nm,p5=R(()=>{hL();yZ={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},rm=e=>_b(yZ,e),nm={create:(e,t)=>(t=rm(t),$u(e,document.createElement("div"),void 0,t),tm(e,t)),append:(e,t,r)=>(r=rm(r),$u(t,e,void 0,r),tm(t,r)),insertBefore:(e,t,r)=>(r=rm(r),$u(t,e.parentNode,e,r),tm(t,r)),merge:(e,t,r)=>(r=rm(r),t.domNode=e,d5(e,t,r),tm(t,r)),replace:(e,t,r)=>(r=rm(r),$u(t,e.parentNode,e,r),e.parentNode.removeChild(e),tm(t,r))}});var bZ,gL=R(()=>{p5();bZ=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0]});var wL,yL=R(()=>{wL={handleInterceptedEvent:(e,t,r,n)=>(e.scheduleRender(),t.properties[`on${n.type}`].apply(t.properties.bind||r,[n]))}});var vZ,bL,vL=R(()=>{vZ={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},bL=e=>({...vZ,...e})});var _Z,xZ,_L,xL,SL=R(()=>{p5();gL();yL();vL();_Z=(e,t)=>{let r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r},xZ=(e,t)=>e.find(t),_L=(e,t,r=!1)=>{let n=e;return t.forEach((i,o)=>{let s=n?.children?xZ(n.children,c=>c.domNode===i):void 0;r&&!s&&o!==t.length-1||(n=s)}),n},xL=e=>{let t,r={...wL,...e},n=bL(r),i=n.performanceLogger,o,s=!0,c=!1,a=[],d=[],h=(v,E,P)=>{let A;n.eventHandlerInterceptor=(W,z,j,G)=>function(Y){let ie;i("domEvent",Y);let U=_Z(Y.currentTarget,A.domNode),fe=U.some(Ee=>customElements.get(Ee?.tagName?.toLowerCase()));if(Y.eventPhase===Event.CAPTURING_PHASE||!fe)U.reverse(),ie=_L(A.getLastRender(),U);else{let Ee=Y.composedPath(),Ne=Ee.slice(Ee.indexOf(Y.currentTarget),Ee.indexOf(A.domNode)).reverse();ie=_L(A.getLastRender(),Ne,!0)}let Ae;return ie&&(Ae=r.handleInterceptedEvent(t,ie,this,Y)),i("domEventProcessed",Y),Ae},r.postProcessProjectionOptions?.(n);let F=P();A=v(E,F,n),n.eventHandlerInterceptor=void 0,a.push(A),d.push(P),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(A,F)},g=()=>{if(o=void 0,s){s=!1,i("renderStart",void 0);for(let v=0;v<a.length;v++){let E=d[v]();i("rendered",void 0);try{a[v].update(E)}catch(P){console.error(P)}i("patched",void 0)}i("renderDone",void 0),s=!0}};return r.modifyDoRenderImplementation&&(g=r.modifyDoRenderImplementation(g,a,d)),t={renderNow:g,scheduleRender:()=>{o||c||(o=requestAnimationFrame(g))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),c=!0},resume:()=>{c=!1,s=!0,t.scheduleRender()},append:(v,E)=>{h(nm.append,v,E)},insertBefore:(v,E)=>{h(nm.insertBefore,v,E)},merge:(v,E)=>{h(nm.merge,v,E)},replace:(v,E)=>{h(nm.replace,v,E)},detach:v=>{for(let E=0;E<d.length;E++)if(d[E]===v)return d.splice(E,1),a.splice(E,1)[0];throw new Error("renderFunction was not found")}},t}});var EL,f5=R(()=>{"use strict";EL=":"});function m5(e){let t=e;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let r=t;return r.manager?.loadedCalled||r._offspring.push(e),r._postLoad.promise}return!1}function SZ(e){let t=e.split(EL);return t.length===1?[t[0],Ew(t[0])]:t}function CZ([e,t]){this[e]=t}var xb,EZ,im,F1e,h5,CL=R(()=>{"use strict";f5();So();xb=Object.defineProperty;EZ=globalThis.HTMLElement??SZ,F1e=(im=class extends EZ{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new xo,this._postLoaded=new xo,this._offspring=[],this._saveInstanceProperties();let t=this.constructor;t._LitConstructor?this._initializeComponent({a:t._LitConstructor}):t._loadPromise.then(this._initializeComponent.bind(this)).catch(r=>{this._postLoaded.reject(r),setTimeout(()=>{throw r})})}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(t){xb(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this._store[t]},set(r){this._store[t]=r}})}static _bindAsync(t){xb(this.prototype,t,{async value(...r){return this._litElement||await this._postLoaded.promise,await this._litElement[t](...r)},configurable:!0})}static _bindSync(t){xb(this.prototype,t,{value(...r){return this._litElement[t](...r)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let t=this.constructor,r=this;t._properties?.forEach(n=>{Object.hasOwn(this,n)&&(this._store[n]=r[n],delete r[n])})}attributeChangedCallback(t,r,n){this._litElement?.attributeChangedCallback(t,r,n),this._litElement||this._pendingAttributes.push(t)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=m5(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(t){let r=this.constructor,n=r._name,i=this._store,o=Object.values(t).find(P=>P.tagName===n),s=`${n}--lazy`,c=o;for(;c&&!Object.hasOwn(c,"lumina");)c=Object.getPrototypeOf(c);let a=c.prototype,d=Element.prototype;Object.hasOwn(a,"isConnected")||(a.setAttribute=function(P,A){d.setAttribute.call(this.el,P,A)},a.removeAttribute=function(P){d.removeAttribute.call(this.el,P)},xb(a,"isConnected",{get(){return Reflect.get(d,"isConnected",this.el)}})),!r._LitConstructor&&(r._LitConstructor=o,customElements.define(s,o)),o.lazy=this;let v=document.createElement(s);o.lazy=void 0,this._litElement=v,this._store=v,this._pendingAttributes.forEach(P=>{let A=this.getAttribute(P);v.attributeChangedCallback(P,null,A)}),Object.entries(i).forEach(CZ,v);let E=this.isConnected;(E||this._ancestorLoad)&&(v.connectedCallback?.(),E||v.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}},im.lumina=!0,im);h5={}});function TL(e,t){if(t){let r=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(r,([n,i])=>i.noAccessor?void 0:[n,[(i.readOnly?2048:0)|(i.state?32:16)]]).filter(u8))}else{let r=e.constructor,n=r.__registerControllers?.(e)??void 0;if(r.__registerControllers=void 0,typeof n!="object")throw new Error("Failed to retrieve component meta");e.manager.internals.members=Object.fromEntries(Object.entries(n).filter(([i,[o]])=>(o&63)!==0))}}function PL(e,t=8){return e==null||typeof e=="object"||typeof e=="function"?e:t&4?e==="false"?!1:e===""||!!e:t&2?Number.parseFloat(e):t&1?String(e):e}var ML,g5=R(()=>{"use strict";So();ML=(e,t)=>e.manager.internals.members?.[t]?.[0]});function zu(e){jg!==e&&(jg=e,queueMicrotask(()=>{jg===e&&(jg=void 0)}))}function Wu(e){return jg}function Cb(e){if(e===void 0){Vu=[];return}let t=Vu.indexOf(e);Vu=t===-1?[...Vu,e]:Vu.slice(0,t+1),queueMicrotask(()=>{Vu=[]})}function b5(){return Vu}function TZ(e){om!==e&&(om=e,queueMicrotask(()=>{om===e&&(om=void 0)}))}function PZ(){let e=om;return om=void 0,e}function AL(e){Ot(e,void 0,this)}function IL(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(r,n,i){if(!(IZ.has(n)&&n in r&&r[n]===t)&&(n in r||n in Promise.prototype||typeof n=="symbol"))return typeof r=="function"?r[n]:Reflect.get(r,n,i)},set:(r,n,i,o)=>Reflect.set(r,n,i,o)});return t}function OL(e,t,r){let n=Object.keys(e),i=n.length;Uu===void 0&&queueMicrotask(Zg),Uu??(Uu=new Map);let o=Uu.get(e);return o===void 0&&(o={callbacks:[],keyCount:i},Uu.set(e,o)),o.keyCount!==i&&(o.callbacks.forEach(s=>s(n)),o.callbacks=[],o.keyCount=i),o.callbacks.push(s=>{let c=d=>Ot(t,null,d),a=s[i];a===void 0?c(void 0):e[a]===r?c(a):c(void 0)}),r}function Zg(){Array.from(Uu?.entries()??[]).forEach(([e,{callbacks:t}])=>{let r=Object.keys(e);t.forEach(n=>n(r))}),Uu=void 0}function Pb(e,t,r){var n;let i=t,o=e.manager.internals;(n=o.allWatchers)[i]??(n[i]=[]);let s=o.allWatchers[i],c=r,a=(d,h,g)=>Ot(c,null,d,h,g);return s.push(a),()=>{let d=s.indexOf(a);d!==-1&&s.splice(d,1)}}function DL(e,t,r){let n=e.manager.internals;return n.trackedValue!==y5&&n.trackedValue!==r&&n.firePropTrackers(void 0,void 0),n.keyTrackers.length===0&&queueMicrotask(()=>n.firePropTrackers(void 0,void 0)),n.trackedValue=r,n.keyTrackers.push((i,o)=>Ot(t,void 0,r===o?i:void 0)),r}function Mb(e=[Wu(),...b5()],t,r){let n=Array.isArray(e)?e:[e],i=n.length+1,o=c=>{i-=1,c!==void 0&&(i=Math.min(i,0)),i===0&&t(c)};n.forEach(c=>OL(c,a=>o(a===void 0?void 0:{key:a,host:c,isReactive:!1}),r));let s=n.find(c=>"manager"in c&&typeof c.manager=="object"&&c.manager.component===c);return s&&DL(s,c=>o(c===void 0?void 0:{key:c,host:s,isReactive:!0}),r),r}function FL(e){qg.readOnly=!0;try{return e()}finally{qg.readOnly=!1}}function LZ(e,{host:t,key:r,isReactive:n},i){let o=t,s=o[r]!==e.exports,c=o[r]!==i,a=i!==e.exports;if(s&&!c&&a&&(o[r]=e.exports),t===e.component){if(n){let h=e.component.manager.internals;c&&h.markExports(e,o[r]),Pb(e.component,r,g=>{g!==e.exports&&h.markExports(e,g)})}e.assignedProperty=n?void 0:r}e.watchExports(()=>{if(o[r]===e.exports)return;let h=e.component.manager;h.internals.setters[r]?.includes(h.internals.readonlySetter)?FL(()=>{o[r]=e.exports}):o[r]=e.exports})}var Eb,LL,jg,Vu,om,MZ,AZ,v5,qg,Hg,kL,Tb,NL,IZ,Uu,RL,w5,Sb,y5,$L,VL=R(()=>{"use strict";g5();So();So();So();So();Eb=Symbol.for("controller"),LL=e=>typeof e=="object"&&e!==null&&(Eb in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e);Vu=[];MZ=async(e,t)=>{let r=v5(e);if(r===void 0)return e;if(await r.ready,typeof t=="function"){let n=r.watchExports(i=>t(i,n))}return r.exports},AZ=async e=>{let t=v5(e);return await t.ready,t},v5=e=>{let t=PZ();if(t!==void 0)return t;let n=Wu().manager.internals.resolveExports(e);if(n!==void 0)return n;if(LL(e))return e},qg={setter:!1,getter:!1,readOnly:!1},Hg=new WeakMap;kL=Eb;Tb=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new xo,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[kL]=!0,this.ready=this._ready.promise,this._exports=IL(this),this._exportWatchers=new Set;let t=e??Wu(new.target.name);this.component=t,this.component.addController(this),Cb(this),this.component.manager===void 0||queueMicrotask(()=>this.catchUpLifecycle())}catchUpLifecycle(){let{manager:e}=this.component;e.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),e._loadCalled&&this.triggerLoad().then(()=>{e.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(e){let t=this._exports;t!==e&&(this._exports=e,this._exportWatchers.forEach(Ot),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,t)),this._ready.resolve(e)}setProvisionalExports(e,t=!0){this._exports=t?IL(e):e,this._exportWatchers.forEach(Ot)}watchExports(e){let t=()=>e(this._exports);return this._exportWatchers.add(t),()=>void this._exportWatchers.delete(t)}get use(){return zu(this.component),MZ}get useRef(){return zu(this.component),AZ}get useRefSync(){return zu(this.component),v5}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(e){this._callbacks.hostConnected.push(e)}onDisconnected(e){this._callbacks.hostDisconnected.push(e)}onLoad(e){this._callbacks.hostLoad.push(e)}onLoaded(e){this._callbacks.hostLoaded.push(e)}onUpdate(e){this._callbacks.hostUpdate.push(e)}onUpdated(e){this._callbacks.hostUpdated.push(e)}onDestroy(e){this._callbacks.hostDestroy.push(e)}onLifecycle(e){this._callbacks.hostLifecycle.push(e),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(e)}triggerConnected(){let e=this;e.hostConnected&&Ot(e.hostConnected,e),this._callbacks.hostConnected.forEach(Ot),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&Ot(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(Ot),this._lifecycleCleanups.forEach(Ot),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await xh(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(xh)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&Ot(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(Ot),this.loadedCalled=!0}triggerUpdate(e){let t=this;t.hostUpdate&&Ot(t.hostUpdate,t,e),this._callbacks.hostUpdate.forEach(AL,e)}triggerUpdated(e){let t=this;t.hostUpdated&&Ot(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(AL,e)}triggerDestroy(){let e=this;e.hostDestroy&&Ot(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(Ot)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){zu(this.component);let t=Ot(e);(Array.isArray(t)?t:[t]).forEach(n=>{typeof n=="function"?this._lifecycleCleanups.push(n):typeof n=="object"&&typeof n.remove=="function"&&this._lifecycleCleanups.push(n.remove)})}};NL=Tb;IZ=new Set(["exports","_exports"]);Uu=void 0;RL=class{constructor(e){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let t=this.component.manager.internals;Object.entries(t.members).forEach(([r,[n]])=>{var i;n&2048&&((i=t.setters)[r]??(i[r]=[]),t.setters[r].push(t.readonlySetter))})},this.trackedValue=y5,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(t,r,n)=>{if(qg.readOnly)return t;throw new Error(`Cannot assign to read-only property "${n}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=e}firePropTrackers(e,t){let r=this.keyTrackers;this.trackedValue=y5,this.keyTrackers=[],r.forEach(n=>n(e,t))}getSetProxy(e){let t=this.component,r=t.constructor.prototype;if(this._getSetProxy(r,e,"class"),t.manager.isLit)return;let n=t.el.constructor.prototype;r!==n&&this._getSetProxy(n,e,"html")}_getSetProxy(e,t,r){let n=this.component,i=ML(n,t),o;do o=Object.getOwnPropertyDescriptor(e,t);while(!o&&(e=Object.getPrototypeOf(e)));if(!o)return;let s=o.get,c=o.set,a=Sb in s,d=Sb in c;if(a&&d)return;let h=!a,g=!d,v=h?function(){let A=s.call(this),F=Hg.get(this);if(qg.getter||F===void 0)return A;let W=F.manager.internals;A=W.accessorGetter[t](A,t);let z=W.getters[t]??w5;for(let j=0;j<z.length;j++)A=z[j](A,t);return A}:s,E=g?function(A){let F=s.call(this),W=Hg.get(this);if(W===void 0){c.call(this,A);return}let z=W.manager.isLit?A??void 0:PL(A,i),j=W.manager.internals;if(z===F)c.call(this,z);else{let G=qg.setter?w5:j.setters[t]??w5;for(let Y=0;Y<G.length&&(z=G[Y](z,F,t),z!==F);Y++);z=j.accessorSetter[t](z,F,t),c.call(this,z),z!==F&&j.enabledWatchers[t]?.forEach(Y=>Y(z,F,t))}j.keyTrackers.length>0&&j?.firePropTrackers(t,A)}:c;h&&(v[Sb]=!0),g&&(E[Sb]=!0),Object.defineProperty(e,t,{...o,get:v,set:E})}markExports(e,t){(typeof t=="object"&&t!==null||typeof t=="function")&&this._exports.set(t,e)}resolveExports(e){if(typeof e=="object"&&e!==null||typeof e=="function")return this._exports.get(e)}},w5=[],Sb=Symbol(),y5=Symbol();$L=e=>(...t)=>{let r=b5(),n=new e(...t),i=n.exports;Cb(r.at(-1));let o=n.component.manager.internals;o.markExports(n,i),n.watchExports(c=>o.markExports(n,c)),TZ(n);let s=[n.component,...r].reverse();return Mb(s,c=>c===void 0?void 0:LZ(n,c,i),i)}});function OZ(e){"triggerConnected"in e?e.triggerConnected():Ot(e.hostConnected,e)}function RZ(e){"triggerDisconnected"in e?e.triggerDisconnected():Ot(e.hostDisconnected,e)}async function DZ(e){"triggerLoad"in e?await e.triggerLoad():await xh(e.hostLoad,e)}function FZ(e){"triggerLoaded"in e?e.triggerLoaded():Ot(e.hostLoaded,e)}function $Z(e){"triggerUpdate"in e?e.triggerUpdate(this):Ot(e.hostUpdate,e,this)}function VZ(e){"triggerUpdated"in e?e.triggerUpdated(this):Ot(e.hostUpdated,e,this)}function UZ(e){"triggerDestroy"in e?e.triggerDestroy():Ot(e.hostDestroy,e)}function BL(e,t){if(!t)return e;let r={...e};return Object.entries(t).forEach(([n,i])=>{typeof i=="object"?r[n]=BL(e[n],i):r[n]=i??e[n]}),r}var zL,kZ,_5,NZ,UL,zZ,WZ,BZ,Ab,GZ,WL,Bu=R(()=>{"use strict";VL();g5();So();So();So();zL=(e,t)=>new kZ(e,t),kZ=class extends NL{constructor(e,t){let r="addController"in e,n=new Set;function i(a){n.add(a),!(Eb in a)&&e.renderRoot&&e.el.isConnected&&a.hostConnected?.()}function o(a){n.delete(a),a.controllerRemoved?.()}let s=e;if(s.addController=i,s.removeController=o,!r){let a=t??e.constructor.__forceUpdate;s.requestUpdate=()=>a(e)}super(e),this.internals=new RL(this.component),this.destroyed=!1,this._updatePromise=new xo,this._originalLifecycles={},this.isLit=r,this.component.manager=this,TL(e,r),this._controllers=n,this.exports=void 0,this.hasDestroy=_5 in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let c=this.internals;Object.keys(c.members).forEach(a=>{c.accessorGetter[a]=UL,c.accessorSetter[a]=UL,c.getSetProxy(a)}),r?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),Cb(void 0),zu(e),Hg.set(e.el,e),Hg.set(e,e)}_bindLifecycleMethods(){let e=this.component,t=this.isLit,r=e.el===e;this._originalLifecycles={_connectedCallback:t||r?void 0:e.connectedCallback,_disconnectedCallback:t||r?void 0:e.disconnectedCallback,_load:t?e.load:e.componentWillLoad,_loaded:t?e.loaded:e.componentDidLoad,_willUpdate:t?void 0:e.componentWillUpdate,_updated:t?void 0:e.componentDidUpdate,_destroy:e.destroy};let n=this._connectedCallback.bind(this),i=this._disconnectedCallback.bind(this),o=this._update.bind(this),s=this._updated.bind(this);t?e.constructor.prototype.addController.call(e,{hostConnected:n,hostDisconnected:i,hostUpdate:o,hostUpdated:s}):(e.connectedCallback=n,e.disconnectedCallback=i,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=o,e.componentDidUpdate=s),this.hasDestroy&&(e.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${_5} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,Zg(),e.enableReadonly?.(),this._controllers.forEach(OZ),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(RZ),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,DZ)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&Pb(this.component,_5,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(FZ),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;this._controllers.forEach($Z,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(VZ,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let t=this._updatePromise;this._updatePromise=new xo,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(UZ),this._controllers.clear(),await this._originalLifecycles._destroy?.call(this.component)}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let e=()=>void this.destroy().catch(console.error);this._autoDestroyTimeout=l8(e,NZ)}}},_5="autoDestroyDisabled",NZ=1e3,UL=e=>e;zZ=e=>BZ(void 0,e),WZ=class extends Tb{constructor(e,t){super(e);let r=this.exports;try{zu(this.component);let n=t(this.component,this),i=this.exports!==r;if(n instanceof Promise){i||this.setProvisionalExports(n);let o=n.then(s=>{this.exports=s,super.catchUpLifecycle()}).catch(s=>{this._ready.reject(s),console.error(s)});this.onLoad(async()=>await o)}else(!i||n!==void 0)&&(this.exports=n),queueMicrotask(()=>super.catchUpLifecycle())}catch(n){this._ready.reject(n),console.error(n)}}catchUpLifecycle(){}},BZ=$L(WZ),Ab=(e,t)=>new GZ(e,t),GZ=class extends Tb{constructor(e,t){super(),this._attributes=e,this._callback=t,this._observer=new MutationObserver(r=>{r.forEach(n=>{e.includes(n.attributeName)&&t.call(this.component,this.component.el.getAttribute(n.attributeName),n.oldValue,n.attributeName)})})}hostConnected(){this._attributes.forEach(e=>{this.component.el.hasAttribute(e)&&this._callback.call(this.component,null,this.component.el.getAttribute(e),e)}),this._observer.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this._attributes})}hostDisconnected(){this._observer.disconnect()}},WL=(e,t)=>(r={})=>zZ((n,i)=>{let o=Fx(n.el),s={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},c=n;queueMicrotask(()=>i.onLifecycle(()=>c8(n.el,e("./assets"),({t9nLocale:d,t9nStrings:h,lang:g})=>{let v={...h,_lang:g,_t9nLocale:d,_loading:!1};i.exports=v;let E=h.componentLabel??h.widgetLabel;typeof E=="string"&&"label"in n&&n.label==null&&(n.label??(n.label=E)),a(c.messageOverrides)},r.name,t)));function a(d){let h=i.exports,g=h._original??h,v=BL(g,d);d&&(v._original=g),i.exports=v}return"messageOverrides"in c&&i.onLifecycle(()=>Pb(c,"messageOverrides",a)),r.blocking?(i.setProvisionalExports(s,!1),i.ready):s})});var Yg=R(()=>{});var GL=R(()=>{});var S5=R(()=>{Yg();});var jL=R(()=>{});var E5=R(()=>{Yg();jL();});var qL=R(()=>{Yg();});var ZL=R(()=>{E5();});var JL=R(()=>{S5();});var XL=R(()=>{Yg();GL();S5();E5();qL();ZL();JL()});var Ib,Lb,C5,QL,Jg,KL,Dt,T5,kb,_n=R(()=>{Ib=globalThis,Lb=Ib.ShadowRoot&&(Ib.ShadyCSS===void 0||Ib.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,C5=Symbol(),QL=new WeakMap,Jg=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==C5)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Lb&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=QL.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&QL.set(r,t))}return t}toString(){return this.cssText}},KL=e=>new Jg(typeof e=="string"?e:e+"",void 0,C5),Dt=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,i,o)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1],e[0]);return new Jg(r,e,C5)},T5=(e,t)=>{if(Lb)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=Ib.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},kb=Lb?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return KL(r)})(e):e});var jZ,qZ,HZ,ZZ,YZ,JZ,zc,ek,XZ,QZ,Xg,Nb,P5,tk,ca,Qg=R(()=>{_n();_n();({is:jZ,defineProperty:qZ,getOwnPropertyDescriptor:HZ,getOwnPropertyNames:ZZ,getOwnPropertySymbols:YZ,getPrototypeOf:JZ}=Object),zc=globalThis,ek=zc.trustedTypes,XZ=ek?ek.emptyScript:"",QZ=zc.reactiveElementPolyfillSupport,Xg=(e,t)=>e,Nb={toAttribute(e,t){switch(t){case Boolean:e=e?XZ:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},P5=(e,t)=>!jZ(e,t),tk={attribute:!0,type:String,converter:Nb,reflect:!1,hasChanged:P5};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),zc.litPropertyMetadata??(zc.litPropertyMetadata=new WeakMap);ca=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=tk){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(t,n,r);i!==void 0&&qZ(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){let{get:i,set:o}=HZ(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let c=i?.call(this);o.call(this,s),this.requestUpdate(t,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??tk}static _$Ei(){if(this.hasOwnProperty(Xg("elementProperties")))return;let t=JZ(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Xg("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Xg("properties"))){let r=this.properties,n=[...ZZ(r),...YZ(r)];for(let i of n)this.createProperty(i,r[i])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)r.unshift(kb(i))}else t!==void 0&&r.push(kb(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n: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??(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,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return T5(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EC(t,r){let n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){let o=(n.converter?.toAttribute!==void 0?n.converter:Nb).toAttribute(r,n.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,r){let n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let o=n.getPropertyOptions(i),s=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:Nb;this._$Em=i,this[i]=s.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){if(n??(n=this.constructor.getPropertyOptions(t)),!(n.hasChanged??P5)(this[t],r))return;this.P(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,n){this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}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.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,o]of n)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(t){}firstUpdated(t){}};ca.elementStyles=[],ca.shadowRootOptions={mode:"open"},ca[Xg("elementProperties")]=new Map,ca[Xg("finalized")]=new Map,QZ?.({ReactiveElement:ca}),(zc.reactiveElementVersions??(zc.reactiveElementVersions=[])).push("2.0.4")});var M5=R(()=>{Qg();});var rk=R(()=>{M5();});function pk(e,t){if(!k5(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return nk!==void 0?nk.createHTML(t):t}function Hu(e,t,r=e,n){if(t===xn)return t;let i=n!==void 0?r.o?.[n]:r.l,o=r1(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,r,n)),n!==void 0?(r.o??(r.o=[]))[n]=i:r.l=i),i!==void 0&&(t=Hu(e,i._$AS(e,t.values),i,n)),t}var e1,Ob,nk,I5,la,L5,eY,qu,t1,r1,k5,lk,A5,Kg,ik,ok,Gu,sk,ak,uk,N5,xe,_s,dk,xn,Re,ck,ju,fk,n1,Rb,sm,Zu,Db,Fb,$b,Vb,mk,tY,hk,Rr=R(()=>{e1=globalThis,Ob=e1.trustedTypes,nk=Ob?Ob.createPolicy("lit-html",{createHTML:e=>e}):void 0,I5="$lit$",la=`lit$${Math.random().toFixed(9).slice(2)}$`,L5="?"+la,eY=`<${L5}>`,qu=document,t1=()=>qu.createComment(""),r1=e=>e===null||typeof e!="object"&&typeof e!="function",k5=Array.isArray,lk=e=>k5(e)||typeof e?.[Symbol.iterator]=="function",A5=`[
8
8
  \f\r]`,Kg=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ik=/-->/g,ok=/>/g,Gu=RegExp(`>|${A5}(?:([^\\s"'>=/]+)(${A5}*=${A5}*(?:[^
9
- \f\r"'\`<>=]|("|')|))|$)`,"g"),sk=/'/g,ak=/"/g,uk=/^(?:script|style|textarea|title)$/i,N5=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),xe=N5(1),_s=N5(2),dk=N5(3),xn=Symbol.for("lit-noChange"),Re=Symbol.for("lit-nothing"),ck=new WeakMap,ju=qu.createTreeWalker(qu,129);fk=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=Kg;for(let c=0;c<r;c++){let a=e[c],d,h,g=-1,v=0;for(;v<a.length&&(s.lastIndex=v,h=s.exec(a),h!==null);)v=s.lastIndex,s===Kg?h[1]==="!--"?s=ik:h[1]!==void 0?s=ok:h[2]!==void 0?(uk.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Gu):h[3]!==void 0&&(s=Gu):s===Gu?h[0]===">"?(s=i??Kg,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?Gu:h[3]==='"'?ak:sk):s===ak||s===sk?s=Gu:s===ik||s===ok?s=Kg:(s=Gu,i=void 0);let E=s===Gu&&e[c+1].startsWith("/>")?" ":"";o+=s===Kg?a+eY:g>=0?(n.push(d),a.slice(0,g)+I5+a.slice(g)+la+E):a+la+(g===-2?c:E)}return[pk(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},n1=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,c=t.length-1,a=this.parts,[d,h]=fk(t,r);if(this.el=e.createElement(d,n),ju.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(i=ju.nextNode())!==null&&a.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let g of i.getAttributeNames())if(g.endsWith(I5)){let v=h[s++],E=i.getAttribute(g).split(la),P=/([.?@])?(.*)/.exec(v);a.push({type:1,index:o,name:P[2],strings:E,ctor:P[1]==="."?Db:P[1]==="?"?Fb:P[1]==="@"?$b:Zu}),i.removeAttribute(g)}else g.startsWith(la)&&(a.push({type:6,index:o}),i.removeAttribute(g));if(uk.test(i.tagName)){let g=i.textContent.split(la),v=g.length-1;if(v>0){i.textContent=Ob?Ob.emptyScript:"";for(let E=0;E<v;E++)i.append(g[E],t1()),ju.nextNode(),a.push({type:2,index:++o});i.append(g[v],t1())}}}else if(i.nodeType===8)if(i.data===L5)a.push({type:2,index:o});else{let g=-1;for(;(g=i.data.indexOf(la,g+1))!==-1;)a.push({type:7,index:o}),g+=la.length-1}o++}}static createElement(t,r){let n=qu.createElement("template");return n.innerHTML=t,n}};Rb=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??qu).importNode(r,!0);ju.currentNode=i;let o=ju.nextNode(),s=0,c=0,a=n[0];for(;a!==void 0;){if(s===a.index){let d;a.type===2?d=new sm(o,o.nextSibling,this,t):a.type===1?d=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(d=new Vb(o,this,t)),this._$AV.push(d),a=n[++c]}s!==a?.index&&(o=ju.nextNode(),s++)}return ju.currentNode=qu,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},sm=class e{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,r,n,i){this.type=2,this._$AH=Re,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this.v=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Hu(this,t,r),r1(t)?t===Re||t==null||t===""?(this._$AH!==Re&&this._$AR(),this._$AH=Re):t!==this._$AH&&t!==xn&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):lk(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!==Re&&r1(this._$AH)?this._$AA.nextSibling.data=t:this.T(qu.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=n1.createElement(pk(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new Rb(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=ck.get(t.strings);return r===void 0&&ck.set(t.strings,r=new n1(t)),r}k(t){k5(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of t)i===r.length?r.push(n=new e(this.O(t1()),this.O(t1()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this.v=t,this._$AP?.(t))}},Zu=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=Re,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Re}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=Hu(this,t,r,0),s=!r1(t)||t!==this._$AH&&t!==xn,s&&(this._$AH=t);else{let c=t,a,d;for(t=o[0],a=0;a<o.length-1;a++)d=Hu(this,c[n+a],r,a),d===xn&&(d=this._$AH[a]),s||(s=!r1(d)||d!==this._$AH[a]),d===Re?t=Re:t!==Re&&(t+=(d??"")+o[a+1]),this._$AH[a]=d}s&&!i&&this.j(t)}j(t){t===Re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Db=class extends Zu{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Re?void 0:t}},Fb=class extends Zu{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Re)}},$b=class extends Zu{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=Hu(this,t,r,0)??Re)===xn)return;let n=this._$AH,i=t===Re&&n!==Re||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==Re&&(n===Re||i);i&&this.element.removeEventListener(this.name,this,n),o&&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)}},Vb=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Hu(this,t)}},mk={M:I5,P:la,A:L5,C:1,L:fk,R:Rb,D:lk,V:Hu,I:sm,H:Zu,N:Fb,U:$b,B:Db,F:Vb},tY=e1.litHtmlPolyfillSupport;tY?.(n1,sm),(e1.litHtmlVersions??(e1.litHtmlVersions=[])).push("3.2.0");hk=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new sm(t.insertBefore(t1(),o),o,void 0,r??{})}return i._$AI(e),i}});var ua,rY,gk=R(()=>{Qg();Qg();Rr();Rr();ua=class extends ca{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var r;let t=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=t.firstChild),t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=hk(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return xn}};ua._$litElement$=!0,ua.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ua});rY=globalThis.litElementPolyfillSupport;rY?.({LitElement:ua});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0")});var O5=R(()=>{});var Ki=R(()=>{Qg();Rr();gk();O5()});var Ai,to,eo,da=R(()=>{Ai={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},to=e=>(...t)=>({_$litDirective$:e,values:t}),eo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this.t=t,this._$AM=r,this.i=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}}});var wk,yk=R(()=>{Rr();da();wk=to(class extends eo{constructor(e){if(super(e),e.type!==Ai.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in t)t[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(t)}let r=e.element.classList;for(let n of this.st)n in t||(r.remove(n),this.st.delete(n));for(let n in t){let i=!!t[n];i===this.st.has(n)||this.nt?.has(n)||(i?(r.add(n),this.st.add(n)):(r.remove(n),this.st.delete(n)))}return xn}})});var bk,nY,vk,_k=R(()=>{Rr();da();bk="important",nY=" !"+bk,vk=to(class extends eo{constructor(e){if(super(e),e.type!==Ai.ATTRIBUTE||e.name!=="style"||e.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(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return n==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(let n in t){let i=t[n];if(i!=null){this.ft.add(n);let o=typeof i=="string"&&i.endsWith(nY);n.includes("-")||o?r.setProperty(n,o?i.slice(0,-11):i,o?bk:""):r[n]=i}}return xn}})});var xk=R(()=>{_k()});var bwe,Ub,iY,zb,Wb=R(()=>{Rr();({I:bwe}=mk),Ub=e=>e.strings===void 0,iY={},zb=(e,t=iY)=>e._$AH=t});var Bb,R5=R(()=>{Rr();da();Wb();Bb=to(class extends eo{constructor(e){if(super(e),e.type!==Ai.PROPERTY&&e.type!==Ai.ATTRIBUTE&&e.type!==Ai.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ub(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===xn||t===Re)return t;let r=e.element,n=e.name;if(e.type===Ai.PROPERTY){if(t===r[n])return xn}else if(e.type===Ai.BOOLEAN_ATTRIBUTE){if(!!t===r.hasAttribute(n))return xn}else if(e.type===Ai.ATTRIBUTE&&r.getAttribute(n)===t+"")return xn;return zb(e),t}})});function Ek(e){let t,r=i=>{t=new URL(i,globalThis.location?.href).href},n={...e,getAssetPath(i){let o=new URL(i,t);return o.origin!==globalThis.location?.origin?o.href:o.pathname},setAssetPath:r,customElement(i,o){o.runtime=n,o.tagName=i,customElements.get(i)||customElements.define(i,o)}};return r(e.defaultAssetPath),n}function am(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)}var Sk,Ft,oY,Yu,$t,_e,Gb,ui,pa,Dr=R(()=>{"use strict";CL();f5();Bu();XL();Bu();rk();M5();So();Ki();Bu();yk();xk();da();R5();Rr();Sk=(e="",t={},r=Wu())=>{let n={emit:i=>{e===""&&Zg();let o=new CustomEvent(e,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...t});return r.el.dispatchEvent(o),o}};return e===""&&Mb(void 0,i=>{e=i.key},n),n},Ft=Sk.bind(null,""),oY=()=>{},$t=(Yu=class extends ua{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=zL(this),this._postLoad=this.constructor.lazy?._postLoad??new xo,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new xo,this._enableUpdating=this.enableUpdating,this.enableUpdating=oY;let t=Yu.prototype.shouldUpdate;this.shouldUpdate!==t&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=t),!1}static finalizeStyles(t){let r=super.finalizeStyles(t),n=this.shadowRootOptions===h5;return this.runtime?.commonStyles===void 0||n?r:[this.runtime.commonStyles,...r]}static createProperty(t,r){let n=typeof r=="number"?r:Array.isArray(r)?r[0]:0,i=Array.isArray(r)?r[1]:void 0;super.createProperty(t,{attribute:n&1&&typeof t=="string"?Ew(t):!1,reflect:!!(n&2),type:n&4?Boolean:n&8?Number:void 0,state:!!(n&16),readOnly:!!(n&32),noAccessor:!!(n&64),...i})}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=!this.manager.connectedCalled;super.connectedCallback(),t&&queueMicrotask(()=>this._load().catch(r=>{this._postLoaded.reject(r),setTimeout(()=>{throw r})}))}createRenderRoot(){let t=this.el.shadowRoot,r=this.constructor,n=r.shadowRootOptions,o=t??(n===h5?this.el:this.el.attachShadow(n));if(Object.defineProperty(this,"shadowRoot",{value:o}),t)return ua.prototype.createRenderRoot.call(this),t;if(this.isConnected){let s=o.getRootNode();s.adoptedStyleSheets=[...s.adoptedStyleSheets,...r.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return o}async _load(){let t=this.el._ancestorLoad??m5(this.el);t&&await t,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let r=this._offspring.filter(n=>!n.manager?.loadedCalled);r.length&&await Promise.allSettled(r.map(async n=>await n.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(t){return this.$changes=t,this._originalShouldUpdate?.(t)??!0}listen(t,r,n){let i=r?.bind(this)??r;this.manager.onLifecycle(()=>(this.el.addEventListener(t,i,n),()=>this.el.removeEventListener(t,i,n)))}listenOn(t,r,n,i){let o=n?.bind(this)??n;this.manager.onLifecycle(()=>(t.addEventListener(r,o,i),()=>t.removeEventListener(r,o,i)))}async componentOnReady(){return await this._postLoaded.promise,this}},Yu.lumina=!0,Yu);$t.$createEvent=Sk;_e=e=>typeof e=="object"&&e!=null?wk(e):e,Gb=e=>typeof e=="object"&&e!=null?vk(e):e,ui=Re;pa={toAttribute:e=>e===!0?"":e===!1?null:e}});function Ck(){let{classList:e}=document.body,t=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>e.contains(Mk)||e.contains(Pk)&&t?"dark":"light",n=s=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:s}})),i=s=>{o!==s&&n(s),o=s},o=r();n(o),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s=>i(s.matches?"dark":"light")),new MutationObserver(()=>i(r())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}function uY(){if(i1&&i1.version)return;console.info(`Using Calcite Components ${Tk} [Date: ${cY}, Revision: ${lY}]`);let e=i1||globalThis.calciteConfig||{};Object.defineProperty(e,"version",{value:Tk,writable:!1}),globalThis.calciteConfig=e}function dY(){ro()&&(document.readyState==="interactive"?Ck():document.addEventListener("DOMContentLoaded",()=>Ck(),{once:!0})),uY()}var Pk,Mk,sY,o1,F5,i1,Ak,aY,Tk,cY,lY,ro,pY,Gt,s1,Ik,ar=R(()=>{Dr();O5();Pk="calcite-mode-auto",Mk="calcite-mode-dark",sY="calcite-mode-light",o1={autoMode:Pk,darkMode:Mk,lightMode:sY,rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateIn:"calcite-animate__in",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left",calciteAnimateInScale:"calcite-animate__in-scale"},F5={filter:250,nextTick:0,resize:150,reposition:100};i1=globalThis.calciteConfig,Ak=i1?.focusTrapStack||[],aY=i1?.logLevel||"info",Tk="3.0.0-next.61",cY="2024-12-13",lY="0150be034";ro=()=>!!1&&typeof navigator<"u"&&typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;dY();pY=Ek({defaultAssetPath:"https://jsdev.arcgis.com/calcite-components/next/",hydratedAttribute:"calcite-hydrated"}),{customElement:Gt,getAssetPath:s1,setAssetPath:Ik}=pY});var $5,Lk,kk=R(()=>{ar();ar();$5=!1,Lk=e=>{$5=!0,Ik(e)}});function Ok(){$5||Lk(Lc(Kf(Nk)))}function Rk(e){let t=[];for(let r of Object.keys(e))customElements.get(`calcite-${r}`)||t.push(e[r]?.());return t.length>0?Promise.all(t):null}var Nk,V5=R(()=>{kk();ob();rt();Nc();Nk="components/assets"});var jb,qb,U5=R(()=>{jb=Symbol("widget"),qb=Symbol("widget-test-data")});function z5(e,t){let r=t.children;if(r?.length)for(let i=0;i<r.length;++i)r[i]=z5(e,r[i]);else r=fY;let n=t.vnodeSelector;if(cm(n)){let i=t.properties||mY,o=i.key||n,s={key:o,afterCreate:hY,afterUpdate:gY,afterRemoved:Dk,parentWidget:e,widgetConstructor:n,widgetProperties:{...i,key:o,children:r}};return{vnodeSelector:n.vnodeSelector,properties:s,children:void 0,text:void 0,domNode:null}}return t}function hY(e,t,r,{parentWidget:n,widgetConstructor:i,widgetProperties:o}){let s=new i(o);s.container=e,Hb.set(e,s),s.afterCreate?.(s,e),n.addHandles(Pt(()=>Dk(e))),queueMicrotask(()=>{s[qb].projector.renderNow()})}function gY(e,t,r,{widgetProperties:n}){let i=Hb.get(e);i&&(i.set(n),i.afterUpdate?.(i,e))}function Dk(e){let t=Hb.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),Hb.delete(e))}function cm(e){return typeof e=="function"&&e[jb]}var fY,mY,Hb,W5=R(()=>{oi();U5();fY=[],mY={},Hb=new WeakMap});function $k(e){Fk.add(e),e.finally(()=>Fk.delete(e))}var Fk,Vk=R(()=>{Fk=new Set});function zk(e,t){let r=Object.prototype.hasOwnProperty;for(let n in t)r.call(t,n)&&r.call(e,n)&&(e[n]!=null&&t[n]!=null&&typeof e[n]=="object"&&typeof t[n]=="object"?zk(e[n],t[n]):e[n]=t[n]);return e}var Uk,wY,yY,bY,B5,Fr,Wk,Bk=R(()=>{gt();j4();_I();Ky();Cg();rt();mr();it();Ec();EI();Ro();Q4();DI();yt();Bg();ft();Au();x4();SL();V5();W5();U5();Vk();n5();yb();vc();Ug();wY="esri.widgets.Widget",yY=0;bY=xL({postProcessProjectionOptions(e){let t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(n,i,o,s)=>{let c=t?.(n,i,o,s),a=r.test(n);if(!((n=n.replace(r,"")).toLowerCase()in o)||a){let d=n[2].toLowerCase()+n.slice(3),h=E=>c?.call(o,E);o.addEventListener(d,h,a);let g=()=>o.removeEventListener(d,h,a),v=s.afterRemoved;s.afterRemoved=E=>{v?.(E),g()}}return c}},handleInterceptedEvent(e,t,r,n){let{eventPhase:i,type:o}=n,s=i===Event.CAPTURING_PHASE,c=`on${o}${s?"capture":""}`,a=t.properties;(a&&c in a||(c=`on${o[0].toUpperCase()}${o.slice(1)}${s?"Capture":""}`,a&&c in a))&&(gb(),e.scheduleRender(),a[c].call(a.bind||r,n))}}),B5=!1,Fr=class extends SI.EsriPromiseMixin(Nu.EventedAccessor){constructor(e,t){super(e,t),this._attached=!1,this._projector=bY,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=dA(async()=>{if(this._messageBundleProps?.length){let c=await Promise.allSettled(this._messageBundleProps.map(async({bundlePath:a,propertyName:d})=>{if(this.destroyed)return;let h=await W4(a);this.uiStrings&&Object.keys(this.uiStrings)&&(h=zk(Ye(h),this.uiStrings)),this[d]=h}));if(this.destroyed)return;for(let a of c)a.status==="rejected"&&ot.getLogger(this).error("widget-intl:locale-error",this.declaredClass,a.reason)}await this.loadLocale()}),Ok();let r="esri-widget-uid-"+RI(),n=this.render.bind(this);this._trackingTarget=new Iu(()=>{this.autoRenderingEnabled&&this.scheduleRender()});let i=()=>({vnodeSelector:"div",properties:{key:`${r}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0}),o=()=>{var h;if(!this._readyForTrueRender||this.destroyed)return null;let c=n()??i(),a=c.properties??(c.properties={});if(a.key??(a.key=r),cm(c.vnodeSelector)){if(!this.visible)return i()}else this.visible?a.styles||(a.styles={}):(a.class="",a.styles={display:"none"}),(h=a.styles).display??(h.display="");let d=0;return c.children?.forEach(g=>{var v;cm(g.vnodeSelector)||(g.properties??(g.properties={}),(v=g.properties).key??(v.key=`${this.id}--${d++}`))}),z5(this,c)};this.render=()=>{if(B5)return o();let c=nL(this)??null;if(c)return c;this._trackingTarget.clear(),B5=!0;try{c=No(this._trackingTarget,o)}catch(a){throw ot.getLogger(this).error(a),a}finally{B5=!1}return c&&iL(this,c),c};let s=this.beforeFirstRender();s?this._resourcesFetch=s.then(()=>{this._readyForTrueRender=!0,this._postInitialize()}):(this._resourcesFetch=Promise.resolve().then(()=>{this._postInitialize()}),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),$k(this._resourcesFetch)}normalizeCtorArgs(e,t){let r={...e};return t&&(r.container=t),r}postInitialize(){}beforeFirstRender(){let e=this.loadDependencies();return this._messageBundleProps?.length||e?Promise.all([e,this._loadLocale()]).then(()=>{}).catch(g4):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||(yg(this._trackingTarget),yg(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,wb(this))}set container(e){this._get("container")||this._set("container",e)}castContainer(e){return vI(e)}get domNode(){return this.container}set domNode(e){this.container=e}get icon(){return null}set icon(e){this._overrideIfSome("icon",e)}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+yY++}set id(e){e&&this._set("id",e)}get label(){return this.declaredClass.split(".").pop()}set label(e){this._overrideIfSome("label",e)}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(e){this._set("visible",e)}get[(Uk=jb,qb)](){return{projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(wb(this),this._projector.scheduleRender())}classes(...e){return oL.apply(this,e)}renderNow(){wb(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(Wg(()=>this.viewModel,(t,r)=>{r&&this.removeHandles("delegated-events"),t&&Eg(t)&&this.addHandles(this._delegatedEventNames.map(n=>Tc(t,n,i=>{this.emit(n,i)})),"delegated-events")},ab)),this.postInitialize();let e=async()=>{await this._loadLocale().catch(g4),this.scheduleRender()};this.addHandles([kS(e),Wg(()=>this.uiStrings,e),NI(()=>this.container,t=>{this.destroyed||this._attach(t)},{initial:!0,once:!0})])}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0)}_detach(e){this._attached&&(this._projector.detach(this.render),this._attached=!1),e?.parentNode?.removeChild(e)}};Fr[Uk]=!0,Fr.vnodeSelector="div",O([V()],Fr.prototype,"_readyForTrueRender",void 0),O([V({value:null})],Fr.prototype,"container",null),O([aa("container")],Fr.prototype,"castContainer",null),O([V()],Fr.prototype,"icon",null),O([V()],Fr.prototype,"id",null),O([V()],Fr.prototype,"label",null),O([V()],Fr.prototype,"renderable",null),O([V()],Fr.prototype,"uiStrings",void 0),O([V()],Fr.prototype,"viewModel",void 0),O([V({value:!0})],Fr.prototype,"visible",null),O([V()],Fr.prototype,"key",void 0),O([V()],Fr.prototype,"children",void 0),O([V()],Fr.prototype,"afterCreate",void 0),O([V()],Fr.prototype,"afterUpdate",void 0),O([V()],Fr.prototype,"afterRemoved",void 0),Fr=O([Le(wY)],Fr);Wk=Fr});function G5(e){return(t,r)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}}var Gk=R(()=>{});function Ii(e,t,...r){return typeof e!="function"||cm(e)?_Y(e,t,...r):e(t,...r)}var vY,jk,_Y,qk=R(()=>{W5();vY=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},jk=function(e,t){for(var r=0,n=e.length;r<n;r++){var i=e[r];Array.isArray(i)?jk(i,t):i!=null&&i!==!1&&(i.hasOwnProperty("vnodeSelector")||(i=vY(i)),t.push(i))}},_Y=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(r.length===1&&typeof r[0]=="string")return{vnodeSelector:e,properties:t||void 0,children:void 0,text:r[0],domNode:null};var i=[];return jk(r,i),{vnodeSelector:e,properties:t||void 0,children:i,text:void 0,domNode:null}}});function SY(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-mode-name").replaceAll(/\s|'|"/g,"")}function EY(){return SY().startsWith("dark")}function Hk(){return`${xY}${EY()?"dark":"light"}`}var xY,Zk=R(()=>{xY="calcite-mode-"});function CY(e){return e.map(t=>{let r="";for(let n=0;n<t;n++)r+=((1+Math.random())*65536|0).toString(16).substring(1);return r}).join("-")}var fa,lm=R(()=>{fa=()=>CY([2,1,1,1,3])});var pn,xs=R(()=>{Bu();ar();pn=WL(s1,!0)});var um,TY,Zb,j5,Yk=R(()=>{ar();Ki();Dr();lm();xs();_n();um={container:"container",loader:"loader",percentage:"percentage",progressRing:"ring--progress",ring:"ring",rings:"rings",text:"text",trackRing:"ring--track"},TY=Dt`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-0);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-2);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`,Zb=class Zb extends $t{constructor(){super(...arguments),this.messages=pn({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(t){t.has("value")&&(this.hasUpdated||this.value!==0)&&this.valueChangeHandler(),(t.has("type")&&(this.hasUpdated||this.type!=="indeterminate")||t.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&this.value===100}formatValue(){return this.type!=="determinate-value"?`${this.value}`:this.formatter.format(this.value/100)}getSize(t){return{s:32,m:64,l:96}[t]}getInlineSize(t){return{s:12,m:16,l:24}[t]}updateFormatter(){this.type!=="determinate-value"||this.formatter?.resolvedOptions().locale===this.messages._lang||(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){let{el:t,inline:r,label:n,text:i,type:o,value:s}=this,c=t.id||fa(),a=o!=="indeterminate",d=Math.floor(s);return this.el.ariaLabel=n,this.el.ariaValueMax=a?"100":void 0,this.el.ariaValueMin=a?"0":void 0,this.el.ariaValueNow=a?d.toString():void 0,am(this.el,"id",c),this.el.role="progressbar",xe`<div class=${_e(um.rings)}>${this.renderRing("track")}${this.renderRing("progress")}${!r&&a&&xe`<div class=${_e(um.percentage)}>${this.formatValue()}</div>`||""}</div>${!r&&i&&xe`<div class=${_e(um.text)}>${i}</div>`||""}`}renderRing(t){let{inline:r,scale:n,value:i}=this,o=r?this.getInlineSize(n):this.getSize(n),s=o*.45,c;if(t==="progress"){let a=2*s*Math.PI,d=(this.type.startsWith("determinate")?i:24)/100*a,h=a-d;c={"stroke-dasharray":`${d} ${h}`}}return xe`<svg aria-hidden=true class=${_e({[um.ring]:!0,[um.trackRing]:t==="track",[um.progressRing]:t==="progress"})} style=${Gb(c)} viewBox=${`0 0 ${o} ${o}`}>${_s`<circle cx=${o/2} cy=${o/2} r=${s??Re} />`}</svg>`}};Zb.properties={complete:7,inline:7,label:1,scale:3,text:1,type:3,value:9},Zb.styles=TY;j5=Zb;Gt("calcite-loader",j5)});var Yb=R(()=>{Yk()});function Wc(e){let t="dir",r=`[${t}]`,n=Bc(e,r);return n?n.getAttribute(t):"ltr"}function nN(e){return e.getRootNode()}function iN(e){return e.host||null}function Ju(e,{selector:t,id:r}){if(!e)return null;e.assignedSlot&&(e=e.assignedSlot);let n=nN(e);return(r?"getElementById"in n?n.getElementById(r):null:t?n.querySelector(t):null)||Ju(iN(n),{selector:t,id:r})}function Bc(e,t){return e?e.closest(t)||Bc(iN(nN(e)),t):null}function qY(e){return typeof e?.setFocus=="function"}async function Qb(e){if(e)return qY(e)?e.setFocus():e.focus()}function HY(e){if(e)return jY(e,H5)[0]??e}function Gc(e){HY(e)?.focus()}function ZY(e,t){return e.filter(r=>r.matches(t))}function ma(e,t,r){if(typeof t=="string"&&t!=="")return t;if(t===""||t===!0)return e[r]}function Xu(e){return(!!e).toString()}function oN(e){return Hn(e)||JY(e)}function YY(e){return XY(e).filter(t=>t.nodeType===Node.TEXT_NODE).map(t=>t.textContent).join("").trim()}function sN(e){for(let t of e.childNodes)if(t.nodeType===Node.TEXT_NODE&&t.textContent?.trim()!==""||t.nodeType===Node.ELEMENT_NODE)return!0;return!1}function JY(e){return!!YY(e)}function XY(e){return e.currentTarget.assignedNodes({flatten:!0})}function Hn(e){return!!Kb(e).length}function Kb(e,t){return QY(e.target,t)}function QY(e,t){let r=e.assignedElements({flatten:!0});return t?ZY(r,t):r}function aN(e){return!!(e.isPrimary&&e.button===0)}function cN(e){return e.detail===0}function lN(e,t){if(e.parentNode!==t.parentNode)return!1;let r=Array.from(e.parentNode.children);return r.indexOf(e)<r.indexOf(t)}async function uN(e,t,r,n){return KY(e,t,"transition",r,n)}async function KY(e,t,r,n,i){let o=window.getComputedStyle(e),s=r==="transition"?o.transitionDuration:o.animationDuration,c=r==="transition"?o.transitionProperty:o.animationName,a=s.split(","),d=c.split(",").map(A=>A.trim()).indexOf(t),h=a[d]??a[0];function g(){requestAnimationFrame(()=>{n?.(),requestAnimationFrame(()=>i?.())})}if(h==="0s"){g();return}let v=r==="transition"?"transitionstart":"animationstart",E=r==="transition"?"transitionend":"animationend",P=r==="transition"?"transitioncancel":"animationcancel";return new Promise(A=>{let F=window.setTimeout(()=>{e.removeEventListener(v,W),e.removeEventListener(E,z),e.removeEventListener(P,z),g(),A()},parseFloat(h)*1e3);e.addEventListener(v,W),e.addEventListener(E,z),e.addEventListener(P,z);function W(j){j.target===e&&Qk(j)===t&&(window.clearTimeout(F),e.removeEventListener(v,W),n?.())}function z(j){j.target===e&&Qk(j)===t&&(e.removeEventListener(E,z),e.removeEventListener(P,z),i?.(),A())}})}function eJ(e){return"propertyName"in e}function Qk(e){return eJ(e)?e.propertyName:e.animationName}function c1(e){return e.endsWith("px")}var PY,q5,Kk,a1,Jb,Xb,MY,AY,IY,eN,tN,LY,kY,rN,NY,OY,RY,DY,FY,$Y,VY,Jk,UY,zY,WY,Xk,BY,GY,jY,H5,Sn=R(()=>{lm();ar();PY=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],q5=PY.join(","),Kk=typeof Element>"u",a1=Kk?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Jb=!Kk&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Xb=function e(t,r){var n;r===void 0&&(r=!0);var i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=i===""||i==="true",s=o||r&&t&&e(t.parentNode);return s},MY=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},AY=function(e,t,r){if(Xb(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(q5));return t&&a1.call(e,q5)&&n.unshift(e),n=n.filter(r),n},IY=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!Xb(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),a=c.length?c:s.children,d=e(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=a1.call(s,q5);h&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!Xb(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&v){var E=e(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,E):i.push({scopeParent:s,candidates:E})}else o.unshift.apply(o,s.children)}}return i},eN=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},tN=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||MY(e))&&!eN(e)?0:e.tabIndex},LY=function(e,t){var r=tN(e);return r<0&&t&&!eN(e)?0:r},kY=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},rN=function(e){return e.tagName==="INPUT"},NY=function(e){return rN(e)&&e.type==="hidden"},OY=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},RY=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},DY=function(e){if(!e.name)return!0;var t=e.form||Jb(e),r=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},n;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")n=r(window.CSS.escape(e.name));else try{n=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var i=RY(n,e.form);return!i||i===e},FY=function(e){return rN(e)&&e.type==="radio"},$Y=function(e){return FY(e)&&!DY(e)},VY=function(e){var t,r=e&&Jb(e),n=(t=r)===null||t===void 0?void 0:t.host,i=!1;if(r&&r!==e){var o,s,c;for(i=!!((o=n)!==null&&o!==void 0&&(s=o.ownerDocument)!==null&&s!==void 0&&s.contains(n)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!i&&n;){var a,d,h;r=Jb(n),n=(a=r)===null||a===void 0?void 0:a.host,i=!!((d=n)!==null&&d!==void 0&&(h=d.ownerDocument)!==null&&h!==void 0&&h.contains(n))}}return i},Jk=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return r===0&&n===0},UY=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var i=a1.call(e,"details>summary:first-of-type"),o=i?e.parentElement:e;if(a1.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof n=="function"){for(var s=e;e;){var c=e.parentElement,a=Jb(e);if(c&&!c.shadowRoot&&n(c)===!0)return Jk(e);e.assignedSlot?e=e.assignedSlot:!c&&a!==e.ownerDocument?e=a.host:e=c}e=s}if(VY(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Jk(e);return!1},zY=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if(n.tagName==="LEGEND")return a1.call(t,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}t=t.parentElement}return!1},WY=function(e,t){return!(t.disabled||Xb(t)||NY(t)||UY(t,e)||OY(t)||zY(t))},Xk=function(e,t){return!($Y(t)||tN(t)<0||!WY(e,t))},BY=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},GY=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scopeParent,c=s?i.scopeParent:i,a=LY(c,s),d=s?e(i.candidates):c;a===0?s?r.push.apply(r,d):r.push(c):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(kY).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},jY=function(e,t){t=t||{};var r;return t.getShadowRoot?r=IY([e],t.includeContainer,{filter:Xk.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:BY}):r=AY(e,t.includeContainer,Xk.bind(null,t)),GY(r)},H5={getShadowRoot:!0}});function Zn(e,t,r){if(!ro())return;let n=tJ(e);return new n(t,r)}function tJ(e){class t extends window.MutationObserver{constructor(n){super(n),this.observedEntry=[],this.callback=n}observe(n,i){return this.observedEntry.push({target:n,options:i}),super.observe(n,i)}unobserve(n){let i=this.observedEntry.filter(o=>o.target!==n);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),i.forEach(o=>this.observe(o.target,o.options))}}return function(){return e==="intersection"?window.IntersectionObserver:e==="mutation"?t:window.ResizeObserver}()}var jc=R(()=>{ar();});function fN({icon:e,scale:t}){let r=pN[t],n=oJ(e),i=n.charAt(n.length-1)==="F";return`${i?n.substring(0,n.length-1):n}${r}${i?"F":""}`}async function nJ(e){let t=fN(e),r=mN(t);if(r)return r;Z5[t]||(Z5[t]=fetch(s1(`./assets/icon/${t}.json`)).then(i=>i.json()).catch(()=>(console.error(`"${t}" is not a valid calcite-ui-icon name`),"")));let n=await Z5[t];return dN[t]=n,n}function iJ(e){return mN(fN(e))}function mN(e){return dN[e]}function oJ(e){let t=!isNaN(Number(e.charAt(0))),r=e.split("-");if(r.length>0){let n=/[a-z]/i;e=r.map((i,o)=>i.replace(n,function(s,c){return o===0&&c===0?s:s.toUpperCase()})).join("")}return t?`i${e}`:e}var rJ,dN,Z5,pN,sJ,ev,Y5,hN=R(()=>{ar();Ki();Dr();Sn();jc();_n();rJ={icon:"icon",flipRtl:"flip-rtl"},dN={},Z5={},pN={s:16,m:24,l:32};sJ=Dt`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`,ev=class ev extends $t{constructor(){super(...arguments),this.visible=!1,this.flipRtl=!1,this.icon=null,this.preload=!1,this.scale="m"}connectedCallback(){if(super.connectedCallback(),this.preload){this.visible=!0,this.loadIconPathData();return}this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}willUpdate(t){(t.has("icon")&&(this.hasUpdated||this.icon!==null)||t.has("scale")&&(this.hasUpdated||this.scale!=="m"))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=null}async loadIconPathData(){let{icon:t,scale:r,visible:n}=this;if(!ro()||!t||!n)return;let i={icon:t,scale:r},o=iJ(i)||await nJ(i);t===this.icon&&(this.pathData=o)}waitUntilVisible(t){if(this.intersectionObserver=Zn("intersection",r=>{r.forEach(n=>{n.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())})},{rootMargin:"50px"}),!this.intersectionObserver){t();return}this.intersectionObserver.observe(this.el)}render(){let{el:t,flipRtl:r,pathData:n,scale:i,textLabel:o}=this,s=Wc(t),c=pN[i],a=!!o,d=[].concat(n||"");return this.el.ariaHidden=Xu(!a),this.el.ariaLabel=a?o:null,this.el.role=a?"img":null,xe`<svg aria-hidden=true class=${_e({[rJ.flipRtl]:s==="rtl"&&r,svg:!0})} fill=currentColor height=100% viewBox=${`0 0 ${c} ${c}`} width=100% xmlns=http://www.w3.org/2000/svg>${d.map(h=>typeof h=="string"?_s`<path d=${h??Re} />`:_s`<path d=${h.d??Re} opacity=${("opacity"in h?h.opacity:1)??Re} />`)}</svg>`}};ev.properties={pathData:16,visible:16,flipRtl:7,icon:3,preload:7,scale:3,textLabel:1},ev.styles=sJ;Y5=ev;Gt("calcite-icon",Y5)});var Qu=R(()=>{hN()});function aJ(e){this._$AN!==void 0?(tv(this),this._$AM=e,gN(this)):this._$AM=e}function cJ(e,t=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let o=r;o<n.length;o++)l1(n[o],!1),tv(n[o]);else n!=null&&(l1(n,!1),tv(n));else l1(this,e)}var l1,tv,gN,lJ,rv,wN=R(()=>{Wb();da();da();l1=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),l1(n,t);return!0},tv=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},gN=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),lJ(t)}};lJ=e=>{e.type==Ai.CHILD&&(e._$AP??(e._$AP=cJ),e._$AQ??(e._$AQ=aJ))},rv=class extends eo{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),gN(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(l1(this,t),tv(this))}setValue(t){if(Ub(this.t))this.t._$AI(t,this);else{let r=[...this.t._$AH];r[this.i]=t,this.t._$AI(r,this,0)}}disconnected(){}reconnected(){}}});var Li,X5,J5,At,Vo=R(()=>{Rr();wN();da();Li=()=>new X5,X5=class{},J5=new WeakMap,At=to(class extends rv{render(e){return Re}update(e,[t]){let r=t!==this.Y;return r&&this.Y!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),Re}rt(e){if(this.isConnected||(e=void 0),typeof this.Y=="function"){let t=this.ht??globalThis,r=J5.get(t);r===void 0&&(r=new WeakMap,J5.set(t,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,e),e!==void 0&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){return typeof this.Y=="function"?J5.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})});var Q5,uJ,bN,qc,yN,K5,dm,Sbe,Ebe,nv=R(()=>{Rr();Q5=Symbol.for(""),uJ=e=>{if(e?.r===Q5)return e?._$litStatic$},bN=e=>({_$litStatic$:e,r:Q5}),qc=(e,...t)=>({_$litStatic$:t.reduce((r,n,i)=>r+(o=>{if(o._$litStatic$!==void 0)return o._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${o}. Use 'unsafeStatic' to pass non-literal values, but
10
- take care to ensure page security.`)})(n)+e[i+1],e[0]),r:Q5}),yN=new Map,K5=e=>(t,...r)=>{let n=r.length,i,o,s=[],c=[],a,d=0,h=!1;for(;d<n;){for(a=t[d];d<n&&(o=r[d],(i=uJ(o))!==void 0);)a+=i+t[++d],h=!0;d!==n&&c.push(o),s.push(a),d++}if(d===n&&s.push(t[n]),h){let g=s.join("$$lit$$");(t=yN.get(g))===void 0&&(s.raw=s,yN.set(g,t=s)),r=c}return e(t,...r)},dm=K5(xe),Sbe=K5(_s),Ebe=K5(dk)});function pJ(e){return`${e.split("-").map((t,r)=>r===0?t:`${t[0].toUpperCase()}${t.slice(1)}`).join("")}${dJ.includes(e)?"Input":"Change"}`}function rE(e){return"checked"in e}function fJ(e,t){if(Bc(t.parentElement,"[form]"))return!0;let r="calciteInternalFormComponentRegister",n=!1;return e.addEventListener(r,i=>{n=i.composedPath().some(o=>nE.has(o)),i.stopPropagation()},{once:!0}),t.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0})),n}function mJ(e,{status:t,message:r,icon:n}){"status"in e&&(e.status=t),"validationIcon"in e&&typeof e.validationIcon!="string"&&(e.validationIcon=n),"validationMessage"in e&&!e.validationMessage&&(e.validationMessage=r)}function SN(e){return e.nodeName==="CALCITE-RADIO-BUTTON"?Bc(e,"calcite-radio-button-group"):e}function vN(e){let t=e?.target,r=t?.validationMessage,n=SN(t?.parentElement);if(!n)return;let i=n?.nodeName?.toLowerCase(),o=i?.split("-");if(o.length<2||o[0]!=="calcite")return;e?.preventDefault(),"validity"in n&&(n.validity=t?.validity),n.dispatchEvent(hJ),mJ(n,{message:r,icon:!0,status:"invalid"});let s=pJ(i);n.addEventListener(s,()=>{"status"in n&&(n.status="idle"),"validationIcon"in n&&(n.validationIcon===""||n.validationIcon===!0)&&(n.validationIcon=!1),"validationMessage"in n&&n.validationMessage===r&&(n.validationMessage=""),"validity"in n&&(n.validity=t?.validity)},{once:!0})}function iv(e){let{formEl:t}=e;return t?(t.addEventListener("invalid",vN,!0),t.requestSubmit(),t.removeEventListener("invalid",vN,!0),requestAnimationFrame(()=>{let r=t.querySelectorAll("[status=invalid]");for(let n of r)if(n?.validationMessage){n?.setFocus();break}}),!0):!1}function EN(e){e.formEl?.reset()}function CN(e){let{el:t,value:r}=e,n=iE(e);if(!n||fJ(n,t))return;e.formEl=n,e.defaultValue=r,rE(e)&&(e.defaultChecked=e.checked);let i=(e.onFormReset||gJ).bind(e);n.addEventListener("reset",i),tE.set(e.el,i),nE.add(t)}function iE(e){let{el:t,form:r}=e;return r?Ju(t,{id:r}):Bc(t,"form")}function gJ(){if("status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),rE(this)){this.checked=this.defaultChecked;return}this.value=this.defaultValue}function TN(e){let{el:t,formEl:r}=e;if(!r)return;let n=tE.get(t);r.removeEventListener("reset",n),tE.delete(t),e.formEl=null,nE.delete(t)}function wJ(e){let{el:t,formEl:r,name:n,value:i}=e,{ownerDocument:o}=t,s=t.querySelectorAll(`input[slot="${eE}"]`);if(!r||!n){s.forEach(g=>{_N(g),g.remove()});return}let c=Array.isArray(i)?i:[i],a=[],d=new Set;s.forEach(g=>{let v=c.find(E=>E==g.value);v!=null?(d.add(v),xN(e,g,v)):a.push(g)});let h;c.forEach(g=>{if(d.has(g))return;let v=a.pop();v||(v=o.createElement("input"),v.slot=eE),h||(h=o.createDocumentFragment()),h.append(v),v.addEventListener("input",PN),xN(e,v,g)}),h&&t.append(h),a.forEach(g=>{_N(g),g.remove()})}function xN(e,t,r){let{defaultValue:n,disabled:i,form:o,name:s,required:c}=e;t.defaultValue=n,t.disabled=i,t.name=s,t.required=c,t.tabIndex=-1,o?t.setAttribute("form",o):t.removeAttribute("form"),rE(e)?(t.checked=e.checked,t.defaultChecked=e.defaultChecked,t.value=e.checked?r||"on":""):t.value=r||"",e.syncHiddenFormInput?.(t);let a=SN(e.el);if(a&&"validity"in a)for(let d in{...t?.validity})a.validity[d]=t.validity[d]}var dJ,eE,tE,nE,hJ,ov,PN,_N,MN,oE=R(()=>{Rr();Sn();dJ=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"];eE="hidden-form-input";tE=new WeakMap,nE=new WeakSet;hJ=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});ov="calciteInternalHiddenInputInput",PN=e=>{e.target.dispatchEvent(new CustomEvent(ov,{bubbles:!0}))},_N=e=>e.removeEventListener("input",PN);MN=({component:e})=>(wJ(e),xe`<slot name=${eE}></slot>`)});function yJ(){let{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function AN(e){e.target.disabled&&e.preventDefault()}function LN(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}function Hc(e){if(e.disabled){e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),bJ(e);return}_J(e),e.el.removeAttribute("aria-disabled")}function bJ(e){e.el.click=yJ,vJ(e.el)}function vJ(e){e.addEventListener("pointerdown",AN,sv),IN.forEach(t=>e.addEventListener(t,LN,sv))}function _J(e){delete e.el.click,xJ(e.el)}function xJ(e){e.removeEventListener("pointerdown",AN,sv),IN.forEach(t=>e.removeEventListener(t,LN,sv))}var IN,sv,SJ,Zc,u1=R(()=>{Rr();Dr();IN=["mousedown","mouseup","click"];sv={capture:!0};SJ={container:"interaction-container"},Zc=({children:e,disabled:t})=>xe`<div class=${_e(SJ.container)} .inert=${t}>${e}</div>`});function CJ(e,t){let r,n="custom-element-ancestor-check",i=o=>{o.stopImmediatePropagation();let s=o.composedPath();r=s.slice(s.indexOf(t),s.indexOf(e))};return e.addEventListener(n,i,{once:!0}),t.dispatchEvent(new CustomEvent(n,{composed:!0,bubbles:!0})),e.removeEventListener(n,i),r.filter(o=>o!==t&&o!==e).filter(o=>o.tagName?.includes("-")).length>0}function fm(e){if(!e)return;let t=EJ(e.el);if(d1.has(t)&&t===e.labelEl||!t&&Ku.has(e))return;let r=PJ.bind(e);if(t){e.labelEl=t;let n=pm.get(t)||[];n.push(e),pm.set(t,n.sort(RN)),d1.has(e.labelEl)||(d1.set(e.labelEl,NN),e.labelEl.addEventListener(ON,NN)),Ku.delete(e),document.removeEventListener(m1,f1.get(e)),av.set(e,r),document.addEventListener(p1,r)}else Ku.has(e)||(r(),document.removeEventListener(p1,av.get(e)))}function cv(e){if(!e||(Ku.delete(e),document.removeEventListener(m1,f1.get(e)),document.removeEventListener(p1,av.get(e)),f1.delete(e),av.delete(e),!e.labelEl))return;let t=pm.get(e.labelEl);t.length===1&&(e.labelEl.removeEventListener(ON,d1.get(e.labelEl)),d1.delete(e.labelEl)),pm.set(e.labelEl,t.filter(r=>r!==e).sort(RN)),e.labelEl=null}function RN(e,t){return lN(e.el,t.el)?-1:1}function h1(e){return e.label||e.labelEl?.textContent?.trim()||""}function NN(e){let t=e.detail.sourceEvent.target,r=pm.get(this),n=r.find(o=>o.el===t);if(r.includes(n))return;let i=r[0];i.disabled||i.onLabelClick(e)}function TJ(){Ku.has(this)&&fm(this)}function PJ(){Ku.add(this);let e=f1.get(this)||TJ.bind(this);f1.set(this,e),document.addEventListener(m1,e)}async function DN(e){if(await e.componentOnReady(),pm.has(e))return;let t=e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(let r of Ku)if(r.el===t){fm(r);break}})}var ON,m1,p1,kN,pm,d1,f1,av,Ku,EJ,lv=R(()=>{Sn();ON="calciteInternalLabelClick",m1="calciteInternalLabelConnected",p1="calciteInternalLabelDisconnected",kN="calcite-label",pm=new WeakMap,d1=new WeakMap,f1=new WeakMap,av=new WeakMap,Ku=new Set,EJ=e=>{let{id:t}=e,r=t&&Ju(e,{selector:`${kN}[for="${t}"]`});if(r)return r;let n=Bc(e,kN);return!n||CJ(n,e)?null:n}});function Dn(e){$N.set(e,new Promise(t=>FN.set(e,t)))}function Fn(e){FN.get(e)()}function MJ(e){return $N.get(e)}async function $n(e){if(await MJ(e),!!ro())return e.requestUpdate(),new Promise(t=>requestAnimationFrame(()=>t()))}var FN,$N,ha=R(()=>{ar();FN=new WeakMap,$N=new WeakMap});var VN=R(()=>{ar();});function Yn(e){return e==="l"?"m":"s"}var mm=R(()=>{VN();});var ki,AJ,dv,uv,UN=R(()=>{ar();Rr();Vo();nv();Dr();Bu();oE();u1();lv();ha();jc();mm();xs();Sn();_n();ki={buttonLoader:"calcite-button--loader",content:"content",contentSlotted:"content--slotted",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",loadingIn:"loading-in",loadingOut:"loading-out",iconStartEmpty:"icon-start-empty",iconEndEmpty:"icon-end-empty",buttonPadding:"button-padding",buttonPaddingShrunk:"button-padding--shrunk"},AJ=Dt`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;inline-size:auto;vertical-align:middle}:host([round]){border-radius:50px}:host([round]) a,:host([round]) button{border-radius:50px}:host button,:host a{outline-color:transparent}:host button:focus,:host a:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host button,:host a{--calcite-button-content-margin-internal: .5rem;--calcite-button-padding-x-internal: 7px;--calcite-button-padding-y-internal: 3px;padding-block:var(--calcite-button-padding-y-internal);padding-inline:var(--calcite-button-padding-x-internal);position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;align-items:center;justify-content:center;border-radius:0;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}:host button:hover,:host a:hover{text-decoration-line:none}:host button span,:host a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content{margin-inline:var(--calcite-button-content-margin-internal)}.icon-start-empty .content{margin-inline-start:unset}.icon-end-empty .content{margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-content-margin-internal: .75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-button-content-margin-internal: 1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:var(--calcite-button-content-margin-internal)}.icon{position:relative;margin:0;display:inline-flex;font-weight:var(--calcite-font-weight-normal);line-height:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(.5)}to{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}to{inline-size:0;opacity:0;transform:scale(.5)}}.calcite-button--loader{display:flex}.calcite-button--loader calcite-loader{margin:0}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{margin-inline-end:var(--calcite-button-content-margin-internal)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance]) button,:host([appearance]) a{border-width:1px;border-style:solid;border-color:transparent}:host([kind=brand]) button,:host([kind=brand]) a{background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}:host([kind=brand]) button:hover,:host([kind=brand]) button:focus,:host([kind=brand]) a:hover,:host([kind=brand]) a:focus{background-color:var(--calcite-color-brand-hover)}:host([kind=brand]) button:active,:host([kind=brand]) a:active{background-color:var(--calcite-color-brand-press)}:host([kind=brand]) button calcite-loader,:host([kind=brand]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([kind=danger]) button,:host([kind=danger]) a{background-color:var(--calcite-color-status-danger);color:var(--calcite-color-text-inverse)}:host([kind=danger]) button:hover,:host([kind=danger]) button:focus,:host([kind=danger]) a:hover,:host([kind=danger]) a:focus{background-color:var(--calcite-color-status-danger-hover)}:host([kind=danger]) button:active,:host([kind=danger]) a:active{background-color:var(--calcite-color-status-danger-press)}:host([kind=danger]) button calcite-loader,:host([kind=danger]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([kind=neutral]) button,:host([kind=neutral]) a{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}:host([kind=neutral]) button:hover,:host([kind=neutral]) button:focus,:host([kind=neutral]) a:hover,:host([kind=neutral]) a:focus{background-color:var(--calcite-color-foreground-2)}:host([kind=neutral]) button:active,:host([kind=neutral]) a:active{background-color:var(--calcite-color-foreground-1)}:host([kind=neutral]) button calcite-loader,:host([kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([kind=inverse]) button,:host([kind=inverse]) a{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse)}:host([kind=inverse]) button:hover,:host([kind=inverse]) button:focus,:host([kind=inverse]) a:hover,:host([kind=inverse]) a:focus{background-color:var(--calcite-color-inverse-hover)}:host([kind=inverse]) button:active,:host([kind=inverse]) a:active{background-color:var(--calcite-color-inverse-press)}:host([kind=inverse]) button calcite-loader,:host([kind=inverse]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{border-width:1px;border-style:solid;background-color:var(--calcite-color-foreground-1);box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{border-color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{border-color:var(--calcite-color-brand-hover);color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:focus,:host([appearance=outline-fill][kind=brand]) a:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-brand);box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{border-color:var(--calcite-color-brand-press);color:var(--calcite-color-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{border-color:var(--calcite-color-status-danger);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{border-color:var(--calcite-color-status-danger-hover);color:var(--calcite-color-status-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:focus,:host([appearance=outline-fill][kind=danger]) a:focus{border-color:var(--calcite-color-status-danger);color:var(--calcite-color-status-danger);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{border-color:var(--calcite-color-status-danger-press);color:var(--calcite-color-status-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);border-color:var(--calcite-color-border-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:focus,:host([appearance=outline-fill][kind=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button calcite-loader,:host([appearance=outline-fill][kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);border-color:var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{border-color:var(--calcite-color-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:focus,:host([appearance=outline-fill][kind=inverse]) a:focus{border-color:var(--calcite-color-inverse);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{border-color:var(--calcite-color-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse-press)}:host([appearance=outline-fill][kind=inverse]) button calcite-loader,:host([appearance=outline-fill][kind=inverse]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline]) button,:host([appearance=outline]) a{border-width:1px;border-style:solid;background-color:transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{border-color:var(--calcite-color-brand);background-color:transparent;color:var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{border-color:var(--calcite-color-brand-hover);color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:focus,:host([appearance=outline][kind=brand]) a:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-brand);box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{border-color:var(--calcite-color-brand-press);color:var(--calcite-color-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{border-color:var(--calcite-color-status-danger);background-color:transparent;color:var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{border-color:var(--calcite-color-status-danger-hover);color:var(--calcite-color-status-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:focus,:host([appearance=outline][kind=danger]) a:focus{border-color:var(--calcite-color-status-danger);color:var(--calcite-color-status-danger);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{border-color:var(--calcite-color-status-danger-press);color:var(--calcite-color-status-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{background-color:transparent;color:var(--calcite-color-text-1);border-color:var(--calcite-color-border-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:focus,:host([appearance=outline][kind=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button calcite-loader,:host([appearance=outline][kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{background-color:transparent;color:var(--calcite-color-text-1);border-color:var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{border-color:var(--calcite-color-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:focus,:host([appearance=outline][kind=inverse]) a:focus{border-color:var(--calcite-color-inverse);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{border-color:var(--calcite-color-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse-press)}:host([appearance=outline][kind=inverse]) button calcite-loader,:host([appearance=outline][kind=inverse]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline-fill][split-child=primary]) button,:host([appearance=outline][split-child=primary]) button{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline-fill][split-child=secondary]) button,:host([appearance=outline][split-child=secondary]) button{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]:not(.enable-editing-button)) button,:host([appearance=transparent]:not(.enable-editing-button)) a{background-color:transparent}:host([appearance=transparent]:not(.enable-editing-button)) button:hover,:host([appearance=transparent]:not(.enable-editing-button)) button:focus,:host([appearance=transparent]:not(.enable-editing-button)) a:hover,:host([appearance=transparent]:not(.enable-editing-button)) a:focus{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]:not(.enable-editing-button)) button:active,:host([appearance=transparent]:not(.enable-editing-button)) a:active{background-color:var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=brand]) button,:host([appearance=transparent][kind=brand]) a{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{color:var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:focus,:host([appearance=transparent][kind=brand]) a:focus{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{color:var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{color:var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:focus,:host([appearance=transparent][kind=danger]) a:focus{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{color:var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{border-block-start-width:1px;border-block-end-width:1px;color:var(--calcite-color-text-3);border-block-start-color:var(--calcite-color-border-input);border-block-end-color:var(--calcite-color-border-input);border-block-style:solid}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:not(.content--slotted){--calcite-button-padding-y-internal: 0}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{color:var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].enable-editing-button) button{background-color:transparent}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][kind=inverse]) button,:host([appearance=transparent][kind=inverse]) a,:host([appearance=transparent][kind=inverse]) calcite-loader{color:var(--calcite-color-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-button-padding-x-internal: .5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-button-padding-y-internal: 3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-button-padding-x-internal: 11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-padding-y-internal: 7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-button-padding-x-internal: .75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-button-padding-x-internal: 15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .button-padding{--calcite-button-padding-x-internal: 1rem;--calcite-button-padding-y-internal: 11px}:host([scale=l]) .button-padding--shrunk{--calcite-button-padding-y-internal: 9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-button-padding-x-internal: .125rem;--calcite-button-padding-y-internal: 3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-button-padding-x-internal: .125rem;--calcite-button-padding-y-internal: 7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-button-padding-x-internal: .125rem;--calcite-button-padding-y-internal: 9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}:host(:is([scale=s],[scale=m],[scale=l])[width=full]) a:not(.content--slotted),:host(:is([scale=s],[scale=m],[scale=l])[width=full]) button:not(.content--slotted){inline-size:var(--calcite-container-size-content-fluid)}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y-internal: .625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal: 23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x-internal: 1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal: 2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x-internal: 33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal: 43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x-internal: 2.75rem}:host([hidden]){display:none}[hidden]{display:none}`,dv=class dv extends $t{constructor(){super(...arguments),this.attributeWatch=Ab(["aria-expanded"],this.handleGlobalAttributesChanged),this.contentEl=Li(),this.mutationObserver=Zn("mutation",()=>this.updateHasContent()),this.resizeObserver=Zn("resize",()=>this.setTooltipText()),this.hasContent=!1,this.alignment="center",this.appearance="solid",this.disabled=!1,this.download=!1,this.kind="brand",this.loading=!1,this.messages=pn(),this.round=!1,this.scale="m",this.splitChild=!1,this.type="button",this.width="auto"}async setFocus(){await $n(this),this.childEl?.focus()}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),fm(this),this.formEl=iE(this)}async load(){Dn(this),ro()&&this.updateHasContent()}updated(){Hc(this)}loaded(){Fn(this),this.setTooltipText()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),cv(this),this.resizeObserver?.disconnect(),this.formEl=null}handleGlobalAttributesChanged(){this.requestUpdate()}updateHasContent(){this.hasContent=sN(this.el)}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}onLabelClick(){this.handleClick(),this.setFocus()}handleClick(){let{type:t}=this;this.href||(t==="submit"?iv(this):t==="reset"&&EN(this))}setTooltipText(){let{contentEl:{value:t}}=this;t&&(this.tooltipText=t.offsetWidth<t.scrollWidth&&this.el.innerText||null)}setChildEl(t){this.childEl=t,t&&this.resizeObserver?.observe(t)}render(){let t=this.href?"a":"button",r=this.href?qc`a`:qc`button`,n=this.loading?xe`<div class=${_e(ki.buttonLoader)}><calcite-loader class=${_e(this.loading?ki.loadingIn:ki.loadingOut)} inline .label=${this.messages.loading} .scale=${this.scale==="l"?"m":"s"}></calcite-loader></div>`:null,i=!this.iconStart&&!this.iconEnd,o=xe`<calcite-icon class=${_e({[ki.icon]:!0,[ki.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${Yn(this.scale)}></calcite-icon>`,s=xe`<calcite-icon class=${_e({[ki.icon]:!0,[ki.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${Yn(this.scale)}></calcite-icon>`,c=xe`<span class=${_e(ki.content)} ${At(this.contentEl)}><slot></slot></span>`;return Zc({disabled:this.disabled,children:dm`<${r} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded?this.el.ariaExpanded:null} .ariaLabel=${this.loading?this.messages.loading:h1(this)} aria-live=polite class=${_e({[ki.buttonPadding]:i,[ki.buttonPaddingShrunk]:!i,[ki.contentSlotted]:this.hasContent,[ki.iconStartEmpty]:!this.iconStart,[ki.iconEndEmpty]:!this.iconEnd})} .disabled=${t==="button"?this.disabled:null} download=${(t==="a"?this.download===!0||this.download===""?"":this.download||null:null)??ui} href=${(t==="a"&&this.href)??ui} name=${(t==="button"&&this.name)??ui} @click=${this.handleClick} rel=${(t==="a"&&this.rel)??ui} tabindex=${(this.disabled?-1:null)??ui} target=${(t==="a"&&this.target)??ui} title=${this.tooltipText??ui} type=${(t==="button"?this.type:null)??ui} ${At(this.setChildEl)}>${n}${this.iconStart?o:null}${this.hasContent?c:null}${this.iconEnd?s:null}</${r}>`})}};dv.properties={hasContent:16,tooltipText:16,alignment:3,appearance:3,disabled:7,download:[3,{converter:pa}],form:3,href:3,iconEnd:3,iconFlipRtl:3,iconStart:3,kind:3,label:1,loading:7,messageOverrides:0,name:3,rel:3,round:7,scale:3,splitChild:3,target:3,type:3,width:3},dv.styles=AJ;uv=dv;Gt("calcite-button",uv)});var zN={};qs(zN,{Button:()=>uv});var WN=R(()=>{Yb();Qu();UN()});var BN,GN,IJ,pv,sE,jN=R(()=>{ar();Vo();Rr();Dr();jc();Sn();xs();_n();BN={scrim:"scrim",content:"content"},GN={s:72,l:480},IJ=Dt`:host{position:absolute;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity: 0 }to{--tw-text-opacity: 1 }}.scrim{position:absolute;inset:0;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-color-transparent-scrim))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}`,pv=class pv extends $t{constructor(){super(...arguments),this.resizeObserver=Zn("resize",()=>this.handleResize()),this.hasContent=!1,this.loading=!1,this.messages=pn()}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}handleDefaultSlotChange(t){this.hasContent=oN(t)}storeLoaderEl(t){this.loaderEl=t,this.handleResize()}getScale(t){return t<GN.s?"s":t>=GN.l?"l":"m"}handleResize(){let{loaderEl:t,el:r}=this;t&&(this.loaderScale=this.getScale(Math.min(r.clientHeight,r.clientWidth)??0))}render(){let{hasContent:t,loading:r,messages:n}=this;return xe`<div class=${_e(BN.scrim)}>${r?xe`<calcite-loader .label=${n.loading} .scale=${this.loaderScale} ${At(this.storeLoaderEl)}></calcite-loader>`:null}<div class=${_e(BN.content)} .hidden=${!t}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>`}};pv.properties={hasContent:16,loaderScale:16,loading:7,messageOverrides:0},pv.styles=IJ;sE=pv;Gt("calcite-scrim",sE)});var aE=R(()=>{Yb();jN()});var cr,Yc=R(()=>{Rr();da();Wb();cr=to(class extends eo{constructor(){super(...arguments),this.key=Re}render(e,t){return this.key=e,t}update(e,[t,r]){return t!==this.key&&(zb(e),this.key=t),r}})});var Uo,LJ,kJ,fv,cE,qN=R(()=>{ar();Rr();Yc();Vo();Dr();lm();u1();ha();jc();mm();xs();_n();Uo={button:"button",buttonTextVisible:"button--text-visible",buttonCompact:"button--compact",indicatorText:"indicator-text",iconContainer:"icon-container",slotContainer:"slot-container",slotContainerHidden:"slot-container--hidden",textContainer:"text-container",textContainerVisible:"text-container--visible",indicatorWithIcon:"indicator-with-icon",indicatorWithoutIcon:"indicator-without-icon"},LJ={tooltip:"tooltip"},kJ=Dt`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;cursor:pointer;background-color:transparent}:host,button{border-end-end-radius:var(--calcite-action-corner-radius-end-end, var(--calcite-action-corner-radius, var(--calcite-corner-radius)));border-end-start-radius:var(--calcite-action-corner-radius-end-start, var(--calcite-action-corner-radius, var(--calcite-corner-radius)));border-start-end-radius:var(--calcite-action-corner-radius-start-end, var(--calcite-action-corner-radius, var(--calcite-corner-radius)));border-start-start-radius:var(--calcite-action-corner-radius-start-start, var(--calcite-action-corner-radius, var(--calcite-corner-radius)))}.button{position:relative;margin:0;display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));color:var(--calcite-action-text-color, var(--calcite-color-text-3));text-align:unset;flex:1 0 auto;cursor:inherit}.button:hover,.button:focus{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-pressed, var(--calcite-color-text-1))}.button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.button:active{background-color:var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3))}.icon-container{pointer-events:none;margin:0;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1.5rem}.text-container{margin:0;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:margin;transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus{color:var(--calcite-action-text-color-pressed, var(--calcite-color-text-1));background-color:var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3))}:host([active]) .button:active{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .text-container{opacity:var(--calcite-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-inline-end:0px}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-color-transparent-press)}:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]) .button:active{background-color:var(--calcite-color-transparent-press)}:host([data-active]) .button{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .button{font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, .5rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-xxs))}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:.5rem}:host([scale=m]) .button{font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, 1rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-md))}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:.75rem}:host([scale=l]) .button{font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, 1.25rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-xl))}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:.25rem;inline-size:1rem;position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;opacity:var(--calcite-opacity-disabled);background-color:var(--calcite-action-background-color, var(--calcite-action-background-color, var(--calcite-color-foreground-1)))}:host([disabled]):host([active]) .button,:host([disabled]):host([active]) .button:hover,:host([disabled]):host([active]) .button:focus{opacity:var(--calcite-opacity-disabled);background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,fv=class fv extends $t{constructor(){super(...arguments),this.guid=`calcite-action-${fa()}`,this.buttonEl=Li(),this.buttonId=`${this.guid}-button`,this.indicatorId=`${this.guid}-indicator`,this.mutationObserver=Zn("mutation",()=>this.requestUpdate()),this.active=!1,this.appearance="solid",this.compact=!1,this.disabled=!1,this.iconFlipRtl=!1,this.indicator=!1,this.loading=!1,this.messages=pn({blocking:!0}),this.scale="m",this.textEnabled=!1}async setFocus(){await $n(this),this.buttonEl.value?.focus()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){Dn(this)}updated(){Hc(this)}loaded(){Fn(this)}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}handleTooltipSlotChange(t){let r=t.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-tooltip"))[0];r&&(r.referenceElement=this.buttonEl.value)}renderTextContainer(){let{text:t,textEnabled:r}=this,n={[Uo.textContainer]:!0,[Uo.textContainerVisible]:r};return t?cr("text-container",xe`<div class=${_e(n)}>${t}</div>`):null}renderIndicatorText(){let{indicator:t,messages:r,indicatorId:n,buttonId:i}=this;return xe`<div aria-labelledby=${i??ui} aria-live=polite class=${_e(Uo.indicatorText)} id=${n??ui} role=region>${t?r.indicator:null}</div>`}renderIconContainer(){let{loading:t,icon:r,scale:n,el:i,iconFlipRtl:o,indicator:s}=this,c=n==="l"?"l":"m",a=t?xe`<calcite-loader inline .label=${this.messages.loading} .scale=${c}></calcite-loader>`:null,d=r?xe`<calcite-icon class=${_e({[Uo.indicatorWithIcon]:s})} .flipRtl=${o} .icon=${r} .scale=${Yn(this.scale)}></calcite-icon>`:null,h=a||d,g=h||i.children?.length,v=xe`<div class=${_e({[Uo.slotContainer]:!0,[Uo.slotContainerHidden]:t})}><slot></slot></div>`;return g?cr("icon-container",xe`<div aria-hidden=true class=${_e(Uo.iconContainer)}>${h}${v}</div>`):null}render(){let{active:t,compact:r,disabled:n,icon:i,loading:o,textEnabled:s,label:c,text:a,indicator:d,indicatorId:h,buttonId:g,messages:v}=this,E=c||a||"",P=d?v.indicatorLabel.replace("{label}",E):E,A={[Uo.button]:!0,[Uo.buttonTextVisible]:s,[Uo.buttonCompact]:r};return Zc({disabled:n,children:xe`<button aria-controls=${(d?h:null)??ui} .ariaBusy=${o} .ariaLabel=${P} .ariaPressed=${t} class=${_e(A)} .disabled=${n} id=${g??ui} ${At(this.buttonEl)}>${this.renderIconContainer()}${this.renderTextContainer()}${!i&&d&&cr("indicator-no-icon",xe`<div class=${_e(Uo.indicatorWithoutIcon)}></div>`)||""}</button><slot name=${LJ.tooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${this.renderIndicatorText()}`})}};fv.properties={active:7,alignment:3,appearance:3,compact:7,disabled:7,icon:1,iconFlipRtl:7,indicator:7,label:1,loading:7,messageOverrides:0,scale:3,text:1,textEnabled:7},fv.styles=kJ;cE=fv;Gt("calcite-action",cE)});var mv=R(()=>{Yb();Qu();qN()});function hv(e,t,r){return ga(e,Jc(t,r))}function Xc(e,t){return typeof e=="function"?e(t):e}function Ss(e){return e.split("-")[0]}function Wo(e){return e.split("-")[1]}function dE(e){return e==="x"?"y":"x"}function gv(e){return e==="y"?"height":"width"}function ed(e){return["top","bottom"].includes(Ss(e))?"y":"x"}function wv(e){return dE(ed(e))}function pE(e,t,r){r===void 0&&(r=!1);let n=Wo(e),i=wv(e),o=gv(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=w1(s)),[s,w1(s)]}function ZN(e){let t=w1(e);return[g1(e),t,g1(t)]}function g1(e){return e.replace(/start|end/g,t=>OJ[t])}function RJ(e,t,r){let n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:s;default:return[]}}function YN(e,t,r,n){let i=Wo(e),o=RJ(Ss(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(g1)))),o}function w1(e){return e.replace(/left|right|bottom|top/g,t=>NJ[t])}function DJ(e){return{top:0,right:0,bottom:0,left:0,...e}}function fE(e){return typeof e!="number"?DJ(e):{top:e,right:e,bottom:e,left:e}}function td(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}var lE,HN,uE,Jc,ga,y1,b1,zo,NJ,OJ,yv=R(()=>{lE=["top","right","bottom","left"],HN=["start","end"],uE=lE.reduce((e,t)=>e.concat(t,t+"-"+HN[0],t+"-"+HN[1]),[]),Jc=Math.min,ga=Math.max,y1=Math.round,b1=Math.floor,zo=e=>({x:e,y:e}),NJ={left:"right",right:"left",bottom:"top",top:"bottom"},OJ={start:"end",end:"start"}});function JN(e,t,r){let{reference:n,floating:i}=e,o=ed(t),s=wv(t),c=gv(s),a=Ss(t),d=o==="y",h=n.x+n.width/2-i.width/2,g=n.y+n.height/2-i.height/2,v=n[c]/2-i[c]/2,E;switch(a){case"top":E={x:h,y:n.y-i.height};break;case"bottom":E={x:h,y:n.y+n.height};break;case"right":E={x:n.x+n.width,y:g};break;case"left":E={x:n.x-i.width,y:g};break;default:E={x:n.x,y:n.y}}switch(Wo(t)){case"start":E[s]-=v*(r&&d?-1:1);break;case"end":E[s]+=v*(r&&d?-1:1);break}return E}async function hm(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:o,rects:s,elements:c,strategy:a}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:v=!1,padding:E=0}=Xc(t,e),P=fE(E),F=c[v?g==="floating"?"reference":"floating":g],W=td(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(F)))==null||r?F:F.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:a})),z=g==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,j=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),G=await(o.isElement==null?void 0:o.isElement(j))?await(o.getScale==null?void 0:o.getScale(j))||{x:1,y:1}:{x:1,y:1},Y=td(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:z,offsetParent:j,strategy:a}):z);return{top:(W.top-Y.top+P.top)/G.y,bottom:(Y.bottom-W.bottom+P.bottom)/G.y,left:(W.left-Y.left+P.left)/G.x,right:(Y.right-W.right+P.right)/G.x}}function FJ(e,t,r){return(e?[...r.filter(i=>Wo(i)===e),...r.filter(i=>Wo(i)!==e)]:r.filter(i=>Ss(i)===i)).filter(i=>e?Wo(i)===e||(t?g1(i)!==i:!1):!0)}function XN(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function QN(e){return lE.some(t=>e[t]>=0)}async function $J(e,t){let{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Ss(r),c=Wo(r),a=ed(r)==="y",d=["left","top"].includes(s)?-1:1,h=o&&a?-1:1,g=Xc(t,e),{mainAxis:v,crossAxis:E,alignmentAxis:P}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return c&&typeof P=="number"&&(E=c==="end"?P*-1:P),a?{x:E*h,y:v*d}:{x:v*d,y:E*h}}var KN,eO,tO,rO,nO,iO,oO,sO=R(()=>{yv();yv();KN=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,c=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t)),d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:g}=JN(d,n,a),v=n,E={},P=0;for(let A=0;A<c.length;A++){let{name:F,fn:W}=c[A],{x:z,y:j,data:G,reset:Y}=await W({x:h,y:g,initialPlacement:n,placement:v,strategy:i,middlewareData:E,rects:d,platform:s,elements:{reference:e,floating:t}});h=z??h,g=j??g,E={...E,[F]:{...E[F],...G}},Y&&P<=50&&(P++,typeof Y=="object"&&(Y.placement&&(v=Y.placement),Y.rects&&(d=Y.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):Y.rects),{x:h,y:g}=JN(d,v,a)),A=-1)}return{x:h,y:g,placement:v,strategy:i,middlewareData:E}};eO=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:s,elements:c,middlewareData:a}=t,{element:d,padding:h=0}=Xc(e,t)||{};if(d==null)return{};let g=fE(h),v={x:r,y:n},E=wv(i),P=gv(E),A=await s.getDimensions(d),F=E==="y",W=F?"top":"left",z=F?"bottom":"right",j=F?"clientHeight":"clientWidth",G=o.reference[P]+o.reference[E]-v[E]-o.floating[P],Y=v[E]-o.reference[E],ie=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d)),U=ie?ie[j]:0;(!U||!await(s.isElement==null?void 0:s.isElement(ie)))&&(U=c.floating[j]||o.floating[P]);let fe=G/2-Y/2,Ae=U/2-A[P]/2-1,Ee=Jc(g[W],Ae),Ne=Jc(g[z],Ae),we=Ee,le=U-A[P]-Ne,J=U/2-A[P]/2+fe,ee=hv(we,J,le),pe=!a.arrow&&Wo(i)!=null&&J!==ee&&o.reference[P]/2-(J<we?Ee:Ne)-A[P]/2<0,de=pe?J<we?J-we:J-le:0;return{[E]:v[E]+de,data:{[E]:ee,centerOffset:J-ee-de,...pe&&{alignmentOffset:de}},reset:pe}}});tO=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:o,middlewareData:s,placement:c,platform:a,elements:d}=t,{crossAxis:h=!1,alignment:g,allowedPlacements:v=uE,autoAlignment:E=!0,...P}=Xc(e,t),A=g!==void 0||v===uE?FJ(g||null,E,v):v,F=await hm(t,P),W=((r=s.autoPlacement)==null?void 0:r.index)||0,z=A[W];if(z==null)return{};let j=pE(z,o,await(a.isRTL==null?void 0:a.isRTL(d.floating)));if(c!==z)return{reset:{placement:A[0]}};let G=[F[Ss(z)],F[j[0]],F[j[1]]],Y=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:z,overflows:G}],ie=A[W+1];if(ie)return{data:{index:W+1,overflows:Y},reset:{placement:ie}};let U=Y.map(Ee=>{let Ne=Wo(Ee.placement);return[Ee.placement,Ne&&h?Ee.overflows.slice(0,2).reduce((we,le)=>we+le,0):Ee.overflows[0],Ee.overflows]}).sort((Ee,Ne)=>Ee[1]-Ne[1]),Ae=((i=U.filter(Ee=>Ee[2].slice(0,Wo(Ee[0])?2:3).every(Ne=>Ne<=0))[0])==null?void 0:i[0])||U[0][0];return Ae!==c?{data:{index:W+1,overflows:Y},reset:{placement:Ae}}:{}}}},rO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:i,middlewareData:o,rects:s,initialPlacement:c,platform:a,elements:d}=t,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:A=!0,...F}=Xc(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let W=Ss(i),z=ed(c),j=Ss(c)===c,G=await(a.isRTL==null?void 0:a.isRTL(d.floating)),Y=v||(j||!A?[w1(c)]:ZN(c)),ie=P!=="none";!v&&ie&&Y.push(...YN(c,A,P,G));let U=[c,...Y],fe=await hm(t,F),Ae=[],Ee=((n=o.flip)==null?void 0:n.overflows)||[];if(h&&Ae.push(fe[W]),g){let J=pE(i,s,G);Ae.push(fe[J[0]],fe[J[1]])}if(Ee=[...Ee,{placement:i,overflows:Ae}],!Ae.every(J=>J<=0)){var Ne,we;let J=(((Ne=o.flip)==null?void 0:Ne.index)||0)+1,ee=U[J];if(ee)return{data:{index:J,overflows:Ee},reset:{placement:ee}};let pe=(we=Ee.filter(de=>de.overflows[0]<=0).sort((de,Se)=>de.overflows[1]-Se.overflows[1])[0])==null?void 0:we.placement;if(!pe)switch(E){case"bestFit":{var le;let de=(le=Ee.filter(Se=>{if(ie){let ye=ed(Se.placement);return ye===z||ye==="y"}return!0}).map(Se=>[Se.placement,Se.overflows.filter(ye=>ye>0).reduce((ye,Fe)=>ye+Fe,0)]).sort((Se,ye)=>Se[1]-ye[1])[0])==null?void 0:le[0];de&&(pe=de);break}case"initialPlacement":pe=c;break}if(i!==pe)return{reset:{placement:pe}}}return{}}}};nO=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=Xc(e,t);switch(n){case"referenceHidden":{let o=await hm(t,{...i,elementContext:"reference"}),s=XN(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:QN(s)}}}case"escaped":{let o=await hm(t,{...i,altBoundary:!0}),s=XN(o,r.floating);return{data:{escapedOffsets:s,escaped:QN(s)}}}default:return{}}}}};iO=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:s,middlewareData:c}=t,a=await $J(t,e);return s===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},oO=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:F=>{let{x:W,y:z}=F;return{x:W,y:z}}},...a}=Xc(e,t),d={x:r,y:n},h=await hm(t,a),g=ed(Ss(i)),v=dE(g),E=d[v],P=d[g];if(o){let F=v==="y"?"top":"left",W=v==="y"?"bottom":"right",z=E+h[F],j=E-h[W];E=hv(z,E,j)}if(s){let F=g==="y"?"top":"left",W=g==="y"?"bottom":"right",z=P+h[F],j=P-h[W];P=hv(z,P,j)}let A=c.fn({...t,[v]:E,[g]:P});return{...A,data:{x:A.x-r,y:A.y-n}}}}}});function bv(){return typeof window<"u"}function rd(e){return cO(e)?(e.nodeName||"").toLowerCase():"#document"}function di(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bo(e){var t;return(t=(cO(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cO(e){return bv()?e instanceof Node||e instanceof di(e).Node:!1}function no(e){return bv()?e instanceof Element||e instanceof di(e).Element:!1}function Go(e){return bv()?e instanceof HTMLElement||e instanceof di(e).HTMLElement:!1}function aO(e){return!bv()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof di(e).ShadowRoot}function wm(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=io(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function lO(e){return["table","td","th"].includes(rd(e))}function v1(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ym(e){let t=vv(),r=no(e)?io(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function uO(e){let t=wa(e);for(;Go(t)&&!nd(t);){if(ym(t))return t;if(v1(t))return null;t=wa(t)}return null}function vv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function nd(e){return["html","body","#document"].includes(rd(e))}function io(e){return di(e).getComputedStyle(e)}function _1(e){return no(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wa(e){if(rd(e)==="html")return e;let t=e.assignedSlot||e.parentNode||aO(e)&&e.host||Bo(e);return aO(t)?t.host:t}function dO(e){let t=wa(e);return nd(t)?e.ownerDocument?e.ownerDocument.body:e.body:Go(t)&&wm(t)?t:dO(t)}function gm(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=dO(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=di(i);if(o){let c=_v(s);return t.concat(s,s.visualViewport||[],wm(i)?i:[],c&&r?gm(c):[])}return t.concat(i,gm(i,[],r))}function _v(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var mE=R(()=>{});function mO(e){let t=io(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Go(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,c=y1(r)!==o||y1(n)!==s;return c&&(r=o,n=s),{width:r,height:n,$:c}}function gE(e){return no(e)?e:e.contextElement}function bm(e){let t=gE(e);if(!Go(t))return zo(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=mO(t),s=(o?y1(r.width):r.width)/n,c=(o?y1(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}function hO(e){let t=di(e);return!vv()||!t.visualViewport?VJ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function UJ(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==di(e)?!1:t}function id(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=gE(e),s=zo(1);t&&(n?no(n)&&(s=bm(n)):s=bm(e));let c=UJ(o,r,n)?hO(o):zo(0),a=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,h=i.width/s.x,g=i.height/s.y;if(o){let v=di(o),E=n&&no(n)?di(n):n,P=v,A=_v(P);for(;A&&n&&E!==P;){let F=bm(A),W=A.getBoundingClientRect(),z=io(A),j=W.left+(A.clientLeft+parseFloat(z.paddingLeft))*F.x,G=W.top+(A.clientTop+parseFloat(z.paddingTop))*F.y;a*=F.x,d*=F.y,h*=F.x,g*=F.y,a+=j,d+=G,P=di(A),A=_v(P)}}return td({width:h,height:g,x:a,y:d})}function wE(e,t){let r=_1(e).scrollLeft;return t?t.left+r:id(Bo(e)).left+r}function gO(e,t,r){r===void 0&&(r=!1);let n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:wE(e,n)),o=n.top+t.scrollTop;return{x:i,y:o}}function zJ(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o=i==="fixed",s=Bo(n),c=t?v1(t.floating):!1;if(n===s||c&&o)return r;let a={scrollLeft:0,scrollTop:0},d=zo(1),h=zo(0),g=Go(n);if((g||!g&&!o)&&((rd(n)!=="body"||wm(s))&&(a=_1(n)),Go(n))){let E=id(n);d=bm(n),h.x=E.x+n.clientLeft,h.y=E.y+n.clientTop}let v=s&&!g&&!o?gO(s,a,!0):zo(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-a.scrollLeft*d.x+h.x+v.x,y:r.y*d.y-a.scrollTop*d.y+h.y+v.y}}function WJ(e){return Array.from(e.getClientRects())}function BJ(e){let t=Bo(e),r=_1(e),n=e.ownerDocument.body,i=ga(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=ga(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+wE(e),c=-r.scrollTop;return io(n).direction==="rtl"&&(s+=ga(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:c}}function GJ(e,t){let r=di(e),n=Bo(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,c=0,a=0;if(i){o=i.width,s=i.height;let d=vv();(!d||d&&t==="fixed")&&(c=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:c,y:a}}function jJ(e,t){let r=id(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Go(e)?bm(e):zo(1),s=e.clientWidth*o.x,c=e.clientHeight*o.y,a=i*o.x,d=n*o.y;return{width:s,height:c,x:a,y:d}}function pO(e,t,r){let n;if(t==="viewport")n=GJ(e,r);else if(t==="document")n=BJ(Bo(e));else if(no(t))n=jJ(t,r);else{let i=hO(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return td(n)}function wO(e,t){let r=wa(e);return r===t||!no(r)||nd(r)?!1:io(r).position==="fixed"||wO(r,t)}function qJ(e,t){let r=t.get(e);if(r)return r;let n=gm(e,[],!1).filter(c=>no(c)&&rd(c)!=="body"),i=null,o=io(e).position==="fixed",s=o?wa(e):e;for(;no(s)&&!nd(s);){let c=io(s),a=ym(s);!a&&c.position==="fixed"&&(i=null),(o?!a&&!i:!a&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||wm(s)&&!a&&wO(e,s))?n=n.filter(h=>h!==s):i=c,s=wa(s)}return t.set(e,n),n}function HJ(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?v1(t)?[]:qJ(t,this._c):[].concat(r),n],c=s[0],a=s.reduce((d,h)=>{let g=pO(t,h,i);return d.top=ga(g.top,d.top),d.right=Jc(g.right,d.right),d.bottom=Jc(g.bottom,d.bottom),d.left=ga(g.left,d.left),d},pO(t,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function ZJ(e){let{width:t,height:r}=mO(e);return{width:t,height:r}}function YJ(e,t,r){let n=Go(t),i=Bo(t),o=r==="fixed",s=id(e,!0,o,t),c={scrollLeft:0,scrollTop:0},a=zo(0);if(n||!n&&!o)if((rd(t)!=="body"||wm(i))&&(c=_1(t)),n){let v=id(t,!0,o,t);a.x=v.x+t.clientLeft,a.y=v.y+t.clientTop}else i&&(a.x=wE(i));let d=i&&!n&&!o?gO(i,c):zo(0),h=s.left+c.scrollLeft-a.x-d.x,g=s.top+c.scrollTop-a.y-d.y;return{x:h,y:g,width:s.width,height:s.height}}function hE(e){return io(e).position==="static"}function fO(e,t){if(!Go(e)||io(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Bo(e)===r&&(r=r.ownerDocument.body),r}function yO(e,t){let r=di(e);if(v1(e))return r;if(!Go(e)){let i=wa(e);for(;i&&!nd(i);){if(no(i)&&!hE(i))return i;i=wa(i)}return r}let n=fO(e,t);for(;n&&lO(n)&&hE(n);)n=fO(n,t);return n&&nd(n)&&hE(n)&&!ym(n)?r:n||uO(e)||r}function XJ(e){return io(e).direction==="rtl"}function QJ(e,t){let r=null,n,i=Bo(e);function o(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function s(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),o();let{left:d,top:h,width:g,height:v}=e.getBoundingClientRect();if(c||t(),!g||!v)return;let E=b1(h),P=b1(i.clientWidth-(d+g)),A=b1(i.clientHeight-(h+v)),F=b1(d),z={rootMargin:-E+"px "+-P+"px "+-A+"px "+-F+"px",threshold:ga(0,Jc(1,a))||1},j=!0;function G(Y){let ie=Y[0].intersectionRatio;if(ie!==a){if(!j)return s();ie?s(!1,ie):n=setTimeout(()=>{s(!1,1e-7)},1e3)}j=!1}try{r=new IntersectionObserver(G,{...z,root:i.ownerDocument})}catch{r=new IntersectionObserver(G,z)}r.observe(e)}return s(!0),o}function bO(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,d=gE(e),h=i||o?[...d?gm(d):[],...gm(t)]:[];h.forEach(W=>{i&&W.addEventListener("scroll",r,{passive:!0}),o&&W.addEventListener("resize",r)});let g=d&&c?QJ(d,r):null,v=-1,E=null;s&&(E=new ResizeObserver(W=>{let[z]=W;z&&z.target===d&&E&&(E.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var j;(j=E)==null||j.observe(t)})),r()}),d&&!a&&E.observe(d),E.observe(t));let P,A=a?id(e):null;a&&F();function F(){let W=id(e);A&&(W.x!==A.x||W.y!==A.y||W.width!==A.width||W.height!==A.height)&&r(),A=W,P=requestAnimationFrame(F)}return r(),()=>{var W;h.forEach(z=>{i&&z.removeEventListener("scroll",r),o&&z.removeEventListener("resize",r)}),g?.(),(W=E)==null||W.disconnect(),E=null,a&&cancelAnimationFrame(P)}}var VJ,JJ,xv,vO,_O,xO,yE,SO,EO,CO,TO=R(()=>{sO();yv();mE();VJ=zo(0);JJ=async function(e){let t=this.getOffsetParent||yO,r=this.getDimensions,n=await r(e.floating);return{reference:YJ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};xv={convertOffsetParentRelativeRectToViewportRelativeRect:zJ,getDocumentElement:Bo,getClippingRect:HJ,getOffsetParent:yO,getElementRects:JJ,getClientRects:WJ,getDimensions:ZJ,getScale:bm,isElement:no,isRTL:XJ};vO=iO,_O=tO,xO=oO,yE=rO,SO=nO,EO=eO,CO=(e,t,r)=>{let n=new Map,i={platform:xv,...r},o={...i.platform,_c:n};return KN(e,t,{...i,platform:o})}});var KJ,PO,MO=R(()=>{KJ=typeof global=="object"&&global&&global.Object===Object&&global,PO=KJ});var eX,tX,Sv,bE=R(()=>{MO();eX=typeof self=="object"&&self&&self.Object===Object&&self,tX=PO||eX||Function("return this")(),Sv=tX});var rX,vm,vE=R(()=>{bE();rX=Sv.Symbol,vm=rX});function oX(e){var t=nX.call(e,x1),r=e[x1];try{e[x1]=void 0;var n=!0}catch{}var i=iX.call(e);return n&&(t?e[x1]=r:delete e[x1]),i}var AO,nX,iX,x1,IO,LO=R(()=>{vE();AO=Object.prototype,nX=AO.hasOwnProperty,iX=AO.toString,x1=vm?vm.toStringTag:void 0;IO=oX});function cX(e){return aX.call(e)}var sX,aX,kO,NO=R(()=>{sX=Object.prototype,aX=sX.toString;kO=cX});function dX(e){return e==null?e===void 0?uX:lX:OO&&OO in Object(e)?IO(e):kO(e)}var lX,uX,OO,RO,DO=R(()=>{vE();LO();NO();lX="[object Null]",uX="[object Undefined]",OO=vm?vm.toStringTag:void 0;RO=dX});function pX(e){return e!=null&&typeof e=="object"}var FO,$O=R(()=>{FO=pX});function mX(e){return typeof e=="symbol"||FO(e)&&RO(e)==fX}var fX,VO,UO=R(()=>{DO();$O();fX="[object Symbol]";VO=mX});function gX(e){for(var t=e.length;t--&&hX.test(e.charAt(t)););return t}var hX,zO,WO=R(()=>{hX=/\s/;zO=gX});function yX(e){return e&&e.slice(0,zO(e)+1).replace(wX,"")}var wX,BO,GO=R(()=>{WO();wX=/^\s+/;BO=yX});function bX(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var S1,_E=R(()=>{S1=bX});function EX(e){if(typeof e=="number")return e;if(VO(e))return jO;if(S1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=S1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=BO(e);var r=_X.test(e);return r||xX.test(e)?SX(e.slice(2),r?2:8):vX.test(e)?jO:+e}var jO,vX,_X,xX,SX,xE,qO=R(()=>{GO();_E();UO();jO=NaN,vX=/^[-+]0x[0-9a-f]+$/i,_X=/^0b[01]+$/i,xX=/^0o[0-7]+$/i,SX=parseInt;xE=EX});var CX,Ev,HO=R(()=>{bE();CX=function(){return Sv.Date.now()},Ev=CX});function AX(e,t,r){var n,i,o,s,c,a,d=0,h=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(TX);t=xE(t)||0,S1(r)&&(h=!!r.leading,g="maxWait"in r,o=g?PX(xE(r.maxWait)||0,t):o,v="trailing"in r?!!r.trailing:v);function E(ie){var U=n,fe=i;return n=i=void 0,d=ie,s=e.apply(fe,U),s}function P(ie){return d=ie,c=setTimeout(W,t),h?E(ie):s}function A(ie){var U=ie-a,fe=ie-d,Ae=t-U;return g?MX(Ae,o-fe):Ae}function F(ie){var U=ie-a,fe=ie-d;return a===void 0||U>=t||U<0||g&&fe>=o}function W(){var ie=Ev();if(F(ie))return z(ie);c=setTimeout(W,A(ie))}function z(ie){return c=void 0,v&&n?E(ie):(n=i=void 0,s)}function j(){c!==void 0&&clearTimeout(c),d=0,n=a=i=c=void 0}function G(){return c===void 0?s:z(Ev())}function Y(){var ie=Ev(),U=F(ie);if(n=arguments,i=this,a=ie,U){if(c===void 0)return P(a);if(g)return clearTimeout(c),c=setTimeout(W,t),E(a)}return c===void 0&&(c=setTimeout(W,t)),s}return Y.cancel=j,Y.flush=G,Y}var TX,PX,MX,SE,ZO=R(()=>{_E();HO();qO();TX="Expected a function",PX=Math.max,MX=Math.min;SE=AX});var YO=R(()=>{ZO();});function JO(e){return IX(e)}function EE(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function IX(e){for(let t=e;t;t=EE(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=EE(e);t;t=EE(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||ym(r)||t.tagName==="BODY"))return t}return null}var XO=R(()=>{mE()});function QO(e){let t=window.devicePixelRatio||1;return Math.round(e*t)/t}function kX({placement:e,flipDisabled:t,flipPlacements:r,offsetDistance:n,offsetSkidding:i,arrowEl:o,type:s}){let c=[xO(),SO()];if(s==="menu")return[...c,yE({fallbackPlacements:r||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let a=[...c,vO({mainAxis:typeof n=="number"?n:0,crossAxis:typeof i=="number"?i:0})];return e==="auto"||e==="auto-start"||e==="auto-end"?a.push(_O({alignment:e==="auto-start"?"start":e==="auto-end"?"end":null})):t||a.push(yE(r?{fallbackPlacements:r}:{})),o&&a.push(EO({element:o})),a}return[]}function iR(e,t){let r=e.filter(n=>KO.includes(n));return r.length!==e.length&&console.warn(`${t.tagName}: Invalid value found in: flipPlacements. Try any of these: ${KO.map(n=>`"${n}"`).join(", ").trim()}`,{el:t}),r}function eR(e,t=!1){let r=["left","right"];return t&&r.reverse(),e.replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}async function oR(e,t,r=!1){if(!(!e.open||!t.floatingEl||!t.referenceEl)){if(Object.assign(t.floatingEl.style,{display:"block",position:t.overlayPositioning??"absolute"}),!E1.get(e))return sR(e);await(r?NX(e):rR)(e,t)}}function NX(e){let t=Cv.get(e);return t||(t=SE(rR,F5.reposition,{leading:!0,maxWait:F5.reposition}),Cv.set(e,t),t)}async function sR(e){let{referenceEl:t,floatingEl:r}=e;if(!r.isConnected)return;let n=ro()?bO:(s,c,a)=>(a(),()=>{});E1.set(e,{state:"pending"});let i,o=n(t,r,()=>{let s=e.reposition();i||(i=s)});return E1.set(e,{state:"active",cleanUp:o}),i}function TE(e){let{floatingEl:t}=e;t&&Object.assign(t.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function aR(e){let{floatingEl:t,referenceEl:r}=e;if(TE(e),!(!t||!r)&&(PE(e),!!e.open))return sR(e)}function PE(e){let{floatingEl:t,referenceEl:r}=e;if(!t||!r)return;let n=E1.get(e);n?.state==="active"&&n.cleanUp(),E1.delete(e),Cv.get(e)?.cancel(),Cv.delete(e)}var rR,LX,KO,nR,CE,OX,E1,Cv,tR,ME,AE=R(()=>{TO();YO();XO();ar();Sn();(function(){if(ro()){let e=xv.getOffsetParent;xv.getOffsetParent=t=>e(t,JO)}})();rR=async(e,{referenceEl:t,floatingEl:r,overlayPositioning:n="absolute",placement:i,flipDisabled:o,flipPlacements:s,offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})=>{if(!t||!r)return;let g=Wc(r)==="rtl",{x:v,y:E,placement:P,strategy:A,middlewareData:F}=await CO(t,r,{strategy:n,placement:i==="auto"||i==="auto-start"||i==="auto-end"?void 0:eR(i,g),middleware:kX({placement:i,flipDisabled:o,flipPlacements:s?.map(j=>eR(j,g)),offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})});if(d&&F.arrow){let{x:j,y:G}=F.arrow,Y=P.split("-")[0],ie=j!=null?"left":"top",U=OX[Y],fe={left:"",top:"",bottom:"",right:""};"floatingLayout"in e&&(e.floatingLayout=Y==="left"||Y==="right"?"horizontal":"vertical"),Object.assign(d.style,{...fe,[ie]:`${ie=="left"?j:G}px`,[Y]:"100%",transform:U})}let W=F.hide?.referenceHidden?"hidden":null,z=W?"none":null;r.setAttribute(LX,P),Object.assign(r.style,{pointerEvents:z,position:A,transform:`translate(${QO(v)}px,${QO(E)}px)`,visibility:W})},LX="data-placement",KO=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],nR="bottom-end",CE={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active",arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"};OX={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},E1=new WeakMap,Cv=new WeakMap;tR=4,ME=Math.ceil(Math.hypot(tR,tR))});var lR,Tv,uR,od,Pv,Mv,RX,dR,pR,fR,Qc,DX,FX,mR,$X,VX,UX,zX,WX,BX,GX,cR,jX,qX,Av,IE,HX,ZX,hR,gR,sd,YX,Iv,wR=R(()=>{lR=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Tv=lR.join(","),uR=typeof Element>"u",od=uR?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Pv=!uR&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Mv=function e(t,r){var n;r===void 0&&(r=!0);var i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=i===""||i==="true",s=o||r&&t&&e(t.parentNode);return s},RX=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},dR=function(t,r,n){if(Mv(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Tv));return r&&od.call(t,Tv)&&i.unshift(t),i=i.filter(n),i},pR=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!Mv(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),a=c.length?c:s.children,d=e(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=od.call(s,Tv);h&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!Mv(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&v){var E=e(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,E):i.push({scopeParent:s,candidates:E})}else o.unshift.apply(o,s.children)}}return i},fR=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Qc=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||RX(t))&&!fR(t)?0:t.tabIndex},DX=function(t,r){var n=Qc(t);return n<0&&r&&!fR(t)?0:n},FX=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},mR=function(t){return t.tagName==="INPUT"},$X=function(t){return mR(t)&&t.type==="hidden"},VX=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},UX=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},zX=function(t){if(!t.name)return!0;var r=t.form||Pv(t),n=function(c){return r.querySelectorAll('input[type="radio"][name="'+c+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(t.name));else try{i=n(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=UX(i,t.form);return!o||o===t},WX=function(t){return mR(t)&&t.type==="radio"},BX=function(t){return WX(t)&&!zX(t)},GX=function(t){var r,n=t&&Pv(t),i=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==t){var s,c,a;for(o=!!((s=i)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(i)||t!=null&&(a=t.ownerDocument)!==null&&a!==void 0&&a.contains(t));!o&&i;){var d,h,g;n=Pv(i),i=(d=n)===null||d===void 0?void 0:d.host,o=!!((h=i)!==null&&h!==void 0&&(g=h.ownerDocument)!==null&&g!==void 0&&g.contains(i))}}return o},cR=function(t){var r=t.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},jX=function(t,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=od.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(od.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var c=t;t;){var a=t.parentElement,d=Pv(t);if(a&&!a.shadowRoot&&i(a)===!0)return cR(t);t.assignedSlot?t=t.assignedSlot:!a&&d!==t.ownerDocument?t=d.host:t=a}t=c}if(GX(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return cR(t);return!1},qX=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return od.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},Av=function(t,r){return!(r.disabled||Mv(r)||$X(r)||jX(r,t)||VX(r)||qX(r))},IE=function(t,r){return!(BX(r)||Qc(r)<0||!Av(t,r))},HX=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},ZX=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scopeParent,c=s?i.scopeParent:i,a=DX(c,s),d=s?e(i.candidates):c;a===0?s?r.push.apply(r,d):r.push(c):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(FX).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},hR=function(t,r){r=r||{};var n;return r.getShadowRoot?n=pR([t],r.includeContainer,{filter:IE.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:HX}):n=dR(t,r.includeContainer,IE.bind(null,r)),ZX(n)},gR=function(t,r){r=r||{};var n;return r.getShadowRoot?n=pR([t],r.includeContainer,{filter:Av.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=dR(t,r.includeContainer,Av.bind(null,r)),n},sd=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return od.call(t,Tv)===!1?!1:IE(r,t)},YX=lR.concat("iframe").join(","),Iv=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return od.call(t,YX)===!1?!1:Av(r,t)}});function LE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function JX(e){if(Array.isArray(e))return LE(e)}function XX(e,t,r){return(t=rQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
9
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),sk=/'/g,ak=/"/g,uk=/^(?:script|style|textarea|title)$/i,N5=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),xe=N5(1),_s=N5(2),dk=N5(3),xn=Symbol.for("lit-noChange"),Re=Symbol.for("lit-nothing"),ck=new WeakMap,ju=qu.createTreeWalker(qu,129);fk=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=Kg;for(let c=0;c<r;c++){let a=e[c],d,h,g=-1,v=0;for(;v<a.length&&(s.lastIndex=v,h=s.exec(a),h!==null);)v=s.lastIndex,s===Kg?h[1]==="!--"?s=ik:h[1]!==void 0?s=ok:h[2]!==void 0?(uk.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Gu):h[3]!==void 0&&(s=Gu):s===Gu?h[0]===">"?(s=i??Kg,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?Gu:h[3]==='"'?ak:sk):s===ak||s===sk?s=Gu:s===ik||s===ok?s=Kg:(s=Gu,i=void 0);let E=s===Gu&&e[c+1].startsWith("/>")?" ":"";o+=s===Kg?a+eY:g>=0?(n.push(d),a.slice(0,g)+I5+a.slice(g)+la+E):a+la+(g===-2?c:E)}return[pk(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},n1=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,c=t.length-1,a=this.parts,[d,h]=fk(t,r);if(this.el=e.createElement(d,n),ju.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(i=ju.nextNode())!==null&&a.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let g of i.getAttributeNames())if(g.endsWith(I5)){let v=h[s++],E=i.getAttribute(g).split(la),P=/([.?@])?(.*)/.exec(v);a.push({type:1,index:o,name:P[2],strings:E,ctor:P[1]==="."?Db:P[1]==="?"?Fb:P[1]==="@"?$b:Zu}),i.removeAttribute(g)}else g.startsWith(la)&&(a.push({type:6,index:o}),i.removeAttribute(g));if(uk.test(i.tagName)){let g=i.textContent.split(la),v=g.length-1;if(v>0){i.textContent=Ob?Ob.emptyScript:"";for(let E=0;E<v;E++)i.append(g[E],t1()),ju.nextNode(),a.push({type:2,index:++o});i.append(g[v],t1())}}}else if(i.nodeType===8)if(i.data===L5)a.push({type:2,index:o});else{let g=-1;for(;(g=i.data.indexOf(la,g+1))!==-1;)a.push({type:7,index:o}),g+=la.length-1}o++}}static createElement(t,r){let n=qu.createElement("template");return n.innerHTML=t,n}};Rb=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??qu).importNode(r,!0);ju.currentNode=i;let o=ju.nextNode(),s=0,c=0,a=n[0];for(;a!==void 0;){if(s===a.index){let d;a.type===2?d=new sm(o,o.nextSibling,this,t):a.type===1?d=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(d=new Vb(o,this,t)),this._$AV.push(d),a=n[++c]}s!==a?.index&&(o=ju.nextNode(),s++)}return ju.currentNode=qu,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},sm=class e{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,r,n,i){this.type=2,this._$AH=Re,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this.v=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Hu(this,t,r),r1(t)?t===Re||t==null||t===""?(this._$AH!==Re&&this._$AR(),this._$AH=Re):t!==this._$AH&&t!==xn&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):lk(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!==Re&&r1(this._$AH)?this._$AA.nextSibling.data=t:this.T(qu.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=n1.createElement(pk(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new Rb(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=ck.get(t.strings);return r===void 0&&ck.set(t.strings,r=new n1(t)),r}k(t){k5(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of t)i===r.length?r.push(n=new e(this.O(t1()),this.O(t1()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this.v=t,this._$AP?.(t))}},Zu=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=Re,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Re}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=Hu(this,t,r,0),s=!r1(t)||t!==this._$AH&&t!==xn,s&&(this._$AH=t);else{let c=t,a,d;for(t=o[0],a=0;a<o.length-1;a++)d=Hu(this,c[n+a],r,a),d===xn&&(d=this._$AH[a]),s||(s=!r1(d)||d!==this._$AH[a]),d===Re?t=Re:t!==Re&&(t+=(d??"")+o[a+1]),this._$AH[a]=d}s&&!i&&this.j(t)}j(t){t===Re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Db=class extends Zu{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Re?void 0:t}},Fb=class extends Zu{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Re)}},$b=class extends Zu{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=Hu(this,t,r,0)??Re)===xn)return;let n=this._$AH,i=t===Re&&n!==Re||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==Re&&(n===Re||i);i&&this.element.removeEventListener(this.name,this,n),o&&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)}},Vb=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Hu(this,t)}},mk={M:I5,P:la,A:L5,C:1,L:fk,R:Rb,D:lk,V:Hu,I:sm,H:Zu,N:Fb,U:$b,B:Db,F:Vb},tY=e1.litHtmlPolyfillSupport;tY?.(n1,sm),(e1.litHtmlVersions??(e1.litHtmlVersions=[])).push("3.2.0");hk=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new sm(t.insertBefore(t1(),o),o,void 0,r??{})}return i._$AI(e),i}});var ua,rY,gk=R(()=>{Qg();Qg();Rr();Rr();ua=class extends ca{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var r;let t=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=t.firstChild),t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=hk(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return xn}};ua._$litElement$=!0,ua.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ua});rY=globalThis.litElementPolyfillSupport;rY?.({LitElement:ua});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0")});var O5=R(()=>{});var Ki=R(()=>{Qg();Rr();gk();O5()});var Ai,to,eo,da=R(()=>{Ai={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},to=e=>(...t)=>({_$litDirective$:e,values:t}),eo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this.t=t,this._$AM=r,this.i=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}}});var wk,yk=R(()=>{Rr();da();wk=to(class extends eo{constructor(e){if(super(e),e.type!==Ai.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in t)t[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(t)}let r=e.element.classList;for(let n of this.st)n in t||(r.remove(n),this.st.delete(n));for(let n in t){let i=!!t[n];i===this.st.has(n)||this.nt?.has(n)||(i?(r.add(n),this.st.add(n)):(r.remove(n),this.st.delete(n)))}return xn}})});var bk,nY,vk,_k=R(()=>{Rr();da();bk="important",nY=" !"+bk,vk=to(class extends eo{constructor(e){if(super(e),e.type!==Ai.ATTRIBUTE||e.name!=="style"||e.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(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return n==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(let n in t){let i=t[n];if(i!=null){this.ft.add(n);let o=typeof i=="string"&&i.endsWith(nY);n.includes("-")||o?r.setProperty(n,o?i.slice(0,-11):i,o?bk:""):r[n]=i}}return xn}})});var xk=R(()=>{_k()});var bwe,Ub,iY,zb,Wb=R(()=>{Rr();({I:bwe}=mk),Ub=e=>e.strings===void 0,iY={},zb=(e,t=iY)=>e._$AH=t});var Bb,R5=R(()=>{Rr();da();Wb();Bb=to(class extends eo{constructor(e){if(super(e),e.type!==Ai.PROPERTY&&e.type!==Ai.ATTRIBUTE&&e.type!==Ai.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ub(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===xn||t===Re)return t;let r=e.element,n=e.name;if(e.type===Ai.PROPERTY){if(t===r[n])return xn}else if(e.type===Ai.BOOLEAN_ATTRIBUTE){if(!!t===r.hasAttribute(n))return xn}else if(e.type===Ai.ATTRIBUTE&&r.getAttribute(n)===t+"")return xn;return zb(e),t}})});function Ek(e){let t,r=i=>{t=new URL(i,globalThis.location?.href).href},n={...e,getAssetPath(i){let o=new URL(i,t);return o.origin!==globalThis.location?.origin?o.href:o.pathname},setAssetPath:r,customElement(i,o){o.runtime=n,o.tagName=i,customElements.get(i)||customElements.define(i,o)}};return r(e.defaultAssetPath),n}function am(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)}var Sk,Ft,oY,Yu,$t,_e,Gb,ui,pa,Dr=R(()=>{"use strict";CL();f5();Bu();XL();Bu();rk();M5();So();Ki();Bu();yk();xk();da();R5();Rr();Sk=(e="",t={},r=Wu())=>{let n={emit:i=>{e===""&&Zg();let o=new CustomEvent(e,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...t});return r.el.dispatchEvent(o),o}};return e===""&&Mb(void 0,i=>{e=i.key},n),n},Ft=Sk.bind(null,""),oY=()=>{},$t=(Yu=class extends ua{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=zL(this),this._postLoad=this.constructor.lazy?._postLoad??new xo,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new xo,this._enableUpdating=this.enableUpdating,this.enableUpdating=oY;let t=Yu.prototype.shouldUpdate;this.shouldUpdate!==t&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=t),!1}static finalizeStyles(t){let r=super.finalizeStyles(t),n=this.shadowRootOptions===h5;return this.runtime?.commonStyles===void 0||n?r:[this.runtime.commonStyles,...r]}static createProperty(t,r){let n=typeof r=="number"?r:Array.isArray(r)?r[0]:0,i=Array.isArray(r)?r[1]:void 0;super.createProperty(t,{attribute:n&1&&typeof t=="string"?Ew(t):!1,reflect:!!(n&2),type:n&4?Boolean:n&8?Number:void 0,state:!!(n&16),readOnly:!!(n&32),noAccessor:!!(n&64),...i})}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=!this.manager.connectedCalled;super.connectedCallback(),t&&queueMicrotask(()=>this._load().catch(r=>{this._postLoaded.reject(r),setTimeout(()=>{throw r})}))}createRenderRoot(){let t=this.el.shadowRoot,r=this.constructor,n=r.shadowRootOptions,o=t??(n===h5?this.el:this.el.attachShadow(n));if(Object.defineProperty(this,"shadowRoot",{value:o}),t)return ua.prototype.createRenderRoot.call(this),t;if(this.isConnected){let s=o.getRootNode();s.adoptedStyleSheets=[...s.adoptedStyleSheets,...r.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return o}async _load(){let t=this.el._ancestorLoad??m5(this.el);t&&await t,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let r=this._offspring.filter(n=>!n.manager?.loadedCalled);r.length&&await Promise.allSettled(r.map(async n=>await n.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(t){return this.$changes=t,this._originalShouldUpdate?.(t)??!0}listen(t,r,n){let i=r?.bind(this)??r;this.manager.onLifecycle(()=>(this.el.addEventListener(t,i,n),()=>this.el.removeEventListener(t,i,n)))}listenOn(t,r,n,i){let o=n?.bind(this)??n;this.manager.onLifecycle(()=>(t.addEventListener(r,o,i),()=>t.removeEventListener(r,o,i)))}async componentOnReady(){return await this._postLoaded.promise,this}},Yu.lumina=!0,Yu);$t.$createEvent=Sk;_e=e=>typeof e=="object"&&e!=null?wk(e):e,Gb=e=>typeof e=="object"&&e!=null?vk(e):e,ui=Re;pa={toAttribute:e=>e===!0?"":e===!1?null:e}});function Ck(){let{classList:e}=document.body,t=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>e.contains(Mk)||e.contains(Pk)&&t?"dark":"light",n=s=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:s}})),i=s=>{o!==s&&n(s),o=s},o=r();n(o),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s=>i(s.matches?"dark":"light")),new MutationObserver(()=>i(r())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}function uY(){if(i1&&i1.version)return;console.info(`Using Calcite Components ${Tk} [Date: ${cY}, Revision: ${lY}]`);let e=i1||globalThis.calciteConfig||{};Object.defineProperty(e,"version",{value:Tk,writable:!1}),globalThis.calciteConfig=e}function dY(){ro()&&(document.readyState==="interactive"?Ck():document.addEventListener("DOMContentLoaded",()=>Ck(),{once:!0})),uY()}var Pk,Mk,sY,o1,F5,i1,Ak,aY,Tk,cY,lY,ro,pY,Gt,s1,Ik,ar=R(()=>{Dr();O5();Pk="calcite-mode-auto",Mk="calcite-mode-dark",sY="calcite-mode-light",o1={autoMode:Pk,darkMode:Mk,lightMode:sY,rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateIn:"calcite-animate__in",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left",calciteAnimateInScale:"calcite-animate__in-scale"},F5={filter:250,nextTick:0,resize:150,reposition:100};i1=globalThis.calciteConfig,Ak=i1?.focusTrapStack||[],aY=i1?.logLevel||"info",Tk="3.0.0-next.63",cY="2024-12-13",lY="787f3a74c";ro=()=>!!1&&typeof navigator<"u"&&typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;dY();pY=Ek({defaultAssetPath:"https://jsdev.arcgis.com/calcite-components/next/",hydratedAttribute:"calcite-hydrated"}),{customElement:Gt,getAssetPath:s1,setAssetPath:Ik}=pY});var $5,Lk,kk=R(()=>{ar();ar();$5=!1,Lk=e=>{$5=!0,Ik(e)}});function Ok(){$5||Lk(Lc(Kf(Nk)))}function Rk(e){let t=[];for(let r of Object.keys(e))customElements.get(`calcite-${r}`)||t.push(e[r]?.());return t.length>0?Promise.all(t):null}var Nk,V5=R(()=>{kk();ob();rt();Nc();Nk="components/assets"});var jb,qb,U5=R(()=>{jb=Symbol("widget"),qb=Symbol("widget-test-data")});function z5(e,t){let r=t.children;if(r?.length)for(let i=0;i<r.length;++i)r[i]=z5(e,r[i]);else r=fY;let n=t.vnodeSelector;if(cm(n)){let i=t.properties||mY,o=i.key||n,s={key:o,afterCreate:hY,afterUpdate:gY,afterRemoved:Dk,parentWidget:e,widgetConstructor:n,widgetProperties:{...i,key:o,children:r}};return{vnodeSelector:n.vnodeSelector,properties:s,children:void 0,text:void 0,domNode:null}}return t}function hY(e,t,r,{parentWidget:n,widgetConstructor:i,widgetProperties:o}){let s=new i(o);s.container=e,Hb.set(e,s),s.afterCreate?.(s,e),n.addHandles(Pt(()=>Dk(e))),queueMicrotask(()=>{s[qb].projector.renderNow()})}function gY(e,t,r,{widgetProperties:n}){let i=Hb.get(e);i&&(i.set(n),i.afterUpdate?.(i,e))}function Dk(e){let t=Hb.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),Hb.delete(e))}function cm(e){return typeof e=="function"&&e[jb]}var fY,mY,Hb,W5=R(()=>{oi();U5();fY=[],mY={},Hb=new WeakMap});function $k(e){Fk.add(e),e.finally(()=>Fk.delete(e))}var Fk,Vk=R(()=>{Fk=new Set});function zk(e,t){let r=Object.prototype.hasOwnProperty;for(let n in t)r.call(t,n)&&r.call(e,n)&&(e[n]!=null&&t[n]!=null&&typeof e[n]=="object"&&typeof t[n]=="object"?zk(e[n],t[n]):e[n]=t[n]);return e}var Uk,wY,yY,bY,B5,Fr,Wk,Bk=R(()=>{gt();j4();_I();Ky();Cg();rt();mr();it();Ec();EI();Ro();Q4();DI();yt();Bg();ft();Au();x4();SL();V5();W5();U5();Vk();n5();yb();vc();Ug();wY="esri.widgets.Widget",yY=0;bY=xL({postProcessProjectionOptions(e){let t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(n,i,o,s)=>{let c=t?.(n,i,o,s),a=r.test(n);if(!((n=n.replace(r,"")).toLowerCase()in o)||a){let d=n[2].toLowerCase()+n.slice(3),h=E=>c?.call(o,E);o.addEventListener(d,h,a);let g=()=>o.removeEventListener(d,h,a),v=s.afterRemoved;s.afterRemoved=E=>{v?.(E),g()}}return c}},handleInterceptedEvent(e,t,r,n){let{eventPhase:i,type:o}=n,s=i===Event.CAPTURING_PHASE,c=`on${o}${s?"capture":""}`,a=t.properties;(a&&c in a||(c=`on${o[0].toUpperCase()}${o.slice(1)}${s?"Capture":""}`,a&&c in a))&&(gb(),e.scheduleRender(),a[c].call(a.bind||r,n))}}),B5=!1,Fr=class extends SI.EsriPromiseMixin(Nu.EventedAccessor){constructor(e,t){super(e,t),this._attached=!1,this._projector=bY,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=dA(async()=>{if(this._messageBundleProps?.length){let c=await Promise.allSettled(this._messageBundleProps.map(async({bundlePath:a,propertyName:d})=>{if(this.destroyed)return;let h=await W4(a);this.uiStrings&&Object.keys(this.uiStrings)&&(h=zk(Ye(h),this.uiStrings)),this[d]=h}));if(this.destroyed)return;for(let a of c)a.status==="rejected"&&ot.getLogger(this).error("widget-intl:locale-error",this.declaredClass,a.reason)}await this.loadLocale()}),Ok();let r="esri-widget-uid-"+RI(),n=this.render.bind(this);this._trackingTarget=new Iu(()=>{this.autoRenderingEnabled&&this.scheduleRender()});let i=()=>({vnodeSelector:"div",properties:{key:`${r}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0}),o=()=>{var h;if(!this._readyForTrueRender||this.destroyed)return null;let c=n()??i(),a=c.properties??(c.properties={});if(a.key??(a.key=r),cm(c.vnodeSelector)){if(!this.visible)return i()}else this.visible?a.styles||(a.styles={}):(a.class="",a.styles={display:"none"}),(h=a.styles).display??(h.display="");let d=0;return c.children?.forEach(g=>{var v;cm(g.vnodeSelector)||(g.properties??(g.properties={}),(v=g.properties).key??(v.key=`${this.id}--${d++}`))}),z5(this,c)};this.render=()=>{if(B5)return o();let c=nL(this)??null;if(c)return c;this._trackingTarget.clear(),B5=!0;try{c=No(this._trackingTarget,o)}catch(a){throw ot.getLogger(this).error(a),a}finally{B5=!1}return c&&iL(this,c),c};let s=this.beforeFirstRender();s?this._resourcesFetch=s.then(()=>{this._readyForTrueRender=!0,this._postInitialize()}):(this._resourcesFetch=Promise.resolve().then(()=>{this._postInitialize()}),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),$k(this._resourcesFetch)}normalizeCtorArgs(e,t){let r={...e};return t&&(r.container=t),r}postInitialize(){}beforeFirstRender(){let e=this.loadDependencies();return this._messageBundleProps?.length||e?Promise.all([e,this._loadLocale()]).then(()=>{}).catch(g4):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||(yg(this._trackingTarget),yg(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,wb(this))}set container(e){this._get("container")||this._set("container",e)}castContainer(e){return vI(e)}get domNode(){return this.container}set domNode(e){this.container=e}get icon(){return null}set icon(e){this._overrideIfSome("icon",e)}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+yY++}set id(e){e&&this._set("id",e)}get label(){return this.declaredClass.split(".").pop()}set label(e){this._overrideIfSome("label",e)}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(e){this._set("visible",e)}get[(Uk=jb,qb)](){return{projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(wb(this),this._projector.scheduleRender())}classes(...e){return oL.apply(this,e)}renderNow(){wb(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(Wg(()=>this.viewModel,(t,r)=>{r&&this.removeHandles("delegated-events"),t&&Eg(t)&&this.addHandles(this._delegatedEventNames.map(n=>Tc(t,n,i=>{this.emit(n,i)})),"delegated-events")},ab)),this.postInitialize();let e=async()=>{await this._loadLocale().catch(g4),this.scheduleRender()};this.addHandles([kS(e),Wg(()=>this.uiStrings,e),NI(()=>this.container,t=>{this.destroyed||this._attach(t)},{initial:!0,once:!0})])}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0)}_detach(e){this._attached&&(this._projector.detach(this.render),this._attached=!1),e?.parentNode?.removeChild(e)}};Fr[Uk]=!0,Fr.vnodeSelector="div",O([V()],Fr.prototype,"_readyForTrueRender",void 0),O([V({value:null})],Fr.prototype,"container",null),O([aa("container")],Fr.prototype,"castContainer",null),O([V()],Fr.prototype,"icon",null),O([V()],Fr.prototype,"id",null),O([V()],Fr.prototype,"label",null),O([V()],Fr.prototype,"renderable",null),O([V()],Fr.prototype,"uiStrings",void 0),O([V()],Fr.prototype,"viewModel",void 0),O([V({value:!0})],Fr.prototype,"visible",null),O([V()],Fr.prototype,"key",void 0),O([V()],Fr.prototype,"children",void 0),O([V()],Fr.prototype,"afterCreate",void 0),O([V()],Fr.prototype,"afterUpdate",void 0),O([V()],Fr.prototype,"afterRemoved",void 0),Fr=O([Le(wY)],Fr);Wk=Fr});function G5(e){return(t,r)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}}var Gk=R(()=>{});function Ii(e,t,...r){return typeof e!="function"||cm(e)?_Y(e,t,...r):e(t,...r)}var vY,jk,_Y,qk=R(()=>{W5();vY=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},jk=function(e,t){for(var r=0,n=e.length;r<n;r++){var i=e[r];Array.isArray(i)?jk(i,t):i!=null&&i!==!1&&(i.hasOwnProperty("vnodeSelector")||(i=vY(i)),t.push(i))}},_Y=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(r.length===1&&typeof r[0]=="string")return{vnodeSelector:e,properties:t||void 0,children:void 0,text:r[0],domNode:null};var i=[];return jk(r,i),{vnodeSelector:e,properties:t||void 0,children:i,text:void 0,domNode:null}}});function SY(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-mode-name").replaceAll(/\s|'|"/g,"")}function EY(){return SY().startsWith("dark")}function Hk(){return`${xY}${EY()?"dark":"light"}`}var xY,Zk=R(()=>{xY="calcite-mode-"});function CY(e){return e.map(t=>{let r="";for(let n=0;n<t;n++)r+=((1+Math.random())*65536|0).toString(16).substring(1);return r}).join("-")}var fa,lm=R(()=>{fa=()=>CY([2,1,1,1,3])});var pn,xs=R(()=>{Bu();ar();pn=WL(s1,!0)});var um,TY,Zb,j5,Yk=R(()=>{ar();Ki();Dr();lm();xs();_n();um={container:"container",loader:"loader",percentage:"percentage",progressRing:"ring--progress",ring:"ring",rings:"rings",text:"text",trackRing:"ring--track"},TY=Dt`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-0);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-2);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`,Zb=class Zb extends $t{constructor(){super(...arguments),this.messages=pn({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(t){t.has("value")&&(this.hasUpdated||this.value!==0)&&this.valueChangeHandler(),(t.has("type")&&(this.hasUpdated||this.type!=="indeterminate")||t.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&this.value===100}formatValue(){return this.type!=="determinate-value"?`${this.value}`:this.formatter.format(this.value/100)}getSize(t){return{s:32,m:64,l:96}[t]}getInlineSize(t){return{s:12,m:16,l:24}[t]}updateFormatter(){this.type!=="determinate-value"||this.formatter?.resolvedOptions().locale===this.messages._lang||(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){let{el:t,inline:r,label:n,text:i,type:o,value:s}=this,c=t.id||fa(),a=o!=="indeterminate",d=Math.floor(s);return this.el.ariaLabel=n,this.el.ariaValueMax=a?"100":void 0,this.el.ariaValueMin=a?"0":void 0,this.el.ariaValueNow=a?d.toString():void 0,am(this.el,"id",c),this.el.role="progressbar",xe`<div class=${_e(um.rings)}>${this.renderRing("track")}${this.renderRing("progress")}${!r&&a&&xe`<div class=${_e(um.percentage)}>${this.formatValue()}</div>`||""}</div>${!r&&i&&xe`<div class=${_e(um.text)}>${i}</div>`||""}`}renderRing(t){let{inline:r,scale:n,value:i}=this,o=r?this.getInlineSize(n):this.getSize(n),s=o*.45,c;if(t==="progress"){let a=2*s*Math.PI,d=(this.type.startsWith("determinate")?i:24)/100*a,h=a-d;c={"stroke-dasharray":`${d} ${h}`}}return xe`<svg aria-hidden=true class=${_e({[um.ring]:!0,[um.trackRing]:t==="track",[um.progressRing]:t==="progress"})} style=${Gb(c)} viewBox=${`0 0 ${o} ${o}`}>${_s`<circle cx=${o/2} cy=${o/2} r=${s??Re} />`}</svg>`}};Zb.properties={complete:7,inline:7,label:1,scale:3,text:1,type:3,value:9},Zb.styles=TY;j5=Zb;Gt("calcite-loader",j5)});var Yb=R(()=>{Yk()});function Wc(e){let t="dir",r=`[${t}]`,n=Bc(e,r);return n?n.getAttribute(t):"ltr"}function nN(e){return e.getRootNode()}function iN(e){return e.host||null}function Ju(e,{selector:t,id:r}){if(!e)return null;e.assignedSlot&&(e=e.assignedSlot);let n=nN(e);return(r?"getElementById"in n?n.getElementById(r):null:t?n.querySelector(t):null)||Ju(iN(n),{selector:t,id:r})}function Bc(e,t){return e?e.closest(t)||Bc(iN(nN(e)),t):null}function qY(e){return typeof e?.setFocus=="function"}async function Qb(e){if(e)return qY(e)?e.setFocus():e.focus()}function HY(e){if(e)return jY(e,H5)[0]??e}function Gc(e){HY(e)?.focus()}function ZY(e,t){return e.filter(r=>r.matches(t))}function ma(e,t,r){if(typeof t=="string"&&t!=="")return t;if(t===""||t===!0)return e[r]}function Xu(e){return(!!e).toString()}function oN(e){return Hn(e)||JY(e)}function YY(e){return XY(e).filter(t=>t.nodeType===Node.TEXT_NODE).map(t=>t.textContent).join("").trim()}function sN(e){for(let t of e.childNodes)if(t.nodeType===Node.TEXT_NODE&&t.textContent?.trim()!==""||t.nodeType===Node.ELEMENT_NODE)return!0;return!1}function JY(e){return!!YY(e)}function XY(e){return e.currentTarget.assignedNodes({flatten:!0})}function Hn(e){return!!Kb(e).length}function Kb(e,t){return QY(e.target,t)}function QY(e,t){let r=e.assignedElements({flatten:!0});return t?ZY(r,t):r}function aN(e){return!!(e.isPrimary&&e.button===0)}function cN(e){return e.detail===0}function lN(e,t){if(e.parentNode!==t.parentNode)return!1;let r=Array.from(e.parentNode.children);return r.indexOf(e)<r.indexOf(t)}async function uN(e,t,r,n){return KY(e,t,"transition",r,n)}async function KY(e,t,r,n,i){let o=window.getComputedStyle(e),s=r==="transition"?o.transitionDuration:o.animationDuration,c=r==="transition"?o.transitionProperty:o.animationName,a=s.split(","),d=c.split(",").map(A=>A.trim()).indexOf(t),h=a[d]??a[0];function g(){requestAnimationFrame(()=>{n?.(),requestAnimationFrame(()=>i?.())})}if(h==="0s"){g();return}let v=r==="transition"?"transitionstart":"animationstart",E=r==="transition"?"transitionend":"animationend",P=r==="transition"?"transitioncancel":"animationcancel";return new Promise(A=>{let F=window.setTimeout(()=>{e.removeEventListener(v,W),e.removeEventListener(E,z),e.removeEventListener(P,z),g(),A()},parseFloat(h)*1e3);e.addEventListener(v,W),e.addEventListener(E,z),e.addEventListener(P,z);function W(j){j.target===e&&Qk(j)===t&&(window.clearTimeout(F),e.removeEventListener(v,W),n?.())}function z(j){j.target===e&&Qk(j)===t&&(e.removeEventListener(E,z),e.removeEventListener(P,z),i?.(),A())}})}function eJ(e){return"propertyName"in e}function Qk(e){return eJ(e)?e.propertyName:e.animationName}function c1(e){return e.endsWith("px")}var PY,q5,Kk,a1,Jb,Xb,MY,AY,IY,eN,tN,LY,kY,rN,NY,OY,RY,DY,FY,$Y,VY,Jk,UY,zY,WY,Xk,BY,GY,jY,H5,Sn=R(()=>{lm();ar();PY=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],q5=PY.join(","),Kk=typeof Element>"u",a1=Kk?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Jb=!Kk&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Xb=function e(t,r){var n;r===void 0&&(r=!0);var i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=i===""||i==="true",s=o||r&&t&&e(t.parentNode);return s},MY=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},AY=function(e,t,r){if(Xb(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(q5));return t&&a1.call(e,q5)&&n.unshift(e),n=n.filter(r),n},IY=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!Xb(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),a=c.length?c:s.children,d=e(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=a1.call(s,q5);h&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!Xb(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&v){var E=e(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,E):i.push({scopeParent:s,candidates:E})}else o.unshift.apply(o,s.children)}}return i},eN=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},tN=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||MY(e))&&!eN(e)?0:e.tabIndex},LY=function(e,t){var r=tN(e);return r<0&&t&&!eN(e)?0:r},kY=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},rN=function(e){return e.tagName==="INPUT"},NY=function(e){return rN(e)&&e.type==="hidden"},OY=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},RY=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},DY=function(e){if(!e.name)return!0;var t=e.form||Jb(e),r=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},n;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")n=r(window.CSS.escape(e.name));else try{n=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var i=RY(n,e.form);return!i||i===e},FY=function(e){return rN(e)&&e.type==="radio"},$Y=function(e){return FY(e)&&!DY(e)},VY=function(e){var t,r=e&&Jb(e),n=(t=r)===null||t===void 0?void 0:t.host,i=!1;if(r&&r!==e){var o,s,c;for(i=!!((o=n)!==null&&o!==void 0&&(s=o.ownerDocument)!==null&&s!==void 0&&s.contains(n)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!i&&n;){var a,d,h;r=Jb(n),n=(a=r)===null||a===void 0?void 0:a.host,i=!!((d=n)!==null&&d!==void 0&&(h=d.ownerDocument)!==null&&h!==void 0&&h.contains(n))}}return i},Jk=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return r===0&&n===0},UY=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var i=a1.call(e,"details>summary:first-of-type"),o=i?e.parentElement:e;if(a1.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof n=="function"){for(var s=e;e;){var c=e.parentElement,a=Jb(e);if(c&&!c.shadowRoot&&n(c)===!0)return Jk(e);e.assignedSlot?e=e.assignedSlot:!c&&a!==e.ownerDocument?e=a.host:e=c}e=s}if(VY(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Jk(e);return!1},zY=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if(n.tagName==="LEGEND")return a1.call(t,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}t=t.parentElement}return!1},WY=function(e,t){return!(t.disabled||Xb(t)||NY(t)||UY(t,e)||OY(t)||zY(t))},Xk=function(e,t){return!($Y(t)||tN(t)<0||!WY(e,t))},BY=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},GY=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scopeParent,c=s?i.scopeParent:i,a=LY(c,s),d=s?e(i.candidates):c;a===0?s?r.push.apply(r,d):r.push(c):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(kY).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},jY=function(e,t){t=t||{};var r;return t.getShadowRoot?r=IY([e],t.includeContainer,{filter:Xk.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:BY}):r=AY(e,t.includeContainer,Xk.bind(null,t)),GY(r)},H5={getShadowRoot:!0}});function Zn(e,t,r){if(!ro())return;let n=tJ(e);return new n(t,r)}function tJ(e){class t extends window.MutationObserver{constructor(n){super(n),this.observedEntry=[],this.callback=n}observe(n,i){return this.observedEntry.push({target:n,options:i}),super.observe(n,i)}unobserve(n){let i=this.observedEntry.filter(o=>o.target!==n);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),i.forEach(o=>this.observe(o.target,o.options))}}return function(){return e==="intersection"?window.IntersectionObserver:e==="mutation"?t:window.ResizeObserver}()}var jc=R(()=>{ar();});function fN({icon:e,scale:t}){let r=pN[t],n=oJ(e),i=n.charAt(n.length-1)==="F";return`${i?n.substring(0,n.length-1):n}${r}${i?"F":""}`}async function nJ(e){let t=fN(e),r=mN(t);if(r)return r;Z5[t]||(Z5[t]=fetch(s1(`./assets/icon/${t}.json`)).then(i=>i.json()).catch(()=>(console.error(`"${t}" is not a valid calcite-ui-icon name`),"")));let n=await Z5[t];return dN[t]=n,n}function iJ(e){return mN(fN(e))}function mN(e){return dN[e]}function oJ(e){let t=!isNaN(Number(e.charAt(0))),r=e.split("-");if(r.length>0){let n=/[a-z]/i;e=r.map((i,o)=>i.replace(n,function(s,c){return o===0&&c===0?s:s.toUpperCase()})).join("")}return t?`i${e}`:e}var rJ,dN,Z5,pN,sJ,ev,Y5,hN=R(()=>{ar();Ki();Dr();Sn();jc();_n();rJ={icon:"icon",flipRtl:"flip-rtl"},dN={},Z5={},pN={s:16,m:24,l:32};sJ=Dt`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`,ev=class ev extends $t{constructor(){super(...arguments),this.visible=!1,this.flipRtl=!1,this.icon=null,this.preload=!1,this.scale="m"}connectedCallback(){if(super.connectedCallback(),this.preload){this.visible=!0,this.loadIconPathData();return}this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}willUpdate(t){(t.has("icon")&&(this.hasUpdated||this.icon!==null)||t.has("scale")&&(this.hasUpdated||this.scale!=="m"))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=null}async loadIconPathData(){let{icon:t,scale:r,visible:n}=this;if(!ro()||!t||!n)return;let i={icon:t,scale:r},o=iJ(i)||await nJ(i);t===this.icon&&(this.pathData=o)}waitUntilVisible(t){if(this.intersectionObserver=Zn("intersection",r=>{r.forEach(n=>{n.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())})},{rootMargin:"50px"}),!this.intersectionObserver){t();return}this.intersectionObserver.observe(this.el)}render(){let{el:t,flipRtl:r,pathData:n,scale:i,textLabel:o}=this,s=Wc(t),c=pN[i],a=!!o,d=[].concat(n||"");return this.el.ariaHidden=Xu(!a),this.el.ariaLabel=a?o:null,this.el.role=a?"img":null,xe`<svg aria-hidden=true class=${_e({[rJ.flipRtl]:s==="rtl"&&r,svg:!0})} fill=currentColor height=100% viewBox=${`0 0 ${c} ${c}`} width=100% xmlns=http://www.w3.org/2000/svg>${d.map(h=>typeof h=="string"?_s`<path d=${h??Re} />`:_s`<path d=${h.d??Re} opacity=${("opacity"in h?h.opacity:1)??Re} />`)}</svg>`}};ev.properties={pathData:16,visible:16,flipRtl:7,icon:3,preload:7,scale:3,textLabel:1},ev.styles=sJ;Y5=ev;Gt("calcite-icon",Y5)});var Qu=R(()=>{hN()});function aJ(e){this._$AN!==void 0?(tv(this),this._$AM=e,gN(this)):this._$AM=e}function cJ(e,t=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let o=r;o<n.length;o++)l1(n[o],!1),tv(n[o]);else n!=null&&(l1(n,!1),tv(n));else l1(this,e)}var l1,tv,gN,lJ,rv,wN=R(()=>{Wb();da();da();l1=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),l1(n,t);return!0},tv=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},gN=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),lJ(t)}};lJ=e=>{e.type==Ai.CHILD&&(e._$AP??(e._$AP=cJ),e._$AQ??(e._$AQ=aJ))},rv=class extends eo{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),gN(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(l1(this,t),tv(this))}setValue(t){if(Ub(this.t))this.t._$AI(t,this);else{let r=[...this.t._$AH];r[this.i]=t,this.t._$AI(r,this,0)}}disconnected(){}reconnected(){}}});var Li,X5,J5,At,Vo=R(()=>{Rr();wN();da();Li=()=>new X5,X5=class{},J5=new WeakMap,At=to(class extends rv{render(e){return Re}update(e,[t]){let r=t!==this.Y;return r&&this.Y!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),Re}rt(e){if(this.isConnected||(e=void 0),typeof this.Y=="function"){let t=this.ht??globalThis,r=J5.get(t);r===void 0&&(r=new WeakMap,J5.set(t,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,e),e!==void 0&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){return typeof this.Y=="function"?J5.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})});var Q5,uJ,bN,qc,yN,K5,dm,Sbe,Ebe,nv=R(()=>{Rr();Q5=Symbol.for(""),uJ=e=>{if(e?.r===Q5)return e?._$litStatic$},bN=e=>({_$litStatic$:e,r:Q5}),qc=(e,...t)=>({_$litStatic$:t.reduce((r,n,i)=>r+(o=>{if(o._$litStatic$!==void 0)return o._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${o}. Use 'unsafeStatic' to pass non-literal values, but
10
+ take care to ensure page security.`)})(n)+e[i+1],e[0]),r:Q5}),yN=new Map,K5=e=>(t,...r)=>{let n=r.length,i,o,s=[],c=[],a,d=0,h=!1;for(;d<n;){for(a=t[d];d<n&&(o=r[d],(i=uJ(o))!==void 0);)a+=i+t[++d],h=!0;d!==n&&c.push(o),s.push(a),d++}if(d===n&&s.push(t[n]),h){let g=s.join("$$lit$$");(t=yN.get(g))===void 0&&(s.raw=s,yN.set(g,t=s)),r=c}return e(t,...r)},dm=K5(xe),Sbe=K5(_s),Ebe=K5(dk)});function pJ(e){return`${e.split("-").map((t,r)=>r===0?t:`${t[0].toUpperCase()}${t.slice(1)}`).join("")}${dJ.includes(e)?"Input":"Change"}`}function rE(e){return"checked"in e}function fJ(e,t){if(Bc(t.parentElement,"[form]"))return!0;let r="calciteInternalFormComponentRegister",n=!1;return e.addEventListener(r,i=>{n=i.composedPath().some(o=>nE.has(o)),i.stopPropagation()},{once:!0}),t.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0})),n}function mJ(e,{status:t,message:r,icon:n}){"status"in e&&(e.status=t),"validationIcon"in e&&typeof e.validationIcon!="string"&&(e.validationIcon=n),"validationMessage"in e&&!e.validationMessage&&(e.validationMessage=r)}function SN(e){return e.nodeName==="CALCITE-RADIO-BUTTON"?Bc(e,"calcite-radio-button-group"):e}function vN(e){let t=e?.target,r=t?.validationMessage,n=SN(t?.parentElement);if(!n)return;let i=n?.nodeName?.toLowerCase(),o=i?.split("-");if(o.length<2||o[0]!=="calcite")return;e?.preventDefault(),"validity"in n&&(n.validity=t?.validity),n.dispatchEvent(hJ),mJ(n,{message:r,icon:!0,status:"invalid"});let s=pJ(i);n.addEventListener(s,()=>{"status"in n&&(n.status="idle"),"validationIcon"in n&&(n.validationIcon===""||n.validationIcon===!0)&&(n.validationIcon=!1),"validationMessage"in n&&n.validationMessage===r&&(n.validationMessage=""),"validity"in n&&(n.validity=t?.validity)},{once:!0})}function iv(e){let{formEl:t}=e;return t?(t.addEventListener("invalid",vN,!0),t.requestSubmit(),t.removeEventListener("invalid",vN,!0),requestAnimationFrame(()=>{let r=t.querySelectorAll("[status=invalid]");for(let n of r)if(n?.validationMessage){n?.setFocus();break}}),!0):!1}function EN(e){e.formEl?.reset()}function CN(e){let{el:t,value:r}=e,n=iE(e);if(!n||fJ(n,t))return;e.formEl=n,e.defaultValue=r,rE(e)&&(e.defaultChecked=e.checked);let i=(e.onFormReset||gJ).bind(e);n.addEventListener("reset",i),tE.set(e.el,i),nE.add(t)}function iE(e){let{el:t,form:r}=e;return r?Ju(t,{id:r}):Bc(t,"form")}function gJ(){if("status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),rE(this)){this.checked=this.defaultChecked;return}this.value=this.defaultValue}function TN(e){let{el:t,formEl:r}=e;if(!r)return;let n=tE.get(t);r.removeEventListener("reset",n),tE.delete(t),e.formEl=null,nE.delete(t)}function wJ(e){let{el:t,formEl:r,name:n,value:i}=e,{ownerDocument:o}=t,s=t.querySelectorAll(`input[slot="${eE}"]`);if(!r||!n){s.forEach(g=>{_N(g),g.remove()});return}let c=Array.isArray(i)?i:[i],a=[],d=new Set;s.forEach(g=>{let v=c.find(E=>E==g.value);v!=null?(d.add(v),xN(e,g,v)):a.push(g)});let h;c.forEach(g=>{if(d.has(g))return;let v=a.pop();v||(v=o.createElement("input"),v.slot=eE),h||(h=o.createDocumentFragment()),h.append(v),v.addEventListener("input",PN),xN(e,v,g)}),h&&t.append(h),a.forEach(g=>{_N(g),g.remove()})}function xN(e,t,r){let{defaultValue:n,disabled:i,form:o,name:s,required:c}=e;t.defaultValue=n,t.disabled=i,t.name=s,t.required=c,t.tabIndex=-1,o?t.setAttribute("form",o):t.removeAttribute("form"),rE(e)?(t.checked=e.checked,t.defaultChecked=e.defaultChecked,t.value=e.checked?r||"on":""):t.value=r||"",e.syncHiddenFormInput?.(t);let a=SN(e.el);if(a&&"validity"in a)for(let d in{...t?.validity})a.validity[d]=t.validity[d]}var dJ,eE,tE,nE,hJ,ov,PN,_N,MN,oE=R(()=>{Rr();Sn();dJ=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"];eE="hidden-form-input";tE=new WeakMap,nE=new WeakSet;hJ=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});ov="calciteInternalHiddenInputInput",PN=e=>{e.target.dispatchEvent(new CustomEvent(ov,{bubbles:!0}))},_N=e=>e.removeEventListener("input",PN);MN=({component:e})=>(wJ(e),xe`<slot name=${eE}></slot>`)});function yJ(){let{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function AN(e){e.target.disabled&&e.preventDefault()}function LN(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}function Hc(e){if(e.disabled){e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),bJ(e);return}_J(e),e.el.removeAttribute("aria-disabled")}function bJ(e){e.el.click=yJ,vJ(e.el)}function vJ(e){e.addEventListener("pointerdown",AN,sv),IN.forEach(t=>e.addEventListener(t,LN,sv))}function _J(e){delete e.el.click,xJ(e.el)}function xJ(e){e.removeEventListener("pointerdown",AN,sv),IN.forEach(t=>e.removeEventListener(t,LN,sv))}var IN,sv,SJ,Zc,u1=R(()=>{Rr();Dr();IN=["mousedown","mouseup","click"];sv={capture:!0};SJ={container:"interaction-container"},Zc=({children:e,disabled:t})=>xe`<div class=${_e(SJ.container)} .inert=${t}>${e}</div>`});function CJ(e,t){let r,n="custom-element-ancestor-check",i=o=>{o.stopImmediatePropagation();let s=o.composedPath();r=s.slice(s.indexOf(t),s.indexOf(e))};return e.addEventListener(n,i,{once:!0}),t.dispatchEvent(new CustomEvent(n,{composed:!0,bubbles:!0})),e.removeEventListener(n,i),r.filter(o=>o!==t&&o!==e).filter(o=>o.tagName?.includes("-")).length>0}function fm(e){if(!e)return;let t=EJ(e.el);if(d1.has(t)&&t===e.labelEl||!t&&Ku.has(e))return;let r=PJ.bind(e);if(t){e.labelEl=t;let n=pm.get(t)||[];n.push(e),pm.set(t,n.sort(RN)),d1.has(e.labelEl)||(d1.set(e.labelEl,NN),e.labelEl.addEventListener(ON,NN)),Ku.delete(e),document.removeEventListener(m1,f1.get(e)),av.set(e,r),document.addEventListener(p1,r)}else Ku.has(e)||(r(),document.removeEventListener(p1,av.get(e)))}function cv(e){if(!e||(Ku.delete(e),document.removeEventListener(m1,f1.get(e)),document.removeEventListener(p1,av.get(e)),f1.delete(e),av.delete(e),!e.labelEl))return;let t=pm.get(e.labelEl);t.length===1&&(e.labelEl.removeEventListener(ON,d1.get(e.labelEl)),d1.delete(e.labelEl)),pm.set(e.labelEl,t.filter(r=>r!==e).sort(RN)),e.labelEl=null}function RN(e,t){return lN(e.el,t.el)?-1:1}function h1(e){return e.label||e.labelEl?.textContent?.trim()||""}function NN(e){let t=e.detail.sourceEvent.target,r=pm.get(this),n=r.find(o=>o.el===t);if(r.includes(n))return;let i=r[0];i.disabled||i.onLabelClick(e)}function TJ(){Ku.has(this)&&fm(this)}function PJ(){Ku.add(this);let e=f1.get(this)||TJ.bind(this);f1.set(this,e),document.addEventListener(m1,e)}async function DN(e){if(await e.componentOnReady(),pm.has(e))return;let t=e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(let r of Ku)if(r.el===t){fm(r);break}})}var ON,m1,p1,kN,pm,d1,f1,av,Ku,EJ,lv=R(()=>{Sn();ON="calciteInternalLabelClick",m1="calciteInternalLabelConnected",p1="calciteInternalLabelDisconnected",kN="calcite-label",pm=new WeakMap,d1=new WeakMap,f1=new WeakMap,av=new WeakMap,Ku=new Set,EJ=e=>{let{id:t}=e,r=t&&Ju(e,{selector:`${kN}[for="${t}"]`});if(r)return r;let n=Bc(e,kN);return!n||CJ(n,e)?null:n}});function Dn(e){$N.set(e,new Promise(t=>FN.set(e,t)))}function Fn(e){FN.get(e)()}function MJ(e){return $N.get(e)}async function $n(e){if(await MJ(e),!!ro())return e.requestUpdate(),new Promise(t=>requestAnimationFrame(()=>t()))}var FN,$N,ha=R(()=>{ar();FN=new WeakMap,$N=new WeakMap});var VN=R(()=>{ar();});function Yn(e){return e==="l"?"m":"s"}var mm=R(()=>{VN();});var ki,AJ,dv,uv,UN=R(()=>{ar();Rr();Vo();nv();Dr();Bu();oE();u1();lv();ha();jc();mm();xs();Sn();_n();ki={buttonLoader:"calcite-button--loader",content:"content",contentSlotted:"content--slotted",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",loadingIn:"loading-in",loadingOut:"loading-out",iconStartEmpty:"icon-start-empty",iconEndEmpty:"icon-end-empty",buttonPadding:"button-padding",buttonPaddingShrunk:"button-padding--shrunk"},AJ=Dt`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;inline-size:auto;vertical-align:middle}:host([round]){border-radius:50px}:host([round]) a,:host([round]) button{border-radius:50px}:host button,:host a{outline-color:transparent}:host button:focus,:host a:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host button,:host a{--calcite-button-content-margin-internal: .5rem;--calcite-button-padding-x-internal: 7px;--calcite-button-padding-y-internal: 3px;padding-block:var(--calcite-button-padding-y-internal);padding-inline:var(--calcite-button-padding-x-internal);position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;align-items:center;justify-content:center;border-radius:0;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}:host button:hover,:host a:hover{text-decoration-line:none}:host button span,:host a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content{margin-inline:var(--calcite-button-content-margin-internal)}.icon-start-empty .content{margin-inline-start:unset}.icon-end-empty .content{margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-content-margin-internal: .75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-button-content-margin-internal: 1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:var(--calcite-button-content-margin-internal)}.icon{position:relative;margin:0;display:inline-flex;font-weight:var(--calcite-font-weight-normal);line-height:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(.5)}to{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}to{inline-size:0;opacity:0;transform:scale(.5)}}.calcite-button--loader{display:flex}.calcite-button--loader calcite-loader{margin:0}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{margin-inline-end:var(--calcite-button-content-margin-internal)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance]) button,:host([appearance]) a{border-width:1px;border-style:solid;border-color:transparent}:host([kind=brand]) button,:host([kind=brand]) a{background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}:host([kind=brand]) button:hover,:host([kind=brand]) button:focus,:host([kind=brand]) a:hover,:host([kind=brand]) a:focus{background-color:var(--calcite-color-brand-hover)}:host([kind=brand]) button:active,:host([kind=brand]) a:active{background-color:var(--calcite-color-brand-press)}:host([kind=brand]) button calcite-loader,:host([kind=brand]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([kind=danger]) button,:host([kind=danger]) a{background-color:var(--calcite-color-status-danger);color:var(--calcite-color-text-inverse)}:host([kind=danger]) button:hover,:host([kind=danger]) button:focus,:host([kind=danger]) a:hover,:host([kind=danger]) a:focus{background-color:var(--calcite-color-status-danger-hover)}:host([kind=danger]) button:active,:host([kind=danger]) a:active{background-color:var(--calcite-color-status-danger-press)}:host([kind=danger]) button calcite-loader,:host([kind=danger]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([kind=neutral]) button,:host([kind=neutral]) a{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}:host([kind=neutral]) button:hover,:host([kind=neutral]) button:focus,:host([kind=neutral]) a:hover,:host([kind=neutral]) a:focus{background-color:var(--calcite-color-foreground-2)}:host([kind=neutral]) button:active,:host([kind=neutral]) a:active{background-color:var(--calcite-color-foreground-1)}:host([kind=neutral]) button calcite-loader,:host([kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([kind=inverse]) button,:host([kind=inverse]) a{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse)}:host([kind=inverse]) button:hover,:host([kind=inverse]) button:focus,:host([kind=inverse]) a:hover,:host([kind=inverse]) a:focus{background-color:var(--calcite-color-inverse-hover)}:host([kind=inverse]) button:active,:host([kind=inverse]) a:active{background-color:var(--calcite-color-inverse-press)}:host([kind=inverse]) button calcite-loader,:host([kind=inverse]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{border-width:1px;border-style:solid;background-color:var(--calcite-color-foreground-1);box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{border-color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{border-color:var(--calcite-color-brand-hover);color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:focus,:host([appearance=outline-fill][kind=brand]) a:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-brand);box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{border-color:var(--calcite-color-brand-press);color:var(--calcite-color-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{border-color:var(--calcite-color-status-danger);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{border-color:var(--calcite-color-status-danger-hover);color:var(--calcite-color-status-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:focus,:host([appearance=outline-fill][kind=danger]) a:focus{border-color:var(--calcite-color-status-danger);color:var(--calcite-color-status-danger);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{border-color:var(--calcite-color-status-danger-press);color:var(--calcite-color-status-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);border-color:var(--calcite-color-border-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:focus,:host([appearance=outline-fill][kind=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button calcite-loader,:host([appearance=outline-fill][kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);border-color:var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{border-color:var(--calcite-color-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:focus,:host([appearance=outline-fill][kind=inverse]) a:focus{border-color:var(--calcite-color-inverse);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{border-color:var(--calcite-color-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse-press)}:host([appearance=outline-fill][kind=inverse]) button calcite-loader,:host([appearance=outline-fill][kind=inverse]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline]) button,:host([appearance=outline]) a{border-width:1px;border-style:solid;background-color:transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{border-color:var(--calcite-color-brand);background-color:transparent;color:var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{border-color:var(--calcite-color-brand-hover);color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:focus,:host([appearance=outline][kind=brand]) a:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-brand);box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{border-color:var(--calcite-color-brand-press);color:var(--calcite-color-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{border-color:var(--calcite-color-status-danger);background-color:transparent;color:var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{border-color:var(--calcite-color-status-danger-hover);color:var(--calcite-color-status-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:focus,:host([appearance=outline][kind=danger]) a:focus{border-color:var(--calcite-color-status-danger);color:var(--calcite-color-status-danger);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{border-color:var(--calcite-color-status-danger-press);color:var(--calcite-color-status-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{background-color:transparent;color:var(--calcite-color-text-1);border-color:var(--calcite-color-border-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:focus,:host([appearance=outline][kind=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button calcite-loader,:host([appearance=outline][kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{background-color:transparent;color:var(--calcite-color-text-1);border-color:var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{border-color:var(--calcite-color-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:focus,:host([appearance=outline][kind=inverse]) a:focus{border-color:var(--calcite-color-inverse);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{border-color:var(--calcite-color-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse-press)}:host([appearance=outline][kind=inverse]) button calcite-loader,:host([appearance=outline][kind=inverse]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline-fill][split-child=primary]) button,:host([appearance=outline][split-child=primary]) button{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline-fill][split-child=secondary]) button,:host([appearance=outline][split-child=secondary]) button{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]:not(.enable-editing-button)) button,:host([appearance=transparent]:not(.enable-editing-button)) a{background-color:transparent}:host([appearance=transparent]:not(.enable-editing-button)) button:hover,:host([appearance=transparent]:not(.enable-editing-button)) button:focus,:host([appearance=transparent]:not(.enable-editing-button)) a:hover,:host([appearance=transparent]:not(.enable-editing-button)) a:focus{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]:not(.enable-editing-button)) button:active,:host([appearance=transparent]:not(.enable-editing-button)) a:active{background-color:var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=brand]) button,:host([appearance=transparent][kind=brand]) a{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{color:var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:focus,:host([appearance=transparent][kind=brand]) a:focus{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{color:var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{color:var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:focus,:host([appearance=transparent][kind=danger]) a:focus{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{color:var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{border-block-start-width:1px;border-block-end-width:1px;color:var(--calcite-color-text-3);border-block-start-color:var(--calcite-color-border-input);border-block-end-color:var(--calcite-color-border-input);border-block-style:solid}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:not(.content--slotted){--calcite-button-padding-y-internal: 0}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{color:var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].enable-editing-button) button{background-color:transparent}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][kind=inverse]) button,:host([appearance=transparent][kind=inverse]) a,:host([appearance=transparent][kind=inverse]) calcite-loader{color:var(--calcite-color-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-button-padding-x-internal: .5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-button-padding-y-internal: 3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-button-padding-x-internal: 11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-padding-y-internal: 7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-button-padding-x-internal: .75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-button-padding-x-internal: 15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .button-padding{--calcite-button-padding-x-internal: 1rem;--calcite-button-padding-y-internal: 11px}:host([scale=l]) .button-padding--shrunk{--calcite-button-padding-y-internal: 9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-button-padding-x-internal: .125rem;--calcite-button-padding-y-internal: 3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-button-padding-x-internal: .125rem;--calcite-button-padding-y-internal: 7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-button-padding-x-internal: .125rem;--calcite-button-padding-y-internal: 9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}:host(:is([scale=s],[scale=m],[scale=l])[width=full]) a:not(.content--slotted),:host(:is([scale=s],[scale=m],[scale=l])[width=full]) button:not(.content--slotted){inline-size:var(--calcite-container-size-content-fluid)}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y-internal: .625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal: 23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x-internal: 1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal: 2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x-internal: 33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal: 43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x-internal: 2.75rem}:host([hidden]){display:none}[hidden]{display:none}`,dv=class dv extends $t{constructor(){super(...arguments),this.attributeWatch=Ab(["aria-expanded"],this.handleGlobalAttributesChanged),this.contentEl=Li(),this.mutationObserver=Zn("mutation",()=>this.updateHasContent()),this.resizeObserver=Zn("resize",()=>this.setTooltipText()),this.hasContent=!1,this.alignment="center",this.appearance="solid",this.disabled=!1,this.download=!1,this.kind="brand",this.loading=!1,this.messages=pn(),this.round=!1,this.scale="m",this.splitChild=!1,this.type="button",this.width="auto"}async setFocus(){await $n(this),this.childEl?.focus()}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),fm(this),this.formEl=iE(this)}async load(){Dn(this),ro()&&this.updateHasContent()}updated(){Hc(this)}loaded(){Fn(this),this.setTooltipText()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),cv(this),this.resizeObserver?.disconnect(),this.formEl=null}handleGlobalAttributesChanged(){this.requestUpdate()}updateHasContent(){this.hasContent=sN(this.el)}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}onLabelClick(){this.handleClick(),this.setFocus()}handleClick(){let{type:t}=this;this.href||(t==="submit"?iv(this):t==="reset"&&EN(this))}setTooltipText(){let{contentEl:{value:t}}=this;t&&(this.tooltipText=t.offsetWidth<t.scrollWidth&&this.el.innerText||null)}setChildEl(t){this.childEl=t,t&&this.resizeObserver?.observe(t)}render(){let t=this.href?"a":"button",r=this.href?qc`a`:qc`button`,n=this.loading?xe`<div class=${_e(ki.buttonLoader)}><calcite-loader class=${_e(this.loading?ki.loadingIn:ki.loadingOut)} inline .label=${this.messages.loading} .scale=${this.scale==="l"?"m":"s"}></calcite-loader></div>`:null,i=!this.iconStart&&!this.iconEnd,o=xe`<calcite-icon class=${_e({[ki.icon]:!0,[ki.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${Yn(this.scale)}></calcite-icon>`,s=xe`<calcite-icon class=${_e({[ki.icon]:!0,[ki.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${Yn(this.scale)}></calcite-icon>`,c=xe`<span class=${_e(ki.content)} ${At(this.contentEl)}><slot></slot></span>`;return Zc({disabled:this.disabled,children:dm`<${r} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded?this.el.ariaExpanded:null} .ariaLabel=${this.loading?this.messages.loading:h1(this)} aria-live=polite class=${_e({[ki.buttonPadding]:i,[ki.buttonPaddingShrunk]:!i,[ki.contentSlotted]:this.hasContent,[ki.iconStartEmpty]:!this.iconStart,[ki.iconEndEmpty]:!this.iconEnd})} .disabled=${t==="button"?this.disabled:null} download=${(t==="a"?this.download===!0||this.download===""?"":this.download||null:null)??ui} href=${(t==="a"&&this.href)??ui} name=${(t==="button"&&this.name)??ui} @click=${this.handleClick} rel=${(t==="a"&&this.rel)??ui} tabindex=${(this.disabled?-1:null)??ui} target=${(t==="a"&&this.target)??ui} title=${this.tooltipText??ui} type=${(t==="button"?this.type:null)??ui} ${At(this.setChildEl)}>${n}${this.iconStart?o:null}${this.hasContent?c:null}${this.iconEnd?s:null}</${r}>`})}};dv.properties={hasContent:16,tooltipText:16,alignment:3,appearance:3,disabled:7,download:[3,{converter:pa}],form:3,href:3,iconEnd:3,iconFlipRtl:3,iconStart:3,kind:3,label:1,loading:7,messageOverrides:0,name:3,rel:3,round:7,scale:3,splitChild:3,target:3,type:3,width:3},dv.styles=AJ;uv=dv;Gt("calcite-button",uv)});var zN={};qs(zN,{Button:()=>uv});var WN=R(()=>{Yb();Qu();UN()});var BN,GN,IJ,pv,sE,jN=R(()=>{ar();Vo();Rr();Dr();jc();Sn();xs();_n();BN={scrim:"scrim",content:"content"},GN={s:72,l:480},IJ=Dt`:host{position:absolute;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity: 0 }to{--tw-text-opacity: 1 }}.scrim{position:absolute;inset:0;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-color-transparent-scrim))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}`,pv=class pv extends $t{constructor(){super(...arguments),this.resizeObserver=Zn("resize",()=>this.handleResize()),this.hasContent=!1,this.loading=!1,this.messages=pn()}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}handleDefaultSlotChange(t){this.hasContent=oN(t)}storeLoaderEl(t){this.loaderEl=t,this.handleResize()}getScale(t){return t<GN.s?"s":t>=GN.l?"l":"m"}handleResize(){let{loaderEl:t,el:r}=this;t&&(this.loaderScale=this.getScale(Math.min(r.clientHeight,r.clientWidth)??0))}render(){let{hasContent:t,loading:r,messages:n}=this;return xe`<div class=${_e(BN.scrim)}>${r?xe`<calcite-loader .label=${n.loading} .scale=${this.loaderScale} ${At(this.storeLoaderEl)}></calcite-loader>`:null}<div class=${_e(BN.content)} .hidden=${!t}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>`}};pv.properties={hasContent:16,loaderScale:16,loading:7,messageOverrides:0},pv.styles=IJ;sE=pv;Gt("calcite-scrim",sE)});var aE=R(()=>{Yb();jN()});var cr,Yc=R(()=>{Rr();da();Wb();cr=to(class extends eo{constructor(){super(...arguments),this.key=Re}render(e,t){return this.key=e,t}update(e,[t,r]){return t!==this.key&&(zb(e),this.key=t),r}})});var Uo,LJ,kJ,fv,cE,qN=R(()=>{ar();Rr();Yc();Vo();Dr();lm();u1();ha();jc();mm();xs();_n();Uo={button:"button",buttonTextVisible:"button--text-visible",buttonCompact:"button--compact",indicatorText:"indicator-text",iconContainer:"icon-container",slotContainer:"slot-container",slotContainerHidden:"slot-container--hidden",textContainer:"text-container",textContainerVisible:"text-container--visible",indicatorWithIcon:"indicator-with-icon",indicatorWithoutIcon:"indicator-without-icon"},LJ={tooltip:"tooltip"},kJ=Dt`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;cursor:pointer;background-color:transparent}:host,button{border-radius:var(--calcite-action-corner-radius, var(--calcite-action-corner-radius-start-start, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-start-end, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-end-end, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-end-start, var(--calcite-corner-radius)))}.button{position:relative;margin:0;display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));color:var(--calcite-action-text-color, var(--calcite-color-text-3));text-align:unset;flex:1 0 auto;cursor:inherit}.button:hover,.button:focus{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}.button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}.icon-container{pointer-events:none;margin:0;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1.5rem}.text-container{margin:0;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:margin;transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus{color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)));background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}:host([active]) .button:active{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .text-container{opacity:var(--calcite-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-inline-end:0px}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-color-transparent-press)}:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]) .button:active{background-color:var(--calcite-color-transparent-press)}:host([data-active]) .button{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .button{font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, .5rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-xxs))}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:.5rem}:host([scale=m]) .button{font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, 1rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-md))}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:.75rem}:host([scale=l]) .button{font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, 1.25rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-xl))}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:.25rem;inline-size:1rem;position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;opacity:var(--calcite-opacity-disabled);background-color:var(--calcite-action-background-color, var(--calcite-action-background-color, var(--calcite-color-foreground-1)))}:host([disabled]):host([active]) .button,:host([disabled]):host([active]) .button:hover,:host([disabled]):host([active]) .button:focus{opacity:var(--calcite-opacity-disabled);background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3))))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,fv=class fv extends $t{constructor(){super(...arguments),this.guid=`calcite-action-${fa()}`,this.buttonEl=Li(),this.buttonId=`${this.guid}-button`,this.indicatorId=`${this.guid}-indicator`,this.mutationObserver=Zn("mutation",()=>this.requestUpdate()),this.active=!1,this.appearance="solid",this.compact=!1,this.disabled=!1,this.iconFlipRtl=!1,this.indicator=!1,this.loading=!1,this.messages=pn({blocking:!0}),this.scale="m",this.textEnabled=!1}async setFocus(){await $n(this),this.buttonEl.value?.focus()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){Dn(this)}updated(){Hc(this)}loaded(){Fn(this)}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}handleTooltipSlotChange(t){let r=t.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-tooltip"))[0];r&&(r.referenceElement=this.buttonEl.value)}renderTextContainer(){let{text:t,textEnabled:r}=this,n={[Uo.textContainer]:!0,[Uo.textContainerVisible]:r};return t?cr("text-container",xe`<div class=${_e(n)}>${t}</div>`):null}renderIndicatorText(){let{indicator:t,messages:r,indicatorId:n,buttonId:i}=this;return xe`<div aria-labelledby=${i??ui} aria-live=polite class=${_e(Uo.indicatorText)} id=${n??ui} role=region>${t?r.indicator:null}</div>`}renderIconContainer(){let{loading:t,icon:r,scale:n,el:i,iconFlipRtl:o,indicator:s}=this,c=n==="l"?"l":"m",a=t?xe`<calcite-loader inline .label=${this.messages.loading} .scale=${c}></calcite-loader>`:null,d=r?xe`<calcite-icon class=${_e({[Uo.indicatorWithIcon]:s})} .flipRtl=${o} .icon=${r} .scale=${Yn(this.scale)}></calcite-icon>`:null,h=a||d,g=h||i.children?.length,v=xe`<div class=${_e({[Uo.slotContainer]:!0,[Uo.slotContainerHidden]:t})}><slot></slot></div>`;return g?cr("icon-container",xe`<div aria-hidden=true class=${_e(Uo.iconContainer)}>${h}${v}</div>`):null}render(){let{active:t,compact:r,disabled:n,icon:i,loading:o,textEnabled:s,label:c,text:a,indicator:d,indicatorId:h,buttonId:g,messages:v}=this,E=c||a||"",P=d?v.indicatorLabel.replace("{label}",E):E,A={[Uo.button]:!0,[Uo.buttonTextVisible]:s,[Uo.buttonCompact]:r};return Zc({disabled:n,children:xe`<button aria-controls=${(d?h:null)??ui} .ariaBusy=${o} .ariaLabel=${P} .ariaPressed=${t} class=${_e(A)} .disabled=${n} id=${g??ui} ${At(this.buttonEl)}>${this.renderIconContainer()}${this.renderTextContainer()}${!i&&d&&cr("indicator-no-icon",xe`<div class=${_e(Uo.indicatorWithoutIcon)}></div>`)||""}</button><slot name=${LJ.tooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${this.renderIndicatorText()}`})}};fv.properties={active:7,alignment:3,appearance:3,compact:7,disabled:7,icon:1,iconFlipRtl:7,indicator:7,label:1,loading:7,messageOverrides:0,scale:3,text:1,textEnabled:7},fv.styles=kJ;cE=fv;Gt("calcite-action",cE)});var mv=R(()=>{Yb();Qu();qN()});function hv(e,t,r){return ga(e,Jc(t,r))}function Xc(e,t){return typeof e=="function"?e(t):e}function Ss(e){return e.split("-")[0]}function Wo(e){return e.split("-")[1]}function dE(e){return e==="x"?"y":"x"}function gv(e){return e==="y"?"height":"width"}function ed(e){return["top","bottom"].includes(Ss(e))?"y":"x"}function wv(e){return dE(ed(e))}function pE(e,t,r){r===void 0&&(r=!1);let n=Wo(e),i=wv(e),o=gv(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=w1(s)),[s,w1(s)]}function ZN(e){let t=w1(e);return[g1(e),t,g1(t)]}function g1(e){return e.replace(/start|end/g,t=>OJ[t])}function RJ(e,t,r){let n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:s;default:return[]}}function YN(e,t,r,n){let i=Wo(e),o=RJ(Ss(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(g1)))),o}function w1(e){return e.replace(/left|right|bottom|top/g,t=>NJ[t])}function DJ(e){return{top:0,right:0,bottom:0,left:0,...e}}function fE(e){return typeof e!="number"?DJ(e):{top:e,right:e,bottom:e,left:e}}function td(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}var lE,HN,uE,Jc,ga,y1,b1,zo,NJ,OJ,yv=R(()=>{lE=["top","right","bottom","left"],HN=["start","end"],uE=lE.reduce((e,t)=>e.concat(t,t+"-"+HN[0],t+"-"+HN[1]),[]),Jc=Math.min,ga=Math.max,y1=Math.round,b1=Math.floor,zo=e=>({x:e,y:e}),NJ={left:"right",right:"left",bottom:"top",top:"bottom"},OJ={start:"end",end:"start"}});function JN(e,t,r){let{reference:n,floating:i}=e,o=ed(t),s=wv(t),c=gv(s),a=Ss(t),d=o==="y",h=n.x+n.width/2-i.width/2,g=n.y+n.height/2-i.height/2,v=n[c]/2-i[c]/2,E;switch(a){case"top":E={x:h,y:n.y-i.height};break;case"bottom":E={x:h,y:n.y+n.height};break;case"right":E={x:n.x+n.width,y:g};break;case"left":E={x:n.x-i.width,y:g};break;default:E={x:n.x,y:n.y}}switch(Wo(t)){case"start":E[s]-=v*(r&&d?-1:1);break;case"end":E[s]+=v*(r&&d?-1:1);break}return E}async function hm(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:o,rects:s,elements:c,strategy:a}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:v=!1,padding:E=0}=Xc(t,e),P=fE(E),F=c[v?g==="floating"?"reference":"floating":g],W=td(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(F)))==null||r?F:F.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:a})),z=g==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,j=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),G=await(o.isElement==null?void 0:o.isElement(j))?await(o.getScale==null?void 0:o.getScale(j))||{x:1,y:1}:{x:1,y:1},Y=td(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:z,offsetParent:j,strategy:a}):z);return{top:(W.top-Y.top+P.top)/G.y,bottom:(Y.bottom-W.bottom+P.bottom)/G.y,left:(W.left-Y.left+P.left)/G.x,right:(Y.right-W.right+P.right)/G.x}}function FJ(e,t,r){return(e?[...r.filter(i=>Wo(i)===e),...r.filter(i=>Wo(i)!==e)]:r.filter(i=>Ss(i)===i)).filter(i=>e?Wo(i)===e||(t?g1(i)!==i:!1):!0)}function XN(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function QN(e){return lE.some(t=>e[t]>=0)}async function $J(e,t){let{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Ss(r),c=Wo(r),a=ed(r)==="y",d=["left","top"].includes(s)?-1:1,h=o&&a?-1:1,g=Xc(t,e),{mainAxis:v,crossAxis:E,alignmentAxis:P}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof P=="number"&&(E=c==="end"?P*-1:P),a?{x:E*h,y:v*d}:{x:v*d,y:E*h}}var KN,eO,tO,rO,nO,iO,oO,sO=R(()=>{yv();yv();KN=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,c=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t)),d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:g}=JN(d,n,a),v=n,E={},P=0;for(let A=0;A<c.length;A++){let{name:F,fn:W}=c[A],{x:z,y:j,data:G,reset:Y}=await W({x:h,y:g,initialPlacement:n,placement:v,strategy:i,middlewareData:E,rects:d,platform:s,elements:{reference:e,floating:t}});h=z??h,g=j??g,E={...E,[F]:{...E[F],...G}},Y&&P<=50&&(P++,typeof Y=="object"&&(Y.placement&&(v=Y.placement),Y.rects&&(d=Y.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):Y.rects),{x:h,y:g}=JN(d,v,a)),A=-1)}return{x:h,y:g,placement:v,strategy:i,middlewareData:E}};eO=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:s,elements:c,middlewareData:a}=t,{element:d,padding:h=0}=Xc(e,t)||{};if(d==null)return{};let g=fE(h),v={x:r,y:n},E=wv(i),P=gv(E),A=await s.getDimensions(d),F=E==="y",W=F?"top":"left",z=F?"bottom":"right",j=F?"clientHeight":"clientWidth",G=o.reference[P]+o.reference[E]-v[E]-o.floating[P],Y=v[E]-o.reference[E],ie=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d)),U=ie?ie[j]:0;(!U||!await(s.isElement==null?void 0:s.isElement(ie)))&&(U=c.floating[j]||o.floating[P]);let fe=G/2-Y/2,Ae=U/2-A[P]/2-1,Ee=Jc(g[W],Ae),Ne=Jc(g[z],Ae),we=Ee,le=U-A[P]-Ne,J=U/2-A[P]/2+fe,ee=hv(we,J,le),pe=!a.arrow&&Wo(i)!=null&&J!==ee&&o.reference[P]/2-(J<we?Ee:Ne)-A[P]/2<0,de=pe?J<we?J-we:J-le:0;return{[E]:v[E]+de,data:{[E]:ee,centerOffset:J-ee-de,...pe&&{alignmentOffset:de}},reset:pe}}});tO=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:o,middlewareData:s,placement:c,platform:a,elements:d}=t,{crossAxis:h=!1,alignment:g,allowedPlacements:v=uE,autoAlignment:E=!0,...P}=Xc(e,t),A=g!==void 0||v===uE?FJ(g||null,E,v):v,F=await hm(t,P),W=((r=s.autoPlacement)==null?void 0:r.index)||0,z=A[W];if(z==null)return{};let j=pE(z,o,await(a.isRTL==null?void 0:a.isRTL(d.floating)));if(c!==z)return{reset:{placement:A[0]}};let G=[F[Ss(z)],F[j[0]],F[j[1]]],Y=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:z,overflows:G}],ie=A[W+1];if(ie)return{data:{index:W+1,overflows:Y},reset:{placement:ie}};let U=Y.map(Ee=>{let Ne=Wo(Ee.placement);return[Ee.placement,Ne&&h?Ee.overflows.slice(0,2).reduce((we,le)=>we+le,0):Ee.overflows[0],Ee.overflows]}).sort((Ee,Ne)=>Ee[1]-Ne[1]),Ae=((i=U.filter(Ee=>Ee[2].slice(0,Wo(Ee[0])?2:3).every(Ne=>Ne<=0))[0])==null?void 0:i[0])||U[0][0];return Ae!==c?{data:{index:W+1,overflows:Y},reset:{placement:Ae}}:{}}}},rO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:i,middlewareData:o,rects:s,initialPlacement:c,platform:a,elements:d}=t,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:A=!0,...F}=Xc(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let W=Ss(i),z=ed(c),j=Ss(c)===c,G=await(a.isRTL==null?void 0:a.isRTL(d.floating)),Y=v||(j||!A?[w1(c)]:ZN(c)),ie=P!=="none";!v&&ie&&Y.push(...YN(c,A,P,G));let U=[c,...Y],fe=await hm(t,F),Ae=[],Ee=((n=o.flip)==null?void 0:n.overflows)||[];if(h&&Ae.push(fe[W]),g){let J=pE(i,s,G);Ae.push(fe[J[0]],fe[J[1]])}if(Ee=[...Ee,{placement:i,overflows:Ae}],!Ae.every(J=>J<=0)){var Ne,we;let J=(((Ne=o.flip)==null?void 0:Ne.index)||0)+1,ee=U[J];if(ee)return{data:{index:J,overflows:Ee},reset:{placement:ee}};let pe=(we=Ee.filter(de=>de.overflows[0]<=0).sort((de,Se)=>de.overflows[1]-Se.overflows[1])[0])==null?void 0:we.placement;if(!pe)switch(E){case"bestFit":{var le;let de=(le=Ee.filter(Se=>{if(ie){let ye=ed(Se.placement);return ye===z||ye==="y"}return!0}).map(Se=>[Se.placement,Se.overflows.filter(ye=>ye>0).reduce((ye,Fe)=>ye+Fe,0)]).sort((Se,ye)=>Se[1]-ye[1])[0])==null?void 0:le[0];de&&(pe=de);break}case"initialPlacement":pe=c;break}if(i!==pe)return{reset:{placement:pe}}}return{}}}};nO=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=Xc(e,t);switch(n){case"referenceHidden":{let o=await hm(t,{...i,elementContext:"reference"}),s=XN(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:QN(s)}}}case"escaped":{let o=await hm(t,{...i,altBoundary:!0}),s=XN(o,r.floating);return{data:{escapedOffsets:s,escaped:QN(s)}}}default:return{}}}}};iO=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:s,middlewareData:c}=t,a=await $J(t,e);return s===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},oO=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:F=>{let{x:W,y:z}=F;return{x:W,y:z}}},...a}=Xc(e,t),d={x:r,y:n},h=await hm(t,a),g=ed(Ss(i)),v=dE(g),E=d[v],P=d[g];if(o){let F=v==="y"?"top":"left",W=v==="y"?"bottom":"right",z=E+h[F],j=E-h[W];E=hv(z,E,j)}if(s){let F=g==="y"?"top":"left",W=g==="y"?"bottom":"right",z=P+h[F],j=P-h[W];P=hv(z,P,j)}let A=c.fn({...t,[v]:E,[g]:P});return{...A,data:{x:A.x-r,y:A.y-n,enabled:{[v]:o,[g]:s}}}}}}});function bv(){return typeof window<"u"}function rd(e){return cO(e)?(e.nodeName||"").toLowerCase():"#document"}function di(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bo(e){var t;return(t=(cO(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cO(e){return bv()?e instanceof Node||e instanceof di(e).Node:!1}function no(e){return bv()?e instanceof Element||e instanceof di(e).Element:!1}function Go(e){return bv()?e instanceof HTMLElement||e instanceof di(e).HTMLElement:!1}function aO(e){return!bv()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof di(e).ShadowRoot}function wm(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=io(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function lO(e){return["table","td","th"].includes(rd(e))}function v1(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ym(e){let t=vv(),r=no(e)?io(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function uO(e){let t=wa(e);for(;Go(t)&&!nd(t);){if(ym(t))return t;if(v1(t))return null;t=wa(t)}return null}function vv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function nd(e){return["html","body","#document"].includes(rd(e))}function io(e){return di(e).getComputedStyle(e)}function _1(e){return no(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wa(e){if(rd(e)==="html")return e;let t=e.assignedSlot||e.parentNode||aO(e)&&e.host||Bo(e);return aO(t)?t.host:t}function dO(e){let t=wa(e);return nd(t)?e.ownerDocument?e.ownerDocument.body:e.body:Go(t)&&wm(t)?t:dO(t)}function gm(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=dO(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=di(i);if(o){let c=_v(s);return t.concat(s,s.visualViewport||[],wm(i)?i:[],c&&r?gm(c):[])}return t.concat(i,gm(i,[],r))}function _v(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var mE=R(()=>{});function mO(e){let t=io(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Go(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,c=y1(r)!==o||y1(n)!==s;return c&&(r=o,n=s),{width:r,height:n,$:c}}function gE(e){return no(e)?e:e.contextElement}function bm(e){let t=gE(e);if(!Go(t))return zo(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=mO(t),s=(o?y1(r.width):r.width)/n,c=(o?y1(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}function hO(e){let t=di(e);return!vv()||!t.visualViewport?VJ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function UJ(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==di(e)?!1:t}function id(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=gE(e),s=zo(1);t&&(n?no(n)&&(s=bm(n)):s=bm(e));let c=UJ(o,r,n)?hO(o):zo(0),a=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,h=i.width/s.x,g=i.height/s.y;if(o){let v=di(o),E=n&&no(n)?di(n):n,P=v,A=_v(P);for(;A&&n&&E!==P;){let F=bm(A),W=A.getBoundingClientRect(),z=io(A),j=W.left+(A.clientLeft+parseFloat(z.paddingLeft))*F.x,G=W.top+(A.clientTop+parseFloat(z.paddingTop))*F.y;a*=F.x,d*=F.y,h*=F.x,g*=F.y,a+=j,d+=G,P=di(A),A=_v(P)}}return td({width:h,height:g,x:a,y:d})}function wE(e,t){let r=_1(e).scrollLeft;return t?t.left+r:id(Bo(e)).left+r}function gO(e,t,r){r===void 0&&(r=!1);let n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:wE(e,n)),o=n.top+t.scrollTop;return{x:i,y:o}}function zJ(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o=i==="fixed",s=Bo(n),c=t?v1(t.floating):!1;if(n===s||c&&o)return r;let a={scrollLeft:0,scrollTop:0},d=zo(1),h=zo(0),g=Go(n);if((g||!g&&!o)&&((rd(n)!=="body"||wm(s))&&(a=_1(n)),Go(n))){let E=id(n);d=bm(n),h.x=E.x+n.clientLeft,h.y=E.y+n.clientTop}let v=s&&!g&&!o?gO(s,a,!0):zo(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-a.scrollLeft*d.x+h.x+v.x,y:r.y*d.y-a.scrollTop*d.y+h.y+v.y}}function WJ(e){return Array.from(e.getClientRects())}function BJ(e){let t=Bo(e),r=_1(e),n=e.ownerDocument.body,i=ga(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=ga(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+wE(e),c=-r.scrollTop;return io(n).direction==="rtl"&&(s+=ga(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:c}}function GJ(e,t){let r=di(e),n=Bo(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,c=0,a=0;if(i){o=i.width,s=i.height;let d=vv();(!d||d&&t==="fixed")&&(c=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:c,y:a}}function jJ(e,t){let r=id(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Go(e)?bm(e):zo(1),s=e.clientWidth*o.x,c=e.clientHeight*o.y,a=i*o.x,d=n*o.y;return{width:s,height:c,x:a,y:d}}function pO(e,t,r){let n;if(t==="viewport")n=GJ(e,r);else if(t==="document")n=BJ(Bo(e));else if(no(t))n=jJ(t,r);else{let i=hO(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return td(n)}function wO(e,t){let r=wa(e);return r===t||!no(r)||nd(r)?!1:io(r).position==="fixed"||wO(r,t)}function qJ(e,t){let r=t.get(e);if(r)return r;let n=gm(e,[],!1).filter(c=>no(c)&&rd(c)!=="body"),i=null,o=io(e).position==="fixed",s=o?wa(e):e;for(;no(s)&&!nd(s);){let c=io(s),a=ym(s);!a&&c.position==="fixed"&&(i=null),(o?!a&&!i:!a&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||wm(s)&&!a&&wO(e,s))?n=n.filter(h=>h!==s):i=c,s=wa(s)}return t.set(e,n),n}function HJ(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?v1(t)?[]:qJ(t,this._c):[].concat(r),n],c=s[0],a=s.reduce((d,h)=>{let g=pO(t,h,i);return d.top=ga(g.top,d.top),d.right=Jc(g.right,d.right),d.bottom=Jc(g.bottom,d.bottom),d.left=ga(g.left,d.left),d},pO(t,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function ZJ(e){let{width:t,height:r}=mO(e);return{width:t,height:r}}function YJ(e,t,r){let n=Go(t),i=Bo(t),o=r==="fixed",s=id(e,!0,o,t),c={scrollLeft:0,scrollTop:0},a=zo(0);if(n||!n&&!o)if((rd(t)!=="body"||wm(i))&&(c=_1(t)),n){let v=id(t,!0,o,t);a.x=v.x+t.clientLeft,a.y=v.y+t.clientTop}else i&&(a.x=wE(i));let d=i&&!n&&!o?gO(i,c):zo(0),h=s.left+c.scrollLeft-a.x-d.x,g=s.top+c.scrollTop-a.y-d.y;return{x:h,y:g,width:s.width,height:s.height}}function hE(e){return io(e).position==="static"}function fO(e,t){if(!Go(e)||io(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Bo(e)===r&&(r=r.ownerDocument.body),r}function yO(e,t){let r=di(e);if(v1(e))return r;if(!Go(e)){let i=wa(e);for(;i&&!nd(i);){if(no(i)&&!hE(i))return i;i=wa(i)}return r}let n=fO(e,t);for(;n&&lO(n)&&hE(n);)n=fO(n,t);return n&&nd(n)&&hE(n)&&!ym(n)?r:n||uO(e)||r}function XJ(e){return io(e).direction==="rtl"}function QJ(e,t){let r=null,n,i=Bo(e);function o(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function s(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),o();let{left:d,top:h,width:g,height:v}=e.getBoundingClientRect();if(c||t(),!g||!v)return;let E=b1(h),P=b1(i.clientWidth-(d+g)),A=b1(i.clientHeight-(h+v)),F=b1(d),z={rootMargin:-E+"px "+-P+"px "+-A+"px "+-F+"px",threshold:ga(0,Jc(1,a))||1},j=!0;function G(Y){let ie=Y[0].intersectionRatio;if(ie!==a){if(!j)return s();ie?s(!1,ie):n=setTimeout(()=>{s(!1,1e-7)},1e3)}j=!1}try{r=new IntersectionObserver(G,{...z,root:i.ownerDocument})}catch{r=new IntersectionObserver(G,z)}r.observe(e)}return s(!0),o}function bO(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,d=gE(e),h=i||o?[...d?gm(d):[],...gm(t)]:[];h.forEach(W=>{i&&W.addEventListener("scroll",r,{passive:!0}),o&&W.addEventListener("resize",r)});let g=d&&c?QJ(d,r):null,v=-1,E=null;s&&(E=new ResizeObserver(W=>{let[z]=W;z&&z.target===d&&E&&(E.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var j;(j=E)==null||j.observe(t)})),r()}),d&&!a&&E.observe(d),E.observe(t));let P,A=a?id(e):null;a&&F();function F(){let W=id(e);A&&(W.x!==A.x||W.y!==A.y||W.width!==A.width||W.height!==A.height)&&r(),A=W,P=requestAnimationFrame(F)}return r(),()=>{var W;h.forEach(z=>{i&&z.removeEventListener("scroll",r),o&&z.removeEventListener("resize",r)}),g?.(),(W=E)==null||W.disconnect(),E=null,a&&cancelAnimationFrame(P)}}var VJ,JJ,xv,vO,_O,xO,yE,SO,EO,CO,TO=R(()=>{sO();yv();mE();VJ=zo(0);JJ=async function(e){let t=this.getOffsetParent||yO,r=this.getDimensions,n=await r(e.floating);return{reference:YJ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};xv={convertOffsetParentRelativeRectToViewportRelativeRect:zJ,getDocumentElement:Bo,getClippingRect:HJ,getOffsetParent:yO,getElementRects:JJ,getClientRects:WJ,getDimensions:ZJ,getScale:bm,isElement:no,isRTL:XJ};vO=iO,_O=tO,xO=oO,yE=rO,SO=nO,EO=eO,CO=(e,t,r)=>{let n=new Map,i={platform:xv,...r},o={...i.platform,_c:n};return KN(e,t,{...i,platform:o})}});var KJ,PO,MO=R(()=>{KJ=typeof global=="object"&&global&&global.Object===Object&&global,PO=KJ});var eX,tX,Sv,bE=R(()=>{MO();eX=typeof self=="object"&&self&&self.Object===Object&&self,tX=PO||eX||Function("return this")(),Sv=tX});var rX,vm,vE=R(()=>{bE();rX=Sv.Symbol,vm=rX});function oX(e){var t=nX.call(e,x1),r=e[x1];try{e[x1]=void 0;var n=!0}catch{}var i=iX.call(e);return n&&(t?e[x1]=r:delete e[x1]),i}var AO,nX,iX,x1,IO,LO=R(()=>{vE();AO=Object.prototype,nX=AO.hasOwnProperty,iX=AO.toString,x1=vm?vm.toStringTag:void 0;IO=oX});function cX(e){return aX.call(e)}var sX,aX,kO,NO=R(()=>{sX=Object.prototype,aX=sX.toString;kO=cX});function dX(e){return e==null?e===void 0?uX:lX:OO&&OO in Object(e)?IO(e):kO(e)}var lX,uX,OO,RO,DO=R(()=>{vE();LO();NO();lX="[object Null]",uX="[object Undefined]",OO=vm?vm.toStringTag:void 0;RO=dX});function pX(e){return e!=null&&typeof e=="object"}var FO,$O=R(()=>{FO=pX});function mX(e){return typeof e=="symbol"||FO(e)&&RO(e)==fX}var fX,VO,UO=R(()=>{DO();$O();fX="[object Symbol]";VO=mX});function gX(e){for(var t=e.length;t--&&hX.test(e.charAt(t)););return t}var hX,zO,WO=R(()=>{hX=/\s/;zO=gX});function yX(e){return e&&e.slice(0,zO(e)+1).replace(wX,"")}var wX,BO,GO=R(()=>{WO();wX=/^\s+/;BO=yX});function bX(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var S1,_E=R(()=>{S1=bX});function EX(e){if(typeof e=="number")return e;if(VO(e))return jO;if(S1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=S1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=BO(e);var r=_X.test(e);return r||xX.test(e)?SX(e.slice(2),r?2:8):vX.test(e)?jO:+e}var jO,vX,_X,xX,SX,xE,qO=R(()=>{GO();_E();UO();jO=NaN,vX=/^[-+]0x[0-9a-f]+$/i,_X=/^0b[01]+$/i,xX=/^0o[0-7]+$/i,SX=parseInt;xE=EX});var CX,Ev,HO=R(()=>{bE();CX=function(){return Sv.Date.now()},Ev=CX});function AX(e,t,r){var n,i,o,s,c,a,d=0,h=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(TX);t=xE(t)||0,S1(r)&&(h=!!r.leading,g="maxWait"in r,o=g?PX(xE(r.maxWait)||0,t):o,v="trailing"in r?!!r.trailing:v);function E(ie){var U=n,fe=i;return n=i=void 0,d=ie,s=e.apply(fe,U),s}function P(ie){return d=ie,c=setTimeout(W,t),h?E(ie):s}function A(ie){var U=ie-a,fe=ie-d,Ae=t-U;return g?MX(Ae,o-fe):Ae}function F(ie){var U=ie-a,fe=ie-d;return a===void 0||U>=t||U<0||g&&fe>=o}function W(){var ie=Ev();if(F(ie))return z(ie);c=setTimeout(W,A(ie))}function z(ie){return c=void 0,v&&n?E(ie):(n=i=void 0,s)}function j(){c!==void 0&&clearTimeout(c),d=0,n=a=i=c=void 0}function G(){return c===void 0?s:z(Ev())}function Y(){var ie=Ev(),U=F(ie);if(n=arguments,i=this,a=ie,U){if(c===void 0)return P(a);if(g)return clearTimeout(c),c=setTimeout(W,t),E(a)}return c===void 0&&(c=setTimeout(W,t)),s}return Y.cancel=j,Y.flush=G,Y}var TX,PX,MX,SE,ZO=R(()=>{_E();HO();qO();TX="Expected a function",PX=Math.max,MX=Math.min;SE=AX});var YO=R(()=>{ZO();});function JO(e){return IX(e)}function EE(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function IX(e){for(let t=e;t;t=EE(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=EE(e);t;t=EE(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||ym(r)||t.tagName==="BODY"))return t}return null}var XO=R(()=>{mE()});function QO(e){let t=window.devicePixelRatio||1;return Math.round(e*t)/t}function kX({placement:e,flipDisabled:t,flipPlacements:r,offsetDistance:n,offsetSkidding:i,arrowEl:o,type:s}){let c=[xO(),SO()];if(s==="menu")return[...c,yE({fallbackPlacements:r||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let a=[...c,vO({mainAxis:typeof n=="number"?n:0,crossAxis:typeof i=="number"?i:0})];return e==="auto"||e==="auto-start"||e==="auto-end"?a.push(_O({alignment:e==="auto-start"?"start":e==="auto-end"?"end":null})):t||a.push(yE(r?{fallbackPlacements:r}:{})),o&&a.push(EO({element:o})),a}return[]}function iR(e,t){let r=e.filter(n=>KO.includes(n));return r.length!==e.length&&console.warn(`${t.tagName}: Invalid value found in: flipPlacements. Try any of these: ${KO.map(n=>`"${n}"`).join(", ").trim()}`,{el:t}),r}function eR(e,t=!1){let r=["left","right"];return t&&r.reverse(),e.replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}async function oR(e,t,r=!1){if(!(!e.open||!t.floatingEl||!t.referenceEl)){if(Object.assign(t.floatingEl.style,{display:"block",position:t.overlayPositioning??"absolute"}),!E1.get(e))return sR(e);await(r?NX(e):rR)(e,t)}}function NX(e){let t=Cv.get(e);return t||(t=SE(rR,F5.reposition,{leading:!0,maxWait:F5.reposition}),Cv.set(e,t),t)}async function sR(e){let{referenceEl:t,floatingEl:r}=e;if(!r.isConnected)return;let n=ro()?bO:(s,c,a)=>(a(),()=>{});E1.set(e,{state:"pending"});let i,o=n(t,r,()=>{let s=e.reposition();i||(i=s)});return E1.set(e,{state:"active",cleanUp:o}),i}function TE(e){let{floatingEl:t}=e;t&&Object.assign(t.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function aR(e){let{floatingEl:t,referenceEl:r}=e;if(TE(e),!(!t||!r)&&(PE(e),!!e.open))return sR(e)}function PE(e){let{floatingEl:t,referenceEl:r}=e;if(!t||!r)return;let n=E1.get(e);n?.state==="active"&&n.cleanUp(),E1.delete(e),Cv.get(e)?.cancel(),Cv.delete(e)}var rR,LX,KO,nR,CE,OX,E1,Cv,tR,ME,AE=R(()=>{TO();YO();XO();ar();Sn();(function(){if(ro()){let e=xv.getOffsetParent;xv.getOffsetParent=t=>e(t,JO)}})();rR=async(e,{referenceEl:t,floatingEl:r,overlayPositioning:n="absolute",placement:i,flipDisabled:o,flipPlacements:s,offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})=>{if(!t||!r)return;let g=Wc(r)==="rtl",{x:v,y:E,placement:P,strategy:A,middlewareData:F}=await CO(t,r,{strategy:n,placement:i==="auto"||i==="auto-start"||i==="auto-end"?void 0:eR(i,g),middleware:kX({placement:i,flipDisabled:o,flipPlacements:s?.map(j=>eR(j,g)),offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})});if(d&&F.arrow){let{x:j,y:G}=F.arrow,Y=P.split("-")[0],ie=j!=null?"left":"top",U=OX[Y],fe={left:"",top:"",bottom:"",right:""};"floatingLayout"in e&&(e.floatingLayout=Y==="left"||Y==="right"?"horizontal":"vertical"),Object.assign(d.style,{...fe,[ie]:`${ie=="left"?j:G}px`,[Y]:"100%",transform:U})}let W=F.hide?.referenceHidden?"hidden":null,z=W?"none":null;r.setAttribute(LX,P),Object.assign(r.style,{pointerEvents:z,position:A,transform:`translate(${QO(v)}px,${QO(E)}px)`,visibility:W})},LX="data-placement",KO=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],nR="bottom-end",CE={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active",arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"};OX={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},E1=new WeakMap,Cv=new WeakMap;tR=4,ME=Math.ceil(Math.hypot(tR,tR))});var lR,Tv,uR,od,Pv,Mv,RX,dR,pR,fR,Qc,DX,FX,mR,$X,VX,UX,zX,WX,BX,GX,cR,jX,qX,Av,IE,HX,ZX,hR,gR,sd,YX,Iv,wR=R(()=>{lR=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Tv=lR.join(","),uR=typeof Element>"u",od=uR?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Pv=!uR&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Mv=function e(t,r){var n;r===void 0&&(r=!0);var i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=i===""||i==="true",s=o||r&&t&&e(t.parentNode);return s},RX=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},dR=function(t,r,n){if(Mv(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Tv));return r&&od.call(t,Tv)&&i.unshift(t),i=i.filter(n),i},pR=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!Mv(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),a=c.length?c:s.children,d=e(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=od.call(s,Tv);h&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!Mv(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&v){var E=e(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,E):i.push({scopeParent:s,candidates:E})}else o.unshift.apply(o,s.children)}}return i},fR=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Qc=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||RX(t))&&!fR(t)?0:t.tabIndex},DX=function(t,r){var n=Qc(t);return n<0&&r&&!fR(t)?0:n},FX=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},mR=function(t){return t.tagName==="INPUT"},$X=function(t){return mR(t)&&t.type==="hidden"},VX=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},UX=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},zX=function(t){if(!t.name)return!0;var r=t.form||Pv(t),n=function(c){return r.querySelectorAll('input[type="radio"][name="'+c+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(t.name));else try{i=n(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=UX(i,t.form);return!o||o===t},WX=function(t){return mR(t)&&t.type==="radio"},BX=function(t){return WX(t)&&!zX(t)},GX=function(t){var r,n=t&&Pv(t),i=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==t){var s,c,a;for(o=!!((s=i)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(i)||t!=null&&(a=t.ownerDocument)!==null&&a!==void 0&&a.contains(t));!o&&i;){var d,h,g;n=Pv(i),i=(d=n)===null||d===void 0?void 0:d.host,o=!!((h=i)!==null&&h!==void 0&&(g=h.ownerDocument)!==null&&g!==void 0&&g.contains(i))}}return o},cR=function(t){var r=t.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},jX=function(t,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=od.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(od.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var c=t;t;){var a=t.parentElement,d=Pv(t);if(a&&!a.shadowRoot&&i(a)===!0)return cR(t);t.assignedSlot?t=t.assignedSlot:!a&&d!==t.ownerDocument?t=d.host:t=a}t=c}if(GX(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return cR(t);return!1},qX=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return od.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},Av=function(t,r){return!(r.disabled||Mv(r)||$X(r)||jX(r,t)||VX(r)||qX(r))},IE=function(t,r){return!(BX(r)||Qc(r)<0||!Av(t,r))},HX=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},ZX=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scopeParent,c=s?i.scopeParent:i,a=DX(c,s),d=s?e(i.candidates):c;a===0?s?r.push.apply(r,d):r.push(c):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(FX).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},hR=function(t,r){r=r||{};var n;return r.getShadowRoot?n=pR([t],r.includeContainer,{filter:IE.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:HX}):n=dR(t,r.includeContainer,IE.bind(null,r)),ZX(n)},gR=function(t,r){r=r||{};var n;return r.getShadowRoot?n=pR([t],r.includeContainer,{filter:Av.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=dR(t,r.includeContainer,Av.bind(null,r)),n},sd=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return od.call(t,Tv)===!1?!1:IE(r,t)},YX=lR.concat("iframe").join(","),Iv=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return od.call(t,YX)===!1?!1:Av(r,t)}});function LE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function JX(e){if(Array.isArray(e))return LE(e)}function XX(e,t,r){return(t=rQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
11
11
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yR(Object(r),!0).forEach(function(n){XX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eQ(e){return JX(e)||QX(e)||nQ(e)||KX()}function tQ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rQ(e){var t=tQ(e,"string");return typeof t=="symbol"?t:t+""}function nQ(e,t){if(e){if(typeof e=="string")return LE(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?LE(e,t):void 0}}var vR,iQ,oQ,T1,sQ,aQ,_R,C1,Lv,cQ,xR,SR=R(()=>{wR();vR={activateTrap:function(t,r){if(t.length>0){var n=t[t.length-1];n!==r&&n.pause()}var i=t.indexOf(r);i===-1||t.splice(i,1),t.push(r)},deactivateTrap:function(t,r){var n=t.indexOf(r);n!==-1&&t.splice(n,1),t.length>0&&t[t.length-1].unpause()}},iQ=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},oQ=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},T1=function(t){return t?.key==="Tab"||t?.keyCode===9},sQ=function(t){return T1(t)&&!t.shiftKey},aQ=function(t){return T1(t)&&t.shiftKey},_R=function(t){return setTimeout(t,0)},C1=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return typeof t=="function"?t.apply(void 0,n):t},Lv=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},cQ=[],xR=function(t,r){var n=r?.document||document,i=r?.trapStack||cQ,o=bR({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:sQ,isKeyBackward:aQ},r),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},c,a=function(le,J,ee){return le&&le[J]!==void 0?le[J]:o[ee||J]},d=function(le,J){var ee=typeof J?.composedPath=="function"?J.composedPath():void 0;return s.containerGroups.findIndex(function(pe){var de=pe.container,Se=pe.tabbableNodes;return de.contains(le)||ee?.includes(de)||Se.find(function(ye){return ye===le})})},h=function(le){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=J.hasFallback,pe=ee===void 0?!1:ee,de=J.params,Se=de===void 0?[]:de,ye=o[le];if(typeof ye=="function"&&(ye=ye.apply(void 0,eQ(Se))),ye===!0&&(ye=void 0),!ye){if(ye===void 0||ye===!1)return ye;throw new Error("`".concat(le,"` was specified but was not a node, or did not return a node"))}var Fe=ye;if(typeof ye=="string"){try{Fe=n.querySelector(ye)}catch(nt){throw new Error("`".concat(le,'` appears to be an invalid selector; error="').concat(nt.message,'"'))}if(!Fe&&!pe)throw new Error("`".concat(le,"` as selector refers to no known node"))}return Fe},g=function(){var le=h("initialFocus",{hasFallback:!0});if(le===!1)return!1;if(le===void 0||le&&!Iv(le,o.tabbableOptions))if(d(n.activeElement)>=0)le=n.activeElement;else{var J=s.tabbableGroups[0],ee=J&&J.firstTabbableNode;le=ee||h("fallbackFocus")}else le===null&&(le=h("fallbackFocus"));if(!le)throw new Error("Your focus-trap needs to have at least one focusable element");return le},v=function(){if(s.containerGroups=s.containers.map(function(le){var J=hR(le,o.tabbableOptions),ee=gR(le,o.tabbableOptions),pe=J.length>0?J[0]:void 0,de=J.length>0?J[J.length-1]:void 0,Se=ee.find(function(nt){return sd(nt)}),ye=ee.slice().reverse().find(function(nt){return sd(nt)}),Fe=!!J.find(function(nt){return Qc(nt)>0});return{container:le,tabbableNodes:J,focusableNodes:ee,posTabIndexesFound:Fe,firstTabbableNode:pe,lastTabbableNode:de,firstDomTabbableNode:Se,lastDomTabbableNode:ye,nextTabbableNode:function(Et){var Cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,dr=J.indexOf(Et);return dr<0?Cr?ee.slice(ee.indexOf(Et)+1).find(function(pr){return sd(pr)}):ee.slice(0,ee.indexOf(Et)).reverse().find(function(pr){return sd(pr)}):J[dr+(Cr?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(le){return le.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(le){return le.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},E=function(le){var J=le.activeElement;if(J)return J.shadowRoot&&J.shadowRoot.activeElement!==null?E(J.shadowRoot):J},P=function(le){if(le!==!1&&le!==E(document)){if(!le||!le.focus){P(g());return}le.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=le,iQ(le)&&le.select()}},A=function(le){var J=h("setReturnFocus",{params:[le]});return J||(J===!1?!1:le)},F=function(le){var J=le.target,ee=le.event,pe=le.isBackward,de=pe===void 0?!1:pe;J=J||Lv(ee),v();var Se=null;if(s.tabbableGroups.length>0){var ye=d(J,ee),Fe=ye>=0?s.containerGroups[ye]:void 0;if(ye<0)de?Se=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:Se=s.tabbableGroups[0].firstTabbableNode;else if(de){var nt=s.tabbableGroups.findIndex(function(Un){var Tn=Un.firstTabbableNode;return J===Tn});if(nt<0&&(Fe.container===J||Iv(J,o.tabbableOptions)&&!sd(J,o.tabbableOptions)&&!Fe.nextTabbableNode(J,!1))&&(nt=ye),nt>=0){var Et=nt===0?s.tabbableGroups.length-1:nt-1,Cr=s.tabbableGroups[Et];Se=Qc(J)>=0?Cr.lastTabbableNode:Cr.lastDomTabbableNode}else T1(ee)||(Se=Fe.nextTabbableNode(J,!1))}else{var dr=s.tabbableGroups.findIndex(function(Un){var Tn=Un.lastTabbableNode;return J===Tn});if(dr<0&&(Fe.container===J||Iv(J,o.tabbableOptions)&&!sd(J,o.tabbableOptions)&&!Fe.nextTabbableNode(J))&&(dr=ye),dr>=0){var pr=dr===s.tabbableGroups.length-1?0:dr+1,gi=s.tabbableGroups[pr];Se=Qc(J)>=0?gi.firstTabbableNode:gi.firstDomTabbableNode}else T1(ee)||(Se=Fe.nextTabbableNode(J))}}else Se=h("fallbackFocus");return Se},W=function(le){var J=Lv(le);if(!(d(J,le)>=0)){if(C1(o.clickOutsideDeactivates,le)){c.deactivate({returnFocus:o.returnFocusOnDeactivate});return}C1(o.allowOutsideClick,le)||le.preventDefault()}},z=function(le){var J=Lv(le),ee=d(J,le)>=0;if(ee||J instanceof Document)ee&&(s.mostRecentlyFocusedNode=J);else{le.stopImmediatePropagation();var pe,de=!0;if(s.mostRecentlyFocusedNode)if(Qc(s.mostRecentlyFocusedNode)>0){var Se=d(s.mostRecentlyFocusedNode),ye=s.containerGroups[Se].tabbableNodes;if(ye.length>0){var Fe=ye.findIndex(function(nt){return nt===s.mostRecentlyFocusedNode});Fe>=0&&(o.isKeyForward(s.recentNavEvent)?Fe+1<ye.length&&(pe=ye[Fe+1],de=!1):Fe-1>=0&&(pe=ye[Fe-1],de=!1))}}else s.containerGroups.some(function(nt){return nt.tabbableNodes.some(function(Et){return Qc(Et)>0})})||(de=!1);else de=!1;de&&(pe=F({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),P(pe||s.mostRecentlyFocusedNode||g())}s.recentNavEvent=void 0},j=function(le){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=le;var ee=F({event:le,isBackward:J});ee&&(T1(le)&&le.preventDefault(),P(ee))},G=function(le){(o.isKeyForward(le)||o.isKeyBackward(le))&&j(le,o.isKeyBackward(le))},Y=function(le){oQ(le)&&C1(o.escapeDeactivates,le)!==!1&&(le.preventDefault(),c.deactivate())},ie=function(le){var J=Lv(le);d(J,le)>=0||C1(o.clickOutsideDeactivates,le)||C1(o.allowOutsideClick,le)||(le.preventDefault(),le.stopImmediatePropagation())},U=function(){if(s.active)return vR.activateTrap(i,c),s.delayInitialFocusTimer=o.delayInitialFocus?_R(function(){P(g())}):P(g()),n.addEventListener("focusin",z,!0),n.addEventListener("mousedown",W,{capture:!0,passive:!1}),n.addEventListener("touchstart",W,{capture:!0,passive:!1}),n.addEventListener("click",ie,{capture:!0,passive:!1}),n.addEventListener("keydown",G,{capture:!0,passive:!1}),n.addEventListener("keydown",Y),c},fe=function(){if(s.active)return n.removeEventListener("focusin",z,!0),n.removeEventListener("mousedown",W,!0),n.removeEventListener("touchstart",W,!0),n.removeEventListener("click",ie,!0),n.removeEventListener("keydown",G,!0),n.removeEventListener("keydown",Y),c},Ae=function(le){var J=le.some(function(ee){var pe=Array.from(ee.removedNodes);return pe.some(function(de){return de===s.mostRecentlyFocusedNode})});J&&P(g())},Ee=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Ae):void 0,Ne=function(){Ee&&(Ee.disconnect(),s.active&&!s.paused&&s.containers.map(function(le){Ee.observe(le,{subtree:!0,childList:!0})}))};return c={get active(){return s.active},get paused(){return s.paused},activate:function(le){if(s.active)return this;var J=a(le,"onActivate"),ee=a(le,"onPostActivate"),pe=a(le,"checkCanFocusTrap");pe||v(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement,J?.();var de=function(){pe&&v(),U(),Ne(),ee?.()};return pe?(pe(s.containers.concat()).then(de,de),this):(de(),this)},deactivate:function(le){if(!s.active)return this;var J=bR({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},le);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,fe(),s.active=!1,s.paused=!1,Ne(),vR.deactivateTrap(i,c);var ee=a(J,"onDeactivate"),pe=a(J,"onPostDeactivate"),de=a(J,"checkCanReturnFocus"),Se=a(J,"returnFocus","returnFocusOnDeactivate");ee?.();var ye=function(){_R(function(){Se&&P(A(s.nodeFocusedBeforeActivation)),pe?.()})};return Se&&de?(de(A(s.nodeFocusedBeforeActivation)).then(ye,ye),this):(ye(),this)},pause:function(le){if(s.paused||!s.active)return this;var J=a(le,"onPause"),ee=a(le,"onPostPause");return s.paused=!0,J?.(),fe(),Ne(),ee?.(),this},unpause:function(le){if(!s.paused||!s.active)return this;var J=a(le,"onUnpause"),ee=a(le,"onPostUnpause");return s.paused=!1,J?.(),v(),U(),Ne(),ee?.(),this},updateContainerElements:function(le){var J=[].concat(le).filter(Boolean);return s.containers=J.map(function(ee){return typeof ee=="string"?n.querySelector(ee):ee}),s.active&&v(),Ne(),this}},c.updateContainerElements(t),c}});function kv(e,t){let{el:r}=e,n=t?.focusTrapEl||r;if(!n)return;let i={fallbackFocus:n,setReturnFocus:o=>(Qb(o),!1),...t?.focusTrapOptions,document:r.ownerDocument,tabbableOptions:H5,trapStack:Ak};e.focusTrap=xR(n,i)}function P1(e,t){e.focusTrapDisabled||e.focusTrap?.activate(t)}function ad(e,t){e.focusTrap?.deactivate(t)}function Nv(e){e.focusTrap?.updateContainerElements(e.el)}var kE=R(()=>{SR();Sn();ar();});function ER(e){return"opened"in e?e.opened:e.open}function Kc(e){requestAnimationFrame(()=>{e.transitionEl&&uN(e.transitionEl,e.openTransitionProp,()=>{ER(e)?e.onBeforeOpen():e.onBeforeClose()},()=>{ER(e)?e.onOpen():e.onClose()})})}var Ov=R(()=>{Sn();});var Rv,NE=R(()=>{Yc();nv();Dr();Rv=({children:e,...t})=>{let r=t.level?bN(`h${t.level}`):qc`div`;return cr(t.key,dm`<${r} class=${_e(t.class)}>${e}</${r}>`)}});var CR,lQ,TR,PR=R(()=>{Vo();Yc();Rr();Dr();CR={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},lQ={width:12,height:6,strokeWidth:1},TR=({floatingLayout:e,key:t,ref:r})=>{let{width:n,height:i,strokeWidth:o}=lQ,s=n/2,c=e==="vertical",a=`M0,0 H${n} L${n-s},${i} Q${s},${i} ${s},${i} Z`;return cr(t,xe`<svg aria-hidden=true class=${_e(CR.arrow)} height=${n??Re} viewBox=${`0 0 ${n} ${n+(c?0:o)}`} width=${n+(c?o:0)} ${At(r)}>${_s`${o>0&&_s`<path class=${_e(CR.arrowStroke)} d=${a??Re} fill=none stroke-width=${o+1} />`||""}<path d=${a??Re} stroke=none />`}</svg>`)}});function Dv(e){return e==="Enter"||e===" "}var M1,A1=R(()=>{M1=["0","1","2","3","4","5","6","7","8","9"]});var OE,jo,MR,AR,IR,uQ,LR,Fv,RE,kR=R(()=>{ar();Yc();Ki();Vo();Dr();AE();kE();Sn();lm();Ov();NE();ha();jc();PR();mm();xs();A1();_n();OE=class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=t=>{let{registeredElements:r}=this,n=t.find(i=>r.has(i));return r.get(n)},this.togglePopovers=t=>{let r=t.composedPath(),n=this.queryPopover(r);n&&!n.triggerDisabled&&(n.open=!n.open),Array.from(this.registeredElements.values()).filter(i=>i!==n&&i.autoClose&&i.open&&!r.includes(i)).forEach(i=>i.open=!1)},this.keyDownHandler=t=>{t.defaultPrevented||(t.key==="Escape"?this.closeAllPopovers():Dv(t.key)&&this.togglePopovers(t))},this.clickHandler=t=>{cN(t)||this.togglePopovers(t)}}registerElement(t,r){this.registeredElementCount++,this.registeredElements.set(t,r),this.registeredElementCount===1&&this.addListeners()}unregisterElement(t){this.registeredElements.delete(t)&&this.registeredElementCount--,this.registeredElementCount===0&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach(t=>t.open=!1)}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}},jo={positionContainer:"position-container",container:"container",imageContainer:"image-container",closeButtonContainer:"close-button-container",closeButton:"close-button",content:"content",hasHeader:"has-header",header:"header",headerContainer:"headerContainer",headerContent:"header-content",heading:"heading"},MR="auto",AR="aria-controls",IR="aria-expanded",uQ=Dt`:host{position:relative;display:block;--calcite-floating-ui-z-index: var(--calcite-popover-z-index, var(--calcite-z-index-popup))}.position-container{display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.position-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.position-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.position-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.position-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.position-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.position-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}:host([scale=s]) .heading{padding-inline:.75rem;padding-block:.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.375}.position-container .calcite-floating-ui-anim{border-width:1px;border-style:solid;background-color:var(--calcite-popover-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-popover-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-popover-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.heading{margin:0;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:.25rem;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));--calcite-action-corner-radius-start-end: var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp));--calcite-action-corner-radius-end-end: var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp))}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}:host([hidden]){display:none}[hidden]{display:none}`,LR=new OE,Fv=class Fv extends $t{constructor(){super(...arguments),this.clickOutsideDeactivates=t=>{let r=t.composedPath(),n=this.referenceEl instanceof EventTarget&&r.includes(this.referenceEl),i=!r.includes(this.el);return this.autoClose&&i&&(this.triggerDisabled||n&&!this.autoClose)},this.closeButtonEl=Li(),this.focusTrapDeactivates=()=>{this.open=!1},this.guid=`calcite-popover-${fa()}`,this.hasLoaded=!1,this.mutationObserver=Zn("mutation",()=>this.updateFocusTrapElements()),this.openTransitionProp="opacity",this.floatingLayout="vertical",this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.messages=pn(),this.offsetDistance=ME,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=MR,this.pointerDisabled=!1,this.scale="m",this.triggerDisabled=!1,this.calcitePopoverBeforeClose=Ft({cancelable:!1}),this.calcitePopoverBeforeOpen=Ft({cancelable:!1}),this.calcitePopoverClose=Ft({cancelable:!1}),this.calcitePopoverOpen=Ft({cancelable:!1})}async reposition(t=!1){let{referenceEl:r,placement:n,overlayPositioning:i,flipDisabled:o,filteredFlipPlacements:s,offsetDistance:c,offsetSkidding:a,arrowEl:d,floatingEl:h}=this;return oR(this,{floatingEl:h,referenceEl:r,overlayPositioning:i,placement:n,flipDisabled:o,flipPlacements:s,offsetDistance:c,offsetSkidding:a,arrowEl:d,type:"popover"},t)}async setFocus(){await $n(this),this.requestUpdate(),Gc(this.el)}async updateFocusTrapElements(){Nv(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),kv(this,{focusTrapEl:this.el,focusTrapOptions:{allowOutsideClick:!0,clickOutsideDeactivates:this.clickOutsideDeactivates,initialFocus:this.initialFocusTrapFocus,onDeactivate:this.focusTrapDeactivates}}),requestAnimationFrame(()=>this.setUpReferenceElement(this.hasLoaded))}async load(){Dn(this)}willUpdate(t){t.has("focusTrapDisabled")&&(this.hasUpdated||this.focusTrapDisabled!==!1)&&this.handleFocusTrapDisabled(this.focusTrapDisabled),t.has("flipPlacements")&&this.flipPlacementsHandler(),t.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),(t.has("offsetDistance")&&(this.hasUpdated||this.offsetDistance!==ME)||t.has("offsetSkidding")&&(this.hasUpdated||this.offsetSkidding!==0)||t.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||t.has("placement")&&(this.hasUpdated||this.placement!==MR))&&this.reposition(!0),t.has("referenceElement")&&this.referenceElementHandler()}loaded(){Fn(this),this.referenceElement&&!this.referenceEl&&this.setUpReferenceElement(),this.open&&Kc(this),this.hasLoaded=!0}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.removeReferences(),PE(this),ad(this)}handleFocusTrapDisabled(t){this.open&&(t?ad(this):P1(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}openHandler(){Kc(this),this.reposition(!0),this.setExpandedAttr()}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}setFloatingEl(t){this.floatingEl=t,requestAnimationFrame(()=>this.setUpReferenceElement())}setTransitionEl(t){this.transitionEl=t}setFilteredPlacements(){let{el:t,flipPlacements:r}=this;this.filteredFlipPlacements=r?iR(r,t):null}setUpReferenceElement(t=!0){this.removeReferences(),this.referenceEl=this.getReferenceElement(),aR(this);let{el:r,referenceElement:n,referenceEl:i}=this;t&&n&&!i&&console.warn(`${r.tagName}: reference-element id "${n}" was not found.`,{el:r}),this.addReferences()}getId(){return this.el.id||this.guid}setExpandedAttr(){let{referenceEl:t,open:r}=this;t&&"setAttribute"in t&&t.setAttribute(IR,Xu(r))}addReferences(){let{referenceEl:t}=this;if(!t)return;let r=this.getId();"setAttribute"in t&&t.setAttribute(AR,r),LR.registerElement(t,this.el),this.setExpandedAttr()}removeReferences(){let{referenceEl:t}=this;t&&("removeAttribute"in t&&(t.removeAttribute(AR),t.removeAttribute(IR)),LR.unregisterElement(t))}getReferenceElement(){let{referenceElement:t,el:r}=this;return(typeof t=="string"?Ju(r,{id:t}):t)||null}hide(){this.open=!1}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),P1(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),TE(this),ad(this)}storeArrowEl(t){this.arrowEl=t,this.reposition(!0)}renderCloseButton(){let{messages:t,closable:r}=this;return r?cr(jo.closeButtonContainer,xe`<div class=${_e(jo.closeButtonContainer)}><calcite-action appearance=transparent class=${_e(jo.closeButton)} @click=${this.hide} .scale=${this.scale} .text=${t.close} ${At(this.closeButtonEl)}><calcite-icon icon=x .scale=${Yn(this.scale)}></calcite-icon></calcite-action></div>`):null}renderHeader(){let{heading:t,headingLevel:r}=this,n=t?Rv({class:jo.heading,level:r,children:t}):null;return n?cr(jo.header,xe`<div class=${_e(jo.header)}>${n}${this.renderCloseButton()}</div>`):null}render(){let{referenceEl:t,heading:r,label:n,open:i,pointerDisabled:o,floatingLayout:s}=this,c=t&&i,a=!c,d=o?null:cr("floating-arrow",TR({floatingLayout:s,ref:this.storeArrowEl}));return this.el.ariaHidden=Xu(a),this.el.ariaLabel=n,this.el.ariaLive="polite",am(this.el,"id",this.getId()),this.el.role="dialog",xe`<div class=${_e(jo.positionContainer)} ${At(this.setFloatingEl)}><div class=${_e({[jo.container]:!0,[CE.animation]:!0,[CE.animationActive]:c})} ${At(this.setTransitionEl)}>${d}<div class=${_e({[jo.hasHeader]:!!r,[jo.headerContainer]:!0})}>${this.renderHeader()}<div class=${_e(jo.content)}><slot></slot></div>${r?null:this.renderCloseButton()}</div></div></div>`}};Fv.properties={floatingLayout:16,referenceEl:16,autoClose:7,closable:7,flipDisabled:7,flipPlacements:0,focusTrapDisabled:7,heading:1,headingLevel:11,initialFocusTrapFocus:5,label:1,messageOverrides:0,offsetDistance:11,offsetSkidding:11,open:7,overlayPositioning:3,placement:3,pointerDisabled:7,referenceElement:1,scale:3,triggerDisabled:7},Fv.styles=uQ;RE=Fv;Gt("calcite-popover",RE)});var NR=R(()=>{mv();Qu();kR()});function DE(e,t){return(e+t)%t}var OR=R(()=>{});var FE,I1,RR,DR,$E=R(()=>{FE={menu:"menu",defaultTrigger:"default-trigger"},I1={tooltip:"tooltip",trigger:"trigger"},RR={menu:"ellipsis"},DR="data-active"});var dQ,pQ,$v,VE,FR=R(()=>{ar();Vo();Ki();Dr();OR();Sn();lm();A1();ha();$E();_n();dQ=Dt`:host{box-sizing:border-box;display:flex;flex-direction:column;font-size:var(--calcite-font-size-1)}::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{display:flex;max-block-size:45vh;flex-direction:column;flex-wrap:nowrap;overflow-y:auto;overflow-x:hidden;outline:2px solid transparent;outline-offset:2px;gap:var(--calcite-action-menu-items-space, 0)}:host([hidden]){display:none}[hidden]{display:none}`,pQ=["ArrowUp","ArrowDown","End","Home"],$v=class $v extends $t{constructor(){super(...arguments),this.guid=`calcite-action-menu-${fa()}`,this.actionElements=[],this.menuButtonClick=()=>{this.toggleOpen()},this.menuButtonId=`${this.guid}-menu-button`,this.menuButtonKeyDown=t=>{let{key:r}=t,{actionElements:n,activeMenuItemIndex:i,open:o}=this;if(n.length){if(Dv(r)){if(t.preventDefault(),!o){this.toggleOpen();return}let s=n[i];s?s.click():this.toggleOpen(!1)}if(r==="Tab"){this.open=!1;return}if(r==="Escape"){this.toggleOpen(!1),t.preventDefault();return}this.handleActionNavigation(t,r,n)}},this.menuId=`${this.guid}-menu`,this._open=!1,this.updateAction=(t,r)=>{let{guid:n,activeMenuItemIndex:i}=this,o=`${n}-action-${r}`;t.tabIndex=-1,t.setAttribute("role","menuitem"),t.id||(t.id=o),t.toggleAttribute(DR,r===i)},this.activeMenuItemIndex=-1,this.appearance="solid",this.expanded=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale="m",this.calciteActionMenuOpen=Ft({cancelable:!1})}get open(){return this._open}set open(t){let r=this._open;t!==r&&(this._open=t,this.openHandler(t))}async setFocus(){return await $n(this),Qb(this.menuButtonEl)}connectedCallback(){super.connectedCallback(),this.connectMenuButtonEl()}load(){Dn(this)}willUpdate(t){t.has("expanded")&&(this.hasUpdated||this.expanded!==!1)&&this.expandedHandler(),t.has("activeMenuItemIndex")&&(this.hasUpdated||this.activeMenuItemIndex!==-1)&&this.updateActions(this.actionElements)}loaded(){Fn(this)}disconnectedCallback(){super.disconnectedCallback(),this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(t){this.menuButtonEl&&(this.menuButtonEl.active=t),this.popoverEl&&(this.popoverEl.open=t),this.activeMenuItemIndex=this.open?0:-1,this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}connectMenuButtonEl(){let{menuButtonId:t,menuId:r,open:n,label:i}=this,o=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==o&&(this.disconnectMenuButtonEl(),this.menuButtonEl=o,this.setTooltipReferenceElement(),o&&(o.active=n,o.setAttribute("aria-controls",r),o.setAttribute("aria-expanded",Xu(n)),o.setAttribute("aria-haspopup","true"),o.id||(o.id=t),o.label||(o.label=i),o.text||(o.text=i),o.addEventListener("click",this.menuButtonClick),o.addEventListener("keydown",this.menuButtonKeyDown)))}disconnectMenuButtonEl(){let{menuButtonEl:t}=this;t&&(t.removeEventListener("click",this.menuButtonClick),t.removeEventListener("keydown",this.menuButtonKeyDown))}setMenuButtonEl(t){let r=t.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-action"));this.slottedMenuButtonEl=r[0],this.connectMenuButtonEl()}setDefaultMenuButtonEl(t){this.defaultMenuButtonEl=t,this.connectMenuButtonEl()}setPopoverEl(t){t&&(this.popoverEl=t,t.open=this.open)}handleCalciteActionClick(){this.open=!1,this.setFocus()}updateTooltip(t){let r=t.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-tooltip"));this.tooltipEl=r[0],this.setTooltipReferenceElement()}setTooltipReferenceElement(){let{tooltipEl:t,expanded:r,menuButtonEl:n,open:i}=this;t&&(t.referenceElement=!r&&!i?n:null)}updateActions(t){t?.forEach(this.updateAction)}handleDefaultSlotChange(t){let r=t.target.assignedElements({flatten:!0}).reduce((n,i)=>i?.matches("calcite-action")?(n.push(i),n):i?.matches("calcite-action-group")?n.concat(Array.from(i.querySelectorAll("calcite-action"))):n,[]);this.actionElements=r.filter(n=>!n.disabled&&!n.hidden)}isValidKey(t,r){return!!r.find(n=>n===t)}handleActionNavigation(t,r,n){if(!this.isValidKey(r,pQ))return;if(t.preventDefault(),!this.open){this.toggleOpen(),(r==="Home"||r==="ArrowDown")&&(this.activeMenuItemIndex=0),(r==="End"||r==="ArrowUp")&&(this.activeMenuItemIndex=n.length-1);return}r==="Home"&&(this.activeMenuItemIndex=0),r==="End"&&(this.activeMenuItemIndex=n.length-1);let i=this.activeMenuItemIndex;r==="ArrowUp"&&(this.activeMenuItemIndex=DE(Math.max(i-1,-1),n.length)),r==="ArrowDown"&&(this.activeMenuItemIndex=DE(i+1,n.length))}toggleOpen(t=!this.open){this.open=t}handlePopoverOpen(){this.open=!0,this.setFocus()}handlePopoverClose(){this.open=!1}renderMenuButton(){let{appearance:t,label:r,scale:n,expanded:i}=this;return xe`<slot name=${I1.trigger} @slotchange=${this.setMenuButtonEl}><calcite-action .appearance=${t} class=${_e(FE.defaultTrigger)} .icon=${RR.menu} .scale=${n} .text=${r} .textEnabled=${i} ${At(this.setDefaultMenuButtonEl)}></calcite-action></slot>`}renderMenuItems(){let{actionElements:t,activeMenuItemIndex:r,menuId:n,menuButtonEl:i,label:o,placement:s,overlayPositioning:c,flipPlacements:a}=this,d=t[r]?.id||null;return xe`<calcite-popover auto-close .flipPlacements=${a} focus-trap-disabled .label=${o} offset-distance=0 @calcitePopoverClose=${this.handlePopoverClose} @calcitePopoverOpen=${this.handlePopoverOpen} .overlayPositioning=${c} .placement=${s} pointer-disabled .referenceElement=${i} trigger-disabled ${At(this.setPopoverEl)}><div aria-activedescendant=${d??Re} aria-labelledby=${i?.id??Re} class=${_e(FE.menu)} id=${n??Re} @click=${this.handleCalciteActionClick} role=menu tabindex=-1><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></calcite-popover>`}render(){return xe`${this.renderMenuButton()}${this.renderMenuItems()}<slot name=${I1.tooltip} @slotchange=${this.updateTooltip}></slot>`}};$v.properties={activeMenuItemIndex:16,menuButtonEl:16,appearance:3,expanded:7,flipPlacements:0,label:1,open:7,overlayPositioning:3,placement:3,scale:3},$v.styles=dQ;VE=$v;Gt("calcite-action-menu",VE)});var $R=R(()=>{mv();NR();FR()});var lr,UE,L1,Zt,zE=R(()=>{lr={actionBarContainer:"action-bar-container",backButton:"back-button",container:"container",contentBottom:"content-bottom",contentTop:"content-top",header:"header",headerContainer:"header-container",headerContainerBorderEnd:"header-container--border-end",heading:"heading",summary:"summary",description:"description",headerContent:"header-content",headerActions:"header-actions",headerActionsEnd:"header-actions--end",headerActionsStart:"header-actions--start",contentWrapper:"content-wrapper",fabContainer:"fab-container",footer:"footer",footerContent:"footer-content",footerActions:"footer-actions",footerStart:"footer-start",footerEnd:"footer-end",headerSlottedContent:"header-slotted-content"},UE={close:"close",collapse:"collapse"},L1={close:"x",menu:"ellipsis",backLeft:"chevron-left",backRight:"chevron-right",expand:"chevron-down",collapse:"chevron-up"},Zt={actionBar:"action-bar",alerts:"alerts",contentBottom:"content-bottom",contentTop:"content-top",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerEnd:"footer-end",footerStart:"footer-start",footerActions:"footer-actions"}});var fQ,Vv,WE,VR=R(()=>{ar();Yc();Vo();Ki();Dr();Sn();u1();ha();jc();$E();NE();AE();xs();zE();_n();fQ=Dt`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height: calc(var(--calcite-icon-size) * 3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{margin:0;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0;padding:0;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:.5rem}:host([scale=s]){--calcite-internal-panel-default-space: var(--calcite-spacing-sm);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-sm-plus)}:host([scale=s]) .header-content .heading{font-size:var(--calcite-font-size--1)}:host([scale=s]) .header-content .description{font-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-internal-panel-default-space: var(--calcite-spacing-md);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-md-plus)}:host([scale=m]) .header-content .heading{font-size:var(--calcite-font-size-0)}:host([scale=m]) .header-content .description{font-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-internal-panel-default-space: var(--calcite-spacing-lg);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-xl)}:host([scale=l]) .header-content .heading{font-size:var(--calcite-font-size-1)}:host([scale=l]) .header-content .description{font-size:var(--calcite-font-size-0)}.content-top,.content-bottom{display:flex;align-items:flex-start;align-self:stretch;padding:var(--calcite-internal-panel-default-space);border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));background-color:var(--calcite-panel-background-color, var(--calcite-color-foreground-1))}.container{position:relative;margin:0;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;overflow:hidden;background-color:var(--calcite-color-background);padding:0;color:var(--calcite-color-text-2);transition:max-block-size var(--calcite-animation-timing),inline-size var(--calcite-animation-timing);border-radius:var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none));box-sizing:border-box;font-size:var(--calcite-font-size--1)}.container *{box-sizing:border-box}.container[hidden]{display:none}.header{z-index:var(--calcite-z-index-header);display:flex;flex-direction:column;border-radius:var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) 0 0;background-color:var(--calcite-panel-header-background-color, var(--calcite-color-foreground-1));border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-panel-header-border-block-end, var(--calcite-color-border-3)))}.header-container{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3))}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:.75rem;padding-block:.875rem;margin-inline-end:auto;justify-content:center}.header-content .heading,.header-content .description{display:block;flex:none;overflow-wrap:break-word;padding:0;line-height:var(--calcite-font-line-height-relative-snug)}.header-content .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{color:var(--calcite-panel-description-text-color, var(--calcite-color-text-2))}.back-button{border-width:0px;border-style:solid;border-inline-end-width:1px;border-color:var(--calcite-panel-border-color, var(--calcite-color-border-3))}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{margin-inline-start:auto}#close:last-child,#collapse:last-child,calcite-action-menu:last-child{--calcite-action-corner-radius-start-end: var(--calcite-panel-corner-radius)}.back-button{--calcite-action-corner-radius-start-start: var(--calcite-panel-corner-radius)}.content-wrapper{position:relative;display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;color:var(--calcite-color-text-2);outline-color:transparent;padding:var(--calcite-panel-space, var(--calcite-panel-content-space, 0));background:var(--calcite-panel-background-color, var(--calcite-color-background))}.content-wrapper:focus-visible{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.header-content{flex:1 1 auto;justify-content:center;padding-block:var(--calcite-internal-panel-header-vertical-padding);padding-inline:var(--calcite-internal-panel-default-space)}.header-content.header-slotted-content{padding:var(--calcite-panel-header-content-space, var(--calcite-internal-panel-header-vertical-padding) var(--calcite-internal-panel-default-space))}.footer{margin-block-start:auto;display:flex;flex-direction:row;align-content:space-between;align-items:center;justify-content:center;font-size:var(--calcite-font-size--2);line-height:1.375;border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));padding:var(--calcite-panel-footer-space, var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-space)));background-color:var(--calcite-panel-footer-background-color, var(--calcite-color-foreground-1));border-radius:0 0 var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none))}.footer-content{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:center}.footer-actions{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:space-evenly;gap:var(--calcite-internal-panel-default-space)}.footer-start{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-start;margin-inline-end:auto;gap:var(--calcite-internal-panel-default-space)}.footer-end{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-end;margin-inline-start:auto;gap:var(--calcite-internal-panel-default-space)}.fab-container{position:sticky;inset-block-end:0px;z-index:var(--calcite-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:.5rem;inset-inline:0;inline-size:fit-content}:host([hidden]){display:none}[hidden]{display:none}`,Vv=class Vv extends $t{constructor(){super(),this.resizeObserver=Zn("resize",()=>this.resizeHandler()),this.hasActionBar=!1,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasEndActions=!1,this.hasFab=!1,this.hasFooterActions=!1,this.hasFooterContent=!1,this.hasFooterEndContent=!1,this.hasFooterStartContent=!1,this.hasHeaderContent=!1,this.hasMenuItems=!1,this.hasStartActions=!1,this.isClosed=!1,this.showHeaderContent=!1,this.closable=!1,this.closed=!1,this.collapseDirection="down",this.collapsed=!1,this.collapsible=!1,this.disabled=!1,this.loading=!1,this.menuOpen=!1,this.menuPlacement=nR,this.messages=pn(),this.overlayPositioning="absolute",this.scale="m",this.calcitePanelClose=Ft({cancelable:!1}),this.calcitePanelScroll=Ft({cancelable:!1}),this.calcitePanelToggle=Ft({cancelable:!1}),this.listen("keydown",this.panelKeyDownHandler)}async scrollContentTo(t){this.panelScrollEl?.scrollTo(t)}async setFocus(){await $n(this),Gc(this.containerEl)}async load(){Dn(this),this.isClosed=this.closed}willUpdate(t){t.has("closed")&&this.hasUpdated&&(this.closed?this.close():this.open())}updated(){Hc(this)}loaded(){Fn(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}resizeHandler(){let{panelScrollEl:t}=this;!t||typeof t.scrollHeight!="number"||typeof t.offsetHeight!="number"||(t.scrollHeight>t.offsetHeight?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex"))}setContainerRef(t){this.containerEl=t}panelKeyDownHandler(t){this.closable&&t.key==="Escape"&&!t.defaultPrevented&&(this.handleUserClose(),t.preventDefault())}handleUserClose(){this.closed=!0,this.calcitePanelClose.emit()}open(){this.isClosed=!1}async close(){let t=this.beforeClose??(()=>Promise.resolve());try{await t()}catch{requestAnimationFrame(()=>{this.closed=!1});return}this.isClosed=!0}collapse(){this.collapsed=!this.collapsed,this.calcitePanelToggle.emit()}panelScrollHandler(){this.calcitePanelScroll.emit()}handleHeaderActionsStartSlotChange(t){this.hasStartActions=Hn(t)}handleHeaderActionsEndSlotChange(t){this.hasEndActions=Hn(t)}handleHeaderMenuActionsSlotChange(t){this.hasMenuItems=Hn(t)}handleActionBarSlotChange(t){let r=Kb(t).filter(n=>n?.matches("calcite-action-bar"));r.forEach(n=>n.layout="horizontal"),this.hasActionBar=!!r.length}handleHeaderContentSlotChange(t){this.hasHeaderContent=Hn(t)}handleFabSlotChange(t){this.hasFab=Hn(t)}handleFooterActionsSlotChange(t){this.hasFooterActions=Hn(t)}handleFooterEndSlotChange(t){this.hasFooterEndContent=Hn(t)}handleFooterStartSlotChange(t){this.hasFooterStartContent=Hn(t)}handleFooterSlotChange(t){this.hasFooterContent=Hn(t)}contentBottomSlotChangeHandler(t){this.hasContentBottom=Hn(t)}contentTopSlotChangeHandler(t){this.hasContentTop=Hn(t)}setPanelScrollEl(t){this.panelScrollEl=t,this.resizeObserver?.disconnect(),t&&(this.resizeObserver?.observe(t),this.resizeHandler())}handleAlertsSlotChange(t){Kb(t)?.map(r=>{r.nodeName==="CALCITE-ALERT"&&(r.embedded=!0)})}renderHeaderContent(){let{heading:t,headingLevel:r,description:n,hasHeaderContent:i}=this,o=t?Rv({class:lr.heading,level:r,children:t}):null,s=n?xe`<span class=${_e(lr.description)}>${n}</span>`:null;return!i&&(o||s)?cr("header-content",xe`<div class=${_e(lr.headerContent)}>${o}${s}</div>`):null}renderActionBar(){return xe`<div class=${_e(lr.actionBarContainer)} .hidden=${!this.hasActionBar}><slot name=${Zt.actionBar} @slotchange=${this.handleActionBarSlotChange}></slot></div>`}renderHeaderSlottedContent(){return cr("slotted-header-content",xe`<div class=${_e({[lr.headerContent]:!0,[lr.headerSlottedContent]:!0})} .hidden=${!this.hasHeaderContent}><slot name=${Zt.headerContent} @slotchange=${this.handleHeaderContentSlotChange}></slot></div>`)}renderHeaderStartActions(){let{hasStartActions:t}=this;return cr("header-actions-start",xe`<div class=${_e({[lr.headerActionsStart]:!0,[lr.headerActions]:!0})} .hidden=${!t}><slot name=${Zt.headerActionsStart} @slotchange=${this.handleHeaderActionsStartSlotChange}></slot></div>`)}renderHeaderActionsEnd(){let{hasEndActions:t,messages:r,closable:n,collapsed:i,collapseDirection:o,collapsible:s,hasMenuItems:c}=this,{collapse:a,expand:d,close:h}=r,g=[L1.expand,L1.collapse];o==="up"&&g.reverse();let v=s?xe`<calcite-action .ariaExpanded=${!i} .ariaLabel=${a} .icon=${i?g[0]:g[1]} id=${UE.collapse} @click=${this.collapse} .scale=${this.scale} .text=${a} title=${(i?d:a)??Re}></calcite-action>`:null,E=n?xe`<calcite-action .ariaLabel=${h} .icon=${L1.close} id=${UE.close} @click=${this.handleUserClose} .scale=${this.scale} .text=${h} title=${h??Re}></calcite-action>`:null,P=xe`<slot name=${Zt.headerActionsEnd} @slotchange=${this.handleHeaderActionsEndSlotChange}></slot>`,A=t||v||E||c;return cr("header-actions-end",xe`<div class=${_e({[lr.headerActionsEnd]:!0,[lr.headerActions]:!0})} .hidden=${!A}>${P}${this.renderMenu()}${v}${E}</div>`)}renderMenu(){let{hasMenuItems:t,messages:r,menuOpen:n,menuFlipPlacements:i,menuPlacement:o}=this;return cr("menu",xe`<calcite-action-menu .flipPlacements=${i??["top","bottom"]} .hidden=${!t} .label=${r.options} .open=${n} .overlayPositioning=${this.overlayPositioning} .placement=${o}><calcite-action .icon=${L1.menu} .scale=${this.scale} slot=${I1.trigger} .text=${r.options}></calcite-action><slot name=${Zt.headerMenuActions} @slotchange=${this.handleHeaderMenuActionsSlotChange}></slot></calcite-action-menu>`)}renderHeaderNode(){let{hasHeaderContent:t,hasStartActions:r,hasEndActions:n,closable:i,collapsible:o,hasMenuItems:s,hasActionBar:c}=this,a=this.renderHeaderContent(),d=t||!!a||r||n||o||i||s;return this.showHeaderContent=d,xe`<header class=${_e(lr.header)} .hidden=${!(d||c)}><div class=${_e({[lr.headerContainer]:!0,[lr.headerContainerBorderEnd]:c})} .hidden=${!d}>${this.renderHeaderStartActions()}${this.renderHeaderSlottedContent()}${a}${this.renderHeaderActionsEnd()}</div>${this.renderActionBar()}${this.renderContentTop()}</header>`}renderFooterNode(){let{hasFooterEndContent:t,hasFooterStartContent:r,hasFooterContent:n,hasFooterActions:i}=this,o=r||t||n||i;return xe`<footer class=${_e(lr.footer)} .hidden=${!o}><div class=${_e(lr.footerContent)} .hidden=${!n}><slot name=${Zt.footer} @slotchange=${this.handleFooterSlotChange}></slot></div><div class=${_e(lr.footerStart)} .hidden=${n||!r}><slot name=${Zt.footerStart} @slotchange=${this.handleFooterStartSlotChange}></slot></div><div class=${_e(lr.footerEnd)} .hidden=${n||!t}><slot name=${Zt.footerEnd} @slotchange=${this.handleFooterEndSlotChange}></slot></div><div class=${_e(lr.footerActions)} .hidden=${n||!i}>${cr("footer-actions-slot",xe`<slot name=${Zt.footerActions} @slotchange=${this.handleFooterActionsSlotChange}></slot>`)}</div></footer>`}renderContent(){return xe`<div class=${_e(lr.contentWrapper)} .hidden=${this.collapsible&&this.collapsed} @scroll=${this.panelScrollHandler} ${At(this.setPanelScrollEl)}><slot></slot>${this.renderFab()}</div>`}renderContentBottom(){return xe`<div class=${_e(lr.contentBottom)} .hidden=${!this.hasContentBottom}><slot name=${Zt.contentBottom} @slotchange=${this.contentBottomSlotChangeHandler}></slot></div>`}renderContentTop(){return xe`<div class=${_e(lr.contentTop)} .hidden=${!this.hasContentTop}><slot name=${Zt.contentTop} @slotchange=${this.contentTopSlotChangeHandler}></slot></div>`}renderFab(){return xe`<div class=${_e(lr.fabContainer)} .hidden=${!this.hasFab}><slot name=${Zt.fab} @slotchange=${this.handleFabSlotChange}></slot></div>`}render(){let{disabled:t,loading:r,isClosed:n}=this,i=xe`<article .ariaBusy=${r} class=${_e(lr.container)} .hidden=${n} ${At(this.setContainerRef)}>${this.renderHeaderNode()}${this.renderContent()}${this.renderContentBottom()}${this.renderFooterNode()}${cr("alerts",xe`<slot name=${Zt.alerts} @slotchange=${this.handleAlertsSlotChange}></slot>`)}</article>`;return Zc({disabled:t,children:xe`${r?xe`<calcite-scrim .loading=${r}></calcite-scrim>`:null}${i}`})}};Vv.properties={hasActionBar:16,hasContentBottom:16,hasContentTop:16,hasEndActions:16,hasFab:16,hasFooterActions:16,hasFooterContent:16,hasFooterEndContent:16,hasFooterStartContent:16,hasHeaderContent:16,hasMenuItems:16,hasStartActions:16,isClosed:16,showHeaderContent:16,beforeClose:0,closable:7,closed:7,collapseDirection:1,collapsed:7,collapsible:7,description:1,disabled:7,heading:1,headingLevel:11,loading:7,menuFlipPlacements:0,menuOpen:7,menuPlacement:3,messageOverrides:0,overlayPositioning:3,scale:3},Vv.styles=fQ;WE=Vv;Gt("calcite-panel",WE)});var UR=R(()=>{mv();$R();aE();VR()});function WR(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zR,BR=R(()=>{zR=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{}});var Uv,mQ,k1,GR=R(()=>{BR();Uv={exports:{}};Uv.exports;(function(e,t){(function(r,n){e.exports=n()})(zR,function(){function r(f,p){var w=Object.keys(f);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(f);p&&(_=_.filter(function(C){return Object.getOwnPropertyDescriptor(f,C).enumerable})),w.push.apply(w,_)}return w}function n(f){for(var p=1;p<arguments.length;p++){var w=arguments[p]!=null?arguments[p]:{};p%2?r(Object(w),!0).forEach(function(_){a(f,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(w)):r(Object(w)).forEach(function(_){Object.defineProperty(f,_,Object.getOwnPropertyDescriptor(w,_))})}return f}function i(f){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},i(f)}function o(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function s(f,p){for(var w=0;w<p.length;w++){var _=p[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(f,A(_.key),_)}}function c(f,p,w){return p&&s(f.prototype,p),Object.defineProperty(f,"prototype",{writable:!1}),f}function a(f,p,w){return(p=A(p))in f?Object.defineProperty(f,p,{value:w,enumerable:!0,configurable:!0,writable:!0}):f[p]=w,f}function d(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),p&&g(f,p)}function h(f){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},h(f)}function g(f,p){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,_){return w.__proto__=_,w},g(f,p)}function v(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function E(f){var p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var w,_=h(f);if(p){var C=h(this).constructor;w=Reflect.construct(_,arguments,C)}else w=_.apply(this,arguments);return function(T,I){if(I&&(typeof I=="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(T)}(this,w)}}function P(){return P=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(f,p,w){var _=function(T,I){for(;!Object.prototype.hasOwnProperty.call(T,I)&&(T=h(T))!==null;);return T}(f,p);if(_){var C=Object.getOwnPropertyDescriptor(_,p);return C.get?C.get.call(arguments.length<3?f:w):C.value}},P.apply(this,arguments)}function A(f){var p=function(w,_){if(typeof w!="object"||w===null)return w;var C=w[Symbol.toPrimitive];if(C!==void 0){var T=C.call(w,_);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(w)}(f,"string");return typeof p=="symbol"?p:p+""}var F=function(f){return!(!f||!f.Window)&&f instanceof f.Window},W=void 0,z=void 0;function j(f){W=f;var p=f.document.createTextNode("");p.ownerDocument!==f.document&&typeof f.wrap=="function"&&f.wrap(p)===p&&(f=f.wrap(f)),z=f}function G(f){return F(f)?f:(f.ownerDocument||f).defaultView||z.window}typeof window<"u"&&window&&j(window);var Y=function(f){return!!f&&i(f)==="object"},ie=function(f){return typeof f=="function"},U={window:function(f){return f===z||F(f)},docFrag:function(f){return Y(f)&&f.nodeType===11},object:Y,func:ie,number:function(f){return typeof f=="number"},bool:function(f){return typeof f=="boolean"},string:function(f){return typeof f=="string"},element:function(f){if(!f||i(f)!=="object")return!1;var p=G(f)||z;return/object|function/.test(typeof Element>"u"?"undefined":i(Element))?f instanceof Element||f instanceof p.Element:f.nodeType===1&&typeof f.nodeName=="string"},plainObject:function(f){return Y(f)&&!!f.constructor&&/function Object\b/.test(f.constructor.toString())},array:function(f){return Y(f)&&f.length!==void 0&&ie(f.splice)}};function fe(f){var p=f.interaction;if(p.prepared.name==="drag"){var w=p.prepared.axis;w==="x"?(p.coords.cur.page.y=p.coords.start.page.y,p.coords.cur.client.y=p.coords.start.client.y,p.coords.velocity.client.y=0,p.coords.velocity.page.y=0):w==="y"&&(p.coords.cur.page.x=p.coords.start.page.x,p.coords.cur.client.x=p.coords.start.client.x,p.coords.velocity.client.x=0,p.coords.velocity.page.x=0)}}function Ae(f){var p=f.iEvent,w=f.interaction;if(w.prepared.name==="drag"){var _=w.prepared.axis;if(_==="x"||_==="y"){var C=_==="x"?"y":"x";p.page[C]=w.coords.start.page[C],p.client[C]=w.coords.start.client[C],p.delta[C]=0}}}var Ee={id:"actions/drag",install:function(f){var p=f.actions,w=f.Interactable,_=f.defaults;w.prototype.draggable=Ee.draggable,p.map.drag=Ee,p.methodDict.drag="draggable",_.actions.drag=Ee.defaults},listeners:{"interactions:before-action-move":fe,"interactions:action-resume":fe,"interactions:action-move":Ae,"auto-start:check":function(f){var p=f.interaction,w=f.interactable,_=f.buttons,C=w.options.drag;if(C&&C.enabled&&(!p.pointerIsDown||!/mouse|pointer/.test(p.pointerType)||_&w.options.drag.mouseButtons))return f.action={name:"drag",axis:C.lockAxis==="start"?C.startAxis:C.lockAxis},!1}},draggable:function(f){return U.object(f)?(this.options.drag.enabled=f.enabled!==!1,this.setPerAction("drag",f),this.setOnEvents("drag",f),/^(xy|x|y|start)$/.test(f.lockAxis)&&(this.options.drag.lockAxis=f.lockAxis),/^(xy|x|y)$/.test(f.startAxis)&&(this.options.drag.startAxis=f.startAxis),this):U.bool(f)?(this.options.drag.enabled=f,this):this.options.drag},beforeMove:fe,move:Ae,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(f){return f.search("drag")===0}},Ne=Ee,we={init:function(f){var p=f;we.document=p.document,we.DocumentFragment=p.DocumentFragment||le,we.SVGElement=p.SVGElement||le,we.SVGSVGElement=p.SVGSVGElement||le,we.SVGElementInstance=p.SVGElementInstance||le,we.Element=p.Element||le,we.HTMLElement=p.HTMLElement||we.Element,we.Event=p.Event,we.Touch=p.Touch||le,we.PointerEvent=p.PointerEvent||p.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function le(){}var J=we,ee={init:function(f){var p=J.Element,w=f.navigator||{};ee.supportsTouch="ontouchstart"in f||U.func(f.DocumentTouch)&&J.document instanceof f.DocumentTouch,ee.supportsPointerEvent=w.pointerEnabled!==!1&&!!J.PointerEvent,ee.isIOS=/iP(hone|od|ad)/.test(w.platform),ee.isIOS7=/iP(hone|od|ad)/.test(w.platform)&&/OS 7[^\d]/.test(w.appVersion),ee.isIe9=/MSIE 9/.test(w.userAgent),ee.isOperaMobile=w.appName==="Opera"&&ee.supportsTouch&&/Presto/.test(w.userAgent),ee.prefixedMatchesSelector="matches"in p.prototype?"matches":"webkitMatchesSelector"in p.prototype?"webkitMatchesSelector":"mozMatchesSelector"in p.prototype?"mozMatchesSelector":"oMatchesSelector"in p.prototype?"oMatchesSelector":"msMatchesSelector",ee.pEventTypes=ee.supportsPointerEvent?J.PointerEvent===f.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,ee.wheelEvent=J.document&&"onmousewheel"in J.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},pe=ee;function de(f,p){if(f.contains)return f.contains(p);for(;p;){if(p===f)return!0;p=p.parentNode}return!1}function Se(f,p){for(;U.element(f);){if(Fe(f,p))return f;f=ye(f)}return null}function ye(f){var p=f.parentNode;if(U.docFrag(p)){for(;(p=p.host)&&U.docFrag(p););return p}return p}function Fe(f,p){return z!==W&&(p=p.replace(/\/deep\//g," ")),f[pe.prefixedMatchesSelector](p)}var nt=function(f){return f.parentNode||f.host};function Et(f,p){for(var w,_=[],C=f;(w=nt(C))&&C!==p&&w!==C.ownerDocument;)_.unshift(C),C=w;return _}function Cr(f,p,w){for(;U.element(f);){if(Fe(f,p))return!0;if((f=ye(f))===w)return Fe(f,p)}return!1}function dr(f){return f.correspondingUseElement||f}function pr(f){var p=f instanceof J.SVGElement?f.getBoundingClientRect():f.getClientRects()[0];return p&&{left:p.left,right:p.right,top:p.top,bottom:p.bottom,width:p.width||p.right-p.left,height:p.height||p.bottom-p.top}}function gi(f){var p,w=pr(f);if(!pe.isIOS7&&w){var _={x:(p=(p=G(f))||z).scrollX||p.document.documentElement.scrollLeft,y:p.scrollY||p.document.documentElement.scrollTop};w.left+=_.x,w.right+=_.x,w.top+=_.y,w.bottom+=_.y}return w}function Un(f){for(var p=[];f;)p.push(f),f=ye(f);return p}function Tn(f){return!!U.string(f)&&(J.document.querySelector(f),!0)}function Ve(f,p){for(var w in p)f[w]=p[w];return f}function Cd(f,p,w){return f==="parent"?ye(w):f==="self"?p.getRect(w):Se(w,f)}function Qo(f,p,w,_){var C=f;return U.string(C)?C=Cd(C,p,w):U.func(C)&&(C=C.apply(void 0,_)),U.element(C)&&(C=gi(C)),C}function lo(f){return f&&{x:"x"in f?f.x:f.left,y:"y"in f?f.y:f.top}}function dl(f){return!f||"x"in f&&"y"in f||((f=Ve({},f)).x=f.left||0,f.y=f.top||0,f.width=f.width||(f.right||0)-f.x,f.height=f.height||(f.bottom||0)-f.y),f}function Sa(f,p,w){f.left&&(p.left+=w.x),f.right&&(p.right+=w.x),f.top&&(p.top+=w.y),f.bottom&&(p.bottom+=w.y),p.width=p.right-p.left,p.height=p.bottom-p.top}function Ns(f,p,w){var _=w&&f.options[w];return lo(Qo(_&&_.origin||f.options.origin,f,p,[f&&p]))||{x:0,y:0}}function $i(f,p){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(D){return!0},_=arguments.length>3?arguments[3]:void 0;if(_=_||{},U.string(f)&&f.search(" ")!==-1&&(f=Td(f)),U.array(f))return f.forEach(function(D){return $i(D,p,w,_)}),_;if(U.object(f)&&(p=f,f=""),U.func(p)&&w(f))_[f]=_[f]||[],_[f].push(p);else if(U.array(p))for(var C=0,T=p;C<T.length;C++){var I=T[C];$i(f,I,w,_)}else if(U.object(p))for(var N in p)$i(Td(N).map(function(D){return"".concat(f).concat(D)}),p[N],w,_);return _}function Td(f){return f.trim().split(/ +/)}var Os=function(f,p){return Math.sqrt(f*f+p*p)},Rm=["webkit","moz"];function Ko(f,p){f.__set||(f.__set={});var w=function(C){if(Rm.some(function(T){return C.indexOf(T)===0}))return 1;typeof f[C]!="function"&&C!=="__set"&&Object.defineProperty(f,C,{get:function(){return C in f.__set?f.__set[C]:f.__set[C]=p[C]},set:function(T){f.__set[C]=T},configurable:!0})};for(var _ in p)w(_);return f}function Ea(f,p){f.page=f.page||{},f.page.x=p.page.x,f.page.y=p.page.y,f.client=f.client||{},f.client.x=p.client.x,f.client.y=p.client.y,f.timeStamp=p.timeStamp}function pl(f){f.page.x=0,f.page.y=0,f.client.x=0,f.client.y=0}function fl(f){return f instanceof J.Event||f instanceof J.Touch}function Tr(f,p,w){return f=f||"page",(w=w||{}).x=p[f+"X"],w.y=p[f+"Y"],w}function Pd(f,p){return p=p||{x:0,y:0},pe.isOperaMobile&&fl(f)?(Tr("screen",f,p),p.x+=window.scrollX,p.y+=window.scrollY):Tr("page",f,p),p}function es(f){return U.number(f.pointerId)?f.pointerId:f.identifier}function Ca(f,p,w){var _=p.length>1?Md(p):p[0];Pd(_,f.page),function(C,T){T=T||{},pe.isOperaMobile&&fl(C)?Tr("screen",C,T):Tr("client",C,T)}(_,f.client),f.timeStamp=w}function ml(f){var p=[];return U.array(f)?(p[0]=f[0],p[1]=f[1]):f.type==="touchend"?f.touches.length===1?(p[0]=f.touches[0],p[1]=f.changedTouches[0]):f.touches.length===0&&(p[0]=f.changedTouches[0],p[1]=f.changedTouches[1]):(p[0]=f.touches[0],p[1]=f.touches[1]),p}function Md(f){for(var p={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},w=0;w<f.length;w++){var _=f[w];for(var C in p)p[C]+=_[C]}for(var T in p)p[T]/=f.length;return p}function hl(f){if(!f.length)return null;var p=ml(f),w=Math.min(p[0].pageX,p[1].pageX),_=Math.min(p[0].pageY,p[1].pageY),C=Math.max(p[0].pageX,p[1].pageX),T=Math.max(p[0].pageY,p[1].pageY);return{x:w,y:_,left:w,top:_,right:C,bottom:T,width:C-w,height:T-_}}function gl(f,p){var w=p+"X",_=p+"Y",C=ml(f),T=C[0][w]-C[1][w],I=C[0][_]-C[1][_];return Os(T,I)}function wl(f,p){var w=p+"X",_=p+"Y",C=ml(f),T=C[1][w]-C[0][w],I=C[1][_]-C[0][_];return 180*Math.atan2(I,T)/Math.PI}function yl(f){return U.string(f.pointerType)?f.pointerType:U.number(f.pointerType)?[void 0,void 0,"touch","pen","mouse"][f.pointerType]:/touch/.test(f.type||"")||f instanceof J.Touch?"touch":"mouse"}function Ad(f){var p=U.func(f.composedPath)?f.composedPath():f.path;return[dr(p?p[0]:f.target),dr(f.currentTarget)]}var uo=function(){function f(p){o(this,f),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=p}return c(f,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),f}();Object.defineProperty(uo.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Id=function(f,p){for(var w=0;w<p.length;w++){var _=p[w];f.push(_)}return f},bl=function(f){return Id([],f)},Rs=function(f,p){for(var w=0;w<f.length;w++)if(p(f[w],w,f))return w;return-1},Vi=function(f,p){return f[Rs(f,p)]},ts=function(f){d(w,f);var p=E(w);function w(_,C,T){var I;o(this,w),(I=p.call(this,C._interaction)).dropzone=void 0,I.dragEvent=void 0,I.relatedTarget=void 0,I.draggable=void 0,I.propagationStopped=!1,I.immediatePropagationStopped=!1;var N=T==="dragleave"?_.prev:_.cur,D=N.element,B=N.dropzone;return I.type=T,I.target=D,I.currentTarget=D,I.dropzone=B,I.dragEvent=C,I.relatedTarget=C.target,I.draggable=C.interactable,I.timeStamp=C.timeStamp,I}return c(w,[{key:"reject",value:function(){var _=this,C=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&C.cur.dropzone===this.dropzone&&C.cur.element===this.target)if(C.prev.dropzone=this.dropzone,C.prev.element=this.target,C.rejected=!0,C.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var T=C.activeDrops,I=Rs(T,function(D){var B=D.dropzone,$=D.element;return B===_.dropzone&&$===_.target});C.activeDrops.splice(I,1);var N=new w(C,this.dragEvent,"dropdeactivate");N.dropzone=this.dropzone,N.target=this.target,this.dropzone.fire(N)}else this.dropzone.fire(new w(C,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),w}(uo);function po(f,p){for(var w=0,_=f.slice();w<_.length;w++){var C=_[w],T=C.dropzone,I=C.element;p.dropzone=T,p.target=I,T.fire(p),p.propagationStopped=p.immediatePropagationStopped=!1}}function vl(f,p){for(var w=function(T,I){for(var N=[],D=0,B=T.interactables.list;D<B.length;D++){var $=B[D];if($.options.drop.enabled){var Q=$.options.drop.accept;if(!(U.element(Q)&&Q!==I||U.string(Q)&&!Fe(I,Q)||U.func(Q)&&!Q({dropzone:$,draggableElement:I})))for(var ae=0,ge=$.getAllElements();ae<ge.length;ae++){var he=ge[ae];he!==I&&N.push({dropzone:$,element:he,rect:$.getRect(he)})}}}return N}(f,p),_=0;_<w.length;_++){var C=w[_];C.rect=C.dropzone.getRect(C.element)}return w}function Ld(f,p,w){for(var _=f.dropState,C=f.interactable,T=f.element,I=[],N=0,D=_.activeDrops;N<D.length;N++){var B=D[N],$=B.dropzone,Q=B.element,ae=B.rect,ge=$.dropCheck(p,w,C,T,Q,ae);I.push(ge?Q:null)}var he=function(be){for(var Oe,Ie,Ue,et=[],st=0;st<be.length;st++){var je=be[st],tt=be[Oe];if(je&&st!==Oe)if(tt){var Mr=nt(je),Lt=nt(tt);if(Mr!==je.ownerDocument)if(Lt!==je.ownerDocument)if(Mr!==Lt){et=et.length?et:Et(tt);var Kr=void 0;if(tt instanceof J.HTMLElement&&je instanceof J.SVGElement&&!(je instanceof J.SVGSVGElement)){if(je===Lt)continue;Kr=je.ownerSVGElement}else Kr=je;for(var Pn=Et(Kr,tt.ownerDocument),zn=0;Pn[zn]&&Pn[zn]===et[zn];)zn++;var Gs=[Pn[zn-1],Pn[zn],et[zn]];if(Gs[0])for(var mt=Gs[0].lastChild;mt;){if(mt===Gs[1]){Oe=st,et=Pn;break}if(mt===Gs[2])break;mt=mt.previousSibling}}else Ue=tt,(parseInt(G(Ie=je).getComputedStyle(Ie).zIndex,10)||0)>=(parseInt(G(Ue).getComputedStyle(Ue).zIndex,10)||0)&&(Oe=st);else Oe=st}else Oe=st}return Oe}(I);return _.activeDrops[he]||null}function _l(f,p,w){var _=f.dropState,C={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return w.type==="dragstart"&&(C.activate=new ts(_,w,"dropactivate"),C.activate.target=null,C.activate.dropzone=null),w.type==="dragend"&&(C.deactivate=new ts(_,w,"dropdeactivate"),C.deactivate.target=null,C.deactivate.dropzone=null),_.rejected||(_.cur.element!==_.prev.element&&(_.prev.dropzone&&(C.leave=new ts(_,w,"dragleave"),w.dragLeave=C.leave.target=_.prev.element,w.prevDropzone=C.leave.dropzone=_.prev.dropzone),_.cur.dropzone&&(C.enter=new ts(_,w,"dragenter"),w.dragEnter=_.cur.element,w.dropzone=_.cur.dropzone)),w.type==="dragend"&&_.cur.dropzone&&(C.drop=new ts(_,w,"drop"),w.dropzone=_.cur.dropzone,w.relatedTarget=_.cur.element),w.type==="dragmove"&&_.cur.dropzone&&(C.move=new ts(_,w,"dropmove"),w.dropzone=_.cur.dropzone)),C}function Ta(f,p){var w=f.dropState,_=w.activeDrops,C=w.cur,T=w.prev;p.leave&&T.dropzone.fire(p.leave),p.enter&&C.dropzone.fire(p.enter),p.move&&C.dropzone.fire(p.move),p.drop&&C.dropzone.fire(p.drop),p.deactivate&&po(_,p.deactivate),w.prev.dropzone=C.dropzone,w.prev.element=C.element}function kd(f,p){var w=f.interaction,_=f.iEvent,C=f.event;if(_.type==="dragmove"||_.type==="dragend"){var T=w.dropState;p.dynamicDrop&&(T.activeDrops=vl(p,w.element));var I=_,N=Ld(w,I,C);T.rejected=T.rejected&&!!N&&N.dropzone===T.cur.dropzone&&N.element===T.cur.element,T.cur.dropzone=N&&N.dropzone,T.cur.element=N&&N.element,T.events=_l(w,0,I)}}var Nd={id:"actions/drop",install:function(f){var p=f.actions,w=f.interactStatic,_=f.Interactable,C=f.defaults;f.usePlugin(Ne),_.prototype.dropzone=function(T){return function(I,N){if(U.object(N)){if(I.options.drop.enabled=N.enabled!==!1,N.listeners){var D=$i(N.listeners),B=Object.keys(D).reduce(function(Q,ae){return Q[/^(enter|leave)/.test(ae)?"drag".concat(ae):/^(activate|deactivate|move)/.test(ae)?"drop".concat(ae):ae]=D[ae],Q},{}),$=I.options.drop.listeners;$&&I.off($),I.on(B),I.options.drop.listeners=B}return U.func(N.ondrop)&&I.on("drop",N.ondrop),U.func(N.ondropactivate)&&I.on("dropactivate",N.ondropactivate),U.func(N.ondropdeactivate)&&I.on("dropdeactivate",N.ondropdeactivate),U.func(N.ondragenter)&&I.on("dragenter",N.ondragenter),U.func(N.ondragleave)&&I.on("dragleave",N.ondragleave),U.func(N.ondropmove)&&I.on("dropmove",N.ondropmove),/^(pointer|center)$/.test(N.overlap)?I.options.drop.overlap=N.overlap:U.number(N.overlap)&&(I.options.drop.overlap=Math.max(Math.min(1,N.overlap),0)),"accept"in N&&(I.options.drop.accept=N.accept),"checker"in N&&(I.options.drop.checker=N.checker),I}return U.bool(N)?(I.options.drop.enabled=N,I):I.options.drop}(this,T)},_.prototype.dropCheck=function(T,I,N,D,B,$){return function(Q,ae,ge,he,be,Oe,Ie){var Ue=!1;if(!(Ie=Ie||Q.getRect(Oe)))return!!Q.options.drop.checker&&Q.options.drop.checker(ae,ge,Ue,Q,Oe,he,be);var et=Q.options.drop.overlap;if(et==="pointer"){var st=Ns(he,be,"drag"),je=Pd(ae);je.x+=st.x,je.y+=st.y;var tt=je.x>Ie.left&&je.x<Ie.right,Mr=je.y>Ie.top&&je.y<Ie.bottom;Ue=tt&&Mr}var Lt=he.getRect(be);if(Lt&&et==="center"){var Kr=Lt.left+Lt.width/2,Pn=Lt.top+Lt.height/2;Ue=Kr>=Ie.left&&Kr<=Ie.right&&Pn>=Ie.top&&Pn<=Ie.bottom}return Lt&&U.number(et)&&(Ue=Math.max(0,Math.min(Ie.right,Lt.right)-Math.max(Ie.left,Lt.left))*Math.max(0,Math.min(Ie.bottom,Lt.bottom)-Math.max(Ie.top,Lt.top))/(Lt.width*Lt.height)>=et),Q.options.drop.checker&&(Ue=Q.options.drop.checker(ae,ge,Ue,Q,Oe,he,be)),Ue}(this,T,I,N,D,B,$)},w.dynamicDrop=function(T){return U.bool(T)?(f.dynamicDrop=T,w):f.dynamicDrop},Ve(p.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),p.methodDict.drop="dropzone",f.dynamicDrop=!1,C.actions.drop=Nd.defaults},listeners:{"interactions:before-action-start":function(f){var p=f.interaction;p.prepared.name==="drag"&&(p.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(f,p){var w=f.interaction,_=(f.event,f.iEvent);if(w.prepared.name==="drag"){var C=w.dropState;C.activeDrops=[],C.events={},C.activeDrops=vl(p,w.element),C.events=_l(w,0,_),C.events.activate&&(po(C.activeDrops,C.events.activate),p.fire("actions/drop:start",{interaction:w,dragEvent:_}))}},"interactions:action-move":kd,"interactions:after-action-move":function(f,p){var w=f.interaction,_=f.iEvent;if(w.prepared.name==="drag"){var C=w.dropState;Ta(w,C.events),p.fire("actions/drop:move",{interaction:w,dragEvent:_}),C.events={}}},"interactions:action-end":function(f,p){if(f.interaction.prepared.name==="drag"){var w=f.interaction,_=f.iEvent;kd(f,p),Ta(w,w.dropState.events),p.fire("actions/drop:end",{interaction:w,dragEvent:_})}},"interactions:stop":function(f){var p=f.interaction;if(p.prepared.name==="drag"){var w=p.dropState;w&&(w.activeDrops=null,w.events=null,w.cur.dropzone=null,w.cur.element=null,w.prev.dropzone=null,w.prev.element=null,w.rejected=!1)}}},getActiveDrops:vl,getDrop:Ld,getDropEvents:_l,fireDropEvents:Ta,filterEventType:function(f){return f.search("drag")===0||f.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Dm=Nd;function H(f){var p=f.interaction,w=f.iEvent,_=f.phase;if(p.prepared.name==="gesture"){var C=p.pointers.map(function(B){return B.pointer}),T=_==="start",I=_==="end",N=p.interactable.options.deltaSource;if(w.touches=[C[0],C[1]],T)w.distance=gl(C,N),w.box=hl(C),w.scale=1,w.ds=0,w.angle=wl(C,N),w.da=0,p.gesture.startDistance=w.distance,p.gesture.startAngle=w.angle;else if(I||p.pointers.length<2){var D=p.prevEvent;w.distance=D.distance,w.box=D.box,w.scale=D.scale,w.ds=0,w.angle=D.angle,w.da=0}else w.distance=gl(C,N),w.box=hl(C),w.scale=w.distance/p.gesture.startDistance,w.angle=wl(C,N),w.ds=w.scale-p.gesture.scale,w.da=w.angle-p.gesture.angle;p.gesture.distance=w.distance,p.gesture.angle=w.angle,U.number(w.scale)&&w.scale!==1/0&&!isNaN(w.scale)&&(p.gesture.scale=w.scale)}}var rs={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(f){var p=f.actions,w=f.Interactable,_=f.defaults;w.prototype.gesturable=function(C){return U.object(C)?(this.options.gesture.enabled=C.enabled!==!1,this.setPerAction("gesture",C),this.setOnEvents("gesture",C),this):U.bool(C)?(this.options.gesture.enabled=C,this):this.options.gesture},p.map.gesture=rs,p.methodDict.gesture="gesturable",_.actions.gesture=rs.defaults},listeners:{"interactions:action-start":H,"interactions:action-move":H,"interactions:action-end":H,"interactions:new":function(f){f.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(f){if(!(f.interaction.pointers.length<2)){var p=f.interactable.options.gesture;if(p&&p.enabled)return f.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(f){return f.search("gesture")===0}},Od=rs;function Rd(f,p,w,_,C,T,I){if(!p)return!1;if(p===!0){var N=U.number(T.width)?T.width:T.right-T.left,D=U.number(T.height)?T.height:T.bottom-T.top;if(I=Math.min(I,Math.abs((f==="left"||f==="right"?N:D)/2)),N<0&&(f==="left"?f="right":f==="right"&&(f="left")),D<0&&(f==="top"?f="bottom":f==="bottom"&&(f="top")),f==="left"){var B=N>=0?T.left:T.right;return w.x<B+I}if(f==="top"){var $=D>=0?T.top:T.bottom;return w.y<$+I}if(f==="right")return w.x>(N>=0?T.right:T.left)-I;if(f==="bottom")return w.y>(D>=0?T.bottom:T.top)-I}return!!U.element(_)&&(U.element(p)?p===_:Cr(_,p,C))}function xl(f){var p=f.iEvent,w=f.interaction;if(w.prepared.name==="resize"&&w.resizeAxes){var _=p;w.interactable.options.resize.square?(w.resizeAxes==="y"?_.delta.x=_.delta.y:_.delta.y=_.delta.x,_.axes="xy"):(_.axes=w.resizeAxes,w.resizeAxes==="x"?_.delta.y=0:w.resizeAxes==="y"&&(_.delta.x=0))}}var mn,Ui,ei={id:"actions/resize",before:["actions/drag"],install:function(f){var p=f.actions,w=f.browser,_=f.Interactable,C=f.defaults;ei.cursors=function(T){return T.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(w),ei.defaultMargin=w.supportsTouch||w.supportsPointerEvent?20:10,_.prototype.resizable=function(T){return function(I,N,D){return U.object(N)?(I.options.resize.enabled=N.enabled!==!1,I.setPerAction("resize",N),I.setOnEvents("resize",N),U.string(N.axis)&&/^x$|^y$|^xy$/.test(N.axis)?I.options.resize.axis=N.axis:N.axis===null&&(I.options.resize.axis=D.defaults.actions.resize.axis),U.bool(N.preserveAspectRatio)?I.options.resize.preserveAspectRatio=N.preserveAspectRatio:U.bool(N.square)&&(I.options.resize.square=N.square),I):U.bool(N)?(I.options.resize.enabled=N,I):I.options.resize}(this,T,f)},p.map.resize=ei,p.methodDict.resize="resizable",C.actions.resize=ei.defaults},listeners:{"interactions:new":function(f){f.interaction.resizeAxes="xy"},"interactions:action-start":function(f){(function(p){var w=p.iEvent,_=p.interaction;if(_.prepared.name==="resize"&&_.prepared.edges){var C=w,T=_.rect;_._rects={start:Ve({},T),corrected:Ve({},T),previous:Ve({},T),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},C.edges=_.prepared.edges,C.rect=_._rects.corrected,C.deltaRect=_._rects.delta}})(f),xl(f)},"interactions:action-move":function(f){(function(p){var w=p.iEvent,_=p.interaction;if(_.prepared.name==="resize"&&_.prepared.edges){var C=w,T=_.interactable.options.resize.invert,I=T==="reposition"||T==="negate",N=_.rect,D=_._rects,B=D.start,$=D.corrected,Q=D.delta,ae=D.previous;if(Ve(ae,$),I){if(Ve($,N),T==="reposition"){if($.top>$.bottom){var ge=$.top;$.top=$.bottom,$.bottom=ge}if($.left>$.right){var he=$.left;$.left=$.right,$.right=he}}}else $.top=Math.min(N.top,B.bottom),$.bottom=Math.max(N.bottom,B.top),$.left=Math.min(N.left,B.right),$.right=Math.max(N.right,B.left);for(var be in $.width=$.right-$.left,$.height=$.bottom-$.top,$)Q[be]=$[be]-ae[be];C.edges=_.prepared.edges,C.rect=$,C.deltaRect=Q}})(f),xl(f)},"interactions:action-end":function(f){var p=f.iEvent,w=f.interaction;if(w.prepared.name==="resize"&&w.prepared.edges){var _=p;_.edges=w.prepared.edges,_.rect=w._rects.corrected,_.deltaRect=w._rects.delta}},"auto-start:check":function(f){var p=f.interaction,w=f.interactable,_=f.element,C=f.rect,T=f.buttons;if(C){var I=Ve({},p.coords.cur.page),N=w.options.resize;if(N&&N.enabled&&(!p.pointerIsDown||!/mouse|pointer/.test(p.pointerType)||T&N.mouseButtons)){if(U.object(N.edges)){var D={left:!1,right:!1,top:!1,bottom:!1};for(var B in D)D[B]=Rd(B,N.edges[B],I,p._latestPointer.eventTarget,_,C,N.margin||ei.defaultMargin);D.left=D.left&&!D.right,D.top=D.top&&!D.bottom,(D.left||D.right||D.top||D.bottom)&&(f.action={name:"resize",edges:D})}else{var $=N.axis!=="y"&&I.x>C.right-ei.defaultMargin,Q=N.axis!=="x"&&I.y>C.bottom-ei.defaultMargin;($||Q)&&(f.action={name:"resize",axes:($?"x":"")+(Q?"y":"")})}return!f.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(f){var p=f.edges,w=f.axis,_=f.name,C=ei.cursors,T=null;if(w)T=C[_+w];else if(p){for(var I="",N=0,D=["top","bottom","left","right"];N<D.length;N++){var B=D[N];p[B]&&(I+=B)}T=C[I]}return T},filterEventType:function(f){return f.search("resize")===0},defaultMargin:null},Dd=ei,Fd={id:"actions",install:function(f){f.usePlugin(Od),f.usePlugin(Dd),f.usePlugin(Ne),f.usePlugin(Dm)}},Pa=0,wi={request:function(f){return mn(f)},cancel:function(f){return Ui(f)},init:function(f){if(mn=f.requestAnimationFrame,Ui=f.cancelAnimationFrame,!mn)for(var p=["ms","moz","webkit","o"],w=0;w<p.length;w++){var _=p[w];mn=f["".concat(_,"RequestAnimationFrame")],Ui=f["".concat(_,"CancelAnimationFrame")]||f["".concat(_,"CancelRequestAnimationFrame")]}mn=mn&&mn.bind(f),Ui=Ui&&Ui.bind(f),mn||(mn=function(C){var T=Date.now(),I=Math.max(0,16-(T-Pa)),N=f.setTimeout(function(){C(T+I)},I);return Pa=T+I,N},Ui=function(C){return clearTimeout(C)})}},He={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(f){He.isScrolling=!0,wi.cancel(He.i),f.autoScroll=He,He.interaction=f,He.prevTime=He.now(),He.i=wi.request(He.scroll)},stop:function(){He.isScrolling=!1,He.interaction&&(He.interaction.autoScroll=null),wi.cancel(He.i)},scroll:function(){var f=He.interaction,p=f.interactable,w=f.element,_=f.prepared.name,C=p.options[_].autoScroll,T=Ma(C.container,p,w),I=He.now(),N=(I-He.prevTime)/1e3,D=C.speed*N;if(D>=1){var B={x:He.x*D,y:He.y*D};if(B.x||B.y){var $=Sl(T);U.window(T)?T.scrollBy(B.x,B.y):T&&(T.scrollLeft+=B.x,T.scrollTop+=B.y);var Q=Sl(T),ae={x:Q.x-$.x,y:Q.y-$.y};(ae.x||ae.y)&&p.fire({type:"autoscroll",target:w,interactable:p,delta:ae,interaction:f,container:T})}He.prevTime=I}He.isScrolling&&(wi.cancel(He.i),He.i=wi.request(He.scroll))},check:function(f,p){var w;return(w=f.options[p].autoScroll)==null?void 0:w.enabled},onInteractionMove:function(f){var p=f.interaction,w=f.pointer;if(p.interacting()&&He.check(p.interactable,p.prepared.name))if(p.simulation)He.x=He.y=0;else{var _,C,T,I,N=p.interactable,D=p.element,B=p.prepared.name,$=N.options[B].autoScroll,Q=Ma($.container,N,D);if(U.window(Q))I=w.clientX<He.margin,_=w.clientY<He.margin,C=w.clientX>Q.innerWidth-He.margin,T=w.clientY>Q.innerHeight-He.margin;else{var ae=pr(Q);I=w.clientX<ae.left+He.margin,_=w.clientY<ae.top+He.margin,C=w.clientX>ae.right-He.margin,T=w.clientY>ae.bottom-He.margin}He.x=C?1:I?-1:0,He.y=T?1:_?-1:0,He.isScrolling||(He.margin=$.margin,He.speed=$.speed,He.start(p))}}};function Ma(f,p,w){return(U.string(f)?Cd(f,p,w):f)||G(w)}function Sl(f){return U.window(f)&&(f=window.document.body),{x:f.scrollLeft,y:f.scrollTop}}var El={id:"auto-scroll",install:function(f){var p=f.defaults,w=f.actions;f.autoScroll=He,He.now=function(){return f.now()},w.phaselessTypes.autoscroll=!0,p.perAction.autoScroll=He.defaults},listeners:{"interactions:new":function(f){f.interaction.autoScroll=null},"interactions:destroy":function(f){f.interaction.autoScroll=null,He.stop(),He.interaction&&(He.interaction=null)},"interactions:stop":He.stop,"interactions:action-move":function(f){return He.onInteractionMove(f)}}},Cl=El;function ns(f,p){var w=!1;return function(){return w||(z.console.warn(p),w=!0),f.apply(this,arguments)}}function Aa(f,p){return f.name=p.name,f.axis=p.axis,f.edges=p.edges,f}function $d(f){return U.bool(f)?(this.options.styleCursor=f,this):f===null?(delete this.options.styleCursor,this):this.options.styleCursor}function Vd(f){return U.func(f)?(this.options.actionChecker=f,this):f===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Ud={id:"auto-start/interactableMethods",install:function(f){var p=f.Interactable;p.prototype.getAction=function(w,_,C,T){var I=function(N,D,B,$,Q){var ae=N.getRect($),ge=D.buttons||{0:1,1:4,3:8,4:16}[D.button],he={action:null,interactable:N,interaction:B,element:$,rect:ae,buttons:ge};return Q.fire("auto-start:check",he),he.action}(this,_,C,T,f);return this.options.actionChecker?this.options.actionChecker(w,_,I,this,T,C):I},p.prototype.ignoreFrom=ns(function(w){return this._backCompatOption("ignoreFrom",w)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),p.prototype.allowFrom=ns(function(w){return this._backCompatOption("allowFrom",w)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),p.prototype.actionChecker=Vd,p.prototype.styleCursor=$d}};function Tl(f,p,w,_,C){return p.testIgnoreAllow(p.options[f.name],w,_)&&p.options[f.name].enabled&&Ds(p,w,f,C)?f:null}function zd(f,p,w,_,C,T,I){for(var N=0,D=_.length;N<D;N++){var B=_[N],$=C[N],Q=B.getAction(p,w,f,$);if(Q){var ae=Tl(Q,B,$,T,I);if(ae)return{action:ae,interactable:B,element:$}}}return{action:null,interactable:null,element:null}}function Pl(f,p,w,_,C){var T=[],I=[],N=_;function D($){T.push($),I.push(N)}for(;U.element(N);){T=[],I=[],C.interactables.forEachMatch(N,D);var B=zd(f,p,w,T,I,_,C);if(B.action&&!B.interactable.options[B.action.name].manualStart)return B;N=ye(N)}return{action:null,interactable:null,element:null}}function Ml(f,p,w){var _=p.action,C=p.interactable,T=p.element;_=_||{name:null},f.interactable=C,f.element=T,Aa(f.prepared,_),f.rect=C&&_.name?C.getRect(T):null,Il(f,w),w.fire("autoStart:prepared",{interaction:f})}function Ds(f,p,w,_){var C=f.options,T=C[w.name].max,I=C[w.name].maxPerElement,N=_.autoStart.maxInteractions,D=0,B=0,$=0;if(!(T&&I&&N))return!1;for(var Q=0,ae=_.interactions.list;Q<ae.length;Q++){var ge=ae[Q],he=ge.prepared.name;if(ge.interacting()&&(++D>=N||ge.interactable===f&&((B+=he===w.name?1:0)>=T||ge.element===p&&($++,he===w.name&&$>=I))))return!1}return N>0}function Al(f,p){return U.number(f)?(p.autoStart.maxInteractions=f,this):p.autoStart.maxInteractions}function Ia(f,p,w){var _=w.autoStart.cursorElement;_&&_!==f&&(_.style.cursor=""),f.ownerDocument.documentElement.style.cursor=p,f.style.cursor=p,w.autoStart.cursorElement=p?f:null}function Il(f,p){var w=f.interactable,_=f.element,C=f.prepared;if(f.pointerType==="mouse"&&w&&w.options.styleCursor){var T="";if(C.name){var I=w.options[C.name].cursorChecker;T=U.func(I)?I(C,w,_,f._interacting):p.actions.map[C.name].getCursor(C)}Ia(f.element,T||"",p)}else p.autoStart.cursorElement&&Ia(p.autoStart.cursorElement,"",p)}var Wd={id:"auto-start/base",before:["actions"],install:function(f){var p=f.interactStatic,w=f.defaults;f.usePlugin(Ud),w.base.actionChecker=null,w.base.styleCursor=!0,Ve(w.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),p.maxInteractions=function(_){return Al(_,f)},f.autoStart={maxInteractions:1/0,withinInteractionLimit:Ds,cursorElement:null}},listeners:{"interactions:down":function(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget;w.interacting()||Ml(w,Pl(w,_,C,T,p),p)},"interactions:move":function(f,p){(function(w,_){var C=w.interaction,T=w.pointer,I=w.event,N=w.eventTarget;C.pointerType!=="mouse"||C.pointerIsDown||C.interacting()||Ml(C,Pl(C,T,I,N,_),_)})(f,p),function(w,_){var C=w.interaction;if(C.pointerIsDown&&!C.interacting()&&C.pointerWasMoved&&C.prepared.name){_.fire("autoStart:before-start",w);var T=C.interactable,I=C.prepared.name;I&&T&&(T.options[I].manualStart||!Ds(T,C.element,C.prepared,_)?C.stop():(C.start(C.prepared,T,C.element),Il(C,_)))}}(f,p)},"interactions:stop":function(f,p){var w=f.interaction,_=w.interactable;_&&_.options.styleCursor&&Ia(w.element,"",p)}},maxInteractions:Al,withinInteractionLimit:Ds,validateAction:Tl},La=Wd,Bd={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(f,p){var w=f.interaction,_=f.eventTarget,C=f.dx,T=f.dy;if(w.prepared.name==="drag"){var I=Math.abs(C),N=Math.abs(T),D=w.interactable.options.drag,B=D.startAxis,$=I>N?"x":I<N?"y":"xy";if(w.prepared.axis=D.lockAxis==="start"?$[0]:D.lockAxis,$!=="xy"&&B!=="xy"&&B!==$){w.prepared.name=null;for(var Q=_,ae=function(he){if(he!==w.interactable){var be=w.interactable.options.drag;if(!be.manualStart&&he.testIgnoreAllow(be,Q,_)){var Oe=he.getAction(w.downPointer,w.downEvent,w,Q);if(Oe&&Oe.name==="drag"&&function(Ie,Ue){if(!Ue)return!1;var et=Ue.options.drag.startAxis;return Ie==="xy"||et==="xy"||et===Ie}($,he)&&La.validateAction(Oe,he,Q,_,p))return he}}};U.element(Q);){var ge=p.interactables.forEachMatch(Q,ae);if(ge){w.prepared.name="drag",w.interactable=ge,w.element=Q;break}Q=ye(Q)}}}}}};function ka(f){var p=f.prepared&&f.prepared.name;if(!p)return null;var w=f.interactable.options;return w[p].hold||w[p].delay}var Gd={id:"auto-start/hold",install:function(f){var p=f.defaults;f.usePlugin(La),p.perAction.hold=0,p.perAction.delay=0},listeners:{"interactions:new":function(f){f.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(f){var p=f.interaction,w=ka(p);w>0&&(p.autoStartHoldTimer=setTimeout(function(){p.start(p.prepared,p.interactable,p.element)},w))},"interactions:move":function(f){var p=f.interaction,w=f.duplicate;p.autoStartHoldTimer&&p.pointerWasMoved&&!w&&(clearTimeout(p.autoStartHoldTimer),p.autoStartHoldTimer=null)},"autoStart:before-start":function(f){var p=f.interaction;ka(p)>0&&(p.prepared.name=null)}},getHoldDuration:ka},jd=Gd,qd={id:"auto-start",install:function(f){f.usePlugin(La),f.usePlugin(jd),f.usePlugin(Bd)}},Hd=function(f){return/^(always|never|auto)$/.test(f)?(this.options.preventDefault=f,this):U.bool(f)?(this.options.preventDefault=f?"always":"never",this):this.options.preventDefault};function Zd(f){var p=f.interaction,w=f.event;p.interactable&&p.interactable.checkAndPreventDefault(w)}var Ll={id:"core/interactablePreventDefault",install:function(f){var p=f.Interactable;p.prototype.preventDefault=Hd,p.prototype.checkAndPreventDefault=function(w){return function(_,C,T){var I=_.options.preventDefault;if(I!=="never")if(I!=="always"){if(C.events.supportsPassive&&/^touch(start|move)$/.test(T.type)){var N=G(T.target).document,D=C.getDocOptions(N);if(!D||!D.events||D.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(T.type)||U.element(T.target)&&Fe(T.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||T.preventDefault()}else T.preventDefault()}(this,f,w)},f.interactions.docEvents.push({type:"dragstart",listener:function(w){for(var _=0,C=f.interactions.list;_<C.length;_++){var T=C[_];if(T.element&&(T.element===w.target||de(T.element,w.target)))return void T.interactable.checkAndPreventDefault(w)}}})},listeners:["down","move","up","cancel"].reduce(function(f,p){return f["interactions:".concat(p)]=Zd,f},{})};function Fs(f,p){if(p.phaselessTypes[f])return!0;for(var w in p.map)if(f.indexOf(w)===0&&f.substr(w.length)in p.phases)return!0;return!1}function fo(f){var p={};for(var w in f){var _=f[w];U.plainObject(_)?p[w]=fo(_):U.array(_)?p[w]=bl(_):p[w]=_}return p}var Na=function(){function f(p){o(this,f),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=p,this.result=$s(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return c(f,[{key:"start",value:function(p,w){var _,C,T=p.phase,I=this.interaction,N=function(B){var $=B.interactable.options[B.prepared.name],Q=$.modifiers;return Q&&Q.length?Q:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(ae){var ge=$[ae];return ge&&ge.enabled&&{options:ge,methods:ge._methods}}).filter(function(ae){return!!ae})}(I);this.prepareStates(N),this.startEdges=Ve({},I.edges),this.edges=Ve({},this.startEdges),this.startOffset=(_=I.rect,C=w,_?{left:C.x-_.left,top:C.y-_.top,right:_.right-C.x,bottom:_.bottom-C.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var D=this.fillArg({phase:T,pageCoords:w,preEnd:!1});return this.result=$s(),this.startAll(D),this.result=this.setAll(D)}},{key:"fillArg",value:function(p){var w=this.interaction;return p.interaction=w,p.interactable=w.interactable,p.element=w.element,p.rect||(p.rect=w.rect),p.edges||(p.edges=this.startEdges),p.startOffset=this.startOffset,p}},{key:"startAll",value:function(p){for(var w=0,_=this.states;w<_.length;w++){var C=_[w];C.methods.start&&(p.state=C,C.methods.start(p))}}},{key:"setAll",value:function(p){var w=p.phase,_=p.preEnd,C=p.skipModifiers,T=p.rect,I=p.edges;p.coords=Ve({},p.pageCoords),p.rect=Ve({},T),p.edges=Ve({},I);for(var N=C?this.states.slice(C):this.states,D=$s(p.coords,p.rect),B=0;B<N.length;B++){var $,Q=N[B],ae=Q.options,ge=Ve({},p.coords),he=null;($=Q.methods)!=null&&$.set&&this.shouldDo(ae,_,w)&&(p.state=Q,he=Q.methods.set(p),Sa(p.edges,p.rect,{x:p.coords.x-ge.x,y:p.coords.y-ge.y})),D.eventProps.push(he)}Ve(this.edges,p.edges),D.delta.x=p.coords.x-p.pageCoords.x,D.delta.y=p.coords.y-p.pageCoords.y,D.rectDelta.left=p.rect.left-T.left,D.rectDelta.right=p.rect.right-T.right,D.rectDelta.top=p.rect.top-T.top,D.rectDelta.bottom=p.rect.bottom-T.bottom;var be=this.result.coords,Oe=this.result.rect;if(be&&Oe){var Ie=D.rect.left!==Oe.left||D.rect.right!==Oe.right||D.rect.top!==Oe.top||D.rect.bottom!==Oe.bottom;D.changed=Ie||be.x!==D.coords.x||be.y!==D.coords.y}return D}},{key:"applyToInteraction",value:function(p){var w=this.interaction,_=p.phase,C=w.coords.cur,T=w.coords.start,I=this.result,N=this.startDelta,D=I.delta;_==="start"&&Ve(this.startDelta,I.delta);for(var B=0,$=[[T,N],[C,D]];B<$.length;B++){var Q=$[B],ae=Q[0],ge=Q[1];ae.page.x+=ge.x,ae.page.y+=ge.y,ae.client.x+=ge.x,ae.client.y+=ge.y}var he=this.result.rectDelta,be=p.rect||w.rect;be.left+=he.left,be.right+=he.right,be.top+=he.top,be.bottom+=he.bottom,be.width=be.right-be.left,be.height=be.bottom-be.top}},{key:"setAndApply",value:function(p){var w=this.interaction,_=p.phase,C=p.preEnd,T=p.skipModifiers,I=this.setAll(this.fillArg({preEnd:C,phase:_,pageCoords:p.modifiedCoords||w.coords.cur.page}));if(this.result=I,!I.changed&&(!T||T<this.states.length)&&w.interacting())return!1;if(p.modifiedCoords){var N=w.coords.cur.page,D={x:p.modifiedCoords.x-N.x,y:p.modifiedCoords.y-N.y};I.coords.x+=D.x,I.coords.y+=D.y,I.delta.x+=D.x,I.delta.y+=D.y}this.applyToInteraction(p)}},{key:"beforeEnd",value:function(p){var w=p.interaction,_=p.event,C=this.states;if(C&&C.length){for(var T=!1,I=0;I<C.length;I++){var N=C[I];p.state=N;var D=N.options,B=N.methods,$=B.beforeEnd&&B.beforeEnd(p);if($)return this.endResult=$,!1;T=T||!T&&this.shouldDo(D,!0,p.phase,!0)}T&&w.move({event:_,preEnd:!0})}}},{key:"stop",value:function(p){var w=p.interaction;if(this.states&&this.states.length){var _=Ve({states:this.states,interactable:w.interactable,element:w.element,rect:null},p);this.fillArg(_);for(var C=0,T=this.states;C<T.length;C++){var I=T[C];_.state=I,I.methods.stop&&I.methods.stop(_)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(p){this.states=[];for(var w=0;w<p.length;w++){var _=p[w],C=_.options,T=_.methods,I=_.name;this.states.push({options:C,methods:T,index:w,name:I})}return this.states}},{key:"restoreInteractionCoords",value:function(p){var w=p.interaction,_=w.coords,C=w.rect,T=w.modification;if(T.result){for(var I=T.startDelta,N=T.result,D=N.delta,B=N.rectDelta,$=0,Q=[[_.start,I],[_.cur,D]];$<Q.length;$++){var ae=Q[$],ge=ae[0],he=ae[1];ge.page.x-=he.x,ge.page.y-=he.y,ge.client.x-=he.x,ge.client.y-=he.y}C.left-=B.left,C.right-=B.right,C.top-=B.top,C.bottom-=B.bottom}}},{key:"shouldDo",value:function(p,w,_,C){return!(!p||p.enabled===!1||C&&!p.endOnly||p.endOnly&&!w||_==="start"&&!p.setStart)}},{key:"copyFrom",value:function(p){this.startOffset=p.startOffset,this.startDelta=p.startDelta,this.startEdges=p.startEdges,this.edges=p.edges,this.states=p.states.map(function(w){return fo(w)}),this.result=$s(Ve({},p.result.coords),Ve({},p.result.rect))}},{key:"destroy",value:function(){for(var p in this)this[p]=null}}]),f}();function $s(f,p){return{rect:p,coords:f,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function yi(f,p){var w=f.defaults,_={start:f.start,set:f.set,beforeEnd:f.beforeEnd,stop:f.stop},C=function(T){var I=T||{};for(var N in I.enabled=I.enabled!==!1,w)N in I||(I[N]=w[N]);var D={options:I,methods:_,name:p,enable:function(){return I.enabled=!0,D},disable:function(){return I.enabled=!1,D}};return D};return p&&typeof p=="string"&&(C._defaults=w,C._methods=_),C}function is(f){var p=f.iEvent,w=f.interaction.modification.result;w&&(p.modifiers=w.eventProps)}var Yd={id:"modifiers/base",before:["actions"],install:function(f){f.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(f){var p=f.interaction;p.modification=new Na(p)},"interactions:before-action-start":function(f){var p=f.interaction,w=f.interaction.modification;w.start(f,p.coords.start.page),p.edges=w.edges,w.applyToInteraction(f)},"interactions:before-action-move":function(f){var p=f.interaction,w=p.modification,_=w.setAndApply(f);return p.edges=w.edges,_},"interactions:before-action-end":function(f){var p=f.interaction,w=p.modification,_=w.beforeEnd(f);return p.edges=w.startEdges,_},"interactions:action-start":is,"interactions:action-move":is,"interactions:action-end":is,"interactions:after-action-start":function(f){return f.interaction.modification.restoreInteractionCoords(f)},"interactions:after-action-move":function(f){return f.interaction.modification.restoreInteractionCoords(f)},"interactions:stop":function(f){return f.interaction.modification.stop(f)}}},kl=Yd,Nl={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Oa=function(f){d(w,f);var p=E(w);function w(_,C,T,I,N,D,B){var $;o(this,w),($=p.call(this,_)).relatedTarget=null,$.screenX=void 0,$.screenY=void 0,$.button=void 0,$.buttons=void 0,$.ctrlKey=void 0,$.shiftKey=void 0,$.altKey=void 0,$.metaKey=void 0,$.page=void 0,$.client=void 0,$.delta=void 0,$.rect=void 0,$.x0=void 0,$.y0=void 0,$.t0=void 0,$.dt=void 0,$.duration=void 0,$.clientX0=void 0,$.clientY0=void 0,$.velocity=void 0,$.speed=void 0,$.swipe=void 0,$.axes=void 0,$.preEnd=void 0,N=N||_.element;var Q=_.interactable,ae=(Q&&Q.options||Nl).deltaSource,ge=Ns(Q,N,T),he=I==="start",be=I==="end",Oe=he?v($):_.prevEvent,Ie=he?_.coords.start:be?{page:Oe.page,client:Oe.client,timeStamp:_.coords.cur.timeStamp}:_.coords.cur;return $.page=Ve({},Ie.page),$.client=Ve({},Ie.client),$.rect=Ve({},_.rect),$.timeStamp=Ie.timeStamp,be||($.page.x-=ge.x,$.page.y-=ge.y,$.client.x-=ge.x,$.client.y-=ge.y),$.ctrlKey=C.ctrlKey,$.altKey=C.altKey,$.shiftKey=C.shiftKey,$.metaKey=C.metaKey,$.button=C.button,$.buttons=C.buttons,$.target=N,$.currentTarget=N,$.preEnd=D,$.type=B||T+(I||""),$.interactable=Q,$.t0=he?_.pointers[_.pointers.length-1].downTime:Oe.t0,$.x0=_.coords.start.page.x-ge.x,$.y0=_.coords.start.page.y-ge.y,$.clientX0=_.coords.start.client.x-ge.x,$.clientY0=_.coords.start.client.y-ge.y,$.delta=he||be?{x:0,y:0}:{x:$[ae].x-Oe[ae].x,y:$[ae].y-Oe[ae].y},$.dt=_.coords.delta.timeStamp,$.duration=$.timeStamp-$.t0,$.velocity=Ve({},_.coords.velocity[ae]),$.speed=Os($.velocity.x,$.velocity.y),$.swipe=be||I==="inertiastart"?$.getSwipe():null,$}return c(w,[{key:"getSwipe",value:function(){var _=this._interaction;if(_.prevEvent.speed<600||this.timeStamp-_.prevEvent.timeStamp>150)return null;var C=180*Math.atan2(_.prevEvent.velocityY,_.prevEvent.velocityX)/Math.PI;C<0&&(C+=360);var T=112.5<=C&&C<247.5,I=202.5<=C&&C<337.5;return{up:I,down:!I&&22.5<=C&&C<157.5,left:T,right:!T&&(292.5<=C||C<67.5),angle:C,speed:_.prevEvent.speed,velocity:{x:_.prevEvent.velocityX,y:_.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),w}(uo);Object.defineProperties(Oa.prototype,{pageX:{get:function(){return this.page.x},set:function(f){this.page.x=f}},pageY:{get:function(){return this.page.y},set:function(f){this.page.y=f}},clientX:{get:function(){return this.client.x},set:function(f){this.client.x=f}},clientY:{get:function(){return this.client.y},set:function(f){this.client.y=f}},dx:{get:function(){return this.delta.x},set:function(f){this.delta.x=f}},dy:{get:function(){return this.delta.y},set:function(f){this.delta.y=f}},velocityX:{get:function(){return this.velocity.x},set:function(f){this.velocity.x=f}},velocityY:{get:function(){return this.velocity.y},set:function(f){this.velocity.y=f}}});var Jd=c(function f(p,w,_,C,T){o(this,f),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=p,this.pointer=w,this.event=_,this.downTime=C,this.downTarget=T}),Xd=function(f){return f.interactable="",f.element="",f.prepared="",f.pointerIsDown="",f.pointerWasMoved="",f._proxy="",f}({}),Ol=function(f){return f.start="",f.move="",f.end="",f.stop="",f.interacting="",f}({}),Qd=0,Kd=function(){function f(p){var w=this,_=p.pointerType,C=p.scopeFire;o(this,f),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=ns(function($){this.move($)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Qd++,this._scopeFire=C,this.pointerType=_;var T=this;this._proxy={};var I=function($){Object.defineProperty(w._proxy,$,{get:function(){return T[$]}})};for(var N in Xd)I(N);var D=function($){Object.defineProperty(w._proxy,$,{value:function(){return T[$].apply(T,arguments)}})};for(var B in Ol)D(B);this._scopeFire("interactions:new",{interaction:this})}return c(f,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(p,w,_){var C=this.updatePointer(p,w,_,!0),T=this.pointers[C];this._scopeFire("interactions:down",{pointer:p,event:w,eventTarget:_,pointerIndex:C,pointerInfo:T,type:"down",interaction:this})}},{key:"start",value:function(p,w,_){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(p.name==="gesture"?2:1)||!w.options[p.name].enabled)&&(Aa(this.prepared,p),this.interactable=w,this.element=_,this.rect=w.getRect(_),this.edges=this.prepared.edges?Ve({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(p,w,_){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(p,w,_,!1);var C,T,I=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(C=this.coords.cur.client.x-this.coords.start.client.x,T=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Os(C,T)>this.pointerMoveTolerance);var N,D,B,$=this.getPointerIndex(p),Q={pointer:p,pointerIndex:$,pointerInfo:this.pointers[$],event:w,type:"move",eventTarget:_,dx:C,dy:T,duplicate:I,interaction:this};I||(N=this.coords.velocity,D=this.coords.delta,B=Math.max(D.timeStamp/1e3,.001),N.page.x=D.page.x/B,N.page.y=D.page.y/B,N.client.x=D.client.x/B,N.client.y=D.client.y/B,N.timeStamp=B),this._scopeFire("interactions:move",Q),I||this.simulation||(this.interacting()&&(Q.type=null,this.move(Q)),this.pointerWasMoved&&Ea(this.coords.prev,this.coords.cur))}},{key:"move",value:function(p){p&&p.event||pl(this.coords.delta),(p=Ve({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},p||{})).phase="move",this._doPhase(p)}},{key:"pointerUp",value:function(p,w,_,C){var T=this.getPointerIndex(p);T===-1&&(T=this.updatePointer(p,w,_,!1));var I=/cancel$/i.test(w.type)?"cancel":"up";this._scopeFire("interactions:".concat(I),{pointer:p,pointerIndex:T,pointerInfo:this.pointers[T],event:w,eventTarget:_,type:I,curEventTarget:C,interaction:this}),this.simulation||this.end(w),this.removePointer(p,w)}},{key:"documentBlur",value:function(p){this.end(p),this._scopeFire("interactions:blur",{event:p,type:"blur",interaction:this})}},{key:"end",value:function(p){var w;this._ending=!0,p=p||this._latestPointer.event,this.interacting()&&(w=this._doPhase({event:p,interaction:this,phase:"end"})),this._ending=!1,w===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(p){var w=es(p);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:Rs(this.pointers,function(_){return _.id===w})}},{key:"getPointerInfo",value:function(p){return this.pointers[this.getPointerIndex(p)]}},{key:"updatePointer",value:function(p,w,_,C){var T,I,N,D=es(p),B=this.getPointerIndex(p),$=this.pointers[B];return C=C!==!1&&(C||/(down|start)$/i.test(w.type)),$?$.pointer=p:($=new Jd(D,p,w,null,null),B=this.pointers.length,this.pointers.push($)),Ca(this.coords.cur,this.pointers.map(function(Q){return Q.pointer}),this._now()),T=this.coords.delta,I=this.coords.prev,N=this.coords.cur,T.page.x=N.page.x-I.page.x,T.page.y=N.page.y-I.page.y,T.client.x=N.client.x-I.client.x,T.client.y=N.client.y-I.client.y,T.timeStamp=N.timeStamp-I.timeStamp,C&&(this.pointerIsDown=!0,$.downTime=this.coords.cur.timeStamp,$.downTarget=_,Ko(this.downPointer,p),this.interacting()||(Ea(this.coords.start,this.coords.cur),Ea(this.coords.prev,this.coords.cur),this.downEvent=w,this.pointerWasMoved=!1)),this._updateLatestPointer(p,w,_),this._scopeFire("interactions:update-pointer",{pointer:p,event:w,eventTarget:_,down:C,pointerInfo:$,pointerIndex:B,interaction:this}),B}},{key:"removePointer",value:function(p,w){var _=this.getPointerIndex(p);if(_!==-1){var C=this.pointers[_];this._scopeFire("interactions:remove-pointer",{pointer:p,event:w,eventTarget:null,pointerIndex:_,pointerInfo:C,interaction:this}),this.pointers.splice(_,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(p,w,_){this._latestPointer.pointer=p,this._latestPointer.event=w,this._latestPointer.eventTarget=_}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(p,w,_,C){return new Oa(this,p,this.prepared.name,w,this.element,_,C)}},{key:"_fireEvent",value:function(p){var w;(w=this.interactable)==null||w.fire(p),(!this.prevEvent||p.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=p)}},{key:"_doPhase",value:function(p){var w=p.event,_=p.phase,C=p.preEnd,T=p.type,I=this.rect;if(I&&_==="move"&&(Sa(this.edges,I,this.coords.delta[this.interactable.options.deltaSource]),I.width=I.right-I.left,I.height=I.bottom-I.top),this._scopeFire("interactions:before-action-".concat(_),p)===!1)return!1;var N=p.iEvent=this._createPreparedEvent(w,_,C,T);return this._scopeFire("interactions:action-".concat(_),p),_==="start"&&(this.prevEvent=N),this._fireEvent(N),this._scopeFire("interactions:after-action-".concat(_),p),!0}},{key:"_now",value:function(){return Date.now()}}]),f}();function Rl(f){Dl(f.interaction)}function Dl(f){if(!function(w){return!(!w.offset.pending.x&&!w.offset.pending.y)}(f))return!1;var p=f.offset.pending;return Ra(f.coords.cur,p),Ra(f.coords.delta,p),Sa(f.edges,f.rect,p),p.x=0,p.y=0,!0}function ep(f){var p=f.x,w=f.y;this.offset.pending.x+=p,this.offset.pending.y+=w,this.offset.total.x+=p,this.offset.total.y+=w}function Ra(f,p){var w=f.page,_=f.client,C=p.x,T=p.y;w.x+=C,w.y+=T,_.x+=C,_.y+=T}Ol.offsetBy="";var tp={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(f){f.Interaction.prototype.offsetBy=ep},listeners:{"interactions:new":function(f){f.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(f){return function(p){p.pointerIsDown&&(Ra(p.coords.cur,p.offset.total),p.offset.pending.x=0,p.offset.pending.y=0)}(f.interaction)},"interactions:before-action-start":Rl,"interactions:before-action-move":Rl,"interactions:before-action-end":function(f){var p=f.interaction;if(Dl(p))return p.move({offset:!0}),p.end(),!1},"interactions:stop":function(f){var p=f.interaction;p.offset.total.x=0,p.offset.total.y=0,p.offset.pending.x=0,p.offset.pending.y=0}}},Fl=tp,rp=function(){function f(p){o(this,f),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=p}return c(f,[{key:"start",value:function(p){var w=this.interaction,_=Vs(w);if(!_||!_.enabled)return!1;var C=w.coords.velocity.client,T=Os(C.x,C.y),I=this.modification||(this.modification=new Na(w));if(I.copyFrom(w.modification),this.t0=w._now(),this.allowResume=_.allowResume,this.v0=T,this.currentOffset={x:0,y:0},this.startCoords=w.coords.cur.page,this.modifierArg=I.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-w.coords.cur.timeStamp<50&&T>_.minSpeed&&T>_.endSpeed)this.startInertia();else{if(I.result=I.setAll(this.modifierArg),!I.result.changed)return!1;this.startSmoothEnd()}return w.modification.result.rect=null,w.offsetBy(this.targetOffset),w._doPhase({interaction:w,event:p,phase:"inertiastart"}),w.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),w.modification.result.rect=null,this.active=!0,w.simulation=this,!0}},{key:"startInertia",value:function(){var p=this,w=this.interaction.coords.velocity.client,_=Vs(this.interaction),C=_.resistance,T=-Math.log(_.endSpeed/this.v0)/C;this.targetOffset={x:(w.x-T)/C,y:(w.y-T)/C},this.te=T,this.lambda_v0=C/this.v0,this.one_ve_v0=1-_.endSpeed/this.v0;var I=this.modification,N=this.modifierArg;N.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},I.result=I.setAll(N),I.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+I.result.delta.x,y:this.targetOffset.y+I.result.delta.y}),this.onNextFrame(function(){return p.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var p=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return p.smoothEndTick()})}},{key:"onNextFrame",value:function(p){var w=this;this.timeout=wi.request(function(){w.active&&p()})}},{key:"inertiaTick",value:function(){var p,w,_,C,T,I,N,D=this,B=this.interaction,$=Vs(B).resistance,Q=(B._now()-this.t0)/1e3;if(Q<this.te){var ae,ge=1-(Math.exp(-$*Q)-this.lambda_v0)/this.one_ve_v0;this.isModified?(p=0,w=0,_=this.targetOffset.x,C=this.targetOffset.y,T=this.modifiedOffset.x,I=this.modifiedOffset.y,ae={x:$l(N=ge,p,_,T),y:$l(N,w,C,I)}):ae={x:this.targetOffset.x*ge,y:this.targetOffset.y*ge};var he={x:ae.x-this.currentOffset.x,y:ae.y-this.currentOffset.y};this.currentOffset.x+=he.x,this.currentOffset.y+=he.y,B.offsetBy(he),B.move(),this.onNextFrame(function(){return D.inertiaTick()})}else B.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var p=this,w=this.interaction,_=w._now()-this.t0,C=Vs(w).smoothEndDuration;if(_<C){var T={x:Vl(_,0,this.targetOffset.x,C),y:Vl(_,0,this.targetOffset.y,C)},I={x:T.x-this.currentOffset.x,y:T.y-this.currentOffset.y};this.currentOffset.x+=I.x,this.currentOffset.y+=I.y,w.offsetBy(I),w.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return p.smoothEndTick()})}else w.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(p){var w=p.pointer,_=p.event,C=p.eventTarget,T=this.interaction;T.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),T.updatePointer(w,_,C,!0),T._doPhase({interaction:T,event:_,phase:"resume"}),Ea(T.coords.prev,T.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,wi.cancel(this.timeout)}}]),f}();function Vs(f){var p=f.interactable,w=f.prepared;return p&&p.options&&w.name&&p.options[w.name].inertia}var np={id:"inertia",before:["modifiers","actions"],install:function(f){var p=f.defaults;f.usePlugin(Fl),f.usePlugin(kl),f.actions.phases.inertiastart=!0,f.actions.phases.resume=!0,p.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(f){var p=f.interaction;p.inertia=new rp(p)},"interactions:before-action-end":function(f){var p=f.interaction,w=f.event;return(!p._interacting||p.simulation||!p.inertia.start(w))&&null},"interactions:down":function(f){var p=f.interaction,w=f.eventTarget,_=p.inertia;if(_.active)for(var C=w;U.element(C);){if(C===p.element){_.resume(f);break}C=ye(C)}},"interactions:stop":function(f){var p=f.interaction.inertia;p.active&&p.stop()},"interactions:before-action-resume":function(f){var p=f.interaction.modification;p.stop(f),p.start(f,f.interaction.coords.cur.page),p.applyToInteraction(f)},"interactions:before-action-inertiastart":function(f){return f.interaction.modification.setAndApply(f)},"interactions:action-resume":is,"interactions:action-inertiastart":is,"interactions:after-action-inertiastart":function(f){return f.interaction.modification.restoreInteractionCoords(f)},"interactions:after-action-resume":function(f){return f.interaction.modification.restoreInteractionCoords(f)}}};function $l(f,p,w,_){var C=1-f;return C*C*p+2*C*f*w+f*f*_}function Vl(f,p,w,_){return-w*(f/=_)*(f-2)+p}var ip=np;function Ul(f,p){for(var w=0;w<p.length;w++){var _=p[w];if(f.immediatePropagationStopped)break;_(f)}}var zl=function(){function f(p){o(this,f),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=Ve({},p||{})}return c(f,[{key:"fire",value:function(p){var w,_=this.global;(w=this.types[p.type])&&Ul(p,w),!p.propagationStopped&&_&&(w=_[p.type])&&Ul(p,w)}},{key:"on",value:function(p,w){var _=$i(p,w);for(p in _)this.types[p]=Id(this.types[p]||[],_[p])}},{key:"off",value:function(p,w){var _=$i(p,w);for(p in _){var C=this.types[p];if(C&&C.length)for(var T=0,I=_[p];T<I.length;T++){var N=I[T],D=C.indexOf(N);D!==-1&&C.splice(D,1)}}}},{key:"getRect",value:function(p){return null}}]),f}(),op=function(){function f(p){o(this,f),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=p,Ko(this,p)}return c(f,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),f}();function mo(f){return U.object(f)?{capture:!!f.capture,passive:!!f.passive}:{capture:!!f,passive:!1}}function os(f,p){return f===p||(typeof f=="boolean"?!!p.capture===f&&!p.passive:!!f.capture==!!p.capture&&!!f.passive==!!p.passive)}var sp={id:"events",install:function(f){var p,w=[],_={},C=[],T={add:I,remove:N,addDelegate:function($,Q,ae,ge,he){var be=mo(he);if(!_[ae]){_[ae]=[];for(var Oe=0;Oe<C.length;Oe++){var Ie=C[Oe];I(Ie,ae,D),I(Ie,ae,B,!0)}}var Ue=_[ae],et=Vi(Ue,function(st){return st.selector===$&&st.context===Q});et||(et={selector:$,context:Q,listeners:[]},Ue.push(et)),et.listeners.push({func:ge,options:be})},removeDelegate:function($,Q,ae,ge,he){var be,Oe=mo(he),Ie=_[ae],Ue=!1;if(Ie)for(be=Ie.length-1;be>=0;be--){var et=Ie[be];if(et.selector===$&&et.context===Q){for(var st=et.listeners,je=st.length-1;je>=0;je--){var tt=st[je];if(tt.func===ge&&os(tt.options,Oe)){st.splice(je,1),st.length||(Ie.splice(be,1),N(Q,ae,D),N(Q,ae,B,!0)),Ue=!0;break}}if(Ue)break}}},delegateListener:D,delegateUseCapture:B,delegatedEvents:_,documents:C,targets:w,supportsOptions:!1,supportsPassive:!1};function I($,Q,ae,ge){if($.addEventListener){var he=mo(ge),be=Vi(w,function(Oe){return Oe.eventTarget===$});be||(be={eventTarget:$,events:{}},w.push(be)),be.events[Q]||(be.events[Q]=[]),Vi(be.events[Q],function(Oe){return Oe.func===ae&&os(Oe.options,he)})||($.addEventListener(Q,ae,T.supportsOptions?he:he.capture),be.events[Q].push({func:ae,options:he}))}}function N($,Q,ae,ge){if($.addEventListener&&$.removeEventListener){var he=Rs(w,function(Mr){return Mr.eventTarget===$}),be=w[he];if(be&&be.events)if(Q!=="all"){var Oe=!1,Ie=be.events[Q];if(Ie){if(ae==="all"){for(var Ue=Ie.length-1;Ue>=0;Ue--){var et=Ie[Ue];N($,Q,et.func,et.options)}return}for(var st=mo(ge),je=0;je<Ie.length;je++){var tt=Ie[je];if(tt.func===ae&&os(tt.options,st)){$.removeEventListener(Q,ae,T.supportsOptions?st:st.capture),Ie.splice(je,1),Ie.length===0&&(delete be.events[Q],Oe=!0);break}}}Oe&&!Object.keys(be.events).length&&w.splice(he,1)}else for(Q in be.events)be.events.hasOwnProperty(Q)&&N($,Q,"all")}}function D($,Q){for(var ae=mo(Q),ge=new op($),he=_[$.type],be=Ad($)[0],Oe=be;U.element(Oe);){for(var Ie=0;Ie<he.length;Ie++){var Ue=he[Ie],et=Ue.selector,st=Ue.context;if(Fe(Oe,et)&&de(st,be)&&de(st,Oe)){var je=Ue.listeners;ge.currentTarget=Oe;for(var tt=0;tt<je.length;tt++){var Mr=je[tt];os(Mr.options,ae)&&Mr.func(ge)}}}Oe=ye(Oe)}}function B($){return D($,!0)}return(p=f.document)==null||p.createElement("div").addEventListener("test",null,{get capture(){return T.supportsOptions=!0},get passive(){return T.supportsPassive=!0}}),f.events=T,T}},Da={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(f){for(var p=0,w=Da.methodOrder;p<w.length;p++){var _=w[p],C=Da[_](f);if(C)return C}return null},simulationResume:function(f){var p=f.pointerType,w=f.eventType,_=f.eventTarget,C=f.scope;if(!/down|start/i.test(w))return null;for(var T=0,I=C.interactions.list;T<I.length;T++){var N=I[T],D=_;if(N.simulation&&N.simulation.allowResume&&N.pointerType===p)for(;D;){if(D===N.element)return N;D=ye(D)}}return null},mouseOrPen:function(f){var p,w=f.pointerId,_=f.pointerType,C=f.eventType,T=f.scope;if(_!=="mouse"&&_!=="pen")return null;for(var I=0,N=T.interactions.list;I<N.length;I++){var D=N[I];if(D.pointerType===_){if(D.simulation&&!Fa(D,w))continue;if(D.interacting())return D;p||(p=D)}}if(p)return p;for(var B=0,$=T.interactions.list;B<$.length;B++){var Q=$[B];if(!(Q.pointerType!==_||/down/i.test(C)&&Q.simulation))return Q}return null},hasPointer:function(f){for(var p=f.pointerId,w=0,_=f.scope.interactions.list;w<_.length;w++){var C=_[w];if(Fa(C,p))return C}return null},idle:function(f){for(var p=f.pointerType,w=0,_=f.scope.interactions.list;w<_.length;w++){var C=_[w];if(C.pointers.length===1){var T=C.interactable;if(T&&(!T.options.gesture||!T.options.gesture.enabled))continue}else if(C.pointers.length>=2)continue;if(!C.interacting()&&p===C.pointerType)return C}return null}};function Fa(f,p){return f.pointers.some(function(w){return w.id===p})}var ap=Da,Us=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Wl(f,p){return function(w){var _=p.interactions.list,C=yl(w),T=Ad(w),I=T[0],N=T[1],D=[];if(/^touch/.test(w.type)){p.prevTouchTime=p.now();for(var B=0,$=w.changedTouches;B<$.length;B++){var Q=$[B],ae={pointer:Q,pointerId:es(Q),pointerType:C,eventType:w.type,eventTarget:I,curEventTarget:N,scope:p},ge=Bl(ae);D.push([ae.pointer,ae.eventTarget,ae.curEventTarget,ge])}}else{var he=!1;if(!pe.supportsPointerEvent&&/mouse/.test(w.type)){for(var be=0;be<_.length&&!he;be++)he=_[be].pointerType!=="mouse"&&_[be].pointerIsDown;he=he||p.now()-p.prevTouchTime<500||w.timeStamp===0}if(!he){var Oe={pointer:w,pointerId:es(w),pointerType:C,eventType:w.type,curEventTarget:N,eventTarget:I,scope:p},Ie=Bl(Oe);D.push([Oe.pointer,Oe.eventTarget,Oe.curEventTarget,Ie])}}for(var Ue=0;Ue<D.length;Ue++){var et=D[Ue],st=et[0],je=et[1],tt=et[2];et[3][f](st,w,je,tt)}}}function Bl(f){var p=f.pointerType,w=f.scope,_={interaction:ap.search(f),searchDetails:f};return w.fire("interactions:find",_),_.interaction||w.interactions.new({pointerType:p})}function $a(f,p){var w=f.doc,_=f.scope,C=f.options,T=_.interactions.docEvents,I=_.events,N=I[p];for(var D in _.browser.isIOS&&!C.events&&(C.events={passive:!1}),I.delegatedEvents)N(w,D,I.delegateListener),N(w,D,I.delegateUseCapture,!0);for(var B=C&&C.events,$=0;$<T.length;$++){var Q=T[$];N(w,Q.type,Q.listener,B)}}var Gl={id:"core/interactions",install:function(f){for(var p={},w=0;w<Us.length;w++){var _=Us[w];p[_]=Wl(_,f)}var C,T=pe.pEventTypes;function I(){for(var N=0,D=f.interactions.list;N<D.length;N++){var B=D[N];if(B.pointerIsDown&&B.pointerType==="touch"&&!B._interacting)for(var $=function(){var ge=ae[Q];f.documents.some(function(he){return de(he.doc,ge.downTarget)})||B.removePointer(ge.pointer,ge.event)},Q=0,ae=B.pointers;Q<ae.length;Q++)$()}}(C=J.PointerEvent?[{type:T.down,listener:I},{type:T.down,listener:p.pointerDown},{type:T.move,listener:p.pointerMove},{type:T.up,listener:p.pointerUp},{type:T.cancel,listener:p.pointerUp}]:[{type:"mousedown",listener:p.pointerDown},{type:"mousemove",listener:p.pointerMove},{type:"mouseup",listener:p.pointerUp},{type:"touchstart",listener:I},{type:"touchstart",listener:p.pointerDown},{type:"touchmove",listener:p.pointerMove},{type:"touchend",listener:p.pointerUp},{type:"touchcancel",listener:p.pointerUp}]).push({type:"blur",listener:function(N){for(var D=0,B=f.interactions.list;D<B.length;D++)B[D].documentBlur(N)}}),f.prevTouchTime=0,f.Interaction=function(N){d(B,N);var D=E(B);function B(){return o(this,B),D.apply(this,arguments)}return c(B,[{key:"pointerMoveTolerance",get:function(){return f.interactions.pointerMoveTolerance},set:function($){f.interactions.pointerMoveTolerance=$}},{key:"_now",value:function(){return f.now()}}]),B}(Kd),f.interactions={list:[],new:function(N){N.scopeFire=function(B,$){return f.fire(B,$)};var D=new f.Interaction(N);return f.interactions.list.push(D),D},listeners:p,docEvents:C,pointerMoveTolerance:1},f.usePlugin(Ll)},listeners:{"scope:add-document":function(f){return $a(f,"add")},"scope:remove-document":function(f){return $a(f,"remove")},"interactable:unset":function(f,p){for(var w=f.interactable,_=p.interactions.list.length-1;_>=0;_--){var C=p.interactions.list[_];C.interactable===w&&(C.stop(),p.fire("interactions:destroy",{interaction:C}),C.destroy(),p.interactions.list.length>2&&p.interactions.list.splice(_,1))}}},onDocSignal:$a,doOnInteractions:Wl,methodNames:Us},cp=Gl,bi=function(f){return f[f.On=0]="On",f[f.Off=1]="Off",f}(bi||{}),lp=function(){function f(p,w,_,C){o(this,f),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new zl,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=w.actions,this.target=p,this._context=w.context||_,this._win=G(Tn(p)?this._context:p),this._doc=this._win.document,this._scopeEvents=C,this.set(w)}return c(f,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(p,w){return U.func(w.onstart)&&this.on("".concat(p,"start"),w.onstart),U.func(w.onmove)&&this.on("".concat(p,"move"),w.onmove),U.func(w.onend)&&this.on("".concat(p,"end"),w.onend),U.func(w.oninertiastart)&&this.on("".concat(p,"inertiastart"),w.oninertiastart),this}},{key:"updatePerActionListeners",value:function(p,w,_){var C,T=this,I=(C=this._actions.map[p])==null?void 0:C.filterEventType,N=function(D){return(I==null||I(D))&&Fs(D,T._actions)};(U.array(w)||U.object(w))&&this._onOff(bi.Off,p,w,void 0,N),(U.array(_)||U.object(_))&&this._onOff(bi.On,p,_,void 0,N)}},{key:"setPerAction",value:function(p,w){var _=this._defaults;for(var C in w){var T=C,I=this.options[p],N=w[T];T==="listeners"&&this.updatePerActionListeners(p,I.listeners,N),U.array(N)?I[T]=bl(N):U.plainObject(N)?(I[T]=Ve(I[T]||{},fo(N)),U.object(_.perAction[T])&&"enabled"in _.perAction[T]&&(I[T].enabled=N.enabled!==!1)):U.bool(N)&&U.object(_.perAction[T])?I[T].enabled=N:I[T]=N}}},{key:"getRect",value:function(p){return p=p||(U.element(this.target)?this.target:null),U.string(this.target)&&(p=p||this._context.querySelector(this.target)),gi(p)}},{key:"rectChecker",value:function(p){var w=this;return U.func(p)?(this.getRect=function(_){var C=Ve({},p.apply(w,_));return"width"in C||(C.width=C.right-C.left,C.height=C.bottom-C.top),C},this):p===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(p,w){if(Tn(w)||U.object(w)){for(var _ in this.options[p]=w,this._actions.map)this.options[_][p]=w;return this}return this.options[p]}},{key:"origin",value:function(p){return this._backCompatOption("origin",p)}},{key:"deltaSource",value:function(p){return p==="page"||p==="client"?(this.options.deltaSource=p,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var p=this.target;return U.string(p)?Array.from(this._context.querySelectorAll(p)):U.func(p)&&p.getAllElements?p.getAllElements():U.element(p)?[p]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(p){return this._context===p.ownerDocument||de(this._context,p)}},{key:"testIgnoreAllow",value:function(p,w,_){return!this.testIgnore(p.ignoreFrom,w,_)&&this.testAllow(p.allowFrom,w,_)}},{key:"testAllow",value:function(p,w,_){return!p||!!U.element(_)&&(U.string(p)?Cr(_,p,w):!!U.element(p)&&de(p,_))}},{key:"testIgnore",value:function(p,w,_){return!(!p||!U.element(_))&&(U.string(p)?Cr(_,p,w):!!U.element(p)&&de(p,_))}},{key:"fire",value:function(p){return this.events.fire(p),this}},{key:"_onOff",value:function(p,w,_,C,T){U.object(w)&&!U.array(w)&&(C=_,_=null);var I=$i(w,_,T);for(var N in I){N==="wheel"&&(N=pe.wheelEvent);for(var D=0,B=I[N];D<B.length;D++){var $=B[D];Fs(N,this._actions)?this.events[p===bi.On?"on":"off"](N,$):U.string(this.target)?this._scopeEvents[p===bi.On?"addDelegate":"removeDelegate"](this.target,this._context,N,$,C):this._scopeEvents[p===bi.On?"add":"remove"](this.target,N,$,C)}}return this}},{key:"on",value:function(p,w,_){return this._onOff(bi.On,p,w,_)}},{key:"off",value:function(p,w,_){return this._onOff(bi.Off,p,w,_)}},{key:"set",value:function(p){var w=this._defaults;for(var _ in U.object(p)||(p={}),this.options=fo(w.base),this._actions.methodDict){var C=_,T=this._actions.methodDict[C];this.options[C]={},this.setPerAction(C,Ve(Ve({},w.perAction),w.actions[C])),this[T](p[C])}for(var I in p)I!=="getRect"?U.func(this[I])&&this[I](p[I]):this.rectChecker(p.getRect);return this}},{key:"unset",value:function(){if(U.string(this.target))for(var p in this._scopeEvents.delegatedEvents)for(var w=this._scopeEvents.delegatedEvents[p],_=w.length-1;_>=0;_--){var C=w[_],T=C.selector,I=C.context,N=C.listeners;T===this.target&&I===this._context&&w.splice(_,1);for(var D=N.length-1;D>=0;D--)this._scopeEvents.removeDelegate(this.target,this._context,p,N[D][0],N[D][1])}else this._scopeEvents.remove(this.target,"all")}}]),f}(),up=function(){function f(p){var w=this;o(this,f),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=p,p.addListeners({"interactable:unset":function(_){var C=_.interactable,T=C.target,I=U.string(T)?w.selectorMap[T]:T[w.scope.id],N=Rs(I,function(D){return D===C});I.splice(N,1)}})}return c(f,[{key:"new",value:function(p,w){w=Ve(w||{},{actions:this.scope.actions});var _=new this.scope.Interactable(p,w,this.scope.document,this.scope.events);return this.scope.addDocument(_._doc),this.list.push(_),U.string(p)?(this.selectorMap[p]||(this.selectorMap[p]=[]),this.selectorMap[p].push(_)):(_.target[this.scope.id]||Object.defineProperty(p,this.scope.id,{value:[],configurable:!0}),p[this.scope.id].push(_)),this.scope.fire("interactable:new",{target:p,options:w,interactable:_,win:this.scope._win}),_}},{key:"getExisting",value:function(p,w){var _=w&&w.context||this.scope.document,C=U.string(p),T=C?this.selectorMap[p]:p[this.scope.id];if(T)return Vi(T,function(I){return I._context===_&&(C||I.inContext(p))})}},{key:"forEachMatch",value:function(p,w){for(var _=0,C=this.list;_<C.length;_++){var T=C[_],I=void 0;if((U.string(T.target)?U.element(p)&&Fe(p,T.target):p===T.target)&&T.inContext(p)&&(I=w(T)),I!==void 0)return I}}}]),f}(),dp=function(){function f(){var p=this;o(this,f),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=pe,this.defaults=fo(Nl),this.Eventable=zl,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(_){var C=function T(I,N){var D=_.interactables.getExisting(I,N);return D||((D=_.interactables.new(I,N)).events.global=T.globalEvents),D};return C.getPointerAverage=Md,C.getTouchBBox=hl,C.getTouchDistance=gl,C.getTouchAngle=wl,C.getElementRect=gi,C.getElementClientRect=pr,C.matchesSelector=Fe,C.closest=Se,C.globalEvents={},C.version="1.10.27",C.scope=_,C.use=function(T,I){return this.scope.usePlugin(T,I),this},C.isSet=function(T,I){return!!this.scope.interactables.get(T,I&&I.context)},C.on=ns(function(T,I,N){if(U.string(T)&&T.search(" ")!==-1&&(T=T.trim().split(/ +/)),U.array(T)){for(var D=0,B=T;D<B.length;D++){var $=B[D];this.on($,I,N)}return this}if(U.object(T)){for(var Q in T)this.on(Q,T[Q],I);return this}return Fs(T,this.scope.actions)?this.globalEvents[T]?this.globalEvents[T].push(I):this.globalEvents[T]=[I]:this.scope.events.add(this.scope.document,T,I,{options:N}),this},"The interact.on() method is being deprecated"),C.off=ns(function(T,I,N){if(U.string(T)&&T.search(" ")!==-1&&(T=T.trim().split(/ +/)),U.array(T)){for(var D=0,B=T;D<B.length;D++){var $=B[D];this.off($,I,N)}return this}if(U.object(T)){for(var Q in T)this.off(Q,T[Q],I);return this}var ae;return Fs(T,this.scope.actions)?T in this.globalEvents&&(ae=this.globalEvents[T].indexOf(I))!==-1&&this.globalEvents[T].splice(ae,1):this.scope.events.remove(this.scope.document,T,I,N),this},"The interact.off() method is being deprecated"),C.debug=function(){return this.scope},C.supportsTouch=function(){return pe.supportsTouch},C.supportsPointerEvent=function(){return pe.supportsPointerEvent},C.stop=function(){for(var T=0,I=this.scope.interactions.list;T<I.length;T++)I[T].stop();return this},C.pointerMoveTolerance=function(T){return U.number(T)?(this.scope.interactions.pointerMoveTolerance=T,this):this.scope.interactions.pointerMoveTolerance},C.addDocument=function(T,I){this.scope.addDocument(T,I)},C.removeDocument=function(T){this.scope.removeDocument(T)},C}(this),this.InteractEvent=Oa,this.Interactable=void 0,this.interactables=new up(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(_){return p.removeDocument(_.target)};var w=this;this.Interactable=function(_){d(T,_);var C=E(T);function T(){return o(this,T),C.apply(this,arguments)}return c(T,[{key:"_defaults",get:function(){return w.defaults}},{key:"set",value:function(I){return P(h(T.prototype),"set",this).call(this,I),w.fire("interactable:set",{options:I,interactable:this}),this}},{key:"unset",value:function(){P(h(T.prototype),"unset",this).call(this);var I=w.interactables.list.indexOf(this);I<0||(w.interactables.list.splice(I,1),w.fire("interactable:unset",{interactable:this}))}}]),T}(lp)}return c(f,[{key:"addListeners",value:function(p,w){this.listenerMaps.push({id:w,map:p})}},{key:"fire",value:function(p,w){for(var _=0,C=this.listenerMaps;_<C.length;_++){var T=C[_].map[p];if(T&&T(w,this,p)===!1)return!1}}},{key:"init",value:function(p){return this.isInitialized?this:function(w,_){return w.isInitialized=!0,U.window(_)&&j(_),J.init(_),pe.init(_),wi.init(_),w.window=_,w.document=_.document,w.usePlugin(cp),w.usePlugin(sp),w}(this,p)}},{key:"pluginIsInstalled",value:function(p){var w=p.id;return w?!!this._plugins.map[w]:this._plugins.list.indexOf(p)!==-1}},{key:"usePlugin",value:function(p,w){if(!this.isInitialized)return this;if(this.pluginIsInstalled(p))return this;if(p.id&&(this._plugins.map[p.id]=p),this._plugins.list.push(p),p.install&&p.install(this,w),p.listeners&&p.before){for(var _=0,C=this.listenerMaps.length,T=p.before.reduce(function(N,D){return N[D]=!0,N[jl(D)]=!0,N},{});_<C;_++){var I=this.listenerMaps[_].id;if(I&&(T[I]||T[jl(I)]))break}this.listenerMaps.splice(_,0,{id:p.id,map:p.listeners})}else p.listeners&&this.listenerMaps.push({id:p.id,map:p.listeners});return this}},{key:"addDocument",value:function(p,w){if(this.getDocIndex(p)!==-1)return!1;var _=G(p);w=w?Ve({},w):{},this.documents.push({doc:p,options:w}),this.events.documents.push(p),p!==this.document&&this.events.add(_,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:p,window:_,scope:this,options:w})}},{key:"removeDocument",value:function(p){var w=this.getDocIndex(p),_=G(p),C=this.documents[w].options;this.events.remove(_,"unload",this.onWindowUnload),this.documents.splice(w,1),this.events.documents.splice(w,1),this.fire("scope:remove-document",{doc:p,window:_,scope:this,options:C})}},{key:"getDocIndex",value:function(p){for(var w=0;w<this.documents.length;w++)if(this.documents[w].doc===p)return w;return-1}},{key:"getDocOptions",value:function(p){var w=this.getDocIndex(p);return w===-1?null:this.documents[w].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),f}();function jl(f){return f&&f.replace(/\/.*$/,"")}var ql=new dp,Pr=ql.interactStatic,pp=typeof globalThis<"u"?globalThis:window;ql.init(pp);var fp=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(f){var p=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(_){var C=_[0],T=_[1];return C in f||T in f}),w=function(_,C){for(var T=f.range,I=f.limits,N=I===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:I,D=f.offset,B=D===void 0?{x:0,y:0}:D,$={range:T,grid:f,x:null,y:null},Q=0;Q<p.length;Q++){var ae=p[Q],ge=ae[0],he=ae[1],be=Math.round((_-B.x)/f[ge]),Oe=Math.round((C-B.y)/f[he]);$[ge]=Math.max(N.left,Math.min(N.right,be*f[ge]+B.x)),$[he]=Math.max(N.top,Math.min(N.bottom,Oe*f[he]+B.y))}return $};return w.grid=f,w.coordFields=p,w}}),mp={id:"snappers",install:function(f){var p=f.interactStatic;p.snappers=Ve(p.snappers||{},fp),p.createSnapGrid=p.snappers.grid}},hp=mp,gp={start:function(f){var p=f.state,w=f.rect,_=f.edges,C=f.pageCoords,T=p.options,I=T.ratio,N=T.enabled,D=p.options,B=D.equalDelta,$=D.modifiers;I==="preserve"&&(I=w.width/w.height),p.startCoords=Ve({},C),p.startRect=Ve({},w),p.ratio=I,p.equalDelta=B;var Q=p.linkedEdges={top:_.top||_.left&&!_.bottom,left:_.left||_.top&&!_.right,bottom:_.bottom||_.right&&!_.top,right:_.right||_.bottom&&!_.left};if(p.xIsPrimaryAxis=!(!_.left&&!_.right),p.equalDelta){var ae=(Q.left?1:-1)*(Q.top?1:-1);p.edgeSign={x:ae,y:ae}}else p.edgeSign={x:Q.left?-1:1,y:Q.top?-1:1};if(N!==!1&&Ve(_,Q),$!=null&&$.length){var ge=new Na(f.interaction);ge.copyFrom(f.interaction.modification),ge.prepareStates($),p.subModification=ge,ge.startAll(n({},f))}},set:function(f){var p=f.state,w=f.rect,_=f.coords,C=p.linkedEdges,T=Ve({},_),I=p.equalDelta?Hl:wp;if(Ve(f.edges,C),I(p,p.xIsPrimaryAxis,_,w),!p.subModification)return null;var N=Ve({},w);Sa(C,N,{x:_.x-T.x,y:_.y-T.y});var D=p.subModification.setAll(n(n({},f),{},{rect:N,edges:C,pageCoords:_,prevCoords:_,prevRect:N})),B=D.delta;return D.changed&&(I(p,Math.abs(B.x)>Math.abs(B.y),D.coords,D.rect),Ve(_,D.coords)),D.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Hl(f,p,w){var _=f.startCoords,C=f.edgeSign;p?w.y=_.y+(w.x-_.x)*C.y:w.x=_.x+(w.y-_.y)*C.x}function wp(f,p,w,_){var C=f.startRect,T=f.startCoords,I=f.ratio,N=f.edgeSign;if(p){var D=_.width/I;w.y=T.y+(D-C.height)*N.y}else{var B=_.height*I;w.x=T.x+(B-C.width)*N.x}}var Zl=yi(gp,"aspectRatio"),Yl=function(){};Yl._defaults={};var zs=Yl;function zi(f,p,w){return U.func(f)?Qo(f,p.interactable,p.element,[w.x,w.y,p]):Qo(f,p.interactable,p.element)}var Ws={start:function(f){var p=f.rect,w=f.startOffset,_=f.state,C=f.interaction,T=f.pageCoords,I=_.options,N=I.elementRect,D=Ve({left:0,top:0,right:0,bottom:0},I.offset||{});if(p&&N){var B=zi(I.restriction,C,T);if(B){var $=B.right-B.left-p.width,Q=B.bottom-B.top-p.height;$<0&&(D.left+=$,D.right+=$),Q<0&&(D.top+=Q,D.bottom+=Q)}D.left+=w.left-p.width*N.left,D.top+=w.top-p.height*N.top,D.right+=w.right-p.width*(1-N.right),D.bottom+=w.bottom-p.height*(1-N.bottom)}_.offset=D},set:function(f){var p=f.coords,w=f.interaction,_=f.state,C=_.options,T=_.offset,I=zi(C.restriction,w,p);if(I){var N=function(D){return!D||"left"in D&&"top"in D||((D=Ve({},D)).left=D.x||0,D.top=D.y||0,D.right=D.right||D.left+D.width,D.bottom=D.bottom||D.top+D.height),D}(I);p.x=Math.max(Math.min(N.right-T.right,p.x),N.left+T.left),p.y=Math.max(Math.min(N.bottom-T.bottom,p.y),N.top+T.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},yp=yi(Ws,"restrict"),Jl={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Xl={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Ql(f,p){for(var w=0,_=["top","left","bottom","right"];w<_.length;w++){var C=_[w];C in f||(f[C]=p[C])}return f}var ss={noInner:Jl,noOuter:Xl,start:function(f){var p,w=f.interaction,_=f.startOffset,C=f.state,T=C.options;T&&(p=lo(zi(T.offset,w,w.coords.start.page))),p=p||{x:0,y:0},C.offset={top:p.y+_.top,left:p.x+_.left,bottom:p.y-_.bottom,right:p.x-_.right}},set:function(f){var p=f.coords,w=f.edges,_=f.interaction,C=f.state,T=C.offset,I=C.options;if(w){var N=Ve({},p),D=zi(I.inner,_,N)||{},B=zi(I.outer,_,N)||{};Ql(D,Jl),Ql(B,Xl),w.top?p.y=Math.min(Math.max(B.top+T.top,N.y),D.top+T.top):w.bottom&&(p.y=Math.max(Math.min(B.bottom+T.bottom,N.y),D.bottom+T.bottom)),w.left?p.x=Math.min(Math.max(B.left+T.left,N.x),D.left+T.left):w.right&&(p.x=Math.max(Math.min(B.right+T.right,N.x),D.right+T.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},bp=yi(ss,"restrictEdges"),vp=Ve({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(f){}},Ws.defaults),_p=yi({start:Ws.start,set:Ws.set,defaults:vp},"restrictRect"),xp={width:-1/0,height:-1/0},Sp={width:1/0,height:1/0},Ep=yi({start:function(f){return ss.start(f)},set:function(f){var p=f.interaction,w=f.state,_=f.rect,C=f.edges,T=w.options;if(C){var I=dl(zi(T.min,p,f.coords))||xp,N=dl(zi(T.max,p,f.coords))||Sp;w.options={endOnly:T.endOnly,inner:Ve({},ss.noInner),outer:Ve({},ss.noOuter)},C.top?(w.options.inner.top=_.bottom-I.height,w.options.outer.top=_.bottom-N.height):C.bottom&&(w.options.inner.bottom=_.top+I.height,w.options.outer.bottom=_.top+N.height),C.left?(w.options.inner.left=_.right-I.width,w.options.outer.left=_.right-N.width):C.right&&(w.options.inner.right=_.left+I.width,w.options.outer.right=_.left+N.width),ss.set(f),w.options=T}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Va={start:function(f){var p,w=f.interaction,_=f.interactable,C=f.element,T=f.rect,I=f.state,N=f.startOffset,D=I.options,B=D.offsetWithOrigin?function(ae){var ge=ae.interaction.element,he=lo(Qo(ae.state.options.origin,null,null,[ge])),be=he||Ns(ae.interactable,ge,ae.interaction.prepared.name);return be}(f):{x:0,y:0};if(D.offset==="startCoords")p={x:w.coords.start.page.x,y:w.coords.start.page.y};else{var $=Qo(D.offset,_,C,[w]);(p=lo($)||{x:0,y:0}).x+=B.x,p.y+=B.y}var Q=D.relativePoints;I.offsets=T&&Q&&Q.length?Q.map(function(ae,ge){return{index:ge,relativePoint:ae,x:N.left-T.width*ae.x+p.x,y:N.top-T.height*ae.y+p.y}}):[{index:0,relativePoint:null,x:p.x,y:p.y}]},set:function(f){var p=f.interaction,w=f.coords,_=f.state,C=_.options,T=_.offsets,I=Ns(p.interactable,p.element,p.prepared.name),N=Ve({},w),D=[];C.offsetWithOrigin||(N.x-=I.x,N.y-=I.y);for(var B=0,$=T;B<$.length;B++)for(var Q=$[B],ae=N.x-Q.x,ge=N.y-Q.y,he=0,be=C.targets.length;he<be;he++){var Oe=C.targets[he],Ie=void 0;(Ie=U.func(Oe)?Oe(ae,ge,p._proxy,Q,he):Oe)&&D.push({x:(U.number(Ie.x)?Ie.x:ae)+Q.x,y:(U.number(Ie.y)?Ie.y:ge)+Q.y,range:U.number(Ie.range)?Ie.range:C.range,source:Oe,index:he,offset:Q})}for(var Ue={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},et=0;et<D.length;et++){var st=D[et],je=st.range,tt=st.x-N.x,Mr=st.y-N.y,Lt=Os(tt,Mr),Kr=Lt<=je;je===1/0&&Ue.inRange&&Ue.range!==1/0&&(Kr=!1),Ue.target&&!(Kr?Ue.inRange&&je!==1/0?Lt/je<Ue.distance/Ue.range:je===1/0&&Ue.range!==1/0||Lt<Ue.distance:!Ue.inRange&&Lt<Ue.distance)||(Ue.target=st,Ue.distance=Lt,Ue.range=je,Ue.inRange=Kr,Ue.delta.x=tt,Ue.delta.y=Mr)}return Ue.inRange&&(w.x=Ue.target.x,w.y=Ue.target.y),_.closest=Ue,Ue},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Cp=yi(Va,"snap"),Bs={start:function(f){var p=f.state,w=f.edges,_=p.options;if(!w)return null;f.state={options:{targets:null,relativePoints:[{x:w.left?0:1,y:w.top?0:1}],offset:_.offset||"self",origin:{x:0,y:0},range:_.range}},p.targetFields=p.targetFields||[["width","height"],["x","y"]],Va.start(f),p.offsets=f.state.offsets,f.state=p},set:function(f){var p=f.interaction,w=f.state,_=f.coords,C=w.options,T=w.offsets,I={x:_.x-T[0].x,y:_.y-T[0].y};w.options=Ve({},C),w.options.targets=[];for(var N=0,D=C.targets||[];N<D.length;N++){var B=D[N],$=void 0;if($=U.func(B)?B(I.x,I.y,p):B){for(var Q=0,ae=w.targetFields;Q<ae.length;Q++){var ge=ae[Q],he=ge[0],be=ge[1];if(he in $||be in $){$.x=$[he],$.y=$[be];break}}w.options.targets.push($)}}var Oe=Va.set(f);return w.options=C,Oe},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Tp=yi(Bs,"snapSize"),Ua={aspectRatio:Zl,restrictEdges:bp,restrict:yp,restrictRect:_p,restrictSize:Ep,snapEdges:yi({start:function(f){var p=f.edges;return p?(f.state.targetFields=f.state.targetFields||[[p.left?"left":"right",p.top?"top":"bottom"]],Bs.start(f)):null},set:Bs.set,defaults:Ve(fo(Bs.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Cp,snapSize:Tp,spring:zs,avoid:zs,transform:zs,rubberband:zs},Pp={id:"modifiers",install:function(f){var p=f.interactStatic;for(var w in f.usePlugin(kl),f.usePlugin(hp),p.modifiers=Ua,Ua){var _=Ua[w],C=_._defaults,T=_._methods;C._methods=T,f.defaults.perAction[w]=C}}},Mp=Pp,Kl=function(f){d(w,f);var p=E(w);function w(_,C,T,I,N,D){var B;if(o(this,w),Ko(v(B=p.call(this,N)),T),T!==C&&Ko(v(B),C),B.timeStamp=D,B.originalEvent=T,B.type=_,B.pointerId=es(C),B.pointerType=yl(C),B.target=I,B.currentTarget=null,_==="tap"){var $=N.getPointerIndex(C);B.dt=B.timeStamp-N.pointers[$].downTime;var Q=B.timeStamp-N.tapTime;B.double=!!N.prevTap&&N.prevTap.type!=="doubletap"&&N.prevTap.target===B.target&&Q<500}else _==="doubletap"&&(B.dt=C.timeStamp-N.tapTime,B.double=!0);return B}return c(w,[{key:"_subtractOrigin",value:function(_){var C=_.x,T=_.y;return this.pageX-=C,this.pageY-=T,this.clientX-=C,this.clientY-=T,this}},{key:"_addOrigin",value:function(_){var C=_.x,T=_.y;return this.pageX+=C,this.pageY+=T,this.clientX+=C,this.clientY+=T,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),w}(uo),as={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(f){f.pointerEvents=as,f.defaults.actions.pointerEvents=as.defaults,Ve(f.actions.phaselessTypes,as.types)},listeners:{"interactions:new":function(f){var p=f.interaction;p.prevTap=null,p.tapTime=0},"interactions:update-pointer":function(f){var p=f.down,w=f.pointerInfo;!p&&w.hold||(w.hold={duration:1/0,timeout:null})},"interactions:move":function(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget;f.duplicate||w.pointerIsDown&&!w.pointerWasMoved||(w.pointerIsDown&&za(f),vi({interaction:w,pointer:_,event:C,eventTarget:T,type:"move"},p))},"interactions:down":function(f,p){(function(w,_){for(var C=w.interaction,T=w.pointer,I=w.event,N=w.eventTarget,D=w.pointerIndex,B=C.pointers[D].hold,$=Un(N),Q={interaction:C,pointer:T,event:I,eventTarget:N,type:"hold",targets:[],path:$,node:null},ae=0;ae<$.length;ae++){var ge=$[ae];Q.node=ge,_.fire("pointerEvents:collect-targets",Q)}if(Q.targets.length){for(var he=1/0,be=0,Oe=Q.targets;be<Oe.length;be++){var Ie=Oe[be].eventable.options.holdDuration;Ie<he&&(he=Ie)}B.duration=he,B.timeout=setTimeout(function(){vi({interaction:C,eventTarget:N,pointer:T,event:I,type:"hold"},_)},he)}})(f,p),vi(f,p)},"interactions:up":function(f,p){za(f),vi(f,p),function(w,_){var C=w.interaction,T=w.pointer,I=w.event,N=w.eventTarget;C.pointerWasMoved||vi({interaction:C,eventTarget:N,pointer:T,event:I,type:"tap"},_)}(f,p)},"interactions:cancel":function(f,p){za(f),vi(f,p)}},PointerEvent:Kl,fire:vi,collectEventTargets:eu,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function vi(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget,I=f.type,N=f.targets,D=N===void 0?eu(f,p):N,B=new Kl(I,_,C,T,w,p.now());p.fire("pointerEvents:new",{pointerEvent:B});for(var $={interaction:w,pointer:_,event:C,eventTarget:T,targets:D,type:I,pointerEvent:B},Q=0;Q<D.length;Q++){var ae=D[Q];for(var ge in ae.props||{})B[ge]=ae.props[ge];var he=Ns(ae.eventable,ae.node);if(B._subtractOrigin(he),B.eventable=ae.eventable,B.currentTarget=ae.node,ae.eventable.fire(B),B._addOrigin(he),B.immediatePropagationStopped||B.propagationStopped&&Q+1<D.length&&D[Q+1].node!==B.currentTarget)break}if(p.fire("pointerEvents:fired",$),I==="tap"){var be=B.double?vi({interaction:w,pointer:_,event:C,eventTarget:T,type:"doubletap"},p):B;w.prevTap=be,w.tapTime=be.timeStamp}return B}function eu(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget,I=f.type,N=w.getPointerIndex(_),D=w.pointers[N];if(I==="tap"&&(w.pointerWasMoved||!D||D.downTarget!==T))return[];for(var B=Un(T),$={interaction:w,pointer:_,event:C,eventTarget:T,type:I,path:B,targets:[],node:null},Q=0;Q<B.length;Q++){var ae=B[Q];$.node=ae,p.fire("pointerEvents:collect-targets",$)}return I==="hold"&&($.targets=$.targets.filter(function(ge){var he,be;return ge.eventable.options.holdDuration===((he=w.pointers[N])==null||(be=he.hold)==null?void 0:be.duration)})),$.targets}function za(f){var p=f.interaction,w=f.pointerIndex,_=p.pointers[w].hold;_&&_.timeout&&(clearTimeout(_.timeout),_.timeout=null)}var Ap=Object.freeze({__proto__:null,default:as});function Ip(f){var p=f.interaction;p.holdIntervalHandle&&(clearInterval(p.holdIntervalHandle),p.holdIntervalHandle=null)}var Lp={id:"pointer-events/holdRepeat",install:function(f){f.usePlugin(as);var p=f.pointerEvents;p.defaults.holdRepeatInterval=0,p.types.holdrepeat=f.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(f,p){return f["pointerEvents:".concat(p)]=Ip,f},{"pointerEvents:new":function(f){var p=f.pointerEvent;p.type==="hold"&&(p.count=(p.count||0)+1)},"pointerEvents:fired":function(f,p){var w=f.interaction,_=f.pointerEvent,C=f.eventTarget,T=f.targets;if(_.type==="hold"&&T.length){var I=T[0].eventable.options.holdRepeatInterval;I<=0||(w.holdIntervalHandle=setTimeout(function(){p.pointerEvents.fire({interaction:w,eventTarget:C,type:"hold",pointer:_,event:_},p)},I))}}})},kp=Lp,Np={id:"pointer-events/interactableTargets",install:function(f){var p=f.Interactable;p.prototype.pointerEvents=function(_){return Ve(this.events.options,_),this};var w=p.prototype._backCompatOption;p.prototype._backCompatOption=function(_,C){var T=w.call(this,_,C);return T===this&&(this.events.options[_]=C),T}},listeners:{"pointerEvents:collect-targets":function(f,p){var w=f.targets,_=f.node,C=f.type,T=f.eventTarget;p.interactables.forEachMatch(_,function(I){var N=I.events,D=N.options;N.types[C]&&N.types[C].length&&I.testIgnoreAllow(D,_,T)&&w.push({node:_,eventable:N,props:{interactable:I}})})},"interactable:new":function(f){var p=f.interactable;p.events.getRect=function(w){return p.getRect(w)}},"interactable:set":function(f,p){var w=f.interactable,_=f.options;Ve(w.events.options,p.pointerEvents.defaults),Ve(w.events.options,_.pointerEvents||{})}}},Op=Np,Rp={id:"pointer-events",install:function(f){f.usePlugin(Ap),f.usePlugin(kp),f.usePlugin(Op)}},Dp=Rp,Fp={id:"reflow",install:function(f){var p=f.Interactable;f.actions.phases.reflow=!0,p.prototype.reflow=function(w){return function(_,C,T){for(var I=_.getAllElements(),N=T.window.Promise,D=N?[]:null,B=function(){var Q=I[$],ae=_.getRect(Q);if(!ae)return 1;var ge,he=Vi(T.interactions.list,function(Ie){return Ie.interacting()&&Ie.interactable===_&&Ie.element===Q&&Ie.prepared.name===C.name});if(he)he.move(),D&&(ge=he._reflowPromise||new N(function(Ie){he._reflowResolve=Ie}));else{var be=dl(ae),Oe=function(Ie){return{coords:Ie,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:be.x,y:be.y},client:{x:be.x,y:be.y},timeStamp:T.now()});ge=function(Ie,Ue,et,st,je){var tt=Ie.interactions.new({pointerType:"reflow"}),Mr={interaction:tt,event:je,pointer:je,eventTarget:et,phase:"reflow"};tt.interactable=Ue,tt.element=et,tt.prevEvent=je,tt.updatePointer(je,je,et,!0),pl(tt.coords.delta),Aa(tt.prepared,st),tt._doPhase(Mr);var Lt=Ie.window,Kr=Lt.Promise,Pn=Kr?new Kr(function(zn){tt._reflowResolve=zn}):void 0;return tt._reflowPromise=Pn,tt.start(st,Ue,et),tt._interacting?(tt.move(Mr),tt.end(je)):(tt.stop(),tt._reflowResolve()),tt.removePointer(je,je),Pn}(T,_,Q,C,Oe)}D&&D.push(ge)},$=0;$<I.length&&!B();$++);return D&&N.all(D).then(function(){return _})}(this,w,f)}},listeners:{"interactions:stop":function(f,p){var w=f.interaction;w.pointerType==="reflow"&&(w._reflowResolve&&w._reflowResolve(),function(_,C){_.splice(_.indexOf(C),1)}(p.interactions.list,w))}}},$p=Fp;if(Pr.use(Ll),Pr.use(Fl),Pr.use(Dp),Pr.use(ip),Pr.use(Mp),Pr.use(qd),Pr.use(Fd),Pr.use(Cl),Pr.use($p),Pr.default=Pr,i(e)==="object"&&e)try{e.exports=Pr}catch{}return Pr.default=Pr,Pr})})(Uv,Uv.exports);mQ=Uv.exports,k1=WR(mQ)});function jR(e,t,r){return t?`${e}-${t}`:r?`${e}-${r}`:`${e}-m`}var qR=R(()=>{});var el,Ni,tl,zv,HR,ZR,hQ,BE,YR,Bv,Wv,JR=R(()=>{ar();Yc();GR();Ki();Vo();Dr();Sn();kE();ha();jc();qR();Ov();zE();xs();_n();el={dialog:"dialog",panel:"panel",scrim:"scrim",container:"container",containerOpen:"container--open",containerEmbedded:"container--embedded",assistiveText:"assistive-text",openingActive:"dialog--opening-active"},Ni={actionBar:"action-bar",alerts:"alerts",content:"content",contentTop:"content-top",contentBottom:"content-bottom",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerStart:"footer-start",footerEnd:"footer-end"},tl=25,zv=25,HR={x:0,y:0},ZR={top:0,right:0,bottom:0,left:0},hQ=Dt`:host{--calcite-dialog-scrim-background-color: rgba(0, 0, 0, .85);pointer-events:none;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;--calcite-internal-dialog-animation-offset: 20px}:host([modal]){position:absolute}.container{pointer-events:auto;position:fixed;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}:host([placement=top]) .container{align-items:flex-start;justify-content:center}:host([placement=top-start]) .container{align-items:flex-start;justify-content:flex-start}:host([placement=top-end]) .container{align-items:flex-start;justify-content:flex-end}:host([placement=bottom]) .container{align-items:flex-end;justify-content:center}:host([placement=bottom-start]) .container{align-items:flex-end;justify-content:flex-start}:host([placement=bottom-end]) .container{align-items:flex-end;justify-content:flex-end}:host(:not([modal])) .container{pointer-events:none}:host([scale=s]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-sm));--calcite-internal-dialog-min-size-x: 198px;--calcite-internal-dialog-min-size-y: 140px}:host([scale=m]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-md));--calcite-internal-dialog-min-size-x: 288px;--calcite-internal-dialog-min-size-y: 180px}:host([scale=l]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-md-plus));--calcite-internal-dialog-min-size-x: 388px;--calcite-internal-dialog-min-size-y: 220px}.scrim{--calcite-scrim-background: var(--calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim));--calcite-scrim-background-color: var( --calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim) );position:fixed;inset:0;display:flex;overflow-y:hidden}calcite-panel{--calcite-panel-content-space: var(--calcite-dialog-content-space, var(--calcite-internal-dialog-content-padding));--calcite-panel-footer-space: var(--calcite-dialog-footer-space);--calcite-panel-border-color: var(--calcite-dialog-border-color);--calcite-panel-background-color: var(--calcite-dialog-background-color, var(--calcite-color-foreground-1))}.dialog{pointer-events:none;position:relative;z-index:var(--calcite-z-index-modal);margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;border-radius:.25rem;opacity:0;--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);min-inline-size:var(--calcite-dialog-min-size-x, var(--calcite-internal-dialog-min-size-x));max-inline-size:var(--calcite-dialog-max-size-x, 100%);min-block-size:var(--calcite-dialog-min-size-y, var(--calcite-internal-dialog-min-size-y));max-block-size:var(--calcite-dialog-max-size-y, 100%);--calcite-internal-dialog-hidden-position: calc( var(--calcite-dialog-offset-y, 0px) + var(--calcite-internal-dialog-animation-offset) );--calcite-internal-dialog-shown-position: var(--calcite-dialog-offset-y, 0);inset-inline-start:var(--calcite-dialog-offset-x, 0);inset-block-start:var(--calcite-internal-dialog-hidden-position)}.dialog--opening-active{inset-block-start:var(--calcite-internal-dialog-shown-position)}:host([menu-open]) .dialog{transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}.panel{border-radius:.25rem}.container--open{opacity:1;visibility:visible;transition-delay:0ms}.container--open .dialog{pointer-events:auto;visibility:visible;opacity:1;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}.width-s{inline-size:auto;inline-size:var(--calcite-dialog-size-x, 32rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 35rem){.width-s{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-s.dialog--opening-active{inset-block-start:0}}.width-m{inline-size:var(--calcite-dialog-size-x, 48rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 51rem){.width-m{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-m.dialog--opening-active{inset-block-start:0}}.width-l{inline-size:var(--calcite-dialog-size-x, 94rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 97rem){.width-l{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-l.dialog--opening-active{inset-block-start:0}}:host([placement=cover]) .dialog{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0}:host([placement=cover]) .panel{border-radius:0}:host([kind]) .panel{border-start-start-radius:0px;border-start-end-radius:0px}:host([kind=brand]) .dialog{border-color:var(--calcite-color-brand)}:host([kind=danger]) .dialog{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .dialog{border-color:var(--calcite-color-status-info)}:host([kind=success]) .dialog{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .dialog{border-color:var(--calcite-color-status-warning)}:host([kind=brand][open]) .dialog,:host([kind=danger][open]) .dialog,:host([kind=info][open]) .dialog,:host([kind=success][open]) .dialog,:host([kind=warning][open]) .dialog{border-width:0px;border-block-start-width:4px;border-style:solid}.container--embedded{position:absolute;pointer-events:auto}.container--embedded calcite-scrim{position:absolute}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}`,BE=0,YR="",Bv=class Bv extends $t{constructor(){super(...arguments),this.dragPosition={...HR},this.escapeDeactivates=t=>t.defaultPrevented||this.escapeDisabled?!1:(t.preventDefault(),!0),this.focusTrapDeactivates=()=>{this.open=!1},this.ignoreOpenChange=!1,this.mutationObserver=Zn("mutation",()=>this.handleMutationObserver()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteDialogOpen",this.openEnd)},this.openTransitionProp="opacity",this.panelEl=Li(),this.resizePosition={...ZR},this.assistiveText=null,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasFooter=!0,this.opened=!1,this.closeDisabled=!1,this.dragEnabled=!1,this.embedded=!1,this.escapeDisabled=!1,this.loading=!1,this.menuOpen=!1,this.messages=pn(),this.modal=!1,this.outsideCloseDisabled=!1,this.overlayPositioning="absolute",this.placement="center",this.resizable=!1,this.scale="m",this.widthScale="m",this.calciteDialogBeforeClose=Ft({cancelable:!1}),this.calciteDialogBeforeOpen=Ft({cancelable:!1}),this.calciteDialogClose=Ft({cancelable:!1}),this.calciteDialogOpen=Ft({cancelable:!1}),this.calciteDialogScroll=Ft({cancelable:!1})}get open(){return this._open}set open(t){let r=this._open;t!==r&&(this._open=t,this.toggleDialog(t))}async scrollContentTo(t){await this.panelEl.value?.scrollContentTo(t)}async setFocus(){return await $n(this),this.panelEl.value?.setFocus()??Gc(this.el)}async updateFocusTrapElements(){Nv(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),kv(this,{focusTrapOptions:{clickOutsideDeactivates:!1,escapeDeactivates:this.escapeDeactivates,onDeactivate:this.focusTrapDeactivates}}),this.setupInteractions()}async load(){Dn(this),this.open&&this.openDialog()}willUpdate(t){t.has("modal")&&(this.hasUpdated||this.modal!==!1)&&this.updateOverflowHiddenClass(),(t.has("open")&&(this.hasUpdated||this.open!==!1)||t.has("placement")&&(this.hasUpdated||this.placement!=="center")||t.has("resizable")&&(this.hasUpdated||this.resizable!==!1)||t.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1))&&this.setupInteractions(),(t.has("messages")||t.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1)||t.has("resizable")&&(this.hasUpdated||this.resizable!==!1))&&this.updateAssistiveText(),t.has("opened")&&(this.hasUpdated||this.opened!==!1)&&this.handleOpenedChange(this.opened)}loaded(){Fn(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),ad(this),this.embedded=!1,this.cleanupInteractions()}updateAssistiveText(){let{messages:t}=this;this.assistiveText=t&&(this.dragEnabled||this.resizable)?`${this.dragEnabled?t.dragEnabled:""} ${this.resizable?t.resizeEnabled:""}`:null}onBeforeOpen(){this.calciteDialogBeforeOpen.emit()}onOpen(){this.calciteDialogOpen.emit(),P1(this)}onBeforeClose(){this.calciteDialogBeforeClose.emit()}onClose(){this.calciteDialogClose.emit(),ad(this)}toggleDialog(t){this.ignoreOpenChange||(t?this.openDialog():this.closeDialog())}handleOpenedChange(t){let{transitionEl:r}=this;r&&(r.classList.toggle(el.openingActive,t),Kc(this))}async triggerInteractModifiers(){let{interaction:t}=this;t&&(await t.reflow({name:"drag"}),await t.reflow({name:"resize"}))}getTransitionElDOMRect(){return this.transitionEl.getBoundingClientRect()}handleKeyDown(t){let{key:r,shiftKey:n,defaultPrevented:i}=t,{dragEnabled:o,resizable:s,resizePosition:c,dragPosition:a,transitionEl:d}=this;if(!(i||!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(r)))switch(r){case"ArrowUp":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height-tl,type:"blockSize"}),c.bottom-=tl,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.y-=zv,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowDown":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height+tl,type:"blockSize"}),c.bottom+=tl,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.y+=zv,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowLeft":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width-tl,type:"inlineSize"}),c.right-=tl,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.x-=zv,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowRight":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width+tl,type:"inlineSize"}),c.right+=tl,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.x+=zv,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break}}updateTransform(){let{dragPosition:{x:t,y:r},resizePosition:n,transitionEl:i,dragEnabled:o,resizable:s}=this;if(!i)return;if(!o&&!s){i.style.transform=null;return}let{top:c,right:a,bottom:d,left:h}=this.getAdjustedResizePosition(n),g=Math.round(t+h+a),v=Math.round(r+c+d);i.style.transform=g||v?`translate(${g}px, ${v}px)`:null}updateSize({type:t,size:r}){let{transitionEl:n}=this;n&&(n.style[t]=r!==null?`${Math.round(r)}px`:null)}cleanupInteractions(){this.interaction?.unset(),this.updateSize({size:null,type:"inlineSize"}),this.updateSize({size:null,type:"blockSize"}),this.dragPosition={...HR},this.resizePosition={...ZR},this.updateTransform()}setupInteractions(){this.cleanupInteractions();let{el:t,transitionEl:r,resizable:n,dragEnabled:i,resizePosition:o,dragPosition:s}=this;if(!(!r||!this.open)){if((n||i)&&(this.interaction=k1(r,{context:t.ownerDocument})),n){let{minInlineSize:c,minBlockSize:a,maxInlineSize:d,maxBlockSize:h}=window.getComputedStyle(r);this.interaction.resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},modifiers:[k1.modifiers.restrictSize({min:{width:c1(c)?parseInt(c,10):0,height:c1(a)?parseInt(a,10):0},max:{width:c1(d)?parseInt(d,10):window.innerWidth,height:c1(h)?parseInt(h,10):window.innerHeight}}),k1.modifiers.restrict({restriction:"parent"})],listeners:{move:({rect:g,deltaRect:v})=>{v&&(o.top+=v.top,o.right+=v.right,o.bottom+=v.bottom,o.left+=v.left),this.updateSize({size:g.width,type:"inlineSize"}),this.updateSize({size:g.height,type:"blockSize"}),this.updateTransform()}}})}i&&this.interaction.draggable({modifiers:[k1.modifiers.restrictRect({restriction:"parent"})],listeners:{move:({dx:c,dy:a})=>{s.x+=c,s.y+=a,this.updateTransform()}}})}}getAdjustedResizePosition({top:t,right:r,bottom:n,left:i}){let o=t/2,s=r/2,c=n/2,a=i/2;switch(this.placement){case"top":return{top:t,right:s,bottom:0,left:a};case"top-start":return{top:t,right:0,bottom:0,left:i};case"top-end":return{top:t,right:r,bottom:0,left:0};case"bottom":return{top:0,right:s,bottom:n,left:a};case"bottom-start":return{top:0,right:0,bottom:n,left:i};case"bottom-end":return{top:0,right:r,bottom:n,left:0};case"cover":case"center":default:return{top:o,right:s,bottom:c,left:a}}}setTransitionEl(t){this.transitionEl=t,this.setupInteractions()}handleInternalPanelScroll(t){t.target===this.panelEl.value&&(t.stopPropagation(),this.calciteDialogScroll.emit())}handleInternalPanelCloseClick(t){t.target===this.panelEl.value&&(t.stopPropagation(),this.open=!1)}handlePanelKeyDown(t){this.escapeDisabled&&t.key==="Escape"&&t.preventDefault()}async openDialog(){await this.componentOnReady(),this.el.addEventListener("calciteDialogOpen",this.openEnd),this.opened=!0,this.updateOverflowHiddenClass()}handleOutsideClose(){this.outsideCloseDisabled||(this.open=!1)}async closeDialog(){if(this.beforeClose)try{await this.beforeClose()}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}BE--,this.opened=!1,this.updateOverflowHiddenClass()}updateOverflowHiddenClass(){this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()}addOverflowHiddenClass(){BE===0&&(YR=document.documentElement.style.overflow),BE++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",YR)}handleMutationObserver(){this.updateFocusTrapElements()}render(){let{assistiveText:t,description:r,heading:n,opened:i}=this;return xe`<div class=${_e({[el.container]:!0,[el.containerOpen]:i,[el.containerEmbedded]:this.embedded})}>${this.modal?xe`<calcite-scrim class=${_e(el.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>`:null}<div .ariaDescription=${r} .ariaLabel=${n} .ariaModal=${this.modal} class=${_e({[el.dialog]:!0,[jR("width",this.width,this.widthScale)]:!!(this.width||this.widthScale)})} @keydown=${this.handleKeyDown} role=dialog ${At(this.setTransitionEl)}>${t?cr("assistive-text",xe`<div aria-live=polite class=${_e(el.assistiveText)}>${t}</div>`):null}<slot name=${Ni.content}><calcite-panel .beforeClose=${this.beforeClose} class=${_e(el.panel)} .closable=${!this.closeDisabled} .closed=${!i} .description=${r} .heading=${n} .headingLevel=${this.headingLevel} .loading=${this.loading} .menuOpen=${this.menuOpen} .messageOverrides=${this.messageOverrides} @keydown=${this.handlePanelKeyDown} @calcitePanelClose=${this.handleInternalPanelCloseClick} @calcitePanelScroll=${this.handleInternalPanelScroll} .overlayPositioning=${this.overlayPositioning} .scale=${this.scale} ${At(this.panelEl)}><slot name=${Ni.actionBar} slot=${Zt.actionBar}></slot><slot name=${Ni.alerts} slot=${Zt.alerts}></slot><slot name=${Ni.headerActionsStart} slot=${Zt.headerActionsStart}></slot><slot name=${Ni.headerActionsEnd} slot=${Zt.headerActionsEnd}></slot><slot name=${Ni.headerContent} slot=${Zt.headerContent}></slot><slot name=${Ni.headerMenuActions} slot=${Zt.headerMenuActions}></slot><slot name=${Ni.fab} slot=${Zt.fab}></slot><slot name=${Ni.contentTop} slot=${Zt.contentTop}></slot><slot name=${Ni.contentBottom} slot=${Zt.contentBottom}></slot><slot name=${Ni.footerStart} slot=${Zt.footerStart}></slot><slot name=${Ni.footer} slot=${Zt.footer}></slot><slot name=${Ni.footerEnd} slot=${Zt.footerEnd}></slot><slot></slot></calcite-panel></slot></div></div>`}};Bv.properties={assistiveText:16,hasContentBottom:16,hasContentTop:16,hasFooter:16,opened:16,beforeClose:0,closeDisabled:7,description:1,dragEnabled:7,embedded:5,escapeDisabled:7,heading:1,headingLevel:11,kind:3,loading:7,menuOpen:7,messageOverrides:0,modal:7,open:7,outsideCloseDisabled:7,overlayPositioning:3,placement:3,resizable:7,scale:3,widthScale:3,width:3},Bv.styles=hQ;Wv=Bv;Gt("calcite-dialog",Wv)});var XR={};qs(XR,{Dialog:()=>Wv});var QR=R(()=>{aE();UR();JR()});var KR,gQ,Gv,GE,eD=R(()=>{ar();Ki();Dr();Sn();_n();KR={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},gQ=Dt`:host{box-sizing:border-box;display:flex;block-size:auto;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);opacity:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;--calcite-input-message-spacing-value: .25rem;margin-block-start:var(--calcite-input-message-spacing-value)}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin-inline-end:.5rem}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-color-status-danger)}:host([status=warning]) .calcite-input-message-icon{color:var(--calcite-color-status-warning)}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-color-status-success)}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-color-brand)}:host([scale=s]){font-size:var(--calcite-font-size--3);line-height:.75rem}:host([scale=m]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([hidden]){display:none}[hidden]{display:none}`,Gv=class Gv extends $t{constructor(){super(...arguments),this.iconFlipRtl=!1,this.scale="m",this.status="idle"}connectedCallback(){super.connectedCallback(),this.requestedIcon=ma(KR,this.icon,this.status)}willUpdate(t){(t.has("status")&&(this.hasUpdated||this.status!=="idle")||t.has("icon"))&&(this.requestedIcon=ma(KR,this.icon,this.status))}render(){let t=this.el.hidden;return am(this.el,"calcite-hydrated-hidden",t),xe`${this.renderIcon(this.requestedIcon)}<slot></slot>`}renderIcon(t){if(t)return xe`<calcite-icon class="calcite-input-message-icon" .flipRtl=${this.iconFlipRtl} .icon=${t} scale=s></calcite-icon>`}};Gv.properties={icon:[3,{converter:pa}],iconFlipRtl:7,scale:3,status:3},Gv.styles=gQ;GE=Gv;Gt("calcite-input-message",GE)});var tD=R(()=>{Qu();eD()});var wQ,jv,jE,rD=R(()=>{ar();Rr();Dr();Sn();_n();wQ=Dt`:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background-color:var(--calcite-progress-background-color, var(--calcite-color-border-3))}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-progress-fill-color, var(--calcite-color-brand))}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-progress-text-color, var(--calcite-color-text-2))}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%,0,0)}50%{inline-size:40%}to{transform:translate3d(600%,0,0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%,0,0)}50%{inline-size:40%}to{transform:translate3d(-600%,0,0)}}:host([hidden]){display:none}[hidden]{display:none}`,jv=class jv extends $t{constructor(){super(...arguments),this.reversed=!1,this.type="determinate",this.value=0}render(){let t=this.type==="determinate",r=t?{width:`${this.value}%`}:{},n=Wc(this.el);return xe`<div .ariaLabel=${this.label||this.text} .ariaValueMax=${t?"100":void 0} .ariaValueMin=${t?"0":void 0} .ariaValueNow=${t?this.value:void 0} role=progressbar><div class="track"><div class=${_e({bar:!0,indeterminate:this.type==="indeterminate",[o1.rtl]:n==="rtl",reversed:this.reversed})} style=${Gb(r)}></div></div>${this.text?xe`<div class="text">${this.text}</div>`:null}</div>`}};jv.properties={label:1,reversed:7,text:1,type:3,value:9},jv.styles=wQ;jE=jv;Gt("calcite-progress",jE)});var nD=R(()=>{rD()});function Es(e){return!(!e||isNaN(Number(e)))}function iD(e){return!e||!TQ(e)?"":qv(e,t=>{let r=!1,n=t.split("").filter((i,o)=>i.match(/\./g)&&!r?(r=!0,!0):i.match(/-/g)&&o===0?!0:M1.includes(i)).join("");return Es(n)?new cd(n).toString():""})}function EQ(e){let t=e.split(".")[1],r=new cd(e).toString(),[n,i]=r.split(".");return t&&i!==t?`${n}.${t}`:r}function qv(e,t){if(!e)return e;let r=e.toLowerCase().indexOf("e")+1;return r?e.replace(/[eE]*$/g,"").substring(0,r).concat(e.slice(r).replace(/[eE]/g,"")).split(/[eE]/).map((n,i)=>t(i===1?n.replace(/\./g,""):n)).join("e").replace(/^e/,"1e"):t(e)}function CQ(e){let t=e.split(/[eE]/);if(t.length===1)return e;let r=+e;if(Number.isSafeInteger(r))return`${r}`;let n=e.charAt(0)==="-",i=+t[1],o=t[0].split("."),s=(n?o[0].substring(1):o[0])||"",c=o[1]||"",a=(g,v)=>{let E=Math.abs(v)-g.length,P=E>0?`${"0".repeat(E)}${g}`:g;return`${P.slice(0,v)}.${P.slice(v)}`},d=(g,v)=>{let E=v>g.length?`${g}${"0".repeat(v-g.length)}`:g;return`${E.slice(0,v)}.${E.slice(v)}`},h=i>0?`${s}${d(c,i)}`:`${a(s,i)}${c}`;return`${n?"-":""}${h.charAt(0)==="."?"0":""}${h.replace(yQ,"").replace(oD,"")}`}function TQ(e){return M1.some(t=>e.includes(t))}function aD(e,t,r){let n=t.split(".")[1];if(n){let i=n.match(SQ)[0];if(i&&r.delocalize(e).length!==t.length&&n.indexOf("e")===-1){let o=r.decimal;return e=e.includes(o)?e:`${e}${o}`,e.padEnd(e.length+i.length,r.localize("0"))}}return e}function AQ(e,t="cldr"){let r=t==="cldr"?lD:cD;return e?r.includes(e)?e:(e=e.toLowerCase(),e==="nb"?"no":t==="t9n"&&e==="pt"?"pt-BR":(e.includes("-")&&(e=e.replace(/(\w+)-(\w+)/,(n,i,o)=>`${i}-${o.toUpperCase()}`),r.includes(e)||(e=e.split("-")[0])),e==="zh"?"zh-CN":r.includes(e)?e:(console.warn(`Translations for the "${e}" locale are not available and will fall back to the default, English (en).`),N1))):N1}var yQ,bQ,Vt,cd,oD,vQ,_Q,xQ,SQ,sD,N1,cD,lD,PQ,uD,qE,dD,MQ,HE,qo,pD=R(()=>{A1();yQ=new RegExp("\\.(0+)?$"),bQ=new RegExp("0+$"),Vt=class Vt{constructor(t){if(t instanceof Vt)return t;let[r,n]=CQ(t).split(".").concat("");this.value=BigInt(r+n.padEnd(Vt.DECIMALS,"0").slice(0,Vt.DECIMALS))+BigInt(Vt.ROUNDED&&n[Vt.DECIMALS]>="5"),this.isNegative=t.charAt(0)==="-"}getIntegersAndDecimals(){let t=this.value.toString().replace("-","").padStart(Vt.DECIMALS+1,"0"),r=t.slice(0,-Vt.DECIMALS),n=t.slice(-Vt.DECIMALS).replace(bQ,"");return{integers:r,decimals:n}}toString(){let{integers:t,decimals:r}=this.getIntegersAndDecimals();return`${this.isNegative?"-":""}${t}${r.length?"."+r:""}`}formatToParts(t){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=t.numberFormatter.formatToParts(BigInt(r));return this.isNegative&&i.unshift({type:"minusSign",value:t.minusSign}),n.length&&(i.push({type:"decimal",value:t.decimal}),n.split("").forEach(o=>i.push({type:"fraction",value:o}))),i}format(t){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=`${this.isNegative?t.minusSign:""}${t.numberFormatter.format(BigInt(r))}`,o=n.length?`${t.decimal}${n.split("").map(s=>t.numberFormatter.format(Number(s))).join("")}`:"";return`${i}${o}`}add(t){return Vt.fromBigInt(this.value+new Vt(t).value)}subtract(t){return Vt.fromBigInt(this.value-new Vt(t).value)}multiply(t){return Vt._divRound(this.value*new Vt(t).value,Vt.SHIFT)}divide(t){return Vt._divRound(this.value*Vt.SHIFT,new Vt(t).value)}};Vt.DECIMALS=100,Vt.ROUNDED=!0,Vt.SHIFT=BigInt("1"+"0".repeat(Vt.DECIMALS)),Vt._divRound=(t,r)=>Vt.fromBigInt(t/r+(Vt.ROUNDED?t*BigInt(2)/r%BigInt(2):BigInt(0))),Vt.fromBigInt=t=>Object.assign(Object.create(Vt.prototype),{value:t,isNegative:t<BigInt(0)});cd=Vt;oD=/^([-0])0+(?=\d)/,vQ=/(?!^\.)\.$/,_Q=/(?!^-)-/g,xQ=/^-\b0\b\.?0*$/,SQ=/0*$/,sD=e=>qv(e,t=>{let r=t.replace(_Q,"").replace(vQ,"").replace(oD,"$1");return Es(r)?xQ.test(r)?r:EQ(r):t});N1="en",cD=["ar","bg","bs","ca","cs","da","de","el",N1,"es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","no","nl","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],lD=["ar","bg","bs","ca","cs","da","de","de-AT","de-CH","el",N1,"en-AU","en-CA","en-GB","es","es-MX","et","fi","fr","fr-CH","he","hi","hr","hu","id","it","it-CH","ja","ko","lt","lv","mk","no","nl","pl","pt","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],PQ=["arab","arabext","latn"];[...new Set([...cD,...lD])];uD=e=>PQ.includes(e),qE=new Intl.NumberFormat().resolvedOptions().numberingSystem,dD=qE==="arab"||!uD(qE)?"latn":qE,MQ=e=>uD(e)?e:dD;HE=class{constructor(){this.delocalize=t=>this._numberFormatOptions?qv(t,r=>r.replace(new RegExp(`[${this._minusSign}]`,"g"),"-").replace(new RegExp(`[${this._group}]`,"g"),"").replace(new RegExp(`[${this._decimal}]`,"g"),".").replace(new RegExp(`[${this._digits.join("")}]`,"g"),this._getDigitIndex)):t,this.localize=t=>this._numberFormatOptions?qv(t,r=>Es(r.trim())?new cd(r.trim()).format(this).replace(new RegExp(`[${this._actualGroup}]`,"g"),this._group):r):t}get group(){return this._group}get decimal(){return this._decimal}get minusSign(){return this._minusSign}get digits(){return this._digits}get numberFormatter(){return this._numberFormatter}get numberFormatOptions(){return this._numberFormatOptions}set numberFormatOptions(t){if(t.locale=AQ(t?.locale),t.numberingSystem=MQ(t?.numberingSystem),!this._numberFormatOptions&&t.locale===N1&&t.numberingSystem===dD&&Object.keys(t).length===2||JSON.stringify(this._numberFormatOptions)===JSON.stringify(t))return;this._numberFormatOptions=t,this._numberFormatter=new Intl.NumberFormat(this._numberFormatOptions.locale,this._numberFormatOptions),this._digits=[...new Intl.NumberFormat(this._numberFormatOptions.locale,{useGrouping:!1,numberingSystem:this._numberFormatOptions.numberingSystem}).format(9876543210)].reverse();let r=new Map(this._digits.map((i,o)=>[i,o])),n=new Intl.NumberFormat(this._numberFormatOptions.locale,{numberingSystem:this._numberFormatOptions.numberingSystem}).formatToParts(-123456789e-1);this._actualGroup=n.find(i=>i.type==="group").value,this._group=this._actualGroup.trim().length===0||this._actualGroup==" "?"\xA0":this._actualGroup,this._decimal=n.find(i=>i.type==="decimal").value,this._minusSign=n.find(i=>i.type==="minusSign").value,this._getDigitIndex=i=>r.get(i)}},qo=new HE});var IQ,fD,mD=R(()=>{Rr();Dr();IQ={validationContainer:"validation-container"},fD=({scale:e,status:t,id:r,icon:n,message:i})=>xe`<div class=${_e(IQ.validationContainer)}><calcite-input-message aria-live=polite .icon=${n} id=${r??Re} .scale=${e} .status=${t}>${i}</calcite-input-message></div>`});function _m(e,t,r,n){let i=r.toLowerCase(),o=e[r];n&&o!=null?t.setAttribute(i,`${o}`):t.removeAttribute(i)}function hD(e,t,r){r.type=e==="textarea"?"text":e;let n=LQ.includes(e),i=t;_m(i,r,"min",n),_m(i,r,"max",n),_m(i,r,"step",n);let o=NQ.includes(e),s=t;_m(s,r,"minLength",o),_m(s,r,"maxLength",o);let c=kQ.includes(e);_m(s,r,"pattern",c)}var LQ,kQ,NQ,gD=R(()=>{LQ=["date","datetime-local","month","number","range","time","week"],kQ=["email","password","search","tel","text","url"],NQ=["email","password","search","tel","text","textarea","url"]});var Jn,ZE,wD,OQ,RQ,Zv,Hv,yD=R(()=>{ar();R5();Yc();Ki();Vo();nv();Dr();Bu();Sn();oE();u1();A1();lv();ha();pD();mm();mD();xs();gD();_n();Jn={loader:"loader",clearButton:"clear-button",editingEnabled:"editing-enabled",inlineChild:"inline-child",inputIcon:"icon",prefix:"prefix",suffix:"suffix",numberButtonWrapper:"number-button-wrapper",buttonItemHorizontal:"number-button-item--horizontal",wrapper:"element-wrapper",inputWrapper:"wrapper",actionWrapper:"action-wrapper",numberButtonItem:"number-button-item"},ZE={validationMessage:"inputValidationMessage"},wD={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},OQ={action:"action"},RQ=Dt`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) textarea{block-size:1.5rem;min-block-size:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) input[type=file]{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=s]) textarea{block-size:auto;padding-block:.25rem;padding-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) textarea{min-block-size:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) input[type=file]{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=m]) textarea{block-size:auto;padding-block:.5rem;padding-inline:.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) textarea{min-block-size:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) input[type=file]{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([scale=l]) textarea{block-size:auto;padding-block:.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([disabled]) textarea{resize:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}textarea,input{position:relative;margin:0;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;border-width:1px;border-style:solid;font-family:inherit;font-weight:var(--calcite-font-weight-normal);border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-text-color, var(--calcite-color-text-1));transition:var(--calcite-animation-timing),block-size 0,outline-offset 0s;-webkit-appearance:none}textarea:placeholder-shown,input:placeholder-shown{text-overflow:ellipsis}textarea{border-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}input{border-start-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([prefix-text]) input{border-start-start-radius:0;border-end-start-radius:0}:host([suffix-text]) input,.element-wrapper:has(.clear-button) input,:host([number-button-type=vertical][type=number]) input,:host([suffix-text][number-button-type=horizontal]) .suffix,:host([suffix-text][number-button-type=vertical][type=number]) .suffix,:host([number-button-type=vertical][type=number]) .clear-button :host([number-button-type=horizontal][type=number]) .clear-button{border-start-end-radius:0;border-end-end-radius:0}:host([number-button-type=horizontal]) input{border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:0;border-end-end-radius:0}:host([prefix-text]) .prefix:first-child,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=down]{border-start-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([suffix-text]) .suffix,:host([suffix-text][number-button-type=vertical][type=number][read-only]) .suffix,:host([clearable]:not([suffix-text])) .clear-button,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=up]{border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px;border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]{border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input:focus,textarea:focus{border-color:var(--calcite-color-brand);color:var(--calcite-input-text-color, var(--calcite-color-text-1))}input[readonly],textarea[readonly]{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-input-background-color, var(--calcite-color-background))}input[readonly]:focus,textarea[readonly]:focus{color:var(--calcite-input-text-color, var(--calcite-color-text-1))}textarea,input{outline-color:transparent}textarea:focus,input:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .icon{inset-inline-start:.5rem}:host([scale=m]) .icon{inset-inline-start:.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;display:block;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-icon-color, var(--calcite-color-text-3));z-index:var(--calcite-z-index)}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;block-size:0px;inline-size:0px}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;order:4;margin:0;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.clear-button calcite-icon{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.clear-button:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.clear-button:hover calcite-icon{color:var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.clear-button:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.clear-button:active calcite-icon{color:var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.clear-button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block;--calcite-progress-background-color: var(--calcite-input-loading-background-color);--calcite-progress-fill-color: var(--calcite-input-loading-fill-color)}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;font-weight:var(--calcite-font-weight-medium);line-height:1;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input))}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto);background-color:var(--calcite-input-prefix-background-color, var(--calcite-color-background));color:var(--calcite-input-prefix-text-color, var(--calcite-color-text-2))}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto);background-color:var(--calcite-input-suffix-background-color, var(--calcite-color-background));color:var(--calcite-input-suffix-text-color, var(--calcite-color-text-2))}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:start}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:end}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal{border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));order:1;max-block-size:100%;min-block-size:100%;align-self:stretch;border-width:1px;border-style:solid}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=up]{border-inline-start-width:0px;order:5}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;background-color:var(--calcite-color-foreground-1);padding-block:0px;padding-inline:.5rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.number-button-item:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.number-button-item:hover calcite-icon{color:var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.number-button-item:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.number-button-item:active calcite-icon{color:var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center;border-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));box-shadow:var(--calcite-input-shadow, var(--calcite-shadow-none))}input[type=date]::-webkit-input-placeholder{visibility:hidden!important}:host([type=color]) input{padding:.25rem}:host([type=file]) input{cursor:pointer;border-width:1px;border-style:dashed;background-color:var(--calcite-color-foreground-1);text-align:center;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input))}:host([type=file][scale=s]) input{padding-block:1px;padding-inline:.5rem}:host([type=file][scale=m]) input{padding-block:.25rem;padding-inline:.75rem}:host([type=file][scale=l]) input{padding-block:.5rem;padding-inline:1rem}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`,Zv=class Zv extends $t{constructor(){super(),this.actionWrapperEl=Li(),this.attributeWatch=Ab(["enterkeyhint","inputmode","spellcheck"],this.handleGlobalAttributesChanged),this.childElType="input",this.inputWrapperEl=Li(),this.onHiddenFormInputInput=t=>{t.target.name===this.name&&this.setValue({value:t.target.value,origin:"direct"}),this.setFocus(),t.stopPropagation()},this.previousValueOrigin="initial",this.userChangedValue=!1,this._value="",this.slottedActionElDisabledInternally=!1,this.alignment="start",this.clearable=!1,this.disabled=!1,this.editingEnabled=!1,this.groupSeparator=!1,this.iconFlipRtl=!1,this.loading=!1,this.localeFormat=!1,this.messages=pn(),this.multiple=!1,this.numberButtonType="vertical",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.type="text",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputChange=Ft({cancelable:!1}),this.calciteInputInput=Ft(),this.calciteInternalInputBlur=Ft({cancelable:!1}),this.calciteInternalInputFocus=Ft({cancelable:!1}),this.listen("click",this.clickHandler),this.listen("keydown",this.keyDownHandler)}get isClearable(){return!this.isTextarea&&(this.clearable||this.type==="search")&&this.value?.length>0}get isTextarea(){return this.childElType==="textarea"}get value(){return this._value}set value(t){let r=this._value;t!==r&&(this._value=t,this.valueWatcher(t,r),t&&this._value===""&&this.setValue({origin:"reset",value:r}))}async selectText(){this.type==="number"?this.childNumberEl?.select():this.childEl?.select()}async setFocus(){await $n(this),Gc(this.type==="number"?this.childNumberEl:this.childEl)}connectedCallback(){super.connectedCallback(),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),fm(this),CN(this),this.el.addEventListener(ov,this.onHiddenFormInputInput)}async load(){Dn(this),this.childElType=this.type==="textarea"?"textarea":"input",this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=ma(wD,this.icon,this.type),this.setPreviousEmittedValue(this.value),this.setPreviousValue(this.value),this.type==="number"&&(this.value==="Infinity"||this.value==="-Infinity"?(this.displayedValue=this.value,this.previousEmittedValue=this.value):(this.warnAboutInvalidNumberValue(this.value),this.setValue({origin:"connected",value:Es(this.value)?this.value:""})))}willUpdate(t){t.has("max")&&(this.maxString=this.max?.toString()||null),t.has("min")&&(this.minString=this.min?.toString()||null),(t.has("icon")||t.has("type")&&(this.hasUpdated||this.type!=="text"))&&(this.requestedIcon=ma(wD,this.icon,this.type))}updated(){Hc(this)}loaded(){Fn(this)}disconnectedCallback(){super.disconnectedCallback(),cv(this),TN(this),this.el.removeEventListener(ov,this.onHiddenFormInputInput)}handleGlobalAttributesChanged(){this.requestUpdate()}valueWatcher(t,r){if(!this.userChangedValue){if(this.type==="number"&&(t==="Infinity"||t==="-Infinity")){this.displayedValue=t,this.previousEmittedValue=t;return}this.setValue({origin:"direct",previousValue:r,value:t==null||t==""?"":this.type==="number"?Es(t)?t:this.previousValue||"":t}),this.warnAboutInvalidNumberValue(t)}this.userChangedValue=!1}keyDownHandler(t){this.readOnly||this.disabled||t.defaultPrevented||(this.isClearable&&t.key==="Escape"&&(this.clearInputValue(t),t.preventDefault()),t.key==="Enter"&&iv(this)&&t.preventDefault())}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(t,r,n,i){let{value:o}=this;if(o==="Infinity"||o==="-Infinity")return;let s=t==="up"?1:-1,c=this.step==="any"?1:Math.abs(this.step||1),a=new cd(o!==""?o:"0").add(`${c*s}`),d=()=>typeof n=="number"&&!isNaN(n)&&a.subtract(`${n}`).isNegative,h=()=>typeof r=="number"&&!isNaN(r)&&!a.subtract(`${r}`).isNegative,g=d()?`${n}`:h()?`${r}`:a.toString();this.setValue({committing:!0,nativeEvent:i,origin:"user",value:g})}clearInputValue(t){this.setValue({committing:!0,nativeEvent:t,origin:"user",value:""})}emitChangeIfUserModified(){this.previousValueOrigin==="user"&&this.value!==this.previousEmittedValue&&(this.calciteInputChange.emit(),this.setPreviousEmittedValue(this.value))}inputBlurHandler(){window.clearInterval(this.nudgeNumberValueIntervalId),this.calciteInternalInputBlur.emit(),this.emitChangeIfUserModified()}clickHandler(t){if(this.disabled)return;let r=t.composedPath();!r.includes(this.inputWrapperEl.value)||r.includes(this.actionWrapperEl.value)||this.setFocus()}inputFocusHandler(){this.calciteInternalInputFocus.emit()}inputChangeHandler(){this.type==="file"&&(this.files=this.childEl.files)}inputInputHandler(t){this.disabled||this.readOnly||this.setValue({nativeEvent:t,origin:"user",value:t.target.value})}inputKeyDownHandler(t){this.disabled||this.readOnly||t.key==="Enter"&&this.emitChangeIfUserModified()}inputNumberInputHandler(t){if(this.disabled||this.readOnly||this.value==="Infinity"||this.value==="-Infinity")return;let r=t.target.value;qo.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let n=qo.delocalize(r);t.inputType==="insertFromPaste"?(Es(n)||t.preventDefault(),this.setValue({nativeEvent:t,origin:"user",value:iD(n)}),this.childNumberEl.value=this.displayedValue):this.setValue({nativeEvent:t,origin:"user",value:n})}inputNumberKeyDownHandler(t){if(this.type!=="number"||this.disabled||this.readOnly)return;if(this.value==="Infinity"||this.value==="-Infinity"){t.preventDefault(),(t.key==="Backspace"||t.key==="Delete")&&this.clearInputValue(t);return}if(t.key==="ArrowUp"){t.preventDefault(),this.nudgeNumberValue("up",t);return}if(t.key==="ArrowDown"){this.nudgeNumberValue("down",t);return}let r=[...M1,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(t.altKey||t.ctrlKey||t.metaKey)return;let n=t.shiftKey&&t.key==="Tab";if(r.includes(t.key)||n){t.key==="Enter"&&this.emitChangeIfUserModified();return}qo.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(t.key===qo.decimal&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(qo.decimal)===-1))&&(/[eE]/.test(t.key)&&(!this.value&&!this.childNumberEl.value||this.value&&!/[eE]/.test(this.childNumberEl.value))||t.key==="-"&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.split("-").length<=2)||t.preventDefault())}nudgeNumberValue(t,r){if(r instanceof KeyboardEvent&&r.repeat||this.type!=="number")return;let n=this.maxString?parseFloat(this.maxString):null,i=this.minString?parseFloat(this.minString):null,o=150;this.incrementOrDecrementNumberValue(t,n,i,r),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let s=!0;this.nudgeNumberValueIntervalId=window.setInterval(()=>{if(s){s=!1;return}this.incrementOrDecrementNumberValue(t,n,i,r)},o)}numberButtonPointerUpAndOutHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}numberButtonPointerDownHandler(t){if(!aN(t))return;t.preventDefault();let r=t.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(r,t)}syncHiddenFormInput(t){hD(this.type,this,t)}setChildElRef(t){this.childEl=t}setChildNumberElRef(t){this.childNumberEl=t}setInputValue(t){this.type==="number"&&this.childNumberEl?this.childNumberEl.value=t:this.childEl&&(this.childEl.value=t)}setPreviousEmittedValue(t){this.previousEmittedValue=this.normalizeValue(t)}normalizeValue(t){return this.type==="number"?Es(t)?t:"":t}setPreviousValue(t){this.previousValue=this.normalizeValue(t)}setValue({committing:t=!1,nativeEvent:r,origin:n,previousValue:i,value:o}){if(this.setPreviousValue(i??this.value),this.previousValueOrigin=n,this.type==="number"){qo.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator,signDisplay:"never"};let s=this.previousValue?.length>o.length||this.value?.length>o.length,c=o.charAt(o.length-1)===".",a=c&&s?o:sD(o),d=o&&!a?Es(this.previousValue)?this.previousValue:"":a,h=qo.localize(d);n!=="connected"&&!c&&(h=aD(h,d,qo)),this.displayedValue=c&&s?`${h}${qo.decimal}`:h,this.userChangedValue=n==="user"&&this.value!==d,this.value=["-","."].includes(d)?"":d}else this.userChangedValue=n==="user"&&this.value!==o,this.value=o;n==="direct"&&(this.setInputValue(o),this.previousEmittedValue=o),r&&(this.calciteInputInput.emit().defaultPrevented?(this.value=this.previousValue,this.displayedValue=this.type==="number"?qo.localize(this.previousValue):this.previousValue):t&&this.emitChangeIfUserModified())}inputKeyUpHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}warnAboutInvalidNumberValue(t){this.type==="number"&&t&&!Es(t)&&console.warn(`The specified value "${t}" cannot be parsed, or is out of range.`)}render(){let t=Wc(this.el),r=xe`<div class=${_e(Jn.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`,n=xe`<button .ariaLabel=${this.messages.clear} class=${_e(Jn.clearButton)} .disabled=${this.disabled||this.readOnly} @click=${this.clearInputValue} tabindex=-1 type=button><calcite-icon icon=x .scale=${Yn(this.scale)}></calcite-icon></button>`,i=xe`<calcite-icon class=${_e(Jn.inputIcon)} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${Yn(this.scale)}></calcite-icon>`,o=this.numberButtonType==="horizontal",s=xe`<button aria-hidden=true class=${_e({[Jn.numberButtonItem]:!0,[Jn.buttonItemHorizontal]:o})} data-adjustment=up .disabled=${this.disabled||this.readOnly} @pointerdown=${this.numberButtonPointerDownHandler} @pointerout=${this.numberButtonPointerUpAndOutHandler} @pointerup=${this.numberButtonPointerUpAndOutHandler} tabindex=-1 type=button><calcite-icon icon=chevron-up .scale=${Yn(this.scale)}></calcite-icon></button>`,c=xe`<button aria-hidden=true class=${_e({[Jn.numberButtonItem]:!0,[Jn.buttonItemHorizontal]:o})} data-adjustment=down .disabled=${this.disabled||this.readOnly} @pointerdown=${this.numberButtonPointerDownHandler} @pointerout=${this.numberButtonPointerUpAndOutHandler} @pointerup=${this.numberButtonPointerUpAndOutHandler} tabindex=-1 type=button><calcite-icon icon=chevron-down .scale=${Yn(this.scale)}></calcite-icon></button>`,a=xe`<div class=${_e(Jn.numberButtonWrapper)}>${s}${c}</div>`,d=xe`<div class=${_e(Jn.prefix)}>${this.prefixText}</div>`,h=xe`<div class=${_e(Jn.suffix)}>${this.suffixText}</div>`,g=this.el.autofocus||this.el.hasAttribute("autofocus")?!0:null,v=this.el.enterKeyHint||this.el.getAttribute("enterkeyhint"),E=this.el.inputMode||this.el.getAttribute("inputmode"),P=this.type==="number"?cr("localized-input",xe`<input accept=${this.accept??Re} aria-errormessage=${ZE.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${h1(this)} autocomplete=${this.autocomplete??Re} .autofocus=${g} value=${this.defaultValue??Re} .disabled=${this.disabled?!0:null} enterkeyhint=${v??Re} inputmode=${E??Re} maxlength=${this.maxLength??Re} minlength=${this.minLength??Re} .multiple=${this.multiple} name=${Re} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Re} placeholder=${(this.placeholder||"")??Re} .readOnly=${this.readOnly} type=text .value=${Bb(this.displayedValue??"")} ${At(this.setChildNumberElRef)}>`):null,A=this.childElType==="input"?qc`input`:qc`textarea`,F=this.type!=="number"?dm`<${A} accept=${this.accept??Re} aria-errormessage=${ZE.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${h1(this)} autocomplete=${this.autocomplete??Re} .autofocus=${g} class=${_e({[Jn.editingEnabled]:this.editingEnabled,[Jn.inlineChild]:!!this.inlineEditableEl})} .defaultValue=${this.defaultValue??""} .disabled=${this.disabled?!0:null} enterkeyhint=${v??Re} inputmode=${E??Re} max=${this.maxString??Re} maxlength=${this.maxLength??Re} min=${this.minString??Re} minlength=${this.minLength??Re} .multiple=${this.multiple} name=${this.name??Re} @blur=${this.inputBlurHandler} @change=${this.inputChangeHandler} @focus=${this.inputFocusHandler} @input=${this.inputInputHandler} @keydown=${this.inputKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Re} placeholder=${(this.placeholder||"")??Re} .readOnly=${this.readOnly} .required=${this.required?!0:null} spellcheck=${this.el.spellcheck??Re} step=${this.step??Re} tabindex=${(this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null)??Re} type=${this.type??Re} .value=${Bb(this.value??"")} ${At(this.setChildElRef)}></${A}>`:null;return Zc({disabled:this.disabled,children:xe`<div class=${_e({[Jn.inputWrapper]:!0,[o1.rtl]:t==="rtl"})} ${At(this.inputWrapperEl)}>${this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?c:null}${this.prefixText?d:null}<div class=${_e(Jn.wrapper)}>${P}${F}${this.isClearable?n:null}${this.requestedIcon?i:null}${this.loading?r:null}</div><div class=${_e(Jn.actionWrapper)} ${At(this.actionWrapperEl)}><slot name=${OQ.action}></slot></div>${this.type==="number"&&this.numberButtonType==="vertical"&&!this.readOnly?a:null}${this.suffixText?h:null}${this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?s:null}${MN({component:this})}</div>${this.validationMessage&&this.status==="invalid"?fD({icon:this.validationIcon,id:ZE.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};Zv.properties={displayedValue:16,slottedActionElDisabledInternally:16,accept:1,alignment:3,autocomplete:1,clearable:7,disabled:7,editingEnabled:7,files:0,form:3,groupSeparator:7,icon:[3,{converter:pa}],iconFlipRtl:7,label:1,loading:7,localeFormat:5,max:11,maxLength:11,messageOverrides:0,min:11,minLength:11,multiple:5,name:3,numberButtonType:3,numberingSystem:3,pattern:1,placeholder:1,prefixText:1,readOnly:7,required:7,scale:3,status:3,step:3,suffixText:1,type:3,validationIcon:[3,{converter:pa}],validationMessage:1,validity:0,value:1},Zv.styles=RQ;Hv=Zv;Gt("calcite-input",Hv)});var bD={};qs(bD,{Input:()=>Hv});var vD=R(()=>{tD();nD();Qu();yD()});var DQ,FQ,Jv,Yv,_D=R(()=>{ar();Ki();Dr();lv();_n();DQ={container:"container"},FQ=Dt`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,Jv=class Jv extends $t{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=Ft({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(m1))}willUpdate(t){t.has("for")&&DN(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(p1))}labelClickHandler(t){window.getSelection()?.type!=="Range"&&this.calciteInternalLabelClick.emit({sourceEvent:t})}render(){return xe`<div class=${_e(DQ.container)}><slot></slot></div>`}};Jv.properties={alignment:3,for:3,layout:3,scale:3},Jv.styles=FQ;Yv=Jv;Gt("calcite-label",Yv)});var xD={};qs(xD,{Label:()=>Yv});var SD=R(()=>{_D()});var YE,ED=R(()=>{YE={brand:"lightbulb",danger:"exclamationMarkTriangle",info:"information",success:"checkCircle",warning:"exclamationMarkTriangle"}});var Xv,O1,$Q,Kv,Qv,CD=R(()=>{ar();Ki();Vo();Dr();Sn();ha();ED();Ov();mm();xs();_n();Xv={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},O1={actionsEnd:"actions-end",close:"notice-close",container:"container",content:"notice-content",icon:"notice-icon"},$Q=Dt`:host([scale=s]){--calcite-notice-spacing-token-small: .5rem;--calcite-notice-spacing-token-large: .75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .notice-close{padding:.5rem}:host([scale=m]){--calcite-notice-spacing-token-small: .75rem;--calcite-notice-spacing-token-large: 1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=l]){--calcite-notice-spacing-token-small: 1rem;--calcite-notice-spacing-token-large: 1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([width=auto]){--calcite-notice-width: auto}:host([width=half]){--calcite-notice-width: 50%}:host([width=full]){--calcite-notice-width: 100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;background-color:var(--calcite-color-foreground-1);opacity:0;overflow:hidden;max-block-size:0;transition-property:opacity,max-block-size;transition-duration:var(--calcite-animation-timing);text-align:start;border-inline-start:var(--calcite-border-width-md) solid;box-shadow:0 0 0 0 transparent}.notice-close{outline-color:transparent}.notice-close:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host{display:flex}:host([open]) .container{pointer-events:auto;max-block-size:100%;align-items:center;opacity:1;--tw-shadow: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--tw-shadow-colored: 0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);overflow:visible}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0;display:inline;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);margin-inline-end:var(--calcite-notice-spacing-token-small)}.notice-content{box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}.notice-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto}.notice-close{display:flex;cursor:pointer;align-items:center;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline:2px solid transparent;outline-offset:2px;box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;-webkit-appearance:none}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.notice-close:active{background-color:var(--calcite-color-foreground-3)}.actions-end{display:flex;align-self:stretch}:host([kind=brand]) .container{border-color:var(--calcite-color-brand)}:host([kind=brand]) .container .notice-icon{color:var(--calcite-color-brand)}:host([kind=info]) .container{border-color:var(--calcite-color-status-info)}:host([kind=info]) .container .notice-icon{color:var(--calcite-color-status-info)}:host([kind=danger]) .container{border-color:var(--calcite-color-status-danger)}:host([kind=danger]) .container .notice-icon{color:var(--calcite-color-status-danger)}:host([kind=success]) .container{border-color:var(--calcite-color-status-success)}:host([kind=success]) .container .notice-icon{color:var(--calcite-color-status-success)}:host([kind=warning]) .container{border-color:var(--calcite-color-status-warning)}:host([kind=warning]) .container .notice-icon{color:var(--calcite-color-status-warning)}:host([hidden]){display:none}[hidden]{display:none}`,Kv=class Kv extends $t{constructor(){super(...arguments),this.closeButton=Li(),this.openTransitionProp="opacity",this.hasActionEnd=!1,this.closable=!1,this.iconFlipRtl=!1,this.kind="brand",this.messages=pn(),this.open=!1,this.scale="m",this.width="auto",this.calciteNoticeBeforeClose=Ft({cancelable:!1}),this.calciteNoticeBeforeOpen=Ft({cancelable:!1}),this.calciteNoticeClose=Ft({cancelable:!1}),this.calciteNoticeOpen=Ft({cancelable:!1})}async setFocus(){await $n(this);let t=this.el.querySelector("calcite-link");if(!(!this.closeButton.value&&!t)){if(t)return t.setFocus();this.closeButton.value&&this.closeButton.value.focus()}}async load(){Dn(this),this.requestedIcon=ma(YE,this.icon,this.kind),this.open&&Kc(this)}willUpdate(t){t.has("open")&&(this.hasUpdated||this.open!==!1)&&Kc(this),(t.has("icon")||t.has("kind")&&(this.hasUpdated||this.kind!=="brand"))&&(this.requestedIcon=ma(YE,this.icon,this.kind))}loaded(){Fn(this)}onBeforeClose(){this.calciteNoticeBeforeClose.emit()}onBeforeOpen(){this.calciteNoticeBeforeOpen.emit()}onClose(){this.calciteNoticeClose.emit()}onOpen(){this.calciteNoticeOpen.emit()}setTransitionEl(t){this.transitionEl=t}close(){this.open=!1}handleActionsEndSlotChange(t){this.hasActionEnd=Hn(t)}render(){let t=xe`<button .ariaLabel=${this.messages.close} class=${_e(O1.close)} @click=${this.close} ${At(this.closeButton)}><calcite-icon icon=x .scale=${Yn(this.scale)}></calcite-icon></button>`;return xe`<div class=${_e(O1.container)} ${At(this.setTransitionEl)}>${this.requestedIcon?xe`<div class=${_e(O1.icon)}><calcite-icon .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${Yn(this.scale)}></calcite-icon></div>`:null}<div class=${_e(O1.content)}><slot name=${Xv.title}></slot><slot name=${Xv.message}></slot><slot name=${Xv.link}></slot></div><div class=${_e(O1.actionsEnd)} .hidden=${!this.hasActionEnd}><slot name=${Xv.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot></div>${this.closable?t:null}</div>`}};Kv.properties={hasActionEnd:16,closable:7,icon:[3,{converter:pa}],iconFlipRtl:7,kind:3,messageOverrides:0,open:7,scale:3,width:3},Kv.styles=$Q;Qv=Kv;Gt("calcite-notice",Qv)});var TD={};qs(TD,{Notice:()=>Qv});var PD=R(()=>{Qu();CD()});var JE,XE,VQ,Oi,QE,MD=R(()=>{gt();j4();yt();rt();it();Hr();ft();Bk();V5();yb();Gk();qk();Zk();z4();JE="esri-identity-modal",XE={base:JE,info:`${JE}__info`,notice:`${JE}__notice`},VQ="ArcGIS Online",Oi=class extends Wk{constructor(e,t){super(e,t),this.container=document.createElement("div"),this.error=null,this.oAuthPrompt=!1,this.open=!1,this.signingIn=!1,this.server=null,this.resource=null,this._usernameInputNode=null,this._passwordInputNode=null,document.body.appendChild(this.container)}loadDependencies(){return Rk({button:()=>Promise.resolve().then(()=>(WN(),zN)),dialog:()=>Promise.resolve().then(()=>(QR(),XR)),input:()=>Promise.resolve().then(()=>(vD(),bD)),label:()=>Promise.resolve().then(()=>(SD(),xD)),notice:()=>Promise.resolve().then(()=>(PD(),TD))})}get title(){return this.commonMessages?.auth.signIn}render(){let{open:e,title:t,messages:r,signingIn:n,oAuthPrompt:i,server:o,resource:s,error:c}=this,{info:a,oAuthInfo:d,lblItem:h,invalidUser:g,noAuthService:v,lblUser:E,lblPwd:P,lblCancel:A,lblSigning:F,lblOk:W}=r;return Ii("div",{class:this.classes(XE.base,Hk())},Ii("form",{bind:this,onsubmit:this._submit},Ii("calcite-dialog",{bind:this,heading:t,modal:!0,open:e,outsideCloseDisabled:!0,scale:"s",widthScale:"s",onCalciteDialogClose:this._cancel,onCalciteDialogOpen:this._focusUsernameInput},Ii("div",{class:XE.info},V4(i?d:a,{server:o&&/\.arcgis\.com/i.test(o)?VQ:o,resource:`(${s||h})`})),c?Ii("calcite-notice",{class:XE.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},Ii("div",{slot:"message"},c.details?.httpStatus?g:v)):null,i?null:[Ii("calcite-label",null,E,Ii("calcite-input",{afterCreate:z=>this._usernameInputNode=z,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),Ii("calcite-label",null,P,Ii("calcite-input",{afterCreate:z=>this._passwordInputNode=z,bind:this,name:"password",required:!0,type:"password",value:""}))],Ii("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"footer-end",type:"button"},A),Ii("calcite-button",{loading:!!n,slot:"footer-end",type:"submit"},n?F:W))))}_focusUsernameInput(){return sL(()=>this._usernameInputNode)}_cancel(){this._set("signingIn",!1),this.open=!1,this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(e){e.preventDefault(),this._set("signingIn",!0);let t=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",t)}};O([V({readOnly:!0})],Oi.prototype,"container",void 0),O([V(),G5("esri/t9n/common")],Oi.prototype,"commonMessages",void 0),O([V()],Oi.prototype,"error",void 0),O([V(),G5("esri/identity/t9n/identity")],Oi.prototype,"messages",void 0),O([V()],Oi.prototype,"oAuthPrompt",void 0),O([V()],Oi.prototype,"open",void 0),O([V()],Oi.prototype,"signingIn",void 0),O([V()],Oi.prototype,"server",void 0),O([V({readOnly:!0})],Oi.prototype,"title",null),O([V()],Oi.prototype,"resource",void 0),Oi=O([Le("esri.identity.IdentityModal")],Oi);QE=Oi});var KE,xm,AD=R(()=>{KE="esriJSAPIOAuth",xm=class{constructor(t,r){this.oAuthInfo=null,this.storage=null,this.appId=null,this.codeVerifier=null,this.expires=null,this.refreshToken=null,this.ssl=null,this.stateUID=null,this.token=null,this.userId=null,this.oAuthInfo=t,this.storage=r,this._init()}isValid(){let t=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token)){if(this.expires==null&&this.refreshToken)t=!0;else if(this.expires){let r=Date.now();this.expires>r&&(this.expires-r)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(t=!0)}}return t}save(){if(!this.storage)return!1;let t=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=t[r.authNamespace];n||(n=t[r.authNamespace]={}),this.appId||(this.appId=r.appId),n[r.portalUrl]={appId:this.appId,codeVerifier:this.codeVerifier,expires:this.expires,refreshToken:this.refreshToken,ssl:this.ssl,stateUID:this.stateUID,token:this.token,userId:this.userId};try{this.storage.setItem(KE,JSON.stringify(t))}catch(i){return console.warn(i),!1}return!0}return!1}destroy(){let t=this._load(),r=this.oAuthInfo;if(r?.appId&&r?.portalUrl&&(this.expires==null||this.expires>Date.now())&&(this.refreshToken||this.token)){let n=r.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",i=new FormData;if(i.append("f","json"),i.append("auth_token",this.refreshToken||this.token),i.append("client_id",r.appId),i.append("token_type_hint",this.refreshToken?"refresh_token":"access_token"),typeof navigator.sendBeacon=="function")navigator.sendBeacon(n,i);else{let o=new XMLHttpRequest;o.open("POST",n),o.send(i)}}if(r?.authNamespace&&r.portalUrl&&this.storage){let n=t[r.authNamespace];if(n){delete n[r.portalUrl];try{this.storage.setItem(KE,JSON.stringify(t))}catch(i){console.log(i)}}}r&&(r._oAuthCred=null,this.oAuthInfo=null)}_init(){let t=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=t[r.authNamespace];n&&(n=n[r.portalUrl],n&&(this.appId=n.appId,this.codeVerifier=n.codeVerifier,this.expires=n.expires,this.refreshToken=n.refreshToken,this.ssl=n.ssl,this.stateUID=n.stateUID,this.token=n.token,this.userId=n.userId))}}_load(){let t={};if(this.storage){let r=this.storage.getItem(KE);if(r)try{t=JSON.parse(r)}catch(n){console.warn(n)}}return t}};xm.prototype.declaredClass="esri.identity.OAuthCredential"});var e3,En,t3,ID=R(()=>{gt();Nr();yt();rt();it();Hr();ft();En=e3=class extends ut{constructor(e){super(e),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.flowType="auto",this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null}clone(){return e3.fromJSON(this.toJSON())}};O([V({json:{write:!0}})],En.prototype,"appId",void 0),O([V({json:{write:!0}})],En.prototype,"authNamespace",void 0),O([V({json:{write:!0}})],En.prototype,"expiration",void 0),O([V({json:{write:!0}})],En.prototype,"flowType",void 0),O([V({json:{write:!0}})],En.prototype,"forceLogin",void 0),O([V({json:{write:!0}})],En.prototype,"forceUserId",void 0),O([V({json:{write:!0}})],En.prototype,"locale",void 0),O([V({json:{write:!0}})],En.prototype,"minTimeUntilExpiration",void 0),O([V({json:{write:!0}})],En.prototype,"popup",void 0),O([V({json:{write:!0}})],En.prototype,"popupCallbackUrl",void 0),O([V({json:{write:!0}})],En.prototype,"popupWindowFeatures",void 0),O([V({json:{write:!0}})],En.prototype,"portalUrl",void 0),O([V({json:{write:!0}})],En.prototype,"preserveUrlHash",void 0),O([V({json:{write:!0}})],En.prototype,"userId",void 0),En=e3=O([Le("esri.identity.OAuthInfo")],En);t3=En});var Ri,e2,LD=R(()=>{gt();Nr();yt();rt();it();Hr();ft();Ri=class extends ut{constructor(e){super(e),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null}};O([V({json:{write:!0}})],Ri.prototype,"adminTokenServiceUrl",void 0),O([V({json:{write:!0}})],Ri.prototype,"currentVersion",void 0),O([V({json:{write:!0}})],Ri.prototype,"hasPortal",void 0),O([V({json:{write:!0}})],Ri.prototype,"hasServer",void 0),O([V({json:{write:!0}})],Ri.prototype,"owningSystemUrl",void 0),O([V({json:{write:!0}})],Ri.prototype,"owningTenant",void 0),O([V({json:{write:!0}})],Ri.prototype,"server",void 0),O([V({json:{write:!0}})],Ri.prototype,"shortLivedTokenValidity",void 0),O([V({json:{write:!0}})],Ri.prototype,"tokenServiceUrl",void 0),O([V({json:{write:!0}})],Ri.prototype,"webTierAuth",void 0),Ri=O([Le("esri.identity.ServerInfo")],Ri);e2=Ri});var t2,kD,r3,r2,n2,R1,sr,ND=R(()=>{gt();xc();Qy();ib();Nn();Ky();Cg();mr();ms();Ro();Nc();yt();rt();it();ft();MD();AD();ID();LD();By();t2={},kD=e=>{let t=new Rn(e.owningSystemUrl).host,r=new Rn(e.server).host,n=/.+\.arcgis\.com$/i;return n.test(t)&&n.test(r)},r3=(e,t)=>!!(kD(e)&&t&&t.some(r=>r.test(e.server))),r2=null,n2=null;try{r2=window.localStorage,n2=window.sessionStorage}catch{}R1=class extends Nu{constructor(){super(),this._portalConfig=globalThis.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this._defaultOAuthInfo=null,this._defaultTokenValidity=60,this.dialog=null,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin=window.origin!=="null"?window.origin:window.location.origin,this._appUrlObj=Ac(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthLocationParams=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^/]+\/[^/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|KnowledgeGraphServer|MapServer|MissionServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer|VideoServer)).*/gi,this._gwUser=/http.+\/users\/([^/]+).*/i,this._gwItem=/http.+\/items\/([^/]+).*/i,this._gwGroup=/http.+\/groups\/([^/]+).*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getPlatformSelfError=null,this._getOAuthLocationParams(),window.addEventListener("pageshow",t=>{this._pageShowHandler(t)})}registerServers(t){let r=this.serverInfos;r?(t=t.filter(n=>!this.findServerInfo(n.server)),this.serverInfos=r.concat(t)):this.serverInfos=t,t.forEach(n=>{n.owningSystemUrl&&this._portals.push(n.owningSystemUrl),n.hasPortal&&this._portals.push(n.server)})}registerOAuthInfos(t){let r=this.oAuthInfos;if(r){for(let n of t){let i=this.findOAuthInfo(n.portalUrl);i&&r.splice(r.indexOf(i),1)}this.oAuthInfos=r.concat(t)}else this.oAuthInfos=t}registerToken(t){t={...t};let r=this._sanitizeUrl(t.server),n=this._isServerRsrc(r),i,o=this.findServerInfo(r),s=!0;o||(o=new e2,o.server=this._getServerInstanceRoot(r),n?o.hasServer=!0:(o.tokenServiceUrl=this._getTokenSvcUrl(r),o.hasPortal=!0),this.registerServers([o])),i=this._findCredential(r),i?(delete t.server,Object.assign(i,t),s=!1):(i=new sr({userId:t.userId,server:o.server??void 0,token:t.token,expires:t.expires,ssl:t.ssl,scope:n?"server":"portal"}),i.resources=[r],this.credentials.push(i)),i.emitTokenChange(!1),s||i.refreshServerTokens()}toJSON(){return Pw({serverInfos:this.serverInfos.map(t=>t.toJSON()),oAuthInfos:this.oAuthInfos.map(t=>t.toJSON()),credentials:this.credentials.map(t=>t.toJSON())})}initialize(t){if(!t)return;typeof t=="string"&&(t=JSON.parse(t));let r=t.serverInfos,n=t.oAuthInfos,i=t.credentials;if(r){let o=[];r.forEach(s=>{s.server&&s.tokenServiceUrl&&o.push(s.declaredClass?s:new e2(s))}),o.length&&this.registerServers(o)}if(n){let o=[];n.forEach(s=>{s.appId&&o.push(s.declaredClass?s:new t3(s))}),o.length&&this.registerOAuthInfos(o)}i&&i.forEach(o=>{o.server&&o.token&&o.expires&&o.expires>Date.now()&&((o=o.declaredClass?o:new sr(o)).emitTokenChange(),this.credentials.push(o))})}findServerInfo(t){let r;t=this._sanitizeUrl(t);for(let n of this.serverInfos)if(this._hasSameServerInstance(n.server,t)){r=n;break}return r}findOAuthInfo(t){let r;t=this._sanitizeUrl(t);for(let n of this.oAuthInfos)if(this._hasSameServerInstance(n.portalUrl,t)){r=n;break}return r}findCredential(t,r){if(!t)return;let n;t=this._sanitizeUrl(t);let i=this._isServerRsrc(t)?"server":"portal";if(r){for(let o of this.credentials)if(this._hasSameServerInstance(o.server,t)&&r===o.userId&&o.scope===i){n=o;break}}else for(let o of this.credentials)if(this._hasSameServerInstance(o.server,t)&&this._getIdenticalSvcIdx(t,o)!==-1&&o.scope===i){n=o;break}return n}getCredential(t,r){let n,i,o=!0;r&&(n=!!r.token,i=r.error,o=r.prompt!==!1),r={...r},t=this._sanitizeUrl(t);let s=new AbortController,c=ci();if(r.signal&&Ti(r.signal,()=>{s.abort()}),Ti(s,()=>{c.reject(new Ge("identity-manager:user-aborted","ABORTED"))}),oa(s))return c.promise;r.signal=s.signal;let a=this._isAdminResource(t),d=n?this.findCredential(t):null,h;if(d&&i&&i.details&&i.details.httpStatus===498)d.destroy();else if(d)return h=new Ge("identity-manager:not-authorized","You are currently signed in as: '"+d.userId+"'. You do not have access to this resource: "+t,{error:i}),c.reject(h),c.promise;let g=this._findCredential(t,r);if(g)return c.resolve(g),c.promise;let v=this.findServerInfo(t);if(v)!v.hasPortal&&v.server&&v.owningSystemUrl&&this._hasSameServerInstance(v.server,v.owningSystemUrl)&&(v.hasPortal=!0),!v.hasServer&&this._isServerRsrc(t)&&(v._restInfoPms=this._getTokenSvcUrl(t),v.hasServer=!0);else{let E=this._getTokenSvcUrl(t);if(!E)return h=new Ge("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),c.reject(h),c.promise;v=new e2,v.server=this._getServerInstanceRoot(t),typeof E=="string"?(v.tokenServiceUrl=E,v.hasPortal=!0):(v._restInfoPms=E,v.hasServer=!0),this.registerServers([v])}return v.hasPortal&&v._selfReq===void 0&&(o||qn(v.tokenServiceUrl,this._appOrigin)||this._gwDomains.some(E=>E.tokenServiceUrl===v.tokenServiceUrl))&&(v._selfReq={owningTenant:r?.owningTenant,selfDfd:this._getPortalSelf(v.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),t)}),this._enqueue(t,v,r,c,a)}getResourceName(t){return this._isRESTService(t)?t.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(t)&&t.replace(this._gwUser,"$1")||this._gwItem.test(t)&&t.replace(this._gwItem,"$1")||this._gwGroup.test(t)&&t.replace(this._gwGroup,"$1")||""}generateToken(t,r,n){let i=this._rePortalTokenSvc.test(t.tokenServiceUrl),o=new Rn(this._appOrigin),s=t.shortLivedTokenValidity,c,a,d,h,g,v,E,P;r&&(P=this.tokenValidity||s||this._defaultTokenValidity,P>s&&s>0&&(P=s)),n&&(c=n.isAdmin,a=n.serverUrl,d=n.token,v=n.signal,E=n.ssl,t.customParameters=n.customParameters),c?h=t.adminTokenServiceUrl:(h=t.tokenServiceUrl,g=new Rn(h.toLowerCase()),t.webTierAuth&&n?.serverUrl&&!E&&o.scheme==="http"&&(qn(o.uri,h,!0)||g.scheme==="https"&&o.host===g.host&&o.port==="7080"&&g.port==="7443")&&(h=h.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));let A={query:{request:"getToken",username:r?.username,password:r?.password,serverUrl:a,token:d,expiration:P,referer:c||i?this._appOrigin:null,client:c?"referer":null,f:"json",...t.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(t,n),signal:v,...n?.ioArgs};return i||(A.withCredentials=!1),wr(h,A).then(F=>{let W=F.data;if(!W?.token)return new Ge("identity-manager:authentication-failed","Unable to generate token");let z=t.server;return t2[z]||(t2[z]={}),r&&(t2[z][r.username]=r.password),W.validity=P,W})}isBusy(){return!!this._busy}async checkSignInStatus(t){return(await this.checkAppAccess(t,"")).credential}checkAppAccess(t,r,n){let i=!1;return this.getCredential(t,{prompt:!1}).then(o=>{let s,c={f:"json"};if(o.scope==="portal")if(r&&(this._doPortalSignIn(t)||n?.force))s=o.server+"/sharing/rest/oauth2/validateAppAccess",c.client_id=r;else{if(!o.token)return{credential:o};s=o.server+"/sharing/rest"}else{if(!o.token)return{credential:o};s=o.server+"/rest/services"}return o.token&&(c.token=o.token),wr(s,{query:c,authMode:"anonymous"}).then(a=>{if(a.data.valid===!1)throw new Ge("identity-manager:not-authorized",`You are currently signed in as: '${o.userId}'.`,a.data);return i=!!a.data.viewOnlyUserTypeApp,{credential:o}}).catch(a=>{if(a.name==="identity-manager:not-authorized")throw a;let d=a.details?.httpStatus;if(d===498)throw o.destroy(),new Ge("identity-manager:not-authenticated","User is not signed in.");if(d===400)throw new Ge("identity-manager:invalid-request");return{credential:o}})}).then(o=>({credential:o.credential,viewOnly:i}))}setOAuthResponseHash(t){t&&(t.charAt(0)==="#"&&(t=t.slice(1)),this._processOAuthPopupParams(Ic(t)))}setOAuthRedirectionHandler(t){this._oAuthRedirectFunc=t}setProtocolErrorHandler(t){this._protocolFunc=t}signIn(t,r,n={}){let i=ci(),o=()=>{a?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=a=d=null},s=()=>{o(),this._oAuthDfd=null,i.reject(new Ge("identity-manager:user-aborted","ABORTED"))};n.signal&&Ti(n.signal,()=>{s()});let c=new QE({open:!0,resource:this.getResourceName(t),server:r.server});this.dialog=c,this.emit("dialog-create");let a=c.on("cancel",s),d=c.on("submit",h=>{this.generateToken(r,h,{isAdmin:n.isAdmin,signal:n.signal}).then(g=>{o();let v=new sr({userId:h.username,server:r.server??void 0,token:g.token,expires:g.expires!=null?Number(g.expires):null,ssl:!!g.ssl,isAdmin:n.isAdmin,validity:g.validity});i.resolve(v)}).catch(g=>{c.error=g,c.signingIn=!1})});return i.promise}oAuthSignIn(t,r,n,i){this._oAuthDfd=ci();let o=this._oAuthDfd,s;i?.signal&&Ti(i.signal,()=>{let v=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;v&&!v.closed?v.close():this.dialog&&h()}),o.resUrl_=t,o.sinfo_=r,o.oinfo_=n;let c=n._oAuthCred;if(c.storage&&(n.flowType==="authorization-code"||n.flowType==="auto"&&r.currentVersion>=8.4)){let v=crypto.getRandomValues(new Uint8Array(32));s=Jy(v),c.codeVerifier=s,v=crypto.getRandomValues(new Uint8Array(32)),c.stateUID=Jy(v),c.save()||(c.codeVerifier=s=null)}else c.codeVerifier=null;let a,d;this._getCodeChallenge(s).then(v=>{let E=!i||i.oAuthPopupConfirmation!==!1;if(!n.popup||!E)return void this._doOAuthSignIn(t,r,n,v);let P=new QE({oAuthPrompt:!0,server:r.server,open:!0});this.dialog=P,this.emit("dialog-create"),a=P.on("cancel",h),d=P.on("submit",()=>{g(),this._doOAuthSignIn(t,r,n,v)})});let h=()=>{g(),this._oAuthDfd=null,o.reject(new Ge("identity-manager:user-aborted","ABORTED"))},g=()=>{a?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=null};return o.promise}destroyCredentials(){this.credentials&&this.credentials.slice().forEach(t=>{t.destroy()}),this.emit("credentials-destroy")}enablePostMessageAuth(t="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=Tc(window,"message",r=>{if((r.origin===this._appOrigin||r.origin.endsWith(".arcgis.com"))&&r.data?.type==="arcgis:auth:requestCredential"){let n=r.source;this.getCredential(t).then(i=>{n.postMessage({type:"arcgis:auth:credential",credential:{expires:i.expires,server:i.server,ssl:i.ssl,token:i.token,userId:i.userId}},r.origin)}).catch(i=>{n.postMessage({type:"arcgis:auth:error",error:{name:i.name,message:i.message}},r.origin)})}})}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)}_getOAuthLocationParams(){let t=window.location.hash;if(t){t.charAt(0)==="#"&&(t=t.slice(1));let n=Ic(t),i=!1;if(n.access_token&&n.expires_in&&n.state&&n.hasOwnProperty("username"))try{n.state=JSON.parse(n.state),n.state.portalUrl&&(this._oAuthLocationParams=n,i=!0)}catch{}else if(n.error&&n.error_description&&(console.log("IdentityManager OAuth Error: ",n.error," - ",n.error_description),n.error==="access_denied"&&(i=!0,n.state)))try{n.state=JSON.parse(n.state)}catch{}i&&(window.location.hash=n.state?.hash||"")}let r=window.location.search;if(r){r.charAt(0)==="?"&&(r=r.slice(1));let n=Ic(r),i=!1;if(n.code&&n.state)try{n.state=JSON.parse(n.state),n.state.portalUrl&&n.state.uid&&(this._oAuthLocationParams=n,i=!0)}catch{}else if(n.error&&n.error_description&&(console.log("IdentityManager OAuth Error: ",n.error," - ",n.error_description),n.error==="access_denied"&&(i=!0,n.state)))try{n.state=JSON.parse(n.state)}catch{}if(i){let o={...n};["code","error","error_description","message_code","persist","state"].forEach(a=>{delete o[a]});let s=ku(o),c=window.location.pathname+(s?`?${s}`:"")+(n.state?.hash||"");window.history.replaceState(window.history.state,"",c)}}}_getOAuthToken(t,r,n,i,o){return t=t.replace(/^http:/i,"https:"),wr(`${t}/sharing/rest/oauth2/token`,{authMode:"anonymous",method:"post",query:i&&o?{grant_type:"authorization_code",code:r,redirect_uri:i,client_id:n,code_verifier:o}:{grant_type:"refresh_token",refresh_token:r,client_id:n}}).then(s=>s.data)}async _getCodeChallenge(t){if(t&&globalThis.isSecureContext){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return Jy(new Uint8Array(n))}return null}_pageShowHandler(t){if(t.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){let r=new Ge("identity-manager:user-aborted","ABORTED");this._errbackFunc(r)}}_findCredential(t,r){let n,i,o,s,c=-1,a=r?.token,d=r?.resource,h=this._isServerRsrc(t)?"server":"portal",g=this.credentials.filter(v=>this._hasSameServerInstance(v.server,t)&&v.scope===h);if(t=d||t,g.length)if(g.length===1){if(n=g[0],o=this.findServerInfo(n.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,n.userId):void 0,c=this._getIdenticalSvcIdx(t,n),!a)return c===-1&&n.resources.push(t),this._addResource(t,s),n;c!==-1&&(n.resources.splice(c,1),this._removeResource(t,s))}else{let v,E;if(g.some(P=>(E=this._getIdenticalSvcIdx(t,P),E!==-1&&(v=P,o=this.findServerInfo(v.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,v.userId):void 0,c=E,!0))),a)v&&(v.resources.splice(c,1),this._removeResource(t,s));else if(v)return this._addResource(t,s),v}}_findOAuthInfo(t){let r=this.findOAuthInfo(t);if(!r){for(let n of this.oAuthInfos)if(this._isIdProvider(n.portalUrl,t)){r=n;break}}return r}_addResource(t,r){r&&this._getIdenticalSvcIdx(t,r)===-1&&r.resources.push(t)}_removeResource(t,r){let n=-1;r&&(n=this._getIdenticalSvcIdx(t,r),n>-1&&r.resources.splice(n,1))}_useProxy(t,r){return r?.isAdmin&&!qn(t.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(t.tokenServiceUrl)&&String(t.currentVersion)==="10.1"&&!qn(t.tokenServiceUrl,this._appOrigin)}_getOrigin(t){let r=new Rn(t);return r.scheme+"://"+r.host+(r.port!=null?":"+r.port:"")}_getServerInstanceRoot(t){let r=t.toLowerCase(),n=r.indexOf(this._agsRest);return n===-1&&this._isAdminResource(t)&&(n=this._agsAdmin.test(t)?t.replace(this._agsAdmin,"$1").length:t.search(this._adminSvcs)),n!==-1||Wy(r)||(n=r.indexOf("/sharing")),n===-1&&r.endsWith("/")&&(n=r.length-1),n>-1?t.slice(0,n):t}_hasSameServerInstance(t,r){return t.endsWith("/")&&(t=t.slice(0,-1)),t=t.toLowerCase(),r=this._getServerInstanceRoot(r).toLowerCase(),t=I4(t),r=I4(r),(t=t.slice(Math.max(0,t.indexOf(":"))))===(r=r.slice(Math.max(0,r.indexOf(":"))))}_sanitizeUrl(t){let r=(Mt.request.proxyUrl||"").toLowerCase(),n=r?t.toLowerCase().indexOf(r+"?"):-1;return n!==-1&&(t=t.slice(n+r.length+1)),t=Hy(t),Ac(t).path}_isRESTService(t){return t.includes(this._agsRest)}_isAdminResource(t){return this._agsAdmin.test(t)||this._adminSvcs.test(t)}_isServerRsrc(t){return this._isRESTService(t)||this._isAdminResource(t)}_isIdenticalService(t,r){let n=!1;if(this._isRESTService(t)&&this._isRESTService(r)){let i=this._getSuffix(t).toLowerCase(),o=this._getSuffix(r).toLowerCase();if(n=i===o,!n){let s=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;n=i.replaceAll(s,"$1")===o.replaceAll(s,"$1")}}else this._isAdminResource(t)&&this._isAdminResource(r)?n=!0:this._isServerRsrc(t)||this._isServerRsrc(r)||!this._isPortalDomain(t)||(n=!0);return n}_isPortalDomain(t){let r=new Rn(t.toLowerCase()),n=this._portalConfig,i=this._gwDomains.some(o=>o.regex.test(r.uri));return!i&&n&&(i=this._hasSameServerInstance(this._getServerInstanceRoot(n.restBaseUrl),r.uri)),i||Mt.portalUrl&&(i=qn(r,Mt.portalUrl,!0)),i||(i=this._portals.some(o=>this._hasSameServerInstance(o,r.uri))),i=i||this._agsPortal.test(r.path),i}_isIdProvider(t,r){let n=-1,i=-1;this._gwDomains.forEach((s,c)=>{n===-1&&s.regex.test(t)&&(n=c),i===-1&&s.regex.test(r)&&(i=c)});let o=!1;if(n>-1&&i>-1&&(n===0||n===4?i!==0&&i!==4||(o=!0):n===1?i!==1&&i!==2||(o=!0):n===2?i===2&&(o=!0):n===3&&i===3&&(o=!0)),!o){let s=this.findServerInfo(r),c=s?.owningSystemUrl;c&&kD(s)&&this._isPortalDomain(c)&&this._isIdProvider(t,c)&&(o=!0)}return o}_getIdenticalSvcIdx(t,r){let n=-1;for(let i=0;i<r.resources.length;i++){let o=r.resources[i];if(this._isIdenticalService(t,o)){n=i;break}}return n}_getSuffix(t){return t.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(t){let r,n,i;if(this._isRESTService(t)||this._isAdminResource(t)){let o=this._getServerInstanceRoot(t);return r=o+"/admin/generateToken",n=wr(t=o+"/rest/info",{query:{f:"json"}}).then(s=>s.data),{adminUrl:r,promise:n}}if(this._isPortalDomain(t)){let o="";if(this._gwDomains.some(s=>(s.regex.test(t)&&(o=s.tokenServiceUrl),!!o)),o||this._portals.some(s=>(this._hasSameServerInstance(s,t)&&(o=s+this._gwTokenUrl),!!o)),o||(i=t.toLowerCase().indexOf("/sharing"),i!==-1&&(o=t.slice(0,i)+this._gwTokenUrl)),o||(o=this._getOrigin(t)+this._gwTokenUrl),o){let s=new Rn(t).port;/^http:\/\//i.test(t)&&s==="7080"&&(o=o.replace(/:7080/i,":7443")),o=o.replace(/http:/i,"https:")}return o}}_processOAuthResponseParams(t,r,n){let i=r._oAuthCred;if(t.code){let s=i.codeVerifier;return i.codeVerifier=null,i.stateUID=null,i.save(),this._getOAuthToken(n.server,t.code,r.appId,this._getRedirectURI(r,!0),s).then(c=>{let a=new sr({userId:c.username,server:n.server??void 0,token:c.access_token,expires:Date.now()+1e3*c.expires_in,ssl:c.ssl,oAuthState:t.state,_oAuthCred:i});return r.userId=a.userId,i.storage=c.persist?r2:n2,i.refreshToken=c.refresh_token,i.token=null,i.expires=c.refresh_token_expires_in?Date.now()+1e3*c.refresh_token_expires_in:null,i.userId=a.userId,i.ssl=a.ssl,i.save(),a})}let o=new sr({userId:t.username,server:n.server??void 0,token:t.access_token,expires:Date.now()+1e3*Number(t.expires_in),ssl:t.ssl==="true",oAuthState:t.state,_oAuthCred:i});return r.userId=o.userId,i.storage=t.persist?r2:n2,i.refreshToken=null,i.token=o.token,i.expires=o.expires,i.userId=o.userId,i.ssl=o.ssl,i.save(),Promise.resolve(o)}_processOAuthPopupParams(t){let r=this._oAuthDfd;if(this._oAuthDfd=null,r)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),t.error){let n=t.error==="access_denied",i=new Ge(n?"identity-manager:user-aborted":"identity-manager:authentication-failed",n?"ABORTED":"OAuth: "+t.error+" - "+t.error_description);r.reject(i)}else this._processOAuthResponseParams(t,r.oinfo_,r.sinfo_).then(n=>{r.resolve(n)}).catch(n=>{r.reject(n)})}_setOAuthResponseQueryString(t){t&&(t.charAt(0)==="?"&&(t=t.slice(1)),this._processOAuthPopupParams(Ic(t)))}async _exchangeToken(t,r,n){return(await wr(`${t}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:r,token:n}})).data.token}async _getPlatformSelf(t,r){if(this._getPlatformSelfError&&Date.now()-this._getPlatformSelfError[1]<1e3)throw this._getPlatformSelfError[0];t=t.replace(/^http:/i,"https:");try{let n=await wr(`${t}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":r,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json",expiration:30},withCredentials:!0});return this._getPlatformSelfError=null,n.data}catch(n){throw n.details?.messageCode==="OAUTH_0066"&&(this._getPlatformSelfError=[n,Date.now()]),n}}_getPortalSelf(t,r){let n;return this._gwDomains.some(i=>(i.regex.test(t)&&(n=i.customBaseUrl),!!n)),n?Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:n,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?t=t.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(r)&&(t=t.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),wr(t,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then(i=>i.data))}_doPortalSignIn(t){let r=this._portalConfig,n=window.location.href,i=this.findServerInfo(t);return!(!r&&!this._isPortalDomain(n)||!(i?i.hasPortal||i.owningSystemUrl&&this._isPortalDomain(i.owningSystemUrl):this._isPortalDomain(t))||!(this._isIdProvider(n,t)||r&&(this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),t)||this._isIdProvider(r.restBaseUrl,t))||qn(n,t,!0)))}_checkProtocol(t,r,n,i){let o=!0,s=i?r.adminTokenServiceUrl:r.tokenServiceUrl;return s.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&qf(s)&&(o=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:t,serverInfo:r}),!o)&&n(new Ge("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),o}_enqueue(t,r,n,i,o,s){return i||(i=ci()),i.resUrl_=t,i.sinfo_=r,i.options_=n,i.admin_=o,i.refresh_=s,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(t),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(i)):this._xoReqs.push(i):this._doSignIn(i),i.promise}_doSignIn(t){this._busy=t,this._rejectOnPersistedPageShow=!1;let r=d=>{let h=t.options_?.resource,g=t.resUrl_,v=t.refresh_,E=!1;this.credentials.includes(d)||(v&&this.credentials.includes(v)?(v.userId=d.userId,v.token=d.token,v.expires=d.expires,v.validity=d.validity,v.ssl=d.ssl,v.creationTime=d.creationTime,E=!0,d=v):this.credentials.push(d)),d.resources||(d.resources=[]),d.resources.includes(h||g)||d.resources.push(h||g),d.scope=this._isServerRsrc(g)?"server":"portal",d.emitTokenChange();let P=this._soReqs,A={};this._soReqs=[],P.forEach(F=>{if(!this._isIdenticalService(g,F.resUrl_)){let W=this._getSuffix(F.resUrl_);A[W]||(A[W]=!0,d.resources.push(F.resUrl_))}}),t.resolve(d),P.forEach(F=>{this._hasSameServerInstance(this._getServerInstanceRoot(g),F.resUrl_)?F.resolve(d):this._soReqs.push(F)}),this._busy=t.resUrl_=t.sinfo_=t.refresh_=null,E||this.emit("credential-create",{credential:d}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},n=d=>{t.reject(d),this._busy=t.resUrl_=t.sinfo_=t.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},i=(d,h,g,v)=>{let E=t.sinfo_,P=!t.options_||t.options_.prompt!==!1,A=E.hasPortal&&this._findOAuthInfo(t.resUrl_),F,W;if(d)r(new sr({userId:d,server:E.server??void 0,token:g??void 0,expires:v!=null?Number(v):null,ssl:!!h}));else if(window!==window.parent&&this._appUrlObj.query?.["arcgis-auth-origin"]&&this._appUrlObj.query?.["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),t.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);let z=Tc(window,"message",j=>{j.source===window.parent&&j.data&&(j.data.type==="arcgis:auth:credential"?(z.remove(),j.data.credential.expires<Date.now()?n(new Ge("identity-manager:credential-request-failed","Parent application's token has expired.")):r(new sr(j.data.credential))):j.data.type==="arcgis:auth:error"&&(z.remove(),j.data.error.name==="tokenExpiredError"?n(new Ge("identity-manager:credential-request-failed","Parent application's token has expired.")):n(Ge.fromJSON(j.data.error))))});Ti(t.options_?.signal,()=>{z.remove()})}else if(A){let z=A._oAuthCred;if(!z){let j=new xm(A,r2),G=new xm(A,n2);j.isValid()&&G.isValid()?j.expires>G.expires?(z=j,G.destroy()):(z=G,j.destroy()):z=j.isValid()?j:G,A._oAuthCred=z}if(z.isValid()){F=new sr({userId:z.userId??void 0,server:E.server??void 0,token:z.token??void 0,expires:z.expires,ssl:z.ssl??void 0,_oAuthCred:z});let j=A.appId!==z.appId&&this._doPortalSignIn(t.resUrl_);j||z.refreshToken?(t._pendingDfd=z.refreshToken?this._getOAuthToken(E.server,z.refreshToken,z.appId).then(G=>(F.expires=Date.now()+1e3*G.expires_in,F.token=G.access_token,F)):Promise.resolve(F),t._pendingDfd.then(G=>j?this._exchangeToken(G.server,A.appId,G.token).then(Y=>(G.token=Y,G)).catch(()=>G):G).then(G=>{r(G)}).catch(G=>{let Y=G.details?.httpStatus;Y>0&&Y!==404?(z.destroy(),i()):n(G)})):r(F)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(A.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===z.stateUID&&z.codeVerifier)){let j=this._oAuthLocationParams;this._oAuthLocationParams=null,t._pendingDfd=this._processOAuthResponseParams(j,A,E).then(G=>{r(G)}).catch(n)}else{let j=()=>{P?t._pendingDfd=this.oAuthSignIn(t.resUrl_,E,A,t.options_).then(r,n):(W=new Ge("identity-manager:not-authenticated","User is not signed in."),n(W))};this._doPortalSignIn(t.resUrl_)?t._pendingDfd=this._getPlatformSelf(E.server,A.appId).then(G=>{qn(G.portalUrl,this._appOrigin,!0)?(F=new sr({userId:G.username,server:E.server??void 0,expires:Date.now()+1e3*G.expires_in,token:G.token}),r(F)):j()}).catch(j):j()}}else if(P){if(this._checkProtocol(t.resUrl_,E,n,t.admin_)){let z=t.options_;t.admin_&&(z=z||{},z.isAdmin=!0),t._pendingDfd=this.signIn(t.resUrl_,E,z).then(r,n)}}else W=new Ge("identity-manager:not-authenticated","User is not signed in."),n(W)},o=()=>{let d=t.sinfo_,h=d.owningSystemUrl,g=t.options_,v,E,P,A;if(g&&(v=g.token,E=g.error,P=g.prompt),A=this._findCredential(h,{token:v,resource:t.resUrl_}),!A){for(let F of this.credentials)if(this._isIdProvider(h,F.server)){A=F;break}}if(A){let F=this.findCredential(t.resUrl_,A.userId);if(F)r(F);else if(r3(d,this._legacyFed)){let W=A.toJSON();W.server=d.server,W.resources=null,r(new sr(W))}else(t._pendingDfd=this.generateToken(this.findServerInfo(A.server),null,{serverUrl:t.resUrl_,token:A.token,signal:t.options_.signal,ssl:A.ssl})).then(W=>{r(new sr({userId:A?.userId,server:d.server??void 0,token:W.token,expires:W.expires!=null?Number(W.expires):null,ssl:!!W.ssl,isAdmin:t.admin_,validity:W.validity}))},n)}else this._busy=null,v&&(t.options_.token=null),(t._pendingDfd=this.getCredential(h.replace(/\/?$/,"/sharing"),{resource:t.resUrl_,owningTenant:d.owningTenant,signal:t.options_.signal,token:v,error:E,prompt:P})).then(()=>{this._enqueue(t.resUrl_,t.sinfo_,t.options_,t,t.admin_)},F=>{t.resUrl_=t.sinfo_=t.refresh_=null,t.reject(F)})};this._errbackFunc=n;let s=t.sinfo_.owningSystemUrl,c=this._isServerRsrc(t.resUrl_),a=t.sinfo_._restInfoPms;a?a.promise.then(d=>{let h=t.sinfo_;if(h._restInfoPms){h.adminTokenServiceUrl=h._restInfoPms.adminUrl,h._restInfoPms=null,h.tokenServiceUrl=(ji("authInfo.tokenServicesUrl",d)||ji("authInfo.tokenServiceUrl",d)||ji("tokenServiceUrl",d))??null,h.shortLivedTokenValidity=ji("authInfo.shortLivedTokenValidity",d)??null,h.currentVersion=d.currentVersion,h.owningTenant=d.owningTenant;let g=h.owningSystemUrl=d.owningSystemUrl;g&&this._portals.push(g)}c&&h.owningSystemUrl?o():i()},()=>{t.sinfo_._restInfoPms=null;let d=new Ge("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");n(d)}):c&&s?o():t.sinfo_._selfReq?t.sinfo_._selfReq.selfDfd.then(d=>{let h={},g,v,E,P;return d&&(g=d.user?.username,h.username=g,h.allSSL=d.allSSL,v=d.supportsOAuth,P=parseFloat(d.currentVersion),d.portalMode==="multitenant"&&(E=d.customBaseUrl),t.sinfo_.currentVersion=P),t.sinfo_.webTierAuth=!!g,g&&this.normalizeWebTierAuth?this.generateToken(t.sinfo_,null,{ssl:h.allSSL}).catch(()=>null).then(A=>(h.portalToken=A?.token,h.tokenExpiration=A?.expires,h)):!g&&v&&P>=4.4&&!this._findOAuthInfo(t.resUrl_)?this._generateOAuthInfo({portalUrl:t.sinfo_.server,customBaseUrl:E,owningTenant:t.sinfo_._selfReq.owningTenant}).catch(()=>null).then(()=>h):h}).catch(()=>null).then(d=>{t.sinfo_._selfReq=null,d?i(d.username,d.allSSL,d.portalToken,d.tokenExpiration):i()}):i()}_generateOAuthInfo(t){let r,n=null,i=t.portalUrl,o=t.customBaseUrl,s=t.owningTenant,c=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(c){n=window.location.href;let a=n.indexOf("?");a>-1&&(n=n.slice(0,a)),a=n.search(/\/(apps|home)\//),n=a>-1?n.slice(0,a):null}return c&&n?(this._hasTestedIfAppIsOnPortal=!0,r=wr(n+"/sharing/rest",{query:{f:"json"}}).then(()=>{this._defaultOAuthInfo=new t3({appId:"arcgisonline",popupCallbackUrl:n+"/home/oauth-callback.html"})})):r=Promise.resolve(),r.then(()=>{if(this._defaultOAuthInfo)return i=i.replace(/^http:/i,"https:"),wr(i+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:s,client_id:this._defaultOAuthInfo.appId,redirect_uri:Lc(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then(a=>{if(a.data.valid){let d=this._defaultOAuthInfo.clone();a.data.urlKey&&o?d.portalUrl="https://"+a.data.urlKey.toLowerCase()+"."+o:d.portalUrl=i,d.popup=window!==window.top||!(qn(i,this._appOrigin)||this._gwDomains.some(h=>h.regex.test(i)&&h.regex.test(this._appOrigin))),this.oAuthInfos.push(d)}})})}_doOAuthSignIn(t,r,n,i){let o=n._oAuthCred,s={portalUrl:n.portalUrl};!n.popup&&n.preserveUrlHash&&window.location.hash&&(s.hash=window.location.hash),o.stateUID&&(s.uid=o.stateUID);let c={client_id:n.appId,response_type:o.codeVerifier?"code":"token",state:JSON.stringify(s),expiration:n.expiration,locale:n.locale,redirect_uri:this._getRedirectURI(n,!!o.codeVerifier)};n.forceLogin&&(c.force_login=!0),n.forceUserId&&n.userId&&(c.prepopulatedusername=n.userId),!n.popup&&this._doPortalSignIn(t)&&(c.redirectToUserOrgUrl=!0),o.codeVerifier&&(c.code_challenge=i||o.codeVerifier,c.code_challenge_method=i?"S256":"plain");let a=n.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",d=a+"?"+ku(c);if(n.popup){let h=window.open(d,"esriJSAPIOAuth",n.popupWindowFeatures);if(h)h.focus(),this._oAuthDfd.oAuthWin_=h,this._oAuthIntervalId=setInterval(()=>{if(h.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();let g=this._oAuthDfd;if(g){let v=new Ge("identity-manager:user-aborted","ABORTED");g.reject(v)}}},500),this._oAuthOnPopupHandle=Tc(window,["arcgis:auth:hash","arcgis:auth:location:search"],g=>{g.type==="arcgis:auth:hash"?this.setOAuthResponseHash(g.detail):this._setOAuthResponseQueryString(g.detail)});else{let g=new Ge("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(g)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:c,authorizeUrl:a,resourceUrl:t,serverInfo:r,oAuthInfo:n}):window.location.href=d}_getRedirectURI(t,r){let n=window.location.href.replace(/#.*$/,"");if(t.popup)return Lc(t.popupCallbackUrl);if(r){let i=Ac(n);return i.query&&["code","error","error_description","message_code","persist","state"].forEach(o=>{delete i.query[o]}),Hf(i.path,i.query)}return n}};R1.prototype.declaredClass="esri.identity.IdentityManagerBase";sr=class extends Nu.EventedAccessor{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e?._oAuthCred&&(this._oAuthCred=e._oAuthCred)}initialize(){this.resources=this.resources||[],this.creationTime==null&&(this.creationTime=Date.now())}refreshToken(){let e=Jr,t=e.findServerInfo(this.server),r=t?.owningSystemUrl,n=!!r&&this.scope==="server",i=n&&r3(t,e._legacyFed),o=t.webTierAuth,s=o&&e.normalizeWebTierAuth,c=t2[this.server],a=c?.[this.userId],d,h=this.resources&&this.resources[0],g=n?e.findServerInfo(r):null,v={username:this.userId,password:a};if(o&&!s)return;n&&!g&&e.serverInfos.some(P=>(e._isIdProvider(r,P.server)&&(g=P),!!g));let E=g?e.findCredential(g.server,this.userId):null;if(!n||E){if(!i){if(n)d={serverUrl:h,token:E?.token,ssl:E?.ssl};else if(s)v=null,d={ssl:this.ssl};else{if(!a){let P;return h&&(h=e._sanitizeUrl(h),this._enqueued=1,P=e._enqueue(h,t,null,null,this.isAdmin,this),P.then(()=>{this._enqueued=0,this.refreshServerTokens()}).catch(()=>{this._enqueued=0})),P}this.isAdmin&&(d={isAdmin:!0})}return e.generateToken(n?g:t,n?null:v,d).then(P=>{this.token=P.token,this.expires=P.expires!=null?Number(P.expires):null,this.creationTime=Date.now(),this.validity=P.validity,this.emitTokenChange(),this.refreshServerTokens()}).catch(()=>{})}E?.refreshToken()}}refreshServerTokens(){if(this.scope==="portal"){let e=Jr;e.credentials.forEach(t=>{let r=e.findServerInfo(t.server),n=r?.owningSystemUrl;t!==this&&t.userId===this.userId&&n&&t.scope==="server"&&(e._hasSameServerInstance(this.server,n)||e._isIdProvider(n,this.server))&&(r3(r,e._legacyFed)?(t.token=this.token,t.expires=this.expires,t.creationTime=this.creationTime,t.validity=this.validity,t.emitTokenChange()):t.refreshToken())})}}emitTokenChange(e){clearTimeout(this._refreshTimer);let t=Jr,r=this.server?t.findServerInfo(this.server):null,n=r?.owningSystemUrl,i=n?t.findServerInfo(n):null;e===!1||n&&this.scope!=="portal"&&(!i?.webTierAuth||t.normalizeWebTierAuth)||this.expires==null&&this.validity==null||this._startRefreshTimer(),this.emit("token-change")}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);let e=Jr,t=e.credentials.indexOf(this);t>-1&&e.credentials.splice(t,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){let e=Pw({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),t=this.resources;return t&&t.length>0&&(e.resources=t.slice()),e}_startRefreshTimer(){clearTimeout(this._refreshTimer);let e=6e4*this.tokenRefreshBuffer,t=2**31-1,r=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();r<0?r=0:r>t&&(r=t),this._refreshTimer=setTimeout(this.refreshToken.bind(this),r>e?r-e:r)}};O([V()],sr.prototype,"creationTime",void 0),O([V()],sr.prototype,"expires",void 0),O([V()],sr.prototype,"isAdmin",void 0),O([V()],sr.prototype,"oAuthState",void 0),O([V()],sr.prototype,"resources",void 0),O([V()],sr.prototype,"scope",void 0),O([V()],sr.prototype,"server",void 0),O([V()],sr.prototype,"ssl",void 0),O([V()],sr.prototype,"token",void 0),O([V()],sr.prototype,"tokenRefreshBuffer",void 0),O([V()],sr.prototype,"userId",void 0),O([V()],sr.prototype,"validity",void 0),sr=O([Le("esri.identity.Credential")],sr)});var RD={};qs(RD,{default:()=>OD});var i2,OD,DD=R(()=>{Qy();ND();i2=class extends R1{};i2.prototype.declaredClass="esri.identity.IdentityManager";OD=new i2;ZA(OD)});async function wr(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=Ic(t.query.toString().replaceAll("+"," ")));let r=Yy(e),n=Zy(e);n||r||(e=Hy(e));let i={url:e,requestOptions:{...t}},o=v=>({data:v,getAllHeaders:Sm,getHeader:Sm,httpStatus:200,requestOptions:i.requestOptions,url:i.url}),s=N4(e,oo.internalInterceptors);if(s){let v=await $D(s,i);if(v!=null)return o(v)}let c=N4(e);if(c){let v=await $D(c,i);if(v!=null)return o(v);c.after||c.error||(c=null)}if(e=i.url,(t=i.requestOptions).responseType==="image"&&(me("host-webworker")||me("host-node")))throw Cs("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),i);if(t.method==="head"){if(t.body)throw Cs("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),i);if(r||n)throw Cs("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),i)}if(await GQ(),o2)return o2.execute(e,t);let a=new AbortController,d=Ti(t,()=>a.abort()),h={controller:a,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:c,params:i,redoRequest:!1,useIdentity:oo.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},g=await ZQ(h).finally(()=>d?.remove());return c?.after?.(g),g}function BQ(e){let t=li(e);t&&!wr._corsServers.includes(t)&&wr._corsServers.push(t)}function FD(e){let t=li(e);return!t||t.endsWith(".arcgis.com")||wr._corsServers.includes(t)||qy(t)}function Cs(e,t,r,n){let i="Error",o={url:r.url,requestOptions:r.requestOptions,getAllHeaders:Sm,getHeader:Sm,ssl:!1};if(t instanceof Ge)return t.details?(t.details=Ye(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=o,t;if(t){let s=n&&(()=>Array.from(n.headers)),c=n&&(h=>n.headers.get(h)),a=n?.status,d=t.message;d&&(i=d),s&&c&&(o.getAllHeaders=s,o.getHeader=c),o.httpStatus=(t.httpCode!=null?t.httpCode:t.code)||a||0,o.subCode=t.subcode,o.messageCode=t.messageCode,typeof t.details=="string"?o.messages=[t.details]:o.messages=t.details,o.raw=s2 in t?t[s2]:t}return Tg(t)?ys():new Ge(e,i,o)}async function GQ(){me("host-webworker")&&!o2&&(o2=await Promise.resolve().then(()=>(oI(),iI)))}async function n3(){Jr||await Promise.resolve().then(()=>(DD(),RD))}async function jQ(e){let t=e.params.url,r=e.params.requestOptions,n=e.controller.signal,i=r.body,o=null,s=null;if(zD&&"HTMLFormElement"in globalThis&&(i instanceof FormData?o=i:i instanceof HTMLFormElement&&(o=new FormData(i))),typeof i=="string"&&(s=i),e.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:r.method==="head"?"HEAD":"GET",mode:"cors",priority:oo.priority,redirect:"follow",signal:n},(o||s)&&(e.fetchOptions.body=o||s),r.authMode==="anonymous"&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||o?.get("token")),!e.hasToken&&YA(t)&&(r.query||(r.query={}),r.query.token=Mt.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!WD(t)&&!oa(n)){let c;r.authMode==="immediate"?(await n3(),c=await Jr.getCredential(t,{signal:n}),e.credential=c):r.authMode==="no-prompt"?(await n3(),c=await Jr.getCredential(t,{prompt:!1,signal:n}).catch(()=>{}),e.credential=c):Jr&&(c=Jr.findCredential(t)),c&&(e.credentialToken=c.token,e.useSSL=!!c.ssl)}}function WD(e){return WQ.some(t=>t.test(e))}async function qQ(e){let t=e.params.url,r=e.params.requestOptions,n=e.fetchOptions??{},i=Zy(t)||Yy(t),o=r.responseType||"json",s=i?0:r.timeout!=null?r.timeout:oo.timeout,c=!1;if(!i){e.useSSL&&(t=Xy(t));let v={...r.query};e.credentialToken&&(v.token=e.credentialToken);let E=ku(v);me("esri-url-encodes-apostrophe")&&(E=E.replaceAll("'","%27"));let P=t.length+1+E.length,A;c=r.method==="delete"||r.method==="post"||r.method==="put"||!!r.body||P>oo.maxUrlLength;let F=r.useProxy||!!qf(t);if(F){let W=WA(t);A=W.path,!c&&A.length+1+P>oo.maxUrlLength&&(c=!0),W.query&&(v={...W.query,...v})}if(n.method==="HEAD"&&(c||F)){if(c)throw P>oo.maxUrlLength?Cs("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params):Cs("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params);if(F)throw Cs("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}c?(n.method=r.method==="delete"?"DELETE":r.method==="put"?"PUT":"POST",r.body?t=Hf(t,v):(n.body=ku(v),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=Hf(t,v),F&&(e.useProxy=!0,t=`${A}?${t}`),v.token&&zD&&n.body instanceof FormData&&!Wy(t)&&n.body.set("token",v.token),r.hasOwnProperty("withCredentials")?e.withCredentials=r.withCredentials:qn(t,jy())||(qy(t)||Jr&&Jr.findServerInfo(t)?.webTierAuth)&&(e.withCredentials=!0),e.withCredentials&&(n.credentials="include",tI(t)&&await rI(c?Hf(t,v):t))}let a,d,h=0,g=!1;s>0&&(h=setTimeout(()=>{g=!0,e.controller.abort()},s));try{if(r.responseType==="native-request-init")d=n,d.url=t,r.signal?d.signal=r.signal:delete d.signal;else if(r.responseType!=="image"||n.cache!=="default"||n.method!=="GET"||c||HQ(r.headers)||!i&&!e.useProxy&&oo.proxyUrl&&!FD(t)){if(wr._beforeFetch&&await wr._beforeFetch(t,n),a=await fetch(t,n),wr._afterFetch&&await wr._afterFetch(a),e.useProxy||BQ(t),r.responseType==="native")d=a;else if(n.method!=="HEAD")if(a.ok){switch(o){case"array-buffer":d=await a.arrayBuffer();break;case"blob":case"image":d=await a.blob();break;default:d=await a.text()}if(h&&(clearTimeout(h),h=0),o==="json"||o==="xml"||o==="document")if(d)switch(o){case"json":d=JSON.parse(d);break;case"xml":d=VD(d,"application/xml");break;case"document":d=VD(d,"text/html")}else d=null;if(d){if(o==="array-buffer"||o==="blob"){let v=a.headers.get("Content-Type");if(v&&/application\/json|text\/plain/i.test(v)&&d[o==="blob"?"size":"byteLength"]<=750)try{let E=await new Response(d).json();E.error&&(d=E)}catch{}}o==="image"&&d instanceof Blob&&(d=await UD(URL.createObjectURL(d),e,!0))}}else{d=await a.text();try{d=JSON.parse(d)}catch{}}}else d=await UD(t,e)}catch(v){if(v.name==="AbortError")throw g?KA():ys("Request canceled");if(!(!a&&v instanceof TypeError&&oo.proxyUrl)||r.body||r.method==="delete"||r.method==="head"||r.method==="post"||r.method==="put"||e.useProxy||FD(t))throw v;e.redoRequest=!0,jA({proxyUrl:oo.proxyUrl,urlPrefix:li(t)??""})}finally{h&&clearTimeout(h)}return[a,d]}async function $D(e,t){if(e.responseData!=null)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(i){r=Cs("request:interceptor",i,t)}if((n instanceof Error||n instanceof Ge)&&(r=Cs("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}function HQ(e){if(e){for(let t of Object.getOwnPropertyNames(e))if(e[t])return!0}return!1}function VD(e,t){let r;try{r=new DOMParser().parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function ZQ(e){let t,r;await jQ(e);try{do[t,r]=await qQ(e);while(!await YQ(e,t,r))}catch(o){let s=Cs("request:server",o,e.params,t);throw s.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(s),s}let n=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!qy(n)){let o=li(n,!0);o&&oo.trustedServers.push(o)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&eI(r.authorizedCrossOriginNoCorsDomains)}let i=e.credential;if(i&&Jr){let s=Jr.findServerInfo(i.server)?.owningSystemUrl;if(s){s=s.replace(/\/?$/,"/sharing");let c=Jr.findCredential(s,i.userId);c&&Jr._getIdenticalSvcIdx(s,c)===-1&&c.resources.unshift(s)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):Sm,getHeader:t?o=>t.headers.get(o):Sm,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}async function YQ(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;let n=e.params.requestOptions;if(!t||n.responseType==="native"||n.responseType==="native-request-init")return!0;let i,o;if(r&&(r.error&&typeof r.error=="object"?i=r.error:r.status==="error"&&Array.isArray(r.messages)&&(i={...r},i[s2]=r,i.details=r.messages)),!i&&!t.ok)throw i=new Error(`Unable to load ${t.url} status: ${t.status}`),i[s2]=r,i;let s,c=null;i&&(o=Number(i.code),c=i.hasOwnProperty("subcode")?Number(i.subcode):null,s=i.messageCode,s=s?.toUpperCase());let a=n.authMode;if(o===403&&(c===4||i.message?.toLowerCase().includes("ssl")&&!i.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&(a!=="no-prompt"||o===498)&&o!==void 0&&UQ.has(o)&&!WD(e.params.url)&&(o!==403||(!s||!zQ.has(s))&&(c==null||c===2&&e.credentialToken))){await n3();try{let d=await Jr.getCredential(e.params.url,{error:Cs("request:server",i,e.params),prompt:a!=="no-prompt",signal:e.controller.signal,token:e.credentialToken});return e.credential=d,e.credentialToken=d.token,e.useSSL=e.useSSL||d.ssl,!1}catch(d){if(a==="no-prompt")return e.credential=void 0,e.credentialToken=void 0,!1;i=d}}if(i)throw i;return!0}function UD(e,t,r=!1){let n=t.controller.signal,i=new Image;return t.withCredentials?i.crossOrigin="use-credentials":i.crossOrigin="anonymous",i.alt="",i.fetchPriority=oo.priority,i.src=e,QA(i,e,r,n)}var o2,oo,zD,UQ,zQ,WQ,Sm,s2,ib=R(()=>{xc();Qy();Nn();rt();mr();Ro();Nc();By();JA();nI();oo=Mt.request,zD="FormData"in globalThis,UQ=new Set([499,498,403,401]),zQ=new Set(["COM_0056","COM_0057","SB_0008"]),WQ=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],Sm=()=>null,s2=Symbol();wr._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],wr._beforeFetch=void 0,wr._afterFetch=void 0});function Kf(e){if(!Mt.assetsPath)throw ot.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new Ge("assets:path-not-set","config.assetsPath is not set");return O4(Mt.assetsPath,e)}var ob=R(()=>{xc();ib();Nn();it();Nc()});function BD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var GD=R(()=>{});var jD=gT(()=>{});var qD=gT(()=>{});var YD={};qs(YD,{p:()=>QQ});function JQ(){return HD||(HD=1,e=ZD,t=typeof document<"u"?document.currentScript?.src:void 0,typeof __filename<"u"&&(t=t||__filename),r=function(n={}){var i,o,s,c,a=n,d=new Promise((m,k)=>{i=m,o=k}),h=typeof window=="object",g=typeof WorkerGlobalScope<"u",v=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer",E=Object.assign({},a),P="./this.program",A="";function F(m){return a.locateFile?a.locateFile(m,A):A+m}if(v){var W=jD(),z=qD();A=__dirname+"/",c=m=>(m=lo(m)?new URL(m):z.normalize(m),W.readFileSync(m)),s=(m,k=!0)=>(m=lo(m)?new URL(m):z.normalize(m),new Promise((Z,se)=>{W.readFile(m,k?void 0:"utf8",(ue,Pe)=>{ue?se(ue):Z(k?Pe.buffer:Pe)})})),!a.thisProgram&&process.argv.length>1&&(P=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2)}else(h||g)&&(g?A=self.location.href:typeof document<"u"&&document.currentScript&&(A=document.currentScript.src),t&&(A=t),A=A.startsWith("blob:")?"":A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1),g&&(c=m=>{var k=new XMLHttpRequest;return k.open("GET",m,!1),k.responseType="arraybuffer",k.send(null),new Uint8Array(k.response)}),s=m=>lo(m)?new Promise((k,Z)=>{var se=new XMLHttpRequest;se.open("GET",m,!0),se.responseType="arraybuffer",se.onload=()=>{se.status==200||se.status==0&&se.response?k(se.response):Z(se.status)},se.onerror=Z,se.send(null)}):fetch(m,{credentials:"same-origin"}).then(k=>k.ok?k.arrayBuffer():Promise.reject(new Error(k.status+" : "+k.url))));var j,G,Y=console.log.bind(console),ie=console.error.bind(console);Object.assign(a,E),E=null;var U,fe,Ae,Ee,Ne,we,le,J=!1;function ee(m,k){m||Tn(k)}function pe(){var m=G.buffer;a.HEAP8=U=new Int8Array(m),a.HEAP16=Ae=new Int16Array(m),a.HEAPU8=fe=new Uint8Array(m),a.HEAPU16=new Uint16Array(m),a.HEAP32=Ee=new Int32Array(m),a.HEAPU32=Ne=new Uint32Array(m),a.HEAPF32=we=new Float32Array(m),a.HEAPF64=le=new Float64Array(m)}var de=[],Se=[],ye=[];function Fe(){Ko(de)}function nt(){Ko(Se)}function Et(){Ko(ye)}function Cr(m){Se.unshift(m)}var dr=0,pr=null;function gi(m){dr++}function Un(m){if(--dr==0&&pr){var k=pr;pr=null,k()}}function Tn(m){ie(m="Aborted("+m+")"),J=!0,m+=". Build with -sASSERTIONS for more info.";var k=new WebAssembly.RuntimeError(m);throw o(k),k}var Ve,Cd="data:application/octet-stream;base64,",Qo=m=>m.startsWith(Cd),lo=m=>m.startsWith("file://");function dl(){var m="pe-wasm.wasm";return Qo(m)?m:F(m)}function Sa(m){if(m==Ve&&j)return new Uint8Array(j);if(c)return c(m);throw"both async and sync fetching of the wasm failed"}function Ns(m){return s(m).then(k=>new Uint8Array(k),()=>Sa(m))}function $i(m,k,Z){return Ns(m).then(se=>WebAssembly.instantiate(se,k)).then(Z,se=>{ie(`failed to asynchronously prepare wasm: ${se}`),Tn(se)})}function Td(m,k,Z,se){return typeof WebAssembly.instantiateStreaming!="function"||Qo(k)||lo(k)||v||typeof fetch!="function"?$i(k,Z,se):fetch(k,{credentials:"same-origin"}).then(ue=>WebAssembly.instantiateStreaming(ue,Z).then(se,function(Pe){return ie(`wasm streaming compile failed: ${Pe}`),ie("falling back to ArrayBuffer instantiation"),$i(k,Z,se)}))}function Os(){return{a:Dm}}function Rm(){var m=Os();function k(se,ue){return H=se.exports,G=H.t,pe(),Cr(H.u),Un(),H}function Z(se){k(se.instance)}return gi(),Ve??(Ve=dl()),Td(j,Ve,m,Z).catch(o),{}}var Ko=m=>{for(;m.length>0;)m.shift()(a)};function Ea(m,k="i8"){switch(k.endsWith("*")&&(k="*"),k){case"i1":case"i8":return U[m];case"i16":return Ae[m>>1];case"i32":return Ee[m>>2];case"i64":Tn("to do getValue(i64) use WASM_BIGINT");case"float":return we[m>>2];case"double":return le[m>>3];case"*":return Ne[m>>2];default:Tn(`invalid type for getValue: ${k}`)}}var pl=typeof TextDecoder<"u"?new TextDecoder:void 0,fl=(m,k=0,Z=NaN)=>{for(var se=k+Z,ue=k;m[ue]&&!(ue>=se);)++ue;if(ue-k>16&&m.buffer&&pl)return pl.decode(m.subarray(k,ue));for(var Pe="";k<ue;){var ze=m[k++];if(128&ze){var De=63&m[k++];if((224&ze)!=192){var lt=63&m[k++];if((ze=(240&ze)==224?(15&ze)<<12|De<<6|lt:(7&ze)<<18|De<<12|lt<<6|63&m[k++])<65536)Pe+=String.fromCharCode(ze);else{var An=ze-65536;Pe+=String.fromCharCode(55296|An>>10,56320|1023&An)}}else Pe+=String.fromCharCode((31&ze)<<6|De)}else Pe+=String.fromCharCode(ze)}return Pe},Tr=(m,k)=>m?fl(fe,m,k):"";function Pd(m,k,Z){return 0}var es=(m,k,Z,se)=>{if(!(se>0))return 0;for(var ue=Z,Pe=Z+se-1,ze=0;ze<m.length;++ze){var De=m.charCodeAt(ze);if(De>=55296&&De<=57343&&(De=65536+((1023&De)<<10)|1023&m.charCodeAt(++ze)),De<=127){if(Z>=Pe)break;k[Z++]=De}else if(De<=2047){if(Z+1>=Pe)break;k[Z++]=192|De>>6,k[Z++]=128|63&De}else if(De<=65535){if(Z+2>=Pe)break;k[Z++]=224|De>>12,k[Z++]=128|De>>6&63,k[Z++]=128|63&De}else{if(Z+3>=Pe)break;k[Z++]=240|De>>18,k[Z++]=128|De>>12&63,k[Z++]=128|De>>6&63,k[Z++]=128|63&De}}return k[Z]=0,Z-ue},Ca=(m,k,Z)=>es(m,fe,k,Z);function ml(m,k,Z){return 0}function Md(m,k,Z,se){}var hl=m=>m%4==0&&(m%100!=0||m%400==0),gl=[0,31,60,91,121,152,182,213,244,274,305,335],wl=[0,31,59,90,120,151,181,212,243,273,304,334],yl=m=>(hl(m.getFullYear())?gl:wl)[m.getMonth()]+m.getDate()-1,Ad=(m,k)=>k+2097152>>>0<4194305-!!m?(m>>>0)+4294967296*k:NaN;function uo(m,k,Z){var se=Ad(m,k),ue=new Date(1e3*se);Ee[Z>>2]=ue.getSeconds(),Ee[Z+4>>2]=ue.getMinutes(),Ee[Z+8>>2]=ue.getHours(),Ee[Z+12>>2]=ue.getDate(),Ee[Z+16>>2]=ue.getMonth(),Ee[Z+20>>2]=ue.getFullYear()-1900,Ee[Z+24>>2]=ue.getDay();var Pe=0|yl(ue);Ee[Z+28>>2]=Pe,Ee[Z+36>>2]=-60*ue.getTimezoneOffset();var ze=new Date(ue.getFullYear(),0,1),De=new Date(ue.getFullYear(),6,1).getTimezoneOffset(),lt=ze.getTimezoneOffset(),An=0|(De!=lt&&ue.getTimezoneOffset()==Math.min(lt,De));Ee[Z+32>>2]=An}var Id=()=>2147483648,bl=(m,k)=>Math.ceil(m/k)*k,Rs=m=>{var k=(m-G.buffer.byteLength+65535)/65536|0;try{return G.grow(k),pe(),1}catch{}},Vi={},ts=()=>P||"./this.program",po=()=>{if(!po.strings){var m={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ts()};for(var k in Vi)Vi[k]===void 0?delete m[k]:m[k]=Vi[k];var Z=[];for(var k in m)Z.push(`${k}=${m[k]}`);po.strings=Z}return po.strings},vl=(m,k)=>{for(var Z=0;Z<m.length;++Z)U[k++]=m.charCodeAt(Z);U[k]=0};function Ld(m,k,Z,se,ue){return 70}var _l=[null,[],[]],Ta=(m,k)=>{var Z=_l[m];k===0||k===10?((m===1?Y:ie)(fl(Z)),Z.length=0):Z.push(k)},kd=m=>{for(var k=0,Z=0;Z<m.length;++Z){var se=m.charCodeAt(Z);se<=127?k++:se<=2047?k+=2:se>=55296&&se<=57343?(k+=4,++Z):k+=3}return k};function Nd(m,k,Z){var se=kd(m)+1,ue=new Array(se);return es(m,ue,0,ue.length),ue}var Dm={c:Pd,q:(m,k,Z)=>{},h:ml,d:Md,o:m=>{},n:(m,k)=>{},p:(m,k,Z)=>{},l:()=>{Tn("")},s:(m,k,Z)=>fe.copyWithin(m,k,k+Z),j:uo,r:(m,k,Z,se)=>{var ue=new Date().getFullYear(),Pe=new Date(ue,0,1),ze=new Date(ue,6,1),De=Pe.getTimezoneOffset(),lt=ze.getTimezoneOffset(),An=Math.max(De,lt);Ne[m>>2]=60*An,Ee[k>>2]=+(De!=lt);var e0=n0=>{var H2=n0>=0?"-":"+",i0=Math.abs(n0);return`UTC${H2}${String(Math.floor(i0/60)).padStart(2,"0")}${String(i0%60).padStart(2,"0")}`},t0=e0(De),r0=e0(lt);lt<De?(Ca(t0,Z,17),Ca(r0,se,17)):(Ca(t0,se,17),Ca(r0,Z,17))},i:()=>Date.now(),m:m=>{var k=fe.length;m>>>=0;var Z=Id();if(m>Z)return!1;for(var se=1;se<=4;se*=2){var ue=k*(1+.2/se);ue=Math.min(ue,m+100663296);var Pe=Math.min(Z,bl(Math.max(m,ue),65536));if(Rs(Pe))return!0}return!1},e:(m,k)=>{var Z=0;return po().forEach((se,ue)=>{var Pe=k+Z;Ne[m+4*ue>>2]=Pe,vl(se,Pe),Z+=se.length+1}),0},f:(m,k)=>{var Z=po();Ne[m>>2]=Z.length;var se=0;return Z.forEach(ue=>se+=ue.length+1),Ne[k>>2]=se,0},a:m=>52,g:(m,k,Z,se)=>52,k:Ld,b:(m,k,Z,se)=>{for(var ue=0,Pe=0;Pe<Z;Pe++){var ze=Ne[k>>2],De=Ne[k+4>>2];k+=8;for(var lt=0;lt<De;lt++)Ta(m,fe[ze+lt]);ue+=De}return Ne[se>>2]=ue,0}},H=Rm();a._webidl_free=m=>(a._webidl_free=H.v)(m),a._webidl_malloc=m=>(a._webidl_malloc=H.w)(m);var rs,Od=a._emscripten_bind_PeObject_getCode_0=m=>(Od=a._emscripten_bind_PeObject_getCode_0=H.x)(m),Rd=a._emscripten_bind_PeObject_getName_1=(m,k)=>(Rd=a._emscripten_bind_PeObject_getName_1=H.y)(m,k),xl=a._emscripten_bind_PeObject_getType_0=m=>(xl=a._emscripten_bind_PeObject_getType_0=H.z)(m),mn=a._emscripten_bind_PeCoordsys_isEqual_1=(m,k)=>(mn=a._emscripten_bind_PeCoordsys_isEqual_1=H.A)(m,k),Ui=a._emscripten_bind_PeCoordsys_getCode_0=m=>(Ui=a._emscripten_bind_PeCoordsys_getCode_0=H.B)(m),ei=a._emscripten_bind_PeCoordsys_getName_1=(m,k)=>(ei=a._emscripten_bind_PeCoordsys_getName_1=H.C)(m,k),Dd=a._emscripten_bind_PeCoordsys_getType_0=m=>(Dd=a._emscripten_bind_PeCoordsys_getType_0=H.D)(m),Fd=a._emscripten_bind_PeUnit_getUnitFactor_0=m=>(Fd=a._emscripten_bind_PeUnit_getUnitFactor_0=H.E)(m),Pa=a._emscripten_bind_PeUnit_getCode_0=m=>(Pa=a._emscripten_bind_PeUnit_getCode_0=H.F)(m),wi=a._emscripten_bind_PeUnit_getName_1=(m,k)=>(wi=a._emscripten_bind_PeUnit_getName_1=H.G)(m,k),He=a._emscripten_bind_PeUnit_getType_0=m=>(He=a._emscripten_bind_PeUnit_getType_0=H.H)(m),Ma=a._emscripten_bind_VoidPtr___destroy___0=m=>(Ma=a._emscripten_bind_VoidPtr___destroy___0=H.I)(m),Sl=a._emscripten_bind_PeAngunit_getCode_0=m=>(Sl=a._emscripten_bind_PeAngunit_getCode_0=H.J)(m),El=a._emscripten_bind_PeAngunit_getName_1=(m,k)=>(El=a._emscripten_bind_PeAngunit_getName_1=H.K)(m,k),Cl=a._emscripten_bind_PeAngunit_getType_0=m=>(Cl=a._emscripten_bind_PeAngunit_getType_0=H.L)(m),ns=a._emscripten_bind_PeAngunit_getUnitFactor_0=m=>(ns=a._emscripten_bind_PeAngunit_getUnitFactor_0=H.M)(m),Aa=a._emscripten_bind_PeDatum_getSpheroid_0=m=>(Aa=a._emscripten_bind_PeDatum_getSpheroid_0=H.N)(m),$d=a._emscripten_bind_PeDatum_getCode_0=m=>($d=a._emscripten_bind_PeDatum_getCode_0=H.O)(m),Vd=a._emscripten_bind_PeDatum_getName_1=(m,k)=>(Vd=a._emscripten_bind_PeDatum_getName_1=H.P)(m,k),Ud=a._emscripten_bind_PeDatum_getType_0=m=>(Ud=a._emscripten_bind_PeDatum_getType_0=H.Q)(m),Tl=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=m=>(Tl=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=H.R)(m),zd=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=m=>(zd=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=H.S)(m),Pl=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=m=>(Pl=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=H.T)(m),Ml=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=m=>(Ml=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=H.U)(m),Ds=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=m=>(Ds=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=H.V)(m),Al=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=m=>(Al=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=H.W)(m),Ia=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=m=>(Ia=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=H.X)(m),Il=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=m=>(Il=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=H.Y)(m),Wd=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=m=>(Wd=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=H.Z)(m),La=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=m=>(La=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=H._)(m),Bd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=m=>(Bd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=H.$)(m),ka=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=m=>(ka=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=H.aa)(m),Gd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=m=>(Gd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=H.ba)(m),jd=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=m=>(jd=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=H.ca)(m),qd=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=m=>(qd=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=H.da)(m),Hd=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=m=>(Hd=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=H.ea)(m),Zd=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=m=>(Zd=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=H.fa)(m),Ll=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=m=>(Ll=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=H.ga)(m),Fs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=m=>(Fs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=H.ha)(m),fo=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=m=>(fo=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=H.ia)(m),Na=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=m=>(Na=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=H.ja)(m),$s=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=m=>($s=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=H.ka)(m),yi=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=m=>(yi=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=H.la)(m),is=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=m=>(is=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=H.ma)(m),Yd=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=m=>(Yd=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=H.na)(m),kl=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=m=>(kl=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=H.oa)(m),Nl=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=m=>(Nl=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=H.pa)(m),Oa=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=m=>(Oa=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=H.qa)(m),Jd=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=m=>(Jd=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=H.ra)(m),Xd=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=m=>(Xd=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=H.sa)(m),Ol=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=m=>(Ol=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=H.ta)(m),Qd=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=m=>(Qd=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=H.ua)(m),Kd=a._emscripten_bind_PeDouble_PeDouble_1=m=>(Kd=a._emscripten_bind_PeDouble_PeDouble_1=H.va)(m),Rl=a._emscripten_bind_PeDouble_get_val_0=m=>(Rl=a._emscripten_bind_PeDouble_get_val_0=H.wa)(m),Dl=a._emscripten_bind_PeDouble_set_val_1=(m,k)=>(Dl=a._emscripten_bind_PeDouble_set_val_1=H.xa)(m,k),ep=a._emscripten_bind_PeDouble___destroy___0=m=>(ep=a._emscripten_bind_PeDouble___destroy___0=H.ya)(m),Ra=a._emscripten_bind_PeFactory_initialize_1=m=>(Ra=a._emscripten_bind_PeFactory_initialize_1=H.za)(m),tp=a._emscripten_bind_PeFactory_factoryByType_2=(m,k)=>(tp=a._emscripten_bind_PeFactory_factoryByType_2=H.Aa)(m,k),Fl=a._emscripten_bind_PeFactory_fromString_2=(m,k)=>(Fl=a._emscripten_bind_PeFactory_fromString_2=H.Ba)(m,k),rp=a._emscripten_bind_PeFactory_getCode_1=m=>(rp=a._emscripten_bind_PeFactory_getCode_1=H.Ca)(m),Vs=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(m,k,Z,se,ue,Pe)=>(Vs=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=H.Da)(m,k,Z,se,ue,Pe),np=a._emscripten_bind_PeGCSExtent_getLLon_0=m=>(np=a._emscripten_bind_PeGCSExtent_getLLon_0=H.Ea)(m),$l=a._emscripten_bind_PeGCSExtent_getSLat_0=m=>($l=a._emscripten_bind_PeGCSExtent_getSLat_0=H.Fa)(m),Vl=a._emscripten_bind_PeGCSExtent_getRLon_0=m=>(Vl=a._emscripten_bind_PeGCSExtent_getRLon_0=H.Ga)(m),ip=a._emscripten_bind_PeGCSExtent_getNLat_0=m=>(ip=a._emscripten_bind_PeGCSExtent_getNLat_0=H.Ha)(m),Ul=a._emscripten_bind_PeGCSExtent___destroy___0=m=>(Ul=a._emscripten_bind_PeGCSExtent___destroy___0=H.Ia)(m),zl=a._emscripten_bind_PeGeogcs_Delete_0=m=>(zl=a._emscripten_bind_PeGeogcs_Delete_0=H.Ja)(m),op=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=(m,k)=>(op=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=H.Ka)(m,k),mo=a._emscripten_bind_PeGeogcs_getDatum_0=m=>(mo=a._emscripten_bind_PeGeogcs_getDatum_0=H.La)(m),os=a._emscripten_bind_PeGeogcs_getPrimem_0=m=>(os=a._emscripten_bind_PeGeogcs_getPrimem_0=H.Ma)(m),sp=a._emscripten_bind_PeGeogcs_getUnit_0=m=>(sp=a._emscripten_bind_PeGeogcs_getUnit_0=H.Na)(m),Da=a._emscripten_bind_PeGeogcs_isEqual_1=(m,k)=>(Da=a._emscripten_bind_PeGeogcs_isEqual_1=H.Oa)(m,k),Fa=a._emscripten_bind_PeGeogcs_getCode_0=m=>(Fa=a._emscripten_bind_PeGeogcs_getCode_0=H.Pa)(m),ap=a._emscripten_bind_PeGeogcs_getName_1=(m,k)=>(ap=a._emscripten_bind_PeGeogcs_getName_1=H.Qa)(m,k),Us=a._emscripten_bind_PeGeogcs_getType_0=m=>(Us=a._emscripten_bind_PeGeogcs_getType_0=H.Ra)(m),Wl=a._emscripten_bind_PeGeogtran_isEqual_1=(m,k)=>(Wl=a._emscripten_bind_PeGeogtran_isEqual_1=H.Sa)(m,k),Bl=a._emscripten_bind_PeGeogtran_getGeogcs1_0=m=>(Bl=a._emscripten_bind_PeGeogtran_getGeogcs1_0=H.Ta)(m),$a=a._emscripten_bind_PeGeogtran_getGeogcs2_0=m=>($a=a._emscripten_bind_PeGeogtran_getGeogcs2_0=H.Ua)(m),Gl=a._emscripten_bind_PeGeogtran_getParameters_0=m=>(Gl=a._emscripten_bind_PeGeogtran_getParameters_0=H.Va)(m),cp=a._emscripten_bind_PeGeogtran_loadConstants_0=m=>(cp=a._emscripten_bind_PeGeogtran_loadConstants_0=H.Wa)(m),bi=a._emscripten_bind_PeGeogtran_getCode_0=m=>(bi=a._emscripten_bind_PeGeogtran_getCode_0=H.Xa)(m),lp=a._emscripten_bind_PeGeogtran_getName_1=(m,k)=>(lp=a._emscripten_bind_PeGeogtran_getName_1=H.Ya)(m,k),up=a._emscripten_bind_PeGeogtran_getType_0=m=>(up=a._emscripten_bind_PeGeogtran_getType_0=H.Za)(m),dp=a._emscripten_bind_PeGTlistExtended_getGTlist_6=(m,k,Z,se,ue,Pe)=>(dp=a._emscripten_bind_PeGTlistExtended_getGTlist_6=H._a)(m,k,Z,se,ue,Pe),jl=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=m=>(jl=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=H.$a)(m),ql=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=m=>(ql=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=H.ab)(m),Pr=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=m=>(Pr=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=H.bb)(m),pp=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=m=>(pp=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=H.cb)(m),fp=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=m=>(fp=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=H.db)(m),mp=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=m=>(mp=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=H.eb)(m),hp=a._emscripten_bind_PeHorizon_getNump_0=m=>(hp=a._emscripten_bind_PeHorizon_getNump_0=H.fb)(m),gp=a._emscripten_bind_PeHorizon_getKind_0=m=>(gp=a._emscripten_bind_PeHorizon_getKind_0=H.gb)(m),Hl=a._emscripten_bind_PeHorizon_getInclusive_0=m=>(Hl=a._emscripten_bind_PeHorizon_getInclusive_0=H.hb)(m),wp=a._emscripten_bind_PeHorizon_getSize_0=m=>(wp=a._emscripten_bind_PeHorizon_getSize_0=H.ib)(m),Zl=a._emscripten_bind_PeHorizon_getCoord_0=m=>(Zl=a._emscripten_bind_PeHorizon_getCoord_0=H.jb)(m),Yl=a._emscripten_bind_PeInteger_PeInteger_1=m=>(Yl=a._emscripten_bind_PeInteger_PeInteger_1=H.kb)(m),zs=a._emscripten_bind_PeInteger_get_val_0=m=>(zs=a._emscripten_bind_PeInteger_get_val_0=H.lb)(m),zi=a._emscripten_bind_PeInteger_set_val_1=(m,k)=>(zi=a._emscripten_bind_PeInteger_set_val_1=H.mb)(m,k),Ws=a._emscripten_bind_PeInteger___destroy___0=m=>(Ws=a._emscripten_bind_PeInteger___destroy___0=H.nb)(m),yp=a._emscripten_bind_PeLineType_geodetic_distance_10=(m,k,Z,se,ue,Pe,ze,De,lt,An)=>(yp=a._emscripten_bind_PeLineType_geodetic_distance_10=H.ob)(m,k,Z,se,ue,Pe,ze,De,lt,An),Jl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=(m,k,Z,se,ue,Pe,ze,De,lt)=>(Jl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=H.pb)(m,k,Z,se,ue,Pe,ze,De,lt),Xl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=(m,k,Z,se,ue,Pe,ze,De)=>(Xl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=H.qb)(m,k,Z,se,ue,Pe,ze,De),Ql=a._emscripten_bind_PeLineType_great_elliptic_distance_9=(m,k,Z,se,ue,Pe,ze,De,lt)=>(Ql=a._emscripten_bind_PeLineType_great_elliptic_distance_9=H.rb)(m,k,Z,se,ue,Pe,ze,De,lt),ss=a._emscripten_bind_PeMath_phi_to_eta_2=(m,k)=>(ss=a._emscripten_bind_PeMath_phi_to_eta_2=H.sb)(m,k),bp=a._emscripten_bind_PeMath_eta_to_phi_2=(m,k)=>(bp=a._emscripten_bind_PeMath_eta_to_phi_2=H.tb)(m,k),vp=a._emscripten_bind_PeMath_phi_to_phig_2=(m,k)=>(vp=a._emscripten_bind_PeMath_phi_to_phig_2=H.ub)(m,k),_p=a._emscripten_bind_PeMath_q_3=(m,k,Z)=>(_p=a._emscripten_bind_PeMath_q_3=H.vb)(m,k,Z),xp=a._emscripten_bind_PeMath_q90_2=(m,k)=>(xp=a._emscripten_bind_PeMath_q90_2=H.wb)(m,k),Sp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=m=>(Sp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=H.xb)(m),Ep=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=m=>(Ep=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=H.yb)(m),Va=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=m=>(Va=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=H.zb)(m),Cp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=m=>(Cp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=H.Ab)(m),Bs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=m=>(Bs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=H.Bb)(m),Tp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=m=>(Tp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=H.Cb)(m),Ua=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=m=>(Ua=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=H.Db)(m),Pp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=m=>(Pp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=H.Eb)(m),Mp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=m=>(Mp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=H.Fb)(m),Kl=a._emscripten_bind_PeParameter_getValue_0=m=>(Kl=a._emscripten_bind_PeParameter_getValue_0=H.Gb)(m),as=a._emscripten_bind_PeParameter_getCode_0=m=>(as=a._emscripten_bind_PeParameter_getCode_0=H.Hb)(m),vi=a._emscripten_bind_PeParameter_getName_1=(m,k)=>(vi=a._emscripten_bind_PeParameter_getName_1=H.Ib)(m,k),eu=a._emscripten_bind_PeParameter_getType_0=m=>(eu=a._emscripten_bind_PeParameter_getType_0=H.Jb)(m),za=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=m=>(za=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=H.Kb)(m),Ap=a._emscripten_bind_PePCSInfo_getDomainMinx_0=m=>(Ap=a._emscripten_bind_PePCSInfo_getDomainMinx_0=H.Lb)(m),Ip=a._emscripten_bind_PePCSInfo_getDomainMiny_0=m=>(Ip=a._emscripten_bind_PePCSInfo_getDomainMiny_0=H.Mb)(m),Lp=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=m=>(Lp=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=H.Nb)(m),kp=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=m=>(kp=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=H.Ob)(m),Np=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=m=>(Np=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=H.Pb)(m),Op=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=m=>(Op=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=H.Qb)(m),Rp=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=m=>(Rp=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=H.Rb)(m),Dp=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=m=>(Dp=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=H.Sb)(m),Fp=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=m=>(Fp=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=H.Tb)(m),$p=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=m=>($p=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=H.Ub)(m),f=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=m=>(f=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=H.Vb)(m),p=a._emscripten_bind_PePCSInfo_generate_2=(m,k)=>(p=a._emscripten_bind_PePCSInfo_generate_2=H.Wb)(m,k),w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=m=>(w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=H.Xb)(m),_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=m=>(_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=H.Yb)(m),C=a._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=m=>(C=a._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=H.Zb)(m),T=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=m=>(T=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=H._b)(m),I=a._emscripten_bind_PePrimem_getLongitude_0=m=>(I=a._emscripten_bind_PePrimem_getLongitude_0=H.$b)(m),N=a._emscripten_bind_PePrimem_getCode_0=m=>(N=a._emscripten_bind_PePrimem_getCode_0=H.ac)(m),D=a._emscripten_bind_PePrimem_getName_1=(m,k)=>(D=a._emscripten_bind_PePrimem_getName_1=H.bc)(m,k),B=a._emscripten_bind_PePrimem_getType_0=m=>(B=a._emscripten_bind_PePrimem_getType_0=H.cc)(m),$=a._emscripten_bind_PeProjcs_Delete_0=m=>($=a._emscripten_bind_PeProjcs_Delete_0=H.dc)(m),Q=a._emscripten_bind_PeProjcs_getGeogcs_0=m=>(Q=a._emscripten_bind_PeProjcs_getGeogcs_0=H.ec)(m),ae=a._emscripten_bind_PeProjcs_getProjection_0=m=>(ae=a._emscripten_bind_PeProjcs_getProjection_0=H.fc)(m),ge=a._emscripten_bind_PeProjcs_getParameters_0=m=>(ge=a._emscripten_bind_PeProjcs_getParameters_0=H.gc)(m),he=a._emscripten_bind_PeProjcs_getUnit_0=m=>(he=a._emscripten_bind_PeProjcs_getUnit_0=H.hc)(m),be=a._emscripten_bind_PeProjcs_loadConstants_0=m=>(be=a._emscripten_bind_PeProjcs_loadConstants_0=H.ic)(m),Oe=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=m=>(Oe=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=H.jc)(m),Ie=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=m=>(Ie=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=H.kc)(m),Ue=a._emscripten_bind_PeProjcs_isEqual_1=(m,k)=>(Ue=a._emscripten_bind_PeProjcs_isEqual_1=H.lc)(m,k),et=a._emscripten_bind_PeProjcs_getCode_0=m=>(et=a._emscripten_bind_PeProjcs_getCode_0=H.mc)(m),st=a._emscripten_bind_PeProjcs_getName_1=(m,k)=>(st=a._emscripten_bind_PeProjcs_getName_1=H.nc)(m,k),je=a._emscripten_bind_PeProjcs_getType_0=m=>(je=a._emscripten_bind_PeProjcs_getType_0=H.oc)(m),tt=a._emscripten_bind_PeSpheroid_getAxis_0=m=>(tt=a._emscripten_bind_PeSpheroid_getAxis_0=H.pc)(m),Mr=a._emscripten_bind_PeSpheroid_getFlattening_0=m=>(Mr=a._emscripten_bind_PeSpheroid_getFlattening_0=H.qc)(m),Lt=a._emscripten_bind_PeSpheroid_getCode_0=m=>(Lt=a._emscripten_bind_PeSpheroid_getCode_0=H.rc)(m),Kr=a._emscripten_bind_PeSpheroid_getName_1=(m,k)=>(Kr=a._emscripten_bind_PeSpheroid_getName_1=H.sc)(m,k),Pn=a._emscripten_bind_PeSpheroid_getType_0=m=>(Pn=a._emscripten_bind_PeSpheroid_getType_0=H.tc)(m),zn=a._emscripten_bind_PeVersion_version_string_0=m=>(zn=a._emscripten_bind_PeVersion_version_string_0=H.uc)(m);function Gs(){function m(){rs||(rs=!0,a.calledRun=!0,J||(nt(),i(a),Et()))}dr>0||(Fe(),dr>0||m())}function mt(){}function Wa(m){return(m||mt).__cache__}function fr(m,k){var Z=Wa(k),se=Z[m];return se||((se=Object.create((k||mt).prototype)).ptr=m,Z[m]=se)}function $2(m,k){return fr(m.ptr,k)}function V2(m){if(!m.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";m.__destroy__(),delete Wa(m.__class__)[m.ptr]}function U2(m,k){return m.ptr===k.ptr}function z2(m){return m.ptr}function W2(m){return m.__class__}a._pe_getPeGTlistExtendedEntrySize=()=>(a._pe_getPeGTlistExtendedEntrySize=H.vc)(),a._pe_getPeGTlistExtendedGTsSize=()=>(a._pe_getPeGTlistExtendedGTsSize=H.wc)(),a._pe_getPeHorizonSize=()=>(a._pe_getPeHorizonSize=H.xc)(),a._pe_geog_to_geog=(m,k,Z,se,ue)=>(a._pe_geog_to_geog=H.zc)(m,k,Z,se,ue),a._pe_geog_to_proj=(m,k,Z)=>(a._pe_geog_to_proj=H.Ac)(m,k,Z),a._pe_geog_to_dd=(m,k,Z,se,ue)=>(a._pe_geog_to_dd=H.Bc)(m,k,Z,se,ue),a._pe_dd_to_geog=(m,k,Z,se)=>(a._pe_dd_to_geog=H.Cc)(m,k,Z,se),a._pe_geog_to_ddm=(m,k,Z,se,ue)=>(a._pe_geog_to_ddm=H.Dc)(m,k,Z,se,ue),a._pe_ddm_to_geog=(m,k,Z,se)=>(a._pe_ddm_to_geog=H.Ec)(m,k,Z,se),a._pe_geog_to_dms=(m,k,Z,se,ue)=>(a._pe_geog_to_dms=H.Fc)(m,k,Z,se,ue),a._pe_dms_to_geog=(m,k,Z,se)=>(a._pe_dms_to_geog=H.Gc)(m,k,Z,se),a._pe_geog_to_mgrs_extended=(m,k,Z,se,ue,Pe,ze)=>(a._pe_geog_to_mgrs_extended=H.Hc)(m,k,Z,se,ue,Pe,ze),a._pe_mgrs_to_geog_extended=(m,k,Z,se,ue)=>(a._pe_mgrs_to_geog_extended=H.Ic)(m,k,Z,se,ue),a._pe_geog_to_usng=(m,k,Z,se,ue,Pe,ze)=>(a._pe_geog_to_usng=H.Jc)(m,k,Z,se,ue,Pe,ze),a._pe_usng_to_geog=(m,k,Z,se)=>(a._pe_usng_to_geog=H.Kc)(m,k,Z,se),a._pe_geog_to_utm=(m,k,Z,se,ue)=>(a._pe_geog_to_utm=H.Lc)(m,k,Z,se,ue),a._pe_utm_to_geog=(m,k,Z,se,ue)=>(a._pe_utm_to_geog=H.Mc)(m,k,Z,se,ue),a._pe_object_to_string_ext=(m,k,Z)=>(a._pe_object_to_string_ext=H.Nc)(m,k,Z),a._pe_proj_to_geog_center=(m,k,Z,se)=>(a._pe_proj_to_geog_center=H.Oc)(m,k,Z,se),a.getValue=Ea,a.UTF8ToString=Tr,pr=function m(){rs||Gs(),rs||(pr=m)},Gs(),mt.prototype=Object.create(mt.prototype),mt.prototype.constructor=mt,mt.prototype.__class__=mt,mt.__cache__={},a.WrapperObject=mt,a.getCache=Wa,a.wrapPointer=fr,a.castObject=$2,a.NULL=fr(0),a.destroy=V2,a.compare=U2,a.getPointer=z2,a.getClass=W2;var Je={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(Je.needed){for(var m=0;m<Je.temps.length;m++)a._webidl_free(Je.temps[m]);Je.temps.length=0,a._webidl_free(Je.buffer),Je.buffer=0,Je.size+=Je.needed,Je.needed=0}Je.buffer||(Je.size+=128,Je.buffer=a._webidl_malloc(Je.size),ee(Je.buffer)),Je.pos=0},alloc(m,k){ee(Je.buffer);var Z,se=k.BYTES_PER_ELEMENT,ue=m.length*se;return ue=bl(ue,8),Je.pos+ue>=Je.size?(ee(ue>0),Je.needed+=ue,Z=a._webidl_malloc(ue),Je.temps.push(Z)):(Z=Je.buffer+Je.pos,Je.pos+=ue),Z},copy(m,k,Z){Z/=k.BYTES_PER_ELEMENT;for(var se=0;se<m.length;se++)k[Z+se]=m[se]}};function Fm(m){if(typeof m=="string"){var k=Nd(m),Z=Je.alloc(k,U);return Je.copy(k,U,Z),Z}return m}function ti(m){if(typeof m=="object"){var k=Je.alloc(m,U);return Je.copy(m,U,k),k}return m}function B2(m){if(typeof m=="object"){var k=Je.alloc(m,Ae);return Je.copy(m,Ae,k),k}return m}function G2(m){if(typeof m=="object"){var k=Je.alloc(m,Ee);return Je.copy(m,Ee,k),k}return m}function j2(m){if(typeof m=="object"){var k=Je.alloc(m,we);return Je.copy(m,we,k),k}return m}function q2(m){if(typeof m=="object"){var k=Je.alloc(m,le);return Je.copy(m,le,k),k}return m}function rr(){throw"cannot construct a PeObject, no constructor in IDL"}function Vr(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function Ur(){throw"cannot construct a PeUnit, no constructor in IDL"}function ho(){throw"cannot construct a VoidPtr, no constructor in IDL"}function en(){throw"cannot construct a PeAngunit, no constructor in IDL"}function tn(){throw"cannot construct a PeDatum, no constructor in IDL"}function ce(){throw"cannot construct a PeDefs, no constructor in IDL"}function zr(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=Kd(m),Wa(zr)[this.ptr]=this}function hn(){throw"cannot construct a PeFactory, no constructor in IDL"}function Ar(m,k,Z,se,ue,Pe){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),this.ptr=Vs(m,k,Z,se,ue,Pe),Wa(Ar)[this.ptr]=this}function Ct(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function Jt(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function Wn(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function Mn(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function ri(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function xr(){throw"cannot construct a PeHorizon, no constructor in IDL"}function Wr(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=Yl(m),Wa(Wr)[this.ptr]=this}function gn(){throw"cannot construct a PeLineType, no constructor in IDL"}function Br(){throw"cannot construct a PeMath, no constructor in IDL"}function kt(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function nr(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function wn(){throw"cannot construct a PeParameter, no constructor in IDL"}function Ze(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function rn(){throw"cannot construct a PePrimem, no constructor in IDL"}function vt(){throw"cannot construct a PeProjcs, no constructor in IDL"}function Ir(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function go(){throw"cannot construct a PeVersion, no constructor in IDL"}return rr.prototype=Object.create(mt.prototype),rr.prototype.constructor=rr,rr.prototype.__class__=rr,rr.__cache__={},a.PeObject=rr,rr.prototype.getCode=rr.prototype.getCode=function(){var m=this.ptr;return Od(m)},rr.prototype.getName=rr.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(Rd(k,m))},rr.prototype.getType=rr.prototype.getType=function(){var m=this.ptr;return xl(m)},Vr.prototype=Object.create(rr.prototype),Vr.prototype.constructor=Vr,Vr.prototype.__class__=Vr,Vr.__cache__={},a.PeCoordsys=Vr,Vr.prototype.isEqual=Vr.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!mn(k,m)},Vr.prototype.getCode=Vr.prototype.getCode=function(){var m=this.ptr;return Ui(m)},Vr.prototype.getName=Vr.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(ei(k,m))},Vr.prototype.getType=Vr.prototype.getType=function(){var m=this.ptr;return Dd(m)},Ur.prototype=Object.create(rr.prototype),Ur.prototype.constructor=Ur,Ur.prototype.__class__=Ur,Ur.__cache__={},a.PeUnit=Ur,Ur.prototype.getUnitFactor=Ur.prototype.getUnitFactor=function(){var m=this.ptr;return Fd(m)},Ur.prototype.getCode=Ur.prototype.getCode=function(){var m=this.ptr;return Pa(m)},Ur.prototype.getName=Ur.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(wi(k,m))},Ur.prototype.getType=Ur.prototype.getType=function(){var m=this.ptr;return He(m)},ho.prototype=Object.create(mt.prototype),ho.prototype.constructor=ho,ho.prototype.__class__=ho,ho.__cache__={},a.VoidPtr=ho,ho.prototype.__destroy__=ho.prototype.__destroy__=function(){var m=this.ptr;Ma(m)},en.prototype=Object.create(Ur.prototype),en.prototype.constructor=en,en.prototype.__class__=en,en.__cache__={},a.PeAngunit=en,en.prototype.getCode=en.prototype.getCode=function(){var m=this.ptr;return Sl(m)},en.prototype.getName=en.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(El(k,m))},en.prototype.getType=en.prototype.getType=function(){var m=this.ptr;return Cl(m)},en.prototype.getUnitFactor=en.prototype.getUnitFactor=function(){var m=this.ptr;return ns(m)},tn.prototype=Object.create(rr.prototype),tn.prototype.constructor=tn,tn.prototype.__class__=tn,tn.__cache__={},a.PeDatum=tn,tn.prototype.getSpheroid=tn.prototype.getSpheroid=function(){var m=this.ptr;return fr(Aa(m),Ir)},tn.prototype.getCode=tn.prototype.getCode=function(){var m=this.ptr;return $d(m)},tn.prototype.getName=tn.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(Vd(k,m))},tn.prototype.getType=tn.prototype.getType=function(){var m=this.ptr;return Ud(m)},ce.prototype=Object.create(mt.prototype),ce.prototype.constructor=ce,ce.prototype.__class__=ce,ce.__cache__={},a.PeDefs=ce,ce.prototype.get_PE_BUFFER_MAX=ce.prototype.get_PE_BUFFER_MAX=function(){var m=this.ptr;return Tl(m)},Object.defineProperty(ce.prototype,"PE_BUFFER_MAX",{get:ce.prototype.get_PE_BUFFER_MAX}),ce.prototype.get_PE_NAME_MAX=ce.prototype.get_PE_NAME_MAX=function(){var m=this.ptr;return zd(m)},Object.defineProperty(ce.prototype,"PE_NAME_MAX",{get:ce.prototype.get_PE_NAME_MAX}),ce.prototype.get_PE_MGRS_MAX=ce.prototype.get_PE_MGRS_MAX=function(){var m=this.ptr;return Pl(m)},Object.defineProperty(ce.prototype,"PE_MGRS_MAX",{get:ce.prototype.get_PE_MGRS_MAX}),ce.prototype.get_PE_USNG_MAX=ce.prototype.get_PE_USNG_MAX=function(){var m=this.ptr;return Ml(m)},Object.defineProperty(ce.prototype,"PE_USNG_MAX",{get:ce.prototype.get_PE_USNG_MAX}),ce.prototype.get_PE_DD_MAX=ce.prototype.get_PE_DD_MAX=function(){var m=this.ptr;return Ds(m)},Object.defineProperty(ce.prototype,"PE_DD_MAX",{get:ce.prototype.get_PE_DD_MAX}),ce.prototype.get_PE_DMS_MAX=ce.prototype.get_PE_DMS_MAX=function(){var m=this.ptr;return Al(m)},Object.defineProperty(ce.prototype,"PE_DMS_MAX",{get:ce.prototype.get_PE_DMS_MAX}),ce.prototype.get_PE_DDM_MAX=ce.prototype.get_PE_DDM_MAX=function(){var m=this.ptr;return Ia(m)},Object.defineProperty(ce.prototype,"PE_DDM_MAX",{get:ce.prototype.get_PE_DDM_MAX}),ce.prototype.get_PE_UTM_MAX=ce.prototype.get_PE_UTM_MAX=function(){var m=this.ptr;return Il(m)},Object.defineProperty(ce.prototype,"PE_UTM_MAX",{get:ce.prototype.get_PE_UTM_MAX}),ce.prototype.get_PE_PARM_MAX=ce.prototype.get_PE_PARM_MAX=function(){var m=this.ptr;return Wd(m)},Object.defineProperty(ce.prototype,"PE_PARM_MAX",{get:ce.prototype.get_PE_PARM_MAX}),ce.prototype.get_PE_TYPE_NONE=ce.prototype.get_PE_TYPE_NONE=function(){var m=this.ptr;return La(m)},Object.defineProperty(ce.prototype,"PE_TYPE_NONE",{get:ce.prototype.get_PE_TYPE_NONE}),ce.prototype.get_PE_TYPE_GEOGCS=ce.prototype.get_PE_TYPE_GEOGCS=function(){var m=this.ptr;return Bd(m)},Object.defineProperty(ce.prototype,"PE_TYPE_GEOGCS",{get:ce.prototype.get_PE_TYPE_GEOGCS}),ce.prototype.get_PE_TYPE_PROJCS=ce.prototype.get_PE_TYPE_PROJCS=function(){var m=this.ptr;return ka(m)},Object.defineProperty(ce.prototype,"PE_TYPE_PROJCS",{get:ce.prototype.get_PE_TYPE_PROJCS}),ce.prototype.get_PE_TYPE_GEOGTRAN=ce.prototype.get_PE_TYPE_GEOGTRAN=function(){var m=this.ptr;return Gd(m)},Object.defineProperty(ce.prototype,"PE_TYPE_GEOGTRAN",{get:ce.prototype.get_PE_TYPE_GEOGTRAN}),ce.prototype.get_PE_TYPE_COORDSYS=ce.prototype.get_PE_TYPE_COORDSYS=function(){var m=this.ptr;return jd(m)},Object.defineProperty(ce.prototype,"PE_TYPE_COORDSYS",{get:ce.prototype.get_PE_TYPE_COORDSYS}),ce.prototype.get_PE_TYPE_UNIT=ce.prototype.get_PE_TYPE_UNIT=function(){var m=this.ptr;return qd(m)},Object.defineProperty(ce.prototype,"PE_TYPE_UNIT",{get:ce.prototype.get_PE_TYPE_UNIT}),ce.prototype.get_PE_TYPE_LINUNIT=ce.prototype.get_PE_TYPE_LINUNIT=function(){var m=this.ptr;return Hd(m)},Object.defineProperty(ce.prototype,"PE_TYPE_LINUNIT",{get:ce.prototype.get_PE_TYPE_LINUNIT}),ce.prototype.get_PE_STR_OPTS_NONE=ce.prototype.get_PE_STR_OPTS_NONE=function(){var m=this.ptr;return Zd(m)},Object.defineProperty(ce.prototype,"PE_STR_OPTS_NONE",{get:ce.prototype.get_PE_STR_OPTS_NONE}),ce.prototype.get_PE_STR_AUTH_NONE=ce.prototype.get_PE_STR_AUTH_NONE=function(){var m=this.ptr;return Ll(m)},Object.defineProperty(ce.prototype,"PE_STR_AUTH_NONE",{get:ce.prototype.get_PE_STR_AUTH_NONE}),ce.prototype.get_PE_STR_AUTH_TOP=ce.prototype.get_PE_STR_AUTH_TOP=function(){var m=this.ptr;return Fs(m)},Object.defineProperty(ce.prototype,"PE_STR_AUTH_TOP",{get:ce.prototype.get_PE_STR_AUTH_TOP}),ce.prototype.get_PE_STR_NAME_CANON=ce.prototype.get_PE_STR_NAME_CANON=function(){var m=this.ptr;return fo(m)},Object.defineProperty(ce.prototype,"PE_STR_NAME_CANON",{get:ce.prototype.get_PE_STR_NAME_CANON}),ce.prototype.get_PE_STR_FMT_WKT=ce.prototype.get_PE_STR_FMT_WKT=function(){var m=this.ptr;return Na(m)},Object.defineProperty(ce.prototype,"PE_STR_FMT_WKT",{get:ce.prototype.get_PE_STR_FMT_WKT}),ce.prototype.get_PE_STR_FMT_WKT2=ce.prototype.get_PE_STR_FMT_WKT2=function(){var m=this.ptr;return $s(m)},Object.defineProperty(ce.prototype,"PE_STR_FMT_WKT2",{get:ce.prototype.get_PE_STR_FMT_WKT2}),ce.prototype.get_PE_PARM_X0=ce.prototype.get_PE_PARM_X0=function(){var m=this.ptr;return yi(m)},Object.defineProperty(ce.prototype,"PE_PARM_X0",{get:ce.prototype.get_PE_PARM_X0}),ce.prototype.get_PE_PARM_ND=ce.prototype.get_PE_PARM_ND=function(){var m=this.ptr;return is(m)},Object.defineProperty(ce.prototype,"PE_PARM_ND",{get:ce.prototype.get_PE_PARM_ND}),ce.prototype.get_PE_TRANSFORM_1_TO_2=ce.prototype.get_PE_TRANSFORM_1_TO_2=function(){var m=this.ptr;return Yd(m)},Object.defineProperty(ce.prototype,"PE_TRANSFORM_1_TO_2",{get:ce.prototype.get_PE_TRANSFORM_1_TO_2}),ce.prototype.get_PE_TRANSFORM_2_TO_1=ce.prototype.get_PE_TRANSFORM_2_TO_1=function(){var m=this.ptr;return kl(m)},Object.defineProperty(ce.prototype,"PE_TRANSFORM_2_TO_1",{get:ce.prototype.get_PE_TRANSFORM_2_TO_1}),ce.prototype.get_PE_TRANSFORM_P_TO_G=ce.prototype.get_PE_TRANSFORM_P_TO_G=function(){var m=this.ptr;return Nl(m)},Object.defineProperty(ce.prototype,"PE_TRANSFORM_P_TO_G",{get:ce.prototype.get_PE_TRANSFORM_P_TO_G}),ce.prototype.get_PE_TRANSFORM_G_TO_P=ce.prototype.get_PE_TRANSFORM_G_TO_P=function(){var m=this.ptr;return Oa(m)},Object.defineProperty(ce.prototype,"PE_TRANSFORM_G_TO_P",{get:ce.prototype.get_PE_TRANSFORM_G_TO_P}),ce.prototype.get_PE_HORIZON_RECT=ce.prototype.get_PE_HORIZON_RECT=function(){var m=this.ptr;return Jd(m)},Object.defineProperty(ce.prototype,"PE_HORIZON_RECT",{get:ce.prototype.get_PE_HORIZON_RECT}),ce.prototype.get_PE_HORIZON_POLY=ce.prototype.get_PE_HORIZON_POLY=function(){var m=this.ptr;return Xd(m)},Object.defineProperty(ce.prototype,"PE_HORIZON_POLY",{get:ce.prototype.get_PE_HORIZON_POLY}),ce.prototype.get_PE_HORIZON_LINE=ce.prototype.get_PE_HORIZON_LINE=function(){var m=this.ptr;return Ol(m)},Object.defineProperty(ce.prototype,"PE_HORIZON_LINE",{get:ce.prototype.get_PE_HORIZON_LINE}),ce.prototype.get_PE_HORIZON_DELTA=ce.prototype.get_PE_HORIZON_DELTA=function(){var m=this.ptr;return Qd(m)},Object.defineProperty(ce.prototype,"PE_HORIZON_DELTA",{get:ce.prototype.get_PE_HORIZON_DELTA}),zr.prototype=Object.create(mt.prototype),zr.prototype.constructor=zr,zr.prototype.__class__=zr,zr.__cache__={},a.PeDouble=zr,zr.prototype.get_val=zr.prototype.get_val=function(){var m=this.ptr;return Rl(m)},zr.prototype.set_val=zr.prototype.set_val=function(m){var k=this.ptr;m&&typeof m=="object"&&(m=m.ptr),Dl(k,m)},Object.defineProperty(zr.prototype,"val",{get:zr.prototype.get_val,set:zr.prototype.set_val}),zr.prototype.__destroy__=zr.prototype.__destroy__=function(){var m=this.ptr;ep(m)},hn.prototype=Object.create(mt.prototype),hn.prototype.constructor=hn,hn.prototype.__class__=hn,hn.__cache__={},a.PeFactory=hn,hn.prototype.initialize=hn.prototype.initialize=function(m){Je.prepare(),m=m&&typeof m=="object"?m.ptr:Fm(m),Ra(m)},hn.prototype.factoryByType=hn.prototype.factoryByType=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),fr(tp(m,k),rr)},hn.prototype.fromString=hn.prototype.fromString=function(m,k){return Je.prepare(),m&&typeof m=="object"&&(m=m.ptr),k=k&&typeof k=="object"?k.ptr:Fm(k),fr(Fl(m,k),rr)},hn.prototype.getCode=hn.prototype.getCode=function(m){return m&&typeof m=="object"&&(m=m.ptr),rp(m)},Ar.prototype=Object.create(mt.prototype),Ar.prototype.constructor=Ar,Ar.prototype.__class__=Ar,Ar.__cache__={},a.PeGCSExtent=Ar,Ar.prototype.getLLon=Ar.prototype.getLLon=function(){var m=this.ptr;return np(m)},Ar.prototype.getSLat=Ar.prototype.getSLat=function(){var m=this.ptr;return $l(m)},Ar.prototype.getRLon=Ar.prototype.getRLon=function(){var m=this.ptr;return Vl(m)},Ar.prototype.getNLat=Ar.prototype.getNLat=function(){var m=this.ptr;return ip(m)},Ar.prototype.__destroy__=Ar.prototype.__destroy__=function(){var m=this.ptr;Ul(m)},Ct.prototype=Object.create(Vr.prototype),Ct.prototype.constructor=Ct,Ct.prototype.__class__=Ct,Ct.__cache__={},a.PeGeogcs=Ct,Ct.prototype.Delete=Ct.prototype.Delete=function(){var m=this.ptr;zl(m)},Ct.prototype.cloneAlterUnits=Ct.prototype.cloneAlterUnits=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),fr(op(k,m),Ct)},Ct.prototype.getDatum=Ct.prototype.getDatum=function(){var m=this.ptr;return fr(mo(m),tn)},Ct.prototype.getPrimem=Ct.prototype.getPrimem=function(){var m=this.ptr;return fr(os(m),rn)},Ct.prototype.getUnit=Ct.prototype.getUnit=function(){var m=this.ptr;return fr(sp(m),en)},Ct.prototype.isEqual=Ct.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Da(k,m)},Ct.prototype.getCode=Ct.prototype.getCode=function(){var m=this.ptr;return Fa(m)},Ct.prototype.getName=Ct.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(ap(k,m))},Ct.prototype.getType=Ct.prototype.getType=function(){var m=this.ptr;return Us(m)},Jt.prototype=Object.create(rr.prototype),Jt.prototype.constructor=Jt,Jt.prototype.__class__=Jt,Jt.__cache__={},a.PeGeogtran=Jt,Jt.prototype.isEqual=Jt.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Wl(k,m)},Jt.prototype.getGeogcs1=Jt.prototype.getGeogcs1=function(){var m=this.ptr;return fr(Bl(m),Ct)},Jt.prototype.getGeogcs2=Jt.prototype.getGeogcs2=function(){var m=this.ptr;return fr($a(m),Ct)},Jt.prototype.getParameters=Jt.prototype.getParameters=function(){var m=this.ptr;return Gl(m)},Jt.prototype.loadConstants=Jt.prototype.loadConstants=function(){var m=this.ptr;return!!cp(m)},Jt.prototype.getCode=Jt.prototype.getCode=function(){var m=this.ptr;return bi(m)},Jt.prototype.getName=Jt.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(lp(k,m))},Jt.prototype.getType=Jt.prototype.getType=function(){var m=this.ptr;return up(m)},Wn.prototype=Object.create(mt.prototype),Wn.prototype.constructor=Wn,Wn.prototype.__class__=Wn,Wn.__cache__={},a.PeGTlistExtended=Wn,Wn.prototype.getGTlist=Wn.prototype.getGTlist=function(m,k,Z,se,ue,Pe){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),fr(dp(m,k,Z,se,ue,Pe),Mn)},Wn.prototype.get_PE_GTLIST_OPTS_COMMON=Wn.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var m=this.ptr;return jl(m)},Object.defineProperty(Wn.prototype,"PE_GTLIST_OPTS_COMMON",{get:Wn.prototype.get_PE_GTLIST_OPTS_COMMON}),Mn.prototype=Object.create(mt.prototype),Mn.prototype.constructor=Mn,Mn.prototype.__class__=Mn,Mn.__cache__={},a.PeGTlistExtendedEntry=Mn,Mn.prototype.getEntries=Mn.prototype.getEntries=function(){var m=this.ptr;return fr(ql(m),ri)},Mn.prototype.getSteps=Mn.prototype.getSteps=function(){var m=this.ptr;return Pr(m)},Mn.prototype.Delete=Mn.prototype.Delete=function(m){m&&typeof m=="object"&&(m=m.ptr),pp(m)},ri.prototype=Object.create(mt.prototype),ri.prototype.constructor=ri,ri.prototype.__class__=ri,ri.__cache__={},a.PeGTlistExtendedGTs=ri,ri.prototype.getDirection=ri.prototype.getDirection=function(){var m=this.ptr;return fp(m)},ri.prototype.getGeogtran=ri.prototype.getGeogtran=function(){var m=this.ptr;return fr(mp(m),Jt)},xr.prototype=Object.create(mt.prototype),xr.prototype.constructor=xr,xr.prototype.__class__=xr,xr.__cache__={},a.PeHorizon=xr,xr.prototype.getNump=xr.prototype.getNump=function(){var m=this.ptr;return hp(m)},xr.prototype.getKind=xr.prototype.getKind=function(){var m=this.ptr;return gp(m)},xr.prototype.getInclusive=xr.prototype.getInclusive=function(){var m=this.ptr;return Hl(m)},xr.prototype.getSize=xr.prototype.getSize=function(){var m=this.ptr;return wp(m)},xr.prototype.getCoord=xr.prototype.getCoord=function(){var m=this.ptr;return Zl(m)},Wr.prototype=Object.create(mt.prototype),Wr.prototype.constructor=Wr,Wr.prototype.__class__=Wr,Wr.__cache__={},a.PeInteger=Wr,Wr.prototype.get_val=Wr.prototype.get_val=function(){var m=this.ptr;return zs(m)},Wr.prototype.set_val=Wr.prototype.set_val=function(m){var k=this.ptr;m&&typeof m=="object"&&(m=m.ptr),zi(k,m)},Object.defineProperty(Wr.prototype,"val",{get:Wr.prototype.get_val,set:Wr.prototype.set_val}),Wr.prototype.__destroy__=Wr.prototype.__destroy__=function(){var m=this.ptr;Ws(m)},gn.prototype=Object.create(mt.prototype),gn.prototype.constructor=gn,gn.prototype.__class__=gn,gn.__cache__={},a.PeLineType=gn,gn.prototype.geodetic_distance=gn.prototype.geodetic_distance=function(m,k,Z,se,ue,Pe,ze,De,lt,An){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),ze&&typeof ze=="object"&&(ze=ze.ptr),De&&typeof De=="object"&&(De=De.ptr),lt&&typeof lt=="object"&&(lt=lt.ptr),An&&typeof An=="object"&&(An=An.ptr),yp(m,k,Z,se,ue,Pe,ze,De,lt,An)},gn.prototype.geodetic_coordinate=gn.prototype.geodetic_coordinate=function(m,k,Z,se,ue,Pe,ze,De,lt){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),ze&&typeof ze=="object"&&(ze=ze.ptr),De&&typeof De=="object"&&(De=De.ptr),lt&&typeof lt=="object"&&(lt=lt.ptr),Jl(m,k,Z,se,ue,Pe,ze,De,lt)},gn.prototype.geodesic_coordinate=gn.prototype.geodesic_coordinate=function(m,k,Z,se,ue,Pe,ze,De){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),ze&&typeof ze=="object"&&(ze=ze.ptr),De&&typeof De=="object"&&(De=De.ptr),Xl(m,k,Z,se,ue,Pe,ze,De)},gn.prototype.great_elliptic_distance=gn.prototype.great_elliptic_distance=function(m,k,Z,se,ue,Pe,ze,De,lt){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),ze&&typeof ze=="object"&&(ze=ze.ptr),De&&typeof De=="object"&&(De=De.ptr),lt&&typeof lt=="object"&&(lt=lt.ptr),Ql(m,k,Z,se,ue,Pe,ze,De,lt)},Br.prototype=Object.create(mt.prototype),Br.prototype.constructor=Br,Br.prototype.__class__=Br,Br.__cache__={},a.PeMath=Br,Br.prototype.phi_to_eta=Br.prototype.phi_to_eta=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),ss(m,k)},Br.prototype.eta_to_phi=Br.prototype.eta_to_phi=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),bp(m,k)},Br.prototype.phi_to_phig=Br.prototype.phi_to_phig=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),vp(m,k)},Br.prototype.q=Br.prototype.q=function(m,k,Z){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),_p(m,k,Z)},Br.prototype.q90=Br.prototype.q90=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),xp(m,k)},kt.prototype=Object.create(mt.prototype),kt.prototype.constructor=kt,kt.prototype.__class__=kt,kt.__cache__={},a.PeNotationMgrs=kt,kt.prototype.get_PE_MGRS_STYLE_NEW=kt.prototype.get_PE_MGRS_STYLE_NEW=function(){var m=this.ptr;return Sp(m)},Object.defineProperty(kt.prototype,"PE_MGRS_STYLE_NEW",{get:kt.prototype.get_PE_MGRS_STYLE_NEW}),kt.prototype.get_PE_MGRS_STYLE_OLD=kt.prototype.get_PE_MGRS_STYLE_OLD=function(){var m=this.ptr;return Ep(m)},Object.defineProperty(kt.prototype,"PE_MGRS_STYLE_OLD",{get:kt.prototype.get_PE_MGRS_STYLE_OLD}),kt.prototype.get_PE_MGRS_STYLE_AUTO=kt.prototype.get_PE_MGRS_STYLE_AUTO=function(){var m=this.ptr;return Va(m)},Object.defineProperty(kt.prototype,"PE_MGRS_STYLE_AUTO",{get:kt.prototype.get_PE_MGRS_STYLE_AUTO}),kt.prototype.get_PE_MGRS_180_ZONE_1_PLUS=kt.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var m=this.ptr;return Cp(m)},Object.defineProperty(kt.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:kt.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),kt.prototype.get_PE_MGRS_ADD_SPACES=kt.prototype.get_PE_MGRS_ADD_SPACES=function(){var m=this.ptr;return Bs(m)},Object.defineProperty(kt.prototype,"PE_MGRS_ADD_SPACES",{get:kt.prototype.get_PE_MGRS_ADD_SPACES}),nr.prototype=Object.create(mt.prototype),nr.prototype.constructor=nr,nr.prototype.__class__=nr,nr.__cache__={},a.PeNotationUtm=nr,nr.prototype.get_PE_UTM_OPTS_NONE=nr.prototype.get_PE_UTM_OPTS_NONE=function(){var m=this.ptr;return Tp(m)},Object.defineProperty(nr.prototype,"PE_UTM_OPTS_NONE",{get:nr.prototype.get_PE_UTM_OPTS_NONE}),nr.prototype.get_PE_UTM_OPTS_NS=nr.prototype.get_PE_UTM_OPTS_NS=function(){var m=this.ptr;return Ua(m)},Object.defineProperty(nr.prototype,"PE_UTM_OPTS_NS",{get:nr.prototype.get_PE_UTM_OPTS_NS}),nr.prototype.get_PE_UTM_OPTS_NS_STRICT=nr.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var m=this.ptr;return Pp(m)},Object.defineProperty(nr.prototype,"PE_UTM_OPTS_NS_STRICT",{get:nr.prototype.get_PE_UTM_OPTS_NS_STRICT}),nr.prototype.get_PE_UTM_OPTS_ADD_SPACES=nr.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var m=this.ptr;return Mp(m)},Object.defineProperty(nr.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:nr.prototype.get_PE_UTM_OPTS_ADD_SPACES}),wn.prototype=Object.create(rr.prototype),wn.prototype.constructor=wn,wn.prototype.__class__=wn,wn.__cache__={},a.PeParameter=wn,wn.prototype.getValue=wn.prototype.getValue=function(){var m=this.ptr;return Kl(m)},wn.prototype.getCode=wn.prototype.getCode=function(){var m=this.ptr;return as(m)},wn.prototype.getName=wn.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(vi(k,m))},wn.prototype.getType=wn.prototype.getType=function(){var m=this.ptr;return eu(m)},Ze.prototype=Object.create(mt.prototype),Ze.prototype.constructor=Ze,Ze.prototype.__class__=Ze,Ze.__cache__={},a.PePCSInfo=Ze,Ze.prototype.getCentralMeridian=Ze.prototype.getCentralMeridian=function(){var m=this.ptr;return za(m)},Ze.prototype.getDomainMinx=Ze.prototype.getDomainMinx=function(){var m=this.ptr;return Ap(m)},Ze.prototype.getDomainMiny=Ze.prototype.getDomainMiny=function(){var m=this.ptr;return Ip(m)},Ze.prototype.getDomainMaxx=Ze.prototype.getDomainMaxx=function(){var m=this.ptr;return Lp(m)},Ze.prototype.getDomainMaxy=Ze.prototype.getDomainMaxy=function(){var m=this.ptr;return kp(m)},Ze.prototype.getNorthPoleLocation=Ze.prototype.getNorthPoleLocation=function(){var m=this.ptr;return Np(m)},Ze.prototype.getNorthPoleGeometry=Ze.prototype.getNorthPoleGeometry=function(){var m=this.ptr;return Op(m)},Ze.prototype.getSouthPoleLocation=Ze.prototype.getSouthPoleLocation=function(){var m=this.ptr;return Rp(m)},Ze.prototype.getSouthPoleGeometry=Ze.prototype.getSouthPoleGeometry=function(){var m=this.ptr;return Dp(m)},Ze.prototype.isDensificationNeeded=Ze.prototype.isDensificationNeeded=function(){var m=this.ptr;return!!Fp(m)},Ze.prototype.isGcsHorizonMultiOverlap=Ze.prototype.isGcsHorizonMultiOverlap=function(){var m=this.ptr;return!!$p(m)},Ze.prototype.isPannableRectangle=Ze.prototype.isPannableRectangle=function(){var m=this.ptr;return!!f(m)},Ze.prototype.generate=Ze.prototype.generate=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),fr(p(m,k),Ze)},Ze.prototype.get_PE_PCSINFO_OPTION_NONE=Ze.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var m=this.ptr;return w(m)},Object.defineProperty(Ze.prototype,"PE_PCSINFO_OPTION_NONE",{get:Ze.prototype.get_PE_PCSINFO_OPTION_NONE}),Ze.prototype.get_PE_PCSINFO_OPTION_DOMAIN=Ze.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var m=this.ptr;return _(m)},Object.defineProperty(Ze.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:Ze.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),Ze.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=Ze.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var m=this.ptr;return C(m)},Object.defineProperty(Ze.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:Ze.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),Ze.prototype.get_PE_POLE_POINT=Ze.prototype.get_PE_POLE_POINT=function(){var m=this.ptr;return T(m)},Object.defineProperty(Ze.prototype,"PE_POLE_POINT",{get:Ze.prototype.get_PE_POLE_POINT}),rn.prototype=Object.create(rr.prototype),rn.prototype.constructor=rn,rn.prototype.__class__=rn,rn.__cache__={},a.PePrimem=rn,rn.prototype.getLongitude=rn.prototype.getLongitude=function(){var m=this.ptr;return I(m)},rn.prototype.getCode=rn.prototype.getCode=function(){var m=this.ptr;return N(m)},rn.prototype.getName=rn.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(D(k,m))},rn.prototype.getType=rn.prototype.getType=function(){var m=this.ptr;return B(m)},vt.prototype=Object.create(Vr.prototype),vt.prototype.constructor=vt,vt.prototype.__class__=vt,vt.__cache__={},a.PeProjcs=vt,vt.prototype.Delete=vt.prototype.Delete=function(){var m=this.ptr;$(m)},vt.prototype.getGeogcs=vt.prototype.getGeogcs=function(){var m=this.ptr;return fr(Q(m),Ct)},vt.prototype.getProjection=vt.prototype.getProjection=function(){var m=this.ptr;return fr(ae(m),rr)},vt.prototype.getParameters=vt.prototype.getParameters=function(){var m=this.ptr;return ge(m)},vt.prototype.getUnit=vt.prototype.getUnit=function(){var m=this.ptr;return fr(he(m),Ur)},vt.prototype.loadConstants=vt.prototype.loadConstants=function(){var m=this.ptr;return!!be(m)},vt.prototype.horizonGcsGenerate=vt.prototype.horizonGcsGenerate=function(){var m=this.ptr;return fr(Oe(m),xr)},vt.prototype.horizonPcsGenerate=vt.prototype.horizonPcsGenerate=function(){var m=this.ptr;return fr(Ie(m),xr)},vt.prototype.isEqual=vt.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Ue(k,m)},vt.prototype.getCode=vt.prototype.getCode=function(){var m=this.ptr;return et(m)},vt.prototype.getName=vt.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(st(k,m))},vt.prototype.getType=vt.prototype.getType=function(){var m=this.ptr;return je(m)},Ir.prototype=Object.create(rr.prototype),Ir.prototype.constructor=Ir,Ir.prototype.__class__=Ir,Ir.__cache__={},a.PeSpheroid=Ir,Ir.prototype.getAxis=Ir.prototype.getAxis=function(){var m=this.ptr;return tt(m)},Ir.prototype.getFlattening=Ir.prototype.getFlattening=function(){var m=this.ptr;return Mr(m)},Ir.prototype.getCode=Ir.prototype.getCode=function(){var m=this.ptr;return Lt(m)},Ir.prototype.getName=Ir.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(Kr(k,m))},Ir.prototype.getType=Ir.prototype.getType=function(){var m=this.ptr;return Pn(m)},go.prototype=Object.create(mt.prototype),go.prototype.constructor=go,go.prototype.__class__=go,go.__cache__={},a.PeVersion=go,go.prototype.version_string=go.prototype.version_string=function(){var m=this.ptr;return Tr(zn(m))},a.ensureCache=Je,a.ensureString=Fm,a.ensureInt8=ti,a.ensureInt16=B2,a.ensureInt32=G2,a.ensureFloat32=j2,a.ensureFloat64=q2,d},e.exports=r),ZD.exports;var e,t,r}var HD,ZD,XQ,QQ,JD=R(()=>{GD();ZD={exports:{}};XQ=BD(JQ()),QQ=Object.freeze(Object.defineProperty({__proto__:null,default:XQ},Symbol.toStringTag,{value:"Module"}))});function XD(){return!!q}function KQ(){return!!me("esri-wasm")}function QD(){return i3||(i3=Promise.resolve().then(()=>(JD(),YD)).then(e=>e.p).then(({default:e})=>e({locateFile:t=>Kf(`esri/geometry/support/${t}`)})).then(e=>{tF(e)}),i3)}function tF(e){function t(o,s,c){o[s]=c(o[s])}q=e,Qt.init(),l2.init(),u2.init(),d2.init(),p2.init(),KD=class extends q.PeDouble{constructor(o=NaN){super(o)}destroy(){q.destroy(this)}[Symbol.dispose](){this.destroy()}},eF=class extends q.PeGCSExtent{destroy(){q.destroy(this)}[Symbol.dispose](){this.destroy()}};let r=[q.PeAngunit,q.PeDatum,q.PeGeogcs,q.PeGeogtran,q.PeObject,q.PeParameter,q.PePrimem,q.PeProjcs,q.PeSpheroid,q.PeUnit];for(let o of r)t(o.prototype,"getName",s=>function(){return s.call(this,new Array(Qt.PE_NAME_MAX))});for(let o of[q.PeGeogtran,q.PeProjcs])t(o.prototype,"getParameters",s=>function(){let c=new Array(Qt.PE_PARM_MAX),a=s.call(this);for(let d=0;d<c.length;d++){let h=q.getValue(a,"*");c[d]=h?q.wrapPointer(h,q.PeParameter):null,a+=Int32Array.BYTES_PER_ELEMENT}return c});t(q.PeHorizon.prototype,"getCoord",o=>function(s=!1){let c=this.getSize();if(!c)return null;let a=[];return rl(a,c,o.call(this),s),a}),t(q.PeGTlistExtendedEntry.prototype,"getEntries",o=>{let s=q._pe_getPeGTlistExtendedGTsSize();return function(){let c=null,a=o.call(this);if(!q.compare(a,q.NULL)){c=[a];let d=this.getSteps();if(d>1){let h=q.getPointer(a);for(let g=1;g<d;g++)c.push(q.wrapPointer(h+s*g,q.PeGTlistExtendedGTs))}}return c}});let n=q._pe_getPeHorizonSize(),i=o=>function(){let s=this._cache;if(s||(s=new Map,this._cache=s),s.has(o))return s.get(o);let c=null,a=o.call(this);if(!q.compare(a,q.NULL)){c=[a];let d=a.getNump();if(d>1){let h=q.getPointer(a);for(let g=1;g<d;g++)c.push(q.wrapPointer(h+n*g,q.PeHorizon))}}return s.set(o,c),c};t(q.PeProjcs.prototype,"horizonGcsGenerate",i),t(q.PeProjcs.prototype,"horizonPcsGenerate",i),q.PeObject.prototype.toString=function(o=Qt.PE_STR_OPTS_NONE){q.ensureCache.prepare();let s=q.getPointer(this),c=q.ensureInt8(new Array(Qt.PE_BUFFER_MAX));return q.UTF8ToString(q._pe_object_to_string_ext(s,o,c))},q.PeGeogcs.prototype.destroy=function(){this.Delete(),Ho(this),this.ptr=0},q.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},q.PeProjcs.prototype.destroy=function(){this.Delete(),Ho(this),this.ptr=0},q.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function Ho(e){if(!e)return;let t=q.getClass(e);if(!t)return;let r=q.getCache(t);if(!r)return;let n=q.getPointer(e);n&&delete r[n]}function a2(e,t){let r=[],n=new Array(t);for(let i=0;i<e;i++)r.push(q.ensureInt8(n));return r}function ld(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function rl(e,t,r,n=!1){if(n)for(let i=0;i<2*t;i++)e[i]=q.getValue(r+i*Float64Array.BYTES_PER_ELEMENT,"double");else{let i=e.length===0;for(let o=0;o<t;o++)i&&(e[o]=new Array(2)),e[o][0]=q.getValue(r,"double"),e[o][1]=q.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}var i3,q,o3,Qt,KD,c2,eF,l2,s3,a3,c3,l3,u3,u2,d3,d2,p2,p3,P5e,rF=R(()=>{ob();rt();q=null;(function(e){function t(o,s,c){q.ensureCache.prepare();let a=ld(c),d=c===a,h=q.ensureFloat64(a),g=q._pe_geog_to_proj(q.getPointer(o),s,h);return g&&rl(c,s,h,d),g}function r(o,s,c,a){switch(a){case Qt.PE_TRANSFORM_P_TO_G:return n(o,s,c);case Qt.PE_TRANSFORM_G_TO_P:return t(o,s,c)}return 0}function n(o,s,c){return i(o,s,c,0)}function i(o,s,c,a){q.ensureCache.prepare();let d=ld(c),h=c===d,g=q.ensureFloat64(d),v=q._pe_proj_to_geog_center(q.getPointer(o),s,g,a);return v&&rl(c,s,g,h),v}e.geogToProj=t,e.projGeog=r,e.projToGeog=n,e.projToGeogCenter=i})(o3||(o3={})),function(e){function t(){e.PE_BUFFER_MAX=q.PeDefs.prototype.PE_BUFFER_MAX,e.PE_NAME_MAX=q.PeDefs.prototype.PE_NAME_MAX,e.PE_MGRS_MAX=q.PeDefs.prototype.PE_MGRS_MAX,e.PE_USNG_MAX=q.PeDefs.prototype.PE_USNG_MAX,e.PE_DD_MAX=q.PeDefs.prototype.PE_DD_MAX,e.PE_DDM_MAX=q.PeDefs.prototype.PE_DDM_MAX,e.PE_DMS_MAX=q.PeDefs.prototype.PE_DMS_MAX,e.PE_UTM_MAX=q.PeDefs.prototype.PE_UTM_MAX,e.PE_PARM_MAX=q.PeDefs.prototype.PE_PARM_MAX,e.PE_TYPE_NONE=q.PeDefs.prototype.PE_TYPE_NONE,e.PE_TYPE_GEOGCS=q.PeDefs.prototype.PE_TYPE_GEOGCS,e.PE_TYPE_PROJCS=q.PeDefs.prototype.PE_TYPE_PROJCS,e.PE_TYPE_GEOGTRAN=q.PeDefs.prototype.PE_TYPE_GEOGTRAN,e.PE_TYPE_COORDSYS=q.PeDefs.prototype.PE_TYPE_COORDSYS,e.PE_TYPE_UNIT=q.PeDefs.prototype.PE_TYPE_UNIT,e.PE_TYPE_LINUNIT=q.PeDefs.prototype.PE_TYPE_LINUNIT,e.PE_STR_OPTS_NONE=q.PeDefs.prototype.PE_STR_OPTS_NONE,e.PE_STR_AUTH_NONE=q.PeDefs.prototype.PE_STR_AUTH_NONE,e.PE_STR_AUTH_TOP=q.PeDefs.prototype.PE_STR_AUTH_TOP,e.PE_STR_NAME_CANON=q.PeDefs.prototype.PE_STR_NAME_CANON,e.PE_STR_FMT_WKT=q.PeDefs.prototype.PE_STR_FMT_WKT,e.PE_STR_FMT_WKT2=q.PeDefs.prototype.PE_STR_FMT_WKT2,e.PE_PARM_X0=q.PeDefs.prototype.PE_PARM_X0,e.PE_PARM_ND=q.PeDefs.prototype.PE_PARM_ND,e.PE_TRANSFORM_1_TO_2=q.PeDefs.prototype.PE_TRANSFORM_1_TO_2,e.PE_TRANSFORM_2_TO_1=q.PeDefs.prototype.PE_TRANSFORM_2_TO_1,e.PE_TRANSFORM_P_TO_G=q.PeDefs.prototype.PE_TRANSFORM_P_TO_G,e.PE_TRANSFORM_G_TO_P=q.PeDefs.prototype.PE_TRANSFORM_G_TO_P,e.PE_HORIZON_RECT=q.PeDefs.prototype.PE_HORIZON_RECT,e.PE_HORIZON_POLY=q.PeDefs.prototype.PE_HORIZON_POLY,e.PE_HORIZON_LINE=q.PeDefs.prototype.PE_HORIZON_LINE,e.PE_HORIZON_DELTA=q.PeDefs.prototype.PE_HORIZON_DELTA}e.init=t}(Qt||(Qt={}));KD=null;(function(e){let t={},r={},n=E=>{let P=E.getType();switch(P){case Qt.PE_TYPE_GEOGCS:E=q.castObject(E,q.PeGeogcs);break;case Qt.PE_TYPE_PROJCS:E=q.castObject(E,q.PeProjcs);break;case Qt.PE_TYPE_GEOGTRAN:E=q.castObject(E,q.PeGeogtran);break;default:P&Qt.PE_TYPE_UNIT&&(E=q.castObject(E,q.PeUnit))}return E};function i(){q.PeFactory.prototype.initialize(null)}function o(E){return s(Qt.PE_TYPE_COORDSYS,E)}function s(E,P){let A=null,F=t[E];if(F||(F={},t[E]=F),F.hasOwnProperty(String(P))&&(A=F[P],q.compare(A,q.NULL)&&(A=null)),!A){let W=q.PeFactory.prototype.factoryByType(E,P);q.compare(W,q.NULL)||(A=n(W),F[P]=A)}return A}function c(E,P){let A=null,F=r[E];if(F||(F={},r[E]=F),F.hasOwnProperty(P)&&(A=F[P],q.compare(A,q.NULL)&&(A=null)),!A){let W=q.PeFactory.prototype.fromString(E,P);q.compare(W,q.NULL)||(A=n(W),F[P]=A)}return A}function a(E){return s(Qt.PE_TYPE_GEOGCS,E)}function d(E){return s(Qt.PE_TYPE_GEOGTRAN,E)}function h(E){return q.PeFactory.prototype.getCode(E)}function g(E){return s(Qt.PE_TYPE_PROJCS,E)}function v(E){return s(Qt.PE_TYPE_UNIT,E)}e.initialize=i,e.coordsys=o,e.factoryByType=s,e.fromString=c,e.geogcs=a,e.geogtran=d,e.getCode=h,e.projcs=g,e.unit=v})(c2||(c2={}));eF=null;(function(e){let t;function r(){e.PE_GTLIST_OPTS_COMMON=q.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=q._pe_getPeGTlistExtendedEntrySize()}function n(i,o,s,c,a,d){let h=null,g=new q.PeInteger(d);try{let v=q.PeGTlistExtended.prototype.getGTlist(i,o,s,c,a,g);if((d=g.val)&&(h=[v],d>1)){let E=q.getPointer(v);for(let P=1;P<d;P++)h.push(q.wrapPointer(E+t*P,q.PeGTlistExtendedEntry))}}finally{q.destroy(g)}return h}e.init=r,e.getGTlist=n})(l2||(l2={})),function(e){function t(r){if(r?.length){for(let n of r)Ho(n),n.getEntries().forEach(i=>{Ho(i);let o=i.getGeogtran();Ho(o),o.getParameters().forEach(Ho),[o.getGeogcs1(),o.getGeogcs2()].forEach(s=>{Ho(s);let c=s.getDatum();Ho(c),Ho(c.getSpheroid()),Ho(s.getPrimem()),Ho(s.getUnit())})});q.PeGTlistExtendedEntry.prototype.Delete(r[0])}}e.destroy=t}(s3||(s3={})),function(e){function t(r,n,i,o,s){q.ensureCache.prepare();let c=ld(i),a=i===c,d=q.ensureFloat64(c),h=0;o&&(h=q.ensureFloat64(o));let g=q._pe_geog_to_geog(q.getPointer(r),n,d,h,s);return g&&rl(i,n,d,a),g}e.geogToGeog=t}(a3||(a3={})),function(e){function t(o,s,c,a,d,h,g,v){q.PeLineType.prototype.geodesic_coordinate(o,s,c,a,d,h,g,v)}function r(o,s,c,a,d,h,g,v,E){q.PeLineType.prototype.geodetic_coordinate(o,s,c,a,d,h,g,v,E)}function n(o,s,c,a,d,h,g,v,E,P){q.PeLineType.prototype.geodetic_distance(o,s,c,a,d,h,g,v,E,P)}function i(o,s,c,a,d,h,g,v,E){q.PeLineType.prototype.great_elliptic_distance(o,s,c,a,d,h,g,v,E)}e.geodesicCoordinate=t,e.geodeticCoordinate=r,e.geodeticDistance=n,e.greatEllipticDistance=i}(c3||(c3={})),function(e){function t(s,c){return q.PeMath.prototype.phi_to_eta(s,c)}function r(s,c){return q.PeMath.prototype.eta_to_phi(s,c)}function n(s,c){return q.PeMath.prototype.phi_to_phig(s,c)}function i(s,c,a){return q.PeMath.prototype.q(s,c,a)}function o(s,c){return q.PeMath.prototype.q90(s,c)}e.phiToEta=t,e.etaToPhi=r,e.phiToPhig=n,e.q=i,e.q90=o}(l3||(l3={})),function(e){let t=(d,h,g,v,E,P)=>{let A,F;switch(q.ensureCache.prepare(),d){case"dd":A=q._pe_geog_to_dd,F=Qt.PE_DD_MAX;break;case"ddm":A=q._pe_geog_to_ddm,F=Qt.PE_DDM_MAX;break;case"dms":A=q._pe_geog_to_dms,F=Qt.PE_DMS_MAX}let W=0;h&&(W=q.getPointer(h));let z=ld(v),j=q.ensureFloat64(z),G=a2(g,F),Y=A(W,g,j,E,q.ensureInt32(G));if(Y)for(let ie=0;ie<g;ie++)P[ie]=q.UTF8ToString(G[ie]);return Y},r=(d,h,g,v,E)=>{let P;switch(q.ensureCache.prepare(),d){case"dd":P=q._pe_dd_to_geog;break;case"ddm":P=q._pe_ddm_to_geog;break;case"dms":P=q._pe_dms_to_geog}let A=0;h&&(A=q.getPointer(h));let F=v.map(G=>q.ensureString(G)),W=q.ensureInt32(F),z=q.ensureFloat64(new Array(2*g)),j=P(A,g,W,z);return j&&rl(E,g,z),j};function n(d,h,g,v,E){return t("dms",d,h,g,v,E)}function i(d,h,g,v){return r("dms",d,h,g,v)}function o(d,h,g,v,E){return t("ddm",d,h,g,v,E)}function s(d,h,g,v){return r("ddm",d,h,g,v)}function c(d,h,g,v,E){return t("dd",d,h,g,v,E)}function a(d,h,g,v){return r("dd",d,h,g,v)}e.geogToDms=n,e.dmsToGeog=i,e.geogToDdm=o,e.ddmToGeog=s,e.geogToDd=c,e.ddToGeog=a}(u3||(u3={})),function(e){function t(){e.PE_MGRS_STYLE_NEW=q.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=q.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=q.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=q.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=q.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}function r(i,o,s,c,a,d,h){q.ensureCache.prepare();let g=0;i&&(g=q.getPointer(i));let v=ld(s),E=q.ensureFloat64(v),P=a2(o,Qt.PE_MGRS_MAX),A=q.ensureInt32(P),F=q._pe_geog_to_mgrs_extended(g,o,E,c,a,d,A);if(F)for(let W=0;W<o;W++)h[W]=q.UTF8ToString(P[W]);return F}function n(i,o,s,c,a){q.ensureCache.prepare();let d=0;i&&(d=q.getPointer(i));let h=s.map(P=>q.ensureString(P)),g=q.ensureInt32(h),v=q.ensureFloat64(new Array(2*o)),E=q._pe_mgrs_to_geog_extended(d,o,g,c,v);return E&&rl(a,o,v),E}e.init=t,e.geogToMgrsExtended=r,e.mgrsToGeogExtended=n}(u2||(u2={})),function(e){function t(n,i,o,s,c,a,d){q.ensureCache.prepare();let h=0;n&&(h=q.getPointer(n));let g=ld(o),v=q.ensureFloat64(g),E=a2(i,Qt.PE_MGRS_MAX),P=q.ensureInt32(E),A=q._pe_geog_to_usng(h,i,v,s,c,a,P);if(A)for(let F=0;F<i;F++)d[F]=q.UTF8ToString(E[F]);return A}function r(n,i,o,s){q.ensureCache.prepare();let c=0;n&&(c=q.getPointer(n));let a=o.map(v=>q.ensureString(v)),d=q.ensureInt32(a),h=q.ensureFloat64(new Array(2*i)),g=q._pe_usng_to_geog(c,i,d,h);return g&&rl(s,i,h),g}e.geogToUsng=t,e.usngToGeog=r}(d3||(d3={})),function(e){function t(){e.PE_UTM_OPTS_NONE=q.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=q.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=q.PeNotationUtm.prototype.PE_UTM_OPTS_NS}function r(i,o,s,c,a){q.ensureCache.prepare();let d=0;i&&(d=q.getPointer(i));let h=ld(s),g=q.ensureFloat64(h),v=a2(o,Qt.PE_UTM_MAX),E=q.ensureInt32(v),P=q._pe_geog_to_utm(d,o,g,c,E);if(P)for(let A=0;A<o;A++)a[A]=q.UTF8ToString(v[A]);return P}function n(i,o,s,c,a){q.ensureCache.prepare();let d=0;i&&(d=q.getPointer(i));let h=s.map(P=>q.ensureString(P)),g=q.ensureInt32(h),v=q.ensureFloat64(new Array(2*o)),E=q._pe_utm_to_geog(d,o,g,c,v);return E&&rl(a,o,v),E}e.init=t,e.geogToUtm=r,e.utmToGeog=n}(d2||(d2={})),function(e){let t=new Map;function r(){e.PE_PCSINFO_OPTION_NONE=q.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=q.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=q.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=q.PePCSInfo.prototype.PE_POLE_POINT}function n(i,o=e.PE_PCSINFO_OPTION_DOMAIN){let s=null,c=null;return t.has(i)&&(c=t.get(i),c[o]&&(s=c[o])),s||(s=q.PePCSInfo.prototype.generate(i,o),c||(c=[],t.set(i,c)),c[o]=s),s}e.init=r,e.generate=n}(p2||(p2={})),function(e){function t(){return q.PeVersion.prototype.version_string()}e.versionString=t}(p3||(p3={}));P5e=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return o3},get PeDefs(){return Qt},get PeDouble(){return KD},get PeFactory(){return c2},get PeGCSExtent(){return eF},get PeGTTransformations(){return a3},get PeGTlistExtended(){return l2},get PeGTlistExtendedEntry(){return s3},get PeLineType(){return c3},get PeMath(){return l3},get PeNotationDms(){return u3},get PeNotationMgrs(){return u2},get PeNotationUsng(){return d3},get PeNotationUtm(){return d2},get PePCSInfo(){return p2},get PeVersion(){return p3},_init:tF,get _pe(){return q},isLoaded:XD,isSupported:KQ,load:QD},Symbol.toStringTag,{value:"Module"}))});var Em,nF=R(()=>{(function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"})(Em||(Em={}))});var l,M,f3=R(()=>{M={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,10477:0,10481:2,10516:2,10592:0,10594:0,10596:0,10598:0,10601:0,10603:0,10626:0,10632:0,10665:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1,103978:2,103979:0,103980:2,103981:0};for(l=2e3;l<=2045;l++)M[l]=0;for(l=2056;l<=2065;l++)M[l]=0;for(l=2067;l<=2135;l++)M[l]=0;for(l=2137;l<=2154;l++)M[l]=0;for(l=2161;l<=2170;l++)M[l]=0;for(l=2172;l<=2193;l++)M[l]=0;for(l=2195;l<=2198;l++)M[l]=0;for(l=2200;l<=2203;l++)M[l]=0;for(l=2205;l<=2217;l++)M[l]=0;for(l=2222;l<=2224;l++)M[l]=1;for(l=2225;l<=2250;l++)M[l]=2;for(l=2251;l<=2253;l++)M[l]=1;for(l=2257;l<=2264;l++)M[l]=2;for(l=2274;l<=2279;l++)M[l]=2;for(l=2280;l<=2282;l++)M[l]=1;for(l=2283;l<=2289;l++)M[l]=2;for(l=2290;l<=2292;l++)M[l]=0;for(l=2308;l<=2313;l++)M[l]=0;for(l=2315;l<=2491;l++)M[l]=0;for(l=2494;l<=2866;l++)M[l]=0;for(l=2867;l<=2869;l++)M[l]=1;for(l=2870;l<=2888;l++)M[l]=2;for(l=2891;l<=2895;l++)M[l]=2;for(l=2896;l<=2898;l++)M[l]=1;for(l=2902;l<=2908;l++)M[l]=2;for(l=2915;l<=2920;l++)M[l]=2;for(l=2921;l<=2923;l++)M[l]=1;for(l=2924;l<=2930;l++)M[l]=2;for(l=2931;l<=2962;l++)M[l]=0;for(l=2964;l<=2968;l++)M[l]=2;for(l=2969;l<=2973;l++)M[l]=0;for(l=2975;l<=2991;l++)M[l]=0;for(l=2995;l<=3051;l++)M[l]=0;for(l=3054;l<=3079;l++)M[l]=0;for(l=3081;l<=3088;l++)M[l]=0;for(l=3092;l<=3101;l++)M[l]=0;for(l=3106;l<=3138;l++)M[l]=0;for(l=3146;l<=3151;l++)M[l]=0;for(l=3153;l<=3166;l++)M[l]=0;for(l=3168;l<=3172;l++)M[l]=0;for(l=3174;l<=3203;l++)M[l]=0;for(l=3294;l<=3358;l++)M[l]=0;for(l=3367;l<=3403;l++)M[l]=0;for(l=3408;l<=3416;l++)M[l]=0;for(l=3417;l<=3438;l++)M[l]=2;for(l=3441;l<=3446;l++)M[l]=2;for(l=3447;l<=3450;l++)M[l]=0;for(l=3451;l<=3459;l++)M[l]=2;for(l=3460;l<=3478;l++)M[l]=0;for(l=3554;l<=3559;l++)M[l]=0;for(l=3560;l<=3570;l++)M[l]=2;for(l=3571;l<=3581;l++)M[l]=0;for(l=3594;l<=3597;l++)M[l]=0;for(l=3601;l<=3604;l++)M[l]=0;for(l=3637;l<=3639;l++)M[l]=0;for(l=3665;l<=3667;l++)M[l]=0;for(l=3693;l<=3695;l++)M[l]=0;for(l=3701;l<=3727;l++)M[l]=0;for(l=3728;l<=3739;l++)M[l]=2;for(l=3740;l<=3751;l++)M[l]=0;for(l=3753;l<=3760;l++)M[l]=2;for(l=3761;l<=3773;l++)M[l]=0;for(l=3775;l<=3777;l++)M[l]=0;for(l=3779;l<=3781;l++)M[l]=0;for(l=3783;l<=3785;l++)M[l]=0;for(l=3788;l<=3791;l++)M[l]=0;for(l=3797;l<=3802;l++)M[l]=0;for(l=3814;l<=3816;l++)M[l]=0;for(l=3825;l<=3829;l++)M[l]=0;for(l=3832;l<=3841;l++)M[l]=0;for(l=3844;l<=3852;l++)M[l]=0;for(l=3873;l<=3885;l++)M[l]=0;for(l=3890;l<=3893;l++)M[l]=0;for(l=3907;l<=3912;l++)M[l]=0;for(l=3942;l<=3950;l++)M[l]=0;for(l=3968;l<=3970;l++)M[l]=0;for(l=3973;l<=3976;l++)M[l]=0;for(l=3986;l<=3989;l++)M[l]=0;for(l=3994;l<=3997;l++)M[l]=0;for(l=4048;l<=4051;l++)M[l]=0;for(l=4056;l<=4063;l++)M[l]=0;for(l=4093;l<=4096;l++)M[l]=0;for(l=4390;l<=4398;l++)M[l]=0;for(l=4399;l<=4413;l++)M[l]=2;for(l=4418;l<=4433;l++)M[l]=2;for(l=4455;l<=4457;l++)M[l]=2;for(l=4484;l<=4489;l++)M[l]=0;for(l=4491;l<=4554;l++)M[l]=0;for(l=4568;l<=4589;l++)M[l]=0;for(l=4652;l<=4656;l++)M[l]=0;for(l=4766;l<=4800;l++)M[l]=0;for(l=5014;l<=5016;l++)M[l]=0;for(l=5069;l<=5072;l++)M[l]=0;for(l=5105;l<=5130;l++)M[l]=0;for(l=5167;l<=5188;l++)M[l]=0;for(l=5253;l<=5259;l++)M[l]=0;for(l=5269;l<=5275;l++)M[l]=0;for(l=5292;l<=5311;l++)M[l]=0;for(l=5329;l<=5331;l++)M[l]=0;for(l=5343;l<=5349;l++)M[l]=0;for(l=5355;l<=5357;l++)M[l]=0;for(l=5387;l<=5389;l++)M[l]=0;for(l=5459;l<=5463;l++)M[l]=0;for(l=5479;l<=5482;l++)M[l]=0;for(l=5518;l<=5520;l++)M[l]=0;for(l=5530;l<=5539;l++)M[l]=0;for(l=5550;l<=5552;l++)M[l]=0;for(l=5562;l<=5583;l++)M[l]=0;for(l=5623;l<=5625;l++)M[l]=2;for(l=5631;l<=5639;l++)M[l]=0;for(l=5649;l<=5653;l++)M[l]=0;for(l=5663;l<=5680;l++)M[l]=0;for(l=5682;l<=5685;l++)M[l]=0;for(l=5875;l<=5877;l++)M[l]=0;for(l=5896;l<=5899;l++)M[l]=0;for(l=5921;l<=5940;l++)M[l]=0;for(l=6050;l<=6125;l++)M[l]=0;for(l=6244;l<=6275;l++)M[l]=0;for(l=6328;l<=6348;l++)M[l]=0;for(l=6350;l<=6356;l++)M[l]=0;for(l=6366;l<=6372;l++)M[l]=0;for(l=6381;l<=6387;l++)M[l]=0;for(l=6393;l<=6404;l++)M[l]=0;for(l=6480;l<=6483;l++)M[l]=0;for(l=6511;l<=6514;l++)M[l]=0;for(l=6579;l<=6581;l++)M[l]=0;for(l=6619;l<=6624;l++)M[l]=0;for(l=6625;l<=6627;l++)M[l]=2;for(l=6628;l<=6632;l++)M[l]=0;for(l=6634;l<=6637;l++)M[l]=0;for(l=6669;l<=6692;l++)M[l]=0;for(l=6707;l<=6709;l++)M[l]=0;for(l=6720;l<=6723;l++)M[l]=0;for(l=6732;l<=6738;l++)M[l]=0;for(l=6931;l<=6933;l++)M[l]=0;for(l=6956;l<=6959;l++)M[l]=0;for(l=7005;l<=7007;l++)M[l]=0;for(l=7057;l<=7070;l++)M[l]=2;for(l=7074;l<=7082;l++)M[l]=0;for(l=7109;l<=7118;l++)M[l]=0;for(l=7119;l<=7127;l++)M[l]=1;for(l=7374;l<=7376;l++)M[l]=0;for(l=7528;l<=7586;l++)M[l]=0;for(l=7587;l<=7645;l++)M[l]=2;for(l=7692;l<=7696;l++)M[l]=0;for(l=7755;l<=7787;l++)M[l]=0;for(l=7791;l<=7795;l++)M[l]=0;for(l=7799;l<=7801;l++)M[l]=0;for(l=7803;l<=7805;l++)M[l]=0;for(l=7825;l<=7831;l++)M[l]=0;for(l=7845;l<=7859;l++)M[l]=0;for(l=8013;l<=8032;l++)M[l]=0;for(l=8065;l<=8068;l++)M[l]=1;for(l=8518;l<=8529;l++)M[l]=2;for(l=8533;l<=8536;l++)M[l]=2;for(l=8538;l<=8540;l++)M[l]=2;for(l=8677;l<=8679;l++)M[l]=0;for(l=8836;l<=8840;l++)M[l]=0;for(l=8857;l<=8859;l++)M[l]=0;for(l=8908;l<=8910;l++)M[l]=0;for(l=9154;l<=9159;l++)M[l]=0;for(l=9205;l<=9218;l++)M[l]=0;for(l=9271;l<=9273;l++)M[l]=0;for(l=9295;l<=9297;l++)M[l]=0;for(l=9356;l<=9360;l++)M[l]=0;for(l=9404;l<=9407;l++)M[l]=0;for(l=9476;l<=9482;l++)M[l]=0;for(l=9487;l<=9494;l++)M[l]=0;for(l=9697;l<=9699;l++)M[l]=0;for(l=9821;l<=9865;l++)M[l]=0;for(l=10285;l<=10291;l++)M[l]=0;for(l=10314;l<=10317;l++)M[l]=0;for(l=10448;l<=10465;l++)M[l]=0;for(l=10731;l<=10733;l++)M[l]=0;for(l=11114;l<=11118;l++)M[l]=0;for(l=20004;l<=20032;l++)M[l]=0;for(l=20047;l<=20049;l++)M[l]=0;for(l=20062;l<=20092;l++)M[l]=0;for(l=20135;l<=20138;l++)M[l]=0;for(l=20248;l<=20258;l++)M[l]=0;for(l=20348;l<=20358;l++)M[l]=0;for(l=20436;l<=20440;l++)M[l]=0;for(l=20822;l<=20824;l++)M[l]=0;for(l=20904;l<=20932;l++)M[l]=0;for(l=20934;l<=20936;l++)M[l]=0;for(l=21004;l<=21032;l++)M[l]=0;for(l=21035;l<=21037;l++)M[l]=0;for(l=21095;l<=21097;l++)M[l]=0;for(l=21148;l<=21150;l++)M[l]=0;for(l=21207;l<=21264;l++)M[l]=0;for(l=21307;l<=21364;l++)M[l]=0;for(l=21413;l<=21423;l++)M[l]=0;for(l=21453;l<=21463;l++)M[l]=0;for(l=21473;l<=21483;l++)M[l]=0;for(l=21780;l<=21782;l++)M[l]=0;for(l=21891;l<=21894;l++)M[l]=0;for(l=21896;l<=21899;l++)M[l]=0;for(l=22171;l<=22177;l++)M[l]=0;for(l=22181;l<=22187;l++)M[l]=0;for(l=22191;l<=22197;l++)M[l]=0;for(l=22207;l<=22222;l++)M[l]=0;for(l=22229;l<=22232;l++)M[l]=0;for(l=22234;l<=22236;l++)M[l]=0;for(l=22243;l<=22250;l++)M[l]=0;for(l=22262;l<=22265;l++)M[l]=0;for(l=22307;l<=22322;l++)M[l]=0;for(l=22348;l<=22357;l++)M[l]=0;for(l=22407;l<=22422;l++)M[l]=0;for(l=22462;l<=22465;l++)M[l]=0;for(l=22521;l<=22525;l++)M[l]=0;for(l=22607;l<=22622;l++)M[l]=0;for(l=22641;l<=22646;l++)M[l]=0;for(l=22648;l<=22657;l++)M[l]=0;for(l=22707;l<=22722;l++)M[l]=0;for(l=22762;l<=22765;l++)M[l]=0;for(l=22807;l<=22822;l++)M[l]=0;for(l=22991;l<=22994;l++)M[l]=0;for(l=23028;l<=23038;l++)M[l]=0;for(l=23301;l<=23333;l++)M[l]=2;for(l=23830;l<=23853;l++)M[l]=0;for(l=23866;l<=23872;l++)M[l]=0;for(l=23877;l<=23884;l++)M[l]=0;for(l=23886;l<=23894;l++)M[l]=0;for(l=23946;l<=23948;l++)M[l]=0;for(l=24311;l<=24313;l++)M[l]=0;for(l=24342;l<=24347;l++)M[l]=0;for(l=24370;l<=24374;l++)M[l]=10;for(l=24375;l<=24381;l++)M[l]=0;for(l=24718;l<=24721;l++)M[l]=0;for(l=24817;l<=24821;l++)M[l]=0;for(l=24877;l<=24882;l++)M[l]=0;for(l=24891;l<=24893;l++)M[l]=0;for(l=25391;l<=25395;l++)M[l]=0;for(l=25828;l<=25838;l++)M[l]=0;for(l=26191;l<=26195;l++)M[l]=0;for(l=26391;l<=26393;l++)M[l]=0;for(l=26701;l<=26722;l++)M[l]=0;for(l=26729;l<=26799;l++)M[l]=2;for(l=26801;l<=26803;l++)M[l]=2;for(l=26811;l<=26813;l++)M[l]=2;for(l=26847;l<=26870;l++)M[l]=2;for(l=26891;l<=26899;l++)M[l]=0;for(l=26901;l<=26923;l++)M[l]=0;for(l=26929;l<=26946;l++)M[l]=0;for(l=26948;l<=26998;l++)M[l]=0;for(l=27037;l<=27040;l++)M[l]=0;for(l=27205;l<=27232;l++)M[l]=0;for(l=27258;l<=27260;l++)M[l]=0;for(l=27391;l<=27398;l++)M[l]=0;for(l=27561;l<=27564;l++)M[l]=0;for(l=27571;l<=27574;l++)M[l]=0;for(l=27581;l<=27584;l++)M[l]=0;for(l=27591;l<=27594;l++)M[l]=0;for(l=27700;l<=27707;l++)M[l]=0;for(l=28191;l<=28193;l++)M[l]=0;for(l=28348;l<=28358;l++)M[l]=0;for(l=28402;l<=28432;l++)M[l]=0;for(l=28462;l<=28492;l++)M[l]=0;for(l=29118;l<=29122;l++)M[l]=0;for(l=29168;l<=29172;l++)M[l]=0;for(l=29177;l<=29185;l++)M[l]=0;for(l=29187;l<=29195;l++)M[l]=0;for(l=29900;l<=29903;l++)M[l]=0;for(l=30161;l<=30179;l++)M[l]=0;for(l=30491;l<=30494;l++)M[l]=0;for(l=30729;l<=30732;l++)M[l]=0;for(l=31251;l<=31259;l++)M[l]=0;for(l=31265;l<=31268;l++)M[l]=0;for(l=31275;l<=31279;l++)M[l]=0;for(l=31281;l<=31297;l++)M[l]=0;for(l=31461;l<=31469;l++)M[l]=0;for(l=31491;l<=31495;l++)M[l]=0;for(l=31917;l<=31922;l++)M[l]=0;for(l=31965;l<=32e3;l++)M[l]=0;for(l=32001;l<=32003;l++)M[l]=2;for(l=32005;l<=32031;l++)M[l]=2;for(l=32033;l<=32060;l++)M[l]=2;for(l=32064;l<=32067;l++)M[l]=2;for(l=32074;l<=32077;l++)M[l]=2;for(l=32081;l<=32086;l++)M[l]=0;for(l=32107;l<=32130;l++)M[l]=0;for(l=32133;l<=32159;l++)M[l]=0;for(l=32164;l<=32167;l++)M[l]=2;for(l=32180;l<=32199;l++)M[l]=0;for(l=32201;l<=32260;l++)M[l]=0;for(l=32301;l<=32360;l++)M[l]=0;for(l=32401;l<=32460;l++)M[l]=0;for(l=32501;l<=32560;l++)M[l]=0;for(l=32601;l<=32662;l++)M[l]=0;for(l=32664;l<=32667;l++)M[l]=2;for(l=32701;l<=32761;l++)M[l]=0;for(l=53001;l<=53004;l++)M[l]=0;for(l=53008;l<=53019;l++)M[l]=0;for(l=53021;l<=53032;l++)M[l]=0;for(l=53034;l<=53037;l++)M[l]=0;for(l=53042;l<=53046;l++)M[l]=0;for(l=53074;l<=53080;l++)M[l]=0;for(l=54001;l<=54004;l++)M[l]=0;for(l=54008;l<=54019;l++)M[l]=0;for(l=54021;l<=54032;l++)M[l]=0;for(l=54034;l<=54037;l++)M[l]=0;for(l=54042;l<=54046;l++)M[l]=0;for(l=54048;l<=54053;l++)M[l]=0;for(l=54074;l<=54080;l++)M[l]=0;for(l=54098;l<=54101;l++)M[l]=0;for(l=102001;l<=102040;l++)M[l]=0;for(l=102042;l<=102063;l++)M[l]=0;for(l=102065;l<=102067;l++)M[l]=0;for(l=102070;l<=102117;l++)M[l]=0;for(l=102122;l<=102216;l++)M[l]=0;for(l=102221;l<=102377;l++)M[l]=0;for(l=102382;l<=102388;l++)M[l]=0;for(l=102389;l<=102398;l++)M[l]=2;for(l=102399;l<=102444;l++)M[l]=0;for(l=102445;l<=102447;l++)M[l]=2;for(l=102448;l<=102458;l++)M[l]=0;for(l=102459;l<=102468;l++)M[l]=2;for(l=102469;l<=102499;l++)M[l]=0;for(l=102500;l<=102519;l++)M[l]=1;for(l=102520;l<=102524;l++)M[l]=0;for(l=102525;l<=102529;l++)M[l]=2;for(l=102530;l<=102588;l++)M[l]=0;for(l=102590;l<=102598;l++)M[l]=0;for(l=102601;l<=102603;l++)M[l]=0;for(l=102605;l<=102628;l++)M[l]=0;for(l=102629;l<=102646;l++)M[l]=2;for(l=102648;l<=102700;l++)M[l]=2;for(l=102701;l<=102703;l++)M[l]=0;for(l=102707;l<=102730;l++)M[l]=2;for(l=102733;l<=102758;l++)M[l]=2;for(l=102767;l<=102900;l++)M[l]=0;for(l=102901;l<=102933;l++)M[l]=2;for(l=102934;l<=102950;l++)M[l]=13;for(l=102951;l<=102963;l++)M[l]=0;for(l=102965;l<=102969;l++)M[l]=0;for(l=102971;l<=102973;l++)M[l]=0;for(l=102975;l<=102989;l++)M[l]=0;for(l=102990;l<=102992;l++)M[l]=1;for(l=102997;l<=103002;l++)M[l]=0;for(l=103003;l<=103008;l++)M[l]=2;for(l=103009;l<=103011;l++)M[l]=0;for(l=103012;l<=103014;l++)M[l]=2;for(l=103019;l<=103021;l++)M[l]=0;for(l=103022;l<=103024;l++)M[l]=2;for(l=103029;l<=103031;l++)M[l]=0;for(l=103032;l<=103034;l++)M[l]=2;for(l=103065;l<=103068;l++)M[l]=0;for(l=103074;l<=103076;l++)M[l]=0;for(l=103077;l<=103079;l++)M[l]=1;for(l=103080;l<=103082;l++)M[l]=0;for(l=103083;l<=103085;l++)M[l]=2;for(l=103090;l<=103093;l++)M[l]=0;for(l=103097;l<=103099;l++)M[l]=0;for(l=103100;l<=103102;l++)M[l]=2;for(l=103107;l<=103109;l++)M[l]=0;for(l=103110;l<=103112;l++)M[l]=2;for(l=103113;l<=103116;l++)M[l]=0;for(l=103117;l<=103120;l++)M[l]=2;for(l=103153;l<=103157;l++)M[l]=0;for(l=103158;l<=103162;l++)M[l]=2;for(l=103163;l<=103165;l++)M[l]=0;for(l=103166;l<=103168;l++)M[l]=1;for(l=103169;l<=103171;l++)M[l]=2;for(l=103186;l<=103188;l++)M[l]=0;for(l=103189;l<=103191;l++)M[l]=2;for(l=103192;l<=103195;l++)M[l]=0;for(l=103196;l<=103199;l++)M[l]=2;for(l=103200;l<=103224;l++)M[l]=0;for(l=103225;l<=103227;l++)M[l]=1;for(l=103232;l<=103237;l++)M[l]=0;for(l=103238;l<=103243;l++)M[l]=2;for(l=103244;l<=103246;l++)M[l]=0;for(l=103247;l<=103249;l++)M[l]=2;for(l=103254;l<=103256;l++)M[l]=0;for(l=103257;l<=103259;l++)M[l]=2;for(l=103264;l<=103266;l++)M[l]=0;for(l=103267;l<=103269;l++)M[l]=2;for(l=103300;l<=103375;l++)M[l]=0;for(l=103381;l<=103383;l++)M[l]=0;for(l=103384;l<=103386;l++)M[l]=1;for(l=103387;l<=103389;l++)M[l]=0;for(l=103390;l<=103392;l++)M[l]=2;for(l=103397;l<=103399;l++)M[l]=0;for(l=103400;l<=103471;l++)M[l]=2;for(l=103476;l<=103478;l++)M[l]=0;for(l=103479;l<=103481;l++)M[l]=2;for(l=103486;l<=103488;l++)M[l]=0;for(l=103489;l<=103491;l++)M[l]=2;for(l=103492;l<=103495;l++)M[l]=0;for(l=103496;l<=103499;l++)M[l]=2;for(l=103528;l<=103543;l++)M[l]=0;for(l=103544;l<=103548;l++)M[l]=2;for(l=103549;l<=103551;l++)M[l]=0;for(l=103552;l<=103554;l++)M[l]=1;for(l=103555;l<=103557;l++)M[l]=2;for(l=103558;l<=103560;l++)M[l]=0;for(l=103571;l<=103573;l++)M[l]=0;for(l=103574;l<=103576;l++)M[l]=2;for(l=103577;l<=103580;l++)M[l]=0;for(l=103581;l<=103583;l++)M[l]=2;for(l=103595;l<=103694;l++)M[l]=0;for(l=103696;l<=103699;l++)M[l]=0;for(l=103700;l<=103793;l++)M[l]=2;for(l=103794;l<=103890;l++)M[l]=0;for(l=103891;l<=103896;l++)M[l]=2;for(l=103900;l<=103971;l++)M[l]=2;for(l=103972;l<=103977;l++)M[l]=0;for(l=112e3;l<=112101;l++)M[l]=0});function nl(e,t){if(e===t)return!0;if(e==null||t==null)return!1;let r=e.wkid,n=t.wkid;if(r!=null||n!=null){if(r===n||Ts(e)&&Ts(t))return!0;let s=e.latestWkid;if(s!=null&&n===s)return!0;let c=t.latestWkid;return c!=null&&r===c}let i,o;return e.wkt2&&t.wkt2?(i=e.wkt2,o=t.wkt2):e.wkt&&t.wkt&&(i=e.wkt,o=t.wkt),!(!i||!o)&&i.toUpperCase()===o.toUpperCase()}function ud(e){let t=e?.wkid;return t!=null&&t>=2e3&&oF[t]||null}function D1(e){if(!aF(e))return!1;let{wkid:t}=e;if(t)return M[t]==null;let r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function Tm(e){return e?.wkid===4326}function Ts(e){let t=e?.wkid;return t!=null&&t>=2e3&&iF.includes(t)}function g3(e){return e===Em.GCSMARS2000||e===Em.GCSMARS2000_SPHERE}function w3(e){return e===Em.GCSMOON2000}function sF(e){let t=e?.wkid;return t!=null&&t>=2e3&&tK.includes(t)}function aF(e){if(e==null)return!1;let t=e.wkid;return t!=null&&t>=2e3||e.wkt2!=null||e.wkt!=null}var iF,eK,tK,Cm,h3,m3,oF,y3,b3,cF,ya=R(()=>{cc();rF();nF();f3();iF=[102100,102113,3857,3785,900913],eK=[104905,104971],tK=[4326,...iF,...eK],Cm=[-20037508342788905e-9,20037508342788905e-9],h3=[-20037508342787e-6,20037508342787e-6],m3={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:Cm,origin:h3,dx:1e-5},oF={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:Cm,origin:h3,dx:1e-5},102100:m3,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:Cm,origin:h3,dx:1e-5},3857:m3,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:m3};y3={wkid:4326,wkt:hs(oF[4326].wkTemplate,{Central_Meridian:"0.0"})},b3={wkid:102100,latestWkid:3857},cF={wkid:32662}});function v3(e){return{wkt:`GEOCCS["Spherical geocentric",
12
12
  DATUM["Not specified",
13
13
  SPHEROID["Sphere",${e.radius},0]],
@@ -240,42 +240,42 @@ lit-html/directives/live.js:
240
240
  (*!
241
241
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
242
242
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
243
- * v3.0.0-next.61
243
+ * v3.0.0-next.63
244
244
  *)
245
245
 
246
246
  @esri/calcite-components/dist/index.js:
247
247
  (*!
248
248
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
249
249
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
250
- * v3.0.0-next.61
250
+ * v3.0.0-next.63
251
251
  *)
252
252
 
253
253
  @esri/calcite-components/dist/chunks/guid.js:
254
254
  (*!
255
255
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
256
256
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
257
- * v3.0.0-next.61
257
+ * v3.0.0-next.63
258
258
  *)
259
259
 
260
260
  @esri/calcite-components/dist/chunks/useT9n.js:
261
261
  (*!
262
262
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
263
263
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
264
- * v3.0.0-next.61
264
+ * v3.0.0-next.63
265
265
  *)
266
266
 
267
267
  @esri/calcite-components/dist/components/calcite-loader/customElement.js:
268
268
  (*!
269
269
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
270
270
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
271
- * v3.0.0-next.61
271
+ * v3.0.0-next.63
272
272
  *)
273
273
 
274
274
  @esri/calcite-components/dist/chunks/dom.js:
275
275
  (*!
276
276
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
277
277
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
278
- * v3.0.0-next.61
278
+ * v3.0.0-next.63
279
279
  *)
280
280
  (*!
281
281
  * tabbable 6.2.0
@@ -286,14 +286,14 @@ lit-html/directives/live.js:
286
286
  (*!
287
287
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
288
288
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
289
- * v3.0.0-next.61
289
+ * v3.0.0-next.63
290
290
  *)
291
291
 
292
292
  @esri/calcite-components/dist/components/calcite-icon/customElement.js:
293
293
  (*!
294
294
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
295
295
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
296
- * v3.0.0-next.61
296
+ * v3.0.0-next.63
297
297
  *)
298
298
 
299
299
  lit-html/async-directive.js:
@@ -321,56 +321,56 @@ lit-html/static.js:
321
321
  (*!
322
322
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
323
323
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
324
- * v3.0.0-next.61
324
+ * v3.0.0-next.63
325
325
  *)
326
326
 
327
327
  @esri/calcite-components/dist/chunks/interactive.js:
328
328
  (*!
329
329
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
330
330
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
331
- * v3.0.0-next.61
331
+ * v3.0.0-next.63
332
332
  *)
333
333
 
334
334
  @esri/calcite-components/dist/chunks/label.js:
335
335
  (*!
336
336
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
337
337
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
338
- * v3.0.0-next.61
338
+ * v3.0.0-next.63
339
339
  *)
340
340
 
341
341
  @esri/calcite-components/dist/chunks/loadable.js:
342
342
  (*!
343
343
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
344
344
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
345
- * v3.0.0-next.61
345
+ * v3.0.0-next.63
346
346
  *)
347
347
 
348
348
  @esri/calcite-components/dist/chunks/logger.js:
349
349
  (*!
350
350
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
351
351
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
352
- * v3.0.0-next.61
352
+ * v3.0.0-next.63
353
353
  *)
354
354
 
355
355
  @esri/calcite-components/dist/chunks/component.js:
356
356
  (*!
357
357
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
358
358
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
359
- * v3.0.0-next.61
359
+ * v3.0.0-next.63
360
360
  *)
361
361
 
362
362
  @esri/calcite-components/dist/components/calcite-button/customElement.js:
363
363
  (*!
364
364
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
365
365
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
366
- * v3.0.0-next.61
366
+ * v3.0.0-next.63
367
367
  *)
368
368
 
369
369
  @esri/calcite-components/dist/components/calcite-scrim/customElement.js:
370
370
  (*!
371
371
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
372
372
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
373
- * v3.0.0-next.61
373
+ * v3.0.0-next.63
374
374
  *)
375
375
 
376
376
  lit-html/directives/keyed.js:
@@ -384,7 +384,7 @@ lit-html/directives/keyed.js:
384
384
  (*!
385
385
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
386
386
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
387
- * v3.0.0-next.61
387
+ * v3.0.0-next.63
388
388
  *)
389
389
 
390
390
  lodash-es/lodash.js:
@@ -402,7 +402,7 @@ lodash-es/lodash.js:
402
402
  (*!
403
403
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
404
404
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
405
- * v3.0.0-next.61
405
+ * v3.0.0-next.63
406
406
  *)
407
407
 
408
408
  tabbable/dist/index.esm.js:
@@ -421,167 +421,167 @@ focus-trap/dist/focus-trap.esm.js:
421
421
  (*!
422
422
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
423
423
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
424
- * v3.0.0-next.61
424
+ * v3.0.0-next.63
425
425
  *)
426
426
 
427
427
  @esri/calcite-components/dist/chunks/openCloseComponent.js:
428
428
  (*!
429
429
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
430
430
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
431
- * v3.0.0-next.61
431
+ * v3.0.0-next.63
432
432
  *)
433
433
 
434
434
  @esri/calcite-components/dist/chunks/Heading.js:
435
435
  (*!
436
436
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
437
437
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
438
- * v3.0.0-next.61
438
+ * v3.0.0-next.63
439
439
  *)
440
440
 
441
441
  @esri/calcite-components/dist/chunks/FloatingArrow.js:
442
442
  (*!
443
443
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
444
444
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
445
- * v3.0.0-next.61
445
+ * v3.0.0-next.63
446
446
  *)
447
447
 
448
448
  @esri/calcite-components/dist/chunks/key.js:
449
449
  (*!
450
450
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
451
451
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
452
- * v3.0.0-next.61
452
+ * v3.0.0-next.63
453
453
  *)
454
454
 
455
455
  @esri/calcite-components/dist/components/calcite-popover/customElement.js:
456
456
  (*!
457
457
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
458
458
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
459
- * v3.0.0-next.61
459
+ * v3.0.0-next.63
460
460
  *)
461
461
 
462
462
  @esri/calcite-components/dist/chunks/array.js:
463
463
  (*!
464
464
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
465
465
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
466
- * v3.0.0-next.61
466
+ * v3.0.0-next.63
467
467
  *)
468
468
 
469
469
  @esri/calcite-components/dist/chunks/resources2.js:
470
470
  (*!
471
471
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
472
472
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
473
- * v3.0.0-next.61
473
+ * v3.0.0-next.63
474
474
  *)
475
475
 
476
476
  @esri/calcite-components/dist/components/calcite-action-menu/customElement.js:
477
477
  (*!
478
478
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
479
479
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
480
- * v3.0.0-next.61
480
+ * v3.0.0-next.63
481
481
  *)
482
482
 
483
483
  @esri/calcite-components/dist/chunks/resources3.js:
484
484
  (*!
485
485
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
486
486
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
487
- * v3.0.0-next.61
487
+ * v3.0.0-next.63
488
488
  *)
489
489
 
490
490
  @esri/calcite-components/dist/components/calcite-panel/customElement.js:
491
491
  (*!
492
492
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
493
493
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
494
- * v3.0.0-next.61
494
+ * v3.0.0-next.63
495
495
  *)
496
496
 
497
497
  @esri/calcite-components/dist/chunks/_commonjsHelpers.js:
498
498
  (*!
499
499
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
500
500
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
501
- * v3.0.0-next.61
501
+ * v3.0.0-next.63
502
502
  *)
503
503
 
504
504
  @esri/calcite-components/dist/chunks/interact.min.js:
505
505
  (*!
506
506
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
507
507
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
508
- * v3.0.0-next.61
508
+ * v3.0.0-next.63
509
509
  *)
510
510
 
511
511
  @esri/calcite-components/dist/chunks/dynamicClasses.js:
512
512
  (*!
513
513
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
514
514
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
515
- * v3.0.0-next.61
515
+ * v3.0.0-next.63
516
516
  *)
517
517
 
518
518
  @esri/calcite-components/dist/components/calcite-dialog/customElement.js:
519
519
  (*!
520
520
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
521
521
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
522
- * v3.0.0-next.61
522
+ * v3.0.0-next.63
523
523
  *)
524
524
 
525
525
  @esri/calcite-components/dist/components/calcite-input-message/customElement.js:
526
526
  (*!
527
527
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
528
528
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
529
- * v3.0.0-next.61
529
+ * v3.0.0-next.63
530
530
  *)
531
531
 
532
532
  @esri/calcite-components/dist/components/calcite-progress/customElement.js:
533
533
  (*!
534
534
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
535
535
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
536
- * v3.0.0-next.61
536
+ * v3.0.0-next.63
537
537
  *)
538
538
 
539
539
  @esri/calcite-components/dist/chunks/locale.js:
540
540
  (*!
541
541
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
542
542
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
543
- * v3.0.0-next.61
543
+ * v3.0.0-next.63
544
544
  *)
545
545
 
546
546
  @esri/calcite-components/dist/chunks/Validation.js:
547
547
  (*!
548
548
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
549
549
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
550
- * v3.0.0-next.61
550
+ * v3.0.0-next.63
551
551
  *)
552
552
 
553
553
  @esri/calcite-components/dist/chunks/input.js:
554
554
  (*!
555
555
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
556
556
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
557
- * v3.0.0-next.61
557
+ * v3.0.0-next.63
558
558
  *)
559
559
 
560
560
  @esri/calcite-components/dist/components/calcite-input/customElement.js:
561
561
  (*!
562
562
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
563
563
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
564
- * v3.0.0-next.61
564
+ * v3.0.0-next.63
565
565
  *)
566
566
 
567
567
  @esri/calcite-components/dist/components/calcite-label/customElement.js:
568
568
  (*!
569
569
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
570
570
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
571
- * v3.0.0-next.61
571
+ * v3.0.0-next.63
572
572
  *)
573
573
 
574
574
  @esri/calcite-components/dist/chunks/resources4.js:
575
575
  (*!
576
576
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
577
577
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
578
- * v3.0.0-next.61
578
+ * v3.0.0-next.63
579
579
  *)
580
580
 
581
581
  @esri/calcite-components/dist/components/calcite-notice/customElement.js:
582
582
  (*!
583
583
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
584
584
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
585
- * v3.0.0-next.61
585
+ * v3.0.0-next.63
586
586
  *)
587
587
  */