@arcgis/coding-components 4.32.0-next.40 → 4.32.0-next.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/{JRKC4YT2.js → 46ADMFZA.js} +2 -2
- package/dist/arcgis-coding-components/{7C6KHGG5.js → 6EKIEEEK.js} +2 -2
- package/dist/arcgis-coding-components/{MJM432EZ.js → 6HIR644M.js} +2 -2
- package/dist/arcgis-coding-components/{RHAT7VC4.js → 7VVHL4V2.js} +2 -2
- package/dist/arcgis-coding-components/{QXDF6QB3.js → ACQOF5JZ.js} +2 -2
- package/dist/arcgis-coding-components/{UJYNX2CG.js → AFLJD5NF.js} +2 -2
- package/dist/arcgis-coding-components/{WGLKBRVR.js → CETFG3JM.js} +2 -2
- package/dist/arcgis-coding-components/{IXV6AMTK.js → ENIMGEDW.js} +1 -1
- package/dist/arcgis-coding-components/{NKOIXFIG.js → FPAUII5C.js} +2 -2
- package/dist/arcgis-coding-components/{6YXBEFAC.js → GVQT5ZDL.js} +2 -2
- package/dist/arcgis-coding-components/{QP74MWDR.js → H4AYMKZ6.js} +1 -1
- package/dist/arcgis-coding-components/{UUYCOABM.js → HV7Y2ZDJ.js} +2 -2
- package/dist/arcgis-coding-components/{M73OILSQ.js → IESRXPNT.js} +2 -2
- package/dist/arcgis-coding-components/{ZOBMRSLN.js → LOTDCCUF.js} +3 -3
- package/dist/arcgis-coding-components/{VT2VFTEY.js → MEIMF6H3.js} +2 -2
- package/dist/arcgis-coding-components/{M37XONCS.js → MNI5GUEN.js} +2 -2
- package/dist/arcgis-coding-components/{FUAXAAF3.js → N42SWWY4.js} +2 -2
- package/dist/arcgis-coding-components/{R7EAKKZ6.js → NUAF6ZVV.js} +2 -2
- package/dist/arcgis-coding-components/{KWOR2565.js → OH7X5PES.js} +2 -2
- package/dist/arcgis-coding-components/{CWKSCJBM.js → OHBJ7BVF.js} +2 -2
- package/dist/arcgis-coding-components/{5FIQMFIR.js → OPUH7DIF.js} +2 -2
- package/dist/arcgis-coding-components/{ZDRCVFHP.js → ORBI3AJF.js} +2 -2
- package/dist/arcgis-coding-components/{7Q6JRW72.js → PIM7CYZA.js} +2 -2
- package/dist/arcgis-coding-components/{HLSBA6NN.js → Q3DR6MJL.js} +1 -1
- package/dist/arcgis-coding-components/{SYH5GOUL.js → QHESZIQF.js} +2 -2
- package/dist/arcgis-coding-components/{5QIEG2JZ.js → QLG2GCU4.js} +2 -2
- package/dist/arcgis-coding-components/{PN23KUUS.js → QRXEDCXD.js} +2 -2
- package/dist/arcgis-coding-components/{B5FIAUY6.js → QUWVYFZ6.js} +2 -2
- package/dist/arcgis-coding-components/{ZYKA45JF.js → SPYXHK4N.js} +2 -2
- package/dist/arcgis-coding-components/{6SG5NSIX.js → T3YAUYWF.js} +2 -2
- package/dist/arcgis-coding-components/{L4OXW5HT.js → TJM2PIVT.js} +2 -2
- package/dist/arcgis-coding-components/{7PMSLQM5.js → UQ2ILCON.js} +2 -2
- package/dist/arcgis-coding-components/{FJFHZ6T7.js → WYNB2YSG.js} +2 -2
- package/dist/arcgis-coding-components/{SZFIBSIL.js → XAN453D2.js} +1 -1
- package/dist/arcgis-coding-components/{GTQPQNRC.js → Z4JFJ3AT.js} +2 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +1 -1
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var LV=Object.defineProperty;var R=(e,t)=>()=>(e&&(t=e(e=0)),t);var MT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),js=(e,t)=>{for(var r in t)LV(e,r,{get:t[r],enumerable:!0})};function gz(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 wz(e,t,r){let{subscribe:n}=yz(t);return n(i=>{i.some(s=>gz(e,s.target))&&r()})}function yz(e){let t=e.join(","),r=Y_[t];if(r!==void 0)return r;let n=new Set,i=new MutationObserver(s=>n.forEach(l=>l(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(),Y_[t]=void 0)}}}};return Y_[t]=o,o}function vz(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 bz(e,t,r){return vz(e,`[${t}]`)?.getAttribute(t)??r}function kt(e,t,...r){try{return e?.call(t,...r)}catch(n){console.error(n,e)}}async function ih(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 Ez(e,t,r=""){let n=`${t}/${r}`,i=`${n}${e}.json`;return J_[i]??(J_[i]=B9(e,n)),await J_[i]}async function B9(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===H0?{}:await B9(H0,t)}function X_(e,t){let r=bz(e,"lang",globalThis.navigator?.language||H0);return{lang:r,t9nLocale:j9(r,t)}}function j9(e,t){let[r,n]=e.split("-"),i=r.toLowerCase(),o=i;return n&&(o=`${i}-${n.toUpperCase()}`),o=xz[o]??o,t&&o==="nb"?"no":Sz.has(o)?o:n?j9(i):H0}function q9(e,t,r,n,i){let o,s=()=>void Tz(e,t,n,i).then(l=>{(o?.lang!==l.lang||o.t9nLocale!==l.t9nLocale||o.t9nStrings!==l.t9nStrings)&&r(l),o=l}).catch(console.error);return s(),wz(e,["lang"],s)}async function Tz(e,t,r=e.tagName.toLowerCase().split("-").slice(1).join("-"),n){let{lang:i,t9nLocale:o}=X_(e,n),s=`${t}/${r}/t9n`,l=`${r}.t9n.`,a=r===null?{}:await Ez(o,s,l);return{lang:i,t9nLocale:o,t9nStrings:a}}function H9(e,t){let r=t>Pz?Mz:t/Az,n=0,i=setInterval(()=>{n+=r,n>=t&&(clearInterval(i),e())},r);return i}function Z9(e){return e!==void 0}var So,Y_,_z,Sz,H0,xz,J_,Z0,Cz,Pz,Mz,Az,xo=R(()=>{"use strict";So=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};Y_={};_z=["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"],Sz=new Set(_z),H0="en",xz={pt:"pt-PT",no:"nb",zh:"zh-CN"};J_={};Z0=e=>e.replace(Cz,(t,r)=>`${r===0?"":"-"}${t.toLowerCase()}`),Cz=/[A-Z]+(?![a-z])|[A-Z]/gu;Pz=4e3,Mz=2e3,Az=4});function pe(e){return typeof tl[e]=="function"?tl[e]=tl[e](globalThis):tl[e]}var tl,tt=R(()=>{tl=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},pe.add=(e,t,r,n)=>{(n||tl[e]===void 0)&&(tl[e]=t),r&&pe(e)},pe.cache=tl,pe.add("big-integer-warning-enabled",!0),pe.add("esri-deprecation-warnings",!0),pe.add("esri-tests-disable-screenshots",!1),pe.add("esri-tests-use-full-window",!1),pe.add("esri-tests-post-to-influx",!0),pe.add("esri-cim-animations-enable-status","enabled"),pe.add("esri-cim-animations-spotlight",!1),pe.add("esri-cim-animations-freeze-time",!1),pe.add("enable-feature:multiple-highlights",!1),(()=>{pe.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(pe.add("host-browser",e),pe.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),pe.add("dom",e),pe("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(pe.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),pe.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),pe.add("khtml",n.includes("Konqueror")?i:void 0),pe.add("edge",parseFloat(r.split("Edge/")[1])||void 0),pe.add("opr",parseFloat(r.split("OPR/")[1])||void 0),pe.add("webkit",!pe("wp")&&!pe("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),pe.add("chrome",!pe("edge")&&!pe("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),pe.add("android",!pe("wp")&&parseFloat(r.split("Android ")[1])||void 0),pe.add("safari",!n.includes("Safari")||pe("wp")||pe("chrome")||pe("android")||pe("edge")||pe("opr")?void 0:parseFloat(n.split("Version/")[1])),pe.add("mac",n.includes("Macintosh")),!pe("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",l=parseFloat(s.replace(/_/,".").replaceAll("_",""));pe.add(o,l),pe.add("ios",l)}pe("webkit")||(!r.includes("Gecko")||pe("wp")||pe("khtml")||pe("edge")||pe.add("mozilla",i),pe("mozilla")&&pe.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&&pe.add("esri-mobile",t),r&&pe.add("esri-iPhone",r),pe.add("esri-geolocation",!!navigator.geolocation)}pe.add("esri-wasm","WebAssembly"in globalThis),pe.add("esri-performance-mode-frames-between-render",20),pe.add("esri-force-performance-mode",!1),pe.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),pe.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))}),pe.add("esri-atomics","Atomics"in globalThis),pe.add("esri-workers","Worker"in globalThis),pe.add("web-feat:cache","caches"in globalThis),pe.add("esri-workers-arraybuffer-transfer",!pe("safari")||Number(pe("safari"))>=12),pe.add("workers-pool-size",8),pe.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),pe.add("featurelayer-simplify-payload-size-factors",[1,1,4]),pe.add("featurelayer-fast-triangulation-enabled",!0),pe.add("featurelayer-animation-enabled",!0),pe.add("featurelayer-snapshot-enabled",!0),pe.add("featurelayer-snapshot-point-min-threshold",8e4),pe.add("featurelayer-snapshot-point-max-threshold",4e5),pe.add("featurelayer-snapshot-point-coverage",.1),pe.add("featurelayer-query-max-depth",4),pe.add("featurelayer-query-pausing-enabled",!1),pe.add("featurelayer-advanced-symbols",!1),pe.add("featurelayer-pbf",!0),pe.add("featurelayer-pbf-statistics",!1),pe.add("feature-layers-workers",!0),pe.add("feature-polyline-generalization-factor",1),pe.add("mapview-transitions-duration",200),pe.add("mapview-essential-goto-duration",200),pe.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),pe.add("mapserver-pbf-version-support",10.81),pe.add("mapservice-popup-identify-max-tolerance",20),pe("host-webworker")||pe("host-browser")&&(pe.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),pe.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(()=>{pe.add("esri-image-decode",!0,!0,!0)}).catch(()=>{pe.add("esri-image-decode",!1,!0,!0)})}return!1}),pe.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});var du,Br=R(()=>{du=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}};du._m=2147483647,du._a=48271,du._c=0});function rl(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 Q_(e,t,r,n){n=n||Y9;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 J9(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;Eo.clear();for(let l=0;l<n;++l)Eo.add(t[l]);i=i||Y9;let s=Math.max(0,i.last-10);for(let l=s;l<r;++l)if(Eo.has(e[l])&&(o?.push(e[l]),Eo.delete(e[l]),e[l]=e[r-1],--r,--l,Eo.size===0||r===0))return Eo.clear(),r;for(let l=0;l<s;++l)if(Eo.has(e[l])&&(o?.push(e[l]),Eo.delete(e[l]),e[l]=e[r-1],--r,--l,Eo.size===0||r===0))return Eo.clear(),r;return Eo.clear(),r}function X9(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function Q9(e,t){return e!=null}var Iz,Eoe,oh,Y9,Eo,Toe,nl=R(()=>{Br();Iz=1.5,Eoe=1/Iz;oh=class{constructor(){this.last=0}},Y9=new oh;Eo=new Set;Toe=new du});function K9(e){return e?.constructor?.name==="Int8Array"}function e6(e){return e?.constructor?.name==="Uint8Array"}function t6(e){return e?.constructor?.name==="Uint8ClampedArray"}function r6(e){return e?.constructor?.name==="Int16Array"}function n6(e){return e?.constructor?.name==="Uint16Array"}function i6(e){return e?.constructor?.name==="Int32Array"}function o6(e){return e?.constructor?.name==="Uint32Array"}function s6(e){return e?.constructor?.name==="Float32Array"}function a6(e){return e?.constructor?.name==="Float64Array"}var l6=R(()=>{tt()});function X0(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&X0(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=f6(e);if(t!=null)return t;if(u6(e))return e.clone();if(d6(e))return e.map(Ye);if(p6(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 J0(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=f6(e);if(t!=null)return t;if(d6(e)){let n=!0,i=e.map(o=>{let s=J0(o);return o!=null&&s==null&&(n=!1),s});return n?i:null}if(u6(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(p6(e))return null;let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=J0(i);if(i!=null&&o==null)return null;r[n]=o}return r}function u6(e){return typeof e.clone=="function"}function d6(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function p6(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function c6(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function f6(e){if(K9(e)||e6(e)||t6(e)||r6(e)||n6(e)||i6(e)||o6(e)||s6(e)||a6(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 m6(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)&&rl(e,t):e instanceof Set?t instanceof Set&&kz(e,t):e instanceof Map?t instanceof Map&&Oz(e,t):!!c6(e)&&c6(t)&&Lz(e,t))}function Lz(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 kz(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Oz(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 ur=R(()=>{nl();l6()});function h6(e,t,r=!1){return w6(e,t,r)}function Gi(e,t){if(t!=null)return t[e]||g6(e.split("."),!1,t)}function Zs(e,t,r){let n=e.split("."),i=n.pop(),o=g6(n,!0,r);o&&i&&(o[i]=t)}function g6(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 w6(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(l=>{o.includes(l)||o.push(l)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=w6(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var fs=R(()=>{ur()});function y6(e){return e??""}function ms(e,t){return t?e.replaceAll(Nz,typeof t=="object"?(r,n)=>y6(Gi(n,t)):(r,n)=>y6(t(n))):e}function v6(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function b6(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var Nz,il=R(()=>{fs();Nz=/\{([^}]+)\}/g});var Ys,Q0,K0,ew,To,tf,gr,Co,ol=R(()=>{Ys=class extends Error{},Q0=class extends Ys{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},K0=class extends Ys{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},ew=class extends Ys{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},To=class extends Ys{},tf=class extends Ys{constructor(t){super(`Invalid unit ${t}`)}},gr=class extends Ys{},Co=class extends Ys{constructor(){super("Zone is an abstract class")}}});var Le,Po,vi,sl,ah,K_,lh,ch,uh,dh,ph,fh,mh,hh,gh,wh,yh,vh,bh,_h,eS,Sh,xh,Eh,Th,Ch=R(()=>{Le="numeric",Po="short",vi="long",sl={year:Le,month:Le,day:Le},ah={year:Le,month:Po,day:Le},K_={year:Le,month:Po,day:Le,weekday:Po},lh={year:Le,month:vi,day:Le},ch={year:Le,month:vi,day:Le,weekday:vi},uh={hour:Le,minute:Le},dh={hour:Le,minute:Le,second:Le},ph={hour:Le,minute:Le,second:Le,timeZoneName:Po},fh={hour:Le,minute:Le,second:Le,timeZoneName:vi},mh={hour:Le,minute:Le,hourCycle:"h23"},hh={hour:Le,minute:Le,second:Le,hourCycle:"h23"},gh={hour:Le,minute:Le,second:Le,hourCycle:"h23",timeZoneName:Po},wh={hour:Le,minute:Le,second:Le,hourCycle:"h23",timeZoneName:vi},yh={year:Le,month:Le,day:Le,hour:Le,minute:Le},vh={year:Le,month:Le,day:Le,hour:Le,minute:Le,second:Le},bh={year:Le,month:Po,day:Le,hour:Le,minute:Le},_h={year:Le,month:Po,day:Le,hour:Le,minute:Le,second:Le},eS={year:Le,month:Po,day:Le,weekday:Po,hour:Le,minute:Le},Sh={year:Le,month:vi,day:Le,hour:Le,minute:Le,timeZoneName:Po},xh={year:Le,month:vi,day:Le,hour:Le,minute:Le,second:Le,timeZoneName:Po},Eh={year:Le,month:vi,day:Le,weekday:vi,hour:Le,minute:Le,timeZoneName:vi},Th={year:Le,month:vi,day:Le,weekday:vi,hour:Le,minute:Le,second:Le,timeZoneName:vi}});var Mr,pu=R(()=>{ol();Mr=class{get type(){throw new Co}get name(){throw new Co}get ianaName(){return this.name}get isUniversal(){throw new Co}offsetName(t,r){throw new Co}formatOffset(t,r){throw new Co}offset(t){throw new Co}equals(t){throw new Co}get isValid(){throw new Co}}});var tS,al,rw=R(()=>{Wn();pu();tS=null,al=class e extends Mr{static get instance(){return tS===null&&(tS=new e),tS}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return nw(t,r,n)}formatOffset(t,r){return ll(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function Rz(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 Fz(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,l,a,d,h]=n;return[s,i,o,l,a,d,h]}function $z(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],l=Dz[o];o==="era"?n[l]=s:qe(l)||(n[l]=parseInt(s,10))}return n}var ow,Dz,iw,rr,cl=R(()=>{Wn();pu();ow={};Dz={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};iw={},rr=class e extends Mr{static create(t){return iw[t]||(iw[t]=new e(t)),iw[t]}static resetCache(){iw={},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 nw(t,r,n,this.name)}formatOffset(t,r){return ll(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=Rz(this.name),[i,o,s,l,a,d,h]=n.formatToParts?$z(n,r):Fz(n,r);l==="BC"&&(i=-Math.abs(i)+1);let b=rf({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),x=+r,P=x%1e3;return x-=P>=0?P:1e3+P,(b-x)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function Vz(e,t={}){let r=JSON.stringify([e,t]),n=_6[r];return n||(n=new Intl.ListFormat(e,t),_6[r]=n),n}function nS(e,t={}){let r=JSON.stringify([e,t]),n=rS[r];return n||(n=new Intl.DateTimeFormat(e,t),rS[r]=n),n}function Uz(e,t={}){let r=JSON.stringify([e,t]),n=iS[r];return n||(n=new Intl.NumberFormat(e,t),iS[r]=n),n}function zz(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=oS[i];return o||(o=new Intl.RelativeTimeFormat(e,t),oS[i]=o),o}function Wz(){return Ph||(Ph=new Intl.DateTimeFormat().resolvedOptions().locale,Ph)}function Gz(e){let t=S6[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,S6[e]=t}return t}function Bz(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=nS(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=nS(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function jz(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function qz(e){let t=[];for(let r=1;r<=12;r++){let n=Ee.utc(2009,r,1);t.push(e(n))}return t}function Hz(e){let t=[];for(let r=1;r<=7;r++){let n=Ee.utc(2016,11,13+r);t.push(e(n))}return t}function sw(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function Zz(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 _6,rS,iS,oS,Ph,S6,sS,aS,lS,Yz,_t,Ah=R(()=>{Wn();cw();ul();dl();cl();_6={};rS={};iS={};oS={};Ph=null;S6={};sS=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 l={useGrouping:!1,...n};n.padTo>0&&(l.minimumIntegerDigits=n.padTo),this.inf=Uz(t,l)}}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):nf(t,3);return dr(r,this.padTo)}}},aS=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),l=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&rr.create(l).valid?(i=l,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=nS(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()}},lS=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&aw()&&(this.rtf=zz(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):x6(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},Yz={firstDay:1,minimalDays:4,weekend:[6,7]},_t=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||bt.defaultLocale,l=s||(o?"en-US":Wz()),a=r||bt.defaultNumberingSystem,d=n||bt.defaultOutputCalendar,h=Mh(i)||bt.defaultWeekSettings;return new e(l,a,d,h,s)}static resetCache(){Ph=null,rS={},iS={},oS={}}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,l,a]=Bz(t);this.locale=s,this.numberingSystem=r||l||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=jz(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=Zz(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,Mh(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 sw(this,t,cS,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=qz(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return sw(this,t,uS,()=>{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]=Hz(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return sw(this,void 0,()=>dS,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ee.utc(2016,11,13,9),Ee.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return sw(this,t,pS,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ee.utc(-40,1,1),Ee.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(l=>l.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new sS(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new aS(t,this.intl,r)}relFormatter(t={}){return new lS(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Vz(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:lw()?Gz(this.locale):Yz}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 mS,Ot,of=R(()=>{Wn();pu();mS=null,Ot=class e extends Mr{static get utcInstance(){return mS===null&&(mS=new e(0)),mS}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(fu(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ll(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ll(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return ll(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 sf,hS=R(()=>{pu();sf=class extends Mr{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 Mr)return e;if(E6(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?al.instance:n==="utc"||n==="gmt"?Ot.utcInstance:Ot.parseSpecifier(n)||rr.create(e)}else return Ao(e)?Ot.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new sf(e)}var uw=R(()=>{pu();cl();of();hS();Wn();rw()});function C6(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(gS.hanidec)!==-1)t+=Jz.indexOf(e[r]);else for(let i in T6){let[o,s]=T6[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function P6(){af={}}function Bi({numberingSystem:e},t=""){let r=e||"latn";return af[r]||(af[r]={}),af[r][t]||(af[r][t]=new RegExp(`${gS[r]}${t}`)),af[r][t]}var gS,T6,Jz,af,wS=R(()=>{gS={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"},T6={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]},Jz=gS.hanidec.replace(/[\[|\]]/g,"").split("");af={}});var M6,A6,I6,L6,k6,O6,N6,R6,bt,ul=R(()=>{rw();cl();Ah();dl();uw();Wn();wS();M6=()=>Date.now(),A6="system",I6=null,L6=null,k6=null,O6=60,R6=null,bt=class{static get now(){return M6}static set now(t){M6=t}static set defaultZone(t){A6=t}static get defaultZone(){return Mo(A6,al.instance)}static get defaultLocale(){return I6}static set defaultLocale(t){I6=t}static get defaultNumberingSystem(){return L6}static set defaultNumberingSystem(t){L6=t}static get defaultOutputCalendar(){return k6}static set defaultOutputCalendar(t){k6=t}static get defaultWeekSettings(){return R6}static set defaultWeekSettings(t){R6=Mh(t)}static get twoDigitCutoffYear(){return O6}static set twoDigitCutoffYear(t){O6=t%100}static get throwOnInvalid(){return N6}static set throwOnInvalid(t){N6=t}static resetCaches(){_t.resetCache(),rr.resetCache(),Ee.resetCache(),P6()}}});var on,Ih=R(()=>{on=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function ji(e,t){return new on("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dw(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 $6(e,t,r){return r+(hu(e)?F6:D6)[t-1]}function V6(e,t){let r=hu(e)?F6:D6,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function pw(e,t){return(e-t+7)%7+1}function Lh(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=$6(n,i,o),l=pw(dw(n,i,o),r),a=Math.floor((s-l+14-t)/7),d;return a<1?(d=n-1,a=mu(d,t,r)):a>mu(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:l,...Oh(e)}}function yS(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=pw(dw(n,1,t),r),l=pl(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=pl(d)):a>l?(d=n+1,a-=pl(n)):d=n;let{month:h,day:g}=V6(d,a);return{year:d,month:h,day:g,...Oh(e)}}function fw(e){let{year:t,month:r,day:n}=e,i=$6(t,r,n);return{year:t,ordinal:i,...Oh(e)}}function vS(e){let{year:t,ordinal:r}=e,{month:n,day:i}=V6(t,r);return{year:t,month:n,day:i,...Oh(e)}}function bS(e,t){if(!qe(e.localWeekday)||!qe(e.localWeekNumber)||!qe(e.localWeekYear)){if(!qe(e.weekday)||!qe(e.weekNumber)||!qe(e.weekYear))throw new To("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 U6(e,t=4,r=1){let n=kh(e.weekYear),i=bi(e.weekNumber,1,mu(e.weekYear,t,r)),o=bi(e.weekday,1,7);return n?i?o?!1:ji("weekday",e.weekday):ji("week",e.weekNumber):ji("weekYear",e.weekYear)}function z6(e){let t=kh(e.year),r=bi(e.ordinal,1,pl(e.year));return t?r?!1:ji("ordinal",e.ordinal):ji("year",e.year)}function _S(e){let t=kh(e.year),r=bi(e.month,1,12),n=bi(e.day,1,lf(e.year,e.month));return t?r?n?!1:ji("day",e.day):ji("month",e.month):ji("year",e.year)}function SS(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=bi(t,0,23)||t===24&&r===0&&n===0&&i===0,s=bi(r,0,59),l=bi(n,0,59),a=bi(i,0,999);return o?s?l?a?!1:ji("millisecond",i):ji("second",n):ji("minute",r):ji("hour",t)}var D6,F6,xS=R(()=>{Wn();Ih();ol();D6=[0,31,59,90,120,151,181,212,243,273,304,334],F6=[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 kh(e){return typeof e=="number"&&e%1===0}function E6(e){return typeof e=="string"}function G6(e){return Object.prototype.toString.call(e)==="[object Date]"}function aw(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function lw(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function B6(e){return Array.isArray(e)?e:[e]}function ES(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 j6(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function fl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Mh(e){if(e==null)return null;if(typeof e!="object")throw new gr("Week settings must be an object");if(!bi(e.firstDay,1,7)||!bi(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!bi(t,1,7)))throw new gr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function bi(e,t,r){return kh(e)&&e>=t&&e<=r}function Xz(e,t){return e-t*Math.floor(e/t)}function dr(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function Js(e){if(!(qe(e)||e===null||e===""))return parseInt(e,10)}function ml(e){if(!(qe(e)||e===null||e===""))return parseFloat(e)}function Nh(e){if(!(qe(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function nf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function hu(e){return e%4===0&&(e%100!==0||e%400===0)}function pl(e){return hu(e)?366:365}function lf(e,t){let r=Xz(t-1,12)+1,n=e+(t-r)/12;return r===2?hu(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function rf(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 W6(e,t,r){return-pw(dw(e,1,t),r)+t-1}function mu(e,t=4,r=1){let n=W6(e,t,r),i=W6(e+1,t,r);return(pl(e)-n+i)/7}function Rh(e){return e>99?e:e>bt.twoDigitCutoffYear?1900+e:2e3+e}function nw(e,t,r,n=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:t,...o},l=new Intl.DateTimeFormat(r,s).formatToParts(i).find(a=>a.type.toLowerCase()==="timezonename");return l?l.value:null}function fu(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 TS(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new gr(`Invalid unit value ${e}`);return t}function cf(e,t){let r={};for(let n in e)if(fl(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=TS(i)}return r}function ll(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}${dr(r,2)}:${dr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${dr(r,2)}${dr(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Oh(e){return j6(e,["hour","minute","second","millisecond"])}var Wn=R(()=>{ol();ul();xS()});function cS(e){switch(e){case"narrow":return[...Kz];case"short":return[...CS];case"long":return[...Qz];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 uS(e){switch(e){case"narrow":return[...eW];case"short":return[...MS];case"long":return[...PS];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function pS(e){switch(e){case"narrow":return[...nW];case"short":return[...rW];case"long":return[...tW];default:return null}}function q6(e){return dS[e.hour<12?0:1]}function H6(e,t){return uS(t)[e.weekday-1]}function Z6(e,t){return cS(t)[e.month-1]}function Y6(e,t){return pS(t)[e.year<0?0:1]}function x6(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,l=Math.abs(t),a=l===1,d=i[e],h=n?a?d[1]:d[2]||d[1]:a?i[e][0]:e;return s?`${l} ${h} ago`:`in ${l} ${h}`}var Qz,CS,Kz,PS,MS,eW,dS,tW,rW,nW,cw=R(()=>{Ch();Wn();Qz=["January","February","March","April","May","June","July","August","September","October","November","December"],CS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Kz=["J","F","M","A","M","J","J","A","S","O","N","D"];PS=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],MS=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],eW=["M","T","W","T","F","S","S"];dS=["AM","PM"],tW=["Before Christ","Anno Domini"],rW=["BC","AD"],nW=["B","A"]});function J6(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var iW,sn,Dh=R(()=>{cw();Ch();Wn();iW={D:sl,DD:ah,DDD:lh,DDDD:ch,t:uh,tt:dh,ttt:ph,tttt:fh,T:mh,TT:hh,TTT:gh,TTTT:wh,f:yh,ff:bh,fff:Sh,ffff:Eh,F:vh,FF:_h,FFF:xh,FFFF:Th},sn=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 l=t.charAt(s);l==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||l===r?n+=l:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=l,r=l)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(t){return iW[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 dr(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=(x,P)=>this.loc.extract(t,x,P),s=x=>t.isOffsetFixed&&t.offset===0&&x.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,x.format):"",l=()=>n?q6(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(x,P)=>n?Z6(t,x):o(P?{month:x}:{month:x,day:"numeric"},"month"),d=(x,P)=>n?H6(t,x):o(P?{weekday:x}:{weekday:x,month:"long",day:"numeric"},"weekday"),h=x=>{let P=e.macroTokenToFormatOpts(x);return P?this.formatWithSystemDefault(t,P):x},g=x=>n?Y6(t,x):o({era:x},"era"),b=x=>{switch(x){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 l();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(x)}};return J6(e.parseFormat(r),b)}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),[]),l=t.shiftTo(...s.map(n).filter(a=>a));return J6(o,i(l))}}});function df(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function pf(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,l,a]=o(t,i);return[{...r,...s},l||n,a]},[{},null,1]).slice(0,2)}function ff(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 K6(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=Js(t[r+i]);return[n,null,r+i]}}function uf(e,t,r){let n=e[t];return qe(n)?r:Js(n)}function fW(e,t){return[{year:uf(e,t),month:uf(e,t+1,1),day:uf(e,t+2,1)},null,t+3]}function mf(e,t){return[{hours:uf(e,t,0),minutes:uf(e,t+1,0),seconds:uf(e,t+2,0),milliseconds:Nh(e[t+3])},null,t+4]}function Fh(e,t){let r=!e[t]&&!e[t+1],n=fu(e[t+1],e[t+2]),i=r?null:Ot.instance(n);return[{},i,t+3]}function $h(e,t){let r=e[t]?rr.create(e[t]):null;return[{},r,t+1]}function gW(e){let[t,r,n,i,o,s,l,a,d]=e,h=t[0]==="-",g=a&&a[0]==="-",b=(x,P=!1)=>x!==void 0&&(P||x&&h)?-x:x;return[{years:b(ml(r)),months:b(ml(n)),weeks:b(ml(i)),days:b(ml(o)),hours:b(ml(s)),minutes:b(ml(l)),seconds:b(ml(a),a==="-0"),milliseconds:b(Nh(d),g)}]}function LS(e,t,r,n,i,o,s){let l={year:t.length===2?Rh(Js(t)):Js(t),month:CS.indexOf(r)+1,day:Js(n),hour:Js(i),minute:Js(o)};return s&&(l.second=Js(s)),e&&(l.weekday=e.length>3?PS.indexOf(e)+1:MS.indexOf(e)+1),l}function vW(e){let[,t,r,n,i,o,s,l,a,d,h,g]=e,b=LS(t,i,n,r,o,s,l),x;return a?x=wW[a]:d?x=0:x=fu(h,g),[b,new Ot(x)]}function bW(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function X6(e){let[,t,r,n,i,o,s,l]=e;return[LS(t,i,n,r,o,s,l),Ot.utcInstance]}function EW(e){let[,t,r,n,i,o,s,l]=e;return[LS(t,l,r,n,i,o,s),Ot.utcInstance]}function i8(e){return ff(e,[TW,n8],[CW,AW],[PW,IW],[MW,LW])}function o8(e){return ff(bW(e),[yW,vW])}function s8(e){return ff(e,[_W,X6],[SW,X6],[xW,EW])}function a8(e){return ff(e,[hW,gW])}function l8(e){return ff(e,[mW,kW])}function c8(e){return ff(e,[OW,n8],[NW,RW])}var Q6,e8,oW,AS,t8,IS,sW,aW,lW,cW,uW,dW,r8,pW,mW,hW,wW,yW,_W,SW,xW,TW,CW,PW,MW,n8,AW,IW,LW,kW,OW,NW,RW,kS=R(()=>{Wn();cw();of();cl();Q6=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;e8=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,oW=`(?:${e8.source}?(?:\\[(${Q6.source})\\])?)?`,AS=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,t8=RegExp(`${AS.source}${oW}`),IS=RegExp(`(?:T${t8.source})?`),sW=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,aW=/(\d{4})-?W(\d\d)(?:-?(\d))?/,lW=/(\d{4})-?(\d{3})/,cW=K6("weekYear","weekNumber","weekDay"),uW=K6("year","ordinal"),dW=/(\d{4})-(\d\d)-(\d\d)/,r8=RegExp(`${AS.source} ?(?:${e8.source}|(${Q6.source}))?`),pW=RegExp(`(?: ${r8.source})?`);mW=RegExp(`^T?${AS.source}$`),hW=/^-?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)?)?)$/;wW={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};yW=/^(?:(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)))$/;_W=/^(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$/,SW=/^(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$/,xW=/^(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})$/;TW=df(sW,IS),CW=df(aW,IS),PW=df(lW,IS),MW=df(t8),n8=pf(fW,mf,Fh,$h),AW=pf(cW,mf,Fh,$h),IW=pf(uW,mf,Fh,$h),LW=pf(mf,Fh,$h);kW=pf(mf);OW=df(dW,pW),NW=df(r8),RW=pf(mf,Fh,$h)});function hl(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 pr(n)}function f8(e,t){let r=t.milliseconds??0;for(let n of $W.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function d8(e,t){let r=f8(e,t)<0?-1:1;gu.reduceRight((n,i)=>{if(qe(t[i]))return n;if(n){let o=t[n]*r,s=e[i][n],l=Math.floor(o/s);t[i]+=l*r,t[n]-=l*s*r}return i},null),gu.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 VW(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var u8,p8,DW,qi,hf,FW,gu,$W,pr,Vh=R(()=>{ol();Dh();Ih();Ah();kS();Wn();ul();dl();u8="Invalid Duration",p8={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}},DW={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},...p8},qi=146097/400,hf=146097/4800,FW={years:{quarters:4,months:12,weeks:qi/7,days:qi,hours:qi*24,minutes:qi*24*60,seconds:qi*24*60*60,milliseconds:qi*24*60*60*1e3},quarters:{months:3,weeks:qi/28,days:qi/4,hours:qi*24/4,minutes:qi*24*60/4,seconds:qi*24*60*60/4,milliseconds:qi*24*60*60*1e3/4},months:{weeks:hf/7,days:hf,hours:hf*24,minutes:hf*24*60,seconds:hf*24*60*60,milliseconds:hf*24*60*60*1e3},...p8},gu=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],$W=gu.slice(0).reverse();pr=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?FW:DW;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||_t.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 gr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:cf(t,e.normalizeUnit),loc:_t.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 gr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=a8(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]=l8(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 gr("need to specify a reason the Duration is invalid");let n=t instanceof on?t:new on(t,r);if(bt.throwOnInvalid)throw new ew(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 tf(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?sn.create(this.loc,n).formatDurationFromString(this,t):u8}toHuman(t={}){if(!this.isValid)return u8;let r=gu.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+=nf(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},Ee.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?f8(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 gu)(fl(r.values,i)||fl(this.values,i))&&(n[i]=r.get(i)+this.get(i));return hl(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]=TS(t(this.values[n],n));return hl(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...cf(t,e.normalizeUnit)};return hl(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 hl(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return d8(this.matrix,t),hl(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=VW(this.normalize().shiftToAll().toObject());return hl(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 gu)if(t.indexOf(s)>=0){o=s;let l=0;for(let d in n)l+=this.matrix[d][s]*n[d],n[d]=0;Ao(i[s])&&(l+=i[s]);let a=Math.trunc(l);r[s]=a,n[s]=(l*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 d8(this.matrix,r),hl(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 hl(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 gu)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function UW(e,t){return!e||!e.isValid?Xs.invalid("missing or invalid start"):!t||!t.isValid?Xs.invalid("missing or invalid end"):t<e?Xs.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 gf,Xs,OS=R(()=>{dl();Vh();ul();ol();Ih();Dh();Ch();gf="Invalid Interval";Xs=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 gr("need to specify a reason the Interval is invalid");let n=t instanceof on?t:new on(t,r);if(bt.throwOnInvalid)throw new K0(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=wf(t),i=wf(r),o=UW(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=pr.fromDurationLike(r),i=wf(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=pr.fromDurationLike(r),i=wf(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=Ee.fromISO(n,r),s=o.isValid}catch{s=!1}let l,a;try{l=Ee.fromISO(i,r),a=l.isValid}catch{a=!1}if(s&&a)return e.fromDateTimes(o,l);if(s){let d=pr.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=pr.fromISO(n,r);if(d.isValid)return e.before(l,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(wf).filter(s=>this.contains(s)).sort((s,l)=>s.toMillis()-l.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,l=+s>+this.e?this.e:s;n.push(e.fromDateTimes(i,l)),i=l,o+=1}return n}splitBy(t){let r=pr.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 l=this.start.plus(r.mapUnits(a=>a*i));o=+l>+this.e?this.e:l,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),l=s.sort((a,d)=>a.time-d.time);for(let a of l)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()})`:gf}[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=sl,r={}){return this.isValid?sn.create(this.s.loc.clone(r),t).formatInterval(this):gf}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:gf}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:gf}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:gf}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:gf}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):pr.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var Qs,NS=R(()=>{dl();ul();Ah();cl();uw();Wn();Qs=class{static hasDST(t=bt.defaultZone){let r=Ee.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return rr.isValidZone(t)}static normalizeZone(t){return Mo(t,bt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||_t.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||_t.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||_t.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||_t.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||_t.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||_t.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||_t.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return _t.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return _t.create(r,null,"gregory").eras(t)}static features(){return{relative:aw(),localeWeek:lw()}}}});function m8(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(pr.fromMillis(n).as("days"))}function zW(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=m8(a,d);return(h-h%7)/7}],["days",m8]],i={},o=e,s,l;for(let[a,d]of n)r.indexOf(a)>=0&&(s=a,i[a]=d(e,t),l=o.plus(i),l>t?(i[a]--,e=o.plus(i),e>t&&(l=e,i[a]--,e=o.plus(i))):e=l);return[e,i,l,s]}function h8(e,t,r,n){let[i,o,s,l]=zW(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({[l]:1})),s!==i&&(o[l]=(o[l]||0)+a/(s-i)));let h=pr.fromObject(o,n);return d.length>0?pr.fromMillis(a,n).shiftTo(...d).plus(h):h}var g8=R(()=>{Vh()});function Et(e,t=r=>r){return{regex:e,deser:([r])=>t(C6(r))}}function BW(e){return e.replace(/\./g,"\\.?").replace(b8,v8)}function w8(e){return e.replace(/\./g,"").replace(b8," ").toLowerCase()}function Io(e,t){return e===null?null:{regex:RegExp(e.map(BW).join("|")),deser:([r])=>e.findIndex(n=>w8(r)===w8(n))+t}}function y8(e,t){return{regex:e,deser:([,r,n])=>fu(r,n),groups:t}}function mw(e){return{regex:e,deser:([t])=>t}}function jW(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function qW(e,t){let r=Bi(t),n=Bi(t,"{2}"),i=Bi(t,"{3}"),o=Bi(t,"{4}"),s=Bi(t,"{6}"),l=Bi(t,"{1,2}"),a=Bi(t,"{1,3}"),d=Bi(t,"{1,6}"),h=Bi(t,"{1,9}"),g=Bi(t,"{2,4}"),b=Bi(t,"{4,6}"),x=F=>({regex:RegExp(jW(F.val)),deser:([G])=>G,literal:!0}),A=(F=>{if(e.literal)return x(F);switch(F.val){case"G":return Io(t.eras("short"),0);case"GG":return Io(t.eras("long"),0);case"y":return Et(d);case"yy":return Et(g,Rh);case"yyyy":return Et(o);case"yyyyy":return Et(b);case"yyyyyy":return Et(s);case"M":return Et(l);case"MM":return Et(n);case"MMM":return Io(t.months("short",!0),1);case"MMMM":return Io(t.months("long",!0),1);case"L":return Et(l);case"LL":return Et(n);case"LLL":return Io(t.months("short",!1),1);case"LLLL":return Io(t.months("long",!1),1);case"d":return Et(l);case"dd":return Et(n);case"o":return Et(a);case"ooo":return Et(i);case"HH":return Et(n);case"H":return Et(l);case"hh":return Et(n);case"h":return Et(l);case"mm":return Et(n);case"m":return Et(l);case"q":return Et(l);case"qq":return Et(n);case"s":return Et(l);case"ss":return Et(n);case"S":return Et(a);case"SSS":return Et(i);case"u":return mw(h);case"uu":return mw(l);case"uuu":return Et(r);case"a":return Io(t.meridiems(),0);case"kkkk":return Et(o);case"kk":return Et(g,Rh);case"W":return Et(l);case"WW":return Et(n);case"E":case"c":return Et(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 y8(new RegExp(`([+-]${l.source})(?::(${n.source}))?`),2);case"ZZZ":return y8(new RegExp(`([+-]${l.source})(${n.source})?`),2);case"z":return mw(/[a-z_+-/]{1,256}?/i);case" ":return mw(/[^\S\n\r]/);default:return x(F)}})(e)||{invalidReason:WW};return A.token=e,A}function ZW(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 l=HW[s];if(typeof l=="object"&&(l=l[o]),l)return{literal:!1,val:l}}function YW(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function JW(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(fl(r,s)){let l=r[s],a=l.groups?l.groups+1:1;!l.literal&&l.token&&(i[l.token.val[0]]=l.deser(n.slice(o,o+a))),o+=a}return[n,i]}else return[n,{}]}function XW(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=rr.create(e.z)),qe(e.Z)||(r||(r=new Ot(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=Nh(e.u)),[Object.keys(e).reduce((o,s)=>{let l=t(s);return l&&(o[l]=e[s]),o},{}),r,n]}function QW(){return RS||(RS=Ee.fromMillis(1555555555555)),RS}function KW(e,t){if(e.literal)return e;let r=sn.macroTokenToFormatOpts(e.val),n=$S(r,t);return n==null||n.includes(void 0)?e:n}function DS(e,t){return Array.prototype.concat(...e.map(r=>KW(r,t)))}function FS(e,t,r){return new Uh(e,r).explainFromTokens(t)}function _8(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=FS(e,t,r);return[n,i,o,s]}function $S(e,t){if(!e)return null;let n=sn.create(t,e).dtFormatter(QW()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>ZW(s,e,o))}var WW,GW,v8,b8,HW,RS,Uh,S8=R(()=>{Wn();Dh();of();cl();dl();wS();ol();WW="missing Intl.DateTimeFormat.formatToParts support";GW="\xA0",v8=`[ ${GW}]`,b8=new RegExp(v8,"g");HW={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"}};RS=null;Uh=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=DS(sn.parseFormat(r),t),this.units=this.tokens.map(n=>qW(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=YW(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=JW(t,this.regex,this.handlers),[i,o,s]=n?XW(n):[null,null,void 0];if(fl(n,"a")&&fl(n,"H"))throw new To("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 zh(e){return new on("unsupported zone",`the zone "${e.name}" is not supported`)}function US(e){return e.weekData===null&&(e.weekData=Lh(e.c)),e.weekData}function zS(e){return e.localWeekData===null&&(e.localWeekData=Lh(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function wu(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ee({...r,...t,old:r})}function I8(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 hw(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 ww(e,t,r){return I8(rf(e),t,r)}function E8(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,lf(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=pr.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"),l=rf(o),[a,d]=I8(l,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function yf(e,t,r,n,i,o){let{setZone:s,zone:l}=r;if(e&&Object.keys(e).length!==0||t){let a=t||l,d=Ee.fromObject(e,{...r,zone:a,specificOffset:o});return s?d:d.setZone(l)}else return Ee.invalid(new on("unparsable",`the input "${i}" can't be parsed as ${n}`))}function gw(e,t,r=!0){return e.isValid?sn.create(_t.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function WS(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=dr(e.c.year,r?6:4),t?(n+="-",n+=dr(e.c.month),n+="-",n+=dr(e.c.day)):(n+=dr(e.c.month),n+=dr(e.c.day)),n}function T8(e,t,r,n,i,o){let s=dr(e.c.hour);return t?(s+=":",s+=dr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=dr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=dr(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=dr(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=dr(Math.trunc(-e.o/60)),s+=":",s+=dr(Math.trunc(-e.o%60))):(s+="+",s+=dr(Math.trunc(e.o/60)),s+=":",s+=dr(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function iG(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 tf(e);return t}function C8(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return iG(e)}}function oG(e){return vw[e]||(yw===void 0&&(yw=bt.now()),vw[e]=e.offset(yw)),vw[e]}function P8(e,t){let r=Mo(t.zone,bt.defaultZone);if(!r.isValid)return Ee.invalid(zh(r));let n=_t.fromObject(t),i,o;if(qe(e.year))i=bt.now();else{for(let a of k8)qe(e[a])&&(e[a]=L8[a]);let s=_S(e)||SS(e);if(s)return Ee.invalid(s);let l=oG(r);[i,o]=ww(e,l,r)}return new Ee({ts:i,zone:r,loc:n,o})}function M8(e,t,r){let n=qe(r.round)?!0:r.round,i=(s,l)=>(s=nf(s,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(s,l)),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 l=o(s);if(Math.abs(l)>=1)return i(l,s)}return i(e>t?-0:0,r.units[r.units.length-1])}function A8(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 wf(e){if(Ee.isDateTime(e))return e;if(e&&e.valueOf&&Ao(e.valueOf()))return Ee.fromJSDate(e);if(e&&typeof e=="object")return Ee.fromObject(e);throw new gr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var VS,x8,L8,eG,tG,k8,rG,nG,yw,vw,Ee,dl=R(()=>{Vh();OS();ul();NS();Dh();of();Ah();Wn();uw();g8();kS();S8();xS();Ch();ol();Ih();VS="Invalid DateTime",x8=864e13;L8={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},eG={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},tG={ordinal:1,hour:0,minute:0,second:0,millisecond:0},k8=["year","month","day","hour","minute","second","millisecond"],rG=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],nG=["year","ordinal","hour","minute","second","millisecond"];vw={},Ee=class e{constructor(t){let r=t.zone||bt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new on("invalid input"):null)||(r.isValid?null:zh(r));this.ts=qe(t.ts)?bt.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 l=Ao(t.o)&&!t.old?t.o:r.offset(this.ts);i=hw(this.ts,l),n=Number.isNaN(i.year)?new on("invalid input"):null,i=n?null:i,o=n?null:l}this._zone=r,this.loc=t.loc||_t.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]=A8(arguments),[n,i,o,s,l,a,d]=r;return P8({year:n,month:i,day:o,hour:s,minute:l,second:a,millisecond:d},t)}static utc(){let[t,r]=A8(arguments),[n,i,o,s,l,a,d]=r;return t.zone=Ot.utcInstance,P8({year:n,month:i,day:o,hour:s,minute:l,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=G6(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=Mo(r.zone,bt.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:_t.fromObject(r)}):e.invalid(zh(i))}static fromMillis(t,r={}){if(Ao(t))return t<-x8||t>x8?e.invalid("Timestamp out of range"):new e({ts:t,zone:Mo(r.zone,bt.defaultZone),loc:_t.fromObject(r)});throw new gr(`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,bt.defaultZone),loc:_t.fromObject(r)});throw new gr("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=Mo(r.zone,bt.defaultZone);if(!n.isValid)return e.invalid(zh(n));let i=_t.fromObject(r),o=cf(t,C8),{minDaysInFirstWeek:s,startOfWeek:l}=bS(o,i),a=bt.now(),d=qe(r.specificOffset)?n.offset(a):r.specificOffset,h=!qe(o.ordinal),g=!qe(o.year),b=!qe(o.month)||!qe(o.day),x=g||b,P=o.weekYear||o.weekNumber;if((x||h)&&P)throw new To("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(b&&h)throw new To("Can't mix ordinal dates with month/day");let A=P||o.weekday&&!x,F,G,$=hw(a,d);A?(F=rG,G=eG,$=Lh($,s,l)):h?(F=nG,G=tG,$=fw($)):(F=k8,G=L8);let W=!1;for(let xe of F){let Oe=o[xe];qe(Oe)?W?o[xe]=G[xe]:o[xe]=$[xe]:W=!0}let J=A?U6(o,s,l):h?z6(o):_S(o),K=J||SS(o);if(K)return e.invalid(K);let ce=A?yS(o,s,l):h?vS(o):o,[z,fe]=ww(ce,d,n),ke=new e({ts:z,zone:n,o:fe,loc:i});return o.weekday&&x&&t.weekday!==ke.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${ke.toISO()}`):ke.isValid?ke:e.invalid(ke.invalid)}static fromISO(t,r={}){let[n,i]=i8(t);return yf(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=o8(t);return yf(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=s8(t);return yf(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(qe(t)||qe(r))throw new gr("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=_t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[l,a,d,h]=_8(s,t,r);return h?e.invalid(h):yf(l,a,n,`format ${r}`,t,d)}static fromString(t,r,n={}){return e.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=c8(t);return yf(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new gr("need to specify a reason the DateTime is invalid");let n=t instanceof on?t:new on(t,r);if(bt.throwOnInvalid)throw new Q0(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=$S(t,_t.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return DS(sn.parseFormat(t),_t.fromObject(r)).map(i=>i.val).join("")}static resetCache(){yw=void 0,vw={}}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?US(this).weekYear:NaN}get weekNumber(){return this.isValid?US(this).weekNumber:NaN}get weekday(){return this.isValid?US(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?zS(this).weekday:NaN}get localWeekNumber(){return this.isValid?zS(this).weekNumber:NaN}get localWeekYear(){return this.isValid?zS(this).weekYear:NaN}get ordinal(){return this.isValid?fw(this.c).ordinal:NaN}get monthShort(){return this.isValid?Qs.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Qs.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Qs.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Qs.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=rf(this.c),i=this.zone.offset(n-t),o=this.zone.offset(n+t),s=this.zone.offset(n-i*r),l=this.zone.offset(n-o*r);if(s===l)return[this];let a=n-s*r,d=n-l*r,h=hw(a,s),g=hw(d,l);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[wu(this,{ts:a}),wu(this,{ts:d})]:[this]}get isInLeapYear(){return hu(this.year)}get daysInMonth(){return lf(this.year,this.month)}get daysInYear(){return this.isValid?pl(this.year):NaN}get weeksInWeekYear(){return this.isValid?mu(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?mu(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=sn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(Ot.instance(t),r)}toLocal(){return this.setZone(bt.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=Mo(t,bt.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]=ww(s,o,t)}return wu(this,{ts:i,zone:t})}else return e.invalid(zh(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return wu(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=cf(t,C8),{minDaysInFirstWeek:n,startOfWeek:i}=bS(r,this.loc),o=!qe(r.weekYear)||!qe(r.weekNumber)||!qe(r.weekday),s=!qe(r.ordinal),l=!qe(r.year),a=!qe(r.month)||!qe(r.day),d=l||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new To("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new To("Can't mix ordinal dates with month/day");let g;o?g=yS({...Lh(this.c,n,i),...r},n,i):qe(r.ordinal)?(g={...this.toObject(),...r},qe(r.day)&&(g.day=Math.min(lf(g.year,g.month),g.day))):g=vS({...fw(this.c),...r});let[b,x]=ww(g,this.o,this.zone);return wu(this,{ts:b,o:x})}plus(t){if(!this.isValid)return this;let r=pr.fromDurationLike(t);return wu(this,E8(this,r))}minus(t){if(!this.isValid)return this;let r=pr.fromDurationLike(t).negate();return wu(this,E8(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=pr.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?sn.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):VS}toLocaleString(t=sl,r={}){return this.isValid?sn.create(this.loc.clone(r),t).formatDateTime(this):VS}toLocaleParts(t={}){return this.isValid?sn.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",l=WS(this,s);return l+="T",l+=T8(this,s,r,n,i,o),l}toISODate({format:t="extended"}={}){return this.isValid?WS(this,t==="extended"):null}toISOWeekDate(){return gw(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":"")+T8(this,s==="extended",r,t,n,o):null}toRFC2822(){return gw(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return gw(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?WS(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")),gw(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():VS}[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 pr.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=B6(r).map(pr.normalizeUnit),s=t.valueOf()>this.valueOf(),l=s?this:t,a=s?t:this,d=h8(l,a,o,i);return s?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(e.now(),t,r)}until(t){return this.isValid?Xs.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),M8(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?M8(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 gr("min requires all arguments be DateTimes");return ES(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new gr("max requires all arguments be DateTimes");return ES(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=_t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return FS(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=_t.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Uh(o,t)}static fromFormatParser(t,r,n={}){if(qe(t)||qe(r))throw new gr("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=_t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new gr(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:l,zone:a,specificOffset:d,invalidReason:h}=r.explainFromTokens(t);return h?e.invalid(h):yf(l,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return sl}static get DATE_MED(){return ah}static get DATE_MED_WITH_WEEKDAY(){return K_}static get DATE_FULL(){return lh}static get DATE_HUGE(){return ch}static get TIME_SIMPLE(){return uh}static get TIME_WITH_SECONDS(){return dh}static get TIME_WITH_SHORT_OFFSET(){return ph}static get TIME_WITH_LONG_OFFSET(){return fh}static get TIME_24_SIMPLE(){return mh}static get TIME_24_WITH_SECONDS(){return hh}static get TIME_24_WITH_SHORT_OFFSET(){return gh}static get TIME_24_WITH_LONG_OFFSET(){return wh}static get DATETIME_SHORT(){return yh}static get DATETIME_SHORT_WITH_SECONDS(){return vh}static get DATETIME_MED(){return bh}static get DATETIME_MED_WITH_SECONDS(){return _h}static get DATETIME_MED_WITH_WEEKDAY(){return eS}static get DATETIME_FULL(){return Sh}static get DATETIME_FULL_WITH_SECONDS(){return xh}static get DATETIME_HUGE(){return Eh}static get DATETIME_HUGE_WITH_SECONDS(){return Th}}});var In=R(()=>{dl();Vh();OS();NS();pu();of();cl();hS();rw();ul()});function yu(e){return e instanceof Mr?e===jr.instance:e?.toString().toLowerCase()==="unknown"}function bw(e){return yu(e)?jr.instance:e}var jr,Wh=R(()=>{In();jr=class{};jr.instance=new rr("Etc/UTC")});function vf(e,t,r){return e<t?e-t:e>r?e-r:0}function bf(e,t,r){return e<t?t:e>r?r:e}function Lo(e,t=!0){if(e instanceof Mr)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return jr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=Ot.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=rr.create(e);if(!r.isValid){if(t)throw new GS(_w.TimeZoneNotRecognized);return null}return r}var _w,sG,GS,_f,BS=R(()=>{il();Wh();In();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(_w||(_w={}));sG={[_w.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},GS=class e extends Error{constructor(t,r){super(ms(sG[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};_f=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,l=0,a){if(isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(l))return null;let d=Ee.local(t,r).daysInMonth,h=Ee.fromObject({day:bf(n,1,d),year:t,month:bf(r,1,12),hour:bf(i,0,23),minute:bf(o,0,59),second:bf(s,0,59),millisecond:bf(l,0,999)},{zone:Lo(a)});return h=h.plus({months:vf(r,1,12),days:vf(n,1,d),hours:vf(i,0,23),minutes:vf(o,0,59),seconds:vf(s,0,59),milliseconds:vf(l,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===jr.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(Ee.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Lo(r);return new e(Ee.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(Ee.fromMillis(t,{zone:jr.instance}))}static unknownDateJSToArcadeDate(t){return new e(Ee.fromMillis(t.getTime(),{zone:jr.instance}))}static epochToArcadeDate(t,r="system"){let n=Lo(r);return new e(Ee.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===jr.instance||n===jr.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(Ee.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(Ee.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===jr.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=Ee.fromISO(t,{setZone:!0});return new e(r)}}});function Tt(e){return e?{remove(){e&&(e(),e=void 0)}}:aG}function lG(e){e.forEach(t=>t?.remove())}function vu(e){return Tt(()=>lG(e))}var aG,ri=R(()=>{aG={remove:()=>{}}});function N8(){let e=jS?.getAttribute("lang"),t=globalThis.navigator?.language;return uG??e??t??"en"}function Hi(){return Gh===void 0&&(Gh=N8()),Gh}function qS(e){return Sw.push(e),Tt(()=>Sw.splice(Sw.indexOf(e),1))}function Sf(e){return xw.push(e),Tt(()=>xw.splice(xw.indexOf(e),1))}function O8(){let e=cG??N8();Gh!==e&&([...xw].forEach(t=>t(e)),Gh=e,[...Sw].forEach(t=>t(e)))}var cG,Gh,uG,jS,Sw,xw,gl=R(()=>{ri();uG=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,jS=globalThis.document?.documentElement;Sw=[];xw=[];globalThis.addEventListener?.("languagechange",O8),jS&&new MutationObserver(()=>{O8()}).observe(jS,{attributeFilter:["lang"]})});function R8(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 an,Bh=R(()=>{BS();gl();In();an=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 Ee.fromObject({day:this.day,month:this.month,year:this.year},{zone:Lo(t)})}toDateTimeLuxon(t){return Ee.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=R8(t)),!t)return"";let n=this.toDateTime("unknown");return _f.dateTimeToArcadeDate(n).toFormat(t,{locale:Hi(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return _f.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 Ee.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=Ee.fromMillis(t,{zone:Ot.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=Ee.fromSeconds(t,{zone:Ot.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=R8(r))&&n.push(r);else if(r===null||r===""){let i=Ee.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Ee.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=Ee.fromJSDate(new Date).setZone(Lo(t));return new e(r.year,r.month,r.day)}}});var ee,dG,oe,wl=R(()=>{il();(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"})(ee||(ee={}));dG={[ee.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[ee.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[ee.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[ee.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[ee.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[ee.UnsupportedOperator]:"Unsupported operator - {operator}",[ee.UnsupportedSyntax]:"Unsupported syntax - {node}",[ee.UnsupportedSqlFunction]:"Sql function not found = {function}",[ee.InvalidDataType]:"Invalid sql data type",[ee.InvalidDate]:"Invalid date encountered",[ee.InvalidOperator]:"Invalid operator encountered",[ee.InvalidTime]:"Invalid time encountered",[ee.IllegalInterval]:"Illegal interval",[ee.FunctionNotRecognized]:"Function not recognized",[ee.InvalidTimeStamp]:"Invalid timestamp encountered",[ee.InvalidParameterCount]:"Invalid parameter count for call to {name}",[ee.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[ee.YearMonthIntervals]:"Year-Month Intervals not supported",[ee.CannotCastValue]:"Cannot cast value to the required data type"},oe=class e extends Error{constructor(t,r){super(ms(dG[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function D8(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var yn,jh=R(()=>{In();yn=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=Ee.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return D8(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return D8(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(Ee.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,l=0,a=!1,d=0,h=0){let g=`${t.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,b="";s<10&&(b="0");let x=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${b+s.toString()}`;l!==0&&(x+="."+l.toString().padStart(3,"0"));let P=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new e(g+"T"+x+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 N(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 l=e.length-1;l>=0;l--)(i=e[l])&&(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 mt=R(()=>{});var Ew,HS=R(()=>{Ew="20241207"});var Ct,yl=R(()=>{tt();fs();HS();Ct={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&&(h6(Ct,globalThis.esriConfig,!0),delete Ct.has),!Ct.assetsPath){{let e="4.32.0";Ct.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${Ew}/assets`}Ct.defaultAssetsPath=Ct.assetsPath}});function pG(e,t,...r){console[e](`[${t}]`,...r)}function fG(...e){return b6(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var F8,ct,nt=R(()=>{yl();tt();il();F8={info:0,warn:1,error:2,none:3},ct=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=fG(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 Ct.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",pG)}_matchLevel(t){let r=Ct.log.level||"warn";return F8[this._parentWithMember("level",r)]<=F8[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};ct._loggers=new Map,ct._tickCounter=0,ct._tickCounterScheduled=!1,ct._throttlingDisabled=!1});function Tw(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var ZS=R(()=>{});function mG(e){return e==null?e:new Date(e)}function hG(e){return e==null?e:!!e}function gG(e){return e==null?e:e.toString()}function QS(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function wG(e){return e==null?e:Math.round(parseFloat(e))}function yG(e){return null}function V8(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 U8(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function Cw(e,t){return t!=null&&e&&!(t instanceof e)}function z8(e){return e&&"isCollection"in e}function $8(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function vG(e,t){if(!t?.constructor||!z8(t.constructor))return YS(e,t)?t:new e(t);let r=$8(e.prototype.itemType),n=$8(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(YS(e,t),t):new e(t):t}function YS(e,t){return!!U8(t)&&(xf().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+Pw(e)+"'"),!0)}function KS(e,t){return t==null?t:z8(e)?vG(e,t):Cw(e,t)?YS(e,t)?t:new e(t):t}function Pw(e){return e?.prototype?.declaredClass||"unknown"}function _G(e){switch(e){case Number:return t=>QS(t);case ii:return wG;case Boolean:return hG;case String:return gG;case Date:return mG;case Hh:return yG;default:return Tw(bG,e,()=>KS.bind(null,e))}}function ni(e,t){let r=_G(e);return arguments.length===1?r:r(t)}function Ef(e,t,r){return arguments.length===1?Ef.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function W8(e,t){return arguments.length===1?Ef(r=>ni(e,r)):Ef(r=>ni(e,r),t)}function G8(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>G8(e,t-1,n)):e(r)}function qh(e,t,r){if(arguments.length===2)return o=>qh(e,t,o);if(!r)return r;r=G8(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 B8(e,t,r){return arguments.length===2?qh(n=>ni(e,n),t):qh(n=>ni(e,n),t,r)}function Mw(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function Aw(e,t){if(arguments.length===2)return Aw(e).call(null,t);let r=new Set,n=e.filter(l=>typeof l!="function"),i=e.filter(l=>typeof l=="function");for(let l of e)typeof l!="string"&&typeof l!="number"||r.add(l);let o=null,s=null;return(l,a)=>{if(l==null)return l;let d=typeof l,h=d==="string"||d==="number";return h&&(r.has(l)||i.some(g=>d==="string"&&g===String||d==="number"&&g===Number))||d==="object"&&i.some(g=>!Cw(l,g))?l:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),xf().error("Accessor#set",`'${l}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof l=="object"&&i.length?(s||(s=i.map(g=>Pw(g)).join(", ")),xf().error("Accessor#set",`'${l}' is not a valid value for this property, value must be one of ${s}`)):xf().error("Accessor#set",`'${l}' 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]=ni(d),n.push(Pw(d)),i.push(a)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,l=typeof e.key=="string"?a=>a[e.key]:e.key;return a=>{if(e.base&&!Cw(e.base,a)||a==null)return a;let d=l(a)||e.defaultKeyValue,h=r[d];if(!h)return xf().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(!Cw(e.typeMap[d],a))return a;if(typeof e.key=="string"&&!U8(a)){let g={};for(let b in a)b!==e.key&&(g[b]=a[b]);return h(g)}return h(a)}}function j8(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function ex(e){switch(e.type){case"native":return ni(e.value);case"array":return Ef(ex(e.value));case"one-of":return SG(e);default:return null}}function SG(e){let t=null;return(r,n)=>XS(r,e)?r:(t==null&&(t=JS(e)),xf().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function JS(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case ii:return"integer";case Date:return"date";case Hh:return"null";default:return Pw(e.value)}case"array":return`array of ${JS(e.value)}`;case"one-of":{let t=e.values.map(r=>JS(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function XS(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case ii:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case Hh:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!XS(r,t.value));case"one-of":return t.values.some(r=>XS(e,r))}}var xf,bG,ii,Hh,Zi=R(()=>{tt();nt();ZS();xf=()=>ct.getLogger("esri.core.accessorSupport.ensureTypes");bG=new WeakMap;ii=class{},Hh=class{}});function _i(e){return e.__accessor__??null}function H8(e,t){return e?.metadata?.[t]!=null}function Tf(e,t,r){return r?Iw(e,t,{policy:r,path:""}):Iw(e,t,null)}function Iw(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,l="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,l=r.policy(s)),l==="replace"||l==="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]=Iw(a,d,r),r.path=h}else n[o]=Iw(a,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function Lw(e){return Array.isArray(e)?e:e.split(".")}function q8(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function xG(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...q8(r));return t}return q8(e)}function tx(e,t,r,n){let i=xG(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return vu(o)}return n(e,i[0],r)}var Ks=R(()=>{ri();ur()});function Z8(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=_i(t);return H8(n,r)?n.get(r):t[r]}function Y8(e,t,r){if(e==null)return e;let n=Z8(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:Y8(n,t,r+1)}function bu(e,t,r=0){return typeof t!="string"||t.includes(".")?Y8(e,Lw(t),r):Z8(t,e)}function hs(e,t){return bu(e,t)}function rx(e,t){return bu(t,e)!==void 0}var _u=R(()=>{Ks()});function vl(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 Cf(e,t){let r=vl(e),n=r[t];return n||(n=r[t]={}),n}function J8(e,t){return Tf(e,t,TG)}function TG(e){return EG.test(e)?"replace":"merge"}var EG,Pf=R(()=>{ur();Ks();EG=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function CG(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Gi(n,t)??"").toString())}var Mf,nx=R(()=>{fs();Mf=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&CG(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var Ge,Ln=R(()=>{ur();nt();nx();Ge=class e extends Mf{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 ct.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 Af(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Af(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Af(hs(e,i),o,r)}let n=e.__accessor__;n!=null&&PG(t,n),e[t]=r}}function PG(e,t){if(pe("esri-unknown-property-errors")&&!MG(e,t))throw new Ge("set:unknown-property",AG(e,t))}function MG(e,t){return t.metadata[e]!=null}function AG(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var ix=R(()=>{Ln();tt();nt();_u()});function U(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=Cf(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&&ct.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=hs(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let b=hs(this,h);b&&(g=g.bind(b))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Af(this,a,g)})}let s=e.type,l=e.types;if(!i.cast){let a;s?a=IG(s):l&&(a=Array.isArray(l)?Ef(ko(l[0])):ko(l)),e.cast=LG(e.cast,a)}J8(i,e),e.range&&(i.cast=V8(i.cast,e.range))}}function kw(e,t,r){let n=Cf(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 IG(e){let t=0,r=e;if(j8(e))return ex(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(Mw(n))return t===0?Aw(n):qh(Aw(n),t);if(t===1)return W8(n);if(t>1)return B8(n,t);let i=e;return i.from?i.from:ni(i)}function LG(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var ht=R(()=>{nt();Zi();_u();Pf();ix()});var Ow,ox=R(()=>{Ow=Symbol("Accessor-beforeDestroy")});var ln,Zh=R(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(ln||(ln={}))});var gt,Nw=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"})(gt||(gt={}))});var gs,Yh=R(()=>{gs=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 Qe(e){Xh.onAccessed(e)}function Oo(e,t,r){if(Rw)return sx(e,t,r);let n=null;return K8(e),n=t.call(r),eP(),n}function Q8(e,t){return Oo(Fw,e,t)}function sx(e,t,r){let n=Rw;Rw=!0,K8(e);let i=null;try{i=t.call(r)}catch(o){Dw&&ct.getLogger("esri.core.accessorSupport.tracking").error(o)}return eP(),Rw=n,i}function K8(e){Xh=e,Jh.push(e)}function eP(){let e=Jh.length;if(e>1){let t=Jh.pop();Xh=Jh[e-2],t.onTrackingEnd()}else if(e===1){let t=Jh.pop();Xh=Fw,t.onTrackingEnd()}else Xh=Fw}function ax(e,t){if(t.flags>.DepTrackingInitialized)return;t.flags|=gt.DepTrackingInitialized;let r=Dw;Dw=!1,t.flags>.AutoTracked?sx(t.trackingTarget,t.metadata.get,e):lx(e,t),Dw=r}function lx(e,t){t.flags>.ExplicitlyTracking||(t.flags|=gt.ExplicitlyTracking,sx(t.trackingTarget,()=>{let r=t.metadata.dependsOn||kG;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=Lw(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=X8(s,i[o],o!==i.length-1)}else X8(e,n,!1)}),t.flags&=~gt.ExplicitlyTracking)}function X8(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=_i(e);if(i){let o=i.propertiesByName.get(n);o&&(Qe(o),ax(e,o))}return r?e[n]:void 0}var Fw,Jh,Xh,Rw,Dw,kG,Su=R(()=>{tt();nt();Ks();Nw();Yh();Fw=new gs,Jh=[],Xh=Fw;Rw=!1,Dw=!1;kG=[]});function tP(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 rP=R(()=>{});var Qh,nP=R(()=>{nx();Qh=class extends Mf{constructor(t,r,n){super(t,r,n)}};Qh.prototype.type="warning"});function $w(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var cx=R(()=>{});function dx(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||RG(e)&&Zs("read.reader",px(e),t))}function px(e){let t=e.ndimArray??0;if(t>1)return NG(e);if(t===1)return iP(e);if("type"in e&&sP(e.type)){let r=e.type.prototype?.itemType?.Type,n=iP(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let l=n(i,o,s);return l&&new e.type(l)}}return fx(e)}function fx(e){return"type"in e?OG(e.type):DG(e.types)}function OG(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void ux().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 oP(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>oP(e,i,r,n-1)):e(t,void 0,r)}function NG(e){let t=fx(e),r=oP.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let l=n,a=i;for(;l>0&&Array.isArray(a);)l--,a=a[0];if(a!==void 0)for(let d=0;d<l;d++)i=[i];return i}}function iP(e){let t=fx(e);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let l of r){let a=t(l,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 sP(e){if(!$w(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?mx(t.Type):aP(t.Type))}function RG(e){return"types"in e?aP(e.types):mx(e.type)}function mx(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||sP(e))}function aP(e){for(let t in e.typeMap)if(!mx(e.typeMap[t]))return!1;return!0}function DG(e){let t=null,r=e.errorContext??"type",n=e.validate;return(i,o,s)=>{if(i==null)return i;let l=typeof i;if(l!=="object")return void ux().error(`Expected JSON value of type 'object' to deserialize, but got '${l}'`);t||(t=FG(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 b=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new Qh(`${r}:unsupported`,b,{definition:i,context:s})),void ux().error(b)}let g=new h;return g.read(i,s),n?n(g):g}}function FG(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=vl(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 l=s.target,a=typeof l=="string"?l:e.key,d={};s.writer(r,d,a),d[a]&&(t[d[a]]=n)}return t}var ux,hx=R(()=>{nt();fs();nP();Pf();cx();ux=()=>ct.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function dP(e){if(e.json||(e.json={}),cP(e.json),uP(e.json),lP(e.json),e.json.origins)for(let t in e.json.origins)cP(e.json.origins[t]),uP(e.json.origins[t]),lP(e.json.origins[t]);return!0}function lP(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 cP(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 uP(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 pP=R(()=>{});function gx(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&&$w(e.type))?t.write.writer=zG:r>1?t.write.writer=WG(r):t.types?Array.isArray(t.types)?t.write.writer=VG(t.types[0]):t.write.writer=$G(t.types):t.write.writer=Kh}function $G(e){return(t,r,n,i)=>t?fP(t,e,i)?Kh(t,r,n,i):void 0:Kh(t,r,n,i)}function fP(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})),ct.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function VG(e){return(t,r,n,i)=>!t||!Array.isArray(t)?Kh(t,r,n,i):Kh(t.filter(o=>fP(o,e,i)),r,n,i)}function Kh(e,t,r,n){Zs(r,Vw(e,n),t)}function Vw(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?UG(e):e}function UG(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function zG(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>Vw(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[Vw(e,n)],Zs(r,i,t)}function mP(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>mP(n,t,r-1)):Vw(e,t)}function WG(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=mP(t,i,e);let s=e,l=o;for(;s>0&&Array.isArray(l);)s--,l=l[0];if(l!==void 0)for(let a=0;a<s;a++)o=[o]}Zs(n,o,r)}}var hP=R(()=>{Ln();nt();fs();cx()});function gP(e,t){return yx(e,"any",t?.origin)}function Uw(e,t){return yx(e,"read",t?.origin)}function wP(e,t){return yx(e,"write",t?.origin)}function yx(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 GG(e){let t=BG(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?jG(n):t;dx(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),gx(i,n)}dx(t,e.json,!0),gx(t,e.json)}function BG(e){return e.json.types?wx(e.json):e.type?yP(e):wx(e)}function jG(e){return e.type?yP(e):wx(e)}function yP(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!Mw(r);)r=r[0],t++;return{type:r,ndimArray:t}}function wx(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 vP(e){dP(e)&&(tP(e),GG(e))}var zw=R(()=>{Zi();rP();hx();pP();hP()});function Ie(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,HG(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!vx.has(i.initialize)&&(vx.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!bx.has(i.destroy)&&(bx.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);vx.clear(),bx.clear();let o=class extends t{constructor(...l){if(super(...l),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[Ow];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__=vl(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 qG(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;r.mutable&&Qe(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 HG(e){let t=e.prototype,r=vl(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];vP(o),n[i]={enumerable:!0,configurable:!0,get:qG(i,o),set(s){let l=this.__accessor__;if(l!==void 0){if(l.mutable)return l.initialized&&o.readOnly?bP("read-only",i):l.lifecycle===ln.CONSTRUCTED&&o.constructOnly?bP("construct-only",i):void l.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(e.prototype,n)}var vx,bx,bP,dt=R(()=>{tt();nt();ox();Zh();Pf();Su();zw();vx=new Set,bx=new Set;bP=(e,t)=>{ct.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function _x(e){return e!=null&&typeof e[Symbol.iterator]=="function"}var _P=R(()=>{});function Ww(e){return e||"_default_"}function SP(e){for(let t of e)t instanceof If?t.removeAll():t.remove()}function xP(e){return e!=null&&(!!e.remove||e instanceof If)}var If,EP=R(()=>{_P();If=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(_x(t)){let n=this._getOrCreateGroup(r);for(let i of t)xP(i)&&n.push(i)}else xP(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(Ww(t))}remove(t){if(typeof t!="string"&&_x(t)){for(let r of t)this.remove(r);return this}return this.has(t)?(SP(this._getGroup(t)),this._groups.delete(Ww(t)),this):this}removeAll(){return this._groups.forEach(SP),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(Ww(t),r),r}_getGroup(t){return this._groups.get(Ww(t))}}});function TP(e,t){if(e==null)throw new Error(t??"value is None")}function eg(e){return e?.destroy(),null}function tg(e){return e?.remove(),null}function CP(e){return e?.abort(),null}var bl=R(()=>{});function ZG(e){return e?.release&&typeof e.release=="function"}function YG(e){return e?.acquire&&typeof e.acquire=="function"}var No,rg=R(()=>{No=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):YG(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):ZG(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()}};No.test={disabled:!1}});var Gw,PP=R(()=>{nl();Gw=class{constructor(t,r){this._observers=t,this._observer=r}remove(){X9(this._observers,this._observer)}}});var Lf,JG,Sx=R(()=>{ri();PP();Lf=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return JG;this._observers==null&&(this._observers=[]);let r=this._observers,n=!1,i=!1,o=r.length;for(let s=0;s<o;++s){let l=r[s];if(l.destroyed)i=!0;else if(l===t){n=!0;break}}return n||(r.push(t),i&&this._removeDestroyedObservers()),new Gw(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}}},JG=Tt()});function Bw(e){switch(e){case"defaults":return at.DEFAULTS;case"service":return at.SERVICE;case"portal-item":return at.PORTAL_ITEM;case"web-scene":return at.WEB_SCENE;case"web-map":return at.WEB_MAP;case"link-chart":return at.LINK_CHART;case"user":return at.USER;default:return null}}function jw(e){switch(e){case at.DEFAULTS:return"defaults";case at.SERVICE:return"service";case at.PORTAL_ITEM:return"portal-item";case at.WEB_SCENE:return"web-scene";case at.WEB_MAP:return"web-map";case at.LINK_CHART:return"link-chart";case at.USER:return"user"}}function MP(e){return jw(e)}var at,Uce,_l=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"})(at||(at={}));Uce=at.USER+1});var ng,AP=R(()=>{Sx();_l();Su();Nw();Yh();ng=class extends Lf{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this.trackingTarget=new gs(this),this.flags=0,this.flags=gt.Dirty|(r.nonNullable?gt.NonNullable:0)|(r.hasOwnProperty("value")?gt.HasDefaultValue:0)|(r.get===void 0?gt.DepTrackingInitialized:0)|(r.dependsOn===void 0?gt.AutoTracked:0)}destroy(){this.flags>.Dirty&&this.onCommitted(),super.destroy(),this.trackingTarget.destroy()}getComputed(t){t.mutable&&Qe(this);let r=t.store,n=this.propertyName,i=this.flags,o=r.get(n);if(i>.Computing||~i>.Dirty&&r.has(n))return o;this.flags|=gt.Computing;let s=t.host,l;i>.AutoTracked?l=Oo(this.trackingTarget,this.metadata.get,s):(lx(s,this),l=this.metadata.get.call(s)),this.flags|=gt.DepTrackingInitialized,r.set(n,l,at.COMPUTED);let a=r.get(n);return a===o?this.flags&=~gt.Dirty:Q8(this.commit,this),this.flags&=~gt.Computing,a}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~gt.Dirty,this.onCommitted()}onInvalidated(){~this.flags>.Overridden&&(this.flags|=gt.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 qw,IP=R(()=>{ur();_l();qw=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 at.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 Hw(e,t,r){return e!==void 0}function LP(e,t,r,n){return e!==void 0&&(!(r==null&&e.flags>.NonNullable)||(n.lifecycle,ln.INITIALIZING,!1))}var Zw,Ex,xx,kP=R(()=>{tt();ur();nt();rg();Zh();AP();_l();IP();Su();Nw();Yh();Zw=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=ln.INITIALIZING,this.store=new qw,this.mutable=!0,this._origin=at.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new ng(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=ln.CONSTRUCTING}constructed(){this.lifecycle=ln.CONSTRUCTED}destroy(){this.lifecycle=ln.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==ln.INITIALIZING}get(t){let r=this.propertiesByName.get(t);if(r.metadata.get)return r.getComputed(this);this.mutable&&Qe(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>.HasDefaultValue)return"defaults"}return jw(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(Hw(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);Hw(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!Hw(i))return"";let o=new gs,s=Oo(o,()=>i.metadata.get?.call(t)),l=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
|
|
1
|
+
"use strict";(()=>{var LV=Object.defineProperty;var R=(e,t)=>()=>(e&&(t=e(e=0)),t);var MT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),js=(e,t)=>{for(var r in t)LV(e,r,{get:t[r],enumerable:!0})};function gz(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 wz(e,t,r){let{subscribe:n}=yz(t);return n(i=>{i.some(s=>gz(e,s.target))&&r()})}function yz(e){let t=e.join(","),r=Y_[t];if(r!==void 0)return r;let n=new Set,i=new MutationObserver(s=>n.forEach(l=>l(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(),Y_[t]=void 0)}}}};return Y_[t]=o,o}function vz(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 bz(e,t,r){return vz(e,`[${t}]`)?.getAttribute(t)??r}function kt(e,t,...r){try{return e?.call(t,...r)}catch(n){console.error(n,e)}}async function ih(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 Ez(e,t,r=""){let n=`${t}/${r}`,i=`${n}${e}.json`;return J_[i]??(J_[i]=B9(e,n)),await J_[i]}async function B9(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===H0?{}:await B9(H0,t)}function X_(e,t){let r=bz(e,"lang",globalThis.navigator?.language||H0);return{lang:r,t9nLocale:j9(r,t)}}function j9(e,t){let[r,n]=e.split("-"),i=r.toLowerCase(),o=i;return n&&(o=`${i}-${n.toUpperCase()}`),o=xz[o]??o,t&&o==="nb"?"no":Sz.has(o)?o:n?j9(i):H0}function q9(e,t,r,n,i){let o,s=()=>void Tz(e,t,n,i).then(l=>{(o?.lang!==l.lang||o.t9nLocale!==l.t9nLocale||o.t9nStrings!==l.t9nStrings)&&r(l),o=l}).catch(console.error);return s(),wz(e,["lang"],s)}async function Tz(e,t,r=e.tagName.toLowerCase().split("-").slice(1).join("-"),n){let{lang:i,t9nLocale:o}=X_(e,n),s=`${t}/${r}/t9n`,l=`${r}.t9n.`,a=r===null?{}:await Ez(o,s,l);return{lang:i,t9nLocale:o,t9nStrings:a}}function H9(e,t){let r=t>Pz?Mz:t/Az,n=0,i=setInterval(()=>{n+=r,n>=t&&(clearInterval(i),e())},r);return i}function Z9(e){return e!==void 0}var So,Y_,_z,Sz,H0,xz,J_,Z0,Cz,Pz,Mz,Az,xo=R(()=>{"use strict";So=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};Y_={};_z=["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"],Sz=new Set(_z),H0="en",xz={pt:"pt-PT",no:"nb",zh:"zh-CN"};J_={};Z0=e=>e.replace(Cz,(t,r)=>`${r===0?"":"-"}${t.toLowerCase()}`),Cz=/[A-Z]+(?![a-z])|[A-Z]/gu;Pz=4e3,Mz=2e3,Az=4});function pe(e){return typeof tl[e]=="function"?tl[e]=tl[e](globalThis):tl[e]}var tl,tt=R(()=>{tl=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},pe.add=(e,t,r,n)=>{(n||tl[e]===void 0)&&(tl[e]=t),r&&pe(e)},pe.cache=tl,pe.add("big-integer-warning-enabled",!0),pe.add("esri-deprecation-warnings",!0),pe.add("esri-tests-disable-screenshots",!1),pe.add("esri-tests-use-full-window",!1),pe.add("esri-tests-post-to-influx",!0),pe.add("esri-cim-animations-enable-status","enabled"),pe.add("esri-cim-animations-spotlight",!1),pe.add("esri-cim-animations-freeze-time",!1),pe.add("enable-feature:multiple-highlights",!1),(()=>{pe.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(pe.add("host-browser",e),pe.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),pe.add("dom",e),pe("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(pe.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),pe.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),pe.add("khtml",n.includes("Konqueror")?i:void 0),pe.add("edge",parseFloat(r.split("Edge/")[1])||void 0),pe.add("opr",parseFloat(r.split("OPR/")[1])||void 0),pe.add("webkit",!pe("wp")&&!pe("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),pe.add("chrome",!pe("edge")&&!pe("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),pe.add("android",!pe("wp")&&parseFloat(r.split("Android ")[1])||void 0),pe.add("safari",!n.includes("Safari")||pe("wp")||pe("chrome")||pe("android")||pe("edge")||pe("opr")?void 0:parseFloat(n.split("Version/")[1])),pe.add("mac",n.includes("Macintosh")),!pe("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",l=parseFloat(s.replace(/_/,".").replaceAll("_",""));pe.add(o,l),pe.add("ios",l)}pe("webkit")||(!r.includes("Gecko")||pe("wp")||pe("khtml")||pe("edge")||pe.add("mozilla",i),pe("mozilla")&&pe.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&&pe.add("esri-mobile",t),r&&pe.add("esri-iPhone",r),pe.add("esri-geolocation",!!navigator.geolocation)}pe.add("esri-wasm","WebAssembly"in globalThis),pe.add("esri-performance-mode-frames-between-render",20),pe.add("esri-force-performance-mode",!1),pe.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),pe.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))}),pe.add("esri-atomics","Atomics"in globalThis),pe.add("esri-workers","Worker"in globalThis),pe.add("web-feat:cache","caches"in globalThis),pe.add("esri-workers-arraybuffer-transfer",!pe("safari")||Number(pe("safari"))>=12),pe.add("workers-pool-size",8),pe.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),pe.add("featurelayer-simplify-payload-size-factors",[1,1,4]),pe.add("featurelayer-fast-triangulation-enabled",!0),pe.add("featurelayer-animation-enabled",!0),pe.add("featurelayer-snapshot-enabled",!0),pe.add("featurelayer-snapshot-point-min-threshold",8e4),pe.add("featurelayer-snapshot-point-max-threshold",4e5),pe.add("featurelayer-snapshot-point-coverage",.1),pe.add("featurelayer-query-max-depth",4),pe.add("featurelayer-query-pausing-enabled",!1),pe.add("featurelayer-advanced-symbols",!1),pe.add("featurelayer-pbf",!0),pe.add("featurelayer-pbf-statistics",!1),pe.add("feature-layers-workers",!0),pe.add("feature-polyline-generalization-factor",1),pe.add("mapview-transitions-duration",200),pe.add("mapview-essential-goto-duration",200),pe.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),pe.add("mapserver-pbf-version-support",10.81),pe.add("mapservice-popup-identify-max-tolerance",20),pe("host-webworker")||pe("host-browser")&&(pe.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),pe.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(()=>{pe.add("esri-image-decode",!0,!0,!0)}).catch(()=>{pe.add("esri-image-decode",!1,!0,!0)})}return!1}),pe.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});var du,Br=R(()=>{du=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}};du._m=2147483647,du._a=48271,du._c=0});function rl(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 Q_(e,t,r,n){n=n||Y9;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 J9(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;Eo.clear();for(let l=0;l<n;++l)Eo.add(t[l]);i=i||Y9;let s=Math.max(0,i.last-10);for(let l=s;l<r;++l)if(Eo.has(e[l])&&(o?.push(e[l]),Eo.delete(e[l]),e[l]=e[r-1],--r,--l,Eo.size===0||r===0))return Eo.clear(),r;for(let l=0;l<s;++l)if(Eo.has(e[l])&&(o?.push(e[l]),Eo.delete(e[l]),e[l]=e[r-1],--r,--l,Eo.size===0||r===0))return Eo.clear(),r;return Eo.clear(),r}function X9(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function Q9(e,t){return e!=null}var Iz,Eoe,oh,Y9,Eo,Toe,nl=R(()=>{Br();Iz=1.5,Eoe=1/Iz;oh=class{constructor(){this.last=0}},Y9=new oh;Eo=new Set;Toe=new du});function K9(e){return e?.constructor?.name==="Int8Array"}function e6(e){return e?.constructor?.name==="Uint8Array"}function t6(e){return e?.constructor?.name==="Uint8ClampedArray"}function r6(e){return e?.constructor?.name==="Int16Array"}function n6(e){return e?.constructor?.name==="Uint16Array"}function i6(e){return e?.constructor?.name==="Int32Array"}function o6(e){return e?.constructor?.name==="Uint32Array"}function s6(e){return e?.constructor?.name==="Float32Array"}function a6(e){return e?.constructor?.name==="Float64Array"}var l6=R(()=>{tt()});function X0(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&X0(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=f6(e);if(t!=null)return t;if(u6(e))return e.clone();if(d6(e))return e.map(Ye);if(p6(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 J0(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=f6(e);if(t!=null)return t;if(d6(e)){let n=!0,i=e.map(o=>{let s=J0(o);return o!=null&&s==null&&(n=!1),s});return n?i:null}if(u6(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(p6(e))return null;let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=J0(i);if(i!=null&&o==null)return null;r[n]=o}return r}function u6(e){return typeof e.clone=="function"}function d6(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function p6(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function c6(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function f6(e){if(K9(e)||e6(e)||t6(e)||r6(e)||n6(e)||i6(e)||o6(e)||s6(e)||a6(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 m6(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)&&rl(e,t):e instanceof Set?t instanceof Set&&kz(e,t):e instanceof Map?t instanceof Map&&Oz(e,t):!!c6(e)&&c6(t)&&Lz(e,t))}function Lz(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 kz(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Oz(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 ur=R(()=>{nl();l6()});function h6(e,t,r=!1){return w6(e,t,r)}function Gi(e,t){if(t!=null)return t[e]||g6(e.split("."),!1,t)}function Zs(e,t,r){let n=e.split("."),i=n.pop(),o=g6(n,!0,r);o&&i&&(o[i]=t)}function g6(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 w6(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(l=>{o.includes(l)||o.push(l)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=w6(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var fs=R(()=>{ur()});function y6(e){return e??""}function ms(e,t){return t?e.replaceAll(Nz,typeof t=="object"?(r,n)=>y6(Gi(n,t)):(r,n)=>y6(t(n))):e}function v6(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function b6(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var Nz,il=R(()=>{fs();Nz=/\{([^}]+)\}/g});var Ys,Q0,K0,ew,To,tf,gr,Co,ol=R(()=>{Ys=class extends Error{},Q0=class extends Ys{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},K0=class extends Ys{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},ew=class extends Ys{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},To=class extends Ys{},tf=class extends Ys{constructor(t){super(`Invalid unit ${t}`)}},gr=class extends Ys{},Co=class extends Ys{constructor(){super("Zone is an abstract class")}}});var Le,Po,vi,sl,ah,K_,lh,ch,uh,dh,ph,fh,mh,hh,gh,wh,yh,vh,bh,_h,eS,Sh,xh,Eh,Th,Ch=R(()=>{Le="numeric",Po="short",vi="long",sl={year:Le,month:Le,day:Le},ah={year:Le,month:Po,day:Le},K_={year:Le,month:Po,day:Le,weekday:Po},lh={year:Le,month:vi,day:Le},ch={year:Le,month:vi,day:Le,weekday:vi},uh={hour:Le,minute:Le},dh={hour:Le,minute:Le,second:Le},ph={hour:Le,minute:Le,second:Le,timeZoneName:Po},fh={hour:Le,minute:Le,second:Le,timeZoneName:vi},mh={hour:Le,minute:Le,hourCycle:"h23"},hh={hour:Le,minute:Le,second:Le,hourCycle:"h23"},gh={hour:Le,minute:Le,second:Le,hourCycle:"h23",timeZoneName:Po},wh={hour:Le,minute:Le,second:Le,hourCycle:"h23",timeZoneName:vi},yh={year:Le,month:Le,day:Le,hour:Le,minute:Le},vh={year:Le,month:Le,day:Le,hour:Le,minute:Le,second:Le},bh={year:Le,month:Po,day:Le,hour:Le,minute:Le},_h={year:Le,month:Po,day:Le,hour:Le,minute:Le,second:Le},eS={year:Le,month:Po,day:Le,weekday:Po,hour:Le,minute:Le},Sh={year:Le,month:vi,day:Le,hour:Le,minute:Le,timeZoneName:Po},xh={year:Le,month:vi,day:Le,hour:Le,minute:Le,second:Le,timeZoneName:Po},Eh={year:Le,month:vi,day:Le,weekday:vi,hour:Le,minute:Le,timeZoneName:vi},Th={year:Le,month:vi,day:Le,weekday:vi,hour:Le,minute:Le,second:Le,timeZoneName:vi}});var Mr,pu=R(()=>{ol();Mr=class{get type(){throw new Co}get name(){throw new Co}get ianaName(){return this.name}get isUniversal(){throw new Co}offsetName(t,r){throw new Co}formatOffset(t,r){throw new Co}offset(t){throw new Co}equals(t){throw new Co}get isValid(){throw new Co}}});var tS,al,rw=R(()=>{Wn();pu();tS=null,al=class e extends Mr{static get instance(){return tS===null&&(tS=new e),tS}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return nw(t,r,n)}formatOffset(t,r){return ll(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function Rz(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 Fz(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,l,a,d,h]=n;return[s,i,o,l,a,d,h]}function $z(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],l=Dz[o];o==="era"?n[l]=s:qe(l)||(n[l]=parseInt(s,10))}return n}var ow,Dz,iw,rr,cl=R(()=>{Wn();pu();ow={};Dz={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};iw={},rr=class e extends Mr{static create(t){return iw[t]||(iw[t]=new e(t)),iw[t]}static resetCache(){iw={},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 nw(t,r,n,this.name)}formatOffset(t,r){return ll(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=Rz(this.name),[i,o,s,l,a,d,h]=n.formatToParts?$z(n,r):Fz(n,r);l==="BC"&&(i=-Math.abs(i)+1);let b=rf({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),x=+r,P=x%1e3;return x-=P>=0?P:1e3+P,(b-x)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function Vz(e,t={}){let r=JSON.stringify([e,t]),n=_6[r];return n||(n=new Intl.ListFormat(e,t),_6[r]=n),n}function nS(e,t={}){let r=JSON.stringify([e,t]),n=rS[r];return n||(n=new Intl.DateTimeFormat(e,t),rS[r]=n),n}function Uz(e,t={}){let r=JSON.stringify([e,t]),n=iS[r];return n||(n=new Intl.NumberFormat(e,t),iS[r]=n),n}function zz(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=oS[i];return o||(o=new Intl.RelativeTimeFormat(e,t),oS[i]=o),o}function Wz(){return Ph||(Ph=new Intl.DateTimeFormat().resolvedOptions().locale,Ph)}function Gz(e){let t=S6[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,S6[e]=t}return t}function Bz(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=nS(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=nS(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function jz(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function qz(e){let t=[];for(let r=1;r<=12;r++){let n=Ee.utc(2009,r,1);t.push(e(n))}return t}function Hz(e){let t=[];for(let r=1;r<=7;r++){let n=Ee.utc(2016,11,13+r);t.push(e(n))}return t}function sw(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function Zz(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 _6,rS,iS,oS,Ph,S6,sS,aS,lS,Yz,_t,Ah=R(()=>{Wn();cw();ul();dl();cl();_6={};rS={};iS={};oS={};Ph=null;S6={};sS=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 l={useGrouping:!1,...n};n.padTo>0&&(l.minimumIntegerDigits=n.padTo),this.inf=Uz(t,l)}}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):nf(t,3);return dr(r,this.padTo)}}},aS=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),l=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&rr.create(l).valid?(i=l,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=nS(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()}},lS=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&aw()&&(this.rtf=zz(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):x6(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},Yz={firstDay:1,minimalDays:4,weekend:[6,7]},_t=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||bt.defaultLocale,l=s||(o?"en-US":Wz()),a=r||bt.defaultNumberingSystem,d=n||bt.defaultOutputCalendar,h=Mh(i)||bt.defaultWeekSettings;return new e(l,a,d,h,s)}static resetCache(){Ph=null,rS={},iS={},oS={}}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,l,a]=Bz(t);this.locale=s,this.numberingSystem=r||l||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=jz(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=Zz(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,Mh(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 sw(this,t,cS,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=qz(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return sw(this,t,uS,()=>{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]=Hz(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return sw(this,void 0,()=>dS,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ee.utc(2016,11,13,9),Ee.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return sw(this,t,pS,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ee.utc(-40,1,1),Ee.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(l=>l.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new sS(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new aS(t,this.intl,r)}relFormatter(t={}){return new lS(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Vz(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:lw()?Gz(this.locale):Yz}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 mS,Ot,of=R(()=>{Wn();pu();mS=null,Ot=class e extends Mr{static get utcInstance(){return mS===null&&(mS=new e(0)),mS}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(fu(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ll(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ll(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return ll(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 sf,hS=R(()=>{pu();sf=class extends Mr{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 Mr)return e;if(E6(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?al.instance:n==="utc"||n==="gmt"?Ot.utcInstance:Ot.parseSpecifier(n)||rr.create(e)}else return Ao(e)?Ot.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new sf(e)}var uw=R(()=>{pu();cl();of();hS();Wn();rw()});function C6(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(gS.hanidec)!==-1)t+=Jz.indexOf(e[r]);else for(let i in T6){let[o,s]=T6[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function P6(){af={}}function Bi({numberingSystem:e},t=""){let r=e||"latn";return af[r]||(af[r]={}),af[r][t]||(af[r][t]=new RegExp(`${gS[r]}${t}`)),af[r][t]}var gS,T6,Jz,af,wS=R(()=>{gS={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"},T6={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]},Jz=gS.hanidec.replace(/[\[|\]]/g,"").split("");af={}});var M6,A6,I6,L6,k6,O6,N6,R6,bt,ul=R(()=>{rw();cl();Ah();dl();uw();Wn();wS();M6=()=>Date.now(),A6="system",I6=null,L6=null,k6=null,O6=60,R6=null,bt=class{static get now(){return M6}static set now(t){M6=t}static set defaultZone(t){A6=t}static get defaultZone(){return Mo(A6,al.instance)}static get defaultLocale(){return I6}static set defaultLocale(t){I6=t}static get defaultNumberingSystem(){return L6}static set defaultNumberingSystem(t){L6=t}static get defaultOutputCalendar(){return k6}static set defaultOutputCalendar(t){k6=t}static get defaultWeekSettings(){return R6}static set defaultWeekSettings(t){R6=Mh(t)}static get twoDigitCutoffYear(){return O6}static set twoDigitCutoffYear(t){O6=t%100}static get throwOnInvalid(){return N6}static set throwOnInvalid(t){N6=t}static resetCaches(){_t.resetCache(),rr.resetCache(),Ee.resetCache(),P6()}}});var on,Ih=R(()=>{on=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function ji(e,t){return new on("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dw(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 $6(e,t,r){return r+(hu(e)?F6:D6)[t-1]}function V6(e,t){let r=hu(e)?F6:D6,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function pw(e,t){return(e-t+7)%7+1}function Lh(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=$6(n,i,o),l=pw(dw(n,i,o),r),a=Math.floor((s-l+14-t)/7),d;return a<1?(d=n-1,a=mu(d,t,r)):a>mu(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:l,...Oh(e)}}function yS(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=pw(dw(n,1,t),r),l=pl(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=pl(d)):a>l?(d=n+1,a-=pl(n)):d=n;let{month:h,day:g}=V6(d,a);return{year:d,month:h,day:g,...Oh(e)}}function fw(e){let{year:t,month:r,day:n}=e,i=$6(t,r,n);return{year:t,ordinal:i,...Oh(e)}}function vS(e){let{year:t,ordinal:r}=e,{month:n,day:i}=V6(t,r);return{year:t,month:n,day:i,...Oh(e)}}function bS(e,t){if(!qe(e.localWeekday)||!qe(e.localWeekNumber)||!qe(e.localWeekYear)){if(!qe(e.weekday)||!qe(e.weekNumber)||!qe(e.weekYear))throw new To("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 U6(e,t=4,r=1){let n=kh(e.weekYear),i=bi(e.weekNumber,1,mu(e.weekYear,t,r)),o=bi(e.weekday,1,7);return n?i?o?!1:ji("weekday",e.weekday):ji("week",e.weekNumber):ji("weekYear",e.weekYear)}function z6(e){let t=kh(e.year),r=bi(e.ordinal,1,pl(e.year));return t?r?!1:ji("ordinal",e.ordinal):ji("year",e.year)}function _S(e){let t=kh(e.year),r=bi(e.month,1,12),n=bi(e.day,1,lf(e.year,e.month));return t?r?n?!1:ji("day",e.day):ji("month",e.month):ji("year",e.year)}function SS(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=bi(t,0,23)||t===24&&r===0&&n===0&&i===0,s=bi(r,0,59),l=bi(n,0,59),a=bi(i,0,999);return o?s?l?a?!1:ji("millisecond",i):ji("second",n):ji("minute",r):ji("hour",t)}var D6,F6,xS=R(()=>{Wn();Ih();ol();D6=[0,31,59,90,120,151,181,212,243,273,304,334],F6=[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 kh(e){return typeof e=="number"&&e%1===0}function E6(e){return typeof e=="string"}function G6(e){return Object.prototype.toString.call(e)==="[object Date]"}function aw(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function lw(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function B6(e){return Array.isArray(e)?e:[e]}function ES(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 j6(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function fl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Mh(e){if(e==null)return null;if(typeof e!="object")throw new gr("Week settings must be an object");if(!bi(e.firstDay,1,7)||!bi(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!bi(t,1,7)))throw new gr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function bi(e,t,r){return kh(e)&&e>=t&&e<=r}function Xz(e,t){return e-t*Math.floor(e/t)}function dr(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function Js(e){if(!(qe(e)||e===null||e===""))return parseInt(e,10)}function ml(e){if(!(qe(e)||e===null||e===""))return parseFloat(e)}function Nh(e){if(!(qe(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function nf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function hu(e){return e%4===0&&(e%100!==0||e%400===0)}function pl(e){return hu(e)?366:365}function lf(e,t){let r=Xz(t-1,12)+1,n=e+(t-r)/12;return r===2?hu(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function rf(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 W6(e,t,r){return-pw(dw(e,1,t),r)+t-1}function mu(e,t=4,r=1){let n=W6(e,t,r),i=W6(e+1,t,r);return(pl(e)-n+i)/7}function Rh(e){return e>99?e:e>bt.twoDigitCutoffYear?1900+e:2e3+e}function nw(e,t,r,n=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:t,...o},l=new Intl.DateTimeFormat(r,s).formatToParts(i).find(a=>a.type.toLowerCase()==="timezonename");return l?l.value:null}function fu(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 TS(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new gr(`Invalid unit value ${e}`);return t}function cf(e,t){let r={};for(let n in e)if(fl(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=TS(i)}return r}function ll(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}${dr(r,2)}:${dr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${dr(r,2)}${dr(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Oh(e){return j6(e,["hour","minute","second","millisecond"])}var Wn=R(()=>{ol();ul();xS()});function cS(e){switch(e){case"narrow":return[...Kz];case"short":return[...CS];case"long":return[...Qz];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 uS(e){switch(e){case"narrow":return[...eW];case"short":return[...MS];case"long":return[...PS];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function pS(e){switch(e){case"narrow":return[...nW];case"short":return[...rW];case"long":return[...tW];default:return null}}function q6(e){return dS[e.hour<12?0:1]}function H6(e,t){return uS(t)[e.weekday-1]}function Z6(e,t){return cS(t)[e.month-1]}function Y6(e,t){return pS(t)[e.year<0?0:1]}function x6(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,l=Math.abs(t),a=l===1,d=i[e],h=n?a?d[1]:d[2]||d[1]:a?i[e][0]:e;return s?`${l} ${h} ago`:`in ${l} ${h}`}var Qz,CS,Kz,PS,MS,eW,dS,tW,rW,nW,cw=R(()=>{Ch();Wn();Qz=["January","February","March","April","May","June","July","August","September","October","November","December"],CS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Kz=["J","F","M","A","M","J","J","A","S","O","N","D"];PS=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],MS=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],eW=["M","T","W","T","F","S","S"];dS=["AM","PM"],tW=["Before Christ","Anno Domini"],rW=["BC","AD"],nW=["B","A"]});function J6(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var iW,sn,Dh=R(()=>{cw();Ch();Wn();iW={D:sl,DD:ah,DDD:lh,DDDD:ch,t:uh,tt:dh,ttt:ph,tttt:fh,T:mh,TT:hh,TTT:gh,TTTT:wh,f:yh,ff:bh,fff:Sh,ffff:Eh,F:vh,FF:_h,FFF:xh,FFFF:Th},sn=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 l=t.charAt(s);l==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||l===r?n+=l:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=l,r=l)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(t){return iW[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 dr(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=(x,P)=>this.loc.extract(t,x,P),s=x=>t.isOffsetFixed&&t.offset===0&&x.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,x.format):"",l=()=>n?q6(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(x,P)=>n?Z6(t,x):o(P?{month:x}:{month:x,day:"numeric"},"month"),d=(x,P)=>n?H6(t,x):o(P?{weekday:x}:{weekday:x,month:"long",day:"numeric"},"weekday"),h=x=>{let P=e.macroTokenToFormatOpts(x);return P?this.formatWithSystemDefault(t,P):x},g=x=>n?Y6(t,x):o({era:x},"era"),b=x=>{switch(x){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 l();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(x)}};return J6(e.parseFormat(r),b)}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),[]),l=t.shiftTo(...s.map(n).filter(a=>a));return J6(o,i(l))}}});function df(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function pf(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,l,a]=o(t,i);return[{...r,...s},l||n,a]},[{},null,1]).slice(0,2)}function ff(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 K6(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=Js(t[r+i]);return[n,null,r+i]}}function uf(e,t,r){let n=e[t];return qe(n)?r:Js(n)}function fW(e,t){return[{year:uf(e,t),month:uf(e,t+1,1),day:uf(e,t+2,1)},null,t+3]}function mf(e,t){return[{hours:uf(e,t,0),minutes:uf(e,t+1,0),seconds:uf(e,t+2,0),milliseconds:Nh(e[t+3])},null,t+4]}function Fh(e,t){let r=!e[t]&&!e[t+1],n=fu(e[t+1],e[t+2]),i=r?null:Ot.instance(n);return[{},i,t+3]}function $h(e,t){let r=e[t]?rr.create(e[t]):null;return[{},r,t+1]}function gW(e){let[t,r,n,i,o,s,l,a,d]=e,h=t[0]==="-",g=a&&a[0]==="-",b=(x,P=!1)=>x!==void 0&&(P||x&&h)?-x:x;return[{years:b(ml(r)),months:b(ml(n)),weeks:b(ml(i)),days:b(ml(o)),hours:b(ml(s)),minutes:b(ml(l)),seconds:b(ml(a),a==="-0"),milliseconds:b(Nh(d),g)}]}function LS(e,t,r,n,i,o,s){let l={year:t.length===2?Rh(Js(t)):Js(t),month:CS.indexOf(r)+1,day:Js(n),hour:Js(i),minute:Js(o)};return s&&(l.second=Js(s)),e&&(l.weekday=e.length>3?PS.indexOf(e)+1:MS.indexOf(e)+1),l}function vW(e){let[,t,r,n,i,o,s,l,a,d,h,g]=e,b=LS(t,i,n,r,o,s,l),x;return a?x=wW[a]:d?x=0:x=fu(h,g),[b,new Ot(x)]}function bW(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function X6(e){let[,t,r,n,i,o,s,l]=e;return[LS(t,i,n,r,o,s,l),Ot.utcInstance]}function EW(e){let[,t,r,n,i,o,s,l]=e;return[LS(t,l,r,n,i,o,s),Ot.utcInstance]}function i8(e){return ff(e,[TW,n8],[CW,AW],[PW,IW],[MW,LW])}function o8(e){return ff(bW(e),[yW,vW])}function s8(e){return ff(e,[_W,X6],[SW,X6],[xW,EW])}function a8(e){return ff(e,[hW,gW])}function l8(e){return ff(e,[mW,kW])}function c8(e){return ff(e,[OW,n8],[NW,RW])}var Q6,e8,oW,AS,t8,IS,sW,aW,lW,cW,uW,dW,r8,pW,mW,hW,wW,yW,_W,SW,xW,TW,CW,PW,MW,n8,AW,IW,LW,kW,OW,NW,RW,kS=R(()=>{Wn();cw();of();cl();Q6=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;e8=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,oW=`(?:${e8.source}?(?:\\[(${Q6.source})\\])?)?`,AS=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,t8=RegExp(`${AS.source}${oW}`),IS=RegExp(`(?:T${t8.source})?`),sW=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,aW=/(\d{4})-?W(\d\d)(?:-?(\d))?/,lW=/(\d{4})-?(\d{3})/,cW=K6("weekYear","weekNumber","weekDay"),uW=K6("year","ordinal"),dW=/(\d{4})-(\d\d)-(\d\d)/,r8=RegExp(`${AS.source} ?(?:${e8.source}|(${Q6.source}))?`),pW=RegExp(`(?: ${r8.source})?`);mW=RegExp(`^T?${AS.source}$`),hW=/^-?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)?)?)$/;wW={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};yW=/^(?:(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)))$/;_W=/^(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$/,SW=/^(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$/,xW=/^(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})$/;TW=df(sW,IS),CW=df(aW,IS),PW=df(lW,IS),MW=df(t8),n8=pf(fW,mf,Fh,$h),AW=pf(cW,mf,Fh,$h),IW=pf(uW,mf,Fh,$h),LW=pf(mf,Fh,$h);kW=pf(mf);OW=df(dW,pW),NW=df(r8),RW=pf(mf,Fh,$h)});function hl(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 pr(n)}function f8(e,t){let r=t.milliseconds??0;for(let n of $W.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function d8(e,t){let r=f8(e,t)<0?-1:1;gu.reduceRight((n,i)=>{if(qe(t[i]))return n;if(n){let o=t[n]*r,s=e[i][n],l=Math.floor(o/s);t[i]+=l*r,t[n]-=l*s*r}return i},null),gu.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 VW(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var u8,p8,DW,qi,hf,FW,gu,$W,pr,Vh=R(()=>{ol();Dh();Ih();Ah();kS();Wn();ul();dl();u8="Invalid Duration",p8={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}},DW={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},...p8},qi=146097/400,hf=146097/4800,FW={years:{quarters:4,months:12,weeks:qi/7,days:qi,hours:qi*24,minutes:qi*24*60,seconds:qi*24*60*60,milliseconds:qi*24*60*60*1e3},quarters:{months:3,weeks:qi/28,days:qi/4,hours:qi*24/4,minutes:qi*24*60/4,seconds:qi*24*60*60/4,milliseconds:qi*24*60*60*1e3/4},months:{weeks:hf/7,days:hf,hours:hf*24,minutes:hf*24*60,seconds:hf*24*60*60,milliseconds:hf*24*60*60*1e3},...p8},gu=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],$W=gu.slice(0).reverse();pr=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?FW:DW;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||_t.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 gr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:cf(t,e.normalizeUnit),loc:_t.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 gr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=a8(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]=l8(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 gr("need to specify a reason the Duration is invalid");let n=t instanceof on?t:new on(t,r);if(bt.throwOnInvalid)throw new ew(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 tf(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?sn.create(this.loc,n).formatDurationFromString(this,t):u8}toHuman(t={}){if(!this.isValid)return u8;let r=gu.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+=nf(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},Ee.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?f8(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 gu)(fl(r.values,i)||fl(this.values,i))&&(n[i]=r.get(i)+this.get(i));return hl(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]=TS(t(this.values[n],n));return hl(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...cf(t,e.normalizeUnit)};return hl(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 hl(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return d8(this.matrix,t),hl(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=VW(this.normalize().shiftToAll().toObject());return hl(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 gu)if(t.indexOf(s)>=0){o=s;let l=0;for(let d in n)l+=this.matrix[d][s]*n[d],n[d]=0;Ao(i[s])&&(l+=i[s]);let a=Math.trunc(l);r[s]=a,n[s]=(l*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 d8(this.matrix,r),hl(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 hl(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 gu)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function UW(e,t){return!e||!e.isValid?Xs.invalid("missing or invalid start"):!t||!t.isValid?Xs.invalid("missing or invalid end"):t<e?Xs.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 gf,Xs,OS=R(()=>{dl();Vh();ul();ol();Ih();Dh();Ch();gf="Invalid Interval";Xs=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 gr("need to specify a reason the Interval is invalid");let n=t instanceof on?t:new on(t,r);if(bt.throwOnInvalid)throw new K0(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=wf(t),i=wf(r),o=UW(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=pr.fromDurationLike(r),i=wf(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=pr.fromDurationLike(r),i=wf(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=Ee.fromISO(n,r),s=o.isValid}catch{s=!1}let l,a;try{l=Ee.fromISO(i,r),a=l.isValid}catch{a=!1}if(s&&a)return e.fromDateTimes(o,l);if(s){let d=pr.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=pr.fromISO(n,r);if(d.isValid)return e.before(l,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(wf).filter(s=>this.contains(s)).sort((s,l)=>s.toMillis()-l.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,l=+s>+this.e?this.e:s;n.push(e.fromDateTimes(i,l)),i=l,o+=1}return n}splitBy(t){let r=pr.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 l=this.start.plus(r.mapUnits(a=>a*i));o=+l>+this.e?this.e:l,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),l=s.sort((a,d)=>a.time-d.time);for(let a of l)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()})`:gf}[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=sl,r={}){return this.isValid?sn.create(this.s.loc.clone(r),t).formatInterval(this):gf}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:gf}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:gf}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:gf}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:gf}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):pr.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var Qs,NS=R(()=>{dl();ul();Ah();cl();uw();Wn();Qs=class{static hasDST(t=bt.defaultZone){let r=Ee.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return rr.isValidZone(t)}static normalizeZone(t){return Mo(t,bt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||_t.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||_t.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||_t.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||_t.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||_t.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||_t.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||_t.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return _t.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return _t.create(r,null,"gregory").eras(t)}static features(){return{relative:aw(),localeWeek:lw()}}}});function m8(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(pr.fromMillis(n).as("days"))}function zW(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=m8(a,d);return(h-h%7)/7}],["days",m8]],i={},o=e,s,l;for(let[a,d]of n)r.indexOf(a)>=0&&(s=a,i[a]=d(e,t),l=o.plus(i),l>t?(i[a]--,e=o.plus(i),e>t&&(l=e,i[a]--,e=o.plus(i))):e=l);return[e,i,l,s]}function h8(e,t,r,n){let[i,o,s,l]=zW(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({[l]:1})),s!==i&&(o[l]=(o[l]||0)+a/(s-i)));let h=pr.fromObject(o,n);return d.length>0?pr.fromMillis(a,n).shiftTo(...d).plus(h):h}var g8=R(()=>{Vh()});function Et(e,t=r=>r){return{regex:e,deser:([r])=>t(C6(r))}}function BW(e){return e.replace(/\./g,"\\.?").replace(b8,v8)}function w8(e){return e.replace(/\./g,"").replace(b8," ").toLowerCase()}function Io(e,t){return e===null?null:{regex:RegExp(e.map(BW).join("|")),deser:([r])=>e.findIndex(n=>w8(r)===w8(n))+t}}function y8(e,t){return{regex:e,deser:([,r,n])=>fu(r,n),groups:t}}function mw(e){return{regex:e,deser:([t])=>t}}function jW(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function qW(e,t){let r=Bi(t),n=Bi(t,"{2}"),i=Bi(t,"{3}"),o=Bi(t,"{4}"),s=Bi(t,"{6}"),l=Bi(t,"{1,2}"),a=Bi(t,"{1,3}"),d=Bi(t,"{1,6}"),h=Bi(t,"{1,9}"),g=Bi(t,"{2,4}"),b=Bi(t,"{4,6}"),x=F=>({regex:RegExp(jW(F.val)),deser:([G])=>G,literal:!0}),A=(F=>{if(e.literal)return x(F);switch(F.val){case"G":return Io(t.eras("short"),0);case"GG":return Io(t.eras("long"),0);case"y":return Et(d);case"yy":return Et(g,Rh);case"yyyy":return Et(o);case"yyyyy":return Et(b);case"yyyyyy":return Et(s);case"M":return Et(l);case"MM":return Et(n);case"MMM":return Io(t.months("short",!0),1);case"MMMM":return Io(t.months("long",!0),1);case"L":return Et(l);case"LL":return Et(n);case"LLL":return Io(t.months("short",!1),1);case"LLLL":return Io(t.months("long",!1),1);case"d":return Et(l);case"dd":return Et(n);case"o":return Et(a);case"ooo":return Et(i);case"HH":return Et(n);case"H":return Et(l);case"hh":return Et(n);case"h":return Et(l);case"mm":return Et(n);case"m":return Et(l);case"q":return Et(l);case"qq":return Et(n);case"s":return Et(l);case"ss":return Et(n);case"S":return Et(a);case"SSS":return Et(i);case"u":return mw(h);case"uu":return mw(l);case"uuu":return Et(r);case"a":return Io(t.meridiems(),0);case"kkkk":return Et(o);case"kk":return Et(g,Rh);case"W":return Et(l);case"WW":return Et(n);case"E":case"c":return Et(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 y8(new RegExp(`([+-]${l.source})(?::(${n.source}))?`),2);case"ZZZ":return y8(new RegExp(`([+-]${l.source})(${n.source})?`),2);case"z":return mw(/[a-z_+-/]{1,256}?/i);case" ":return mw(/[^\S\n\r]/);default:return x(F)}})(e)||{invalidReason:WW};return A.token=e,A}function ZW(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 l=HW[s];if(typeof l=="object"&&(l=l[o]),l)return{literal:!1,val:l}}function YW(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function JW(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(fl(r,s)){let l=r[s],a=l.groups?l.groups+1:1;!l.literal&&l.token&&(i[l.token.val[0]]=l.deser(n.slice(o,o+a))),o+=a}return[n,i]}else return[n,{}]}function XW(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=rr.create(e.z)),qe(e.Z)||(r||(r=new Ot(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=Nh(e.u)),[Object.keys(e).reduce((o,s)=>{let l=t(s);return l&&(o[l]=e[s]),o},{}),r,n]}function QW(){return RS||(RS=Ee.fromMillis(1555555555555)),RS}function KW(e,t){if(e.literal)return e;let r=sn.macroTokenToFormatOpts(e.val),n=$S(r,t);return n==null||n.includes(void 0)?e:n}function DS(e,t){return Array.prototype.concat(...e.map(r=>KW(r,t)))}function FS(e,t,r){return new Uh(e,r).explainFromTokens(t)}function _8(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=FS(e,t,r);return[n,i,o,s]}function $S(e,t){if(!e)return null;let n=sn.create(t,e).dtFormatter(QW()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>ZW(s,e,o))}var WW,GW,v8,b8,HW,RS,Uh,S8=R(()=>{Wn();Dh();of();cl();dl();wS();ol();WW="missing Intl.DateTimeFormat.formatToParts support";GW="\xA0",v8=`[ ${GW}]`,b8=new RegExp(v8,"g");HW={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"}};RS=null;Uh=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=DS(sn.parseFormat(r),t),this.units=this.tokens.map(n=>qW(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=YW(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=JW(t,this.regex,this.handlers),[i,o,s]=n?XW(n):[null,null,void 0];if(fl(n,"a")&&fl(n,"H"))throw new To("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 zh(e){return new on("unsupported zone",`the zone "${e.name}" is not supported`)}function US(e){return e.weekData===null&&(e.weekData=Lh(e.c)),e.weekData}function zS(e){return e.localWeekData===null&&(e.localWeekData=Lh(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function wu(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ee({...r,...t,old:r})}function I8(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 hw(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 ww(e,t,r){return I8(rf(e),t,r)}function E8(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,lf(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=pr.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"),l=rf(o),[a,d]=I8(l,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function yf(e,t,r,n,i,o){let{setZone:s,zone:l}=r;if(e&&Object.keys(e).length!==0||t){let a=t||l,d=Ee.fromObject(e,{...r,zone:a,specificOffset:o});return s?d:d.setZone(l)}else return Ee.invalid(new on("unparsable",`the input "${i}" can't be parsed as ${n}`))}function gw(e,t,r=!0){return e.isValid?sn.create(_t.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function WS(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=dr(e.c.year,r?6:4),t?(n+="-",n+=dr(e.c.month),n+="-",n+=dr(e.c.day)):(n+=dr(e.c.month),n+=dr(e.c.day)),n}function T8(e,t,r,n,i,o){let s=dr(e.c.hour);return t?(s+=":",s+=dr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=dr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=dr(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=dr(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=dr(Math.trunc(-e.o/60)),s+=":",s+=dr(Math.trunc(-e.o%60))):(s+="+",s+=dr(Math.trunc(e.o/60)),s+=":",s+=dr(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function iG(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 tf(e);return t}function C8(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return iG(e)}}function oG(e){return vw[e]||(yw===void 0&&(yw=bt.now()),vw[e]=e.offset(yw)),vw[e]}function P8(e,t){let r=Mo(t.zone,bt.defaultZone);if(!r.isValid)return Ee.invalid(zh(r));let n=_t.fromObject(t),i,o;if(qe(e.year))i=bt.now();else{for(let a of k8)qe(e[a])&&(e[a]=L8[a]);let s=_S(e)||SS(e);if(s)return Ee.invalid(s);let l=oG(r);[i,o]=ww(e,l,r)}return new Ee({ts:i,zone:r,loc:n,o})}function M8(e,t,r){let n=qe(r.round)?!0:r.round,i=(s,l)=>(s=nf(s,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(s,l)),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 l=o(s);if(Math.abs(l)>=1)return i(l,s)}return i(e>t?-0:0,r.units[r.units.length-1])}function A8(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 wf(e){if(Ee.isDateTime(e))return e;if(e&&e.valueOf&&Ao(e.valueOf()))return Ee.fromJSDate(e);if(e&&typeof e=="object")return Ee.fromObject(e);throw new gr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var VS,x8,L8,eG,tG,k8,rG,nG,yw,vw,Ee,dl=R(()=>{Vh();OS();ul();NS();Dh();of();Ah();Wn();uw();g8();kS();S8();xS();Ch();ol();Ih();VS="Invalid DateTime",x8=864e13;L8={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},eG={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},tG={ordinal:1,hour:0,minute:0,second:0,millisecond:0},k8=["year","month","day","hour","minute","second","millisecond"],rG=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],nG=["year","ordinal","hour","minute","second","millisecond"];vw={},Ee=class e{constructor(t){let r=t.zone||bt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new on("invalid input"):null)||(r.isValid?null:zh(r));this.ts=qe(t.ts)?bt.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 l=Ao(t.o)&&!t.old?t.o:r.offset(this.ts);i=hw(this.ts,l),n=Number.isNaN(i.year)?new on("invalid input"):null,i=n?null:i,o=n?null:l}this._zone=r,this.loc=t.loc||_t.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]=A8(arguments),[n,i,o,s,l,a,d]=r;return P8({year:n,month:i,day:o,hour:s,minute:l,second:a,millisecond:d},t)}static utc(){let[t,r]=A8(arguments),[n,i,o,s,l,a,d]=r;return t.zone=Ot.utcInstance,P8({year:n,month:i,day:o,hour:s,minute:l,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=G6(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=Mo(r.zone,bt.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:_t.fromObject(r)}):e.invalid(zh(i))}static fromMillis(t,r={}){if(Ao(t))return t<-x8||t>x8?e.invalid("Timestamp out of range"):new e({ts:t,zone:Mo(r.zone,bt.defaultZone),loc:_t.fromObject(r)});throw new gr(`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,bt.defaultZone),loc:_t.fromObject(r)});throw new gr("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=Mo(r.zone,bt.defaultZone);if(!n.isValid)return e.invalid(zh(n));let i=_t.fromObject(r),o=cf(t,C8),{minDaysInFirstWeek:s,startOfWeek:l}=bS(o,i),a=bt.now(),d=qe(r.specificOffset)?n.offset(a):r.specificOffset,h=!qe(o.ordinal),g=!qe(o.year),b=!qe(o.month)||!qe(o.day),x=g||b,P=o.weekYear||o.weekNumber;if((x||h)&&P)throw new To("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(b&&h)throw new To("Can't mix ordinal dates with month/day");let A=P||o.weekday&&!x,F,G,$=hw(a,d);A?(F=rG,G=eG,$=Lh($,s,l)):h?(F=nG,G=tG,$=fw($)):(F=k8,G=L8);let W=!1;for(let xe of F){let Oe=o[xe];qe(Oe)?W?o[xe]=G[xe]:o[xe]=$[xe]:W=!0}let J=A?U6(o,s,l):h?z6(o):_S(o),K=J||SS(o);if(K)return e.invalid(K);let ce=A?yS(o,s,l):h?vS(o):o,[z,fe]=ww(ce,d,n),ke=new e({ts:z,zone:n,o:fe,loc:i});return o.weekday&&x&&t.weekday!==ke.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${ke.toISO()}`):ke.isValid?ke:e.invalid(ke.invalid)}static fromISO(t,r={}){let[n,i]=i8(t);return yf(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=o8(t);return yf(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=s8(t);return yf(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(qe(t)||qe(r))throw new gr("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=_t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[l,a,d,h]=_8(s,t,r);return h?e.invalid(h):yf(l,a,n,`format ${r}`,t,d)}static fromString(t,r,n={}){return e.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=c8(t);return yf(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new gr("need to specify a reason the DateTime is invalid");let n=t instanceof on?t:new on(t,r);if(bt.throwOnInvalid)throw new Q0(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=$S(t,_t.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return DS(sn.parseFormat(t),_t.fromObject(r)).map(i=>i.val).join("")}static resetCache(){yw=void 0,vw={}}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?US(this).weekYear:NaN}get weekNumber(){return this.isValid?US(this).weekNumber:NaN}get weekday(){return this.isValid?US(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?zS(this).weekday:NaN}get localWeekNumber(){return this.isValid?zS(this).weekNumber:NaN}get localWeekYear(){return this.isValid?zS(this).weekYear:NaN}get ordinal(){return this.isValid?fw(this.c).ordinal:NaN}get monthShort(){return this.isValid?Qs.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Qs.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Qs.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Qs.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=rf(this.c),i=this.zone.offset(n-t),o=this.zone.offset(n+t),s=this.zone.offset(n-i*r),l=this.zone.offset(n-o*r);if(s===l)return[this];let a=n-s*r,d=n-l*r,h=hw(a,s),g=hw(d,l);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[wu(this,{ts:a}),wu(this,{ts:d})]:[this]}get isInLeapYear(){return hu(this.year)}get daysInMonth(){return lf(this.year,this.month)}get daysInYear(){return this.isValid?pl(this.year):NaN}get weeksInWeekYear(){return this.isValid?mu(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?mu(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=sn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(Ot.instance(t),r)}toLocal(){return this.setZone(bt.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=Mo(t,bt.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]=ww(s,o,t)}return wu(this,{ts:i,zone:t})}else return e.invalid(zh(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return wu(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=cf(t,C8),{minDaysInFirstWeek:n,startOfWeek:i}=bS(r,this.loc),o=!qe(r.weekYear)||!qe(r.weekNumber)||!qe(r.weekday),s=!qe(r.ordinal),l=!qe(r.year),a=!qe(r.month)||!qe(r.day),d=l||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new To("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new To("Can't mix ordinal dates with month/day");let g;o?g=yS({...Lh(this.c,n,i),...r},n,i):qe(r.ordinal)?(g={...this.toObject(),...r},qe(r.day)&&(g.day=Math.min(lf(g.year,g.month),g.day))):g=vS({...fw(this.c),...r});let[b,x]=ww(g,this.o,this.zone);return wu(this,{ts:b,o:x})}plus(t){if(!this.isValid)return this;let r=pr.fromDurationLike(t);return wu(this,E8(this,r))}minus(t){if(!this.isValid)return this;let r=pr.fromDurationLike(t).negate();return wu(this,E8(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=pr.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?sn.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):VS}toLocaleString(t=sl,r={}){return this.isValid?sn.create(this.loc.clone(r),t).formatDateTime(this):VS}toLocaleParts(t={}){return this.isValid?sn.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",l=WS(this,s);return l+="T",l+=T8(this,s,r,n,i,o),l}toISODate({format:t="extended"}={}){return this.isValid?WS(this,t==="extended"):null}toISOWeekDate(){return gw(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":"")+T8(this,s==="extended",r,t,n,o):null}toRFC2822(){return gw(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return gw(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?WS(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")),gw(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():VS}[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 pr.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=B6(r).map(pr.normalizeUnit),s=t.valueOf()>this.valueOf(),l=s?this:t,a=s?t:this,d=h8(l,a,o,i);return s?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(e.now(),t,r)}until(t){return this.isValid?Xs.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),M8(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?M8(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 gr("min requires all arguments be DateTimes");return ES(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new gr("max requires all arguments be DateTimes");return ES(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=_t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return FS(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=_t.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Uh(o,t)}static fromFormatParser(t,r,n={}){if(qe(t)||qe(r))throw new gr("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=_t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new gr(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:l,zone:a,specificOffset:d,invalidReason:h}=r.explainFromTokens(t);return h?e.invalid(h):yf(l,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return sl}static get DATE_MED(){return ah}static get DATE_MED_WITH_WEEKDAY(){return K_}static get DATE_FULL(){return lh}static get DATE_HUGE(){return ch}static get TIME_SIMPLE(){return uh}static get TIME_WITH_SECONDS(){return dh}static get TIME_WITH_SHORT_OFFSET(){return ph}static get TIME_WITH_LONG_OFFSET(){return fh}static get TIME_24_SIMPLE(){return mh}static get TIME_24_WITH_SECONDS(){return hh}static get TIME_24_WITH_SHORT_OFFSET(){return gh}static get TIME_24_WITH_LONG_OFFSET(){return wh}static get DATETIME_SHORT(){return yh}static get DATETIME_SHORT_WITH_SECONDS(){return vh}static get DATETIME_MED(){return bh}static get DATETIME_MED_WITH_SECONDS(){return _h}static get DATETIME_MED_WITH_WEEKDAY(){return eS}static get DATETIME_FULL(){return Sh}static get DATETIME_FULL_WITH_SECONDS(){return xh}static get DATETIME_HUGE(){return Eh}static get DATETIME_HUGE_WITH_SECONDS(){return Th}}});var In=R(()=>{dl();Vh();OS();NS();pu();of();cl();hS();rw();ul()});function yu(e){return e instanceof Mr?e===jr.instance:e?.toString().toLowerCase()==="unknown"}function bw(e){return yu(e)?jr.instance:e}var jr,Wh=R(()=>{In();jr=class{};jr.instance=new rr("Etc/UTC")});function vf(e,t,r){return e<t?e-t:e>r?e-r:0}function bf(e,t,r){return e<t?t:e>r?r:e}function Lo(e,t=!0){if(e instanceof Mr)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return jr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=Ot.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=rr.create(e);if(!r.isValid){if(t)throw new GS(_w.TimeZoneNotRecognized);return null}return r}var _w,sG,GS,_f,BS=R(()=>{il();Wh();In();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(_w||(_w={}));sG={[_w.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},GS=class e extends Error{constructor(t,r){super(ms(sG[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};_f=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,l=0,a){if(isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(l))return null;let d=Ee.local(t,r).daysInMonth,h=Ee.fromObject({day:bf(n,1,d),year:t,month:bf(r,1,12),hour:bf(i,0,23),minute:bf(o,0,59),second:bf(s,0,59),millisecond:bf(l,0,999)},{zone:Lo(a)});return h=h.plus({months:vf(r,1,12),days:vf(n,1,d),hours:vf(i,0,23),minutes:vf(o,0,59),seconds:vf(s,0,59),milliseconds:vf(l,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===jr.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(Ee.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Lo(r);return new e(Ee.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(Ee.fromMillis(t,{zone:jr.instance}))}static unknownDateJSToArcadeDate(t){return new e(Ee.fromMillis(t.getTime(),{zone:jr.instance}))}static epochToArcadeDate(t,r="system"){let n=Lo(r);return new e(Ee.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===jr.instance||n===jr.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(Ee.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(Ee.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===jr.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=Ee.fromISO(t,{setZone:!0});return new e(r)}}});function Tt(e){return e?{remove(){e&&(e(),e=void 0)}}:aG}function lG(e){e.forEach(t=>t?.remove())}function vu(e){return Tt(()=>lG(e))}var aG,ri=R(()=>{aG={remove:()=>{}}});function N8(){let e=jS?.getAttribute("lang"),t=globalThis.navigator?.language;return uG??e??t??"en"}function Hi(){return Gh===void 0&&(Gh=N8()),Gh}function qS(e){return Sw.push(e),Tt(()=>Sw.splice(Sw.indexOf(e),1))}function Sf(e){return xw.push(e),Tt(()=>xw.splice(xw.indexOf(e),1))}function O8(){let e=cG??N8();Gh!==e&&([...xw].forEach(t=>t(e)),Gh=e,[...Sw].forEach(t=>t(e)))}var cG,Gh,uG,jS,Sw,xw,gl=R(()=>{ri();uG=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,jS=globalThis.document?.documentElement;Sw=[];xw=[];globalThis.addEventListener?.("languagechange",O8),jS&&new MutationObserver(()=>{O8()}).observe(jS,{attributeFilter:["lang"]})});function R8(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 an,Bh=R(()=>{BS();gl();In();an=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 Ee.fromObject({day:this.day,month:this.month,year:this.year},{zone:Lo(t)})}toDateTimeLuxon(t){return Ee.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=R8(t)),!t)return"";let n=this.toDateTime("unknown");return _f.dateTimeToArcadeDate(n).toFormat(t,{locale:Hi(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return _f.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 Ee.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=Ee.fromMillis(t,{zone:Ot.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=Ee.fromSeconds(t,{zone:Ot.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=R8(r))&&n.push(r);else if(r===null||r===""){let i=Ee.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Ee.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=Ee.fromJSDate(new Date).setZone(Lo(t));return new e(r.year,r.month,r.day)}}});var ee,dG,oe,wl=R(()=>{il();(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"})(ee||(ee={}));dG={[ee.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[ee.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[ee.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[ee.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[ee.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[ee.UnsupportedOperator]:"Unsupported operator - {operator}",[ee.UnsupportedSyntax]:"Unsupported syntax - {node}",[ee.UnsupportedSqlFunction]:"Sql function not found = {function}",[ee.InvalidDataType]:"Invalid sql data type",[ee.InvalidDate]:"Invalid date encountered",[ee.InvalidOperator]:"Invalid operator encountered",[ee.InvalidTime]:"Invalid time encountered",[ee.IllegalInterval]:"Illegal interval",[ee.FunctionNotRecognized]:"Function not recognized",[ee.InvalidTimeStamp]:"Invalid timestamp encountered",[ee.InvalidParameterCount]:"Invalid parameter count for call to {name}",[ee.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[ee.YearMonthIntervals]:"Year-Month Intervals not supported",[ee.CannotCastValue]:"Cannot cast value to the required data type"},oe=class e extends Error{constructor(t,r){super(ms(dG[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function D8(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var yn,jh=R(()=>{In();yn=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=Ee.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return D8(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return D8(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(Ee.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,l=0,a=!1,d=0,h=0){let g=`${t.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,b="";s<10&&(b="0");let x=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${b+s.toString()}`;l!==0&&(x+="."+l.toString().padStart(3,"0"));let P=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new e(g+"T"+x+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 N(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 l=e.length-1;l>=0;l--)(i=e[l])&&(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 mt=R(()=>{});var Ew,HS=R(()=>{Ew="20241209"});var Ct,yl=R(()=>{tt();fs();HS();Ct={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&&(h6(Ct,globalThis.esriConfig,!0),delete Ct.has),!Ct.assetsPath){{let e="4.32.0";Ct.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${Ew}/assets`}Ct.defaultAssetsPath=Ct.assetsPath}});function pG(e,t,...r){console[e](`[${t}]`,...r)}function fG(...e){return b6(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var F8,ct,nt=R(()=>{yl();tt();il();F8={info:0,warn:1,error:2,none:3},ct=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=fG(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 Ct.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",pG)}_matchLevel(t){let r=Ct.log.level||"warn";return F8[this._parentWithMember("level",r)]<=F8[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};ct._loggers=new Map,ct._tickCounter=0,ct._tickCounterScheduled=!1,ct._throttlingDisabled=!1});function Tw(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var ZS=R(()=>{});function mG(e){return e==null?e:new Date(e)}function hG(e){return e==null?e:!!e}function gG(e){return e==null?e:e.toString()}function QS(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function wG(e){return e==null?e:Math.round(parseFloat(e))}function yG(e){return null}function V8(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 U8(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function Cw(e,t){return t!=null&&e&&!(t instanceof e)}function z8(e){return e&&"isCollection"in e}function $8(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function vG(e,t){if(!t?.constructor||!z8(t.constructor))return YS(e,t)?t:new e(t);let r=$8(e.prototype.itemType),n=$8(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(YS(e,t),t):new e(t):t}function YS(e,t){return!!U8(t)&&(xf().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+Pw(e)+"'"),!0)}function KS(e,t){return t==null?t:z8(e)?vG(e,t):Cw(e,t)?YS(e,t)?t:new e(t):t}function Pw(e){return e?.prototype?.declaredClass||"unknown"}function _G(e){switch(e){case Number:return t=>QS(t);case ii:return wG;case Boolean:return hG;case String:return gG;case Date:return mG;case Hh:return yG;default:return Tw(bG,e,()=>KS.bind(null,e))}}function ni(e,t){let r=_G(e);return arguments.length===1?r:r(t)}function Ef(e,t,r){return arguments.length===1?Ef.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function W8(e,t){return arguments.length===1?Ef(r=>ni(e,r)):Ef(r=>ni(e,r),t)}function G8(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>G8(e,t-1,n)):e(r)}function qh(e,t,r){if(arguments.length===2)return o=>qh(e,t,o);if(!r)return r;r=G8(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 B8(e,t,r){return arguments.length===2?qh(n=>ni(e,n),t):qh(n=>ni(e,n),t,r)}function Mw(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function Aw(e,t){if(arguments.length===2)return Aw(e).call(null,t);let r=new Set,n=e.filter(l=>typeof l!="function"),i=e.filter(l=>typeof l=="function");for(let l of e)typeof l!="string"&&typeof l!="number"||r.add(l);let o=null,s=null;return(l,a)=>{if(l==null)return l;let d=typeof l,h=d==="string"||d==="number";return h&&(r.has(l)||i.some(g=>d==="string"&&g===String||d==="number"&&g===Number))||d==="object"&&i.some(g=>!Cw(l,g))?l:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),xf().error("Accessor#set",`'${l}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof l=="object"&&i.length?(s||(s=i.map(g=>Pw(g)).join(", ")),xf().error("Accessor#set",`'${l}' is not a valid value for this property, value must be one of ${s}`)):xf().error("Accessor#set",`'${l}' 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]=ni(d),n.push(Pw(d)),i.push(a)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,l=typeof e.key=="string"?a=>a[e.key]:e.key;return a=>{if(e.base&&!Cw(e.base,a)||a==null)return a;let d=l(a)||e.defaultKeyValue,h=r[d];if(!h)return xf().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(!Cw(e.typeMap[d],a))return a;if(typeof e.key=="string"&&!U8(a)){let g={};for(let b in a)b!==e.key&&(g[b]=a[b]);return h(g)}return h(a)}}function j8(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function ex(e){switch(e.type){case"native":return ni(e.value);case"array":return Ef(ex(e.value));case"one-of":return SG(e);default:return null}}function SG(e){let t=null;return(r,n)=>XS(r,e)?r:(t==null&&(t=JS(e)),xf().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function JS(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case ii:return"integer";case Date:return"date";case Hh:return"null";default:return Pw(e.value)}case"array":return`array of ${JS(e.value)}`;case"one-of":{let t=e.values.map(r=>JS(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function XS(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case ii:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case Hh:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!XS(r,t.value));case"one-of":return t.values.some(r=>XS(e,r))}}var xf,bG,ii,Hh,Zi=R(()=>{tt();nt();ZS();xf=()=>ct.getLogger("esri.core.accessorSupport.ensureTypes");bG=new WeakMap;ii=class{},Hh=class{}});function _i(e){return e.__accessor__??null}function H8(e,t){return e?.metadata?.[t]!=null}function Tf(e,t,r){return r?Iw(e,t,{policy:r,path:""}):Iw(e,t,null)}function Iw(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,l="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,l=r.policy(s)),l==="replace"||l==="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]=Iw(a,d,r),r.path=h}else n[o]=Iw(a,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function Lw(e){return Array.isArray(e)?e:e.split(".")}function q8(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function xG(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...q8(r));return t}return q8(e)}function tx(e,t,r,n){let i=xG(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return vu(o)}return n(e,i[0],r)}var Ks=R(()=>{ri();ur()});function Z8(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=_i(t);return H8(n,r)?n.get(r):t[r]}function Y8(e,t,r){if(e==null)return e;let n=Z8(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:Y8(n,t,r+1)}function bu(e,t,r=0){return typeof t!="string"||t.includes(".")?Y8(e,Lw(t),r):Z8(t,e)}function hs(e,t){return bu(e,t)}function rx(e,t){return bu(t,e)!==void 0}var _u=R(()=>{Ks()});function vl(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 Cf(e,t){let r=vl(e),n=r[t];return n||(n=r[t]={}),n}function J8(e,t){return Tf(e,t,TG)}function TG(e){return EG.test(e)?"replace":"merge"}var EG,Pf=R(()=>{ur();Ks();EG=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function CG(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Gi(n,t)??"").toString())}var Mf,nx=R(()=>{fs();Mf=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&CG(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var Ge,Ln=R(()=>{ur();nt();nx();Ge=class e extends Mf{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 ct.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 Af(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Af(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Af(hs(e,i),o,r)}let n=e.__accessor__;n!=null&&PG(t,n),e[t]=r}}function PG(e,t){if(pe("esri-unknown-property-errors")&&!MG(e,t))throw new Ge("set:unknown-property",AG(e,t))}function MG(e,t){return t.metadata[e]!=null}function AG(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var ix=R(()=>{Ln();tt();nt();_u()});function U(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=Cf(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&&ct.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=hs(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let b=hs(this,h);b&&(g=g.bind(b))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Af(this,a,g)})}let s=e.type,l=e.types;if(!i.cast){let a;s?a=IG(s):l&&(a=Array.isArray(l)?Ef(ko(l[0])):ko(l)),e.cast=LG(e.cast,a)}J8(i,e),e.range&&(i.cast=V8(i.cast,e.range))}}function kw(e,t,r){let n=Cf(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 IG(e){let t=0,r=e;if(j8(e))return ex(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(Mw(n))return t===0?Aw(n):qh(Aw(n),t);if(t===1)return W8(n);if(t>1)return B8(n,t);let i=e;return i.from?i.from:ni(i)}function LG(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var ht=R(()=>{nt();Zi();_u();Pf();ix()});var Ow,ox=R(()=>{Ow=Symbol("Accessor-beforeDestroy")});var ln,Zh=R(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(ln||(ln={}))});var gt,Nw=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"})(gt||(gt={}))});var gs,Yh=R(()=>{gs=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 Qe(e){Xh.onAccessed(e)}function Oo(e,t,r){if(Rw)return sx(e,t,r);let n=null;return K8(e),n=t.call(r),eP(),n}function Q8(e,t){return Oo(Fw,e,t)}function sx(e,t,r){let n=Rw;Rw=!0,K8(e);let i=null;try{i=t.call(r)}catch(o){Dw&&ct.getLogger("esri.core.accessorSupport.tracking").error(o)}return eP(),Rw=n,i}function K8(e){Xh=e,Jh.push(e)}function eP(){let e=Jh.length;if(e>1){let t=Jh.pop();Xh=Jh[e-2],t.onTrackingEnd()}else if(e===1){let t=Jh.pop();Xh=Fw,t.onTrackingEnd()}else Xh=Fw}function ax(e,t){if(t.flags>.DepTrackingInitialized)return;t.flags|=gt.DepTrackingInitialized;let r=Dw;Dw=!1,t.flags>.AutoTracked?sx(t.trackingTarget,t.metadata.get,e):lx(e,t),Dw=r}function lx(e,t){t.flags>.ExplicitlyTracking||(t.flags|=gt.ExplicitlyTracking,sx(t.trackingTarget,()=>{let r=t.metadata.dependsOn||kG;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=Lw(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=X8(s,i[o],o!==i.length-1)}else X8(e,n,!1)}),t.flags&=~gt.ExplicitlyTracking)}function X8(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=_i(e);if(i){let o=i.propertiesByName.get(n);o&&(Qe(o),ax(e,o))}return r?e[n]:void 0}var Fw,Jh,Xh,Rw,Dw,kG,Su=R(()=>{tt();nt();Ks();Nw();Yh();Fw=new gs,Jh=[],Xh=Fw;Rw=!1,Dw=!1;kG=[]});function tP(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 rP=R(()=>{});var Qh,nP=R(()=>{nx();Qh=class extends Mf{constructor(t,r,n){super(t,r,n)}};Qh.prototype.type="warning"});function $w(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var cx=R(()=>{});function dx(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||RG(e)&&Zs("read.reader",px(e),t))}function px(e){let t=e.ndimArray??0;if(t>1)return NG(e);if(t===1)return iP(e);if("type"in e&&sP(e.type)){let r=e.type.prototype?.itemType?.Type,n=iP(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let l=n(i,o,s);return l&&new e.type(l)}}return fx(e)}function fx(e){return"type"in e?OG(e.type):DG(e.types)}function OG(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void ux().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 oP(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>oP(e,i,r,n-1)):e(t,void 0,r)}function NG(e){let t=fx(e),r=oP.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let l=n,a=i;for(;l>0&&Array.isArray(a);)l--,a=a[0];if(a!==void 0)for(let d=0;d<l;d++)i=[i];return i}}function iP(e){let t=fx(e);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let l of r){let a=t(l,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 sP(e){if(!$w(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?mx(t.Type):aP(t.Type))}function RG(e){return"types"in e?aP(e.types):mx(e.type)}function mx(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||sP(e))}function aP(e){for(let t in e.typeMap)if(!mx(e.typeMap[t]))return!1;return!0}function DG(e){let t=null,r=e.errorContext??"type",n=e.validate;return(i,o,s)=>{if(i==null)return i;let l=typeof i;if(l!=="object")return void ux().error(`Expected JSON value of type 'object' to deserialize, but got '${l}'`);t||(t=FG(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 b=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new Qh(`${r}:unsupported`,b,{definition:i,context:s})),void ux().error(b)}let g=new h;return g.read(i,s),n?n(g):g}}function FG(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=vl(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 l=s.target,a=typeof l=="string"?l:e.key,d={};s.writer(r,d,a),d[a]&&(t[d[a]]=n)}return t}var ux,hx=R(()=>{nt();fs();nP();Pf();cx();ux=()=>ct.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function dP(e){if(e.json||(e.json={}),cP(e.json),uP(e.json),lP(e.json),e.json.origins)for(let t in e.json.origins)cP(e.json.origins[t]),uP(e.json.origins[t]),lP(e.json.origins[t]);return!0}function lP(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 cP(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 uP(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 pP=R(()=>{});function gx(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&&$w(e.type))?t.write.writer=zG:r>1?t.write.writer=WG(r):t.types?Array.isArray(t.types)?t.write.writer=VG(t.types[0]):t.write.writer=$G(t.types):t.write.writer=Kh}function $G(e){return(t,r,n,i)=>t?fP(t,e,i)?Kh(t,r,n,i):void 0:Kh(t,r,n,i)}function fP(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})),ct.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function VG(e){return(t,r,n,i)=>!t||!Array.isArray(t)?Kh(t,r,n,i):Kh(t.filter(o=>fP(o,e,i)),r,n,i)}function Kh(e,t,r,n){Zs(r,Vw(e,n),t)}function Vw(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?UG(e):e}function UG(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function zG(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>Vw(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[Vw(e,n)],Zs(r,i,t)}function mP(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>mP(n,t,r-1)):Vw(e,t)}function WG(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=mP(t,i,e);let s=e,l=o;for(;s>0&&Array.isArray(l);)s--,l=l[0];if(l!==void 0)for(let a=0;a<s;a++)o=[o]}Zs(n,o,r)}}var hP=R(()=>{Ln();nt();fs();cx()});function gP(e,t){return yx(e,"any",t?.origin)}function Uw(e,t){return yx(e,"read",t?.origin)}function wP(e,t){return yx(e,"write",t?.origin)}function yx(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 GG(e){let t=BG(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?jG(n):t;dx(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),gx(i,n)}dx(t,e.json,!0),gx(t,e.json)}function BG(e){return e.json.types?wx(e.json):e.type?yP(e):wx(e)}function jG(e){return e.type?yP(e):wx(e)}function yP(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!Mw(r);)r=r[0],t++;return{type:r,ndimArray:t}}function wx(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 vP(e){dP(e)&&(tP(e),GG(e))}var zw=R(()=>{Zi();rP();hx();pP();hP()});function Ie(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,HG(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!vx.has(i.initialize)&&(vx.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!bx.has(i.destroy)&&(bx.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);vx.clear(),bx.clear();let o=class extends t{constructor(...l){if(super(...l),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[Ow];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__=vl(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 qG(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;r.mutable&&Qe(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 HG(e){let t=e.prototype,r=vl(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];vP(o),n[i]={enumerable:!0,configurable:!0,get:qG(i,o),set(s){let l=this.__accessor__;if(l!==void 0){if(l.mutable)return l.initialized&&o.readOnly?bP("read-only",i):l.lifecycle===ln.CONSTRUCTED&&o.constructOnly?bP("construct-only",i):void l.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(e.prototype,n)}var vx,bx,bP,dt=R(()=>{tt();nt();ox();Zh();Pf();Su();zw();vx=new Set,bx=new Set;bP=(e,t)=>{ct.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function _x(e){return e!=null&&typeof e[Symbol.iterator]=="function"}var _P=R(()=>{});function Ww(e){return e||"_default_"}function SP(e){for(let t of e)t instanceof If?t.removeAll():t.remove()}function xP(e){return e!=null&&(!!e.remove||e instanceof If)}var If,EP=R(()=>{_P();If=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(_x(t)){let n=this._getOrCreateGroup(r);for(let i of t)xP(i)&&n.push(i)}else xP(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(Ww(t))}remove(t){if(typeof t!="string"&&_x(t)){for(let r of t)this.remove(r);return this}return this.has(t)?(SP(this._getGroup(t)),this._groups.delete(Ww(t)),this):this}removeAll(){return this._groups.forEach(SP),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(Ww(t),r),r}_getGroup(t){return this._groups.get(Ww(t))}}});function TP(e,t){if(e==null)throw new Error(t??"value is None")}function eg(e){return e?.destroy(),null}function tg(e){return e?.remove(),null}function CP(e){return e?.abort(),null}var bl=R(()=>{});function ZG(e){return e?.release&&typeof e.release=="function"}function YG(e){return e?.acquire&&typeof e.acquire=="function"}var No,rg=R(()=>{No=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):YG(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):ZG(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()}};No.test={disabled:!1}});var Gw,PP=R(()=>{nl();Gw=class{constructor(t,r){this._observers=t,this._observer=r}remove(){X9(this._observers,this._observer)}}});var Lf,JG,Sx=R(()=>{ri();PP();Lf=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return JG;this._observers==null&&(this._observers=[]);let r=this._observers,n=!1,i=!1,o=r.length;for(let s=0;s<o;++s){let l=r[s];if(l.destroyed)i=!0;else if(l===t){n=!0;break}}return n||(r.push(t),i&&this._removeDestroyedObservers()),new Gw(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}}},JG=Tt()});function Bw(e){switch(e){case"defaults":return at.DEFAULTS;case"service":return at.SERVICE;case"portal-item":return at.PORTAL_ITEM;case"web-scene":return at.WEB_SCENE;case"web-map":return at.WEB_MAP;case"link-chart":return at.LINK_CHART;case"user":return at.USER;default:return null}}function jw(e){switch(e){case at.DEFAULTS:return"defaults";case at.SERVICE:return"service";case at.PORTAL_ITEM:return"portal-item";case at.WEB_SCENE:return"web-scene";case at.WEB_MAP:return"web-map";case at.LINK_CHART:return"link-chart";case at.USER:return"user"}}function MP(e){return jw(e)}var at,Uce,_l=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"})(at||(at={}));Uce=at.USER+1});var ng,AP=R(()=>{Sx();_l();Su();Nw();Yh();ng=class extends Lf{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this.trackingTarget=new gs(this),this.flags=0,this.flags=gt.Dirty|(r.nonNullable?gt.NonNullable:0)|(r.hasOwnProperty("value")?gt.HasDefaultValue:0)|(r.get===void 0?gt.DepTrackingInitialized:0)|(r.dependsOn===void 0?gt.AutoTracked:0)}destroy(){this.flags>.Dirty&&this.onCommitted(),super.destroy(),this.trackingTarget.destroy()}getComputed(t){t.mutable&&Qe(this);let r=t.store,n=this.propertyName,i=this.flags,o=r.get(n);if(i>.Computing||~i>.Dirty&&r.has(n))return o;this.flags|=gt.Computing;let s=t.host,l;i>.AutoTracked?l=Oo(this.trackingTarget,this.metadata.get,s):(lx(s,this),l=this.metadata.get.call(s)),this.flags|=gt.DepTrackingInitialized,r.set(n,l,at.COMPUTED);let a=r.get(n);return a===o?this.flags&=~gt.Dirty:Q8(this.commit,this),this.flags&=~gt.Computing,a}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~gt.Dirty,this.onCommitted()}onInvalidated(){~this.flags>.Overridden&&(this.flags|=gt.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 qw,IP=R(()=>{ur();_l();qw=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 at.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 Hw(e,t,r){return e!==void 0}function LP(e,t,r,n){return e!==void 0&&(!(r==null&&e.flags>.NonNullable)||(n.lifecycle,ln.INITIALIZING,!1))}var Zw,Ex,xx,kP=R(()=>{tt();ur();nt();rg();Zh();AP();_l();IP();Su();Nw();Yh();Zw=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=ln.INITIALIZING,this.store=new qw,this.mutable=!0,this._origin=at.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new ng(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=ln.CONSTRUCTING}constructed(){this.lifecycle=ln.CONSTRUCTED}destroy(){this.lifecycle=ln.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==ln.INITIALIZING}get(t){let r=this.propertiesByName.get(t);if(r.metadata.get)return r.getComputed(this);this.mutable&&Qe(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>.HasDefaultValue)return"defaults"}return jw(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(Hw(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);Hw(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!Hw(i))return"";let o=new gs,s=Oo(o,()=>i.metadata.get?.call(t)),l=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
|
|
2
2
|
`,a=o.accessed??new Set;if(a.size===0)return l;n+=" ";for(let d of a)d instanceof ng&&(l+=`${n}${d.propertyName}: undefined
|
|
3
3
|
`);return l}setAtOrigin(t,r,n){let i=this.propertiesByName.get(t);if(Hw(i))return this._setAtOrigin(i,r,n)}isOverridden(t){let r=this.propertiesByName.get(t);return r!==void 0&&!!(r.flags>.Overridden)}clearOverride(t){let r=this.propertiesByName.get(t);r&&r.flags>.Overridden&&(r.flags&=~gt.Overridden,r.notifyChange())}override(t,r){let n=this.propertiesByName.get(t);if(!LP(n,t,r,this))return;let i=n.metadata.cast;if(i){let o=this._cast(i,r),{valid:s,value:l}=o;if(xx.release(o),!s)return;r=l}n.flags|=gt.Overridden,this._internalSet(n,r)}set(t,r){let n=this.propertiesByName.get(t);if(!LP(n,t,r,this))return;let i=n.metadata.cast;if(i){let s=this._cast(i,r),{valid:l,value:a}=s;if(xx.release(s),!l)return;r=a}let o=n.metadata.set;o?o.call(this.host,r):this._internalSet(n,r)}setDefaultOrigin(t){this._origin=Bw(t)}getDefaultOrigin(){return jw(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!==ln.INITIALIZING?this._origin:at.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>.Overridden&&n===i.originOf(o)||(t.invalidate(),i.set(o,r,n),t.commit(),ax(this.host,t))}_cast(t,r){let n=xx.acquire();return n.valid=!0,n.value=r,t&&(n.value=t.call(this.host,r,n)),n}},Ex=class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}},xx=new No(Ex)});function Tx(){return XG}var XG,OP,NP=R(()=>{(function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"})(OP||(OP={}))});function QG(e){e.length=0}var Gn,Cx,Yw=R(()=>{rg();Gn=class{constructor(t=50,r=50){this._pool=new No(Array,void 0,QG,r,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return Cx.acquire()}static release(t){return Cx.release(t)}static prune(){Cx.prune()}},Cx=new Gn(100)});var Jw,RP=R(()=>{rg();Jw=class extends No{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 Px(e){Xw.push(e),Xw.length===1&&queueMicrotask(()=>{let t=Xw.slice();Xw.length=0;for(let r of t)r()})}var Xw,DP=R(()=>{Xw=[]});var ig,FP=R(()=>{ig=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 Mx,Ax,$P=R(()=>{(function(e){let t=(o,s,l,a)=>{let d=s,h=s,g=l>>>1,b=o[d-1];for(;h<=g;){h=d<<1,h<l&&a(o[h-1],o[h])<0&&++h;let x=o[h-1];if(a(x,b)<=0)break;o[d-1]=x,d=h}o[d-1]=b},r=(o,s)=>o<s?-1:o>s?1:0;function n(o,s,l,a){s===void 0&&(s=0),l===void 0&&(l=o.length),a===void 0&&(a=r);for(let h=l>>>1;h>s;h--)t(o,h,l,a);let d=s+1;for(let h=l-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,t(o,d,h,a)}}function*i(o,s,l,a){s===void 0&&(s=0),l===void 0&&(l=o.length),a===void 0&&(a=r);for(let h=l>>>1;h>s;h--)t(o,h,l,a),yield;let d=s+1;for(let h=l-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})(Mx||(Mx={}));Ax=Mx});function VP(e){e.data.length>KG*e.length&&(e.data.length=Math.floor(e.length*eB))}var KG,eB,og,UP=R(()=>{nl();$P();KG=1.5,eB=1.1,og=class{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new oh,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=()=>VP(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++,VP(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=Q_(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(Q_(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=J9(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){Ax.sort(this.data,0,this.length,t)}iterableSort(t){return Ax.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 tB(e){return{setTimeout:(t,r)=>{let n=e.setTimeout(t,r);return Tt(()=>e.clearTimeout(n))}}}var zP,WP=R(()=>{ri();zP=tB(globalThis)});function sg(e){return rB(e)||GP(e)}function rB(e){return e!=null&&typeof e=="object"&&"on"in e&&typeof e.on=="function"}function GP(e){return e!=null&&typeof e=="object"&&"addEventListener"in e&&typeof e.addEventListener=="function"}function Sl(e,t,r){if(!sg(e))throw new TypeError("target is not a Evented or EventTarget object");return GP(e)?nB(e,t,r):e.on(t,r)}function nB(e,t,r,n){if(Array.isArray(t)){let i=t.slice();for(let o of i)e.addEventListener(o,r,n);return Tt(()=>{for(let o of i)e.removeEventListener(o,r,n)})}return e.addEventListener(t,r,n),Tt(()=>e.removeEventListener(t,r,n))}function BP(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=Sl(e,t,i=>{n.remove(),r.call(e,i)});return n}var ag=R(()=>{ri()});function ws(e="Aborted"){return new Ge("AbortError",e)}function Qw(e){return e instanceof AbortSignal?e:e?.signal??void 0}function ea(e){let t=Qw(e);return t!=null&&t.aborted}function Ix(e){if(!lg(e))throw e}function Si(e,t){let r=Qw(e);if(r!=null){if(!r.aborted)return BP(r,"abort",()=>t());t()}}function lg(e){return e?.name==="AbortError"}function iB(e,t=void 0,r){let n=new AbortController;return Si(r,()=>n.abort()),new Promise((i,o)=>{let s=setTimeout(()=>{s=0,i(t)},e);Si(n,()=>{s&&(clearTimeout(s),o(ws()))})})}function oB(e){return e&&typeof e.then=="function"}function jP(e){return oB(e)?e:Promise.resolve(e)}function qP(e,t=-1){let r,n,i,o,s=null,l=(...a)=>{if(r){n=a,o&&o.reject(ws()),o=oi();let b=o.promise;if(s){let x=s;s=null,x.abort()}return b}if(i=o||oi(),o=null,t>0){let b=new AbortController;r=jP(e(...a,b.signal));let x=r;iB(t).then(()=>{r===x&&(o?b.abort():s=b)})}else r=1,r=jP(e(...a));let d=()=>{let b=n;n=i=r=s=null,b!=null&&l(...b)},h=r,g=i;return h.then(d,d),h.then(g.resolve,g.reject),g.promise};return l}function oi(){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)=>zP.setTimeout(()=>n.reject(o),i),n.promise=r,n}var Ro=R(()=>{WP();Ln();ag();nt();bl()});var HP=R(()=>{});function sB(){ug!=null&&(cancelAnimationFrame(ug),ug=requestAnimationFrame(JP))}function ty(e){let t=new Lx(e);return Ox.push(t),ey.willDispatch||(ey.willDispatch=!0,Px(QP)),t}function aB(e=!1){kf.forAll(t=>{t.removed=!0}),e&&XP()}function JP(){let e=performance.now();ug=null,ug=kf.some(r=>!r.paused&&!r.removed)?requestAnimationFrame(JP):null,ey.executeFrameTasks(e)}function lB(e){let t=e-ZP;ZP=e;let r=YP>0?YP:1e3/60,n=Math.max(0,t-r);cg.time=e,cg.frameDuration=r-n;for(let i=0;i<kx.length;i++){let o=performance.now(),s=kx[i];kf.forAll(l=>{l.paused||l.removed||(i===0&&l.ticks++,l.phases[s]&&(cg.elapsedFrameTime=performance.now()-e,cg.deltaTime=l.ticks===0?0:t,l.phases[s]?.call(l,cg)))}),dB[i].push(performance.now()-o)}XP(),pB.push(performance.now()-e)}function XP(){kf.forAll(e=>{e.removed&&Kw.push(e)}),kf.removeUnorderedMany(Kw.data,Kw.length),Kw.clear()}function QP(){for(;Ox.length;){let e=Ox.shift();e.isActive&&e.callback()}ey.willDispatch=!1}function cB(e=1,t){let r=oi(),n=()=>{ea(t)?r.reject(ws()):e===0?r():(--e,Px(()=>n()))};return n(),r.promise}function uB(e){return cB(1,e)}async function KP(e){await uB(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}var Lx,ZP,YP,cg,kx,Ox,kf,ey,ug,Kw,dB,pB,ry=R(()=>{DP();FP();UP();Ro();HP();Lx=class{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}},ZP=0,YP=0,cg={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},kx=["prepare","preRender","render","postRender","update","finish"],Ox=[],kf=new og;ey={frameTasks:kf,willDispatch:!1,clearFrameTasks:aB,dispatch:QP,executeFrameTasks:lB,reschedule:sB};ug=null;Kw=new og;dB=kx.map(e=>new ig(e)),pB=new ig("total")});function eM(e,t){if(!t)return e;for(let r of t)r!=null&&e.add(r);return e}function tM(e,t){let r=new Set;return eM(r,e),eM(r,t),r}var Nx=R(()=>{});function ny(){return++fB}var fB,rM=R(()=>{fB=0});function mB(){}var xu,Rx,nM,Dx=R(()=>{Yh();xu=class extends gs{constructor(t){super(new Rx(t)),this._observer&&nM.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&nM.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}},Rx=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=mB}},nM=new FinalizationRegistry(e=>{e.deref()?.destroy()})});function $x(e,t){let r=new xu(o),n=null,i=!1;function o(){if(!r||i)return;if(Fx)return void hB(o);let l=n;r.clear(),Fx=!0,i=!0,n=Oo(r,e),i=!1,Fx=!1,t(n,l),gB()}function s(){r&&(r.destroy(),r=null,n=null)}return i=!0,n=Oo(r,e),i=!1,Tt(s)}function Vx(e,t){let r=new xu(i),n=null;function i(){t(n,s)}function o(){r&&(r.destroy(),r=null),n=null}function s(){return r?(r.clear(),n=Oo(r,e),n):null}return s(),Tt(o)}function hB(e){iy.includes(e)||iy.unshift(e)}function gB(){for(;iy.length;)iy.pop()()}var Fx,iy,Ux=R(()=>{ri();Su();Dx();Fx=!1,iy=[]});function ay(e){xl.delete(e),xl.add(e),sy||(sy=ty(yB))}function wB(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function iM(e){for(let t of xl.values())t.target===e&&(t.removed=!0)}function yB(){let e=10;for(;sy&&e--;){sy=null;let t=vB(),r=oy.acquire();for(let n of t){let i=n.uid;wB(n),i===n.uid&&n.removed&&r.push(n)}for(let n of xl)n.removed&&(r.push(n),xl.delete(n));for(let n of r)Eu.pool.release(n);oy.release(r),oy.release(t),bB.forEach(n=>n())}}function vB(){let e=oy.acquire();e.length=xl.size;let t=0;for(let r of xl)e[t]=r,++t;return xl.clear(),e}function _B(e,t,r){let n=tx(e,t,r,(i,o,s)=>{let l,a,d=Vx(()=>bu(i,o),(h,g)=>{i.__accessor__?.lifecycle===ln.DESTROYED||l&&l.uid!==a?n.remove():(l||(l=Eu.acquireUntracked(h,s,g,i,o),a=l.uid),ay(l))});return Tt(()=>{d.remove(),l&&(l.uid!==a||l.removed||(l.removed=!0,ay(l)),l=null),n=d=null})});return n}function SB(e,t,r){let n=tx(e,t,r,(i,o,s)=>{let l=!1;return $x(()=>bu(i,o),(a,d)=>{i.__accessor__.lifecycle!==ln.DESTROYED?l||(l=!0,sh(d,a)||s.call(i,a,d,o,i),l=!1):n.remove()})});return n}function oM(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==ln.DESTROYED?n?SB(e,t,r):_B(e,t,r):Tt()}function xB(e,t,r){let n,i,o=Vx(e,(s,l)=>{n&&n.uid!==i?o.remove():(n||(n=Eu.acquireTracked(s,t,l,r),i=n.uid),ay(n))});return Tt(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,ay(n)),n=null),o=null})}function EB(e,t,r){let n=!1;return $x(e,(i,o)=>{n||(n=!0,r(o,i)||t(i,o),n=!1)})}function sM(e,t,r=!1,n=m6){return r?EB(e,t,n):xB(e,t,n)}var dg,Eu,oy,xl,sy,bB,zx=R(()=>{Yw();ri();ur();RP();ry();Nx();rM();_u();Zh();Ux();Ks();(function(e){e[e.Untracked=0]="Untracked",e[e.Tracked=1]="Tracked"})(dg||(dg={}));Eu=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(dg.Untracked,t,r,n,i,o,sh)}static acquireTracked(t,r,n,i){return this.pool.acquire(dg.Tracked,t,r,n,null,null,i)}notify(t,r){this.type===dg.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,l){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=l}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=ny(),this.removed=!0}};Eu.pool=new Jw(Eu);oy=new Gn,xl=new Set;bB=new Set});function TB(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 aM,lM,ys,Wx,qr,El=R(()=>{EP();bl();ox();_u();Zh();Pf();kP();ix();NP();zx();ht();dt();ys=Symbol("Accessor-Handles"),Wx=Symbol("Accessor-Initialized"),qr=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)}}vl(s.prototype);for(let l in t){let a=t[l];s.prototype[l]=typeof a=="function"?function(...d){let h=this.inherited,g;this.inherited=function(...b){if(o.prototype[l])return o.prototype[l].apply(this,b)};try{g=a.apply(this,d)}catch(b){throw this.inherited=h,b}return this.inherited=h,g}:t[l]}for(let l in r){let a=TB(r[l]);U(a)(s.prototype,l)}return Ie(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[aM]=null,this[lM]=!1,this.constructor===e)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let r=new Zw(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:r}),t.length>0&&(r.ctorArgs=this.normalizeCtorArgs?.apply(this,t)??t[0]),Tx()?.onInstanceConstruct(this)}postscript(){let t=this.__accessor__,r=t.ctorArgs;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[Wx]=!0}initialize(){}[Ow](){this[ys]=eg(this[ys])}destroy(){this.destroyed||(iM(this),this.__accessor__.destroy(),Tx()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[Wx]}get destroyed(){return this.__accessor__?.lifecycle===ln.DESTROYED||!1}commitProperty(t){hs(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 Af(this,t,r),this}watch(t,r,n){return oM(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[ys]??(this[ys]=new If)).add(t,r)}removeHandles(t){this[ys]?.remove(t)}removeAllHandles(){this[ys]?.removeAll()}removeHandlesReference(t){this[ys]?.removeReference(t)}hasHandles(t){return this[ys]?.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}};aM=ys,lM=Wx});var ly,Gx,cM=R(()=>{ur();_l();ly=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??at.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))===at.DEFAULTS){let i=this._values.get(t);if(i?.origin!=null&&i.origin>n)return}this._values.set(t,new Gx(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===at.DEFAULTS?t:at.USER}},Gx=class{constructor(t,r){this.value=t,this.origin=r}}});function uM(e,t,r){t.keys().forEach(i=>{r.set(i,t.get(i),at.DEFAULTS)});let n=e.metadata;Object.keys(n).forEach(i=>{e.internalGet(i)&&r.set(i,e.internalGet(i),at.DEFAULTS)})}var dM=R(()=>{_l()});function CB(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&&rx(n,r))return!0}else for(let i of n)if(i===t||i.includes(".")&&i.indexOf(t)===0&&rx(i,r))return!0;return!1}function PB(e){return e&&(!e.read||e.read.enabled!==!1&&!e.read.source)}function MB(e,t,r,n,i){let o=Uw(t[r],i);PB(o)&&(e[r]=!0);for(let s of Object.getOwnPropertyNames(t))o=Uw(t[s],i),CB(o,r,n)&&(e[s]=!0)}function AB(e,t,r,n){let i=r.metadata,o=gP(i[t],n),s=o?.default;if(s===void 0)return;let l=typeof s=="function"?s.call(e,t,n):s;l!==void 0&&r.set(t,l)}function pM(e,t,r=IB){if(!t||typeof t!="object")return;let n=_i(e),i=n.metadata,o={};for(let s of Object.getOwnPropertyNames(t))MB(o,i,s,t,r);n.setDefaultOrigin(r.origin);for(let s of Object.getOwnPropertyNames(o)){let l=Uw(i[s],r).read,a=l?.source,d;d=a&&typeof a=="string"?bu(t,a):t[s],l?.reader&&(d=l.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]||AB(e,s,n,r)}n.setDefaultOrigin("user")}var IB,fM=R(()=>{_u();Ks();zw();IB={origin:"service"}});function LB(e,t,r,n,i){let o={};return t.write?.writer?.call(e,n,o,r,i),o}function kB(e,t,r,n,i,o){if(!n?.write)return!1;let s=hs(e,r);if(!i&&n.write.overridePolicy){let l=n.write.overridePolicy.call(e,s,r,o??void 0);l!==void 0&&(i=l)}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 l=new Ge("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return l&&o?.messages?o.messages.push(l):l&&!o&&ct.getLogger("esri.core.accessorSupport.write").error(l.name,l.message),!1}return!(s===void 0||s===null&&!i.allowNull&&!i.writerEnsuresNonNull||!i.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||t.store.originOf(r)===at.DEFAULTS)&&OB(e,r,o,n,s)||!i.ignoreOrigin&&o?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<Bw(o.origin))}function OB(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 rl(s,i)}return!1}return o===i}function mM(e,t,r){if(e&&typeof e.toJSON=="function"&&(!e.toJSON.isDefaultToJSON||!e.write))return Tf(t,e.toJSON(r));let n=_i(e),i=n.metadata;for(let o in i){let s=wP(i[o],r);if(!kB(e,n,o,s,void 0,r))continue;let l=hs(e,o),a=LB(e,s,s.write&&typeof s.write.target=="string"?s.write.target:o,l,r);Object.keys(a).length>0&&(t=Tf(t,a),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>Tf(t,a,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:MP(n.store.originOf(o)),newOrigin:r.origin}))}return t}var hM=R(()=>{nl();Ln();nt();_u();_l();Ks();zw()});function NB(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 gM,pg,ut,Ar=R(()=>{mt();El();cM();dM();fM();Ks();hM();dt();gM=e=>{let t=class extends e{constructor(...r){super(...r);let n=_i(this),i=n.store,o=new ly;n.store=o,uM(n,i,o)}read(r,n){pM(this,r,n)}write(r,n){return mM(this,r??{},n)}toJSON(r){return this.write({},r)}static fromJSON(r,n){return NB.call(this,r,n)}};return t=N([Ie("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};pg=class extends gM(qr){};pg=N([Ie("esri.core.JSONSupport")],pg),function(e){function t(r){return r&&typeof r=="object"&&"toJSON"in r&&typeof r.toJSON=="function"}e.JSONSupportMixin=gM,e.isSerializable=t}(pg||(pg={}));ut=pg});function xi(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 l=o.constructor.prototype;n.forEach(a=>{let d=kw(o,a,i);d.read&&typeof d.read=="object"||(d.read={}),d.read.reader=l[s],r&&(d.read.source=(d.read.source||[]).concat(r))})}}var Of=R(()=>{ht()});function RB(e){let t={};for(let r in e)t[e[r]]=r;return t}function wM(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function Yi(){return function(e,t){return new Ir(e,{ignoreUnknown:!0,...t})}}var Ir,Ei=R(()=>{fs();Ir=class{constructor(t,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=RB(t),this.apiValues=wM(this._apiToJSON),this.jsonValues=wM(this._jsonToAPI),this.read=n=>this.fromJSON(n),this.write=(n,i,o)=>{let s=this.toJSON(n);s!==void 0&&Zs(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 fg,Do,cy,uy,dy=R(()=>{fg=class{constructor(t,r,n,i,o,s){this.semiMajorAxis=t,this.flattening=r,this.outerAtmosphereRimWidth=n,this.atmosphereHeight=i,this.scaleHeight=o;let l=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*l,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 fg(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),cy=new fg(3396190,1/169.8944472236118,23e4,6e4,.111),uy=new fg(1737400,0,0,0,0)});function py(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function Bx(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 fy=R(()=>{});function yM(e){let t=new Uint8Array(e),r="";for(let n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}var vM=R(()=>{});function qB(){let e=kn.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${`${kn.scheme}://${kn.host}${kn.port!=null?`:${kn.port}`:""}`}${t}`}function Tl(e){if(!e)return null;let t={path:null,query:null},r=new On(e),n=e.indexOf("?");return r.query===null?t.path=e:(t.path=e.slice(0,n),t.query=Cl(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 Cl(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 l=r[o];typeof l=="string"&&(l=r[o]=[l]),Array.isArray(l)?l.push(s):r[o]=s}return r}function Tu(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 xM(e=!1){let t,r=Nf.proxyUrl;if(typeof e=="string"){t=ZB(e);let n=Rf(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw DB().warn(bM),new Ge("urlUtils:proxy-not-set",bM);return t&&jx()&&(r=_y(r)),Tl(r)}function EM(e){let t=e.indexOf("?");return t!==-1?(mg.path=e.slice(0,t),mg.query=e.slice(t+1)):(mg.path=e,mg.query=null),mg}function TM(e){return e=(e=MM(e=KB(e=EM(e).path),!0)).toLowerCase()}function CM(e){let t={proxyUrl:e.proxyUrl,urlPrefix:TM(e.urlPrefix)},r=Nf.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 Rf(e){let t=Nf.proxyRules,r=TM(e);for(let n=0;n<t.length;n++)if(r.indexOf(t[n].urlPrefix)===0)return t[n]}function Hx(e,t=Nf.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 Bn(e,t,r=!1){if(!e||!t)return!1;let n=qx(e),i=qx(t);return!(!r&&n.scheme!==i.scheme)&&n.host!=null&&i.host!=null&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function gy(e){if(typeof e=="string"){if(!PM(e))return!0;e=qx(e)}if(Bn(e,kn))return!0;let t=Nf.trustedServers||[];for(let r=0;r<t.length;r++){let n=HB(t[r]);for(let i=0;i<n.length;i++)if(Bn(e,n[i]))return!0}return!1}function HB(e){return my[e]||(Yx(e)||Ml(e)?my[e]=[new On(Pl(e))]:my[e]=[new On(`http://${e}`),new On(`https://${e}`)]),my[e]}function Pl(e,t=jB,r){return Ml(e)?r?.preserveProtocolRelative?e:kn.scheme==="http"&&kn.authority===si(e).slice(2)?`http:${e}`:`https:${e}`:Yx(e)?e:Zx(e[0]==="/"?QB(t):t,e)}function wy(e){return e=rj(e=tj(e=ej(e=Pl(e=e.trim()))))}function Zx(...e){let t=e.filter(Q9);if(!t?.length)return;let r=[];if(PM(t[0])){let i=t[0],o=i.indexOf("//");o!==-1&&(r.push(i.slice(0,o+1)),JB(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 si(e,t=!1){if(e==null||yy(e)||vy(e))return null;let r=e.indexOf("://");if(r===-1&&Ml(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=MM(e,!0)),e}function PM(e){return Ml(e)||Yx(e)}function yy(e){return e!=null&&e.slice(0,5)==="blob:"}function vy(e){return e!=null&&e.slice(0,5)==="data:"}function by(e){return yM(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Ml(e){return e!=null&&e[0]==="/"&&e[1]==="/"}function Yx(e){return e!=null&&_M.test(e)}function ZB(e){return e!=null&&FB.test(e)||kn.scheme==="https"&&Ml(e)}function YB(e){return e!=null&&SM.test(e)||kn.scheme==="http"&&Ml(e)}function JB(e){return e!=null&&$B.test(e)}function _y(e){return Ml(e)?`https:${e}`:e.replace(SM,"https:")}function XB(){return kn.scheme==="http"}function jx(){return kn.scheme==="https"}function MM(e,t=!1){return Ml(e)?e.slice(2):(e=e.replace(_M,""),t&&e.length>1&&e[0]==="/"&&e[1]==="/"&&(e=e.slice(2)),e)}function QB(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return r===-1?e:e.slice(0,r)}function KB(e){return e.endsWith("/")?e:`${e}/`}function ej(e){if(/^https?:\/\//i.test(e)){let t=EM(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}function tj(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function rj(e){let t=Nf.httpsDomains;if(!YB(e))return e;let r=e.indexOf("/",7),n;if(n=r===-1?e:e.slice(0,r),n=n.toLowerCase().slice(7),VB.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return XB()&&n===kn.authority&&!UB.test(e)||(jx()&&n===kn.authority||t&&t.some(i=>n===i||n.endsWith(`.${i}`))||jx()&&!Rf(e))&&(e=_y(e)),e}function qx(e){return typeof e=="string"?new On(Pl(e)):(e.scheme||(e.scheme=kn.scheme),e)}function Df(e,t){if(!t)return e;let r=Tl(e),n=r.query||{};for(let[o,s]of Object.entries(t))s!=null&&(n[o]=s);let i=Tu(n);return i?`${r.path}?${i}`:r.path}var DB,Nf,bM,_M,SM,FB,$B,VB,UB,zB,WB,On,my,GB,kn,BB,jB,hy,mg,Al=R(()=>{yl();nl();Ln();Ar();nt();fy();vM();DB=()=>ct.getLogger("esri.core.urlUtils"),Nf=Ct.request,bM="esri/config: esriConfig.request.proxyUrl is not set.",_M=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,SM=/^\s*http:/i,FB=/^\s*https:/i,$B=/^\s*file:/i,VB=/:\d+$/,UB=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,zB=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),WB=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$"),On=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(zB);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(WB),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}},my={},GB=new On(Ct.applicationUrl),kn=GB,BB=qB(),jB=BB,hy=()=>kn;mg={path:"",query:""}});function AM(e){Hr=e}var nj,Hr,ij,Sy=R(()=>{tt();Al();HS();Symbol.dispose??(Symbol.dispose=Symbol("Symbol.dispose")),Symbol.asyncDispose??(Symbol.asyncDispose=Symbol("Symbol.asyncDispose"));nj="4.32",ij=nj;ij=`4.32.0-next.${Ew}`;pe("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),pe("host-webworker")});function sj(e){let t=si(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!oj.has(t)&&!e.endsWith("/sharing/rest/generateToken")}function IM(e,t){return!(!t&&!Ct.apiKey||!sj(e))}var oj,LM=R(()=>{yl();Al();oj=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"])});function OM(e,t,r=!1,n){return new Promise((i,o)=>{if(ea(n))return void o(kM());let s=()=>{d(),o(new Error(`Unable to load ${t}`))},l=()=>{let h=e;d(),i(h)},a=()=>{if(!e)return;let h=e;d(),h.src="",o(kM())},d=()=>{pe("esri-image-decode")||(e.removeEventListener("error",s),e.removeEventListener("load",l)),s=null,l=null,e=null,n?.removeEventListener("abort",a),a=null,r&&URL.revokeObjectURL(t)};n?.addEventListener("abort",a),pe("esri-image-decode")?e.decode().then(l,s):(e.addEventListener("error",s),e.addEventListener("load",l))})}function kM(){try{return new DOMException("Aborted","AbortError")}catch{let e=new Error;return e.name="AbortError",e}}function NM(){return new Error(aj)}function RM(e){Ct.request.crossOriginNoCorsDomains||(Ct.request.crossOriginNoCorsDomains={});let t=Ct.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[si(r)??""]=0:(t[si("http://"+r)??""]=0,t[si("https://"+r)??""]=0)}function DM(e){let t=Ct.request.crossOriginNoCorsDomains;if(t){let r=si(e);if(r)return r=r.toLowerCase(),!Bn(r,hy())&&t[r]<Date.now()-36e5}return!1}async function FM(e){let t=Tl(e);e=t.path,t.query?.f==="json"&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}let r=Ct.request.crossOriginNoCorsDomains,n=si(e);r&&n&&(r[n.toLowerCase()]=Date.now())}var aj,$M=R(()=>{yl();tt();Ro();Al();aj="Timeout exceeded"});var VM={};js(VM,{execute:()=>lj});function lj(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,l,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,l=await fetch(i.data.url,i.data),i.httpStatus=l.status);switch(r){case"blob":d=o;break;case"json":d=s;break;case"native":d=l;break;case"text":d=a;break;default:d=i.data}return{data:d,httpStatus:i.httpStatus,requestOptions:t,ssl:i.ssl,url:e}})}var UM=R(()=>{Ln()});var Ff,Cu,xy=R(()=>{mt();El();ri();dt();Ff=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 l=this._target||this,a=!1;for(let d of s.slice()){let h="deref"in d?d.deref():d;h?h?.call(l,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 l=i.map(a=>this.on(a,o));return vu(l)}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),Tt(()=>{let l=this._listenersMap?.get(i),a=l?.indexOf(o)??-1;a>=0&&l.splice(a,1)})}once(i,o){let s=this.on(i,l=>{s.remove(),("deref"in o?o.deref():o)?.call(null,l)});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=N([Ie("esri.core.Evented")],i),i};let r=class extends qr{constructor(){super(...arguments),this._emitter=new Ff.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=N([Ie("esri.core.Evented.EventedAccessor")],r),e.EventedAccessor=r})(Ff||(Ff={}));Cu=Ff});var Jx,zM=R(()=>{Jx=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 cj(e){return"timeZoneIANA"in e}function uj(e){return e.startsWith("UTC")}function Ey(e,t=Fo){return e?cj(e)?e.timeZoneIANA:dj(e,t):t}function dj(e,t=Fo){if(!e||!Jx.has(e.timeZone))return t;let r=Jx.get(e.timeZone);return uj(e.timeZone)||e.respectsDaylightSaving?r:pj(r)}function pj(e){let t=Ee.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${Ot.instance(-r).formatOffset(0,"narrow")}`}var Fo,Pu,$f,WM,hg=R(()=>{zM();In();Fo="system",Pu="unknown",$f="UTC",WM=Intl.DateTimeFormat().resolvedOptions().timeZone});function gj(e){let t=Xx.get(e);if(!t){let r=Hi(),n=mj[r]||r,i=Ty(e.timeZone??Fo),o={...e,timeZone:i};t=new Intl.DateTimeFormat(n,o),Xx.set(e,t)}return t}function Vf(e,t=hj){return gj(t).format(e)}function Ty(e){switch(e){case Fo:return WM;case Pu:return $f;default:return e}}var vs,gg,wg,yg,Il,Mu,GM,vg,bg,fj,Upe,mj,Xx,hj,Cy=R(()=>{Ei();gl();hg();In();vs={year:"numeric",month:"numeric",day:"numeric"},gg={year:"numeric",month:"long",day:"numeric"},wg={year:"numeric",month:"short",day:"numeric"},yg={year:"numeric",month:"long",weekday:"long",day:"numeric"},Il={hour:"numeric",minute:"numeric"},Mu={...Il,second:"numeric"},GM={hourCycle:"h23"},vg={...Il,...GM},bg={...Mu,...GM},fj={"short-date":vs,"short-date-short-time":{...vs,...Il},"short-date-short-time-24":{...vs,...vg},"short-date-long-time":{...vs,...Mu},"short-date-long-time-24":{...vs,...bg},"short-date-le":vs,"short-date-le-short-time":{...vs,...Il},"short-date-le-short-time-24":{...vs,...vg},"short-date-le-long-time":{...vs,...Mu},"short-date-le-long-time-24":{...vs,...bg},"long-month-day-year":gg,"long-month-day-year-short-time":{...gg,...Il},"long-month-day-year-short-time-24":{...gg,...vg},"long-month-day-year-long-time":{...gg,...Mu},"long-month-day-year-long-time-24":{...gg,...bg},"day-short-month-year":wg,"day-short-month-year-short-time":{...wg,...Il},"day-short-month-year-short-time-24":{...wg,...vg},"day-short-month-year-long-time":{...wg,...Mu},"day-short-month-year-long-time-24":{...wg,...bg},"long-date":yg,"long-date-short-time":{...yg,...Il},"long-date-short-time-24":{...yg,...vg},"long-date-long-time":{...yg,...Mu},"long-date-long-time-24":{...yg,...bg},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":Il,"long-time":Mu},Upe=Yi()({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"}),mj={ar:"ar-u-nu-latn-ca-gregory"},Xx=new WeakMap,hj=fj["short-date-short-time"];Sf(()=>{Xx=new WeakMap})});function yj(e){let t=e||BM;if(!Py.has(t)){let r=Hi(),n=wj[Hi()]||r;Py.set(t,new Intl.NumberFormat(n,e))}return Py.get(t)}function Uf(e,t){return Object.is(e,-0)&&(e=0),yj(t).format(e)}var wj,Py,BM,Qx=R(()=>{gl();wj={ar:"ar-u-nu-latn"},Py=new WeakMap,BM={};Sf(()=>{Py=new WeakMap,BM={}})});function Kx(e,t,r={}){let{format:n={}}=r;return ms(e,i=>vj(i,t,n))}function vj(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=Gi(n,t);if(s==null)return"";let l=(i?r?.[i]:null)??r?.[n];return l?bj(s,l):i?_j(s,i):e4(s)}function bj(e,t){switch(t.type){case"date":return Vf(e,t.intlOptions);case"number":return Uf(e,t.intlOptions);default:return jM().warn("missing format descriptor for key {key}"),e4(e)}}function _j(e,t){switch(t.toLowerCase()){case"dateformat":return Vf(e);case"numberformat":return Uf(e);default:return jM().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?Vf(e):/^numberformat/i.test(t)?Uf(e):e4(e)}}function e4(e){switch(typeof e){case"string":return e;case"number":return Uf(e);case"boolean":return""+e;default:return e instanceof Date?Vf(e):""}}var jM,t4=R(()=>{nt();fs();il();Cy();Qx();jM=()=>ct.getLogger("esri.intl.substitute")});function HM(e){return e in Sj}function ZM(e){for(let t of zf.keys())JM(e.pattern,t)&&zf.delete(t)}function YM(e){return _g.includes(e)||(ZM(e),_g.unshift(e)),Tt(()=>{let t=_g.indexOf(e);t>-1&&(_g.splice(t,1),ZM(e))})}async function r4(e){let t=Hi();zf.has(e)||zf.set(e,xj(e,t));let r=zf.get(e);return r&&await Ej.add(r),r}function n4(e){if(!qM.test(e))return null;let t=qM.exec(e);if(t===null)return null;let[,r,n]=t,i=r+(n?"-"+n.toUpperCase():"");return HM(i)?i:HM(r)?r:null}async function xj(e,t){let r=[];for(let n of _g)if(JM(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 JM(e,t){return typeof e=="string"?t.startsWith(e):e.test(t)}var qM,Sj,_g,zf,Ej,Sg=R(()=>{Ln();ri();Ro();gl();qM=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,Sj={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};_g=[],zf=new Map;Sf(()=>{zf.clear()});Ej=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=oi())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&this._numLoading===0&&(this._dfd.resolve(),this._dfd=null)}}});async function Tj(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],l=n4(n),a=`${o}${s}.json`,d=l?`${o}${s}_${l}.json`:a,h;try{h=await XM(e(d))}catch(g){if(d===a)throw new Ge("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:g});try{h=await XM(e(a))}catch(b){throw new Ge("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:b})}}return h}async function XM(e){if(QM.fetchBundleAsset!=null)return QM.fetchBundleAsset(e);let t=await fr(e,{responseType:"text"});return JSON.parse(t.data)}function KM(e){return new i4(e)}var i4,QM,eA=R(()=>{My();Ln();Sg();i4=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 Tj(this.getAssetUrl,this.matcher,t,r)}};QM={}});var o4=R(()=>{Cy();Qx();t4();gl();Sg();Sg();eA();Ay();YM(KM({pattern:"esri/",location:Wf}))});function tA(e){return typeof e=="string"?document.getElementById(e):e??null}var rA=R(()=>{});var Ll,s4,nA,xg,iA,oA=R(()=>{mt();El();Ro();dt();(function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"})(Ll||(Ll={}));s4=class{constructor(){this._resolver=oi(),this._status=Ll.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=Ll.RESOLVED,this._cleanUp()},()=>{this._status=Ll.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===Ll.RESOLVED}isRejected(){return this._status===Ll.REJECTED}isFulfilled(){return this._status!==Ll.PENDING}abort(){this._resolver.reject(ws())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let t=oi(),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||lg(i)||this._resolver.reject(i)}),t.resolve()}},nA=e=>{let t=class extends e{constructor(...r){super(...r),this._promiseProps=new s4,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=N([Ie("esri.core.Promise")],t),t},xg=class extends nA(qr){};xg=N([Ie("esri.core.Promise")],xg),function(e){e.EsriPromiseMixin=nA}(xg||(xg={}));iA=xg});function Cj(e){return{ok:!0,value:e}}function Pj(e){return{ok:!1,error:e}}function Mj(e){return e!=null&&e.ok===!0?e.value:null}function Aj(e){return e!=null&&e.ok===!1?e.error:null}var Au,sA=R(()=>{mt();El();bl();Ro();ht();dt();Au=class extends qr{get value(){return Mj(this._result)}get error(){return Aj(this._result)}get finished(){return this._result!=null}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=CP(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=Cj(n),this._cleanup()},n=>{this._result=Pj(n),this._cleanup()}),this._abortHandle=Si(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=tg(this._abortHandle),this._abortController=null}};N([U()],Au.prototype,"value",null),N([U()],Au.prototype,"error",null),N([U()],Au.prototype,"finished",null),N([U()],Au.prototype,"promise",void 0),N([U()],Au.prototype,"_result",void 0),Au=N([Ie("esri.core.asyncUtils.ReactiveTask")],Au)});var vt,aA=R(()=>{(function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"})(vt||(vt={}))});function lA(e){return(t,r)=>{t[r]=e}}var cA=R(()=>{});var Iy,uA=R(()=>{Sx();Iy=class extends Lf{notify(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});function dA(e){e&&typeof e=="object"&&"destroy"in e&&typeof e.destroy=="function"&&e.destroy()}function a4(e){return e?e instanceof Rl?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function l4(e){if(e?.length)return e[0]}function Ij(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 pA(e,t,r,n){t&&t.forEach((i,o,s)=>{e.push(i),pA(e,r.call(n,i,o,s),r,n)})}var ta,u4,d4,Ji,kl,Ol,Nl,c4,Lj,Rl,fA=R(()=>{mt();Yw();xy();ri();ur();rg();aA();ry();Zi();Su();ht();cA();dt();uA();u4=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}},d4=class{constructor(t,r,n,i,o){this.target=t,this.added=r,this.removed=n,this.start=i,this.deleteCount=o}},Ji=new No(u4,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});kl=new Set,Ol=new Set,Nl=new Set,c4=new Map,Lj=0,Rl=ta=class extends Cu.EventedAccessor{static isCollection(e){return e!=null&&e instanceof ta}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new Iy,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:Lj++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof ta?{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 Qe(this._observable),this._items}set items(e){this._emitBeforeChanges(vt.ADD)||(this._splice(0,this.length,a4(e)),this._emitAfterChanges(vt.ADD))}hasEventListener(e){return!this.destroyed&&(e==="change"?this._chgListeners.length>0:this._emitter.hasEventListener(e))}on(e,t){if(this.destroyed)return Tt();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:[]}),Tt(()=>{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(Qe(this._observable),this._emitBeforeChanges(vt.ADD))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(vt.ADD),this}addMany(e,t=this._items.length){if(Qe(this._observable),!e?.length)return this;if(this._emitBeforeChanges(vt.ADD))return this;let r=this.getNextIndex(t);return this._splice(r,0,a4(e)),this._emitAfterChanges(vt.ADD),this}at(e){if(Qe(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if(Qe(this._observable),!this.length||this._emitBeforeChanges(vt.REMOVE))return[];let e=this._removeAllRaw();return this._emitAfterChanges(vt.REMOVE),e}_removeAllRaw(){return this.length===0?[]:this._splice(0,this.length)||[]}clone(){return Qe(this._observable),this._createNewInstance({items:this._items.map(Ye)})}concat(...e){Qe(this._observable);let t=e.map(a4);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if(Qe(this._observable),!this.length||this._emitBeforeChanges(vt.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(vt.REMOVE)}destroyAll(){this.drain(dA)}destroyMany(e){let t=this.removeMany(e);return t.forEach(dA),t}every(e,t){return Qe(this._observable),this._items.every(e,t)}filter(e,t){Qe(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 Qe(this._observable),this._items.find(e,t)}findIndex(e,t){return Qe(this._observable),this._items.findIndex(e,t)}flatten(e,t){Qe(this._observable);let r=[];return pA(r,this,e,t),new ta(r)}forEach(e,t){return Qe(this._observable),this._items.forEach(e,t)}getItemAt(e){return Qe(this._observable),this._items[e]}getNextIndex(e){Qe(this._observable);let t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return Qe(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return Qe(this._observable),this._items.indexOf(e,t)}join(e=","){return Qe(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return Qe(this._observable),this._items.lastIndexOf(e,t)}map(e,t){Qe(this._observable);let r=this._items.map(e,t);return new ta({items:r})}reorder(e,t=this.length-1){Qe(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(vt.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(vt.MOVE)}return e}}pop(){if(Qe(this._observable),!this.length||this._emitBeforeChanges(vt.REMOVE))return;let e=l4(this._splice(this.length-1,1));return this._emitAfterChanges(vt.REMOVE),e}push(...e){return Qe(this._observable),this._emitBeforeChanges(vt.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(vt.ADD)),this.length}reduce(e,t){Qe(this._observable);let r=this._items;return arguments.length===2?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){Qe(this._observable);let r=this._items;return arguments.length===2?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return Qe(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if(Qe(this._observable),e<0||e>=this.length||this._emitBeforeChanges(vt.REMOVE))return;let t=l4(this._splice(e,1));return this._emitAfterChanges(vt.REMOVE),t}removeMany(e){if(Qe(this._observable),!e?.length||this._emitBeforeChanges(vt.REMOVE))return[];let t=e instanceof ta?e.toArray():e,r=this._items,n=[],i=t.length;for(let o=0;o<i;o++){let s=t[o],l=r.indexOf(s);if(l>-1){let a=1+Ij(t,r,o+1,l+1),d=this._splice(l,a);d&&d.length>0&&n.push.apply(n,d),o+=a-1}}return this._emitAfterChanges(vt.REMOVE),n}reverse(){if(Qe(this._observable),this._emitBeforeChanges(vt.MOVE))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(vt.MOVE),this}shift(){if(Qe(this._observable),!this.length||this._emitBeforeChanges(vt.REMOVE))return;let e=l4(this._splice(0,1));return this._emitAfterChanges(vt.REMOVE),e}slice(e=0,t=this.length){return Qe(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return Qe(this._observable),this._items.some(e,t)}sort(e){if(Qe(this._observable),!this.length||this._emitBeforeChanges(vt.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(vt.MOVE),this}splice(e,t,...r){Qe(this._observable);let n=(t?vt.REMOVE:0)|(r.length?vt.ADD:0);if(this._emitBeforeChanges(n))return[];let i=this._splice(e,t,r)||[];return this._emitAfterChanges(n),i}toArray(){return Qe(this._observable),this._items.slice()}toJSON(){return Qe(this._observable),this.toArray()}toLocaleString(){return Qe(this._observable),this._items.toLocaleString()}toString(){return Qe(this._observable),this._items.toString()}unshift(...e){return Qe(this._observable),!e.length||this._emitBeforeChanges(vt.ADD)||(this._splice(0,0,e),this._emitAfterChanges(vt.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=ty(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){let l=Ji.acquire();l.target=this,l.cancellable=!0;for(let a=0,d=s.length;a<d;a++)o=s[a],l.reset(o),this.emit("before-remove",l),l.defaultPrevented&&(s.splice(a,1),n.splice(e,0,o),e+=1,a-=1,d-=1);Ji.release(l)}if(this.length=this._items.length,this.hasEventListener("after-remove")){let l=Ji.acquire();l.target=this,l.cancellable=!1;let a=s.length;for(let d=0;d<a;d++)l.reset(s[d]),this.emit("after-remove",l);Ji.release(l)}}if(r?.length){if(i){let h=[];for(let g of r){let b=i.ensureType(g);b==null&&g!=null||h.push(b)}r=h}let l=this.hasEventListener("before-add"),a=this.hasEventListener("after-add"),d=e===this.length;if(l||a){let h=Ji.acquire();h.target=this,h.cancellable=!0;let g=Ji.acquire();g.target=this,g.cancellable=!1;for(let b of r)l?(h.reset(b),this.emit("before-add",h),h.defaultPrevented||(d?n.push(b):n.splice(e++,0,b),this._set("length",n.length),a&&(g.reset(b),this.emit("after-add",g)))):(d?n.push(b):n.splice(e++,0,b),this._set("length",n.length),g.reset(b),this.emit("after-add",g));Ji.release(g),Ji.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 l=new d4(this,r,s,e,t);this.emit("after-splice",l)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=Ji.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,Ji.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=Ji.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),Ji.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;kl.clear(),Ol.clear(),Nl.clear();for(let{added:a,removed:d}of r){if(a)if(Nl.size===0&&Ol.size===0)for(let h of a)kl.add(h);else for(let h of a)Ol.has(h)?(Nl.add(h),Ol.delete(h)):Nl.has(h)||kl.add(h);if(d)if(Nl.size===0&&kl.size===0)for(let h of d)Ol.add(h);else for(let h of d)kl.has(h)?kl.delete(h):(Nl.delete(h),Ol.add(h))}let n=Gn.acquire();kl.forEach(a=>{n.push(a)});let i=Gn.acquire();Ol.forEach(a=>{i.push(a)});let o=this._items,s=t.items,l=Gn.acquire();if(Nl.forEach(a=>{s.indexOf(a)!==o.indexOf(a)&&l.push(a)}),t.listeners&&(n.length||i.length||l.length)){let a={target:this,added:n,removed:i,moved:l},d=t.listeners.length;for(let h=0;h<d;h++){let g=t.listeners[h];g.removed||g.callback.call(this,a)}}Gn.release(n),Gn.release(i),Gn.release(l)}kl.clear(),Ol.clear(),Nl.clear()}};Rl.ofType=e=>{if(!e)return ta;if(c4.has(e))return c4.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 ta{};return N([lA({Type:e,ensureType:typeof e=="function"?ni(e):ko(e)})],r.prototype,"itemType",void 0),r=N([Ie(`esri.core.Collection<${t}>`)],r),c4.set(e,r),r},N([U()],Rl.prototype,"_updating",void 0),N([U()],Rl.prototype,"length",void 0),N([U()],Rl.prototype,"items",null),N([U({readOnly:!0})],Rl.prototype,"updating",null),Rl=ta=N([Ie("esri.core.Collection")],Rl)});function Eg(e,t,r={}){return hA(e,t,r,kj)}function mA(e,t,r={}){return hA(e,t,r,Oj)}function hA(e,t,r={},n){let i=null,o=r.once?(s,l)=>{n(s)&&(tg(i),t(s,l))}:(s,l)=>{n(s)&&t(s,l)};if(i=sM(e,o,r.sync,r.equals),r.initial){let s=e();o(s,s)}return i}function kj(e){return!0}function Oj(e){return!!e}var Ly,p4=R(()=>{sA();fA();ag();ri();bl();Ro();zx();Ux();Ly={sync:!0,initial:!0}});function gA(){if(Nj)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 Nj,wA=R(()=>{Nj="randomUUID"in crypto});function Dj(e){let t="__accessorMetadata__"in e?ni(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 Fj.apply(this,r)}}function Fj(e,t,r,n){Cf(e,t).cast=n}function $j(e){return(t,r)=>{Cf(t,e).cast=t[r]}}function ra(...e){if(e.length!==3||typeof e[1]!="string")return e.length===1&&Rj.call(e[0])==="[object Function]"?Dj(e[0]):e.length===1&&typeof e[0]=="string"?$j(e[0]):void 0}var Rj,Tg=R(()=>{Zi();Pf();Rj=Object.prototype.toString});function SA(){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 Vj(e,t,r){}function Uj(e,t,r){}function Wj(e,t){return zj.test(t)?"":t}function Bj(e,t){e=Cg.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,s="";function l(){if(!n){var h=Cg.trim(e.slice(i,o)),g=h.indexOf(":");if(g!==-1){var b=Cg.trim(h.slice(0,g)),x=Cg.trim(h.slice(g+1));if(b){var P=t(i,s.length,b,x,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||l():a===`
|
|
4
4
|
`&&l()}return Cg.trim(s)}function yA(e){return e==null}function Hj(e){var t={};for(var r in e)t[r]=e[r];return t}function xA(e){e=Hj(e||{}),e.whiteList=e.whiteList||ky.whiteList,e.onAttr=e.onAttr||ky.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||ky.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||ky.safeAttrValue,this.options=e}function EA(){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 Xj(e,t,r){}function Qj(e,t,r){}function Kj(e,t,r){}function eq(e,t,r){}function CA(e){return e.replace(rq,"<").replace(nq,">")}function tq(e,t,r,n){if(r=kA(r),t==="href"||t==="src"){if(r=Fy.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(Oy.lastIndex=0,Oy.test(r))return""}else if(t==="style"){if(vA.lastIndex=0,vA.test(r)||(bA.lastIndex=0,bA.test(r)&&(Oy.lastIndex=0,Oy.test(r))))return"";n!==!1&&(n=n||TA,r=n.process(r))}return r=OA(r),r}function PA(e){return e.replace(iq,""")}function MA(e){return e.replace(oq,'"')}function AA(e){return e.replace(sq,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function IA(e){return e.replace(aq,":").replace(lq," ")}function LA(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return Fy.trim(t)}function kA(e){return e=MA(e),e=AA(e),e=IA(e),e=LA(e),e}function OA(e){return e=PA(e),e=CA(e),e}function cq(){return""}function uq(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(s){return r?!0:Fy.indexOf(e,s)!==-1}var i=[],o=!1;return{onIgnoreTag:function(s,l,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,l,a)},remove:function(s){var l="",a=0;return Fy.forEach(i,function(d){l+=s.slice(a,d[0]),a=d[1]}),l+=s.slice(a),l}}}function dq(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 pq(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 fq(e){var t=Dl.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=Dl.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function mq(e){return e.slice(0,2)==="</"}function hq(e,t,r){var n="",i=0,o=!1,s=!1,l=0,a=e.length,d="",h="";e:for(l=0;l<a;l++){var g=e.charAt(l);if(o===!1){if(g==="<"){o=l;continue}}else if(s===!1){if(g==="<"){n+=r(e.slice(i,l)),o=l,i=l;continue}if(g===">"){n+=r(e.slice(i,o)),h=e.slice(o,l+1),d=fq(h),n+=t(o,n.length,d,h,mq(h)),i=l+1,o=!1;continue}if(g==='"'||g==="'")for(var b=1,x=e.charAt(l-b);x.trim()===""||x==="=";){if(x==="="){s=g;continue e}x=e.charAt(l-++b)}}else if(g===s){s=!1;continue}}return i<e.length&&(n+=r(e.substr(i))),n}function wq(e,t){var r=0,n=0,i=[],o=!1,s=e.length;function l(b,x){if(b=Dl.trim(b),b=b.replace(gq,"").toLowerCase(),!(b.length<1)){var P=t(b,x||"");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:vq(e,a+1);continue}if(o!==!1&&a===n){if(g=e.indexOf(d,a+1),g===-1)break;h=Dl.trim(e.slice(n+1,g)),l(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=yq(e,a),g===-1){h=Dl.trim(e.slice(r,a)),l(h),o=!1,r=a+1;continue}else{a=g-1;continue}else if(g=bq(e,a-1),g===-1){h=Dl.trim(e.slice(r,a)),h=_A(h),l(o,h),o=!1,r=a+1;continue}else continue}return r<e.length&&(o===!1?l(e.slice(r)):l(o,_A(Dl.trim(e.slice(r))))),Dl.trim(i.join(" "))}function yq(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function vq(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function bq(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function _q(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function _A(e){return _q(e)?e.substr(1,e.length-2):e}function Ny(e){return e==null}function Tq(e){var t=Ry.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=Ry.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=Ry.trim(e.slice(0,-1))),{html:e,closing:r}}function Cq(e){var t={};for(var r in e)t[r]=e[r];return t}function Pq(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 RA(e){e=Cq(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=$o.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=Pq(e.whiteList||e.allowList):e.whiteList=$o.whiteList,e.onTag=e.onTag||$o.onTag,e.onTagAttr=e.onTagAttr||$o.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||$o.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||$o.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||$o.safeAttrValue,e.escapeHtml=e.escapeHtml||$o.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new Sq(e.css))}var Dy,f4,mr,m4,Iu,zj,Gj,Cg,jj,ky,qj,Zj,h4,g4,Yj,Jj,Fy,TA,rq,nq,iq,oq,sq,aq,lq,Oy,vA,bA,$y,Dl,gq,Sq,$o,NA,xq,Eq,Ry,Mq,Gf,Aq,DA,FA=R(()=>{Dy=function(){return Dy=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},Dy.apply(this,arguments)},f4={exports:{}},mr={},m4={exports:{}},Iu={};zj=/javascript\s*\:/img;Iu.whiteList=SA();Iu.getDefaultWhiteList=SA;Iu.onAttr=Vj;Iu.onIgnoreAttr=Uj;Iu.safeAttrValue=Wj;Gj={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,"")}},Cg=Gj;jj=Bj,ky=Iu,qj=jj;xA.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,l=qj(e,function(a,d,h,g,b){var x=n[h],P=!1;if(x===!0?P=x:typeof x=="function"?P=x(g):x instanceof RegExp&&(P=x.test(g)),P!==!0&&(P=!1),g=s(h,g),!!g){var A={position:d,sourcePosition:a,source:b,isWhite:P};if(P){var F=i(h,g,A);return yA(F)?h+":"+g:F}else{var F=o(h,g,A);if(!yA(F))return F}}});return l};Zj=xA;(function(e,t){var r=Iu,n=Zj;function i(s,l){var a=new n(l);return a.process(s)}t=e.exports=i,t.FilterCSS=n;for(var o in r)t[o]=r[o]})(m4,m4.exports);h4=m4.exports,g4={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}},Yj=h4.FilterCSS,Jj=h4.getDefaultWhiteList,Fy=g4;TA=new Yj;rq=/</g,nq=/>/g,iq=/"/g,oq=/"/g,sq=/&#([a-zA-Z0-9]*);?/gim,aq=/:?/gim,lq=/&newline;?/gim,Oy=/((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,vA=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,bA=/u\s*r\s*l\s*\(.*/gi;mr.whiteList=EA();mr.getDefaultWhiteList=EA;mr.onTag=Xj;mr.onIgnoreTag=Qj;mr.onTagAttr=Kj;mr.onIgnoreTagAttr=eq;mr.safeAttrValue=tq;mr.escapeHtml=CA;mr.escapeQuote=PA;mr.unescapeQuote=MA;mr.escapeHtmlEntities=AA;mr.escapeDangerHtml5Entities=IA;mr.clearNonPrintableCharacter=LA;mr.friendlyAttrValue=kA;mr.escapeAttrValue=OA;mr.onIgnoreTagStripAll=cq;mr.StripTagBody=uq;mr.stripCommentTag=dq;mr.stripBlankChar=pq;mr.cssFilter=TA;mr.getDefaultCSSWhiteList=Jj;$y={},Dl=g4;gq=/[^a-zA-Z0-9\\_:.-]/gim;$y.parseTag=hq;$y.parseAttr=wq;Sq=h4.FilterCSS,$o=mr,NA=$y,xq=NA.parseTag,Eq=NA.parseAttr,Ry=g4;RA.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,l=r.onIgnoreTagAttr,a=r.safeAttrValue,d=r.escapeHtml,h=t.cssFilter;r.stripBlankChar&&(e=$o.stripBlankChar(e)),r.allowCommentTag||(e=$o.stripCommentTag(e));var g=!1;r.stripIgnoreTagBody&&(g=$o.StripTagBody(r.stripIgnoreTagBody,o),o=g.onIgnoreTag);var b=xq(e,function(x,P,A,F,G){var $={sourcePosition:x,position:P,isClosing:G,isWhite:Object.prototype.hasOwnProperty.call(n,A)},W=i(A,F,$);if(!Ny(W))return W;if($.isWhite){if($.isClosing)return"</"+A+">";var J=Tq(F),K=n[A],ce=Eq(J.html,function(z,fe){var ke=Ry.indexOf(K,z)!==-1,xe=s(A,z,fe,ke);return Ny(xe)?ke?(fe=a(A,z,fe,h),fe?z+'="'+fe+'"':z):(xe=l(A,z,fe,ke),Ny(xe)?void 0:xe):xe});return F="<"+A,ce&&(F+=" "+ce),J.closing&&(F+=" /"),F+=">",F}else return W=o(A,F,$),Ny(W)?d(F):W},d);return g&&(b=g.remove(b)),b};Mq=RA;(function(e,t){var r=mr,n=$y,i=Mq;function o(l,a){var d=new i(a);return d.process(l)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=i,function(){for(var l in r)t[l]=r[l];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)})(f4,f4.exports);Gf=f4.exports,Aq=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},DA=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=Dy(Dy({},Gf.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,l,a){return o==="a"&&s==="href"||(o==="img"||o==="source")&&s==="src"?n.sanitizeUrl(l):Gf.safeAttrValue(o,s,l,a)}},this._entityMap={"&":"8","<":"<",">":">",'"':""","'":"'","/":"/"};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(l){return i.css.whiteList[l]=s[l]})}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 Gf.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==="/",l=/^#/.test(t),a=o&&this.allowedProtocols.indexOf(o.toLowerCase())>-1;return s||l||a?Gf.escapeAttrValue(t):!o&&!i?Gf.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):Gf.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(l,a){var d=n.validate(a,r);return d.isValid?l.concat([a]):(i=!0,l.concat([d.sanitized]))},[]);else if(Aq(t)){var s=Object.keys(t);o=s.reduce(function(l,a){var d=t[a],h=n.validate(d,r);return h.isValid?l[a]=d:(i=!0,l[a]=h.sanitized),l},{})}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 Uy(){Vy.clear()}function $A(e){return Vy.get(e)}function VA(e,t){Vy.set(e,t)}function zy(e){Vy.delete(e)}var Vy,w4=R(()=>{Vy=new Map});function UA(...e){let t=Gn.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 Gn.release(t),r}async function zA(e,t){await KP(Qw(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 Dme,Iq,Lq,kq,y4,Wy=R(()=>{FA();Yw();ri();tt();nt();Ro();p4();ry();w4();Dme=(()=>{let e=new Map,t=new ResizeObserver(n=>{Uy();for(let i of n)e.get(i.target)?.(i)}),r=(n,i,o)=>(e.set(n,i),t.observe(n,o),Tt(()=>{t.unobserve(n),e.delete(n)}));return(n,i,o)=>{let s=null;return vu([Eg(()=>typeof n=="function"?n():n,l=>{s?.remove(),l&&(s=r(l,i,o))},Ly),Tt(()=>s?.remove())])}})(),Iq=["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"],Lq=Iq.reduce((e,t)=>(e[t]=[],e),{}),kq=["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"],y4=new DA({whiteList:Lq,onTagAttr:(e,t,r)=>{let n=`${t}="${r}"`;if(kq.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)});function S4(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;let t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}var qA,By,HA,WA,jy,E4,ZA,Oq,v4,Nq,b4,_4,YA,GA,BA,jA,Rq,Gy,Dq,T4,Lu,x4,Fq,$q,Bf,JA=R(()=>{Wy();qA="http://www.w3.org/",By=`${qA}2000/svg`,HA=`${qA}1999/xlink`,WA=[],jy=(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},E4=(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),ZA=e=>{if(typeof e!="string")throw new Error("Style values must be strings")},Oq=(e,t,r)=>{if(t.vnodeSelector!==""){for(let n=r;n<e.length;n++)if(E4(e[n],t))return n}return-1},v4=(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 l=e[s];if(E4(l,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.`)}}},Nq=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},b4=[],_4=!1,YA=e=>{(e.children||[]).forEach(YA),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},GA=()=>{_4=!1,b4.forEach(YA),b4.length=0},BA=e=>{b4.push(e),_4||(_4=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(GA,{timeout:16}):setTimeout(GA,16))},jA=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),BA(e))},e.properties)}t.parentNode&&(t.parentNode.removeChild(t),BA(e))},Rq=(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 l=i[s],a=t[l];if(l==="className")throw new Error('Property "className" is not supported, use "class".');if(l==="class")x4(e,a,!0);else if(l==="classes"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let b=d[g];a[b]&&e.classList.add(b)}}else if(l==="styles"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let b=d[g],x=a[b];x&&(ZA(x),r.styleApplyer(e,b,x))}}else if(l!=="key"&&a!=null){let d=typeof a;d==="function"?(l.lastIndexOf("on",0)===0&&(n&&(a=n(l,a,e,t)),l==="oninput"&&function(){let h=a;a=function(g){h.apply(this,[g]),g.target["oninput-value"]=g.target.value}}()),e[l]=a):r.namespace===By?l==="href"?e.setAttributeNS(HA,l,a):e.setAttribute(l,a):d==="string"&&l!=="value"?l==="innerHTML"?e[l]=y4.sanitize(a):S4(e)&&l in e?e[l]=a:e.setAttribute(l,a):e[l]=a}}};Dq=(e,t,r)=>{if(t)for(let n of t)Lu(n,e,void 0,r)},T4=(e,t,r)=>{Dq(e,t.children,r),t.text&&(e.textContent=t.text),Rq(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])},Lu=(e,t,r,n)=>{let i,o=0,s=e.vnodeSelector,l=t.ownerDocument;if(s==="")i=e.domNode=l.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=jy(n,{namespace:By})),n.namespace!==void 0?i=e.domNode=l.createElementNS(n.namespace,g):(i=e.domNode=e.domNode||l.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}}T4(i,e,n)}},x4=(e,t,r)=>{t&&t.split(" ").forEach(n=>{n&&e.classList.toggle(n,r)})},Fq=(e,t,r,n)=>{if(!r)return;let i=!1,o=Object.keys(r),s=o.length;for(let l=0;l<s;l++){let a=o[l],d=r[a],h=t[a];if(a==="class")h!==d&&(x4(e,h,!1),x4(e,d,!0));else if(a==="classes"){let g=e.classList,b=Object.keys(d),x=b.length;for(let P=0;P<x;P++){let A=b[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),b=g.length;for(let x=0;x<b;x++){let P=g[x],A=d[P];A!==h[P]&&(i=!0,A?(ZA(A),n.styleApplyer(e,P,A)):n.styleApplyer(e,P,""))}}else if(d||typeof h!="string"||(d=""),a!=="value"||S4(e)){if(d!==h){let g=typeof d;g==="function"&&n.eventHandlerInterceptor||(n.namespace===By?a==="href"?e.setAttributeNS(HA,a,d):e.setAttribute(a,d):g==="string"?a==="innerHTML"?e[a]=y4.sanitize(d):a==="role"&&d===""?e.removeAttribute(a):S4(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},$q=(e,t,r,n,i)=>{if(r===n)return!1;n=n||WA;let o,s=(r=r||WA).length,l=n.length,a=0,d=0,h=!1;for(;d<l;){let g=a<s?r[a]:void 0,b=n[d];if(g!==void 0&&E4(g,b))h=Gy(g,b,i)||h,a++;else{let x=Oq(r,b,a+1);if(x>=0){for(o=a;o<x;o++)jA(r[o]),v4(r,o,e,"removed");h=Gy(r[x],b,i)||h,a=x+1}else Lu(b,t,a<s?r[a].domNode:void 0,i),Nq(b),v4(n,d,e,"added")}d++}if(s>a)for(o=a;o<s;o++)jA(r[o]),v4(r,o,e,"removed");return h};Gy=(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=jy(r,{namespace:By})),e.text!==t.text&&(o=!0,t.text===void 0?n.removeChild(n.firstChild):n.textContent=t.text),t.domNode=n,o=$q(t,n,e.children,t.children,r)||o,o=Fq(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};Bf=(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,Gy(n,r,t)},domNode:e.domNode})});var Vq,jf,qf,C4=R(()=>{JA();Vq={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},jf=e=>jy(Vq,e),qf={create:(e,t)=>(t=jf(t),Lu(e,document.createElement("div"),void 0,t),Bf(e,t)),append:(e,t,r)=>(r=jf(r),Lu(t,e,void 0,r),Bf(t,r)),insertBefore:(e,t,r)=>(r=jf(r),Lu(t,e.parentNode,e,r),Bf(t,r)),merge:(e,t,r)=>(r=jf(r),t.domNode=e,T4(e,t,r),Bf(t,r)),replace:(e,t,r)=>(r=jf(r),Lu(t,e.parentNode,e,r),e.parentNode.removeChild(e),Bf(t,r))}});var Uq,XA=R(()=>{C4();Uq=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0]});var QA,KA=R(()=>{QA={handleInterceptedEvent:(e,t,r,n)=>(e.scheduleRender(),t.properties[`on${n.type}`].apply(t.properties.bind||r,[n]))}});var zq,eI,tI=R(()=>{zq={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},eI=e=>({...zq,...e})});var Wq,Gq,rI,nI,iI=R(()=>{C4();XA();KA();tI();Wq=(e,t)=>{let r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r},Gq=(e,t)=>e.find(t),rI=(e,t,r=!1)=>{let n=e;return t.forEach((i,o)=>{let s=n?.children?Gq(n.children,l=>l.domNode===i):void 0;r&&!s&&o!==t.length-1||(n=s)}),n},nI=e=>{let t,r={...QA,...e},n=eI(r),i=n.performanceLogger,o,s=!0,l=!1,a=[],d=[],h=(b,x,P)=>{let A;n.eventHandlerInterceptor=(G,$,W,J)=>function(K){let ce;i("domEvent",K);let z=Wq(K.currentTarget,A.domNode),fe=z.some(xe=>customElements.get(xe?.tagName?.toLowerCase()));if(K.eventPhase===Event.CAPTURING_PHASE||!fe)z.reverse(),ce=rI(A.getLastRender(),z);else{let xe=K.composedPath(),Oe=xe.slice(xe.indexOf(K.currentTarget),xe.indexOf(A.domNode)).reverse();ce=rI(A.getLastRender(),Oe,!0)}let ke;return ce&&(ke=r.handleInterceptedEvent(t,ce,this,K)),i("domEventProcessed",K),ke},r.postProcessProjectionOptions?.(n);let F=P();A=b(x,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 b=0;b<a.length;b++){let x=d[b]();i("rendered",void 0);try{a[b].update(x)}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||l||(o=requestAnimationFrame(g))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),l=!0},resume:()=>{l=!1,s=!0,t.scheduleRender()},append:(b,x)=>{h(qf.append,b,x)},insertBefore:(b,x)=>{h(qf.insertBefore,b,x)},merge:(b,x)=>{h(qf.merge,b,x)},replace:(b,x)=>{h(qf.replace,b,x)},detach:b=>{for(let x=0;x<d.length;x++)if(d[x]===b)return d.splice(x,1),a.splice(x,1)[0];throw new Error("renderFunction was not found")}},t}});var oI,P4=R(()=>{"use strict";oI=":"});function M4(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 Bq(e){let t=e.split(oI);return t.length===1?[t[0],Z0(t[0])]:t}function qq([e,t]){this[e]=t}var qy,jq,Hf,nhe,A4,sI=R(()=>{"use strict";P4();xo();qy=Object.defineProperty;jq=globalThis.HTMLElement??Bq,nhe=(Hf=class extends jq{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new So,this._postLoaded=new So,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){qy(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this._store[t]},set(r){this._store[t]=r}})}static _bindAsync(t){qy(this.prototype,t,{async value(...r){return this._litElement||await this._postLoaded.promise,await this._litElement[t](...r)},configurable:!0})}static _bindSync(t){qy(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=M4(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`,l=o;for(;l&&!Object.hasOwn(l,"lumina");)l=Object.getPrototypeOf(l);let a=l.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)},qy(a,"isConnected",{get(){return Reflect.get(d,"isConnected",this.el)}})),!r._LitConstructor&&(r._LitConstructor=o,customElements.define(s,o)),o.lazy=this;let b=document.createElement(s);o.lazy=void 0,this._litElement=b,this._store=b,this._pendingAttributes.forEach(P=>{let A=this.getAttribute(P);b.attributeChangedCallback(P,null,A)}),Object.entries(i).forEach(qq,b);let x=this.isConnected;(x||this._ancestorLoad)&&(b.connectedCallback?.(),x||b.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}},Hf.lumina=!0,Hf);A4={}});function aI(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(Z9))}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 lI(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 cI,I4=R(()=>{"use strict";xo();cI=(e,t)=>e.manager.internals.members?.[t]?.[0]});function Nu(e){Pg!==e&&(Pg=e,queueMicrotask(()=>{Pg===e&&(Pg=void 0)}))}function Yf(e){return Pg}function Yy(e){if(e===void 0){ku=[];return}let t=ku.indexOf(e);ku=t===-1?[...ku,e]:ku.slice(0,t+1),queueMicrotask(()=>{ku=[]})}function fI(){return ku}function Hq(e){Zf!==e&&(Zf=e,queueMicrotask(()=>{Zf===e&&(Zf=void 0)}))}function Zq(){let e=Zf;return Zf=void 0,e}function uI(e){kt(e,void 0,this)}function dI(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(r,n,i){if(!(Xq.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 Xy(e,t,r){let n=Object.keys(e),i=n.length;Ou===void 0&&queueMicrotask(Ig),Ou??(Ou=new Map);let o=Ou.get(e);return o===void 0&&(o={callbacks:[],keyCount:i},Ou.set(e,o)),o.keyCount!==i&&(o.callbacks.forEach(s=>s(n)),o.callbacks=[],o.keyCount=i),o.callbacks.push(s=>{let l=d=>kt(t,null,d),a=s[i];a===void 0?l(void 0):e[a]===r?l(a):l(void 0)}),r}function Ig(){Array.from(Ou?.entries()??[]).forEach(([e,{callbacks:t}])=>{let r=Object.keys(e);t.forEach(n=>n(r))}),Ou=void 0}function Qy(e,t,r){var n;let i=t,o=e.manager.internals;(n=o.allWatchers)[i]??(n[i]=[]);let s=o.allWatchers[i],l=r,a=(d,h,g)=>kt(l,null,d,h,g);return s.push(a),()=>{let d=s.indexOf(a);d!==-1&&s.splice(d,1)}}function wI(e,t,r){let n=e.manager.internals;return n.trackedValue!==k4&&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)=>kt(t,void 0,r===o?i:void 0)),r}function yI(e,t,r){let n=Array.isArray(e)?e:[e],i=n.length+1,o=l=>{i-=1,l!==void 0&&(i=Math.min(i,0)),i===0&&t(l)};n.forEach(l=>Xy(l,a=>o(a===void 0?void 0:{key:a,host:l,isReactive:!1}),r));let s=n.find(l=>"manager"in l&&typeof l.manager=="object"&&l.manager.component===l);return s&&wI(s,l=>o(l===void 0?void 0:{key:l,host:s,isReactive:!0}),r),r}function vI(e){Mg.readOnly=!0;try{return e()}finally{Mg.readOnly=!1}}function Qq(e,{host:t,key:r,isReactive:n},i){let o=t,s=o[r]!==e.exports,l=o[r]!==i,a=i!==e.exports;if(s&&!l&&a&&(o[r]=e.exports),t===e.component){if(n){let h=e.component.manager.internals;l&&h.markExports(e,o[r]),Qy(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)?vI(()=>{o[r]=e.exports}):o[r]=e.exports})}var Zy,pI,Pg,ku,Zf,Yq,Jq,O4,Mg,Ag,mI,Jy,hI,Xq,Ou,gI,L4,Hy,k4,bI,_I=R(()=>{"use strict";I4();xo();xo();xo();xo();Zy=Symbol.for("controller"),pI=e=>typeof e=="object"&&e!==null&&(Zy in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e);ku=[];Yq=async(e,t)=>{let r=O4(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},Jq=async e=>{let t=O4(e);return await t.ready,t},O4=e=>{let t=Zq();if(t!==void 0)return t;let n=Yf().manager.internals.resolveExports(e);if(n!==void 0)return n;if(pI(e))return e},Mg={setter:!1,getter:!1,readOnly:!1},Ag=new WeakMap;mI=Zy;Jy=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new So,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[mI]=!0,this.ready=this._ready.promise,this._exports=dI(this),this._exportWatchers=new Set;let t=e??Yf(new.target.name);this.component=t,this.component.addController(this),Yy(this),this.component.manager===void 0||queueMicrotask(()=>this.catchUpLifecycle())}catchUpLifecycle(){let{manager:e}=this.component;e.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),e._loadCalled&&this.triggerLoad().then(()=>{e.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(e){let t=this._exports;t!==e&&(this._exports=e,this._exportWatchers.forEach(kt),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,t)),this._ready.resolve(e)}setProvisionalExports(e,t=!0){this._exports=t?dI(e):e,this._exportWatchers.forEach(kt)}watchExports(e){let t=()=>e(this._exports);return this._exportWatchers.add(t),()=>void this._exportWatchers.delete(t)}get use(){return Nu(this.component),Yq}get useRef(){return Nu(this.component),Jq}get useRefSync(){return Nu(this.component),O4}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&&kt(e.hostConnected,e),this._callbacks.hostConnected.forEach(kt),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&kt(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(kt),this._lifecycleCleanups.forEach(kt),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await ih(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(ih)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&kt(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(kt),this.loadedCalled=!0}triggerUpdate(e){let t=this;t.hostUpdate&&kt(t.hostUpdate,t,e),this._callbacks.hostUpdate.forEach(uI,e)}triggerUpdated(e){let t=this;t.hostUpdated&&kt(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(uI,e)}triggerDestroy(){let e=this;e.hostDestroy&&kt(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(kt)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){Nu(this.component);let t=kt(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)})}};hI=Jy;Xq=new Set(["exports","_exports"]);Ou=void 0;gI=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=k4,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(t,r,n)=>{if(Mg.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=k4,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=cI(n,t),o;do o=Object.getOwnPropertyDescriptor(e,t);while(!o&&(e=Object.getPrototypeOf(e)));if(!o)return;let s=o.get,l=o.set,a=Hy in s,d=Hy in l;if(a&&d)return;let h=!a,g=!d,b=h?function(){let A=s.call(this),F=Ag.get(this);if(Mg.getter||F===void 0)return A;let G=F.manager.internals;A=G.accessorGetter[t](A,t);let $=G.getters[t]??L4;for(let W=0;W<$.length;W++)A=$[W](A,t);return A}:s,x=g?function(A){let F=s.call(this),G=Ag.get(this);if(G===void 0){l.call(this,A);return}let $=G.manager.isLit?A??void 0:lI(A,i),W=G.manager.internals;if($===F)l.call(this,$);else{let J=Mg.setter?L4:W.setters[t]??L4;for(let K=0;K<J.length&&($=J[K]($,F,t),$!==F);K++);$=W.accessorSetter[t]($,F,t),l.call(this,$),$!==F&&W.enabledWatchers[t]?.forEach(K=>K($,F,t))}W.keyTrackers.length>0&&W?.firePropTrackers(t,A)}:l;h&&(b[Hy]=!0),g&&(x[Hy]=!0),Object.defineProperty(e,t,{...o,get:b,set:x})}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)}},L4=[],Hy=Symbol(),k4=Symbol();bI=e=>(...t)=>{let r=fI(),n=new e(...t),i=n.exports;Yy(r.at(-1));let o=n.component.manager.internals;o.markExports(n,i),n.watchExports(l=>o.markExports(n,l)),Hq(n);let s=[n.component,...r].reverse();return yI(s,l=>l===void 0?void 0:Qq(n,l,i),i)}});function tH(e){"triggerConnected"in e?e.triggerConnected():kt(e.hostConnected,e)}function rH(e){"triggerDisconnected"in e?e.triggerDisconnected():kt(e.hostDisconnected,e)}async function nH(e){"triggerLoad"in e?await e.triggerLoad():await ih(e.hostLoad,e)}function iH(e){"triggerLoaded"in e?e.triggerLoaded():kt(e.hostLoaded,e)}function oH(e){"triggerUpdate"in e?e.triggerUpdate(this):kt(e.hostUpdate,e,this)}function sH(e){"triggerUpdated"in e?e.triggerUpdated(this):kt(e.hostUpdated,e,this)}function aH(e){"triggerDestroy"in e?e.triggerDestroy():kt(e.hostDestroy,e)}function TI(e,t){if(!t)return e;let r={...e};return Object.entries(t).forEach(([n,i])=>{typeof i=="object"?r[n]=TI(e[n],i):r[n]=i??e[n]}),r}var xI,Kq,N4,eH,SI,lH,cH,uH,Ky,dH,EI,Ru=R(()=>{"use strict";_I();I4();xo();xo();xo();xI=(e,t)=>new Kq(e,t),Kq=class extends hI{constructor(e,t){let r="addController"in e,n=new Set;function i(a){n.add(a),!(Zy 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 gI(this.component),this.destroyed=!1,this._updatePromise=new So,this._originalLifecycles={},this.isLit=r,this.component.manager=this,aI(e,r),this._controllers=n,this.exports=void 0,this.hasDestroy=N4 in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let l=this.internals;Object.keys(l.members).forEach(a=>{l.accessorGetter[a]=SI,l.accessorSetter[a]=SI,l.getSetProxy(a)}),r?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(l.enableReadonly),Yy(void 0),Nu(e),Ag.set(e.el,e),Ag.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 ${N4} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,Ig(),e.enableReadonly?.(),this._controllers.forEach(tH),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(rH),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,nH)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&Qy(this.component,N4,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(iH),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;this._controllers.forEach(oH,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(sH,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let t=this._updatePromise;this._updatePromise=new So,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(aH),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=H9(e,eH)}}},N4="autoDestroyDisabled",eH=1e3,SI=e=>e;lH=e=>uH(void 0,e),cH=class extends Jy{constructor(e,t){super(e);let r=this.exports;try{Nu(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(){}},uH=bI(cH),Ky=(e,t)=>new dH(e,t),dH=class extends Jy{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()}},EI=(e,t)=>(r={})=>lH((n,i)=>{let o=X_(n.el),s={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},l=n;queueMicrotask(()=>i.onLifecycle(()=>q9(n.el,e("./assets"),({t9nLocale:d,t9nStrings:h,lang:g})=>{let b={...h,_lang:g,_t9nLocale:d,_loading:!1};i.exports=b;let x=h.componentLabel??h.widgetLabel;typeof x=="string"&&"label"in n&&n.label==null&&(n.label??(n.label=x)),a(l.messageOverrides)},r.name,t)));function a(d){let h=i.exports,g=h._original??h,b=TI(g,d);d&&(b._original=g),i.exports=b}return"messageOverrides"in l&&i.onLifecycle(()=>Qy(l,"messageOverrides",a)),r.blocking?(i.setProvisionalExports(s,!1),i.ready):s})});var Lg=R(()=>{});var CI=R(()=>{});var D4=R(()=>{Lg();});var PI=R(()=>{});var F4=R(()=>{Lg();PI();});var MI=R(()=>{Lg();});var II=R(()=>{F4();});var kI=R(()=>{D4();});var OI=R(()=>{Lg();CI();D4();F4();MI();II();kI()});var ev,tv,$4,NI,kg,RI,Nt,V4,rv,vn=R(()=>{ev=globalThis,tv=ev.ShadowRoot&&(ev.ShadyCSS===void 0||ev.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$4=Symbol(),NI=new WeakMap,kg=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==$4)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(tv&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=NI.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&NI.set(r,t))}return t}toString(){return this.cssText}},RI=e=>new kg(typeof e=="string"?e:e+"",void 0,$4),Nt=(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 kg(r,e,$4)},V4=(e,t)=>{if(tv)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=ev.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},rv=tv?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return RI(r)})(e):e});var pH,fH,mH,hH,gH,wH,Fl,DI,yH,vH,Og,nv,U4,FI,na,Ng=R(()=>{vn();vn();({is:pH,defineProperty:fH,getOwnPropertyDescriptor:mH,getOwnPropertyNames:hH,getOwnPropertySymbols:gH,getPrototypeOf:wH}=Object),Fl=globalThis,DI=Fl.trustedTypes,yH=DI?DI.emptyScript:"",vH=Fl.reactiveElementPolyfillSupport,Og=(e,t)=>e,nv={toAttribute(e,t){switch(t){case Boolean:e=e?yH: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}},U4=(e,t)=>!pH(e,t),FI={attribute:!0,type:String,converter:nv,reflect:!1,hasChanged:U4};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Fl.litPropertyMetadata??(Fl.litPropertyMetadata=new WeakMap);na=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=FI){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&&fH(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){let{get:i,set:o}=mH(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let l=i?.call(this);o.call(this,s),this.requestUpdate(t,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??FI}static _$Ei(){if(this.hasOwnProperty(Og("elementProperties")))return;let t=wH(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Og("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Og("properties"))){let r=this.properties,n=[...hH(r),...gH(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(rv(i))}else t!==void 0&&r.push(rv(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 V4(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:nv).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:nv;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??U4)(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){}};na.elementStyles=[],na.shadowRootOptions={mode:"open"},na[Og("elementProperties")]=new Map,na[Og("finalized")]=new Map,vH?.({ReactiveElement:na}),(Fl.reactiveElementVersions??(Fl.reactiveElementVersions=[])).push("2.0.4")});var z4=R(()=>{Ng();});var $I=R(()=>{z4();});function ZI(e,t){if(!j4(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return VI!==void 0?VI.createHTML(t):t}function Vu(e,t,r=e,n){if(t===bn)return t;let i=n!==void 0?r.o?.[n]:r.l,o=$g(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=Vu(e,i._$AS(e,t.values),i,n)),t}var Dg,iv,VI,G4,ia,B4,_H,$u,Fg,$g,j4,jI,W4,Rg,UI,zI,Du,WI,GI,qI,q4,_e,bs,HI,bn,Re,BI,Fu,YI,Vg,ov,Jf,Uu,sv,av,lv,cv,JI,SH,XI,Lr=R(()=>{Dg=globalThis,iv=Dg.trustedTypes,VI=iv?iv.createPolicy("lit-html",{createHTML:e=>e}):void 0,G4="$lit$",ia=`lit$${Math.random().toFixed(9).slice(2)}$`,B4="?"+ia,_H=`<${B4}>`,$u=document,Fg=()=>$u.createComment(""),$g=e=>e===null||typeof e!="object"&&typeof e!="function",j4=Array.isArray,jI=e=>j4(e)||typeof e?.[Symbol.iterator]=="function",W4=`[
|