UNPKG

@arcgis/coding-components

Version:

Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.

1 lines • 1.23 MB
"use strict";(()=>{var _U=Object.defineProperty;var uC=(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 dC=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vo=(e,t)=>{for(var r in t)_U(e,r,{get:t[r],enumerable:!0})};function bz(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 vz(e,t,r){let{subscribe:n}=_z(t);return n(i=>{i.some(s=>bz(e,s.target))&&r()})}function _z(e){let t=e.join(","),r=H2[t];if(r!==void 0)return r;let n=new Set,i=new MutationObserver(s=>n.forEach(c=>c(s)));globalThis.document&&i.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let o={subscribe(s){return n.add(s),()=>{n.delete(s),n.size===0&&(i.disconnect(),H2[t]=void 0)}}};return H2[t]=o,o}function Sz(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 xz(e,t,r){return Sz(e,`[${t}]`)?.getAttribute(t)??r}function Tt(e,t,...r){try{return e?.call(t,...r)}catch(n){console.error(n,e)}}async function qm(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 Pz(e,t,r=""){let n=`${t}/${r}`,i=`${n}${e}.json`;return Z2[i]??(Z2[i]=e6(e,n)),await Z2[i]}async function e6(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===j0?{}:await e6(j0,t)}function Y2(e){let t=xz(e,"lang",globalThis.navigator?.language||j0);return{lang:t,t9nLocale:t6(t)}}function t6(e){let[t,r]=e.split("-"),n=t.toLowerCase(),i=n;return r&&(i=`${n}-${r.toUpperCase()}`),i=Tz[i]??i,Cz.has(i)?i:r?t6(n):j0}function r6(e,t,r,n){let i,o=()=>void Mz(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 queueMicrotask(o),vz(e,["lang"],o)}async function Mz(e,t,r=e.tagName.toLowerCase().split("-").slice(1).join("-")){let{lang:n,t9nLocale:i}=Y2(e),o=`${t}/${r}/t9n`,c=r===null?{}:await Pz(i,o,"messages.");return{lang:n,t9nLocale:i,t9nStrings:c}}function n6(e,t){let r=t>Iz?Lz:t/kz,n=0,i=setInterval(()=>{n+=r,n>=t&&(clearInterval(i),e())},r);return i}function i6(e){return e!==void 0}var eo,H2,Ez,Cz,j0,Tz,Z2,q0,Az,Iz,Lz,kz,to=N(()=>{"use strict";eo=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};H2={};Ez=["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"],Cz=new Set(Ez),j0="en",Tz={pt:"pt-PT",nb:"no",zh:"zh-CN"};Z2={};q0=e=>e.replace(Az,(t,r)=>`${r===0?"":"-"}${t.toLowerCase()}`),Az=/[A-Z]+(?![a-z])|[A-Z]/gu;Iz=4e3,Lz=2e3,kz=4});function de(e){return typeof ka[e]=="function"?ka[e]=ka[e](globalThis):ka[e]}var ka,Ut=N(()=>{ka=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},de.add=(e,t,r,n)=>{(n||ka[e]===void 0)&&(ka[e]=t),r&&de(e)},de.cache=ka,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",c=parseFloat(s.replace(/_/,".").replaceAll("_",""));de.add(o,c),de.add("ios",c)}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-concurrency-hosted",16),de.add("request-queue-concurrency-non-hosted",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.add("view-readyState-waiting-delay",1e3),de.add("gradient-depth-bias",.01),de.add("gradient-depth-epsilon",1e-8),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 J2=N(()=>{Ut()});var $l,Oa=N(()=>{$l=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}};$l._m=2147483647,$l._a=48271,$l._c=0});function Z0(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 X2(e,t,r,n){n=n||o6;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 s6(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;ro.clear();for(let c=0;c<n;++c)ro.add(t[c]);i=i||o6;let s=Math.max(0,i.last-10);for(let c=s;c<r;++c)if(ro.has(e[c])&&(o?.push(e[c]),ro.delete(e[c]),e[c]=e[r-1],--r,--c,ro.size===0||r===0))return ro.clear(),r;for(let c=0;c<s;++c)if(ro.has(e[c])&&(o?.push(e[c]),ro.delete(e[c]),e[c]=e[r-1],--r,--c,ro.size===0||r===0))return ro.clear(),r;return ro.clear(),r}function a6(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function c6(e,t){return e!=null}var Nz,vse,Hm,o6,ro,_se,Pp=N(()=>{J2();Oa();Nz=1.5,vse=1/Nz;Hm=class{constructor(){this.last=0}},o6=new Hm;ro=new Set;_se=new $l});var Q2,K2,l6=N(()=>{(function(e){let t=(o,s,c,a)=>{let d=s,h=s,g=c>>>1,v=o[d-1];for(;h<=g;){h=d<<1,h<c&&a(o[h-1],o[h])<0&&++h;let E=o[h-1];if(a(E,v)<=0)break;o[d-1]=E,d=h}o[d-1]=v},r=(o,s)=>o<s?-1:o>s?1:0;function n(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)t(o,h,c,a);let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,t(o,d,h,a)}}function*i(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)t(o,h,c,a),yield;let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,t(o,d,h,a),yield}}e.sort=n,e.iterableSort=i})(Q2||(Q2={}));K2=Q2});function u6(e){e.data.length>Rz*e.length&&(e.data.length=Math.floor(e.length*Dz))}var Rz,Dz,Na,eS=N(()=>{Pp();J2();l6();Rz=1.5,Dz=1.1,Na=class{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new Hm,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),t.deallocator!==void 0&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>u6(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){let r=new Array;for(let n=0;n<this._length;n++){let i=this.data[n];t(i)&&r.push(i)}return r}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,r){let n=this.data.indexOf(t,r);return n!==-1&&n<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let r=t;r<this._length;++r)this.data[r]=this._deallocator(this.data[r]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,r=t.length){for(let n=0;n<r;n++)this.data[this._length++]=t[n]}fill(t,r){for(let n=0;n<r;n++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,u6(this)}pop(){if(this.length===0)return;let t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){let r=X2(this.data,t,this.length,this._hint);if(r!==-1)return this.data.splice(r,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex(X2(this.data,t,this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,r=t.length,n){this.length=s6(this.data,t,this.length,r,this._hint,n),this._shrink()}front(){if(this.length!==0)return this.data[0]}back(){if(this.length!==0)return this.data[this.length-1]}swapElements(t,r){if(t>=this.length||r>=this.length||t===r)return;let n=this.data[t];this.data[t]=this.data[r],this.data[r]=n}sort(t){K2.sort(this.data,0,this.length,t)}iterableSort(t){return K2.iterableSort(this.data,0,this.length,t)}some(t,r){for(let n=0;n<this.length;++n)if(t.call(r,this.data[n],n,this.data))return!0;return!1}find(t,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)if(t.call(r,n[o]))return n[o]}filterInPlace(t,r){let n=0;for(let i=0;i<this._length;++i){let o=this.data[i];t.call(r,o,i,this.data)&&(this.data[i]=this.data[n],this.data[n]=o,n++)}if(this._deallocator)for(let i=n;i<this._length;i++)this.data[i]=this._deallocator(this.data[i]);return this._length=n,this._shrink(),this}forAll(t,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)t.call(r,n[o],o,n)}forEach(t,r){this.data.slice(0,this.length).forEach(t,r)}map(t,r){let n=new Array(this.length);for(let i=0;i<this.length;++i)n[i]=t.call(r,this.data[i],i,this.data);return n}reduce(t,r){let n=r;for(let i=0;i<this.length;++i)n=t(n,this.data[i],i,this.data);return n}has(t){let r=this.length,n=this.data;for(let i=0;i<r;++i)if(n[i]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}});var tS,Fz,As,Y0,rS,d6=N(()=>{eS();tS=-3,Fz=tS-1;(function(e){e[e.ALL=0]="ALL",e[e.SOME=1]="SOME"})(As||(As={}));Y0=class{get size(){return this._size}constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new Na,this._users=new Na}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear()}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,r){this._removeFuncs.push([t,r])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace(r=>r[0]!==t)}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}getSize(t,r){return this._db.get(t.id+r)?.size??0}put(t,r,n,i,o){r=t.id+r;let s=this._db.get(r);if(s&&(this._size-=s.size,t.size-=s.size,this._db.delete(r),s.entry!==n&&this._notifyRemove(r,s.entry,s.size,As.ALL)),i>this._maxSize)return void this._notifyRemove(r,n,i,As.ALL);if(n===void 0)return void console.warn("Refusing to cache undefined entry ");if(!i||i<0)return console.warn(`Refusing to cache entry with size ${i} for key ${r}`),void this._notifyRemove(r,n,0,As.ALL);let c=1+Math.max(o,Fz)-tS;this._db.set(r,new rS(n,i,c)),this._size+=i,t.size+=i,this._checkSize()}updateSize(t,r,n,i){r=t.id+r;let o=this._db.get(r);if(o&&o.entry===n){for(this._size-=o.size,t.size-=o.size;i>this._maxSize;){let s=this._notifyRemove(r,n,i,As.SOME);if(!(s!=null&&s>0))return void this._db.delete(r);i=s}o.size=i,this._size+=i,t.size+=i,this._checkSize()}}pop(t,r){r=t.id+r;let n=this._db.get(r);if(n)return this._size-=n.size,t.size-=n.size,this._db.delete(r),++this._hit,n.entry;++this._miss}get(t,r){r=t.id+r;let n=this._db.get(r);if(n!==void 0)return this._db.delete(r),n.lives=n.lifetime,this._db.set(r,n),++this._hit,n.entry;++this._miss}peek(t,r){let n=this._db.get(t.id+r);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){let t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},r={},n=new Array;this._db.forEach((s,c)=>{let a=s.lifetime;n[a]=(n[a]||0)+s.size,this._users.forAll(d=>{let{id:h,name:g}=d;if(c.startsWith(h)){let v=r[g]||0;r[g]=v+s.size}})});let i={};this._users.forAll(s=>{let c=s.name;if("hitRate"in s&&typeof s.hitRate=="number"&&!isNaN(s.hitRate)&&s.hitRate>0){let a=r[c]||0;r[c]=a,i[c]=Math.round(100*s.hitRate)+"%"}else i[c]="0%"});let o=Object.keys(r);o.sort((s,c)=>r[c]-r[s]),o.forEach(s=>t[s]=Math.round(r[s]/2**20)+"MB / "+i[s]);for(let s=n.length-1;s>=0;--s){let c=n[s];c&&(t["Priority "+(s+tS-1)]=Math.round(c/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll(t=>t.resetHitRate())}clear(t){let r=t.id;this._db.forEach((n,i)=>{i.startsWith(r)&&(this._size-=n.size,this._db.delete(i),this._notifyRemove(i,n.entry,n.size,As.ALL))}),t.size=0}clearAll(){this._db.forEach((t,r)=>this._notifyRemove(r,t.entry,t.size,As.ALL)),this._users.forAll(t=>t.size=0),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,r,n,i){let o;return this._removeFuncs.some(s=>{if(t.startsWith(s[0])){let c=s[1](r,i,n);return typeof c=="number"&&(o=c),!0}return!1}),o}_checkSize(){this._users.forAll(t=>this._checkSizeLimits(t)),this._checkSizeLimits()}_checkSizeLimits(t){let r=t??this;if(r.maxSize<0||r.size<=r.maxSize)return;let n=t?.id,i=!0;for(;i;){i=!1;for(let[o,s]of this._db)if(s.lifetime===0&&(!n||o.startsWith(n))){if(this._purgeItem(o,s,t),r.size<=.9*r.maxSize)return;i||(i=this._db.has(o))}}for(let[o,s]of this._db)if((!n||o.startsWith(n))&&(this._purgeItem(o,s,t),r.size<=.9*r.maxSize))return}_purgeItem(t,r,n=this._users.find(i=>t.startsWith(i.id))){if(this._db.delete(t),r.lives<=1){this._size-=r.size,n&&(n.size-=r.size);let i=this._notifyRemove(t,r.entry,r.size,As.SOME);i!=null&&i>0&&(this._size+=i,n&&(n.size+=i),r.lives=r.lifetime,r.size=i,this._db.set(t,r))}else--r.lives,this._db.set(t,r)}},rS=class{constructor(t,r,n){this.entry=t,this.size=r,this.lifetime=n,this.lives=n}}});var Zm,p6=N(()=>{d6();Zm=class{constructor(t,r){this._storage=new Y0,this.id="",this.name="",this.size=0,this._storage.maxSize=t,this._storage.register(this),r&&this._storage.registerRemoveFunc("",r)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,r,n=1){this._storage.put(this,t,r,n,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}});function f6(e){return e?.constructor?.name==="Int8Array"}function m6(e){return e?.constructor?.name==="Uint8Array"}function h6(e){return e?.constructor?.name==="Uint8ClampedArray"}function g6(e){return e?.constructor?.name==="Int16Array"}function w6(e){return e?.constructor?.name==="Uint16Array"}function y6(e){return e?.constructor?.name==="Int32Array"}function b6(e){return e?.constructor?.name==="Uint32Array"}function v6(e){return e?.constructor?.name==="Float32Array"}function _6(e){return e?.constructor?.name==="Float64Array"}var S6=N(()=>{Ut()});function J0(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&J0(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function Vt(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=zz(e);if(t!=null)return t;if($z(e))return e.clone();if(Uz(e))return e.map(Vt);if(Vz(e))throw new Error("Trying to clone an unclonable Accessor instance");let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=Vt(e[n]);return r}function $z(e){return typeof e.clone=="function"}function Uz(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function Vz(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function x6(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function zz(e){if(f6(e)||m6(e)||h6(e)||g6(e)||w6(e)||y6(e)||b6(e)||v6(e)||_6(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,Vt(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(Vt(r));return t}return null}function Ym(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 X0(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)&&Z0(e,t):e instanceof Set?t instanceof Set&&Bz(e,t):e instanceof Map?t instanceof Map&&Gz(e,t):!!x6(e)&&x6(t)&&Wz(e,t))}function Wz(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 Bz(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Gz(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 xn=N(()=>{Pp();S6()});function E6(e,t,r=!1){return T6(e,t,r)}function Ti(e,t){if(t!=null)return t[e]||C6(e.split("."),!1,t)}function Is(e,t,r){let n=e.split("."),i=n.pop(),o=C6(n,!0,r);o&&i&&(o[i]=t)}function C6(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 T6(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]=Vt(s),n):(Array.isArray(s)||Array.isArray(n)?(o=o?Array.isArray(o)?n[i]=o.slice():n[i]=[o]:n[i]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(c=>{o.includes(c)||o.push(c)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=T6(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var Ho=N(()=>{xn()});function P6(e){return e??""}function Zo(e,t){return t?e.replaceAll(jz,typeof t=="object"?(r,n)=>P6(Ti(n,t)):(r,n)=>P6(t(n))):e}function M6(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function A6(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var jz,Ra=N(()=>{Ho();jz=/\{([^}]+)\}/g});var Ls,Q0,K0,ew,no,Mp,ur,io,Da=N(()=>{Ls=class extends Error{},Q0=class extends Ls{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},K0=class extends Ls{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},ew=class extends Ls{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},no=class extends Ls{},Mp=class extends Ls{constructor(t){super(`Invalid unit ${t}`)}},ur=class extends Ls{},io=class extends Ls{constructor(){super("Zone is an abstract class")}}});var Ie,oo,li,Fa,Jm,nS,Xm,Qm,Km,eh,th,rh,nh,ih,oh,sh,ah,ch,lh,uh,iS,dh,ph,fh,mh,hh=N(()=>{Ie="numeric",oo="short",li="long",Fa={year:Ie,month:Ie,day:Ie},Jm={year:Ie,month:oo,day:Ie},nS={year:Ie,month:oo,day:Ie,weekday:oo},Xm={year:Ie,month:li,day:Ie},Qm={year:Ie,month:li,day:Ie,weekday:li},Km={hour:Ie,minute:Ie},eh={hour:Ie,minute:Ie,second:Ie},th={hour:Ie,minute:Ie,second:Ie,timeZoneName:oo},rh={hour:Ie,minute:Ie,second:Ie,timeZoneName:li},nh={hour:Ie,minute:Ie,hourCycle:"h23"},ih={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23"},oh={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23",timeZoneName:oo},sh={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23",timeZoneName:li},ah={year:Ie,month:Ie,day:Ie,hour:Ie,minute:Ie},ch={year:Ie,month:Ie,day:Ie,hour:Ie,minute:Ie,second:Ie},lh={year:Ie,month:oo,day:Ie,hour:Ie,minute:Ie},uh={year:Ie,month:oo,day:Ie,hour:Ie,minute:Ie,second:Ie},iS={year:Ie,month:oo,day:Ie,weekday:oo,hour:Ie,minute:Ie},dh={year:Ie,month:li,day:Ie,hour:Ie,minute:Ie,timeZoneName:oo},ph={year:Ie,month:li,day:Ie,hour:Ie,minute:Ie,second:Ie,timeZoneName:oo},fh={year:Ie,month:li,day:Ie,weekday:li,hour:Ie,minute:Ie,timeZoneName:li},mh={year:Ie,month:li,day:Ie,weekday:li,hour:Ie,minute:Ie,second:Ie,timeZoneName:li}});var xr,Ul=N(()=>{Da();xr=class{get type(){throw new io}get name(){throw new io}get ianaName(){return this.name}get isUniversal(){throw new io}offsetName(t,r){throw new io}formatOffset(t,r){throw new io}offset(t){throw new io}equals(t){throw new io}get isValid(){throw new io}}});var oS,$a,rw=N(()=>{Rn();Ul();oS=null,$a=class e extends xr{static get instance(){return oS===null&&(oS=new e),oS}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return nw(t,r,n)}formatOffset(t,r){return Ua(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function qz(e){return ow[e]||(ow[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ow[e]}function Zz(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,c,a,d,h]=n;return[s,i,o,c,a,d,h]}function Yz(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=Hz[o];o==="era"?n[c]=s:je(c)||(n[c]=parseInt(s,10))}return n}var ow,Hz,iw,dr,Va=N(()=>{Rn();Ul();ow={};Hz={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};iw={},dr=class e extends xr{static create(t){return iw[t]||(iw[t]=new e(t)),iw[t]}static resetCache(){iw={},ow={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return nw(t,r,n,this.name)}formatOffset(t,r){return Ua(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=qz(this.name),[i,o,s,c,a,d,h]=n.formatToParts?Yz(n,r):Zz(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=Ap({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),E=+r,M=E%1e3;return E-=M>=0?M:1e3+M,(v-E)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function Jz(e,t={}){let r=JSON.stringify([e,t]),n=I6[r];return n||(n=new Intl.ListFormat(e,t),I6[r]=n),n}function aS(e,t={}){let r=JSON.stringify([e,t]),n=sS[r];return n||(n=new Intl.DateTimeFormat(e,t),sS[r]=n),n}function Xz(e,t={}){let r=JSON.stringify([e,t]),n=cS[r];return n||(n=new Intl.NumberFormat(e,t),cS[r]=n),n}function Qz(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=lS[i];return o||(o=new Intl.RelativeTimeFormat(e,t),lS[i]=o),o}function Kz(){return gh||(gh=new Intl.DateTimeFormat().resolvedOptions().locale,gh)}function eW(e){let t=L6[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,L6[e]=t}return t}function tW(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=aS(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=aS(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function rW(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function nW(e){let t=[];for(let r=1;r<=12;r++){let n=Te.utc(2009,r,1);t.push(e(n))}return t}function iW(e){let t=[];for(let r=1;r<=7;r++){let n=Te.utc(2016,11,13+r);t.push(e(n))}return t}function sw(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function oW(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 I6,sS,cS,lS,gh,L6,uS,dS,pS,sW,ht,yh=N(()=>{Rn();lw();za();Wa();Va();I6={};sS={};cS={};lS={};gh=null;L6={};uS=class{constructor(t,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:o,...s}=n;if(!r||Object.keys(s).length>0){let c={useGrouping:!1,...n};n.padTo>0&&(c.minimumIntegerDigits=n.padTo),this.inf=Xz(t,c)}}format(t){if(this.inf){let r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{let r=this.floor?Math.floor(t):Ip(t,3);return or(r,this.padTo)}}},dS=class{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),c=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&dr.create(c).valid?(i=c,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=aS(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()}},pS=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&aw()&&(this.rtf=Qz(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):k6(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},sW={firstDay:1,minimalDays:4,weekend:[6,7]},ht=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||mt.defaultLocale,c=s||(o?"en-US":Kz()),a=r||mt.defaultNumberingSystem,d=n||mt.defaultOutputCalendar,h=wh(i)||mt.defaultWeekSettings;return new e(c,a,d,h,s)}static resetCache(){gh=null,sS={},cS={},lS={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return e.create(t,r,n,i)}constructor(t,r,n,i,o){let[s,c,a]=tW(t);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=rW(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=oW(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,wh(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,r=!1){return sw(this,t,fS,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=nW(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return sw(this,t,mS,()=>{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]=iW(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return sw(this,void 0,()=>hS,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Te.utc(2016,11,13,9),Te.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return sw(this,t,gS,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Te.utc(-40,1,1),Te.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){let i=this.dtFormatter(t,r),o=i.formatToParts(),s=o.find(c=>c.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new uS(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new dS(t,this.intl,r)}relFormatter(t={}){return new pS(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Jz(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:cw()?eW(this.locale):sW}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 yS,Pt,Lp=N(()=>{Rn();Ul();yS=null,Pt=class e extends xr{static get utcInstance(){return yS===null&&(yS=new e(0)),yS}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(Vl(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ua(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ua(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return Ua(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 kp,bS=N(()=>{Ul();kp=class extends xr{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 so(e,t){let r;if(je(e)||e===null)return t;if(e instanceof xr)return e;if(O6(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?$a.instance:n==="utc"||n==="gmt"?Pt.utcInstance:Pt.parseSpecifier(n)||dr.create(e)}else return ao(e)?Pt.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new kp(e)}var uw=N(()=>{Ul();Va();Lp();bS();Rn();rw()});function R6(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(vS.hanidec)!==-1)t+=aW.indexOf(e[r]);else for(let i in N6){let[o,s]=N6[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function D6(){Op={}}function Pi({numberingSystem:e},t=""){let r=e||"latn";return Op[r]||(Op[r]={}),Op[r][t]||(Op[r][t]=new RegExp(`${vS[r]}${t}`)),Op[r][t]}var vS,N6,aW,Op,_S=N(()=>{vS={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"},N6={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]},aW=vS.hanidec.replace(/[\[|\]]/g,"").split("");Op={}});var F6,$6,U6,V6,z6,W6,B6,G6,mt,za=N(()=>{rw();Va();yh();Wa();uw();Rn();_S();F6=()=>Date.now(),$6="system",U6=null,V6=null,z6=null,W6=60,G6=null,mt=class{static get now(){return F6}static set now(t){F6=t}static set defaultZone(t){$6=t}static get defaultZone(){return so($6,$a.instance)}static get defaultLocale(){return U6}static set defaultLocale(t){U6=t}static get defaultNumberingSystem(){return V6}static set defaultNumberingSystem(t){V6=t}static get defaultOutputCalendar(){return z6}static set defaultOutputCalendar(t){z6=t}static get defaultWeekSettings(){return G6}static set defaultWeekSettings(t){G6=wh(t)}static get twoDigitCutoffYear(){return W6}static set twoDigitCutoffYear(t){W6=t%100}static get throwOnInvalid(){return B6}static set throwOnInvalid(t){B6=t}static resetCaches(){ht.resetCache(),dr.resetCache(),Te.resetCache(),D6()}}});var qr,bh=N(()=>{qr=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Mi(e,t){return new qr("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dw(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function H6(e,t,r){return r+(Wl(e)?q6:j6)[t-1]}function Z6(e,t){let r=Wl(e)?q6:j6,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function pw(e,t){return(e-t+7)%7+1}function vh(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=H6(n,i,o),c=pw(dw(n,i,o),r),a=Math.floor((s-c+14-t)/7),d;return a<1?(d=n-1,a=zl(d,t,r)):a>zl(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...Sh(e)}}function SS(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=pw(dw(n,1,t),r),c=Ba(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=Ba(d)):a>c?(d=n+1,a-=Ba(n)):d=n;let{month:h,day:g}=Z6(d,a);return{year:d,month:h,day:g,...Sh(e)}}function fw(e){let{year:t,month:r,day:n}=e,i=H6(t,r,n);return{year:t,ordinal:i,...Sh(e)}}function xS(e){let{year:t,ordinal:r}=e,{month:n,day:i}=Z6(t,r);return{year:t,month:n,day:i,...Sh(e)}}function ES(e,t){if(!je(e.localWeekday)||!je(e.localWeekNumber)||!je(e.localWeekYear)){if(!je(e.weekday)||!je(e.weekNumber)||!je(e.weekYear))throw new no("Cannot mix locale-based week fields with ISO-based week fields");return je(e.localWeekday)||(e.weekday=e.localWeekday),je(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),je(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 Y6(e,t=4,r=1){let n=_h(e.weekYear),i=ui(e.weekNumber,1,zl(e.weekYear,t,r)),o=ui(e.weekday,1,7);return n?i?o?!1:Mi("weekday",e.weekday):Mi("week",e.weekNumber):Mi("weekYear",e.weekYear)}function J6(e){let t=_h(e.year),r=ui(e.ordinal,1,Ba(e.year));return t?r?!1:Mi("ordinal",e.ordinal):Mi("year",e.year)}function CS(e){let t=_h(e.year),r=ui(e.month,1,12),n=ui(e.day,1,Np(e.year,e.month));return t?r?n?!1:Mi("day",e.day):Mi("month",e.month):Mi("year",e.year)}function TS(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=ui(t,0,23)||t===24&&r===0&&n===0&&i===0,s=ui(r,0,59),c=ui(n,0,59),a=ui(i,0,999);return o?s?c?a?!1:Mi("millisecond",i):Mi("second",n):Mi("minute",r):Mi("hour",t)}var j6,q6,PS=N(()=>{Rn();bh();Da();j6=[0,31,59,90,120,151,181,212,243,273,304,334],q6=[0,31,60,91,121,152,182,213,244,274,305,335]});function je(e){return typeof e>"u"}function ao(e){return typeof e=="number"}function _h(e){return typeof e=="number"&&e%1===0}function O6(e){return typeof e=="string"}function Q6(e){return Object.prototype.toString.call(e)==="[object Date]"}function aw(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function cw(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function K6(e){return Array.isArray(e)?e:[e]}function MS(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 e8(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function Ga(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function wh(e){if(e==null)return null;if(typeof e!="object")throw new ur("Week settings must be an object");if(!ui(e.firstDay,1,7)||!ui(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!ui(t,1,7)))throw new ur("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function ui(e,t,r){return _h(e)&&e>=t&&e<=r}function cW(e,t){return e-t*Math.floor(e/t)}function or(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function ks(e){if(!(je(e)||e===null||e===""))return parseInt(e,10)}function ja(e){if(!(je(e)||e===null||e===""))return parseFloat(e)}function xh(e){if(!(je(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Ip(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Wl(e){return e%4===0&&(e%100!==0||e%400===0)}function Ba(e){return Wl(e)?366:365}function Np(e,t){let r=cW(t-1,12)+1,n=e+(t-r)/12;return r===2?Wl(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Ap(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 X6(e,t,r){return-pw(dw(e,1,t),r)+t-1}function zl(e,t=4,r=1){let n=X6(e,t,r),i=X6(e+1,t,r);return(Ba(e)-n+i)/7}function Eh(e){return e>99?e:e>mt.twoDigitCutoffYear?1900+e:2e3+e}function nw(e,t,r,n=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:t,...o},c=new Intl.DateTimeFormat(r,s).formatToParts(i).find(a=>a.type.toLowerCase()==="timezonename");return c?c.value:null}function Vl(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 AS(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new ur(`Invalid unit value ${e}`);return t}function Rp(e,t){let r={};for(let n in e)if(Ga(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=AS(i)}return r}function Ua(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}${or(r,2)}:${or(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${or(r,2)}${or(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Sh(e){return e8(e,["hour","minute","second","millisecond"])}var Rn=N(()=>{Da();za();PS()});function fS(e){switch(e){case"narrow":return[...uW];case"short":return[...IS];case"long":return[...lW];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 mS(e){switch(e){case"narrow":return[...dW];case"short":return[...kS];case"long":return[...LS];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function gS(e){switch(e){case"narrow":return[...mW];case"short":return[...fW];case"long":return[...pW];default:return null}}function t8(e){return hS[e.hour<12?0:1]}function r8(e,t){return mS(t)[e.weekday-1]}function n8(e,t){return fS(t)[e.month-1]}function i8(e,t){return gS(t)[e.year<0?0:1]}function k6(e,t,r="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){let g=e==="days";switch(t){case 1:return g?"tomorrow":`next ${i[e][0]}`;case-1:return g?"yesterday":`last ${i[e][0]}`;case 0:return g?"today":`this ${i[e][0]}`;default:}}let s=Object.is(t,-0)||t<0,c=Math.abs(t),a=c===1,d=i[e],h=n?a?d[1]:d[2]||d[1]:a?i[e][0]:e;return s?`${c} ${h} ago`:`in ${c} ${h}`}var lW,IS,uW,LS,kS,dW,hS,pW,fW,mW,lw=N(()=>{hh();Rn();lW=["January","February","March","April","May","June","July","August","September","October","November","December"],IS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],uW=["J","F","M","A","M","J","J","A","S","O","N","D"];LS=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],kS=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],dW=["M","T","W","T","F","S","S"];hS=["AM","PM"],pW=["Before Christ","Anno Domini"],fW=["BC","AD"],mW=["B","A"]});function o8(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var hW,Hr,Ch=N(()=>{lw();hh();Rn();hW={D:Fa,DD:Jm,DDD:Xm,DDDD:Qm,t:Km,tt:eh,ttt:th,tttt:rh,T:nh,TT:ih,TTT:oh,TTTT:sh,f:ah,ff:lh,fff:dh,ffff:fh,F:ch,FF:uh,FFF:ph,FFFF:mh},Hr=class e{static create(t,r={}){return new e(t,r)}static parseFormat(t){let r=null,n="",i=!1,o=[];for(let s=0;s<t.length;s++){let c=t.charAt(s);c==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||c===r?n+=c:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=c,r=c)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(t){return hW[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 or(t,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(E,M)=>this.loc.extract(t,E,M),s=E=>t.isOffsetFixed&&t.offset===0&&E.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,E.format):"",c=()=>n?t8(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(E,M)=>n?n8(t,E):o(M?{month:E}:{month:E,day:"numeric"},"month"),d=(E,M)=>n?r8(t,E):o(M?{weekday:E}:{weekday:E,month:"long",day:"numeric"},"weekday"),h=E=>{let M=e.macroTokenToFormatOpts(E);return M?this.formatWithSystemDefault(t,M):E},g=E=>n?i8(t,E):o({era:E},"era"),v=E=>{switch(E){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return h(E)}};return o8(e.parseFormat(r),v)}formatDurationFromString(t,r){let n=a=>{switch(a[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=a=>d=>{let h=n(d);return h?this.num(a.get(h),d.length):d},o=e.parseFormat(r),s=o.reduce((a,{literal:d,val:h})=>d?a:a.concat(h),[]),c=t.shiftTo(...s.map(n).filter(a=>a));return o8(o,i(c))}}});function Fp(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function $p(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,c,a]=o(t,i);return[{...r,...s},c||n,a]},[{},null,1]).slice(0,2)}function Up(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 c8(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=ks(t[r+i]);return[n,null,r+i]}}function Dp(e,t,r){let n=e[t];return je(n)?r:ks(n)}function EW(e,t){return[{year:Dp(e,t)