@arcgis/coding-components 4.32.0-next.84 → 4.32.0-next.87
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/{ZGS4LC3Y.js → 35ENRGXS.js} +2 -2
- package/dist/arcgis-coding-components/{RE6RBJJS.js → 3JALC7AX.js} +2 -2
- package/dist/arcgis-coding-components/{2PGXQJD2.js → 5YW2IBZB.js} +2 -2
- package/dist/arcgis-coding-components/{GEHXKKNK.js → 6MGI5IIJ.js} +2 -2
- package/dist/arcgis-coding-components/{LIHVPH5O.js → A3ROICEG.js} +1 -1
- package/dist/arcgis-coding-components/{I6G5RWRV.js → B2DITSDZ.js} +2 -2
- package/dist/arcgis-coding-components/{7CROQMNG.js → BJOOBMO2.js} +1 -1
- package/dist/arcgis-coding-components/{IJWZ2C4G.js → FBF7XH6U.js} +2 -2
- package/dist/arcgis-coding-components/{6LUBBG2N.js → FBM2POZ4.js} +2 -2
- package/dist/arcgis-coding-components/{34FFTPGY.js → FZUVOSR5.js} +2 -2
- package/dist/arcgis-coding-components/{LZP6K7IC.js → HPKCBQO4.js} +2 -2
- package/dist/arcgis-coding-components/{4QY7CHXX.js → JN6O7WFE.js} +2 -2
- package/dist/arcgis-coding-components/{KLE7VSIC.js → JX22XMN3.js} +2 -2
- package/dist/arcgis-coding-components/JYKN4MBG.js +12 -0
- package/dist/arcgis-coding-components/{BYM3DDKJ.js → K4M4Z5UU.js} +2 -2
- package/dist/arcgis-coding-components/{4U3HRYKK.js → K7CQYDRC.js} +1 -1
- package/dist/arcgis-coding-components/{VGL2ZEKS.js → LWYHFOEO.js} +2 -2
- package/dist/arcgis-coding-components/{4PICOR24.js → M3Y77NAA.js} +2 -2
- package/dist/arcgis-coding-components/M5WCZCRS.js +4 -0
- package/dist/arcgis-coding-components/{7QCIBSWF.js → MW7RN5D2.js} +1 -1
- package/dist/arcgis-coding-components/{X44UIUQV.js → NLU6IAEG.js} +2 -2
- package/dist/arcgis-coding-components/{VM4NS5TR.js → PCZJYYIX.js} +2 -2
- package/dist/arcgis-coding-components/{MRKG254N.js → PQUQS3U4.js} +2 -2
- package/dist/arcgis-coding-components/{Z3H2ERUB.js → PTAOX5KP.js} +2 -2
- package/dist/arcgis-coding-components/{UHJELEGL.js → RB254MKN.js} +2 -2
- package/dist/arcgis-coding-components/{CDGGUMYZ.js → RD4HNNLJ.js} +2 -2
- package/dist/arcgis-coding-components/{Z2T2GNL7.js → RDRQSSZA.js} +3 -3
- package/dist/arcgis-coding-components/{JVLYMMQM.js → RXF772TL.js} +2 -2
- package/dist/arcgis-coding-components/{HZ2I4EZ6.js → THI7EZFK.js} +2 -2
- package/dist/arcgis-coding-components/{3ZS345BU.js → V3BDC3LY.js} +2 -2
- package/dist/arcgis-coding-components/{76N7QCJ6.js → V73FQFAT.js} +2 -2
- package/dist/arcgis-coding-components/{55GT7ULQ.js → VWEIGYKG.js} +2 -2
- package/dist/arcgis-coding-components/{ZMOE7YCI.js → W3PCO3RE.js} +2 -2
- package/dist/arcgis-coding-components/{C5N4BJ5X.js → XT5CXIO3.js} +2 -2
- package/dist/arcgis-coding-components/{DXKIQQFU.js → ZVTUG62L.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 +2 -2
- 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 +9 -9
- 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.d.ts +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +2 -2
- 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 +3 -3
- 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/dist/utils/arcade-executor.d.ts +1 -1
- package/dist/utils/profile/editor-profile.d.ts +3 -3
- package/dist/utils/profile/types.d.ts +2 -2
- package/package.json +7 -7
- package/dist/arcgis-coding-components/5HQD4SEF.js +0 -12
- package/dist/arcgis-coding-components/KDDODFMF.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Mz=Object.defineProperty;var OT=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var N=(e,t)=>()=>(e&&(t=e(e=0)),t);var RT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qs=(e,t)=>{for(var r in t)Mz(e,r,{get:t[r],enumerable:!0})};function TB(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 PB(e,t,r){let{subscribe:n}=MB(t);return n(i=>{i.some(s=>TB(e,s.target))&&r()})}function MB(e){let t=e.join(","),r=Hx[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(),Hx[t]=void 0)}}}};return Hx[t]=o,o}function AB(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 IB(e,t,r){return AB(e,`[${t}]`)?.getAttribute(t)??r}function Ot(e,t,...r){try{return e?.call(t,...r)}catch(n){console.error(n,e)}}async function Lh(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 OB(e,t,r=""){let n=`${t}/${r}`,i=`${n}${e}.json`;return Zx[i]??(Zx[i]=E8(e,n)),await Zx[i]}async function E8(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===$w?{}:await E8($w,t)}function Yx(e){let t=IB(e,"lang",globalThis.navigator?.language||$w);return{lang:t,t9nLocale:C8(t)}}function C8(e){let[t,r]=e.split("-"),n=t.toLowerCase(),i=n;return r&&(i=`${n}-${r.toUpperCase()}`),i=NB[i]??i,kB.has(i)?i:r?C8(n):$w}function T8(e,t,r,n){let i,o=()=>void RB(e,t,n).then(s=>{(i?.lang!==s.lang||i.t9nLocale!==s.t9nLocale||i.t9nStrings!==s.t9nStrings)&&r(s),i=s}).catch(console.error);return o(),PB(e,["lang"],o)}async function RB(e,t,r=e.tagName.toLowerCase().split("-").slice(1).join("-")){let{lang:n,t9nLocale:i}=Yx(e),o=`${t}/${r}/t9n`,l=r===null?{}:await OB(i,o,"messages.");return{lang:n,t9nLocale:i,t9nStrings:l}}function P8(e,t){let r=t>FB?$B:t/VB,n=0,i=setInterval(()=>{n+=r,n>=t&&(clearInterval(i),e())},r);return i}function M8(e){return e!==void 0}var Co,Hx,LB,kB,$w,NB,Zx,Vw,DB,FB,$B,VB,To=N(()=>{"use strict";Co=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};Hx={};LB=["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"],kB=new Set(LB),$w="en",NB={pt:"pt-PT",nb:"no",zh:"zh-CN"};Zx={};Vw=e=>e.replace(DB,(t,r)=>`${r===0?"":"-"}${t.toLowerCase()}`),DB=/[A-Z]+(?![a-z])|[A-Z]/gu;FB=4e3,$B=2e3,VB=4});function de(e){return typeof fl[e]=="function"?fl[e]=fl[e](globalThis):fl[e]}var fl,tt=N(()=>{fl=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},de.add=(e,t,r,n)=>{(n||fl[e]===void 0)&&(fl[e]=t),r&&de(e)},de.cache=fl,de.add("big-integer-warning-enabled",!0),de.add("esri-deprecation-warnings",!0),de.add("esri-tests-disable-screenshots",!1),de.add("esri-tests-use-full-window",!1),de.add("esri-tests-post-to-influx",!0),de.add("esri-cim-animations-enable-status","enabled"),de.add("esri-cim-animations-spotlight",!1),de.add("esri-cim-animations-freeze-time",!1),de.add("enable-feature:multiple-highlights",!0),(()=>{de.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(de.add("host-browser",e),de.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),de.add("dom",e),de("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(de.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),de.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),de.add("khtml",n.includes("Konqueror")?i:void 0),de.add("edge",parseFloat(r.split("Edge/")[1])||void 0),de.add("opr",parseFloat(r.split("OPR/")[1])||void 0),de.add("webkit",!de("wp")&&!de("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),de.add("chrome",!de("edge")&&!de("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),de.add("android",!de("wp")&&parseFloat(r.split("Android ")[1])||void 0),de.add("safari",!n.includes("Safari")||de("wp")||de("chrome")||de("android")||de("edge")||de("opr")?void 0:parseFloat(n.split("Version/")[1])),de.add("mac",n.includes("Macintosh")),!de("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("_",""));de.add(o,l),de.add("ios",l)}de("webkit")||(!r.includes("Gecko")||de("wp")||de("khtml")||de("edge")||de.add("mozilla",i),de("mozilla")&&de.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&&de.add("esri-mobile",t),r&&de.add("esri-iPhone",r),de.add("esri-geolocation",!!navigator.geolocation)}de.add("esri-wasm","WebAssembly"in globalThis),de.add("esri-performance-mode-frames-between-render",20),de.add("esri-force-performance-mode",!1),de.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),de.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))}),de.add("esri-atomics","Atomics"in globalThis),de.add("esri-workers","Worker"in globalThis),de.add("web-feat:cache","caches"in globalThis),de.add("esri-workers-arraybuffer-transfer",!de("safari")||Number(de("safari"))>=12),de.add("workers-pool-size",8),de.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),de.add("featurelayer-simplify-payload-size-factors",[1,1,4]),de.add("featurelayer-fast-triangulation-enabled",!0),de.add("featurelayer-animation-enabled",!0),de.add("featurelayer-snapshot-enabled",!0),de.add("featurelayer-snapshot-point-min-threshold",8e4),de.add("featurelayer-snapshot-point-max-threshold",4e5),de.add("featurelayer-snapshot-point-coverage",.1),de.add("featurelayer-query-max-depth",4),de.add("featurelayer-query-pausing-enabled",!1),de.add("featurelayer-advanced-symbols",!1),de.add("featurelayer-pbf",!0),de.add("featurelayer-pbf-statistics",!1),de.add("feature-layers-workers",!0),de.add("feature-polyline-generalization-factor",1),de.add("mapview-transitions-duration",200),de.add("mapview-essential-goto-duration",200),de.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),de.add("mapserver-pbf-version-support",10.81),de.add("mapservice-popup-identify-max-tolerance",20),de.add("request-queue-hosted-concurrency",16),de.add("request-queue-non-hosted-concurrency",4),de.add("curve-densification-coarse-segments",128),de.add("curve-densification-max-segments",2e3),de.add("curve-densification-min-segments",3),de.add("curve-densification-pixels-per-segment",16),de("host-webworker")||de("host-browser")&&(de.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),de.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(()=>{de.add("esri-image-decode",!0,!0,!0)}).catch(()=>{de.add("esri-image-decode",!1,!0,!0)})}return!1}),de.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});var Eu,Zr=N(()=>{Eu=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}};Eu._m=2147483647,Eu._a=48271,Eu._c=0});function ml(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 Jx(e,t,r,n){n=n||A8;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 I8(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;Po.clear();for(let l=0;l<n;++l)Po.add(t[l]);i=i||A8;let s=Math.max(0,i.last-10);for(let l=s;l<r;++l)if(Po.has(e[l])&&(o?.push(e[l]),Po.delete(e[l]),e[l]=e[r-1],--r,--l,Po.size===0||r===0))return Po.clear(),r;for(let l=0;l<s;++l)if(Po.has(e[l])&&(o?.push(e[l]),Po.delete(e[l]),e[l]=e[r-1],--r,--l,Po.size===0||r===0))return Po.clear(),r;return Po.clear(),r}function L8(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function k8(e,t){return e!=null}var UB,Vle,kh,A8,Po,Ule,hl=N(()=>{Zr();UB=1.5,Vle=1/UB;kh=class{constructor(){this.last=0}},A8=new kh;Po=new Set;Ule=new Eu});function N8(e){return e?.constructor?.name==="Int8Array"}function O8(e){return e?.constructor?.name==="Uint8Array"}function R8(e){return e?.constructor?.name==="Uint8ClampedArray"}function D8(e){return e?.constructor?.name==="Int16Array"}function F8(e){return e?.constructor?.name==="Uint16Array"}function $8(e){return e?.constructor?.name==="Int32Array"}function V8(e){return e?.constructor?.name==="Uint32Array"}function U8(e){return e?.constructor?.name==="Float32Array"}function z8(e){return e?.constructor?.name==="Float64Array"}var W8=N(()=>{tt()});function Ww(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&Ww(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function Je(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=H8(e);if(t!=null)return t;if(G8(e))return e.clone();if(j8(e))return e.map(Je);if(q8(e))throw new Error("Trying to clone an unclonable Accessor instance");let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=Je(e[n]);return r}function zw(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=H8(e);if(t!=null)return t;if(j8(e)){let n=!0,i=e.map(o=>{let s=zw(o);return o!=null&&s==null&&(n=!1),s});return n?i:null}if(G8(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(q8(e))return null;let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=zw(i);if(i!=null&&o==null)return null;r[n]=o}return r}function G8(e){return typeof e.clone=="function"}function j8(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function q8(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function B8(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function H8(e){if(N8(e)||O8(e)||R8(e)||D8(e)||F8(e)||$8(e)||V8(e)||U8(e)||z8(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,Je(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(Je(r));return t}return null}function Nh(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 Bw(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)&&ml(e,t):e instanceof Set?t instanceof Set&&WB(e,t):e instanceof Map?t instanceof Map&&BB(e,t):!!B8(e)&&B8(t)&&zB(e,t))}function zB(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 WB(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function BB(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 ar=N(()=>{hl();W8()});function Z8(e,t,r=!1){return J8(e,t,r)}function qi(e,t){if(t!=null)return t[e]||Y8(e.split("."),!1,t)}function oa(e,t,r){let n=e.split("."),i=n.pop(),o=Y8(n,!0,r);o&&i&&(o[i]=t)}function Y8(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 J8(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]=Je(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]=J8(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var ws=N(()=>{ar()});function X8(e){return e??""}function ys(e,t){return t?e.replaceAll(GB,typeof t=="object"?(r,n)=>X8(qi(n,t)):(r,n)=>X8(t(n))):e}function Q8(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function K8(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var GB,gl=N(()=>{ws();GB=/\{([^}]+)\}/g});var sa,Gw,jw,qw,Mo,gf,_r,Ao,wl=N(()=>{sa=class extends Error{},Gw=class extends sa{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},jw=class extends sa{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},qw=class extends sa{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Mo=class extends sa{},gf=class extends sa{constructor(t){super(`Invalid unit ${t}`)}},_r=class extends sa{},Ao=class extends sa{constructor(){super("Zone is an abstract class")}}});var ke,Io,Ci,yl,Oh,Xx,Rh,Dh,Fh,$h,Vh,Uh,zh,Wh,Bh,Gh,jh,qh,Hh,Zh,Qx,Yh,Jh,Xh,Qh,Kh=N(()=>{ke="numeric",Io="short",Ci="long",yl={year:ke,month:ke,day:ke},Oh={year:ke,month:Io,day:ke},Xx={year:ke,month:Io,day:ke,weekday:Io},Rh={year:ke,month:Ci,day:ke},Dh={year:ke,month:Ci,day:ke,weekday:Ci},Fh={hour:ke,minute:ke},$h={hour:ke,minute:ke,second:ke},Vh={hour:ke,minute:ke,second:ke,timeZoneName:Io},Uh={hour:ke,minute:ke,second:ke,timeZoneName:Ci},zh={hour:ke,minute:ke,hourCycle:"h23"},Wh={hour:ke,minute:ke,second:ke,hourCycle:"h23"},Bh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Io},Gh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Ci},jh={year:ke,month:ke,day:ke,hour:ke,minute:ke},qh={year:ke,month:ke,day:ke,hour:ke,minute:ke,second:ke},Hh={year:ke,month:Io,day:ke,hour:ke,minute:ke},Zh={year:ke,month:Io,day:ke,hour:ke,minute:ke,second:ke},Qx={year:ke,month:Io,day:ke,weekday:Io,hour:ke,minute:ke},Yh={year:ke,month:Ci,day:ke,hour:ke,minute:ke,timeZoneName:Io},Jh={year:ke,month:Ci,day:ke,hour:ke,minute:ke,second:ke,timeZoneName:Io},Xh={year:ke,month:Ci,day:ke,weekday:Ci,hour:ke,minute:ke,timeZoneName:Ci},Qh={year:ke,month:Ci,day:ke,weekday:Ci,hour:ke,minute:ke,second:ke,timeZoneName:Ci}});var Nr,Cu=N(()=>{wl();Nr=class{get type(){throw new Ao}get name(){throw new Ao}get ianaName(){return this.name}get isUniversal(){throw new Ao}offsetName(t,r){throw new Ao}formatOffset(t,r){throw new Ao}offset(t){throw new Ao}equals(t){throw new Ao}get isValid(){throw new Ao}}});var Kx,vl,Zw=N(()=>{Zn();Cu();Kx=null,vl=class e extends Nr{static get instance(){return Kx===null&&(Kx=new e),Kx}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return Yw(t,r,n)}formatOffset(t,r){return bl(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function jB(e){return Xw[e]||(Xw[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"})),Xw[e]}function HB(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 ZB(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],l=qB[o];o==="era"?n[l]=s:He(l)||(n[l]=parseInt(s,10))}return n}var Xw,qB,Jw,or,_l=N(()=>{Zn();Cu();Xw={};qB={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};Jw={},or=class e extends Nr{static create(t){return Jw[t]||(Jw[t]=new e(t)),Jw[t]}static resetCache(){Jw={},Xw={}}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 Yw(t,r,n,this.name)}formatOffset(t,r){return bl(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=jB(this.name),[i,o,s,l,a,d,h]=n.formatToParts?ZB(n,r):HB(n,r);l==="BC"&&(i=-Math.abs(i)+1);let b=wf({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),S=+r,P=S%1e3;return S-=P>=0?P:1e3+P,(b-S)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function YB(e,t={}){let r=JSON.stringify([e,t]),n=eP[r];return n||(n=new Intl.ListFormat(e,t),eP[r]=n),n}function tS(e,t={}){let r=JSON.stringify([e,t]),n=eS[r];return n||(n=new Intl.DateTimeFormat(e,t),eS[r]=n),n}function JB(e,t={}){let r=JSON.stringify([e,t]),n=rS[r];return n||(n=new Intl.NumberFormat(e,t),rS[r]=n),n}function XB(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=nS[i];return o||(o=new Intl.RelativeTimeFormat(e,t),nS[i]=o),o}function QB(){return eg||(eg=new Intl.DateTimeFormat().resolvedOptions().locale,eg)}function KB(e){let t=tP[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,tP[e]=t}return t}function eG(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=tS(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=tS(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function tG(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function rG(e){let t=[];for(let r=1;r<=12;r++){let n=Ce.utc(2009,r,1);t.push(e(n))}return t}function nG(e){let t=[];for(let r=1;r<=7;r++){let n=Ce.utc(2016,11,13+r);t.push(e(n))}return t}function Qw(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function iG(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 eP,eS,rS,nS,eg,tP,iS,oS,sS,oG,St,rg=N(()=>{Zn();ty();xl();Sl();_l();eP={};eS={};rS={};nS={};eg=null;tP={};iS=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=JB(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):yf(t,3);return gr(r,this.padTo)}}},oS=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&&or.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=tS(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()}},sS=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&Kw()&&(this.rtf=XB(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):rP(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},oG={firstDay:1,minimalDays:4,weekend:[6,7]},St=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,i,o=!1){let s=t||xt.defaultLocale,l=s||(o?"en-US":QB()),a=r||xt.defaultNumberingSystem,d=n||xt.defaultOutputCalendar,h=tg(i)||xt.defaultWeekSettings;return new e(l,a,d,h,s)}static resetCache(){eg=null,eS={},rS={},nS={}}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]=eG(t);this.locale=s,this.numberingSystem=r||l||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=tG(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=iG(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,tg(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 Qw(this,t,aS,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=rG(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return Qw(this,t,lS,()=>{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]=nG(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return Qw(this,void 0,()=>cS,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ce.utc(2016,11,13,9),Ce.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Qw(this,t,uS,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ce.utc(-40,1,1),Ce.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){let i=this.dtFormatter(t,r),o=i.formatToParts(),s=o.find(l=>l.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new iS(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new oS(t,this.intl,r)}relFormatter(t={}){return new sS(this.intl,this.isEnglish(),t)}listFormatter(t={}){return YB(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:ey()?KB(this.locale):oG}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 pS,Rt,vf=N(()=>{Zn();Cu();pS=null,Rt=class e extends Nr{static get utcInstance(){return pS===null&&(pS=new e(0)),pS}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(Tu(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${bl(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${bl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return bl(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 bf,fS=N(()=>{Cu();bf=class extends Nr{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 Lo(e,t){let r;if(He(e)||e===null)return t;if(e instanceof Nr)return e;if(nP(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?vl.instance:n==="utc"||n==="gmt"?Rt.utcInstance:Rt.parseSpecifier(n)||or.create(e)}else return ko(e)?Rt.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new bf(e)}var ry=N(()=>{Cu();_l();vf();fS();Zn();Zw()});function oP(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(mS.hanidec)!==-1)t+=sG.indexOf(e[r]);else for(let i in iP){let[o,s]=iP[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function sP(){_f={}}function Hi({numberingSystem:e},t=""){let r=e||"latn";return _f[r]||(_f[r]={}),_f[r][t]||(_f[r][t]=new RegExp(`${mS[r]}${t}`)),_f[r][t]}var mS,iP,sG,_f,hS=N(()=>{mS={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"},iP={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]},sG=mS.hanidec.replace(/[\[|\]]/g,"").split("");_f={}});var aP,lP,cP,uP,dP,pP,fP,mP,xt,xl=N(()=>{Zw();_l();rg();Sl();ry();Zn();hS();aP=()=>Date.now(),lP="system",cP=null,uP=null,dP=null,pP=60,mP=null,xt=class{static get now(){return aP}static set now(t){aP=t}static set defaultZone(t){lP=t}static get defaultZone(){return Lo(lP,vl.instance)}static get defaultLocale(){return cP}static set defaultLocale(t){cP=t}static get defaultNumberingSystem(){return uP}static set defaultNumberingSystem(t){uP=t}static get defaultOutputCalendar(){return dP}static set defaultOutputCalendar(t){dP=t}static get defaultWeekSettings(){return mP}static set defaultWeekSettings(t){mP=tg(t)}static get twoDigitCutoffYear(){return pP}static set twoDigitCutoffYear(t){pP=t%100}static get throwOnInvalid(){return fP}static set throwOnInvalid(t){fP=t}static resetCaches(){St.resetCache(),or.resetCache(),Ce.resetCache(),sP()}}});var ln,ng=N(()=>{ln=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Zi(e,t){return new ln("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function ny(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 wP(e,t,r){return r+(Mu(e)?gP:hP)[t-1]}function yP(e,t){let r=Mu(e)?gP:hP,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function iy(e,t){return(e-t+7)%7+1}function ig(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=wP(n,i,o),l=iy(ny(n,i,o),r),a=Math.floor((s-l+14-t)/7),d;return a<1?(d=n-1,a=Pu(d,t,r)):a>Pu(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:l,...sg(e)}}function gS(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=iy(ny(n,1,t),r),l=El(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=El(d)):a>l?(d=n+1,a-=El(n)):d=n;let{month:h,day:g}=yP(d,a);return{year:d,month:h,day:g,...sg(e)}}function oy(e){let{year:t,month:r,day:n}=e,i=wP(t,r,n);return{year:t,ordinal:i,...sg(e)}}function wS(e){let{year:t,ordinal:r}=e,{month:n,day:i}=yP(t,r);return{year:t,month:n,day:i,...sg(e)}}function yS(e,t){if(!He(e.localWeekday)||!He(e.localWeekNumber)||!He(e.localWeekYear)){if(!He(e.weekday)||!He(e.weekNumber)||!He(e.weekYear))throw new Mo("Cannot mix locale-based week fields with ISO-based week fields");return He(e.localWeekday)||(e.weekday=e.localWeekday),He(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),He(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 vP(e,t=4,r=1){let n=og(e.weekYear),i=Ti(e.weekNumber,1,Pu(e.weekYear,t,r)),o=Ti(e.weekday,1,7);return n?i?o?!1:Zi("weekday",e.weekday):Zi("week",e.weekNumber):Zi("weekYear",e.weekYear)}function bP(e){let t=og(e.year),r=Ti(e.ordinal,1,El(e.year));return t?r?!1:Zi("ordinal",e.ordinal):Zi("year",e.year)}function vS(e){let t=og(e.year),r=Ti(e.month,1,12),n=Ti(e.day,1,xf(e.year,e.month));return t?r?n?!1:Zi("day",e.day):Zi("month",e.month):Zi("year",e.year)}function bS(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=Ti(t,0,23)||t===24&&r===0&&n===0&&i===0,s=Ti(r,0,59),l=Ti(n,0,59),a=Ti(i,0,999);return o?s?l?a?!1:Zi("millisecond",i):Zi("second",n):Zi("minute",r):Zi("hour",t)}var hP,gP,_S=N(()=>{Zn();ng();wl();hP=[0,31,59,90,120,151,181,212,243,273,304,334],gP=[0,31,60,91,121,152,182,213,244,274,305,335]});function He(e){return typeof e>"u"}function ko(e){return typeof e=="number"}function og(e){return typeof e=="number"&&e%1===0}function nP(e){return typeof e=="string"}function xP(e){return Object.prototype.toString.call(e)==="[object Date]"}function Kw(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function ey(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function SP(e){return Array.isArray(e)?e:[e]}function xS(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 EP(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function Cl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function tg(e){if(e==null)return null;if(typeof e!="object")throw new _r("Week settings must be an object");if(!Ti(e.firstDay,1,7)||!Ti(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Ti(t,1,7)))throw new _r("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ti(e,t,r){return og(e)&&e>=t&&e<=r}function aG(e,t){return e-t*Math.floor(e/t)}function gr(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function aa(e){if(!(He(e)||e===null||e===""))return parseInt(e,10)}function Tl(e){if(!(He(e)||e===null||e===""))return parseFloat(e)}function ag(e){if(!(He(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function yf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Mu(e){return e%4===0&&(e%100!==0||e%400===0)}function El(e){return Mu(e)?366:365}function xf(e,t){let r=aG(t-1,12)+1,n=e+(t-r)/12;return r===2?Mu(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function wf(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 _P(e,t,r){return-iy(ny(e,1,t),r)+t-1}function Pu(e,t=4,r=1){let n=_P(e,t,r),i=_P(e+1,t,r);return(El(e)-n+i)/7}function lg(e){return e>99?e:e>xt.twoDigitCutoffYear?1900+e:2e3+e}function Yw(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 Tu(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 SS(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new _r(`Invalid unit value ${e}`);return t}function Sf(e,t){let r={};for(let n in e)if(Cl(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=SS(i)}return r}function bl(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}${gr(r,2)}:${gr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${gr(r,2)}${gr(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function sg(e){return EP(e,["hour","minute","second","millisecond"])}var Zn=N(()=>{wl();xl();_S()});function aS(e){switch(e){case"narrow":return[...cG];case"short":return[...ES];case"long":return[...lG];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 lS(e){switch(e){case"narrow":return[...uG];case"short":return[...TS];case"long":return[...CS];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function uS(e){switch(e){case"narrow":return[...fG];case"short":return[...pG];case"long":return[...dG];default:return null}}function CP(e){return cS[e.hour<12?0:1]}function TP(e,t){return lS(t)[e.weekday-1]}function PP(e,t){return aS(t)[e.month-1]}function MP(e,t){return uS(t)[e.year<0?0:1]}function rP(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 lG,ES,cG,CS,TS,uG,cS,dG,pG,fG,ty=N(()=>{Kh();Zn();lG=["January","February","March","April","May","June","July","August","September","October","November","December"],ES=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],cG=["J","F","M","A","M","J","J","A","S","O","N","D"];CS=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],TS=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],uG=["M","T","W","T","F","S","S"];cS=["AM","PM"],dG=["Before Christ","Anno Domini"],pG=["BC","AD"],fG=["B","A"]});function AP(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var mG,cn,cg=N(()=>{ty();Kh();Zn();mG={D:yl,DD:Oh,DDD:Rh,DDDD:Dh,t:Fh,tt:$h,ttt:Vh,tttt:Uh,T:zh,TT:Wh,TTT:Bh,TTTT:Gh,f:jh,ff:Hh,fff:Yh,ffff:Xh,F:qh,FF:Zh,FFF:Jh,FFFF:Qh},cn=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 mG[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 gr(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=(S,P)=>this.loc.extract(t,S,P),s=S=>t.isOffsetFixed&&t.offset===0&&S.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,S.format):"",l=()=>n?CP(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(S,P)=>n?PP(t,S):o(P?{month:S}:{month:S,day:"numeric"},"month"),d=(S,P)=>n?TP(t,S):o(P?{weekday:S}:{weekday:S,month:"long",day:"numeric"},"weekday"),h=S=>{let P=e.macroTokenToFormatOpts(S);return P?this.formatWithSystemDefault(t,P):S},g=S=>n?MP(t,S):o({era:S},"era"),b=S=>{switch(S){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(S)}};return AP(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 AP(o,i(l))}}});function Cf(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function Tf(...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 Pf(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 kP(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=aa(t[r+i]);return[n,null,r+i]}}function Ef(e,t,r){let n=e[t];return He(n)?r:aa(n)}function SG(e,t){return[{year:Ef(e,t),month:Ef(e,t+1,1),day:Ef(e,t+2,1)},null,t+3]}function Mf(e,t){return[{hours:Ef(e,t,0),minutes:Ef(e,t+1,0),seconds:Ef(e,t+2,0),milliseconds:ag(e[t+3])},null,t+4]}function ug(e,t){let r=!e[t]&&!e[t+1],n=Tu(e[t+1],e[t+2]),i=r?null:Rt.instance(n);return[{},i,t+3]}function dg(e,t){let r=e[t]?or.create(e[t]):null;return[{},r,t+1]}function TG(e){let[t,r,n,i,o,s,l,a,d]=e,h=t[0]==="-",g=a&&a[0]==="-",b=(S,P=!1)=>S!==void 0&&(P||S&&h)?-S:S;return[{years:b(Tl(r)),months:b(Tl(n)),weeks:b(Tl(i)),days:b(Tl(o)),hours:b(Tl(s)),minutes:b(Tl(l)),seconds:b(Tl(a),a==="-0"),milliseconds:b(ag(d),g)}]}function AS(e,t,r,n,i,o,s){let l={year:t.length===2?lg(aa(t)):aa(t),month:ES.indexOf(r)+1,day:aa(n),hour:aa(i),minute:aa(o)};return s&&(l.second=aa(s)),e&&(l.weekday=e.length>3?CS.indexOf(e)+1:TS.indexOf(e)+1),l}function AG(e){let[,t,r,n,i,o,s,l,a,d,h,g]=e,b=AS(t,i,n,r,o,s,l),S;return a?S=PG[a]:d?S=0:S=Tu(h,g),[b,new Rt(S)]}function IG(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function IP(e){let[,t,r,n,i,o,s,l]=e;return[AS(t,i,n,r,o,s,l),Rt.utcInstance]}function OG(e){let[,t,r,n,i,o,s,l]=e;return[AS(t,l,r,n,i,o,s),Rt.utcInstance]}function FP(e){return Pf(e,[RG,DP],[DG,VG],[FG,UG],[$G,zG])}function $P(e){return Pf(IG(e),[MG,AG])}function VP(e){return Pf(e,[LG,IP],[kG,IP],[NG,OG])}function UP(e){return Pf(e,[CG,TG])}function zP(e){return Pf(e,[EG,WG])}function WP(e){return Pf(e,[BG,DP],[GG,jG])}var LP,NP,hG,PS,OP,MS,gG,wG,yG,vG,bG,_G,RP,xG,EG,CG,PG,MG,LG,kG,NG,RG,DG,FG,$G,DP,VG,UG,zG,WG,BG,GG,jG,IS=N(()=>{Zn();ty();vf();_l();LP=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;NP=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,hG=`(?:${NP.source}?(?:\\[(${LP.source})\\])?)?`,PS=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,OP=RegExp(`${PS.source}${hG}`),MS=RegExp(`(?:T${OP.source})?`),gG=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wG=/(\d{4})-?W(\d\d)(?:-?(\d))?/,yG=/(\d{4})-?(\d{3})/,vG=kP("weekYear","weekNumber","weekDay"),bG=kP("year","ordinal"),_G=/(\d{4})-(\d\d)-(\d\d)/,RP=RegExp(`${PS.source} ?(?:${NP.source}|(${LP.source}))?`),xG=RegExp(`(?: ${RP.source})?`);EG=RegExp(`^T?${PS.source}$`),CG=/^-?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)?)?)$/;PG={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};MG=/^(?:(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)))$/;LG=/^(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$/,kG=/^(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$/,NG=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;RG=Cf(gG,MS),DG=Cf(wG,MS),FG=Cf(yG,MS),$G=Cf(OP),DP=Tf(SG,Mf,ug,dg),VG=Tf(vG,Mf,ug,dg),UG=Tf(bG,Mf,ug,dg),zG=Tf(Mf,ug,dg);WG=Tf(Mf);BG=Cf(_G,xG),GG=Cf(RP),jG=Tf(Mf,ug,dg)});function Pl(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 wr(n)}function qP(e,t){let r=t.milliseconds??0;for(let n of ZG.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function GP(e,t){let r=qP(e,t)<0?-1:1;Au.reduceRight((n,i)=>{if(He(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),Au.reduce((n,i)=>{if(He(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function YG(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var BP,jP,qG,Yi,Af,HG,Au,ZG,wr,pg=N(()=>{wl();cg();ng();rg();IS();Zn();xl();Sl();BP="Invalid Duration",jP={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}},qG={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},...jP},Yi=146097/400,Af=146097/4800,HG={years:{quarters:4,months:12,weeks:Yi/7,days:Yi,hours:Yi*24,minutes:Yi*24*60,seconds:Yi*24*60*60,milliseconds:Yi*24*60*60*1e3},quarters:{months:3,weeks:Yi/28,days:Yi/4,hours:Yi*24/4,minutes:Yi*24*60/4,seconds:Yi*24*60*60/4,milliseconds:Yi*24*60*60*1e3/4},months:{weeks:Af/7,days:Af,hours:Af*24,minutes:Af*24*60,seconds:Af*24*60*60,milliseconds:Af*24*60*60*1e3},...jP},Au=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ZG=Au.slice(0).reverse();wr=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?HG:qG;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||St.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return e.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new _r(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Sf(t,e.normalizeUnit),loc:St.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(ko(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new _r(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=UP(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]=zP(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 _r("need to specify a reason the Duration is invalid");let n=t instanceof ln?t:new ln(t,r);if(xt.throwOnInvalid)throw new qw(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 gf(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?cn.create(this.loc,n).formatDurationFromString(this,t):BP}toHuman(t={}){if(!this.isValid)return BP;let r=Au.map(n=>{let i=this.values[n];return He(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+=yf(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ce.fromMillis(r,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?qP(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 Au)(Cl(r.values,i)||Cl(this.values,i))&&(n[i]=r.get(i)+this.get(i));return Pl(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]=SS(t(this.values[n],n));return Pl(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...Sf(t,e.normalizeUnit)};return Pl(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 Pl(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return GP(this.matrix,t),Pl(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=YG(this.normalize().shiftToAll().toObject());return Pl(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 Au)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;ko(i[s])&&(l+=i[s]);let a=Math.trunc(l);r[s]=a,n[s]=(l*1e3-a*1e3)/1e3}else ko(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 GP(this.matrix,r),Pl(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 Pl(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 Au)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function JG(e,t){return!e||!e.isValid?la.invalid("missing or invalid start"):!t||!t.isValid?la.invalid("missing or invalid end"):t<e?la.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 If,la,LS=N(()=>{Sl();pg();xl();wl();ng();cg();Kh();If="Invalid Interval";la=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 _r("need to specify a reason the Interval is invalid");let n=t instanceof ln?t:new ln(t,r);if(xt.throwOnInvalid)throw new jw(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=Lf(t),i=Lf(r),o=JG(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=wr.fromDurationLike(r),i=Lf(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=wr.fromDurationLike(r),i=Lf(t);return e.fromDateTimes(i.minus(n),i)}static fromISO(t,r){let[n,i]=(t||"").split("/",2);if(n&&i){let o,s;try{o=Ce.fromISO(n,r),s=o.isValid}catch{s=!1}let l,a;try{l=Ce.fromISO(i,r),a=l.isValid}catch{a=!1}if(s&&a)return e.fromDateTimes(o,l);if(s){let d=wr.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=wr.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(Lf).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=wr.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()})`:If}[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=yl,r={}){return this.isValid?cn.create(this.s.loc.clone(r),t).formatInterval(this):If}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:If}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:If}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:If}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:If}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):wr.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var ca,kS=N(()=>{Sl();xl();rg();_l();ry();Zn();ca=class{static hasDST(t=xt.defaultZone){let r=Ce.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return or.isValidZone(t)}static normalizeZone(t){return Lo(t,xt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||St.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||St.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||St.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||St.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return St.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return St.create(r,null,"gregory").eras(t)}static features(){return{relative:Kw(),localeWeek:ey()}}}});function HP(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(wr.fromMillis(n).as("days"))}function XG(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=HP(a,d);return(h-h%7)/7}],["days",HP]],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 ZP(e,t,r,n){let[i,o,s,l]=XG(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=wr.fromObject(o,n);return d.length>0?wr.fromMillis(a,n).shiftTo(...d).plus(h):h}var YP=N(()=>{pg()});function Tt(e,t=r=>r){return{regex:e,deser:([r])=>t(oP(r))}}function ej(e){return e.replace(/\./g,"\\.?").replace(KP,QP)}function JP(e){return e.replace(/\./g,"").replace(KP," ").toLowerCase()}function No(e,t){return e===null?null:{regex:RegExp(e.map(ej).join("|")),deser:([r])=>e.findIndex(n=>JP(r)===JP(n))+t}}function XP(e,t){return{regex:e,deser:([,r,n])=>Tu(r,n),groups:t}}function sy(e){return{regex:e,deser:([t])=>t}}function tj(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function rj(e,t){let r=Hi(t),n=Hi(t,"{2}"),i=Hi(t,"{3}"),o=Hi(t,"{4}"),s=Hi(t,"{6}"),l=Hi(t,"{1,2}"),a=Hi(t,"{1,3}"),d=Hi(t,"{1,6}"),h=Hi(t,"{1,9}"),g=Hi(t,"{2,4}"),b=Hi(t,"{4,6}"),S=F=>({regex:RegExp(tj(F.val)),deser:([W])=>W,literal:!0}),A=(F=>{if(e.literal)return S(F);switch(F.val){case"G":return No(t.eras("short"),0);case"GG":return No(t.eras("long"),0);case"y":return Tt(d);case"yy":return Tt(g,lg);case"yyyy":return Tt(o);case"yyyyy":return Tt(b);case"yyyyyy":return Tt(s);case"M":return Tt(l);case"MM":return Tt(n);case"MMM":return No(t.months("short",!0),1);case"MMMM":return No(t.months("long",!0),1);case"L":return Tt(l);case"LL":return Tt(n);case"LLL":return No(t.months("short",!1),1);case"LLLL":return No(t.months("long",!1),1);case"d":return Tt(l);case"dd":return Tt(n);case"o":return Tt(a);case"ooo":return Tt(i);case"HH":return Tt(n);case"H":return Tt(l);case"hh":return Tt(n);case"h":return Tt(l);case"mm":return Tt(n);case"m":return Tt(l);case"q":return Tt(l);case"qq":return Tt(n);case"s":return Tt(l);case"ss":return Tt(n);case"S":return Tt(a);case"SSS":return Tt(i);case"u":return sy(h);case"uu":return sy(l);case"uuu":return Tt(r);case"a":return No(t.meridiems(),0);case"kkkk":return Tt(o);case"kk":return Tt(g,lg);case"W":return Tt(l);case"WW":return Tt(n);case"E":case"c":return Tt(r);case"EEE":return No(t.weekdays("short",!1),1);case"EEEE":return No(t.weekdays("long",!1),1);case"ccc":return No(t.weekdays("short",!0),1);case"cccc":return No(t.weekdays("long",!0),1);case"Z":case"ZZ":return XP(new RegExp(`([+-]${l.source})(?::(${n.source}))?`),2);case"ZZZ":return XP(new RegExp(`([+-]${l.source})(${n.source})?`),2);case"z":return sy(/[a-z_+-/]{1,256}?/i);case" ":return sy(/[^\S\n\r]/);default:return S(F)}})(e)||{invalidReason:QG};return A.token=e,A}function ij(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=nj[s];if(typeof l=="object"&&(l=l[o]),l)return{literal:!1,val:l}}function oj(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function sj(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(Cl(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 aj(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 He(e.z)||(r=or.create(e.z)),He(e.Z)||(r||(r=new Rt(e.Z)),n=e.Z),He(e.q)||(e.M=(e.q-1)*3+1),He(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),He(e.u)||(e.S=ag(e.u)),[Object.keys(e).reduce((o,s)=>{let l=t(s);return l&&(o[l]=e[s]),o},{}),r,n]}function lj(){return NS||(NS=Ce.fromMillis(1555555555555)),NS}function cj(e,t){if(e.literal)return e;let r=cn.macroTokenToFormatOpts(e.val),n=DS(r,t);return n==null||n.includes(void 0)?e:n}function OS(e,t){return Array.prototype.concat(...e.map(r=>cj(r,t)))}function RS(e,t,r){return new fg(e,r).explainFromTokens(t)}function eM(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=RS(e,t,r);return[n,i,o,s]}function DS(e,t){if(!e)return null;let n=cn.create(t,e).dtFormatter(lj()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>ij(s,e,o))}var QG,KG,QP,KP,nj,NS,fg,tM=N(()=>{Zn();cg();vf();_l();Sl();hS();wl();QG="missing Intl.DateTimeFormat.formatToParts support";KG="\xA0",QP=`[ ${KG}]`,KP=new RegExp(QP,"g");nj={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"}};NS=null;fg=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=OS(cn.parseFormat(r),t),this.units=this.tokens.map(n=>rj(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=oj(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=sj(t,this.regex,this.handlers),[i,o,s]=n?aj(n):[null,null,void 0];if(Cl(n,"a")&&Cl(n,"H"))throw new Mo("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 mg(e){return new ln("unsupported zone",`the zone "${e.name}" is not supported`)}function $S(e){return e.weekData===null&&(e.weekData=ig(e.c)),e.weekData}function VS(e){return e.localWeekData===null&&(e.localWeekData=ig(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Iu(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ce({...r,...t,old:r})}function cM(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 ay(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 cy(e,t,r){return cM(wf(e),t,r)}function nM(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,xf(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=wr.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=wf(o),[a,d]=cM(l,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function kf(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=Ce.fromObject(e,{...r,zone:a,specificOffset:o});return s?d:d.setZone(l)}else return Ce.invalid(new ln("unparsable",`the input "${i}" can't be parsed as ${n}`))}function ly(e,t,r=!0){return e.isValid?cn.create(St.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function US(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=gr(e.c.year,r?6:4),t?(n+="-",n+=gr(e.c.month),n+="-",n+=gr(e.c.day)):(n+=gr(e.c.month),n+=gr(e.c.day)),n}function iM(e,t,r,n,i,o){let s=gr(e.c.hour);return t?(s+=":",s+=gr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=gr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=gr(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=gr(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=gr(Math.trunc(-e.o/60)),s+=":",s+=gr(Math.trunc(-e.o%60))):(s+="+",s+=gr(Math.trunc(e.o/60)),s+=":",s+=gr(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function mj(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 gf(e);return t}function oM(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return mj(e)}}function hj(e){return dy[e]||(uy===void 0&&(uy=xt.now()),dy[e]=e.offset(uy)),dy[e]}function sM(e,t){let r=Lo(t.zone,xt.defaultZone);if(!r.isValid)return Ce.invalid(mg(r));let n=St.fromObject(t),i,o;if(He(e.year))i=xt.now();else{for(let a of dM)He(e[a])&&(e[a]=uM[a]);let s=vS(e)||bS(e);if(s)return Ce.invalid(s);let l=hj(r);[i,o]=cy(e,l,r)}return new Ce({ts:i,zone:r,loc:n,o})}function aM(e,t,r){let n=He(r.round)?!0:r.round,i=(s,l)=>(s=yf(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 lM(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 Lf(e){if(Ce.isDateTime(e))return e;if(e&&e.valueOf&&ko(e.valueOf()))return Ce.fromJSDate(e);if(e&&typeof e=="object")return Ce.fromObject(e);throw new _r(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var FS,rM,uM,uj,dj,dM,pj,fj,uy,dy,Ce,Sl=N(()=>{pg();LS();xl();kS();cg();vf();rg();Zn();ry();YP();IS();tM();_S();Kh();wl();ng();FS="Invalid DateTime",rM=864e13;uM={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},uj={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},dj={ordinal:1,hour:0,minute:0,second:0,millisecond:0},dM=["year","month","day","hour","minute","second","millisecond"],pj=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],fj=["year","ordinal","hour","minute","second","millisecond"];dy={},Ce=class e{constructor(t){let r=t.zone||xt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new ln("invalid input"):null)||(r.isValid?null:mg(r));this.ts=He(t.ts)?xt.now():t.ts;let i=null,o=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[i,o]=[t.old.c,t.old.o];else{let l=ko(t.o)&&!t.old?t.o:r.offset(this.ts);i=ay(this.ts,l),n=Number.isNaN(i.year)?new ln("invalid input"):null,i=n?null:i,o=n?null:l}this._zone=r,this.loc=t.loc||St.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,r]=lM(arguments),[n,i,o,s,l,a,d]=r;return sM({year:n,month:i,day:o,hour:s,minute:l,second:a,millisecond:d},t)}static utc(){let[t,r]=lM(arguments),[n,i,o,s,l,a,d]=r;return t.zone=Rt.utcInstance,sM({year:n,month:i,day:o,hour:s,minute:l,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=xP(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=Lo(r.zone,xt.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:St.fromObject(r)}):e.invalid(mg(i))}static fromMillis(t,r={}){if(ko(t))return t<-rM||t>rM?e.invalid("Timestamp out of range"):new e({ts:t,zone:Lo(r.zone,xt.defaultZone),loc:St.fromObject(r)});throw new _r(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(ko(t))return new e({ts:t*1e3,zone:Lo(r.zone,xt.defaultZone),loc:St.fromObject(r)});throw new _r("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=Lo(r.zone,xt.defaultZone);if(!n.isValid)return e.invalid(mg(n));let i=St.fromObject(r),o=Sf(t,oM),{minDaysInFirstWeek:s,startOfWeek:l}=yS(o,i),a=xt.now(),d=He(r.specificOffset)?n.offset(a):r.specificOffset,h=!He(o.ordinal),g=!He(o.year),b=!He(o.month)||!He(o.day),S=g||b,P=o.weekYear||o.weekNumber;if((S||h)&&P)throw new Mo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(b&&h)throw new Mo("Can't mix ordinal dates with month/day");let A=P||o.weekday&&!S,F,W,z=ay(a,d);A?(F=pj,W=uj,z=ig(z,s,l)):h?(F=fj,W=dj,z=oy(z)):(F=dM,W=uM);let q=!1;for(let Ee of F){let Ne=o[Ee];He(Ne)?q?o[Ee]=W[Ee]:o[Ee]=z[Ee]:q=!0}let G=A?vP(o,s,l):h?bP(o):vS(o),Y=G||bS(o);if(Y)return e.invalid(Y);let ie=A?gS(o,s,l):h?wS(o):o,[U,me]=cy(ie,d,n),Ae=new e({ts:U,zone:n,o:me,loc:i});return o.weekday&&S&&t.weekday!==Ae.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Ae.toISO()}`):Ae.isValid?Ae:e.invalid(Ae.invalid)}static fromISO(t,r={}){let[n,i]=FP(t);return kf(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=$P(t);return kf(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=VP(t);return kf(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(He(t)||He(r))throw new _r("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[l,a,d,h]=eM(s,t,r);return h?e.invalid(h):kf(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]=WP(t);return kf(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new _r("need to specify a reason the DateTime is invalid");let n=t instanceof ln?t:new ln(t,r);if(xt.throwOnInvalid)throw new Gw(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=DS(t,St.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return OS(cn.parseFormat(t),St.fromObject(r)).map(i=>i.val).join("")}static resetCache(){uy=void 0,dy={}}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?$S(this).weekYear:NaN}get weekNumber(){return this.isValid?$S(this).weekNumber:NaN}get weekday(){return this.isValid?$S(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?VS(this).weekday:NaN}get localWeekNumber(){return this.isValid?VS(this).weekNumber:NaN}get localWeekYear(){return this.isValid?VS(this).weekYear:NaN}get ordinal(){return this.isValid?oy(this.c).ordinal:NaN}get monthShort(){return this.isValid?ca.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ca.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ca.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ca.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=wf(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=ay(a,s),g=ay(d,l);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Iu(this,{ts:a}),Iu(this,{ts:d})]:[this]}get isInLeapYear(){return Mu(this.year)}get daysInMonth(){return xf(this.year,this.month)}get daysInYear(){return this.isValid?El(this.year):NaN}get weeksInWeekYear(){return this.isValid?Pu(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Pu(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=cn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(Rt.instance(t),r)}toLocal(){return this.setZone(xt.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=Lo(t,xt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(r||n){let o=t.offset(this.ts),s=this.toObject();[i]=cy(s,o,t)}return Iu(this,{ts:i,zone:t})}else return e.invalid(mg(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return Iu(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=Sf(t,oM),{minDaysInFirstWeek:n,startOfWeek:i}=yS(r,this.loc),o=!He(r.weekYear)||!He(r.weekNumber)||!He(r.weekday),s=!He(r.ordinal),l=!He(r.year),a=!He(r.month)||!He(r.day),d=l||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new Mo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new Mo("Can't mix ordinal dates with month/day");let g;o?g=gS({...ig(this.c,n,i),...r},n,i):He(r.ordinal)?(g={...this.toObject(),...r},He(r.day)&&(g.day=Math.min(xf(g.year,g.month),g.day))):g=wS({...oy(this.c),...r});let[b,S]=cy(g,this.o,this.zone);return Iu(this,{ts:b,o:S})}plus(t){if(!this.isValid)return this;let r=wr.fromDurationLike(t);return Iu(this,nM(this,r))}minus(t){if(!this.isValid)return this;let r=wr.fromDurationLike(t).negate();return Iu(this,nM(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=wr.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?cn.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):FS}toLocaleString(t=yl,r={}){return this.isValid?cn.create(this.loc.clone(r),t).formatDateTime(this):FS}toLocaleParts(t={}){return this.isValid?cn.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=US(this,s);return l+="T",l+=iM(this,s,r,n,i,o),l}toISODate({format:t="extended"}={}){return this.isValid?US(this,t==="extended"):null}toISOWeekDate(){return ly(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":"")+iM(this,s==="extended",r,t,n,o):null}toRFC2822(){return ly(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ly(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?US(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")),ly(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():FS}[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 wr.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=SP(r).map(wr.normalizeUnit),s=t.valueOf()>this.valueOf(),l=s?this:t,a=s?t:this,d=ZP(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?la.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),aM(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?aM(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 _r("min requires all arguments be DateTimes");return xS(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new _r("max requires all arguments be DateTimes");return xS(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return RS(s,t,r)}static fromStringExplain(t,r,n={}){return e.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){let{locale:n=null,numberingSystem:i=null}=r,o=St.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new fg(o,t)}static fromFormatParser(t,r,n={}){if(He(t)||He(r))throw new _r("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new _r(`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):kf(l,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return yl}static get DATE_MED(){return Oh}static get DATE_MED_WITH_WEEKDAY(){return Xx}static get DATE_FULL(){return Rh}static get DATE_HUGE(){return Dh}static get TIME_SIMPLE(){return Fh}static get TIME_WITH_SECONDS(){return $h}static get TIME_WITH_SHORT_OFFSET(){return Vh}static get TIME_WITH_LONG_OFFSET(){return Uh}static get TIME_24_SIMPLE(){return zh}static get TIME_24_WITH_SECONDS(){return Wh}static get TIME_24_WITH_SHORT_OFFSET(){return Bh}static get TIME_24_WITH_LONG_OFFSET(){return Gh}static get DATETIME_SHORT(){return jh}static get DATETIME_SHORT_WITH_SECONDS(){return qh}static get DATETIME_MED(){return Hh}static get DATETIME_MED_WITH_SECONDS(){return Zh}static get DATETIME_MED_WITH_WEEKDAY(){return Qx}static get DATETIME_FULL(){return Yh}static get DATETIME_FULL_WITH_SECONDS(){return Jh}static get DATETIME_HUGE(){return Xh}static get DATETIME_HUGE_WITH_SECONDS(){return Qh}}});var Fn=N(()=>{Sl();pg();LS();kS();Cu();vf();_l();fS();Zw();xl()});function Lu(e){return e instanceof Nr?e===Yr.instance:e?.toString().toLowerCase()==="unknown"}function py(e){return Lu(e)?Yr.instance:e}var Yr,hg=N(()=>{Fn();Yr=class{};Yr.instance=new or("Etc/UTC")});function Nf(e,t,r){return e<t?e-t:e>r?e-r:0}function Of(e,t,r){return e<t?t:e>r?r:e}function Oo(e,t=!0){if(e instanceof Nr)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return Yr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=Rt.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=or.create(e);if(!r.isValid){if(t)throw new zS(fy.TimeZoneNotRecognized);return null}return r}var fy,gj,zS,Rf,WS=N(()=>{gl();hg();Fn();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(fy||(fy={}));gj={[fy.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},zS=class e extends Error{constructor(t,r){super(ys(gj[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};Rf=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=Ce.local(t,r).daysInMonth,h=Ce.fromObject({day:Of(n,1,d),year:t,month:Of(r,1,12),hour:Of(i,0,23),minute:Of(o,0,59),second:Of(s,0,59),millisecond:Of(l,0,999)},{zone:Oo(a)});return h=h.plus({months:Nf(r,1,12),days:Nf(n,1,d),hours:Nf(i,0,23),minutes:Nf(o,0,59),seconds:Nf(s,0,59),milliseconds:Nf(l,0,999)}),new e(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=Oo(r);return t.isUnknownTimeZone||n===Yr.instance?e.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t._date.setZone(n))}static dateJSToArcadeDate(t){return new e(Ce.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Oo(r);return new e(Ce.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(Ce.fromMillis(t,{zone:Yr.instance}))}static unknownDateJSToArcadeDate(t){return new e(Ce.fromMillis(t.getTime(),{zone:Yr.instance}))}static epochToArcadeDate(t,r="system"){let n=Oo(r);return new e(Ce.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=Oo(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=Oo(r);return t.zone===Yr.instance||n===Yr.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=Oo(t);return new e(Ce.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(Ce.utc())}get isSystem(){return this.timeZone==="system"||this.timeZone===e.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===Yr.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let t=this._date.weekday;return t>6&&(t=0),t}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if(this._date.zone.type==="system")return"system";let t=this.zone;return t.type==="fixed"?t.fixed===0?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new e(this._date.plus(t))}diff(t,r="milliseconds"){return this._date.diff(t._date,r)[r]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,r){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:r&&!this.isUnknownTimeZone})}toFormat(t,r){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,r)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new e(this._date.toUTC())}toLocal(){return new e(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;let r=Ce.fromISO(t,{setZone:!0});return new e(r)}}});function Pt(e){return e?{remove(){e&&(e(),e=void 0)}}:wj}function yj(e){e.forEach(t=>t?.remove())}function ku(e){return Pt(()=>yj(e))}var wj,ci=N(()=>{wj={remove:()=>{}}});function fM(){let e=BS?.getAttribute("lang"),t=globalThis.navigator?.language;return bj??e??t??"en"}function Ji(){return gg===void 0&&(gg=fM()),gg}function GS(e){return my.push(e),Pt(()=>my.splice(my.indexOf(e),1))}function Df(e){return hy.push(e),Pt(()=>hy.splice(hy.indexOf(e),1))}function pM(){let e=vj??fM();gg!==e&&([...hy].forEach(t=>t(e)),gg=e,[...my].forEach(t=>t(e)))}var vj,gg,bj,BS,my,hy,Ml=N(()=>{ci();bj=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,BS=globalThis.document?.documentElement;my=[];hy=[];globalThis.addEventListener?.("languagechange",pM),BS&&new MutationObserver(()=>{pM()}).observe(BS,{attributeFilter:["lang"]})});function mM(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="",r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(let n of e.match(r)||[])switch(n){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=n;break;default:n.length>=2&&n.slice(0,1)==="["&&n.slice(-1)==="]"?t+=`'${n.slice(1,-1)}'`:t+=`'${n}'`}return t}var un,wg=N(()=>{WS();Ml();Fn();un=class e{constructor(t,r,n){this._year=t,this._month=r,this._day=n,this.declaredRootClass="esri.core.sql.dateonly"}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(t){return t instanceof e&&t.day===this.day&&t.month===this.month&&t.year===this.year}clone(){return new e(this._year,this._month,this._day)}toDateTime(t){return Ce.fromObject({day:this.day,month:this.month,year:this.year},{zone:Oo(t)})}toDateTimeLuxon(t){return Ce.fromObject({day:this.day,month:this.month,year:this.year},{zone:Oo(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=mM(t)),!t)return"";let n=this.toDateTime("unknown");return Rf.dateTimeToArcadeDate(n).toFormat(t,{locale:Ji(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return Rf.dateTimeToArcadeDate(t)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(t,r){return e.fromDateTime(this.toUTCDateTime().plus({[t]:r}))}toUTCDateTime(){return Ce.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){let r=Ce.fromMillis(t,{zone:Rt.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=Ce.fromSeconds(t,{zone:Rt.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromReader(t){if(!t)return null;let r=t.split("-");return r.length!==3?null:new e(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10))}static fromParts(t,r,n){let i=new e(t,r,n);return i.isValid===!1?null:i}static fromDateJS(t){return e.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return e.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,r=null){if(t===""||t===null)return null;let n=[];if(r)(r=mM(r))&&n.push(r);else if(r===null||r===""){let i=Ce.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Ce.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=Ce.fromJSDate(new Date).setZone(Oo(t));return new e(r.year,r.month,r.day)}}});var K,_j,oe,Al=N(()=>{gl();(function(e){e.InvalidFunctionParameters="InvalidFunctionParameters",e.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",e.UnsupportedSqlFunction="UnsupportedSqlFunction",e.UnsupportedOperator="UnsupportedOperator",e.UnsupportedSyntax="UnsupportedSyntax",e.UnsupportedIsRhs="UnsupportedIsRhs",e.UnsupportedIsLhs="UnsupportedIsLhs",e.InvalidDataType="InvalidDataType",e.CannotCastValue="CannotCastValue",e.FunctionNotRecognized="FunctionNotRecognized",e.InvalidTime="InvalidTime",e.InvalidParameterCount="InvalidParameterCount",e.InvalidTimeStamp="InvalidTimeStamp",e.InvalidDate="InvalidDate",e.InvalidOperator="InvalidOperator",e.IllegalInterval="IllegalInterval",e.YearMonthIntervals="YearMonthIntervals",e.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",e.MissingStatisticParameters="MissingStatisticParameters"})(K||(K={}));_j={[K.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[K.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[K.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[K.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[K.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[K.UnsupportedOperator]:"Unsupported operator - {operator}",[K.UnsupportedSyntax]:"Unsupported syntax - {node}",[K.UnsupportedSqlFunction]:"Sql function not found = {function}",[K.InvalidDataType]:"Invalid sql data type",[K.InvalidDate]:"Invalid date encountered",[K.InvalidOperator]:"Invalid operator encountered",[K.InvalidTime]:"Invalid time encountered",[K.IllegalInterval]:"Illegal interval",[K.FunctionNotRecognized]:"Function not recognized",[K.InvalidTimeStamp]:"Invalid timestamp encountered",[K.InvalidParameterCount]:"Invalid parameter count for call to {name}",[K.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[K.YearMonthIntervals]:"Year-Month Intervals not supported",[K.CannotCastValue]:"Cannot cast value to the required data type"},oe=class e extends Error{constructor(t,r){super(ys(_j[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function hM(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var bn,yg=N(()=>{Fn();bn=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=Ce.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return hM(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return hM(this.toDateTime().offset%60)}toMilliseconds(){return this.toDateTime().toMillis()}get hour(){return this.toDateTime().hour}get minute(){return this.toDateTime().minute}get second(){return this.toDateTime().second}get day(){return this.toDateTime().day}get month(){return this.toDateTime().month}get year(){return this.toDateTime().year}startOfDay(){return e.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(t){return new e(Ce.fromJSDate(t).toISO({includeOffset:!0}))}static fromDateTime(t){return new e(t.toISO({includeOffset:!0}))}static fromParts(t,r,n=0,i=0,o=0,s=0,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 S=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${b+s.toString()}`;l!==0&&(S+="."+l.toString().padStart(3,"0"));let P=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new e(g+"T"+S+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 R(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 gt=N(()=>{});var gy,wy=N(()=>{gy="20250116"});var Mt,Il=N(()=>{tt();ws();wy();Mt={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(Z8(Mt,globalThis.esriConfig,!0),delete Mt.has),!Mt.assetsPath){{let e="4.32.0";Mt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${gy}/assets`}Mt.defaultAssetsPath=Mt.assetsPath}});function xj(e,t,...r){console[e](`[${t}]`,...r)}function Sj(...e){return K8(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var gM,ot,it=N(()=>{Il();tt();gl();gM={info:0,warn:1,error:2,none:3},ot=class e{constructor(t){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},t.level!=null&&(this.level=t.level),t.writer!=null&&(this.writer=t.writer),this._module=t.module,e._loggers.set(this.module,this);let r=this.module.lastIndexOf(".");r!==-1&&(this._parent=e.getLogger(this.module.slice(0,r)))}get module(){return this._module}get parent(){return this._parent}error(...t){this._log("error","always",...t)}warn(...t){this._log("warn","always",...t)}info(...t){this._log("info","always",...t)}errorOnce(...t){this._log("error","once",...t)}warnOnce(...t){this._log("warn","once",...t)}infoOnce(...t){this._log("info","once",...t)}errorOncePerTick(...t){this._log("error","oncePerTick",...t)}warnOncePerTick(...t){this._log("warn","oncePerTick",...t)}infoOncePerTick(...t){this._log("info","oncePerTick",...t)}get test(){}static get test(){}static getLogger(t){return t=typeof t!="string"?t.declaredClass:t,e._loggers.get(t)||new e({module:t})}_log(t,r,...n){if(this._matchLevel(t)){if(r!=="always"&&!e._throttlingDisabled){let i=Sj(n),o=this._loggedMessages[t].get(i);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=e._tickCounter)return;this._loggedMessages[t].set(i,e._tickCounter),e._scheduleTickCounterIncrement()}for(let i of Mt.log.interceptors)if(i(t,this.module,...n))return;this._inheritedWriter()(t,this.module,...n)}}_parentWithMember(t,r){let n=this;for(;n!=null;){let i=n[t];if(i!=null)return i;n=n.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",xj)}_matchLevel(t){let r=Mt.log.level||"warn";return gM[this._parentWithMember("level",r)]<=gM[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};ot._loggers=new Map,ot._tickCounter=0,ot._tickCounterScheduled=!1,ot._throttlingDisabled=!1});function Ff(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var yy=N(()=>{});function Ej(e){return e==null?e:new Date(e)}function Cj(e){return e==null?e:!!e}function Tj(e){return e==null?e:e.toString()}function ZS(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function Pj(e){return e==null?e:Math.round(parseFloat(e))}function Mj(e){return null}function yM(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 vM(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function vy(e,t){return t!=null&&e&&!(t instanceof e)}function bM(e){return e&&"isCollection"in e}function wM(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function Aj(e,t){if(!t?.constructor||!bM(t.constructor))return jS(e,t)?t:new e(t);let r=wM(e.prototype.itemType),n=wM(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(jS(e,t),t):new e(t):t}function jS(e,t){return!!vM(t)&&($f().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+by(e)+"'"),!0)}function YS(e,t){return t==null?t:bM(e)?Aj(e,t):vy(e,t)?jS(e,t)?t:new e(t):t}function by(e){return e?.prototype?.declaredClass||"unknown"}function Lj(e){switch(e){case Number:return t=>ZS(t);case di:return Pj;case Boolean:return Cj;case String:return Tj;case Date:return Ej;case bg:return Mj;default:return Ff(Ij,e,()=>YS.bind(null,e))}}function ui(e,t){let r=Lj(e);return arguments.length===1?r:r(t)}function Vf(e,t,r){return arguments.length===1?Vf.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function _M(e,t){return arguments.length===1?Vf(r=>ui(e,r)):Vf(r=>ui(e,r),t)}function xM(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>xM(e,t-1,n)):e(r)}function vg(e,t,r){if(arguments.length===2)return o=>vg(e,t,o);if(!r)return r;r=xM(e,t,r);let n=t,i=r;for(;n>0&&Array.isArray(i);)n--,i=i[0];if(i!==void 0)for(let o=0;o<n;o++)r=[r];return r}function SM(e,t,r){return arguments.length===2?vg(n=>ui(e,n),t):vg(n=>ui(e,n),t,r)}function _y(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function xy(e,t){if(arguments.length===2)return xy(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=>!vy(l,g))?l:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),$f().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=>by(g)).join(", ")),$f().error("Accessor#set",`'${l}' is not a valid value for this property, value must be one of ${s}`)):$f().error("Accessor#set",`'${l}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function Ro(e,t){if(arguments.length===2)return Ro(e).call(null,t);let r={},n=[],i=[];for(let a in e.typeMap){let d=e.typeMap[a];r[a]=ui(d),n.push(by(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&&!vy(e.base,a)||a==null)return a;let d=l(a)||e.defaultKeyValue,h=r[d];if(!h)return $f().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(!vy(e.typeMap[d],a))return a;if(typeof e.key=="string"&&!vM(a)){let g={};for(let b in a)b!==e.key&&(g[b]=a[b]);return h(g)}return h(a)}}function EM(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function JS(e){switch(e.type){case"native":return ui(e.value);case"array":return Vf(JS(e.value));case"one-of":return kj(e);default:return null}}function kj(e){let t=null;return(r,n)=>HS(r,e)?r:(t==null&&(t=qS(e)),$f().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function qS(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case di:return"integer";case Date:return"date";case bg:return"null";default:return by(e.value)}case"array":return`array of ${qS(e.value)}`;case"one-of":{let t=e.values.map(r=>qS(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function HS(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case di:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case bg:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!HS(r,t.value));case"one-of":return t.values.some(r=>HS(e,r))}}var $f,Ij,di,bg,Xi=N(()=>{tt();it();yy();$f=()=>ot.getLogger("esri.core.accessorSupport.ensureTypes");Ij=new WeakMap;di=class{},bg=class{}});function Pi(e){return e.__accessor__??null}function TM(e,t){return e?.metadata?.[t]!=null}function Uf(e,t,r){return r?Sy(e,t,{policy:r,path:""}):Sy(e,t,null)}function Sy(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,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]=Je(t[o]),n;let a=n[o],d=t[o];if(a===d)return n;if(Array.isArray(d)||Array.isArray(n))a=a?Array.isArray(a)?n[o]=a.slice():n[o]=[a]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(h=>{a.includes(h)||a.push(h)}));else if(d&&typeof d=="object")if(r){let h=r.path;r.path=s,n[o]=Sy(a,d,r),r.path=h}else n[o]=Sy(a,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function Ey(e){return Array.isArray(e)?e:e.split(".")}function CM(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function Nj(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...CM(r));return t}return CM(e)}function XS(e,t,r,n){let i=Nj(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return ku(o)}return n(e,i[0],r)}var ua=N(()=>{ci();ar()});function PM(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=Pi(t);return TM(n,r)?n.get(r):t[r]}function MM(e,t,r){if(e==null)return e;let n=PM(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:MM(n,t,r+1)}function Nu(e,t,r=0){return typeof t!="string"||t.includes(".")?MM(e,Ey(t),r):PM(t,e)}function vs(e,t){return Nu(e,t)}function QS(e,t){return Nu(t,e)!==void 0}var Ou=N(()=>{ua()});function Ll(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]=Je(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 zf(e,t){let r=Ll(e),n=r[t];return n||(n=r[t]={}),n}function AM(e,t){return Uf(e,t,Rj)}function Rj(e){return Oj.test(e)?"replace":"merge"}var Oj,Wf=N(()=>{ar();ua();Oj=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function Dj(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(qi(n,t)??"").toString())}var Bf,KS=N(()=>{ws();Bf=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&Dj(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var je,_n=N(()=>{ar();it();KS();je=class e extends Bf{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 Je(r)}catch{return"[object]"}}))}}catch(t){throw ot.getLogger("esri.core.Error").error(t),t}return{name:this.name,message:this.message,details:this.details}}static fromJSON(t){return new e(t.name,t.message,t.details)}};je.prototype.type="error"});function Gf(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Gf(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Gf(vs(e,i),o,r)}let n=e.__accessor__;n!=null&&Fj(t,n),e[t]=r}}function Fj(e,t){if(de("esri-unknown-property-errors")&&!$j(e,t))throw new je("set:unknown-property",Vj(e,t))}function $j(e,t){return t.metadata[e]!=null}function Vj(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var e4=N(()=>{_n();tt();it();Ou()});function V(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let n=Object.getOwnPropertyDescriptor(t,r),i=zf(t,r);n&&(n.get||n.set?(i.get=n.get||i.get,i.set=n.set||i.set):"value"in n&&("value"in e&&ot.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),i.value=e.value=n.value)),e.readOnly!=null&&(i.readOnly=e.readOnly);let o=e.aliasOf;if(o){let a=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,h;i.dependsOn=[a],i.get=function(){let g=vs(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let b=vs(this,h);b&&(g=g.bind(b))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Gf(this,a,g)})}let s=e.type,l=e.types;if(!i.cast){let a;s?a=Uj(s):l&&(a=Array.isArray(l)?Vf(Ro(l[0])):Ro(l)),e.cast=zj(e.cast,a)}AM(i,e),e.range&&(i.cast=yM(i.cast,e.range))}}function Cy(e,t,r){let n=zf(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 Uj(e){let t=0,r=e;if(EM(e))return JS(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(_y(n))return t===0?xy(n):vg(xy(n),t);if(t===1)return _M(n);if(t>1)return SM(n,t);let i=e;return i.from?i.from:ui(i)}function zj(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var yt=N(()=>{it();Xi();Ou();Wf();e4()});var Ty,t4=N(()=>{Ty=Symbol("Accessor-beforeDestroy")});var dn,_g=N(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(dn||(dn={}))});var vt,Py=N(()=>{(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"})(vt||(vt={}))});var bs,xg=N(()=>{bs=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 Ve(e){Eg.onAccessed(e)}function Do(e,t,r){if(My)return r4(e,t,r);let n=null;return kM(e),n=t.call(r),NM(),n}function LM(e,t){return Do(Iy,e,t)}function r4(e,t,r){let n=My;My=!0,kM(e);let i=null;try{i=t.call(r)}catch(o){Ay&&ot.getLogger("esri.core.accessorSupport.tracking").error(o)}return NM(),My=n,i}function kM(e){Eg=e,Sg.push(e)}function NM(){let e=Sg.length;if(e>1){let t=Sg.pop();Eg=Sg[e-2],t.onTrackingEnd()}else if(e===1){let t=Sg.pop();Eg=Iy,t.onTrackingEnd()}else Eg=Iy}function n4(e,t){if(t.flags&vt.DepTrackingInitialized)return;t.flags|=vt.DepTrackingInitialized;let r=Ay;Ay=!1,t.flags&vt.AutoTracked?r4(t.trackingTarget,t.metadata.get,e):i4(e,t),Ay=r}function i4(e,t){t.flags&vt.ExplicitlyTracking||(t.flags|=vt.ExplicitlyTracking,r4(t.trackingTarget,()=>{let r=t.metadata.dependsOn||Wj;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=Ey(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=IM(s,i[o],o!==i.length-1)}else IM(e,n,!1)}),t.flags&=~vt.ExplicitlyTracking)}function IM(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=Pi(e);if(i){let o=i.propertiesByName.get(n);o&&(Ve(o),n4(e,o))}return r?e[n]:void 0}var Iy,Sg,Eg,My,Ay,Wj,_s=N(()=>{tt();it();ua();Py();xg();Iy=new bs,Sg=[],Eg=Iy;My=!1,Ay=!1;Wj=[]});function OM(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 RM=N(()=>{});var Cg,DM=N(()=>{KS();Cg=class extends Bf{constructor(t,r,n){super(t,r,n)}};Cg.prototype.type="warning"});function Ly(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var o4=N(()=>{});function a4(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||jj(e)&&oa("read.reader",l4(e),t))}function l4(e){let t=e.ndimArray??0;if(t>1)return Gj(e);if(t===1)return FM(e);if("type"in e&&VM(e.type)){let r=e.type.prototype?.itemType?.Type,n=FM(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let l=n(i,o,s);return l&&new e.type(l)}}return c4(e)}function c4(e){return"type"in e?Bj(e.type):qj(e.types)}function Bj(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void s4().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${i}'`);let o=new e;return o.read(t,n),o}:e.fromJSON}function $M(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>$M(e,i,r,n-1)):e(t,void 0,r)}function Gj(e){let t=c4(e),r=$M.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let 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 FM(e){let t=c4(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 VM(e){if(!Ly(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?u4(t.Type):UM(t.Type))}function jj(e){return"types"in e?UM(e.types):u4(e.type)}function u4(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||VM(e))}function UM(e){for(let t in e.typeMap)if(!u4(e.typeMap[t]))return!1;return!0}function qj(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 s4().error(`Expected JSON value of type 'object' to deserialize, but got '${l}'`);t||(t=Hj(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 Cg(`${r}:unsupported`,b,{definition:i,context:s})),void s4().error(b)}let g=new h;return g.read(i,s),n?n(g):g}}function Hj(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=Ll(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 s4,d4=N(()=>{it();ws();DM();Wf();o4();s4=()=>ot.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function GM(e){if(e.json||(e.json={}),WM(e.json),BM(e.json),zM(e.json),e.json.origins)for(let t in e.json.origins)WM(e.json.origins[t]),BM(e.json.origins[t]),zM(e.json.origins[t]);return!0}function zM(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 WM(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 BM(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 jM=N(()=>{});function p4(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&&Ly(e.type))?t.write.writer=Xj:r>1?t.write.writer=Qj(r):t.types?Array.isArray(t.types)?t.write.writer=Yj(t.types[0]):t.write.writer=Zj(t.types):t.write.writer=Tg}function Zj(e){return(t,r,n,i)=>t?qM(t,e,i)?Tg(t,r,n,i):void 0:Tg(t,r,n,i)}function qM(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 je(`${n}:unsupported`,i,{definition:e,context:r})),ot.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function Yj(e){return(t,r,n,i)=>!t||!Array.isArray(t)?Tg(t,r,n,i):Tg(t.filter(o=>qM(o,e,i)),r,n,i)}function Tg(e,t,r,n){oa(r,ky(e,n),t)}function ky(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?Jj(e):e}function Jj(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function Xj(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>ky(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[ky(e,n)],oa(r,i,t)}function HM(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>HM(n,t,r-1)):ky(e,t)}function Qj(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=HM(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]}oa(n,o,r)}}var ZM=N(()=>{_n();it();ws();o4()});function YM(e,t){return m4(e,"any",t?.origin)}function Ny(e,t){return m4(e,"read",t?.origin)}function JM(e,t){return m4(e,"write",t?.origin)}function m4(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 Kj(e){let t=eq(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?tq(n):t;a4(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),p4(i,n)}a4(t,e.json,!0),p4(t,e.json)}function eq(e){return e.json.types?f4(e.json):e.type?XM(e):f4(e)}function tq(e){return e.type?XM(e):f4(e)}function XM(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!_y(r);)r=r[0],t++;return{type:r,ndimArray:t}}function f4(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 QM(e){GM(e)&&(OM(e),Kj(e))}var Oy=N(()=>{Xi();RM();d4();jM();ZM()});function Le(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,nq(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!h4.has(i.initialize)&&(h4.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!g4.has(i.destroy)&&(g4.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);h4.clear(),g4.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[Ty];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__=Ll(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 rq(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;r.mutable&&Ve(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 nq(e){let t=e.prototype,r=Ll(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];QM(o),n[i]={enumerable:!0,configurable:!0,get:rq(i,o),set(s){let l=this.__accessor__;if(l!==void 0){if(l.mutable)return l.initialized&&o.readOnly?KM("read-only",i):l.lifecycle===dn.CONSTRUCTED&&o.constructOnly?KM("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 h4,g4,KM,ft=N(()=>{tt();it();t4();_g();Wf();_s();Oy();h4=new Set,g4=new Set;KM=(e,t)=>{ot.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function iq(e,t,r=!1){let n=`\u{1F6D1} DEPRECATED - ${t}`;if(!r)return void e.warn(n);let i=eA.get(e);i||(i=new Set,eA.set(e,i)),i.has(t)||(i.add(t),e.warn(n))}function tA(e,t,r={}){if(de("esri-deprecation-warnings")){let{moduleName:n}=r;oq(e,`Function: ${(n?n+"::":"")+t+"()"}`,r)}}function oq(e,t,r={}){if(de("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,l=t;n&&(l+=`
|
|
1
|
+
"use strict";(()=>{var Mz=Object.defineProperty;var OT=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var N=(e,t)=>()=>(e&&(t=e(e=0)),t);var RT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qs=(e,t)=>{for(var r in t)Mz(e,r,{get:t[r],enumerable:!0})};function TB(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 PB(e,t,r){let{subscribe:n}=MB(t);return n(i=>{i.some(s=>TB(e,s.target))&&r()})}function MB(e){let t=e.join(","),r=Hx[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(),Hx[t]=void 0)}}}};return Hx[t]=o,o}function AB(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 IB(e,t,r){return AB(e,`[${t}]`)?.getAttribute(t)??r}function Ot(e,t,...r){try{return e?.call(t,...r)}catch(n){console.error(n,e)}}async function Lh(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 OB(e,t,r=""){let n=`${t}/${r}`,i=`${n}${e}.json`;return Zx[i]??(Zx[i]=E8(e,n)),await Zx[i]}async function E8(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===$w?{}:await E8($w,t)}function Yx(e){let t=IB(e,"lang",globalThis.navigator?.language||$w);return{lang:t,t9nLocale:C8(t)}}function C8(e){let[t,r]=e.split("-"),n=t.toLowerCase(),i=n;return r&&(i=`${n}-${r.toUpperCase()}`),i=NB[i]??i,kB.has(i)?i:r?C8(n):$w}function T8(e,t,r,n){let i,o=()=>void RB(e,t,n).then(s=>{(i?.lang!==s.lang||i.t9nLocale!==s.t9nLocale||i.t9nStrings!==s.t9nStrings)&&r(s),i=s}).catch(console.error);return o(),PB(e,["lang"],o)}async function RB(e,t,r=e.tagName.toLowerCase().split("-").slice(1).join("-")){let{lang:n,t9nLocale:i}=Yx(e),o=`${t}/${r}/t9n`,l=r===null?{}:await OB(i,o,"messages.");return{lang:n,t9nLocale:i,t9nStrings:l}}function P8(e,t){let r=t>FB?$B:t/VB,n=0,i=setInterval(()=>{n+=r,n>=t&&(clearInterval(i),e())},r);return i}function M8(e){return e!==void 0}var Co,Hx,LB,kB,$w,NB,Zx,Vw,DB,FB,$B,VB,To=N(()=>{"use strict";Co=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};Hx={};LB=["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"],kB=new Set(LB),$w="en",NB={pt:"pt-PT",nb:"no",zh:"zh-CN"};Zx={};Vw=e=>e.replace(DB,(t,r)=>`${r===0?"":"-"}${t.toLowerCase()}`),DB=/[A-Z]+(?![a-z])|[A-Z]/gu;FB=4e3,$B=2e3,VB=4});function de(e){return typeof fl[e]=="function"?fl[e]=fl[e](globalThis):fl[e]}var fl,tt=N(()=>{fl=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},de.add=(e,t,r,n)=>{(n||fl[e]===void 0)&&(fl[e]=t),r&&de(e)},de.cache=fl,de.add("big-integer-warning-enabled",!0),de.add("esri-deprecation-warnings",!0),de.add("esri-tests-disable-screenshots",!1),de.add("esri-tests-use-full-window",!1),de.add("esri-tests-post-to-influx",!0),de.add("esri-cim-animations-enable-status","enabled"),de.add("esri-cim-animations-spotlight",!1),de.add("esri-cim-animations-freeze-time",!1),de.add("enable-feature:multiple-highlights",!0),(()=>{de.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(de.add("host-browser",e),de.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),de.add("dom",e),de("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(de.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),de.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),de.add("khtml",n.includes("Konqueror")?i:void 0),de.add("edge",parseFloat(r.split("Edge/")[1])||void 0),de.add("opr",parseFloat(r.split("OPR/")[1])||void 0),de.add("webkit",!de("wp")&&!de("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),de.add("chrome",!de("edge")&&!de("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),de.add("android",!de("wp")&&parseFloat(r.split("Android ")[1])||void 0),de.add("safari",!n.includes("Safari")||de("wp")||de("chrome")||de("android")||de("edge")||de("opr")?void 0:parseFloat(n.split("Version/")[1])),de.add("mac",n.includes("Macintosh")),!de("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("_",""));de.add(o,l),de.add("ios",l)}de("webkit")||(!r.includes("Gecko")||de("wp")||de("khtml")||de("edge")||de.add("mozilla",i),de("mozilla")&&de.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&&de.add("esri-mobile",t),r&&de.add("esri-iPhone",r),de.add("esri-geolocation",!!navigator.geolocation)}de.add("esri-wasm","WebAssembly"in globalThis),de.add("esri-performance-mode-frames-between-render",20),de.add("esri-force-performance-mode",!1),de.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),de.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))}),de.add("esri-atomics","Atomics"in globalThis),de.add("esri-workers","Worker"in globalThis),de.add("web-feat:cache","caches"in globalThis),de.add("esri-workers-arraybuffer-transfer",!de("safari")||Number(de("safari"))>=12),de.add("workers-pool-size",8),de.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),de.add("featurelayer-simplify-payload-size-factors",[1,1,4]),de.add("featurelayer-fast-triangulation-enabled",!0),de.add("featurelayer-animation-enabled",!0),de.add("featurelayer-snapshot-enabled",!0),de.add("featurelayer-snapshot-point-min-threshold",8e4),de.add("featurelayer-snapshot-point-max-threshold",4e5),de.add("featurelayer-snapshot-point-coverage",.1),de.add("featurelayer-query-max-depth",4),de.add("featurelayer-query-pausing-enabled",!1),de.add("featurelayer-advanced-symbols",!1),de.add("featurelayer-pbf",!0),de.add("featurelayer-pbf-statistics",!1),de.add("feature-layers-workers",!0),de.add("feature-polyline-generalization-factor",1),de.add("mapview-transitions-duration",200),de.add("mapview-essential-goto-duration",200),de.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),de.add("mapserver-pbf-version-support",10.81),de.add("mapservice-popup-identify-max-tolerance",20),de.add("request-queue-hosted-concurrency",16),de.add("request-queue-non-hosted-concurrency",4),de.add("curve-densification-coarse-segments",128),de.add("curve-densification-max-segments",2e3),de.add("curve-densification-min-segments",3),de.add("curve-densification-pixels-per-segment",16),de("host-webworker")||de("host-browser")&&(de.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),de.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(()=>{de.add("esri-image-decode",!0,!0,!0)}).catch(()=>{de.add("esri-image-decode",!1,!0,!0)})}return!1}),de.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});var Eu,Zr=N(()=>{Eu=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}};Eu._m=2147483647,Eu._a=48271,Eu._c=0});function ml(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 Jx(e,t,r,n){n=n||A8;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 I8(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;Po.clear();for(let l=0;l<n;++l)Po.add(t[l]);i=i||A8;let s=Math.max(0,i.last-10);for(let l=s;l<r;++l)if(Po.has(e[l])&&(o?.push(e[l]),Po.delete(e[l]),e[l]=e[r-1],--r,--l,Po.size===0||r===0))return Po.clear(),r;for(let l=0;l<s;++l)if(Po.has(e[l])&&(o?.push(e[l]),Po.delete(e[l]),e[l]=e[r-1],--r,--l,Po.size===0||r===0))return Po.clear(),r;return Po.clear(),r}function L8(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function k8(e,t){return e!=null}var UB,Vle,kh,A8,Po,Ule,hl=N(()=>{Zr();UB=1.5,Vle=1/UB;kh=class{constructor(){this.last=0}},A8=new kh;Po=new Set;Ule=new Eu});function N8(e){return e?.constructor?.name==="Int8Array"}function O8(e){return e?.constructor?.name==="Uint8Array"}function R8(e){return e?.constructor?.name==="Uint8ClampedArray"}function D8(e){return e?.constructor?.name==="Int16Array"}function F8(e){return e?.constructor?.name==="Uint16Array"}function $8(e){return e?.constructor?.name==="Int32Array"}function V8(e){return e?.constructor?.name==="Uint32Array"}function U8(e){return e?.constructor?.name==="Float32Array"}function z8(e){return e?.constructor?.name==="Float64Array"}var W8=N(()=>{tt()});function Ww(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&Ww(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function Je(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=H8(e);if(t!=null)return t;if(G8(e))return e.clone();if(j8(e))return e.map(Je);if(q8(e))throw new Error("Trying to clone an unclonable Accessor instance");let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=Je(e[n]);return r}function zw(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=H8(e);if(t!=null)return t;if(j8(e)){let n=!0,i=e.map(o=>{let s=zw(o);return o!=null&&s==null&&(n=!1),s});return n?i:null}if(G8(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(q8(e))return null;let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=zw(i);if(i!=null&&o==null)return null;r[n]=o}return r}function G8(e){return typeof e.clone=="function"}function j8(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function q8(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function B8(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function H8(e){if(N8(e)||O8(e)||R8(e)||D8(e)||F8(e)||$8(e)||V8(e)||U8(e)||z8(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,Je(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(Je(r));return t}return null}function Nh(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 Bw(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)&&ml(e,t):e instanceof Set?t instanceof Set&&WB(e,t):e instanceof Map?t instanceof Map&&BB(e,t):!!B8(e)&&B8(t)&&zB(e,t))}function zB(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 WB(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function BB(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 ar=N(()=>{hl();W8()});function Z8(e,t,r=!1){return J8(e,t,r)}function qi(e,t){if(t!=null)return t[e]||Y8(e.split("."),!1,t)}function oa(e,t,r){let n=e.split("."),i=n.pop(),o=Y8(n,!0,r);o&&i&&(o[i]=t)}function Y8(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 J8(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]=Je(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]=J8(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var ws=N(()=>{ar()});function X8(e){return e??""}function ys(e,t){return t?e.replaceAll(GB,typeof t=="object"?(r,n)=>X8(qi(n,t)):(r,n)=>X8(t(n))):e}function Q8(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function K8(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var GB,gl=N(()=>{ws();GB=/\{([^}]+)\}/g});var sa,Gw,jw,qw,Mo,gf,_r,Ao,wl=N(()=>{sa=class extends Error{},Gw=class extends sa{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},jw=class extends sa{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},qw=class extends sa{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Mo=class extends sa{},gf=class extends sa{constructor(t){super(`Invalid unit ${t}`)}},_r=class extends sa{},Ao=class extends sa{constructor(){super("Zone is an abstract class")}}});var ke,Io,Ci,yl,Oh,Xx,Rh,Dh,Fh,$h,Vh,Uh,zh,Wh,Bh,Gh,jh,qh,Hh,Zh,Qx,Yh,Jh,Xh,Qh,Kh=N(()=>{ke="numeric",Io="short",Ci="long",yl={year:ke,month:ke,day:ke},Oh={year:ke,month:Io,day:ke},Xx={year:ke,month:Io,day:ke,weekday:Io},Rh={year:ke,month:Ci,day:ke},Dh={year:ke,month:Ci,day:ke,weekday:Ci},Fh={hour:ke,minute:ke},$h={hour:ke,minute:ke,second:ke},Vh={hour:ke,minute:ke,second:ke,timeZoneName:Io},Uh={hour:ke,minute:ke,second:ke,timeZoneName:Ci},zh={hour:ke,minute:ke,hourCycle:"h23"},Wh={hour:ke,minute:ke,second:ke,hourCycle:"h23"},Bh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Io},Gh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Ci},jh={year:ke,month:ke,day:ke,hour:ke,minute:ke},qh={year:ke,month:ke,day:ke,hour:ke,minute:ke,second:ke},Hh={year:ke,month:Io,day:ke,hour:ke,minute:ke},Zh={year:ke,month:Io,day:ke,hour:ke,minute:ke,second:ke},Qx={year:ke,month:Io,day:ke,weekday:Io,hour:ke,minute:ke},Yh={year:ke,month:Ci,day:ke,hour:ke,minute:ke,timeZoneName:Io},Jh={year:ke,month:Ci,day:ke,hour:ke,minute:ke,second:ke,timeZoneName:Io},Xh={year:ke,month:Ci,day:ke,weekday:Ci,hour:ke,minute:ke,timeZoneName:Ci},Qh={year:ke,month:Ci,day:ke,weekday:Ci,hour:ke,minute:ke,second:ke,timeZoneName:Ci}});var Nr,Cu=N(()=>{wl();Nr=class{get type(){throw new Ao}get name(){throw new Ao}get ianaName(){return this.name}get isUniversal(){throw new Ao}offsetName(t,r){throw new Ao}formatOffset(t,r){throw new Ao}offset(t){throw new Ao}equals(t){throw new Ao}get isValid(){throw new Ao}}});var Kx,vl,Zw=N(()=>{Zn();Cu();Kx=null,vl=class e extends Nr{static get instance(){return Kx===null&&(Kx=new e),Kx}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return Yw(t,r,n)}formatOffset(t,r){return bl(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function jB(e){return Xw[e]||(Xw[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"})),Xw[e]}function HB(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 ZB(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],l=qB[o];o==="era"?n[l]=s:He(l)||(n[l]=parseInt(s,10))}return n}var Xw,qB,Jw,or,_l=N(()=>{Zn();Cu();Xw={};qB={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};Jw={},or=class e extends Nr{static create(t){return Jw[t]||(Jw[t]=new e(t)),Jw[t]}static resetCache(){Jw={},Xw={}}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 Yw(t,r,n,this.name)}formatOffset(t,r){return bl(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=jB(this.name),[i,o,s,l,a,d,h]=n.formatToParts?ZB(n,r):HB(n,r);l==="BC"&&(i=-Math.abs(i)+1);let b=wf({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),S=+r,P=S%1e3;return S-=P>=0?P:1e3+P,(b-S)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function YB(e,t={}){let r=JSON.stringify([e,t]),n=eP[r];return n||(n=new Intl.ListFormat(e,t),eP[r]=n),n}function tS(e,t={}){let r=JSON.stringify([e,t]),n=eS[r];return n||(n=new Intl.DateTimeFormat(e,t),eS[r]=n),n}function JB(e,t={}){let r=JSON.stringify([e,t]),n=rS[r];return n||(n=new Intl.NumberFormat(e,t),rS[r]=n),n}function XB(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=nS[i];return o||(o=new Intl.RelativeTimeFormat(e,t),nS[i]=o),o}function QB(){return eg||(eg=new Intl.DateTimeFormat().resolvedOptions().locale,eg)}function KB(e){let t=tP[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,tP[e]=t}return t}function eG(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=tS(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=tS(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function tG(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function rG(e){let t=[];for(let r=1;r<=12;r++){let n=Ce.utc(2009,r,1);t.push(e(n))}return t}function nG(e){let t=[];for(let r=1;r<=7;r++){let n=Ce.utc(2016,11,13+r);t.push(e(n))}return t}function Qw(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function iG(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 eP,eS,rS,nS,eg,tP,iS,oS,sS,oG,St,rg=N(()=>{Zn();ty();xl();Sl();_l();eP={};eS={};rS={};nS={};eg=null;tP={};iS=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=JB(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):yf(t,3);return gr(r,this.padTo)}}},oS=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&&or.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=tS(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()}},sS=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&Kw()&&(this.rtf=XB(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):rP(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},oG={firstDay:1,minimalDays:4,weekend:[6,7]},St=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,i,o=!1){let s=t||xt.defaultLocale,l=s||(o?"en-US":QB()),a=r||xt.defaultNumberingSystem,d=n||xt.defaultOutputCalendar,h=tg(i)||xt.defaultWeekSettings;return new e(l,a,d,h,s)}static resetCache(){eg=null,eS={},rS={},nS={}}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]=eG(t);this.locale=s,this.numberingSystem=r||l||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=tG(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=iG(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,tg(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 Qw(this,t,aS,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=rG(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return Qw(this,t,lS,()=>{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]=nG(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return Qw(this,void 0,()=>cS,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ce.utc(2016,11,13,9),Ce.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Qw(this,t,uS,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ce.utc(-40,1,1),Ce.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){let i=this.dtFormatter(t,r),o=i.formatToParts(),s=o.find(l=>l.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new iS(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new oS(t,this.intl,r)}relFormatter(t={}){return new sS(this.intl,this.isEnglish(),t)}listFormatter(t={}){return YB(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:ey()?KB(this.locale):oG}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 pS,Rt,vf=N(()=>{Zn();Cu();pS=null,Rt=class e extends Nr{static get utcInstance(){return pS===null&&(pS=new e(0)),pS}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(Tu(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${bl(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${bl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return bl(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 bf,fS=N(()=>{Cu();bf=class extends Nr{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 Lo(e,t){let r;if(He(e)||e===null)return t;if(e instanceof Nr)return e;if(nP(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?vl.instance:n==="utc"||n==="gmt"?Rt.utcInstance:Rt.parseSpecifier(n)||or.create(e)}else return ko(e)?Rt.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new bf(e)}var ry=N(()=>{Cu();_l();vf();fS();Zn();Zw()});function oP(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(mS.hanidec)!==-1)t+=sG.indexOf(e[r]);else for(let i in iP){let[o,s]=iP[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function sP(){_f={}}function Hi({numberingSystem:e},t=""){let r=e||"latn";return _f[r]||(_f[r]={}),_f[r][t]||(_f[r][t]=new RegExp(`${mS[r]}${t}`)),_f[r][t]}var mS,iP,sG,_f,hS=N(()=>{mS={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"},iP={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]},sG=mS.hanidec.replace(/[\[|\]]/g,"").split("");_f={}});var aP,lP,cP,uP,dP,pP,fP,mP,xt,xl=N(()=>{Zw();_l();rg();Sl();ry();Zn();hS();aP=()=>Date.now(),lP="system",cP=null,uP=null,dP=null,pP=60,mP=null,xt=class{static get now(){return aP}static set now(t){aP=t}static set defaultZone(t){lP=t}static get defaultZone(){return Lo(lP,vl.instance)}static get defaultLocale(){return cP}static set defaultLocale(t){cP=t}static get defaultNumberingSystem(){return uP}static set defaultNumberingSystem(t){uP=t}static get defaultOutputCalendar(){return dP}static set defaultOutputCalendar(t){dP=t}static get defaultWeekSettings(){return mP}static set defaultWeekSettings(t){mP=tg(t)}static get twoDigitCutoffYear(){return pP}static set twoDigitCutoffYear(t){pP=t%100}static get throwOnInvalid(){return fP}static set throwOnInvalid(t){fP=t}static resetCaches(){St.resetCache(),or.resetCache(),Ce.resetCache(),sP()}}});var ln,ng=N(()=>{ln=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Zi(e,t){return new ln("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function ny(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 wP(e,t,r){return r+(Mu(e)?gP:hP)[t-1]}function yP(e,t){let r=Mu(e)?gP:hP,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function iy(e,t){return(e-t+7)%7+1}function ig(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=wP(n,i,o),l=iy(ny(n,i,o),r),a=Math.floor((s-l+14-t)/7),d;return a<1?(d=n-1,a=Pu(d,t,r)):a>Pu(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:l,...sg(e)}}function gS(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=iy(ny(n,1,t),r),l=El(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=El(d)):a>l?(d=n+1,a-=El(n)):d=n;let{month:h,day:g}=yP(d,a);return{year:d,month:h,day:g,...sg(e)}}function oy(e){let{year:t,month:r,day:n}=e,i=wP(t,r,n);return{year:t,ordinal:i,...sg(e)}}function wS(e){let{year:t,ordinal:r}=e,{month:n,day:i}=yP(t,r);return{year:t,month:n,day:i,...sg(e)}}function yS(e,t){if(!He(e.localWeekday)||!He(e.localWeekNumber)||!He(e.localWeekYear)){if(!He(e.weekday)||!He(e.weekNumber)||!He(e.weekYear))throw new Mo("Cannot mix locale-based week fields with ISO-based week fields");return He(e.localWeekday)||(e.weekday=e.localWeekday),He(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),He(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 vP(e,t=4,r=1){let n=og(e.weekYear),i=Ti(e.weekNumber,1,Pu(e.weekYear,t,r)),o=Ti(e.weekday,1,7);return n?i?o?!1:Zi("weekday",e.weekday):Zi("week",e.weekNumber):Zi("weekYear",e.weekYear)}function bP(e){let t=og(e.year),r=Ti(e.ordinal,1,El(e.year));return t?r?!1:Zi("ordinal",e.ordinal):Zi("year",e.year)}function vS(e){let t=og(e.year),r=Ti(e.month,1,12),n=Ti(e.day,1,xf(e.year,e.month));return t?r?n?!1:Zi("day",e.day):Zi("month",e.month):Zi("year",e.year)}function bS(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=Ti(t,0,23)||t===24&&r===0&&n===0&&i===0,s=Ti(r,0,59),l=Ti(n,0,59),a=Ti(i,0,999);return o?s?l?a?!1:Zi("millisecond",i):Zi("second",n):Zi("minute",r):Zi("hour",t)}var hP,gP,_S=N(()=>{Zn();ng();wl();hP=[0,31,59,90,120,151,181,212,243,273,304,334],gP=[0,31,60,91,121,152,182,213,244,274,305,335]});function He(e){return typeof e>"u"}function ko(e){return typeof e=="number"}function og(e){return typeof e=="number"&&e%1===0}function nP(e){return typeof e=="string"}function xP(e){return Object.prototype.toString.call(e)==="[object Date]"}function Kw(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function ey(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function SP(e){return Array.isArray(e)?e:[e]}function xS(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 EP(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function Cl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function tg(e){if(e==null)return null;if(typeof e!="object")throw new _r("Week settings must be an object");if(!Ti(e.firstDay,1,7)||!Ti(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Ti(t,1,7)))throw new _r("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ti(e,t,r){return og(e)&&e>=t&&e<=r}function aG(e,t){return e-t*Math.floor(e/t)}function gr(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function aa(e){if(!(He(e)||e===null||e===""))return parseInt(e,10)}function Tl(e){if(!(He(e)||e===null||e===""))return parseFloat(e)}function ag(e){if(!(He(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function yf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Mu(e){return e%4===0&&(e%100!==0||e%400===0)}function El(e){return Mu(e)?366:365}function xf(e,t){let r=aG(t-1,12)+1,n=e+(t-r)/12;return r===2?Mu(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function wf(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 _P(e,t,r){return-iy(ny(e,1,t),r)+t-1}function Pu(e,t=4,r=1){let n=_P(e,t,r),i=_P(e+1,t,r);return(El(e)-n+i)/7}function lg(e){return e>99?e:e>xt.twoDigitCutoffYear?1900+e:2e3+e}function Yw(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 Tu(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 SS(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new _r(`Invalid unit value ${e}`);return t}function Sf(e,t){let r={};for(let n in e)if(Cl(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=SS(i)}return r}function bl(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}${gr(r,2)}:${gr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${gr(r,2)}${gr(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function sg(e){return EP(e,["hour","minute","second","millisecond"])}var Zn=N(()=>{wl();xl();_S()});function aS(e){switch(e){case"narrow":return[...cG];case"short":return[...ES];case"long":return[...lG];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 lS(e){switch(e){case"narrow":return[...uG];case"short":return[...TS];case"long":return[...CS];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function uS(e){switch(e){case"narrow":return[...fG];case"short":return[...pG];case"long":return[...dG];default:return null}}function CP(e){return cS[e.hour<12?0:1]}function TP(e,t){return lS(t)[e.weekday-1]}function PP(e,t){return aS(t)[e.month-1]}function MP(e,t){return uS(t)[e.year<0?0:1]}function rP(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 lG,ES,cG,CS,TS,uG,cS,dG,pG,fG,ty=N(()=>{Kh();Zn();lG=["January","February","March","April","May","June","July","August","September","October","November","December"],ES=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],cG=["J","F","M","A","M","J","J","A","S","O","N","D"];CS=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],TS=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],uG=["M","T","W","T","F","S","S"];cS=["AM","PM"],dG=["Before Christ","Anno Domini"],pG=["BC","AD"],fG=["B","A"]});function AP(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var mG,cn,cg=N(()=>{ty();Kh();Zn();mG={D:yl,DD:Oh,DDD:Rh,DDDD:Dh,t:Fh,tt:$h,ttt:Vh,tttt:Uh,T:zh,TT:Wh,TTT:Bh,TTTT:Gh,f:jh,ff:Hh,fff:Yh,ffff:Xh,F:qh,FF:Zh,FFF:Jh,FFFF:Qh},cn=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 mG[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 gr(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=(S,P)=>this.loc.extract(t,S,P),s=S=>t.isOffsetFixed&&t.offset===0&&S.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,S.format):"",l=()=>n?CP(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(S,P)=>n?PP(t,S):o(P?{month:S}:{month:S,day:"numeric"},"month"),d=(S,P)=>n?TP(t,S):o(P?{weekday:S}:{weekday:S,month:"long",day:"numeric"},"weekday"),h=S=>{let P=e.macroTokenToFormatOpts(S);return P?this.formatWithSystemDefault(t,P):S},g=S=>n?MP(t,S):o({era:S},"era"),b=S=>{switch(S){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(S)}};return AP(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 AP(o,i(l))}}});function Cf(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function Tf(...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 Pf(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 kP(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=aa(t[r+i]);return[n,null,r+i]}}function Ef(e,t,r){let n=e[t];return He(n)?r:aa(n)}function SG(e,t){return[{year:Ef(e,t),month:Ef(e,t+1,1),day:Ef(e,t+2,1)},null,t+3]}function Mf(e,t){return[{hours:Ef(e,t,0),minutes:Ef(e,t+1,0),seconds:Ef(e,t+2,0),milliseconds:ag(e[t+3])},null,t+4]}function ug(e,t){let r=!e[t]&&!e[t+1],n=Tu(e[t+1],e[t+2]),i=r?null:Rt.instance(n);return[{},i,t+3]}function dg(e,t){let r=e[t]?or.create(e[t]):null;return[{},r,t+1]}function TG(e){let[t,r,n,i,o,s,l,a,d]=e,h=t[0]==="-",g=a&&a[0]==="-",b=(S,P=!1)=>S!==void 0&&(P||S&&h)?-S:S;return[{years:b(Tl(r)),months:b(Tl(n)),weeks:b(Tl(i)),days:b(Tl(o)),hours:b(Tl(s)),minutes:b(Tl(l)),seconds:b(Tl(a),a==="-0"),milliseconds:b(ag(d),g)}]}function AS(e,t,r,n,i,o,s){let l={year:t.length===2?lg(aa(t)):aa(t),month:ES.indexOf(r)+1,day:aa(n),hour:aa(i),minute:aa(o)};return s&&(l.second=aa(s)),e&&(l.weekday=e.length>3?CS.indexOf(e)+1:TS.indexOf(e)+1),l}function AG(e){let[,t,r,n,i,o,s,l,a,d,h,g]=e,b=AS(t,i,n,r,o,s,l),S;return a?S=PG[a]:d?S=0:S=Tu(h,g),[b,new Rt(S)]}function IG(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function IP(e){let[,t,r,n,i,o,s,l]=e;return[AS(t,i,n,r,o,s,l),Rt.utcInstance]}function OG(e){let[,t,r,n,i,o,s,l]=e;return[AS(t,l,r,n,i,o,s),Rt.utcInstance]}function FP(e){return Pf(e,[RG,DP],[DG,VG],[FG,UG],[$G,zG])}function $P(e){return Pf(IG(e),[MG,AG])}function VP(e){return Pf(e,[LG,IP],[kG,IP],[NG,OG])}function UP(e){return Pf(e,[CG,TG])}function zP(e){return Pf(e,[EG,WG])}function WP(e){return Pf(e,[BG,DP],[GG,jG])}var LP,NP,hG,PS,OP,MS,gG,wG,yG,vG,bG,_G,RP,xG,EG,CG,PG,MG,LG,kG,NG,RG,DG,FG,$G,DP,VG,UG,zG,WG,BG,GG,jG,IS=N(()=>{Zn();ty();vf();_l();LP=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;NP=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,hG=`(?:${NP.source}?(?:\\[(${LP.source})\\])?)?`,PS=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,OP=RegExp(`${PS.source}${hG}`),MS=RegExp(`(?:T${OP.source})?`),gG=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wG=/(\d{4})-?W(\d\d)(?:-?(\d))?/,yG=/(\d{4})-?(\d{3})/,vG=kP("weekYear","weekNumber","weekDay"),bG=kP("year","ordinal"),_G=/(\d{4})-(\d\d)-(\d\d)/,RP=RegExp(`${PS.source} ?(?:${NP.source}|(${LP.source}))?`),xG=RegExp(`(?: ${RP.source})?`);EG=RegExp(`^T?${PS.source}$`),CG=/^-?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)?)?)$/;PG={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};MG=/^(?:(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)))$/;LG=/^(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$/,kG=/^(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$/,NG=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;RG=Cf(gG,MS),DG=Cf(wG,MS),FG=Cf(yG,MS),$G=Cf(OP),DP=Tf(SG,Mf,ug,dg),VG=Tf(vG,Mf,ug,dg),UG=Tf(bG,Mf,ug,dg),zG=Tf(Mf,ug,dg);WG=Tf(Mf);BG=Cf(_G,xG),GG=Cf(RP),jG=Tf(Mf,ug,dg)});function Pl(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 wr(n)}function qP(e,t){let r=t.milliseconds??0;for(let n of ZG.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function GP(e,t){let r=qP(e,t)<0?-1:1;Au.reduceRight((n,i)=>{if(He(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),Au.reduce((n,i)=>{if(He(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function YG(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var BP,jP,qG,Yi,Af,HG,Au,ZG,wr,pg=N(()=>{wl();cg();ng();rg();IS();Zn();xl();Sl();BP="Invalid Duration",jP={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}},qG={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},...jP},Yi=146097/400,Af=146097/4800,HG={years:{quarters:4,months:12,weeks:Yi/7,days:Yi,hours:Yi*24,minutes:Yi*24*60,seconds:Yi*24*60*60,milliseconds:Yi*24*60*60*1e3},quarters:{months:3,weeks:Yi/28,days:Yi/4,hours:Yi*24/4,minutes:Yi*24*60/4,seconds:Yi*24*60*60/4,milliseconds:Yi*24*60*60*1e3/4},months:{weeks:Af/7,days:Af,hours:Af*24,minutes:Af*24*60,seconds:Af*24*60*60,milliseconds:Af*24*60*60*1e3},...jP},Au=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ZG=Au.slice(0).reverse();wr=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?HG:qG;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||St.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return e.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new _r(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Sf(t,e.normalizeUnit),loc:St.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(ko(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new _r(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=UP(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]=zP(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 _r("need to specify a reason the Duration is invalid");let n=t instanceof ln?t:new ln(t,r);if(xt.throwOnInvalid)throw new qw(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 gf(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?cn.create(this.loc,n).formatDurationFromString(this,t):BP}toHuman(t={}){if(!this.isValid)return BP;let r=Au.map(n=>{let i=this.values[n];return He(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+=yf(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ce.fromMillis(r,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?qP(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 Au)(Cl(r.values,i)||Cl(this.values,i))&&(n[i]=r.get(i)+this.get(i));return Pl(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]=SS(t(this.values[n],n));return Pl(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...Sf(t,e.normalizeUnit)};return Pl(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 Pl(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return GP(this.matrix,t),Pl(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=YG(this.normalize().shiftToAll().toObject());return Pl(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 Au)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;ko(i[s])&&(l+=i[s]);let a=Math.trunc(l);r[s]=a,n[s]=(l*1e3-a*1e3)/1e3}else ko(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 GP(this.matrix,r),Pl(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 Pl(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 Au)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function JG(e,t){return!e||!e.isValid?la.invalid("missing or invalid start"):!t||!t.isValid?la.invalid("missing or invalid end"):t<e?la.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 If,la,LS=N(()=>{Sl();pg();xl();wl();ng();cg();Kh();If="Invalid Interval";la=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 _r("need to specify a reason the Interval is invalid");let n=t instanceof ln?t:new ln(t,r);if(xt.throwOnInvalid)throw new jw(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=Lf(t),i=Lf(r),o=JG(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=wr.fromDurationLike(r),i=Lf(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=wr.fromDurationLike(r),i=Lf(t);return e.fromDateTimes(i.minus(n),i)}static fromISO(t,r){let[n,i]=(t||"").split("/",2);if(n&&i){let o,s;try{o=Ce.fromISO(n,r),s=o.isValid}catch{s=!1}let l,a;try{l=Ce.fromISO(i,r),a=l.isValid}catch{a=!1}if(s&&a)return e.fromDateTimes(o,l);if(s){let d=wr.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=wr.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(Lf).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=wr.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()})`:If}[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=yl,r={}){return this.isValid?cn.create(this.s.loc.clone(r),t).formatInterval(this):If}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:If}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:If}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:If}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:If}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):wr.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var ca,kS=N(()=>{Sl();xl();rg();_l();ry();Zn();ca=class{static hasDST(t=xt.defaultZone){let r=Ce.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return or.isValidZone(t)}static normalizeZone(t){return Lo(t,xt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||St.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||St.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||St.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||St.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return St.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return St.create(r,null,"gregory").eras(t)}static features(){return{relative:Kw(),localeWeek:ey()}}}});function HP(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(wr.fromMillis(n).as("days"))}function XG(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=HP(a,d);return(h-h%7)/7}],["days",HP]],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 ZP(e,t,r,n){let[i,o,s,l]=XG(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=wr.fromObject(o,n);return d.length>0?wr.fromMillis(a,n).shiftTo(...d).plus(h):h}var YP=N(()=>{pg()});function Tt(e,t=r=>r){return{regex:e,deser:([r])=>t(oP(r))}}function ej(e){return e.replace(/\./g,"\\.?").replace(KP,QP)}function JP(e){return e.replace(/\./g,"").replace(KP," ").toLowerCase()}function No(e,t){return e===null?null:{regex:RegExp(e.map(ej).join("|")),deser:([r])=>e.findIndex(n=>JP(r)===JP(n))+t}}function XP(e,t){return{regex:e,deser:([,r,n])=>Tu(r,n),groups:t}}function sy(e){return{regex:e,deser:([t])=>t}}function tj(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function rj(e,t){let r=Hi(t),n=Hi(t,"{2}"),i=Hi(t,"{3}"),o=Hi(t,"{4}"),s=Hi(t,"{6}"),l=Hi(t,"{1,2}"),a=Hi(t,"{1,3}"),d=Hi(t,"{1,6}"),h=Hi(t,"{1,9}"),g=Hi(t,"{2,4}"),b=Hi(t,"{4,6}"),S=F=>({regex:RegExp(tj(F.val)),deser:([W])=>W,literal:!0}),A=(F=>{if(e.literal)return S(F);switch(F.val){case"G":return No(t.eras("short"),0);case"GG":return No(t.eras("long"),0);case"y":return Tt(d);case"yy":return Tt(g,lg);case"yyyy":return Tt(o);case"yyyyy":return Tt(b);case"yyyyyy":return Tt(s);case"M":return Tt(l);case"MM":return Tt(n);case"MMM":return No(t.months("short",!0),1);case"MMMM":return No(t.months("long",!0),1);case"L":return Tt(l);case"LL":return Tt(n);case"LLL":return No(t.months("short",!1),1);case"LLLL":return No(t.months("long",!1),1);case"d":return Tt(l);case"dd":return Tt(n);case"o":return Tt(a);case"ooo":return Tt(i);case"HH":return Tt(n);case"H":return Tt(l);case"hh":return Tt(n);case"h":return Tt(l);case"mm":return Tt(n);case"m":return Tt(l);case"q":return Tt(l);case"qq":return Tt(n);case"s":return Tt(l);case"ss":return Tt(n);case"S":return Tt(a);case"SSS":return Tt(i);case"u":return sy(h);case"uu":return sy(l);case"uuu":return Tt(r);case"a":return No(t.meridiems(),0);case"kkkk":return Tt(o);case"kk":return Tt(g,lg);case"W":return Tt(l);case"WW":return Tt(n);case"E":case"c":return Tt(r);case"EEE":return No(t.weekdays("short",!1),1);case"EEEE":return No(t.weekdays("long",!1),1);case"ccc":return No(t.weekdays("short",!0),1);case"cccc":return No(t.weekdays("long",!0),1);case"Z":case"ZZ":return XP(new RegExp(`([+-]${l.source})(?::(${n.source}))?`),2);case"ZZZ":return XP(new RegExp(`([+-]${l.source})(${n.source})?`),2);case"z":return sy(/[a-z_+-/]{1,256}?/i);case" ":return sy(/[^\S\n\r]/);default:return S(F)}})(e)||{invalidReason:QG};return A.token=e,A}function ij(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=nj[s];if(typeof l=="object"&&(l=l[o]),l)return{literal:!1,val:l}}function oj(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function sj(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(Cl(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 aj(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 He(e.z)||(r=or.create(e.z)),He(e.Z)||(r||(r=new Rt(e.Z)),n=e.Z),He(e.q)||(e.M=(e.q-1)*3+1),He(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),He(e.u)||(e.S=ag(e.u)),[Object.keys(e).reduce((o,s)=>{let l=t(s);return l&&(o[l]=e[s]),o},{}),r,n]}function lj(){return NS||(NS=Ce.fromMillis(1555555555555)),NS}function cj(e,t){if(e.literal)return e;let r=cn.macroTokenToFormatOpts(e.val),n=DS(r,t);return n==null||n.includes(void 0)?e:n}function OS(e,t){return Array.prototype.concat(...e.map(r=>cj(r,t)))}function RS(e,t,r){return new fg(e,r).explainFromTokens(t)}function eM(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=RS(e,t,r);return[n,i,o,s]}function DS(e,t){if(!e)return null;let n=cn.create(t,e).dtFormatter(lj()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>ij(s,e,o))}var QG,KG,QP,KP,nj,NS,fg,tM=N(()=>{Zn();cg();vf();_l();Sl();hS();wl();QG="missing Intl.DateTimeFormat.formatToParts support";KG="\xA0",QP=`[ ${KG}]`,KP=new RegExp(QP,"g");nj={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"}};NS=null;fg=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=OS(cn.parseFormat(r),t),this.units=this.tokens.map(n=>rj(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=oj(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=sj(t,this.regex,this.handlers),[i,o,s]=n?aj(n):[null,null,void 0];if(Cl(n,"a")&&Cl(n,"H"))throw new Mo("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 mg(e){return new ln("unsupported zone",`the zone "${e.name}" is not supported`)}function $S(e){return e.weekData===null&&(e.weekData=ig(e.c)),e.weekData}function VS(e){return e.localWeekData===null&&(e.localWeekData=ig(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Iu(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ce({...r,...t,old:r})}function cM(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 ay(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 cy(e,t,r){return cM(wf(e),t,r)}function nM(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,xf(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=wr.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=wf(o),[a,d]=cM(l,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function kf(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=Ce.fromObject(e,{...r,zone:a,specificOffset:o});return s?d:d.setZone(l)}else return Ce.invalid(new ln("unparsable",`the input "${i}" can't be parsed as ${n}`))}function ly(e,t,r=!0){return e.isValid?cn.create(St.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function US(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=gr(e.c.year,r?6:4),t?(n+="-",n+=gr(e.c.month),n+="-",n+=gr(e.c.day)):(n+=gr(e.c.month),n+=gr(e.c.day)),n}function iM(e,t,r,n,i,o){let s=gr(e.c.hour);return t?(s+=":",s+=gr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=gr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=gr(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=gr(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=gr(Math.trunc(-e.o/60)),s+=":",s+=gr(Math.trunc(-e.o%60))):(s+="+",s+=gr(Math.trunc(e.o/60)),s+=":",s+=gr(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function mj(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 gf(e);return t}function oM(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return mj(e)}}function hj(e){return dy[e]||(uy===void 0&&(uy=xt.now()),dy[e]=e.offset(uy)),dy[e]}function sM(e,t){let r=Lo(t.zone,xt.defaultZone);if(!r.isValid)return Ce.invalid(mg(r));let n=St.fromObject(t),i,o;if(He(e.year))i=xt.now();else{for(let a of dM)He(e[a])&&(e[a]=uM[a]);let s=vS(e)||bS(e);if(s)return Ce.invalid(s);let l=hj(r);[i,o]=cy(e,l,r)}return new Ce({ts:i,zone:r,loc:n,o})}function aM(e,t,r){let n=He(r.round)?!0:r.round,i=(s,l)=>(s=yf(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 lM(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 Lf(e){if(Ce.isDateTime(e))return e;if(e&&e.valueOf&&ko(e.valueOf()))return Ce.fromJSDate(e);if(e&&typeof e=="object")return Ce.fromObject(e);throw new _r(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var FS,rM,uM,uj,dj,dM,pj,fj,uy,dy,Ce,Sl=N(()=>{pg();LS();xl();kS();cg();vf();rg();Zn();ry();YP();IS();tM();_S();Kh();wl();ng();FS="Invalid DateTime",rM=864e13;uM={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},uj={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},dj={ordinal:1,hour:0,minute:0,second:0,millisecond:0},dM=["year","month","day","hour","minute","second","millisecond"],pj=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],fj=["year","ordinal","hour","minute","second","millisecond"];dy={},Ce=class e{constructor(t){let r=t.zone||xt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new ln("invalid input"):null)||(r.isValid?null:mg(r));this.ts=He(t.ts)?xt.now():t.ts;let i=null,o=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[i,o]=[t.old.c,t.old.o];else{let l=ko(t.o)&&!t.old?t.o:r.offset(this.ts);i=ay(this.ts,l),n=Number.isNaN(i.year)?new ln("invalid input"):null,i=n?null:i,o=n?null:l}this._zone=r,this.loc=t.loc||St.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,r]=lM(arguments),[n,i,o,s,l,a,d]=r;return sM({year:n,month:i,day:o,hour:s,minute:l,second:a,millisecond:d},t)}static utc(){let[t,r]=lM(arguments),[n,i,o,s,l,a,d]=r;return t.zone=Rt.utcInstance,sM({year:n,month:i,day:o,hour:s,minute:l,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=xP(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=Lo(r.zone,xt.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:St.fromObject(r)}):e.invalid(mg(i))}static fromMillis(t,r={}){if(ko(t))return t<-rM||t>rM?e.invalid("Timestamp out of range"):new e({ts:t,zone:Lo(r.zone,xt.defaultZone),loc:St.fromObject(r)});throw new _r(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(ko(t))return new e({ts:t*1e3,zone:Lo(r.zone,xt.defaultZone),loc:St.fromObject(r)});throw new _r("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=Lo(r.zone,xt.defaultZone);if(!n.isValid)return e.invalid(mg(n));let i=St.fromObject(r),o=Sf(t,oM),{minDaysInFirstWeek:s,startOfWeek:l}=yS(o,i),a=xt.now(),d=He(r.specificOffset)?n.offset(a):r.specificOffset,h=!He(o.ordinal),g=!He(o.year),b=!He(o.month)||!He(o.day),S=g||b,P=o.weekYear||o.weekNumber;if((S||h)&&P)throw new Mo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(b&&h)throw new Mo("Can't mix ordinal dates with month/day");let A=P||o.weekday&&!S,F,W,z=ay(a,d);A?(F=pj,W=uj,z=ig(z,s,l)):h?(F=fj,W=dj,z=oy(z)):(F=dM,W=uM);let q=!1;for(let Ee of F){let Ne=o[Ee];He(Ne)?q?o[Ee]=W[Ee]:o[Ee]=z[Ee]:q=!0}let G=A?vP(o,s,l):h?bP(o):vS(o),Y=G||bS(o);if(Y)return e.invalid(Y);let ie=A?gS(o,s,l):h?wS(o):o,[U,me]=cy(ie,d,n),Ae=new e({ts:U,zone:n,o:me,loc:i});return o.weekday&&S&&t.weekday!==Ae.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Ae.toISO()}`):Ae.isValid?Ae:e.invalid(Ae.invalid)}static fromISO(t,r={}){let[n,i]=FP(t);return kf(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=$P(t);return kf(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=VP(t);return kf(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(He(t)||He(r))throw new _r("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[l,a,d,h]=eM(s,t,r);return h?e.invalid(h):kf(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]=WP(t);return kf(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new _r("need to specify a reason the DateTime is invalid");let n=t instanceof ln?t:new ln(t,r);if(xt.throwOnInvalid)throw new Gw(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=DS(t,St.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return OS(cn.parseFormat(t),St.fromObject(r)).map(i=>i.val).join("")}static resetCache(){uy=void 0,dy={}}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?$S(this).weekYear:NaN}get weekNumber(){return this.isValid?$S(this).weekNumber:NaN}get weekday(){return this.isValid?$S(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?VS(this).weekday:NaN}get localWeekNumber(){return this.isValid?VS(this).weekNumber:NaN}get localWeekYear(){return this.isValid?VS(this).weekYear:NaN}get ordinal(){return this.isValid?oy(this.c).ordinal:NaN}get monthShort(){return this.isValid?ca.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ca.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ca.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ca.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=wf(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=ay(a,s),g=ay(d,l);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Iu(this,{ts:a}),Iu(this,{ts:d})]:[this]}get isInLeapYear(){return Mu(this.year)}get daysInMonth(){return xf(this.year,this.month)}get daysInYear(){return this.isValid?El(this.year):NaN}get weeksInWeekYear(){return this.isValid?Pu(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Pu(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=cn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(Rt.instance(t),r)}toLocal(){return this.setZone(xt.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=Lo(t,xt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(r||n){let o=t.offset(this.ts),s=this.toObject();[i]=cy(s,o,t)}return Iu(this,{ts:i,zone:t})}else return e.invalid(mg(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return Iu(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=Sf(t,oM),{minDaysInFirstWeek:n,startOfWeek:i}=yS(r,this.loc),o=!He(r.weekYear)||!He(r.weekNumber)||!He(r.weekday),s=!He(r.ordinal),l=!He(r.year),a=!He(r.month)||!He(r.day),d=l||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new Mo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new Mo("Can't mix ordinal dates with month/day");let g;o?g=gS({...ig(this.c,n,i),...r},n,i):He(r.ordinal)?(g={...this.toObject(),...r},He(r.day)&&(g.day=Math.min(xf(g.year,g.month),g.day))):g=wS({...oy(this.c),...r});let[b,S]=cy(g,this.o,this.zone);return Iu(this,{ts:b,o:S})}plus(t){if(!this.isValid)return this;let r=wr.fromDurationLike(t);return Iu(this,nM(this,r))}minus(t){if(!this.isValid)return this;let r=wr.fromDurationLike(t).negate();return Iu(this,nM(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=wr.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?cn.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):FS}toLocaleString(t=yl,r={}){return this.isValid?cn.create(this.loc.clone(r),t).formatDateTime(this):FS}toLocaleParts(t={}){return this.isValid?cn.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=US(this,s);return l+="T",l+=iM(this,s,r,n,i,o),l}toISODate({format:t="extended"}={}){return this.isValid?US(this,t==="extended"):null}toISOWeekDate(){return ly(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":"")+iM(this,s==="extended",r,t,n,o):null}toRFC2822(){return ly(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ly(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?US(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")),ly(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():FS}[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 wr.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=SP(r).map(wr.normalizeUnit),s=t.valueOf()>this.valueOf(),l=s?this:t,a=s?t:this,d=ZP(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?la.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),aM(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?aM(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 _r("min requires all arguments be DateTimes");return xS(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new _r("max requires all arguments be DateTimes");return xS(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return RS(s,t,r)}static fromStringExplain(t,r,n={}){return e.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){let{locale:n=null,numberingSystem:i=null}=r,o=St.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new fg(o,t)}static fromFormatParser(t,r,n={}){if(He(t)||He(r))throw new _r("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new _r(`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):kf(l,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return yl}static get DATE_MED(){return Oh}static get DATE_MED_WITH_WEEKDAY(){return Xx}static get DATE_FULL(){return Rh}static get DATE_HUGE(){return Dh}static get TIME_SIMPLE(){return Fh}static get TIME_WITH_SECONDS(){return $h}static get TIME_WITH_SHORT_OFFSET(){return Vh}static get TIME_WITH_LONG_OFFSET(){return Uh}static get TIME_24_SIMPLE(){return zh}static get TIME_24_WITH_SECONDS(){return Wh}static get TIME_24_WITH_SHORT_OFFSET(){return Bh}static get TIME_24_WITH_LONG_OFFSET(){return Gh}static get DATETIME_SHORT(){return jh}static get DATETIME_SHORT_WITH_SECONDS(){return qh}static get DATETIME_MED(){return Hh}static get DATETIME_MED_WITH_SECONDS(){return Zh}static get DATETIME_MED_WITH_WEEKDAY(){return Qx}static get DATETIME_FULL(){return Yh}static get DATETIME_FULL_WITH_SECONDS(){return Jh}static get DATETIME_HUGE(){return Xh}static get DATETIME_HUGE_WITH_SECONDS(){return Qh}}});var Fn=N(()=>{Sl();pg();LS();kS();Cu();vf();_l();fS();Zw();xl()});function Lu(e){return e instanceof Nr?e===Yr.instance:e?.toString().toLowerCase()==="unknown"}function py(e){return Lu(e)?Yr.instance:e}var Yr,hg=N(()=>{Fn();Yr=class{};Yr.instance=new or("Etc/UTC")});function Nf(e,t,r){return e<t?e-t:e>r?e-r:0}function Of(e,t,r){return e<t?t:e>r?r:e}function Oo(e,t=!0){if(e instanceof Nr)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return Yr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=Rt.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=or.create(e);if(!r.isValid){if(t)throw new zS(fy.TimeZoneNotRecognized);return null}return r}var fy,gj,zS,Rf,WS=N(()=>{gl();hg();Fn();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(fy||(fy={}));gj={[fy.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},zS=class e extends Error{constructor(t,r){super(ys(gj[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};Rf=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=Ce.local(t,r).daysInMonth,h=Ce.fromObject({day:Of(n,1,d),year:t,month:Of(r,1,12),hour:Of(i,0,23),minute:Of(o,0,59),second:Of(s,0,59),millisecond:Of(l,0,999)},{zone:Oo(a)});return h=h.plus({months:Nf(r,1,12),days:Nf(n,1,d),hours:Nf(i,0,23),minutes:Nf(o,0,59),seconds:Nf(s,0,59),milliseconds:Nf(l,0,999)}),new e(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=Oo(r);return t.isUnknownTimeZone||n===Yr.instance?e.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t._date.setZone(n))}static dateJSToArcadeDate(t){return new e(Ce.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Oo(r);return new e(Ce.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(Ce.fromMillis(t,{zone:Yr.instance}))}static unknownDateJSToArcadeDate(t){return new e(Ce.fromMillis(t.getTime(),{zone:Yr.instance}))}static epochToArcadeDate(t,r="system"){let n=Oo(r);return new e(Ce.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=Oo(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=Oo(r);return t.zone===Yr.instance||n===Yr.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=Oo(t);return new e(Ce.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(Ce.utc())}get isSystem(){return this.timeZone==="system"||this.timeZone===e.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===Yr.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let t=this._date.weekday;return t>6&&(t=0),t}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if(this._date.zone.type==="system")return"system";let t=this.zone;return t.type==="fixed"?t.fixed===0?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new e(this._date.plus(t))}diff(t,r="milliseconds"){return this._date.diff(t._date,r)[r]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,r){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:r&&!this.isUnknownTimeZone})}toFormat(t,r){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,r)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new e(this._date.toUTC())}toLocal(){return new e(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;let r=Ce.fromISO(t,{setZone:!0});return new e(r)}}});function Pt(e){return e?{remove(){e&&(e(),e=void 0)}}:wj}function yj(e){e.forEach(t=>t?.remove())}function ku(e){return Pt(()=>yj(e))}var wj,ci=N(()=>{wj={remove:()=>{}}});function fM(){let e=BS?.getAttribute("lang"),t=globalThis.navigator?.language;return bj??e??t??"en"}function Ji(){return gg===void 0&&(gg=fM()),gg}function GS(e){return my.push(e),Pt(()=>my.splice(my.indexOf(e),1))}function Df(e){return hy.push(e),Pt(()=>hy.splice(hy.indexOf(e),1))}function pM(){let e=vj??fM();gg!==e&&([...hy].forEach(t=>t(e)),gg=e,[...my].forEach(t=>t(e)))}var vj,gg,bj,BS,my,hy,Ml=N(()=>{ci();bj=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,BS=globalThis.document?.documentElement;my=[];hy=[];globalThis.addEventListener?.("languagechange",pM),BS&&new MutationObserver(()=>{pM()}).observe(BS,{attributeFilter:["lang"]})});function mM(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="",r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(let n of e.match(r)||[])switch(n){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=n;break;default:n.length>=2&&n.slice(0,1)==="["&&n.slice(-1)==="]"?t+=`'${n.slice(1,-1)}'`:t+=`'${n}'`}return t}var un,wg=N(()=>{WS();Ml();Fn();un=class e{constructor(t,r,n){this._year=t,this._month=r,this._day=n,this.declaredRootClass="esri.core.sql.dateonly"}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(t){return t instanceof e&&t.day===this.day&&t.month===this.month&&t.year===this.year}clone(){return new e(this._year,this._month,this._day)}toDateTime(t){return Ce.fromObject({day:this.day,month:this.month,year:this.year},{zone:Oo(t)})}toDateTimeLuxon(t){return Ce.fromObject({day:this.day,month:this.month,year:this.year},{zone:Oo(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=mM(t)),!t)return"";let n=this.toDateTime("unknown");return Rf.dateTimeToArcadeDate(n).toFormat(t,{locale:Ji(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return Rf.dateTimeToArcadeDate(t)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(t,r){return e.fromDateTime(this.toUTCDateTime().plus({[t]:r}))}toUTCDateTime(){return Ce.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){let r=Ce.fromMillis(t,{zone:Rt.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=Ce.fromSeconds(t,{zone:Rt.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromReader(t){if(!t)return null;let r=t.split("-");return r.length!==3?null:new e(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10))}static fromParts(t,r,n){let i=new e(t,r,n);return i.isValid===!1?null:i}static fromDateJS(t){return e.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return e.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,r=null){if(t===""||t===null)return null;let n=[];if(r)(r=mM(r))&&n.push(r);else if(r===null||r===""){let i=Ce.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Ce.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=Ce.fromJSDate(new Date).setZone(Oo(t));return new e(r.year,r.month,r.day)}}});var K,_j,oe,Al=N(()=>{gl();(function(e){e.InvalidFunctionParameters="InvalidFunctionParameters",e.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",e.UnsupportedSqlFunction="UnsupportedSqlFunction",e.UnsupportedOperator="UnsupportedOperator",e.UnsupportedSyntax="UnsupportedSyntax",e.UnsupportedIsRhs="UnsupportedIsRhs",e.UnsupportedIsLhs="UnsupportedIsLhs",e.InvalidDataType="InvalidDataType",e.CannotCastValue="CannotCastValue",e.FunctionNotRecognized="FunctionNotRecognized",e.InvalidTime="InvalidTime",e.InvalidParameterCount="InvalidParameterCount",e.InvalidTimeStamp="InvalidTimeStamp",e.InvalidDate="InvalidDate",e.InvalidOperator="InvalidOperator",e.IllegalInterval="IllegalInterval",e.YearMonthIntervals="YearMonthIntervals",e.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",e.MissingStatisticParameters="MissingStatisticParameters"})(K||(K={}));_j={[K.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[K.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[K.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[K.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[K.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[K.UnsupportedOperator]:"Unsupported operator - {operator}",[K.UnsupportedSyntax]:"Unsupported syntax - {node}",[K.UnsupportedSqlFunction]:"Sql function not found = {function}",[K.InvalidDataType]:"Invalid sql data type",[K.InvalidDate]:"Invalid date encountered",[K.InvalidOperator]:"Invalid operator encountered",[K.InvalidTime]:"Invalid time encountered",[K.IllegalInterval]:"Illegal interval",[K.FunctionNotRecognized]:"Function not recognized",[K.InvalidTimeStamp]:"Invalid timestamp encountered",[K.InvalidParameterCount]:"Invalid parameter count for call to {name}",[K.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[K.YearMonthIntervals]:"Year-Month Intervals not supported",[K.CannotCastValue]:"Cannot cast value to the required data type"},oe=class e extends Error{constructor(t,r){super(ys(_j[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function hM(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var bn,yg=N(()=>{Fn();bn=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=Ce.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return hM(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return hM(this.toDateTime().offset%60)}toMilliseconds(){return this.toDateTime().toMillis()}get hour(){return this.toDateTime().hour}get minute(){return this.toDateTime().minute}get second(){return this.toDateTime().second}get day(){return this.toDateTime().day}get month(){return this.toDateTime().month}get year(){return this.toDateTime().year}startOfDay(){return e.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(t){return new e(Ce.fromJSDate(t).toISO({includeOffset:!0}))}static fromDateTime(t){return new e(t.toISO({includeOffset:!0}))}static fromParts(t,r,n=0,i=0,o=0,s=0,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 S=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${b+s.toString()}`;l!==0&&(S+="."+l.toString().padStart(3,"0"));let P=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new e(g+"T"+S+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 R(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 gt=N(()=>{});var gy,wy=N(()=>{gy="20250117"});var Mt,Il=N(()=>{tt();ws();wy();Mt={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(Z8(Mt,globalThis.esriConfig,!0),delete Mt.has),!Mt.assetsPath){{let e="4.32.0";Mt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${gy}/assets`}Mt.defaultAssetsPath=Mt.assetsPath}});function xj(e,t,...r){console[e](`[${t}]`,...r)}function Sj(...e){return K8(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var gM,ot,it=N(()=>{Il();tt();gl();gM={info:0,warn:1,error:2,none:3},ot=class e{constructor(t){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},t.level!=null&&(this.level=t.level),t.writer!=null&&(this.writer=t.writer),this._module=t.module,e._loggers.set(this.module,this);let r=this.module.lastIndexOf(".");r!==-1&&(this._parent=e.getLogger(this.module.slice(0,r)))}get module(){return this._module}get parent(){return this._parent}error(...t){this._log("error","always",...t)}warn(...t){this._log("warn","always",...t)}info(...t){this._log("info","always",...t)}errorOnce(...t){this._log("error","once",...t)}warnOnce(...t){this._log("warn","once",...t)}infoOnce(...t){this._log("info","once",...t)}errorOncePerTick(...t){this._log("error","oncePerTick",...t)}warnOncePerTick(...t){this._log("warn","oncePerTick",...t)}infoOncePerTick(...t){this._log("info","oncePerTick",...t)}get test(){}static get test(){}static getLogger(t){return t=typeof t!="string"?t.declaredClass:t,e._loggers.get(t)||new e({module:t})}_log(t,r,...n){if(this._matchLevel(t)){if(r!=="always"&&!e._throttlingDisabled){let i=Sj(n),o=this._loggedMessages[t].get(i);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=e._tickCounter)return;this._loggedMessages[t].set(i,e._tickCounter),e._scheduleTickCounterIncrement()}for(let i of Mt.log.interceptors)if(i(t,this.module,...n))return;this._inheritedWriter()(t,this.module,...n)}}_parentWithMember(t,r){let n=this;for(;n!=null;){let i=n[t];if(i!=null)return i;n=n.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",xj)}_matchLevel(t){let r=Mt.log.level||"warn";return gM[this._parentWithMember("level",r)]<=gM[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};ot._loggers=new Map,ot._tickCounter=0,ot._tickCounterScheduled=!1,ot._throttlingDisabled=!1});function Ff(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var yy=N(()=>{});function Ej(e){return e==null?e:new Date(e)}function Cj(e){return e==null?e:!!e}function Tj(e){return e==null?e:e.toString()}function ZS(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function Pj(e){return e==null?e:Math.round(parseFloat(e))}function Mj(e){return null}function yM(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 vM(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function vy(e,t){return t!=null&&e&&!(t instanceof e)}function bM(e){return e&&"isCollection"in e}function wM(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function Aj(e,t){if(!t?.constructor||!bM(t.constructor))return jS(e,t)?t:new e(t);let r=wM(e.prototype.itemType),n=wM(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(jS(e,t),t):new e(t):t}function jS(e,t){return!!vM(t)&&($f().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+by(e)+"'"),!0)}function YS(e,t){return t==null?t:bM(e)?Aj(e,t):vy(e,t)?jS(e,t)?t:new e(t):t}function by(e){return e?.prototype?.declaredClass||"unknown"}function Lj(e){switch(e){case Number:return t=>ZS(t);case di:return Pj;case Boolean:return Cj;case String:return Tj;case Date:return Ej;case bg:return Mj;default:return Ff(Ij,e,()=>YS.bind(null,e))}}function ui(e,t){let r=Lj(e);return arguments.length===1?r:r(t)}function Vf(e,t,r){return arguments.length===1?Vf.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function _M(e,t){return arguments.length===1?Vf(r=>ui(e,r)):Vf(r=>ui(e,r),t)}function xM(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>xM(e,t-1,n)):e(r)}function vg(e,t,r){if(arguments.length===2)return o=>vg(e,t,o);if(!r)return r;r=xM(e,t,r);let n=t,i=r;for(;n>0&&Array.isArray(i);)n--,i=i[0];if(i!==void 0)for(let o=0;o<n;o++)r=[r];return r}function SM(e,t,r){return arguments.length===2?vg(n=>ui(e,n),t):vg(n=>ui(e,n),t,r)}function _y(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function xy(e,t){if(arguments.length===2)return xy(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=>!vy(l,g))?l:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),$f().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=>by(g)).join(", ")),$f().error("Accessor#set",`'${l}' is not a valid value for this property, value must be one of ${s}`)):$f().error("Accessor#set",`'${l}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function Ro(e,t){if(arguments.length===2)return Ro(e).call(null,t);let r={},n=[],i=[];for(let a in e.typeMap){let d=e.typeMap[a];r[a]=ui(d),n.push(by(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&&!vy(e.base,a)||a==null)return a;let d=l(a)||e.defaultKeyValue,h=r[d];if(!h)return $f().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(!vy(e.typeMap[d],a))return a;if(typeof e.key=="string"&&!vM(a)){let g={};for(let b in a)b!==e.key&&(g[b]=a[b]);return h(g)}return h(a)}}function EM(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function JS(e){switch(e.type){case"native":return ui(e.value);case"array":return Vf(JS(e.value));case"one-of":return kj(e);default:return null}}function kj(e){let t=null;return(r,n)=>HS(r,e)?r:(t==null&&(t=qS(e)),$f().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function qS(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case di:return"integer";case Date:return"date";case bg:return"null";default:return by(e.value)}case"array":return`array of ${qS(e.value)}`;case"one-of":{let t=e.values.map(r=>qS(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function HS(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case di:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case bg:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!HS(r,t.value));case"one-of":return t.values.some(r=>HS(e,r))}}var $f,Ij,di,bg,Xi=N(()=>{tt();it();yy();$f=()=>ot.getLogger("esri.core.accessorSupport.ensureTypes");Ij=new WeakMap;di=class{},bg=class{}});function Pi(e){return e.__accessor__??null}function TM(e,t){return e?.metadata?.[t]!=null}function Uf(e,t,r){return r?Sy(e,t,{policy:r,path:""}):Sy(e,t,null)}function Sy(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,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]=Je(t[o]),n;let a=n[o],d=t[o];if(a===d)return n;if(Array.isArray(d)||Array.isArray(n))a=a?Array.isArray(a)?n[o]=a.slice():n[o]=[a]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(h=>{a.includes(h)||a.push(h)}));else if(d&&typeof d=="object")if(r){let h=r.path;r.path=s,n[o]=Sy(a,d,r),r.path=h}else n[o]=Sy(a,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function Ey(e){return Array.isArray(e)?e:e.split(".")}function CM(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function Nj(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...CM(r));return t}return CM(e)}function XS(e,t,r,n){let i=Nj(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return ku(o)}return n(e,i[0],r)}var ua=N(()=>{ci();ar()});function PM(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=Pi(t);return TM(n,r)?n.get(r):t[r]}function MM(e,t,r){if(e==null)return e;let n=PM(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:MM(n,t,r+1)}function Nu(e,t,r=0){return typeof t!="string"||t.includes(".")?MM(e,Ey(t),r):PM(t,e)}function vs(e,t){return Nu(e,t)}function QS(e,t){return Nu(t,e)!==void 0}var Ou=N(()=>{ua()});function Ll(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]=Je(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 zf(e,t){let r=Ll(e),n=r[t];return n||(n=r[t]={}),n}function AM(e,t){return Uf(e,t,Rj)}function Rj(e){return Oj.test(e)?"replace":"merge"}var Oj,Wf=N(()=>{ar();ua();Oj=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function Dj(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(qi(n,t)??"").toString())}var Bf,KS=N(()=>{ws();Bf=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&Dj(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var je,_n=N(()=>{ar();it();KS();je=class e extends Bf{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 Je(r)}catch{return"[object]"}}))}}catch(t){throw ot.getLogger("esri.core.Error").error(t),t}return{name:this.name,message:this.message,details:this.details}}static fromJSON(t){return new e(t.name,t.message,t.details)}};je.prototype.type="error"});function Gf(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Gf(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Gf(vs(e,i),o,r)}let n=e.__accessor__;n!=null&&Fj(t,n),e[t]=r}}function Fj(e,t){if(de("esri-unknown-property-errors")&&!$j(e,t))throw new je("set:unknown-property",Vj(e,t))}function $j(e,t){return t.metadata[e]!=null}function Vj(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var e4=N(()=>{_n();tt();it();Ou()});function V(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let n=Object.getOwnPropertyDescriptor(t,r),i=zf(t,r);n&&(n.get||n.set?(i.get=n.get||i.get,i.set=n.set||i.set):"value"in n&&("value"in e&&ot.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),i.value=e.value=n.value)),e.readOnly!=null&&(i.readOnly=e.readOnly);let o=e.aliasOf;if(o){let a=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,h;i.dependsOn=[a],i.get=function(){let g=vs(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let b=vs(this,h);b&&(g=g.bind(b))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Gf(this,a,g)})}let s=e.type,l=e.types;if(!i.cast){let a;s?a=Uj(s):l&&(a=Array.isArray(l)?Vf(Ro(l[0])):Ro(l)),e.cast=zj(e.cast,a)}AM(i,e),e.range&&(i.cast=yM(i.cast,e.range))}}function Cy(e,t,r){let n=zf(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 Uj(e){let t=0,r=e;if(EM(e))return JS(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(_y(n))return t===0?xy(n):vg(xy(n),t);if(t===1)return _M(n);if(t>1)return SM(n,t);let i=e;return i.from?i.from:ui(i)}function zj(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var yt=N(()=>{it();Xi();Ou();Wf();e4()});var Ty,t4=N(()=>{Ty=Symbol("Accessor-beforeDestroy")});var dn,_g=N(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(dn||(dn={}))});var vt,Py=N(()=>{(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"})(vt||(vt={}))});var bs,xg=N(()=>{bs=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 Ve(e){Eg.onAccessed(e)}function Do(e,t,r){if(My)return r4(e,t,r);let n=null;return kM(e),n=t.call(r),NM(),n}function LM(e,t){return Do(Iy,e,t)}function r4(e,t,r){let n=My;My=!0,kM(e);let i=null;try{i=t.call(r)}catch(o){Ay&&ot.getLogger("esri.core.accessorSupport.tracking").error(o)}return NM(),My=n,i}function kM(e){Eg=e,Sg.push(e)}function NM(){let e=Sg.length;if(e>1){let t=Sg.pop();Eg=Sg[e-2],t.onTrackingEnd()}else if(e===1){let t=Sg.pop();Eg=Iy,t.onTrackingEnd()}else Eg=Iy}function n4(e,t){if(t.flags&vt.DepTrackingInitialized)return;t.flags|=vt.DepTrackingInitialized;let r=Ay;Ay=!1,t.flags&vt.AutoTracked?r4(t.trackingTarget,t.metadata.get,e):i4(e,t),Ay=r}function i4(e,t){t.flags&vt.ExplicitlyTracking||(t.flags|=vt.ExplicitlyTracking,r4(t.trackingTarget,()=>{let r=t.metadata.dependsOn||Wj;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=Ey(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=IM(s,i[o],o!==i.length-1)}else IM(e,n,!1)}),t.flags&=~vt.ExplicitlyTracking)}function IM(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=Pi(e);if(i){let o=i.propertiesByName.get(n);o&&(Ve(o),n4(e,o))}return r?e[n]:void 0}var Iy,Sg,Eg,My,Ay,Wj,_s=N(()=>{tt();it();ua();Py();xg();Iy=new bs,Sg=[],Eg=Iy;My=!1,Ay=!1;Wj=[]});function OM(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 RM=N(()=>{});var Cg,DM=N(()=>{KS();Cg=class extends Bf{constructor(t,r,n){super(t,r,n)}};Cg.prototype.type="warning"});function Ly(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var o4=N(()=>{});function a4(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||jj(e)&&oa("read.reader",l4(e),t))}function l4(e){let t=e.ndimArray??0;if(t>1)return Gj(e);if(t===1)return FM(e);if("type"in e&&VM(e.type)){let r=e.type.prototype?.itemType?.Type,n=FM(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let l=n(i,o,s);return l&&new e.type(l)}}return c4(e)}function c4(e){return"type"in e?Bj(e.type):qj(e.types)}function Bj(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void s4().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${i}'`);let o=new e;return o.read(t,n),o}:e.fromJSON}function $M(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>$M(e,i,r,n-1)):e(t,void 0,r)}function Gj(e){let t=c4(e),r=$M.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let 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 FM(e){let t=c4(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 VM(e){if(!Ly(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?u4(t.Type):UM(t.Type))}function jj(e){return"types"in e?UM(e.types):u4(e.type)}function u4(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||VM(e))}function UM(e){for(let t in e.typeMap)if(!u4(e.typeMap[t]))return!1;return!0}function qj(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 s4().error(`Expected JSON value of type 'object' to deserialize, but got '${l}'`);t||(t=Hj(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 Cg(`${r}:unsupported`,b,{definition:i,context:s})),void s4().error(b)}let g=new h;return g.read(i,s),n?n(g):g}}function Hj(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=Ll(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 s4,d4=N(()=>{it();ws();DM();Wf();o4();s4=()=>ot.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function GM(e){if(e.json||(e.json={}),WM(e.json),BM(e.json),zM(e.json),e.json.origins)for(let t in e.json.origins)WM(e.json.origins[t]),BM(e.json.origins[t]),zM(e.json.origins[t]);return!0}function zM(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 WM(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 BM(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 jM=N(()=>{});function p4(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&&Ly(e.type))?t.write.writer=Xj:r>1?t.write.writer=Qj(r):t.types?Array.isArray(t.types)?t.write.writer=Yj(t.types[0]):t.write.writer=Zj(t.types):t.write.writer=Tg}function Zj(e){return(t,r,n,i)=>t?qM(t,e,i)?Tg(t,r,n,i):void 0:Tg(t,r,n,i)}function qM(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 je(`${n}:unsupported`,i,{definition:e,context:r})),ot.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function Yj(e){return(t,r,n,i)=>!t||!Array.isArray(t)?Tg(t,r,n,i):Tg(t.filter(o=>qM(o,e,i)),r,n,i)}function Tg(e,t,r,n){oa(r,ky(e,n),t)}function ky(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?Jj(e):e}function Jj(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function Xj(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>ky(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[ky(e,n)],oa(r,i,t)}function HM(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>HM(n,t,r-1)):ky(e,t)}function Qj(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=HM(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]}oa(n,o,r)}}var ZM=N(()=>{_n();it();ws();o4()});function YM(e,t){return m4(e,"any",t?.origin)}function Ny(e,t){return m4(e,"read",t?.origin)}function JM(e,t){return m4(e,"write",t?.origin)}function m4(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 Kj(e){let t=eq(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?tq(n):t;a4(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),p4(i,n)}a4(t,e.json,!0),p4(t,e.json)}function eq(e){return e.json.types?f4(e.json):e.type?XM(e):f4(e)}function tq(e){return e.type?XM(e):f4(e)}function XM(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!_y(r);)r=r[0],t++;return{type:r,ndimArray:t}}function f4(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 QM(e){GM(e)&&(OM(e),Kj(e))}var Oy=N(()=>{Xi();RM();d4();jM();ZM()});function Le(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,nq(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!h4.has(i.initialize)&&(h4.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!g4.has(i.destroy)&&(g4.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);h4.clear(),g4.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[Ty];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__=Ll(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 rq(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;r.mutable&&Ve(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 nq(e){let t=e.prototype,r=Ll(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];QM(o),n[i]={enumerable:!0,configurable:!0,get:rq(i,o),set(s){let l=this.__accessor__;if(l!==void 0){if(l.mutable)return l.initialized&&o.readOnly?KM("read-only",i):l.lifecycle===dn.CONSTRUCTED&&o.constructOnly?KM("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 h4,g4,KM,ft=N(()=>{tt();it();t4();_g();Wf();_s();Oy();h4=new Set,g4=new Set;KM=(e,t)=>{ot.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function iq(e,t,r=!1){let n=`\u{1F6D1} DEPRECATED - ${t}`;if(!r)return void e.warn(n);let i=eA.get(e);i||(i=new Set,eA.set(e,i)),i.has(t)||(i.add(t),e.warn(n))}function tA(e,t,r={}){if(de("esri-deprecation-warnings")){let{moduleName:n}=r;oq(e,`Function: ${(n?n+"::":"")+t+"()"}`,r)}}function oq(e,t,r={}){if(de("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,l=t;n&&(l+=`
|
|
2
2
|
\u{1F6E0}\uFE0F Replacement: ${n}`),i&&(l+=`
|
|
3
3
|
\u2699\uFE0F Version: ${i}`),o&&(l+=`
|
|
4
4
|
\u{1F517} See ${o} for more details.`),iq(e,l,s)}}var eA,rA=N(()=>{tt();eA=new WeakMap});function w4(e){return e!=null&&typeof e[Symbol.iterator]=="function"}var nA=N(()=>{});function Ry(e){return e||"_default_"}function iA(e){for(let t of e)t instanceof jf?t.removeAll():t.remove()}function oA(e){return e!=null&&(!!e.remove||e instanceof jf)}var jf,sA=N(()=>{nA();jf=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(w4(t)){let n=this._getOrCreateGroup(r);for(let i of t)oA(i)&&n.push(i)}else oA(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(Ry(t))}remove(t){if(typeof t!="string"&&w4(t)){for(let r of t)this.remove(r);return this}return this.has(t)?(iA(this._getGroup(t)),this._groups.delete(Ry(t)),this):this}removeAll(){return this._groups.forEach(iA),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(Ry(t),r),r}_getGroup(t){return this._groups.get(Ry(t))}}});function aA(e,t){if(e==null)throw new Error(t??"value is None")}function Pg(e){return e?.destroy(),null}function kl(e){return e?.remove(),null}function lA(e){return e?.abort(),null}var da=N(()=>{});function sq(e){return e?.release&&typeof e.release=="function"}function aq(e){return e?.acquire&&typeof e.acquire=="function"}var Fo,Mg=N(()=>{Fo=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):aq(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):sq(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()}};Fo.test={disabled:!1}});var Dy,cA=N(()=>{hl();Dy=class{constructor(t,r){this._observers=t,this._observer=r}remove(){L8(this._observers,this._observer)}}});var qf,lq,y4=N(()=>{ci();cA();qf=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return lq;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 Dy(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}}},lq=Pt()});function Fy(e){switch(e){case"defaults":return lt.DEFAULTS;case"service":return lt.SERVICE;case"portal-item":return lt.PORTAL_ITEM;case"web-scene":return lt.WEB_SCENE;case"web-map":return lt.WEB_MAP;case"link-chart":return lt.LINK_CHART;case"user":return lt.USER;default:return null}}function $y(e){switch(e){case lt.DEFAULTS:return"defaults";case lt.SERVICE:return"service";case lt.PORTAL_ITEM:return"portal-item";case lt.WEB_SCENE:return"web-scene";case lt.WEB_MAP:return"web-map";case lt.LINK_CHART:return"link-chart";case lt.USER:return"user"}}function uA(e){return $y(e)}var lt,nfe,Nl=N(()=>{(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"})(lt||(lt={}));nfe=lt.USER+1});var Ag,dA=N(()=>{y4();Nl();_s();Py();xg();Ag=class extends qf{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this.trackingTarget=new bs(this),this.flags=0,this.flags=vt.Dirty|(r.nonNullable?vt.NonNullable:0)|(r.hasOwnProperty("value")?vt.HasDefaultValue:0)|(r.get===void 0?vt.DepTrackingInitialized:0)|(r.dependsOn===void 0?vt.AutoTracked:0)}destroy(){this.flags&vt.Dirty&&this.onCommitted(),super.destroy(),this.trackingTarget.destroy()}getComputed(t){t.mutable&&Ve(this);let r=t.store,n=this.propertyName,i=this.flags,o=r.get(n);if(i&vt.Computing||~i&vt.Dirty&&r.has(n))return o;this.flags|=vt.Computing;let s=t.host,l;i&vt.AutoTracked?l=Do(this.trackingTarget,this.metadata.get,s):(i4(s,this),l=this.metadata.get.call(s)),this.flags|=vt.DepTrackingInitialized,r.set(n,l,lt.COMPUTED);let a=r.get(n);return a===o?this.flags&=~vt.Dirty:LM(this.commit,this),this.flags&=~vt.Computing,a}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~vt.Dirty,this.onCommitted()}onInvalidated(){~this.flags&vt.Overridden&&(this.flags|=vt.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 Vy,pA=N(()=>{ar();Nl();Vy=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,Je(n))}),r}get(t){return this._values.get(t)}originOf(){return lt.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 Uy(e,t,r){return e!==void 0}function fA(e,t,r,n){return e!==void 0&&(!(r==null&&e.flags&vt.NonNullable)||(n.lifecycle,dn.INITIALIZING,!1))}var zy,b4,v4,mA=N(()=>{tt();ar();it();Mg();_g();dA();Nl();pA();_s();Py();xg();zy=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=dn.INITIALIZING,this.store=new Vy,this.mutable=!0,this._origin=lt.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new Ag(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=dn.CONSTRUCTING}constructed(){this.lifecycle=dn.CONSTRUCTED}destroy(){this.lifecycle=dn.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==dn.INITIALIZING}get(t){let r=this.propertiesByName.get(t);if(r.metadata.get)return r.getComputed(this);this.mutable&&Ve(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&vt.HasDefaultValue)return"defaults"}return $y(r)}has(t){return this.propertiesByName.has(t)&&this.store.has(t)}keys(){return[...this.propertiesByName.keys()]}internalGet(t){let r=this.propertiesByName.get(t);if(Uy(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);Uy(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!Uy(i))return"";let o=new bs,s=Do(o,()=>i.metadata.get?.call(t)),l=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
|
|
@@ -65,7 +65,7 @@ Types found: \${types}.`,IncorrectArgumentLength:"Expected ${formatMinMaxParams}
|
|
|
65
65
|
`,P.RIGHT_PARENTHESES=")",P.SINGLE_QUOTE="'",P.WHITE_SPACE=" ",P))(Fw||{});var S8=/\d+/u,Bx=["string","number","integer","smallint","float","real","date","time","timestamp","current-time","column-reference"];function _B(e,t){return Object.values(e).includes(t)?t:void 0}var xB=e=>{switch(e.operator){case"AND":case"OR":case"IS":case"ISNOT":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"*":case"-":case"+":case"/":return"number";case"||":return"string"}},SB=e=>{switch(e.type){case"number":return"number";case"text":return"string";case"dateOnly":case"date":return"date";case"time":return"time";case"boolean":return"boolean";case"dictionary":case"array":case"geometry":case"feature":case"featureSet":case"featureSetCollection":case"knowledgeGraph":return console.error(`sql-expr validator experienced an unexpected variable type: ${e.type}`),"null"}},dl=(e,t)=>{if(e.type==="function"&&e.name.toLowerCase()==="nullif")return e.args?.value?.[0]?dl(e.args.value[0],t):"null";switch(e.type){case"interval":case"interval-period":case"interval-qualifier":case"when-clause":case"case-expression":case"parameter":case"expression-list":return e.type;case"unary-expression":return"boolean";case"binary-expression":return xB(e);case"null":case"boolean":case"string":case"timestamp":case"date":case"time":case"number":case"current-time":case"data-type":return e.type;case"column-reference":{let r=t.find(n=>n.name===e.column);if(r)return SB(r)}return e.type;case"current-user":return"string";case"function":switch(e.name.toLowerCase()){case"cast":{if(e.args?.value?.[1]?.type!=="data-type")throw Error("Invalid cast function");switch(e.args?.value?.[1]?.value?.type){case"integer":case"smallint":return"integer";case"real":case"float":return"float";case"date":case"timestamp":return"timestamp";case"time":return"time-only";case"varchar":return"string"}}case"position":case"extract":case"char_length":case"mod":return"integer";case"round":return"float";case"sign":return"integer";case"ceiling":case"floor":case"abs":return"float";case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"cosh":case"sinh":case"tanh":case"power":case"truncate":return"float";case"substring":case"trim":case"concat":case"lower":case"upper":return"string";case"current_date":case"current_time":case"current_timestamp":return"date";default:return"unknown_function"}}},Ih=e=>{switch(e.toLowerCase()){case"integer":case"double":case"number":case"smallint":case"float":case"real":case"timestamp":case"date":case"time":case"current-time":case"date-only":case"interval":return!0;default:return!1}},Gx=(e,t,r)=>{let n=dl(e,r),i=dl(t,r),o=["date","timestamp","time","current-time","number","integer","float","real"],s=new Set([n,i]);return!!(s.size===2&&s.has("interval")&&o.some(l=>s.has(l)))},jx=e=>{switch(e.toLowerCase()){case"integer":case"double":case"number":case"smallint":case"float":case"real":return!0;default:return!1}},qx=(e,t)=>{let r=_B(Fw,t)===","?", ":" | ";return e.map(n=>`"${n.toLowerCase()}"`).sort().join(r)},Eo=e=>`"${e}"`,Su=e=>{switch(e.type){case"interval-qualifier":case"interval":return"INTERVAL";case"when-clause":return"WHEN_CLAUSE";case"case-expression":return"CASE_EXPRESSION";case"unary-expression":return"UNARY_EXPRESSION";case"expression-list":return"EXPRESSION_LIST";case"binary-expression":return"BINARY_EXPRESSION";case"current-user":return"CURRENT_USER";case"current-time":return Eo(e.mode);case"interval-period":return Eo(e.period);case"null":return Eo("null");case"column-reference":return Eo(e.column);case"number":return e.value;case"function":return Eo(`${e.name}()`);case"data-type":return Eo(e.type);case"boolean":case"date":case"parameter":case"time":case"timestamp":case"string":return Eo(String(e.value))}},vn=(e,t,r,n)=>{if(n){let i=t,o={startColumn:i.start.column,endColumn:i.end.column,startLineNumber:i.start.line,endLineNumber:i.end.line};r.some(l=>l.message===e&&l.startColumn===o.startColumn&&l.startLineNumber===o.startLineNumber&&l.endColumn===o.endColumn&&l.endLineNumber===o.endLineNumber)||r.push({message:e,severity:Wx.Error,...o})}else{let i=t;r.some(s=>s.message===e&&s.startColumn===i.startColumn&&s.startLineNumber===i.startLineNumber&&s.endColumn===i.endColumn&&s.endLineNumber===i.endLineNumber)||r.push({message:e,severity:Wx.Error,...i})}},pl=(e,t,r,n)=>{let i=dl(e,n),o=i.toUpperCase()===t;if(t==="NUMBER"&&(o=jx(i)),!o){let s=Dn("TypeNotAssignable",{providedType:Eo(i),expectedType:Eo(t.toLowerCase())});vn(s,e.location,r,!0)}};var Uae=typeof window<"u"&&"$arcgis"in window&&typeof window.$arcgis=="object"&&"import"in window.$arcgis&&!("forceESM"in window.$arcgis);var Uw=e=>e.variables?e.variables.find(r=>r.name==="$layer"&&r.type==="dictionary")?.properties??[]:[];q2();qC();var nU={"[ \\t\\n\\r]":"WHITESPACE","[*/]":"MULTIPLICATION (*) OR DIVISION (/)","[+\\-]":"ADDITION (+) OR SUBTRACTION (-)","[<-=]":"LESS THAN (<) OR LESS THAN OR EQUAL TO (<=)","[A-Za-z0-9_.\\\\x80-\uFFFF]":"ALPHANUMERIC, UNDERSCORE, DOT, OR EXTENDED ASCII","[A-Za-z0-9_]":"ALPHANUMERIC OR UNDERSCORE"},oU=new Set(["TIMEZONE_HOUR","TIMEZONE_MINUTE","WHITESPACE","INT"]);function H2(e){return!(e instanceof Error&&(!("location"in e)||!("format"in e)))}function sU(e){return/^Expected "\S+"/u.test(e.message)}function Tre(e){return e.message.match(/Expected (?<expectedToken>.*) but/u)?.groups?.expectedToken?.split(", ").reduce((t,r,n,i)=>(n===i.length-1&&r.startsWith("or ")&&(r=r.slice(3)),r=r.replace(/^"|"$/gu,""),r in nU&&(r=nU[r]),oU.has(r)||t.push(r),t),[])}function aU(e){if(e.message.match(/but end of input found/u))return"Invalid syntax: unexpected end of SQL Expression.";let r=e.message.match(/but (?<unexpectedToken>.*) found/u)?.groups?.unexpectedToken,n=Tre(e)?.map(i=>`\u2022 ${i}`).join(`
|
|
66
66
|
`);return r?`Invalid syntax: unexpected token ${r}.${n?`
|
|
67
67
|
Expected one of the following:
|
|
68
|
-
${n}`:""}`:"Invalid syntax."}function lU(e){if("expected"in e&&Array.isArray(e.expected)){let t=e,r=new Set;return t.expected.filter(i=>i.type==="literal").reduce((i,o)=>(!r.has(o.text)&&!oU.has(o.text)&&(r.add(o.text),b8.includes(o.text)?i.push({category:"keywords",text:o.text}):_8.includes(o.text)?i.push({category:"operators",text:o.text}):x8.includes(o.text)&&i.push({category:"functions",text:o.text})),i),[])}return[]}var HC=-2;function cU(e,t){if(!Object.values(Ph).includes(t.type))return-1;switch(t.type){case"case-expression":return"else";case"when-clause":return e===t.operand?"operand":e===t.value?"value":-1;case"unary-expression":return"expr";case"binary-expression":return e===t.left?"left":e===t.right?"right":-1;case"function":return t.args.value.findIndex(r=>r===e);case"interval":return e===t.value?"value":e===t.qualifier?"qualifier":-1;case"interval-qualifier":return e===t.start?"start":e===t.end?"end":-1;case"expression-list":return"value";default:return-1}}var Pre=["boolean","column-reference","current-time","data-type","date","expression-list","interval-period","interval-qualifier","null","number","parameter","string","time","timestamp"];function ZC(e,t){let r=e;return Pre.includes(r.type)&&t.length>1?(r=t.at(HC),t.pop(),ZC(r,t)):r}function uU(e){let t=[];for(let r=0;r<e.length;r++)e[r]==="("?t.push(r):e[r]===")"&&t.length>0&&t.pop();for(;t.length>0;)e+=")",t.pop();return e}var Mre=["+","-","*","/","||"],Are=["cast","extract","substring","coalesce"],Z2=class{constructor(t,r){this.callStack=[];this._fields=[];this.markers=[];this._sdkFunctions=t.flatMap(n=>n.items),this._fields=r.profile?Uw(r.profile):[]}async validateModel(t){try{let{parseTree:r}=await m0(t,new Bm);this.traverse(r)}catch(r){this._handleParserFailure(r,t)}}traverse(t){this.callStack.push(t),this._validateNode(t),this._traverseChildren(t),this.callStack.pop()}_validateNode(t){if(t)switch(t.type){case"interval":{let r=t.value.value;if(!S8.test(r)||t.value.type!=="string"){let n=Dn("ExpectedNumericalLiteral"),i=this._getRange(t.value);vn(n,i,this.markers);return}return}case"interval-period":return;case"interval-qualifier":return;case"case-expression":if(t.clauses.length===0){if(t.else){let i=Dn("InvalidElseClause"),o={startLineNumber:t.elseLocation?.start.line??t.else.location.start.line,endLineNumber:t.elseLocation?.end.line??t.else.location.end.line,startColumn:t.elseLocation?.start.column??t.else.location.start.column,endColumn:t.elseLocation?.end.column??t.else.location.end.column};vn(i,o,this.markers);return}let r=Dn("EmptyCaseExpression"),n={startLineNumber:t.location.start.line,endLineNumber:t.location.end.line,startColumn:t.location.start.column,endColumn:t.location.end.column};vn(r,n,this.markers);return}return;case"parameter":return;case"column-reference":{if(Object.values(Fw).map(n=>n.toLowerCase()).includes(t.column.toLowerCase()))return;if(!this._fields.find(n=>n.name===t.column)){let n=Dn("UnknownField",{field:t.column});vn(n,t.location,this.markers,!0)}return}case"expression-list":{let r=t.value,n=new Set,i=this.callStack.at(HC);if(i?.type==="function"&&Are.includes(i?.name?.toLowerCase()))return;if(r.forEach(o=>{let s=dl(o,this._fields);if(s!=="column-reference"&&s!=="time-only"){if(s==="unknown_function"){let l=Dn("FunctionNotSupported",{function:o.name});vn(l,o.location,this.markers,!0);return}jx(s)&&(s="number"),n.has(s)||n.add(s)}}),n.size>1){let o=Array.from(n),s=Dn("IncompatibleListDataType",{types:qx(o,",")});vn(s,t.location,this.markers,!0)}return}case"binary-expression":{let r=this.callStack.length===1,n=t.left,i=t.right,o=dl(n,this._fields),s=dl(i,this._fields);if(r&&!Mre.includes(t.operator)){let l=`Cannot perform binary operation '${t.operator}' at root node.`;vn(l,t.location,this.markers,!0);return}switch(t.operator){case"AND":case"OR":pl(n,"BOOLEAN",this.markers,this._fields),pl(i,"BOOLEAN",this.markers,this._fields);break;case"IS":case"ISNOT":pl(i,"NULL",this.markers,this._fields);break;case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":pl(i,"EXPRESSION-LIST",this.markers,this._fields);break;case"LIKE":case"NOT LIKE":pl(i,"STRING",this.markers,this._fields);break;case"<>":case"<":case">":case">=":case"<=":case"=":{if(!Bx.includes(s)){let a=Dn("TypeNotAssignable",{providedType:Eo(s),expectedType:qx(Bx,",")});vn(a,i.location,this.markers,!0)}let l=Ih(o)&&Ih(s);if(o!==s&&!l){let a=Dn("MismatchedTypes",{leftValue:Su(n),providedType:o,rightValue:Su(i),expectedType:s});vn(a,t.location,this.markers,!0)}break}case"*":case"-":case"+":case"/":if(!Ih(o)||!Ih(s)){let l=Dn("MismatchedTypes",{leftValue:Su(n),providedType:o,rightValue:Su(i),expectedType:s});vn(l,t.location,this.markers,!0)}if(o!==s&&!Gx(n,i,this._fields)){let l=Dn("MismatchedTypes",{leftValue:Su(n),providedType:o,rightValue:Su(i),expectedType:s});vn(l,t.location,this.markers,!0)}if([o,s].every(l=>l==="date")&&!Gx(n,i,this._fields)){let l=Dn("InvalidDateArithmetic");vn(l,t.location,this.markers,!0)}break;case"||":pl(n,"STRING",this.markers,this._fields),pl(i,"STRING",this.markers,this._fields);break}return}case"function":{let r=this._getFunction(t.name);if(!r||["CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER"].includes(t.name.toUpperCase())){let n=Dn("FunctionNotSupported",{function:t.name});vn(n,t.location,this.markers,!0);return}if(r.type==="function"){let{min:n,max:i}=r.parametersInfo,{args:{value:o}}=t,s=o.length;if(s<n||i!==-1&&s>i){let l=Dn("IncorrectArgumentLength",{minParams:n,maxParams:i,numArgs:s});vn(l,t.location,this.markers)}}}return;case"null":case"boolean":case"string":case"timestamp":case"date":case"time":case"number":case"current-time":return;case"data-type":return;case"unary-expression":console.warn("Unexpected unary expression found.");return;case"when-clause":return}}_handleParserFailure(t,r){if(!H2(t))throw t;if(r.trim()===""){this.markers=[];return}let n=t,i=n.message;sU(n)&&(i=aU(n));let o={startLineNumber:n.location.start.line,endLineNumber:n.location.end.line,startColumn:n.location.start.column,endColumn:n.location.end.column};vn(i,o,this.markers)}_getRange(t){return{startLineNumber:t.location.start.line,endLineNumber:t.location.end.line,startColumn:t.location.start.column,endColumn:t.location.end.column}}_getFunction(t){return this._sdkFunctions.find(r=>r.name.toLowerCase()===t.toLowerCase())}_traverseChildren(t){if(t)switch(t.type){case"case-expression":{let r=sn[t.type];t.format==="simple"?r.forEach(n=>{let i=t[n];Array.isArray(i)?i.forEach(o=>{this.traverse(o)}):this.traverse(i)}):t.format==="searched"&&r.forEach(n=>{if(n==="operand")return;let i=t[n];Array.isArray(i)?i.forEach(o=>{this.traverse(o)}):this.traverse(i)})}break;case"when-clause":sn[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"expression-list":sn[t.type].forEach(n=>{let i=t[n];Array.isArray(i)?i.forEach(o=>{this.traverse(o)}):this.traverse(i)});break;case"unary-expression":sn[t.type].forEach(n=>{let i=t[n];Array.isArray(i)&&this.traverse(i)});break;case"binary-expression":sn[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"function":sn[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"interval":sn[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"interval-qualifier":sn[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;default:break}}};q2();qC();var wi={identifiers:"a",profileVariables:"aa",constants:"ab",literals:"ab",functions:"ac",operators:"ad",snippets:"b",keywords:"c"};function Ire(e){switch(e){case"functions":return an.Function;case"keywords":return an.Keyword;case"operators":return an.Operator}}var Y2=class{constructor(t,r){this._fields=[];this._sdkFunctions=t,this._fields=r}async getCompletions({range:t,modelContent:r,position:n,completionContext:i,terminateOnError:o=!1}){if(i??(i={range:t,modelContent:r,position:n,lowestNode:void 0,subTree:[],completionItems:[]}),r.length===0||r.trim().length===0)return this._suggestFields(i),this._suggestFunctions(i),this._suggestExpressions(i),this._suggestDateLiterals(i),i.completionItems;try{let s=new Bm,{parseTree:l}=await m0(r,s);return this.traverse(l,i),this._getCompletions(i),i.completionItems}catch(s){return o?[]:await this.handleParserFailure(s,n,t,i)}}traverse(t,r){let{position:n,subTree:i}=r;this._isPositionWithinNode(t,n)&&(i.push(t),r.lowestNode=t,this._traverseChildren(t,r))}_getCompletions(t){let{range:r,lowestNode:n,subTree:i}=t;if(!n)return[];let o=ZC(n,i);if(!o)return[];let s=cU(n,o);switch(o.type){case"case-expression":o.else||t.completionItems.push({label:"ELSE",kind:an.Keyword,insertText:"ELSE",sortText:"a",range:r});break;case"column-reference":this._suggestFields(t),this._suggestFunctions(t),this._suggestExpressions(t),this._suggestDateLiterals(t);break;case"function":this._getCompletionsFromFunction(o,s,t);break;case"interval":if(s==="qualifier"){this._suggestDatePeriods(t);break}else if(s==="value")break;break;case"binary-expression":this._suggestFields(t),this._suggestFunctions(t);break;case"string":case"number":case"boolean":case"when-clause":case"date":case"time":case"timestamp":case"current-time":case"null":case"expression-list":case"interval-period":case"interval-qualifier":case"data-type":case"parameter":case"unary-expression":break}return t.completionItems}async handleParserFailure(t,r,n,i){if(!H2(t))return i.completionItems;if(!this._isPositionWithinSQLSourcePosition(r,t.location)){let s=this._sliceToPosition(r,i.modelContent),l=uU(s);return await this.getCompletions({range:n,modelContent:l,position:r,completionContext:i,terminateOnError:!0})}return lU(t).forEach(s=>{i.completionItems.push({label:s.text,kind:Ire(s.category),insertText:s.text,sortText:wi[s.category],range:n})}),i.completionItems}_getCompletionsFromFunction(t,r,n){let{range:i}=n;switch(t.name.toUpperCase()){case"CAST":r===0?(this._suggestFields(n),this._suggestDateFunctions(n)):r===1?this._suggestDataTypes(n):t.args.value.length&&r===-1?n.completionItems.push({label:"AS",kind:an.Keyword,insertText:"AS",sortText:wi.keywords,range:i}):this._suggestFields(n);break;case"EXTRACT":r===0?this._suggestDatePeriods(n):r===1?(this._suggestFields(n),this._suggestDateLiterals(n),this._suggestDateFunctions(n)):t.args.value.length&&r===-1?n.completionItems.push({label:"FROM",kind:an.Keyword,insertText:"FROM",sortText:wi.keywords,range:i}):this._suggestDatePeriods(n);break;case"TRIM":r===0?this._suggestTrimParts(n):r===1?this._suggestTrimParts(n):r===2?this._suggestFields(n):t.args.value.length&&r===-1?n.completionItems.push({label:"FROM",kind:an.Keyword,insertText:"FROM",sortText:wi.keywords,range:i}):this._suggestTrimParts(n);break;case"COALESCE":this._suggestFields(n),this._suggestNull(n);break;case"CONCAT":this._suggestFields(n),this._suggestCurrentUser(n);break;case"POSITION":r===1&&this._suggestFields(n);break;case"ABS":case"ACOS":case"ASIN":case"ATAN":case"CEILING":case"CHAR_LENGTH":case"COS":case"FLOOR":case"LOG":case"LOG10":case"MOD":case"NULLIF":case"POWER":case"ROUND":case"SIGN":case"SIN":case"SUBSTRING":case"TAN":case"TRUNCATE":case"LOWER":case"UPPER":this._suggestFields(n);break;case"CURRENT_DATE":case"CURRENT_TIME":case"CURRENT_TIMESTAMP":case"CURRENT_USER":break}}_isPositionWithinNode(t,r){if(!t)return!1;let{start:n,end:i}=t.location;return!(r.lineNumber<n.line||r.lineNumber>i.line||r.lineNumber===n.line&&r.column<n.column||r.lineNumber===i.line&&r.column>i.column)}_isPositionWithinSQLSourcePosition(t,r){let{start:n,end:i}=r;return!(t.lineNumber<n.line||t.lineNumber>i.line||t.lineNumber===n.line&&t.column<n.column||t.lineNumber===i.line&&t.column>i.column)}_suggestFields(t){let{range:r}=t;this._fields.forEach(n=>{t.completionItems.push({label:n.name,kind:an.Field,insertText:n.name,documentation:n.completion?.documentation,detail:n.completion?.detail,sortText:wi.profileVariables,range:r})})}_suggestFunctions(t){let{range:r}=t;this._sdkFunctions.functionDefinitions.forEach(n=>{let{overloads:i}=n;i.forEach(o=>{t.completionItems.push({label:o.completion.label,kind:an.Function,insertText:o.completion.insertText||o.completion.label,insertTextRules:Mh.InsertAsSnippet,documentation:o.completion.documentation,detail:o.completion.detail,sortText:wi.functions,range:r})})})}_suggestDataTypes(t){let{range:r}=t;Rw.forEach(n=>{t.completionItems.push({label:n,kind:an.Keyword,insertText:n,sortText:wi.keywords,range:r})})}_suggestDatePeriods(t){let{range:r}=t;Ah.forEach(n=>{t.completionItems.push({label:n,kind:an.Keyword,insertText:n,sortText:wi.keywords,range:r})})}_suggestTrimParts(t){let{range:r}=t;Dw.forEach(n=>{t.completionItems.push({label:n,kind:an.Keyword,insertText:n,sortText:wi.keywords,range:r})})}_suggestDateLiterals(t){let{range:r}=t;v8.forEach(n=>{t.completionItems.push({label:n,kind:an.Keyword,insertText:n,sortText:wi.keywords,range:r})})}_suggestDateFunctions(t){let{range:r}=t;this._sdkFunctions.categories.find(i=>i.id==="date_functions")?.items.forEach(i=>{let o=i.name,s=this._sdkFunctions.functionDefinitions.get(o);if(!s)return;let{overloads:l}=s;l.forEach(a=>{t.completionItems.push({label:a.completion.label,kind:an.Function,insertText:a.completion.insertText||a.completion.label,insertTextRules:Mh.InsertAsSnippet,documentation:a.completion.documentation,detail:a.completion.detail,sortText:wi.functions,range:r})})})}_suggestExpressions(t){let{range:r}=t;t.completionItems.push({label:"CASE",kind:an.Keyword,insertText:"CASE\n WHEN ${1:condition_1_} THEN ${2:result_1_} \n ELSE ${3:result_2_}\nEND${0}",insertTextRules:Mh.InsertAsSnippet,sortText:wi.keywords,range:r})}_suggestNull(t){let{range:r}=t;t.completionItems.push({label:"NULL",kind:an.Keyword,insertText:"NULL",sortText:wi.keywords,range:r})}_suggestCurrentUser(t){let{range:r}=t,n=this._sdkFunctions.functionDefinitions.get("current_user");if(!n)return;let{overloads:i}=n;i?.forEach(o=>{t.completionItems.push({label:o.completion.label,kind:an.Function,insertText:o.completion.insertText||o.completion.label,insertTextRules:Mh.InsertAsSnippet,documentation:o.completion.documentation,detail:o.completion.detail,sortText:wi.functions,range:r})})}_traverseChildren(t,r){if(t)switch(t.type){case"case-expression":{let n=sn[t.type];t.format==="simple"?n.forEach(i=>{let o=t[i];Array.isArray(o)?o.forEach(s=>{this.traverse(s,r)}):this.traverse(o,r)}):t.format==="searched"&&n.forEach(i=>{if(i==="operand")return;let o=t[i];Array.isArray(o)?o.forEach(s=>{this.traverse(s,r)}):this.traverse(o,r)})}break;case"when-clause":sn[t.type].forEach(i=>{let o=t[i];this.traverse(o,r)});break;case"expression-list":sn[t.type].forEach(i=>{t[i].forEach(s=>{this.traverse(s,r)})});break;case"unary-expression":sn[t.type].forEach(i=>{let o=t[i];Array.isArray(o)&&this.traverse(o,r)});break;case"binary-expression":sn[t.type].forEach(i=>{let o=t[i];this.traverse(o,r)});break;case"function":sn[t.type].forEach(i=>{let o=t[i];this.traverse(o,r)});break;case"interval":sn[t.type].forEach(i=>{let o=t[i];this.traverse(o,r)});break;case"interval-qualifier":sn[t.type].forEach(i=>{let o=t[i];this.traverse(o,r)});break;default:break}}_sliceToPosition(t,r){let n=r.split(`
|
|
68
|
+
${n}`:""}`:"Invalid syntax."}function lU(e){if("expected"in e&&Array.isArray(e.expected)){let t=e,r=new Set;return t.expected.filter(i=>i.type==="literal").reduce((i,o)=>(!r.has(o.text)&&!oU.has(o.text)&&(r.add(o.text),b8.includes(o.text)?i.push({category:"keywords",text:o.text}):_8.includes(o.text)?i.push({category:"operators",text:o.text}):x8.includes(o.text)&&i.push({category:"functions",text:o.text})),i),[])}return[]}var HC=-2;function cU(e,t){if(!Object.values(Ph).includes(t.type))return-1;switch(t.type){case"case-expression":return"else";case"when-clause":return e===t.operand?"operand":e===t.value?"value":-1;case"unary-expression":return"expr";case"binary-expression":return e===t.left?"left":e===t.right?"right":-1;case"function":return t.args.value.findIndex(r=>r===e);case"interval":return e===t.value?"value":e===t.qualifier?"qualifier":-1;case"interval-qualifier":return e===t.start?"start":e===t.end?"end":-1;case"expression-list":return"value";default:return-1}}var Pre=["boolean","column-reference","current-time","data-type","date","expression-list","interval-period","interval-qualifier","null","number","parameter","string","time","timestamp"];function ZC(e,t){let r=e;return Pre.includes(r.type)&&t.length>1?(r=t.at(HC),t.pop(),ZC(r,t)):r}function uU(e){let t=[];for(let r=0;r<e.length;r++)e[r]==="("?t.push(r):e[r]===")"&&t.length>0&&t.pop();for(;t.length>0;)e+=")",t.pop();return e}var Mre=["+","-","*","/","||"],Are=["cast","extract","substring","coalesce"],Z2=class{constructor(t,r){this.callStack=[];this._fields=[];this.markers=[];this._sdkFunctions=t.flatMap(n=>n.items),this._fields=r.profile?Uw(r.profile):[]}async validateModel(t){try{let{parseTree:r}=await m0(t,new Bm);this.traverse(r)}catch(r){this._handleParserFailure(r,t)}}traverse(t){this.callStack.push(t),this._validateNode(t),this._traverseChildren(t),this.callStack.pop()}_validateNode(t){if(t)switch(t.type){case"interval":{let r=t.value.value;if(!S8.test(r)||t.value.type!=="string"){let n=Dn("ExpectedNumericalLiteral"),i=this._getRange(t.value);vn(n,i,this.markers);return}return}case"interval-period":return;case"interval-qualifier":return;case"case-expression":if(t.clauses.length===0){if(t.else){let i=Dn("InvalidElseClause"),o={startLineNumber:t.elseLocation?.start.line??t.else.location.start.line,endLineNumber:t.elseLocation?.end.line??t.else.location.end.line,startColumn:t.elseLocation?.start.column??t.else.location.start.column,endColumn:t.elseLocation?.end.column??t.else.location.end.column};vn(i,o,this.markers);return}let r=Dn("EmptyCaseExpression"),n={startLineNumber:t.location.start.line,endLineNumber:t.location.end.line,startColumn:t.location.start.column,endColumn:t.location.end.column};vn(r,n,this.markers);return}return;case"parameter":return;case"column-reference":{if(Object.values(Fw).map(n=>n.toLowerCase()).includes(t.column.toLowerCase()))return;if(!this._fields.find(n=>n.name===t.column)){let n=Dn("UnknownField",{field:t.column});vn(n,t.location,this.markers,!0)}return}case"expression-list":{let r=t.value,n=new Set,i=this.callStack.at(HC);if(i?.type==="function"&&Are.includes(i?.name?.toLowerCase()))return;if(r.forEach(o=>{let s=dl(o,this._fields);if(s!=="column-reference"&&s!=="time-only"){if(s==="unknown_function"){let l=Dn("FunctionNotSupported",{function:o.name});vn(l,o.location,this.markers,!0);return}jx(s)&&(s="number"),n.has(s)||n.add(s)}}),n.size>1){let o=Array.from(n),s=Dn("IncompatibleListDataType",{types:qx(o,",")});vn(s,t.location,this.markers,!0)}return}case"binary-expression":{let r=this.callStack.length===1,n=t.left,i=t.right,o=dl(n,this._fields),s=dl(i,this._fields);if(r&&!Mre.includes(t.operator)){let l=`Cannot perform binary operation '${t.operator}' at root node.`;vn(l,t.location,this.markers,!0);return}switch(t.operator){case"AND":case"OR":pl(n,"BOOLEAN",this.markers,this._fields),pl(i,"BOOLEAN",this.markers,this._fields);break;case"IS":case"ISNOT":pl(i,"NULL",this.markers,this._fields);break;case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":pl(i,"EXPRESSION-LIST",this.markers,this._fields);break;case"LIKE":case"NOT LIKE":pl(i,"STRING",this.markers,this._fields);break;case"<>":case"<":case">":case">=":case"<=":case"=":{if(!Bx.includes(s)){let a=Dn("TypeNotAssignable",{providedType:Eo(s),expectedType:qx(Bx,",")});vn(a,i.location,this.markers,!0)}let l=Ih(o)&&Ih(s);if(o!==s&&!l){let a=Dn("MismatchedTypes",{leftValue:Su(n),providedType:o,rightValue:Su(i),expectedType:s});vn(a,t.location,this.markers,!0)}break}case"*":case"-":case"+":case"/":if(!Ih(o)||!Ih(s)){let l=Dn("MismatchedTypes",{leftValue:Su(n),providedType:o,rightValue:Su(i),expectedType:s});vn(l,t.location,this.markers,!0)}if(o!==s&&!Gx(n,i,this._fields)){let l=Dn("MismatchedTypes",{leftValue:Su(n),providedType:o,rightValue:Su(i),expectedType:s});vn(l,t.location,this.markers,!0)}if([o,s].every(l=>l==="date")&&!Gx(n,i,this._fields)){let l=Dn("InvalidDateArithmetic");vn(l,t.location,this.markers,!0)}break;case"||":pl(n,"STRING",this.markers,this._fields),pl(i,"STRING",this.markers,this._fields);break}return}case"function":{let r=this._getFunction(t.name);if(!r||["CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER"].includes(t.name.toUpperCase())){let n=Dn("FunctionNotSupported",{function:t.name});vn(n,t.location,this.markers,!0);return}if(r.type==="function"){let{min:n,max:i}=r.parametersInfo,{args:{value:o}}=t,s=o.length;if(s<n||i!==-1&&s>i){let l=Dn("IncorrectArgumentLength",{minParams:n,maxParams:i,numArgs:s});vn(l,t.location,this.markers)}}}return;case"null":case"boolean":case"string":case"timestamp":case"date":case"time":case"number":case"current-time":return;case"data-type":return;case"unary-expression":console.warn("Unexpected unary expression found.");return;case"when-clause":return}}_handleParserFailure(t,r){if(!H2(t))throw t;if(r.trim()===""){this.markers=[];return}let n=t,i=n.message;sU(n)&&(i=aU(n));let o={startLineNumber:n.location.start.line,endLineNumber:n.location.end.line,startColumn:n.location.start.column,endColumn:n.location.end.column};vn(i,o,this.markers)}_getRange(t){return{startLineNumber:t.location.start.line,endLineNumber:t.location.end.line,startColumn:t.location.start.column,endColumn:t.location.end.column}}_getFunction(t){return this._sdkFunctions.find(r=>r.name.toLowerCase()===t.toLowerCase())}_traverseChildren(t){if(t)switch(t.type){case"case-expression":{let r=sn[t.type];t.format==="simple"?r.forEach(n=>{let i=t[n];i&&(Array.isArray(i)?i.forEach(o=>{this.traverse(o)}):this.traverse(i))}):t.format==="searched"&&r.forEach(n=>{if(n==="operand")return;let i=t[n];i&&(Array.isArray(i)?i.forEach(o=>{this.traverse(o)}):this.traverse(i))})}break;case"when-clause":sn[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"expression-list":sn[t.type].forEach(n=>{let i=t[n];Array.isArray(i)?i.forEach(o=>{this.traverse(o)}):this.traverse(i)});break;case"unary-expression":sn[t.type].forEach(n=>{let i=t[n];Array.isArray(i)&&this.traverse(i)});break;case"binary-expression":sn[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"function":sn[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"interval":sn[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"interval-qualifier":sn[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;default:break}}};q2();qC();var wi={identifiers:"a",profileVariables:"aa",constants:"ab",literals:"ab",functions:"ac",operators:"ad",snippets:"b",keywords:"c"};function Ire(e){switch(e){case"functions":return an.Function;case"keywords":return an.Keyword;case"operators":return an.Operator}}var Y2=class{constructor(t,r){this._fields=[];this._sdkFunctions=t,this._fields=r}async getCompletions({range:t,modelContent:r,position:n,completionContext:i,terminateOnError:o=!1}){if(i??(i={range:t,modelContent:r,position:n,lowestNode:void 0,subTree:[],completionItems:[]}),r.length===0||r.trim().length===0)return this._suggestFields(i),this._suggestFunctions(i),this._suggestExpressions(i),this._suggestDateLiterals(i),i.completionItems;try{let s=new Bm,{parseTree:l}=await m0(r,s);return this.traverse(l,i),this._getCompletions(i),i.completionItems}catch(s){return o?[]:await this.handleParserFailure(s,n,t,i)}}traverse(t,r){let{position:n,subTree:i}=r;this._isPositionWithinNode(t,n)&&(i.push(t),r.lowestNode=t,this._traverseChildren(t,r))}_getCompletions(t){let{range:r,lowestNode:n,subTree:i}=t;if(!n)return[];let o=ZC(n,i);if(!o)return[];let s=cU(n,o);switch(o.type){case"case-expression":o.else||t.completionItems.push({label:"ELSE",kind:an.Keyword,insertText:"ELSE",sortText:"a",range:r});break;case"column-reference":this._suggestFields(t),this._suggestFunctions(t),this._suggestExpressions(t),this._suggestDateLiterals(t);break;case"function":this._getCompletionsFromFunction(o,s,t);break;case"interval":if(s==="qualifier"){this._suggestDatePeriods(t);break}else if(s==="value")break;break;case"binary-expression":this._suggestFields(t),this._suggestFunctions(t);break;case"string":case"number":case"boolean":case"when-clause":case"date":case"time":case"timestamp":case"current-time":case"null":case"expression-list":case"interval-period":case"interval-qualifier":case"data-type":case"parameter":case"unary-expression":break}return t.completionItems}async handleParserFailure(t,r,n,i){if(!H2(t))return i.completionItems;if(!this._isPositionWithinSQLSourcePosition(r,t.location)){let s=this._sliceToPosition(r,i.modelContent),l=uU(s);return await this.getCompletions({range:n,modelContent:l,position:r,completionContext:i,terminateOnError:!0})}return lU(t).forEach(s=>{i.completionItems.push({label:s.text,kind:Ire(s.category),insertText:s.text,sortText:wi[s.category],range:n})}),i.completionItems}_getCompletionsFromFunction(t,r,n){let{range:i}=n;switch(t.name.toUpperCase()){case"CAST":r===0?(this._suggestFields(n),this._suggestDateFunctions(n)):r===1?this._suggestDataTypes(n):t.args.value.length&&r===-1?n.completionItems.push({label:"AS",kind:an.Keyword,insertText:"AS",sortText:wi.keywords,range:i}):this._suggestFields(n);break;case"EXTRACT":r===0?this._suggestDatePeriods(n):r===1?(this._suggestFields(n),this._suggestDateLiterals(n),this._suggestDateFunctions(n)):t.args.value.length&&r===-1?n.completionItems.push({label:"FROM",kind:an.Keyword,insertText:"FROM",sortText:wi.keywords,range:i}):this._suggestDatePeriods(n);break;case"TRIM":r===0?this._suggestTrimParts(n):r===1?this._suggestTrimParts(n):r===2?this._suggestFields(n):t.args.value.length&&r===-1?n.completionItems.push({label:"FROM",kind:an.Keyword,insertText:"FROM",sortText:wi.keywords,range:i}):this._suggestTrimParts(n);break;case"COALESCE":this._suggestFields(n),this._suggestNull(n);break;case"CONCAT":this._suggestFields(n),this._suggestCurrentUser(n);break;case"POSITION":r===1&&this._suggestFields(n);break;case"ABS":case"ACOS":case"ASIN":case"ATAN":case"CEILING":case"CHAR_LENGTH":case"COS":case"FLOOR":case"LOG":case"LOG10":case"MOD":case"NULLIF":case"POWER":case"ROUND":case"SIGN":case"SIN":case"SUBSTRING":case"TAN":case"TRUNCATE":case"LOWER":case"UPPER":this._suggestFields(n);break;case"CURRENT_DATE":case"CURRENT_TIME":case"CURRENT_TIMESTAMP":case"CURRENT_USER":break}}_isPositionWithinNode(t,r){if(!t)return!1;let{start:n,end:i}=t.location;return!(r.lineNumber<n.line||r.lineNumber>i.line||r.lineNumber===n.line&&r.column<n.column||r.lineNumber===i.line&&r.column>i.column)}_isPositionWithinSQLSourcePosition(t,r){let{start:n,end:i}=r;return!(t.lineNumber<n.line||t.lineNumber>i.line||t.lineNumber===n.line&&t.column<n.column||t.lineNumber===i.line&&t.column>i.column)}_suggestFields(t){let{range:r}=t;this._fields.forEach(n=>{t.completionItems.push({label:n.name,kind:an.Field,insertText:n.name,documentation:n.completion?.documentation,detail:n.completion?.detail,sortText:wi.profileVariables,range:r})})}_suggestFunctions(t){let{range:r}=t;this._sdkFunctions.functionDefinitions.forEach(n=>{let{overloads:i}=n;i.forEach(o=>{t.completionItems.push({label:o.completion.label,kind:an.Function,insertText:o.completion.insertText||o.completion.label,insertTextRules:Mh.InsertAsSnippet,documentation:o.completion.documentation,detail:o.completion.detail,sortText:wi.functions,range:r})})})}_suggestDataTypes(t){let{range:r}=t;Rw.forEach(n=>{t.completionItems.push({label:n,kind:an.Keyword,insertText:n,sortText:wi.keywords,range:r})})}_suggestDatePeriods(t){let{range:r}=t;Ah.forEach(n=>{t.completionItems.push({label:n,kind:an.Keyword,insertText:n,sortText:wi.keywords,range:r})})}_suggestTrimParts(t){let{range:r}=t;Dw.forEach(n=>{t.completionItems.push({label:n,kind:an.Keyword,insertText:n,sortText:wi.keywords,range:r})})}_suggestDateLiterals(t){let{range:r}=t;v8.forEach(n=>{t.completionItems.push({label:n,kind:an.Keyword,insertText:n,sortText:wi.keywords,range:r})})}_suggestDateFunctions(t){let{range:r}=t;this._sdkFunctions.categories.find(i=>i.id==="date_functions")?.items.forEach(i=>{let o=i.name,s=this._sdkFunctions.functionDefinitions.get(o);if(!s)return;let{overloads:l}=s;l.forEach(a=>{t.completionItems.push({label:a.completion.label,kind:an.Function,insertText:a.completion.insertText||a.completion.label,insertTextRules:Mh.InsertAsSnippet,documentation:a.completion.documentation,detail:a.completion.detail,sortText:wi.functions,range:r})})})}_suggestExpressions(t){let{range:r}=t;t.completionItems.push({label:"CASE",kind:an.Keyword,insertText:"CASE\n WHEN ${1:condition_1_} THEN ${2:result_1_} \n ELSE ${3:result_2_}\nEND${0}",insertTextRules:Mh.InsertAsSnippet,sortText:wi.keywords,range:r})}_suggestNull(t){let{range:r}=t;t.completionItems.push({label:"NULL",kind:an.Keyword,insertText:"NULL",sortText:wi.keywords,range:r})}_suggestCurrentUser(t){let{range:r}=t,n=this._sdkFunctions.functionDefinitions.get("current_user");if(!n)return;let{overloads:i}=n;i?.forEach(o=>{t.completionItems.push({label:o.completion.label,kind:an.Function,insertText:o.completion.insertText||o.completion.label,insertTextRules:Mh.InsertAsSnippet,documentation:o.completion.documentation,detail:o.completion.detail,sortText:wi.functions,range:r})})}_traverseChildren(t,r){if(t)switch(t.type){case"case-expression":{let n=sn[t.type];t.format==="simple"?n.forEach(i=>{let o=t[i];o&&(Array.isArray(o)?o.forEach(s=>{this.traverse(s,r)}):this.traverse(o,r))}):t.format==="searched"&&n.forEach(i=>{if(i==="operand")return;let o=t[i];o&&(Array.isArray(o)?o.forEach(s=>{this.traverse(s,r)}):this.traverse(o,r))})}break;case"when-clause":sn[t.type].forEach(i=>{let o=t[i];this.traverse(o,r)});break;case"expression-list":sn[t.type].forEach(i=>{t[i].forEach(s=>{this.traverse(s,r)})});break;case"unary-expression":sn[t.type].forEach(i=>{let o=t[i];Array.isArray(o)&&this.traverse(o,r)});break;case"binary-expression":sn[t.type].forEach(i=>{let o=t[i];this.traverse(o,r)});break;case"function":sn[t.type].forEach(i=>{let o=t[i];this.traverse(o,r)});break;case"interval":sn[t.type].forEach(i=>{let o=t[i];this.traverse(o,r)});break;case"interval-qualifier":sn[t.type].forEach(i=>{let o=t[i];this.traverse(o,r)});break;default:break}}_sliceToPosition(t,r){let n=r.split(`
|
|
69
69
|
`),{lineNumber:i,column:o}=t;if(i<1||i>n.length)throw new Error("Line number out of bounds");let s=n[i-1];if(s===void 0)throw new Error("Line is undefined");if(o<1||o>s.length+1)throw new Error("Column out of bounds");let l=n.slice(0,i);return l[l.length-1]=s.slice(0,o-1),l.join(`
|
|
70
70
|
`)}};globalThis.onmessage=()=>{Px((e,t)=>new YC(e,t))};var YC=class{constructor(t,{languageId:r}){this._ctx=t;this._languageId=r,this._apiService=new y8({getApiLibrary:this._ctx.host.getApiLibrary})}async doValidation(t,r){let n=this._getTextDocument(t);if(!n)return await Promise.resolve([]);let i=await this.getApiLibrary(r),o=new Z2(i,r);return await o.validateModel(n.getText()),await Promise.resolve(o.markers)}async doComplete(t,r,n,i){let o=this._getTextDocument(t);if(!o)return await Promise.resolve({suggestions:[]});let s=o.getText(),l=await this.getApiDatabase(i),a=i.profile?Uw(i.profile):[],h=await new Y2(l,a).getCompletions({range:r,modelContent:s,position:n});return await Promise.resolve({suggestions:h})}async getApiLibrary(t){return await this._apiService.getApiLibrary(t)}async getApiDatabase(t){return await this._apiService.getApiDatabase(t)}_getTextDocument(t){let r=this._ctx.getMirrorModels();for(let n of r)if(n.uri.toString()===t)return Aw.create(t,this._languageId,n.version,n.getValue());return null}};})();
|
|
71
71
|
/*! Bundled license information:
|