@arcgis/coding-components 4.32.0-next.78 → 4.32.0-next.79

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/{2T2ODRZW.js → 3GTJFNGM.js} +2 -2
  2. package/dist/arcgis-coding-components/{U4TRTUUC.js → 445VQLEM.js} +2 -2
  3. package/dist/arcgis-coding-components/{OUOMO4VN.js → 4Q5SENCE.js} +2 -2
  4. package/dist/arcgis-coding-components/{4GLIBLY2.js → 5URWUZRL.js} +2 -2
  5. package/dist/arcgis-coding-components/{U6NIQGQW.js → 6FTMXEXA.js} +2 -2
  6. package/dist/arcgis-coding-components/{ZOA6ZEQT.js → 767P2NR5.js} +2 -2
  7. package/dist/arcgis-coding-components/{DZH65XN3.js → 7YR6L5ER.js} +1 -1
  8. package/dist/arcgis-coding-components/{ZWE67JAQ.js → A7HEKKZL.js} +2 -2
  9. package/dist/arcgis-coding-components/{F7CDXPI7.js → ACRY54BV.js} +2 -2
  10. package/dist/arcgis-coding-components/{CUG7PYST.js → BN4MTBR3.js} +2 -2
  11. package/dist/arcgis-coding-components/{3ZDVR73G.js → BYKZ4RAV.js} +2 -2
  12. package/dist/arcgis-coding-components/{ZXM7KQW3.js → E6CMP5KX.js} +2 -2
  13. package/dist/arcgis-coding-components/{F5JZI4R4.js → E6LTGMR6.js} +3 -3
  14. package/dist/arcgis-coding-components/{KTPGNFZG.js → FLRGY4EQ.js} +2 -2
  15. package/dist/arcgis-coding-components/{YUG5CDLR.js → FUIXITE7.js} +1 -1
  16. package/dist/arcgis-coding-components/{OMOH4L4S.js → G4ISHM5I.js} +2 -2
  17. package/dist/arcgis-coding-components/{H5ZEBRMH.js → JPS5M7XA.js} +2 -2
  18. package/dist/arcgis-coding-components/{FXWMVRZX.js → KDS6Q56B.js} +2 -2
  19. package/dist/arcgis-coding-components/{DMTS22YC.js → KJJQ5B5C.js} +2 -2
  20. package/dist/arcgis-coding-components/{YJHNU6S6.js → LRS3VI73.js} +1 -1
  21. package/dist/arcgis-coding-components/{ODASVNNG.js → MQTTGD4X.js} +2 -2
  22. package/dist/arcgis-coding-components/{B3J5KRFF.js → MXY4LH3H.js} +2 -2
  23. package/dist/arcgis-coding-components/{QVCVN5VG.js → PL6ZQ7DW.js} +2 -2
  24. package/dist/arcgis-coding-components/{ONU2GNF7.js → QM4SCKDI.js} +1 -1
  25. package/dist/arcgis-coding-components/{CQ44KEBL.js → SHTFFRYB.js} +2 -2
  26. package/dist/arcgis-coding-components/{RBNADTBK.js → UF2H5BAA.js} +2 -2
  27. package/dist/arcgis-coding-components/{KAPOG4QS.js → UJHKPC2V.js} +2 -2
  28. package/dist/arcgis-coding-components/{3BDDOBVR.js → V43HXQ22.js} +2 -2
  29. package/dist/arcgis-coding-components/{43VRHEFS.js → VSPIU35F.js} +2 -2
  30. package/dist/arcgis-coding-components/{3UJEWMDL.js → WJFKCBBJ.js} +2 -2
  31. package/dist/arcgis-coding-components/{QINHVT4O.js → XGLYWHPJ.js} +2 -2
  32. package/dist/arcgis-coding-components/{CRA2QKE6.js → XTTTFFI5.js} +2 -2
  33. package/dist/arcgis-coding-components/{UDN3MW5B.js → YM7AKQFX.js} +2 -2
  34. package/dist/arcgis-coding-components/{PCW2IZC3.js → ZD7NWKRB.js} +2 -2
  35. package/dist/arcgis-coding-components/{MTVFH63Y.js → ZXHEWC7Q.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 YU=Object.defineProperty;var mT=(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 hT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hs=(e,t)=>{for(var r in t)YU(e,r,{get:t[r],enumerable:!0})};function HW(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 ZW(e,t,r){let{subscribe:n}=YW(t);return n(i=>{i.some(s=>HW(e,s.target))&&r()})}function YW(e){let t=e.join(","),r=Ox[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(),Ox[t]=void 0)}}}};return Ox[t]=o,o}function JW(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 XW(e,t,r){return JW(e,`[${t}]`)?.getAttribute(t)??r}function Ot(e,t,...r){try{return e?.call(t,...r)}catch(n){console.error(n,e)}}async function _h(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 tB(e,t,r=""){let n=`${t}/${r}`,i=`${n}${e}.json`;return Rx[i]??(Rx[i]=i8(e,n)),await Rx[i]}async function i8(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===xw?{}:await i8(xw,t)}function Dx(e){let t=XW(e,"lang",globalThis.navigator?.language||xw);return{lang:t,t9nLocale:o8(t)}}function o8(e){let[t,r]=e.split("-"),n=t.toLowerCase(),i=n;return r&&(i=`${n}-${r.toUpperCase()}`),i=eB[i]??i,KW.has(i)?i:r?o8(n):xw}function s8(e,t,r,n){let i,o=()=>void rB(e,t,n).then(s=>{(i?.lang!==s.lang||i.t9nLocale!==s.t9nLocale||i.t9nStrings!==s.t9nStrings)&&r(s),i=s}).catch(console.error);return o(),ZW(e,["lang"],o)}async function rB(e,t,r=e.tagName.toLowerCase().split("-").slice(1).join("-")){let{lang:n,t9nLocale:i}=Dx(e),o=`${t}/${r}/t9n`,c=r===null?{}:await tB(i,o,"messages.");return{lang:n,t9nLocale:i,t9nStrings:c}}function a8(e,t){let r=t>iB?oB:t/sB,n=0,i=setInterval(()=>{n+=r,n>=t&&(clearInterval(i),e())},r);return i}function c8(e){return e!==void 0}var xo,Ox,QW,KW,xw,eB,Rx,Sw,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})}};Ox={};QW=["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"],KW=new Set(QW),xw="en",eB={pt:"pt-PT",nb:"no",zh:"zh-CN"};Rx={};Sw=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 sc[e]=="function"?sc[e]=sc[e](globalThis):sc[e]}var sc,rt=R(()=>{sc=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},me.add=(e,t,r,n)=>{(n||sc[e]===void 0)&&(sc[e]=t),r&&me(e)},me.cache=sc,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",!0),(()=>{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 bu,Hr=R(()=>{bu=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}};bu._m=2147483647,bu._a=48271,bu._c=0});function ac(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 Fx(e,t,r,n){n=n||l8;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 u8(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||l8;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 d8(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function p8(e,t){return e!=null}var aB,ece,xh,l8,Eo,tce,cc=R(()=>{Hr();aB=1.5,ece=1/aB;xh=class{constructor(){this.last=0}},l8=new xh;Eo=new Set;tce=new bu});function f8(e){return e?.constructor?.name==="Int8Array"}function m8(e){return e?.constructor?.name==="Uint8Array"}function h8(e){return e?.constructor?.name==="Uint8ClampedArray"}function g8(e){return e?.constructor?.name==="Int16Array"}function w8(e){return e?.constructor?.name==="Uint16Array"}function y8(e){return e?.constructor?.name==="Int32Array"}function b8(e){return e?.constructor?.name==="Uint32Array"}function v8(e){return e?.constructor?.name==="Float32Array"}function _8(e){return e?.constructor?.name==="Float64Array"}var x8=R(()=>{rt()});function Tw(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&Tw(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=P8(e);if(t!=null)return t;if(E8(e))return e.clone();if(C8(e))return e.map(Ye);if(T8(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 Cw(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=P8(e);if(t!=null)return t;if(C8(e)){let n=!0,i=e.map(o=>{let s=Cw(o);return o!=null&&s==null&&(n=!1),s});return n?i:null}if(E8(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(T8(e))return null;let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=Cw(i);if(i!=null&&o==null)return null;r[n]=o}return r}function E8(e){return typeof e.clone=="function"}function C8(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function T8(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function S8(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function P8(e){if(f8(e)||m8(e)||h8(e)||g8(e)||w8(e)||y8(e)||b8(e)||v8(e)||_8(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 Sh(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 M8(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)&&ac(e,t):e instanceof Set?t instanceof Set&&lB(e,t):e instanceof Map?t instanceof Map&&uB(e,t):!!S8(e)&&S8(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(()=>{cc();x8()});function A8(e,t,r=!1){return L8(e,t,r)}function ji(e,t){if(t!=null)return t[e]||I8(e.split("."),!1,t)}function ea(e,t,r){let n=e.split("."),i=n.pop(),o=I8(n,!0,r);o&&i&&(o[i]=t)}function I8(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 L8(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]=L8(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var hs=R(()=>{mr()});function k8(e){return e??""}function gs(e,t){return t?e.replaceAll(dB,typeof t=="object"?(r,n)=>k8(ji(n,t)):(r,n)=>k8(t(n))):e}function N8(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function O8(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,lc=R(()=>{hs();dB=/\{([^}]+)\}/g});var ta,Pw,Mw,Aw,Co,pf,vr,To,uc=R(()=>{ta=class extends Error{},Pw=class extends ta{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},Mw=class extends ta{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},Aw=class extends ta{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Co=class extends ta{},pf=class extends ta{constructor(t){super(`Invalid unit ${t}`)}},vr=class extends ta{},To=class extends ta{constructor(){super("Zone is an abstract class")}}});var ke,Po,Si,dc,Eh,$x,Ch,Th,Ph,Mh,Ah,Ih,Lh,kh,Nh,Oh,Rh,Dh,Fh,$h,Vx,Vh,Uh,zh,Wh,Bh=R(()=>{ke="numeric",Po="short",Si="long",dc={year:ke,month:ke,day:ke},Eh={year:ke,month:Po,day:ke},$x={year:ke,month:Po,day:ke,weekday:Po},Ch={year:ke,month:Si,day:ke},Th={year:ke,month:Si,day:ke,weekday:Si},Ph={hour:ke,minute:ke},Mh={hour:ke,minute:ke,second:ke},Ah={hour:ke,minute:ke,second:ke,timeZoneName:Po},Ih={hour:ke,minute:ke,second:ke,timeZoneName:Si},Lh={hour:ke,minute:ke,hourCycle:"h23"},kh={hour:ke,minute:ke,second:ke,hourCycle:"h23"},Nh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Po},Oh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Si},Rh={year:ke,month:ke,day:ke,hour:ke,minute:ke},Dh={year:ke,month:ke,day:ke,hour:ke,minute:ke,second:ke},Fh={year:ke,month:Po,day:ke,hour:ke,minute:ke},$h={year:ke,month:Po,day:ke,hour:ke,minute:ke,second:ke},Vx={year:ke,month:Po,day:ke,weekday:Po,hour:ke,minute:ke},Vh={year:ke,month:Si,day:ke,hour:ke,minute:ke,timeZoneName:Po},Uh={year:ke,month:Si,day:ke,hour:ke,minute:ke,second:ke,timeZoneName:Po},zh={year:ke,month:Si,day:ke,weekday:Si,hour:ke,minute:ke,timeZoneName:Si},Wh={year:ke,month:Si,day:ke,weekday:Si,hour:ke,minute:ke,second:ke,timeZoneName:Si}});var kr,vu=R(()=>{uc();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 Ux,pc,Lw=R(()=>{jn();vu();Ux=null,pc=class e extends kr{static get instance(){return Ux===null&&(Ux=new e),Ux}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return kw(t,r,n)}formatOffset(t,r){return fc(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 Ow[e]||(Ow[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"})),Ow[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 Ow,fB,Nw,or,mc=R(()=>{jn();vu();Ow={};fB={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};Nw={},or=class e extends kr{static create(t){return Nw[t]||(Nw[t]=new e(t)),Nw[t]}static resetCache(){Nw={},Ow={}}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 kw(t,r,n,this.name)}formatOffset(t,r){return fc(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=ff({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=R8[r];return n||(n=new Intl.ListFormat(e,t),R8[r]=n),n}function Wx(e,t={}){let r=JSON.stringify([e,t]),n=zx[r];return n||(n=new Intl.DateTimeFormat(e,t),zx[r]=n),n}function wB(e,t={}){let r=JSON.stringify([e,t]),n=Bx[r];return n||(n=new Intl.NumberFormat(e,t),Bx[r]=n),n}function yB(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=Gx[i];return o||(o=new Intl.RelativeTimeFormat(e,t),Gx[i]=o),o}function bB(){return Gh||(Gh=new Intl.DateTimeFormat().resolvedOptions().locale,Gh)}function vB(e){let t=D8[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,D8[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=Wx(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=Wx(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 Rw(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 R8,zx,Bx,Gx,Gh,D8,jx,qx,Hx,TB,St,qh=R(()=>{jn();$w();hc();gc();mc();R8={};zx={};Bx={};Gx={};Gh=null;D8={};jx=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):mf(t,3);return hr(r,this.padTo)}}},qx=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=Wx(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()}},Hx=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&Dw()&&(this.rtf=yB(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):F8(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=jh(i)||xt.defaultWeekSettings;return new e(c,a,d,h,s)}static resetCache(){Gh=null,zx={},Bx={},Gx={}}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,jh(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 Rw(this,t,Zx,()=>{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 Rw(this,t,Yx,()=>{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 Rw(this,void 0,()=>Jx,()=>{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 Rw(this,t,Xx,()=>{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 jx(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new qx(t,this.intl,r)}relFormatter(t={}){return new Hx(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:Fw()?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 Kx,Rt,hf=R(()=>{jn();vu();Kx=null,Rt=class e extends kr{static get utcInstance(){return Kx===null&&(Kx=new e(0)),Kx}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(_u(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${fc(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${fc(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return fc(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 gf,eS=R(()=>{vu();gf=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($8(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?pc.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 gf(e)}var Vw=R(()=>{vu();mc();hf();eS();jn();Lw()});function U8(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(tS.hanidec)!==-1)t+=PB.indexOf(e[r]);else for(let i in V8){let[o,s]=V8[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function z8(){wf={}}function qi({numberingSystem:e},t=""){let r=e||"latn";return wf[r]||(wf[r]={}),wf[r][t]||(wf[r][t]=new RegExp(`${tS[r]}${t}`)),wf[r][t]}var tS,V8,PB,wf,rS=R(()=>{tS={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"},V8={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=tS.hanidec.replace(/[\[|\]]/g,"").split("");wf={}});var W8,B8,G8,j8,q8,H8,Z8,Y8,xt,hc=R(()=>{Lw();mc();qh();gc();Vw();jn();rS();W8=()=>Date.now(),B8="system",G8=null,j8=null,q8=null,H8=60,Y8=null,xt=class{static get now(){return W8}static set now(t){W8=t}static set defaultZone(t){B8=t}static get defaultZone(){return Mo(B8,pc.instance)}static get defaultLocale(){return G8}static set defaultLocale(t){G8=t}static get defaultNumberingSystem(){return j8}static set defaultNumberingSystem(t){j8=t}static get defaultOutputCalendar(){return q8}static set defaultOutputCalendar(t){q8=t}static get defaultWeekSettings(){return Y8}static set defaultWeekSettings(t){Y8=jh(t)}static get twoDigitCutoffYear(){return H8}static set twoDigitCutoffYear(t){H8=t%100}static get throwOnInvalid(){return Z8}static set throwOnInvalid(t){Z8=t}static resetCaches(){St.resetCache(),or.resetCache(),Ce.resetCache(),z8()}}});var cn,Hh=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 Uw(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 Q8(e,t,r){return r+(Su(e)?X8:J8)[t-1]}function K8(e,t){let r=Su(e)?X8:J8,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function zw(e,t){return(e-t+7)%7+1}function Zh(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=Q8(n,i,o),c=zw(Uw(n,i,o),r),a=Math.floor((s-c+14-t)/7),d;return a<1?(d=n-1,a=xu(d,t,r)):a>xu(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...Jh(e)}}function nS(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=zw(Uw(n,1,t),r),c=wc(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=wc(d)):a>c?(d=n+1,a-=wc(n)):d=n;let{month:h,day:g}=K8(d,a);return{year:d,month:h,day:g,...Jh(e)}}function Ww(e){let{year:t,month:r,day:n}=e,i=Q8(t,r,n);return{year:t,ordinal:i,...Jh(e)}}function iS(e){let{year:t,ordinal:r}=e,{month:n,day:i}=K8(t,r);return{year:t,month:n,day:i,...Jh(e)}}function oS(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 eP(e,t=4,r=1){let n=Yh(e.weekYear),i=Ei(e.weekNumber,1,xu(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 tP(e){let t=Yh(e.year),r=Ei(e.ordinal,1,wc(e.year));return t?r?!1:Hi("ordinal",e.ordinal):Hi("year",e.year)}function sS(e){let t=Yh(e.year),r=Ei(e.month,1,12),n=Ei(e.day,1,yf(e.year,e.month));return t?r?n?!1:Hi("day",e.day):Hi("month",e.month):Hi("year",e.year)}function aS(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 J8,X8,cS=R(()=>{jn();Hh();uc();J8=[0,31,59,90,120,151,181,212,243,273,304,334],X8=[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 Yh(e){return typeof e=="number"&&e%1===0}function $8(e){return typeof e=="string"}function nP(e){return Object.prototype.toString.call(e)==="[object Date]"}function Dw(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Fw(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function iP(e){return Array.isArray(e)?e:[e]}function lS(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 oP(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function yc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function jh(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 Yh(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 ra(e){if(!(qe(e)||e===null||e===""))return parseInt(e,10)}function bc(e){if(!(qe(e)||e===null||e===""))return parseFloat(e)}function Xh(e){if(!(qe(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function mf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Su(e){return e%4===0&&(e%100!==0||e%400===0)}function wc(e){return Su(e)?366:365}function yf(e,t){let r=MB(t-1,12)+1,n=e+(t-r)/12;return r===2?Su(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function ff(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 rP(e,t,r){return-zw(Uw(e,1,t),r)+t-1}function xu(e,t=4,r=1){let n=rP(e,t,r),i=rP(e+1,t,r);return(wc(e)-n+i)/7}function Qh(e){return e>99?e:e>xt.twoDigitCutoffYear?1900+e:2e3+e}function kw(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 _u(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 uS(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new vr(`Invalid unit value ${e}`);return t}function bf(e,t){let r={};for(let n in e)if(yc(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=uS(i)}return r}function fc(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 Jh(e){return oP(e,["hour","minute","second","millisecond"])}var jn=R(()=>{uc();hc();cS()});function Zx(e){switch(e){case"narrow":return[...IB];case"short":return[...dS];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 Yx(e){switch(e){case"narrow":return[...LB];case"short":return[...fS];case"long":return[...pS];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function Xx(e){switch(e){case"narrow":return[...OB];case"short":return[...NB];case"long":return[...kB];default:return null}}function sP(e){return Jx[e.hour<12?0:1]}function aP(e,t){return Yx(t)[e.weekday-1]}function cP(e,t){return Zx(t)[e.month-1]}function lP(e,t){return Xx(t)[e.year<0?0:1]}function F8(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,dS,IB,pS,fS,LB,Jx,kB,NB,OB,$w=R(()=>{Bh();jn();AB=["January","February","March","April","May","June","July","August","September","October","November","December"],dS=["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"];pS=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],fS=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],LB=["M","T","W","T","F","S","S"];Jx=["AM","PM"],kB=["Before Christ","Anno Domini"],NB=["BC","AD"],OB=["B","A"]});function uP(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var RB,ln,Kh=R(()=>{$w();Bh();jn();RB={D:dc,DD:Eh,DDD:Ch,DDDD:Th,t:Ph,tt:Mh,ttt:Ah,tttt:Ih,T:Lh,TT:kh,TTT:Nh,TTTT:Oh,f:Rh,ff:Fh,fff:Vh,ffff:zh,F:Dh,FF:$h,FFF:Uh,FFFF:Wh},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?sP(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(E,P)=>n?cP(t,E):o(P?{month:E}:{month:E,day:"numeric"},"month"),d=(E,P)=>n?aP(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?lP(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 uP(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 uP(o,i(c))}}});function _f(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function xf(...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 Sf(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 fP(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=ra(t[r+i]);return[n,null,r+i]}}function vf(e,t,r){let n=e[t];return qe(n)?r:ra(n)}function GB(e,t){return[{year:vf(e,t),month:vf(e,t+1,1),day:vf(e,t+2,1)},null,t+3]}function Ef(e,t){return[{hours:vf(e,t,0),minutes:vf(e,t+1,0),seconds:vf(e,t+2,0),milliseconds:Xh(e[t+3])},null,t+4]}function eg(e,t){let r=!e[t]&&!e[t+1],n=_u(e[t+1],e[t+2]),i=r?null:Rt.instance(n);return[{},i,t+3]}function tg(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(bc(r)),months:v(bc(n)),weeks:v(bc(i)),days:v(bc(o)),hours:v(bc(s)),minutes:v(bc(c)),seconds:v(bc(a),a==="-0"),milliseconds:v(Xh(d),g)}]}function gS(e,t,r,n,i,o,s){let c={year:t.length===2?Qh(ra(t)):ra(t),month:dS.indexOf(r)+1,day:ra(n),hour:ra(i),minute:ra(o)};return s&&(c.second=ra(s)),e&&(c.weekday=e.length>3?pS.indexOf(e)+1:fS.indexOf(e)+1),c}function JB(e){let[,t,r,n,i,o,s,c,a,d,h,g]=e,v=gS(t,i,n,r,o,s,c),E;return a?E=ZB[a]:d?E=0:E=_u(h,g),[v,new Rt(E)]}function XB(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function dP(e){let[,t,r,n,i,o,s,c]=e;return[gS(t,i,n,r,o,s,c),Rt.utcInstance]}function tG(e){let[,t,r,n,i,o,s,c]=e;return[gS(t,c,r,n,i,o,s),Rt.utcInstance]}function yP(e){return Sf(e,[rG,wP],[nG,sG],[iG,aG],[oG,cG])}function bP(e){return Sf(XB(e),[YB,JB])}function vP(e){return Sf(e,[QB,dP],[KB,dP],[eG,tG])}function _P(e){return Sf(e,[qB,HB])}function xP(e){return Sf(e,[jB,lG])}function SP(e){return Sf(e,[uG,wP],[dG,pG])}var pP,mP,DB,mS,hP,hS,FB,$B,VB,UB,zB,WB,gP,BB,jB,qB,ZB,YB,QB,KB,eG,rG,nG,iG,oG,wP,sG,aG,cG,lG,uG,dG,pG,wS=R(()=>{jn();$w();hf();mc();pP=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;mP=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,DB=`(?:${mP.source}?(?:\\[(${pP.source})\\])?)?`,mS=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,hP=RegExp(`${mS.source}${DB}`),hS=RegExp(`(?:T${hP.source})?`),FB=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,$B=/(\d{4})-?W(\d\d)(?:-?(\d))?/,VB=/(\d{4})-?(\d{3})/,UB=fP("weekYear","weekNumber","weekDay"),zB=fP("year","ordinal"),WB=/(\d{4})-(\d\d)-(\d\d)/,gP=RegExp(`${mS.source} ?(?:${mP.source}|(${pP.source}))?`),BB=RegExp(`(?: ${gP.source})?`);jB=RegExp(`^T?${mS.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=_f(FB,hS),nG=_f($B,hS),iG=_f(VB,hS),oG=_f(hP),wP=xf(GB,Ef,eg,tg),sG=xf(UB,Ef,eg,tg),aG=xf(zB,Ef,eg,tg),cG=xf(Ef,eg,tg);lG=xf(Ef);uG=_f(WB,BB),dG=_f(gP),pG=xf(Ef,eg,tg)});function vc(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 PP(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 CP(e,t){let r=PP(e,t)<0?-1:1;Eu.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),Eu.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 EP,TP,fG,Zi,Cf,mG,Eu,hG,gr,rg=R(()=>{uc();Kh();Hh();qh();wS();jn();hc();gc();EP="Invalid Duration",TP={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},...TP},Zi=146097/400,Cf=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:Cf/7,days:Cf,hours:Cf*24,minutes:Cf*24*60,seconds:Cf*24*60*60,milliseconds:Cf*24*60*60*1e3},...TP},Eu=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],hG=Eu.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:bf(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]=_P(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]=xP(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 Aw(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 pf(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):EP}toHuman(t={}){if(!this.isValid)return EP;let r=Eu.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+=mf(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?PP(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 Eu)(yc(r.values,i)||yc(this.values,i))&&(n[i]=r.get(i)+this.get(i));return vc(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]=uS(t(this.values[n],n));return vc(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...bf(t,e.normalizeUnit)};return vc(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 vc(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return CP(this.matrix,t),vc(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=gG(this.normalize().shiftToAll().toObject());return vc(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 Eu)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 CP(this.matrix,r),vc(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 vc(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 Eu)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function wG(e,t){return!e||!e.isValid?na.invalid("missing or invalid start"):!t||!t.isValid?na.invalid("missing or invalid end"):t<e?na.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 Tf,na,yS=R(()=>{gc();rg();hc();uc();Hh();Kh();Bh();Tf="Invalid Interval";na=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 Mw(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=Pf(t),i=Pf(r),o=wG(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=gr.fromDurationLike(r),i=Pf(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=gr.fromDurationLike(r),i=Pf(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(Pf).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()})`:Tf}[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=dc,r={}){return this.isValid?ln.create(this.s.loc.clone(r),t).formatInterval(this):Tf}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Tf}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Tf}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Tf}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:Tf}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 ia,bS=R(()=>{gc();hc();qh();mc();Vw();jn();ia=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:Dw(),localeWeek:Fw()}}}});function MP(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=MP(a,d);return(h-h%7)/7}],["days",MP]],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 AP(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 IP=R(()=>{rg()});function Tt(e,t=r=>r){return{regex:e,deser:([r])=>t(U8(r))}}function _G(e){return e.replace(/\./g,"\\.?").replace(OP,NP)}function LP(e){return e.replace(/\./g,"").replace(OP," ").toLowerCase()}function Io(e,t){return e===null?null:{regex:RegExp(e.map(_G).join("|")),deser:([r])=>e.findIndex(n=>LP(r)===LP(n))+t}}function kP(e,t){return{regex:e,deser:([,r,n])=>_u(r,n),groups:t}}function Bw(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,Qh);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 Bw(h);case"uu":return Bw(c);case"uuu":return Tt(r);case"a":return Io(t.meridiems(),0);case"kkkk":return Tt(o);case"kk":return Tt(g,Qh);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 kP(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return kP(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return Bw(/[a-z_+-/]{1,256}?/i);case" ":return Bw(/[^\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(yc(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=Xh(e.u)),[Object.keys(e).reduce((o,s)=>{let c=t(s);return c&&(o[c]=e[s]),o},{}),r,n]}function AG(){return vS||(vS=Ce.fromMillis(1555555555555)),vS}function IG(e,t){if(e.literal)return e;let r=ln.macroTokenToFormatOpts(e.val),n=SS(r,t);return n==null||n.includes(void 0)?e:n}function _S(e,t){return Array.prototype.concat(...e.map(r=>IG(r,t)))}function xS(e,t,r){return new ng(e,r).explainFromTokens(t)}function RP(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=xS(e,t,r);return[n,i,o,s]}function SS(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,NP,OP,EG,vS,ng,DP=R(()=>{jn();Kh();hf();mc();gc();rS();uc();bG="missing Intl.DateTimeFormat.formatToParts support";vG="\xA0",NP=`[ ${vG}]`,OP=new RegExp(NP,"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"}};vS=null;ng=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=_S(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(yc(n,"a")&&yc(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 ig(e){return new cn("unsupported zone",`the zone "${e.name}" is not supported`)}function CS(e){return e.weekData===null&&(e.weekData=Zh(e.c)),e.weekData}function TS(e){return e.localWeekData===null&&(e.localWeekData=Zh(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Cu(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 GP(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 Gw(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 qw(e,t,r){return GP(ff(e),t,r)}function $P(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,yf(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=ff(o),[a,d]=GP(c,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function Mf(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 jw(e,t,r=!0){return e.isValid?ln.create(St.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function PS(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 VP(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 pf(e);return t}function UP(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 Zw[e]||(Hw===void 0&&(Hw=xt.now()),Zw[e]=e.offset(Hw)),Zw[e]}function zP(e,t){let r=Mo(t.zone,xt.defaultZone);if(!r.isValid)return Ce.invalid(ig(r));let n=St.fromObject(t),i,o;if(qe(e.year))i=xt.now();else{for(let a of qP)qe(e[a])&&(e[a]=jP[a]);let s=sS(e)||aS(e);if(s)return Ce.invalid(s);let c=DG(r);[i,o]=qw(e,c,r)}return new Ce({ts:i,zone:r,loc:n,o})}function WP(e,t,r){let n=qe(r.round)?!0:r.round,i=(s,c)=>(s=mf(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 BP(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 Pf(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 ES,FP,jP,LG,kG,qP,NG,OG,Hw,Zw,Ce,gc=R(()=>{rg();yS();hc();bS();Kh();hf();qh();jn();Vw();IP();wS();DP();cS();Bh();uc();Hh();ES="Invalid DateTime",FP=864e13;jP={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},qP=["year","month","day","hour","minute","second","millisecond"],NG=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],OG=["year","ordinal","hour","minute","second","millisecond"];Zw={},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:ig(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=Gw(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]=BP(arguments),[n,i,o,s,c,a,d]=r;return zP({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static utc(){let[t,r]=BP(arguments),[n,i,o,s,c,a,d]=r;return t.zone=Rt.utcInstance,zP({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=nP(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(ig(i))}static fromMillis(t,r={}){if(Ao(t))return t<-FP||t>FP?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(ig(n));let i=St.fromObject(r),o=bf(t,UP),{minDaysInFirstWeek:s,startOfWeek:c}=oS(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=Gw(a,d);A?(F=NG,W=LG,z=Zh(z,s,c)):h?(F=OG,W=kG,z=Ww(z)):(F=qP,W=jP);let q=!1;for(let Ee of F){let Ne=o[Ee];qe(Ne)?q?o[Ee]=W[Ee]:o[Ee]=z[Ee]:q=!0}let G=A?eP(o,s,c):h?tP(o):sS(o),Y=G||aS(o);if(Y)return e.invalid(Y);let ie=A?nS(o,s,c):h?iS(o):o,[U,fe]=qw(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]=yP(t);return Mf(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=bP(t);return Mf(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=vP(t);return Mf(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]=RP(s,t,r);return h?e.invalid(h):Mf(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]=SP(t);return Mf(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 Pw(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=SS(t,St.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return _S(ln.parseFormat(t),St.fromObject(r)).map(i=>i.val).join("")}static resetCache(){Hw=void 0,Zw={}}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?CS(this).weekYear:NaN}get weekNumber(){return this.isValid?CS(this).weekNumber:NaN}get weekday(){return this.isValid?CS(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?TS(this).weekday:NaN}get localWeekNumber(){return this.isValid?TS(this).weekNumber:NaN}get localWeekYear(){return this.isValid?TS(this).weekYear:NaN}get ordinal(){return this.isValid?Ww(this.c).ordinal:NaN}get monthShort(){return this.isValid?ia.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ia.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ia.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ia.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=ff(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=Gw(a,s),g=Gw(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Cu(this,{ts:a}),Cu(this,{ts:d})]:[this]}get isInLeapYear(){return Su(this.year)}get daysInMonth(){return yf(this.year,this.month)}get daysInYear(){return this.isValid?wc(this.year):NaN}get weeksInWeekYear(){return this.isValid?xu(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?xu(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]=qw(s,o,t)}return Cu(this,{ts:i,zone:t})}else return e.invalid(ig(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return Cu(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=bf(t,UP),{minDaysInFirstWeek:n,startOfWeek:i}=oS(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=nS({...Zh(this.c,n,i),...r},n,i):qe(r.ordinal)?(g={...this.toObject(),...r},qe(r.day)&&(g.day=Math.min(yf(g.year,g.month),g.day))):g=iS({...Ww(this.c),...r});let[v,E]=qw(g,this.o,this.zone);return Cu(this,{ts:v,o:E})}plus(t){if(!this.isValid)return this;let r=gr.fromDurationLike(t);return Cu(this,$P(this,r))}minus(t){if(!this.isValid)return this;let r=gr.fromDurationLike(t).negate();return Cu(this,$P(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):ES}toLocaleString(t=dc,r={}){return this.isValid?ln.create(this.loc.clone(r),t).formatDateTime(this):ES}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=PS(this,s);return c+="T",c+=VP(this,s,r,n,i,o),c}toISODate({format:t="extended"}={}){return this.isValid?PS(this,t==="extended"):null}toISOWeekDate(){return jw(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":"")+VP(this,s==="extended",r,t,n,o):null}toRFC2822(){return jw(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return jw(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?PS(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")),jw(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():ES}[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=iP(r).map(gr.normalizeUnit),s=t.valueOf()>this.valueOf(),c=s?this:t,a=s?t:this,d=AP(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?na.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),WP(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?WP(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 lS(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new vr("max requires all arguments be DateTimes");return lS(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 xS(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 ng(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):Mf(c,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return dc}static get DATE_MED(){return Eh}static get DATE_MED_WITH_WEEKDAY(){return $x}static get DATE_FULL(){return Ch}static get DATE_HUGE(){return Th}static get TIME_SIMPLE(){return Ph}static get TIME_WITH_SECONDS(){return Mh}static get TIME_WITH_SHORT_OFFSET(){return Ah}static get TIME_WITH_LONG_OFFSET(){return Ih}static get TIME_24_SIMPLE(){return Lh}static get TIME_24_WITH_SECONDS(){return kh}static get TIME_24_WITH_SHORT_OFFSET(){return Nh}static get TIME_24_WITH_LONG_OFFSET(){return Oh}static get DATETIME_SHORT(){return Rh}static get DATETIME_SHORT_WITH_SECONDS(){return Dh}static get DATETIME_MED(){return Fh}static get DATETIME_MED_WITH_SECONDS(){return $h}static get DATETIME_MED_WITH_WEEKDAY(){return Vx}static get DATETIME_FULL(){return Vh}static get DATETIME_FULL_WITH_SECONDS(){return Uh}static get DATETIME_HUGE(){return zh}static get DATETIME_HUGE_WITH_SECONDS(){return Wh}}});var Nn=R(()=>{gc();rg();yS();bS();vu();hf();mc();eS();Lw();hc()});function Tu(e){return e instanceof kr?e===Zr.instance:e?.toString().toLowerCase()==="unknown"}function Yw(e){return Tu(e)?Zr.instance:e}var Zr,og=R(()=>{Nn();Zr=class{};Zr.instance=new or("Etc/UTC")});function Af(e,t,r){return e<t?e-t:e>r?e-r:0}function If(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 MS(Jw.TimeZoneNotRecognized);return null}return r}var Jw,FG,MS,Lf,AS=R(()=>{lc();og();Nn();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(Jw||(Jw={}));FG={[Jw.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},MS=class e extends Error{constructor(t,r){super(gs(FG[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};Lf=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:If(n,1,d),year:t,month:If(r,1,12),hour:If(i,0,23),minute:If(o,0,59),second:If(s,0,59),millisecond:If(c,0,999)},{zone:Lo(a)});return h=h.plus({months:Af(r,1,12),days:Af(n,1,d),hours:Af(i,0,23),minutes:Af(o,0,59),seconds:Af(s,0,59),milliseconds:Af(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 Pu(e){return Pt(()=>VG(e))}var $G,oi=R(()=>{$G={remove:()=>{}}});function ZP(){let e=IS?.getAttribute("lang"),t=globalThis.navigator?.language;return zG??e??t??"en"}function Yi(){return sg===void 0&&(sg=ZP()),sg}function LS(e){return Xw.push(e),Pt(()=>Xw.splice(Xw.indexOf(e),1))}function kf(e){return Qw.push(e),Pt(()=>Qw.splice(Qw.indexOf(e),1))}function HP(){let e=UG??ZP();sg!==e&&([...Qw].forEach(t=>t(e)),sg=e,[...Xw].forEach(t=>t(e)))}var UG,sg,zG,IS,Xw,Qw,_c=R(()=>{oi();zG=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,IS=globalThis.document?.documentElement;Xw=[];Qw=[];globalThis.addEventListener?.("languagechange",HP),IS&&new MutationObserver(()=>{HP()}).observe(IS,{attributeFilter:["lang"]})});function YP(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,ag=R(()=>{AS();_c();Nn();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=YP(t)),!t)return"";let n=this.toDateTime("unknown");return Lf.dateTimeToArcadeDate(n).toFormat(t,{locale:Yi(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return Lf.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=YP(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,xc=R(()=>{lc();(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(gs(WG[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function JP(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var vn,cg=R(()=>{Nn();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 JP(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return JP(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 Kw,ey=R(()=>{Kw="20250110"});var Mt,Sc=R(()=>{rt();hs();ey();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&&(A8(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.${Kw}/assets`}Mt.defaultAssetsPath=Mt.assetsPath}});function BG(e,t,...r){console[e](`[${t}]`,...r)}function GG(...e){return O8(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var XP,ot,it=R(()=>{Sc();rt();lc();XP={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 XP[this._parentWithMember("level",r)]<=XP[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 kS=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 DS(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 KP(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 eM(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function ry(e,t){return t!=null&&e&&!(t instanceof e)}function tM(e){return e&&"isCollection"in e}function QP(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function JG(e,t){if(!t?.constructor||!tM(t.constructor))return NS(e,t)?t:new e(t);let r=QP(e.prototype.itemType),n=QP(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(NS(e,t),t):new e(t):t}function NS(e,t){return!!eM(t)&&(Nf().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+ny(e)+"'"),!0)}function FS(e,t){return t==null?t:tM(e)?JG(e,t):ry(e,t)?NS(e,t)?t:new e(t):t}function ny(e){return e?.prototype?.declaredClass||"unknown"}function QG(e){switch(e){case Number:return t=>DS(t);case ai:return ZG;case Boolean:return qG;case String:return HG;case Date:return jG;case ug:return YG;default:return ty(XG,e,()=>FS.bind(null,e))}}function si(e,t){let r=QG(e);return arguments.length===1?r:r(t)}function Of(e,t,r){return arguments.length===1?Of.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function rM(e,t){return arguments.length===1?Of(r=>si(e,r)):Of(r=>si(e,r),t)}function nM(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>nM(e,t-1,n)):e(r)}function lg(e,t,r){if(arguments.length===2)return o=>lg(e,t,o);if(!r)return r;r=nM(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 iM(e,t,r){return arguments.length===2?lg(n=>si(e,n),t):lg(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(", ")),Nf().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(", ")),Nf().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):Nf().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 Nf().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"&&!eM(a)){let g={};for(let v in a)v!==e.key&&(g[v]=a[v]);return h(g)}return h(a)}}function oM(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function $S(e){switch(e.type){case"native":return si(e.value);case"array":return Of($S(e.value));case"one-of":return KG(e);default:return null}}function KG(e){let t=null;return(r,n)=>RS(r,e)?r:(t==null&&(t=OS(e)),Nf().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function OS(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 ug:return"null";default:return ny(e.value)}case"array":return`array of ${OS(e.value)}`;case"one-of":{let t=e.values.map(r=>OS(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function RS(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 ug:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!RS(r,t.value));case"one-of":return t.values.some(r=>RS(e,r))}}var Nf,XG,ai,ug,Ji=R(()=>{rt();it();kS();Nf=()=>ot.getLogger("esri.core.accessorSupport.ensureTypes");XG=new WeakMap;ai=class{},ug=class{}});function Ci(e){return e.__accessor__??null}function aM(e,t){return e?.metadata?.[t]!=null}function Rf(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 sM(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(...sM(r));return t}return sM(e)}function VS(e,t,r,n){let i=ej(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return Pu(o)}return n(e,i[0],r)}var oa=R(()=>{oi();mr()});function cM(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 aM(n,r)?n.get(r):t[r]}function lM(e,t,r){if(e==null)return e;let n=cM(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:lM(n,t,r+1)}function Mu(e,t,r=0){return typeof t!="string"||t.includes(".")?lM(e,ay(t),r):cM(t,e)}function ws(e,t){return Mu(e,t)}function US(e,t){return Mu(t,e)!==void 0}var Au=R(()=>{oa()});function Ec(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 Df(e,t){let r=Ec(e),n=r[t];return n||(n=r[t]={}),n}function uM(e,t){return Rf(e,t,rj)}function rj(e){return tj.test(e)?"replace":"merge"}var tj,Ff=R(()=>{mr();oa();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 $f,zS=R(()=>{hs();$f=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,On=R(()=>{mr();it();zS();Ge=class e extends $f{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 Vf(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Vf(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Vf(ws(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 WS=R(()=>{On();rt();it();Au()});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=Df(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=ws(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=ws(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Vf(this,a,g)})}let s=e.type,c=e.types;if(!i.cast){let a;s?a=aj(s):c&&(a=Array.isArray(c)?Of(ko(c[0])):ko(c)),e.cast=cj(e.cast,a)}uM(i,e),e.range&&(i.cast=KP(i.cast,e.range))}}function cy(e,t,r){let n=Df(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(oM(e))return $S(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):lg(oy(n),t);if(t===1)return rM(n);if(t>1)return iM(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();Au();Ff();WS()});var ly,BS=R(()=>{ly=Symbol("Accessor-beforeDestroy")});var dn,dg=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 ys,pg=R(()=>{ys=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){mg.onAccessed(e)}function No(e,t,r){if(dy)return GS(e,t,r);let n=null;return fM(e),n=t.call(r),mM(),n}function pM(e,t){return No(fy,e,t)}function GS(e,t,r){let n=dy;dy=!0,fM(e);let i=null;try{i=t.call(r)}catch(o){py&&ot.getLogger("esri.core.accessorSupport.tracking").error(o)}return mM(),dy=n,i}function fM(e){mg=e,fg.push(e)}function mM(){let e=fg.length;if(e>1){let t=fg.pop();mg=fg[e-2],t.onTrackingEnd()}else if(e===1){let t=fg.pop();mg=fy,t.onTrackingEnd()}else mg=fy}function jS(e,t){if(t.flags&bt.DepTrackingInitialized)return;t.flags|=bt.DepTrackingInitialized;let r=py;py=!1,t.flags&bt.AutoTracked?GS(t.trackingTarget,t.metadata.get,e):qS(e,t),py=r}function qS(e,t){t.flags&bt.ExplicitlyTracking||(t.flags|=bt.ExplicitlyTracking,GS(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=dM(s,i[o],o!==i.length-1)}else dM(e,n,!1)}),t.flags&=~bt.ExplicitlyTracking)}function dM(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),jS(e,o))}return r?e[n]:void 0}var fy,fg,mg,dy,py,lj,Iu=R(()=>{rt();it();oa();uy();pg();fy=new ys,fg=[],mg=fy;dy=!1,py=!1;lj=[]});function hM(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 gM=R(()=>{});var hg,wM=R(()=>{zS();hg=class extends $f{constructor(t,r,n){super(t,r,n)}};hg.prototype.type="warning"});function my(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var HS=R(()=>{});function YS(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||pj(e)&&ea("read.reader",JS(e),t))}function JS(e){let t=e.ndimArray??0;if(t>1)return dj(e);if(t===1)return yM(e);if("type"in e&&vM(e.type)){let r=e.type.prototype?.itemType?.Type,n=yM(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let c=n(i,o,s);return c&&new e.type(c)}}return XS(e)}function XS(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 ZS().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 bM(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>bM(e,i,r,n-1)):e(t,void 0,r)}function dj(e){let t=XS(e),r=bM.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 yM(e){let t=XS(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 vM(e){if(!my(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?QS(t.Type):_M(t.Type))}function pj(e){return"types"in e?_M(e.types):QS(e.type)}function QS(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||vM(e))}function _M(e){for(let t in e.typeMap)if(!QS(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 ZS().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 hg(`${r}:unsupported`,v,{definition:i,context:s})),void ZS().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=Ec(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 ZS,KS=R(()=>{it();hs();wM();Ff();HS();ZS=()=>ot.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function CM(e){if(e.json||(e.json={}),SM(e.json),EM(e.json),xM(e.json),e.json.origins)for(let t in e.json.origins)SM(e.json.origins[t]),EM(e.json.origins[t]),xM(e.json.origins[t]);return!0}function xM(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 SM(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 EM(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 TM=R(()=>{});function e4(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=gg}function hj(e){return(t,r,n,i)=>t?PM(t,e,i)?gg(t,r,n,i):void 0:gg(t,r,n,i)}function PM(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)?gg(t,r,n,i):gg(t.filter(o=>PM(o,e,i)),r,n,i)}function gg(e,t,r,n){ea(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)],ea(r,i,t)}function MM(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>MM(n,t,r-1)):hy(e,t)}function bj(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=MM(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]}ea(n,o,r)}}var AM=R(()=>{On();it();hs();HS()});function IM(e,t){return r4(e,"any",t?.origin)}function gy(e,t){return r4(e,"read",t?.origin)}function LM(e,t){return r4(e,"write",t?.origin)}function r4(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;YS(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),e4(i,n)}YS(t,e.json,!0),e4(t,e.json)}function _j(e){return e.json.types?t4(e.json):e.type?kM(e):t4(e)}function xj(e){return e.type?kM(e):t4(e)}function kM(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 t4(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 NM(e){CM(e)&&(hM(e),vj(e))}var wy=R(()=>{Ji();gM();KS();TM();AM()});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")&&!n4.has(i.initialize)&&(n4.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!i4.has(i.destroy)&&(i4.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);n4.clear(),i4.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__=Ec(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=Ec(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];NM(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?OM("read-only",i):c.lifecycle===dn.CONSTRUCTED&&o.constructOnly?OM("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 n4,i4,OM,ft=R(()=>{rt();it();BS();dg();Ff();Iu();wy();n4=new Set,i4=new Set;OM=(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=RM.get(e);i||(i=new Set,RM.set(e,i)),i.has(t)||(i.add(t),e.warn(n))}function DM(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 YU=Object.defineProperty;var mT=(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 hT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hs=(e,t)=>{for(var r in t)YU(e,r,{get:t[r],enumerable:!0})};function HW(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 ZW(e,t,r){let{subscribe:n}=YW(t);return n(i=>{i.some(s=>HW(e,s.target))&&r()})}function YW(e){let t=e.join(","),r=Ox[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(),Ox[t]=void 0)}}}};return Ox[t]=o,o}function JW(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 XW(e,t,r){return JW(e,`[${t}]`)?.getAttribute(t)??r}function Ot(e,t,...r){try{return e?.call(t,...r)}catch(n){console.error(n,e)}}async function _h(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 tB(e,t,r=""){let n=`${t}/${r}`,i=`${n}${e}.json`;return Rx[i]??(Rx[i]=i8(e,n)),await Rx[i]}async function i8(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===xw?{}:await i8(xw,t)}function Dx(e){let t=XW(e,"lang",globalThis.navigator?.language||xw);return{lang:t,t9nLocale:o8(t)}}function o8(e){let[t,r]=e.split("-"),n=t.toLowerCase(),i=n;return r&&(i=`${n}-${r.toUpperCase()}`),i=eB[i]??i,KW.has(i)?i:r?o8(n):xw}function s8(e,t,r,n){let i,o=()=>void rB(e,t,n).then(s=>{(i?.lang!==s.lang||i.t9nLocale!==s.t9nLocale||i.t9nStrings!==s.t9nStrings)&&r(s),i=s}).catch(console.error);return o(),ZW(e,["lang"],o)}async function rB(e,t,r=e.tagName.toLowerCase().split("-").slice(1).join("-")){let{lang:n,t9nLocale:i}=Dx(e),o=`${t}/${r}/t9n`,c=r===null?{}:await tB(i,o,"messages.");return{lang:n,t9nLocale:i,t9nStrings:c}}function a8(e,t){let r=t>iB?oB:t/sB,n=0,i=setInterval(()=>{n+=r,n>=t&&(clearInterval(i),e())},r);return i}function c8(e){return e!==void 0}var xo,Ox,QW,KW,xw,eB,Rx,Sw,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})}};Ox={};QW=["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"],KW=new Set(QW),xw="en",eB={pt:"pt-PT",nb:"no",zh:"zh-CN"};Rx={};Sw=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 sc[e]=="function"?sc[e]=sc[e](globalThis):sc[e]}var sc,rt=R(()=>{sc=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},me.add=(e,t,r,n)=>{(n||sc[e]===void 0)&&(sc[e]=t),r&&me(e)},me.cache=sc,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",!0),(()=>{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 bu,Hr=R(()=>{bu=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}};bu._m=2147483647,bu._a=48271,bu._c=0});function ac(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 Fx(e,t,r,n){n=n||l8;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 u8(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||l8;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 d8(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function p8(e,t){return e!=null}var aB,ece,xh,l8,Eo,tce,cc=R(()=>{Hr();aB=1.5,ece=1/aB;xh=class{constructor(){this.last=0}},l8=new xh;Eo=new Set;tce=new bu});function f8(e){return e?.constructor?.name==="Int8Array"}function m8(e){return e?.constructor?.name==="Uint8Array"}function h8(e){return e?.constructor?.name==="Uint8ClampedArray"}function g8(e){return e?.constructor?.name==="Int16Array"}function w8(e){return e?.constructor?.name==="Uint16Array"}function y8(e){return e?.constructor?.name==="Int32Array"}function b8(e){return e?.constructor?.name==="Uint32Array"}function v8(e){return e?.constructor?.name==="Float32Array"}function _8(e){return e?.constructor?.name==="Float64Array"}var x8=R(()=>{rt()});function Tw(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&Tw(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=P8(e);if(t!=null)return t;if(E8(e))return e.clone();if(C8(e))return e.map(Ye);if(T8(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 Cw(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=P8(e);if(t!=null)return t;if(C8(e)){let n=!0,i=e.map(o=>{let s=Cw(o);return o!=null&&s==null&&(n=!1),s});return n?i:null}if(E8(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(T8(e))return null;let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=Cw(i);if(i!=null&&o==null)return null;r[n]=o}return r}function E8(e){return typeof e.clone=="function"}function C8(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function T8(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function S8(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function P8(e){if(f8(e)||m8(e)||h8(e)||g8(e)||w8(e)||y8(e)||b8(e)||v8(e)||_8(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 Sh(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 M8(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)&&ac(e,t):e instanceof Set?t instanceof Set&&lB(e,t):e instanceof Map?t instanceof Map&&uB(e,t):!!S8(e)&&S8(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(()=>{cc();x8()});function A8(e,t,r=!1){return L8(e,t,r)}function ji(e,t){if(t!=null)return t[e]||I8(e.split("."),!1,t)}function ea(e,t,r){let n=e.split("."),i=n.pop(),o=I8(n,!0,r);o&&i&&(o[i]=t)}function I8(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 L8(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]=L8(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var hs=R(()=>{mr()});function k8(e){return e??""}function gs(e,t){return t?e.replaceAll(dB,typeof t=="object"?(r,n)=>k8(ji(n,t)):(r,n)=>k8(t(n))):e}function N8(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function O8(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,lc=R(()=>{hs();dB=/\{([^}]+)\}/g});var ta,Pw,Mw,Aw,Co,pf,vr,To,uc=R(()=>{ta=class extends Error{},Pw=class extends ta{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},Mw=class extends ta{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},Aw=class extends ta{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Co=class extends ta{},pf=class extends ta{constructor(t){super(`Invalid unit ${t}`)}},vr=class extends ta{},To=class extends ta{constructor(){super("Zone is an abstract class")}}});var ke,Po,Si,dc,Eh,$x,Ch,Th,Ph,Mh,Ah,Ih,Lh,kh,Nh,Oh,Rh,Dh,Fh,$h,Vx,Vh,Uh,zh,Wh,Bh=R(()=>{ke="numeric",Po="short",Si="long",dc={year:ke,month:ke,day:ke},Eh={year:ke,month:Po,day:ke},$x={year:ke,month:Po,day:ke,weekday:Po},Ch={year:ke,month:Si,day:ke},Th={year:ke,month:Si,day:ke,weekday:Si},Ph={hour:ke,minute:ke},Mh={hour:ke,minute:ke,second:ke},Ah={hour:ke,minute:ke,second:ke,timeZoneName:Po},Ih={hour:ke,minute:ke,second:ke,timeZoneName:Si},Lh={hour:ke,minute:ke,hourCycle:"h23"},kh={hour:ke,minute:ke,second:ke,hourCycle:"h23"},Nh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Po},Oh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Si},Rh={year:ke,month:ke,day:ke,hour:ke,minute:ke},Dh={year:ke,month:ke,day:ke,hour:ke,minute:ke,second:ke},Fh={year:ke,month:Po,day:ke,hour:ke,minute:ke},$h={year:ke,month:Po,day:ke,hour:ke,minute:ke,second:ke},Vx={year:ke,month:Po,day:ke,weekday:Po,hour:ke,minute:ke},Vh={year:ke,month:Si,day:ke,hour:ke,minute:ke,timeZoneName:Po},Uh={year:ke,month:Si,day:ke,hour:ke,minute:ke,second:ke,timeZoneName:Po},zh={year:ke,month:Si,day:ke,weekday:Si,hour:ke,minute:ke,timeZoneName:Si},Wh={year:ke,month:Si,day:ke,weekday:Si,hour:ke,minute:ke,second:ke,timeZoneName:Si}});var kr,vu=R(()=>{uc();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 Ux,pc,Lw=R(()=>{jn();vu();Ux=null,pc=class e extends kr{static get instance(){return Ux===null&&(Ux=new e),Ux}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return kw(t,r,n)}formatOffset(t,r){return fc(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 Ow[e]||(Ow[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"})),Ow[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 Ow,fB,Nw,or,mc=R(()=>{jn();vu();Ow={};fB={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};Nw={},or=class e extends kr{static create(t){return Nw[t]||(Nw[t]=new e(t)),Nw[t]}static resetCache(){Nw={},Ow={}}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 kw(t,r,n,this.name)}formatOffset(t,r){return fc(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=ff({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=R8[r];return n||(n=new Intl.ListFormat(e,t),R8[r]=n),n}function Wx(e,t={}){let r=JSON.stringify([e,t]),n=zx[r];return n||(n=new Intl.DateTimeFormat(e,t),zx[r]=n),n}function wB(e,t={}){let r=JSON.stringify([e,t]),n=Bx[r];return n||(n=new Intl.NumberFormat(e,t),Bx[r]=n),n}function yB(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=Gx[i];return o||(o=new Intl.RelativeTimeFormat(e,t),Gx[i]=o),o}function bB(){return Gh||(Gh=new Intl.DateTimeFormat().resolvedOptions().locale,Gh)}function vB(e){let t=D8[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,D8[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=Wx(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=Wx(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 Rw(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 R8,zx,Bx,Gx,Gh,D8,jx,qx,Hx,TB,St,qh=R(()=>{jn();$w();hc();gc();mc();R8={};zx={};Bx={};Gx={};Gh=null;D8={};jx=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):mf(t,3);return hr(r,this.padTo)}}},qx=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=Wx(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()}},Hx=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&Dw()&&(this.rtf=yB(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):F8(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=jh(i)||xt.defaultWeekSettings;return new e(c,a,d,h,s)}static resetCache(){Gh=null,zx={},Bx={},Gx={}}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,jh(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 Rw(this,t,Zx,()=>{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 Rw(this,t,Yx,()=>{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 Rw(this,void 0,()=>Jx,()=>{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 Rw(this,t,Xx,()=>{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 jx(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new qx(t,this.intl,r)}relFormatter(t={}){return new Hx(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:Fw()?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 Kx,Rt,hf=R(()=>{jn();vu();Kx=null,Rt=class e extends kr{static get utcInstance(){return Kx===null&&(Kx=new e(0)),Kx}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(_u(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${fc(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${fc(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return fc(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 gf,eS=R(()=>{vu();gf=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($8(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?pc.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 gf(e)}var Vw=R(()=>{vu();mc();hf();eS();jn();Lw()});function U8(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(tS.hanidec)!==-1)t+=PB.indexOf(e[r]);else for(let i in V8){let[o,s]=V8[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function z8(){wf={}}function qi({numberingSystem:e},t=""){let r=e||"latn";return wf[r]||(wf[r]={}),wf[r][t]||(wf[r][t]=new RegExp(`${tS[r]}${t}`)),wf[r][t]}var tS,V8,PB,wf,rS=R(()=>{tS={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"},V8={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=tS.hanidec.replace(/[\[|\]]/g,"").split("");wf={}});var W8,B8,G8,j8,q8,H8,Z8,Y8,xt,hc=R(()=>{Lw();mc();qh();gc();Vw();jn();rS();W8=()=>Date.now(),B8="system",G8=null,j8=null,q8=null,H8=60,Y8=null,xt=class{static get now(){return W8}static set now(t){W8=t}static set defaultZone(t){B8=t}static get defaultZone(){return Mo(B8,pc.instance)}static get defaultLocale(){return G8}static set defaultLocale(t){G8=t}static get defaultNumberingSystem(){return j8}static set defaultNumberingSystem(t){j8=t}static get defaultOutputCalendar(){return q8}static set defaultOutputCalendar(t){q8=t}static get defaultWeekSettings(){return Y8}static set defaultWeekSettings(t){Y8=jh(t)}static get twoDigitCutoffYear(){return H8}static set twoDigitCutoffYear(t){H8=t%100}static get throwOnInvalid(){return Z8}static set throwOnInvalid(t){Z8=t}static resetCaches(){St.resetCache(),or.resetCache(),Ce.resetCache(),z8()}}});var cn,Hh=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 Uw(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 Q8(e,t,r){return r+(Su(e)?X8:J8)[t-1]}function K8(e,t){let r=Su(e)?X8:J8,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function zw(e,t){return(e-t+7)%7+1}function Zh(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=Q8(n,i,o),c=zw(Uw(n,i,o),r),a=Math.floor((s-c+14-t)/7),d;return a<1?(d=n-1,a=xu(d,t,r)):a>xu(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...Jh(e)}}function nS(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=zw(Uw(n,1,t),r),c=wc(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=wc(d)):a>c?(d=n+1,a-=wc(n)):d=n;let{month:h,day:g}=K8(d,a);return{year:d,month:h,day:g,...Jh(e)}}function Ww(e){let{year:t,month:r,day:n}=e,i=Q8(t,r,n);return{year:t,ordinal:i,...Jh(e)}}function iS(e){let{year:t,ordinal:r}=e,{month:n,day:i}=K8(t,r);return{year:t,month:n,day:i,...Jh(e)}}function oS(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 eP(e,t=4,r=1){let n=Yh(e.weekYear),i=Ei(e.weekNumber,1,xu(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 tP(e){let t=Yh(e.year),r=Ei(e.ordinal,1,wc(e.year));return t?r?!1:Hi("ordinal",e.ordinal):Hi("year",e.year)}function sS(e){let t=Yh(e.year),r=Ei(e.month,1,12),n=Ei(e.day,1,yf(e.year,e.month));return t?r?n?!1:Hi("day",e.day):Hi("month",e.month):Hi("year",e.year)}function aS(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 J8,X8,cS=R(()=>{jn();Hh();uc();J8=[0,31,59,90,120,151,181,212,243,273,304,334],X8=[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 Yh(e){return typeof e=="number"&&e%1===0}function $8(e){return typeof e=="string"}function nP(e){return Object.prototype.toString.call(e)==="[object Date]"}function Dw(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Fw(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function iP(e){return Array.isArray(e)?e:[e]}function lS(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 oP(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function yc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function jh(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 Yh(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 ra(e){if(!(qe(e)||e===null||e===""))return parseInt(e,10)}function bc(e){if(!(qe(e)||e===null||e===""))return parseFloat(e)}function Xh(e){if(!(qe(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function mf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Su(e){return e%4===0&&(e%100!==0||e%400===0)}function wc(e){return Su(e)?366:365}function yf(e,t){let r=MB(t-1,12)+1,n=e+(t-r)/12;return r===2?Su(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function ff(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 rP(e,t,r){return-zw(Uw(e,1,t),r)+t-1}function xu(e,t=4,r=1){let n=rP(e,t,r),i=rP(e+1,t,r);return(wc(e)-n+i)/7}function Qh(e){return e>99?e:e>xt.twoDigitCutoffYear?1900+e:2e3+e}function kw(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 _u(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 uS(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new vr(`Invalid unit value ${e}`);return t}function bf(e,t){let r={};for(let n in e)if(yc(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=uS(i)}return r}function fc(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 Jh(e){return oP(e,["hour","minute","second","millisecond"])}var jn=R(()=>{uc();hc();cS()});function Zx(e){switch(e){case"narrow":return[...IB];case"short":return[...dS];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 Yx(e){switch(e){case"narrow":return[...LB];case"short":return[...fS];case"long":return[...pS];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function Xx(e){switch(e){case"narrow":return[...OB];case"short":return[...NB];case"long":return[...kB];default:return null}}function sP(e){return Jx[e.hour<12?0:1]}function aP(e,t){return Yx(t)[e.weekday-1]}function cP(e,t){return Zx(t)[e.month-1]}function lP(e,t){return Xx(t)[e.year<0?0:1]}function F8(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,dS,IB,pS,fS,LB,Jx,kB,NB,OB,$w=R(()=>{Bh();jn();AB=["January","February","March","April","May","June","July","August","September","October","November","December"],dS=["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"];pS=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],fS=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],LB=["M","T","W","T","F","S","S"];Jx=["AM","PM"],kB=["Before Christ","Anno Domini"],NB=["BC","AD"],OB=["B","A"]});function uP(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var RB,ln,Kh=R(()=>{$w();Bh();jn();RB={D:dc,DD:Eh,DDD:Ch,DDDD:Th,t:Ph,tt:Mh,ttt:Ah,tttt:Ih,T:Lh,TT:kh,TTT:Nh,TTTT:Oh,f:Rh,ff:Fh,fff:Vh,ffff:zh,F:Dh,FF:$h,FFF:Uh,FFFF:Wh},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?sP(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(E,P)=>n?cP(t,E):o(P?{month:E}:{month:E,day:"numeric"},"month"),d=(E,P)=>n?aP(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?lP(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 uP(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 uP(o,i(c))}}});function _f(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function xf(...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 Sf(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 fP(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=ra(t[r+i]);return[n,null,r+i]}}function vf(e,t,r){let n=e[t];return qe(n)?r:ra(n)}function GB(e,t){return[{year:vf(e,t),month:vf(e,t+1,1),day:vf(e,t+2,1)},null,t+3]}function Ef(e,t){return[{hours:vf(e,t,0),minutes:vf(e,t+1,0),seconds:vf(e,t+2,0),milliseconds:Xh(e[t+3])},null,t+4]}function eg(e,t){let r=!e[t]&&!e[t+1],n=_u(e[t+1],e[t+2]),i=r?null:Rt.instance(n);return[{},i,t+3]}function tg(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(bc(r)),months:v(bc(n)),weeks:v(bc(i)),days:v(bc(o)),hours:v(bc(s)),minutes:v(bc(c)),seconds:v(bc(a),a==="-0"),milliseconds:v(Xh(d),g)}]}function gS(e,t,r,n,i,o,s){let c={year:t.length===2?Qh(ra(t)):ra(t),month:dS.indexOf(r)+1,day:ra(n),hour:ra(i),minute:ra(o)};return s&&(c.second=ra(s)),e&&(c.weekday=e.length>3?pS.indexOf(e)+1:fS.indexOf(e)+1),c}function JB(e){let[,t,r,n,i,o,s,c,a,d,h,g]=e,v=gS(t,i,n,r,o,s,c),E;return a?E=ZB[a]:d?E=0:E=_u(h,g),[v,new Rt(E)]}function XB(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function dP(e){let[,t,r,n,i,o,s,c]=e;return[gS(t,i,n,r,o,s,c),Rt.utcInstance]}function tG(e){let[,t,r,n,i,o,s,c]=e;return[gS(t,c,r,n,i,o,s),Rt.utcInstance]}function yP(e){return Sf(e,[rG,wP],[nG,sG],[iG,aG],[oG,cG])}function bP(e){return Sf(XB(e),[YB,JB])}function vP(e){return Sf(e,[QB,dP],[KB,dP],[eG,tG])}function _P(e){return Sf(e,[qB,HB])}function xP(e){return Sf(e,[jB,lG])}function SP(e){return Sf(e,[uG,wP],[dG,pG])}var pP,mP,DB,mS,hP,hS,FB,$B,VB,UB,zB,WB,gP,BB,jB,qB,ZB,YB,QB,KB,eG,rG,nG,iG,oG,wP,sG,aG,cG,lG,uG,dG,pG,wS=R(()=>{jn();$w();hf();mc();pP=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;mP=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,DB=`(?:${mP.source}?(?:\\[(${pP.source})\\])?)?`,mS=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,hP=RegExp(`${mS.source}${DB}`),hS=RegExp(`(?:T${hP.source})?`),FB=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,$B=/(\d{4})-?W(\d\d)(?:-?(\d))?/,VB=/(\d{4})-?(\d{3})/,UB=fP("weekYear","weekNumber","weekDay"),zB=fP("year","ordinal"),WB=/(\d{4})-(\d\d)-(\d\d)/,gP=RegExp(`${mS.source} ?(?:${mP.source}|(${pP.source}))?`),BB=RegExp(`(?: ${gP.source})?`);jB=RegExp(`^T?${mS.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=_f(FB,hS),nG=_f($B,hS),iG=_f(VB,hS),oG=_f(hP),wP=xf(GB,Ef,eg,tg),sG=xf(UB,Ef,eg,tg),aG=xf(zB,Ef,eg,tg),cG=xf(Ef,eg,tg);lG=xf(Ef);uG=_f(WB,BB),dG=_f(gP),pG=xf(Ef,eg,tg)});function vc(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 PP(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 CP(e,t){let r=PP(e,t)<0?-1:1;Eu.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),Eu.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 EP,TP,fG,Zi,Cf,mG,Eu,hG,gr,rg=R(()=>{uc();Kh();Hh();qh();wS();jn();hc();gc();EP="Invalid Duration",TP={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},...TP},Zi=146097/400,Cf=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:Cf/7,days:Cf,hours:Cf*24,minutes:Cf*24*60,seconds:Cf*24*60*60,milliseconds:Cf*24*60*60*1e3},...TP},Eu=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],hG=Eu.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:bf(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]=_P(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]=xP(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 Aw(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 pf(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):EP}toHuman(t={}){if(!this.isValid)return EP;let r=Eu.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+=mf(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?PP(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 Eu)(yc(r.values,i)||yc(this.values,i))&&(n[i]=r.get(i)+this.get(i));return vc(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]=uS(t(this.values[n],n));return vc(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...bf(t,e.normalizeUnit)};return vc(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 vc(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return CP(this.matrix,t),vc(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=gG(this.normalize().shiftToAll().toObject());return vc(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 Eu)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 CP(this.matrix,r),vc(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 vc(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 Eu)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function wG(e,t){return!e||!e.isValid?na.invalid("missing or invalid start"):!t||!t.isValid?na.invalid("missing or invalid end"):t<e?na.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 Tf,na,yS=R(()=>{gc();rg();hc();uc();Hh();Kh();Bh();Tf="Invalid Interval";na=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 Mw(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=Pf(t),i=Pf(r),o=wG(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=gr.fromDurationLike(r),i=Pf(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=gr.fromDurationLike(r),i=Pf(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(Pf).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()})`:Tf}[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=dc,r={}){return this.isValid?ln.create(this.s.loc.clone(r),t).formatInterval(this):Tf}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Tf}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Tf}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Tf}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:Tf}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 ia,bS=R(()=>{gc();hc();qh();mc();Vw();jn();ia=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:Dw(),localeWeek:Fw()}}}});function MP(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=MP(a,d);return(h-h%7)/7}],["days",MP]],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 AP(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 IP=R(()=>{rg()});function Tt(e,t=r=>r){return{regex:e,deser:([r])=>t(U8(r))}}function _G(e){return e.replace(/\./g,"\\.?").replace(OP,NP)}function LP(e){return e.replace(/\./g,"").replace(OP," ").toLowerCase()}function Io(e,t){return e===null?null:{regex:RegExp(e.map(_G).join("|")),deser:([r])=>e.findIndex(n=>LP(r)===LP(n))+t}}function kP(e,t){return{regex:e,deser:([,r,n])=>_u(r,n),groups:t}}function Bw(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,Qh);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 Bw(h);case"uu":return Bw(c);case"uuu":return Tt(r);case"a":return Io(t.meridiems(),0);case"kkkk":return Tt(o);case"kk":return Tt(g,Qh);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 kP(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return kP(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return Bw(/[a-z_+-/]{1,256}?/i);case" ":return Bw(/[^\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(yc(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=Xh(e.u)),[Object.keys(e).reduce((o,s)=>{let c=t(s);return c&&(o[c]=e[s]),o},{}),r,n]}function AG(){return vS||(vS=Ce.fromMillis(1555555555555)),vS}function IG(e,t){if(e.literal)return e;let r=ln.macroTokenToFormatOpts(e.val),n=SS(r,t);return n==null||n.includes(void 0)?e:n}function _S(e,t){return Array.prototype.concat(...e.map(r=>IG(r,t)))}function xS(e,t,r){return new ng(e,r).explainFromTokens(t)}function RP(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=xS(e,t,r);return[n,i,o,s]}function SS(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,NP,OP,EG,vS,ng,DP=R(()=>{jn();Kh();hf();mc();gc();rS();uc();bG="missing Intl.DateTimeFormat.formatToParts support";vG="\xA0",NP=`[ ${vG}]`,OP=new RegExp(NP,"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"}};vS=null;ng=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=_S(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(yc(n,"a")&&yc(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 ig(e){return new cn("unsupported zone",`the zone "${e.name}" is not supported`)}function CS(e){return e.weekData===null&&(e.weekData=Zh(e.c)),e.weekData}function TS(e){return e.localWeekData===null&&(e.localWeekData=Zh(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Cu(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 GP(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 Gw(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 qw(e,t,r){return GP(ff(e),t,r)}function $P(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,yf(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=ff(o),[a,d]=GP(c,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function Mf(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 jw(e,t,r=!0){return e.isValid?ln.create(St.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function PS(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 VP(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 pf(e);return t}function UP(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 Zw[e]||(Hw===void 0&&(Hw=xt.now()),Zw[e]=e.offset(Hw)),Zw[e]}function zP(e,t){let r=Mo(t.zone,xt.defaultZone);if(!r.isValid)return Ce.invalid(ig(r));let n=St.fromObject(t),i,o;if(qe(e.year))i=xt.now();else{for(let a of qP)qe(e[a])&&(e[a]=jP[a]);let s=sS(e)||aS(e);if(s)return Ce.invalid(s);let c=DG(r);[i,o]=qw(e,c,r)}return new Ce({ts:i,zone:r,loc:n,o})}function WP(e,t,r){let n=qe(r.round)?!0:r.round,i=(s,c)=>(s=mf(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 BP(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 Pf(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 ES,FP,jP,LG,kG,qP,NG,OG,Hw,Zw,Ce,gc=R(()=>{rg();yS();hc();bS();Kh();hf();qh();jn();Vw();IP();wS();DP();cS();Bh();uc();Hh();ES="Invalid DateTime",FP=864e13;jP={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},qP=["year","month","day","hour","minute","second","millisecond"],NG=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],OG=["year","ordinal","hour","minute","second","millisecond"];Zw={},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:ig(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=Gw(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]=BP(arguments),[n,i,o,s,c,a,d]=r;return zP({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static utc(){let[t,r]=BP(arguments),[n,i,o,s,c,a,d]=r;return t.zone=Rt.utcInstance,zP({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=nP(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(ig(i))}static fromMillis(t,r={}){if(Ao(t))return t<-FP||t>FP?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(ig(n));let i=St.fromObject(r),o=bf(t,UP),{minDaysInFirstWeek:s,startOfWeek:c}=oS(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=Gw(a,d);A?(F=NG,W=LG,z=Zh(z,s,c)):h?(F=OG,W=kG,z=Ww(z)):(F=qP,W=jP);let q=!1;for(let Ee of F){let Ne=o[Ee];qe(Ne)?q?o[Ee]=W[Ee]:o[Ee]=z[Ee]:q=!0}let G=A?eP(o,s,c):h?tP(o):sS(o),Y=G||aS(o);if(Y)return e.invalid(Y);let ie=A?nS(o,s,c):h?iS(o):o,[U,fe]=qw(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]=yP(t);return Mf(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=bP(t);return Mf(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=vP(t);return Mf(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]=RP(s,t,r);return h?e.invalid(h):Mf(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]=SP(t);return Mf(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 Pw(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=SS(t,St.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return _S(ln.parseFormat(t),St.fromObject(r)).map(i=>i.val).join("")}static resetCache(){Hw=void 0,Zw={}}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?CS(this).weekYear:NaN}get weekNumber(){return this.isValid?CS(this).weekNumber:NaN}get weekday(){return this.isValid?CS(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?TS(this).weekday:NaN}get localWeekNumber(){return this.isValid?TS(this).weekNumber:NaN}get localWeekYear(){return this.isValid?TS(this).weekYear:NaN}get ordinal(){return this.isValid?Ww(this.c).ordinal:NaN}get monthShort(){return this.isValid?ia.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ia.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ia.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ia.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=ff(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=Gw(a,s),g=Gw(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Cu(this,{ts:a}),Cu(this,{ts:d})]:[this]}get isInLeapYear(){return Su(this.year)}get daysInMonth(){return yf(this.year,this.month)}get daysInYear(){return this.isValid?wc(this.year):NaN}get weeksInWeekYear(){return this.isValid?xu(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?xu(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]=qw(s,o,t)}return Cu(this,{ts:i,zone:t})}else return e.invalid(ig(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return Cu(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=bf(t,UP),{minDaysInFirstWeek:n,startOfWeek:i}=oS(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=nS({...Zh(this.c,n,i),...r},n,i):qe(r.ordinal)?(g={...this.toObject(),...r},qe(r.day)&&(g.day=Math.min(yf(g.year,g.month),g.day))):g=iS({...Ww(this.c),...r});let[v,E]=qw(g,this.o,this.zone);return Cu(this,{ts:v,o:E})}plus(t){if(!this.isValid)return this;let r=gr.fromDurationLike(t);return Cu(this,$P(this,r))}minus(t){if(!this.isValid)return this;let r=gr.fromDurationLike(t).negate();return Cu(this,$P(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):ES}toLocaleString(t=dc,r={}){return this.isValid?ln.create(this.loc.clone(r),t).formatDateTime(this):ES}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=PS(this,s);return c+="T",c+=VP(this,s,r,n,i,o),c}toISODate({format:t="extended"}={}){return this.isValid?PS(this,t==="extended"):null}toISOWeekDate(){return jw(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":"")+VP(this,s==="extended",r,t,n,o):null}toRFC2822(){return jw(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return jw(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?PS(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")),jw(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():ES}[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=iP(r).map(gr.normalizeUnit),s=t.valueOf()>this.valueOf(),c=s?this:t,a=s?t:this,d=AP(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?na.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),WP(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?WP(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 lS(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new vr("max requires all arguments be DateTimes");return lS(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 xS(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 ng(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):Mf(c,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return dc}static get DATE_MED(){return Eh}static get DATE_MED_WITH_WEEKDAY(){return $x}static get DATE_FULL(){return Ch}static get DATE_HUGE(){return Th}static get TIME_SIMPLE(){return Ph}static get TIME_WITH_SECONDS(){return Mh}static get TIME_WITH_SHORT_OFFSET(){return Ah}static get TIME_WITH_LONG_OFFSET(){return Ih}static get TIME_24_SIMPLE(){return Lh}static get TIME_24_WITH_SECONDS(){return kh}static get TIME_24_WITH_SHORT_OFFSET(){return Nh}static get TIME_24_WITH_LONG_OFFSET(){return Oh}static get DATETIME_SHORT(){return Rh}static get DATETIME_SHORT_WITH_SECONDS(){return Dh}static get DATETIME_MED(){return Fh}static get DATETIME_MED_WITH_SECONDS(){return $h}static get DATETIME_MED_WITH_WEEKDAY(){return Vx}static get DATETIME_FULL(){return Vh}static get DATETIME_FULL_WITH_SECONDS(){return Uh}static get DATETIME_HUGE(){return zh}static get DATETIME_HUGE_WITH_SECONDS(){return Wh}}});var Nn=R(()=>{gc();rg();yS();bS();vu();hf();mc();eS();Lw();hc()});function Tu(e){return e instanceof kr?e===Zr.instance:e?.toString().toLowerCase()==="unknown"}function Yw(e){return Tu(e)?Zr.instance:e}var Zr,og=R(()=>{Nn();Zr=class{};Zr.instance=new or("Etc/UTC")});function Af(e,t,r){return e<t?e-t:e>r?e-r:0}function If(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 MS(Jw.TimeZoneNotRecognized);return null}return r}var Jw,FG,MS,Lf,AS=R(()=>{lc();og();Nn();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(Jw||(Jw={}));FG={[Jw.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},MS=class e extends Error{constructor(t,r){super(gs(FG[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};Lf=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:If(n,1,d),year:t,month:If(r,1,12),hour:If(i,0,23),minute:If(o,0,59),second:If(s,0,59),millisecond:If(c,0,999)},{zone:Lo(a)});return h=h.plus({months:Af(r,1,12),days:Af(n,1,d),hours:Af(i,0,23),minutes:Af(o,0,59),seconds:Af(s,0,59),milliseconds:Af(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 Pu(e){return Pt(()=>VG(e))}var $G,oi=R(()=>{$G={remove:()=>{}}});function ZP(){let e=IS?.getAttribute("lang"),t=globalThis.navigator?.language;return zG??e??t??"en"}function Yi(){return sg===void 0&&(sg=ZP()),sg}function LS(e){return Xw.push(e),Pt(()=>Xw.splice(Xw.indexOf(e),1))}function kf(e){return Qw.push(e),Pt(()=>Qw.splice(Qw.indexOf(e),1))}function HP(){let e=UG??ZP();sg!==e&&([...Qw].forEach(t=>t(e)),sg=e,[...Xw].forEach(t=>t(e)))}var UG,sg,zG,IS,Xw,Qw,_c=R(()=>{oi();zG=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,IS=globalThis.document?.documentElement;Xw=[];Qw=[];globalThis.addEventListener?.("languagechange",HP),IS&&new MutationObserver(()=>{HP()}).observe(IS,{attributeFilter:["lang"]})});function YP(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,ag=R(()=>{AS();_c();Nn();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=YP(t)),!t)return"";let n=this.toDateTime("unknown");return Lf.dateTimeToArcadeDate(n).toFormat(t,{locale:Yi(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return Lf.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=YP(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,xc=R(()=>{lc();(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(gs(WG[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function JP(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var vn,cg=R(()=>{Nn();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 JP(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return JP(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 Kw,ey=R(()=>{Kw="20250111"});var Mt,Sc=R(()=>{rt();hs();ey();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&&(A8(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.${Kw}/assets`}Mt.defaultAssetsPath=Mt.assetsPath}});function BG(e,t,...r){console[e](`[${t}]`,...r)}function GG(...e){return O8(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var XP,ot,it=R(()=>{Sc();rt();lc();XP={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 XP[this._parentWithMember("level",r)]<=XP[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 kS=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 DS(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 KP(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 eM(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function ry(e,t){return t!=null&&e&&!(t instanceof e)}function tM(e){return e&&"isCollection"in e}function QP(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function JG(e,t){if(!t?.constructor||!tM(t.constructor))return NS(e,t)?t:new e(t);let r=QP(e.prototype.itemType),n=QP(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(NS(e,t),t):new e(t):t}function NS(e,t){return!!eM(t)&&(Nf().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+ny(e)+"'"),!0)}function FS(e,t){return t==null?t:tM(e)?JG(e,t):ry(e,t)?NS(e,t)?t:new e(t):t}function ny(e){return e?.prototype?.declaredClass||"unknown"}function QG(e){switch(e){case Number:return t=>DS(t);case ai:return ZG;case Boolean:return qG;case String:return HG;case Date:return jG;case ug:return YG;default:return ty(XG,e,()=>FS.bind(null,e))}}function si(e,t){let r=QG(e);return arguments.length===1?r:r(t)}function Of(e,t,r){return arguments.length===1?Of.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function rM(e,t){return arguments.length===1?Of(r=>si(e,r)):Of(r=>si(e,r),t)}function nM(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>nM(e,t-1,n)):e(r)}function lg(e,t,r){if(arguments.length===2)return o=>lg(e,t,o);if(!r)return r;r=nM(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 iM(e,t,r){return arguments.length===2?lg(n=>si(e,n),t):lg(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(", ")),Nf().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(", ")),Nf().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):Nf().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 Nf().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"&&!eM(a)){let g={};for(let v in a)v!==e.key&&(g[v]=a[v]);return h(g)}return h(a)}}function oM(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function $S(e){switch(e.type){case"native":return si(e.value);case"array":return Of($S(e.value));case"one-of":return KG(e);default:return null}}function KG(e){let t=null;return(r,n)=>RS(r,e)?r:(t==null&&(t=OS(e)),Nf().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function OS(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 ug:return"null";default:return ny(e.value)}case"array":return`array of ${OS(e.value)}`;case"one-of":{let t=e.values.map(r=>OS(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function RS(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 ug:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!RS(r,t.value));case"one-of":return t.values.some(r=>RS(e,r))}}var Nf,XG,ai,ug,Ji=R(()=>{rt();it();kS();Nf=()=>ot.getLogger("esri.core.accessorSupport.ensureTypes");XG=new WeakMap;ai=class{},ug=class{}});function Ci(e){return e.__accessor__??null}function aM(e,t){return e?.metadata?.[t]!=null}function Rf(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 sM(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(...sM(r));return t}return sM(e)}function VS(e,t,r,n){let i=ej(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return Pu(o)}return n(e,i[0],r)}var oa=R(()=>{oi();mr()});function cM(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 aM(n,r)?n.get(r):t[r]}function lM(e,t,r){if(e==null)return e;let n=cM(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:lM(n,t,r+1)}function Mu(e,t,r=0){return typeof t!="string"||t.includes(".")?lM(e,ay(t),r):cM(t,e)}function ws(e,t){return Mu(e,t)}function US(e,t){return Mu(t,e)!==void 0}var Au=R(()=>{oa()});function Ec(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 Df(e,t){let r=Ec(e),n=r[t];return n||(n=r[t]={}),n}function uM(e,t){return Rf(e,t,rj)}function rj(e){return tj.test(e)?"replace":"merge"}var tj,Ff=R(()=>{mr();oa();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 $f,zS=R(()=>{hs();$f=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,On=R(()=>{mr();it();zS();Ge=class e extends $f{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 Vf(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Vf(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Vf(ws(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 WS=R(()=>{On();rt();it();Au()});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=Df(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=ws(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=ws(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Vf(this,a,g)})}let s=e.type,c=e.types;if(!i.cast){let a;s?a=aj(s):c&&(a=Array.isArray(c)?Of(ko(c[0])):ko(c)),e.cast=cj(e.cast,a)}uM(i,e),e.range&&(i.cast=KP(i.cast,e.range))}}function cy(e,t,r){let n=Df(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(oM(e))return $S(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):lg(oy(n),t);if(t===1)return rM(n);if(t>1)return iM(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();Au();Ff();WS()});var ly,BS=R(()=>{ly=Symbol("Accessor-beforeDestroy")});var dn,dg=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 ys,pg=R(()=>{ys=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){mg.onAccessed(e)}function No(e,t,r){if(dy)return GS(e,t,r);let n=null;return fM(e),n=t.call(r),mM(),n}function pM(e,t){return No(fy,e,t)}function GS(e,t,r){let n=dy;dy=!0,fM(e);let i=null;try{i=t.call(r)}catch(o){py&&ot.getLogger("esri.core.accessorSupport.tracking").error(o)}return mM(),dy=n,i}function fM(e){mg=e,fg.push(e)}function mM(){let e=fg.length;if(e>1){let t=fg.pop();mg=fg[e-2],t.onTrackingEnd()}else if(e===1){let t=fg.pop();mg=fy,t.onTrackingEnd()}else mg=fy}function jS(e,t){if(t.flags&bt.DepTrackingInitialized)return;t.flags|=bt.DepTrackingInitialized;let r=py;py=!1,t.flags&bt.AutoTracked?GS(t.trackingTarget,t.metadata.get,e):qS(e,t),py=r}function qS(e,t){t.flags&bt.ExplicitlyTracking||(t.flags|=bt.ExplicitlyTracking,GS(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=dM(s,i[o],o!==i.length-1)}else dM(e,n,!1)}),t.flags&=~bt.ExplicitlyTracking)}function dM(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),jS(e,o))}return r?e[n]:void 0}var fy,fg,mg,dy,py,lj,Iu=R(()=>{rt();it();oa();uy();pg();fy=new ys,fg=[],mg=fy;dy=!1,py=!1;lj=[]});function hM(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 gM=R(()=>{});var hg,wM=R(()=>{zS();hg=class extends $f{constructor(t,r,n){super(t,r,n)}};hg.prototype.type="warning"});function my(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var HS=R(()=>{});function YS(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||pj(e)&&ea("read.reader",JS(e),t))}function JS(e){let t=e.ndimArray??0;if(t>1)return dj(e);if(t===1)return yM(e);if("type"in e&&vM(e.type)){let r=e.type.prototype?.itemType?.Type,n=yM(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let c=n(i,o,s);return c&&new e.type(c)}}return XS(e)}function XS(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 ZS().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 bM(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>bM(e,i,r,n-1)):e(t,void 0,r)}function dj(e){let t=XS(e),r=bM.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 yM(e){let t=XS(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 vM(e){if(!my(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?QS(t.Type):_M(t.Type))}function pj(e){return"types"in e?_M(e.types):QS(e.type)}function QS(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||vM(e))}function _M(e){for(let t in e.typeMap)if(!QS(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 ZS().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 hg(`${r}:unsupported`,v,{definition:i,context:s})),void ZS().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=Ec(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 ZS,KS=R(()=>{it();hs();wM();Ff();HS();ZS=()=>ot.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function CM(e){if(e.json||(e.json={}),SM(e.json),EM(e.json),xM(e.json),e.json.origins)for(let t in e.json.origins)SM(e.json.origins[t]),EM(e.json.origins[t]),xM(e.json.origins[t]);return!0}function xM(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 SM(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 EM(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 TM=R(()=>{});function e4(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=gg}function hj(e){return(t,r,n,i)=>t?PM(t,e,i)?gg(t,r,n,i):void 0:gg(t,r,n,i)}function PM(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)?gg(t,r,n,i):gg(t.filter(o=>PM(o,e,i)),r,n,i)}function gg(e,t,r,n){ea(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)],ea(r,i,t)}function MM(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>MM(n,t,r-1)):hy(e,t)}function bj(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=MM(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]}ea(n,o,r)}}var AM=R(()=>{On();it();hs();HS()});function IM(e,t){return r4(e,"any",t?.origin)}function gy(e,t){return r4(e,"read",t?.origin)}function LM(e,t){return r4(e,"write",t?.origin)}function r4(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;YS(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),e4(i,n)}YS(t,e.json,!0),e4(t,e.json)}function _j(e){return e.json.types?t4(e.json):e.type?kM(e):t4(e)}function xj(e){return e.type?kM(e):t4(e)}function kM(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 t4(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 NM(e){CM(e)&&(hM(e),vj(e))}var wy=R(()=>{Ji();gM();KS();TM();AM()});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")&&!n4.has(i.initialize)&&(n4.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!i4.has(i.destroy)&&(i4.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);n4.clear(),i4.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__=Ec(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=Ec(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];NM(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?OM("read-only",i):c.lifecycle===dn.CONSTRUCTED&&o.constructOnly?OM("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 n4,i4,OM,ft=R(()=>{rt();it();BS();dg();Ff();Iu();wy();n4=new Set,i4=new Set;OM=(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=RM.get(e);i||(i=new Set,RM.set(e,i)),i.has(t)||(i.add(t),e.warn(n))}function DM(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 RM,FM=R(()=>{rt();RM=new WeakMap});function o4(e){return e!=null&&typeof e[Symbol.iterator]=="function"}var $M=R(()=>{});function yy(e){return e||"_default_"}function VM(e){for(let t of e)t instanceof Uf?t.removeAll():t.remove()}function UM(e){return e!=null&&(!!e.remove||e instanceof Uf)}var Uf,zM=R(()=>{$M();Uf=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(o4(t)){let n=this._getOrCreateGroup(r);for(let i of t)UM(i)&&n.push(i)}else UM(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"&&o4(t)){for(let r of t)this.remove(r);return this}return this.has(t)?(VM(this._getGroup(t)),this._groups.delete(yy(t)),this):this}removeAll(){return this._groups.forEach(VM),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 WM(e,t){if(e==null)throw new Error(t??"value is None")}function wg(e){return e?.destroy(),null}function yg(e){return e?.remove(),null}function BM(e){return e?.abort(),null}var Cc=R(()=>{});function Pj(e){return e?.release&&typeof e.release=="function"}function Mj(e){return e?.acquire&&typeof e.acquire=="function"}var Oo,bg=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,GM=R(()=>{cc();by=class{constructor(t,r){this._observers=t,this._observer=r}remove(){d8(this._observers,this._observer)}}});var zf,Aj,s4=R(()=>{oi();GM();zf=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 jM(e){return _y(e)}var ct,ype,Tc=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 vg,qM=R(()=>{s4();Tc();Iu();uy();pg();vg=class extends zf{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this.trackingTarget=new ys(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):(qS(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:pM(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,HM=R(()=>{mr();Tc();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 ZM(e,t,r,n){return e!==void 0&&(!(r==null&&e.flags&bt.NonNullable)||(n.lifecycle,dn.INITIALIZING,!1))}var Ey,c4,a4,YM=R(()=>{rt();mr();it();bg();dg();qM();Tc();HM();Iu();uy();pg();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 vg(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 ys,s=No(o,()=>i.metadata.get?.call(t)),c=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
@@ -6,9 +6,9 @@
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(!ZM(n,t,r,this))return;let i=n.metadata.cast;if(i){let o=this._cast(i,r),{valid:s,value:c}=o;if(a4.release(o),!s)return;r=c}n.flags|=bt.Overridden,this._internalSet(n,r)}set(t,r){let n=this.propertiesByName.get(t);if(!ZM(n,t,r,this))return;let i=n.metadata.cast;if(i){let s=this._cast(i,r),{valid:c,value:a}=s;if(a4.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)&&Sh(r,i.get(o))&&~t.flags&bt.Overridden&&n===i.originOf(o)||(t.invalidate(),i.set(o,r,n),t.commit(),jS(this.host,t))}_cast(t,r){let n=a4.acquire();return n.valid=!0,n.value=r,t&&(n.value=t.call(this.host,r,n)),n}},c4=class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}},a4=new Oo(c4)});function l4(){return Ij}var Ij,JM,XM=R(()=>{(function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"})(JM||(JM={}))});function Lj(e){e.length=0}var qn,u4,Cy=R(()=>{bg();qn=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 u4.acquire()}static release(t){return u4.release(t)}static prune(){u4.prune()}},u4=new qn(100)});var Ty,QM=R(()=>{bg();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 d4(e){Py.push(e),Py.length===1&&queueMicrotask(()=>{let t=Py.slice();Py.length=0;for(let r of t)r()})}var Py,KM=R(()=>{Py=[]});var _g,eA=R(()=>{_g=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 p4,f4,tA=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})(p4||(p4={}));f4=p4});function rA(e){e.data.length>kj*e.length&&(e.data.length=Math.floor(e.length*Nj))}var kj,Nj,xg,nA=R(()=>{cc();tA();kj=1.5,Nj=1.1,xg=class{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new xh,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=()=>rA(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++,rA(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=Fx(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(Fx(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=u8(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){f4.sort(this.data,0,this.length,t)}iterableSort(t){return f4.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 iA,oA=R(()=>{oi();iA=Oj(globalThis)});function Sg(e){return Rj(e)||sA(e)}function Rj(e){return e!=null&&typeof e=="object"&&"on"in e&&typeof e.on=="function"}function sA(e){return e!=null&&typeof e=="object"&&"addEventListener"in e&&typeof e.addEventListener=="function"}function Pc(e,t,r){if(!Sg(e))throw new TypeError("target is not a Evented or EventTarget object");return sA(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 aA(e,t,r){if(!Sg(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=Pc(e,t,i=>{n.remove(),r.call(e,i)});return n}var Eg=R(()=>{oi()});function bs(e="Aborted"){return new Ge("AbortError",e)}function My(e){return e instanceof AbortSignal?e:e?.signal??void 0}function sa(e){let t=My(e);return t!=null&&t.aborted}function m4(e){if(!Cg(e))throw e}function Ti(e,t){let r=My(e);if(r!=null){if(!r.aborted)return aA(r,"abort",()=>t());t()}}function Cg(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(bs()))})})}function $j(e){return e&&typeof e.then=="function"}function cA(e){return $j(e)?e:Promise.resolve(e)}function lA(e,t=-1){let r,n,i,o,s=null,c=(...a)=>{if(r){n=a,o&&o.reject(bs()),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=cA(e(...a,v.signal));let E=r;Fj(t).then(()=>{r===E&&(o?v.abort():s=v)})}else r=1,r=cA(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)=>iA.setTimeout(()=>n.reject(o),i),n.promise=r,n}var Ro=R(()=>{oA();On();Eg();it();Cc()});var uA=R(()=>{});function Vj(){Pg!=null&&(cancelAnimationFrame(Pg),Pg=requestAnimationFrame(fA))}function Ly(e){let t=new h4(e);return w4.push(t),Iy.willDispatch||(Iy.willDispatch=!0,d4(hA)),t}function Uj(e=!1){Wf.forAll(t=>{t.removed=!0}),e&&mA()}function fA(){let e=performance.now();Pg=null,Pg=Wf.some(r=>!r.paused&&!r.removed)?requestAnimationFrame(fA):null,Iy.executeFrameTasks(e)}function zj(e){let t=e-dA;dA=e;let r=pA>0?pA:1e3/60,n=Math.max(0,t-r);Tg.time=e,Tg.frameDuration=r-n;for(let i=0;i<g4.length;i++){let o=performance.now(),s=g4[i];Wf.forAll(c=>{c.paused||c.removed||(i===0&&c.ticks++,c.phases[s]&&(Tg.elapsedFrameTime=performance.now()-e,Tg.deltaTime=c.ticks===0?0:t,c.phases[s]?.call(c,Tg)))}),Gj[i].push(performance.now()-o)}mA(),jj.push(performance.now()-e)}function mA(){Wf.forAll(e=>{e.removed&&Ay.push(e)}),Wf.removeUnorderedMany(Ay.data,Ay.length),Ay.clear()}function hA(){for(;w4.length;){let e=w4.shift();e.isActive&&e.callback()}Iy.willDispatch=!1}function Wj(e=1,t){let r=ci(),n=()=>{sa(t)?r.reject(bs()):e===0?r():(--e,d4(()=>n()))};return n(),r.promise}function Bj(e){return Wj(1,e)}async function gA(e){await Bj(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}var h4,dA,pA,Tg,g4,w4,Wf,Iy,Pg,Ay,Gj,jj,ky=R(()=>{KM();eA();nA();Ro();uA();h4=class{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}},dA=0,pA=0,Tg={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},g4=["prepare","preRender","render","postRender","update","finish"],w4=[],Wf=new xg;Iy={frameTasks:Wf,willDispatch:!1,clearFrameTasks:Uj,dispatch:hA,executeFrameTasks:zj,reschedule:Vj};Pg=null;Ay=new xg;Gj=g4.map(e=>new _g(e)),jj=new _g("total")});function wA(e,t){if(!t)return e;for(let r of t)r!=null&&e.add(r);return e}function yA(e,t){let r=new Set;return wA(r,e),wA(r,t),r}var y4=R(()=>{});function Ny(){return++qj}var qj,bA=R(()=>{qj=0});function Hj(){}var Lu,b4,vA,v4=R(()=>{pg();Lu=class extends ys{constructor(t){super(new b4(t)),this._observer&&vA.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&vA.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}},b4=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}},vA=new FinalizationRegistry(e=>{e.deref()?.destroy()})});function x4(e,t){let r=new Lu(o),n=null,i=!1;function o(){if(!r||i)return;if(_4)return void Zj(o);let c=n;r.clear(),_4=!0,i=!0,n=No(r,e),i=!1,_4=!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 S4(e,t){let r=new Lu(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 _4,Oy,E4=R(()=>{oi();Iu();v4();_4=!1,Oy=[]});function Fy(e){Mc.delete(e),Mc.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 _A(e){for(let t of Mc.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 Mc)n.removed&&(r.push(n),Mc.delete(n));for(let n of r)ku.pool.release(n);Ry.release(r),Ry.release(t),Kj.forEach(n=>n())}}function Qj(){let e=Ry.acquire();e.length=Mc.size;let t=0;for(let r of Mc)e[t]=r,++t;return Mc.clear(),e}function eq(e,t,r){let n=VS(e,t,r,(i,o,s)=>{let c,a,d=S4(()=>Mu(i,o),(h,g)=>{i.__accessor__?.lifecycle===dn.DESTROYED||c&&c.uid!==a?n.remove():(c||(c=ku.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=VS(e,t,r,(i,o,s)=>{let c=!1;return x4(()=>Mu(i,o),(a,d)=>{i.__accessor__.lifecycle!==dn.DESTROYED?c||(c=!0,Sh(d,a)||s.call(i,a,d,o,i),c=!1):n.remove()})});return n}function xA(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=S4(e,(s,c)=>{n&&n.uid!==i?o.remove():(n||(n=ku.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 x4(e,(i,o)=>{n||(n=!0,r(o,i)||t(i,o),n=!1)})}function SA(e,t,r=!1,n=M8){return r?nq(e,t,n):rq(e,t,n)}var Mg,ku,Ry,Mc,Dy,Kj,C4=R(()=>{Cy();oi();mr();QM();ky();y4();bA();Au();dg();E4();oa();(function(e){e[e.Untracked=0]="Untracked",e[e.Tracked=1]="Tracked"})(Mg||(Mg={}));ku=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(Mg.Untracked,t,r,n,i,o,Sh)}static acquireTracked(t,r,n,i){return this.pool.acquire(Mg.Tracked,t,r,n,null,null,i)}notify(t,r){this.type===Mg.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}};ku.pool=new Ty(ku);Ry=new qn,Mc=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 EA,CA,vs,T4,Yr,Ac=R(()=>{FM();zM();it();Cc();BS();Au();dg();Ff();YM();WS();XM();C4();yt();ft();vs=Symbol("Accessor-Handles"),T4=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)}}Ec(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[EA]=null,this[CA]=!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]),l4()?.onInstanceConstruct(this)}postscript(){let t=this.__accessor__,r=t.ctorArgs;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[T4]=!0}initialize(){}[ly](){this[vs]=wg(this[vs])}destroy(){this.destroyed||(_A(this),this.__accessor__.destroy(),l4()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[T4]}get destroyed(){return this.__accessor__?.lifecycle===dn.DESTROYED||!1}commitProperty(t){ws(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 Vf(this,t,r),this}watch(t,r,n){return DM(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}),xA(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[vs]??(this[vs]=new Uf)).add(t,r)}removeHandles(t){this[vs]?.remove(t)}removeAllHandles(){this[vs]?.removeAll()}removeHandlesReference(t){this[vs]?.removeReference(t)}hasHandles(t){return this[vs]?.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}};EA=vs,CA=T4});var $y,P4,TA=R(()=>{mr();Tc();$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 P4(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}},P4=class{constructor(t,r){this.value=t,this.origin=r}}});function PA(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 MA=R(()=>{Tc()});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&&US(n,r))return!0}else for(let i of n)if(i===t||i.includes(".")&&i.indexOf(t)===0&&US(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=IM(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 AA(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"?Mu(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,IA=R(()=>{Au();oa();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=ws(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 ac(s,i)}return!1}return o===i}function LA(e,t,r){if(e&&typeof e.toJSON=="function"&&(!e.toJSON.isDefaultToJSON||!e.write))return Rf(t,e.toJSON(r));let n=Ci(e),i=n.metadata;for(let o in i){let s=LM(i[o],r);if(!dq(e,n,o,s,void 0,r))continue;let c=ws(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=Rf(t,a),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>Rf(t,a,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:jM(n.store.originOf(o)),newOrigin:r.origin}))}return t}var kA=R(()=>{cc();On();it();Au();Tc();oa();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 NA,Ag,ut,Nr=R(()=>{gt();Ac();TA();MA();IA();oa();kA();ft();NA=e=>{let t=class extends e{constructor(...r){super(...r);let n=Ci(this),i=n.store,o=new $y;n.store=o,PA(n,i,o)}read(r,n){AA(this,r,n)}write(r,n){return LA(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};Ag=class extends NA(Yr){};Ag=O([Le("esri.core.JSONSupport")],Ag),function(e){function t(r){return r&&typeof r=="object"&&"toJSON"in r&&typeof r.toJSON=="function"}e.JSONSupportMixin=NA,e.isSerializable=t}(Ag||(Ag={}));ut=Ag});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 Bf=R(()=>{yt()});function mq(e){let t={};for(let r in e)t[e[r]]=r;return t}function OA(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(()=>{hs();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=OA(this._apiToJSON),this.jsonValues=OA(this._jsonToAPI),this.read=n=>this.fromJSON(n),this.write=(n,i,o)=>{let s=this.toJSON(n);s!==void 0&&ea(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 Ig,Do,Vy,Uy,zy=R(()=>{Ig=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 Ig(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),Vy=new Ig(3396190,1/169.8944472236118,23e4,6e4,.111),Uy=new Ig(1737400,0,0,0,0)});function Wy(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function M4(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 RA(e){let t=new Uint8Array(e),r="";for(let n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}var DA=R(()=>{});function Cq(){let e=Rn.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${`${Rn.scheme}://${Rn.host}${Rn.port!=null?`:${Rn.port}`:""}`}${t}`}function Ic(e){if(!e)return null;let t={path:null,query:null},r=new Dn(e),n=e.indexOf("?");return r.query===null?t.path=e:(t.path=e.slice(0,n),t.query=Lc(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 Lc(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 Nu(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 UA(e=!1){let t,r=Gf.proxyUrl;if(typeof e=="string"){t=Pq(e);let n=jf(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw hq().warn(FA),new Ge("urlUtils:proxy-not-set",FA);return t&&A4()&&(r=Xy(r)),Ic(r)}function zA(e){let t=e.indexOf("?");return t!==-1?(Lg.path=e.slice(0,t),Lg.query=e.slice(t+1)):(Lg.path=e,Lg.query=null),Lg}function WA(e){return e=(e=jA(e=kq(e=zA(e).path),!0)).toLowerCase()}function BA(e){let t={proxyUrl:e.proxyUrl,urlPrefix:WA(e.urlPrefix)},r=Gf.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 jf(e){let t=Gf.proxyRules,r=WA(e);for(let n=0;n<t.length;n++)if(r.indexOf(t[n].urlPrefix)===0)return t[n]}function L4(e,t=Gf.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 Hn(e,t,r=!1){if(!e||!t)return!1;let n=I4(e),i=I4(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(!GA(e))return!0;e=I4(e)}if(Hn(e,Rn))return!0;let t=Gf.trustedServers||[];for(let r=0;r<t.length;r++){let n=Tq(t[r]);for(let i=0;i<n.length;i++)if(Hn(e,n[i]))return!0}return!1}function Tq(e){return Gy[e]||(N4(e)||Nc(e)?Gy[e]=[new Dn(kc(e))]:Gy[e]=[new Dn(`http://${e}`),new Dn(`https://${e}`)]),Gy[e]}function kc(e,t=Eq,r){return Nc(e)?r?.preserveProtocolRelative?e:Rn.scheme==="http"&&Rn.authority===li(e).slice(2)?`http:${e}`:`https:${e}`:N4(e)?e:k4(e[0]==="/"?Lq(t):t,e)}function Hy(e){return e=Rq(e=Oq(e=Nq(e=kc(e=e.trim()))))}function k4(...e){let t=e.filter(p8);if(!t?.length)return;let r=[];if(GA(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&&Nc(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=jA(e,!0)),e}function GA(e){return Nc(e)||N4(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 RA(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Nc(e){return e!=null&&e[0]==="/"&&e[1]==="/"}function N4(e){return e!=null&&$A.test(e)}function Pq(e){return e!=null&&gq.test(e)||Rn.scheme==="https"&&Nc(e)}function Mq(e){return e!=null&&VA.test(e)||Rn.scheme==="http"&&Nc(e)}function Aq(e){return e!=null&&wq.test(e)}function Xy(e){return Nc(e)?`https:${e}`:e.replace(VA,"https:")}function Iq(){return Rn.scheme==="http"}function A4(){return Rn.scheme==="https"}function jA(e,t=!1){return Nc(e)?e.slice(2):(e=e.replace($A,""),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=zA(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=Gf.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===Rn.authority&&!bq.test(e)||(A4()&&n===Rn.authority||t&&t.some(i=>n===i||n.endsWith(`.${i}`))||A4()&&!jf(e))&&(e=Xy(e)),e}function I4(e){return typeof e=="string"?new Dn(kc(e)):(e.scheme||(e.scheme=Rn.scheme),e)}function qf(e,t){if(!t)return e;let r=Ic(e),n=r.query||{};for(let[o,s]of Object.entries(t))s!=null&&(n[o]=s);let i=Nu(n);return i?`${r.path}?${i}`:r.path}var hq,Gf,FA,$A,VA,gq,wq,yq,bq,vq,_q,Dn,Gy,xq,Rn,Sq,Eq,jy,Lg,Oc=R(()=>{Sc();cc();On();Nr();it();By();DA();hq=()=>ot.getLogger("esri.core.urlUtils"),Gf=Mt.request,FA="esri/config: esriConfig.request.proxyUrl is not set.",$A=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,VA=/^\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]+))?$"),Dn=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 Dn(Mt.applicationUrl),Rn=xq,Sq=Cq(),Eq=Sq,jy=()=>Rn;Lg={path:"",query:""}});function qA(e){Jr=e}var Dq,Jr,Fq,Qy=R(()=>{rt();Oc();ey();ey();Symbol.dispose??(Symbol.dispose=Symbol("Symbol.dispose")),Symbol.asyncDispose??(Symbol.asyncDispose=Symbol("Symbol.asyncDispose"));Dq="4.32",Fq=Dq;Fq=`4.32.0-next.${Kw}`;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 HA(e,t){return!(!t&&!Mt.apiKey||!Vq(e))}var $q,ZA=R(()=>{Sc();Oc();$q=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"])});function JA(e,t,r=!1,n){return new Promise((i,o)=>{if(sa(n))return void o(YA());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(YA())},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 YA(){try{return new DOMException("Aborted","AbortError")}catch{let e=new Error;return e.name="AbortError",e}}function XA(){return new Error(Uq)}function QA(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 KA(e){let t=Mt.request.crossOriginNoCorsDomains;if(t){let r=li(e);if(r)return r=r.toLowerCase(),!Hn(r,jy())&&t[r]<Date.now()-36e5}return!1}async function eI(e){let t=Ic(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,tI=R(()=>{Sc();rt();Ro();Oc();Uq="Timeout exceeded"});var rI={};Hs(rI,{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 nI=R(()=>{On()});var Fo,Ky=R(()=>{gt();Ac();oi();ft();Fo=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 Pu(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 Fo.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})(Fo)});var O4,iI=R(()=>{O4=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=$o){return e?Wq(e)?e.timeZoneIANA:Gq(e,t):t}function Gq(e,t=$o){if(!e||!O4.has(e.timeZone))return t;let r=O4.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 $o,Ou,Hf,oI,kg=R(()=>{iI();Nn();$o="system",Ou="unknown",Hf="UTC",oI=Intl.DateTimeFormat().resolvedOptions().timeZone});function Yq(e){let t=R4.get(e);if(!t){let r=Yi(),n=Hq[r]||r,i=tb(e.timeZone??$o),o={...e,timeZone:i};t=new Intl.DateTimeFormat(n,o),R4.set(e,t)}return t}function Zf(e,t=Zq){return Yq(t).format(e)}function tb(e){switch(e){case $o:return oI;case Ou:return Hf;default:return e}}var _s,Ng,Og,Rg,Rc,Ru,sI,Dg,Fg,qq,_he,Hq,R4,Zq,rb=R(()=>{Mi();_c();kg();Nn();_s={year:"numeric",month:"numeric",day:"numeric"},Ng={year:"numeric",month:"long",day:"numeric"},Og={year:"numeric",month:"short",day:"numeric"},Rg={year:"numeric",month:"long",weekday:"long",day:"numeric"},Rc={hour:"numeric",minute:"numeric"},Ru={...Rc,second:"numeric"},sI={hourCycle:"h23"},Dg={...Rc,...sI},Fg={...Ru,...sI},qq={"short-date":_s,"short-date-short-time":{..._s,...Rc},"short-date-short-time-24":{..._s,...Dg},"short-date-long-time":{..._s,...Ru},"short-date-long-time-24":{..._s,...Fg},"short-date-le":_s,"short-date-le-short-time":{..._s,...Rc},"short-date-le-short-time-24":{..._s,...Dg},"short-date-le-long-time":{..._s,...Ru},"short-date-le-long-time-24":{..._s,...Fg},"long-month-day-year":Ng,"long-month-day-year-short-time":{...Ng,...Rc},"long-month-day-year-short-time-24":{...Ng,...Dg},"long-month-day-year-long-time":{...Ng,...Ru},"long-month-day-year-long-time-24":{...Ng,...Fg},"day-short-month-year":Og,"day-short-month-year-short-time":{...Og,...Rc},"day-short-month-year-short-time-24":{...Og,...Dg},"day-short-month-year-long-time":{...Og,...Ru},"day-short-month-year-long-time-24":{...Og,...Fg},"long-date":Rg,"long-date-short-time":{...Rg,...Rc},"long-date-short-time-24":{...Rg,...Dg},"long-date-long-time":{...Rg,...Ru},"long-date-long-time-24":{...Rg,...Fg},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":Rc,"long-time":Ru},_he=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"},R4=new WeakMap,Zq=qq["short-date-short-time"];kf(()=>{R4=new WeakMap})});function Xq(e){let t=e||aI;if(!nb.has(t)){let r=Yi(),n=Jq[Yi()]||r;nb.set(t,new Intl.NumberFormat(n,e))}return nb.get(t)}function Yf(e,t){return Object.is(e,-0)&&(e=0),Xq(t).format(e)}var Jq,nb,aI,D4=R(()=>{_c();Jq={ar:"ar-u-nu-latn"},nb=new WeakMap,aI={};kf(()=>{nb=new WeakMap,aI={}})});function F4(e,t,r={}){let{format:n={}}=r;return gs(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):$4(s)}function Kq(e,t){switch(t.type){case"date":return Zf(e,t.intlOptions);case"number":return Yf(e,t.intlOptions);default:return cI().warn("missing format descriptor for key {key}"),$4(e)}}function eH(e,t){switch(t.toLowerCase()){case"dateformat":return Zf(e);case"numberformat":return Yf(e);default:return cI().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?Zf(e):/^numberformat/i.test(t)?Yf(e):$4(e)}}function $4(e){switch(typeof e){case"string":return e;case"number":return Yf(e);case"boolean":return""+e;default:return e instanceof Date?Zf(e):""}}var cI,V4=R(()=>{it();hs();lc();rb();D4();cI=()=>ot.getLogger("esri.intl.substitute")});function tH(e){return e in pI}function uI(e){if(tH(e)){let t=pI[e];return t===!0?e:t}return null}function dI(e){for(let t of Jf.keys())mI(e.pattern,t)&&Jf.delete(t)}function fI(e){return $g.includes(e)||(dI(e),$g.unshift(e)),Pt(()=>{let t=$g.indexOf(e);t>-1&&($g.splice(t,1),dI(e))})}async function U4(e){let t=Yi();Jf.has(e)||Jf.set(e,rH(e,t));let r=Jf.get(e);return r&&await nH.add(r),r}function z4(e){if(!lI.test(e))return null;let t=lI.exec(e);if(t===null)return null;let[,r,n]=t;return uI(r+(n?"-"+n.toUpperCase():""))??uI(r)}async function rH(e,t){let r=[];for(let n of $g)if(mI(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 mI(e,t){return typeof e=="string"?t.startsWith(e):e.test(t)}var lI,pI,$g,Jf,nH,Vg=R(()=>{On();oi();Ro();_c();lI=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,pI={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:"no",nl:!0,no:!0,pl:!0,pt:"pt-BR","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:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};$g=[],Jf=new Map;kf(()=>{Jf.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=z4(n),a=`${o}${s}.json`,d=c?`${o}${s}_${c}.json`:a,h;try{h=await hI(e(d))}catch(g){if(d===a)throw new Ge("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:g});try{h=await hI(e(a))}catch(v){throw new Ge("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:v})}}return h}async function hI(e){if(gI.fetchBundleAsset!=null)return gI.fetchBundleAsset(e);let t=await wr(e,{responseType:"text"});return JSON.parse(t.data)}function wI(e){return new W4(e)}var W4,gI,yI=R(()=>{ib();On();Vg();W4=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)}};gI={}});var B4=R(()=>{rb();D4();V4();_c();Vg();Vg();yI();ob();fI(wI({pattern:"esri/",location:Xf}))});function bI(e){return typeof e=="string"?document.getElementById(e):e??null}var vI=R(()=>{});var Dc,G4,_I,Ug,xI,SI=R(()=>{gt();Ac();Ro();ft();(function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"})(Dc||(Dc={}));G4=class{constructor(){this._resolver=ci(),this._status=Dc.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=Dc.RESOLVED,this._cleanUp()},()=>{this._status=Dc.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===Dc.RESOLVED}isRejected(){return this._status===Dc.REJECTED}isFulfilled(){return this._status!==Dc.PENDING}abort(){this._resolver.reject(bs())}_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||Cg(i)||this._resolver.reject(i)}),t.resolve()}},_I=e=>{let t=class extends e{constructor(...r){super(...r),this._promiseProps=new G4,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},Ug=class extends _I(Yr){};Ug=O([Le("esri.core.Promise")],Ug),function(e){e.EsriPromiseMixin=_I}(Ug||(Ug={}));xI=Ug});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,EI=R(()=>{gt();Ac();Cc();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=BM(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=yg(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,CI=R(()=>{(function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"})(_t||(_t={}))});function TI(e){return(t,r)=>{t[r]=e}}var PI=R(()=>{});var sb,MI=R(()=>{s4();sb=class extends zf{notify(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});function AI(e){e&&typeof e=="object"&&"destroy"in e&&typeof e.destroy=="function"&&e.destroy()}function j4(e){return e?e instanceof Uc?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function q4(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 II(e,t,r,n){t&&t.forEach((i,o,s)=>{e.push(i),II(e,r.call(n,i,o,s),r,n)})}var aa,Z4,Y4,Qi,Fc,$c,Vc,H4,uH,Uc,LI=R(()=>{gt();Cy();Ky();oi();mr();bg();CI();ky();Ji();Iu();yt();PI();ft();MI();Z4=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}},Y4=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(Z4,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});Fc=new Set,$c=new Set,Vc=new Set,H4=new Map,uH=0,Uc=aa=class extends Fo.EventedAccessor{static isCollection(e){return e!=null&&e instanceof aa}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 aa?{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,j4(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,j4(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(j4);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(AI)}destroyMany(e){let t=this.removeMany(e);return t.forEach(AI),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 II(r,this,e,t),new aa(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 aa({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=q4(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=q4(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 aa?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=q4(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 Y4(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;Fc.clear(),$c.clear(),Vc.clear();for(let{added:a,removed:d}of r){if(a)if(Vc.size===0&&$c.size===0)for(let h of a)Fc.add(h);else for(let h of a)$c.has(h)?(Vc.add(h),$c.delete(h)):Vc.has(h)||Fc.add(h);if(d)if(Vc.size===0&&Fc.size===0)for(let h of d)$c.add(h);else for(let h of d)Fc.has(h)?Fc.delete(h):(Vc.delete(h),$c.add(h))}let n=qn.acquire();Fc.forEach(a=>{n.push(a)});let i=qn.acquire();$c.forEach(a=>{i.push(a)});let o=this._items,s=t.items,c=qn.acquire();if(Vc.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)}}qn.release(n),qn.release(i),qn.release(c)}Fc.clear(),$c.clear(),Vc.clear()}};Uc.ofType=e=>{if(!e)return aa;if(H4.has(e))return H4.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 aa{};return O([TI({Type:e,ensureType:typeof e=="function"?si(e):ko(e)})],r.prototype,"itemType",void 0),r=O([Le(`esri.core.Collection<${t}>`)],r),H4.set(e,r),r},O([V()],Uc.prototype,"_updating",void 0),O([V()],Uc.prototype,"length",void 0),O([V()],Uc.prototype,"items",null),O([V({readOnly:!0})],Uc.prototype,"updating",null),Uc=aa=O([Le("esri.core.Collection")],Uc)});function zg(e,t,r={}){return NI(e,t,r,dH)}function kI(e,t,r={}){return NI(e,t,r,pH)}function NI(e,t,r={},n){let i=null,o=r.once?(s,c)=>{n(s)&&(yg(i),t(s,c))}:(s,c)=>{n(s)&&t(s,c)};if(i=SA(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,J4=R(()=>{EI();LI();Eg();oi();Cc();Ro();C4();E4();ab={sync:!0,initial:!0}});function OI(){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,RI=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){Df(e,t).cast=n}function wH(e){return(t,r)=>{Df(t,e).cast=t[r]}}function ca(...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,Wg=R(()=>{Ji();Ff();mH=Object.prototype.toString});function UI(){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=Bg.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,s="";function c(){if(!n){var h=Bg.trim(e.slice(i,o)),g=h.indexOf(":");if(g!==-1){var v=Bg.trim(h.slice(0,g)),E=Bg.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 Bg.trim(s)}function DI(e){return e==null}function TH(e){var t={};for(var r in e)t[r]=e[r];return t}function zI(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 WI(){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 GI(e){return e.replace(RH,"&lt;").replace(DH,"&gt;")}function OH(e,t,r,n){if(r=JI(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(FI.lastIndex=0,FI.test(r)||($I.lastIndex=0,$I.test(r)&&(lb.lastIndex=0,lb.test(r))))return"";n!==!1&&(n=n||BI,r=n.process(r))}return r=XI(r),r}function jI(e){return e.replace(FH,"&quot;")}function qI(e){return e.replace($H,'"')}function HI(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 ZI(e){return e.replace(UH,":").replace(zH," ")}function YI(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 JI(e){return e=qI(e),e=HI(e),e=ZI(e),e=YI(e),e}function XI(e){return e=jI(e),e=GI(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=zc.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=zc.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=zc.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=zc.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=zc.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=zc.trim(e.slice(r,a)),h=VI(h),c(o,h),o=!1,r=a+1;continue}else continue}return r<e.length&&(o===!1?c(e.slice(r)):c(o,VI(zc.trim(e.slice(r))))),zc.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 VI(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 KI(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=Vo.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=sZ(e.whiteList||e.allowList):e.whiteList=Vo.whiteList,e.onTag=e.onTag||Vo.onTag,e.onTagAttr=e.onTagAttr||Vo.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Vo.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Vo.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Vo.safeAttrValue,e.escapeHtml=e.escapeHtml||Vo.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new tZ(e.css))}var pb,X4,yr,Q4,Fu,vH,xH,Bg,EH,cb,CH,PH,K4,e5,MH,AH,fb,BI,RH,DH,FH,$H,VH,UH,zH,lb,FI,$I,mb,zc,YH,tZ,Vo,QI,rZ,nZ,db,aZ,Qf,cZ,eL,tL=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)},X4={exports:{}},yr={},Q4={exports:{}},Fu={};vH=/javascript\s*\:/img;Fu.whiteList=UI();Fu.getDefaultWhiteList=UI;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,"")}},Bg=xH;EH=SH,cb=Fu,CH=EH;zI.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 DI(F)?h+":"+g:F}else{var F=o(h,g,A);if(!DI(F))return F}}});return c};PH=zI;(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]})(Q4,Q4.exports);K4=Q4.exports,e5={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=K4.FilterCSS,AH=K4.getDefaultWhiteList,fb=e5;BI=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,FI=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,$I=/u\s*r\s*l\s*\(.*/gi;yr.whiteList=WI();yr.getDefaultWhiteList=WI;yr.onTag=IH;yr.onIgnoreTag=LH;yr.onTagAttr=kH;yr.onIgnoreTagAttr=NH;yr.safeAttrValue=OH;yr.escapeHtml=GI;yr.escapeQuote=jI;yr.unescapeQuote=qI;yr.escapeHtmlEntities=HI;yr.escapeDangerHtml5Entities=ZI;yr.clearNonPrintableCharacter=YI;yr.friendlyAttrValue=JI;yr.escapeAttrValue=XI;yr.onIgnoreTagStripAll=WH;yr.StripTagBody=BH;yr.stripCommentTag=GH;yr.stripBlankChar=jH;yr.cssFilter=BI;yr.getDefaultCSSWhiteList=AH;mb={},zc=e5;YH=/[^a-zA-Z0-9\\_:.-]/gim;mb.parseTag=ZH;mb.parseAttr=JH;tZ=K4.FilterCSS,Vo=yr,QI=mb,rZ=QI.parseTag,nZ=QI.parseAttr,db=e5;KI.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=Vo.stripBlankChar(e)),r.allowCommentTag||(e=Vo.stripCommentTag(e));var g=!1;r.stripIgnoreTagBody&&(g=Vo.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)},q=i(A,F,z);if(!ub(q))return q;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 q=o(A,F,z),ub(q)?d(F):q},d);return g&&(v=g.remove(v)),v};aZ=KI;(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)})(X4,X4.exports);Qf=X4.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},eL=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({},Qf.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):Qf.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 Qf.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?Qf.escapeAttrValue(t):!o&&!i?Qf.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):Qf.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 rL(e){return hb.get(e)}function nL(e,t){hb.set(e,t)}function wb(e){hb.delete(e)}var hb,t5=R(()=>{hb=new Map});function iL(...e){let t=qn.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 qn.release(t),r}async function oL(e,t){await gA(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 w1e,lZ,uZ,dZ,r5,yb=R(()=>{tL();Cy();oi();rt();it();Ro();J4();ky();t5();w1e=(()=>{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 Pu([zg(()=>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"],r5=new eL({whiteList:uZ,onTagAttr:(e,t,r)=>{let n=`${t}="${r}"`;if(dZ.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)});function s5(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;let t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}var uL,vb,dL,sL,_b,c5,pL,pZ,n5,fZ,i5,o5,fL,aL,cL,lL,mZ,bb,hZ,l5,$u,a5,gZ,wZ,Kf,mL=R(()=>{yb();uL="http://www.w3.org/",vb=`${uL}2000/svg`,dL=`${uL}1999/xlink`,sL=[],_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},c5=(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),pL=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(c5(e[n],t))return n}return-1},n5=(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(c5(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)}},i5=[],o5=!1,fL=e=>{(e.children||[]).forEach(fL),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},aL=()=>{o5=!1,i5.forEach(fL),i5.length=0},cL=e=>{i5.push(e),o5||(o5=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(aL,{timeout:16}):setTimeout(aL,16))},lL=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),cL(e))},e.properties)}t.parentNode&&(t.parentNode.removeChild(t),cL(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")a5(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&&(pL(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(dL,c,a):e.setAttribute(c,a):d==="string"&&c!=="value"?c==="innerHTML"?e[c]=r5.sanitize(a):s5(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)},l5=(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}}l5(i,e,n)}},a5=(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&&(a5(e,h,!1),a5(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?(pL(A),n.styleApplyer(e,P,A)):n.styleApplyer(e,P,""))}}else if(d||typeof h!="string"||(d=""),a!=="value"||s5(e)){if(d!==h){let g=typeof d;g==="function"&&n.eventHandlerInterceptor||(n.namespace===vb?a==="href"?e.setAttributeNS(dL,a,d):e.setAttribute(a,d):g==="string"?a==="innerHTML"?e[a]=r5.sanitize(d):a==="role"&&d===""?e.removeAttribute(a):s5(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||sL;let o,s=(r=r||sL).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&&c5(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++)lL(r[o]),n5(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),n5(n,d,e,"added")}d++}if(s>a)for(o=a;o<s;o++)lL(r[o]),n5(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};Kf=(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,em,tm,u5=R(()=>{mL();yZ={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},em=e=>_b(yZ,e),tm={create:(e,t)=>(t=em(t),$u(e,document.createElement("div"),void 0,t),Kf(e,t)),append:(e,t,r)=>(r=em(r),$u(t,e,void 0,r),Kf(t,r)),insertBefore:(e,t,r)=>(r=em(r),$u(t,e.parentNode,e,r),Kf(t,r)),merge:(e,t,r)=>(r=em(r),t.domNode=e,l5(e,t,r),Kf(t,r)),replace:(e,t,r)=>(r=em(r),$u(t,e.parentNode,e,r),e.parentNode.removeChild(e),Kf(t,r))}});var bZ,hL=R(()=>{u5();bZ=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0]});var gL,wL=R(()=>{gL={handleInterceptedEvent:(e,t,r,n)=>(e.scheduleRender(),t.properties[`on${n.type}`].apply(t.properties.bind||r,[n]))}});var vZ,yL,bL=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}},yL=e=>({...vZ,...e})});var _Z,xZ,vL,_L,xL=R(()=>{u5();hL();wL();bL();_Z=(e,t)=>{let r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r},xZ=(e,t)=>e.find(t),vL=(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},_L=e=>{let t,r={...gL,...e},n=yL(r),i=n.performanceLogger,o,s=!0,c=!1,a=[],d=[],h=(v,E,P)=>{let A;n.eventHandlerInterceptor=(W,z,q,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=vL(A.getLastRender(),U);else{let Ee=Y.composedPath(),Ne=Ee.slice(Ee.indexOf(Y.currentTarget),Ee.indexOf(A.domNode)).reverse();ie=vL(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(tm.append,v,E)},insertBefore:(v,E)=>{h(tm.insertBefore,v,E)},merge:(v,E)=>{h(tm.merge,v,E)},replace:(v,E)=>{h(tm.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 SL,d5=R(()=>{"use strict";SL=":"});function p5(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(SL);return t.length===1?[t[0],Sw(t[0])]:t}function CZ([e,t]){this[e]=t}var xb,EZ,rm,$1e,f5,EL=R(()=>{"use strict";d5();So();xb=Object.defineProperty;EZ=globalThis.HTMLElement??SZ,$1e=(rm=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=p5(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()}},rm.lumina=!0,rm);f5={}});function CL(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(c8))}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 TL(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 PL,m5=R(()=>{"use strict";So();PL=(e,t)=>e.manager.internals.members?.[t]?.[0]});function zu(e){Gg!==e&&(Gg=e,queueMicrotask(()=>{Gg===e&&(Gg=void 0)}))}function Wu(e){return Gg}function w5(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 y5(){return Vu}function TZ(e){nm!==e&&(nm=e,queueMicrotask(()=>{nm===e&&(nm=void 0)}))}function PZ(){let e=nm;return nm=void 0,e}function ML(e){Ot(e,void 0,this)}function AL(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 NL(e,t,r){let n=Object.keys(e),i=n.length;Uu===void 0&&queueMicrotask(Hg),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 Hg(){Array.from(Uu?.entries()??[]).forEach(([e,{callbacks:t}])=>{let r=Object.keys(e);t.forEach(n=>n(r))}),Uu=void 0}function Tb(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 RL(e,t,r){let n=e.manager.internals;return n.trackedValue!==g5&&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 Pb(e=[Wu(),...y5()],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=>NL(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&&RL(s,c=>o(c===void 0?void 0:{key:c,host:s,isReactive:!0}),r),r}function DL(e){jg.readOnly=!0;try{return e()}finally{jg.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]),Tb(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)?DL(()=>{o[r]=e.exports}):o[r]=e.exports})}var Eb,IL,Gg,Vu,nm,MZ,AZ,b5,jg,qg,LL,Cb,kL,IZ,Uu,OL,h5,Sb,g5,FL,$L=R(()=>{"use strict";m5();So();So();So();So();Eb=Symbol.for("controller"),IL=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=b5(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=b5(e);return await t.ready,t},b5=e=>{let r=Wu().manager.internals.resolveExports(e);if(r!==void 0)return r;if(IL(e))return e;let n=PZ();if(n!==void 0)return n},jg={setter:!1,getter:!1,readOnly:!1},qg=new WeakMap;LL=Eb;Cb=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[LL]=!0,this.ready=this._ready.promise,this._exports=AL(this),this._exportWatchers=new Set;let t=e??Wu(new.target.name);this.component=t,this.component.addController(this),this.component.manager===void 0||(w5(this),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?AL(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),b5}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 _h(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(_h)),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(ML,e)}triggerUpdated(e){let t=this;t.hostUpdated&&Ot(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(ML,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)})}};kL=Cb;IZ=new Set(["exports","_exports"]);Uu=void 0;OL=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=g5,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(t,r,n)=>{if(jg.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=g5,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=PL(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=qg.get(this);if(jg.getter||F===void 0)return A;let W=F.manager.internals;A=W.accessorGetter[t](A,t);let z=W.getters[t]??h5;for(let q=0;q<z.length;q++)A=z[q](A,t);return A}:s,E=g?function(A){let F=s.call(this),W=qg.get(this);if(W===void 0){c.call(this,A);return}let z=W.manager.isLit?A??void 0:TL(A,i),q=W.manager.internals;if(z===F)c.call(this,z);else{let G=jg.setter?h5:q.setters[t]??h5;for(let Y=0;Y<G.length&&(z=G[Y](z,F,t),z!==F);Y++);z=q.accessorSetter[t](z,F,t),c.call(this,z),z!==F&&q.enabledWatchers[t]?.forEach(Y=>Y(z,F,t))}q.keyTrackers.length>0&&q?.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)}},h5=[],Sb=Symbol(),g5=Symbol();FL=e=>(...t)=>{let r=y5(),n=new e(...t),i=n.exports;w5(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 Pb(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 _h(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 WL(e,t){if(!t)return e;let r={...e};return Object.entries(t).forEach(([n,i])=>{typeof i=="object"?r[n]=WL(e[n],i):r[n]=i??e[n]}),r}var UL,kZ,v5,NZ,VL,zZ,WZ,BZ,Mb,GZ,zL,Bu=R(()=>{"use strict";$L();m5();So();So();So();UL=(e,t)=>new kZ(e,t),kZ=class extends kL{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 OL(this.component),this.destroyed=!1,this._updatePromise=new xo,this._originalLifecycles={},this.isLit=r,this.component.manager=this,CL(e,r),this._controllers=n,this.exports=void 0,this.hasDestroy=v5 in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let c=this.internals;Object.keys(c.members).forEach(a=>{c.accessorGetter[a]=VL,c.accessorSetter[a]=VL,c.getSetProxy(a)}),r?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),zu(e),qg.set(e.el,e),qg.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 ${v5} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,Hg(),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&&Tb(this.component,v5,()=>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=a8(e,NZ)}}},v5="autoDestroyDisabled",NZ=1e3,VL=e=>e;zZ=e=>BZ(void 0,e),WZ=class extends Cb{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=FL(WZ),Mb=(e,t)=>new GZ(e,t),GZ=class extends Cb{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()}},zL=(e,t)=>(r={})=>zZ((n,i)=>{let o=Dx(n.el),s={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},c=n;queueMicrotask(()=>i.onLifecycle(()=>s8(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;typeof E=="string"&&"label"in n&&n.label==null&&(n.label??(n.label=E)),a(c.messageOverrides)},r.name)));function a(d){let h=i.exports,g=h._original??h,v=WL(g,d);d&&(v._original=g),i.exports=v}return"messageOverrides"in c&&i.onLifecycle(()=>Tb(c,"messageOverrides",a)),r.blocking?(i.setProvisionalExports(s,!1),i.ready):s})});var Zg=R(()=>{});var BL=R(()=>{});var x5=R(()=>{Zg();});var GL=R(()=>{});var S5=R(()=>{Zg();GL();});var jL=R(()=>{Zg();});var HL=R(()=>{S5();});var YL=R(()=>{x5();});var JL=R(()=>{Zg();BL();x5();S5();jL();HL();YL()});var Ab,Ib,E5,XL,Yg,QL,Dt,C5,Lb,_n=R(()=>{Ab=globalThis,Ib=Ab.ShadowRoot&&(Ab.ShadyCSS===void 0||Ab.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,E5=Symbol(),XL=new WeakMap,Yg=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==E5)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(Ib&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=XL.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&XL.set(r,t))}return t}toString(){return this.cssText}},QL=e=>new Yg(typeof e=="string"?e:e+"",void 0,E5),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 Yg(r,e,E5)},C5=(e,t)=>{if(Ib)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=Ab.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},Lb=Ib?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return QL(r)})(e):e});var jZ,qZ,HZ,ZZ,YZ,JZ,Wc,KL,XZ,QZ,Jg,kb,T5,ek,la,Xg=R(()=>{_n();_n();({is:jZ,defineProperty:qZ,getOwnPropertyDescriptor:HZ,getOwnPropertyNames:ZZ,getOwnPropertySymbols:YZ,getPrototypeOf:JZ}=Object),Wc=globalThis,KL=Wc.trustedTypes,XZ=KL?KL.emptyScript:"",QZ=Wc.reactiveElementPolyfillSupport,Jg=(e,t)=>e,kb={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}},T5=(e,t)=>!jZ(e,t),ek={attribute:!0,type:String,converter:kb,reflect:!1,hasChanged:T5};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Wc.litPropertyMetadata??(Wc.litPropertyMetadata=new WeakMap);la=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=ek){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)??ek}static _$Ei(){if(this.hasOwnProperty(Jg("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(Jg("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Jg("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(Lb(i))}else t!==void 0&&r.push(Lb(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 C5(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:kb).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:kb;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??T5)(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){}};la.elementStyles=[],la.shadowRootOptions={mode:"open"},la[Jg("elementProperties")]=new Map,la[Jg("finalized")]=new Map,QZ?.({ReactiveElement:la}),(Wc.reactiveElementVersions??(Wc.reactiveElementVersions=[])).push("2.0.4")});var P5=R(()=>{Xg();});var tk=R(()=>{P5();});function dk(e,t){if(!L5(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return rk!==void 0?rk.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=t1(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 Kg,Nb,rk,A5,ua,I5,eY,qu,e1,t1,L5,ck,M5,Qg,nk,ik,Gu,ok,sk,lk,k5,xe,xs,uk,xn,Re,ak,ju,pk,r1,Ob,im,Zu,Rb,Db,Fb,$b,fk,tY,mk,Rr=R(()=>{Kg=globalThis,Nb=Kg.trustedTypes,rk=Nb?Nb.createPolicy("lit-html",{createHTML:e=>e}):void 0,A5="$lit$",ua=`lit$${Math.random().toFixed(9).slice(2)}$`,I5="?"+ua,eY=`<${I5}>`,qu=document,e1=()=>qu.createComment(""),t1=e=>e===null||typeof e!="object"&&typeof e!="function",L5=Array.isArray,ck=e=>L5(e)||typeof e?.[Symbol.iterator]=="function",M5=`[
8
8
  \f\r]`,Qg=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,nk=/-->/g,ik=/>/g,Gu=RegExp(`>|${M5}(?:([^\\s"'>=/]+)(${M5}*=${M5}*(?:[^
9
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ok=/'/g,sk=/"/g,lk=/^(?:script|style|textarea|title)$/i,k5=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),xe=k5(1),xs=k5(2),uk=k5(3),xn=Symbol.for("lit-noChange"),Re=Symbol.for("lit-nothing"),ak=new WeakMap,ju=qu.createTreeWalker(qu,129);pk=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=Qg;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===Qg?h[1]==="!--"?s=nk:h[1]!==void 0?s=ik:h[2]!==void 0?(lk.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Gu):h[3]!==void 0&&(s=Gu):s===Gu?h[0]===">"?(s=i??Qg,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]==='"'?sk:ok):s===sk||s===ok?s=Gu:s===nk||s===ik?s=Qg:(s=Gu,i=void 0);let E=s===Gu&&e[c+1].startsWith("/>")?" ":"";o+=s===Qg?a+eY:g>=0?(n.push(d),a.slice(0,g)+A5+a.slice(g)+ua+E):a+ua+(g===-2?c:E)}return[dk(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},r1=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]=pk(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(A5)){let v=h[s++],E=i.getAttribute(g).split(ua),P=/([.?@])?(.*)/.exec(v);a.push({type:1,index:o,name:P[2],strings:E,ctor:P[1]==="."?Rb:P[1]==="?"?Db:P[1]==="@"?Fb:Zu}),i.removeAttribute(g)}else g.startsWith(ua)&&(a.push({type:6,index:o}),i.removeAttribute(g));if(lk.test(i.tagName)){let g=i.textContent.split(ua),v=g.length-1;if(v>0){i.textContent=Nb?Nb.emptyScript:"";for(let E=0;E<v;E++)i.append(g[E],e1()),ju.nextNode(),a.push({type:2,index:++o});i.append(g[v],e1())}}}else if(i.nodeType===8)if(i.data===I5)a.push({type:2,index:o});else{let g=-1;for(;(g=i.data.indexOf(ua,g+1))!==-1;)a.push({type:7,index:o}),g+=ua.length-1}o++}}static createElement(t,r){let n=qu.createElement("template");return n.innerHTML=t,n}};Ob=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 im(o,o.nextSibling,this,t):a.type===1?d=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(d=new $b(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++}},im=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),t1(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):ck(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&&t1(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=r1.createElement(dk(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new Ob(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=ak.get(t.strings);return r===void 0&&ak.set(t.strings,r=new r1(t)),r}k(t){L5(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(e1()),this.O(e1()),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=!t1(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=!t1(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??"")}},Rb=class extends Zu{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Re?void 0:t}},Db=class extends Zu{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Re)}},Fb=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)}},$b=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)}},fk={M:A5,P:ua,A:I5,C:1,L:pk,R:Ob,D:ck,V:Hu,I:im,H:Zu,N:Db,U:Fb,B:Rb,F:$b},tY=Kg.litHtmlPolyfillSupport;tY?.(r1,im),(Kg.litHtmlVersions??(Kg.litHtmlVersions=[])).push("3.2.0");mk=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new im(t.insertBefore(e1(),o),o,void 0,r??{})}return i._$AI(e),i}});var da,rY,hk=R(()=>{Xg();Xg();Rr();Rr();da=class extends la{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=mk(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return xn}};da._$litElement$=!0,da.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:da});rY=globalThis.litElementPolyfillSupport;rY?.({LitElement:da});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0")});var N5=R(()=>{});var Ki=R(()=>{Xg();Rr();hk();N5()});var Ai,to,eo,pa=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 gk,wk=R(()=>{Rr();pa();gk=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 yk,nY,bk,vk=R(()=>{Rr();pa();yk="important",nY=" !"+yk,bk=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?yk:""):r[n]=i}}return xn}})});var _k=R(()=>{vk()});var vwe,Vb,iY,Ub,zb=R(()=>{Rr();({I:vwe}=fk),Vb=e=>e.strings===void 0,iY={},Ub=(e,t=iY)=>e._$AH=t});var Wb,O5=R(()=>{Rr();pa();zb();Wb=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(!Vb(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 Ub(e),t}})});function Sk(e){let t,r=i=>{t=new URL(i,globalThis.location?.href||void 0).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 om(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)}var xk,Ft,oY,Yu,$t,_e,Bb,ui,fa,Dr=R(()=>{"use strict";EL();d5();Bu();JL();Bu();tk();P5();So();Ki();Bu();wk();_k();pa();O5();Rr();xk=(e="",t={},r=Wu())=>{let n={emit:i=>{e===""&&Hg();let o=new CustomEvent(e,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...t});return r.el.dispatchEvent(o),o}};return e===""&&Pb(void 0,i=>{e=i.key},n),n},Ft=xk.bind(null,""),oY=()=>{},$t=(Yu=class extends da{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=UL(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===f5;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"?Sw(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===f5?this.el:this.el.attachShadow(n));if(Object.defineProperty(this,"shadowRoot",{value:o}),t)return da.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??p5(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=xk;_e=e=>typeof e=="object"&&e!=null?gk(e):e,Bb=e=>typeof e=="object"&&e!=null?bk(e):e,ui=Re;fa={toAttribute:e=>e===!0?"":e===!1?null:e}});function Ek(){let{classList:e}=document.body,t=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>e.contains(Pk)||e.contains(Tk)&&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(n1&&n1.version)return;console.info(`Using Calcite Components ${Ck} [Date: ${cY}, Revision: ${lY}]`);let e=n1||globalThis.calciteConfig||{};Object.defineProperty(e,"version",{value:Ck,writable:!1}),globalThis.calciteConfig=e}function dY(){ro()&&(document.readyState==="interactive"?Ek():document.addEventListener("DOMContentLoaded",()=>Ek(),{once:!0})),uY()}var Tk,Pk,sY,i1,D5,n1,Mk,aY,Ck,cY,lY,ro,pY,Gt,o1,Ak,ar=R(()=>{Dr();N5();Tk="calcite-mode-auto",Pk="calcite-mode-dark",sY="calcite-mode-light",i1={autoMode:Tk,darkMode:Pk,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"},D5={filter:250,nextTick:0,resize:150,reposition:100};n1=globalThis.calciteConfig,Mk=n1?.focusTrapStack||[],aY=n1?.logLevel||"info",Ck="3.0.0-next.92",cY="2025-01-08",lY="4b63087ec";ro=()=>!!1&&typeof navigator<"u"&&typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;dY();pY=Sk({defaultAssetPath:"https://cdn.jsdelivr.net/npm/@esri/calcite-components@3.0.0-next.92/dist/calcite/",hydratedAttribute:"calcite-hydrated"}),{customElement:Gt,getAssetPath:o1,setAssetPath:Ak}=pY});var F5,Ik,Lk=R(()=>{ar();ar();F5=!1,Ik=e=>{F5=!0,Ak(e)}});function Nk(){F5||Ik(kc(Xf(kk)))}function Ok(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 kk,$5=R(()=>{Lk();ob();rt();Oc();kk="components/assets"});var Gb,jb,V5=R(()=>{Gb=Symbol("widget"),jb=Symbol("widget-test-data")});function U5(e,t){let r=t.children;if(r?.length)for(let i=0;i<r.length;++i)r[i]=U5(e,r[i]);else r=fY;let n=t.vnodeSelector;if(sm(n)){let i=t.properties||mY,o=i.key||n,s={key:o,afterCreate:hY,afterUpdate:gY,afterRemoved:Rk,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,qb.set(e,s),s.afterCreate?.(s,e),n.addHandles(Pt(()=>Rk(e))),queueMicrotask(()=>{s[jb].projector.renderNow()})}function gY(e,t,r,{widgetProperties:n}){let i=qb.get(e);i&&(i.set(n),i.afterUpdate?.(i,e))}function Rk(e){let t=qb.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),qb.delete(e))}function sm(e){return typeof e=="function"&&e[Gb]}var fY,mY,qb,z5=R(()=>{oi();V5();fY=[],mY={},qb=new WeakMap});function Fk(e){Dk.add(e),e.finally(()=>Dk.delete(e))}var Dk,$k=R(()=>{Dk=new Set});function Uk(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"?Uk(e[n],t[n]):e[n]=t[n]);return e}var Vk,wY,yY,bY,W5,Fr,zk,Wk=R(()=>{gt();B4();vI();Ky();Eg();rt();mr();it();Cc();SI();Ro();J4();RI();yt();Wg();ft();Iu();v4();xL();$5();z5();V5();$k();t5();yb();_c();Vg();wY="esri.widgets.Widget",yY=0;bY=_L({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))}}),W5=!1,Fr=class extends xI.EsriPromiseMixin(Fo.EventedAccessor){constructor(e,t){super(e,t),this._attached=!1,this._projector=bY,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=lA(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 U4(a);this.uiStrings&&Object.keys(this.uiStrings)&&(h=Uk(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()}),Nk();let r="esri-widget-uid-"+OI(),n=this.render.bind(this);this._trackingTarget=new Lu(()=>{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),sm(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;sm(g.vnodeSelector)||(g.properties??(g.properties={}),(v=g.properties).key??(v.key=`${this.id}--${d++}`))}),U5(this,c)};this.render=()=>{if(W5)return o();let c=rL(this)??null;if(c)return c;this._trackingTarget.clear(),W5=!0;try{c=No(this._trackingTarget,o)}catch(a){throw ot.getLogger(this).error(a),a}finally{W5=!1}return c&&nL(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),Fk(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(m4):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||(wg(this._trackingTarget),wg(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 bI(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[(Vk=Gb,jb)](){return{projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(wb(this),this._projector.scheduleRender())}classes(...e){return iL.apply(this,e)}renderNow(){wb(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(zg(()=>this.viewModel,(t,r)=>{r&&this.removeHandles("delegated-events"),t&&Sg(t)&&this.addHandles(this._delegatedEventNames.map(n=>Pc(t,n,i=>{this.emit(n,i)})),"delegated-events")},ab)),this.postInitialize();let e=async()=>{await this._loadLocale().catch(m4),this.scheduleRender()};this.addHandles([LS(e),zg(()=>this.uiStrings,e),kI(()=>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[Vk]=!0,Fr.vnodeSelector="div",O([V()],Fr.prototype,"_readyForTrueRender",void 0),O([V({value:null})],Fr.prototype,"container",null),O([ca("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);zk=Fr});function B5(e){return(t,r)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}}var Bk=R(()=>{});function Ii(e,t,...r){return typeof e!="function"||sm(e)?_Y(e,t??null,...r):e(t,...r)}var vY,Gk,_Y,jk=R(()=>{z5();vY=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},Gk=function(e,t){for(var r=0,n=e.length;r<n;r++){var i=e[r];Array.isArray(i)?Gk(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 Gk(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 qk(){return`${xY}${EY()?"dark":"light"}`}var xY,Hk=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 ma,am=R(()=>{ma=()=>CY([2,1,1,1,3])});var pn,Ss=R(()=>{Bu();ar();pn=zL(o1)});var cm,TY,Hb,G5,Zk=R(()=>{ar();Ki();Dr();am();Ss();_n();cm={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}`,Hb=class Hb 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||ma(),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,om(this.el,"id",c),this.el.role="progressbar",xe`<div class=${_e(cm.rings)}>${this.renderRing("track")}${this.renderRing("progress")}${!r&&a&&xe`<div class=${_e(cm.percentage)}>${this.formatValue()}</div>`||""}</div>${!r&&i&&xe`<div class=${_e(cm.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({[cm.ring]:!0,[cm.trackRing]:t==="track",[cm.progressRing]:t==="progress"})} style=${Bb(c)} viewBox=${`0 0 ${o} ${o}`}>${xs`<circle cx=${o/2} cy=${o/2} r=${s??Re} />`}</svg>`}};Hb.properties={complete:7,inline:7,label:1,scale:3,text:1,type:3,value:9},Hb.styles=TY;G5=Hb;Gt("calcite-loader",G5)});var Zb=R(()=>{Zk()});function Bc(e){let t="dir",r=`[${t}]`,n=Gc(e,r);return n?n.getAttribute(t):"ltr"}function rN(e){return e.getRootNode()}function nN(e){return e.host||null}function Ju(e,{selector:t,id:r}){if(!e)return null;e.assignedSlot&&(e=e.assignedSlot);let n=rN(e);return(r?"getElementById"in n?n.getElementById(r):null:t?n.querySelector(t):null)||Ju(nN(n),{selector:t,id:r})}function Gc(e,t){return e?e.closest(t)||Gc(nN(rN(e)),t):null}function qY(e){return typeof e?.setFocus=="function"}async function Xb(e){if(e)return qY(e)?e.setFocus():e.focus()}function HY(e){if(e)return jY(e,q5)[0]??e}function jc(e){HY(e)?.focus()}function ZY(e,t){return e.filter(r=>r.matches(t))}function ha(e,t,r){if(typeof t=="string"&&t!=="")return t;if(t===""||t===!0)return e[r]}function lm(e){return(!!e).toString()}function iN(e){return Zn(e)||JY(e)}function YY(e){return XY(e).filter(t=>t.nodeType===Node.TEXT_NODE).map(t=>t.textContent).join("").trim()}function oN(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 Zn(e){return!!Qb(e).length}function Qb(e,t){return QY(e.target,t)}function QY(e,t){let r=e.assignedElements({flatten:!0});return t?ZY(r,t):r}function sN(e){return!!(e.isPrimary&&e.button===0)}function aN(e){return e.detail===0}function cN(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 lN(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(q){q.target===e&&Xk(q)===t&&(window.clearTimeout(F),e.removeEventListener(v,W),n?.())}function z(q){q.target===e&&Xk(q)===t&&(e.removeEventListener(E,z),e.removeEventListener(P,z),i?.(),A())}})}function eJ(e){return"propertyName"in e}function Xk(e){return eJ(e)?e.propertyName:e.animationName}function a1(e){return e.endsWith("px")}var PY,j5,Qk,s1,Yb,Jb,MY,AY,IY,Kk,eN,LY,kY,tN,NY,OY,RY,DY,FY,$Y,VY,Yk,UY,zY,WY,Jk,BY,GY,jY,q5,Sn=R(()=>{am();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])"],j5=PY.join(","),Qk=typeof Element>"u",s1=Qk?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Yb=!Qk&&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},Jb=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(Jb(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(j5));return t&&s1.call(e,j5)&&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(!Jb(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=s1.call(s,j5);h&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!Jb(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},Kk=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},eN=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||MY(e))&&!Kk(e)?0:e.tabIndex},LY=function(e,t){var r=eN(e);return r<0&&t&&!Kk(e)?0:r},kY=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},tN=function(e){return e.tagName==="INPUT"},NY=function(e){return tN(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||Yb(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 tN(e)&&e.type==="radio"},$Y=function(e){return FY(e)&&!DY(e)},VY=function(e){var t,r=e&&Yb(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=Yb(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},Yk=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=s1.call(e,"details>summary:first-of-type"),o=i?e.parentElement:e;if(s1.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=Yb(e);if(c&&!c.shadowRoot&&n(c)===!0)return Yk(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 Yk(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 s1.call(t,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}t=t.parentElement}return!1},WY=function(e,t){return!(t.disabled||Jb(t)||NY(t)||UY(t,e)||OY(t)||zY(t))},Jk=function(e,t){return!($Y(t)||eN(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:Jk.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:BY}):r=AY(e,t.includeContainer,Jk.bind(null,t)),GY(r)},q5={getShadowRoot:!0}});function Yn(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 qc=R(()=>{ar();});function pN({icon:e,scale:t}){let r=dN[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=pN(e),r=fN(t);if(r)return r;H5[t]||(H5[t]=fetch(o1(`./assets/icon/${t}.json`)).then(i=>i.json()).catch(()=>(console.error(`"${t}" is not a valid calcite-ui-icon name`),"")));let n=await H5[t];return uN[t]=n,n}function iJ(e){return fN(pN(e))}function fN(e){return uN[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,uN,H5,dN,sJ,Kb,Z5,mN=R(()=>{ar();Ki();Dr();Sn();qc();_n();rJ={icon:"icon",flipRtl:"flip-rtl"},uN={},H5={},dN={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}`,Kb=class Kb 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=Yn("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=Bc(t),c=dN[i],a=!!o,d=[].concat(n||"");return this.el.ariaHidden=lm(!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"?xs`<path d=${h??Re} />`:xs`<path d=${h.d??Re} opacity=${("opacity"in h?h.opacity:1)??Re} />`)}</svg>`}};Kb.properties={pathData:16,visible:16,flipRtl:7,icon:3,preload:7,scale:3,textLabel:1},Kb.styles=sJ;Z5=Kb;Gt("calcite-icon",Z5)});var Xu=R(()=>{mN()});function aJ(e){this._$AN!==void 0?(ev(this),this._$AM=e,hN(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++)c1(n[o],!1),ev(n[o]);else n!=null&&(c1(n,!1),ev(n));else c1(this,e)}var c1,ev,hN,lJ,tv,gN=R(()=>{zb();pa();pa();c1=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),c1(n,t);return!0},ev=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},hN=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))},tv=class extends eo{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),hN(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(c1(this,t),ev(this))}setValue(t){if(Vb(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,J5,Y5,At,Uo=R(()=>{Rr();gN();pa();Li=()=>new J5,J5=class{},Y5=new WeakMap,At=to(class extends tv{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=Y5.get(t);r===void 0&&(r=new WeakMap,Y5.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"?Y5.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 X5,uJ,yN,Hc,wN,Q5,um,Ebe,Cbe,rv=R(()=>{Rr();X5=Symbol.for(""),uJ=e=>{if(e?.r===X5)return e?._$litStatic$},yN=e=>({_$litStatic$:e,r:X5}),Hc=(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
9
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ok=/'/g,sk=/"/g,lk=/^(?:script|style|textarea|title)$/i,k5=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),xe=k5(1),xs=k5(2),uk=k5(3),xn=Symbol.for("lit-noChange"),Re=Symbol.for("lit-nothing"),ak=new WeakMap,ju=qu.createTreeWalker(qu,129);pk=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=Qg;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===Qg?h[1]==="!--"?s=nk:h[1]!==void 0?s=ik:h[2]!==void 0?(lk.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Gu):h[3]!==void 0&&(s=Gu):s===Gu?h[0]===">"?(s=i??Qg,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]==='"'?sk:ok):s===sk||s===ok?s=Gu:s===nk||s===ik?s=Qg:(s=Gu,i=void 0);let E=s===Gu&&e[c+1].startsWith("/>")?" ":"";o+=s===Qg?a+eY:g>=0?(n.push(d),a.slice(0,g)+A5+a.slice(g)+ua+E):a+ua+(g===-2?c:E)}return[dk(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},r1=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]=pk(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(A5)){let v=h[s++],E=i.getAttribute(g).split(ua),P=/([.?@])?(.*)/.exec(v);a.push({type:1,index:o,name:P[2],strings:E,ctor:P[1]==="."?Rb:P[1]==="?"?Db:P[1]==="@"?Fb:Zu}),i.removeAttribute(g)}else g.startsWith(ua)&&(a.push({type:6,index:o}),i.removeAttribute(g));if(lk.test(i.tagName)){let g=i.textContent.split(ua),v=g.length-1;if(v>0){i.textContent=Nb?Nb.emptyScript:"";for(let E=0;E<v;E++)i.append(g[E],e1()),ju.nextNode(),a.push({type:2,index:++o});i.append(g[v],e1())}}}else if(i.nodeType===8)if(i.data===I5)a.push({type:2,index:o});else{let g=-1;for(;(g=i.data.indexOf(ua,g+1))!==-1;)a.push({type:7,index:o}),g+=ua.length-1}o++}}static createElement(t,r){let n=qu.createElement("template");return n.innerHTML=t,n}};Ob=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 im(o,o.nextSibling,this,t):a.type===1?d=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(d=new $b(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++}},im=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),t1(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):ck(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&&t1(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=r1.createElement(dk(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new Ob(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=ak.get(t.strings);return r===void 0&&ak.set(t.strings,r=new r1(t)),r}k(t){L5(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(e1()),this.O(e1()),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=!t1(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=!t1(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??"")}},Rb=class extends Zu{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Re?void 0:t}},Db=class extends Zu{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Re)}},Fb=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)}},$b=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)}},fk={M:A5,P:ua,A:I5,C:1,L:pk,R:Ob,D:ck,V:Hu,I:im,H:Zu,N:Db,U:Fb,B:Rb,F:$b},tY=Kg.litHtmlPolyfillSupport;tY?.(r1,im),(Kg.litHtmlVersions??(Kg.litHtmlVersions=[])).push("3.2.0");mk=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new im(t.insertBefore(e1(),o),o,void 0,r??{})}return i._$AI(e),i}});var da,rY,hk=R(()=>{Xg();Xg();Rr();Rr();da=class extends la{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=mk(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return xn}};da._$litElement$=!0,da.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:da});rY=globalThis.litElementPolyfillSupport;rY?.({LitElement:da});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0")});var N5=R(()=>{});var Ki=R(()=>{Xg();Rr();hk();N5()});var Ai,to,eo,pa=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 gk,wk=R(()=>{Rr();pa();gk=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 yk,nY,bk,vk=R(()=>{Rr();pa();yk="important",nY=" !"+yk,bk=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?yk:""):r[n]=i}}return xn}})});var _k=R(()=>{vk()});var vwe,Vb,iY,Ub,zb=R(()=>{Rr();({I:vwe}=fk),Vb=e=>e.strings===void 0,iY={},Ub=(e,t=iY)=>e._$AH=t});var Wb,O5=R(()=>{Rr();pa();zb();Wb=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(!Vb(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 Ub(e),t}})});function Sk(e){let t,r=i=>{t=new URL(i,globalThis.location?.href||void 0).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 om(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)}var xk,Ft,oY,Yu,$t,_e,Bb,ui,fa,Dr=R(()=>{"use strict";EL();d5();Bu();JL();Bu();tk();P5();So();Ki();Bu();wk();_k();pa();O5();Rr();xk=(e="",t={},r=Wu())=>{let n={emit:i=>{e===""&&Hg();let o=new CustomEvent(e,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...t});return r.el.dispatchEvent(o),o}};return e===""&&Pb(void 0,i=>{e=i.key},n),n},Ft=xk.bind(null,""),oY=()=>{},$t=(Yu=class extends da{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=UL(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===f5;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"?Sw(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===f5?this.el:this.el.attachShadow(n));if(Object.defineProperty(this,"shadowRoot",{value:o}),t)return da.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??p5(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=xk;_e=e=>typeof e=="object"&&e!=null?gk(e):e,Bb=e=>typeof e=="object"&&e!=null?bk(e):e,ui=Re;fa={toAttribute:e=>e===!0?"":e===!1?null:e}});function Ek(){let{classList:e}=document.body,t=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>e.contains(Pk)||e.contains(Tk)&&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(n1&&n1.version)return;console.info(`Using Calcite Components ${Ck} [Date: ${cY}, Revision: ${lY}]`);let e=n1||globalThis.calciteConfig||{};Object.defineProperty(e,"version",{value:Ck,writable:!1}),globalThis.calciteConfig=e}function dY(){ro()&&(document.readyState==="interactive"?Ek():document.addEventListener("DOMContentLoaded",()=>Ek(),{once:!0})),uY()}var Tk,Pk,sY,i1,D5,n1,Mk,aY,Ck,cY,lY,ro,pY,Gt,o1,Ak,ar=R(()=>{Dr();N5();Tk="calcite-mode-auto",Pk="calcite-mode-dark",sY="calcite-mode-light",i1={autoMode:Tk,darkMode:Pk,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"},D5={filter:250,nextTick:0,resize:150,reposition:100};n1=globalThis.calciteConfig,Mk=n1?.focusTrapStack||[],aY=n1?.logLevel||"info",Ck="3.0.0-next.96",cY="2025-01-11",lY="f2217a187";ro=()=>!!1&&typeof navigator<"u"&&typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;dY();pY=Sk({defaultAssetPath:"https://cdn.jsdelivr.net/npm/@esri/calcite-components@3.0.0-next.96/dist/calcite/",hydratedAttribute:"calcite-hydrated"}),{customElement:Gt,getAssetPath:o1,setAssetPath:Ak}=pY});var F5,Ik,Lk=R(()=>{ar();ar();F5=!1,Ik=e=>{F5=!0,Ak(e)}});function Nk(){F5||Ik(kc(Xf(kk)))}function Ok(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 kk,$5=R(()=>{Lk();ob();rt();Oc();kk="components/assets"});var Gb,jb,V5=R(()=>{Gb=Symbol("widget"),jb=Symbol("widget-test-data")});function U5(e,t){let r=t.children;if(r?.length)for(let i=0;i<r.length;++i)r[i]=U5(e,r[i]);else r=fY;let n=t.vnodeSelector;if(sm(n)){let i=t.properties||mY,o=i.key||n,s={key:o,afterCreate:hY,afterUpdate:gY,afterRemoved:Rk,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,qb.set(e,s),s.afterCreate?.(s,e),n.addHandles(Pt(()=>Rk(e))),queueMicrotask(()=>{s[jb].projector.renderNow()})}function gY(e,t,r,{widgetProperties:n}){let i=qb.get(e);i&&(i.set(n),i.afterUpdate?.(i,e))}function Rk(e){let t=qb.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),qb.delete(e))}function sm(e){return typeof e=="function"&&e[Gb]}var fY,mY,qb,z5=R(()=>{oi();V5();fY=[],mY={},qb=new WeakMap});function Fk(e){Dk.add(e),e.finally(()=>Dk.delete(e))}var Dk,$k=R(()=>{Dk=new Set});function Uk(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"?Uk(e[n],t[n]):e[n]=t[n]);return e}var Vk,wY,yY,bY,W5,Fr,zk,Wk=R(()=>{gt();B4();vI();Ky();Eg();rt();mr();it();Cc();SI();Ro();J4();RI();yt();Wg();ft();Iu();v4();xL();$5();z5();V5();$k();t5();yb();_c();Vg();wY="esri.widgets.Widget",yY=0;bY=_L({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))}}),W5=!1,Fr=class extends xI.EsriPromiseMixin(Fo.EventedAccessor){constructor(e,t){super(e,t),this._attached=!1,this._projector=bY,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=lA(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 U4(a);this.uiStrings&&Object.keys(this.uiStrings)&&(h=Uk(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()}),Nk();let r="esri-widget-uid-"+OI(),n=this.render.bind(this);this._trackingTarget=new Lu(()=>{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),sm(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;sm(g.vnodeSelector)||(g.properties??(g.properties={}),(v=g.properties).key??(v.key=`${this.id}--${d++}`))}),U5(this,c)};this.render=()=>{if(W5)return o();let c=rL(this)??null;if(c)return c;this._trackingTarget.clear(),W5=!0;try{c=No(this._trackingTarget,o)}catch(a){throw ot.getLogger(this).error(a),a}finally{W5=!1}return c&&nL(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),Fk(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(m4):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||(wg(this._trackingTarget),wg(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 bI(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[(Vk=Gb,jb)](){return{projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(wb(this),this._projector.scheduleRender())}classes(...e){return iL.apply(this,e)}renderNow(){wb(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(zg(()=>this.viewModel,(t,r)=>{r&&this.removeHandles("delegated-events"),t&&Sg(t)&&this.addHandles(this._delegatedEventNames.map(n=>Pc(t,n,i=>{this.emit(n,i)})),"delegated-events")},ab)),this.postInitialize();let e=async()=>{await this._loadLocale().catch(m4),this.scheduleRender()};this.addHandles([LS(e),zg(()=>this.uiStrings,e),kI(()=>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[Vk]=!0,Fr.vnodeSelector="div",O([V()],Fr.prototype,"_readyForTrueRender",void 0),O([V({value:null})],Fr.prototype,"container",null),O([ca("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);zk=Fr});function B5(e){return(t,r)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}}var Bk=R(()=>{});function Ii(e,t,...r){return typeof e!="function"||sm(e)?_Y(e,t??null,...r):e(t,...r)}var vY,Gk,_Y,jk=R(()=>{z5();vY=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},Gk=function(e,t){for(var r=0,n=e.length;r<n;r++){var i=e[r];Array.isArray(i)?Gk(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 Gk(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 qk(){return`${xY}${EY()?"dark":"light"}`}var xY,Hk=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 ma,am=R(()=>{ma=()=>CY([2,1,1,1,3])});var pn,Ss=R(()=>{Bu();ar();pn=zL(o1)});var cm,TY,Hb,G5,Zk=R(()=>{ar();Ki();Dr();am();Ss();_n();cm={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}`,Hb=class Hb 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||ma(),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,om(this.el,"id",c),this.el.role="progressbar",xe`<div class=${_e(cm.rings)}>${this.renderRing("track")}${this.renderRing("progress")}${!r&&a&&xe`<div class=${_e(cm.percentage)}>${this.formatValue()}</div>`||""}</div>${!r&&i&&xe`<div class=${_e(cm.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({[cm.ring]:!0,[cm.trackRing]:t==="track",[cm.progressRing]:t==="progress"})} style=${Bb(c)} viewBox=${`0 0 ${o} ${o}`}>${xs`<circle cx=${o/2} cy=${o/2} r=${s??Re} />`}</svg>`}};Hb.properties={complete:7,inline:7,label:1,scale:3,text:1,type:3,value:9},Hb.styles=TY;G5=Hb;Gt("calcite-loader",G5)});var Zb=R(()=>{Zk()});function Bc(e){let t="dir",r=`[${t}]`,n=Gc(e,r);return n?n.getAttribute(t):"ltr"}function rN(e){return e.getRootNode()}function nN(e){return e.host||null}function Ju(e,{selector:t,id:r}){if(!e)return null;e.assignedSlot&&(e=e.assignedSlot);let n=rN(e);return(r?"getElementById"in n?n.getElementById(r):null:t?n.querySelector(t):null)||Ju(nN(n),{selector:t,id:r})}function Gc(e,t){return e?e.closest(t)||Gc(nN(rN(e)),t):null}function qY(e){return typeof e?.setFocus=="function"}async function Xb(e){if(e)return qY(e)?e.setFocus():e.focus()}function HY(e){if(e)return jY(e,q5)[0]??e}function jc(e){HY(e)?.focus()}function ZY(e,t){return e.filter(r=>r.matches(t))}function ha(e,t,r){if(typeof t=="string"&&t!=="")return t;if(t===""||t===!0)return e[r]}function lm(e){return(!!e).toString()}function iN(e){return Zn(e)||JY(e)}function YY(e){return XY(e).filter(t=>t.nodeType===Node.TEXT_NODE).map(t=>t.textContent).join("").trim()}function oN(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 Zn(e){return!!Qb(e).length}function Qb(e,t){return QY(e.target,t)}function QY(e,t){let r=e.assignedElements({flatten:!0});return t?ZY(r,t):r}function sN(e){return!!(e.isPrimary&&e.button===0)}function aN(e){return e.detail===0}function cN(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 lN(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(q){q.target===e&&Xk(q)===t&&(window.clearTimeout(F),e.removeEventListener(v,W),n?.())}function z(q){q.target===e&&Xk(q)===t&&(e.removeEventListener(E,z),e.removeEventListener(P,z),i?.(),A())}})}function eJ(e){return"propertyName"in e}function Xk(e){return eJ(e)?e.propertyName:e.animationName}function a1(e){return e.endsWith("px")}var PY,j5,Qk,s1,Yb,Jb,MY,AY,IY,Kk,eN,LY,kY,tN,NY,OY,RY,DY,FY,$Y,VY,Yk,UY,zY,WY,Jk,BY,GY,jY,q5,Sn=R(()=>{am();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])"],j5=PY.join(","),Qk=typeof Element>"u",s1=Qk?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Yb=!Qk&&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},Jb=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(Jb(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(j5));return t&&s1.call(e,j5)&&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(!Jb(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=s1.call(s,j5);h&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!Jb(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},Kk=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},eN=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||MY(e))&&!Kk(e)?0:e.tabIndex},LY=function(e,t){var r=eN(e);return r<0&&t&&!Kk(e)?0:r},kY=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},tN=function(e){return e.tagName==="INPUT"},NY=function(e){return tN(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||Yb(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 tN(e)&&e.type==="radio"},$Y=function(e){return FY(e)&&!DY(e)},VY=function(e){var t,r=e&&Yb(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=Yb(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},Yk=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=s1.call(e,"details>summary:first-of-type"),o=i?e.parentElement:e;if(s1.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=Yb(e);if(c&&!c.shadowRoot&&n(c)===!0)return Yk(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 Yk(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 s1.call(t,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}t=t.parentElement}return!1},WY=function(e,t){return!(t.disabled||Jb(t)||NY(t)||UY(t,e)||OY(t)||zY(t))},Jk=function(e,t){return!($Y(t)||eN(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:Jk.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:BY}):r=AY(e,t.includeContainer,Jk.bind(null,t)),GY(r)},q5={getShadowRoot:!0}});function Yn(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 qc=R(()=>{ar();});function pN({icon:e,scale:t}){let r=dN[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=pN(e),r=fN(t);if(r)return r;H5[t]||(H5[t]=fetch(o1(`./assets/icon/${t}.json`)).then(i=>i.json()).catch(()=>(console.error(`"${t}" is not a valid calcite-ui-icon name`),"")));let n=await H5[t];return uN[t]=n,n}function iJ(e){return fN(pN(e))}function fN(e){return uN[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,uN,H5,dN,sJ,Kb,Z5,mN=R(()=>{ar();Ki();Dr();Sn();qc();_n();rJ={icon:"icon",flipRtl:"flip-rtl"},uN={},H5={},dN={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}`,Kb=class Kb 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=Yn("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=Bc(t),c=dN[i],a=!!o,d=[].concat(n||"");return this.el.ariaHidden=lm(!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"?xs`<path d=${h??Re} />`:xs`<path d=${h.d??Re} opacity=${("opacity"in h?h.opacity:1)??Re} />`)}</svg>`}};Kb.properties={pathData:16,visible:16,flipRtl:7,icon:3,preload:7,scale:3,textLabel:1},Kb.styles=sJ;Z5=Kb;Gt("calcite-icon",Z5)});var Xu=R(()=>{mN()});function aJ(e){this._$AN!==void 0?(ev(this),this._$AM=e,hN(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++)c1(n[o],!1),ev(n[o]);else n!=null&&(c1(n,!1),ev(n));else c1(this,e)}var c1,ev,hN,lJ,tv,gN=R(()=>{zb();pa();pa();c1=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),c1(n,t);return!0},ev=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},hN=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))},tv=class extends eo{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),hN(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(c1(this,t),ev(this))}setValue(t){if(Vb(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,J5,Y5,At,Uo=R(()=>{Rr();gN();pa();Li=()=>new J5,J5=class{},Y5=new WeakMap,At=to(class extends tv{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=Y5.get(t);r===void 0&&(r=new WeakMap,Y5.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"?Y5.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 X5,uJ,yN,Hc,wN,Q5,um,Ebe,Cbe,rv=R(()=>{Rr();X5=Symbol.for(""),uJ=e=>{if(e?.r===X5)return e?._$litStatic$},yN=e=>({_$litStatic$:e,r:X5}),Hc=(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
10
  take care to ensure page security.`)})(n)+e[i+1],e[0]),r:X5}),wN=new Map,Q5=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=wN.get(g))===void 0&&(s.raw=s,wN.set(g,t=s)),r=c}return e(t,...r)},um=Q5(xe),Ebe=Q5(xs),Cbe=Q5(uk)});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 tE(e){return"checked"in e}function fJ(e,t){if(Gc(t.parentElement,"[form]"))return!0;let r="calciteInternalFormComponentRegister",n=!1;return e.addEventListener(r,i=>{n=i.composedPath().some(o=>rE.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 xN(e){return e.nodeName==="CALCITE-RADIO-BUTTON"?Gc(e,"calcite-radio-button-group"):e}function bN(e){let t=e?.target,r=t?.validationMessage,n=xN(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 nv(e){let{formEl:t}=e;return t?(t.addEventListener("invalid",bN,!0),t.requestSubmit(),t.removeEventListener("invalid",bN,!0),requestAnimationFrame(()=>{let r=t.querySelectorAll("[status=invalid]");for(let n of r)if(n?.validationMessage){n?.setFocus();break}}),!0):!1}function SN(e){e.formEl?.reset()}function EN(e){let{el:t,value:r}=e,n=nE(e);if(!n||fJ(n,t))return;e.formEl=n,e.defaultValue=r,tE(e)&&(e.defaultChecked=e.checked);let i=gJ.bind(e);n.addEventListener("reset",i),eE.set(e.el,i),rE.add(t)}function nE(e){let{el:t,form:r}=e;return r?Ju(t,{id:r}):Gc(t,"form")}function gJ(){if("status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),tE(this)){this.checked=this.defaultChecked;return}this.value=this.defaultValue,this.onFormReset?.()}function CN(e){let{el:t,formEl:r}=e;if(!r)return;let n=eE.get(t);r.removeEventListener("reset",n),eE.delete(t),e.formEl=null,rE.delete(t)}function wJ(e){let{el:t,formEl:r,name:n,value:i}=e,{ownerDocument:o}=t,s=t.querySelectorAll(`input[slot="${K5}"]`);if(!r||!n){s.forEach(g=>{vN(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),_N(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=K5),h||(h=o.createDocumentFragment()),h.append(v),v.addEventListener("input",TN),_N(e,v,g)}),h&&t.append(h),a.forEach(g=>{vN(g),g.remove()})}function _N(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"),tE(e)?(t.checked=e.checked,t.defaultChecked=e.defaultChecked,t.value=e.checked?r||"on":""):t.value=r||"",e.syncHiddenFormInput?.(t);let a=xN(e.el);if(a&&"validity"in a)for(let d in{...t?.validity})a.validity[d]=t.validity[d]}var dJ,K5,eE,rE,hJ,iv,TN,vN,PN,iE=R(()=>{Rr();Sn();dJ=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"];K5="hidden-form-input";eE=new WeakMap,rE=new WeakSet;hJ=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});iv="calciteInternalHiddenInputInput",TN=e=>{e.target.dispatchEvent(new CustomEvent(iv,{bubbles:!0}))},vN=e=>e.removeEventListener("input",TN);PN=({component:e})=>(wJ(e),xe`<slot name=${K5}></slot>`)});function yJ(){let{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function MN(e){e.target.disabled&&e.preventDefault()}function IN(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}function Zc(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",MN,ov),AN.forEach(t=>e.addEventListener(t,IN,ov))}function _J(e){delete e.el.click,xJ(e.el)}function xJ(e){e.removeEventListener("pointerdown",MN,ov),AN.forEach(t=>e.removeEventListener(t,IN,ov))}var AN,ov,SJ,Yc,l1=R(()=>{Rr();Dr();AN=["mousedown","mouseup","click"];ov={capture:!0};SJ={container:"interaction-container"},Yc=({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 pm(e){if(!e)return;let t=EJ(e.el);if(u1.has(t)&&t===e.labelEl||!t&&Qu.has(e))return;let r=PJ.bind(e);if(t){e.labelEl=t;let n=dm.get(t)||[];n.push(e),dm.set(t,n.sort(ON)),u1.has(e.labelEl)||(u1.set(e.labelEl,kN),e.labelEl.addEventListener(NN,kN)),Qu.delete(e),document.removeEventListener(f1,p1.get(e)),sv.set(e,r),document.addEventListener(d1,r)}else Qu.has(e)||(r(),document.removeEventListener(d1,sv.get(e)))}function av(e){if(!e||(Qu.delete(e),document.removeEventListener(f1,p1.get(e)),document.removeEventListener(d1,sv.get(e)),p1.delete(e),sv.delete(e),!e.labelEl))return;let t=dm.get(e.labelEl);t.length===1&&(e.labelEl.removeEventListener(NN,u1.get(e.labelEl)),u1.delete(e.labelEl)),dm.set(e.labelEl,t.filter(r=>r!==e).sort(ON)),e.labelEl=null}function ON(e,t){return cN(e.el,t.el)?-1:1}function m1(e){return e.label||e.labelEl?.textContent?.trim()||""}function kN(e){let t=e.detail.sourceEvent.target,r=dm.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(){Qu.has(this)&&pm(this)}function PJ(){Qu.add(this);let e=p1.get(this)||TJ.bind(this);p1.set(this,e),document.addEventListener(f1,e)}async function RN(e){if(await e.componentOnReady(),dm.has(e))return;let t=e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(let r of Qu)if(r.el===t){pm(r);break}})}var NN,f1,d1,LN,dm,u1,p1,sv,Qu,EJ,cv=R(()=>{Sn();NN="calciteInternalLabelClick",f1="calciteInternalLabelConnected",d1="calciteInternalLabelDisconnected",LN="calcite-label",dm=new WeakMap,u1=new WeakMap,p1=new WeakMap,sv=new WeakMap,Qu=new Set,EJ=e=>{let{id:t}=e,r=t&&Ju(e,{selector:`${LN}[for="${t}"]`});if(r)return r;let n=Gc(e,LN);return!n||CJ(n,e)?null:n}});function Fn(e){FN.set(e,new Promise(t=>DN.set(e,t)))}function $n(e){DN.get(e)()}function MJ(e){return FN.get(e)}async function Vn(e){if(await MJ(e),!!ro())return e.requestUpdate(),new Promise(t=>requestAnimationFrame(()=>t()))}var DN,FN,ga=R(()=>{ar();DN=new WeakMap,FN=new WeakMap});var $N=R(()=>{ar();});function Jn(e){return e==="l"?"m":"s"}var fm=R(()=>{$N();});var ki,AJ,uv,lv,VN=R(()=>{ar();Rr();Uo();rv();Dr();Bu();iE();l1();cv();ga();qc();fm();Ss();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}`,uv=class uv extends $t{constructor(){super(...arguments),this.attributeWatch=Mb(["aria-expanded"],this.handleGlobalAttributesChanged),this.contentEl=Li(),this.mutationObserver=Yn("mutation",()=>this.updateHasContent()),this.resizeObserver=Yn("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 Vn(this),this.childEl?.focus()}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),pm(this),this.formEl=nE(this)}async load(){Fn(this),ro()&&this.updateHasContent()}updated(){Zc(this)}loaded(){$n(this),this.setTooltipText()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),av(this),this.resizeObserver?.disconnect(),this.formEl=null}handleGlobalAttributesChanged(){this.requestUpdate()}updateHasContent(){this.hasContent=oN(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"?nv(this):t==="reset"&&SN(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?Hc`a`:Hc`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=${Jn(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=${Jn(this.scale)}></calcite-icon>`,c=xe`<span class=${_e(ki.content)} ${At(this.contentEl)}><slot></slot></span>`;return Yc({disabled:this.disabled,children:um`<${r} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded?this.el.ariaExpanded:null} .ariaLabel=${this.loading?this.messages.loading:m1(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}>`})}};uv.properties={hasContent:16,tooltipText:16,alignment:3,appearance:3,disabled:7,download:[3,{converter:fa}],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},uv.styles=AJ;lv=uv;Gt("calcite-button",lv)});var UN={};Hs(UN,{Button:()=>lv});var zN=R(()=>{Zb();Xu();VN()});var WN,BN,IJ,dv,oE,GN=R(()=>{ar();Uo();Rr();Dr();qc();Sn();Ss();_n();WN={scrim:"scrim",content:"content"},BN={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}`,dv=class dv extends $t{constructor(){super(...arguments),this.resizeObserver=Yn("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=iN(t)}storeLoaderEl(t){this.loaderEl=t,this.handleResize()}getScale(t){return t<BN.s?"s":t>=BN.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(WN.scrim)}>${r?xe`<calcite-loader .label=${n.loading} .scale=${this.loaderScale} ${At(this.storeLoaderEl)}></calcite-loader>`:null}<div class=${_e(WN.content)} .hidden=${!t}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>`}};dv.properties={hasContent:16,loaderScale:16,loading:7,messageOverrides:0},dv.styles=IJ;oE=dv;Gt("calcite-scrim",oE)});var sE=R(()=>{Zb();GN()});var cr,Jc=R(()=>{Rr();pa();zb();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&&(Ub(e),this.key=t),r}})});var zo,LJ,kJ,pv,aE,jN=R(()=>{ar();Rr();Jc();Uo();Dr();am();l1();ga();qc();fm();Ss();_n();zo={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-hover)}: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}`,pv=class pv extends $t{constructor(){super(...arguments),this.guid=`calcite-action-${ma()}`,this.buttonEl=Li(),this.buttonId=`${this.guid}-button`,this.indicatorId=`${this.guid}-indicator`,this.mutationObserver=Yn("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 Vn(this),this.buttonEl.value?.focus()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){Fn(this)}updated(){Zc(this)}loaded(){$n(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={[zo.textContainer]:!0,[zo.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(zo.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({[zo.indicatorWithIcon]:s})} .flipRtl=${o} .icon=${r} .scale=${Jn(this.scale)}></calcite-icon>`:null,h=a||d,g=h||i.children?.length,v=xe`<div class=${_e({[zo.slotContainer]:!0,[zo.slotContainerHidden]:t})}><slot></slot></div>`;return g?cr("icon-container",xe`<div aria-hidden=true class=${_e(zo.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={[zo.button]:!0,[zo.buttonTextVisible]:s,[zo.buttonCompact]:r};return Yc({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(zo.indicatorWithoutIcon)}></div>`)||""}</button><slot name=${LJ.tooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${this.renderIndicatorText()}`})}};pv.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},pv.styles=kJ;aE=pv;Gt("calcite-action",aE)});var fv=R(()=>{Zb();Xu();jN()});function mv(e,t,r){return wa(e,Xc(t,r))}function Qc(e,t){return typeof e=="function"?e(t):e}function Es(e){return e.split("-")[0]}function Bo(e){return e.split("-")[1]}function uE(e){return e==="x"?"y":"x"}function hv(e){return e==="y"?"height":"width"}function Ku(e){return["top","bottom"].includes(Es(e))?"y":"x"}function gv(e){return uE(Ku(e))}function dE(e,t,r){r===void 0&&(r=!1);let n=Bo(e),i=gv(e),o=hv(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=g1(s)),[s,g1(s)]}function HN(e){let t=g1(e);return[h1(e),t,h1(t)]}function h1(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 ZN(e,t,r,n){let i=Bo(e),o=RJ(Es(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(h1)))),o}function g1(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 pE(e){return typeof e!="number"?DJ(e):{top:e,right:e,bottom:e,left:e}}function ed(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 cE,qN,lE,Xc,wa,w1,y1,Wo,NJ,OJ,wv=R(()=>{cE=["top","right","bottom","left"],qN=["start","end"],lE=cE.reduce((e,t)=>e.concat(t,t+"-"+qN[0],t+"-"+qN[1]),[]),Xc=Math.min,wa=Math.max,w1=Math.round,y1=Math.floor,Wo=e=>({x:e,y:e}),NJ={left:"right",right:"left",bottom:"top",top:"bottom"},OJ={start:"end",end:"start"}});function YN(e,t,r){let{reference:n,floating:i}=e,o=Ku(t),s=gv(t),c=hv(s),a=Es(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(Bo(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 mm(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}=Qc(t,e),P=pE(E),F=c[v?g==="floating"?"reference":"floating":g],W=ed(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,q=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),G=await(o.isElement==null?void 0:o.isElement(q))?await(o.getScale==null?void 0:o.getScale(q))||{x:1,y:1}:{x:1,y:1},Y=ed(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:z,offsetParent:q,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=>Bo(i)===e),...r.filter(i=>Bo(i)!==e)]:r.filter(i=>Es(i)===i)).filter(i=>e?Bo(i)===e||(t?h1(i)!==i:!1):!0)}function JN(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function XN(e){return cE.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=Es(r),c=Bo(r),a=Ku(r)==="y",d=["left","top"].includes(s)?-1:1,h=o&&a?-1:1,g=Qc(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 QN,KN,eO,tO,rO,nO,iO,oO=R(()=>{wv();wv();QN=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}=YN(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:q,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=q??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}=YN(d,v,a)),A=-1)}return{x:h,y:g,placement:v,strategy:i,middlewareData:E}};KN=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}=Qc(e,t)||{};if(d==null)return{};let g=pE(h),v={x:r,y:n},E=gv(i),P=hv(E),A=await s.getDimensions(d),F=E==="y",W=F?"top":"left",z=F?"bottom":"right",q=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[q]:0;(!U||!await(s.isElement==null?void 0:s.isElement(ie)))&&(U=c.floating[q]||o.floating[P]);let fe=G/2-Y/2,Ae=U/2-A[P]/2-1,Ee=Xc(g[W],Ae),Ne=Xc(g[z],Ae),we=Ee,le=U-A[P]-Ne,J=U/2-A[P]/2+fe,ee=mv(we,J,le),pe=!a.arrow&&Bo(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}}});eO=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=lE,autoAlignment:E=!0,...P}=Qc(e,t),A=g!==void 0||v===lE?FJ(g||null,E,v):v,F=await mm(t,P),W=((r=s.autoPlacement)==null?void 0:r.index)||0,z=A[W];if(z==null)return{};let q=dE(z,o,await(a.isRTL==null?void 0:a.isRTL(d.floating)));if(c!==z)return{reset:{placement:A[0]}};let G=[F[Es(z)],F[q[0]],F[q[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=Bo(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,Bo(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}}:{}}}},tO=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}=Qc(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let W=Es(i),z=Ku(c),q=Es(c)===c,G=await(a.isRTL==null?void 0:a.isRTL(d.floating)),Y=v||(q||!A?[g1(c)]:HN(c)),ie=P!=="none";!v&&ie&&Y.push(...ZN(c,A,P,G));let U=[c,...Y],fe=await mm(t,F),Ae=[],Ee=((n=o.flip)==null?void 0:n.overflows)||[];if(h&&Ae.push(fe[W]),g){let J=dE(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=Ku(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{}}}};rO=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=Qc(e,t);switch(n){case"referenceHidden":{let o=await mm(t,{...i,elementContext:"reference"}),s=JN(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:XN(s)}}}case"escaped":{let o=await mm(t,{...i,altBoundary:!0}),s=JN(o,r.floating);return{data:{escapedOffsets:s,escaped:XN(s)}}}default:return{}}}}};nO=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}}}}},iO=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}=Qc(e,t),d={x:r,y:n},h=await mm(t,a),g=Ku(Es(i)),v=uE(g),E=d[v],P=d[g];if(o){let F=v==="y"?"top":"left",W=v==="y"?"bottom":"right",z=E+h[F],q=E-h[W];E=mv(z,E,q)}if(s){let F=g==="y"?"top":"left",W=g==="y"?"bottom":"right",z=P+h[F],q=P-h[W];P=mv(z,P,q)}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 yv(){return typeof window<"u"}function td(e){return aO(e)?(e.nodeName||"").toLowerCase():"#document"}function di(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Go(e){var t;return(t=(aO(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function aO(e){return yv()?e instanceof Node||e instanceof di(e).Node:!1}function no(e){return yv()?e instanceof Element||e instanceof di(e).Element:!1}function jo(e){return yv()?e instanceof HTMLElement||e instanceof di(e).HTMLElement:!1}function sO(e){return!yv()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof di(e).ShadowRoot}function gm(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 cO(e){return["table","td","th"].includes(td(e))}function b1(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function wm(e){let t=bv(),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 lO(e){let t=ya(e);for(;jo(t)&&!rd(t);){if(wm(t))return t;if(b1(t))return null;t=ya(t)}return null}function bv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function rd(e){return["html","body","#document"].includes(td(e))}function io(e){return di(e).getComputedStyle(e)}function v1(e){return no(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ya(e){if(td(e)==="html")return e;let t=e.assignedSlot||e.parentNode||sO(e)&&e.host||Go(e);return sO(t)?t.host:t}function uO(e){let t=ya(e);return rd(t)?e.ownerDocument?e.ownerDocument.body:e.body:jo(t)&&gm(t)?t:uO(t)}function hm(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=uO(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=di(i);if(o){let c=vv(s);return t.concat(s,s.visualViewport||[],gm(i)?i:[],c&&r?hm(c):[])}return t.concat(i,hm(i,[],r))}function vv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var fE=R(()=>{});function fO(e){let t=io(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=jo(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,c=w1(r)!==o||w1(n)!==s;return c&&(r=o,n=s),{width:r,height:n,$:c}}function hE(e){return no(e)?e:e.contextElement}function ym(e){let t=hE(e);if(!jo(t))return Wo(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=fO(t),s=(o?w1(r.width):r.width)/n,c=(o?w1(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}function mO(e){let t=di(e);return!bv()||!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 nd(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=hE(e),s=Wo(1);t&&(n?no(n)&&(s=ym(n)):s=ym(e));let c=UJ(o,r,n)?mO(o):Wo(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=vv(P);for(;A&&n&&E!==P;){let F=ym(A),W=A.getBoundingClientRect(),z=io(A),q=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+=q,d+=G,P=di(A),A=vv(P)}}return ed({width:h,height:g,x:a,y:d})}function gE(e,t){let r=v1(e).scrollLeft;return t?t.left+r:nd(Go(e)).left+r}function hO(e,t,r){r===void 0&&(r=!1);let n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:gE(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=Go(n),c=t?b1(t.floating):!1;if(n===s||c&&o)return r;let a={scrollLeft:0,scrollTop:0},d=Wo(1),h=Wo(0),g=jo(n);if((g||!g&&!o)&&((td(n)!=="body"||gm(s))&&(a=v1(n)),jo(n))){let E=nd(n);d=ym(n),h.x=E.x+n.clientLeft,h.y=E.y+n.clientTop}let v=s&&!g&&!o?hO(s,a,!0):Wo(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=Go(e),r=v1(e),n=e.ownerDocument.body,i=wa(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=wa(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+gE(e),c=-r.scrollTop;return io(n).direction==="rtl"&&(s+=wa(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:c}}function GJ(e,t){let r=di(e),n=Go(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,c=0,a=0;if(i){o=i.width,s=i.height;let d=bv();(!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=nd(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=jo(e)?ym(e):Wo(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 dO(e,t,r){let n;if(t==="viewport")n=GJ(e,r);else if(t==="document")n=BJ(Go(e));else if(no(t))n=jJ(t,r);else{let i=mO(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ed(n)}function gO(e,t){let r=ya(e);return r===t||!no(r)||rd(r)?!1:io(r).position==="fixed"||gO(r,t)}function qJ(e,t){let r=t.get(e);if(r)return r;let n=hm(e,[],!1).filter(c=>no(c)&&td(c)!=="body"),i=null,o=io(e).position==="fixed",s=o?ya(e):e;for(;no(s)&&!rd(s);){let c=io(s),a=wm(s);!a&&c.position==="fixed"&&(i=null),(o?!a&&!i:!a&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||gm(s)&&!a&&gO(e,s))?n=n.filter(h=>h!==s):i=c,s=ya(s)}return t.set(e,n),n}function HJ(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?b1(t)?[]:qJ(t,this._c):[].concat(r),n],c=s[0],a=s.reduce((d,h)=>{let g=dO(t,h,i);return d.top=wa(g.top,d.top),d.right=Xc(g.right,d.right),d.bottom=Xc(g.bottom,d.bottom),d.left=wa(g.left,d.left),d},dO(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}=fO(e);return{width:t,height:r}}function YJ(e,t,r){let n=jo(t),i=Go(t),o=r==="fixed",s=nd(e,!0,o,t),c={scrollLeft:0,scrollTop:0},a=Wo(0);if(n||!n&&!o)if((td(t)!=="body"||gm(i))&&(c=v1(t)),n){let v=nd(t,!0,o,t);a.x=v.x+t.clientLeft,a.y=v.y+t.clientTop}else i&&(a.x=gE(i));let d=i&&!n&&!o?hO(i,c):Wo(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 mE(e){return io(e).position==="static"}function pO(e,t){if(!jo(e)||io(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Go(e)===r&&(r=r.ownerDocument.body),r}function wO(e,t){let r=di(e);if(b1(e))return r;if(!jo(e)){let i=ya(e);for(;i&&!rd(i);){if(no(i)&&!mE(i))return i;i=ya(i)}return r}let n=pO(e,t);for(;n&&cO(n)&&mE(n);)n=pO(n,t);return n&&rd(n)&&mE(n)&&!wm(n)?r:n||lO(e)||r}function XJ(e){return io(e).direction==="rtl"}function QJ(e,t){let r=null,n,i=Go(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=y1(h),P=y1(i.clientWidth-(d+g)),A=y1(i.clientHeight-(h+v)),F=y1(d),z={rootMargin:-E+"px "+-P+"px "+-A+"px "+-F+"px",threshold:wa(0,Xc(1,a))||1},q=!0;function G(Y){let ie=Y[0].intersectionRatio;if(ie!==a){if(!q)return s();ie?s(!1,ie):n=setTimeout(()=>{s(!1,1e-7)},1e3)}q=!1}try{r=new IntersectionObserver(G,{...z,root:i.ownerDocument})}catch{r=new IntersectionObserver(G,z)}r.observe(e)}return s(!0),o}function yO(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=hE(e),h=i||o?[...d?hm(d):[],...hm(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 q;(q=E)==null||q.observe(t)})),r()}),d&&!a&&E.observe(d),E.observe(t));let P,A=a?nd(e):null;a&&F();function F(){let W=nd(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,_v,bO,vO,_O,wE,xO,SO,EO,CO=R(()=>{oO();wv();fE();VJ=Wo(0);JJ=async function(e){let t=this.getOffsetParent||wO,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}}};_v={convertOffsetParentRelativeRectToViewportRelativeRect:zJ,getDocumentElement:Go,getClippingRect:HJ,getOffsetParent:wO,getElementRects:JJ,getClientRects:WJ,getDimensions:ZJ,getScale:ym,isElement:no,isRTL:XJ};bO=nO,vO=eO,_O=iO,wE=tO,xO=rO,SO=KN,EO=(e,t,r)=>{let n=new Map,i={platform:_v,...r},o={...i.platform,_c:n};return QN(e,t,{...i,platform:o})}});var KJ,TO,PO=R(()=>{KJ=typeof global=="object"&&global&&global.Object===Object&&global,TO=KJ});var eX,tX,xv,yE=R(()=>{PO();eX=typeof self=="object"&&self&&self.Object===Object&&self,tX=TO||eX||Function("return this")(),xv=tX});var rX,bm,bE=R(()=>{yE();rX=xv.Symbol,bm=rX});function oX(e){var t=nX.call(e,_1),r=e[_1];try{e[_1]=void 0;var n=!0}catch{}var i=iX.call(e);return n&&(t?e[_1]=r:delete e[_1]),i}var MO,nX,iX,_1,AO,IO=R(()=>{bE();MO=Object.prototype,nX=MO.hasOwnProperty,iX=MO.toString,_1=bm?bm.toStringTag:void 0;AO=oX});function cX(e){return aX.call(e)}var sX,aX,LO,kO=R(()=>{sX=Object.prototype,aX=sX.toString;LO=cX});function dX(e){return e==null?e===void 0?uX:lX:NO&&NO in Object(e)?AO(e):LO(e)}var lX,uX,NO,OO,RO=R(()=>{bE();IO();kO();lX="[object Null]",uX="[object Undefined]",NO=bm?bm.toStringTag:void 0;OO=dX});function pX(e){return e!=null&&typeof e=="object"}var DO,FO=R(()=>{DO=pX});function mX(e){return typeof e=="symbol"||DO(e)&&OO(e)==fX}var fX,$O,VO=R(()=>{RO();FO();fX="[object Symbol]";$O=mX});function gX(e){for(var t=e.length;t--&&hX.test(e.charAt(t)););return t}var hX,UO,zO=R(()=>{hX=/\s/;UO=gX});function yX(e){return e&&e.slice(0,UO(e)+1).replace(wX,"")}var wX,WO,BO=R(()=>{zO();wX=/^\s+/;WO=yX});function bX(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var x1,vE=R(()=>{x1=bX});function EX(e){if(typeof e=="number")return e;if($O(e))return GO;if(x1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=x1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=WO(e);var r=_X.test(e);return r||xX.test(e)?SX(e.slice(2),r?2:8):vX.test(e)?GO:+e}var GO,vX,_X,xX,SX,_E,jO=R(()=>{BO();vE();VO();GO=NaN,vX=/^[-+]0x[0-9a-f]+$/i,_X=/^0b[01]+$/i,xX=/^0o[0-7]+$/i,SX=parseInt;_E=EX});var CX,Sv,qO=R(()=>{yE();CX=function(){return xv.Date.now()},Sv=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=_E(t)||0,x1(r)&&(h=!!r.leading,g="maxWait"in r,o=g?PX(_E(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=Sv();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 q(){c!==void 0&&clearTimeout(c),d=0,n=a=i=c=void 0}function G(){return c===void 0?s:z(Sv())}function Y(){var ie=Sv(),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=q,Y.flush=G,Y}var TX,PX,MX,xE,HO=R(()=>{vE();qO();jO();TX="Expected a function",PX=Math.max,MX=Math.min;xE=AX});var ZO=R(()=>{HO();});function YO(e){return IX(e)}function SE(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function IX(e){for(let t=e;t;t=SE(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=SE(e);t;t=SE(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||wm(r)||t.tagName==="BODY"))return t}return null}var JO=R(()=>{fE()});function XO(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=[_O(),xO()];if(s==="menu")return[...c,wE({fallbackPlacements:r||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let a=[...c,bO({mainAxis:typeof n=="number"?n:0,crossAxis:typeof i=="number"?i:0})];return e==="auto"||e==="auto-start"||e==="auto-end"?a.push(vO({alignment:e==="auto-start"?"start":e==="auto-end"?"end":null})):t||a.push(wE(r?{fallbackPlacements:r}:{})),o&&a.push(SO({element:o})),a}return[]}function nR(e,t){let r=e.filter(n=>QO.includes(n));return r.length!==e.length&&console.warn(`${t.tagName}: Invalid value found in: flipPlacements. Try any of these: ${QO.map(n=>`"${n}"`).join(", ").trim()}`,{el:t}),r}function KO(e,t=!1){let r=["left","right"];return t&&r.reverse(),e.replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}async function iR(e,t,r=!1){if(!(!e.open||!t.floatingEl||!t.referenceEl)){if(Object.assign(t.floatingEl.style,{display:"block",position:t.overlayPositioning??"absolute"}),!S1.get(e))return oR(e);await(r?NX(e):tR)(e,t)}}function NX(e){let t=Ev.get(e);return t||(t=xE(tR,D5.reposition,{leading:!0,maxWait:D5.reposition}),Ev.set(e,t),t)}async function oR(e){let{referenceEl:t,floatingEl:r}=e;if(!r.isConnected)return;let n=ro()?yO:(s,c,a)=>(a(),()=>{});S1.set(e,{state:"pending"});let i,o=n(t,r,()=>{let s=e.reposition();i||(i=s)});return S1.set(e,{state:"active",cleanUp:o}),i}function CE(e){let{floatingEl:t}=e;t&&Object.assign(t.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function sR(e){let{floatingEl:t,referenceEl:r}=e;if(CE(e),!(!t||!r)&&(TE(e),!!e.open))return oR(e)}function TE(e){let{floatingEl:t,referenceEl:r}=e;if(!t||!r)return;let n=S1.get(e);n?.state==="active"&&n.cleanUp(),S1.delete(e),Ev.get(e)?.cancel(),Ev.delete(e)}var tR,LX,QO,rR,EE,OX,S1,Ev,eR,PE,ME=R(()=>{CO();ZO();JO();ar();Sn();(function(){if(ro()){let e=_v.getOffsetParent;_v.getOffsetParent=t=>e(t,YO)}})();tR=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=Bc(r)==="rtl",{x:v,y:E,placement:P,strategy:A,middlewareData:F}=await EO(t,r,{strategy:n,placement:i==="auto"||i==="auto-start"||i==="auto-end"?void 0:KO(i,g),middleware:kX({placement:i,flipDisabled:o,flipPlacements:s?.map(q=>KO(q,g)),offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})});if(d&&F.arrow){let{x:q,y:G}=F.arrow,Y=P.split("-")[0],ie=q!=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"?q: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(${XO(v)}px,${XO(E)}px)`,visibility:W})},LX="data-placement",QO=["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"],rR="bottom-end",EE={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)"},S1=new WeakMap,Ev=new WeakMap;eR=4,PE=Math.ceil(Math.hypot(eR,eR))});var cR,Cv,lR,id,Tv,Pv,RX,uR,dR,pR,Kc,DX,FX,fR,$X,VX,UX,zX,WX,BX,GX,aR,jX,qX,Mv,AE,HX,ZX,mR,hR,od,YX,Av,gR=R(()=>{cR=["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])"],Cv=cR.join(","),lR=typeof Element>"u",id=lR?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Tv=!lR&&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},Pv=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"},uR=function(t,r,n){if(Pv(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Cv));return r&&id.call(t,Cv)&&i.unshift(t),i=i.filter(n),i},dR=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!Pv(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=id.call(s,Cv);h&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!Pv(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},pR=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Kc=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||RX(t))&&!pR(t)?0:t.tabIndex},DX=function(t,r){var n=Kc(t);return n<0&&r&&!pR(t)?0:n},FX=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},fR=function(t){return t.tagName==="INPUT"},$X=function(t){return fR(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||Tv(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 fR(t)&&t.type==="radio"},BX=function(t){return WX(t)&&!zX(t)},GX=function(t){var r,n=t&&Tv(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=Tv(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},aR=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=id.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(id.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=Tv(t);if(a&&!a.shadowRoot&&i(a)===!0)return aR(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 aR(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 id.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},Mv=function(t,r){return!(r.disabled||Pv(r)||$X(r)||jX(r,t)||VX(r)||qX(r))},AE=function(t,r){return!(BX(r)||Kc(r)<0||!Mv(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)},mR=function(t,r){r=r||{};var n;return r.getShadowRoot?n=dR([t],r.includeContainer,{filter:AE.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:HX}):n=uR(t,r.includeContainer,AE.bind(null,r)),ZX(n)},hR=function(t,r){r=r||{};var n;return r.getShadowRoot?n=dR([t],r.includeContainer,{filter:Mv.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=uR(t,r.includeContainer,Mv.bind(null,r)),n},od=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return id.call(t,Cv)===!1?!1:AE(r,t)},YX=cR.concat("iframe").join(","),Av=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return id.call(t,YX)===!1?!1:Mv(r,t)}});function IE(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 IE(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
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wR(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 yR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wR(Object(r),!0).forEach(function(n){XX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wR(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 IE(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)?IE(e,t):void 0}}var bR,iQ,oQ,C1,sQ,aQ,vR,E1,Iv,cQ,_R,xR=R(()=>{gR();bR={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},C1=function(t){return t?.key==="Tab"||t?.keyCode===9},sQ=function(t){return C1(t)&&!t.shiftKey},aQ=function(t){return C1(t)&&t.shiftKey},vR=function(t){return setTimeout(t,0)},E1=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},Iv=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},cQ=[],_R=function(t,r){var n=r?.document||document,i=r?.trapStack||cQ,o=yR({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&&!Av(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=mR(le,o.tabbableOptions),ee=hR(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 od(nt)}),ye=ee.slice().reverse().find(function(nt){return od(nt)}),Fe=!!J.find(function(nt){return Kc(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 od(pr)}):ee.slice(0,ee.indexOf(Et)).reverse().find(function(pr){return od(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||Iv(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(zn){var Pn=zn.firstTabbableNode;return J===Pn});if(nt<0&&(Fe.container===J||Av(J,o.tabbableOptions)&&!od(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=Kc(J)>=0?Cr.lastTabbableNode:Cr.lastDomTabbableNode}else C1(ee)||(Se=Fe.nextTabbableNode(J,!1))}else{var dr=s.tabbableGroups.findIndex(function(zn){var Pn=zn.lastTabbableNode;return J===Pn});if(dr<0&&(Fe.container===J||Av(J,o.tabbableOptions)&&!od(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=Kc(J)>=0?gi.firstTabbableNode:gi.firstDomTabbableNode}else C1(ee)||(Se=Fe.nextTabbableNode(J))}}else Se=h("fallbackFocus");return Se},W=function(le){var J=Iv(le);if(!(d(J,le)>=0)){if(E1(o.clickOutsideDeactivates,le)){c.deactivate({returnFocus:o.returnFocusOnDeactivate});return}E1(o.allowOutsideClick,le)||le.preventDefault()}},z=function(le){var J=Iv(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(Kc(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 Kc(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},q=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&&(C1(le)&&le.preventDefault(),P(ee))},G=function(le){(o.isKeyForward(le)||o.isKeyBackward(le))&&q(le,o.isKeyBackward(le))},Y=function(le){oQ(le)&&E1(o.escapeDeactivates,le)!==!1&&(le.preventDefault(),c.deactivate())},ie=function(le){var J=Iv(le);d(J,le)>=0||E1(o.clickOutsideDeactivates,le)||E1(o.allowOutsideClick,le)||(le.preventDefault(),le.stopImmediatePropagation())},U=function(){if(s.active)return bR.activateTrap(i,c),s.delayInitialFocusTimer=o.delayInitialFocus?vR(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=yR({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(),bR.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(){vR(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 Lv(e,t){let{el:r}=e,n=t?.focusTrapEl||r;if(!n)return;let i={clickOutsideDeactivates:!0,fallbackFocus:n,setReturnFocus:o=>(Xb(o),!1),...t?.focusTrapOptions,document:r.ownerDocument,tabbableOptions:q5,trapStack:Mk};e.focusTrap=_R(n,i)}function T1(e,t){e.focusTrapDisabled||e.focusTrap?.activate(t)}function sd(e,t){e.focusTrap?.deactivate(t)}function kv(e){e.focusTrap?.updateContainerElements(e.el)}var LE=R(()=>{xR();Sn();ar();});function SR(e){return"opened"in e?e.opened:e.open}function el(e){requestAnimationFrame(()=>{e.transitionEl&&lN(e.transitionEl,e.openTransitionProp,()=>{SR(e)?e.onBeforeOpen():e.onBeforeClose()},()=>{SR(e)?e.onOpen():e.onClose()})})}var Nv=R(()=>{Sn();});var Ov,kE=R(()=>{Jc();rv();Dr();Ov=({children:e,...t})=>{let r=t.level?yN(`h${t.level}`):Hc`div`;return cr(t.key,um`<${r} class=${_e(t.class)}>${e}</${r}>`)}});var ER,lQ,CR,TR=R(()=>{Uo();Jc();Rr();Dr();ER={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},lQ={width:12,height:6,strokeWidth:1},CR=({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(ER.arrow)} height=${n??Re} viewBox=${`0 0 ${n} ${n+(c?0:o)}`} width=${n+(c?o:0)} ${At(r)}>${xs`${o>0&&xs`<path class=${_e(ER.arrowStroke)} d=${a??Re} fill=none stroke-width=${o+1} />`||""}<path d=${a??Re} stroke=none />`}</svg>`)}});function Rv(e){return e==="Enter"||e===" "}var P1,M1=R(()=>{P1=["0","1","2","3","4","5","6","7","8","9"]});var NE,qo,PR,MR,AR,uQ,IR,Dv,OE,LR=R(()=>{ar();Jc();Ki();Uo();Dr();ME();LE();Sn();am();Nv();kE();ga();qc();TR();fm();Ss();M1();_n();NE=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():Rv(t.key)&&this.togglePopovers(t))},this.clickHandler=t=>{aN(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)}},qo={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"},PR="auto",MR="aria-controls",AR="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{inline-size:max-content;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}`,IR=new NE,Dv=class Dv extends $t{constructor(){super(...arguments),this.closeButtonEl=Li(),this.guid=`calcite-popover-${ma()}`,this.hasLoaded=!1,this.mutationObserver=Yn("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=PE,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=PR,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 iR(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 Vn(this),this.requestUpdate(),jc(this.el)}async updateFocusTrapElements(){kv(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),Lv(this,{focusTrapEl:this.el,focusTrapOptions:{allowOutsideClick:!0,escapeDeactivates:t=>(t.defaultPrevented||(this.open=!1,t.preventDefault()),!1),initialFocus:this.initialFocusTrapFocus}}),requestAnimationFrame(()=>this.setUpReferenceElement(this.hasLoaded))}async load(){Fn(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!==PE)||t.has("offsetSkidding")&&(this.hasUpdated||this.offsetSkidding!==0)||t.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||t.has("placement")&&(this.hasUpdated||this.placement!==PR))&&this.reposition(!0),t.has("referenceElement")&&this.referenceElementHandler()}loaded(){$n(this),this.referenceElement&&!this.referenceEl&&this.setUpReferenceElement(),this.open&&el(this),this.hasLoaded=!0}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.removeReferences(),TE(this),sd(this)}handleFocusTrapDisabled(t){this.open&&(t?sd(this):T1(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}openHandler(){el(this),this.reposition(!0),this.setExpandedAttr()}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}setFloatingEl(t){this.floatingEl=t,t&&requestAnimationFrame(()=>this.setUpReferenceElement())}setTransitionEl(t){this.transitionEl=t}setFilteredPlacements(){let{el:t,flipPlacements:r}=this;this.filteredFlipPlacements=r?nR(r,t):null}setUpReferenceElement(t=!0){this.removeReferences(),this.referenceEl=this.getReferenceElement(),sR(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(AR,lm(r))}addReferences(){let{referenceEl:t}=this;if(!t)return;let r=this.getId();"setAttribute"in t&&t.setAttribute(MR,r),IR.registerElement(t,this.el),this.setExpandedAttr()}removeReferences(){let{referenceEl:t}=this;t&&("removeAttribute"in t&&(t.removeAttribute(MR),t.removeAttribute(AR)),IR.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(),T1(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),CE(this),sd(this)}storeArrowEl(t){this.arrowEl=t,this.reposition(!0)}renderCloseButton(){let{messages:t,closable:r}=this;return r?cr(qo.closeButtonContainer,xe`<div class=${_e(qo.closeButtonContainer)}><calcite-action appearance=transparent class=${_e(qo.closeButton)} @click=${this.hide} .scale=${this.scale} .text=${t.close} ${At(this.closeButtonEl)}><calcite-icon icon=x .scale=${Jn(this.scale)}></calcite-icon></calcite-action></div>`):null}renderHeader(){let{heading:t,headingLevel:r}=this,n=t?Ov({class:qo.heading,level:r,children:t}):null;return n?cr(qo.header,xe`<div class=${_e(qo.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",CR({floatingLayout:s,ref:this.storeArrowEl}));return this.el.inert=a,this.el.ariaLabel=n,this.el.ariaLive="polite",om(this.el,"id",this.getId()),this.el.role="dialog",xe`<div class=${_e(qo.positionContainer)} ${At(this.setFloatingEl)}><div class=${_e({[qo.container]:!0,[EE.animation]:!0,[EE.animationActive]:c})} ${At(this.setTransitionEl)}>${d}<div class=${_e({[qo.hasHeader]:!!r,[qo.headerContainer]:!0})}>${this.renderHeader()}<div class=${_e(qo.content)}><slot></slot></div>${r?null:this.renderCloseButton()}</div></div></div>`}};Dv.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},Dv.styles=uQ;OE=Dv;Gt("calcite-popover",OE)});var kR=R(()=>{fv();Xu();LR()});function RE(e,t){return(e+t)%t}var NR=R(()=>{});var DE,A1,OR,RR,FE=R(()=>{DE={menu:"menu",defaultTrigger:"default-trigger"},A1={tooltip:"tooltip",trigger:"trigger"},OR={menu:"ellipsis"},RR="data-active"});var dQ,pQ,Fv,$E,DR=R(()=>{ar();Uo();Ki();Dr();NR();Sn();am();M1();ga();FE();_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"],Fv=class Fv extends $t{constructor(){super(...arguments),this.guid=`calcite-action-menu-${ma()}`,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(Rv(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(RR,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 Vn(this),Xb(this.menuButtonEl)}connectedCallback(){super.connectedCallback(),this.connectMenuButtonEl()}load(){Fn(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(){$n(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",lm(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),this.menuButtonEl=null)}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,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=RE(Math.max(i-1,-1),n.length)),r==="ArrowDown"&&(this.activeMenuItemIndex=RE(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=${A1.trigger} @slotchange=${this.setMenuButtonEl}><calcite-action .appearance=${t} class=${_e(DE.defaultTrigger)} .icon=${OR.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(DE.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=${A1.tooltip} @slotchange=${this.updateTooltip}></slot>`}};Fv.properties={activeMenuItemIndex:16,menuButtonEl:16,appearance:3,expanded:7,flipPlacements:0,label:1,open:7,overlayPositioning:3,placement:3,scale:3},Fv.styles=dQ;$E=Fv;Gt("calcite-action-menu",$E)});var FR=R(()=>{fv();kR();DR()});var lr,VE,I1,Zt,UE=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"},VE={close:"close",collapse:"collapse"},I1={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,$v,zE,$R=R(()=>{ar();Jc();Uo();Ki();Dr();Sn();l1();ga();qc();FE();kE();ME();Ss();UE();_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}`,$v=class $v extends $t{constructor(){super(),this.resizeObserver=Yn("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=rR,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 Vn(this),jc(this.containerEl)}async load(){Fn(this),this.isClosed=this.closed}willUpdate(t){t.has("closed")&&this.hasUpdated&&(this.closed?this.close():this.open())}updated(){Zc(this)}loaded(){$n(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=Zn(t)}handleHeaderActionsEndSlotChange(t){this.hasEndActions=Zn(t)}handleHeaderMenuActionsSlotChange(t){this.hasMenuItems=Zn(t)}handleActionBarSlotChange(t){let r=Qb(t).filter(n=>n?.matches("calcite-action-bar"));r.forEach(n=>n.layout="horizontal"),this.hasActionBar=!!r.length}handleHeaderContentSlotChange(t){this.hasHeaderContent=Zn(t)}handleFabSlotChange(t){this.hasFab=Zn(t)}handleFooterActionsSlotChange(t){this.hasFooterActions=Zn(t)}handleFooterEndSlotChange(t){this.hasFooterEndContent=Zn(t)}handleFooterStartSlotChange(t){this.hasFooterStartContent=Zn(t)}handleFooterSlotChange(t){this.hasFooterContent=Zn(t)}contentBottomSlotChangeHandler(t){this.hasContentBottom=Zn(t)}contentTopSlotChangeHandler(t){this.hasContentTop=Zn(t)}setPanelScrollEl(t){this.panelScrollEl=t,this.resizeObserver?.disconnect(),t&&(this.resizeObserver?.observe(t),this.resizeHandler())}handleAlertsSlotChange(t){Qb(t)?.map(r=>{r.nodeName==="CALCITE-ALERT"&&(r.embedded=!0)})}renderHeaderContent(){let{heading:t,headingLevel:r,description:n,hasHeaderContent:i}=this,o=t?Ov({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=[I1.expand,I1.collapse];o==="up"&&g.reverse();let v=s?xe`<calcite-action .ariaExpanded=${!i} .ariaLabel=${a} .icon=${i?g[0]:g[1]} id=${VE.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=${I1.close} id=${VE.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=${I1.menu} .scale=${this.scale} slot=${A1.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 Yc({disabled:t,children:xe`${r?xe`<calcite-scrim .loading=${r}></calcite-scrim>`:null}${i}`})}};$v.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},$v.styles=fQ;zE=$v;Gt("calcite-panel",zE)});var VR=R(()=>{fv();FR();sE();$R()});function zR(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var UR,WR=R(()=>{UR=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{}});var Vv,mQ,L1,BR=R(()=>{WR();Vv={exports:{}};Vv.exports;(function(e,t){(function(r,n){e.exports=n()})(UR,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 q(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&&q(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 zn(f){for(var p=[];f;)p.push(f),f=ye(f);return p}function Pn(f){return!!U.string(f)&&(J.document.querySelector(f),!0)}function Ue(f,p){for(var w in p)f[w]=p[w];return f}function Ed(f,p,w){return f==="parent"?ye(w):f==="self"?p.getRect(w):Se(w,f)}function Ko(f,p,w,_){var C=f;return U.string(C)?C=Ed(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 pl(f){return!f||"x"in f&&"y"in f||((f=Ue({},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 Ea(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 Os(f,p,w){var _=w&&f.options[w];return lo(Ko(_&&_.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=Cd(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(Cd(N).map(function(D){return"".concat(f).concat(D)}),p[N],w,_);return _}function Cd(f){return f.trim().split(/ +/)}var Rs=function(f,p){return Math.sqrt(f*f+p*p)},Om=["webkit","moz"];function es(f,p){f.__set||(f.__set={});var w=function(C){if(Om.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 Ca(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 fl(f){f.page.x=0,f.page.y=0,f.client.x=0,f.client.y=0}function ml(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 Td(f,p){return p=p||{x:0,y:0},pe.isOperaMobile&&ml(f)?(Tr("screen",f,p),p.x+=window.scrollX,p.y+=window.scrollY):Tr("page",f,p),p}function ts(f){return U.number(f.pointerId)?f.pointerId:f.identifier}function Ta(f,p,w){var _=p.length>1?Pd(p):p[0];Td(_,f.page),function(C,T){T=T||{},pe.isOperaMobile&&ml(C)?Tr("screen",C,T):Tr("client",C,T)}(_,f.client),f.timeStamp=w}function hl(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 Pd(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 gl(f){if(!f.length)return null;var p=hl(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 wl(f,p){var w=p+"X",_=p+"Y",C=hl(f),T=C[0][w]-C[1][w],I=C[0][_]-C[1][_];return Rs(T,I)}function yl(f,p){var w=p+"X",_=p+"Y",C=hl(f),T=C[1][w]-C[0][w],I=C[1][_]-C[0][_];return 180*Math.atan2(I,T)/Math.PI}function bl(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 Md(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 Ad=function(f,p){for(var w=0;w<p.length;w++){var _=p[w];f.push(_)}return f},vl=function(f){return Ad([],f)},Ds=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[Ds(f,p)]},rs=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=Ds(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 _l(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 Id(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,Ve,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 Mn=Et(Kr,tt.ownerDocument),Wn=0;Mn[Wn]&&Mn[Wn]===et[Wn];)Wn++;var js=[Mn[Wn-1],Mn[Wn],et[Wn]];if(js[0])for(var mt=js[0].lastChild;mt;){if(mt===js[1]){Oe=st,et=Mn;break}if(mt===js[2])break;mt=mt.previousSibling}}else Ve=tt,(parseInt(G(Ie=je).getComputedStyle(Ie).zIndex,10)||0)>=(parseInt(G(Ve).getComputedStyle(Ve).zIndex,10)||0)&&(Oe=st);else Oe=st}else Oe=st}return Oe}(I);return _.activeDrops[he]||null}function xl(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 rs(_,w,"dropactivate"),C.activate.target=null,C.activate.dropzone=null),w.type==="dragend"&&(C.deactivate=new rs(_,w,"dropdeactivate"),C.deactivate.target=null,C.deactivate.dropzone=null),_.rejected||(_.cur.element!==_.prev.element&&(_.prev.dropzone&&(C.leave=new rs(_,w,"dragleave"),w.dragLeave=C.leave.target=_.prev.element,w.prevDropzone=C.leave.dropzone=_.prev.dropzone),_.cur.dropzone&&(C.enter=new rs(_,w,"dragenter"),w.dragEnter=_.cur.element,w.dropzone=_.cur.dropzone)),w.type==="dragend"&&_.cur.dropzone&&(C.drop=new rs(_,w,"drop"),w.dropzone=_.cur.dropzone,w.relatedTarget=_.cur.element),w.type==="dragmove"&&_.cur.dropzone&&(C.move=new rs(_,w,"dropmove"),w.dropzone=_.cur.dropzone)),C}function Pa(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 Ld(f,p){var w=f.interaction,_=f.iEvent,C=f.event;if(_.type==="dragmove"||_.type==="dragend"){var T=w.dropState;p.dynamicDrop&&(T.activeDrops=_l(p,w.element));var I=_,N=Id(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=xl(w,0,I)}}var kd={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 Ve=!1;if(!(Ie=Ie||Q.getRect(Oe)))return!!Q.options.drop.checker&&Q.options.drop.checker(ae,ge,Ve,Q,Oe,he,be);var et=Q.options.drop.overlap;if(et==="pointer"){var st=Os(he,be,"drag"),je=Td(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;Ve=tt&&Mr}var Lt=he.getRect(be);if(Lt&&et==="center"){var Kr=Lt.left+Lt.width/2,Mn=Lt.top+Lt.height/2;Ve=Kr>=Ie.left&&Kr<=Ie.right&&Mn>=Ie.top&&Mn<=Ie.bottom}return Lt&&U.number(et)&&(Ve=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&&(Ve=Q.options.drop.checker(ae,ge,Ve,Q,Oe,he,be)),Ve}(this,T,I,N,D,B,$)},w.dynamicDrop=function(T){return U.bool(T)?(f.dynamicDrop=T,w):f.dynamicDrop},Ue(p.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),p.methodDict.drop="dropzone",f.dynamicDrop=!1,C.actions.drop=kd.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=_l(p,w.element),C.events=xl(w,0,_),C.events.activate&&(po(C.activeDrops,C.events.activate),p.fire("actions/drop:start",{interaction:w,dragEvent:_}))}},"interactions:action-move":Ld,"interactions:after-action-move":function(f,p){var w=f.interaction,_=f.iEvent;if(w.prepared.name==="drag"){var C=w.dropState;Pa(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;Ld(f,p),Pa(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:_l,getDrop:Id,getDropEvents:xl,fireDropEvents:Pa,filterEventType:function(f){return f.search("drag")===0||f.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Rm=kd;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=wl(C,N),w.box=gl(C),w.scale=1,w.ds=0,w.angle=yl(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=wl(C,N),w.box=gl(C),w.scale=w.distance/p.gesture.startDistance,w.angle=yl(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 ns={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=ns,p.methodDict.gesture="gesturable",_.actions.gesture=ns.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}},Nd=ns;function Od(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 Sl(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:Ue({},T),corrected:Ue({},T),previous:Ue({},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),Sl(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(Ue(ae,$),I){if(Ue($,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),Sl(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=Ue({},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]=Od(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},Rd=ei,Dd={id:"actions",install:function(f){f.usePlugin(Nd),f.usePlugin(Rd),f.usePlugin(Ne),f.usePlugin(Rm)}},Ma=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-Ma)),N=f.setTimeout(function(){C(T+I)},I);return Ma=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=Aa(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 $=El(T);U.window(T)?T.scrollBy(B.x,B.y):T&&(T.scrollLeft+=B.x,T.scrollTop+=B.y);var Q=El(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=Aa($.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 Aa(f,p,w){return(U.string(f)?Ed(f,p,w):f)||G(w)}function El(f){return U.window(f)&&(f=window.document.body),{x:f.scrollLeft,y:f.scrollTop}}var Cl={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)}}},Tl=Cl;function is(f,p){var w=!1;return function(){return w||(z.console.warn(p),w=!0),f.apply(this,arguments)}}function Ia(f,p){return f.name=p.name,f.axis=p.axis,f.edges=p.edges,f}function Fd(f){return U.bool(f)?(this.options.styleCursor=f,this):f===null?(delete this.options.styleCursor,this):this.options.styleCursor}function $d(f){return U.func(f)?(this.options.actionChecker=f,this):f===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Vd={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=is(function(w){return this._backCompatOption("ignoreFrom",w)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),p.prototype.allowFrom=is(function(w){return this._backCompatOption("allowFrom",w)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),p.prototype.actionChecker=$d,p.prototype.styleCursor=Fd}};function Pl(f,p,w,_,C){return p.testIgnoreAllow(p.options[f.name],w,_)&&p.options[f.name].enabled&&Fs(p,w,f,C)?f:null}function Ud(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=Pl(Q,B,$,T,I);if(ae)return{action:ae,interactable:B,element:$}}}return{action:null,interactable:null,element:null}}function Ml(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=Ud(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 Al(f,p,w){var _=p.action,C=p.interactable,T=p.element;_=_||{name:null},f.interactable=C,f.element=T,Ia(f.prepared,_),f.rect=C&&_.name?C.getRect(T):null,Ll(f,w),w.fire("autoStart:prepared",{interaction:f})}function Fs(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 Il(f,p){return U.number(f)?(p.autoStart.maxInteractions=f,this):p.autoStart.maxInteractions}function La(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 Ll(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)}La(f.element,T||"",p)}else p.autoStart.cursorElement&&La(p.autoStart.cursorElement,"",p)}var zd={id:"auto-start/base",before:["actions"],install:function(f){var p=f.interactStatic,w=f.defaults;f.usePlugin(Vd),w.base.actionChecker=null,w.base.styleCursor=!0,Ue(w.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),p.maxInteractions=function(_){return Il(_,f)},f.autoStart={maxInteractions:1/0,withinInteractionLimit:Fs,cursorElement:null}},listeners:{"interactions:down":function(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget;w.interacting()||Al(w,Ml(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()||Al(C,Ml(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||!Fs(T,C.element,C.prepared,_)?C.stop():(C.start(C.prepared,T,C.element),Ll(C,_)))}}(f,p)},"interactions:stop":function(f,p){var w=f.interaction,_=w.interactable;_&&_.options.styleCursor&&La(w.element,"",p)}},maxInteractions:Il,withinInteractionLimit:Fs,validateAction:Pl},ka=zd,Wd={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,Ve){if(!Ve)return!1;var et=Ve.options.drag.startAxis;return Ie==="xy"||et==="xy"||et===Ie}($,he)&&ka.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 Na(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 Bd={id:"auto-start/hold",install:function(f){var p=f.defaults;f.usePlugin(ka),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=Na(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;Na(p)>0&&(p.prepared.name=null)}},getHoldDuration:Na},Gd=Bd,jd={id:"auto-start",install:function(f){f.usePlugin(ka),f.usePlugin(Gd),f.usePlugin(Wd)}},qd=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 Hd(f){var p=f.interaction,w=f.event;p.interactable&&p.interactable.checkAndPreventDefault(w)}var kl={id:"core/interactablePreventDefault",install:function(f){var p=f.Interactable;p.prototype.preventDefault=qd,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)]=Hd,f},{})};function $s(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]=vl(_):p[w]=_}return p}var Oa=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=Vs(),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=Ue({},I.edges),this.edges=Ue({},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=Vs(),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=Ue({},p.pageCoords),p.rect=Ue({},T),p.edges=Ue({},I);for(var N=C?this.states.slice(C):this.states,D=Vs(p.coords,p.rect),B=0;B<N.length;B++){var $,Q=N[B],ae=Q.options,ge=Ue({},p.coords),he=null;($=Q.methods)!=null&&$.set&&this.shouldDo(ae,_,w)&&(p.state=Q,he=Q.methods.set(p),Ea(p.edges,p.rect,{x:p.coords.x-ge.x,y:p.coords.y-ge.y})),D.eventProps.push(he)}Ue(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"&&Ue(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 _=Ue({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=Vs(Ue({},p.result.coords),Ue({},p.result.rect))}},{key:"destroy",value:function(){for(var p in this)this[p]=null}}]),f}();function Vs(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 os(f){var p=f.iEvent,w=f.interaction.modification.result;w&&(p.modifiers=w.eventProps)}var Zd={id:"modifiers/base",before:["actions"],install:function(f){f.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(f){var p=f.interaction;p.modification=new Oa(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":os,"interactions:action-move":os,"interactions:action-end":os,"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)}}},Nl=Zd,Ol={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Ra=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||Ol).deltaSource,ge=Os(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=Ue({},Ie.page),$.client=Ue({},Ie.client),$.rect=Ue({},_.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=Ue({},_.coords.velocity[ae]),$.speed=Rs($.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(Ra.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 Yd=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}),Jd=function(f){return f.interactable="",f.element="",f.prepared="",f.pointerIsDown="",f.pointerWasMoved="",f._proxy="",f}({}),Rl=function(f){return f.start="",f.move="",f.end="",f.stop="",f.interacting="",f}({}),Xd=0,Qd=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=is(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=Xd++,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 Jd)I(N);var D=function($){Object.defineProperty(w._proxy,$,{value:function(){return T[$].apply(T,arguments)}})};for(var B in Rl)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)&&(Ia(this.prepared,p),this.interactable=w,this.element=_,this.rect=w.getRect(_),this.edges=this.prepared.edges?Ue({},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=Rs(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&&Ca(this.coords.prev,this.coords.cur))}},{key:"move",value:function(p){p&&p.event||fl(this.coords.delta),(p=Ue({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=ts(p);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:Ds(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=ts(p),B=this.getPointerIndex(p),$=this.pointers[B];return C=C!==!1&&(C||/(down|start)$/i.test(w.type)),$?$.pointer=p:($=new Yd(D,p,w,null,null),B=this.pointers.length,this.pointers.push($)),Ta(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=_,es(this.downPointer,p),this.interacting()||(Ca(this.coords.start,this.coords.cur),Ca(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 Ra(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"&&(Ea(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 Dl(f){Fl(f.interaction)}function Fl(f){if(!function(w){return!(!w.offset.pending.x&&!w.offset.pending.y)}(f))return!1;var p=f.offset.pending;return Da(f.coords.cur,p),Da(f.coords.delta,p),Ea(f.edges,f.rect,p),p.x=0,p.y=0,!0}function Kd(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 Da(f,p){var w=f.page,_=f.client,C=p.x,T=p.y;w.x+=C,w.y+=T,_.x+=C,_.y+=T}Rl.offsetBy="";var ep={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(f){f.Interaction.prototype.offsetBy=Kd},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&&(Da(p.coords.cur,p.offset.total),p.offset.pending.x=0,p.offset.pending.y=0)}(f.interaction)},"interactions:before-action-start":Dl,"interactions:before-action-move":Dl,"interactions:before-action-end":function(f){var p=f.interaction;if(Fl(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}}},$l=ep,tp=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,_=Us(w);if(!_||!_.enabled)return!1;var C=w.coords.velocity.client,T=Rs(C.x,C.y),I=this.modification||(this.modification=new Oa(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,_=Us(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,$=Us(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:Vl(N=ge,p,_,T),y:Vl(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=Us(w).smoothEndDuration;if(_<C){var T={x:Ul(_,0,this.targetOffset.x,C),y:Ul(_,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"}),Ca(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 Us(f){var p=f.interactable,w=f.prepared;return p&&p.options&&w.name&&p.options[w.name].inertia}var rp={id:"inertia",before:["modifiers","actions"],install:function(f){var p=f.defaults;f.usePlugin($l),f.usePlugin(Nl),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 tp(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":os,"interactions:action-inertiastart":os,"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 Vl(f,p,w,_){var C=1-f;return C*C*p+2*C*f*w+f*f*_}function Ul(f,p,w,_){return-w*(f/=_)*(f-2)+p}var np=rp;function zl(f,p){for(var w=0;w<p.length;w++){var _=p[w];if(f.immediatePropagationStopped)break;_(f)}}var Wl=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=Ue({},p||{})}return c(f,[{key:"fire",value:function(p){var w,_=this.global;(w=this.types[p.type])&&zl(p,w),!p.propagationStopped&&_&&(w=_[p.type])&&zl(p,w)}},{key:"on",value:function(p,w){var _=$i(p,w);for(p in _)this.types[p]=Ad(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}(),ip=function(){function f(p){o(this,f),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=p,es(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 ss(f,p){return f===p||(typeof f=="boolean"?!!p.capture===f&&!p.passive:!!f.capture==!!p.capture&&!!f.passive==!!p.passive)}var op={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 Ve=_[ae],et=Vi(Ve,function(st){return st.selector===$&&st.context===Q});et||(et={selector:$,context:Q,listeners:[]},Ve.push(et)),et.listeners.push({func:ge,options:be})},removeDelegate:function($,Q,ae,ge,he){var be,Oe=mo(he),Ie=_[ae],Ve=!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&&ss(tt.options,Oe)){st.splice(je,1),st.length||(Ie.splice(be,1),N(Q,ae,D),N(Q,ae,B,!0)),Ve=!0;break}}if(Ve)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&&ss(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=Ds(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 Ve=Ie.length-1;Ve>=0;Ve--){var et=Ie[Ve];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&&ss(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 ip($),he=_[$.type],be=Md($)[0],Oe=be;U.element(Oe);){for(var Ie=0;Ie<he.length;Ie++){var Ve=he[Ie],et=Ve.selector,st=Ve.context;if(Fe(Oe,et)&&de(st,be)&&de(st,Oe)){var je=Ve.listeners;ge.currentTarget=Oe;for(var tt=0;tt<je.length;tt++){var Mr=je[tt];ss(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}},Fa={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(f){for(var p=0,w=Fa.methodOrder;p<w.length;p++){var _=w[p],C=Fa[_](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&&!$a(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($a(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 $a(f,p){return f.pointers.some(function(w){return w.id===p})}var sp=Fa,zs=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Bl(f,p){return function(w){var _=p.interactions.list,C=bl(w),T=Md(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:ts(Q),pointerType:C,eventType:w.type,eventTarget:I,curEventTarget:N,scope:p},ge=Gl(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:ts(w),pointerType:C,eventType:w.type,curEventTarget:N,eventTarget:I,scope:p},Ie=Gl(Oe);D.push([Oe.pointer,Oe.eventTarget,Oe.curEventTarget,Ie])}}for(var Ve=0;Ve<D.length;Ve++){var et=D[Ve],st=et[0],je=et[1],tt=et[2];et[3][f](st,w,je,tt)}}}function Gl(f){var p=f.pointerType,w=f.scope,_={interaction:sp.search(f),searchDetails:f};return w.fire("interactions:find",_),_.interaction||w.interactions.new({pointerType:p})}function Va(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 jl={id:"core/interactions",install:function(f){for(var p={},w=0;w<zs.length;w++){var _=zs[w];p[_]=Bl(_,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}(Qd),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(kl)},listeners:{"scope:add-document":function(f){return Va(f,"add")},"scope:remove-document":function(f){return Va(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:Va,doOnInteractions:Bl,methodNames:zs},ap=jl,bi=function(f){return f[f.On=0]="On",f[f.Off=1]="Off",f}(bi||{}),cp=function(){function f(p,w,_,C){o(this,f),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Wl,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(Pn(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))&&$s(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]=vl(N):U.plainObject(N)?(I[T]=Ue(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=Ue({},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(Pn(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];$s(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,Ue(Ue({},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}(),lp=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=Ds(I,function(D){return D===C});I.splice(N,1)}})}return c(f,[{key:"new",value:function(p,w){w=Ue(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}(),up=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(Ol),this.Eventable=Wl,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=Pd,C.getTouchBBox=gl,C.getTouchDistance=wl,C.getTouchAngle=yl,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=is(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 $s(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=is(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 $s(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=Ra,this.Interactable=void 0,this.interactables=new lp(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}(cp)}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(_)&&q(_),J.init(_),pe.init(_),wi.init(_),w.window=_,w.document=_.document,w.usePlugin(ap),w.usePlugin(op),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[ql(D)]=!0,N},{});_<C;_++){var I=this.listenerMaps[_].id;if(I&&(T[I]||T[ql(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?Ue({},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 ql(f){return f&&f.replace(/\/.*$/,"")}var Hl=new up,Pr=Hl.interactStatic,dp=typeof globalThis<"u"?globalThis:window;Hl.init(dp);var pp=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}}),fp={id:"snappers",install:function(f){var p=f.interactStatic;p.snappers=Ue(p.snappers||{},pp),p.createSnapGrid=p.snappers.grid}},mp=fp,hp={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=Ue({},C),p.startRect=Ue({},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&&Ue(_,Q),$!=null&&$.length){var ge=new Oa(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=Ue({},_),I=p.equalDelta?Zl:gp;if(Ue(f.edges,C),I(p,p.xIsPrimaryAxis,_,w),!p.subModification)return null;var N=Ue({},w);Ea(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),Ue(_,D.coords)),D.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Zl(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 gp(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 Yl=yi(hp,"aspectRatio"),Jl=function(){};Jl._defaults={};var Ws=Jl;function zi(f,p,w){return U.func(f)?Ko(f,p.interactable,p.element,[w.x,w.y,p]):Ko(f,p.interactable,p.element)}var Bs={start:function(f){var p=f.rect,w=f.startOffset,_=f.state,C=f.interaction,T=f.pageCoords,I=_.options,N=I.elementRect,D=Ue({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=Ue({},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}},wp=yi(Bs,"restrict"),Xl={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Ql={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Kl(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 as={noInner:Xl,noOuter:Ql,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=Ue({},p),D=zi(I.inner,_,N)||{},B=zi(I.outer,_,N)||{};Kl(D,Xl),Kl(B,Ql),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}},yp=yi(as,"restrictEdges"),bp=Ue({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(f){}},Bs.defaults),vp=yi({start:Bs.start,set:Bs.set,defaults:bp},"restrictRect"),_p={width:-1/0,height:-1/0},xp={width:1/0,height:1/0},Sp=yi({start:function(f){return as.start(f)},set:function(f){var p=f.interaction,w=f.state,_=f.rect,C=f.edges,T=w.options;if(C){var I=pl(zi(T.min,p,f.coords))||_p,N=pl(zi(T.max,p,f.coords))||xp;w.options={endOnly:T.endOnly,inner:Ue({},as.noInner),outer:Ue({},as.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),as.set(f),w.options=T}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Ua={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(Ko(ae.state.options.origin,null,null,[ge])),be=he||Os(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 $=Ko(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=Os(p.interactable,p.element,p.prepared.name),N=Ue({},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 Ve={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=Rs(tt,Mr),Kr=Lt<=je;je===1/0&&Ve.inRange&&Ve.range!==1/0&&(Kr=!1),Ve.target&&!(Kr?Ve.inRange&&je!==1/0?Lt/je<Ve.distance/Ve.range:je===1/0&&Ve.range!==1/0||Lt<Ve.distance:!Ve.inRange&&Lt<Ve.distance)||(Ve.target=st,Ve.distance=Lt,Ve.range=je,Ve.inRange=Kr,Ve.delta.x=tt,Ve.delta.y=Mr)}return Ve.inRange&&(w.x=Ve.target.x,w.y=Ve.target.y),_.closest=Ve,Ve},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Ep=yi(Ua,"snap"),Gs={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"]],Ua.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=Ue({},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=Ua.set(f);return w.options=C,Oe},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Cp=yi(Gs,"snapSize"),za={aspectRatio:Yl,restrictEdges:yp,restrict:wp,restrictRect:vp,restrictSize:Sp,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"]],Gs.start(f)):null},set:Gs.set,defaults:Ue(fo(Gs.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Ep,snapSize:Cp,spring:Ws,avoid:Ws,transform:Ws,rubberband:Ws},Tp={id:"modifiers",install:function(f){var p=f.interactStatic;for(var w in f.usePlugin(Nl),f.usePlugin(mp),p.modifiers=za,za){var _=za[w],C=_._defaults,T=_._methods;C._methods=T,f.defaults.perAction[w]=C}}},Pp=Tp,eu=function(f){d(w,f);var p=E(w);function w(_,C,T,I,N,D){var B;if(o(this,w),es(v(B=p.call(this,N)),T),T!==C&&es(v(B),C),B.timeStamp=D,B.originalEvent=T,B.type=_,B.pointerId=ts(C),B.pointerType=bl(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),cs={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(f){f.pointerEvents=cs,f.defaults.actions.pointerEvents=cs.defaults,Ue(f.actions.phaselessTypes,cs.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&&Wa(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,$=zn(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){Wa(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){Wa(f),vi(f,p)}},PointerEvent:eu,fire:vi,collectEventTargets:tu,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?tu(f,p):N,B=new eu(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=Os(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 tu(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=zn(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 Wa(f){var p=f.interaction,w=f.pointerIndex,_=p.pointers[w].hold;_&&_.timeout&&(clearTimeout(_.timeout),_.timeout=null)}var Mp=Object.freeze({__proto__:null,default:cs});function Ap(f){var p=f.interaction;p.holdIntervalHandle&&(clearInterval(p.holdIntervalHandle),p.holdIntervalHandle=null)}var Ip={id:"pointer-events/holdRepeat",install:function(f){f.usePlugin(cs);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)]=Ap,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))}}})},Lp=Ip,kp={id:"pointer-events/interactableTargets",install:function(f){var p=f.Interactable;p.prototype.pointerEvents=function(_){return Ue(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;Ue(w.events.options,p.pointerEvents.defaults),Ue(w.events.options,_.pointerEvents||{})}}},Np=kp,Op={id:"pointer-events",install:function(f){f.usePlugin(Mp),f.usePlugin(Lp),f.usePlugin(Np)}},Rp=Op,Dp={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=pl(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,Ve,et,st,je){var tt=Ie.interactions.new({pointerType:"reflow"}),Mr={interaction:tt,event:je,pointer:je,eventTarget:et,phase:"reflow"};tt.interactable=Ve,tt.element=et,tt.prevEvent=je,tt.updatePointer(je,je,et,!0),fl(tt.coords.delta),Ia(tt.prepared,st),tt._doPhase(Mr);var Lt=Ie.window,Kr=Lt.Promise,Mn=Kr?new Kr(function(Wn){tt._reflowResolve=Wn}):void 0;return tt._reflowPromise=Mn,tt.start(st,Ve,et),tt._interacting?(tt.move(Mr),tt.end(je)):(tt.stop(),tt._reflowResolve()),tt.removePointer(je,je),Mn}(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))}}},Fp=Dp;if(Pr.use(kl),Pr.use($l),Pr.use(Rp),Pr.use(np),Pr.use(Pp),Pr.use(jd),Pr.use(Dd),Pr.use(Tl),Pr.use(Fp),Pr.default=Pr,i(e)==="object"&&e)try{e.exports=Pr}catch{}return Pr.default=Pr,Pr})})(Vv,Vv.exports);mQ=Vv.exports,L1=zR(mQ)});function GR(e,t,r){return t?`${e}-${t}`:r?`${e}-${r}`:`${e}-m`}var jR=R(()=>{});var tl,Ni,rl,Uv,qR,HR,hQ,WE,ZR,Wv,zv,YR=R(()=>{ar();Jc();BR();Ki();Uo();Dr();Sn();LE();ga();qc();jR();Nv();UE();Ss();_n();tl={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"},rl=25,Uv=25,qR={x:0,y:0},HR={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))}::slotted(*){--calcite-panel-background-color: initial}.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}`,WE=0,ZR="",Wv=class Wv extends $t{constructor(){super(...arguments),this.dragPosition={...qR},this.ignoreOpenChange=!1,this.mutationObserver=Yn("mutation",()=>this.handleMutationObserver()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteDialogOpen",this.openEnd)},this.openTransitionProp="opacity",this.panelEl=Li(),this.resizePosition={...HR},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 Vn(this),this.panelEl.value?.setFocus()??jc(this.el)}async updateFocusTrapElements(){kv(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),Lv(this,{focusTrapOptions:{clickOutsideDeactivates:()=>!this.modal,escapeDeactivates:t=>(!t.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,t.preventDefault()),!1)}}),this.setupInteractions()}async load(){Fn(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(){$n(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),sd(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(),T1(this)}onBeforeClose(){this.calciteDialogBeforeClose.emit()}onClose(){this.calciteDialogClose.emit(),sd(this)}toggleDialog(t){this.ignoreOpenChange||(t?this.openDialog():this.closeDialog())}handleOpenedChange(t){let{transitionEl:r}=this;r&&(r.classList.toggle(tl.openingActive,t),el(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-rl,type:"blockSize"}),c.bottom-=rl,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.y-=Uv,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowDown":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height+rl,type:"blockSize"}),c.bottom+=rl,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.y+=Uv,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowLeft":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width-rl,type:"inlineSize"}),c.right-=rl,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.x-=Uv,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowRight":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width+rl,type:"inlineSize"}),c.right+=rl,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.x+=Uv,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={...qR},this.resizePosition={...HR},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=L1(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:[L1.modifiers.restrictSize({min:{width:a1(c)?parseInt(c):0,height:a1(a)?parseInt(a):0},max:{width:a1(d)?parseInt(d):window.innerWidth,height:a1(h)?parseInt(h):window.innerHeight}}),L1.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:[L1.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}WE--,this.opened=!1,this.updateOverflowHiddenClass()}updateOverflowHiddenClass(){this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()}addOverflowHiddenClass(){WE===0&&(ZR=document.documentElement.style.overflow),WE++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",ZR)}handleMutationObserver(){this.updateFocusTrapElements()}render(){let{assistiveText:t,description:r,heading:n,opened:i}=this;return xe`<div class=${_e({[tl.container]:!0,[tl.containerOpen]:i,[tl.containerEmbedded]:this.embedded})}>${this.modal?xe`<calcite-scrim class=${_e(tl.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>`:null}<div .ariaDescription=${r} .ariaLabel=${n} .ariaModal=${this.modal} class=${_e({[tl.dialog]:!0,[GR("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(tl.assistiveText)}>${t}</div>`):null}<slot name=${Ni.content}><calcite-panel .beforeClose=${this.beforeClose} class=${_e(tl.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>`}};Wv.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},Wv.styles=hQ;zv=Wv;Gt("calcite-dialog",zv)});var JR={};Hs(JR,{Dialog:()=>zv});var XR=R(()=>{sE();VR();YR()});var QR,gQ,Bv,BE,KR=R(()=>{ar();Ki();Dr();Sn();_n();QR={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}`,Bv=class Bv extends $t{constructor(){super(...arguments),this.iconFlipRtl=!1,this.scale="m",this.status="idle"}connectedCallback(){super.connectedCallback(),this.requestedIcon=ha(QR,this.icon,this.status)}willUpdate(t){(t.has("status")&&(this.hasUpdated||this.status!=="idle")||t.has("icon"))&&(this.requestedIcon=ha(QR,this.icon,this.status))}render(){let t=this.el.hidden;return om(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>`}};Bv.properties={icon:[3,{converter:fa}],iconFlipRtl:7,scale:3,status:3},Bv.styles=gQ;BE=Bv;Gt("calcite-input-message",BE)});var eD=R(()=>{Xu();KR()});var wQ,Gv,GE,tD=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}`,Gv=class Gv 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=Bc(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",[i1.rtl]:n==="rtl",reversed:this.reversed})} style=${Bb(r)}></div></div>${this.text?xe`<div class="text">${this.text}</div>`:null}</div>`}};Gv.properties={label:1,reversed:7,text:1,type:3,value:9},Gv.styles=wQ;GE=Gv;Gt("calcite-progress",GE)});var rD=R(()=>{tD()});function Cs(e){return!(!e||isNaN(Number(e)))}function nD(e){return!e||!TQ(e)?"":jv(e,t=>{let r=!1,n=t.split("").filter((i,o)=>i.match(/\./g)&&!r?(r=!0,!0):i.match(/-/g)&&o===0?!0:P1.includes(i)).join("");return Cs(n)?new ad(n).toString():""})}function EQ(e){let t=e.split(".")[1],r=new ad(e).toString(),[n,i]=r.split(".");return t&&i!==t?`${n}.${t}`:r}function jv(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(iD,"")}`}function TQ(e){return P1.some(t=>e.includes(t))}function sD(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"?cD:aD;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).`),k1))):k1}var yQ,bQ,Vt,ad,iD,vQ,_Q,xQ,SQ,oD,k1,aD,cD,eSe,PQ,lD,jE,uD,MQ,qE,Ho,dD=R(()=>{M1();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)});ad=Vt;iD=/^([-0])0+(?=\d)/,vQ=/(?!^\.)\.$/,_Q=/(?!^-)-/g,xQ=/^-\b0\b\.?0*$/,SQ=/0*$/,oD=e=>jv(e,t=>{let r=t.replace(_Q,"").replace(vQ,"").replace(iD,"$1");return Cs(r)?xQ.test(r)?r:EQ(r):t});k1="en",aD=["ar","bg","bs","ca","cs","da","de","el",k1,"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"],cD=["ar","bg","bs","ca","cs","da","de","de-AT","de-CH","el",k1,"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"],eSe=new Map(Object.entries({bg:{am:"\u043F\u0440.\u043E\u0431.",pm:"\u0441\u043B.\u043E\u0431."},bs:{am:"prijepodne",pm:"popodne"},ca:{am:"a.\xA0m.",pm:"p.\xA0m."},cs:{am:"dop.",pm:"odp."},es:{am:"a.\xA0m.",pm:"p.\xA0m."},"es-mx":{am:"a.m.",pm:"p.m."},"es-MX":{am:"a.m.",pm:"p.m."},fi:{am:"ap.",pm:"ip."},he:{am:"\u05DC\u05E4\u05E0\u05D4\u05F4\u05E6",pm:"\u05D0\u05D7\u05D4\u05F4\u05E6"},hu:{am:"de. ",pm:"du."},lt:{am:"prie\u0161piet",pm:"popiet"},lv:{am:"priek\u0161pusdien\u0101",pm:"p\u0113cpusdien\u0101"},mk:{am:"\u043F\u0440\u0435\u0442\u043F\u043B.",pm:"\u043F\u043E\u043F\u043B."},no:{am:"a.m.",pm:"p.m."},nl:{am:"a.m.",pm:"p.m."},"pt-pt":{am:"da manh\xE3",pm:"da tarde"},"pt-PT":{am:"da manh\xE3",pm:"da tarde"},ro:{am:"a.m.",pm:"p.m."},sl:{am:"dop.",pm:"pop."},sv:{am:"fm",pm:"em"},th:{am:"\u0E01\u0E48\u0E2D\u0E19\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07",pm:"\u0E2B\u0E25\u0E31\u0E07\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07"},tr:{am:"\xD6\xD6",pm:"\xD6S"},uk:{am:"\u0434\u043F",pm:"\u043F\u043F"},vi:{am:"SA",pm:"CH"}})),PQ=["arab","arabext","latn"];[...new Set([...aD,...cD])];lD=e=>PQ.includes(e),jE=new Intl.NumberFormat().resolvedOptions().numberingSystem,uD=jE==="arab"||!lD(jE)?"latn":jE,MQ=e=>lD(e)?e:uD;qE=class{constructor(){this.delocalize=t=>this._numberFormatOptions?jv(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?jv(t,r=>Cs(r.trim())?new ad(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===k1&&t.numberingSystem===uD&&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=t.locale==="bs"||t.locale==="mk"?",":n.find(i=>i.type==="decimal").value,this._minusSign=n.find(i=>i.type==="minusSign").value,this._getDigitIndex=i=>r.get(i)}},Ho=new qE});var IQ,pD,fD=R(()=>{Rr();Dr();IQ={validationContainer:"validation-container"},pD=({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 vm(e,t,r,n){let i=r.toLowerCase(),o=e[r];n&&o!=null?t.setAttribute(i,`${o}`):t.removeAttribute(i)}function mD(e,t,r){r.type=e==="textarea"?"text":e;let n=LQ.includes(e),i=t;vm(i,r,"min",n),vm(i,r,"max",n),vm(i,r,"step",n);let o=NQ.includes(e),s=t;vm(s,r,"minLength",o),vm(s,r,"maxLength",o);let c=kQ.includes(e);vm(s,r,"pattern",c)}var LQ,kQ,NQ,hD=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 En,HE,gD,OQ,RQ,Hv,qv,wD=R(()=>{ar();O5();Jc();Ki();Uo();rv();Dr();Bu();Sn();iE();l1();M1();cv();ga();dD();fm();fD();Ss();hD();_n();En={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",hasSuffix:"has-suffix",hasPrefix:"has-prefix"},HE={validationMessage:"inputValidationMessage"},gD={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}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}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))}.has-prefix input{border-start-start-radius:0;border-end-start-radius:0}.has-suffix input,.element-wrapper:has(.clear-button) input,:host([number-button-type=vertical][type=number]) input,:host([number-button-type=horizontal]) .has-suffix .suffix,:host([number-button-type=vertical][type=number]) .has-suffix .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}.has-prefix .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))}.has-suffix .suffix,:host([number-button-type=vertical][type=number][read-only]) .has-suffix .suffix,:host([clearable]) .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([clearable]) .has-suffix .clear-button{border-end-end-radius:0;border-start-end-radius:0}: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}`,Hv=class Hv extends $t{constructor(){super(),this.actionWrapperEl=Li(),this.attributeWatch=Mb(["autofocus","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 Vn(this),jc(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),pm(this),EN(this),this.el.addEventListener(iv,this.onHiddenFormInputInput)}async load(){Fn(this),this.childElType=this.type==="textarea"?"textarea":"input",this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=ha(gD,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:Cs(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=ha(gD,this.icon,this.type))}updated(){Zc(this)}loaded(){$n(this)}disconnectedCallback(){super.disconnectedCallback(),av(this),CN(this),this.el.removeEventListener(iv,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"?Cs(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"&&nv(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 ad(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;Ho.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let n=Ho.delocalize(r);t.inputType==="insertFromPaste"?(Cs(n)||t.preventDefault(),this.setValue({nativeEvent:t,origin:"user",value:nD(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=[...P1,"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}Ho.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(t.key===Ho.decimal&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(Ho.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(!sN(t))return;t.preventDefault();let r=t.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(r,t)}syncHiddenFormInput(t){mD(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"?Cs(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"){Ho.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:oD(o),d=o&&!a?Cs(this.previousValue)?this.previousValue:"":a,h=Ho.localize(d);n!=="connected"&&!c&&(h=sD(h,d,Ho)),this.displayedValue=c&&s?`${h}${Ho.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"?Ho.localize(this.previousValue):this.previousValue):t&&this.emitChangeIfUserModified())}inputKeyUpHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}warnAboutInvalidNumberValue(t){this.type==="number"&&t&&!Cs(t)&&console.warn(`The specified value "${t}" cannot be parsed, or is out of range.`)}render(){let t=Bc(this.el),r=xe`<div class=${_e(En.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`,n=xe`<button .ariaLabel=${this.messages.clear} class=${_e(En.clearButton)} .disabled=${this.disabled||this.readOnly} @click=${this.clearInputValue} tabindex=-1 type=button><calcite-icon icon=x .scale=${Jn(this.scale)}></calcite-icon></button>`,i=xe`<calcite-icon class=${_e(En.inputIcon)} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${Jn(this.scale)}></calcite-icon>`,o=this.numberButtonType==="horizontal",s=xe`<button aria-hidden=true class=${_e({[En.numberButtonItem]:!0,[En.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=${Jn(this.scale)}></calcite-icon></button>`,c=xe`<button aria-hidden=true class=${_e({[En.numberButtonItem]:!0,[En.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=${Jn(this.scale)}></calcite-icon></button>`,a=xe`<div class=${_e(En.numberButtonWrapper)}>${s}${c}</div>`,d=xe`<div class=${_e(En.prefix)}>${this.prefixText}</div>`,h=xe`<div class=${_e(En.suffix)}>${this.suffixText}</div>`,g=this.el.autofocus,v=this.el.enterKeyHint,E=this.el.inputMode,P=this.type==="number"?cr("localized-input",xe`<input accept=${this.accept??Re} aria-errormessage=${HE.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${m1(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=${Wb(this.displayedValue??"")} ${At(this.setChildNumberElRef)}>`):null,A=this.childElType==="input"?Hc`input`:Hc`textarea`,F=this.type!=="number"?um`<${A} accept=${this.accept??Re} aria-errormessage=${HE.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${m1(this)} autocomplete=${this.autocomplete??Re} .autofocus=${g} class=${_e({[En.editingEnabled]:this.editingEnabled,[En.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=${Wb(this.value??"")} ${At(this.setChildElRef)}></${A}>`:null;return Yc({disabled:this.disabled,children:xe`<div class=${_e({[En.inputWrapper]:!0,[i1.rtl]:t==="rtl",[En.hasSuffix]:this.suffixText,[En.hasPrefix]:this.prefixText})} ${At(this.inputWrapperEl)}>${this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?c:null}${this.prefixText?d:null}<div class=${_e(En.wrapper)}>${P}${F}${this.isClearable?n:null}${this.requestedIcon?i:null}${this.loading?r:null}</div><div class=${_e(En.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}${PN({component:this})}</div>${this.validationMessage&&this.status==="invalid"?pD({icon:this.validationIcon,id:HE.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};Hv.properties={displayedValue:16,slottedActionElDisabledInternally:16,accept:1,alignment:3,autocomplete:0,clearable:7,disabled:7,editingEnabled:7,files:0,form:3,groupSeparator:7,icon:[3,{converter:fa}],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:fa}],validationMessage:1,validity:0,value:1},Hv.styles=RQ;qv=Hv;Gt("calcite-input",qv)});var yD={};Hs(yD,{Input:()=>qv});var bD=R(()=>{eD();rD();Xu();wD()});var DQ,FQ,Yv,Zv,vD=R(()=>{ar();Ki();Dr();cv();_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}`,Yv=class Yv 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(f1))}willUpdate(t){t.has("for")&&RN(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(d1))}labelClickHandler(t){window.getSelection()?.type!=="Range"&&this.calciteInternalLabelClick.emit({sourceEvent:t})}render(){return xe`<div class=${_e(DQ.container)}><slot></slot></div>`}};Yv.properties={alignment:3,for:3,layout:3,scale:3},Yv.styles=FQ;Zv=Yv;Gt("calcite-label",Zv)});var _D={};Hs(_D,{Label:()=>Zv});var xD=R(()=>{vD()});var ZE,SD=R(()=>{ZE={brand:"lightbulb",danger:"exclamationMarkTriangle",info:"information",success:"checkCircle",warning:"exclamationMarkTriangle"}});var Jv,N1,$Q,Qv,Xv,ED=R(()=>{ar();Ki();Uo();Dr();Sn();ga();SD();Nv();fm();Ss();_n();Jv={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},N1={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%;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;background-color:var(--calcite-notice-background-color, var(--calcite-color-foreground-1))}.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-notice-close-text-color-hover, 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);margin-inline-end:var(--calcite-notice-spacing-token-small);color:var(--calcite-notice-content-text-color, var(--calcite-color-text-2))}.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;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;color:var(--calcite-notice-close-text-color, var(--calcite-color-text-3))}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-notice-close-background-color-focus, var(--calcite-color-foreground-2));color:var(--calcite-notice-close-text-color-hover, var(--calcite-color-text-1))}.notice-close:active{background-color:var(--calcite-notice-close-background-color-press, 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}`,Qv=class Qv 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 Vn(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(){Fn(this),this.requestedIcon=ha(ZE,this.icon,this.kind),this.open&&el(this)}willUpdate(t){t.has("open")&&(this.hasUpdated||this.open!==!1)&&el(this),(t.has("icon")||t.has("kind")&&(this.hasUpdated||this.kind!=="brand"))&&(this.requestedIcon=ha(ZE,this.icon,this.kind))}loaded(){$n(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=Zn(t)}render(){let t=xe`<button .ariaLabel=${this.messages.close} class=${_e(N1.close)} @click=${this.close} ${At(this.closeButton)}><calcite-icon icon=x .scale=${Jn(this.scale)}></calcite-icon></button>`;return xe`<div class=${_e(N1.container)} ${At(this.setTransitionEl)}>${this.requestedIcon?xe`<div class=${_e(N1.icon)}><calcite-icon .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${Jn(this.scale)}></calcite-icon></div>`:null}<div class=${_e(N1.content)}><slot name=${Jv.title}></slot><slot name=${Jv.message}></slot><slot name=${Jv.link}></slot></div><div class=${_e(N1.actionsEnd)} .hidden=${!this.hasActionEnd}><slot name=${Jv.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot></div>${this.closable?t:null}</div>`}};Qv.properties={hasActionEnd:16,closable:7,icon:[3,{converter:fa}],iconFlipRtl:7,kind:3,messageOverrides:0,open:7,scale:3,width:3},Qv.styles=$Q;Xv=Qv;Gt("calcite-notice",Xv)});var CD={};Hs(CD,{Notice:()=>Xv});var TD=R(()=>{Xu();ED()});var YE,JE,VQ,Oi,XE,PD=R(()=>{gt();B4();yt();rt();it();Hr();ft();Wk();$5();yb();Bk();jk();Hk();V4();YE="esri-identity-modal",JE={base:YE,info:`${YE}__info`,notice:`${YE}__notice`},VQ="ArcGIS Online",Oi=class extends zk{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 Ok({button:()=>Promise.resolve().then(()=>(zN(),UN)),dialog:()=>Promise.resolve().then(()=>(XR(),JR)),input:()=>Promise.resolve().then(()=>(bD(),yD)),label:()=>Promise.resolve().then(()=>(xD(),_D)),notice:()=>Promise.resolve().then(()=>(TD(),CD))})}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(JE.base,qk())},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:JE.info},F4(i?d:a,{server:o&&/\.arcgis\.com/i.test(o)?VQ:o,resource:`(${s||h})`})),c?Ii("calcite-notice",{class:JE.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 oL(()=>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(),B5("esri/t9n/common")],Oi.prototype,"commonMessages",void 0),O([V()],Oi.prototype,"error",void 0),O([V(),B5("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);XE=Oi});var QE,_m,MD=R(()=>{QE="esriJSAPIOAuth",_m=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(QE,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(QE,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(QE);if(r)try{t=JSON.parse(r)}catch(n){console.warn(n)}}return t}};_m.prototype.declaredClass="esri.identity.OAuthCredential"});var KE,Cn,e3,AD=R(()=>{gt();Nr();yt();rt();it();Hr();ft();Cn=KE=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 KE.fromJSON(this.toJSON())}};O([V({json:{write:!0}})],Cn.prototype,"appId",void 0),O([V({json:{write:!0}})],Cn.prototype,"authNamespace",void 0),O([V({json:{write:!0}})],Cn.prototype,"expiration",void 0),O([V({json:{write:!0}})],Cn.prototype,"flowType",void 0),O([V({json:{write:!0}})],Cn.prototype,"forceLogin",void 0),O([V({json:{write:!0}})],Cn.prototype,"forceUserId",void 0),O([V({json:{write:!0}})],Cn.prototype,"locale",void 0),O([V({json:{write:!0}})],Cn.prototype,"minTimeUntilExpiration",void 0),O([V({json:{write:!0}})],Cn.prototype,"popup",void 0),O([V({json:{write:!0}})],Cn.prototype,"popupCallbackUrl",void 0),O([V({json:{write:!0}})],Cn.prototype,"popupWindowFeatures",void 0),O([V({json:{write:!0}})],Cn.prototype,"portalUrl",void 0),O([V({json:{write:!0}})],Cn.prototype,"preserveUrlHash",void 0),O([V({json:{write:!0}})],Cn.prototype,"userId",void 0),Cn=KE=O([Le("esri.identity.OAuthInfo")],Cn);e3=Cn});var Ri,Kv,ID=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);Kv=Ri});var e2,LD,t3,t2,r2,O1,sr,kD=R(()=>{gt();Sc();Qy();ib();On();Ky();Eg();mr();hs();Ro();Oc();yt();rt();it();ft();PD();MD();AD();ID();By();e2={},LD=e=>{let t=new Dn(e.owningSystemUrl).host,r=new Dn(e.server).host,n=/.+\.arcgis\.com$/i;return n.test(t)&&n.test(r)},t3=(e,t)=>!!(LD(e)&&t&&t.some(r=>r.test(e.server))),t2=null,r2=null;try{t2=window.localStorage,r2=window.sessionStorage}catch{}O1=class extends Fo{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=Ic(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 Kv,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 Tw({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 Kv(s))}),o.length&&this.registerServers(o)}if(n){let o=[];n.forEach(s=>{s.appId&&o.push(s.declaredClass?s:new e3(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"))}),sa(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 Kv,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||Hn(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 Dn(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 Dn(h.toLowerCase()),t.webTierAuth&&n?.serverUrl&&!E&&o.scheme==="http"&&(Hn(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 e2[z]||(e2[z]={}),r&&(e2[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(Lc(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 XE({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 XE({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=Pc(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=Lc(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=Lc(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=Nu(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&&!Hn(t.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(t.tokenServiceUrl)&&String(t.currentVersion)==="10.1"&&!Hn(t.tokenServiceUrl,this._appOrigin)}_getOrigin(t){let r=new Dn(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=M4(t),r=M4(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),Ic(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 Dn(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=Hn(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&&LD(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 Dn(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?t2:r2,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?t2:r2,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(Lc(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))||Hn(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:")&&jf(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=Pc(window,"message",q=>{q.source===window.parent&&q.data&&(q.data.type==="arcgis:auth:credential"?(z.remove(),q.data.credential.expires<Date.now()?n(new Ge("identity-manager:credential-request-failed","Parent application's token has expired.")):r(new sr(q.data.credential))):q.data.type==="arcgis:auth:error"&&(z.remove(),q.data.error.name==="tokenExpiredError"?n(new Ge("identity-manager:credential-request-failed","Parent application's token has expired.")):n(Ge.fromJSON(q.data.error))))});Ti(t.options_?.signal,()=>{z.remove()})}else if(A){let z=A._oAuthCred;if(!z){let q=new _m(A,t2),G=new _m(A,r2);q.isValid()&&G.isValid()?q.expires>G.expires?(z=q,G.destroy()):(z=G,q.destroy()):z=q.isValid()?q: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 q=A.appId!==z.appId&&this._doPortalSignIn(t.resUrl_);q||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=>q?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 q=this._oAuthLocationParams;this._oAuthLocationParams=null,t._pendingDfd=this._processOAuthResponseParams(q,A,E).then(G=>{r(G)}).catch(n)}else{let q=()=>{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=>{Hn(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)):q()}).catch(q):q()}}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(t3(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 e3({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:kc(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||!(Hn(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+"?"+Nu(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=Pc(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 kc(t.popupCallbackUrl);if(r){let i=Ic(n);return i.query&&["code","error","error_description","message_code","persist","state"].forEach(o=>{delete i.query[o]}),qf(i.path,i.query)}return n}};O1.prototype.declaredClass="esri.identity.IdentityManagerBase";sr=class extends Fo.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&&t3(t,e._legacyFed),o=t.webTierAuth,s=o&&e.normalizeWebTierAuth,c=e2[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))&&(t3(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=Tw({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 OD={};Hs(OD,{default:()=>ND});var n2,ND,RD=R(()=>{Qy();kD();n2=class extends O1{};n2.prototype.declaredClass="esri.identity.IdentityManager";ND=new n2;qA(ND)});async function wr(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=Lc(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:xm,getHeader:xm,httpStatus:200,requestOptions:i.requestOptions,url:i.url}),s=L4(e,oo.internalInterceptors);if(s){let v=await FD(s,i);if(v!=null)return o(v)}let c=L4(e);if(c){let v=await FD(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 Ts("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 Ts("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),i);if(r||n)throw Ts("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),i)}if(await GQ(),i2)return i2.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 DD(e){let t=li(e);return!t||t.endsWith(".arcgis.com")||wr._corsServers.includes(t)||qy(t)}function Ts(e,t,r,n){let i="Error",o={url:r.url,requestOptions:r.requestOptions,getAllHeaders:xm,getHeader:xm,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=o2 in t?t[o2]:t}return Cg(t)?bs():new Ge(e,i,o)}async function GQ(){me("host-webworker")&&!i2&&(i2=await Promise.resolve().then(()=>(nI(),rI)))}async function r3(){Jr||await Promise.resolve().then(()=>(RD(),OD))}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(UD&&"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&&HA(t)&&(r.query||(r.query={}),r.query.token=Mt.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!zD(t)&&!sa(n)){let c;r.authMode==="immediate"?(await r3(),c=await Jr.getCredential(t,{signal:n}),e.credential=c):r.authMode==="no-prompt"?(await r3(),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 zD(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=Nu(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||!!jf(t);if(F){let W=UA(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?Ts("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params):Ts("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params);if(F)throw Ts("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=qf(t,v):(n.body=Nu(v),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=qf(t,v),F&&(e.useProxy=!0,t=`${A}?${t}`),v.token&&UD&&n.body instanceof FormData&&!Wy(t)&&n.body.set("token",v.token),r.hasOwnProperty("withCredentials")?e.withCredentials=r.withCredentials:Hn(t,jy())||(qy(t)||Jr&&Jr.findServerInfo(t)?.webTierAuth)&&(e.withCredentials=!0),e.withCredentials&&(n.credentials="include",KA(t)&&await eI(c?qf(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&&!DD(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=$D(d,"application/xml");break;case"document":d=$D(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 VD(URL.createObjectURL(d),e,!0))}}else{d=await a.text();try{d=JSON.parse(d)}catch{}}}else d=await VD(t,e)}catch(v){if(v.name==="AbortError")throw g?XA():bs("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||DD(t))throw v;e.redoRequest=!0,BA({proxyUrl:oo.proxyUrl,urlPrefix:li(t)??""})}finally{h&&clearTimeout(h)}return[a,d]}async function FD(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=Ts("request:interceptor",i,t)}if((n instanceof Error||n instanceof Ge)&&(r=Ts("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 $D(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=Ts("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)&&QA(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):xm,getHeader:t?o=>t.headers.get(o):xm,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[o2]=r,i.details=r.messages)),!i&&!t.ok)throw i=new Error(`Unable to load ${t.url} status: ${t.status}`),i[o2]=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)&&!zD(e.params.url)&&(o!==403||(!s||!zQ.has(s))&&(c==null||c===2&&e.credentialToken))){await r3();try{let d=await Jr.getCredential(e.params.url,{error:Ts("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 VD(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,JA(i,e,r,n)}var i2,oo,UD,UQ,zQ,WQ,xm,o2,ib=R(()=>{Sc();Qy();On();rt();mr();Ro();Oc();By();ZA();tI();oo=Mt.request,UD="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],xm=()=>null,o2=Symbol();wr._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],wr._beforeFetch=void 0,wr._afterFetch=void 0});function Xf(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 k4(Mt.assetsPath,e)}var ob=R(()=>{Sc();ib();On();it();Oc()});function WD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var BD=R(()=>{});var GD=hT(()=>{});var jD=hT(()=>{});var ZD={};Hs(ZD,{p:()=>QQ});function JQ(){return qD||(qD=1,e=HD,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=GD(),z=jD();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 q,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||Pn(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(){es(de)}function nt(){es(Se)}function Et(){es(ye)}function Cr(m){Se.unshift(m)}var dr=0,pr=null;function gi(m){dr++}function zn(m){if(--dr==0&&pr){var k=pr;pr=null,k()}}function Pn(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 Ue,Ed="data:application/octet-stream;base64,",Ko=m=>m.startsWith(Ed),lo=m=>m.startsWith("file://");function pl(){var m="pe-wasm.wasm";return Ko(m)?m:F(m)}function Ea(m){if(c)return c(m);throw"both async and sync fetching of the wasm failed"}function Os(m){return s(m).then(k=>new Uint8Array(k),()=>Ea(m))}function $i(m,k,Z){return Os(m).then(se=>WebAssembly.instantiate(se,k)).then(Z,se=>{ie(`failed to asynchronously prepare wasm: ${se}`),Pn(se)})}function Cd(m,k,Z,se){return typeof WebAssembly.instantiateStreaming!="function"||Ko(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 Rs(){return{a:Rm}}function Om(){var m=Rs();function k(se,ue){return H=se.exports,G=H.t,pe(),Cr(H.u),zn(),H}function Z(se){k(se.instance)}return gi(),Ue??(Ue=pl()),Cd(q,Ue,m,Z).catch(o),{}}var es=m=>{for(;m.length>0;)m.shift()(a)};function Ca(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":Pn("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:Pn(`invalid type for getValue: ${k}`)}}var fl=typeof TextDecoder<"u"?new TextDecoder:void 0,ml=(m,k=0,Z=NaN)=>{for(var se=k+Z,ue=k;m[ue]&&!(ue>=se);)++ue;if(ue-k>16&&m.buffer&&fl)return fl.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 In=ze-65536;Pe+=String.fromCharCode(55296|In>>10,56320|1023&In)}}else Pe+=String.fromCharCode((31&ze)<<6|De)}else Pe+=String.fromCharCode(ze)}return Pe},Tr=(m,k)=>m?ml(fe,m,k):"";function Td(m,k,Z){return 0}var ts=(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},Ta=(m,k,Z)=>ts(m,fe,k,Z);function hl(m,k,Z){return 0}function Pd(m,k,Z,se){}var gl=m=>m%4==0&&(m%100!=0||m%400==0),wl=[0,31,60,91,121,152,182,213,244,274,305,335],yl=[0,31,59,90,120,151,181,212,243,273,304,334],bl=m=>(gl(m.getFullYear())?wl:yl)[m.getMonth()]+m.getDate()-1,Md=(m,k)=>k+2097152>>>0<4194305-!!m?(m>>>0)+4294967296*k:NaN;function uo(m,k,Z){var se=Md(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|bl(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(),In=0|(De!=lt&&ue.getTimezoneOffset()==Math.min(lt,De));Ee[Z+32>>2]=In}var Ad=()=>2147483648,vl=(m,k)=>Math.ceil(m/k)*k,Ds=m=>{var k=(m-G.buffer.byteLength+65535)/65536|0;try{return G.grow(k),pe(),1}catch{}},Vi={},rs=()=>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",_:rs()};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},_l=(m,k)=>{for(var Z=0;Z<m.length;++Z)U[k++]=m.charCodeAt(Z);U[k]=0};function Id(m,k,Z,se,ue){return 70}var xl=[null,[],[]],Pa=(m,k)=>{var Z=xl[m];k===0||k===10?((m===1?Y:ie)(ml(Z)),Z.length=0):Z.push(k)},Ld=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 kd(m,k,Z){var se=Ld(m)+1,ue=new Array(se);return ts(m,ue,0,ue.length),ue}var Rm={c:Td,q:(m,k,Z)=>{},h:hl,d:Pd,o:m=>{},n:(m,k)=>{},p:(m,k,Z)=>{},l:()=>{Pn("")},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(),In=Math.max(De,lt);Ne[m>>2]=60*In,Ee[k>>2]=+(De!=lt);var K1=r0=>{var q2=r0>=0?"-":"+",n0=Math.abs(r0);return`UTC${q2}${String(Math.floor(n0/60)).padStart(2,"0")}${String(n0%60).padStart(2,"0")}`},e0=K1(De),t0=K1(lt);lt<De?(Ta(e0,Z,17),Ta(t0,se,17)):(Ta(e0,se,17),Ta(t0,Z,17))},i:()=>Date.now(),m:m=>{var k=fe.length;m>>>=0;var Z=Ad();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,vl(Math.max(m,ue),65536));if(Ds(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,_l(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:Id,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++)Pa(m,fe[ze+lt]);ue+=De}return Ne[se>>2]=ue,0}},H=Om();a._webidl_free=m=>(a._webidl_free=H.v)(m),a._webidl_malloc=m=>(a._webidl_malloc=H.w)(m);var ns,Nd=a._emscripten_bind_PeObject_getCode_0=m=>(Nd=a._emscripten_bind_PeObject_getCode_0=H.x)(m),Od=a._emscripten_bind_PeObject_getName_1=(m,k)=>(Od=a._emscripten_bind_PeObject_getName_1=H.y)(m,k),Sl=a._emscripten_bind_PeObject_getType_0=m=>(Sl=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),Rd=a._emscripten_bind_PeCoordsys_getType_0=m=>(Rd=a._emscripten_bind_PeCoordsys_getType_0=H.D)(m),Dd=a._emscripten_bind_PeUnit_getUnitFactor_0=m=>(Dd=a._emscripten_bind_PeUnit_getUnitFactor_0=H.E)(m),Ma=a._emscripten_bind_PeUnit_getCode_0=m=>(Ma=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),Aa=a._emscripten_bind_VoidPtr___destroy___0=m=>(Aa=a._emscripten_bind_VoidPtr___destroy___0=H.I)(m),El=a._emscripten_bind_PeAngunit_getCode_0=m=>(El=a._emscripten_bind_PeAngunit_getCode_0=H.J)(m),Cl=a._emscripten_bind_PeAngunit_getName_1=(m,k)=>(Cl=a._emscripten_bind_PeAngunit_getName_1=H.K)(m,k),Tl=a._emscripten_bind_PeAngunit_getType_0=m=>(Tl=a._emscripten_bind_PeAngunit_getType_0=H.L)(m),is=a._emscripten_bind_PeAngunit_getUnitFactor_0=m=>(is=a._emscripten_bind_PeAngunit_getUnitFactor_0=H.M)(m),Ia=a._emscripten_bind_PeDatum_getSpheroid_0=m=>(Ia=a._emscripten_bind_PeDatum_getSpheroid_0=H.N)(m),Fd=a._emscripten_bind_PeDatum_getCode_0=m=>(Fd=a._emscripten_bind_PeDatum_getCode_0=H.O)(m),$d=a._emscripten_bind_PeDatum_getName_1=(m,k)=>($d=a._emscripten_bind_PeDatum_getName_1=H.P)(m,k),Vd=a._emscripten_bind_PeDatum_getType_0=m=>(Vd=a._emscripten_bind_PeDatum_getType_0=H.Q)(m),Pl=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=m=>(Pl=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=H.R)(m),Ud=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=m=>(Ud=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=H.S)(m),Ml=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=m=>(Ml=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=H.T)(m),Al=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=m=>(Al=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=H.U)(m),Fs=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=m=>(Fs=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=H.V)(m),Il=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=m=>(Il=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=H.W)(m),La=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=m=>(La=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=H.X)(m),Ll=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=m=>(Ll=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=H.Y)(m),zd=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=m=>(zd=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=H.Z)(m),ka=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=m=>(ka=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=H._)(m),Wd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=m=>(Wd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=H.$)(m),Na=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=m=>(Na=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=H.aa)(m),Bd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=m=>(Bd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=H.ba)(m),Gd=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=m=>(Gd=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=H.ca)(m),jd=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=m=>(jd=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=H.da)(m),qd=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=m=>(qd=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=H.ea)(m),Hd=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=m=>(Hd=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=H.fa)(m),kl=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=m=>(kl=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=H.ga)(m),$s=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=m=>($s=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),Oa=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=m=>(Oa=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=H.ja)(m),Vs=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=m=>(Vs=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),os=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=m=>(os=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=H.ma)(m),Zd=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=m=>(Zd=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=H.na)(m),Nl=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=m=>(Nl=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=H.oa)(m),Ol=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=m=>(Ol=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=H.pa)(m),Ra=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=m=>(Ra=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=H.qa)(m),Yd=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=m=>(Yd=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=H.ra)(m),Jd=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=m=>(Jd=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=H.sa)(m),Rl=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=m=>(Rl=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=H.ta)(m),Xd=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=m=>(Xd=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=H.ua)(m),Qd=a._emscripten_bind_PeDouble_PeDouble_1=m=>(Qd=a._emscripten_bind_PeDouble_PeDouble_1=H.va)(m),Dl=a._emscripten_bind_PeDouble_get_val_0=m=>(Dl=a._emscripten_bind_PeDouble_get_val_0=H.wa)(m),Fl=a._emscripten_bind_PeDouble_set_val_1=(m,k)=>(Fl=a._emscripten_bind_PeDouble_set_val_1=H.xa)(m,k),Kd=a._emscripten_bind_PeDouble___destroy___0=m=>(Kd=a._emscripten_bind_PeDouble___destroy___0=H.ya)(m),Da=a._emscripten_bind_PeFactory_initialize_1=m=>(Da=a._emscripten_bind_PeFactory_initialize_1=H.za)(m),ep=a._emscripten_bind_PeFactory_factoryByType_2=(m,k)=>(ep=a._emscripten_bind_PeFactory_factoryByType_2=H.Aa)(m,k),$l=a._emscripten_bind_PeFactory_fromString_2=(m,k)=>($l=a._emscripten_bind_PeFactory_fromString_2=H.Ba)(m,k),tp=a._emscripten_bind_PeFactory_getCode_1=m=>(tp=a._emscripten_bind_PeFactory_getCode_1=H.Ca)(m),Us=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(m,k,Z,se,ue,Pe)=>(Us=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=H.Da)(m,k,Z,se,ue,Pe),rp=a._emscripten_bind_PeGCSExtent_getLLon_0=m=>(rp=a._emscripten_bind_PeGCSExtent_getLLon_0=H.Ea)(m),Vl=a._emscripten_bind_PeGCSExtent_getSLat_0=m=>(Vl=a._emscripten_bind_PeGCSExtent_getSLat_0=H.Fa)(m),Ul=a._emscripten_bind_PeGCSExtent_getRLon_0=m=>(Ul=a._emscripten_bind_PeGCSExtent_getRLon_0=H.Ga)(m),np=a._emscripten_bind_PeGCSExtent_getNLat_0=m=>(np=a._emscripten_bind_PeGCSExtent_getNLat_0=H.Ha)(m),zl=a._emscripten_bind_PeGCSExtent___destroy___0=m=>(zl=a._emscripten_bind_PeGCSExtent___destroy___0=H.Ia)(m),Wl=a._emscripten_bind_PeGeogcs_Delete_0=m=>(Wl=a._emscripten_bind_PeGeogcs_Delete_0=H.Ja)(m),ip=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=(m,k)=>(ip=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),ss=a._emscripten_bind_PeGeogcs_getPrimem_0=m=>(ss=a._emscripten_bind_PeGeogcs_getPrimem_0=H.Ma)(m),op=a._emscripten_bind_PeGeogcs_getUnit_0=m=>(op=a._emscripten_bind_PeGeogcs_getUnit_0=H.Na)(m),Fa=a._emscripten_bind_PeGeogcs_isEqual_1=(m,k)=>(Fa=a._emscripten_bind_PeGeogcs_isEqual_1=H.Oa)(m,k),$a=a._emscripten_bind_PeGeogcs_getCode_0=m=>($a=a._emscripten_bind_PeGeogcs_getCode_0=H.Pa)(m),sp=a._emscripten_bind_PeGeogcs_getName_1=(m,k)=>(sp=a._emscripten_bind_PeGeogcs_getName_1=H.Qa)(m,k),zs=a._emscripten_bind_PeGeogcs_getType_0=m=>(zs=a._emscripten_bind_PeGeogcs_getType_0=H.Ra)(m),Bl=a._emscripten_bind_PeGeogtran_isEqual_1=(m,k)=>(Bl=a._emscripten_bind_PeGeogtran_isEqual_1=H.Sa)(m,k),Gl=a._emscripten_bind_PeGeogtran_getGeogcs1_0=m=>(Gl=a._emscripten_bind_PeGeogtran_getGeogcs1_0=H.Ta)(m),Va=a._emscripten_bind_PeGeogtran_getGeogcs2_0=m=>(Va=a._emscripten_bind_PeGeogtran_getGeogcs2_0=H.Ua)(m),jl=a._emscripten_bind_PeGeogtran_getParameters_0=m=>(jl=a._emscripten_bind_PeGeogtran_getParameters_0=H.Va)(m),ap=a._emscripten_bind_PeGeogtran_loadConstants_0=m=>(ap=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),cp=a._emscripten_bind_PeGeogtran_getName_1=(m,k)=>(cp=a._emscripten_bind_PeGeogtran_getName_1=H.Ya)(m,k),lp=a._emscripten_bind_PeGeogtran_getType_0=m=>(lp=a._emscripten_bind_PeGeogtran_getType_0=H.Za)(m),up=a._emscripten_bind_PeGTlistExtended_getGTlist_6=(m,k,Z,se,ue,Pe)=>(up=a._emscripten_bind_PeGTlistExtended_getGTlist_6=H._a)(m,k,Z,se,ue,Pe),ql=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=m=>(ql=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=H.$a)(m),Hl=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=m=>(Hl=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),dp=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=m=>(dp=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=H.cb)(m),pp=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=m=>(pp=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=H.db)(m),fp=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=m=>(fp=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=H.eb)(m),mp=a._emscripten_bind_PeHorizon_getNump_0=m=>(mp=a._emscripten_bind_PeHorizon_getNump_0=H.fb)(m),hp=a._emscripten_bind_PeHorizon_getKind_0=m=>(hp=a._emscripten_bind_PeHorizon_getKind_0=H.gb)(m),Zl=a._emscripten_bind_PeHorizon_getInclusive_0=m=>(Zl=a._emscripten_bind_PeHorizon_getInclusive_0=H.hb)(m),gp=a._emscripten_bind_PeHorizon_getSize_0=m=>(gp=a._emscripten_bind_PeHorizon_getSize_0=H.ib)(m),Yl=a._emscripten_bind_PeHorizon_getCoord_0=m=>(Yl=a._emscripten_bind_PeHorizon_getCoord_0=H.jb)(m),Jl=a._emscripten_bind_PeInteger_PeInteger_1=m=>(Jl=a._emscripten_bind_PeInteger_PeInteger_1=H.kb)(m),Ws=a._emscripten_bind_PeInteger_get_val_0=m=>(Ws=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),Bs=a._emscripten_bind_PeInteger___destroy___0=m=>(Bs=a._emscripten_bind_PeInteger___destroy___0=H.nb)(m),wp=a._emscripten_bind_PeLineType_geodetic_distance_10=(m,k,Z,se,ue,Pe,ze,De,lt,In)=>(wp=a._emscripten_bind_PeLineType_geodetic_distance_10=H.ob)(m,k,Z,se,ue,Pe,ze,De,lt,In),Xl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=(m,k,Z,se,ue,Pe,ze,De,lt)=>(Xl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=H.pb)(m,k,Z,se,ue,Pe,ze,De,lt),Ql=a._emscripten_bind_PeLineType_geodesic_coordinate_8=(m,k,Z,se,ue,Pe,ze,De)=>(Ql=a._emscripten_bind_PeLineType_geodesic_coordinate_8=H.qb)(m,k,Z,se,ue,Pe,ze,De),Kl=a._emscripten_bind_PeLineType_great_elliptic_distance_9=(m,k,Z,se,ue,Pe,ze,De,lt)=>(Kl=a._emscripten_bind_PeLineType_great_elliptic_distance_9=H.rb)(m,k,Z,se,ue,Pe,ze,De,lt),as=a._emscripten_bind_PeMath_phi_to_eta_2=(m,k)=>(as=a._emscripten_bind_PeMath_phi_to_eta_2=H.sb)(m,k),yp=a._emscripten_bind_PeMath_eta_to_phi_2=(m,k)=>(yp=a._emscripten_bind_PeMath_eta_to_phi_2=H.tb)(m,k),bp=a._emscripten_bind_PeMath_phi_to_phig_2=(m,k)=>(bp=a._emscripten_bind_PeMath_phi_to_phig_2=H.ub)(m,k),vp=a._emscripten_bind_PeMath_q_3=(m,k,Z)=>(vp=a._emscripten_bind_PeMath_q_3=H.vb)(m,k,Z),_p=a._emscripten_bind_PeMath_q90_2=(m,k)=>(_p=a._emscripten_bind_PeMath_q90_2=H.wb)(m,k),xp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=m=>(xp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=H.xb)(m),Sp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=m=>(Sp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=H.yb)(m),Ua=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=m=>(Ua=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=H.zb)(m),Ep=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=m=>(Ep=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=H.Ab)(m),Gs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=m=>(Gs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=H.Bb)(m),Cp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=m=>(Cp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=H.Cb)(m),za=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=m=>(za=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=H.Db)(m),Tp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=m=>(Tp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=H.Eb)(m),Pp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=m=>(Pp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=H.Fb)(m),eu=a._emscripten_bind_PeParameter_getValue_0=m=>(eu=a._emscripten_bind_PeParameter_getValue_0=H.Gb)(m),cs=a._emscripten_bind_PeParameter_getCode_0=m=>(cs=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),tu=a._emscripten_bind_PeParameter_getType_0=m=>(tu=a._emscripten_bind_PeParameter_getType_0=H.Jb)(m),Wa=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=m=>(Wa=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=H.Kb)(m),Mp=a._emscripten_bind_PePCSInfo_getDomainMinx_0=m=>(Mp=a._emscripten_bind_PePCSInfo_getDomainMinx_0=H.Lb)(m),Ap=a._emscripten_bind_PePCSInfo_getDomainMiny_0=m=>(Ap=a._emscripten_bind_PePCSInfo_getDomainMiny_0=H.Mb)(m),Ip=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=m=>(Ip=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=H.Nb)(m),Lp=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=m=>(Lp=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=H.Ob)(m),kp=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=m=>(kp=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=H.Pb)(m),Np=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=m=>(Np=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=H.Qb)(m),Op=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=m=>(Op=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=H.Rb)(m),Rp=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=m=>(Rp=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=H.Sb)(m),Dp=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=m=>(Dp=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=H.Tb)(m),Fp=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=m=>(Fp=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),Ve=a._emscripten_bind_PeProjcs_isEqual_1=(m,k)=>(Ve=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),Mn=a._emscripten_bind_PeSpheroid_getType_0=m=>(Mn=a._emscripten_bind_PeSpheroid_getType_0=H.tc)(m),Wn=a._emscripten_bind_PeVersion_version_string_0=m=>(Wn=a._emscripten_bind_PeVersion_version_string_0=H.uc)(m);function js(){function m(){ns||(ns=!0,a.calledRun=!0,J||(nt(),i(a),Et()))}dr>0||(Fe(),dr>0||m())}function mt(){}function Ba(m){return(m||mt).__cache__}function fr(m,k){var Z=Ba(k),se=Z[m];return se||((se=Object.create((k||mt).prototype)).ptr=m,Z[m]=se)}function F2(m,k){return fr(m.ptr,k)}function $2(m){if(!m.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";m.__destroy__(),delete Ba(m.__class__)[m.ptr]}function V2(m,k){return m.ptr===k.ptr}function U2(m){return m.ptr}function z2(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=Ca,a.UTF8ToString=Tr,pr=function m(){ns||js(),ns||(pr=m)},js(),mt.prototype=Object.create(mt.prototype),mt.prototype.constructor=mt,mt.prototype.__class__=mt,mt.__cache__={},a.WrapperObject=mt,a.getCache=Ba,a.wrapPointer=fr,a.castObject=F2,a.NULL=fr(0),a.destroy=$2,a.compare=V2,a.getPointer=U2,a.getClass=z2;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=vl(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 Dm(m){if(typeof m=="string"){var k=kd(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 W2(m){if(typeof m=="object"){var k=Je.alloc(m,Ae);return Je.copy(m,Ae,k),k}return m}function B2(m){if(typeof m=="object"){var k=Je.alloc(m,Ee);return Je.copy(m,Ee,k),k}return m}function G2(m){if(typeof m=="object"){var k=Je.alloc(m,we);return Je.copy(m,we,k),k}return m}function j2(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=Qd(m),Ba(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=Us(m,k,Z,se,ue,Pe),Ba(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 Bn(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function An(){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=Jl(m),Ba(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 Nd(m)},rr.prototype.getName=rr.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(Od(k,m))},rr.prototype.getType=rr.prototype.getType=function(){var m=this.ptr;return Sl(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 Rd(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 Dd(m)},Ur.prototype.getCode=Ur.prototype.getCode=function(){var m=this.ptr;return Ma(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;Aa(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 El(m)},en.prototype.getName=en.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(Cl(k,m))},en.prototype.getType=en.prototype.getType=function(){var m=this.ptr;return Tl(m)},en.prototype.getUnitFactor=en.prototype.getUnitFactor=function(){var m=this.ptr;return is(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(Ia(m),Ir)},tn.prototype.getCode=tn.prototype.getCode=function(){var m=this.ptr;return Fd(m)},tn.prototype.getName=tn.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr($d(k,m))},tn.prototype.getType=tn.prototype.getType=function(){var m=this.ptr;return Vd(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 Pl(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 Ud(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 Ml(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 Al(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 Fs(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 Il(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 La(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 Ll(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 zd(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 ka(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 Wd(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 Na(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 Bd(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 Gd(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 jd(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 qd(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 Hd(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 kl(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 $s(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 Oa(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 Vs(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 os(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 Zd(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 Nl(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 Ol(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 Ra(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 Yd(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 Jd(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 Rl(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 Xd(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 Dl(m)},zr.prototype.set_val=zr.prototype.set_val=function(m){var k=this.ptr;m&&typeof m=="object"&&(m=m.ptr),Fl(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;Kd(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:Dm(m),Da(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(ep(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:Dm(k),fr($l(m,k),rr)},hn.prototype.getCode=hn.prototype.getCode=function(m){return m&&typeof m=="object"&&(m=m.ptr),tp(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 rp(m)},Ar.prototype.getSLat=Ar.prototype.getSLat=function(){var m=this.ptr;return Vl(m)},Ar.prototype.getRLon=Ar.prototype.getRLon=function(){var m=this.ptr;return Ul(m)},Ar.prototype.getNLat=Ar.prototype.getNLat=function(){var m=this.ptr;return np(m)},Ar.prototype.__destroy__=Ar.prototype.__destroy__=function(){var m=this.ptr;zl(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;Wl(m)},Ct.prototype.cloneAlterUnits=Ct.prototype.cloneAlterUnits=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),fr(ip(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(ss(m),rn)},Ct.prototype.getUnit=Ct.prototype.getUnit=function(){var m=this.ptr;return fr(op(m),en)},Ct.prototype.isEqual=Ct.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Fa(k,m)},Ct.prototype.getCode=Ct.prototype.getCode=function(){var m=this.ptr;return $a(m)},Ct.prototype.getName=Ct.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(sp(k,m))},Ct.prototype.getType=Ct.prototype.getType=function(){var m=this.ptr;return zs(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),!!Bl(k,m)},Jt.prototype.getGeogcs1=Jt.prototype.getGeogcs1=function(){var m=this.ptr;return fr(Gl(m),Ct)},Jt.prototype.getGeogcs2=Jt.prototype.getGeogcs2=function(){var m=this.ptr;return fr(Va(m),Ct)},Jt.prototype.getParameters=Jt.prototype.getParameters=function(){var m=this.ptr;return jl(m)},Jt.prototype.loadConstants=Jt.prototype.loadConstants=function(){var m=this.ptr;return!!ap(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(cp(k,m))},Jt.prototype.getType=Jt.prototype.getType=function(){var m=this.ptr;return lp(m)},Bn.prototype=Object.create(mt.prototype),Bn.prototype.constructor=Bn,Bn.prototype.__class__=Bn,Bn.__cache__={},a.PeGTlistExtended=Bn,Bn.prototype.getGTlist=Bn.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(up(m,k,Z,se,ue,Pe),An)},Bn.prototype.get_PE_GTLIST_OPTS_COMMON=Bn.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var m=this.ptr;return ql(m)},Object.defineProperty(Bn.prototype,"PE_GTLIST_OPTS_COMMON",{get:Bn.prototype.get_PE_GTLIST_OPTS_COMMON}),An.prototype=Object.create(mt.prototype),An.prototype.constructor=An,An.prototype.__class__=An,An.__cache__={},a.PeGTlistExtendedEntry=An,An.prototype.getEntries=An.prototype.getEntries=function(){var m=this.ptr;return fr(Hl(m),ri)},An.prototype.getSteps=An.prototype.getSteps=function(){var m=this.ptr;return Pr(m)},An.prototype.Delete=An.prototype.Delete=function(m){m&&typeof m=="object"&&(m=m.ptr),dp(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 pp(m)},ri.prototype.getGeogtran=ri.prototype.getGeogtran=function(){var m=this.ptr;return fr(fp(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 mp(m)},xr.prototype.getKind=xr.prototype.getKind=function(){var m=this.ptr;return hp(m)},xr.prototype.getInclusive=xr.prototype.getInclusive=function(){var m=this.ptr;return Zl(m)},xr.prototype.getSize=xr.prototype.getSize=function(){var m=this.ptr;return gp(m)},xr.prototype.getCoord=xr.prototype.getCoord=function(){var m=this.ptr;return Yl(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 Ws(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;Bs(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,In){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),In&&typeof In=="object"&&(In=In.ptr),wp(m,k,Z,se,ue,Pe,ze,De,lt,In)},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),Xl(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),Ql(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),Kl(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),as(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),yp(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),bp(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),vp(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),_p(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 xp(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 Sp(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 Ua(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 Ep(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 Gs(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 Cp(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 za(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 Tp(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 Pp(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 eu(m)},wn.prototype.getCode=wn.prototype.getCode=function(){var m=this.ptr;return cs(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 tu(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 Wa(m)},Ze.prototype.getDomainMinx=Ze.prototype.getDomainMinx=function(){var m=this.ptr;return Mp(m)},Ze.prototype.getDomainMiny=Ze.prototype.getDomainMiny=function(){var m=this.ptr;return Ap(m)},Ze.prototype.getDomainMaxx=Ze.prototype.getDomainMaxx=function(){var m=this.ptr;return Ip(m)},Ze.prototype.getDomainMaxy=Ze.prototype.getDomainMaxy=function(){var m=this.ptr;return Lp(m)},Ze.prototype.getNorthPoleLocation=Ze.prototype.getNorthPoleLocation=function(){var m=this.ptr;return kp(m)},Ze.prototype.getNorthPoleGeometry=Ze.prototype.getNorthPoleGeometry=function(){var m=this.ptr;return Np(m)},Ze.prototype.getSouthPoleLocation=Ze.prototype.getSouthPoleLocation=function(){var m=this.ptr;return Op(m)},Ze.prototype.getSouthPoleGeometry=Ze.prototype.getSouthPoleGeometry=function(){var m=this.ptr;return Rp(m)},Ze.prototype.isDensificationNeeded=Ze.prototype.isDensificationNeeded=function(){var m=this.ptr;return!!Dp(m)},Ze.prototype.isGcsHorizonMultiOverlap=Ze.prototype.isGcsHorizonMultiOverlap=function(){var m=this.ptr;return!!Fp(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),!!Ve(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 Mn(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(Wn(m))},a.ensureCache=Je,a.ensureString=Dm,a.ensureInt8=ti,a.ensureInt16=W2,a.ensureInt32=B2,a.ensureFloat32=G2,a.ensureFloat64=j2,d},e.exports=r),HD.exports;var e,t,r}var qD,HD,XQ,QQ,YD=R(()=>{BD();HD={exports:{}};XQ=WD(JQ()),QQ=Object.freeze(Object.defineProperty({__proto__:null,default:XQ},Symbol.toStringTag,{value:"Module"}))});function JD(){return!!j}function KQ(){return!!me("esri-wasm")}function XD(){return n3||(n3=Promise.resolve().then(()=>(YD(),ZD)).then(e=>e.p).then(({default:e})=>e({locateFile:t=>Xf(`esri/geometry/support/${t}`)})).then(e=>{eF(e)}),n3)}function eF(e){function t(o,s,c){o[s]=c(o[s])}j=e,Qt.init(),c2.init(),l2.init(),u2.init(),d2.init(),QD=class extends j.PeDouble{constructor(o=NaN){super(o)}destroy(){j.destroy(this)}[Symbol.dispose](){this.destroy()}},KD=class extends j.PeGCSExtent{destroy(){j.destroy(this)}[Symbol.dispose](){this.destroy()}};let r=[j.PeAngunit,j.PeDatum,j.PeGeogcs,j.PeGeogtran,j.PeObject,j.PeParameter,j.PePrimem,j.PeProjcs,j.PeSpheroid,j.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[j.PeGeogtran,j.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=j.getValue(a,"*");c[d]=h?j.wrapPointer(h,j.PeParameter):null,a+=Int32Array.BYTES_PER_ELEMENT}return c});t(j.PeHorizon.prototype,"getCoord",o=>function(s=!1){let c=this.getSize();if(!c)return null;let a=[];return nl(a,c,o.call(this),s),a}),t(j.PeGTlistExtendedEntry.prototype,"getEntries",o=>{let s=j._pe_getPeGTlistExtendedGTsSize();return function(){let c=null,a=o.call(this);if(!j.compare(a,j.NULL)){c=[a];let d=this.getSteps();if(d>1){let h=j.getPointer(a);for(let g=1;g<d;g++)c.push(j.wrapPointer(h+s*g,j.PeGTlistExtendedGTs))}}return c}});let n=j._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(!j.compare(a,j.NULL)){c=[a];let d=a.getNump();if(d>1){let h=j.getPointer(a);for(let g=1;g<d;g++)c.push(j.wrapPointer(h+n*g,j.PeHorizon))}}return s.set(o,c),c};t(j.PeProjcs.prototype,"horizonGcsGenerate",i),t(j.PeProjcs.prototype,"horizonPcsGenerate",i),j.PeObject.prototype.toString=function(o=Qt.PE_STR_OPTS_NONE){j.ensureCache.prepare();let s=j.getPointer(this),c=j.ensureInt8(new Array(Qt.PE_BUFFER_MAX));return j.UTF8ToString(j._pe_object_to_string_ext(s,o,c))},j.PeGeogcs.prototype.destroy=function(){this.Delete(),Zo(this),this.ptr=0},j.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},j.PeProjcs.prototype.destroy=function(){this.Delete(),Zo(this),this.ptr=0},j.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function Zo(e){if(!e)return;let t=j.getClass(e);if(!t)return;let r=j.getCache(t);if(!r)return;let n=j.getPointer(e);n&&delete r[n]}function s2(e,t){let r=[],n=new Array(t);for(let i=0;i<e;i++)r.push(j.ensureInt8(n));return r}function cd(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function nl(e,t,r,n=!1){if(n)for(let i=0;i<2*t;i++)e[i]=j.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]=j.getValue(r,"double"),e[o][1]=j.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}var n3,j,i3,Qt,QD,a2,KD,c2,o3,s3,a3,c3,l3,l2,u3,u2,d2,d3,A5e,tF=R(()=>{ob();rt();j=null;(function(e){function t(o,s,c){j.ensureCache.prepare();let a=cd(c),d=c===a,h=j.ensureFloat64(a),g=j._pe_geog_to_proj(j.getPointer(o),s,h);return g&&nl(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){j.ensureCache.prepare();let d=cd(c),h=c===d,g=j.ensureFloat64(d),v=j._pe_proj_to_geog_center(j.getPointer(o),s,g,a);return v&&nl(c,s,g,h),v}e.geogToProj=t,e.projGeog=r,e.projToGeog=n,e.projToGeogCenter=i})(i3||(i3={})),function(e){function t(){e.PE_BUFFER_MAX=j.PeDefs.prototype.PE_BUFFER_MAX,e.PE_NAME_MAX=j.PeDefs.prototype.PE_NAME_MAX,e.PE_MGRS_MAX=j.PeDefs.prototype.PE_MGRS_MAX,e.PE_USNG_MAX=j.PeDefs.prototype.PE_USNG_MAX,e.PE_DD_MAX=j.PeDefs.prototype.PE_DD_MAX,e.PE_DDM_MAX=j.PeDefs.prototype.PE_DDM_MAX,e.PE_DMS_MAX=j.PeDefs.prototype.PE_DMS_MAX,e.PE_UTM_MAX=j.PeDefs.prototype.PE_UTM_MAX,e.PE_PARM_MAX=j.PeDefs.prototype.PE_PARM_MAX,e.PE_TYPE_NONE=j.PeDefs.prototype.PE_TYPE_NONE,e.PE_TYPE_GEOGCS=j.PeDefs.prototype.PE_TYPE_GEOGCS,e.PE_TYPE_PROJCS=j.PeDefs.prototype.PE_TYPE_PROJCS,e.PE_TYPE_GEOGTRAN=j.PeDefs.prototype.PE_TYPE_GEOGTRAN,e.PE_TYPE_COORDSYS=j.PeDefs.prototype.PE_TYPE_COORDSYS,e.PE_TYPE_UNIT=j.PeDefs.prototype.PE_TYPE_UNIT,e.PE_TYPE_LINUNIT=j.PeDefs.prototype.PE_TYPE_LINUNIT,e.PE_STR_OPTS_NONE=j.PeDefs.prototype.PE_STR_OPTS_NONE,e.PE_STR_AUTH_NONE=j.PeDefs.prototype.PE_STR_AUTH_NONE,e.PE_STR_AUTH_TOP=j.PeDefs.prototype.PE_STR_AUTH_TOP,e.PE_STR_NAME_CANON=j.PeDefs.prototype.PE_STR_NAME_CANON,e.PE_STR_FMT_WKT=j.PeDefs.prototype.PE_STR_FMT_WKT,e.PE_STR_FMT_WKT2=j.PeDefs.prototype.PE_STR_FMT_WKT2,e.PE_PARM_X0=j.PeDefs.prototype.PE_PARM_X0,e.PE_PARM_ND=j.PeDefs.prototype.PE_PARM_ND,e.PE_TRANSFORM_1_TO_2=j.PeDefs.prototype.PE_TRANSFORM_1_TO_2,e.PE_TRANSFORM_2_TO_1=j.PeDefs.prototype.PE_TRANSFORM_2_TO_1,e.PE_TRANSFORM_P_TO_G=j.PeDefs.prototype.PE_TRANSFORM_P_TO_G,e.PE_TRANSFORM_G_TO_P=j.PeDefs.prototype.PE_TRANSFORM_G_TO_P,e.PE_HORIZON_RECT=j.PeDefs.prototype.PE_HORIZON_RECT,e.PE_HORIZON_POLY=j.PeDefs.prototype.PE_HORIZON_POLY,e.PE_HORIZON_LINE=j.PeDefs.prototype.PE_HORIZON_LINE,e.PE_HORIZON_DELTA=j.PeDefs.prototype.PE_HORIZON_DELTA}e.init=t}(Qt||(Qt={}));QD=null;(function(e){let t={},r={},n=E=>{let P=E.getType();switch(P){case Qt.PE_TYPE_GEOGCS:E=j.castObject(E,j.PeGeogcs);break;case Qt.PE_TYPE_PROJCS:E=j.castObject(E,j.PeProjcs);break;case Qt.PE_TYPE_GEOGTRAN:E=j.castObject(E,j.PeGeogtran);break;default:P&Qt.PE_TYPE_UNIT&&(E=j.castObject(E,j.PeUnit))}return E};function i(){j.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],j.compare(A,j.NULL)&&(A=null)),!A){let W=j.PeFactory.prototype.factoryByType(E,P);j.compare(W,j.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],j.compare(A,j.NULL)&&(A=null)),!A){let W=j.PeFactory.prototype.fromString(E,P);j.compare(W,j.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 j.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})(a2||(a2={}));KD=null;(function(e){let t;function r(){e.PE_GTLIST_OPTS_COMMON=j.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=j._pe_getPeGTlistExtendedEntrySize()}function n(i,o,s,c,a,d){let h=null,g=new j.PeInteger(d);try{let v=j.PeGTlistExtended.prototype.getGTlist(i,o,s,c,a,g);if((d=g.val)&&(h=[v],d>1)){let E=j.getPointer(v);for(let P=1;P<d;P++)h.push(j.wrapPointer(E+t*P,j.PeGTlistExtendedEntry))}}finally{j.destroy(g)}return h}e.init=r,e.getGTlist=n})(c2||(c2={})),function(e){function t(r){if(r?.length){for(let n of r)Zo(n),n.getEntries().forEach(i=>{Zo(i);let o=i.getGeogtran();Zo(o),o.getParameters().forEach(Zo),[o.getGeogcs1(),o.getGeogcs2()].forEach(s=>{Zo(s);let c=s.getDatum();Zo(c),Zo(c.getSpheroid()),Zo(s.getPrimem()),Zo(s.getUnit())})});j.PeGTlistExtendedEntry.prototype.Delete(r[0])}}e.destroy=t}(o3||(o3={})),function(e){function t(r,n,i,o,s){j.ensureCache.prepare();let c=cd(i),a=i===c,d=j.ensureFloat64(c),h=0;o&&(h=j.ensureFloat64(o));let g=j._pe_geog_to_geog(j.getPointer(r),n,d,h,s);return g&&nl(i,n,d,a),g}e.geogToGeog=t}(s3||(s3={})),function(e){function t(o,s,c,a,d,h,g,v){j.PeLineType.prototype.geodesic_coordinate(o,s,c,a,d,h,g,v)}function r(o,s,c,a,d,h,g,v,E){j.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){j.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){j.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}(a3||(a3={})),function(e){function t(s,c){return j.PeMath.prototype.phi_to_eta(s,c)}function r(s,c){return j.PeMath.prototype.eta_to_phi(s,c)}function n(s,c){return j.PeMath.prototype.phi_to_phig(s,c)}function i(s,c,a){return j.PeMath.prototype.q(s,c,a)}function o(s,c){return j.PeMath.prototype.q90(s,c)}e.phiToEta=t,e.etaToPhi=r,e.phiToPhig=n,e.q=i,e.q90=o}(c3||(c3={})),function(e){let t=(d,h,g,v,E,P)=>{let A,F;switch(j.ensureCache.prepare(),d){case"dd":A=j._pe_geog_to_dd,F=Qt.PE_DD_MAX;break;case"ddm":A=j._pe_geog_to_ddm,F=Qt.PE_DDM_MAX;break;case"dms":A=j._pe_geog_to_dms,F=Qt.PE_DMS_MAX}let W=0;h&&(W=j.getPointer(h));let z=cd(v),q=j.ensureFloat64(z),G=s2(g,F),Y=A(W,g,q,E,j.ensureInt32(G));if(Y)for(let ie=0;ie<g;ie++)P[ie]=j.UTF8ToString(G[ie]);return Y},r=(d,h,g,v,E)=>{let P;switch(j.ensureCache.prepare(),d){case"dd":P=j._pe_dd_to_geog;break;case"ddm":P=j._pe_ddm_to_geog;break;case"dms":P=j._pe_dms_to_geog}let A=0;h&&(A=j.getPointer(h));let F=v.map(G=>j.ensureString(G)),W=j.ensureInt32(F),z=j.ensureFloat64(new Array(2*g)),q=P(A,g,W,z);return q&&nl(E,g,z),q};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}(l3||(l3={})),function(e){function t(){e.PE_MGRS_STYLE_NEW=j.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=j.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=j.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=j.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=j.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}function r(i,o,s,c,a,d,h){j.ensureCache.prepare();let g=0;i&&(g=j.getPointer(i));let v=cd(s),E=j.ensureFloat64(v),P=s2(o,Qt.PE_MGRS_MAX),A=j.ensureInt32(P),F=j._pe_geog_to_mgrs_extended(g,o,E,c,a,d,A);if(F)for(let W=0;W<o;W++)h[W]=j.UTF8ToString(P[W]);return F}function n(i,o,s,c,a){j.ensureCache.prepare();let d=0;i&&(d=j.getPointer(i));let h=s.map(P=>j.ensureString(P)),g=j.ensureInt32(h),v=j.ensureFloat64(new Array(2*o)),E=j._pe_mgrs_to_geog_extended(d,o,g,c,v);return E&&nl(a,o,v),E}e.init=t,e.geogToMgrsExtended=r,e.mgrsToGeogExtended=n}(l2||(l2={})),function(e){function t(n,i,o,s,c,a,d){j.ensureCache.prepare();let h=0;n&&(h=j.getPointer(n));let g=cd(o),v=j.ensureFloat64(g),E=s2(i,Qt.PE_MGRS_MAX),P=j.ensureInt32(E),A=j._pe_geog_to_usng(h,i,v,s,c,a,P);if(A)for(let F=0;F<i;F++)d[F]=j.UTF8ToString(E[F]);return A}function r(n,i,o,s){j.ensureCache.prepare();let c=0;n&&(c=j.getPointer(n));let a=o.map(v=>j.ensureString(v)),d=j.ensureInt32(a),h=j.ensureFloat64(new Array(2*i)),g=j._pe_usng_to_geog(c,i,d,h);return g&&nl(s,i,h),g}e.geogToUsng=t,e.usngToGeog=r}(u3||(u3={})),function(e){function t(){e.PE_UTM_OPTS_NONE=j.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=j.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=j.PeNotationUtm.prototype.PE_UTM_OPTS_NS}function r(i,o,s,c,a){j.ensureCache.prepare();let d=0;i&&(d=j.getPointer(i));let h=cd(s),g=j.ensureFloat64(h),v=s2(o,Qt.PE_UTM_MAX),E=j.ensureInt32(v),P=j._pe_geog_to_utm(d,o,g,c,E);if(P)for(let A=0;A<o;A++)a[A]=j.UTF8ToString(v[A]);return P}function n(i,o,s,c,a){j.ensureCache.prepare();let d=0;i&&(d=j.getPointer(i));let h=s.map(P=>j.ensureString(P)),g=j.ensureInt32(h),v=j.ensureFloat64(new Array(2*o)),E=j._pe_utm_to_geog(d,o,g,c,v);return E&&nl(a,o,v),E}e.init=t,e.geogToUtm=r,e.utmToGeog=n}(u2||(u2={})),function(e){let t=new Map;function r(){e.PE_PCSINFO_OPTION_NONE=j.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=j.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=j.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=j.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=j.PePCSInfo.prototype.generate(i,o),c||(c=[],t.set(i,c)),c[o]=s),s}e.init=r,e.generate=n}(d2||(d2={})),function(e){function t(){return j.PeVersion.prototype.version_string()}e.versionString=t}(d3||(d3={}));A5e=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return i3},get PeDefs(){return Qt},get PeDouble(){return QD},get PeFactory(){return a2},get PeGCSExtent(){return KD},get PeGTTransformations(){return s3},get PeGTlistExtended(){return c2},get PeGTlistExtendedEntry(){return o3},get PeLineType(){return a3},get PeMath(){return c3},get PeNotationDms(){return l3},get PeNotationMgrs(){return l2},get PeNotationUsng(){return u3},get PeNotationUtm(){return u2},get PePCSInfo(){return d2},get PeVersion(){return d3},_init:eF,get _pe(){return j},isLoaded:JD,isSupported:KQ,load:XD},Symbol.toStringTag,{value:"Module"}))});var Sm,rF=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"})(Sm||(Sm={}))});var l,M,p3=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 il(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||Ps(e)&&Ps(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 ld(e){let t=e?.wkid;return t!=null&&t>=2e3&&iF[t]||null}function R1(e){if(!sF(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 Cm(e){return e?.wkid===4326}function Ps(e){let t=e?.wkid;return t!=null&&t>=2e3&&nF.includes(t)}function h3(e){return e===Sm.GCSMARS2000||e===Sm.GCSMARS2000_SPHERE}function g3(e){return e===Sm.GCSMOON2000}function oF(e){let t=e?.wkid;return t!=null&&t>=2e3&&tK.includes(t)}function sF(e){if(e==null)return!1;let t=e.wkid;return t!=null&&t>=2e3||e.wkt2!=null||e.wkt!=null}var nF,eK,tK,Em,m3,f3,iF,w3,y3,aF,ba=R(()=>{lc();tF();rF();p3();nF=[102100,102113,3857,3785,900913],eK=[104905,104971],tK=[4326,...nF,...eK],Em=[-20037508342788905e-9,20037508342788905e-9],m3=[-20037508342787e-6,20037508342787e-6],f3={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:Em,origin:m3,dx:1e-5},iF={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:Em,origin:m3,dx:1e-5},102100:f3,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:Em,origin:m3,dx:1e-5},3857:f3,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:f3};w3={wkid:4326,wkt:gs(iF[4326].wkTemplate,{Central_Meridian:"0.0"})},y3={wkid:102100,latestWkid:3857},aF={wkid:32662}});function b3(e){return{wkt:`GEOCCS["Spherical geocentric",
11
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wR(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 yR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wR(Object(r),!0).forEach(function(n){XX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wR(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 IE(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)?IE(e,t):void 0}}var bR,iQ,oQ,C1,sQ,aQ,vR,E1,Iv,cQ,_R,xR=R(()=>{gR();bR={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},C1=function(t){return t?.key==="Tab"||t?.keyCode===9},sQ=function(t){return C1(t)&&!t.shiftKey},aQ=function(t){return C1(t)&&t.shiftKey},vR=function(t){return setTimeout(t,0)},E1=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},Iv=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},cQ=[],_R=function(t,r){var n=r?.document||document,i=r?.trapStack||cQ,o=yR({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&&!Av(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=mR(le,o.tabbableOptions),ee=hR(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 od(nt)}),ye=ee.slice().reverse().find(function(nt){return od(nt)}),Fe=!!J.find(function(nt){return Kc(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 od(pr)}):ee.slice(0,ee.indexOf(Et)).reverse().find(function(pr){return od(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||Iv(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(zn){var Pn=zn.firstTabbableNode;return J===Pn});if(nt<0&&(Fe.container===J||Av(J,o.tabbableOptions)&&!od(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=Kc(J)>=0?Cr.lastTabbableNode:Cr.lastDomTabbableNode}else C1(ee)||(Se=Fe.nextTabbableNode(J,!1))}else{var dr=s.tabbableGroups.findIndex(function(zn){var Pn=zn.lastTabbableNode;return J===Pn});if(dr<0&&(Fe.container===J||Av(J,o.tabbableOptions)&&!od(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=Kc(J)>=0?gi.firstTabbableNode:gi.firstDomTabbableNode}else C1(ee)||(Se=Fe.nextTabbableNode(J))}}else Se=h("fallbackFocus");return Se},W=function(le){var J=Iv(le);if(!(d(J,le)>=0)){if(E1(o.clickOutsideDeactivates,le)){c.deactivate({returnFocus:o.returnFocusOnDeactivate});return}E1(o.allowOutsideClick,le)||le.preventDefault()}},z=function(le){var J=Iv(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(Kc(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 Kc(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},q=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&&(C1(le)&&le.preventDefault(),P(ee))},G=function(le){(o.isKeyForward(le)||o.isKeyBackward(le))&&q(le,o.isKeyBackward(le))},Y=function(le){oQ(le)&&E1(o.escapeDeactivates,le)!==!1&&(le.preventDefault(),c.deactivate())},ie=function(le){var J=Iv(le);d(J,le)>=0||E1(o.clickOutsideDeactivates,le)||E1(o.allowOutsideClick,le)||(le.preventDefault(),le.stopImmediatePropagation())},U=function(){if(s.active)return bR.activateTrap(i,c),s.delayInitialFocusTimer=o.delayInitialFocus?vR(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=yR({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(),bR.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(){vR(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 Lv(e,t){let{el:r}=e,n=t?.focusTrapEl||r;if(!n)return;let i={clickOutsideDeactivates:!0,fallbackFocus:n,setReturnFocus:o=>(Xb(o),!1),...t?.focusTrapOptions,document:r.ownerDocument,tabbableOptions:q5,trapStack:Mk};e.focusTrap=_R(n,i)}function T1(e,t){e.focusTrapDisabled||e.focusTrap?.activate(t)}function sd(e,t){e.focusTrap?.deactivate(t)}function kv(e){e.focusTrap?.updateContainerElements(e.el)}var LE=R(()=>{xR();Sn();ar();});function SR(e){return"opened"in e?e.opened:e.open}function el(e){requestAnimationFrame(()=>{e.transitionEl&&lN(e.transitionEl,e.openTransitionProp,()=>{SR(e)?e.onBeforeOpen():e.onBeforeClose()},()=>{SR(e)?e.onOpen():e.onClose()})})}var Nv=R(()=>{Sn();});var Ov,kE=R(()=>{Jc();rv();Dr();Ov=({children:e,...t})=>{let r=t.level?yN(`h${t.level}`):Hc`div`;return cr(t.key,um`<${r} class=${_e(t.class)}>${e}</${r}>`)}});var ER,lQ,CR,TR=R(()=>{Uo();Jc();Rr();Dr();ER={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},lQ={width:12,height:6,strokeWidth:1},CR=({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(ER.arrow)} height=${n??Re} viewBox=${`0 0 ${n} ${n+(c?0:o)}`} width=${n+(c?o:0)} ${At(r)}>${xs`${o>0&&xs`<path class=${_e(ER.arrowStroke)} d=${a??Re} fill=none stroke-width=${o+1} />`||""}<path d=${a??Re} stroke=none />`}</svg>`)}});function Rv(e){return e==="Enter"||e===" "}var P1,M1=R(()=>{P1=["0","1","2","3","4","5","6","7","8","9"]});var NE,qo,PR,MR,AR,uQ,IR,Dv,OE,LR=R(()=>{ar();Jc();Ki();Uo();Dr();ME();LE();Sn();am();Nv();kE();ga();qc();TR();fm();Ss();M1();_n();NE=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():Rv(t.key)&&this.togglePopovers(t))},this.clickHandler=t=>{aN(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)}},qo={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"},PR="auto",MR="aria-controls",AR="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{inline-size:max-content;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}`,IR=new NE,Dv=class Dv extends $t{constructor(){super(...arguments),this.closeButtonEl=Li(),this.guid=`calcite-popover-${ma()}`,this.hasLoaded=!1,this.mutationObserver=Yn("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=PE,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=PR,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 iR(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 Vn(this),this.requestUpdate(),jc(this.el)}async updateFocusTrapElements(){kv(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),Lv(this,{focusTrapEl:this.el,focusTrapOptions:{allowOutsideClick:!0,escapeDeactivates:t=>(t.defaultPrevented||(this.open=!1,t.preventDefault()),!1),initialFocus:this.initialFocusTrapFocus}}),requestAnimationFrame(()=>this.setUpReferenceElement(this.hasLoaded))}async load(){Fn(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!==PE)||t.has("offsetSkidding")&&(this.hasUpdated||this.offsetSkidding!==0)||t.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||t.has("placement")&&(this.hasUpdated||this.placement!==PR))&&this.reposition(!0),t.has("referenceElement")&&this.referenceElementHandler()}loaded(){$n(this),this.referenceElement&&!this.referenceEl&&this.setUpReferenceElement(),this.open&&el(this),this.hasLoaded=!0}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.removeReferences(),TE(this),sd(this)}handleFocusTrapDisabled(t){this.open&&(t?sd(this):T1(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}openHandler(){el(this),this.reposition(!0),this.setExpandedAttr()}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}setFloatingEl(t){this.floatingEl=t,t&&requestAnimationFrame(()=>this.setUpReferenceElement())}setTransitionEl(t){this.transitionEl=t}setFilteredPlacements(){let{el:t,flipPlacements:r}=this;this.filteredFlipPlacements=r?nR(r,t):null}setUpReferenceElement(t=!0){this.removeReferences(),this.referenceEl=this.getReferenceElement(),sR(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(AR,lm(r))}addReferences(){let{referenceEl:t}=this;if(!t)return;let r=this.getId();"setAttribute"in t&&t.setAttribute(MR,r),IR.registerElement(t,this.el),this.setExpandedAttr()}removeReferences(){let{referenceEl:t}=this;t&&("removeAttribute"in t&&(t.removeAttribute(MR),t.removeAttribute(AR)),IR.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(),T1(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),CE(this),sd(this)}storeArrowEl(t){this.arrowEl=t,this.reposition(!0)}renderCloseButton(){let{messages:t,closable:r}=this;return r?cr(qo.closeButtonContainer,xe`<div class=${_e(qo.closeButtonContainer)}><calcite-action appearance=transparent class=${_e(qo.closeButton)} @click=${this.hide} .scale=${this.scale} .text=${t.close} ${At(this.closeButtonEl)}><calcite-icon icon=x .scale=${Jn(this.scale)}></calcite-icon></calcite-action></div>`):null}renderHeader(){let{heading:t,headingLevel:r}=this,n=t?Ov({class:qo.heading,level:r,children:t}):null;return n?cr(qo.header,xe`<div class=${_e(qo.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",CR({floatingLayout:s,ref:this.storeArrowEl}));return this.el.inert=a,this.el.ariaLabel=n,this.el.ariaLive="polite",om(this.el,"id",this.getId()),this.el.role="dialog",xe`<div class=${_e(qo.positionContainer)} ${At(this.setFloatingEl)}><div class=${_e({[qo.container]:!0,[EE.animation]:!0,[EE.animationActive]:c})} ${At(this.setTransitionEl)}>${d}<div class=${_e({[qo.hasHeader]:!!r,[qo.headerContainer]:!0})}>${this.renderHeader()}<div class=${_e(qo.content)}><slot></slot></div>${r?null:this.renderCloseButton()}</div></div></div>`}};Dv.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},Dv.styles=uQ;OE=Dv;Gt("calcite-popover",OE)});var kR=R(()=>{fv();Xu();LR()});function RE(e,t){return(e+t)%t}var NR=R(()=>{});var DE,A1,OR,RR,FE=R(()=>{DE={menu:"menu",defaultTrigger:"default-trigger"},A1={tooltip:"tooltip",trigger:"trigger"},OR={menu:"ellipsis"},RR="data-active"});var dQ,pQ,Fv,$E,DR=R(()=>{ar();Uo();Ki();Dr();NR();Sn();am();M1();ga();FE();_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"],Fv=class Fv extends $t{constructor(){super(...arguments),this.guid=`calcite-action-menu-${ma()}`,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(Rv(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(RR,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 Vn(this),Xb(this.menuButtonEl)}connectedCallback(){super.connectedCallback(),this.connectMenuButtonEl()}load(){Fn(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(){$n(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",lm(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),this.menuButtonEl=null)}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,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=RE(Math.max(i-1,-1),n.length)),r==="ArrowDown"&&(this.activeMenuItemIndex=RE(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=${A1.trigger} @slotchange=${this.setMenuButtonEl}><calcite-action .appearance=${t} class=${_e(DE.defaultTrigger)} .icon=${OR.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(DE.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=${A1.tooltip} @slotchange=${this.updateTooltip}></slot>`}};Fv.properties={activeMenuItemIndex:16,menuButtonEl:16,appearance:3,expanded:7,flipPlacements:0,label:1,open:7,overlayPositioning:3,placement:3,scale:3},Fv.styles=dQ;$E=Fv;Gt("calcite-action-menu",$E)});var FR=R(()=>{fv();kR();DR()});var lr,VE,I1,Zt,UE=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"},VE={close:"close",collapse:"collapse"},I1={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,$v,zE,$R=R(()=>{ar();Jc();Uo();Ki();Dr();Sn();l1();ga();qc();FE();kE();ME();Ss();UE();_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}`,$v=class $v extends $t{constructor(){super(),this.resizeObserver=Yn("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=rR,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 Vn(this),jc(this.containerEl)}async load(){Fn(this),this.isClosed=this.closed}willUpdate(t){t.has("closed")&&this.hasUpdated&&(this.closed?this.close():this.open())}updated(){Zc(this)}loaded(){$n(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=Zn(t)}handleHeaderActionsEndSlotChange(t){this.hasEndActions=Zn(t)}handleHeaderMenuActionsSlotChange(t){this.hasMenuItems=Zn(t)}handleActionBarSlotChange(t){let r=Qb(t).filter(n=>n?.matches("calcite-action-bar"));r.forEach(n=>n.layout="horizontal"),this.hasActionBar=!!r.length}handleHeaderContentSlotChange(t){this.hasHeaderContent=Zn(t)}handleFabSlotChange(t){this.hasFab=Zn(t)}handleFooterActionsSlotChange(t){this.hasFooterActions=Zn(t)}handleFooterEndSlotChange(t){this.hasFooterEndContent=Zn(t)}handleFooterStartSlotChange(t){this.hasFooterStartContent=Zn(t)}handleFooterSlotChange(t){this.hasFooterContent=Zn(t)}contentBottomSlotChangeHandler(t){this.hasContentBottom=Zn(t)}contentTopSlotChangeHandler(t){this.hasContentTop=Zn(t)}setPanelScrollEl(t){this.panelScrollEl=t,this.resizeObserver?.disconnect(),t&&(this.resizeObserver?.observe(t),this.resizeHandler())}handleAlertsSlotChange(t){Qb(t)?.map(r=>{r.nodeName==="CALCITE-ALERT"&&(r.embedded=!0)})}renderHeaderContent(){let{heading:t,headingLevel:r,description:n,hasHeaderContent:i}=this,o=t?Ov({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=[I1.expand,I1.collapse];o==="up"&&g.reverse();let v=s?xe`<calcite-action .ariaExpanded=${!i} .ariaLabel=${a} .icon=${i?g[0]:g[1]} id=${VE.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=${I1.close} id=${VE.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=${I1.menu} .scale=${this.scale} slot=${A1.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 Yc({disabled:t,children:xe`${r?xe`<calcite-scrim .loading=${r}></calcite-scrim>`:null}${i}`})}};$v.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},$v.styles=fQ;zE=$v;Gt("calcite-panel",zE)});var VR=R(()=>{fv();FR();sE();$R()});function zR(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var UR,WR=R(()=>{UR=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{}});var Vv,mQ,L1,BR=R(()=>{WR();Vv={exports:{}};Vv.exports;(function(e,t){(function(r,n){e.exports=n()})(UR,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 q(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&&q(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 zn(f){for(var p=[];f;)p.push(f),f=ye(f);return p}function Pn(f){return!!U.string(f)&&(J.document.querySelector(f),!0)}function Ue(f,p){for(var w in p)f[w]=p[w];return f}function Ed(f,p,w){return f==="parent"?ye(w):f==="self"?p.getRect(w):Se(w,f)}function Ko(f,p,w,_){var C=f;return U.string(C)?C=Ed(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 pl(f){return!f||"x"in f&&"y"in f||((f=Ue({},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 Ea(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 Os(f,p,w){var _=w&&f.options[w];return lo(Ko(_&&_.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=Cd(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(Cd(N).map(function(D){return"".concat(f).concat(D)}),p[N],w,_);return _}function Cd(f){return f.trim().split(/ +/)}var Rs=function(f,p){return Math.sqrt(f*f+p*p)},Om=["webkit","moz"];function es(f,p){f.__set||(f.__set={});var w=function(C){if(Om.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 Ca(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 fl(f){f.page.x=0,f.page.y=0,f.client.x=0,f.client.y=0}function ml(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 Td(f,p){return p=p||{x:0,y:0},pe.isOperaMobile&&ml(f)?(Tr("screen",f,p),p.x+=window.scrollX,p.y+=window.scrollY):Tr("page",f,p),p}function ts(f){return U.number(f.pointerId)?f.pointerId:f.identifier}function Ta(f,p,w){var _=p.length>1?Pd(p):p[0];Td(_,f.page),function(C,T){T=T||{},pe.isOperaMobile&&ml(C)?Tr("screen",C,T):Tr("client",C,T)}(_,f.client),f.timeStamp=w}function hl(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 Pd(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 gl(f){if(!f.length)return null;var p=hl(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 wl(f,p){var w=p+"X",_=p+"Y",C=hl(f),T=C[0][w]-C[1][w],I=C[0][_]-C[1][_];return Rs(T,I)}function yl(f,p){var w=p+"X",_=p+"Y",C=hl(f),T=C[1][w]-C[0][w],I=C[1][_]-C[0][_];return 180*Math.atan2(I,T)/Math.PI}function bl(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 Md(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 Ad=function(f,p){for(var w=0;w<p.length;w++){var _=p[w];f.push(_)}return f},vl=function(f){return Ad([],f)},Ds=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[Ds(f,p)]},rs=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=Ds(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 _l(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 Id(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,Ve,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 Mn=Et(Kr,tt.ownerDocument),Wn=0;Mn[Wn]&&Mn[Wn]===et[Wn];)Wn++;var js=[Mn[Wn-1],Mn[Wn],et[Wn]];if(js[0])for(var mt=js[0].lastChild;mt;){if(mt===js[1]){Oe=st,et=Mn;break}if(mt===js[2])break;mt=mt.previousSibling}}else Ve=tt,(parseInt(G(Ie=je).getComputedStyle(Ie).zIndex,10)||0)>=(parseInt(G(Ve).getComputedStyle(Ve).zIndex,10)||0)&&(Oe=st);else Oe=st}else Oe=st}return Oe}(I);return _.activeDrops[he]||null}function xl(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 rs(_,w,"dropactivate"),C.activate.target=null,C.activate.dropzone=null),w.type==="dragend"&&(C.deactivate=new rs(_,w,"dropdeactivate"),C.deactivate.target=null,C.deactivate.dropzone=null),_.rejected||(_.cur.element!==_.prev.element&&(_.prev.dropzone&&(C.leave=new rs(_,w,"dragleave"),w.dragLeave=C.leave.target=_.prev.element,w.prevDropzone=C.leave.dropzone=_.prev.dropzone),_.cur.dropzone&&(C.enter=new rs(_,w,"dragenter"),w.dragEnter=_.cur.element,w.dropzone=_.cur.dropzone)),w.type==="dragend"&&_.cur.dropzone&&(C.drop=new rs(_,w,"drop"),w.dropzone=_.cur.dropzone,w.relatedTarget=_.cur.element),w.type==="dragmove"&&_.cur.dropzone&&(C.move=new rs(_,w,"dropmove"),w.dropzone=_.cur.dropzone)),C}function Pa(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 Ld(f,p){var w=f.interaction,_=f.iEvent,C=f.event;if(_.type==="dragmove"||_.type==="dragend"){var T=w.dropState;p.dynamicDrop&&(T.activeDrops=_l(p,w.element));var I=_,N=Id(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=xl(w,0,I)}}var kd={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 Ve=!1;if(!(Ie=Ie||Q.getRect(Oe)))return!!Q.options.drop.checker&&Q.options.drop.checker(ae,ge,Ve,Q,Oe,he,be);var et=Q.options.drop.overlap;if(et==="pointer"){var st=Os(he,be,"drag"),je=Td(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;Ve=tt&&Mr}var Lt=he.getRect(be);if(Lt&&et==="center"){var Kr=Lt.left+Lt.width/2,Mn=Lt.top+Lt.height/2;Ve=Kr>=Ie.left&&Kr<=Ie.right&&Mn>=Ie.top&&Mn<=Ie.bottom}return Lt&&U.number(et)&&(Ve=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&&(Ve=Q.options.drop.checker(ae,ge,Ve,Q,Oe,he,be)),Ve}(this,T,I,N,D,B,$)},w.dynamicDrop=function(T){return U.bool(T)?(f.dynamicDrop=T,w):f.dynamicDrop},Ue(p.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),p.methodDict.drop="dropzone",f.dynamicDrop=!1,C.actions.drop=kd.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=_l(p,w.element),C.events=xl(w,0,_),C.events.activate&&(po(C.activeDrops,C.events.activate),p.fire("actions/drop:start",{interaction:w,dragEvent:_}))}},"interactions:action-move":Ld,"interactions:after-action-move":function(f,p){var w=f.interaction,_=f.iEvent;if(w.prepared.name==="drag"){var C=w.dropState;Pa(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;Ld(f,p),Pa(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:_l,getDrop:Id,getDropEvents:xl,fireDropEvents:Pa,filterEventType:function(f){return f.search("drag")===0||f.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Rm=kd;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=wl(C,N),w.box=gl(C),w.scale=1,w.ds=0,w.angle=yl(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=wl(C,N),w.box=gl(C),w.scale=w.distance/p.gesture.startDistance,w.angle=yl(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 ns={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=ns,p.methodDict.gesture="gesturable",_.actions.gesture=ns.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}},Nd=ns;function Od(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 Sl(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:Ue({},T),corrected:Ue({},T),previous:Ue({},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),Sl(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(Ue(ae,$),I){if(Ue($,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),Sl(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=Ue({},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]=Od(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},Rd=ei,Dd={id:"actions",install:function(f){f.usePlugin(Nd),f.usePlugin(Rd),f.usePlugin(Ne),f.usePlugin(Rm)}},Ma=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-Ma)),N=f.setTimeout(function(){C(T+I)},I);return Ma=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=Aa(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 $=El(T);U.window(T)?T.scrollBy(B.x,B.y):T&&(T.scrollLeft+=B.x,T.scrollTop+=B.y);var Q=El(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=Aa($.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 Aa(f,p,w){return(U.string(f)?Ed(f,p,w):f)||G(w)}function El(f){return U.window(f)&&(f=window.document.body),{x:f.scrollLeft,y:f.scrollTop}}var Cl={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)}}},Tl=Cl;function is(f,p){var w=!1;return function(){return w||(z.console.warn(p),w=!0),f.apply(this,arguments)}}function Ia(f,p){return f.name=p.name,f.axis=p.axis,f.edges=p.edges,f}function Fd(f){return U.bool(f)?(this.options.styleCursor=f,this):f===null?(delete this.options.styleCursor,this):this.options.styleCursor}function $d(f){return U.func(f)?(this.options.actionChecker=f,this):f===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Vd={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=is(function(w){return this._backCompatOption("ignoreFrom",w)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),p.prototype.allowFrom=is(function(w){return this._backCompatOption("allowFrom",w)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),p.prototype.actionChecker=$d,p.prototype.styleCursor=Fd}};function Pl(f,p,w,_,C){return p.testIgnoreAllow(p.options[f.name],w,_)&&p.options[f.name].enabled&&Fs(p,w,f,C)?f:null}function Ud(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=Pl(Q,B,$,T,I);if(ae)return{action:ae,interactable:B,element:$}}}return{action:null,interactable:null,element:null}}function Ml(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=Ud(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 Al(f,p,w){var _=p.action,C=p.interactable,T=p.element;_=_||{name:null},f.interactable=C,f.element=T,Ia(f.prepared,_),f.rect=C&&_.name?C.getRect(T):null,Ll(f,w),w.fire("autoStart:prepared",{interaction:f})}function Fs(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 Il(f,p){return U.number(f)?(p.autoStart.maxInteractions=f,this):p.autoStart.maxInteractions}function La(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 Ll(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)}La(f.element,T||"",p)}else p.autoStart.cursorElement&&La(p.autoStart.cursorElement,"",p)}var zd={id:"auto-start/base",before:["actions"],install:function(f){var p=f.interactStatic,w=f.defaults;f.usePlugin(Vd),w.base.actionChecker=null,w.base.styleCursor=!0,Ue(w.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),p.maxInteractions=function(_){return Il(_,f)},f.autoStart={maxInteractions:1/0,withinInteractionLimit:Fs,cursorElement:null}},listeners:{"interactions:down":function(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget;w.interacting()||Al(w,Ml(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()||Al(C,Ml(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||!Fs(T,C.element,C.prepared,_)?C.stop():(C.start(C.prepared,T,C.element),Ll(C,_)))}}(f,p)},"interactions:stop":function(f,p){var w=f.interaction,_=w.interactable;_&&_.options.styleCursor&&La(w.element,"",p)}},maxInteractions:Il,withinInteractionLimit:Fs,validateAction:Pl},ka=zd,Wd={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,Ve){if(!Ve)return!1;var et=Ve.options.drag.startAxis;return Ie==="xy"||et==="xy"||et===Ie}($,he)&&ka.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 Na(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 Bd={id:"auto-start/hold",install:function(f){var p=f.defaults;f.usePlugin(ka),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=Na(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;Na(p)>0&&(p.prepared.name=null)}},getHoldDuration:Na},Gd=Bd,jd={id:"auto-start",install:function(f){f.usePlugin(ka),f.usePlugin(Gd),f.usePlugin(Wd)}},qd=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 Hd(f){var p=f.interaction,w=f.event;p.interactable&&p.interactable.checkAndPreventDefault(w)}var kl={id:"core/interactablePreventDefault",install:function(f){var p=f.Interactable;p.prototype.preventDefault=qd,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)]=Hd,f},{})};function $s(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]=vl(_):p[w]=_}return p}var Oa=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=Vs(),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=Ue({},I.edges),this.edges=Ue({},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=Vs(),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=Ue({},p.pageCoords),p.rect=Ue({},T),p.edges=Ue({},I);for(var N=C?this.states.slice(C):this.states,D=Vs(p.coords,p.rect),B=0;B<N.length;B++){var $,Q=N[B],ae=Q.options,ge=Ue({},p.coords),he=null;($=Q.methods)!=null&&$.set&&this.shouldDo(ae,_,w)&&(p.state=Q,he=Q.methods.set(p),Ea(p.edges,p.rect,{x:p.coords.x-ge.x,y:p.coords.y-ge.y})),D.eventProps.push(he)}Ue(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"&&Ue(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 _=Ue({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=Vs(Ue({},p.result.coords),Ue({},p.result.rect))}},{key:"destroy",value:function(){for(var p in this)this[p]=null}}]),f}();function Vs(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 os(f){var p=f.iEvent,w=f.interaction.modification.result;w&&(p.modifiers=w.eventProps)}var Zd={id:"modifiers/base",before:["actions"],install:function(f){f.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(f){var p=f.interaction;p.modification=new Oa(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":os,"interactions:action-move":os,"interactions:action-end":os,"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)}}},Nl=Zd,Ol={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Ra=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||Ol).deltaSource,ge=Os(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=Ue({},Ie.page),$.client=Ue({},Ie.client),$.rect=Ue({},_.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=Ue({},_.coords.velocity[ae]),$.speed=Rs($.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(Ra.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 Yd=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}),Jd=function(f){return f.interactable="",f.element="",f.prepared="",f.pointerIsDown="",f.pointerWasMoved="",f._proxy="",f}({}),Rl=function(f){return f.start="",f.move="",f.end="",f.stop="",f.interacting="",f}({}),Xd=0,Qd=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=is(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=Xd++,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 Jd)I(N);var D=function($){Object.defineProperty(w._proxy,$,{value:function(){return T[$].apply(T,arguments)}})};for(var B in Rl)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)&&(Ia(this.prepared,p),this.interactable=w,this.element=_,this.rect=w.getRect(_),this.edges=this.prepared.edges?Ue({},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=Rs(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&&Ca(this.coords.prev,this.coords.cur))}},{key:"move",value:function(p){p&&p.event||fl(this.coords.delta),(p=Ue({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=ts(p);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:Ds(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=ts(p),B=this.getPointerIndex(p),$=this.pointers[B];return C=C!==!1&&(C||/(down|start)$/i.test(w.type)),$?$.pointer=p:($=new Yd(D,p,w,null,null),B=this.pointers.length,this.pointers.push($)),Ta(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=_,es(this.downPointer,p),this.interacting()||(Ca(this.coords.start,this.coords.cur),Ca(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 Ra(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"&&(Ea(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 Dl(f){Fl(f.interaction)}function Fl(f){if(!function(w){return!(!w.offset.pending.x&&!w.offset.pending.y)}(f))return!1;var p=f.offset.pending;return Da(f.coords.cur,p),Da(f.coords.delta,p),Ea(f.edges,f.rect,p),p.x=0,p.y=0,!0}function Kd(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 Da(f,p){var w=f.page,_=f.client,C=p.x,T=p.y;w.x+=C,w.y+=T,_.x+=C,_.y+=T}Rl.offsetBy="";var ep={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(f){f.Interaction.prototype.offsetBy=Kd},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&&(Da(p.coords.cur,p.offset.total),p.offset.pending.x=0,p.offset.pending.y=0)}(f.interaction)},"interactions:before-action-start":Dl,"interactions:before-action-move":Dl,"interactions:before-action-end":function(f){var p=f.interaction;if(Fl(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}}},$l=ep,tp=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,_=Us(w);if(!_||!_.enabled)return!1;var C=w.coords.velocity.client,T=Rs(C.x,C.y),I=this.modification||(this.modification=new Oa(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,_=Us(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,$=Us(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:Vl(N=ge,p,_,T),y:Vl(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=Us(w).smoothEndDuration;if(_<C){var T={x:Ul(_,0,this.targetOffset.x,C),y:Ul(_,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"}),Ca(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 Us(f){var p=f.interactable,w=f.prepared;return p&&p.options&&w.name&&p.options[w.name].inertia}var rp={id:"inertia",before:["modifiers","actions"],install:function(f){var p=f.defaults;f.usePlugin($l),f.usePlugin(Nl),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 tp(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":os,"interactions:action-inertiastart":os,"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 Vl(f,p,w,_){var C=1-f;return C*C*p+2*C*f*w+f*f*_}function Ul(f,p,w,_){return-w*(f/=_)*(f-2)+p}var np=rp;function zl(f,p){for(var w=0;w<p.length;w++){var _=p[w];if(f.immediatePropagationStopped)break;_(f)}}var Wl=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=Ue({},p||{})}return c(f,[{key:"fire",value:function(p){var w,_=this.global;(w=this.types[p.type])&&zl(p,w),!p.propagationStopped&&_&&(w=_[p.type])&&zl(p,w)}},{key:"on",value:function(p,w){var _=$i(p,w);for(p in _)this.types[p]=Ad(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}(),ip=function(){function f(p){o(this,f),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=p,es(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 ss(f,p){return f===p||(typeof f=="boolean"?!!p.capture===f&&!p.passive:!!f.capture==!!p.capture&&!!f.passive==!!p.passive)}var op={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 Ve=_[ae],et=Vi(Ve,function(st){return st.selector===$&&st.context===Q});et||(et={selector:$,context:Q,listeners:[]},Ve.push(et)),et.listeners.push({func:ge,options:be})},removeDelegate:function($,Q,ae,ge,he){var be,Oe=mo(he),Ie=_[ae],Ve=!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&&ss(tt.options,Oe)){st.splice(je,1),st.length||(Ie.splice(be,1),N(Q,ae,D),N(Q,ae,B,!0)),Ve=!0;break}}if(Ve)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&&ss(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=Ds(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 Ve=Ie.length-1;Ve>=0;Ve--){var et=Ie[Ve];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&&ss(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 ip($),he=_[$.type],be=Md($)[0],Oe=be;U.element(Oe);){for(var Ie=0;Ie<he.length;Ie++){var Ve=he[Ie],et=Ve.selector,st=Ve.context;if(Fe(Oe,et)&&de(st,be)&&de(st,Oe)){var je=Ve.listeners;ge.currentTarget=Oe;for(var tt=0;tt<je.length;tt++){var Mr=je[tt];ss(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}},Fa={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(f){for(var p=0,w=Fa.methodOrder;p<w.length;p++){var _=w[p],C=Fa[_](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&&!$a(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($a(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 $a(f,p){return f.pointers.some(function(w){return w.id===p})}var sp=Fa,zs=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Bl(f,p){return function(w){var _=p.interactions.list,C=bl(w),T=Md(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:ts(Q),pointerType:C,eventType:w.type,eventTarget:I,curEventTarget:N,scope:p},ge=Gl(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:ts(w),pointerType:C,eventType:w.type,curEventTarget:N,eventTarget:I,scope:p},Ie=Gl(Oe);D.push([Oe.pointer,Oe.eventTarget,Oe.curEventTarget,Ie])}}for(var Ve=0;Ve<D.length;Ve++){var et=D[Ve],st=et[0],je=et[1],tt=et[2];et[3][f](st,w,je,tt)}}}function Gl(f){var p=f.pointerType,w=f.scope,_={interaction:sp.search(f),searchDetails:f};return w.fire("interactions:find",_),_.interaction||w.interactions.new({pointerType:p})}function Va(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 jl={id:"core/interactions",install:function(f){for(var p={},w=0;w<zs.length;w++){var _=zs[w];p[_]=Bl(_,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}(Qd),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(kl)},listeners:{"scope:add-document":function(f){return Va(f,"add")},"scope:remove-document":function(f){return Va(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:Va,doOnInteractions:Bl,methodNames:zs},ap=jl,bi=function(f){return f[f.On=0]="On",f[f.Off=1]="Off",f}(bi||{}),cp=function(){function f(p,w,_,C){o(this,f),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Wl,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(Pn(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))&&$s(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]=vl(N):U.plainObject(N)?(I[T]=Ue(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=Ue({},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(Pn(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];$s(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,Ue(Ue({},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}(),lp=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=Ds(I,function(D){return D===C});I.splice(N,1)}})}return c(f,[{key:"new",value:function(p,w){w=Ue(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}(),up=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(Ol),this.Eventable=Wl,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=Pd,C.getTouchBBox=gl,C.getTouchDistance=wl,C.getTouchAngle=yl,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=is(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 $s(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=is(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 $s(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=Ra,this.Interactable=void 0,this.interactables=new lp(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}(cp)}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(_)&&q(_),J.init(_),pe.init(_),wi.init(_),w.window=_,w.document=_.document,w.usePlugin(ap),w.usePlugin(op),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[ql(D)]=!0,N},{});_<C;_++){var I=this.listenerMaps[_].id;if(I&&(T[I]||T[ql(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?Ue({},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 ql(f){return f&&f.replace(/\/.*$/,"")}var Hl=new up,Pr=Hl.interactStatic,dp=typeof globalThis<"u"?globalThis:window;Hl.init(dp);var pp=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}}),fp={id:"snappers",install:function(f){var p=f.interactStatic;p.snappers=Ue(p.snappers||{},pp),p.createSnapGrid=p.snappers.grid}},mp=fp,hp={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=Ue({},C),p.startRect=Ue({},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&&Ue(_,Q),$!=null&&$.length){var ge=new Oa(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=Ue({},_),I=p.equalDelta?Zl:gp;if(Ue(f.edges,C),I(p,p.xIsPrimaryAxis,_,w),!p.subModification)return null;var N=Ue({},w);Ea(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),Ue(_,D.coords)),D.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Zl(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 gp(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 Yl=yi(hp,"aspectRatio"),Jl=function(){};Jl._defaults={};var Ws=Jl;function zi(f,p,w){return U.func(f)?Ko(f,p.interactable,p.element,[w.x,w.y,p]):Ko(f,p.interactable,p.element)}var Bs={start:function(f){var p=f.rect,w=f.startOffset,_=f.state,C=f.interaction,T=f.pageCoords,I=_.options,N=I.elementRect,D=Ue({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=Ue({},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}},wp=yi(Bs,"restrict"),Xl={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Ql={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Kl(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 as={noInner:Xl,noOuter:Ql,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=Ue({},p),D=zi(I.inner,_,N)||{},B=zi(I.outer,_,N)||{};Kl(D,Xl),Kl(B,Ql),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}},yp=yi(as,"restrictEdges"),bp=Ue({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(f){}},Bs.defaults),vp=yi({start:Bs.start,set:Bs.set,defaults:bp},"restrictRect"),_p={width:-1/0,height:-1/0},xp={width:1/0,height:1/0},Sp=yi({start:function(f){return as.start(f)},set:function(f){var p=f.interaction,w=f.state,_=f.rect,C=f.edges,T=w.options;if(C){var I=pl(zi(T.min,p,f.coords))||_p,N=pl(zi(T.max,p,f.coords))||xp;w.options={endOnly:T.endOnly,inner:Ue({},as.noInner),outer:Ue({},as.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),as.set(f),w.options=T}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Ua={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(Ko(ae.state.options.origin,null,null,[ge])),be=he||Os(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 $=Ko(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=Os(p.interactable,p.element,p.prepared.name),N=Ue({},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 Ve={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=Rs(tt,Mr),Kr=Lt<=je;je===1/0&&Ve.inRange&&Ve.range!==1/0&&(Kr=!1),Ve.target&&!(Kr?Ve.inRange&&je!==1/0?Lt/je<Ve.distance/Ve.range:je===1/0&&Ve.range!==1/0||Lt<Ve.distance:!Ve.inRange&&Lt<Ve.distance)||(Ve.target=st,Ve.distance=Lt,Ve.range=je,Ve.inRange=Kr,Ve.delta.x=tt,Ve.delta.y=Mr)}return Ve.inRange&&(w.x=Ve.target.x,w.y=Ve.target.y),_.closest=Ve,Ve},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Ep=yi(Ua,"snap"),Gs={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"]],Ua.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=Ue({},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=Ua.set(f);return w.options=C,Oe},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Cp=yi(Gs,"snapSize"),za={aspectRatio:Yl,restrictEdges:yp,restrict:wp,restrictRect:vp,restrictSize:Sp,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"]],Gs.start(f)):null},set:Gs.set,defaults:Ue(fo(Gs.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Ep,snapSize:Cp,spring:Ws,avoid:Ws,transform:Ws,rubberband:Ws},Tp={id:"modifiers",install:function(f){var p=f.interactStatic;for(var w in f.usePlugin(Nl),f.usePlugin(mp),p.modifiers=za,za){var _=za[w],C=_._defaults,T=_._methods;C._methods=T,f.defaults.perAction[w]=C}}},Pp=Tp,eu=function(f){d(w,f);var p=E(w);function w(_,C,T,I,N,D){var B;if(o(this,w),es(v(B=p.call(this,N)),T),T!==C&&es(v(B),C),B.timeStamp=D,B.originalEvent=T,B.type=_,B.pointerId=ts(C),B.pointerType=bl(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),cs={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(f){f.pointerEvents=cs,f.defaults.actions.pointerEvents=cs.defaults,Ue(f.actions.phaselessTypes,cs.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&&Wa(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,$=zn(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){Wa(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){Wa(f),vi(f,p)}},PointerEvent:eu,fire:vi,collectEventTargets:tu,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?tu(f,p):N,B=new eu(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=Os(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 tu(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=zn(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 Wa(f){var p=f.interaction,w=f.pointerIndex,_=p.pointers[w].hold;_&&_.timeout&&(clearTimeout(_.timeout),_.timeout=null)}var Mp=Object.freeze({__proto__:null,default:cs});function Ap(f){var p=f.interaction;p.holdIntervalHandle&&(clearInterval(p.holdIntervalHandle),p.holdIntervalHandle=null)}var Ip={id:"pointer-events/holdRepeat",install:function(f){f.usePlugin(cs);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)]=Ap,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))}}})},Lp=Ip,kp={id:"pointer-events/interactableTargets",install:function(f){var p=f.Interactable;p.prototype.pointerEvents=function(_){return Ue(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;Ue(w.events.options,p.pointerEvents.defaults),Ue(w.events.options,_.pointerEvents||{})}}},Np=kp,Op={id:"pointer-events",install:function(f){f.usePlugin(Mp),f.usePlugin(Lp),f.usePlugin(Np)}},Rp=Op,Dp={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=pl(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,Ve,et,st,je){var tt=Ie.interactions.new({pointerType:"reflow"}),Mr={interaction:tt,event:je,pointer:je,eventTarget:et,phase:"reflow"};tt.interactable=Ve,tt.element=et,tt.prevEvent=je,tt.updatePointer(je,je,et,!0),fl(tt.coords.delta),Ia(tt.prepared,st),tt._doPhase(Mr);var Lt=Ie.window,Kr=Lt.Promise,Mn=Kr?new Kr(function(Wn){tt._reflowResolve=Wn}):void 0;return tt._reflowPromise=Mn,tt.start(st,Ve,et),tt._interacting?(tt.move(Mr),tt.end(je)):(tt.stop(),tt._reflowResolve()),tt.removePointer(je,je),Mn}(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))}}},Fp=Dp;if(Pr.use(kl),Pr.use($l),Pr.use(Rp),Pr.use(np),Pr.use(Pp),Pr.use(jd),Pr.use(Dd),Pr.use(Tl),Pr.use(Fp),Pr.default=Pr,i(e)==="object"&&e)try{e.exports=Pr}catch{}return Pr.default=Pr,Pr})})(Vv,Vv.exports);mQ=Vv.exports,L1=zR(mQ)});function GR(e,t,r){return t?`${e}-${t}`:r?`${e}-${r}`:`${e}-m`}var jR=R(()=>{});var tl,Ni,rl,Uv,qR,HR,hQ,WE,ZR,Wv,zv,YR=R(()=>{ar();Jc();BR();Ki();Uo();Dr();Sn();LE();ga();qc();jR();Nv();UE();Ss();_n();tl={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"},rl=25,Uv=25,qR={x:0,y:0},HR={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))}::slotted(*){--calcite-panel-background-color: initial}.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}`,WE=0,ZR="",Wv=class Wv extends $t{constructor(){super(...arguments),this.dragPosition={...qR},this.ignoreOpenChange=!1,this.mutationObserver=Yn("mutation",()=>this.handleMutationObserver()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteDialogOpen",this.openEnd)},this.openTransitionProp="opacity",this.panelEl=Li(),this.resizePosition={...HR},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 Vn(this),this.panelEl.value?.setFocus()??jc(this.el)}async updateFocusTrapElements(){kv(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),Lv(this,{focusTrapOptions:{clickOutsideDeactivates:()=>!this.modal,escapeDeactivates:t=>(!t.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,t.preventDefault()),!1)}}),this.setupInteractions()}async load(){Fn(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(){$n(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),sd(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(),T1(this)}onBeforeClose(){this.calciteDialogBeforeClose.emit()}onClose(){this.calciteDialogClose.emit(),sd(this)}toggleDialog(t){this.ignoreOpenChange||(t?this.openDialog():this.closeDialog())}handleOpenedChange(t){let{transitionEl:r}=this;r&&(r.classList.toggle(tl.openingActive,t),el(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-rl,type:"blockSize"}),c.bottom-=rl,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.y-=Uv,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowDown":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height+rl,type:"blockSize"}),c.bottom+=rl,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.y+=Uv,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowLeft":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width-rl,type:"inlineSize"}),c.right-=rl,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.x-=Uv,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowRight":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width+rl,type:"inlineSize"}),c.right+=rl,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.x+=Uv,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={...qR},this.resizePosition={...HR},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=L1(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:[L1.modifiers.restrictSize({min:{width:a1(c)?parseInt(c):0,height:a1(a)?parseInt(a):0},max:{width:a1(d)?parseInt(d):window.innerWidth,height:a1(h)?parseInt(h):window.innerHeight}}),L1.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:[L1.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}WE--,this.opened=!1,this.updateOverflowHiddenClass()}updateOverflowHiddenClass(){this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()}addOverflowHiddenClass(){WE===0&&(ZR=document.documentElement.style.overflow),WE++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",ZR)}handleMutationObserver(){this.updateFocusTrapElements()}render(){let{assistiveText:t,description:r,heading:n,opened:i}=this;return xe`<div class=${_e({[tl.container]:!0,[tl.containerOpen]:i,[tl.containerEmbedded]:this.embedded})}>${this.modal?xe`<calcite-scrim class=${_e(tl.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>`:null}<div .ariaDescription=${r} .ariaLabel=${n} .ariaModal=${this.modal} class=${_e({[tl.dialog]:!0,[GR("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(tl.assistiveText)}>${t}</div>`):null}<slot name=${Ni.content}><calcite-panel .beforeClose=${this.beforeClose} class=${_e(tl.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>`}};Wv.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},Wv.styles=hQ;zv=Wv;Gt("calcite-dialog",zv)});var JR={};Hs(JR,{Dialog:()=>zv});var XR=R(()=>{sE();VR();YR()});var QR,gQ,Bv,BE,KR=R(()=>{ar();Ki();Dr();Sn();_n();QR={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}`,Bv=class Bv extends $t{constructor(){super(...arguments),this.iconFlipRtl=!1,this.scale="m",this.status="idle"}connectedCallback(){super.connectedCallback(),this.requestedIcon=ha(QR,this.icon,this.status)}willUpdate(t){(t.has("status")&&(this.hasUpdated||this.status!=="idle")||t.has("icon"))&&(this.requestedIcon=ha(QR,this.icon,this.status))}render(){let t=this.el.hidden;return om(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>`}};Bv.properties={icon:[3,{converter:fa}],iconFlipRtl:7,scale:3,status:3},Bv.styles=gQ;BE=Bv;Gt("calcite-input-message",BE)});var eD=R(()=>{Xu();KR()});var wQ,Gv,GE,tD=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}`,Gv=class Gv 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=Bc(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",[i1.rtl]:n==="rtl",reversed:this.reversed})} style=${Bb(r)}></div></div>${this.text?xe`<div class="text">${this.text}</div>`:null}</div>`}};Gv.properties={label:1,reversed:7,text:1,type:3,value:9},Gv.styles=wQ;GE=Gv;Gt("calcite-progress",GE)});var rD=R(()=>{tD()});function Cs(e){return!(!e||isNaN(Number(e)))}function nD(e){return!e||!TQ(e)?"":jv(e,t=>{let r=!1,n=t.split("").filter((i,o)=>i.match(/\./g)&&!r?(r=!0,!0):i.match(/-/g)&&o===0?!0:P1.includes(i)).join("");return Cs(n)?new ad(n).toString():""})}function EQ(e){let t=e.split(".")[1],r=new ad(e).toString(),[n,i]=r.split(".");return t&&i!==t?`${n}.${t}`:r}function jv(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(iD,"")}`}function TQ(e){return P1.some(t=>e.includes(t))}function sD(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"?cD:aD;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).`),k1))):k1}var yQ,bQ,Vt,ad,iD,vQ,_Q,xQ,SQ,oD,k1,aD,cD,eSe,PQ,lD,jE,uD,MQ,qE,Ho,dD=R(()=>{M1();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)});ad=Vt;iD=/^([-0])0+(?=\d)/,vQ=/(?!^\.)\.$/,_Q=/(?!^-)-/g,xQ=/^-\b0\b\.?0*$/,SQ=/0*$/,oD=e=>jv(e,t=>{let r=t.replace(_Q,"").replace(vQ,"").replace(iD,"$1");return Cs(r)?xQ.test(r)?r:EQ(r):t});k1="en",aD=["ar","bg","bs","ca","cs","da","de","el",k1,"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"],cD=["ar","bg","bs","ca","cs","da","de","de-AT","de-CH","el",k1,"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"],eSe=new Map(Object.entries({bg:{am:"\u043F\u0440.\u043E\u0431.",pm:"\u0441\u043B.\u043E\u0431."},bs:{am:"prijepodne",pm:"popodne"},ca:{am:"a.\xA0m.",pm:"p.\xA0m."},cs:{am:"dop.",pm:"odp."},es:{am:"a.\xA0m.",pm:"p.\xA0m."},"es-mx":{am:"a.m.",pm:"p.m."},"es-MX":{am:"a.m.",pm:"p.m."},fi:{am:"ap.",pm:"ip."},he:{am:"\u05DC\u05E4\u05E0\u05D4\u05F4\u05E6",pm:"\u05D0\u05D7\u05D4\u05F4\u05E6"},hu:{am:"de. ",pm:"du."},lt:{am:"prie\u0161piet",pm:"popiet"},lv:{am:"priek\u0161pusdien\u0101",pm:"p\u0113cpusdien\u0101"},mk:{am:"\u043F\u0440\u0435\u0442\u043F\u043B.",pm:"\u043F\u043E\u043F\u043B."},no:{am:"a.m.",pm:"p.m."},nl:{am:"a.m.",pm:"p.m."},"pt-pt":{am:"da manh\xE3",pm:"da tarde"},"pt-PT":{am:"da manh\xE3",pm:"da tarde"},ro:{am:"a.m.",pm:"p.m."},sl:{am:"dop.",pm:"pop."},sv:{am:"fm",pm:"em"},th:{am:"\u0E01\u0E48\u0E2D\u0E19\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07",pm:"\u0E2B\u0E25\u0E31\u0E07\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07"},tr:{am:"\xD6\xD6",pm:"\xD6S"},uk:{am:"\u0434\u043F",pm:"\u043F\u043F"},vi:{am:"SA",pm:"CH"}})),PQ=["arab","arabext","latn"];[...new Set([...aD,...cD])];lD=e=>PQ.includes(e),jE=new Intl.NumberFormat().resolvedOptions().numberingSystem,uD=jE==="arab"||!lD(jE)?"latn":jE,MQ=e=>lD(e)?e:uD;qE=class{constructor(){this.delocalize=t=>this._numberFormatOptions?jv(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?jv(t,r=>Cs(r.trim())?new ad(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===k1&&t.numberingSystem===uD&&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=t.locale==="bs"||t.locale==="mk"?",":n.find(i=>i.type==="decimal").value,this._minusSign=n.find(i=>i.type==="minusSign").value,this._getDigitIndex=i=>r.get(i)}},Ho=new qE});var IQ,pD,fD=R(()=>{Rr();Dr();IQ={validationContainer:"validation-container"},pD=({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 vm(e,t,r,n){let i=r.toLowerCase(),o=e[r];n&&o!=null?t.setAttribute(i,`${o}`):t.removeAttribute(i)}function mD(e,t,r){r.type=e==="textarea"?"text":e;let n=LQ.includes(e),i=t;vm(i,r,"min",n),vm(i,r,"max",n),vm(i,r,"step",n);let o=NQ.includes(e),s=t;vm(s,r,"minLength",o),vm(s,r,"maxLength",o);let c=kQ.includes(e);vm(s,r,"pattern",c)}var LQ,kQ,NQ,hD=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 En,HE,gD,OQ,RQ,Hv,qv,wD=R(()=>{ar();O5();Jc();Ki();Uo();rv();Dr();Bu();Sn();iE();l1();M1();cv();ga();dD();fm();fD();Ss();hD();_n();En={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",hasSuffix:"has-suffix",hasPrefix:"has-prefix"},HE={validationMessage:"inputValidationMessage"},gD={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]) input[type=file],:host([scale=s]) textarea{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]) .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,:host([scale=m]) input[type=file]{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]) .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,:host([scale=l]) input[type=file]{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]) .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}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}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))}.has-prefix input{border-start-start-radius:0;border-end-start-radius:0}.has-suffix input,.element-wrapper:has(.clear-button) input,:host([number-button-type=vertical][type=number]) input,:host([number-button-type=horizontal]) .has-suffix .suffix,:host([number-button-type=vertical][type=number]) .has-suffix .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}.has-prefix .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))}.has-suffix .suffix,:host([number-button-type=vertical][type=number][read-only]) .has-suffix .suffix,:host([clearable]) .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([clearable]) .has-suffix .clear-button{border-end-end-radius:0;border-start-end-radius:0}: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));block-size:initial}: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}`,Hv=class Hv extends $t{constructor(){super(),this.actionWrapperEl=Li(),this.attributeWatch=Mb(["autofocus","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 Vn(this),jc(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),pm(this),EN(this),this.el.addEventListener(iv,this.onHiddenFormInputInput)}async load(){Fn(this),this.childElType=this.type==="textarea"?"textarea":"input",this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=ha(gD,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:Cs(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=ha(gD,this.icon,this.type))}updated(){Zc(this)}loaded(){$n(this)}disconnectedCallback(){super.disconnectedCallback(),av(this),CN(this),this.el.removeEventListener(iv,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"?Cs(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"&&nv(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 ad(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()}inputInputHandler(t){this.disabled||this.readOnly||(this.type==="file"&&(this.files=this.childEl.files),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;Ho.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let n=Ho.delocalize(r);t.inputType==="insertFromPaste"?(Cs(n)||t.preventDefault(),this.setValue({nativeEvent:t,origin:"user",value:nD(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=[...P1,"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}Ho.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(t.key===Ho.decimal&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(Ho.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(!sN(t))return;t.preventDefault();let r=t.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(r,t)}syncHiddenFormInput(t){mD(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"?Cs(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"){Ho.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:oD(o),d=o&&!a?Cs(this.previousValue)?this.previousValue:"":a,h=Ho.localize(d);n!=="connected"&&!c&&(h=sD(h,d,Ho)),this.displayedValue=c&&s?`${h}${Ho.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"?Ho.localize(this.previousValue):this.previousValue):t&&this.emitChangeIfUserModified())}inputKeyUpHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}warnAboutInvalidNumberValue(t){this.type==="number"&&t&&!Cs(t)&&console.warn(`The specified value "${t}" cannot be parsed, or is out of range.`)}render(){let t=Bc(this.el),r=xe`<div class=${_e(En.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`,n=xe`<button .ariaLabel=${this.messages.clear} class=${_e(En.clearButton)} .disabled=${this.disabled||this.readOnly} @click=${this.clearInputValue} tabindex=-1 type=button><calcite-icon icon=x .scale=${Jn(this.scale)}></calcite-icon></button>`,i=xe`<calcite-icon class=${_e(En.inputIcon)} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${Jn(this.scale)}></calcite-icon>`,o=this.numberButtonType==="horizontal",s=xe`<button aria-hidden=true class=${_e({[En.numberButtonItem]:!0,[En.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=${Jn(this.scale)}></calcite-icon></button>`,c=xe`<button aria-hidden=true class=${_e({[En.numberButtonItem]:!0,[En.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=${Jn(this.scale)}></calcite-icon></button>`,a=xe`<div class=${_e(En.numberButtonWrapper)}>${s}${c}</div>`,d=xe`<div class=${_e(En.prefix)}>${this.prefixText}</div>`,h=xe`<div class=${_e(En.suffix)}>${this.suffixText}</div>`,g=this.el.autofocus,v=this.el.enterKeyHint,E=this.el.inputMode,P=this.type==="number"?cr("localized-input",xe`<input accept=${this.accept??Re} aria-errormessage=${HE.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${m1(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=${Wb(this.displayedValue??"")} ${At(this.setChildNumberElRef)}>`):null,A=this.childElType==="input"?Hc`input`:Hc`textarea`,F=this.type!=="number"?um`<${A} accept=${this.accept??Re} aria-errormessage=${HE.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${m1(this)} autocomplete=${this.autocomplete??Re} .autofocus=${g} class=${_e({[En.editingEnabled]:this.editingEnabled,[En.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} @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=${Wb(this.value??"")} ${At(this.setChildElRef)}></${A}>`:null;return Yc({disabled:this.disabled,children:xe`<div class=${_e({[En.inputWrapper]:!0,[i1.rtl]:t==="rtl",[En.hasSuffix]:this.suffixText,[En.hasPrefix]:this.prefixText})} ${At(this.inputWrapperEl)}>${this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?c:null}${this.prefixText?d:null}<div class=${_e(En.wrapper)}>${P}${F}${this.isClearable?n:null}${this.requestedIcon?i:null}${this.loading?r:null}</div><div class=${_e(En.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}${PN({component:this})}</div>${this.validationMessage&&this.status==="invalid"?pD({icon:this.validationIcon,id:HE.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};Hv.properties={displayedValue:16,slottedActionElDisabledInternally:16,accept:1,alignment:3,autocomplete:0,clearable:7,disabled:7,editingEnabled:7,files:0,form:3,groupSeparator:7,icon:[3,{converter:fa}],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:fa}],validationMessage:1,validity:0,value:1},Hv.styles=RQ;qv=Hv;Gt("calcite-input",qv)});var yD={};Hs(yD,{Input:()=>qv});var bD=R(()=>{eD();rD();Xu();wD()});var DQ,FQ,Yv,Zv,vD=R(()=>{ar();Ki();Dr();cv();_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}`,Yv=class Yv 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(f1))}willUpdate(t){t.has("for")&&RN(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(d1))}labelClickHandler(t){window.getSelection()?.type!=="Range"&&this.calciteInternalLabelClick.emit({sourceEvent:t})}render(){return xe`<div class=${_e(DQ.container)}><slot></slot></div>`}};Yv.properties={alignment:3,for:3,layout:3,scale:3},Yv.styles=FQ;Zv=Yv;Gt("calcite-label",Zv)});var _D={};Hs(_D,{Label:()=>Zv});var xD=R(()=>{vD()});var ZE,SD=R(()=>{ZE={brand:"lightbulb",danger:"exclamationMarkTriangle",info:"information",success:"checkCircle",warning:"exclamationMarkTriangle"}});var Jv,N1,$Q,Qv,Xv,ED=R(()=>{ar();Ki();Uo();Dr();Sn();ga();SD();Nv();fm();Ss();_n();Jv={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},N1={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%;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;background-color:var(--calcite-notice-background-color, var(--calcite-color-foreground-1))}.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-notice-close-text-color-hover, 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);margin-inline-end:var(--calcite-notice-spacing-token-small);color:var(--calcite-notice-content-text-color, var(--calcite-color-text-2))}.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;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;color:var(--calcite-notice-close-text-color, var(--calcite-color-text-3))}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-notice-close-background-color-focus, var(--calcite-color-foreground-2));color:var(--calcite-notice-close-text-color-hover, var(--calcite-color-text-1))}.notice-close:active{background-color:var(--calcite-notice-close-background-color-press, 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}`,Qv=class Qv 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 Vn(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(){Fn(this),this.requestedIcon=ha(ZE,this.icon,this.kind),this.open&&el(this)}willUpdate(t){t.has("open")&&(this.hasUpdated||this.open!==!1)&&el(this),(t.has("icon")||t.has("kind")&&(this.hasUpdated||this.kind!=="brand"))&&(this.requestedIcon=ha(ZE,this.icon,this.kind))}loaded(){$n(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=Zn(t)}render(){let t=xe`<button .ariaLabel=${this.messages.close} class=${_e(N1.close)} @click=${this.close} ${At(this.closeButton)}><calcite-icon icon=x .scale=${Jn(this.scale)}></calcite-icon></button>`;return xe`<div class=${_e(N1.container)} ${At(this.setTransitionEl)}>${this.requestedIcon?xe`<div class=${_e(N1.icon)}><calcite-icon .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${Jn(this.scale)}></calcite-icon></div>`:null}<div class=${_e(N1.content)}><slot name=${Jv.title}></slot><slot name=${Jv.message}></slot><slot name=${Jv.link}></slot></div><div class=${_e(N1.actionsEnd)} .hidden=${!this.hasActionEnd}><slot name=${Jv.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot></div>${this.closable?t:null}</div>`}};Qv.properties={hasActionEnd:16,closable:7,icon:[3,{converter:fa}],iconFlipRtl:7,kind:3,messageOverrides:0,open:7,scale:3,width:3},Qv.styles=$Q;Xv=Qv;Gt("calcite-notice",Xv)});var CD={};Hs(CD,{Notice:()=>Xv});var TD=R(()=>{Xu();ED()});var YE,JE,VQ,Oi,XE,PD=R(()=>{gt();B4();yt();rt();it();Hr();ft();Wk();$5();yb();Bk();jk();Hk();V4();YE="esri-identity-modal",JE={base:YE,info:`${YE}__info`,notice:`${YE}__notice`},VQ="ArcGIS Online",Oi=class extends zk{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 Ok({button:()=>Promise.resolve().then(()=>(zN(),UN)),dialog:()=>Promise.resolve().then(()=>(XR(),JR)),input:()=>Promise.resolve().then(()=>(bD(),yD)),label:()=>Promise.resolve().then(()=>(xD(),_D)),notice:()=>Promise.resolve().then(()=>(TD(),CD))})}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(JE.base,qk())},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:JE.info},F4(i?d:a,{server:o&&/\.arcgis\.com/i.test(o)?VQ:o,resource:`(${s||h})`})),c?Ii("calcite-notice",{class:JE.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 oL(()=>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(),B5("esri/t9n/common")],Oi.prototype,"commonMessages",void 0),O([V()],Oi.prototype,"error",void 0),O([V(),B5("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);XE=Oi});var QE,_m,MD=R(()=>{QE="esriJSAPIOAuth",_m=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(QE,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(QE,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(QE);if(r)try{t=JSON.parse(r)}catch(n){console.warn(n)}}return t}};_m.prototype.declaredClass="esri.identity.OAuthCredential"});var KE,Cn,e3,AD=R(()=>{gt();Nr();yt();rt();it();Hr();ft();Cn=KE=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 KE.fromJSON(this.toJSON())}};O([V({json:{write:!0}})],Cn.prototype,"appId",void 0),O([V({json:{write:!0}})],Cn.prototype,"authNamespace",void 0),O([V({json:{write:!0}})],Cn.prototype,"expiration",void 0),O([V({json:{write:!0}})],Cn.prototype,"flowType",void 0),O([V({json:{write:!0}})],Cn.prototype,"forceLogin",void 0),O([V({json:{write:!0}})],Cn.prototype,"forceUserId",void 0),O([V({json:{write:!0}})],Cn.prototype,"locale",void 0),O([V({json:{write:!0}})],Cn.prototype,"minTimeUntilExpiration",void 0),O([V({json:{write:!0}})],Cn.prototype,"popup",void 0),O([V({json:{write:!0}})],Cn.prototype,"popupCallbackUrl",void 0),O([V({json:{write:!0}})],Cn.prototype,"popupWindowFeatures",void 0),O([V({json:{write:!0}})],Cn.prototype,"portalUrl",void 0),O([V({json:{write:!0}})],Cn.prototype,"preserveUrlHash",void 0),O([V({json:{write:!0}})],Cn.prototype,"userId",void 0),Cn=KE=O([Le("esri.identity.OAuthInfo")],Cn);e3=Cn});var Ri,Kv,ID=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);Kv=Ri});var e2,LD,t3,t2,r2,O1,sr,kD=R(()=>{gt();Sc();Qy();ib();On();Ky();Eg();mr();hs();Ro();Oc();yt();rt();it();ft();PD();MD();AD();ID();By();e2={},LD=e=>{let t=new Dn(e.owningSystemUrl).host,r=new Dn(e.server).host,n=/.+\.arcgis\.com$/i;return n.test(t)&&n.test(r)},t3=(e,t)=>!!(LD(e)&&t&&t.some(r=>r.test(e.server))),t2=null,r2=null;try{t2=window.localStorage,r2=window.sessionStorage}catch{}O1=class extends Fo{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=Ic(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 Kv,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 Tw({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 Kv(s))}),o.length&&this.registerServers(o)}if(n){let o=[];n.forEach(s=>{s.appId&&o.push(s.declaredClass?s:new e3(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"))}),sa(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 Kv,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||Hn(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 Dn(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 Dn(h.toLowerCase()),t.webTierAuth&&n?.serverUrl&&!E&&o.scheme==="http"&&(Hn(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 e2[z]||(e2[z]={}),r&&(e2[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(Lc(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 XE({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 XE({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=Pc(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=Lc(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=Lc(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=Nu(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&&!Hn(t.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(t.tokenServiceUrl)&&String(t.currentVersion)==="10.1"&&!Hn(t.tokenServiceUrl,this._appOrigin)}_getOrigin(t){let r=new Dn(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=M4(t),r=M4(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),Ic(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 Dn(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=Hn(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&&LD(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 Dn(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?t2:r2,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?t2:r2,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(Lc(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))||Hn(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:")&&jf(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=Pc(window,"message",q=>{q.source===window.parent&&q.data&&(q.data.type==="arcgis:auth:credential"?(z.remove(),q.data.credential.expires<Date.now()?n(new Ge("identity-manager:credential-request-failed","Parent application's token has expired.")):r(new sr(q.data.credential))):q.data.type==="arcgis:auth:error"&&(z.remove(),q.data.error.name==="tokenExpiredError"?n(new Ge("identity-manager:credential-request-failed","Parent application's token has expired.")):n(Ge.fromJSON(q.data.error))))});Ti(t.options_?.signal,()=>{z.remove()})}else if(A){let z=A._oAuthCred;if(!z){let q=new _m(A,t2),G=new _m(A,r2);q.isValid()&&G.isValid()?q.expires>G.expires?(z=q,G.destroy()):(z=G,q.destroy()):z=q.isValid()?q: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 q=A.appId!==z.appId&&this._doPortalSignIn(t.resUrl_);q||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=>q?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 q=this._oAuthLocationParams;this._oAuthLocationParams=null,t._pendingDfd=this._processOAuthResponseParams(q,A,E).then(G=>{r(G)}).catch(n)}else{let q=()=>{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=>{Hn(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)):q()}).catch(q):q()}}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(t3(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 e3({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:kc(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||!(Hn(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+"?"+Nu(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=Pc(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 kc(t.popupCallbackUrl);if(r){let i=Ic(n);return i.query&&["code","error","error_description","message_code","persist","state"].forEach(o=>{delete i.query[o]}),qf(i.path,i.query)}return n}};O1.prototype.declaredClass="esri.identity.IdentityManagerBase";sr=class extends Fo.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&&t3(t,e._legacyFed),o=t.webTierAuth,s=o&&e.normalizeWebTierAuth,c=e2[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))&&(t3(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=Tw({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 OD={};Hs(OD,{default:()=>ND});var n2,ND,RD=R(()=>{Qy();kD();n2=class extends O1{};n2.prototype.declaredClass="esri.identity.IdentityManager";ND=new n2;qA(ND)});async function wr(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=Lc(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:xm,getHeader:xm,httpStatus:200,requestOptions:i.requestOptions,url:i.url}),s=L4(e,oo.internalInterceptors);if(s){let v=await FD(s,i);if(v!=null)return o(v)}let c=L4(e);if(c){let v=await FD(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 Ts("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 Ts("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),i);if(r||n)throw Ts("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),i)}if(await GQ(),i2)return i2.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 DD(e){let t=li(e);return!t||t.endsWith(".arcgis.com")||wr._corsServers.includes(t)||qy(t)}function Ts(e,t,r,n){let i="Error",o={url:r.url,requestOptions:r.requestOptions,getAllHeaders:xm,getHeader:xm,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=o2 in t?t[o2]:t}return Cg(t)?bs():new Ge(e,i,o)}async function GQ(){me("host-webworker")&&!i2&&(i2=await Promise.resolve().then(()=>(nI(),rI)))}async function r3(){Jr||await Promise.resolve().then(()=>(RD(),OD))}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(UD&&"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&&HA(t)&&(r.query||(r.query={}),r.query.token=Mt.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!zD(t)&&!sa(n)){let c;r.authMode==="immediate"?(await r3(),c=await Jr.getCredential(t,{signal:n}),e.credential=c):r.authMode==="no-prompt"?(await r3(),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 zD(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=Nu(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||!!jf(t);if(F){let W=UA(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?Ts("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params):Ts("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params);if(F)throw Ts("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=qf(t,v):(n.body=Nu(v),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=qf(t,v),F&&(e.useProxy=!0,t=`${A}?${t}`),v.token&&UD&&n.body instanceof FormData&&!Wy(t)&&n.body.set("token",v.token),r.hasOwnProperty("withCredentials")?e.withCredentials=r.withCredentials:Hn(t,jy())||(qy(t)||Jr&&Jr.findServerInfo(t)?.webTierAuth)&&(e.withCredentials=!0),e.withCredentials&&(n.credentials="include",KA(t)&&await eI(c?qf(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&&!DD(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=$D(d,"application/xml");break;case"document":d=$D(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 VD(URL.createObjectURL(d),e,!0))}}else{d=await a.text();try{d=JSON.parse(d)}catch{}}}else d=await VD(t,e)}catch(v){if(v.name==="AbortError")throw g?XA():bs("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||DD(t))throw v;e.redoRequest=!0,BA({proxyUrl:oo.proxyUrl,urlPrefix:li(t)??""})}finally{h&&clearTimeout(h)}return[a,d]}async function FD(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=Ts("request:interceptor",i,t)}if((n instanceof Error||n instanceof Ge)&&(r=Ts("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 $D(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=Ts("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)&&QA(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):xm,getHeader:t?o=>t.headers.get(o):xm,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[o2]=r,i.details=r.messages)),!i&&!t.ok)throw i=new Error(`Unable to load ${t.url} status: ${t.status}`),i[o2]=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)&&!zD(e.params.url)&&(o!==403||(!s||!zQ.has(s))&&(c==null||c===2&&e.credentialToken))){await r3();try{let d=await Jr.getCredential(e.params.url,{error:Ts("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 VD(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,JA(i,e,r,n)}var i2,oo,UD,UQ,zQ,WQ,xm,o2,ib=R(()=>{Sc();Qy();On();rt();mr();Ro();Oc();By();ZA();tI();oo=Mt.request,UD="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],xm=()=>null,o2=Symbol();wr._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],wr._beforeFetch=void 0,wr._afterFetch=void 0});function Xf(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 k4(Mt.assetsPath,e)}var ob=R(()=>{Sc();ib();On();it();Oc()});function WD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var BD=R(()=>{});var GD=hT(()=>{});var jD=hT(()=>{});var ZD={};Hs(ZD,{p:()=>QQ});function JQ(){return qD||(qD=1,e=HD,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=GD(),z=jD();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 q,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||Pn(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(){es(de)}function nt(){es(Se)}function Et(){es(ye)}function Cr(m){Se.unshift(m)}var dr=0,pr=null;function gi(m){dr++}function zn(m){if(--dr==0&&pr){var k=pr;pr=null,k()}}function Pn(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 Ue,Ed="data:application/octet-stream;base64,",Ko=m=>m.startsWith(Ed),lo=m=>m.startsWith("file://");function pl(){var m="pe-wasm.wasm";return Ko(m)?m:F(m)}function Ea(m){if(c)return c(m);throw"both async and sync fetching of the wasm failed"}function Os(m){return s(m).then(k=>new Uint8Array(k),()=>Ea(m))}function $i(m,k,Z){return Os(m).then(se=>WebAssembly.instantiate(se,k)).then(Z,se=>{ie(`failed to asynchronously prepare wasm: ${se}`),Pn(se)})}function Cd(m,k,Z,se){return typeof WebAssembly.instantiateStreaming!="function"||Ko(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 Rs(){return{a:Rm}}function Om(){var m=Rs();function k(se,ue){return H=se.exports,G=H.t,pe(),Cr(H.u),zn(),H}function Z(se){k(se.instance)}return gi(),Ue??(Ue=pl()),Cd(q,Ue,m,Z).catch(o),{}}var es=m=>{for(;m.length>0;)m.shift()(a)};function Ca(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":Pn("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:Pn(`invalid type for getValue: ${k}`)}}var fl=typeof TextDecoder<"u"?new TextDecoder:void 0,ml=(m,k=0,Z=NaN)=>{for(var se=k+Z,ue=k;m[ue]&&!(ue>=se);)++ue;if(ue-k>16&&m.buffer&&fl)return fl.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 In=ze-65536;Pe+=String.fromCharCode(55296|In>>10,56320|1023&In)}}else Pe+=String.fromCharCode((31&ze)<<6|De)}else Pe+=String.fromCharCode(ze)}return Pe},Tr=(m,k)=>m?ml(fe,m,k):"";function Td(m,k,Z){return 0}var ts=(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},Ta=(m,k,Z)=>ts(m,fe,k,Z);function hl(m,k,Z){return 0}function Pd(m,k,Z,se){}var gl=m=>m%4==0&&(m%100!=0||m%400==0),wl=[0,31,60,91,121,152,182,213,244,274,305,335],yl=[0,31,59,90,120,151,181,212,243,273,304,334],bl=m=>(gl(m.getFullYear())?wl:yl)[m.getMonth()]+m.getDate()-1,Md=(m,k)=>k+2097152>>>0<4194305-!!m?(m>>>0)+4294967296*k:NaN;function uo(m,k,Z){var se=Md(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|bl(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(),In=0|(De!=lt&&ue.getTimezoneOffset()==Math.min(lt,De));Ee[Z+32>>2]=In}var Ad=()=>2147483648,vl=(m,k)=>Math.ceil(m/k)*k,Ds=m=>{var k=(m-G.buffer.byteLength+65535)/65536|0;try{return G.grow(k),pe(),1}catch{}},Vi={},rs=()=>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",_:rs()};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},_l=(m,k)=>{for(var Z=0;Z<m.length;++Z)U[k++]=m.charCodeAt(Z);U[k]=0};function Id(m,k,Z,se,ue){return 70}var xl=[null,[],[]],Pa=(m,k)=>{var Z=xl[m];k===0||k===10?((m===1?Y:ie)(ml(Z)),Z.length=0):Z.push(k)},Ld=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 kd(m,k,Z){var se=Ld(m)+1,ue=new Array(se);return ts(m,ue,0,ue.length),ue}var Rm={c:Td,q:(m,k,Z)=>{},h:hl,d:Pd,o:m=>{},n:(m,k)=>{},p:(m,k,Z)=>{},l:()=>{Pn("")},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(),In=Math.max(De,lt);Ne[m>>2]=60*In,Ee[k>>2]=+(De!=lt);var K1=r0=>{var q2=r0>=0?"-":"+",n0=Math.abs(r0);return`UTC${q2}${String(Math.floor(n0/60)).padStart(2,"0")}${String(n0%60).padStart(2,"0")}`},e0=K1(De),t0=K1(lt);lt<De?(Ta(e0,Z,17),Ta(t0,se,17)):(Ta(e0,se,17),Ta(t0,Z,17))},i:()=>Date.now(),m:m=>{var k=fe.length;m>>>=0;var Z=Ad();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,vl(Math.max(m,ue),65536));if(Ds(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,_l(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:Id,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++)Pa(m,fe[ze+lt]);ue+=De}return Ne[se>>2]=ue,0}},H=Om();a._webidl_free=m=>(a._webidl_free=H.v)(m),a._webidl_malloc=m=>(a._webidl_malloc=H.w)(m);var ns,Nd=a._emscripten_bind_PeObject_getCode_0=m=>(Nd=a._emscripten_bind_PeObject_getCode_0=H.x)(m),Od=a._emscripten_bind_PeObject_getName_1=(m,k)=>(Od=a._emscripten_bind_PeObject_getName_1=H.y)(m,k),Sl=a._emscripten_bind_PeObject_getType_0=m=>(Sl=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),Rd=a._emscripten_bind_PeCoordsys_getType_0=m=>(Rd=a._emscripten_bind_PeCoordsys_getType_0=H.D)(m),Dd=a._emscripten_bind_PeUnit_getUnitFactor_0=m=>(Dd=a._emscripten_bind_PeUnit_getUnitFactor_0=H.E)(m),Ma=a._emscripten_bind_PeUnit_getCode_0=m=>(Ma=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),Aa=a._emscripten_bind_VoidPtr___destroy___0=m=>(Aa=a._emscripten_bind_VoidPtr___destroy___0=H.I)(m),El=a._emscripten_bind_PeAngunit_getCode_0=m=>(El=a._emscripten_bind_PeAngunit_getCode_0=H.J)(m),Cl=a._emscripten_bind_PeAngunit_getName_1=(m,k)=>(Cl=a._emscripten_bind_PeAngunit_getName_1=H.K)(m,k),Tl=a._emscripten_bind_PeAngunit_getType_0=m=>(Tl=a._emscripten_bind_PeAngunit_getType_0=H.L)(m),is=a._emscripten_bind_PeAngunit_getUnitFactor_0=m=>(is=a._emscripten_bind_PeAngunit_getUnitFactor_0=H.M)(m),Ia=a._emscripten_bind_PeDatum_getSpheroid_0=m=>(Ia=a._emscripten_bind_PeDatum_getSpheroid_0=H.N)(m),Fd=a._emscripten_bind_PeDatum_getCode_0=m=>(Fd=a._emscripten_bind_PeDatum_getCode_0=H.O)(m),$d=a._emscripten_bind_PeDatum_getName_1=(m,k)=>($d=a._emscripten_bind_PeDatum_getName_1=H.P)(m,k),Vd=a._emscripten_bind_PeDatum_getType_0=m=>(Vd=a._emscripten_bind_PeDatum_getType_0=H.Q)(m),Pl=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=m=>(Pl=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=H.R)(m),Ud=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=m=>(Ud=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=H.S)(m),Ml=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=m=>(Ml=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=H.T)(m),Al=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=m=>(Al=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=H.U)(m),Fs=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=m=>(Fs=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=H.V)(m),Il=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=m=>(Il=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=H.W)(m),La=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=m=>(La=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=H.X)(m),Ll=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=m=>(Ll=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=H.Y)(m),zd=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=m=>(zd=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=H.Z)(m),ka=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=m=>(ka=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=H._)(m),Wd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=m=>(Wd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=H.$)(m),Na=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=m=>(Na=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=H.aa)(m),Bd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=m=>(Bd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=H.ba)(m),Gd=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=m=>(Gd=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=H.ca)(m),jd=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=m=>(jd=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=H.da)(m),qd=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=m=>(qd=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=H.ea)(m),Hd=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=m=>(Hd=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=H.fa)(m),kl=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=m=>(kl=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=H.ga)(m),$s=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=m=>($s=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),Oa=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=m=>(Oa=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=H.ja)(m),Vs=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=m=>(Vs=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),os=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=m=>(os=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=H.ma)(m),Zd=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=m=>(Zd=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=H.na)(m),Nl=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=m=>(Nl=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=H.oa)(m),Ol=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=m=>(Ol=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=H.pa)(m),Ra=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=m=>(Ra=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=H.qa)(m),Yd=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=m=>(Yd=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=H.ra)(m),Jd=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=m=>(Jd=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=H.sa)(m),Rl=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=m=>(Rl=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=H.ta)(m),Xd=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=m=>(Xd=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=H.ua)(m),Qd=a._emscripten_bind_PeDouble_PeDouble_1=m=>(Qd=a._emscripten_bind_PeDouble_PeDouble_1=H.va)(m),Dl=a._emscripten_bind_PeDouble_get_val_0=m=>(Dl=a._emscripten_bind_PeDouble_get_val_0=H.wa)(m),Fl=a._emscripten_bind_PeDouble_set_val_1=(m,k)=>(Fl=a._emscripten_bind_PeDouble_set_val_1=H.xa)(m,k),Kd=a._emscripten_bind_PeDouble___destroy___0=m=>(Kd=a._emscripten_bind_PeDouble___destroy___0=H.ya)(m),Da=a._emscripten_bind_PeFactory_initialize_1=m=>(Da=a._emscripten_bind_PeFactory_initialize_1=H.za)(m),ep=a._emscripten_bind_PeFactory_factoryByType_2=(m,k)=>(ep=a._emscripten_bind_PeFactory_factoryByType_2=H.Aa)(m,k),$l=a._emscripten_bind_PeFactory_fromString_2=(m,k)=>($l=a._emscripten_bind_PeFactory_fromString_2=H.Ba)(m,k),tp=a._emscripten_bind_PeFactory_getCode_1=m=>(tp=a._emscripten_bind_PeFactory_getCode_1=H.Ca)(m),Us=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(m,k,Z,se,ue,Pe)=>(Us=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=H.Da)(m,k,Z,se,ue,Pe),rp=a._emscripten_bind_PeGCSExtent_getLLon_0=m=>(rp=a._emscripten_bind_PeGCSExtent_getLLon_0=H.Ea)(m),Vl=a._emscripten_bind_PeGCSExtent_getSLat_0=m=>(Vl=a._emscripten_bind_PeGCSExtent_getSLat_0=H.Fa)(m),Ul=a._emscripten_bind_PeGCSExtent_getRLon_0=m=>(Ul=a._emscripten_bind_PeGCSExtent_getRLon_0=H.Ga)(m),np=a._emscripten_bind_PeGCSExtent_getNLat_0=m=>(np=a._emscripten_bind_PeGCSExtent_getNLat_0=H.Ha)(m),zl=a._emscripten_bind_PeGCSExtent___destroy___0=m=>(zl=a._emscripten_bind_PeGCSExtent___destroy___0=H.Ia)(m),Wl=a._emscripten_bind_PeGeogcs_Delete_0=m=>(Wl=a._emscripten_bind_PeGeogcs_Delete_0=H.Ja)(m),ip=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=(m,k)=>(ip=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),ss=a._emscripten_bind_PeGeogcs_getPrimem_0=m=>(ss=a._emscripten_bind_PeGeogcs_getPrimem_0=H.Ma)(m),op=a._emscripten_bind_PeGeogcs_getUnit_0=m=>(op=a._emscripten_bind_PeGeogcs_getUnit_0=H.Na)(m),Fa=a._emscripten_bind_PeGeogcs_isEqual_1=(m,k)=>(Fa=a._emscripten_bind_PeGeogcs_isEqual_1=H.Oa)(m,k),$a=a._emscripten_bind_PeGeogcs_getCode_0=m=>($a=a._emscripten_bind_PeGeogcs_getCode_0=H.Pa)(m),sp=a._emscripten_bind_PeGeogcs_getName_1=(m,k)=>(sp=a._emscripten_bind_PeGeogcs_getName_1=H.Qa)(m,k),zs=a._emscripten_bind_PeGeogcs_getType_0=m=>(zs=a._emscripten_bind_PeGeogcs_getType_0=H.Ra)(m),Bl=a._emscripten_bind_PeGeogtran_isEqual_1=(m,k)=>(Bl=a._emscripten_bind_PeGeogtran_isEqual_1=H.Sa)(m,k),Gl=a._emscripten_bind_PeGeogtran_getGeogcs1_0=m=>(Gl=a._emscripten_bind_PeGeogtran_getGeogcs1_0=H.Ta)(m),Va=a._emscripten_bind_PeGeogtran_getGeogcs2_0=m=>(Va=a._emscripten_bind_PeGeogtran_getGeogcs2_0=H.Ua)(m),jl=a._emscripten_bind_PeGeogtran_getParameters_0=m=>(jl=a._emscripten_bind_PeGeogtran_getParameters_0=H.Va)(m),ap=a._emscripten_bind_PeGeogtran_loadConstants_0=m=>(ap=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),cp=a._emscripten_bind_PeGeogtran_getName_1=(m,k)=>(cp=a._emscripten_bind_PeGeogtran_getName_1=H.Ya)(m,k),lp=a._emscripten_bind_PeGeogtran_getType_0=m=>(lp=a._emscripten_bind_PeGeogtran_getType_0=H.Za)(m),up=a._emscripten_bind_PeGTlistExtended_getGTlist_6=(m,k,Z,se,ue,Pe)=>(up=a._emscripten_bind_PeGTlistExtended_getGTlist_6=H._a)(m,k,Z,se,ue,Pe),ql=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=m=>(ql=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=H.$a)(m),Hl=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=m=>(Hl=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),dp=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=m=>(dp=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=H.cb)(m),pp=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=m=>(pp=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=H.db)(m),fp=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=m=>(fp=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=H.eb)(m),mp=a._emscripten_bind_PeHorizon_getNump_0=m=>(mp=a._emscripten_bind_PeHorizon_getNump_0=H.fb)(m),hp=a._emscripten_bind_PeHorizon_getKind_0=m=>(hp=a._emscripten_bind_PeHorizon_getKind_0=H.gb)(m),Zl=a._emscripten_bind_PeHorizon_getInclusive_0=m=>(Zl=a._emscripten_bind_PeHorizon_getInclusive_0=H.hb)(m),gp=a._emscripten_bind_PeHorizon_getSize_0=m=>(gp=a._emscripten_bind_PeHorizon_getSize_0=H.ib)(m),Yl=a._emscripten_bind_PeHorizon_getCoord_0=m=>(Yl=a._emscripten_bind_PeHorizon_getCoord_0=H.jb)(m),Jl=a._emscripten_bind_PeInteger_PeInteger_1=m=>(Jl=a._emscripten_bind_PeInteger_PeInteger_1=H.kb)(m),Ws=a._emscripten_bind_PeInteger_get_val_0=m=>(Ws=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),Bs=a._emscripten_bind_PeInteger___destroy___0=m=>(Bs=a._emscripten_bind_PeInteger___destroy___0=H.nb)(m),wp=a._emscripten_bind_PeLineType_geodetic_distance_10=(m,k,Z,se,ue,Pe,ze,De,lt,In)=>(wp=a._emscripten_bind_PeLineType_geodetic_distance_10=H.ob)(m,k,Z,se,ue,Pe,ze,De,lt,In),Xl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=(m,k,Z,se,ue,Pe,ze,De,lt)=>(Xl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=H.pb)(m,k,Z,se,ue,Pe,ze,De,lt),Ql=a._emscripten_bind_PeLineType_geodesic_coordinate_8=(m,k,Z,se,ue,Pe,ze,De)=>(Ql=a._emscripten_bind_PeLineType_geodesic_coordinate_8=H.qb)(m,k,Z,se,ue,Pe,ze,De),Kl=a._emscripten_bind_PeLineType_great_elliptic_distance_9=(m,k,Z,se,ue,Pe,ze,De,lt)=>(Kl=a._emscripten_bind_PeLineType_great_elliptic_distance_9=H.rb)(m,k,Z,se,ue,Pe,ze,De,lt),as=a._emscripten_bind_PeMath_phi_to_eta_2=(m,k)=>(as=a._emscripten_bind_PeMath_phi_to_eta_2=H.sb)(m,k),yp=a._emscripten_bind_PeMath_eta_to_phi_2=(m,k)=>(yp=a._emscripten_bind_PeMath_eta_to_phi_2=H.tb)(m,k),bp=a._emscripten_bind_PeMath_phi_to_phig_2=(m,k)=>(bp=a._emscripten_bind_PeMath_phi_to_phig_2=H.ub)(m,k),vp=a._emscripten_bind_PeMath_q_3=(m,k,Z)=>(vp=a._emscripten_bind_PeMath_q_3=H.vb)(m,k,Z),_p=a._emscripten_bind_PeMath_q90_2=(m,k)=>(_p=a._emscripten_bind_PeMath_q90_2=H.wb)(m,k),xp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=m=>(xp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=H.xb)(m),Sp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=m=>(Sp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=H.yb)(m),Ua=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=m=>(Ua=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=H.zb)(m),Ep=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=m=>(Ep=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=H.Ab)(m),Gs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=m=>(Gs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=H.Bb)(m),Cp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=m=>(Cp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=H.Cb)(m),za=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=m=>(za=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=H.Db)(m),Tp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=m=>(Tp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=H.Eb)(m),Pp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=m=>(Pp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=H.Fb)(m),eu=a._emscripten_bind_PeParameter_getValue_0=m=>(eu=a._emscripten_bind_PeParameter_getValue_0=H.Gb)(m),cs=a._emscripten_bind_PeParameter_getCode_0=m=>(cs=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),tu=a._emscripten_bind_PeParameter_getType_0=m=>(tu=a._emscripten_bind_PeParameter_getType_0=H.Jb)(m),Wa=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=m=>(Wa=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=H.Kb)(m),Mp=a._emscripten_bind_PePCSInfo_getDomainMinx_0=m=>(Mp=a._emscripten_bind_PePCSInfo_getDomainMinx_0=H.Lb)(m),Ap=a._emscripten_bind_PePCSInfo_getDomainMiny_0=m=>(Ap=a._emscripten_bind_PePCSInfo_getDomainMiny_0=H.Mb)(m),Ip=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=m=>(Ip=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=H.Nb)(m),Lp=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=m=>(Lp=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=H.Ob)(m),kp=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=m=>(kp=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=H.Pb)(m),Np=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=m=>(Np=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=H.Qb)(m),Op=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=m=>(Op=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=H.Rb)(m),Rp=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=m=>(Rp=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=H.Sb)(m),Dp=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=m=>(Dp=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=H.Tb)(m),Fp=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=m=>(Fp=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),Ve=a._emscripten_bind_PeProjcs_isEqual_1=(m,k)=>(Ve=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),Mn=a._emscripten_bind_PeSpheroid_getType_0=m=>(Mn=a._emscripten_bind_PeSpheroid_getType_0=H.tc)(m),Wn=a._emscripten_bind_PeVersion_version_string_0=m=>(Wn=a._emscripten_bind_PeVersion_version_string_0=H.uc)(m);function js(){function m(){ns||(ns=!0,a.calledRun=!0,J||(nt(),i(a),Et()))}dr>0||(Fe(),dr>0||m())}function mt(){}function Ba(m){return(m||mt).__cache__}function fr(m,k){var Z=Ba(k),se=Z[m];return se||((se=Object.create((k||mt).prototype)).ptr=m,Z[m]=se)}function F2(m,k){return fr(m.ptr,k)}function $2(m){if(!m.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";m.__destroy__(),delete Ba(m.__class__)[m.ptr]}function V2(m,k){return m.ptr===k.ptr}function U2(m){return m.ptr}function z2(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=Ca,a.UTF8ToString=Tr,pr=function m(){ns||js(),ns||(pr=m)},js(),mt.prototype=Object.create(mt.prototype),mt.prototype.constructor=mt,mt.prototype.__class__=mt,mt.__cache__={},a.WrapperObject=mt,a.getCache=Ba,a.wrapPointer=fr,a.castObject=F2,a.NULL=fr(0),a.destroy=$2,a.compare=V2,a.getPointer=U2,a.getClass=z2;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=vl(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 Dm(m){if(typeof m=="string"){var k=kd(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 W2(m){if(typeof m=="object"){var k=Je.alloc(m,Ae);return Je.copy(m,Ae,k),k}return m}function B2(m){if(typeof m=="object"){var k=Je.alloc(m,Ee);return Je.copy(m,Ee,k),k}return m}function G2(m){if(typeof m=="object"){var k=Je.alloc(m,we);return Je.copy(m,we,k),k}return m}function j2(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=Qd(m),Ba(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=Us(m,k,Z,se,ue,Pe),Ba(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 Bn(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function An(){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=Jl(m),Ba(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 Nd(m)},rr.prototype.getName=rr.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(Od(k,m))},rr.prototype.getType=rr.prototype.getType=function(){var m=this.ptr;return Sl(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 Rd(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 Dd(m)},Ur.prototype.getCode=Ur.prototype.getCode=function(){var m=this.ptr;return Ma(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;Aa(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 El(m)},en.prototype.getName=en.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(Cl(k,m))},en.prototype.getType=en.prototype.getType=function(){var m=this.ptr;return Tl(m)},en.prototype.getUnitFactor=en.prototype.getUnitFactor=function(){var m=this.ptr;return is(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(Ia(m),Ir)},tn.prototype.getCode=tn.prototype.getCode=function(){var m=this.ptr;return Fd(m)},tn.prototype.getName=tn.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr($d(k,m))},tn.prototype.getType=tn.prototype.getType=function(){var m=this.ptr;return Vd(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 Pl(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 Ud(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 Ml(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 Al(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 Fs(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 Il(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 La(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 Ll(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 zd(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 ka(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 Wd(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 Na(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 Bd(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 Gd(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 jd(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 qd(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 Hd(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 kl(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 $s(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 Oa(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 Vs(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 os(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 Zd(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 Nl(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 Ol(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 Ra(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 Yd(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 Jd(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 Rl(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 Xd(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 Dl(m)},zr.prototype.set_val=zr.prototype.set_val=function(m){var k=this.ptr;m&&typeof m=="object"&&(m=m.ptr),Fl(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;Kd(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:Dm(m),Da(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(ep(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:Dm(k),fr($l(m,k),rr)},hn.prototype.getCode=hn.prototype.getCode=function(m){return m&&typeof m=="object"&&(m=m.ptr),tp(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 rp(m)},Ar.prototype.getSLat=Ar.prototype.getSLat=function(){var m=this.ptr;return Vl(m)},Ar.prototype.getRLon=Ar.prototype.getRLon=function(){var m=this.ptr;return Ul(m)},Ar.prototype.getNLat=Ar.prototype.getNLat=function(){var m=this.ptr;return np(m)},Ar.prototype.__destroy__=Ar.prototype.__destroy__=function(){var m=this.ptr;zl(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;Wl(m)},Ct.prototype.cloneAlterUnits=Ct.prototype.cloneAlterUnits=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),fr(ip(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(ss(m),rn)},Ct.prototype.getUnit=Ct.prototype.getUnit=function(){var m=this.ptr;return fr(op(m),en)},Ct.prototype.isEqual=Ct.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Fa(k,m)},Ct.prototype.getCode=Ct.prototype.getCode=function(){var m=this.ptr;return $a(m)},Ct.prototype.getName=Ct.prototype.getName=function(m){var k=this.ptr;return Je.prepare(),typeof m=="object"&&(m=ti(m)),Tr(sp(k,m))},Ct.prototype.getType=Ct.prototype.getType=function(){var m=this.ptr;return zs(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),!!Bl(k,m)},Jt.prototype.getGeogcs1=Jt.prototype.getGeogcs1=function(){var m=this.ptr;return fr(Gl(m),Ct)},Jt.prototype.getGeogcs2=Jt.prototype.getGeogcs2=function(){var m=this.ptr;return fr(Va(m),Ct)},Jt.prototype.getParameters=Jt.prototype.getParameters=function(){var m=this.ptr;return jl(m)},Jt.prototype.loadConstants=Jt.prototype.loadConstants=function(){var m=this.ptr;return!!ap(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(cp(k,m))},Jt.prototype.getType=Jt.prototype.getType=function(){var m=this.ptr;return lp(m)},Bn.prototype=Object.create(mt.prototype),Bn.prototype.constructor=Bn,Bn.prototype.__class__=Bn,Bn.__cache__={},a.PeGTlistExtended=Bn,Bn.prototype.getGTlist=Bn.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(up(m,k,Z,se,ue,Pe),An)},Bn.prototype.get_PE_GTLIST_OPTS_COMMON=Bn.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var m=this.ptr;return ql(m)},Object.defineProperty(Bn.prototype,"PE_GTLIST_OPTS_COMMON",{get:Bn.prototype.get_PE_GTLIST_OPTS_COMMON}),An.prototype=Object.create(mt.prototype),An.prototype.constructor=An,An.prototype.__class__=An,An.__cache__={},a.PeGTlistExtendedEntry=An,An.prototype.getEntries=An.prototype.getEntries=function(){var m=this.ptr;return fr(Hl(m),ri)},An.prototype.getSteps=An.prototype.getSteps=function(){var m=this.ptr;return Pr(m)},An.prototype.Delete=An.prototype.Delete=function(m){m&&typeof m=="object"&&(m=m.ptr),dp(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 pp(m)},ri.prototype.getGeogtran=ri.prototype.getGeogtran=function(){var m=this.ptr;return fr(fp(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 mp(m)},xr.prototype.getKind=xr.prototype.getKind=function(){var m=this.ptr;return hp(m)},xr.prototype.getInclusive=xr.prototype.getInclusive=function(){var m=this.ptr;return Zl(m)},xr.prototype.getSize=xr.prototype.getSize=function(){var m=this.ptr;return gp(m)},xr.prototype.getCoord=xr.prototype.getCoord=function(){var m=this.ptr;return Yl(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 Ws(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;Bs(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,In){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),In&&typeof In=="object"&&(In=In.ptr),wp(m,k,Z,se,ue,Pe,ze,De,lt,In)},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),Xl(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),Ql(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),Kl(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),as(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),yp(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),bp(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),vp(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),_p(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 xp(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 Sp(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 Ua(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 Ep(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 Gs(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 Cp(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 za(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 Tp(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 Pp(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 eu(m)},wn.prototype.getCode=wn.prototype.getCode=function(){var m=this.ptr;return cs(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 tu(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 Wa(m)},Ze.prototype.getDomainMinx=Ze.prototype.getDomainMinx=function(){var m=this.ptr;return Mp(m)},Ze.prototype.getDomainMiny=Ze.prototype.getDomainMiny=function(){var m=this.ptr;return Ap(m)},Ze.prototype.getDomainMaxx=Ze.prototype.getDomainMaxx=function(){var m=this.ptr;return Ip(m)},Ze.prototype.getDomainMaxy=Ze.prototype.getDomainMaxy=function(){var m=this.ptr;return Lp(m)},Ze.prototype.getNorthPoleLocation=Ze.prototype.getNorthPoleLocation=function(){var m=this.ptr;return kp(m)},Ze.prototype.getNorthPoleGeometry=Ze.prototype.getNorthPoleGeometry=function(){var m=this.ptr;return Np(m)},Ze.prototype.getSouthPoleLocation=Ze.prototype.getSouthPoleLocation=function(){var m=this.ptr;return Op(m)},Ze.prototype.getSouthPoleGeometry=Ze.prototype.getSouthPoleGeometry=function(){var m=this.ptr;return Rp(m)},Ze.prototype.isDensificationNeeded=Ze.prototype.isDensificationNeeded=function(){var m=this.ptr;return!!Dp(m)},Ze.prototype.isGcsHorizonMultiOverlap=Ze.prototype.isGcsHorizonMultiOverlap=function(){var m=this.ptr;return!!Fp(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),!!Ve(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 Mn(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(Wn(m))},a.ensureCache=Je,a.ensureString=Dm,a.ensureInt8=ti,a.ensureInt16=W2,a.ensureInt32=B2,a.ensureFloat32=G2,a.ensureFloat64=j2,d},e.exports=r),HD.exports;var e,t,r}var qD,HD,XQ,QQ,YD=R(()=>{BD();HD={exports:{}};XQ=WD(JQ()),QQ=Object.freeze(Object.defineProperty({__proto__:null,default:XQ},Symbol.toStringTag,{value:"Module"}))});function JD(){return!!j}function KQ(){return!!me("esri-wasm")}function XD(){return n3||(n3=Promise.resolve().then(()=>(YD(),ZD)).then(e=>e.p).then(({default:e})=>e({locateFile:t=>Xf(`esri/geometry/support/${t}`)})).then(e=>{eF(e)}),n3)}function eF(e){function t(o,s,c){o[s]=c(o[s])}j=e,Qt.init(),c2.init(),l2.init(),u2.init(),d2.init(),QD=class extends j.PeDouble{constructor(o=NaN){super(o)}destroy(){j.destroy(this)}[Symbol.dispose](){this.destroy()}},KD=class extends j.PeGCSExtent{destroy(){j.destroy(this)}[Symbol.dispose](){this.destroy()}};let r=[j.PeAngunit,j.PeDatum,j.PeGeogcs,j.PeGeogtran,j.PeObject,j.PeParameter,j.PePrimem,j.PeProjcs,j.PeSpheroid,j.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[j.PeGeogtran,j.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=j.getValue(a,"*");c[d]=h?j.wrapPointer(h,j.PeParameter):null,a+=Int32Array.BYTES_PER_ELEMENT}return c});t(j.PeHorizon.prototype,"getCoord",o=>function(s=!1){let c=this.getSize();if(!c)return null;let a=[];return nl(a,c,o.call(this),s),a}),t(j.PeGTlistExtendedEntry.prototype,"getEntries",o=>{let s=j._pe_getPeGTlistExtendedGTsSize();return function(){let c=null,a=o.call(this);if(!j.compare(a,j.NULL)){c=[a];let d=this.getSteps();if(d>1){let h=j.getPointer(a);for(let g=1;g<d;g++)c.push(j.wrapPointer(h+s*g,j.PeGTlistExtendedGTs))}}return c}});let n=j._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(!j.compare(a,j.NULL)){c=[a];let d=a.getNump();if(d>1){let h=j.getPointer(a);for(let g=1;g<d;g++)c.push(j.wrapPointer(h+n*g,j.PeHorizon))}}return s.set(o,c),c};t(j.PeProjcs.prototype,"horizonGcsGenerate",i),t(j.PeProjcs.prototype,"horizonPcsGenerate",i),j.PeObject.prototype.toString=function(o=Qt.PE_STR_OPTS_NONE){j.ensureCache.prepare();let s=j.getPointer(this),c=j.ensureInt8(new Array(Qt.PE_BUFFER_MAX));return j.UTF8ToString(j._pe_object_to_string_ext(s,o,c))},j.PeGeogcs.prototype.destroy=function(){this.Delete(),Zo(this),this.ptr=0},j.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},j.PeProjcs.prototype.destroy=function(){this.Delete(),Zo(this),this.ptr=0},j.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function Zo(e){if(!e)return;let t=j.getClass(e);if(!t)return;let r=j.getCache(t);if(!r)return;let n=j.getPointer(e);n&&delete r[n]}function s2(e,t){let r=[],n=new Array(t);for(let i=0;i<e;i++)r.push(j.ensureInt8(n));return r}function cd(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function nl(e,t,r,n=!1){if(n)for(let i=0;i<2*t;i++)e[i]=j.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]=j.getValue(r,"double"),e[o][1]=j.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}var n3,j,i3,Qt,QD,a2,KD,c2,o3,s3,a3,c3,l3,l2,u3,u2,d2,d3,A5e,tF=R(()=>{ob();rt();j=null;(function(e){function t(o,s,c){j.ensureCache.prepare();let a=cd(c),d=c===a,h=j.ensureFloat64(a),g=j._pe_geog_to_proj(j.getPointer(o),s,h);return g&&nl(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){j.ensureCache.prepare();let d=cd(c),h=c===d,g=j.ensureFloat64(d),v=j._pe_proj_to_geog_center(j.getPointer(o),s,g,a);return v&&nl(c,s,g,h),v}e.geogToProj=t,e.projGeog=r,e.projToGeog=n,e.projToGeogCenter=i})(i3||(i3={})),function(e){function t(){e.PE_BUFFER_MAX=j.PeDefs.prototype.PE_BUFFER_MAX,e.PE_NAME_MAX=j.PeDefs.prototype.PE_NAME_MAX,e.PE_MGRS_MAX=j.PeDefs.prototype.PE_MGRS_MAX,e.PE_USNG_MAX=j.PeDefs.prototype.PE_USNG_MAX,e.PE_DD_MAX=j.PeDefs.prototype.PE_DD_MAX,e.PE_DDM_MAX=j.PeDefs.prototype.PE_DDM_MAX,e.PE_DMS_MAX=j.PeDefs.prototype.PE_DMS_MAX,e.PE_UTM_MAX=j.PeDefs.prototype.PE_UTM_MAX,e.PE_PARM_MAX=j.PeDefs.prototype.PE_PARM_MAX,e.PE_TYPE_NONE=j.PeDefs.prototype.PE_TYPE_NONE,e.PE_TYPE_GEOGCS=j.PeDefs.prototype.PE_TYPE_GEOGCS,e.PE_TYPE_PROJCS=j.PeDefs.prototype.PE_TYPE_PROJCS,e.PE_TYPE_GEOGTRAN=j.PeDefs.prototype.PE_TYPE_GEOGTRAN,e.PE_TYPE_COORDSYS=j.PeDefs.prototype.PE_TYPE_COORDSYS,e.PE_TYPE_UNIT=j.PeDefs.prototype.PE_TYPE_UNIT,e.PE_TYPE_LINUNIT=j.PeDefs.prototype.PE_TYPE_LINUNIT,e.PE_STR_OPTS_NONE=j.PeDefs.prototype.PE_STR_OPTS_NONE,e.PE_STR_AUTH_NONE=j.PeDefs.prototype.PE_STR_AUTH_NONE,e.PE_STR_AUTH_TOP=j.PeDefs.prototype.PE_STR_AUTH_TOP,e.PE_STR_NAME_CANON=j.PeDefs.prototype.PE_STR_NAME_CANON,e.PE_STR_FMT_WKT=j.PeDefs.prototype.PE_STR_FMT_WKT,e.PE_STR_FMT_WKT2=j.PeDefs.prototype.PE_STR_FMT_WKT2,e.PE_PARM_X0=j.PeDefs.prototype.PE_PARM_X0,e.PE_PARM_ND=j.PeDefs.prototype.PE_PARM_ND,e.PE_TRANSFORM_1_TO_2=j.PeDefs.prototype.PE_TRANSFORM_1_TO_2,e.PE_TRANSFORM_2_TO_1=j.PeDefs.prototype.PE_TRANSFORM_2_TO_1,e.PE_TRANSFORM_P_TO_G=j.PeDefs.prototype.PE_TRANSFORM_P_TO_G,e.PE_TRANSFORM_G_TO_P=j.PeDefs.prototype.PE_TRANSFORM_G_TO_P,e.PE_HORIZON_RECT=j.PeDefs.prototype.PE_HORIZON_RECT,e.PE_HORIZON_POLY=j.PeDefs.prototype.PE_HORIZON_POLY,e.PE_HORIZON_LINE=j.PeDefs.prototype.PE_HORIZON_LINE,e.PE_HORIZON_DELTA=j.PeDefs.prototype.PE_HORIZON_DELTA}e.init=t}(Qt||(Qt={}));QD=null;(function(e){let t={},r={},n=E=>{let P=E.getType();switch(P){case Qt.PE_TYPE_GEOGCS:E=j.castObject(E,j.PeGeogcs);break;case Qt.PE_TYPE_PROJCS:E=j.castObject(E,j.PeProjcs);break;case Qt.PE_TYPE_GEOGTRAN:E=j.castObject(E,j.PeGeogtran);break;default:P&Qt.PE_TYPE_UNIT&&(E=j.castObject(E,j.PeUnit))}return E};function i(){j.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],j.compare(A,j.NULL)&&(A=null)),!A){let W=j.PeFactory.prototype.factoryByType(E,P);j.compare(W,j.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],j.compare(A,j.NULL)&&(A=null)),!A){let W=j.PeFactory.prototype.fromString(E,P);j.compare(W,j.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 j.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})(a2||(a2={}));KD=null;(function(e){let t;function r(){e.PE_GTLIST_OPTS_COMMON=j.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=j._pe_getPeGTlistExtendedEntrySize()}function n(i,o,s,c,a,d){let h=null,g=new j.PeInteger(d);try{let v=j.PeGTlistExtended.prototype.getGTlist(i,o,s,c,a,g);if((d=g.val)&&(h=[v],d>1)){let E=j.getPointer(v);for(let P=1;P<d;P++)h.push(j.wrapPointer(E+t*P,j.PeGTlistExtendedEntry))}}finally{j.destroy(g)}return h}e.init=r,e.getGTlist=n})(c2||(c2={})),function(e){function t(r){if(r?.length){for(let n of r)Zo(n),n.getEntries().forEach(i=>{Zo(i);let o=i.getGeogtran();Zo(o),o.getParameters().forEach(Zo),[o.getGeogcs1(),o.getGeogcs2()].forEach(s=>{Zo(s);let c=s.getDatum();Zo(c),Zo(c.getSpheroid()),Zo(s.getPrimem()),Zo(s.getUnit())})});j.PeGTlistExtendedEntry.prototype.Delete(r[0])}}e.destroy=t}(o3||(o3={})),function(e){function t(r,n,i,o,s){j.ensureCache.prepare();let c=cd(i),a=i===c,d=j.ensureFloat64(c),h=0;o&&(h=j.ensureFloat64(o));let g=j._pe_geog_to_geog(j.getPointer(r),n,d,h,s);return g&&nl(i,n,d,a),g}e.geogToGeog=t}(s3||(s3={})),function(e){function t(o,s,c,a,d,h,g,v){j.PeLineType.prototype.geodesic_coordinate(o,s,c,a,d,h,g,v)}function r(o,s,c,a,d,h,g,v,E){j.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){j.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){j.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}(a3||(a3={})),function(e){function t(s,c){return j.PeMath.prototype.phi_to_eta(s,c)}function r(s,c){return j.PeMath.prototype.eta_to_phi(s,c)}function n(s,c){return j.PeMath.prototype.phi_to_phig(s,c)}function i(s,c,a){return j.PeMath.prototype.q(s,c,a)}function o(s,c){return j.PeMath.prototype.q90(s,c)}e.phiToEta=t,e.etaToPhi=r,e.phiToPhig=n,e.q=i,e.q90=o}(c3||(c3={})),function(e){let t=(d,h,g,v,E,P)=>{let A,F;switch(j.ensureCache.prepare(),d){case"dd":A=j._pe_geog_to_dd,F=Qt.PE_DD_MAX;break;case"ddm":A=j._pe_geog_to_ddm,F=Qt.PE_DDM_MAX;break;case"dms":A=j._pe_geog_to_dms,F=Qt.PE_DMS_MAX}let W=0;h&&(W=j.getPointer(h));let z=cd(v),q=j.ensureFloat64(z),G=s2(g,F),Y=A(W,g,q,E,j.ensureInt32(G));if(Y)for(let ie=0;ie<g;ie++)P[ie]=j.UTF8ToString(G[ie]);return Y},r=(d,h,g,v,E)=>{let P;switch(j.ensureCache.prepare(),d){case"dd":P=j._pe_dd_to_geog;break;case"ddm":P=j._pe_ddm_to_geog;break;case"dms":P=j._pe_dms_to_geog}let A=0;h&&(A=j.getPointer(h));let F=v.map(G=>j.ensureString(G)),W=j.ensureInt32(F),z=j.ensureFloat64(new Array(2*g)),q=P(A,g,W,z);return q&&nl(E,g,z),q};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}(l3||(l3={})),function(e){function t(){e.PE_MGRS_STYLE_NEW=j.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=j.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=j.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=j.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=j.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}function r(i,o,s,c,a,d,h){j.ensureCache.prepare();let g=0;i&&(g=j.getPointer(i));let v=cd(s),E=j.ensureFloat64(v),P=s2(o,Qt.PE_MGRS_MAX),A=j.ensureInt32(P),F=j._pe_geog_to_mgrs_extended(g,o,E,c,a,d,A);if(F)for(let W=0;W<o;W++)h[W]=j.UTF8ToString(P[W]);return F}function n(i,o,s,c,a){j.ensureCache.prepare();let d=0;i&&(d=j.getPointer(i));let h=s.map(P=>j.ensureString(P)),g=j.ensureInt32(h),v=j.ensureFloat64(new Array(2*o)),E=j._pe_mgrs_to_geog_extended(d,o,g,c,v);return E&&nl(a,o,v),E}e.init=t,e.geogToMgrsExtended=r,e.mgrsToGeogExtended=n}(l2||(l2={})),function(e){function t(n,i,o,s,c,a,d){j.ensureCache.prepare();let h=0;n&&(h=j.getPointer(n));let g=cd(o),v=j.ensureFloat64(g),E=s2(i,Qt.PE_MGRS_MAX),P=j.ensureInt32(E),A=j._pe_geog_to_usng(h,i,v,s,c,a,P);if(A)for(let F=0;F<i;F++)d[F]=j.UTF8ToString(E[F]);return A}function r(n,i,o,s){j.ensureCache.prepare();let c=0;n&&(c=j.getPointer(n));let a=o.map(v=>j.ensureString(v)),d=j.ensureInt32(a),h=j.ensureFloat64(new Array(2*i)),g=j._pe_usng_to_geog(c,i,d,h);return g&&nl(s,i,h),g}e.geogToUsng=t,e.usngToGeog=r}(u3||(u3={})),function(e){function t(){e.PE_UTM_OPTS_NONE=j.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=j.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=j.PeNotationUtm.prototype.PE_UTM_OPTS_NS}function r(i,o,s,c,a){j.ensureCache.prepare();let d=0;i&&(d=j.getPointer(i));let h=cd(s),g=j.ensureFloat64(h),v=s2(o,Qt.PE_UTM_MAX),E=j.ensureInt32(v),P=j._pe_geog_to_utm(d,o,g,c,E);if(P)for(let A=0;A<o;A++)a[A]=j.UTF8ToString(v[A]);return P}function n(i,o,s,c,a){j.ensureCache.prepare();let d=0;i&&(d=j.getPointer(i));let h=s.map(P=>j.ensureString(P)),g=j.ensureInt32(h),v=j.ensureFloat64(new Array(2*o)),E=j._pe_utm_to_geog(d,o,g,c,v);return E&&nl(a,o,v),E}e.init=t,e.geogToUtm=r,e.utmToGeog=n}(u2||(u2={})),function(e){let t=new Map;function r(){e.PE_PCSINFO_OPTION_NONE=j.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=j.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=j.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=j.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=j.PePCSInfo.prototype.generate(i,o),c||(c=[],t.set(i,c)),c[o]=s),s}e.init=r,e.generate=n}(d2||(d2={})),function(e){function t(){return j.PeVersion.prototype.version_string()}e.versionString=t}(d3||(d3={}));A5e=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return i3},get PeDefs(){return Qt},get PeDouble(){return QD},get PeFactory(){return a2},get PeGCSExtent(){return KD},get PeGTTransformations(){return s3},get PeGTlistExtended(){return c2},get PeGTlistExtendedEntry(){return o3},get PeLineType(){return a3},get PeMath(){return c3},get PeNotationDms(){return l3},get PeNotationMgrs(){return l2},get PeNotationUsng(){return u3},get PeNotationUtm(){return u2},get PePCSInfo(){return d2},get PeVersion(){return d3},_init:eF,get _pe(){return j},isLoaded:JD,isSupported:KQ,load:XD},Symbol.toStringTag,{value:"Module"}))});var Sm,rF=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"})(Sm||(Sm={}))});var l,M,p3=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 il(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||Ps(e)&&Ps(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 ld(e){let t=e?.wkid;return t!=null&&t>=2e3&&iF[t]||null}function R1(e){if(!sF(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 Cm(e){return e?.wkid===4326}function Ps(e){let t=e?.wkid;return t!=null&&t>=2e3&&nF.includes(t)}function h3(e){return e===Sm.GCSMARS2000||e===Sm.GCSMARS2000_SPHERE}function g3(e){return e===Sm.GCSMOON2000}function oF(e){let t=e?.wkid;return t!=null&&t>=2e3&&tK.includes(t)}function sF(e){if(e==null)return!1;let t=e.wkid;return t!=null&&t>=2e3||e.wkt2!=null||e.wkt!=null}var nF,eK,tK,Em,m3,f3,iF,w3,y3,aF,ba=R(()=>{lc();tF();rF();p3();nF=[102100,102113,3857,3785,900913],eK=[104905,104971],tK=[4326,...nF,...eK],Em=[-20037508342788905e-9,20037508342788905e-9],m3=[-20037508342787e-6,20037508342787e-6],f3={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:Em,origin:m3,dx:1e-5},iF={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:Em,origin:m3,dx:1e-5},102100:f3,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:Em,origin:m3,dx:1e-5},3857:f3,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:f3};w3={wkid:4326,wkt:gs(iF[4326].wkTemplate,{Central_Meridian:"0.0"})},y3={wkid:102100,latestWkid:3857},aF={wkid:32662}});function b3(e){return{wkt:`GEOCCS["Spherical geocentric",
12
12
  DATUM["Not specified",
13
13
  SPHEROID["Sphere",${e.radius},0]],
14
14
  PRIMEM["Greenwich",0.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.92
243
+ * v3.0.0-next.96
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.92
250
+ * v3.0.0-next.96
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.92
257
+ * v3.0.0-next.96
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.92
264
+ * v3.0.0-next.96
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.92
271
+ * v3.0.0-next.96
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.92
278
+ * v3.0.0-next.96
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.92
289
+ * v3.0.0-next.96
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.92
296
+ * v3.0.0-next.96
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.92
324
+ * v3.0.0-next.96
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.92
331
+ * v3.0.0-next.96
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.92
338
+ * v3.0.0-next.96
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.92
345
+ * v3.0.0-next.96
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.92
352
+ * v3.0.0-next.96
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.92
359
+ * v3.0.0-next.96
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.92
366
+ * v3.0.0-next.96
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.92
373
+ * v3.0.0-next.96
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.92
387
+ * v3.0.0-next.96
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.92
405
+ * v3.0.0-next.96
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.92
424
+ * v3.0.0-next.96
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.92
431
+ * v3.0.0-next.96
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.92
438
+ * v3.0.0-next.96
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.92
445
+ * v3.0.0-next.96
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.92
452
+ * v3.0.0-next.96
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.92
459
+ * v3.0.0-next.96
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.92
466
+ * v3.0.0-next.96
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.92
473
+ * v3.0.0-next.96
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.92
480
+ * v3.0.0-next.96
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.92
487
+ * v3.0.0-next.96
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.92
494
+ * v3.0.0-next.96
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.92
501
+ * v3.0.0-next.96
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.92
508
+ * v3.0.0-next.96
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.92
515
+ * v3.0.0-next.96
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.92
522
+ * v3.0.0-next.96
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.92
529
+ * v3.0.0-next.96
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.92
536
+ * v3.0.0-next.96
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.92
543
+ * v3.0.0-next.96
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.92
550
+ * v3.0.0-next.96
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.92
557
+ * v3.0.0-next.96
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.92
564
+ * v3.0.0-next.96
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.92
571
+ * v3.0.0-next.96
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.92
578
+ * v3.0.0-next.96
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.92
585
+ * v3.0.0-next.96
586
586
  *)
587
587
  */