@nhtio/encoder 0.1.0-master-ab456424 → 1.20251201.0
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/{exceptions-BHfZbUPp.mjs → exceptions-BXzLxffe.mjs} +2 -2
- package/{exceptions-BHfZbUPp.mjs.map → exceptions-BXzLxffe.mjs.map} +1 -1
- package/{exceptions-iBYg29S4.js → exceptions-pRtdSy7a.js} +2 -2
- package/{exceptions-iBYg29S4.js.map → exceptions-pRtdSy7a.js.map} +1 -1
- package/exceptions.cjs +1 -1
- package/exceptions.mjs +1 -1
- package/index.cjs +2 -2
- package/index.cjs.map +1 -1
- package/index.mjs +5 -5
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var zr=Object.defineProperty;var xr=r=>{throw TypeError(r)};var Yr=(r,o,u)=>o in r?zr(r,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):r[o]=u;var dt=(r,o,u)=>Yr(r,typeof o!="symbol"?o+"":o,u),wr=(r,o,u)=>o.has(r)||xr("Cannot "+u);var Lt=(r,o,u)=>(wr(r,o,"read from private field"),u?u.call(r):o.get(r)),kt=(r,o,u)=>o.has(r)?xr("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,u),Bt=(r,o,u,h)=>(wr(r,o,"write to private field"),h?h.call(r,u):o.set(r,u),u),fr=(r,o,u)=>(wr(r,o,"access private method"),u);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const exceptions=require("./exceptions-iBYg29S4.js");var re$2={exports:{}};const SEMVER_SPEC_VERSION="2.0.0",MAX_LENGTH$1=256,MAX_SAFE_INTEGER$1=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=MAX_LENGTH$1-6,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var constants$1={MAX_LENGTH:MAX_LENGTH$1,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const debug$1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};var debug_1=debug$1;re$2.exports;(function(r,o){const{MAX_SAFE_COMPONENT_LENGTH:u,MAX_SAFE_BUILD_LENGTH:h,MAX_LENGTH:m}=constants$1,p=debug_1;o=r.exports={};const _=o.re=[],y=o.safeRe=[],S=o.src=[],$=o.safeSrc=[],E=o.t={};let A=0;const T="[a-zA-Z0-9-]",N=[["\\s",1],["\\d",m],[T,h]],O=L=>{for(const[w,I]of N)L=L.split(`${w}*`).join(`${w}{0,${I}}`).split(`${w}+`).join(`${w}{1,${I}}`);return L},C=(L,w,I)=>{const D=O(w),F=A++;p(L,F,w),E[L]=F,S[F]=w,$[F]=D,_[F]=new RegExp(w,I?"g":void 0),y[F]=new RegExp(D,I?"g":void 0)};C("NUMERICIDENTIFIER","0|[1-9]\\d*"),C("NUMERICIDENTIFIERLOOSE","\\d+"),C("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${T}*`),C("MAINVERSION",`(${S[E.NUMERICIDENTIFIER]})\\.(${S[E.NUMERICIDENTIFIER]})\\.(${S[E.NUMERICIDENTIFIER]})`),C("MAINVERSIONLOOSE",`(${S[E.NUMERICIDENTIFIERLOOSE]})\\.(${S[E.NUMERICIDENTIFIERLOOSE]})\\.(${S[E.NUMERICIDENTIFIERLOOSE]})`),C("PRERELEASEIDENTIFIER",`(?:${S[E.NONNUMERICIDENTIFIER]}|${S[E.NUMERICIDENTIFIER]})`),C("PRERELEASEIDENTIFIERLOOSE",`(?:${S[E.NONNUMERICIDENTIFIER]}|${S[E.NUMERICIDENTIFIERLOOSE]})`),C("PRERELEASE",`(?:-(${S[E.PRERELEASEIDENTIFIER]}(?:\\.${S[E.PRERELEASEIDENTIFIER]})*))`),C("PRERELEASELOOSE",`(?:-?(${S[E.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${S[E.PRERELEASEIDENTIFIERLOOSE]})*))`),C("BUILDIDENTIFIER",`${T}+`),C("BUILD",`(?:\\+(${S[E.BUILDIDENTIFIER]}(?:\\.${S[E.BUILDIDENTIFIER]})*))`),C("FULLPLAIN",`v?${S[E.MAINVERSION]}${S[E.PRERELEASE]}?${S[E.BUILD]}?`),C("FULL",`^${S[E.FULLPLAIN]}$`),C("LOOSEPLAIN",`[v=\\s]*${S[E.MAINVERSIONLOOSE]}${S[E.PRERELEASELOOSE]}?${S[E.BUILD]}?`),C("LOOSE",`^${S[E.LOOSEPLAIN]}$`),C("GTLT","((?:<|>)?=?)"),C("XRANGEIDENTIFIERLOOSE",`${S[E.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),C("XRANGEIDENTIFIER",`${S[E.NUMERICIDENTIFIER]}|x|X|\\*`),C("XRANGEPLAIN",`[v=\\s]*(${S[E.XRANGEIDENTIFIER]})(?:\\.(${S[E.XRANGEIDENTIFIER]})(?:\\.(${S[E.XRANGEIDENTIFIER]})(?:${S[E.PRERELEASE]})?${S[E.BUILD]}?)?)?`),C("XRANGEPLAINLOOSE",`[v=\\s]*(${S[E.XRANGEIDENTIFIERLOOSE]})(?:\\.(${S[E.XRANGEIDENTIFIERLOOSE]})(?:\\.(${S[E.XRANGEIDENTIFIERLOOSE]})(?:${S[E.PRERELEASELOOSE]})?${S[E.BUILD]}?)?)?`),C("XRANGE",`^${S[E.GTLT]}\\s*${S[E.XRANGEPLAIN]}$`),C("XRANGELOOSE",`^${S[E.GTLT]}\\s*${S[E.XRANGEPLAINLOOSE]}$`),C("COERCEPLAIN",`(^|[^\\d])(\\d{1,${u}})(?:\\.(\\d{1,${u}}))?(?:\\.(\\d{1,${u}}))?`),C("COERCE",`${S[E.COERCEPLAIN]}(?:$|[^\\d])`),C("COERCEFULL",S[E.COERCEPLAIN]+`(?:${S[E.PRERELEASE]})?(?:${S[E.BUILD]})?(?:$|[^\\d])`),C("COERCERTL",S[E.COERCE],!0),C("COERCERTLFULL",S[E.COERCEFULL],!0),C("LONETILDE","(?:~>?)"),C("TILDETRIM",`(\\s*)${S[E.LONETILDE]}\\s+`,!0),o.tildeTrimReplace="$1~",C("TILDE",`^${S[E.LONETILDE]}${S[E.XRANGEPLAIN]}$`),C("TILDELOOSE",`^${S[E.LONETILDE]}${S[E.XRANGEPLAINLOOSE]}$`),C("LONECARET","(?:\\^)"),C("CARETTRIM",`(\\s*)${S[E.LONECARET]}\\s+`,!0),o.caretTrimReplace="$1^",C("CARET",`^${S[E.LONECARET]}${S[E.XRANGEPLAIN]}$`),C("CARETLOOSE",`^${S[E.LONECARET]}${S[E.XRANGEPLAINLOOSE]}$`),C("COMPARATORLOOSE",`^${S[E.GTLT]}\\s*(${S[E.LOOSEPLAIN]})$|^$`),C("COMPARATOR",`^${S[E.GTLT]}\\s*(${S[E.FULLPLAIN]})$|^$`),C("COMPARATORTRIM",`(\\s*)${S[E.GTLT]}\\s*(${S[E.LOOSEPLAIN]}|${S[E.XRANGEPLAIN]})`,!0),o.comparatorTrimReplace="$1$2$3",C("HYPHENRANGE",`^\\s*(${S[E.XRANGEPLAIN]})\\s+-\\s+(${S[E.XRANGEPLAIN]})\\s*$`),C("HYPHENRANGELOOSE",`^\\s*(${S[E.XRANGEPLAINLOOSE]})\\s+-\\s+(${S[E.XRANGEPLAINLOOSE]})\\s*$`),C("STAR","(<|>)?=?\\s*\\*"),C("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),C("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(re$2,re$2.exports);var reExports=re$2.exports;const looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$1=r=>r?typeof r!="object"?looseOption:r:emptyOpts;var parseOptions_1=parseOptions$1;const numeric=/^[0-9]+$/,compareIdentifiers$1=(r,o)=>{if(typeof r=="number"&&typeof o=="number")return r===o?0:r<o?-1:1;const u=numeric.test(r),h=numeric.test(o);return u&&h&&(r=+r,o=+o),r===o?0:u&&!h?-1:h&&!u?1:r<o?-1:1},rcompareIdentifiers=(r,o)=>compareIdentifiers$1(o,r);var identifiers$1={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers};const debug=debug_1,{MAX_LENGTH,MAX_SAFE_INTEGER}=constants$1,{safeRe:re$1,t:t$1}=reExports,parseOptions=parseOptions_1,{compareIdentifiers}=identifiers$1;let SemVer$d=class Gt{constructor(o,u){if(u=parseOptions(u),o instanceof Gt){if(o.loose===!!u.loose&&o.includePrerelease===!!u.includePrerelease)return o;o=o.version}else if(typeof o!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof o}".`);if(o.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",o,u),this.options=u,this.loose=!!u.loose,this.includePrerelease=!!u.includePrerelease;const h=o.trim().match(u.loose?re$1[t$1.LOOSE]:re$1[t$1.FULL]);if(!h)throw new TypeError(`Invalid Version: ${o}`);if(this.raw=o,this.major=+h[1],this.minor=+h[2],this.patch=+h[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");h[4]?this.prerelease=h[4].split(".").map(m=>{if(/^[0-9]+$/.test(m)){const p=+m;if(p>=0&&p<MAX_SAFE_INTEGER)return p}return m}):this.prerelease=[],this.build=h[5]?h[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(o){if(debug("SemVer.compare",this.version,this.options,o),!(o instanceof Gt)){if(typeof o=="string"&&o===this.version)return 0;o=new Gt(o,this.options)}return o.version===this.version?0:this.compareMain(o)||this.comparePre(o)}compareMain(o){return o instanceof Gt||(o=new Gt(o,this.options)),this.major<o.major?-1:this.major>o.major?1:this.minor<o.minor?-1:this.minor>o.minor?1:this.patch<o.patch?-1:this.patch>o.patch?1:0}comparePre(o){if(o instanceof Gt||(o=new Gt(o,this.options)),this.prerelease.length&&!o.prerelease.length)return-1;if(!this.prerelease.length&&o.prerelease.length)return 1;if(!this.prerelease.length&&!o.prerelease.length)return 0;let u=0;do{const h=this.prerelease[u],m=o.prerelease[u];if(debug("prerelease compare",u,h,m),h===void 0&&m===void 0)return 0;if(m===void 0)return 1;if(h===void 0)return-1;if(h===m)continue;return compareIdentifiers(h,m)}while(++u)}compareBuild(o){o instanceof Gt||(o=new Gt(o,this.options));let u=0;do{const h=this.build[u],m=o.build[u];if(debug("build compare",u,h,m),h===void 0&&m===void 0)return 0;if(m===void 0)return 1;if(h===void 0)return-1;if(h===m)continue;return compareIdentifiers(h,m)}while(++u)}inc(o,u,h){if(o.startsWith("pre")){if(!u&&h===!1)throw new Error("invalid increment argument: identifier is empty");if(u){const m=`-${u}`.match(this.options.loose?re$1[t$1.PRERELEASELOOSE]:re$1[t$1.PRERELEASE]);if(!m||m[1]!==u)throw new Error(`invalid identifier: ${u}`)}}switch(o){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",u,h);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",u,h);break;case"prepatch":this.prerelease.length=0,this.inc("patch",u,h),this.inc("pre",u,h);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",u,h),this.inc("pre",u,h);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const m=Number(h)?1:0;if(this.prerelease.length===0)this.prerelease=[m];else{let p=this.prerelease.length;for(;--p>=0;)typeof this.prerelease[p]=="number"&&(this.prerelease[p]++,p=-2);if(p===-1){if(u===this.prerelease.join(".")&&h===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(m)}}if(u){let p=[u,m];h===!1&&(p=[u]),compareIdentifiers(this.prerelease[0],u)===0?isNaN(this.prerelease[1])&&(this.prerelease=p):this.prerelease=p}break}default:throw new Error(`invalid increment argument: ${o}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var semver$1=SemVer$d;const SemVer$c=semver$1,parse$a=(r,o,u=!1)=>{if(r instanceof SemVer$c)return r;try{return new SemVer$c(r,o)}catch(h){if(!u)return null;throw h}};var parse_1=parse$a;const parse$9=parse_1,valid$2=(r,o)=>{const u=parse$9(r,o);return u?u.version:null};var valid_1=valid$2;const parse$6=parse_1,clean$1=(r,o)=>{const u=parse$6(r.trim().replace(/^[=v]+/,""),o);return u?u.version:null};var clean_1=clean$1;const SemVer$b=semver$1,inc$1=(r,o,u,h,m)=>{typeof u=="string"&&(m=h,h=u,u=void 0);try{return new SemVer$b(r instanceof SemVer$b?r.version:r,u).inc(o,h,m).version}catch{return null}};var inc_1=inc$1;const parse$5=parse_1,diff$3=(r,o)=>{const u=parse$5(r,null,!0),h=parse$5(o,null,!0),m=u.compare(h);if(m===0)return null;const p=m>0,_=p?u:h,y=p?h:u,S=!!_.prerelease.length;if(!!y.prerelease.length&&!S){if(!y.patch&&!y.minor)return"major";if(y.compareMain(_)===0)return y.minor&&!y.patch?"minor":"patch"}const E=S?"pre":"";return u.major!==h.major?E+"major":u.minor!==h.minor?E+"minor":u.patch!==h.patch?E+"patch":"prerelease"};var diff_1=diff$3;const SemVer$a=semver$1,major$1=(r,o)=>new SemVer$a(r,o).major;var major_1=major$1;const SemVer$9=semver$1,minor$1=(r,o)=>new SemVer$9(r,o).minor;var minor_1=minor$1;const SemVer$8=semver$1,patch$2=(r,o)=>new SemVer$8(r,o).patch;var patch_1=patch$2;const parse$4=parse_1,prerelease$1=(r,o)=>{const u=parse$4(r,o);return u&&u.prerelease.length?u.prerelease:null};var prerelease_1=prerelease$1;const SemVer$7=semver$1,compare$b=(r,o,u)=>new SemVer$7(r,u).compare(new SemVer$7(o,u));var compare_1=compare$b;const compare$a=compare_1,rcompare$1=(r,o,u)=>compare$a(o,r,u);var rcompare_1=rcompare$1;const compare$9=compare_1,compareLoose$1=(r,o)=>compare$9(r,o,!0);var compareLoose_1=compareLoose$1;const SemVer$6=semver$1,compareBuild$3=(r,o,u)=>{const h=new SemVer$6(r,u),m=new SemVer$6(o,u);return h.compare(m)||h.compareBuild(m)};var compareBuild_1=compareBuild$3;const compareBuild$2=compareBuild_1,sort$1=(r,o)=>r.sort((u,h)=>compareBuild$2(u,h,o));var sort_1=sort$1;const compareBuild$1=compareBuild_1,rsort$1=(r,o)=>r.sort((u,h)=>compareBuild$1(h,u,o));var rsort_1=rsort$1;const compare$8=compare_1,gt$4=(r,o,u)=>compare$8(r,o,u)>0;var gt_1=gt$4;const compare$7=compare_1,lt$3=(r,o,u)=>compare$7(r,o,u)<0;var lt_1=lt$3;const compare$6=compare_1,eq$2=(r,o,u)=>compare$6(r,o,u)===0;var eq_1=eq$2;const compare$5=compare_1,neq$2=(r,o,u)=>compare$5(r,o,u)!==0;var neq_1=neq$2;const compare$4=compare_1,gte$3=(r,o,u)=>compare$4(r,o,u)>=0;var gte_1=gte$3;const compare$3=compare_1,lte$3=(r,o,u)=>compare$3(r,o,u)<=0;var lte_1=lte$3;const eq$1=eq_1,neq$1=neq_1,gt$3=gt_1,gte$2=gte_1,lt$2=lt_1,lte$2=lte_1,cmp$1=(r,o,u,h)=>{switch(o){case"===":return typeof r=="object"&&(r=r.version),typeof u=="object"&&(u=u.version),r===u;case"!==":return typeof r=="object"&&(r=r.version),typeof u=="object"&&(u=u.version),r!==u;case"":case"=":case"==":return eq$1(r,u,h);case"!=":return neq$1(r,u,h);case">":return gt$3(r,u,h);case">=":return gte$2(r,u,h);case"<":return lt$2(r,u,h);case"<=":return lte$2(r,u,h);default:throw new TypeError(`Invalid operator: ${o}`)}};var cmp_1=cmp$1;const SemVer$5=semver$1,parse$3=parse_1,{safeRe:re,t}=reExports,coerce$1=(r,o)=>{if(r instanceof SemVer$5)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;o=o||{};let u=null;if(!o.rtl)u=r.match(o.includePrerelease?re[t.COERCEFULL]:re[t.COERCE]);else{const S=o.includePrerelease?re[t.COERCERTLFULL]:re[t.COERCERTL];let $;for(;($=S.exec(r))&&(!u||u.index+u[0].length!==r.length);)(!u||$.index+$[0].length!==u.index+u[0].length)&&(u=$),S.lastIndex=$.index+$[1].length+$[2].length;S.lastIndex=-1}if(u===null)return null;const h=u[2],m=u[3]||"0",p=u[4]||"0",_=o.includePrerelease&&u[5]?`-${u[5]}`:"",y=o.includePrerelease&&u[6]?`+${u[6]}`:"";return parse$3(`${h}.${m}.${p}${_}${y}`,o)};var coerce_1=coerce$1;class LRUCache{constructor(){this.max=1e3,this.map=new Map}get(o){const u=this.map.get(o);if(u!==void 0)return this.map.delete(o),this.map.set(o,u),u}delete(o){return this.map.delete(o)}set(o,u){if(!this.delete(o)&&u!==void 0){if(this.map.size>=this.max){const m=this.map.keys().next().value;this.delete(m)}this.map.set(o,u)}return this}}var lrucache=LRUCache,range,hasRequiredRange;function requireRange(){if(hasRequiredRange)return range;hasRequiredRange=1;const r=/\s+/g;class o{constructor(q,R){if(R=m(R),q instanceof o)return q.loose===!!R.loose&&q.includePrerelease===!!R.includePrerelease?q:new o(q.raw,R);if(q instanceof p)return this.raw=q.value,this.set=[[q]],this.formatted=void 0,this;if(this.options=R,this.loose=!!R.loose,this.includePrerelease=!!R.includePrerelease,this.raw=q.trim().replace(r," "),this.set=this.raw.split("||").map(B=>this.parseRange(B.trim())).filter(B=>B.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const B=this.set[0];if(this.set=this.set.filter(ue=>!C(ue[0])),this.set.length===0)this.set=[B];else if(this.set.length>1){for(const ue of this.set)if(ue.length===1&&L(ue[0])){this.set=[ue];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let q=0;q<this.set.length;q++){q>0&&(this.formatted+="||");const R=this.set[q];for(let B=0;B<R.length;B++)B>0&&(this.formatted+=" "),this.formatted+=R[B].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(q){const B=((this.options.includePrerelease&&N)|(this.options.loose&&O))+":"+q,ue=h.get(B);if(ue)return ue;const ce=this.options.loose,K=ce?S[$.HYPHENRANGELOOSE]:S[$.HYPHENRANGE];q=q.replace(K,J(this.options.includePrerelease)),_("hyphen replace",q),q=q.replace(S[$.COMPARATORTRIM],E),_("comparator trim",q),q=q.replace(S[$.TILDETRIM],A),_("tilde trim",q),q=q.replace(S[$.CARETTRIM],T),_("caret trim",q);let Q=q.split(" ").map(Me=>I(Me,this.options)).join(" ").split(/\s+/).map(Me=>ge(Me,this.options));ce&&(Q=Q.filter(Me=>(_("loose invalid filter",Me,this.options),!!Me.match(S[$.COMPARATORLOOSE])))),_("range list",Q);const Y=new Map,me=Q.map(Me=>new p(Me,this.options));for(const Me of me){if(C(Me))return[Me];Y.set(Me.value,Me)}Y.size>1&&Y.has("")&&Y.delete("");const Oe=[...Y.values()];return h.set(B,Oe),Oe}intersects(q,R){if(!(q instanceof o))throw new TypeError("a Range is required");return this.set.some(B=>w(B,R)&&q.set.some(ue=>w(ue,R)&&B.every(ce=>ue.every(K=>ce.intersects(K,R)))))}test(q){if(!q)return!1;if(typeof q=="string")try{q=new y(q,this.options)}catch{return!1}for(let R=0;R<this.set.length;R++)if(ae(this.set[R],q,this.options))return!0;return!1}}range=o;const u=lrucache,h=new u,m=parseOptions_1,p=requireComparator(),_=debug_1,y=semver$1,{safeRe:S,t:$,comparatorTrimReplace:E,tildeTrimReplace:A,caretTrimReplace:T}=reExports,{FLAG_INCLUDE_PRERELEASE:N,FLAG_LOOSE:O}=constants$1,C=U=>U.value==="<0.0.0-0",L=U=>U.value==="",w=(U,q)=>{let R=!0;const B=U.slice();let ue=B.pop();for(;R&&B.length;)R=B.every(ce=>ue.intersects(ce,q)),ue=B.pop();return R},I=(U,q)=>(U=U.replace(S[$.BUILD],""),_("comp",U,q),U=ie(U,q),_("caret",U),U=F(U,q),_("tildes",U),U=pe(U,q),_("xrange",U),U=Ee(U,q),_("stars",U),U),D=U=>!U||U.toLowerCase()==="x"||U==="*",F=(U,q)=>U.trim().split(/\s+/).map(R=>k(R,q)).join(" "),k=(U,q)=>{const R=q.loose?S[$.TILDELOOSE]:S[$.TILDE];return U.replace(R,(B,ue,ce,K,Q)=>{_("tilde",U,B,ue,ce,K,Q);let Y;return D(ue)?Y="":D(ce)?Y=`>=${ue}.0.0 <${+ue+1}.0.0-0`:D(K)?Y=`>=${ue}.${ce}.0 <${ue}.${+ce+1}.0-0`:Q?(_("replaceTilde pr",Q),Y=`>=${ue}.${ce}.${K}-${Q} <${ue}.${+ce+1}.0-0`):Y=`>=${ue}.${ce}.${K} <${ue}.${+ce+1}.0-0`,_("tilde return",Y),Y})},ie=(U,q)=>U.trim().split(/\s+/).map(R=>fe(R,q)).join(" "),fe=(U,q)=>{_("caret",U,q);const R=q.loose?S[$.CARETLOOSE]:S[$.CARET],B=q.includePrerelease?"-0":"";return U.replace(R,(ue,ce,K,Q,Y)=>{_("caret",U,ue,ce,K,Q,Y);let me;return D(ce)?me="":D(K)?me=`>=${ce}.0.0${B} <${+ce+1}.0.0-0`:D(Q)?ce==="0"?me=`>=${ce}.${K}.0${B} <${ce}.${+K+1}.0-0`:me=`>=${ce}.${K}.0${B} <${+ce+1}.0.0-0`:Y?(_("replaceCaret pr",Y),ce==="0"?K==="0"?me=`>=${ce}.${K}.${Q}-${Y} <${ce}.${K}.${+Q+1}-0`:me=`>=${ce}.${K}.${Q}-${Y} <${ce}.${+K+1}.0-0`:me=`>=${ce}.${K}.${Q}-${Y} <${+ce+1}.0.0-0`):(_("no pr"),ce==="0"?K==="0"?me=`>=${ce}.${K}.${Q}${B} <${ce}.${K}.${+Q+1}-0`:me=`>=${ce}.${K}.${Q}${B} <${ce}.${+K+1}.0-0`:me=`>=${ce}.${K}.${Q} <${+ce+1}.0.0-0`),_("caret return",me),me})},pe=(U,q)=>(_("replaceXRanges",U,q),U.split(/\s+/).map(R=>Se(R,q)).join(" ")),Se=(U,q)=>{U=U.trim();const R=q.loose?S[$.XRANGELOOSE]:S[$.XRANGE];return U.replace(R,(B,ue,ce,K,Q,Y)=>{_("xRange",U,B,ue,ce,K,Q,Y);const me=D(ce),Oe=me||D(K),Me=Oe||D(Q),Re=Me;return ue==="="&&Re&&(ue=""),Y=q.includePrerelease?"-0":"",me?ue===">"||ue==="<"?B="<0.0.0-0":B="*":ue&&Re?(Oe&&(K=0),Q=0,ue===">"?(ue=">=",Oe?(ce=+ce+1,K=0,Q=0):(K=+K+1,Q=0)):ue==="<="&&(ue="<",Oe?ce=+ce+1:K=+K+1),ue==="<"&&(Y="-0"),B=`${ue+ce}.${K}.${Q}${Y}`):Oe?B=`>=${ce}.0.0${Y} <${+ce+1}.0.0-0`:Me&&(B=`>=${ce}.${K}.0${Y} <${ce}.${+K+1}.0-0`),_("xRange return",B),B})},Ee=(U,q)=>(_("replaceStars",U,q),U.trim().replace(S[$.STAR],"")),ge=(U,q)=>(_("replaceGTE0",U,q),U.trim().replace(S[q.includePrerelease?$.GTE0PRE:$.GTE0],"")),J=U=>(q,R,B,ue,ce,K,Q,Y,me,Oe,Me,Re)=>(D(B)?R="":D(ue)?R=`>=${B}.0.0${U?"-0":""}`:D(ce)?R=`>=${B}.${ue}.0${U?"-0":""}`:K?R=`>=${R}`:R=`>=${R}${U?"-0":""}`,D(me)?Y="":D(Oe)?Y=`<${+me+1}.0.0-0`:D(Me)?Y=`<${me}.${+Oe+1}.0-0`:Re?Y=`<=${me}.${Oe}.${Me}-${Re}`:U?Y=`<${me}.${Oe}.${+Me+1}-0`:Y=`<=${Y}`,`${R} ${Y}`.trim()),ae=(U,q,R)=>{for(let B=0;B<U.length;B++)if(!U[B].test(q))return!1;if(q.prerelease.length&&!R.includePrerelease){for(let B=0;B<U.length;B++)if(_(U[B].semver),U[B].semver!==p.ANY&&U[B].semver.prerelease.length>0){const ue=U[B].semver;if(ue.major===q.major&&ue.minor===q.minor&&ue.patch===q.patch)return!0}return!1}return!0};return range}var comparator,hasRequiredComparator;function requireComparator(){if(hasRequiredComparator)return comparator;hasRequiredComparator=1;const r=Symbol("SemVer ANY");class o{static get ANY(){return r}constructor(E,A){if(A=u(A),E instanceof o){if(E.loose===!!A.loose)return E;E=E.value}E=E.trim().split(/\s+/).join(" "),_("comparator",E,A),this.options=A,this.loose=!!A.loose,this.parse(E),this.semver===r?this.value="":this.value=this.operator+this.semver.version,_("comp",this)}parse(E){const A=this.options.loose?h[m.COMPARATORLOOSE]:h[m.COMPARATOR],T=E.match(A);if(!T)throw new TypeError(`Invalid comparator: ${E}`);this.operator=T[1]!==void 0?T[1]:"",this.operator==="="&&(this.operator=""),T[2]?this.semver=new y(T[2],this.options.loose):this.semver=r}toString(){return this.value}test(E){if(_("Comparator.test",E,this.options.loose),this.semver===r||E===r)return!0;if(typeof E=="string")try{E=new y(E,this.options)}catch{return!1}return p(E,this.operator,this.semver,this.options)}intersects(E,A){if(!(E instanceof o))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new S(E.value,A).test(this.value):E.operator===""?E.value===""?!0:new S(this.value,A).test(E.semver):(A=u(A),A.includePrerelease&&(this.value==="<0.0.0-0"||E.value==="<0.0.0-0")||!A.includePrerelease&&(this.value.startsWith("<0.0.0")||E.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&E.operator.startsWith(">")||this.operator.startsWith("<")&&E.operator.startsWith("<")||this.semver.version===E.semver.version&&this.operator.includes("=")&&E.operator.includes("=")||p(this.semver,"<",E.semver,A)&&this.operator.startsWith(">")&&E.operator.startsWith("<")||p(this.semver,">",E.semver,A)&&this.operator.startsWith("<")&&E.operator.startsWith(">")))}}comparator=o;const u=parseOptions_1,{safeRe:h,t:m}=reExports,p=cmp_1,_=debug_1,y=semver$1,S=requireRange();return comparator}const Range$9=requireRange(),satisfies$4=(r,o,u)=>{try{o=new Range$9(o,u)}catch{return!1}return o.test(r)};var satisfies_1=satisfies$4;const Range$8=requireRange(),toComparators$1=(r,o)=>new Range$8(r,o).set.map(u=>u.map(h=>h.value).join(" ").trim().split(" "));var toComparators_1=toComparators$1;const SemVer$4=semver$1,Range$7=requireRange(),maxSatisfying$1=(r,o,u)=>{let h=null,m=null,p=null;try{p=new Range$7(o,u)}catch{return null}return r.forEach(_=>{p.test(_)&&(!h||m.compare(_)===-1)&&(h=_,m=new SemVer$4(h,u))}),h};var maxSatisfying_1=maxSatisfying$1;const SemVer$3=semver$1,Range$6=requireRange(),minSatisfying$1=(r,o,u)=>{let h=null,m=null,p=null;try{p=new Range$6(o,u)}catch{return null}return r.forEach(_=>{p.test(_)&&(!h||m.compare(_)===1)&&(h=_,m=new SemVer$3(h,u))}),h};var minSatisfying_1=minSatisfying$1;const SemVer$2=semver$1,Range$5=requireRange(),gt$2=gt_1,minVersion$1=(r,o)=>{r=new Range$5(r,o);let u=new SemVer$2("0.0.0");if(r.test(u)||(u=new SemVer$2("0.0.0-0"),r.test(u)))return u;u=null;for(let h=0;h<r.set.length;++h){const m=r.set[h];let p=null;m.forEach(_=>{const y=new SemVer$2(_.semver.version);switch(_.operator){case">":y.prerelease.length===0?y.patch++:y.prerelease.push(0),y.raw=y.format();case"":case">=":(!p||gt$2(y,p))&&(p=y);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${_.operator}`)}}),p&&(!u||gt$2(u,p))&&(u=p)}return u&&r.test(u)?u:null};var minVersion_1=minVersion$1;const Range$4=requireRange(),validRange$1=(r,o)=>{try{return new Range$4(r,o).range||"*"}catch{return null}};var valid$1=validRange$1;const SemVer$1=semver$1,Comparator$2=requireComparator(),{ANY:ANY$1}=Comparator$2,Range$3=requireRange(),satisfies$3=satisfies_1,gt$1=gt_1,lt$1=lt_1,lte$1=lte_1,gte$1=gte_1,outside$3=(r,o,u,h)=>{r=new SemVer$1(r,h),o=new Range$3(o,h);let m,p,_,y,S;switch(u){case">":m=gt$1,p=lte$1,_=lt$1,y=">",S=">=";break;case"<":m=lt$1,p=gte$1,_=gt$1,y="<",S="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies$3(r,o,h))return!1;for(let $=0;$<o.set.length;++$){const E=o.set[$];let A=null,T=null;if(E.forEach(N=>{N.semver===ANY$1&&(N=new Comparator$2(">=0.0.0")),A=A||N,T=T||N,m(N.semver,A.semver,h)?A=N:_(N.semver,T.semver,h)&&(T=N)}),A.operator===y||A.operator===S||(!T.operator||T.operator===y)&&p(r,T.semver))return!1;if(T.operator===S&&_(r,T.semver))return!1}return!0};var outside_1=outside$3;const outside$2=outside_1,gtr$1=(r,o,u)=>outside$2(r,o,">",u);var gtr_1=gtr$1;const outside$1=outside_1,ltr$1=(r,o,u)=>outside$1(r,o,"<",u);var ltr_1=ltr$1;const Range$2=requireRange(),intersects$1=(r,o,u)=>(r=new Range$2(r,u),o=new Range$2(o,u),r.intersects(o,u));var intersects_1=intersects$1;const satisfies$2=satisfies_1,compare$2=compare_1;var simplify=(r,o,u)=>{const h=[];let m=null,p=null;const _=r.sort((E,A)=>compare$2(E,A,u));for(const E of _)satisfies$2(E,o,u)?(p=E,m||(m=E)):(p&&h.push([m,p]),p=null,m=null);m&&h.push([m,null]);const y=[];for(const[E,A]of h)E===A?y.push(E):!A&&E===_[0]?y.push("*"):A?E===_[0]?y.push(`<=${A}`):y.push(`${E} - ${A}`):y.push(`>=${E}`);const S=y.join(" || "),$=typeof o.raw=="string"?o.raw:String(o);return S.length<$.length?S:o};const Range$1=requireRange(),Comparator$1=requireComparator(),{ANY}=Comparator$1,satisfies$1=satisfies_1,compare$1=compare_1,subset$1=(r,o,u={})=>{if(r===o)return!0;r=new Range$1(r,u),o=new Range$1(o,u);let h=!1;e:for(const m of r.set){for(const p of o.set){const _=simpleSubset(m,p,u);if(h=h||_!==null,_)continue e}if(h)return!1}return!0},minimumVersionWithPreRelease=[new Comparator$1(">=0.0.0-0")],minimumVersion=[new Comparator$1(">=0.0.0")],simpleSubset=(r,o,u)=>{if(r===o)return!0;if(r.length===1&&r[0].semver===ANY){if(o.length===1&&o[0].semver===ANY)return!0;u.includePrerelease?r=minimumVersionWithPreRelease:r=minimumVersion}if(o.length===1&&o[0].semver===ANY){if(u.includePrerelease)return!0;o=minimumVersion}const h=new Set;let m,p;for(const N of r)N.operator===">"||N.operator===">="?m=higherGT(m,N,u):N.operator==="<"||N.operator==="<="?p=lowerLT(p,N,u):h.add(N.semver);if(h.size>1)return null;let _;if(m&&p){if(_=compare$1(m.semver,p.semver,u),_>0)return null;if(_===0&&(m.operator!==">="||p.operator!=="<="))return null}for(const N of h){if(m&&!satisfies$1(N,String(m),u)||p&&!satisfies$1(N,String(p),u))return null;for(const O of o)if(!satisfies$1(N,String(O),u))return!1;return!0}let y,S,$,E,A=p&&!u.includePrerelease&&p.semver.prerelease.length?p.semver:!1,T=m&&!u.includePrerelease&&m.semver.prerelease.length?m.semver:!1;A&&A.prerelease.length===1&&p.operator==="<"&&A.prerelease[0]===0&&(A=!1);for(const N of o){if(E=E||N.operator===">"||N.operator===">=",$=$||N.operator==="<"||N.operator==="<=",m){if(T&&N.semver.prerelease&&N.semver.prerelease.length&&N.semver.major===T.major&&N.semver.minor===T.minor&&N.semver.patch===T.patch&&(T=!1),N.operator===">"||N.operator===">="){if(y=higherGT(m,N,u),y===N&&y!==m)return!1}else if(m.operator===">="&&!satisfies$1(m.semver,String(N),u))return!1}if(p){if(A&&N.semver.prerelease&&N.semver.prerelease.length&&N.semver.major===A.major&&N.semver.minor===A.minor&&N.semver.patch===A.patch&&(A=!1),N.operator==="<"||N.operator==="<="){if(S=lowerLT(p,N,u),S===N&&S!==p)return!1}else if(p.operator==="<="&&!satisfies$1(p.semver,String(N),u))return!1}if(!N.operator&&(p||m)&&_!==0)return!1}return!(m&&$&&!p&&_!==0||p&&E&&!m&&_!==0||T||A)},higherGT=(r,o,u)=>{if(!r)return o;const h=compare$1(r.semver,o.semver,u);return h>0?r:h<0||o.operator===">"&&r.operator===">="?o:r},lowerLT=(r,o,u)=>{if(!r)return o;const h=compare$1(r.semver,o.semver,u);return h<0?r:h>0||o.operator==="<"&&r.operator==="<="?o:r};var subset_1=subset$1;const internalRe=reExports,constants=constants$1,SemVer=semver$1,identifiers=identifiers$1,parse$2=parse_1,valid=valid_1,clean=clean_1,inc=inc_1,diff$1=diff_1,major=major_1,minor=minor_1,patch$1=patch_1,prerelease=prerelease_1,compare=compare_1,rcompare=rcompare_1,compareLoose=compareLoose_1,compareBuild=compareBuild_1,sort=sort_1,rsort=rsort_1,gt=gt_1,lt=lt_1,eq=eq_1,neq=neq_1,gte=gte_1,lte=lte_1,cmp=cmp_1,coerce=coerce_1,Comparator=requireComparator(),Range=requireRange(),satisfies=satisfies_1,toComparators=toComparators_1,maxSatisfying=maxSatisfying_1,minSatisfying=minSatisfying_1,minVersion=minVersion_1,validRange=valid$1,outside=outside_1,gtr=gtr_1,ltr=ltr_1,intersects=intersects_1,simplifyRange=simplify,subset=subset_1;var semver={parse:parse$2,valid,clean,inc,diff:diff$1,major,minor,patch:patch$1,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers};let LuxonError$3=class extends Error{},InvalidDateTimeError$1=class extends LuxonError$3{constructor(o){super(`Invalid DateTime: ${o.toMessage()}`)}},InvalidIntervalError$1=class extends LuxonError$3{constructor(o){super(`Invalid Interval: ${o.toMessage()}`)}},InvalidDurationError$1=class extends LuxonError$3{constructor(o){super(`Invalid Duration: ${o.toMessage()}`)}},ConflictingSpecificationError$1=class extends LuxonError$3{},InvalidUnitError$1=class extends LuxonError$3{constructor(o){super(`Invalid unit ${o}`)}},InvalidArgumentError$1=class extends LuxonError$3{},ZoneIsAbstractError$3=class extends LuxonError$3{constructor(){super("Zone is an abstract class")}};const n$1="numeric",s$1="short",l$1="long",DATE_SHORT$1={year:n$1,month:n$1,day:n$1},DATE_MED$1={year:n$1,month:s$1,day:n$1},DATE_MED_WITH_WEEKDAY$1={year:n$1,month:s$1,day:n$1,weekday:s$1},DATE_FULL$1={year:n$1,month:l$1,day:n$1},DATE_HUGE$1={year:n$1,month:l$1,day:n$1,weekday:l$1},TIME_SIMPLE$1={hour:n$1,minute:n$1},TIME_WITH_SECONDS$1={hour:n$1,minute:n$1,second:n$1},TIME_WITH_SHORT_OFFSET$1={hour:n$1,minute:n$1,second:n$1,timeZoneName:s$1},TIME_WITH_LONG_OFFSET$1={hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1},TIME_24_SIMPLE$1={hour:n$1,minute:n$1,hourCycle:"h23"},TIME_24_WITH_SECONDS$1={hour:n$1,minute:n$1,second:n$1,hourCycle:"h23"},TIME_24_WITH_SHORT_OFFSET$1={hour:n$1,minute:n$1,second:n$1,hourCycle:"h23",timeZoneName:s$1},TIME_24_WITH_LONG_OFFSET$1={hour:n$1,minute:n$1,second:n$1,hourCycle:"h23",timeZoneName:l$1},DATETIME_SHORT$1={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1},DATETIME_SHORT_WITH_SECONDS$1={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED$1={year:n$1,month:s$1,day:n$1,hour:n$1,minute:n$1},DATETIME_MED_WITH_SECONDS$1={year:n$1,month:s$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED_WITH_WEEKDAY$1={year:n$1,month:s$1,day:n$1,weekday:s$1,hour:n$1,minute:n$1},DATETIME_FULL$1={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,timeZoneName:s$1},DATETIME_FULL_WITH_SECONDS$1={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:s$1},DATETIME_HUGE$1={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,timeZoneName:l$1},DATETIME_HUGE_WITH_SECONDS$1={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1};let Zone$3=class{get type(){throw new ZoneIsAbstractError$3}get name(){throw new ZoneIsAbstractError$3}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError$3}offsetName(o,u){throw new ZoneIsAbstractError$3}formatOffset(o,u){throw new ZoneIsAbstractError$3}offset(o){throw new ZoneIsAbstractError$3}equals(o){throw new ZoneIsAbstractError$3}get isValid(){throw new ZoneIsAbstractError$3}},singleton$1$1=null,SystemZone$1=class Fr extends Zone$3{static get instance(){return singleton$1$1===null&&(singleton$1$1=new Fr),singleton$1$1}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(o,{format:u,locale:h}){return parseZoneInfo$3(o,u,h)}formatOffset(o,u){return formatOffset$3(this.offset(o),u)}offset(o){return-new Date(o).getTimezoneOffset()}equals(o){return o.type==="system"}get isValid(){return!0}};const dtfCache$3=new Map;function makeDTF$3(r){let o=dtfCache$3.get(r);return o===void 0&&(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),dtfCache$3.set(r,o)),o}const typeToPos$3={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset$3(r,o){const u=r.format(o).replace(/\u200E/g,""),h=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(u),[,m,p,_,y,S,$,E]=h;return[_,m,p,y,S,$,E]}function partsOffset$3(r,o){const u=r.formatToParts(o),h=[];for(let m=0;m<u.length;m++){const{type:p,value:_}=u[m],y=typeToPos$3[p];p==="era"?h[y]=_:isUndefined$3(y)||(h[y]=parseInt(_,10))}return h}const ianaZoneCache$3=new Map;let IANAZone$3=class Rr extends Zone$3{static create(o){let u=ianaZoneCache$3.get(o);return u===void 0&&ianaZoneCache$3.set(o,u=new Rr(o)),u}static resetCache(){ianaZoneCache$3.clear(),dtfCache$3.clear()}static isValidSpecifier(o){return this.isValidZone(o)}static isValidZone(o){if(!o)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:o}).format(),!0}catch{return!1}}constructor(o){super(),this.zoneName=o,this.valid=Rr.isValidZone(o)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(o,{format:u,locale:h}){return parseZoneInfo$3(o,u,h,this.name)}formatOffset(o,u){return formatOffset$3(this.offset(o),u)}offset(o){if(!this.valid)return NaN;const u=new Date(o);if(isNaN(u))return NaN;const h=makeDTF$3(this.name);let[m,p,_,y,S,$,E]=h.formatToParts?partsOffset$3(h,u):hackyOffset$3(h,u);y==="BC"&&(m=-Math.abs(m)+1);const T=objToLocalTS$3({year:m,month:p,day:_,hour:S===24?0:S,minute:$,second:E,millisecond:0});let N=+u;const O=N%1e3;return N-=O>=0?O:1e3+O,(T-N)/(60*1e3)}equals(o){return o.type==="iana"&&o.name===this.name}get isValid(){return this.valid}},intlLFCache$1={};function getCachedLF$1(r,o={}){const u=JSON.stringify([r,o]);let h=intlLFCache$1[u];return h||(h=new Intl.ListFormat(r,o),intlLFCache$1[u]=h),h}const intlDTCache$1=new Map;function getCachedDTF$1(r,o={}){const u=JSON.stringify([r,o]);let h=intlDTCache$1.get(u);return h===void 0&&(h=new Intl.DateTimeFormat(r,o),intlDTCache$1.set(u,h)),h}const intlNumCache$1=new Map;function getCachedINF$1(r,o={}){const u=JSON.stringify([r,o]);let h=intlNumCache$1.get(u);return h===void 0&&(h=new Intl.NumberFormat(r,o),intlNumCache$1.set(u,h)),h}const intlRelCache$1=new Map;function getCachedRTF$1(r,o={}){const{base:u,...h}=o,m=JSON.stringify([r,h]);let p=intlRelCache$1.get(m);return p===void 0&&(p=new Intl.RelativeTimeFormat(r,o),intlRelCache$1.set(m,p)),p}let sysLocaleCache$1=null;function systemLocale$1(){return sysLocaleCache$1||(sysLocaleCache$1=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache$1)}const intlResolvedOptionsCache$1=new Map;function getCachedIntResolvedOptions$1(r){let o=intlResolvedOptionsCache$1.get(r);return o===void 0&&(o=new Intl.DateTimeFormat(r).resolvedOptions(),intlResolvedOptionsCache$1.set(r,o)),o}const weekInfoCache$1=new Map;function getCachedWeekInfo$1(r){let o=weekInfoCache$1.get(r);if(!o){const u=new Intl.Locale(r);o="getWeekInfo"in u?u.getWeekInfo():u.weekInfo,"minimalDays"in o||(o={...fallbackWeekSettings$1,...o}),weekInfoCache$1.set(r,o)}return o}function parseLocaleString$1(r){const o=r.indexOf("-x-");o!==-1&&(r=r.substring(0,o));const u=r.indexOf("-u-");if(u===-1)return[r];{let h,m;try{h=getCachedDTF$1(r).resolvedOptions(),m=r}catch{const S=r.substring(0,u);h=getCachedDTF$1(S).resolvedOptions(),m=S}const{numberingSystem:p,calendar:_}=h;return[m,p,_]}}function intlConfigString$1(r,o,u){return(u||o)&&(r.includes("-u-")||(r+="-u"),u&&(r+=`-ca-${u}`),o&&(r+=`-nu-${o}`)),r}function mapMonths$1(r){const o=[];for(let u=1;u<=12;u++){const h=DateTime$1.utc(2009,u,1);o.push(r(h))}return o}function mapWeekdays$1(r){const o=[];for(let u=1;u<=7;u++){const h=DateTime$1.utc(2016,11,13+u);o.push(r(h))}return o}function listStuff$1(r,o,u,h){const m=r.listingMode();return m==="error"?null:m==="en"?u(o):h(o)}function supportsFastNumbers$1(r){return r.numberingSystem&&r.numberingSystem!=="latn"?!1:r.numberingSystem==="latn"||!r.locale||r.locale.startsWith("en")||getCachedIntResolvedOptions$1(r.locale).numberingSystem==="latn"}let PolyNumberFormatter$1=class{constructor(o,u,h){this.padTo=h.padTo||0,this.floor=h.floor||!1;const{padTo:m,floor:p,..._}=h;if(!u||Object.keys(_).length>0){const y={useGrouping:!1,...h};h.padTo>0&&(y.minimumIntegerDigits=h.padTo),this.inf=getCachedINF$1(o,y)}}format(o){if(this.inf){const u=this.floor?Math.floor(o):o;return this.inf.format(u)}else{const u=this.floor?Math.floor(o):roundTo$1(o,3);return padStart$3(u,this.padTo)}}},PolyDateFormatter$1=class{constructor(o,u,h){this.opts=h,this.originalZone=void 0;let m;if(this.opts.timeZone)this.dt=o;else if(o.zone.type==="fixed"){const _=-1*(o.offset/60),y=_>=0?`Etc/GMT+${_}`:`Etc/GMT${_}`;o.offset!==0&&IANAZone$3.create(y).valid?(m=y,this.dt=o):(m="UTC",this.dt=o.offset===0?o:o.setZone("UTC").plus({minutes:o.offset}),this.originalZone=o.zone)}else o.zone.type==="system"?this.dt=o:o.zone.type==="iana"?(this.dt=o,m=o.zone.name):(m="UTC",this.dt=o.setZone("UTC").plus({minutes:o.offset}),this.originalZone=o.zone);const p={...this.opts};p.timeZone=p.timeZone||m,this.dtf=getCachedDTF$1(u,p)}format(){return this.originalZone?this.formatToParts().map(({value:o})=>o).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const o=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?o.map(u=>{if(u.type==="timeZoneName"){const h=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...u,value:h}}else return u}):o}resolvedOptions(){return this.dtf.resolvedOptions()}},PolyRelFormatter$1=class{constructor(o,u,h){this.opts={style:"long",...h},!u&&hasRelative$1()&&(this.rtf=getCachedRTF$1(o,h))}format(o,u){return this.rtf?this.rtf.format(o,u):formatRelativeTime$1(u,o,this.opts.numeric,this.opts.style!=="long")}formatToParts(o,u){return this.rtf?this.rtf.formatToParts(o,u):[]}};const fallbackWeekSettings$1={firstDay:1,minimalDays:4,weekend:[6,7]};let Locale$1=class gr{static fromOpts(o){return gr.create(o.locale,o.numberingSystem,o.outputCalendar,o.weekSettings,o.defaultToEN)}static create(o,u,h,m,p=!1){const _=o||Settings$1.defaultLocale,y=_||(p?"en-US":systemLocale$1()),S=u||Settings$1.defaultNumberingSystem,$=h||Settings$1.defaultOutputCalendar,E=validateWeekSettings$1(m)||Settings$1.defaultWeekSettings;return new gr(y,S,$,E,_)}static resetCache(){sysLocaleCache$1=null,intlDTCache$1.clear(),intlNumCache$1.clear(),intlRelCache$1.clear(),intlResolvedOptionsCache$1.clear(),weekInfoCache$1.clear()}static fromObject({locale:o,numberingSystem:u,outputCalendar:h,weekSettings:m}={}){return gr.create(o,u,h,m)}constructor(o,u,h,m,p){const[_,y,S]=parseLocaleString$1(o);this.locale=_,this.numberingSystem=u||y||null,this.outputCalendar=h||S||null,this.weekSettings=m,this.intl=intlConfigString$1(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=p,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=supportsFastNumbers$1(this)),this.fastNumbersCached}listingMode(){const o=this.isEnglish(),u=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return o&&u?"en":"intl"}clone(o){return!o||Object.getOwnPropertyNames(o).length===0?this:gr.create(o.locale||this.specifiedLocale,o.numberingSystem||this.numberingSystem,o.outputCalendar||this.outputCalendar,validateWeekSettings$1(o.weekSettings)||this.weekSettings,o.defaultToEN||!1)}redefaultToEN(o={}){return this.clone({...o,defaultToEN:!0})}redefaultToSystem(o={}){return this.clone({...o,defaultToEN:!1})}months(o,u=!1){return listStuff$1(this,o,months$1,()=>{const h=this.intl==="ja"||this.intl.startsWith("ja-");u&=!h;const m=u?{month:o,day:"numeric"}:{month:o},p=u?"format":"standalone";if(!this.monthsCache[p][o]){const _=h?y=>this.dtFormatter(y,m).format():y=>this.extract(y,m,"month");this.monthsCache[p][o]=mapMonths$1(_)}return this.monthsCache[p][o]})}weekdays(o,u=!1){return listStuff$1(this,o,weekdays$1,()=>{const h=u?{weekday:o,year:"numeric",month:"long",day:"numeric"}:{weekday:o},m=u?"format":"standalone";return this.weekdaysCache[m][o]||(this.weekdaysCache[m][o]=mapWeekdays$1(p=>this.extract(p,h,"weekday"))),this.weekdaysCache[m][o]})}meridiems(){return listStuff$1(this,void 0,()=>meridiems$1,()=>{if(!this.meridiemCache){const o={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime$1.utc(2016,11,13,9),DateTime$1.utc(2016,11,13,19)].map(u=>this.extract(u,o,"dayperiod"))}return this.meridiemCache})}eras(o){return listStuff$1(this,o,eras$1,()=>{const u={era:o};return this.eraCache[o]||(this.eraCache[o]=[DateTime$1.utc(-40,1,1),DateTime$1.utc(2017,1,1)].map(h=>this.extract(h,u,"era"))),this.eraCache[o]})}extract(o,u,h){const m=this.dtFormatter(o,u),p=m.formatToParts(),_=p.find(y=>y.type.toLowerCase()===h);return _?_.value:null}numberFormatter(o={}){return new PolyNumberFormatter$1(this.intl,o.forceSimple||this.fastNumbers,o)}dtFormatter(o,u={}){return new PolyDateFormatter$1(o,this.intl,u)}relFormatter(o={}){return new PolyRelFormatter$1(this.intl,this.isEnglish(),o)}listFormatter(o={}){return getCachedLF$1(this.intl,o)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||getCachedIntResolvedOptions$1(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo$1()?getCachedWeekInfo$1(this.locale):fallbackWeekSettings$1}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(o){return this.locale===o.locale&&this.numberingSystem===o.numberingSystem&&this.outputCalendar===o.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},singleton$4=null,FixedOffsetZone$3=class mr extends Zone$3{static get utcInstance(){return singleton$4===null&&(singleton$4=new mr(0)),singleton$4}static instance(o){return o===0?mr.utcInstance:new mr(o)}static parseSpecifier(o){if(o){const u=o.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(u)return new mr(signedOffset$3(u[1],u[2]))}return null}constructor(o){super(),this.fixed=o}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset$3(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${formatOffset$3(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(o,u){return formatOffset$3(this.fixed,u)}get isUniversal(){return!0}offset(){return this.fixed}equals(o){return o.type==="fixed"&&o.fixed===this.fixed}get isValid(){return!0}},InvalidZone$1=class extends Zone$3{constructor(o){super(),this.zoneName=o}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 normalizeZone$1(r,o){if(isUndefined$3(r)||r===null)return o;if(r instanceof Zone$3)return r;if(isString$1(r)){const u=r.toLowerCase();return u==="default"?o:u==="local"||u==="system"?SystemZone$1.instance:u==="utc"||u==="gmt"?FixedOffsetZone$3.utcInstance:FixedOffsetZone$3.parseSpecifier(u)||IANAZone$3.create(r)}else return isNumber$2(r)?FixedOffsetZone$3.instance(r):typeof r=="object"&&"offset"in r&&typeof r.offset=="function"?r:new InvalidZone$1(r)}const numberingSystems$1={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},numberingSystemsUTF16$1={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]},hanidecChars$1=numberingSystems$1.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits$1(r){let o=parseInt(r,10);if(isNaN(o)){o="";for(let u=0;u<r.length;u++){const h=r.charCodeAt(u);if(r[u].search(numberingSystems$1.hanidec)!==-1)o+=hanidecChars$1.indexOf(r[u]);else for(const m in numberingSystemsUTF16$1){const[p,_]=numberingSystemsUTF16$1[m];h>=p&&h<=_&&(o+=h-p)}}return parseInt(o,10)}else return o}const digitRegexCache$1=new Map;function resetDigitRegexCache$1(){digitRegexCache$1.clear()}function digitRegex$1({numberingSystem:r},o=""){const u=r||"latn";let h=digitRegexCache$1.get(u);h===void 0&&(h=new Map,digitRegexCache$1.set(u,h));let m=h.get(o);return m===void 0&&(m=new RegExp(`${numberingSystems$1[u]}${o}`),h.set(o,m)),m}let now$1=()=>Date.now(),defaultZone$1="system",defaultLocale$1=null,defaultNumberingSystem$1=null,defaultOutputCalendar$1=null,twoDigitCutoffYear$1=60,throwOnInvalid$1,defaultWeekSettings$1=null,Settings$1=class{static get now(){return now$1}static set now(o){now$1=o}static set defaultZone(o){defaultZone$1=o}static get defaultZone(){return normalizeZone$1(defaultZone$1,SystemZone$1.instance)}static get defaultLocale(){return defaultLocale$1}static set defaultLocale(o){defaultLocale$1=o}static get defaultNumberingSystem(){return defaultNumberingSystem$1}static set defaultNumberingSystem(o){defaultNumberingSystem$1=o}static get defaultOutputCalendar(){return defaultOutputCalendar$1}static set defaultOutputCalendar(o){defaultOutputCalendar$1=o}static get defaultWeekSettings(){return defaultWeekSettings$1}static set defaultWeekSettings(o){defaultWeekSettings$1=validateWeekSettings$1(o)}static get twoDigitCutoffYear(){return twoDigitCutoffYear$1}static set twoDigitCutoffYear(o){twoDigitCutoffYear$1=o%100}static get throwOnInvalid(){return throwOnInvalid$1}static set throwOnInvalid(o){throwOnInvalid$1=o}static resetCaches(){Locale$1.resetCache(),IANAZone$3.resetCache(),DateTime$1.resetCache(),resetDigitRegexCache$1()}},Invalid$1=class{constructor(o,u){this.reason=o,this.explanation=u}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const nonLeapLadder$1=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder$1=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange$1(r,o){return new Invalid$1("unit out of range",`you specified ${o} (of type ${typeof o}) as a ${r}, which is invalid`)}function dayOfWeek$1(r,o,u){const h=new Date(Date.UTC(r,o-1,u));r<100&&r>=0&&h.setUTCFullYear(h.getUTCFullYear()-1900);const m=h.getUTCDay();return m===0?7:m}function computeOrdinal$1(r,o,u){return u+(isLeapYear$1(r)?leapLadder$1:nonLeapLadder$1)[o-1]}function uncomputeOrdinal$1(r,o){const u=isLeapYear$1(r)?leapLadder$1:nonLeapLadder$1,h=u.findIndex(p=>p<o),m=o-u[h];return{month:h+1,day:m}}function isoWeekdayToLocal$1(r,o){return(r-o+7)%7+1}function gregorianToWeek$1(r,o=4,u=1){const{year:h,month:m,day:p}=r,_=computeOrdinal$1(h,m,p),y=isoWeekdayToLocal$1(dayOfWeek$1(h,m,p),u);let S=Math.floor((_-y+14-o)/7),$;return S<1?($=h-1,S=weeksInWeekYear$1($,o,u)):S>weeksInWeekYear$1(h,o,u)?($=h+1,S=1):$=h,{weekYear:$,weekNumber:S,weekday:y,...timeObject$1(r)}}function weekToGregorian$1(r,o=4,u=1){const{weekYear:h,weekNumber:m,weekday:p}=r,_=isoWeekdayToLocal$1(dayOfWeek$1(h,1,o),u),y=daysInYear$1(h);let S=m*7+p-_-7+o,$;S<1?($=h-1,S+=daysInYear$1($)):S>y?($=h+1,S-=daysInYear$1(h)):$=h;const{month:E,day:A}=uncomputeOrdinal$1($,S);return{year:$,month:E,day:A,...timeObject$1(r)}}function gregorianToOrdinal$1(r){const{year:o,month:u,day:h}=r,m=computeOrdinal$1(o,u,h);return{year:o,ordinal:m,...timeObject$1(r)}}function ordinalToGregorian$1(r){const{year:o,ordinal:u}=r,{month:h,day:m}=uncomputeOrdinal$1(o,u);return{year:o,month:h,day:m,...timeObject$1(r)}}function usesLocalWeekValues$1(r,o){if(!isUndefined$3(r.localWeekday)||!isUndefined$3(r.localWeekNumber)||!isUndefined$3(r.localWeekYear)){if(!isUndefined$3(r.weekday)||!isUndefined$3(r.weekNumber)||!isUndefined$3(r.weekYear))throw new ConflictingSpecificationError$1("Cannot mix locale-based week fields with ISO-based week fields");return isUndefined$3(r.localWeekday)||(r.weekday=r.localWeekday),isUndefined$3(r.localWeekNumber)||(r.weekNumber=r.localWeekNumber),isUndefined$3(r.localWeekYear)||(r.weekYear=r.localWeekYear),delete r.localWeekday,delete r.localWeekNumber,delete r.localWeekYear,{minDaysInFirstWeek:o.getMinDaysInFirstWeek(),startOfWeek:o.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData$1(r,o=4,u=1){const h=isInteger$1(r.weekYear),m=integerBetween$1(r.weekNumber,1,weeksInWeekYear$1(r.weekYear,o,u)),p=integerBetween$1(r.weekday,1,7);return h?m?p?!1:unitOutOfRange$1("weekday",r.weekday):unitOutOfRange$1("week",r.weekNumber):unitOutOfRange$1("weekYear",r.weekYear)}function hasInvalidOrdinalData$1(r){const o=isInteger$1(r.year),u=integerBetween$1(r.ordinal,1,daysInYear$1(r.year));return o?u?!1:unitOutOfRange$1("ordinal",r.ordinal):unitOutOfRange$1("year",r.year)}function hasInvalidGregorianData$1(r){const o=isInteger$1(r.year),u=integerBetween$1(r.month,1,12),h=integerBetween$1(r.day,1,daysInMonth$1(r.year,r.month));return o?u?h?!1:unitOutOfRange$1("day",r.day):unitOutOfRange$1("month",r.month):unitOutOfRange$1("year",r.year)}function hasInvalidTimeData$1(r){const{hour:o,minute:u,second:h,millisecond:m}=r,p=integerBetween$1(o,0,23)||o===24&&u===0&&h===0&&m===0,_=integerBetween$1(u,0,59),y=integerBetween$1(h,0,59),S=integerBetween$1(m,0,999);return p?_?y?S?!1:unitOutOfRange$1("millisecond",m):unitOutOfRange$1("second",h):unitOutOfRange$1("minute",u):unitOutOfRange$1("hour",o)}function isUndefined$3(r){return typeof r>"u"}function isNumber$2(r){return typeof r=="number"}function isInteger$1(r){return typeof r=="number"&&r%1===0}function isString$1(r){return typeof r=="string"}function isDate$1(r){return Object.prototype.toString.call(r)==="[object Date]"}function hasRelative$1(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo$1(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function maybeArray$1(r){return Array.isArray(r)?r:[r]}function bestBy$1(r,o,u){if(r.length!==0)return r.reduce((h,m)=>{const p=[o(m),m];return h&&u(h[0],p[0])===h[0]?h:p},null)[1]}function pick$1(r,o){return o.reduce((u,h)=>(u[h]=r[h],u),{})}function hasOwnProperty$1(r,o){return Object.prototype.hasOwnProperty.call(r,o)}function validateWeekSettings$1(r){if(r==null)return null;if(typeof r!="object")throw new InvalidArgumentError$1("Week settings must be an object");if(!integerBetween$1(r.firstDay,1,7)||!integerBetween$1(r.minimalDays,1,7)||!Array.isArray(r.weekend)||r.weekend.some(o=>!integerBetween$1(o,1,7)))throw new InvalidArgumentError$1("Invalid week settings");return{firstDay:r.firstDay,minimalDays:r.minimalDays,weekend:Array.from(r.weekend)}}function integerBetween$1(r,o,u){return isInteger$1(r)&&r>=o&&r<=u}function floorMod$1(r,o){return r-o*Math.floor(r/o)}function padStart$3(r,o=2){const u=r<0;let h;return u?h="-"+(""+-r).padStart(o,"0"):h=(""+r).padStart(o,"0"),h}function parseInteger$3(r){if(!(isUndefined$3(r)||r===null||r===""))return parseInt(r,10)}function parseFloating$1(r){if(!(isUndefined$3(r)||r===null||r===""))return parseFloat(r)}function parseMillis$3(r){if(!(isUndefined$3(r)||r===null||r==="")){const o=parseFloat("0."+r)*1e3;return Math.floor(o)}}function roundTo$1(r,o,u="round"){const h=10**o;switch(u){case"expand":return r>0?Math.ceil(r*h)/h:Math.floor(r*h)/h;case"trunc":return Math.trunc(r*h)/h;case"round":return Math.round(r*h)/h;case"floor":return Math.floor(r*h)/h;case"ceil":return Math.ceil(r*h)/h;default:throw new RangeError(`Value rounding ${u} is out of range`)}}function isLeapYear$1(r){return r%4===0&&(r%100!==0||r%400===0)}function daysInYear$1(r){return isLeapYear$1(r)?366:365}function daysInMonth$1(r,o){const u=floorMod$1(o-1,12)+1,h=r+(o-u)/12;return u===2?isLeapYear$1(h)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][u-1]}function objToLocalTS$3(r){let o=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond);return r.year<100&&r.year>=0&&(o=new Date(o),o.setUTCFullYear(r.year,r.month-1,r.day)),+o}function firstWeekOffset$1(r,o,u){return-isoWeekdayToLocal$1(dayOfWeek$1(r,1,o),u)+o-1}function weeksInWeekYear$1(r,o=4,u=1){const h=firstWeekOffset$1(r,o,u),m=firstWeekOffset$1(r+1,o,u);return(daysInYear$1(r)-h+m)/7}function untruncateYear$1(r){return r>99?r:r>Settings$1.twoDigitCutoffYear?1900+r:2e3+r}function parseZoneInfo$3(r,o,u,h=null){const m=new Date(r),p={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};h&&(p.timeZone=h);const _={timeZoneName:o,...p},y=new Intl.DateTimeFormat(u,_).formatToParts(m).find(S=>S.type.toLowerCase()==="timezonename");return y?y.value:null}function signedOffset$3(r,o){let u=parseInt(r,10);Number.isNaN(u)&&(u=0);const h=parseInt(o,10)||0,m=u<0||Object.is(u,-0)?-h:h;return u*60+m}function asNumber$1(r){const o=Number(r);if(typeof r=="boolean"||r===""||!Number.isFinite(o))throw new InvalidArgumentError$1(`Invalid unit value ${r}`);return o}function normalizeObject$1(r,o){const u={};for(const h in r)if(hasOwnProperty$1(r,h)){const m=r[h];if(m==null)continue;u[o(h)]=asNumber$1(m)}return u}function formatOffset$3(r,o){const u=Math.trunc(Math.abs(r/60)),h=Math.trunc(Math.abs(r%60)),m=r>=0?"+":"-";switch(o){case"short":return`${m}${padStart$3(u,2)}:${padStart$3(h,2)}`;case"narrow":return`${m}${u}${h>0?`:${h}`:""}`;case"techie":return`${m}${padStart$3(u,2)}${padStart$3(h,2)}`;default:throw new RangeError(`Value format ${o} is out of range for property format`)}}function timeObject$1(r){return pick$1(r,["hour","minute","second","millisecond"])}const monthsLong$1=["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort$1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsNarrow$1=["J","F","M","A","M","J","J","A","S","O","N","D"];function months$1(r){switch(r){case"narrow":return[...monthsNarrow$1];case"short":return[...monthsShort$1];case"long":return[...monthsLong$1];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}}const weekdaysLong$1=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort$1=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow$1=["M","T","W","T","F","S","S"];function weekdays$1(r){switch(r){case"narrow":return[...weekdaysNarrow$1];case"short":return[...weekdaysShort$1];case"long":return[...weekdaysLong$1];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const meridiems$1=["AM","PM"],erasLong$1=["Before Christ","Anno Domini"],erasShort$1=["BC","AD"],erasNarrow$1=["B","A"];function eras$1(r){switch(r){case"narrow":return[...erasNarrow$1];case"short":return[...erasShort$1];case"long":return[...erasLong$1];default:return null}}function meridiemForDateTime$1(r){return meridiems$1[r.hour<12?0:1]}function weekdayForDateTime$1(r,o){return weekdays$1(o)[r.weekday-1]}function monthForDateTime$1(r,o){return months$1(o)[r.month-1]}function eraForDateTime$1(r,o){return eras$1(o)[r.year<0?0:1]}function formatRelativeTime$1(r,o,u="always",h=!1){const m={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."]},p=["hours","minutes","seconds"].indexOf(r)===-1;if(u==="auto"&&p){const A=r==="days";switch(o){case 1:return A?"tomorrow":`next ${m[r][0]}`;case-1:return A?"yesterday":`last ${m[r][0]}`;case 0:return A?"today":`this ${m[r][0]}`}}const _=Object.is(o,-0)||o<0,y=Math.abs(o),S=y===1,$=m[r],E=h?S?$[1]:$[2]||$[1]:S?m[r][0]:r;return _?`${y} ${E} ago`:`in ${y} ${E}`}function stringifyTokens$1(r,o){let u="";for(const h of r)h.literal?u+=h.val:u+=o(h.val);return u}const macroTokenToFormatOpts$1={D:DATE_SHORT$1,DD:DATE_MED$1,DDD:DATE_FULL$1,DDDD:DATE_HUGE$1,t:TIME_SIMPLE$1,tt:TIME_WITH_SECONDS$1,ttt:TIME_WITH_SHORT_OFFSET$1,tttt:TIME_WITH_LONG_OFFSET$1,T:TIME_24_SIMPLE$1,TT:TIME_24_WITH_SECONDS$1,TTT:TIME_24_WITH_SHORT_OFFSET$1,TTTT:TIME_24_WITH_LONG_OFFSET$1,f:DATETIME_SHORT$1,ff:DATETIME_MED$1,fff:DATETIME_FULL$1,ffff:DATETIME_HUGE$1,F:DATETIME_SHORT_WITH_SECONDS$1,FF:DATETIME_MED_WITH_SECONDS$1,FFF:DATETIME_FULL_WITH_SECONDS$1,FFFF:DATETIME_HUGE_WITH_SECONDS$1};let Formatter$1=class pr{static create(o,u={}){return new pr(o,u)}static parseFormat(o){let u=null,h="",m=!1;const p=[];for(let _=0;_<o.length;_++){const y=o.charAt(_);y==="'"?((h.length>0||m)&&p.push({literal:m||/^\s+$/.test(h),val:h===""?"'":h}),u=null,h="",m=!m):m||y===u?h+=y:(h.length>0&&p.push({literal:/^\s+$/.test(h),val:h}),h=y,u=y)}return h.length>0&&p.push({literal:m||/^\s+$/.test(h),val:h}),p}static macroTokenToFormatOpts(o){return macroTokenToFormatOpts$1[o]}constructor(o,u){this.opts=u,this.loc=o,this.systemLoc=null}formatWithSystemDefault(o,u){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(o,{...this.opts,...u}).format()}dtFormatter(o,u={}){return this.loc.dtFormatter(o,{...this.opts,...u})}formatDateTime(o,u){return this.dtFormatter(o,u).format()}formatDateTimeParts(o,u){return this.dtFormatter(o,u).formatToParts()}formatInterval(o,u){return this.dtFormatter(o.start,u).dtf.formatRange(o.start.toJSDate(),o.end.toJSDate())}resolvedOptions(o,u){return this.dtFormatter(o,u).resolvedOptions()}num(o,u=0,h=void 0){if(this.opts.forceSimple)return padStart$3(o,u);const m={...this.opts};return u>0&&(m.padTo=u),h&&(m.signDisplay=h),this.loc.numberFormatter(m).format(o)}formatDateTimeFromString(o,u){const h=this.loc.listingMode()==="en",m=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",p=(N,O)=>this.loc.extract(o,N,O),_=N=>o.isOffsetFixed&&o.offset===0&&N.allowZ?"Z":o.isValid?o.zone.formatOffset(o.ts,N.format):"",y=()=>h?meridiemForDateTime$1(o):p({hour:"numeric",hourCycle:"h12"},"dayperiod"),S=(N,O)=>h?monthForDateTime$1(o,N):p(O?{month:N}:{month:N,day:"numeric"},"month"),$=(N,O)=>h?weekdayForDateTime$1(o,N):p(O?{weekday:N}:{weekday:N,month:"long",day:"numeric"},"weekday"),E=N=>{const O=pr.macroTokenToFormatOpts(N);return O?this.formatWithSystemDefault(o,O):N},A=N=>h?eraForDateTime$1(o,N):p({era:N},"era"),T=N=>{switch(N){case"S":return this.num(o.millisecond);case"u":case"SSS":return this.num(o.millisecond,3);case"s":return this.num(o.second);case"ss":return this.num(o.second,2);case"uu":return this.num(Math.floor(o.millisecond/10),2);case"uuu":return this.num(Math.floor(o.millisecond/100));case"m":return this.num(o.minute);case"mm":return this.num(o.minute,2);case"h":return this.num(o.hour%12===0?12:o.hour%12);case"hh":return this.num(o.hour%12===0?12:o.hour%12,2);case"H":return this.num(o.hour);case"HH":return this.num(o.hour,2);case"Z":return _({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return _({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return _({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return o.zone.offsetName(o.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return o.zone.offsetName(o.ts,{format:"long",locale:this.loc.locale});case"z":return o.zoneName;case"a":return y();case"d":return m?p({day:"numeric"},"day"):this.num(o.day);case"dd":return m?p({day:"2-digit"},"day"):this.num(o.day,2);case"c":return this.num(o.weekday);case"ccc":return $("short",!0);case"cccc":return $("long",!0);case"ccccc":return $("narrow",!0);case"E":return this.num(o.weekday);case"EEE":return $("short",!1);case"EEEE":return $("long",!1);case"EEEEE":return $("narrow",!1);case"L":return m?p({month:"numeric",day:"numeric"},"month"):this.num(o.month);case"LL":return m?p({month:"2-digit",day:"numeric"},"month"):this.num(o.month,2);case"LLL":return S("short",!0);case"LLLL":return S("long",!0);case"LLLLL":return S("narrow",!0);case"M":return m?p({month:"numeric"},"month"):this.num(o.month);case"MM":return m?p({month:"2-digit"},"month"):this.num(o.month,2);case"MMM":return S("short",!1);case"MMMM":return S("long",!1);case"MMMMM":return S("narrow",!1);case"y":return m?p({year:"numeric"},"year"):this.num(o.year);case"yy":return m?p({year:"2-digit"},"year"):this.num(o.year.toString().slice(-2),2);case"yyyy":return m?p({year:"numeric"},"year"):this.num(o.year,4);case"yyyyyy":return m?p({year:"numeric"},"year"):this.num(o.year,6);case"G":return A("short");case"GG":return A("long");case"GGGGG":return A("narrow");case"kk":return this.num(o.weekYear.toString().slice(-2),2);case"kkkk":return this.num(o.weekYear,4);case"W":return this.num(o.weekNumber);case"WW":return this.num(o.weekNumber,2);case"n":return this.num(o.localWeekNumber);case"nn":return this.num(o.localWeekNumber,2);case"ii":return this.num(o.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(o.localWeekYear,4);case"o":return this.num(o.ordinal);case"ooo":return this.num(o.ordinal,3);case"q":return this.num(o.quarter);case"qq":return this.num(o.quarter,2);case"X":return this.num(Math.floor(o.ts/1e3));case"x":return this.num(o.ts);default:return E(N)}};return stringifyTokens$1(pr.parseFormat(u),T)}formatDurationFromString(o,u){const h=this.opts.signMode==="negativeLargestOnly"?-1:1,m=E=>{switch(E[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},p=(E,A)=>T=>{const N=m(T);if(N){const O=A.isNegativeDuration&&N!==A.largestUnit?h:1;let C;return this.opts.signMode==="negativeLargestOnly"&&N!==A.largestUnit?C="never":this.opts.signMode==="all"?C="always":C="auto",this.num(E.get(N)*O,T.length,C)}else return T},_=pr.parseFormat(u),y=_.reduce((E,{literal:A,val:T})=>A?E:E.concat(T),[]),S=o.shiftTo(...y.map(m).filter(E=>E)),$={isNegativeDuration:S<0,largestUnit:Object.keys(S.values)[0]};return stringifyTokens$1(_,p(S,$))}};const ianaRegex$3=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes$3(...r){const o=r.reduce((u,h)=>u+h.source,"");return RegExp(`^${o}$`)}function combineExtractors$3(...r){return o=>r.reduce(([u,h,m],p)=>{const[_,y,S]=p(o,m);return[{...u,..._},y||h,S]},[{},null,1]).slice(0,2)}function parse$1(r,...o){if(r==null)return[null,null];for(const[u,h]of o){const m=u.exec(r);if(m)return h(m)}return[null,null]}function simpleParse$3(...r){return(o,u)=>{const h={};let m;for(m=0;m<r.length;m++)h[r[m]]=parseInteger$3(o[u+m]);return[h,null,u+m]}}const offsetRegex$3=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone$3=`(?:${offsetRegex$3.source}?(?:\\[(${ianaRegex$3.source})\\])?)?`,isoTimeBaseRegex$3=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex$3=RegExp(`${isoTimeBaseRegex$3.source}${isoExtendedZone$3}`),isoTimeExtensionRegex$3=RegExp(`(?:[Tt]${isoTimeRegex$3.source})?`),isoYmdRegex$3=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex$3=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex$3=/(\d{4})-?(\d{3})/,extractISOWeekData$3=simpleParse$3("weekYear","weekNumber","weekDay"),extractISOOrdinalData$3=simpleParse$3("year","ordinal"),sqlYmdRegex$3=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex$3=RegExp(`${isoTimeBaseRegex$3.source} ?(?:${offsetRegex$3.source}|(${ianaRegex$3.source}))?`),sqlTimeExtensionRegex$3=RegExp(`(?: ${sqlTimeRegex$3.source})?`);function int$3(r,o,u){const h=r[o];return isUndefined$3(h)?u:parseInteger$3(h)}function extractISOYmd$3(r,o){return[{year:int$3(r,o),month:int$3(r,o+1,1),day:int$3(r,o+2,1)},null,o+3]}function extractISOTime$3(r,o){return[{hours:int$3(r,o,0),minutes:int$3(r,o+1,0),seconds:int$3(r,o+2,0),milliseconds:parseMillis$3(r[o+3])},null,o+4]}function extractISOOffset$3(r,o){const u=!r[o]&&!r[o+1],h=signedOffset$3(r[o+1],r[o+2]),m=u?null:FixedOffsetZone$3.instance(h);return[{},m,o+3]}function extractIANAZone$3(r,o){const u=r[o]?IANAZone$3.create(r[o]):null;return[{},u,o+1]}const isoTimeOnly$1=RegExp(`^T?${isoTimeBaseRegex$3.source}$`),isoDuration$1=/^-?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)?)?)$/;function extractISODuration$1(r){const[o,u,h,m,p,_,y,S,$]=r,E=o[0]==="-",A=S&&S[0]==="-",T=(N,O=!1)=>N!==void 0&&(O||N&&E)?-N:N;return[{years:T(parseFloating$1(u)),months:T(parseFloating$1(h)),weeks:T(parseFloating$1(m)),days:T(parseFloating$1(p)),hours:T(parseFloating$1(_)),minutes:T(parseFloating$1(y)),seconds:T(parseFloating$1(S),S==="-0"),milliseconds:T(parseMillis$3($),A)}]}const obsOffsets$1={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};function fromStrings$1(r,o,u,h,m,p,_){const y={year:o.length===2?untruncateYear$1(parseInteger$3(o)):parseInteger$3(o),month:monthsShort$1.indexOf(u)+1,day:parseInteger$3(h),hour:parseInteger$3(m),minute:parseInteger$3(p)};return _&&(y.second=parseInteger$3(_)),r&&(y.weekday=r.length>3?weekdaysLong$1.indexOf(r)+1:weekdaysShort$1.indexOf(r)+1),y}const rfc2822$1=/^(?:(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)))$/;function extractRFC2822$1(r){const[,o,u,h,m,p,_,y,S,$,E,A]=r,T=fromStrings$1(o,m,h,u,p,_,y);let N;return S?N=obsOffsets$1[S]:$?N=0:N=signedOffset$3(E,A),[T,new FixedOffsetZone$3(N)]}function preprocessRFC2822$1(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const rfc1123$1=/^(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$/,rfc850$1=/^(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$/,ascii$1=/^(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})$/;function extractRFC1123Or850$1(r){const[,o,u,h,m,p,_,y]=r;return[fromStrings$1(o,m,h,u,p,_,y),FixedOffsetZone$3.utcInstance]}function extractASCII$1(r){const[,o,u,h,m,p,_,y]=r;return[fromStrings$1(o,y,u,h,m,p,_),FixedOffsetZone$3.utcInstance]}const isoYmdWithTimeExtensionRegex$1=combineRegexes$3(isoYmdRegex$3,isoTimeExtensionRegex$3),isoWeekWithTimeExtensionRegex$1=combineRegexes$3(isoWeekRegex$3,isoTimeExtensionRegex$3),isoOrdinalWithTimeExtensionRegex$1=combineRegexes$3(isoOrdinalRegex$3,isoTimeExtensionRegex$3),isoTimeCombinedRegex$1=combineRegexes$3(isoTimeRegex$3),extractISOYmdTimeAndOffset$1=combineExtractors$3(extractISOYmd$3,extractISOTime$3,extractISOOffset$3,extractIANAZone$3),extractISOWeekTimeAndOffset$1=combineExtractors$3(extractISOWeekData$3,extractISOTime$3,extractISOOffset$3,extractIANAZone$3),extractISOOrdinalDateAndTime$1=combineExtractors$3(extractISOOrdinalData$3,extractISOTime$3,extractISOOffset$3,extractIANAZone$3),extractISOTimeAndOffset$1=combineExtractors$3(extractISOTime$3,extractISOOffset$3,extractIANAZone$3);function parseISODate$1(r){return parse$1(r,[isoYmdWithTimeExtensionRegex$1,extractISOYmdTimeAndOffset$1],[isoWeekWithTimeExtensionRegex$1,extractISOWeekTimeAndOffset$1],[isoOrdinalWithTimeExtensionRegex$1,extractISOOrdinalDateAndTime$1],[isoTimeCombinedRegex$1,extractISOTimeAndOffset$1])}function parseRFC2822Date$1(r){return parse$1(preprocessRFC2822$1(r),[rfc2822$1,extractRFC2822$1])}function parseHTTPDate$1(r){return parse$1(r,[rfc1123$1,extractRFC1123Or850$1],[rfc850$1,extractRFC1123Or850$1],[ascii$1,extractASCII$1])}function parseISODuration$1(r){return parse$1(r,[isoDuration$1,extractISODuration$1])}const extractISOTimeOnly$1=combineExtractors$3(extractISOTime$3);function parseISOTimeOnly$1(r){return parse$1(r,[isoTimeOnly$1,extractISOTimeOnly$1])}const sqlYmdWithTimeExtensionRegex$1=combineRegexes$3(sqlYmdRegex$3,sqlTimeExtensionRegex$3),sqlTimeCombinedRegex$1=combineRegexes$3(sqlTimeRegex$3),extractISOTimeOffsetAndIANAZone$1=combineExtractors$3(extractISOTime$3,extractISOOffset$3,extractIANAZone$3);function parseSQL$1(r){return parse$1(r,[sqlYmdWithTimeExtensionRegex$1,extractISOYmdTimeAndOffset$1],[sqlTimeCombinedRegex$1,extractISOTimeOffsetAndIANAZone$1])}const INVALID$2$1="Invalid Duration",lowOrderMatrix$1={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}},casualMatrix$1={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},...lowOrderMatrix$1},daysInYearAccurate$1=146097/400,daysInMonthAccurate$1=146097/4800,accurateMatrix$1={years:{quarters:4,months:12,weeks:daysInYearAccurate$1/7,days:daysInYearAccurate$1,hours:daysInYearAccurate$1*24,minutes:daysInYearAccurate$1*24*60,seconds:daysInYearAccurate$1*24*60*60,milliseconds:daysInYearAccurate$1*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate$1/28,days:daysInYearAccurate$1/4,hours:daysInYearAccurate$1*24/4,minutes:daysInYearAccurate$1*24*60/4,seconds:daysInYearAccurate$1*24*60*60/4,milliseconds:daysInYearAccurate$1*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate$1/7,days:daysInMonthAccurate$1,hours:daysInMonthAccurate$1*24,minutes:daysInMonthAccurate$1*24*60,seconds:daysInMonthAccurate$1*24*60*60,milliseconds:daysInMonthAccurate$1*24*60*60*1e3},...lowOrderMatrix$1},orderedUnits$1$1=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits$1=orderedUnits$1$1.slice(0).reverse();function clone$1$1(r,o,u=!1){const h={values:u?o.values:{...r.values,...o.values||{}},loc:r.loc.clone(o.loc),conversionAccuracy:o.conversionAccuracy||r.conversionAccuracy,matrix:o.matrix||r.matrix};return new Duration$1(h)}function durationToMillis$1(r,o){let u=o.milliseconds??0;for(const h of reverseUnits$1.slice(1))o[h]&&(u+=o[h]*r[h].milliseconds);return u}function normalizeValues$1(r,o){const u=durationToMillis$1(r,o)<0?-1:1;orderedUnits$1$1.reduceRight((h,m)=>{if(isUndefined$3(o[m]))return h;if(h){const p=o[h]*u,_=r[m][h],y=Math.floor(p/_);o[m]+=y*u,o[h]-=y*_*u}return m},null),orderedUnits$1$1.reduce((h,m)=>{if(isUndefined$3(o[m]))return h;if(h){const p=o[h]%1;o[h]-=p,o[m]+=p*r[h][m]}return m},null)}function removeZeroes$1(r){const o={};for(const[u,h]of Object.entries(r))h!==0&&(o[u]=h);return o}let Duration$1=class Ft{constructor(o){const u=o.conversionAccuracy==="longterm"||!1;let h=u?accurateMatrix$1:casualMatrix$1;o.matrix&&(h=o.matrix),this.values=o.values,this.loc=o.loc||Locale$1.create(),this.conversionAccuracy=u?"longterm":"casual",this.invalid=o.invalid||null,this.matrix=h,this.isLuxonDuration=!0}static fromMillis(o,u){return Ft.fromObject({milliseconds:o},u)}static fromObject(o,u={}){if(o==null||typeof o!="object")throw new InvalidArgumentError$1(`Duration.fromObject: argument expected to be an object, got ${o===null?"null":typeof o}`);return new Ft({values:normalizeObject$1(o,Ft.normalizeUnit),loc:Locale$1.fromObject(u),conversionAccuracy:u.conversionAccuracy,matrix:u.matrix})}static fromDurationLike(o){if(isNumber$2(o))return Ft.fromMillis(o);if(Ft.isDuration(o))return o;if(typeof o=="object")return Ft.fromObject(o);throw new InvalidArgumentError$1(`Unknown duration argument ${o} of type ${typeof o}`)}static fromISO(o,u){const[h]=parseISODuration$1(o);return h?Ft.fromObject(h,u):Ft.invalid("unparsable",`the input "${o}" can't be parsed as ISO 8601`)}static fromISOTime(o,u){const[h]=parseISOTimeOnly$1(o);return h?Ft.fromObject(h,u):Ft.invalid("unparsable",`the input "${o}" can't be parsed as ISO 8601`)}static invalid(o,u=null){if(!o)throw new InvalidArgumentError$1("need to specify a reason the Duration is invalid");const h=o instanceof Invalid$1?o:new Invalid$1(o,u);if(Settings$1.throwOnInvalid)throw new InvalidDurationError$1(h);return new Ft({invalid:h})}static normalizeUnit(o){const u={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"}[o&&o.toLowerCase()];if(!u)throw new InvalidUnitError$1(o);return u}static isDuration(o){return o&&o.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(o,u={}){const h={...u,floor:u.round!==!1&&u.floor!==!1};return this.isValid?Formatter$1.create(this.loc,h).formatDurationFromString(this,o):INVALID$2$1}toHuman(o={}){if(!this.isValid)return INVALID$2$1;const u=o.showZeros!==!1,h=orderedUnits$1$1.map(m=>{const p=this.values[m];return isUndefined$3(p)||p===0&&!u?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...o,unit:m.slice(0,-1)}).format(p)}).filter(m=>m);return this.loc.listFormatter({type:"conjunction",style:o.listStyle||"narrow",...o}).format(h)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let o="P";return this.years!==0&&(o+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(o+=this.months+this.quarters*3+"M"),this.weeks!==0&&(o+=this.weeks+"W"),this.days!==0&&(o+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(o+="T"),this.hours!==0&&(o+=this.hours+"H"),this.minutes!==0&&(o+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(o+=roundTo$1(this.seconds+this.milliseconds/1e3,3)+"S"),o==="P"&&(o+="T0S"),o}toISOTime(o={}){if(!this.isValid)return null;const u=this.toMillis();return u<0||u>=864e5?null:(o={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...o,includeOffset:!1},DateTime$1.fromMillis(u,{zone:"UTC"}).toISOTime(o))}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?durationToMillis$1(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(o){if(!this.isValid)return this;const u=Ft.fromDurationLike(o),h={};for(const m of orderedUnits$1$1)(hasOwnProperty$1(u.values,m)||hasOwnProperty$1(this.values,m))&&(h[m]=u.get(m)+this.get(m));return clone$1$1(this,{values:h},!0)}minus(o){if(!this.isValid)return this;const u=Ft.fromDurationLike(o);return this.plus(u.negate())}mapUnits(o){if(!this.isValid)return this;const u={};for(const h of Object.keys(this.values))u[h]=asNumber$1(o(this.values[h],h));return clone$1$1(this,{values:u},!0)}get(o){return this[Ft.normalizeUnit(o)]}set(o){if(!this.isValid)return this;const u={...this.values,...normalizeObject$1(o,Ft.normalizeUnit)};return clone$1$1(this,{values:u})}reconfigure({locale:o,numberingSystem:u,conversionAccuracy:h,matrix:m}={}){const _={loc:this.loc.clone({locale:o,numberingSystem:u}),matrix:m,conversionAccuracy:h};return clone$1$1(this,_)}as(o){return this.isValid?this.shiftTo(o).get(o):NaN}normalize(){if(!this.isValid)return this;const o=this.toObject();return normalizeValues$1(this.matrix,o),clone$1$1(this,{values:o},!0)}rescale(){if(!this.isValid)return this;const o=removeZeroes$1(this.normalize().shiftToAll().toObject());return clone$1$1(this,{values:o},!0)}shiftTo(...o){if(!this.isValid)return this;if(o.length===0)return this;o=o.map(_=>Ft.normalizeUnit(_));const u={},h={},m=this.toObject();let p;for(const _ of orderedUnits$1$1)if(o.indexOf(_)>=0){p=_;let y=0;for(const $ in h)y+=this.matrix[$][_]*h[$],h[$]=0;isNumber$2(m[_])&&(y+=m[_]);const S=Math.trunc(y);u[_]=S,h[_]=(y*1e3-S*1e3)/1e3}else isNumber$2(m[_])&&(h[_]=m[_]);for(const _ in h)h[_]!==0&&(u[p]+=_===p?h[_]:h[_]/this.matrix[p][_]);return normalizeValues$1(this.matrix,u),clone$1$1(this,{values:u},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const o={};for(const u of Object.keys(this.values))o[u]=this.values[u]===0?0:-this.values[u];return clone$1$1(this,{values:o},!0)}removeZeros(){if(!this.isValid)return this;const o=removeZeroes$1(this.values);return clone$1$1(this,{values:o},!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(o){if(!this.isValid||!o.isValid||!this.loc.equals(o.loc))return!1;function u(h,m){return h===void 0||h===0?m===void 0||m===0:h===m}for(const h of orderedUnits$1$1)if(!u(this.values[h],o.values[h]))return!1;return!0}};const INVALID$1$1="Invalid Interval";function validateStartEnd$1(r,o){return!r||!r.isValid?Interval$1.invalid("missing or invalid start"):!o||!o.isValid?Interval$1.invalid("missing or invalid end"):o<r?Interval$1.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${o.toISO()}`):null}let Interval$1=class Ut{constructor(o){this.s=o.start,this.e=o.end,this.invalid=o.invalid||null,this.isLuxonInterval=!0}static invalid(o,u=null){if(!o)throw new InvalidArgumentError$1("need to specify a reason the Interval is invalid");const h=o instanceof Invalid$1?o:new Invalid$1(o,u);if(Settings$1.throwOnInvalid)throw new InvalidIntervalError$1(h);return new Ut({invalid:h})}static fromDateTimes(o,u){const h=friendlyDateTime$1(o),m=friendlyDateTime$1(u),p=validateStartEnd$1(h,m);return p??new Ut({start:h,end:m})}static after(o,u){const h=Duration$1.fromDurationLike(u),m=friendlyDateTime$1(o);return Ut.fromDateTimes(m,m.plus(h))}static before(o,u){const h=Duration$1.fromDurationLike(u),m=friendlyDateTime$1(o);return Ut.fromDateTimes(m.minus(h),m)}static fromISO(o,u){const[h,m]=(o||"").split("/",2);if(h&&m){let p,_;try{p=DateTime$1.fromISO(h,u),_=p.isValid}catch{_=!1}let y,S;try{y=DateTime$1.fromISO(m,u),S=y.isValid}catch{S=!1}if(_&&S)return Ut.fromDateTimes(p,y);if(_){const $=Duration$1.fromISO(m,u);if($.isValid)return Ut.after(p,$)}else if(S){const $=Duration$1.fromISO(h,u);if($.isValid)return Ut.before(y,$)}}return Ut.invalid("unparsable",`the input "${o}" can't be parsed as ISO 8601`)}static isInterval(o){return o&&o.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):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(o="milliseconds"){return this.isValid?this.toDuration(o).get(o):NaN}count(o="milliseconds",u){if(!this.isValid)return NaN;const h=this.start.startOf(o,u);let m;return u!=null&&u.useLocaleWeeks?m=this.end.reconfigure({locale:h.locale}):m=this.end,m=m.startOf(o,u),Math.floor(m.diff(h,o).get(o))+(m.valueOf()!==this.end.valueOf())}hasSame(o){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,o):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(o){return this.isValid?this.s>o:!1}isBefore(o){return this.isValid?this.e<=o:!1}contains(o){return this.isValid?this.s<=o&&this.e>o:!1}set({start:o,end:u}={}){return this.isValid?Ut.fromDateTimes(o||this.s,u||this.e):this}splitAt(...o){if(!this.isValid)return[];const u=o.map(friendlyDateTime$1).filter(_=>this.contains(_)).sort((_,y)=>_.toMillis()-y.toMillis()),h=[];let{s:m}=this,p=0;for(;m<this.e;){const _=u[p]||this.e,y=+_>+this.e?this.e:_;h.push(Ut.fromDateTimes(m,y)),m=y,p+=1}return h}splitBy(o){const u=Duration$1.fromDurationLike(o);if(!this.isValid||!u.isValid||u.as("milliseconds")===0)return[];let{s:h}=this,m=1,p;const _=[];for(;h<this.e;){const y=this.start.plus(u.mapUnits(S=>S*m));p=+y>+this.e?this.e:y,_.push(Ut.fromDateTimes(h,p)),h=p,m+=1}return _}divideEqually(o){return this.isValid?this.splitBy(this.length()/o).slice(0,o):[]}overlaps(o){return this.e>o.s&&this.s<o.e}abutsStart(o){return this.isValid?+this.e==+o.s:!1}abutsEnd(o){return this.isValid?+o.e==+this.s:!1}engulfs(o){return this.isValid?this.s<=o.s&&this.e>=o.e:!1}equals(o){return!this.isValid||!o.isValid?!1:this.s.equals(o.s)&&this.e.equals(o.e)}intersection(o){if(!this.isValid)return this;const u=this.s>o.s?this.s:o.s,h=this.e<o.e?this.e:o.e;return u>=h?null:Ut.fromDateTimes(u,h)}union(o){if(!this.isValid)return this;const u=this.s<o.s?this.s:o.s,h=this.e>o.e?this.e:o.e;return Ut.fromDateTimes(u,h)}static merge(o){const[u,h]=o.sort((m,p)=>m.s-p.s).reduce(([m,p],_)=>p?p.overlaps(_)||p.abutsStart(_)?[m,p.union(_)]:[m.concat([p]),_]:[m,_],[[],null]);return h&&u.push(h),u}static xor(o){let u=null,h=0;const m=[],p=o.map(S=>[{time:S.s,type:"s"},{time:S.e,type:"e"}]),_=Array.prototype.concat(...p),y=_.sort((S,$)=>S.time-$.time);for(const S of y)h+=S.type==="s"?1:-1,h===1?u=S.time:(u&&+u!=+S.time&&m.push(Ut.fromDateTimes(u,S.time)),u=null);return Ut.merge(m)}difference(...o){return Ut.xor([this].concat(o)).map(u=>this.intersection(u)).filter(u=>u&&!u.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1$1}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(o=DATE_SHORT$1,u={}){return this.isValid?Formatter$1.create(this.s.loc.clone(u),o).formatInterval(this):INVALID$1$1}toISO(o){return this.isValid?`${this.s.toISO(o)}/${this.e.toISO(o)}`:INVALID$1$1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1$1}toISOTime(o){return this.isValid?`${this.s.toISOTime(o)}/${this.e.toISOTime(o)}`:INVALID$1$1}toFormat(o,{separator:u=" – "}={}){return this.isValid?`${this.s.toFormat(o)}${u}${this.e.toFormat(o)}`:INVALID$1$1}toDuration(o,u){return this.isValid?this.e.diff(this.s,o,u):Duration$1.invalid(this.invalidReason)}mapEndpoints(o){return Ut.fromDateTimes(o(this.s),o(this.e))}},Info$1=class{static hasDST(o=Settings$1.defaultZone){const u=DateTime$1.now().setZone(o).set({month:12});return!o.isUniversal&&u.offset!==u.set({month:6}).offset}static isValidIANAZone(o){return IANAZone$3.isValidZone(o)}static normalizeZone(o){return normalizeZone$1(o,Settings$1.defaultZone)}static getStartOfWeek({locale:o=null,locObj:u=null}={}){return(u||Locale$1.create(o)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:o=null,locObj:u=null}={}){return(u||Locale$1.create(o)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:o=null,locObj:u=null}={}){return(u||Locale$1.create(o)).getWeekendDays().slice()}static months(o="long",{locale:u=null,numberingSystem:h=null,locObj:m=null,outputCalendar:p="gregory"}={}){return(m||Locale$1.create(u,h,p)).months(o)}static monthsFormat(o="long",{locale:u=null,numberingSystem:h=null,locObj:m=null,outputCalendar:p="gregory"}={}){return(m||Locale$1.create(u,h,p)).months(o,!0)}static weekdays(o="long",{locale:u=null,numberingSystem:h=null,locObj:m=null}={}){return(m||Locale$1.create(u,h,null)).weekdays(o)}static weekdaysFormat(o="long",{locale:u=null,numberingSystem:h=null,locObj:m=null}={}){return(m||Locale$1.create(u,h,null)).weekdays(o,!0)}static meridiems({locale:o=null}={}){return Locale$1.create(o).meridiems()}static eras(o="short",{locale:u=null}={}){return Locale$1.create(u,null,"gregory").eras(o)}static features(){return{relative:hasRelative$1(),localeWeek:hasLocaleWeekInfo$1()}}};function dayDiff$1(r,o){const u=m=>m.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),h=u(o)-u(r);return Math.floor(Duration$1.fromMillis(h).as("days"))}function highOrderDiffs$1(r,o,u){const h=[["years",(S,$)=>$.year-S.year],["quarters",(S,$)=>$.quarter-S.quarter+($.year-S.year)*4],["months",(S,$)=>$.month-S.month+($.year-S.year)*12],["weeks",(S,$)=>{const E=dayDiff$1(S,$);return(E-E%7)/7}],["days",dayDiff$1]],m={},p=r;let _,y;for(const[S,$]of h)u.indexOf(S)>=0&&(_=S,m[S]=$(r,o),y=p.plus(m),y>o?(m[S]--,r=p.plus(m),r>o&&(y=r,m[S]--,r=p.plus(m))):r=y);return[r,m,y,_]}function diff(r,o,u,h){let[m,p,_,y]=highOrderDiffs$1(r,o,u);const S=o-m,$=u.filter(A=>["hours","minutes","seconds","milliseconds"].indexOf(A)>=0);$.length===0&&(_<o&&(_=m.plus({[y]:1})),_!==m&&(p[y]=(p[y]||0)+S/(_-m)));const E=Duration$1.fromObject(p,h);return $.length>0?Duration$1.fromMillis(S,h).shiftTo(...$).plus(E):E}const MISSING_FTP$1="missing Intl.DateTimeFormat.formatToParts support";function intUnit$1(r,o=u=>u){return{regex:r,deser:([u])=>o(parseDigits$1(u))}}const NBSP$1=" ",spaceOrNBSP$1=`[ ${NBSP$1}]`,spaceOrNBSPRegExp$1=new RegExp(spaceOrNBSP$1,"g");function fixListRegex$1(r){return r.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp$1,spaceOrNBSP$1)}function stripInsensitivities$1(r){return r.replace(/\./g,"").replace(spaceOrNBSPRegExp$1," ").toLowerCase()}function oneOf$1(r,o){return r===null?null:{regex:RegExp(r.map(fixListRegex$1).join("|")),deser:([u])=>r.findIndex(h=>stripInsensitivities$1(u)===stripInsensitivities$1(h))+o}}function offset$1(r,o){return{regex:r,deser:([,u,h])=>signedOffset$3(u,h),groups:o}}function simple$1(r){return{regex:r,deser:([o])=>o}}function escapeToken$1(r){return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken$1(r,o){const u=digitRegex$1(o),h=digitRegex$1(o,"{2}"),m=digitRegex$1(o,"{3}"),p=digitRegex$1(o,"{4}"),_=digitRegex$1(o,"{6}"),y=digitRegex$1(o,"{1,2}"),S=digitRegex$1(o,"{1,3}"),$=digitRegex$1(o,"{1,6}"),E=digitRegex$1(o,"{1,9}"),A=digitRegex$1(o,"{2,4}"),T=digitRegex$1(o,"{4,6}"),N=L=>({regex:RegExp(escapeToken$1(L.val)),deser:([w])=>w,literal:!0}),C=(L=>{if(r.literal)return N(L);switch(L.val){case"G":return oneOf$1(o.eras("short"),0);case"GG":return oneOf$1(o.eras("long"),0);case"y":return intUnit$1($);case"yy":return intUnit$1(A,untruncateYear$1);case"yyyy":return intUnit$1(p);case"yyyyy":return intUnit$1(T);case"yyyyyy":return intUnit$1(_);case"M":return intUnit$1(y);case"MM":return intUnit$1(h);case"MMM":return oneOf$1(o.months("short",!0),1);case"MMMM":return oneOf$1(o.months("long",!0),1);case"L":return intUnit$1(y);case"LL":return intUnit$1(h);case"LLL":return oneOf$1(o.months("short",!1),1);case"LLLL":return oneOf$1(o.months("long",!1),1);case"d":return intUnit$1(y);case"dd":return intUnit$1(h);case"o":return intUnit$1(S);case"ooo":return intUnit$1(m);case"HH":return intUnit$1(h);case"H":return intUnit$1(y);case"hh":return intUnit$1(h);case"h":return intUnit$1(y);case"mm":return intUnit$1(h);case"m":return intUnit$1(y);case"q":return intUnit$1(y);case"qq":return intUnit$1(h);case"s":return intUnit$1(y);case"ss":return intUnit$1(h);case"S":return intUnit$1(S);case"SSS":return intUnit$1(m);case"u":return simple$1(E);case"uu":return simple$1(y);case"uuu":return intUnit$1(u);case"a":return oneOf$1(o.meridiems(),0);case"kkkk":return intUnit$1(p);case"kk":return intUnit$1(A,untruncateYear$1);case"W":return intUnit$1(y);case"WW":return intUnit$1(h);case"E":case"c":return intUnit$1(u);case"EEE":return oneOf$1(o.weekdays("short",!1),1);case"EEEE":return oneOf$1(o.weekdays("long",!1),1);case"ccc":return oneOf$1(o.weekdays("short",!0),1);case"cccc":return oneOf$1(o.weekdays("long",!0),1);case"Z":case"ZZ":return offset$1(new RegExp(`([+-]${y.source})(?::(${h.source}))?`),2);case"ZZZ":return offset$1(new RegExp(`([+-]${y.source})(${h.source})?`),2);case"z":return simple$1(/[a-z_+-/]{1,256}?/i);case" ":return simple$1(/[^\S\n\r]/);default:return N(L)}})(r)||{invalidReason:MISSING_FTP$1};return C.token=r,C}const partTypeStyleToTokenVal$1={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"}};function tokenForPart$1(r,o,u){const{type:h,value:m}=r;if(h==="literal"){const S=/^\s+$/.test(m);return{literal:!S,val:S?" ":m}}const p=o[h];let _=h;h==="hour"&&(o.hour12!=null?_=o.hour12?"hour12":"hour24":o.hourCycle!=null?o.hourCycle==="h11"||o.hourCycle==="h12"?_="hour12":_="hour24":_=u.hour12?"hour12":"hour24");let y=partTypeStyleToTokenVal$1[_];if(typeof y=="object"&&(y=y[p]),y)return{literal:!1,val:y}}function buildRegex$1(r){return[`^${r.map(u=>u.regex).reduce((u,h)=>`${u}(${h.source})`,"")}$`,r]}function match$1(r,o,u){const h=r.match(o);if(h){const m={};let p=1;for(const _ in u)if(hasOwnProperty$1(u,_)){const y=u[_],S=y.groups?y.groups+1:1;!y.literal&&y.token&&(m[y.token.val[0]]=y.deser(h.slice(p,p+S))),p+=S}return[h,m]}else return[h,{}]}function dateTimeFromMatches$1(r){const o=p=>{switch(p){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}};let u=null,h;return isUndefined$3(r.z)||(u=IANAZone$3.create(r.z)),isUndefined$3(r.Z)||(u||(u=new FixedOffsetZone$3(r.Z)),h=r.Z),isUndefined$3(r.q)||(r.M=(r.q-1)*3+1),isUndefined$3(r.h)||(r.h<12&&r.a===1?r.h+=12:r.h===12&&r.a===0&&(r.h=0)),r.G===0&&r.y&&(r.y=-r.y),isUndefined$3(r.u)||(r.S=parseMillis$3(r.u)),[Object.keys(r).reduce((p,_)=>{const y=o(_);return y&&(p[y]=r[_]),p},{}),u,h]}let dummyDateTimeCache$1=null;function getDummyDateTime$1(){return dummyDateTimeCache$1||(dummyDateTimeCache$1=DateTime$1.fromMillis(1555555555555)),dummyDateTimeCache$1}function maybeExpandMacroToken$1(r,o){if(r.literal)return r;const u=Formatter$1.macroTokenToFormatOpts(r.val),h=formatOptsToTokens$1(u,o);return h==null||h.includes(void 0)?r:h}function expandMacroTokens$1(r,o){return Array.prototype.concat(...r.map(u=>maybeExpandMacroToken$1(u,o)))}let TokenParser$1=class{constructor(o,u){if(this.locale=o,this.format=u,this.tokens=expandMacroTokens$1(Formatter$1.parseFormat(u),o),this.units=this.tokens.map(h=>unitForToken$1(h,o)),this.disqualifyingUnit=this.units.find(h=>h.invalidReason),!this.disqualifyingUnit){const[h,m]=buildRegex$1(this.units);this.regex=RegExp(h,"i"),this.handlers=m}}explainFromTokens(o){if(this.isValid){const[u,h]=match$1(o,this.regex,this.handlers),[m,p,_]=h?dateTimeFromMatches$1(h):[null,null,void 0];if(hasOwnProperty$1(h,"a")&&hasOwnProperty$1(h,"H"))throw new ConflictingSpecificationError$1("Can't include meridiem when specifying 24-hour format");return{input:o,tokens:this.tokens,regex:this.regex,rawMatches:u,matches:h,result:m,zone:p,specificOffset:_}}else return{input:o,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function explainFromTokens$1(r,o,u){return new TokenParser$1(r,u).explainFromTokens(o)}function parseFromTokens$1(r,o,u){const{result:h,zone:m,specificOffset:p,invalidReason:_}=explainFromTokens$1(r,o,u);return[h,m,p,_]}function formatOptsToTokens$1(r,o){if(!r)return null;const h=Formatter$1.create(o,r).dtFormatter(getDummyDateTime$1()),m=h.formatToParts(),p=h.resolvedOptions();return m.map(_=>tokenForPart$1(_,r,p))}const INVALID$4="Invalid DateTime",MAX_DATE$1=864e13;function unsupportedZone$1(r){return new Invalid$1("unsupported zone",`the zone "${r.name}" is not supported`)}function possiblyCachedWeekData$1(r){return r.weekData===null&&(r.weekData=gregorianToWeek$1(r.c)),r.weekData}function possiblyCachedLocalWeekData$1(r){return r.localWeekData===null&&(r.localWeekData=gregorianToWeek$1(r.c,r.loc.getMinDaysInFirstWeek(),r.loc.getStartOfWeek())),r.localWeekData}function clone$2(r,o){const u={ts:r.ts,zone:r.zone,c:r.c,o:r.o,loc:r.loc,invalid:r.invalid};return new DateTime$1({...u,...o,old:u})}function fixOffset$1(r,o,u){let h=r-o*60*1e3;const m=u.offset(h);if(o===m)return[h,o];h-=(m-o)*60*1e3;const p=u.offset(h);return m===p?[h,m]:[r-Math.min(m,p)*60*1e3,Math.max(m,p)]}function tsToObj$1(r,o){r+=o*60*1e3;const u=new Date(r);return{year:u.getUTCFullYear(),month:u.getUTCMonth()+1,day:u.getUTCDate(),hour:u.getUTCHours(),minute:u.getUTCMinutes(),second:u.getUTCSeconds(),millisecond:u.getUTCMilliseconds()}}function objToTS$1(r,o,u){return fixOffset$1(objToLocalTS$3(r),o,u)}function adjustTime$1(r,o){const u=r.o,h=r.c.year+Math.trunc(o.years),m=r.c.month+Math.trunc(o.months)+Math.trunc(o.quarters)*3,p={...r.c,year:h,month:m,day:Math.min(r.c.day,daysInMonth$1(h,m))+Math.trunc(o.days)+Math.trunc(o.weeks)*7},_=Duration$1.fromObject({years:o.years-Math.trunc(o.years),quarters:o.quarters-Math.trunc(o.quarters),months:o.months-Math.trunc(o.months),weeks:o.weeks-Math.trunc(o.weeks),days:o.days-Math.trunc(o.days),hours:o.hours,minutes:o.minutes,seconds:o.seconds,milliseconds:o.milliseconds}).as("milliseconds"),y=objToLocalTS$3(p);let[S,$]=fixOffset$1(y,u,r.zone);return _!==0&&(S+=_,$=r.zone.offset(S)),{ts:S,o:$}}function parseDataToDateTime$1(r,o,u,h,m,p){const{setZone:_,zone:y}=u;if(r&&Object.keys(r).length!==0||o){const S=o||y,$=DateTime$1.fromObject(r,{...u,zone:S,specificOffset:p});return _?$:$.setZone(y)}else return DateTime$1.invalid(new Invalid$1("unparsable",`the input "${m}" can't be parsed as ${h}`))}function toTechFormat$1(r,o,u=!0){return r.isValid?Formatter$1.create(Locale$1.create("en-US"),{allowZ:u,forceSimple:!0}).formatDateTimeFromString(r,o):null}function toISODate$1(r,o,u){const h=r.c.year>9999||r.c.year<0;let m="";if(h&&r.c.year>=0&&(m+="+"),m+=padStart$3(r.c.year,h?6:4),u==="year")return m;if(o){if(m+="-",m+=padStart$3(r.c.month),u==="month")return m;m+="-"}else if(m+=padStart$3(r.c.month),u==="month")return m;return m+=padStart$3(r.c.day),m}function toISOTime$1(r,o,u,h,m,p,_){let y=!u||r.c.millisecond!==0||r.c.second!==0,S="";switch(_){case"day":case"month":case"year":break;default:if(S+=padStart$3(r.c.hour),_==="hour")break;if(o){if(S+=":",S+=padStart$3(r.c.minute),_==="minute")break;y&&(S+=":",S+=padStart$3(r.c.second))}else{if(S+=padStart$3(r.c.minute),_==="minute")break;y&&(S+=padStart$3(r.c.second))}if(_==="second")break;y&&(!h||r.c.millisecond!==0)&&(S+=".",S+=padStart$3(r.c.millisecond,3))}return m&&(r.isOffsetFixed&&r.offset===0&&!p?S+="Z":r.o<0?(S+="-",S+=padStart$3(Math.trunc(-r.o/60)),S+=":",S+=padStart$3(Math.trunc(-r.o%60))):(S+="+",S+=padStart$3(Math.trunc(r.o/60)),S+=":",S+=padStart$3(Math.trunc(r.o%60)))),p&&(S+="["+r.zone.ianaName+"]"),S}const defaultUnitValues$1={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues$1={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues$1={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits$2=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits$1=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits$1=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit$1(r){const o={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"}[r.toLowerCase()];if(!o)throw new InvalidUnitError$1(r);return o}function normalizeUnitWithLocalWeeks$1(r){switch(r.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit$1(r)}}function guessOffsetForZone$1(r){if(zoneOffsetTs$1===void 0&&(zoneOffsetTs$1=Settings$1.now()),r.type!=="iana")return r.offset(zoneOffsetTs$1);const o=r.name;let u=zoneOffsetGuessCache$1.get(o);return u===void 0&&(u=r.offset(zoneOffsetTs$1),zoneOffsetGuessCache$1.set(o,u)),u}function quickDT$1(r,o){const u=normalizeZone$1(o.zone,Settings$1.defaultZone);if(!u.isValid)return DateTime$1.invalid(unsupportedZone$1(u));const h=Locale$1.fromObject(o);let m,p;if(isUndefined$3(r.year))m=Settings$1.now();else{for(const S of orderedUnits$2)isUndefined$3(r[S])&&(r[S]=defaultUnitValues$1[S]);const _=hasInvalidGregorianData$1(r)||hasInvalidTimeData$1(r);if(_)return DateTime$1.invalid(_);const y=guessOffsetForZone$1(u);[m,p]=objToTS$1(r,y,u)}return new DateTime$1({ts:m,zone:u,loc:h,o:p})}function diffRelative$1(r,o,u){const h=isUndefined$3(u.round)?!0:u.round,m=isUndefined$3(u.rounding)?"trunc":u.rounding,p=(y,S)=>(y=roundTo$1(y,h||u.calendary?0:2,u.calendary?"round":m),o.loc.clone(u).relFormatter(u).format(y,S)),_=y=>u.calendary?o.hasSame(r,y)?0:o.startOf(y).diff(r.startOf(y),y).get(y):o.diff(r,y).get(y);if(u.unit)return p(_(u.unit),u.unit);for(const y of u.units){const S=_(y);if(Math.abs(S)>=1)return p(S,y)}return p(r>o?-0:0,u.units[u.units.length-1])}function lastOpts$1(r){let o={},u;return r.length>0&&typeof r[r.length-1]=="object"?(o=r[r.length-1],u=Array.from(r).slice(0,r.length-1)):u=Array.from(r),[o,u]}let zoneOffsetTs$1;const zoneOffsetGuessCache$1=new Map;let DateTime$1=class St{constructor(o){const u=o.zone||Settings$1.defaultZone;let h=o.invalid||(Number.isNaN(o.ts)?new Invalid$1("invalid input"):null)||(u.isValid?null:unsupportedZone$1(u));this.ts=isUndefined$3(o.ts)?Settings$1.now():o.ts;let m=null,p=null;if(!h)if(o.old&&o.old.ts===this.ts&&o.old.zone.equals(u))[m,p]=[o.old.c,o.old.o];else{const y=isNumber$2(o.o)&&!o.old?o.o:u.offset(this.ts);m=tsToObj$1(this.ts,y),h=Number.isNaN(m.year)?new Invalid$1("invalid input"):null,m=h?null:m,p=h?null:y}this._zone=u,this.loc=o.loc||Locale$1.create(),this.invalid=h,this.weekData=null,this.localWeekData=null,this.c=m,this.o=p,this.isLuxonDateTime=!0}static now(){return new St({})}static local(){const[o,u]=lastOpts$1(arguments),[h,m,p,_,y,S,$]=u;return quickDT$1({year:h,month:m,day:p,hour:_,minute:y,second:S,millisecond:$},o)}static utc(){const[o,u]=lastOpts$1(arguments),[h,m,p,_,y,S,$]=u;return o.zone=FixedOffsetZone$3.utcInstance,quickDT$1({year:h,month:m,day:p,hour:_,minute:y,second:S,millisecond:$},o)}static fromJSDate(o,u={}){const h=isDate$1(o)?o.valueOf():NaN;if(Number.isNaN(h))return St.invalid("invalid input");const m=normalizeZone$1(u.zone,Settings$1.defaultZone);return m.isValid?new St({ts:h,zone:m,loc:Locale$1.fromObject(u)}):St.invalid(unsupportedZone$1(m))}static fromMillis(o,u={}){if(isNumber$2(o))return o<-MAX_DATE$1||o>MAX_DATE$1?St.invalid("Timestamp out of range"):new St({ts:o,zone:normalizeZone$1(u.zone,Settings$1.defaultZone),loc:Locale$1.fromObject(u)});throw new InvalidArgumentError$1(`fromMillis requires a numerical input, but received a ${typeof o} with value ${o}`)}static fromSeconds(o,u={}){if(isNumber$2(o))return new St({ts:o*1e3,zone:normalizeZone$1(u.zone,Settings$1.defaultZone),loc:Locale$1.fromObject(u)});throw new InvalidArgumentError$1("fromSeconds requires a numerical input")}static fromObject(o,u={}){o=o||{};const h=normalizeZone$1(u.zone,Settings$1.defaultZone);if(!h.isValid)return St.invalid(unsupportedZone$1(h));const m=Locale$1.fromObject(u),p=normalizeObject$1(o,normalizeUnitWithLocalWeeks$1),{minDaysInFirstWeek:_,startOfWeek:y}=usesLocalWeekValues$1(p,m),S=Settings$1.now(),$=isUndefined$3(u.specificOffset)?h.offset(S):u.specificOffset,E=!isUndefined$3(p.ordinal),A=!isUndefined$3(p.year),T=!isUndefined$3(p.month)||!isUndefined$3(p.day),N=A||T,O=p.weekYear||p.weekNumber;if((N||E)&&O)throw new ConflictingSpecificationError$1("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(T&&E)throw new ConflictingSpecificationError$1("Can't mix ordinal dates with month/day");const C=O||p.weekday&&!N;let L,w,I=tsToObj$1(S,$);C?(L=orderedWeekUnits$1,w=defaultWeekUnitValues$1,I=gregorianToWeek$1(I,_,y)):E?(L=orderedOrdinalUnits$1,w=defaultOrdinalUnitValues$1,I=gregorianToOrdinal$1(I)):(L=orderedUnits$2,w=defaultUnitValues$1);let D=!1;for(const Ee of L){const ge=p[Ee];isUndefined$3(ge)?D?p[Ee]=w[Ee]:p[Ee]=I[Ee]:D=!0}const F=C?hasInvalidWeekData$1(p,_,y):E?hasInvalidOrdinalData$1(p):hasInvalidGregorianData$1(p),k=F||hasInvalidTimeData$1(p);if(k)return St.invalid(k);const ie=C?weekToGregorian$1(p,_,y):E?ordinalToGregorian$1(p):p,[fe,pe]=objToTS$1(ie,$,h),Se=new St({ts:fe,zone:h,o:pe,loc:m});return p.weekday&&N&&o.weekday!==Se.weekday?St.invalid("mismatched weekday",`you can't specify both a weekday of ${p.weekday} and a date of ${Se.toISO()}`):Se.isValid?Se:St.invalid(Se.invalid)}static fromISO(o,u={}){const[h,m]=parseISODate$1(o);return parseDataToDateTime$1(h,m,u,"ISO 8601",o)}static fromRFC2822(o,u={}){const[h,m]=parseRFC2822Date$1(o);return parseDataToDateTime$1(h,m,u,"RFC 2822",o)}static fromHTTP(o,u={}){const[h,m]=parseHTTPDate$1(o);return parseDataToDateTime$1(h,m,u,"HTTP",u)}static fromFormat(o,u,h={}){if(isUndefined$3(o)||isUndefined$3(u))throw new InvalidArgumentError$1("fromFormat requires an input string and a format");const{locale:m=null,numberingSystem:p=null}=h,_=Locale$1.fromOpts({locale:m,numberingSystem:p,defaultToEN:!0}),[y,S,$,E]=parseFromTokens$1(_,o,u);return E?St.invalid(E):parseDataToDateTime$1(y,S,h,`format ${u}`,o,$)}static fromString(o,u,h={}){return St.fromFormat(o,u,h)}static fromSQL(o,u={}){const[h,m]=parseSQL$1(o);return parseDataToDateTime$1(h,m,u,"SQL",o)}static invalid(o,u=null){if(!o)throw new InvalidArgumentError$1("need to specify a reason the DateTime is invalid");const h=o instanceof Invalid$1?o:new Invalid$1(o,u);if(Settings$1.throwOnInvalid)throw new InvalidDateTimeError$1(h);return new St({invalid:h})}static isDateTime(o){return o&&o.isLuxonDateTime||!1}static parseFormatForOpts(o,u={}){const h=formatOptsToTokens$1(o,Locale$1.fromObject(u));return h?h.map(m=>m?m.val:null).join(""):null}static expandFormat(o,u={}){return expandMacroTokens$1(Formatter$1.parseFormat(o),Locale$1.fromObject(u)).map(m=>m.val).join("")}static resetCache(){zoneOffsetTs$1=void 0,zoneOffsetGuessCache$1.clear()}get(o){return this[o]}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?possiblyCachedWeekData$1(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData$1(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData$1(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal$1(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info$1.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info$1.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info$1.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info$1.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];const o=864e5,u=6e4,h=objToLocalTS$3(this.c),m=this.zone.offset(h-o),p=this.zone.offset(h+o),_=this.zone.offset(h-m*u),y=this.zone.offset(h-p*u);if(_===y)return[this];const S=h-_*u,$=h-y*u,E=tsToObj$1(S,_),A=tsToObj$1($,y);return E.hour===A.hour&&E.minute===A.minute&&E.second===A.second&&E.millisecond===A.millisecond?[clone$2(this,{ts:S}),clone$2(this,{ts:$})]:[this]}get isInLeapYear(){return isLeapYear$1(this.year)}get daysInMonth(){return daysInMonth$1(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear$1(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear$1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear$1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(o={}){const{locale:u,numberingSystem:h,calendar:m}=Formatter$1.create(this.loc.clone(o),o).resolvedOptions(this);return{locale:u,numberingSystem:h,outputCalendar:m}}toUTC(o=0,u={}){return this.setZone(FixedOffsetZone$3.instance(o),u)}toLocal(){return this.setZone(Settings$1.defaultZone)}setZone(o,{keepLocalTime:u=!1,keepCalendarTime:h=!1}={}){if(o=normalizeZone$1(o,Settings$1.defaultZone),o.equals(this.zone))return this;if(o.isValid){let m=this.ts;if(u||h){const p=o.offset(this.ts),_=this.toObject();[m]=objToTS$1(_,p,o)}return clone$2(this,{ts:m,zone:o})}else return St.invalid(unsupportedZone$1(o))}reconfigure({locale:o,numberingSystem:u,outputCalendar:h}={}){const m=this.loc.clone({locale:o,numberingSystem:u,outputCalendar:h});return clone$2(this,{loc:m})}setLocale(o){return this.reconfigure({locale:o})}set(o){if(!this.isValid)return this;const u=normalizeObject$1(o,normalizeUnitWithLocalWeeks$1),{minDaysInFirstWeek:h,startOfWeek:m}=usesLocalWeekValues$1(u,this.loc),p=!isUndefined$3(u.weekYear)||!isUndefined$3(u.weekNumber)||!isUndefined$3(u.weekday),_=!isUndefined$3(u.ordinal),y=!isUndefined$3(u.year),S=!isUndefined$3(u.month)||!isUndefined$3(u.day),$=y||S,E=u.weekYear||u.weekNumber;if(($||_)&&E)throw new ConflictingSpecificationError$1("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(S&&_)throw new ConflictingSpecificationError$1("Can't mix ordinal dates with month/day");let A;p?A=weekToGregorian$1({...gregorianToWeek$1(this.c,h,m),...u},h,m):isUndefined$3(u.ordinal)?(A={...this.toObject(),...u},isUndefined$3(u.day)&&(A.day=Math.min(daysInMonth$1(A.year,A.month),A.day))):A=ordinalToGregorian$1({...gregorianToOrdinal$1(this.c),...u});const[T,N]=objToTS$1(A,this.o,this.zone);return clone$2(this,{ts:T,o:N})}plus(o){if(!this.isValid)return this;const u=Duration$1.fromDurationLike(o);return clone$2(this,adjustTime$1(this,u))}minus(o){if(!this.isValid)return this;const u=Duration$1.fromDurationLike(o).negate();return clone$2(this,adjustTime$1(this,u))}startOf(o,{useLocaleWeeks:u=!1}={}){if(!this.isValid)return this;const h={},m=Duration$1.normalizeUnit(o);switch(m){case"years":h.month=1;case"quarters":case"months":h.day=1;case"weeks":case"days":h.hour=0;case"hours":h.minute=0;case"minutes":h.second=0;case"seconds":h.millisecond=0;break}if(m==="weeks")if(u){const p=this.loc.getStartOfWeek(),{weekday:_}=this;_<p&&(h.weekNumber=this.weekNumber-1),h.weekday=p}else h.weekday=1;if(m==="quarters"){const p=Math.ceil(this.month/3);h.month=(p-1)*3+1}return this.set(h)}endOf(o,u){return this.isValid?this.plus({[o]:1}).startOf(o,u).minus(1):this}toFormat(o,u={}){return this.isValid?Formatter$1.create(this.loc.redefaultToEN(u)).formatDateTimeFromString(this,o):INVALID$4}toLocaleString(o=DATE_SHORT$1,u={}){return this.isValid?Formatter$1.create(this.loc.clone(u),o).formatDateTime(this):INVALID$4}toLocaleParts(o={}){return this.isValid?Formatter$1.create(this.loc.clone(o),o).formatDateTimeParts(this):[]}toISO({format:o="extended",suppressSeconds:u=!1,suppressMilliseconds:h=!1,includeOffset:m=!0,extendedZone:p=!1,precision:_="milliseconds"}={}){if(!this.isValid)return null;_=normalizeUnit$1(_);const y=o==="extended";let S=toISODate$1(this,y,_);return orderedUnits$2.indexOf(_)>=3&&(S+="T"),S+=toISOTime$1(this,y,u,h,m,p,_),S}toISODate({format:o="extended",precision:u="day"}={}){return this.isValid?toISODate$1(this,o==="extended",normalizeUnit$1(u)):null}toISOWeekDate(){return toTechFormat$1(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:o=!1,suppressSeconds:u=!1,includeOffset:h=!0,includePrefix:m=!1,extendedZone:p=!1,format:_="extended",precision:y="milliseconds"}={}){return this.isValid?(y=normalizeUnit$1(y),(m&&orderedUnits$2.indexOf(y)>=3?"T":"")+toISOTime$1(this,_==="extended",u,o,h,p,y)):null}toRFC2822(){return toTechFormat$1(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return toTechFormat$1(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?toISODate$1(this,!0):null}toSQLTime({includeOffset:o=!0,includeZone:u=!1,includeOffsetSpace:h=!0}={}){let m="HH:mm:ss.SSS";return(u||o)&&(h&&(m+=" "),u?m+="z":o&&(m+="ZZ")),toTechFormat$1(this,m,!0)}toSQL(o={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(o)}`:null}toString(){return this.isValid?this.toISO():INVALID$4}[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(o={}){if(!this.isValid)return{};const u={...this.c};return o.includeConfig&&(u.outputCalendar=this.outputCalendar,u.numberingSystem=this.loc.numberingSystem,u.locale=this.loc.locale),u}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(o,u="milliseconds",h={}){if(!this.isValid||!o.isValid)return Duration$1.invalid("created by diffing an invalid DateTime");const m={locale:this.locale,numberingSystem:this.numberingSystem,...h},p=maybeArray$1(u).map(Duration$1.normalizeUnit),_=o.valueOf()>this.valueOf(),y=_?this:o,S=_?o:this,$=diff(y,S,p,m);return _?$.negate():$}diffNow(o="milliseconds",u={}){return this.diff(St.now(),o,u)}until(o){return this.isValid?Interval$1.fromDateTimes(this,o):this}hasSame(o,u,h){if(!this.isValid)return!1;const m=o.valueOf(),p=this.setZone(o.zone,{keepLocalTime:!0});return p.startOf(u,h)<=m&&m<=p.endOf(u,h)}equals(o){return this.isValid&&o.isValid&&this.valueOf()===o.valueOf()&&this.zone.equals(o.zone)&&this.loc.equals(o.loc)}toRelative(o={}){if(!this.isValid)return null;const u=o.base||St.fromObject({},{zone:this.zone}),h=o.padding?this<u?-o.padding:o.padding:0;let m=["years","months","days","hours","minutes","seconds"],p=o.unit;return Array.isArray(o.unit)&&(m=o.unit,p=void 0),diffRelative$1(u,this.plus(h),{...o,numeric:"always",units:m,unit:p})}toRelativeCalendar(o={}){return this.isValid?diffRelative$1(o.base||St.fromObject({},{zone:this.zone}),this,{...o,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...o){if(!o.every(St.isDateTime))throw new InvalidArgumentError$1("min requires all arguments be DateTimes");return bestBy$1(o,u=>u.valueOf(),Math.min)}static max(...o){if(!o.every(St.isDateTime))throw new InvalidArgumentError$1("max requires all arguments be DateTimes");return bestBy$1(o,u=>u.valueOf(),Math.max)}static fromFormatExplain(o,u,h={}){const{locale:m=null,numberingSystem:p=null}=h,_=Locale$1.fromOpts({locale:m,numberingSystem:p,defaultToEN:!0});return explainFromTokens$1(_,o,u)}static fromStringExplain(o,u,h={}){return St.fromFormatExplain(o,u,h)}static buildFormatParser(o,u={}){const{locale:h=null,numberingSystem:m=null}=u,p=Locale$1.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0});return new TokenParser$1(p,o)}static fromFormatParser(o,u,h={}){if(isUndefined$3(o)||isUndefined$3(u))throw new InvalidArgumentError$1("fromFormatParser requires an input string and a format parser");const{locale:m=null,numberingSystem:p=null}=h,_=Locale$1.fromOpts({locale:m,numberingSystem:p,defaultToEN:!0});if(!_.equals(u.locale))throw new InvalidArgumentError$1(`fromFormatParser called with a locale of ${_}, but the format parser was created for ${u.locale}`);const{result:y,zone:S,specificOffset:$,invalidReason:E}=u.explainFromTokens(o);return E?St.invalid(E):parseDataToDateTime$1(y,S,h,`format ${u.format}`,o,$)}static get DATE_SHORT(){return DATE_SHORT$1}static get DATE_MED(){return DATE_MED$1}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY$1}static get DATE_FULL(){return DATE_FULL$1}static get DATE_HUGE(){return DATE_HUGE$1}static get TIME_SIMPLE(){return TIME_SIMPLE$1}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS$1}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET$1}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET$1}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE$1}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS$1}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET$1}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET$1}static get DATETIME_SHORT(){return DATETIME_SHORT$1}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS$1}static get DATETIME_MED(){return DATETIME_MED$1}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS$1}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY$1}static get DATETIME_FULL(){return DATETIME_FULL$1}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS$1}static get DATETIME_HUGE(){return DATETIME_HUGE$1}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS$1}};function friendlyDateTime$1(r){if(DateTime$1.isDateTime(r))return r;if(r&&r.valueOf&&isNumber$2(r.valueOf()))return DateTime$1.fromJSDate(r);if(r&&typeof r=="object")return DateTime$1.fromObject(r);throw new InvalidArgumentError$1(`Unknown datetime argument: ${r}, of type ${typeof r}`)}var De$1=r=>{throw TypeError(r)},Ne$1=(r,o,u)=>o.has(r)||De$1("Cannot "+u),M$1=(r,o,u)=>(Ne$1(r,o,"read from private field"),u?u.call(r):o.get(r)),ee$1=(r,o,u)=>o.has(r)?De$1("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,u),X$1=(r,o,u,h)=>(Ne$1(r,o,"write to private field"),h?h.call(r,u):o.set(r,u),u),ne$1=(r,o,u)=>(Ne$1(r,o,"access private method"),u);let LuxonError$2=class extends Error{},ZoneIsAbstractError$2=class extends LuxonError$2{constructor(){super("Zone is an abstract class")}},Zone$2=class{get type(){throw new ZoneIsAbstractError$2}get name(){throw new ZoneIsAbstractError$2}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError$2}offsetName(o,u){throw new ZoneIsAbstractError$2}formatOffset(o,u){throw new ZoneIsAbstractError$2}offset(o){throw new ZoneIsAbstractError$2}equals(o){throw new ZoneIsAbstractError$2}get isValid(){throw new ZoneIsAbstractError$2}};const dtfCache$2=new Map;function makeDTF$2(r){let o=dtfCache$2.get(r);return o===void 0&&(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),dtfCache$2.set(r,o)),o}const typeToPos$2={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset$2(r,o){const u=r.format(o).replace(/\u200E/g,""),h=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(u),[,m,p,_,y,S,$,E]=h;return[_,m,p,y,S,$,E]}function partsOffset$2(r,o){const u=r.formatToParts(o),h=[];for(let m=0;m<u.length;m++){const{type:p,value:_}=u[m],y=typeToPos$2[p];p==="era"?h[y]=_:isUndefined$2(y)||(h[y]=parseInt(_,10))}return h}const ianaZoneCache$2=new Map;let IANAZone$2=class Mr extends Zone$2{static create(o){let u=ianaZoneCache$2.get(o);return u===void 0&&ianaZoneCache$2.set(o,u=new Mr(o)),u}static resetCache(){ianaZoneCache$2.clear(),dtfCache$2.clear()}static isValidSpecifier(o){return this.isValidZone(o)}static isValidZone(o){if(!o)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:o}).format(),!0}catch{return!1}}constructor(o){super(),this.zoneName=o,this.valid=Mr.isValidZone(o)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(o,{format:u,locale:h}){return parseZoneInfo$2(o,u,h,this.name)}formatOffset(o,u){return formatOffset$2(this.offset(o),u)}offset(o){if(!this.valid)return NaN;const u=new Date(o);if(isNaN(u))return NaN;const h=makeDTF$2(this.name);let[m,p,_,y,S,$,E]=h.formatToParts?partsOffset$2(h,u):hackyOffset$2(h,u);y==="BC"&&(m=-Math.abs(m)+1);const A=objToLocalTS$2({year:m,month:p,day:_,hour:S===24?0:S,minute:$,second:E,millisecond:0});let T=+u;const N=T%1e3;return T-=N>=0?N:1e3+N,(A-T)/(60*1e3)}equals(o){return o.type==="iana"&&o.name===this.name}get isValid(){return this.valid}},singleton$3=null,FixedOffsetZone$2=class _r extends Zone$2{static get utcInstance(){return singleton$3===null&&(singleton$3=new _r(0)),singleton$3}static instance(o){return o===0?_r.utcInstance:new _r(o)}static parseSpecifier(o){if(o){const u=o.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(u)return new _r(signedOffset$2(u[1],u[2]))}return null}constructor(o){super(),this.fixed=o}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset$2(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${formatOffset$2(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(o,u){return formatOffset$2(this.fixed,u)}get isUniversal(){return!0}offset(){return this.fixed}equals(o){return o.type==="fixed"&&o.fixed===this.fixed}get isValid(){return!0}};function isUndefined$2(r){return typeof r>"u"}function padStart$2(r,o=2){const u=r<0;let h;return u?h="-"+(""+-r).padStart(o,"0"):h=(""+r).padStart(o,"0"),h}function parseInteger$2(r){if(!(isUndefined$2(r)||r===null||r===""))return parseInt(r,10)}function parseMillis$2(r){if(!(isUndefined$2(r)||r===null||r==="")){const o=parseFloat("0."+r)*1e3;return Math.floor(o)}}function objToLocalTS$2(r){let o=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond);return r.year<100&&r.year>=0&&(o=new Date(o),o.setUTCFullYear(r.year,r.month-1,r.day)),+o}function parseZoneInfo$2(r,o,u,h=null){const m=new Date(r),p={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};h&&(p.timeZone=h);const _={timeZoneName:o,...p},y=new Intl.DateTimeFormat(u,_).formatToParts(m).find(S=>S.type.toLowerCase()==="timezonename");return y?y.value:null}function signedOffset$2(r,o){let u=parseInt(r,10);Number.isNaN(u)&&(u=0);const h=parseInt(o,10)||0,m=u<0||Object.is(u,-0)?-h:h;return u*60+m}function formatOffset$2(r,o){const u=Math.trunc(Math.abs(r/60)),h=Math.trunc(Math.abs(r%60)),m=r>=0?"+":"-";switch(o){case"short":return`${m}${padStart$2(u,2)}:${padStart$2(h,2)}`;case"narrow":return`${m}${u}${h>0?`:${h}`:""}`;case"techie":return`${m}${padStart$2(u,2)}${padStart$2(h,2)}`;default:throw new RangeError(`Value format ${o} is out of range for property format`)}}const ianaRegex$2=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes$2(...r){const o=r.reduce((u,h)=>u+h.source,"");return RegExp(`^${o}$`)}function combineExtractors$2(...r){return o=>r.reduce(([u,h,m],p)=>{const[_,y,S]=p(o,m);return[{...u,..._},y||h,S]},[{},null,1]).slice(0,2)}function simpleParse$2(...r){return(o,u)=>{const h={};let m;for(m=0;m<r.length;m++)h[r[m]]=parseInteger$2(o[u+m]);return[h,null,u+m]}}const offsetRegex$2=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone$2=`(?:${offsetRegex$2.source}?(?:\\[(${ianaRegex$2.source})\\])?)?`,isoTimeBaseRegex$2=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex$2=RegExp(`${isoTimeBaseRegex$2.source}${isoExtendedZone$2}`),isoTimeExtensionRegex$2=RegExp(`(?:T${isoTimeRegex$2.source})?`),isoYmdRegex$2=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex$2=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex$2=/(\d{4})-?(\d{3})/,extractISOWeekData$2=simpleParse$2("weekYear","weekNumber","weekDay"),extractISOOrdinalData$2=simpleParse$2("year","ordinal"),sqlYmdRegex$2=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex$2=RegExp(`${isoTimeBaseRegex$2.source} ?(?:${offsetRegex$2.source}|(${ianaRegex$2.source}))?`),sqlTimeExtensionRegex$2=RegExp(`(?: ${sqlTimeRegex$2.source})?`);function int$2(r,o,u){const h=r[o];return isUndefined$2(h)?u:parseInteger$2(h)}function extractISOYmd$2(r,o){return[{year:int$2(r,o),month:int$2(r,o+1,1),day:int$2(r,o+2,1)},null,o+3]}function extractISOTime$2(r,o){return[{hours:int$2(r,o,0),minutes:int$2(r,o+1,0),seconds:int$2(r,o+2,0),milliseconds:parseMillis$2(r[o+3])},null,o+4]}function extractISOOffset$2(r,o){const u=!r[o]&&!r[o+1],h=signedOffset$2(r[o+1],r[o+2]),m=u?null:FixedOffsetZone$2.instance(h);return[{},m,o+3]}function extractIANAZone$2(r,o){const u=r[o]?IANAZone$2.create(r[o]):null;return[{},u,o+1]}combineRegexes$2(isoYmdRegex$2,isoTimeExtensionRegex$2);combineRegexes$2(isoWeekRegex$2,isoTimeExtensionRegex$2);combineRegexes$2(isoOrdinalRegex$2,isoTimeExtensionRegex$2);combineRegexes$2(isoTimeRegex$2);combineExtractors$2(extractISOYmd$2,extractISOTime$2,extractISOOffset$2,extractIANAZone$2);combineExtractors$2(extractISOWeekData$2,extractISOTime$2,extractISOOffset$2,extractIANAZone$2);combineExtractors$2(extractISOOrdinalData$2,extractISOTime$2,extractISOOffset$2,extractIANAZone$2);combineExtractors$2(extractISOTime$2,extractISOOffset$2,extractIANAZone$2);combineExtractors$2(extractISOTime$2);combineRegexes$2(sqlYmdRegex$2,sqlTimeExtensionRegex$2);combineRegexes$2(sqlTimeRegex$2);combineExtractors$2(extractISOTime$2,extractISOOffset$2,extractIANAZone$2);const countries$1=Object.freeze(new Map([["AD","Andorra"],["AE","United Arab Emirates"],["AF","Afghanistan"],["AG","Antigua and Barbuda"],["AI","Anguilla"],["AL","Albania"],["AM","Armenia"],["AO","Angola"],["AQ","Antarctica"],["AR","Argentina"],["AS","American Samoa"],["AT","Austria"],["AU","Australia"],["AW","Aruba"],["AX","Aland Islands"],["AZ","Azerbaijan"],["BA","Bosnia and Herzegovina"],["BB","Barbados"],["BD","Bangladesh"],["BE","Belgium"],["BF","Burkina Faso"],["BG","Bulgaria"],["BH","Bahrain"],["BI","Burundi"],["BJ","Benin"],["BL","Saint Barthelemy"],["BM","Bermuda"],["BN","Brunei"],["BO","Bolivia"],["BQ","Bonaire, Saint Eustatius and Saba"],["BR","Brazil"],["BS","Bahamas"],["BT","Bhutan"],["BV","Bouvet Island"],["BW","Botswana"],["BY","Belarus"],["BZ","Belize"],["CA","Canada"],["CC","Cocos Islands"],["CD","Democratic Republic of the Congo"],["CF","Central African Republic"],["CG","Republic of the Congo"],["CH","Switzerland"],["CI","Ivory Coast"],["CK","Cook Islands"],["CL","Chile"],["CM","Cameroon"],["CN","China"],["CO","Colombia"],["CR","Costa Rica"],["CU","Cuba"],["CV","Cape Verde"],["CW","Curacao"],["CX","Christmas Island"],["CY","Cyprus"],["CZ","Czech Republic"],["DE","Germany"],["DJ","Djibouti"],["DK","Denmark"],["DM","Dominica"],["DO","Dominican Republic"],["DZ","Algeria"],["EC","Ecuador"],["EE","Estonia"],["EG","Egypt"],["EH","Western Sahara"],["ER","Eritrea"],["ES","Spain"],["ET","Ethiopia"],["FI","Finland"],["FJ","Fiji"],["FK","Falkland Islands"],["FM","Micronesia"],["FO","Faroe Islands"],["FR","France"],["GA","Gabon"],["GB","United Kingdom"],["GD","Grenada"],["GE","Georgia"],["GF","French Guiana"],["GG","Guernsey"],["GH","Ghana"],["GI","Gibraltar"],["GL","Greenland"],["GM","Gambia"],["GN","Guinea"],["GP","Guadeloupe"],["GQ","Equatorial Guinea"],["GR","Greece"],["GS","South Georgia and the South Sandwich Islands"],["GT","Guatemala"],["GU","Guam"],["GW","Guinea-Bissau"],["GY","Guyana"],["HK","Hong Kong"],["HM","Heard Island and McDonald Islands"],["HN","Honduras"],["HR","Croatia"],["HT","Haiti"],["HU","Hungary"],["ID","Indonesia"],["IE","Ireland"],["IL","Israel"],["IM","Isle of Man"],["IN","India"],["IO","British Indian Ocean Territory"],["IQ","Iraq"],["IR","Iran"],["IS","Iceland"],["IT","Italy"],["JE","Jersey"],["JM","Jamaica"],["JO","Jordan"],["JP","Japan"],["KE","Kenya"],["KG","Kyrgyzstan"],["KH","Cambodia"],["KI","Kiribati"],["KM","Comoros"],["KN","Saint Kitts and Nevis"],["KP","North Korea"],["KR","South Korea"],["KW","Kuwait"],["KY","Cayman Islands"],["KZ","Kazakhstan"],["LA","Laos"],["LB","Lebanon"],["LC","Saint Lucia"],["LI","Liechtenstein"],["LK","Sri Lanka"],["LR","Liberia"],["LS","Lesotho"],["LT","Lithuania"],["LU","Luxembourg"],["LV","Latvia"],["LY","Libya"],["MA","Morocco"],["MC","Monaco"],["MD","Moldova"],["ME","Montenegro"],["MF","Saint Martin"],["MG","Madagascar"],["MH","Marshall Islands"],["MK","Macedonia"],["ML","Mali"],["MM","Myanmar"],["MN","Mongolia"],["MO","Macao"],["MP","Northern Mariana Islands"],["MQ","Martinique"],["MR","Mauritania"],["MS","Montserrat"],["MT","Malta"],["MU","Mauritius"],["MV","Maldives"],["MW","Malawi"],["MX","Mexico"],["MY","Malaysia"],["MZ","Mozambique"],["NA","Namibia"],["NC","New Caledonia"],["NE","Niger"],["NF","Norfolk Island"],["NG","Nigeria"],["NI","Nicaragua"],["NL","Netherlands"],["NO","Norway"],["NP","Nepal"],["NR","Nauru"],["NU","Niue"],["NZ","New Zealand"],["OM","Oman"],["PA","Panama"],["PE","Peru"],["PF","French Polynesia"],["PG","Papua New Guinea"],["PH","Philippines"],["PK","Pakistan"],["PL","Poland"],["PM","Saint Pierre and Miquelon"],["PN","Pitcairn"],["PR","Puerto Rico"],["PS","Palestinian Territory"],["PT","Portugal"],["PW","Palau"],["PY","Paraguay"],["QA","Qatar"],["RE","Reunion"],["RO","Romania"],["RS","Serbia"],["RU","Russia"],["RW","Rwanda"],["SA","Saudi Arabia"],["SB","Solomon Islands"],["SC","Seychelles"],["SD","Sudan"],["SE","Sweden"],["SG","Singapore"],["SH","Saint Helena"],["SI","Slovenia"],["SJ","Svalbard and Jan Mayen"],["SK","Slovakia"],["SL","Sierra Leone"],["SM","San Marino"],["SN","Senegal"],["SO","Somalia"],["SR","Suriname"],["SS","South Sudan"],["ST","Sao Tome and Principe"],["SV","El Salvador"],["SX","Sint Maarten"],["SY","Syria"],["SZ","Swaziland"],["TC","Turks and Caicos Islands"],["TD","Chad"],["TF","French Southern Territories"],["TG","Togo"],["TH","Thailand"],["TJ","Tajikistan"],["TK","Tokelau"],["TL","East Timor"],["TM","Turkmenistan"],["TN","Tunisia"],["TO","Tonga"],["TR","Turkey"],["TT","Trinidad and Tobago"],["TV","Tuvalu"],["TW","Taiwan"],["TZ","Tanzania"],["UA","Ukraine"],["UG","Uganda"],["UM","United States Minor Outlying Islands"],["US","United States"],["UY","Uruguay"],["UZ","Uzbekistan"],["VA","Vatican"],["VC","Saint Vincent and the Grenadines"],["VE","Venezuela"],["VG","British Virgin Islands"],["VI","U.S. Virgin Islands"],["VN","Vietnam"],["VU","Vanuatu"],["WF","Wallis and Futuna"],["WS","Samoa"],["XK","Kosovo"],["YE","Yemen"],["YT","Mayotte"],["ZA","South Africa"],["ZM","Zambia"],["ZW","Zimbabwe"]])),timezones$1=Object.freeze(new Map([["AD","Europe/Andorra"],["AE","Asia/Dubai"],["AF","Asia/Kabul"],["AG","America/Antigua"],["AI","America/Anguilla"],["AL","Europe/Tirane"],["AM","Asia/Yerevan"],["AO","Africa/Luanda"],["AQ","Antarctica/Casey"],["AR","America/Argentina/Buenos_Aires"],["AS","Pacific/Pago_Pago"],["AT","Europe/Vienna"],["AU","Australia/Sydney"],["AW","America/Aruba"],["AX","Europe/Mariehamn"],["AZ","Asia/Baku"],["BA","Europe/Sarajevo"],["BB","America/Barbados"],["BD","Asia/Dhaka"],["BE","Europe/Brussels"],["BF","Africa/Ouagadougou"],["BG","Europe/Sofia"],["BH","Asia/Bahrain"],["BI","Africa/Bujumbura"],["BJ","Africa/Porto-Novo"],["BL","America/St_Barthelemy"],["BM","Atlantic/Bermuda"],["BN","Asia/Brunei"],["BO","America/La_Paz"],["BQ","America/Kralendijk"],["BR","America/Sao_Paulo"],["BS","America/Nassau"],["BT","Asia/Thimphu"],["BW","Africa/Gaborone"],["BY","Europe/Minsk"],["BZ","America/Belize"],["CA","America/Toronto"],["CC","Indian/Cocos"],["CD","Africa/Kinshasa"],["CF","Africa/Bangui"],["CG","Africa/Brazzaville"],["CH","Europe/Zurich"],["CI","Africa/Abidjan"],["CK","Pacific/Rarotonga"],["CL","America/Santiago"],["CM","Africa/Douala"],["CN","Asia/Shanghai"],["CO","America/Bogota"],["CR","America/Costa_Rica"],["CU","America/Havana"],["CV","Atlantic/Cape_Verde"],["CW","America/Curacao"],["CX","Indian/Christmas"],["CY","Asia/Nicosia"],["CZ","Europe/Prague"],["DE","Europe/Berlin"],["DJ","Africa/Djibouti"],["DK","Europe/Copenhagen"],["DM","America/Dominica"],["DO","America/Santo_Domingo"],["DZ","Africa/Algiers"],["EC","America/Guayaquil"],["EE","Europe/Tallinn"],["EG","Africa/Cairo"],["EH","Africa/El_Aaiun"],["ER","Africa/Asmara"],["ES","Europe/Madrid"],["ET","Africa/Addis_Ababa"],["FI","Europe/Helsinki"],["FJ","Pacific/Fiji"],["FK","Atlantic/Stanley"],["FM","Pacific/Pohnpei"],["FO","Atlantic/Faroe"],["FR","Europe/Paris"],["GA","Africa/Libreville"],["GB","Europe/London"],["GD","America/Grenada"],["GE","Asia/Tbilisi"],["GF","America/Cayenne"],["GG","Europe/Guernsey"],["GH","Africa/Accra"],["GI","Europe/Gibraltar"],["GL","America/Godthab"],["GM","Africa/Banjul"],["GN","Africa/Conakry"],["GP","America/Guadeloupe"],["GQ","Africa/Malabo"],["GR","Europe/Athens"],["GS","Atlantic/South_Georgia"],["GT","America/Guatemala"],["GU","Pacific/Guam"],["GW","Africa/Bissau"],["GY","America/Guyana"],["HK","Asia/Hong_Kong"],["HN","America/Tegucigalpa"],["HR","Europe/Zagreb"],["HT","America/Port-au-Prince"],["HU","Europe/Budapest"],["ID","Asia/Jakarta"],["IE","Europe/Dublin"],["IL","Asia/Jerusalem"],["IM","Europe/Isle_of_Man"],["IN","Asia/Kolkata"],["IO","Indian/Chagos"],["IQ","Asia/Baghdad"],["IR","Asia/Tehran"],["IS","Atlantic/Reykjavik"],["IT","Europe/Rome"],["JE","Europe/Jersey"],["JM","America/Jamaica"],["JO","Asia/Amman"],["JP","Asia/Tokyo"],["KE","Africa/Nairobi"],["KG","Asia/Bishkek"],["KH","Asia/Phnom_Penh"],["KI","Pacific/Tarawa"],["KM","Indian/Comoro"],["KN","America/St_Kitts"],["KP","Asia/Pyongyang"],["KR","Asia/Seoul"],["KW","Asia/Kuwait"],["KY","America/Cayman"],["KZ","Asia/Almaty"],["LA","Asia/Vientiane"],["LB","Asia/Beirut"],["LC","America/St_Lucia"],["LI","Europe/Vaduz"],["LK","Asia/Colombo"],["LR","Africa/Monrovia"],["LS","Africa/Maseru"],["LT","Europe/Vilnius"],["LU","Europe/Luxembourg"],["LV","Europe/Riga"],["LY","Africa/Tripoli"],["MA","Africa/Casablanca"],["MC","Europe/Monaco"],["MD","Europe/Chisinau"],["ME","Europe/Podgorica"],["MF","America/Marigot"],["MG","Indian/Antananarivo"],["MH","Pacific/Majuro"],["MK","Europe/Skopje"],["ML","Africa/Bamako"],["MM","Asia/Yangon"],["MN","Asia/Ulaanbaatar"],["MO","Asia/Macau"],["MP","Pacific/Saipan"],["MQ","America/Martinique"],["MR","Africa/Nouakchott"],["MS","America/Montserrat"],["MT","Europe/Malta"],["MU","Indian/Mauritius"],["MV","Indian/Maldives"],["MW","Africa/Blantyre"],["MX","America/Mexico_City"],["MY","Asia/Kuala_Lumpur"],["MZ","Africa/Maputo"],["NA","Africa/Windhoek"],["NC","Pacific/Noumea"],["NE","Africa/Niamey"],["NF","Pacific/Norfolk"],["NG","Africa/Lagos"],["NI","America/Managua"],["NL","Europe/Amsterdam"],["NO","Europe/Oslo"],["NP","Asia/Kathmandu"],["NR","Pacific/Nauru"],["NU","Pacific/Niue"],["NZ","Pacific/Auckland"],["OM","Asia/Muscat"],["PA","America/Panama"],["PE","America/Lima"],["PF","Pacific/Tahiti"],["PG","Pacific/Port_Moresby"],["PH","Asia/Manila"],["PK","Asia/Karachi"],["PL","Europe/Warsaw"],["PM","America/Miquelon"],["PN","Pacific/Pitcairn"],["PR","America/Puerto_Rico"],["PS","Asia/Gaza"],["PT","Europe/Lisbon"],["PW","Pacific/Palau"],["PY","America/Asuncion"],["QA","Asia/Qatar"],["RE","Indian/Reunion"],["RO","Europe/Bucharest"],["RS","Europe/Belgrade"],["RU","Europe/Moscow"],["RW","Africa/Kigali"],["SA","Asia/Riyadh"],["SB","Pacific/Guadalcanal"],["SC","Indian/Mahe"],["SD","Africa/Khartoum"],["SE","Europe/Stockholm"],["SG","Asia/Singapore"],["SH","Atlantic/St_Helena"],["SI","Europe/Ljubljana"],["SJ","Arctic/Longyearbyen"],["SK","Europe/Bratislava"],["SL","Africa/Freetown"],["SM","Europe/San_Marino"],["SN","Africa/Dakar"],["SO","Africa/Mogadishu"],["SR","America/Paramaribo"],["SS","Africa/Juba"],["ST","Africa/Sao_Tome"],["SV","America/El_Salvador"],["SX","America/Lower_Princes"],["SY","Asia/Damascus"],["SZ","Africa/Mbabane"],["TC","America/Grand_Turk"],["TD","Africa/Ndjamena"],["TF","Indian/Kerguelen"],["TG","Africa/Lome"],["TH","Asia/Bangkok"],["TJ","Asia/Dushanbe"],["TK","Pacific/Fakaofo"],["TL","Asia/Dili"],["TM","Asia/Ashgabat"],["TN","Africa/Tunis"],["TO","Pacific/Tongatapu"],["TR","Europe/Istanbul"],["TT","America/Port_of_Spain"],["TV","Pacific/Funafuti"],["TW","Asia/Taipei"],["TZ","Africa/Dar_es_Salaam"],["UA","Europe/Kiev"],["UG","Africa/Kampala"],["UM","Pacific/Wake"],["US","America/New_York"],["UY","America/Montevideo"],["UZ","Asia/Tashkent"],["VA","Europe/Vatican"],["VC","America/St_Vincent"],["VE","America/Caracas"],["VG","America/Tortola"],["VI","America/St_Thomas"],["VN","Asia/Ho_Chi_Minh"],["VU","Pacific/Efate"],["WF","Pacific/Wallis"],["WS","Pacific/Apia"],["YE","Asia/Aden"],["YT","Indian/Mayotte"],["ZA","Africa/Johannesburg"],["ZM","Africa/Lusaka"],["ZW","Africa/Harare"]])),isos$1=Object.freeze(new Set([...countries$1.keys()])),areaCodeMap$1={201:"US",202:"US",203:"US",204:"CA",205:"US",206:"US",207:"US",208:"US",209:"US",210:"US",212:"US",213:"US",214:"US",215:"US",216:"US",217:"US",218:"US",219:"US",220:"US",223:"US",224:"US",225:"US",226:"CA",227:"US",228:"US",229:"US",231:"US",234:"US",236:"CA",239:"US",240:"US",242:"BS",246:"BB",248:"US",249:"CA",250:"CA",251:"US",252:"US",253:"US",254:"US",256:"US",260:"US",262:"US",263:"CA",264:"AI",267:"US",268:"AG",269:"US",270:"US",272:"US",276:"US",279:"US",281:"US",283:"US",284:"VG",289:"CA",301:"US",302:"US",303:"US",304:"US",305:"US",306:"CA",307:"US",308:"US",309:"US",310:"US",312:"US",313:"US",314:"US",315:"US",316:"US",317:"US",318:"US",319:"US",320:"US",321:"US",323:"US",325:"US",326:"US",329:"US",330:"US",331:"US",332:"US",334:"US",336:"US",337:"US",339:"US",340:"VI",341:"US",343:"CA",345:"KY",346:"US",347:"US",350:"US",351:"US",352:"US",354:"CA",360:"US",361:"US",364:"US",365:"CA",367:"CA",368:"CA",369:"US",380:"US",382:"CA",385:"US",386:"US",401:"US",402:"US",403:"CA",404:"US",405:"US",406:"US",407:"US",408:"US",409:"US",410:"US",412:"US",413:"US",414:"US",415:"US",416:"CA",417:"US",418:"CA",419:"US",423:"US",424:"US",425:"US",428:"CA",430:"US",431:"CA",432:"US",434:"US",435:"US",437:"CA",438:"CA",440:"US",441:"BM",442:"US",443:"US",445:"US",447:"US",448:"US",450:"CA",458:"US",463:"US",464:"US",468:"CA",469:"US",470:"US",473:"GD",474:"CA",475:"US",478:"US",479:"US",480:"US",484:"US",500:"US",501:"US",502:"US",503:"US",504:"US",505:"US",506:"CA",507:"US",508:"US",509:"US",510:"US",512:"US",513:"US",514:"CA",515:"US",516:"US",517:"US",518:"US",519:"CA",520:"US",521:"US",522:"US",525:"US",526:"US",527:"US",528:"US",529:"US",530:"US",531:"US",533:"US",534:"US",539:"US",540:"US",541:"US",544:"US",548:"CA",551:"US",557:"US",559:"US",561:"US",562:"US",563:"US",564:"US",566:"US",567:"US",570:"US",571:"US",572:"US",573:"US",574:"US",575:"US",577:"US",579:"CA",580:"US",581:"CA",582:"US",584:"CA",585:"US",586:"US",587:"CA",588:"US",600:"CA",601:"US",602:"US",603:"US",604:"CA",605:"US",606:"US",607:"US",608:"US",609:"US",610:"US",612:"US",613:"CA",614:"US",615:"US",616:"US",617:"US",618:"US",619:"US",620:"US",622:"CA",623:"US",626:"US",628:"US",629:"US",630:"US",631:"US",636:"US",639:"CA",640:"US",641:"US",646:"US",647:"CA",649:"TC",650:"US",651:"US",656:"US",657:"US",658:"JM",659:"US",660:"US",661:"US",662:"US",664:"MS",667:"US",669:"US",670:"MP",671:"GU",672:"CA",678:"US",680:"US",681:"US",682:"US",683:"CA",684:"AS",689:"US",701:"US",702:"US",703:"US",704:"US",705:"CA",706:"US",707:"US",708:"US",709:"CA",712:"US",713:"US",714:"US",715:"US",716:"US",717:"US",718:"US",719:"US",720:"US",721:"SX",724:"US",725:"US",726:"US",727:"US",731:"US",732:"US",734:"US",737:"US",740:"US",742:"CA",743:"US",747:"US",753:"CA",754:"US",757:"US",758:"LC",760:"US",762:"US",763:"US",765:"US",767:"DM",769:"US",770:"US",771:"US",772:"US",773:"US",774:"US",775:"US",778:"CA",779:"US",780:"CA",781:"US",782:"CA",784:"VC",785:"US",786:"US",787:"PR",800:"US",801:"US",802:"US",803:"US",804:"US",805:"US",806:"US",807:"CA",808:"US",809:"DO",810:"US",812:"US",813:"US",814:"US",815:"US",816:"US",817:"US",818:"US",819:"CA",820:"US",825:"CA",826:"US",828:"US",829:"DO",830:"US",831:"US",832:"US",833:"US",835:"US",838:"US",839:"US",840:"US",843:"US",844:"US",845:"US",847:"US",848:"US",849:"DO",850:"US",854:"US",855:"US",856:"US",857:"US",858:"US",859:"US",860:"US",862:"US",863:"US",864:"US",865:"US",866:"US",867:"CA",868:"TT",869:"KN",870:"US",872:"US",873:"CA",876:"JM",877:"US",878:"US",888:"US",900:"US",901:"US",902:"CA",903:"US",904:"US",905:"CA",906:"US",907:"US",908:"US",909:"US",910:"US",912:"US",913:"US",914:"US",915:"US",916:"US",917:"US",918:"US",919:"US",920:"US",925:"US",928:"US",929:"US",930:"US",931:"US",934:"US",936:"US",937:"US",938:"US",939:"PR",940:"US",941:"US",943:"US",945:"US",947:"US",948:"US",949:"US",951:"US",952:"US",954:"US",956:"US",959:"US",970:"US",971:"US",972:"US",973:"US",978:"US",979:"US",980:"US",984:"US",985:"US",986:"US",989:"US"},nanpaCountries$1=["US","CA","BS","BB","AI","AG","VG","VI","KY","BM","GD","TC","JM","MS","MP","GU","AS","SX","LC","DM","VC","PR","DO","TT","KN"];var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},allCountries$1=[["Afghanistan (افغانستان)","af","93","+..-..-...-...."],["Åland Islands","ax","358",""],["Albania (Shqipëri)","al","355","+...(...)...-..."],["Algeria (الجزائر)","dz","213","+...-..-...-...."],["American Samoa","as","1684","+.(...)...-...."],["Andorra","ad","376","+...-...-..."],["Angola","ao","244","+...(...)...-..."],["Anguilla","ai","1264","+.(...)...-...."],["Antarctica","aq","672",""],["Antigua and Barbuda","ag","1268","+.(...)...-...."],["Argentina","ar","54","+..(...)...-...."],["Armenia (Հայաստան)","am","374","+...-..-...-..."],["Aruba","aw","297","+...-...-...."],["Australia","au","61","+.. ... ... ..."],["Austria (Österreich)","at","43","+..(...)...-...."],["Azerbaijan (Azərbaycan)","az","994","+...-..-...-..-.."],["Bahamas","bs","1242","+.(...)...-...."],["Bahrain (البحرين)","bh","973","+...-....-...."],["Bangladesh (বাংলাদেশ)","bd","880","+...-..-...-..."],["Barbados","bb","1246","+.(...)...-...."],["Belarus (Беларусь)","by","375","+...(..)...-..-.."],["Belgium (België)","be","32","+.. ... .. .. .."],["Belize","bz","501","+...-...-...."],["Benin (Bénin)","bj","229","+...-..-..-...."],["Bermuda","bm","1441","+.(...)...-...."],["Bhutan (འབྲུག)","bt","975","+...-.-...-..."],["Bolivia","bo","591","+...-.-...-...."],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387","+...-..-...."],["Botswana","bw","267","+...-..-...-..."],["Bouvet Island","bv","47",""],["Brazil (Brasil)","br","55","+..-..-....-...."],["British Indian Ocean Territory","io","246","+...-...-...."],["British Virgin Islands","vg","1284","+.(...)...-...."],["Brunei","bn","673","+...-...-...."],["Bulgaria (България)","bg","359","+...(...)...-..."],["Burkina Faso","bf","226","+...-..-..-...."],["Burundi (Uburundi)","bi","257","+...-..-..-...."],["Cambodia (កម្ពុជា)","kh","855","+...-..-...-..."],["Cameroon (Cameroun)","cm","237","+...-....-...."],["Canada","ca","1","+. (...) ...-....",1,["204","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238","+...(...)..-.."],["Caribbean Netherlands","bq","599","+...-...-....",1],["Cayman Islands","ky","1345","+.(...)...-...."],["Central African Republic (République centrafricaine)","cf","236","+...-..-..-...."],["Chad (Tchad)","td","235","+...-..-..-..-.."],["Chile","cl","56","+..-.-....-...."],["China (中国)","cn","86","+.. ..-........"],["Christmas Island","cx","61",""],["Cocos (Keeling) Islands","cc","61",""],["Colombia","co","57","+..(...)...-...."],["Comoros (جزر القمر)","km","269","+...-..-....."],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243","+...(...)...-..."],["Congo (Republic) (Congo-Brazzaville)","cg","242","+...-..-...-...."],["Cook Islands","ck","682","+...-..-..."],["Costa Rica","cr","506","+... ....-...."],["Côte d’Ivoire","ci","225","+...-..-...-..."],["Croatia (Hrvatska)","hr","385","+...-..-...-..."],["Cuba","cu","53","+..-.-...-...."],["Curaçao","cw","599","+...-...-....",0],["Cyprus (Κύπρος)","cy","357","+...-..-...-..."],["Czech Republic (Česká republika)","cz","420","+...(...)...-..."],["Denmark (Danmark)","dk","45","+.. .. .. .. .."],["Djibouti","dj","253","+...-..-..-..-.."],["Dominica","dm","1767","+.(...)...-...."],["Dominican Republic (República Dominicana)","do","1","+.(...)...-....",2,["809","829","849"]],["Ecuador","ec","593","+...-.-...-...."],["Egypt (مصر)","eg","20","+..(...)...-...."],["El Salvador","sv","503","+... ....-...."],["Equatorial Guinea (Guinea Ecuatorial)","gq","240","+...-..-...-...."],["Eritrea","er","291","+...-.-...-..."],["Estonia (Eesti)","ee","372","+...-...-...."],["Ethiopia","et","251","+...-..-...-...."],["Falkland Islands (Islas Malvinas)","fk","500","+...-....."],["Faroe Islands (Føroyar)","fo","298","+...-...-..."],["Fiji","fj","679","+...-..-....."],["Finland (Suomi)","fi","358","+... .. .... ...."],["France","fr","33","+.. . .. .. .. .."],["French Guiana (Guyane française)","gf","594","+...-.....-...."],["French Polynesia (Polynésie française)","pf","689","+...-..-..-.."],["French Southern and Antarctic Lands","tf","262",""],["Gabon","ga","241","+...-.-..-..-.."],["Gambia","gm","220","+...(...)..-.."],["Georgia (საქართველო)","ge","995","+...(...)...-..."],["Germany (Deutschland)","de","49","+.. ... ......."],["Ghana (Gaana)","gh","233","+...(...)...-..."],["Gibraltar","gi","350","+...-...-....."],["Greece (Ελλάδα)","gr","30","+..(...)...-...."],["Greenland (Kalaallit Nunaat)","gl","299","+...-..-..-.."],["Grenada","gd","1473","+.(...)...-...."],["Guadeloupe","gp","590","",0],["Guam","gu","1671","+.(...)...-...."],["Guatemala","gt","502","+... ....-...."],["Guernsey","gg","44",""],["Guinea (Guinée)","gn","224","+...-..-...-..."],["Guinea-Bissau (Guiné Bissau)","gw","245","+...-.-......"],["Guyana","gy","592","+...-...-...."],["Haiti","ht","509","+... ....-...."],["Heard Island and McDonald Islands","hm","672",""],["Honduras","hn","504","+...-....-...."],["Hong Kong (香港)","hk","852","+... .... ...."],["Hungary (Magyarország)","hu","36","+..(...)...-..."],["Iceland (Ísland)","is","354","+... ... ...."],["India (भारत)","in","91","+.. .....-....."],["Indonesia","id","62","+..-..-...-.."],["Iran (ایران)","ir","98","+..(...)...-...."],["Iraq (العراق)","iq","964","+...(...)...-...."],["Ireland","ie","353","+... .. ......."],["Isle of Man","im","44",""],["Israel (ישראל)","il","972","+...-.-...-...."],["Italy (Italia)","it","39","+.. ... ......",0],["Jamaica","jm","1876","+.(...)...-...."],["Japan (日本)","jp","81","+.. ... .. ...."],["Jersey","je","44",""],["Jordan (الأردن)","jo","962","+...-.-....-...."],["Kazakhstan (Казахстан)","kz","7","+. ... ...-..-..",1],["Kenya","ke","254","+...-...-......"],["Kiribati","ki","686","+...-..-..."],["Kosovo","xk","383",""],["Kuwait (الكويت)","kw","965","+...-....-...."],["Kyrgyzstan (Кыргызстан)","kg","996","+...(...)...-..."],["Laos (ລາວ)","la","856","+...-..-...-..."],["Latvia (Latvija)","lv","371","+...-..-...-..."],["Lebanon (لبنان)","lb","961","+...-.-...-..."],["Lesotho","ls","266","+...-.-...-...."],["Liberia","lr","231","+...-..-...-..."],["Libya (ليبيا)","ly","218","+...-..-...-..."],["Liechtenstein","li","423","+...(...)...-...."],["Lithuania (Lietuva)","lt","370","+...(...)..-..."],["Luxembourg","lu","352","+...(...)...-..."],["Macau (澳門)","mo","853","+...-....-...."],["Macedonia (FYROM) (Македонија)","mk","389","+...-..-...-..."],["Madagascar (Madagasikara)","mg","261","+...-..-..-....."],["Malawi","mw","265","+...-.-....-...."],["Malaysia","my","60","+.. ..-....-...."],["Maldives","mv","960","+...-...-...."],["Mali","ml","223","+...-..-..-...."],["Malta","mt","356","+...-....-...."],["Marshall Islands","mh","692","+...-...-...."],["Martinique","mq","596","+...(...)..-..-.."],["Mauritania (موريتانيا)","mr","222","+...-..-..-...."],["Mauritius (Moris)","mu","230","+...-...-...."],["Mayotte","yt","262",""],["Mexico (México)","mx","52","+..-..-..-...."],["Micronesia","fm","691","+...-...-...."],["Moldova (Republica Moldova)","md","373","+...-....-...."],["Monaco","mc","377","+...-..-...-..."],["Mongolia (Монгол)","mn","976","+...-..-..-...."],["Montenegro (Crna Gora)","me","382","+...-..-...-..."],["Montserrat","ms","1664","+.(...)...-...."],["Morocco (المغرب)","ma","212","+...-..-....-..."],["Mozambique (Moçambique)","mz","258","+...-..-...-..."],["Myanmar (Burma) (မြန်မာ)","mm","95","+..-...-..."],["Namibia (Namibië)","na","264","+...-..-...-...."],["Nauru","nr","674","+...-...-...."],["Nepal (नेपाल)","np","977","+...-..-...-..."],["Netherlands (Nederland)","nl","31","+.. .. ........"],["New Caledonia (Nouvelle-Calédonie)","nc","687","+...-..-...."],["New Zealand","nz","64","+.. ...-...-...."],["Nicaragua","ni","505","+...-....-...."],["Niger (Nijar)","ne","227","+...-..-..-...."],["Nigeria","ng","234","+...-..-...-.."],["Niue","nu","683","+...-...."],["Norfolk Island","nf","672","+...-...-..."],["North Korea (조선 민주주의 인민 공화국)","kp","850","+...-...-..."],["Northern Mariana Islands","mp","1670","+.(...)...-...."],["Norway (Norge)","no","47","+.. ... .. ..."],["Oman (عُمان)","om","968","+...-..-...-..."],["Pakistan (پاکستان)","pk","92","+.. ...-......."],["Palau","pw","680","+...-...-...."],["Palestine (فلسطين)","ps","970","+...-..-...-...."],["Panama (Panamá)","pa","507","+...-...-...."],["Papua New Guinea","pg","675","+...(...)..-..."],["Paraguay","py","595","+...(...)...-..."],["Peru (Perú)","pe","51","+..(...)...-..."],["Philippines","ph","63","+.. ... ...."],["Pitcairn Islands","pn","64",""],["Poland (Polska)","pl","48","+.. ...-...-..."],["Portugal","pt","351","+...-..-...-...."],["Puerto Rico","pr","1","+. (...) ...-....",3,["787","939"]],["Qatar (قطر)","qa","974","+...-....-...."],["Réunion (La Réunion)","re","262","+...-.....-...."],["Romania (România)","ro","40","+..-..-...-...."],["Russia (Россия)","ru","7","+. ... ...-..-..",0],["Rwanda","rw","250","+...(...)...-..."],["Saint Barthélemy (Saint-Barthélemy)","bl","590","",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869","+.(...)...-...."],["Saint Lucia","lc","1758","+.(...)...-...."],["Saint Martin (Saint-Martin (partie française))","mf","590","",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784","+.(...)...-...."],["Samoa","ws","685","+...-..-...."],["San Marino","sm","378","+...-....-......"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239","+...-..-....."],["Saudi Arabia (المملكة العربية السعودية)","sa","966","+...-..-...-...."],["Senegal (Sénégal)","sn","221","+...-..-...-...."],["Serbia (Србија)","rs","381","+...-..-...-...."],["Seychelles","sc","248","+...-.-...-..."],["Sierra Leone","sl","232","+...-..-......"],["Singapore","sg","65","+.. ....-...."],["Sint Maarten","sx","1721","+.(...)...-...."],["Slovakia (Slovensko)","sk","421","+...(...)...-..."],["Slovenia (Slovenija)","si","386","+...-..-...-..."],["Solomon Islands","sb","677","+...-....."],["Somalia (Soomaaliya)","so","252","+...-.-...-..."],["South Africa","za","27","+..-..-...-...."],["South Georgia and the South Sandwich Islands","gs","500",""],["South Korea (대한민국)","kr","82","+..-..-...-...."],["South Sudan (جنوب السودان)","ss","211","+...-..-...-...."],["Spain (España)","es","34","+.. ... ... ..."],["Sri Lanka (ශ්රී ලංකාව)","lk","94","+..-..-...-...."],["Sudan (السودان)","sd","249","+...-..-...-...."],["Suriname","sr","597","+...-...-..."],["Svalbard and Jan Mayen","sj","47",""],["Swaziland","sz","268","+...-..-..-...."],["Sweden (Sverige)","se","46","+.. .. ... .. .."],["Switzerland (Schweiz)","ch","41","+.. .. ... .. .."],["Syria (سوريا)","sy","963","+...-..-....-..."],["Taiwan (台灣)","tw","886","+...-....-...."],["Tajikistan","tj","992","+...-..-...-...."],["Tanzania","tz","255","+...-..-...-...."],["Thailand (ไทย)","th","66","+..-..-...-..."],["Timor-Leste","tl","670","+...-...-...."],["Togo","tg","228","+...-..-...-..."],["Tokelau","tk","690","+...-...."],["Tonga","to","676","+...-....."],["Trinidad and Tobago","tt","1868","+.(...)...-...."],["Tunisia (تونس)","tn","216","+...-..-...-..."],["Turkey (Türkiye)","tr","90","+.. ... ... .. .."],["Turkmenistan","tm","993","+...-.-...-...."],["Turks and Caicos Islands","tc","1649","+.(...)...-...."],["Tuvalu","tv","688","+...-....."],["U.S. Virgin Islands","vi","1340","+.(...)...-...."],["Uganda","ug","256","+...(...)...-..."],["Ukraine (Україна)","ua","380","+...(..)...-..-.."],["United Arab Emirates (الإمارات العربية المتحدة)","ae","971","+...-.-...-...."],["United Kingdom","gb","44","+.. .... ......"],["United States","us","1","+. (...) ...-....",0],["United States Minor Outlying Islands","um","1","",2],["Uruguay","uy","598","+...-.-...-..-.."],["Uzbekistan (Oʻzbekiston)","uz","998","+...-..-...-...."],["Vanuatu","vu","678","+...-....."],["Vatican City (Città del Vaticano)","va","39","+.. .. .... ....",1],["Venezuela","ve","58","+..(...)...-...."],["Vietnam (Việt Nam)","vn","84","+..-..-....-..."],["Wallis and Futuna","wf","681","+...-..-...."],["Western Sahara","eh","212","+...-..-...."],["Yemen (اليمن)","ye","967","+...-.-...-..."],["Zambia","zm","260","+...-..-...-...."],["Zimbabwe","zw","263","+...-.-......"]],allCountryCodes$1={},iso2Lookup$1={},addCountryCode$1=function(r,o,u){o in allCountryCodes$1||(allCountryCodes$1[o]=[]);var h=u||0;allCountryCodes$1[o][h]=r};for(var i$1$1=0;i$1$1<allCountries$1.length;i$1$1++){var c$1=allCountries$1[i$1$1];if(allCountries$1[i$1$1]={name:c$1[0],iso2:c$1[1],dialCode:c$1[2],priority:c$1[4]||0},c$1[3]&&(allCountries$1[i$1$1].format=c$1[3]),c$1[5]){allCountries$1[i$1$1].hasAreaCodes=!0;for(var j$1=0;j$1<c$1[5].length;j$1++){var dialCode$1=c$1[2]+c$1[5][j$1];addCountryCode$1(c$1[1],dialCode$1)}}iso2Lookup$1[allCountries$1[i$1$1].iso2]=i$1$1,addCountryCode$1(c$1[1],c$1[2],c$1[4])}var country_telephone_data$1={allCountries:allCountries$1,iso2Lookup:iso2Lookup$1,allCountryCodes:allCountryCodes$1};function commonjsRequire$1(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var libphonenumber$1={exports:{}};libphonenumber$1.exports;(function(module,exports$1){(function(r){module.exports=r()})(function(){return function(){function r(o,u,h){function m(y,S){if(!u[y]){if(!o[y]){var $=typeof commonjsRequire$1=="function"&&commonjsRequire$1;if(!S&&$)return $(y,!0);if(p)return p(y,!0);var E=new Error("Cannot find module '"+y+"'");throw E.code="MODULE_NOT_FOUND",E}var A=u[y]={exports:{}};o[y][0].call(A.exports,function(T){var N=o[y][1][T];return m(N||T)},A,A.exports,r,o,u,h)}return u[y].exports}for(var p=typeof commonjsRequire$1=="function"&&commonjsRequire$1,_=0;_<h.length;_++)m(h[_]);return m}return r}()({1:[function(require,module,exports$1){(function(global){(function(){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.createTemplateTagFirstArg=function(r){return r.raw=r},$jscomp.createTemplateTagFirstArgWithRaw=function(r,o){return r.raw=o,r},$jscomp.arrayIteratorImpl=function(r){var o=0;return function(){return o<r.length?{done:!1,value:r[o++]}:{done:!0}}},$jscomp.arrayIterator=function(r){return{next:$jscomp.arrayIteratorImpl(r)}},$jscomp.makeIterator=function(r){var o=typeof Symbol<"u"&&Symbol.iterator&&r[Symbol.iterator];return o?o.call(r):$jscomp.arrayIterator(r)},$jscomp.arrayFromIterator=function(r){for(var o,u=[];!(o=r.next()).done;)u.push(o.value);return u},$jscomp.arrayFromIterable=function(r){return r instanceof Array?r:$jscomp.arrayFromIterator($jscomp.makeIterator(r))},$jscomp.checkStringArgs=function(r,o,u){if(r==null)throw new TypeError("The 'this' value for String.prototype."+u+" must not be null or undefined");if(o instanceof RegExp)throw new TypeError("First argument to String.prototype."+u+" must not be a regular expression");return r+""},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(r,o,u){return r==Array.prototype||r==Object.prototype||(r[o]=u.value),r},$jscomp.getGlobal=function(r){r=[typeof globalThis=="object"&&globalThis,r,typeof window=="object"&&window,typeof self=="object"&&self,typeof global=="object"&&global];for(var o=0;o<r.length;++o){var u=r[o];if(u&&u.Math==Math)return u}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE=typeof Symbol=="function"&&typeof Symbol("x")=="symbol",$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$",$jscomp.polyfill=function(r,o,u,h){o&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(r,o,u,h):$jscomp.polyfillUnisolated(r,o,u,h))},$jscomp.polyfillUnisolated=function(r,o,u,h){for(u=$jscomp.global,r=r.split("."),h=0;h<r.length-1;h++){var m=r[h];if(!(m in u))return;u=u[m]}r=r[r.length-1],h=u[r],o=o(h),o!=h&&o!=null&&$jscomp.defineProperty(u,r,{configurable:!0,writable:!0,value:o})},$jscomp.polyfillIsolated=function(r,o,u,h){var m=r.split(".");r=m.length===1,h=m[0],h=!r&&h in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var p=0;p<m.length-1;p++){var _=m[p];if(!(_ in h))return;h=h[_]}m=m[m.length-1],u=$jscomp.IS_SYMBOL_NATIVE&&u==="es6"?h[m]:null,o=o(u),o!=null&&(r?$jscomp.defineProperty($jscomp.polyfills,m,{configurable:!0,writable:!0,value:o}):o!==u&&($jscomp.propertyToPolyfillSymbol[m]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(m):$jscomp.POLYFILL_PREFIX+m,m=$jscomp.propertyToPolyfillSymbol[m],$jscomp.defineProperty(h,m,{configurable:!0,writable:!0,value:o})))},$jscomp.polyfill("String.prototype.endsWith",function(r){return r||function(o,u){var h=$jscomp.checkStringArgs(this,o,"endsWith");o+="",u===void 0&&(u=h.length),u=Math.max(0,Math.min(u|0,h.length));for(var m=o.length;0<m&&0<u;)if(h[--u]!=o[--m])return!1;return 0>=m}},"es6","es3"),$jscomp.findInternal=function(r,o,u){r instanceof String&&(r=String(r));for(var h=r.length,m=0;m<h;m++){var p=r[m];if(o.call(u,p,m,r))return{i:m,v:p}}return{i:-1,v:void 0}},$jscomp.polyfill("Array.prototype.find",function(r){return r||function(o,u){return $jscomp.findInternal(this,o,u).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(r){return r||function(o,u){var h=$jscomp.checkStringArgs(this,o,"startsWith");o+="";var m=h.length,p=o.length;u=Math.max(0,Math.min(u|0,h.length));for(var _=0;_<p&&u<m;)if(h[u++]!=o[_++])return!1;return _>=p}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(r){return r||function(o){var u=$jscomp.checkStringArgs(this,null,"repeat");if(0>o||1342177279<o)throw new RangeError("Invalid count value");o|=0;for(var h="";o;)o&1&&(h+=u),(o>>>=1)&&(u+=u);return h}},"es6","es3"),$jscomp.initSymbol=function(){},$jscomp.polyfill("Symbol",function(r){if(r)return r;var o=function(m,p){this.$jscomp$symbol$id_=m,$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:p})};o.prototype.toString=function(){return this.$jscomp$symbol$id_};var u=0,h=function(m){if(this instanceof h)throw new TypeError("Symbol is not a constructor");return new o("jscomp_symbol_"+(m||"")+"_"+u++,m)};return h},"es6","es3"),$jscomp.polyfill("Symbol.iterator",function(r){if(r)return r;r=Symbol("Symbol.iterator");for(var o="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),u=0;u<o.length;u++){var h=$jscomp.global[o[u]];typeof h=="function"&&typeof h.prototype[r]!="function"&&$jscomp.defineProperty(h.prototype,r,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return r},"es6","es3"),$jscomp.iteratorPrototype=function(r){return r={next:r},r[Symbol.iterator]=function(){return this},r},$jscomp.iteratorFromArray=function(r,o){r instanceof String&&(r+="");var u=0,h=!1,m={next:function(){if(!h&&u<r.length){var p=u++;return{value:o(p,r[p]),done:!1}}return h=!0,{done:!0,value:void 0}}};return m[Symbol.iterator]=function(){return m},m},$jscomp.polyfill("Array.prototype.keys",function(r){return r||function(){return $jscomp.iteratorFromArray(this,function(o){return o})}},"es6","es3"),$jscomp.polyfill("Object.is",function(r){return r||function(o,u){return o===u?o!==0||1/o===1/u:o!==o&&u!==u}},"es6","es3"),$jscomp.polyfill("Array.prototype.includes",function(r){return r||function(o,u){var h=this;h instanceof String&&(h=String(h));var m=h.length;for(u=u||0,0>u&&(u=Math.max(u+m,0));u<m;u++){var p=h[u];if(p===o||Object.is(p,o))return!0}return!1}},"es7","es3"),$jscomp.polyfill("String.prototype.includes",function(r){return r||function(o,u){return $jscomp.checkStringArgs(this,o,"includes").indexOf(o,u||0)!==-1}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.exportPath_=function(r,o,u,h){r=r.split("."),h=h||goog.global,r[0]in h||typeof h.execScript>"u"||h.execScript("var "+r[0]);for(var m;r.length&&(m=r.shift());)if(r.length||o===void 0)h=h[m]&&h[m]!==Object.prototype[m]?h[m]:h[m]={};else if(!u&&goog.isObject(o)&&goog.isObject(h[m]))for(var p in o)o.hasOwnProperty(p)&&(h[m][p]=o[p]);else h[m]=o},goog.define=function(r,o){if(!COMPILED){var u=goog.global.CLOSURE_UNCOMPILED_DEFINES,h=goog.global.CLOSURE_DEFINES;u&&u.nodeType===void 0&&Object.prototype.hasOwnProperty.call(u,r)?o=u[r]:h&&h.nodeType===void 0&&Object.prototype.hasOwnProperty.call(h,r)&&(o=h[r])}return o},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(r){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(r))throw Error('Namespace "'+r+'" already declared.');goog.constructNamespace_(r)},goog.constructNamespace_=function(r,o,u){if(!COMPILED){delete goog.implicitNamespaces_[r];for(var h=r;(h=h.substring(0,h.lastIndexOf(".")))&&!goog.getObjectByName(h);)goog.implicitNamespaces_[h]=!0}goog.exportPath_(r,o,u)},goog.getScriptNonce=function(r){return r&&r!=goog.global?goog.getScriptNonce_(r.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(r){return(r=r.querySelector&&r.querySelector("script[nonce]"))&&(r=r.nonce||r.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(r)?r:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(r){if(typeof r!="string"||!r||r.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+r+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=r,!COMPILED){if(goog.isProvided_(r))throw Error('Namespace "'+r+'" already declared.');delete goog.implicitNamespaces_[r]}},goog.module.get=function(r){return goog.module.getInternal_(r)},goog.module.getInternal_=function(r){if(!COMPILED){if(r in goog.loadedModules_)return goog.loadedModules_[r].exports;if(!goog.implicitNamespaces_[r])return r=goog.getObjectByName(r),r??null}return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var r=goog.global.$jscomp;return r?typeof r.getCurrentModulePath!="function"?!1:!!r.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(r){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(r in goog.loadedModules_)throw Error('Module with namespace "'+r+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=r;else{var o=goog.global.$jscomp;if(!o||typeof o.getCurrentModulePath!="function")throw Error('Module with namespace "'+r+'" has been loaded incorrectly.');o=o.require(o.getCurrentModulePath()),goog.loadedModules_[r]={exports:o,type:goog.ModuleType.ES6,moduleId:r}}},goog.setTestOnly=function(r){if(goog.DISALLOW_TEST_ONLY_CODE)throw r=r||"",Error("Importing test-only code into non-debug environment"+(r?": "+r:"."))},goog.forwardDeclare=function(r){},COMPILED||(goog.isProvided_=function(r){return r in goog.loadedModules_||!goog.implicitNamespaces_[r]&&goog.getObjectByName(r)!=null},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(r,o){r=r.split("."),o=o||goog.global;for(var u=0;u<r.length;u++)if(o=o[r[u]],o==null)return null;return o},goog.addDependency=function(r,o,u,h){!COMPILED&&goog.DEPENDENCIES_ENABLED&&goog.debugLoader_.addDependency(r,o,u,h)},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(r){goog.global.console&&goog.global.console.error(r)},goog.require=function(r){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.debugLoader_.requested(r),goog.isProvided_(r)){if(goog.isInModuleLoader_())return goog.module.getInternal_(r)}else if(goog.ENABLE_DEBUG_LOADER){var o=goog.moduleLoaderState_;goog.moduleLoaderState_=null;try{goog.debugLoader_.load_(r)}finally{goog.moduleLoaderState_=o}}return null}},goog.requireType=function(r){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(r){r.instance_=void 0,r.getInstance=function(){return r.instance_?r.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=r),r.instance_=new r)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(goog.hasBadLetScoping==null){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(r){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(r){return"(function(){"+r+`
|
|
1
|
+
"use strict";var zr=Object.defineProperty;var xr=r=>{throw TypeError(r)};var Yr=(r,o,u)=>o in r?zr(r,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):r[o]=u;var dt=(r,o,u)=>Yr(r,typeof o!="symbol"?o+"":o,u),wr=(r,o,u)=>o.has(r)||xr("Cannot "+u);var Lt=(r,o,u)=>(wr(r,o,"read from private field"),u?u.call(r):o.get(r)),kt=(r,o,u)=>o.has(r)?xr("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,u),Bt=(r,o,u,h)=>(wr(r,o,"write to private field"),h?h.call(r,u):o.set(r,u),u),fr=(r,o,u)=>(wr(r,o,"access private method"),u);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const exceptions=require("./exceptions-pRtdSy7a.js");var re$2={exports:{}};const SEMVER_SPEC_VERSION="2.0.0",MAX_LENGTH$1=256,MAX_SAFE_INTEGER$1=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=MAX_LENGTH$1-6,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var constants$1={MAX_LENGTH:MAX_LENGTH$1,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const debug$1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};var debug_1=debug$1;re$2.exports;(function(r,o){const{MAX_SAFE_COMPONENT_LENGTH:u,MAX_SAFE_BUILD_LENGTH:h,MAX_LENGTH:m}=constants$1,p=debug_1;o=r.exports={};const _=o.re=[],y=o.safeRe=[],S=o.src=[],$=o.safeSrc=[],E=o.t={};let A=0;const T="[a-zA-Z0-9-]",N=[["\\s",1],["\\d",m],[T,h]],O=L=>{for(const[w,I]of N)L=L.split(`${w}*`).join(`${w}{0,${I}}`).split(`${w}+`).join(`${w}{1,${I}}`);return L},C=(L,w,I)=>{const D=O(w),F=A++;p(L,F,w),E[L]=F,S[F]=w,$[F]=D,_[F]=new RegExp(w,I?"g":void 0),y[F]=new RegExp(D,I?"g":void 0)};C("NUMERICIDENTIFIER","0|[1-9]\\d*"),C("NUMERICIDENTIFIERLOOSE","\\d+"),C("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${T}*`),C("MAINVERSION",`(${S[E.NUMERICIDENTIFIER]})\\.(${S[E.NUMERICIDENTIFIER]})\\.(${S[E.NUMERICIDENTIFIER]})`),C("MAINVERSIONLOOSE",`(${S[E.NUMERICIDENTIFIERLOOSE]})\\.(${S[E.NUMERICIDENTIFIERLOOSE]})\\.(${S[E.NUMERICIDENTIFIERLOOSE]})`),C("PRERELEASEIDENTIFIER",`(?:${S[E.NONNUMERICIDENTIFIER]}|${S[E.NUMERICIDENTIFIER]})`),C("PRERELEASEIDENTIFIERLOOSE",`(?:${S[E.NONNUMERICIDENTIFIER]}|${S[E.NUMERICIDENTIFIERLOOSE]})`),C("PRERELEASE",`(?:-(${S[E.PRERELEASEIDENTIFIER]}(?:\\.${S[E.PRERELEASEIDENTIFIER]})*))`),C("PRERELEASELOOSE",`(?:-?(${S[E.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${S[E.PRERELEASEIDENTIFIERLOOSE]})*))`),C("BUILDIDENTIFIER",`${T}+`),C("BUILD",`(?:\\+(${S[E.BUILDIDENTIFIER]}(?:\\.${S[E.BUILDIDENTIFIER]})*))`),C("FULLPLAIN",`v?${S[E.MAINVERSION]}${S[E.PRERELEASE]}?${S[E.BUILD]}?`),C("FULL",`^${S[E.FULLPLAIN]}$`),C("LOOSEPLAIN",`[v=\\s]*${S[E.MAINVERSIONLOOSE]}${S[E.PRERELEASELOOSE]}?${S[E.BUILD]}?`),C("LOOSE",`^${S[E.LOOSEPLAIN]}$`),C("GTLT","((?:<|>)?=?)"),C("XRANGEIDENTIFIERLOOSE",`${S[E.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),C("XRANGEIDENTIFIER",`${S[E.NUMERICIDENTIFIER]}|x|X|\\*`),C("XRANGEPLAIN",`[v=\\s]*(${S[E.XRANGEIDENTIFIER]})(?:\\.(${S[E.XRANGEIDENTIFIER]})(?:\\.(${S[E.XRANGEIDENTIFIER]})(?:${S[E.PRERELEASE]})?${S[E.BUILD]}?)?)?`),C("XRANGEPLAINLOOSE",`[v=\\s]*(${S[E.XRANGEIDENTIFIERLOOSE]})(?:\\.(${S[E.XRANGEIDENTIFIERLOOSE]})(?:\\.(${S[E.XRANGEIDENTIFIERLOOSE]})(?:${S[E.PRERELEASELOOSE]})?${S[E.BUILD]}?)?)?`),C("XRANGE",`^${S[E.GTLT]}\\s*${S[E.XRANGEPLAIN]}$`),C("XRANGELOOSE",`^${S[E.GTLT]}\\s*${S[E.XRANGEPLAINLOOSE]}$`),C("COERCEPLAIN",`(^|[^\\d])(\\d{1,${u}})(?:\\.(\\d{1,${u}}))?(?:\\.(\\d{1,${u}}))?`),C("COERCE",`${S[E.COERCEPLAIN]}(?:$|[^\\d])`),C("COERCEFULL",S[E.COERCEPLAIN]+`(?:${S[E.PRERELEASE]})?(?:${S[E.BUILD]})?(?:$|[^\\d])`),C("COERCERTL",S[E.COERCE],!0),C("COERCERTLFULL",S[E.COERCEFULL],!0),C("LONETILDE","(?:~>?)"),C("TILDETRIM",`(\\s*)${S[E.LONETILDE]}\\s+`,!0),o.tildeTrimReplace="$1~",C("TILDE",`^${S[E.LONETILDE]}${S[E.XRANGEPLAIN]}$`),C("TILDELOOSE",`^${S[E.LONETILDE]}${S[E.XRANGEPLAINLOOSE]}$`),C("LONECARET","(?:\\^)"),C("CARETTRIM",`(\\s*)${S[E.LONECARET]}\\s+`,!0),o.caretTrimReplace="$1^",C("CARET",`^${S[E.LONECARET]}${S[E.XRANGEPLAIN]}$`),C("CARETLOOSE",`^${S[E.LONECARET]}${S[E.XRANGEPLAINLOOSE]}$`),C("COMPARATORLOOSE",`^${S[E.GTLT]}\\s*(${S[E.LOOSEPLAIN]})$|^$`),C("COMPARATOR",`^${S[E.GTLT]}\\s*(${S[E.FULLPLAIN]})$|^$`),C("COMPARATORTRIM",`(\\s*)${S[E.GTLT]}\\s*(${S[E.LOOSEPLAIN]}|${S[E.XRANGEPLAIN]})`,!0),o.comparatorTrimReplace="$1$2$3",C("HYPHENRANGE",`^\\s*(${S[E.XRANGEPLAIN]})\\s+-\\s+(${S[E.XRANGEPLAIN]})\\s*$`),C("HYPHENRANGELOOSE",`^\\s*(${S[E.XRANGEPLAINLOOSE]})\\s+-\\s+(${S[E.XRANGEPLAINLOOSE]})\\s*$`),C("STAR","(<|>)?=?\\s*\\*"),C("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),C("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(re$2,re$2.exports);var reExports=re$2.exports;const looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$1=r=>r?typeof r!="object"?looseOption:r:emptyOpts;var parseOptions_1=parseOptions$1;const numeric=/^[0-9]+$/,compareIdentifiers$1=(r,o)=>{if(typeof r=="number"&&typeof o=="number")return r===o?0:r<o?-1:1;const u=numeric.test(r),h=numeric.test(o);return u&&h&&(r=+r,o=+o),r===o?0:u&&!h?-1:h&&!u?1:r<o?-1:1},rcompareIdentifiers=(r,o)=>compareIdentifiers$1(o,r);var identifiers$1={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers};const debug=debug_1,{MAX_LENGTH,MAX_SAFE_INTEGER}=constants$1,{safeRe:re$1,t:t$1}=reExports,parseOptions=parseOptions_1,{compareIdentifiers}=identifiers$1;let SemVer$d=class Gt{constructor(o,u){if(u=parseOptions(u),o instanceof Gt){if(o.loose===!!u.loose&&o.includePrerelease===!!u.includePrerelease)return o;o=o.version}else if(typeof o!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof o}".`);if(o.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",o,u),this.options=u,this.loose=!!u.loose,this.includePrerelease=!!u.includePrerelease;const h=o.trim().match(u.loose?re$1[t$1.LOOSE]:re$1[t$1.FULL]);if(!h)throw new TypeError(`Invalid Version: ${o}`);if(this.raw=o,this.major=+h[1],this.minor=+h[2],this.patch=+h[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");h[4]?this.prerelease=h[4].split(".").map(m=>{if(/^[0-9]+$/.test(m)){const p=+m;if(p>=0&&p<MAX_SAFE_INTEGER)return p}return m}):this.prerelease=[],this.build=h[5]?h[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(o){if(debug("SemVer.compare",this.version,this.options,o),!(o instanceof Gt)){if(typeof o=="string"&&o===this.version)return 0;o=new Gt(o,this.options)}return o.version===this.version?0:this.compareMain(o)||this.comparePre(o)}compareMain(o){return o instanceof Gt||(o=new Gt(o,this.options)),this.major<o.major?-1:this.major>o.major?1:this.minor<o.minor?-1:this.minor>o.minor?1:this.patch<o.patch?-1:this.patch>o.patch?1:0}comparePre(o){if(o instanceof Gt||(o=new Gt(o,this.options)),this.prerelease.length&&!o.prerelease.length)return-1;if(!this.prerelease.length&&o.prerelease.length)return 1;if(!this.prerelease.length&&!o.prerelease.length)return 0;let u=0;do{const h=this.prerelease[u],m=o.prerelease[u];if(debug("prerelease compare",u,h,m),h===void 0&&m===void 0)return 0;if(m===void 0)return 1;if(h===void 0)return-1;if(h===m)continue;return compareIdentifiers(h,m)}while(++u)}compareBuild(o){o instanceof Gt||(o=new Gt(o,this.options));let u=0;do{const h=this.build[u],m=o.build[u];if(debug("build compare",u,h,m),h===void 0&&m===void 0)return 0;if(m===void 0)return 1;if(h===void 0)return-1;if(h===m)continue;return compareIdentifiers(h,m)}while(++u)}inc(o,u,h){if(o.startsWith("pre")){if(!u&&h===!1)throw new Error("invalid increment argument: identifier is empty");if(u){const m=`-${u}`.match(this.options.loose?re$1[t$1.PRERELEASELOOSE]:re$1[t$1.PRERELEASE]);if(!m||m[1]!==u)throw new Error(`invalid identifier: ${u}`)}}switch(o){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",u,h);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",u,h);break;case"prepatch":this.prerelease.length=0,this.inc("patch",u,h),this.inc("pre",u,h);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",u,h),this.inc("pre",u,h);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const m=Number(h)?1:0;if(this.prerelease.length===0)this.prerelease=[m];else{let p=this.prerelease.length;for(;--p>=0;)typeof this.prerelease[p]=="number"&&(this.prerelease[p]++,p=-2);if(p===-1){if(u===this.prerelease.join(".")&&h===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(m)}}if(u){let p=[u,m];h===!1&&(p=[u]),compareIdentifiers(this.prerelease[0],u)===0?isNaN(this.prerelease[1])&&(this.prerelease=p):this.prerelease=p}break}default:throw new Error(`invalid increment argument: ${o}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var semver$1=SemVer$d;const SemVer$c=semver$1,parse$a=(r,o,u=!1)=>{if(r instanceof SemVer$c)return r;try{return new SemVer$c(r,o)}catch(h){if(!u)return null;throw h}};var parse_1=parse$a;const parse$9=parse_1,valid$2=(r,o)=>{const u=parse$9(r,o);return u?u.version:null};var valid_1=valid$2;const parse$6=parse_1,clean$1=(r,o)=>{const u=parse$6(r.trim().replace(/^[=v]+/,""),o);return u?u.version:null};var clean_1=clean$1;const SemVer$b=semver$1,inc$1=(r,o,u,h,m)=>{typeof u=="string"&&(m=h,h=u,u=void 0);try{return new SemVer$b(r instanceof SemVer$b?r.version:r,u).inc(o,h,m).version}catch{return null}};var inc_1=inc$1;const parse$5=parse_1,diff$3=(r,o)=>{const u=parse$5(r,null,!0),h=parse$5(o,null,!0),m=u.compare(h);if(m===0)return null;const p=m>0,_=p?u:h,y=p?h:u,S=!!_.prerelease.length;if(!!y.prerelease.length&&!S){if(!y.patch&&!y.minor)return"major";if(y.compareMain(_)===0)return y.minor&&!y.patch?"minor":"patch"}const E=S?"pre":"";return u.major!==h.major?E+"major":u.minor!==h.minor?E+"minor":u.patch!==h.patch?E+"patch":"prerelease"};var diff_1=diff$3;const SemVer$a=semver$1,major$1=(r,o)=>new SemVer$a(r,o).major;var major_1=major$1;const SemVer$9=semver$1,minor$1=(r,o)=>new SemVer$9(r,o).minor;var minor_1=minor$1;const SemVer$8=semver$1,patch$2=(r,o)=>new SemVer$8(r,o).patch;var patch_1=patch$2;const parse$4=parse_1,prerelease$1=(r,o)=>{const u=parse$4(r,o);return u&&u.prerelease.length?u.prerelease:null};var prerelease_1=prerelease$1;const SemVer$7=semver$1,compare$b=(r,o,u)=>new SemVer$7(r,u).compare(new SemVer$7(o,u));var compare_1=compare$b;const compare$a=compare_1,rcompare$1=(r,o,u)=>compare$a(o,r,u);var rcompare_1=rcompare$1;const compare$9=compare_1,compareLoose$1=(r,o)=>compare$9(r,o,!0);var compareLoose_1=compareLoose$1;const SemVer$6=semver$1,compareBuild$3=(r,o,u)=>{const h=new SemVer$6(r,u),m=new SemVer$6(o,u);return h.compare(m)||h.compareBuild(m)};var compareBuild_1=compareBuild$3;const compareBuild$2=compareBuild_1,sort$1=(r,o)=>r.sort((u,h)=>compareBuild$2(u,h,o));var sort_1=sort$1;const compareBuild$1=compareBuild_1,rsort$1=(r,o)=>r.sort((u,h)=>compareBuild$1(h,u,o));var rsort_1=rsort$1;const compare$8=compare_1,gt$4=(r,o,u)=>compare$8(r,o,u)>0;var gt_1=gt$4;const compare$7=compare_1,lt$3=(r,o,u)=>compare$7(r,o,u)<0;var lt_1=lt$3;const compare$6=compare_1,eq$2=(r,o,u)=>compare$6(r,o,u)===0;var eq_1=eq$2;const compare$5=compare_1,neq$2=(r,o,u)=>compare$5(r,o,u)!==0;var neq_1=neq$2;const compare$4=compare_1,gte$3=(r,o,u)=>compare$4(r,o,u)>=0;var gte_1=gte$3;const compare$3=compare_1,lte$3=(r,o,u)=>compare$3(r,o,u)<=0;var lte_1=lte$3;const eq$1=eq_1,neq$1=neq_1,gt$3=gt_1,gte$2=gte_1,lt$2=lt_1,lte$2=lte_1,cmp$1=(r,o,u,h)=>{switch(o){case"===":return typeof r=="object"&&(r=r.version),typeof u=="object"&&(u=u.version),r===u;case"!==":return typeof r=="object"&&(r=r.version),typeof u=="object"&&(u=u.version),r!==u;case"":case"=":case"==":return eq$1(r,u,h);case"!=":return neq$1(r,u,h);case">":return gt$3(r,u,h);case">=":return gte$2(r,u,h);case"<":return lt$2(r,u,h);case"<=":return lte$2(r,u,h);default:throw new TypeError(`Invalid operator: ${o}`)}};var cmp_1=cmp$1;const SemVer$5=semver$1,parse$3=parse_1,{safeRe:re,t}=reExports,coerce$1=(r,o)=>{if(r instanceof SemVer$5)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;o=o||{};let u=null;if(!o.rtl)u=r.match(o.includePrerelease?re[t.COERCEFULL]:re[t.COERCE]);else{const S=o.includePrerelease?re[t.COERCERTLFULL]:re[t.COERCERTL];let $;for(;($=S.exec(r))&&(!u||u.index+u[0].length!==r.length);)(!u||$.index+$[0].length!==u.index+u[0].length)&&(u=$),S.lastIndex=$.index+$[1].length+$[2].length;S.lastIndex=-1}if(u===null)return null;const h=u[2],m=u[3]||"0",p=u[4]||"0",_=o.includePrerelease&&u[5]?`-${u[5]}`:"",y=o.includePrerelease&&u[6]?`+${u[6]}`:"";return parse$3(`${h}.${m}.${p}${_}${y}`,o)};var coerce_1=coerce$1;class LRUCache{constructor(){this.max=1e3,this.map=new Map}get(o){const u=this.map.get(o);if(u!==void 0)return this.map.delete(o),this.map.set(o,u),u}delete(o){return this.map.delete(o)}set(o,u){if(!this.delete(o)&&u!==void 0){if(this.map.size>=this.max){const m=this.map.keys().next().value;this.delete(m)}this.map.set(o,u)}return this}}var lrucache=LRUCache,range,hasRequiredRange;function requireRange(){if(hasRequiredRange)return range;hasRequiredRange=1;const r=/\s+/g;class o{constructor(q,R){if(R=m(R),q instanceof o)return q.loose===!!R.loose&&q.includePrerelease===!!R.includePrerelease?q:new o(q.raw,R);if(q instanceof p)return this.raw=q.value,this.set=[[q]],this.formatted=void 0,this;if(this.options=R,this.loose=!!R.loose,this.includePrerelease=!!R.includePrerelease,this.raw=q.trim().replace(r," "),this.set=this.raw.split("||").map(B=>this.parseRange(B.trim())).filter(B=>B.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const B=this.set[0];if(this.set=this.set.filter(ue=>!C(ue[0])),this.set.length===0)this.set=[B];else if(this.set.length>1){for(const ue of this.set)if(ue.length===1&&L(ue[0])){this.set=[ue];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let q=0;q<this.set.length;q++){q>0&&(this.formatted+="||");const R=this.set[q];for(let B=0;B<R.length;B++)B>0&&(this.formatted+=" "),this.formatted+=R[B].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(q){const B=((this.options.includePrerelease&&N)|(this.options.loose&&O))+":"+q,ue=h.get(B);if(ue)return ue;const ce=this.options.loose,K=ce?S[$.HYPHENRANGELOOSE]:S[$.HYPHENRANGE];q=q.replace(K,J(this.options.includePrerelease)),_("hyphen replace",q),q=q.replace(S[$.COMPARATORTRIM],E),_("comparator trim",q),q=q.replace(S[$.TILDETRIM],A),_("tilde trim",q),q=q.replace(S[$.CARETTRIM],T),_("caret trim",q);let Q=q.split(" ").map(Me=>I(Me,this.options)).join(" ").split(/\s+/).map(Me=>ge(Me,this.options));ce&&(Q=Q.filter(Me=>(_("loose invalid filter",Me,this.options),!!Me.match(S[$.COMPARATORLOOSE])))),_("range list",Q);const Y=new Map,me=Q.map(Me=>new p(Me,this.options));for(const Me of me){if(C(Me))return[Me];Y.set(Me.value,Me)}Y.size>1&&Y.has("")&&Y.delete("");const Oe=[...Y.values()];return h.set(B,Oe),Oe}intersects(q,R){if(!(q instanceof o))throw new TypeError("a Range is required");return this.set.some(B=>w(B,R)&&q.set.some(ue=>w(ue,R)&&B.every(ce=>ue.every(K=>ce.intersects(K,R)))))}test(q){if(!q)return!1;if(typeof q=="string")try{q=new y(q,this.options)}catch{return!1}for(let R=0;R<this.set.length;R++)if(ae(this.set[R],q,this.options))return!0;return!1}}range=o;const u=lrucache,h=new u,m=parseOptions_1,p=requireComparator(),_=debug_1,y=semver$1,{safeRe:S,t:$,comparatorTrimReplace:E,tildeTrimReplace:A,caretTrimReplace:T}=reExports,{FLAG_INCLUDE_PRERELEASE:N,FLAG_LOOSE:O}=constants$1,C=U=>U.value==="<0.0.0-0",L=U=>U.value==="",w=(U,q)=>{let R=!0;const B=U.slice();let ue=B.pop();for(;R&&B.length;)R=B.every(ce=>ue.intersects(ce,q)),ue=B.pop();return R},I=(U,q)=>(U=U.replace(S[$.BUILD],""),_("comp",U,q),U=ie(U,q),_("caret",U),U=F(U,q),_("tildes",U),U=pe(U,q),_("xrange",U),U=Ee(U,q),_("stars",U),U),D=U=>!U||U.toLowerCase()==="x"||U==="*",F=(U,q)=>U.trim().split(/\s+/).map(R=>k(R,q)).join(" "),k=(U,q)=>{const R=q.loose?S[$.TILDELOOSE]:S[$.TILDE];return U.replace(R,(B,ue,ce,K,Q)=>{_("tilde",U,B,ue,ce,K,Q);let Y;return D(ue)?Y="":D(ce)?Y=`>=${ue}.0.0 <${+ue+1}.0.0-0`:D(K)?Y=`>=${ue}.${ce}.0 <${ue}.${+ce+1}.0-0`:Q?(_("replaceTilde pr",Q),Y=`>=${ue}.${ce}.${K}-${Q} <${ue}.${+ce+1}.0-0`):Y=`>=${ue}.${ce}.${K} <${ue}.${+ce+1}.0-0`,_("tilde return",Y),Y})},ie=(U,q)=>U.trim().split(/\s+/).map(R=>fe(R,q)).join(" "),fe=(U,q)=>{_("caret",U,q);const R=q.loose?S[$.CARETLOOSE]:S[$.CARET],B=q.includePrerelease?"-0":"";return U.replace(R,(ue,ce,K,Q,Y)=>{_("caret",U,ue,ce,K,Q,Y);let me;return D(ce)?me="":D(K)?me=`>=${ce}.0.0${B} <${+ce+1}.0.0-0`:D(Q)?ce==="0"?me=`>=${ce}.${K}.0${B} <${ce}.${+K+1}.0-0`:me=`>=${ce}.${K}.0${B} <${+ce+1}.0.0-0`:Y?(_("replaceCaret pr",Y),ce==="0"?K==="0"?me=`>=${ce}.${K}.${Q}-${Y} <${ce}.${K}.${+Q+1}-0`:me=`>=${ce}.${K}.${Q}-${Y} <${ce}.${+K+1}.0-0`:me=`>=${ce}.${K}.${Q}-${Y} <${+ce+1}.0.0-0`):(_("no pr"),ce==="0"?K==="0"?me=`>=${ce}.${K}.${Q}${B} <${ce}.${K}.${+Q+1}-0`:me=`>=${ce}.${K}.${Q}${B} <${ce}.${+K+1}.0-0`:me=`>=${ce}.${K}.${Q} <${+ce+1}.0.0-0`),_("caret return",me),me})},pe=(U,q)=>(_("replaceXRanges",U,q),U.split(/\s+/).map(R=>Se(R,q)).join(" ")),Se=(U,q)=>{U=U.trim();const R=q.loose?S[$.XRANGELOOSE]:S[$.XRANGE];return U.replace(R,(B,ue,ce,K,Q,Y)=>{_("xRange",U,B,ue,ce,K,Q,Y);const me=D(ce),Oe=me||D(K),Me=Oe||D(Q),Re=Me;return ue==="="&&Re&&(ue=""),Y=q.includePrerelease?"-0":"",me?ue===">"||ue==="<"?B="<0.0.0-0":B="*":ue&&Re?(Oe&&(K=0),Q=0,ue===">"?(ue=">=",Oe?(ce=+ce+1,K=0,Q=0):(K=+K+1,Q=0)):ue==="<="&&(ue="<",Oe?ce=+ce+1:K=+K+1),ue==="<"&&(Y="-0"),B=`${ue+ce}.${K}.${Q}${Y}`):Oe?B=`>=${ce}.0.0${Y} <${+ce+1}.0.0-0`:Me&&(B=`>=${ce}.${K}.0${Y} <${ce}.${+K+1}.0-0`),_("xRange return",B),B})},Ee=(U,q)=>(_("replaceStars",U,q),U.trim().replace(S[$.STAR],"")),ge=(U,q)=>(_("replaceGTE0",U,q),U.trim().replace(S[q.includePrerelease?$.GTE0PRE:$.GTE0],"")),J=U=>(q,R,B,ue,ce,K,Q,Y,me,Oe,Me,Re)=>(D(B)?R="":D(ue)?R=`>=${B}.0.0${U?"-0":""}`:D(ce)?R=`>=${B}.${ue}.0${U?"-0":""}`:K?R=`>=${R}`:R=`>=${R}${U?"-0":""}`,D(me)?Y="":D(Oe)?Y=`<${+me+1}.0.0-0`:D(Me)?Y=`<${me}.${+Oe+1}.0-0`:Re?Y=`<=${me}.${Oe}.${Me}-${Re}`:U?Y=`<${me}.${Oe}.${+Me+1}-0`:Y=`<=${Y}`,`${R} ${Y}`.trim()),ae=(U,q,R)=>{for(let B=0;B<U.length;B++)if(!U[B].test(q))return!1;if(q.prerelease.length&&!R.includePrerelease){for(let B=0;B<U.length;B++)if(_(U[B].semver),U[B].semver!==p.ANY&&U[B].semver.prerelease.length>0){const ue=U[B].semver;if(ue.major===q.major&&ue.minor===q.minor&&ue.patch===q.patch)return!0}return!1}return!0};return range}var comparator,hasRequiredComparator;function requireComparator(){if(hasRequiredComparator)return comparator;hasRequiredComparator=1;const r=Symbol("SemVer ANY");class o{static get ANY(){return r}constructor(E,A){if(A=u(A),E instanceof o){if(E.loose===!!A.loose)return E;E=E.value}E=E.trim().split(/\s+/).join(" "),_("comparator",E,A),this.options=A,this.loose=!!A.loose,this.parse(E),this.semver===r?this.value="":this.value=this.operator+this.semver.version,_("comp",this)}parse(E){const A=this.options.loose?h[m.COMPARATORLOOSE]:h[m.COMPARATOR],T=E.match(A);if(!T)throw new TypeError(`Invalid comparator: ${E}`);this.operator=T[1]!==void 0?T[1]:"",this.operator==="="&&(this.operator=""),T[2]?this.semver=new y(T[2],this.options.loose):this.semver=r}toString(){return this.value}test(E){if(_("Comparator.test",E,this.options.loose),this.semver===r||E===r)return!0;if(typeof E=="string")try{E=new y(E,this.options)}catch{return!1}return p(E,this.operator,this.semver,this.options)}intersects(E,A){if(!(E instanceof o))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new S(E.value,A).test(this.value):E.operator===""?E.value===""?!0:new S(this.value,A).test(E.semver):(A=u(A),A.includePrerelease&&(this.value==="<0.0.0-0"||E.value==="<0.0.0-0")||!A.includePrerelease&&(this.value.startsWith("<0.0.0")||E.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&E.operator.startsWith(">")||this.operator.startsWith("<")&&E.operator.startsWith("<")||this.semver.version===E.semver.version&&this.operator.includes("=")&&E.operator.includes("=")||p(this.semver,"<",E.semver,A)&&this.operator.startsWith(">")&&E.operator.startsWith("<")||p(this.semver,">",E.semver,A)&&this.operator.startsWith("<")&&E.operator.startsWith(">")))}}comparator=o;const u=parseOptions_1,{safeRe:h,t:m}=reExports,p=cmp_1,_=debug_1,y=semver$1,S=requireRange();return comparator}const Range$9=requireRange(),satisfies$4=(r,o,u)=>{try{o=new Range$9(o,u)}catch{return!1}return o.test(r)};var satisfies_1=satisfies$4;const Range$8=requireRange(),toComparators$1=(r,o)=>new Range$8(r,o).set.map(u=>u.map(h=>h.value).join(" ").trim().split(" "));var toComparators_1=toComparators$1;const SemVer$4=semver$1,Range$7=requireRange(),maxSatisfying$1=(r,o,u)=>{let h=null,m=null,p=null;try{p=new Range$7(o,u)}catch{return null}return r.forEach(_=>{p.test(_)&&(!h||m.compare(_)===-1)&&(h=_,m=new SemVer$4(h,u))}),h};var maxSatisfying_1=maxSatisfying$1;const SemVer$3=semver$1,Range$6=requireRange(),minSatisfying$1=(r,o,u)=>{let h=null,m=null,p=null;try{p=new Range$6(o,u)}catch{return null}return r.forEach(_=>{p.test(_)&&(!h||m.compare(_)===1)&&(h=_,m=new SemVer$3(h,u))}),h};var minSatisfying_1=minSatisfying$1;const SemVer$2=semver$1,Range$5=requireRange(),gt$2=gt_1,minVersion$1=(r,o)=>{r=new Range$5(r,o);let u=new SemVer$2("0.0.0");if(r.test(u)||(u=new SemVer$2("0.0.0-0"),r.test(u)))return u;u=null;for(let h=0;h<r.set.length;++h){const m=r.set[h];let p=null;m.forEach(_=>{const y=new SemVer$2(_.semver.version);switch(_.operator){case">":y.prerelease.length===0?y.patch++:y.prerelease.push(0),y.raw=y.format();case"":case">=":(!p||gt$2(y,p))&&(p=y);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${_.operator}`)}}),p&&(!u||gt$2(u,p))&&(u=p)}return u&&r.test(u)?u:null};var minVersion_1=minVersion$1;const Range$4=requireRange(),validRange$1=(r,o)=>{try{return new Range$4(r,o).range||"*"}catch{return null}};var valid$1=validRange$1;const SemVer$1=semver$1,Comparator$2=requireComparator(),{ANY:ANY$1}=Comparator$2,Range$3=requireRange(),satisfies$3=satisfies_1,gt$1=gt_1,lt$1=lt_1,lte$1=lte_1,gte$1=gte_1,outside$3=(r,o,u,h)=>{r=new SemVer$1(r,h),o=new Range$3(o,h);let m,p,_,y,S;switch(u){case">":m=gt$1,p=lte$1,_=lt$1,y=">",S=">=";break;case"<":m=lt$1,p=gte$1,_=gt$1,y="<",S="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies$3(r,o,h))return!1;for(let $=0;$<o.set.length;++$){const E=o.set[$];let A=null,T=null;if(E.forEach(N=>{N.semver===ANY$1&&(N=new Comparator$2(">=0.0.0")),A=A||N,T=T||N,m(N.semver,A.semver,h)?A=N:_(N.semver,T.semver,h)&&(T=N)}),A.operator===y||A.operator===S||(!T.operator||T.operator===y)&&p(r,T.semver))return!1;if(T.operator===S&&_(r,T.semver))return!1}return!0};var outside_1=outside$3;const outside$2=outside_1,gtr$1=(r,o,u)=>outside$2(r,o,">",u);var gtr_1=gtr$1;const outside$1=outside_1,ltr$1=(r,o,u)=>outside$1(r,o,"<",u);var ltr_1=ltr$1;const Range$2=requireRange(),intersects$1=(r,o,u)=>(r=new Range$2(r,u),o=new Range$2(o,u),r.intersects(o,u));var intersects_1=intersects$1;const satisfies$2=satisfies_1,compare$2=compare_1;var simplify=(r,o,u)=>{const h=[];let m=null,p=null;const _=r.sort((E,A)=>compare$2(E,A,u));for(const E of _)satisfies$2(E,o,u)?(p=E,m||(m=E)):(p&&h.push([m,p]),p=null,m=null);m&&h.push([m,null]);const y=[];for(const[E,A]of h)E===A?y.push(E):!A&&E===_[0]?y.push("*"):A?E===_[0]?y.push(`<=${A}`):y.push(`${E} - ${A}`):y.push(`>=${E}`);const S=y.join(" || "),$=typeof o.raw=="string"?o.raw:String(o);return S.length<$.length?S:o};const Range$1=requireRange(),Comparator$1=requireComparator(),{ANY}=Comparator$1,satisfies$1=satisfies_1,compare$1=compare_1,subset$1=(r,o,u={})=>{if(r===o)return!0;r=new Range$1(r,u),o=new Range$1(o,u);let h=!1;e:for(const m of r.set){for(const p of o.set){const _=simpleSubset(m,p,u);if(h=h||_!==null,_)continue e}if(h)return!1}return!0},minimumVersionWithPreRelease=[new Comparator$1(">=0.0.0-0")],minimumVersion=[new Comparator$1(">=0.0.0")],simpleSubset=(r,o,u)=>{if(r===o)return!0;if(r.length===1&&r[0].semver===ANY){if(o.length===1&&o[0].semver===ANY)return!0;u.includePrerelease?r=minimumVersionWithPreRelease:r=minimumVersion}if(o.length===1&&o[0].semver===ANY){if(u.includePrerelease)return!0;o=minimumVersion}const h=new Set;let m,p;for(const N of r)N.operator===">"||N.operator===">="?m=higherGT(m,N,u):N.operator==="<"||N.operator==="<="?p=lowerLT(p,N,u):h.add(N.semver);if(h.size>1)return null;let _;if(m&&p){if(_=compare$1(m.semver,p.semver,u),_>0)return null;if(_===0&&(m.operator!==">="||p.operator!=="<="))return null}for(const N of h){if(m&&!satisfies$1(N,String(m),u)||p&&!satisfies$1(N,String(p),u))return null;for(const O of o)if(!satisfies$1(N,String(O),u))return!1;return!0}let y,S,$,E,A=p&&!u.includePrerelease&&p.semver.prerelease.length?p.semver:!1,T=m&&!u.includePrerelease&&m.semver.prerelease.length?m.semver:!1;A&&A.prerelease.length===1&&p.operator==="<"&&A.prerelease[0]===0&&(A=!1);for(const N of o){if(E=E||N.operator===">"||N.operator===">=",$=$||N.operator==="<"||N.operator==="<=",m){if(T&&N.semver.prerelease&&N.semver.prerelease.length&&N.semver.major===T.major&&N.semver.minor===T.minor&&N.semver.patch===T.patch&&(T=!1),N.operator===">"||N.operator===">="){if(y=higherGT(m,N,u),y===N&&y!==m)return!1}else if(m.operator===">="&&!satisfies$1(m.semver,String(N),u))return!1}if(p){if(A&&N.semver.prerelease&&N.semver.prerelease.length&&N.semver.major===A.major&&N.semver.minor===A.minor&&N.semver.patch===A.patch&&(A=!1),N.operator==="<"||N.operator==="<="){if(S=lowerLT(p,N,u),S===N&&S!==p)return!1}else if(p.operator==="<="&&!satisfies$1(p.semver,String(N),u))return!1}if(!N.operator&&(p||m)&&_!==0)return!1}return!(m&&$&&!p&&_!==0||p&&E&&!m&&_!==0||T||A)},higherGT=(r,o,u)=>{if(!r)return o;const h=compare$1(r.semver,o.semver,u);return h>0?r:h<0||o.operator===">"&&r.operator===">="?o:r},lowerLT=(r,o,u)=>{if(!r)return o;const h=compare$1(r.semver,o.semver,u);return h<0?r:h>0||o.operator==="<"&&r.operator==="<="?o:r};var subset_1=subset$1;const internalRe=reExports,constants=constants$1,SemVer=semver$1,identifiers=identifiers$1,parse$2=parse_1,valid=valid_1,clean=clean_1,inc=inc_1,diff$1=diff_1,major=major_1,minor=minor_1,patch$1=patch_1,prerelease=prerelease_1,compare=compare_1,rcompare=rcompare_1,compareLoose=compareLoose_1,compareBuild=compareBuild_1,sort=sort_1,rsort=rsort_1,gt=gt_1,lt=lt_1,eq=eq_1,neq=neq_1,gte=gte_1,lte=lte_1,cmp=cmp_1,coerce=coerce_1,Comparator=requireComparator(),Range=requireRange(),satisfies=satisfies_1,toComparators=toComparators_1,maxSatisfying=maxSatisfying_1,minSatisfying=minSatisfying_1,minVersion=minVersion_1,validRange=valid$1,outside=outside_1,gtr=gtr_1,ltr=ltr_1,intersects=intersects_1,simplifyRange=simplify,subset=subset_1;var semver={parse:parse$2,valid,clean,inc,diff:diff$1,major,minor,patch:patch$1,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers};let LuxonError$3=class extends Error{},InvalidDateTimeError$1=class extends LuxonError$3{constructor(o){super(`Invalid DateTime: ${o.toMessage()}`)}},InvalidIntervalError$1=class extends LuxonError$3{constructor(o){super(`Invalid Interval: ${o.toMessage()}`)}},InvalidDurationError$1=class extends LuxonError$3{constructor(o){super(`Invalid Duration: ${o.toMessage()}`)}},ConflictingSpecificationError$1=class extends LuxonError$3{},InvalidUnitError$1=class extends LuxonError$3{constructor(o){super(`Invalid unit ${o}`)}},InvalidArgumentError$1=class extends LuxonError$3{},ZoneIsAbstractError$3=class extends LuxonError$3{constructor(){super("Zone is an abstract class")}};const n$1="numeric",s$1="short",l$1="long",DATE_SHORT$1={year:n$1,month:n$1,day:n$1},DATE_MED$1={year:n$1,month:s$1,day:n$1},DATE_MED_WITH_WEEKDAY$1={year:n$1,month:s$1,day:n$1,weekday:s$1},DATE_FULL$1={year:n$1,month:l$1,day:n$1},DATE_HUGE$1={year:n$1,month:l$1,day:n$1,weekday:l$1},TIME_SIMPLE$1={hour:n$1,minute:n$1},TIME_WITH_SECONDS$1={hour:n$1,minute:n$1,second:n$1},TIME_WITH_SHORT_OFFSET$1={hour:n$1,minute:n$1,second:n$1,timeZoneName:s$1},TIME_WITH_LONG_OFFSET$1={hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1},TIME_24_SIMPLE$1={hour:n$1,minute:n$1,hourCycle:"h23"},TIME_24_WITH_SECONDS$1={hour:n$1,minute:n$1,second:n$1,hourCycle:"h23"},TIME_24_WITH_SHORT_OFFSET$1={hour:n$1,minute:n$1,second:n$1,hourCycle:"h23",timeZoneName:s$1},TIME_24_WITH_LONG_OFFSET$1={hour:n$1,minute:n$1,second:n$1,hourCycle:"h23",timeZoneName:l$1},DATETIME_SHORT$1={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1},DATETIME_SHORT_WITH_SECONDS$1={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED$1={year:n$1,month:s$1,day:n$1,hour:n$1,minute:n$1},DATETIME_MED_WITH_SECONDS$1={year:n$1,month:s$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED_WITH_WEEKDAY$1={year:n$1,month:s$1,day:n$1,weekday:s$1,hour:n$1,minute:n$1},DATETIME_FULL$1={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,timeZoneName:s$1},DATETIME_FULL_WITH_SECONDS$1={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:s$1},DATETIME_HUGE$1={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,timeZoneName:l$1},DATETIME_HUGE_WITH_SECONDS$1={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1};let Zone$3=class{get type(){throw new ZoneIsAbstractError$3}get name(){throw new ZoneIsAbstractError$3}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError$3}offsetName(o,u){throw new ZoneIsAbstractError$3}formatOffset(o,u){throw new ZoneIsAbstractError$3}offset(o){throw new ZoneIsAbstractError$3}equals(o){throw new ZoneIsAbstractError$3}get isValid(){throw new ZoneIsAbstractError$3}},singleton$1$1=null,SystemZone$1=class Fr extends Zone$3{static get instance(){return singleton$1$1===null&&(singleton$1$1=new Fr),singleton$1$1}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(o,{format:u,locale:h}){return parseZoneInfo$3(o,u,h)}formatOffset(o,u){return formatOffset$3(this.offset(o),u)}offset(o){return-new Date(o).getTimezoneOffset()}equals(o){return o.type==="system"}get isValid(){return!0}};const dtfCache$3=new Map;function makeDTF$3(r){let o=dtfCache$3.get(r);return o===void 0&&(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),dtfCache$3.set(r,o)),o}const typeToPos$3={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset$3(r,o){const u=r.format(o).replace(/\u200E/g,""),h=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(u),[,m,p,_,y,S,$,E]=h;return[_,m,p,y,S,$,E]}function partsOffset$3(r,o){const u=r.formatToParts(o),h=[];for(let m=0;m<u.length;m++){const{type:p,value:_}=u[m],y=typeToPos$3[p];p==="era"?h[y]=_:isUndefined$3(y)||(h[y]=parseInt(_,10))}return h}const ianaZoneCache$3=new Map;let IANAZone$3=class Rr extends Zone$3{static create(o){let u=ianaZoneCache$3.get(o);return u===void 0&&ianaZoneCache$3.set(o,u=new Rr(o)),u}static resetCache(){ianaZoneCache$3.clear(),dtfCache$3.clear()}static isValidSpecifier(o){return this.isValidZone(o)}static isValidZone(o){if(!o)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:o}).format(),!0}catch{return!1}}constructor(o){super(),this.zoneName=o,this.valid=Rr.isValidZone(o)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(o,{format:u,locale:h}){return parseZoneInfo$3(o,u,h,this.name)}formatOffset(o,u){return formatOffset$3(this.offset(o),u)}offset(o){if(!this.valid)return NaN;const u=new Date(o);if(isNaN(u))return NaN;const h=makeDTF$3(this.name);let[m,p,_,y,S,$,E]=h.formatToParts?partsOffset$3(h,u):hackyOffset$3(h,u);y==="BC"&&(m=-Math.abs(m)+1);const T=objToLocalTS$3({year:m,month:p,day:_,hour:S===24?0:S,minute:$,second:E,millisecond:0});let N=+u;const O=N%1e3;return N-=O>=0?O:1e3+O,(T-N)/(60*1e3)}equals(o){return o.type==="iana"&&o.name===this.name}get isValid(){return this.valid}},intlLFCache$1={};function getCachedLF$1(r,o={}){const u=JSON.stringify([r,o]);let h=intlLFCache$1[u];return h||(h=new Intl.ListFormat(r,o),intlLFCache$1[u]=h),h}const intlDTCache$1=new Map;function getCachedDTF$1(r,o={}){const u=JSON.stringify([r,o]);let h=intlDTCache$1.get(u);return h===void 0&&(h=new Intl.DateTimeFormat(r,o),intlDTCache$1.set(u,h)),h}const intlNumCache$1=new Map;function getCachedINF$1(r,o={}){const u=JSON.stringify([r,o]);let h=intlNumCache$1.get(u);return h===void 0&&(h=new Intl.NumberFormat(r,o),intlNumCache$1.set(u,h)),h}const intlRelCache$1=new Map;function getCachedRTF$1(r,o={}){const{base:u,...h}=o,m=JSON.stringify([r,h]);let p=intlRelCache$1.get(m);return p===void 0&&(p=new Intl.RelativeTimeFormat(r,o),intlRelCache$1.set(m,p)),p}let sysLocaleCache$1=null;function systemLocale$1(){return sysLocaleCache$1||(sysLocaleCache$1=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache$1)}const intlResolvedOptionsCache$1=new Map;function getCachedIntResolvedOptions$1(r){let o=intlResolvedOptionsCache$1.get(r);return o===void 0&&(o=new Intl.DateTimeFormat(r).resolvedOptions(),intlResolvedOptionsCache$1.set(r,o)),o}const weekInfoCache$1=new Map;function getCachedWeekInfo$1(r){let o=weekInfoCache$1.get(r);if(!o){const u=new Intl.Locale(r);o="getWeekInfo"in u?u.getWeekInfo():u.weekInfo,"minimalDays"in o||(o={...fallbackWeekSettings$1,...o}),weekInfoCache$1.set(r,o)}return o}function parseLocaleString$1(r){const o=r.indexOf("-x-");o!==-1&&(r=r.substring(0,o));const u=r.indexOf("-u-");if(u===-1)return[r];{let h,m;try{h=getCachedDTF$1(r).resolvedOptions(),m=r}catch{const S=r.substring(0,u);h=getCachedDTF$1(S).resolvedOptions(),m=S}const{numberingSystem:p,calendar:_}=h;return[m,p,_]}}function intlConfigString$1(r,o,u){return(u||o)&&(r.includes("-u-")||(r+="-u"),u&&(r+=`-ca-${u}`),o&&(r+=`-nu-${o}`)),r}function mapMonths$1(r){const o=[];for(let u=1;u<=12;u++){const h=DateTime$1.utc(2009,u,1);o.push(r(h))}return o}function mapWeekdays$1(r){const o=[];for(let u=1;u<=7;u++){const h=DateTime$1.utc(2016,11,13+u);o.push(r(h))}return o}function listStuff$1(r,o,u,h){const m=r.listingMode();return m==="error"?null:m==="en"?u(o):h(o)}function supportsFastNumbers$1(r){return r.numberingSystem&&r.numberingSystem!=="latn"?!1:r.numberingSystem==="latn"||!r.locale||r.locale.startsWith("en")||getCachedIntResolvedOptions$1(r.locale).numberingSystem==="latn"}let PolyNumberFormatter$1=class{constructor(o,u,h){this.padTo=h.padTo||0,this.floor=h.floor||!1;const{padTo:m,floor:p,..._}=h;if(!u||Object.keys(_).length>0){const y={useGrouping:!1,...h};h.padTo>0&&(y.minimumIntegerDigits=h.padTo),this.inf=getCachedINF$1(o,y)}}format(o){if(this.inf){const u=this.floor?Math.floor(o):o;return this.inf.format(u)}else{const u=this.floor?Math.floor(o):roundTo$1(o,3);return padStart$3(u,this.padTo)}}},PolyDateFormatter$1=class{constructor(o,u,h){this.opts=h,this.originalZone=void 0;let m;if(this.opts.timeZone)this.dt=o;else if(o.zone.type==="fixed"){const _=-1*(o.offset/60),y=_>=0?`Etc/GMT+${_}`:`Etc/GMT${_}`;o.offset!==0&&IANAZone$3.create(y).valid?(m=y,this.dt=o):(m="UTC",this.dt=o.offset===0?o:o.setZone("UTC").plus({minutes:o.offset}),this.originalZone=o.zone)}else o.zone.type==="system"?this.dt=o:o.zone.type==="iana"?(this.dt=o,m=o.zone.name):(m="UTC",this.dt=o.setZone("UTC").plus({minutes:o.offset}),this.originalZone=o.zone);const p={...this.opts};p.timeZone=p.timeZone||m,this.dtf=getCachedDTF$1(u,p)}format(){return this.originalZone?this.formatToParts().map(({value:o})=>o).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const o=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?o.map(u=>{if(u.type==="timeZoneName"){const h=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...u,value:h}}else return u}):o}resolvedOptions(){return this.dtf.resolvedOptions()}},PolyRelFormatter$1=class{constructor(o,u,h){this.opts={style:"long",...h},!u&&hasRelative$1()&&(this.rtf=getCachedRTF$1(o,h))}format(o,u){return this.rtf?this.rtf.format(o,u):formatRelativeTime$1(u,o,this.opts.numeric,this.opts.style!=="long")}formatToParts(o,u){return this.rtf?this.rtf.formatToParts(o,u):[]}};const fallbackWeekSettings$1={firstDay:1,minimalDays:4,weekend:[6,7]};let Locale$1=class gr{static fromOpts(o){return gr.create(o.locale,o.numberingSystem,o.outputCalendar,o.weekSettings,o.defaultToEN)}static create(o,u,h,m,p=!1){const _=o||Settings$1.defaultLocale,y=_||(p?"en-US":systemLocale$1()),S=u||Settings$1.defaultNumberingSystem,$=h||Settings$1.defaultOutputCalendar,E=validateWeekSettings$1(m)||Settings$1.defaultWeekSettings;return new gr(y,S,$,E,_)}static resetCache(){sysLocaleCache$1=null,intlDTCache$1.clear(),intlNumCache$1.clear(),intlRelCache$1.clear(),intlResolvedOptionsCache$1.clear(),weekInfoCache$1.clear()}static fromObject({locale:o,numberingSystem:u,outputCalendar:h,weekSettings:m}={}){return gr.create(o,u,h,m)}constructor(o,u,h,m,p){const[_,y,S]=parseLocaleString$1(o);this.locale=_,this.numberingSystem=u||y||null,this.outputCalendar=h||S||null,this.weekSettings=m,this.intl=intlConfigString$1(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=p,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=supportsFastNumbers$1(this)),this.fastNumbersCached}listingMode(){const o=this.isEnglish(),u=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return o&&u?"en":"intl"}clone(o){return!o||Object.getOwnPropertyNames(o).length===0?this:gr.create(o.locale||this.specifiedLocale,o.numberingSystem||this.numberingSystem,o.outputCalendar||this.outputCalendar,validateWeekSettings$1(o.weekSettings)||this.weekSettings,o.defaultToEN||!1)}redefaultToEN(o={}){return this.clone({...o,defaultToEN:!0})}redefaultToSystem(o={}){return this.clone({...o,defaultToEN:!1})}months(o,u=!1){return listStuff$1(this,o,months$1,()=>{const h=this.intl==="ja"||this.intl.startsWith("ja-");u&=!h;const m=u?{month:o,day:"numeric"}:{month:o},p=u?"format":"standalone";if(!this.monthsCache[p][o]){const _=h?y=>this.dtFormatter(y,m).format():y=>this.extract(y,m,"month");this.monthsCache[p][o]=mapMonths$1(_)}return this.monthsCache[p][o]})}weekdays(o,u=!1){return listStuff$1(this,o,weekdays$1,()=>{const h=u?{weekday:o,year:"numeric",month:"long",day:"numeric"}:{weekday:o},m=u?"format":"standalone";return this.weekdaysCache[m][o]||(this.weekdaysCache[m][o]=mapWeekdays$1(p=>this.extract(p,h,"weekday"))),this.weekdaysCache[m][o]})}meridiems(){return listStuff$1(this,void 0,()=>meridiems$1,()=>{if(!this.meridiemCache){const o={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime$1.utc(2016,11,13,9),DateTime$1.utc(2016,11,13,19)].map(u=>this.extract(u,o,"dayperiod"))}return this.meridiemCache})}eras(o){return listStuff$1(this,o,eras$1,()=>{const u={era:o};return this.eraCache[o]||(this.eraCache[o]=[DateTime$1.utc(-40,1,1),DateTime$1.utc(2017,1,1)].map(h=>this.extract(h,u,"era"))),this.eraCache[o]})}extract(o,u,h){const m=this.dtFormatter(o,u),p=m.formatToParts(),_=p.find(y=>y.type.toLowerCase()===h);return _?_.value:null}numberFormatter(o={}){return new PolyNumberFormatter$1(this.intl,o.forceSimple||this.fastNumbers,o)}dtFormatter(o,u={}){return new PolyDateFormatter$1(o,this.intl,u)}relFormatter(o={}){return new PolyRelFormatter$1(this.intl,this.isEnglish(),o)}listFormatter(o={}){return getCachedLF$1(this.intl,o)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||getCachedIntResolvedOptions$1(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo$1()?getCachedWeekInfo$1(this.locale):fallbackWeekSettings$1}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(o){return this.locale===o.locale&&this.numberingSystem===o.numberingSystem&&this.outputCalendar===o.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},singleton$4=null,FixedOffsetZone$3=class mr extends Zone$3{static get utcInstance(){return singleton$4===null&&(singleton$4=new mr(0)),singleton$4}static instance(o){return o===0?mr.utcInstance:new mr(o)}static parseSpecifier(o){if(o){const u=o.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(u)return new mr(signedOffset$3(u[1],u[2]))}return null}constructor(o){super(),this.fixed=o}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset$3(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${formatOffset$3(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(o,u){return formatOffset$3(this.fixed,u)}get isUniversal(){return!0}offset(){return this.fixed}equals(o){return o.type==="fixed"&&o.fixed===this.fixed}get isValid(){return!0}},InvalidZone$1=class extends Zone$3{constructor(o){super(),this.zoneName=o}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 normalizeZone$1(r,o){if(isUndefined$3(r)||r===null)return o;if(r instanceof Zone$3)return r;if(isString$1(r)){const u=r.toLowerCase();return u==="default"?o:u==="local"||u==="system"?SystemZone$1.instance:u==="utc"||u==="gmt"?FixedOffsetZone$3.utcInstance:FixedOffsetZone$3.parseSpecifier(u)||IANAZone$3.create(r)}else return isNumber$2(r)?FixedOffsetZone$3.instance(r):typeof r=="object"&&"offset"in r&&typeof r.offset=="function"?r:new InvalidZone$1(r)}const numberingSystems$1={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},numberingSystemsUTF16$1={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]},hanidecChars$1=numberingSystems$1.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits$1(r){let o=parseInt(r,10);if(isNaN(o)){o="";for(let u=0;u<r.length;u++){const h=r.charCodeAt(u);if(r[u].search(numberingSystems$1.hanidec)!==-1)o+=hanidecChars$1.indexOf(r[u]);else for(const m in numberingSystemsUTF16$1){const[p,_]=numberingSystemsUTF16$1[m];h>=p&&h<=_&&(o+=h-p)}}return parseInt(o,10)}else return o}const digitRegexCache$1=new Map;function resetDigitRegexCache$1(){digitRegexCache$1.clear()}function digitRegex$1({numberingSystem:r},o=""){const u=r||"latn";let h=digitRegexCache$1.get(u);h===void 0&&(h=new Map,digitRegexCache$1.set(u,h));let m=h.get(o);return m===void 0&&(m=new RegExp(`${numberingSystems$1[u]}${o}`),h.set(o,m)),m}let now$1=()=>Date.now(),defaultZone$1="system",defaultLocale$1=null,defaultNumberingSystem$1=null,defaultOutputCalendar$1=null,twoDigitCutoffYear$1=60,throwOnInvalid$1,defaultWeekSettings$1=null,Settings$1=class{static get now(){return now$1}static set now(o){now$1=o}static set defaultZone(o){defaultZone$1=o}static get defaultZone(){return normalizeZone$1(defaultZone$1,SystemZone$1.instance)}static get defaultLocale(){return defaultLocale$1}static set defaultLocale(o){defaultLocale$1=o}static get defaultNumberingSystem(){return defaultNumberingSystem$1}static set defaultNumberingSystem(o){defaultNumberingSystem$1=o}static get defaultOutputCalendar(){return defaultOutputCalendar$1}static set defaultOutputCalendar(o){defaultOutputCalendar$1=o}static get defaultWeekSettings(){return defaultWeekSettings$1}static set defaultWeekSettings(o){defaultWeekSettings$1=validateWeekSettings$1(o)}static get twoDigitCutoffYear(){return twoDigitCutoffYear$1}static set twoDigitCutoffYear(o){twoDigitCutoffYear$1=o%100}static get throwOnInvalid(){return throwOnInvalid$1}static set throwOnInvalid(o){throwOnInvalid$1=o}static resetCaches(){Locale$1.resetCache(),IANAZone$3.resetCache(),DateTime$1.resetCache(),resetDigitRegexCache$1()}},Invalid$1=class{constructor(o,u){this.reason=o,this.explanation=u}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const nonLeapLadder$1=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder$1=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange$1(r,o){return new Invalid$1("unit out of range",`you specified ${o} (of type ${typeof o}) as a ${r}, which is invalid`)}function dayOfWeek$1(r,o,u){const h=new Date(Date.UTC(r,o-1,u));r<100&&r>=0&&h.setUTCFullYear(h.getUTCFullYear()-1900);const m=h.getUTCDay();return m===0?7:m}function computeOrdinal$1(r,o,u){return u+(isLeapYear$1(r)?leapLadder$1:nonLeapLadder$1)[o-1]}function uncomputeOrdinal$1(r,o){const u=isLeapYear$1(r)?leapLadder$1:nonLeapLadder$1,h=u.findIndex(p=>p<o),m=o-u[h];return{month:h+1,day:m}}function isoWeekdayToLocal$1(r,o){return(r-o+7)%7+1}function gregorianToWeek$1(r,o=4,u=1){const{year:h,month:m,day:p}=r,_=computeOrdinal$1(h,m,p),y=isoWeekdayToLocal$1(dayOfWeek$1(h,m,p),u);let S=Math.floor((_-y+14-o)/7),$;return S<1?($=h-1,S=weeksInWeekYear$1($,o,u)):S>weeksInWeekYear$1(h,o,u)?($=h+1,S=1):$=h,{weekYear:$,weekNumber:S,weekday:y,...timeObject$1(r)}}function weekToGregorian$1(r,o=4,u=1){const{weekYear:h,weekNumber:m,weekday:p}=r,_=isoWeekdayToLocal$1(dayOfWeek$1(h,1,o),u),y=daysInYear$1(h);let S=m*7+p-_-7+o,$;S<1?($=h-1,S+=daysInYear$1($)):S>y?($=h+1,S-=daysInYear$1(h)):$=h;const{month:E,day:A}=uncomputeOrdinal$1($,S);return{year:$,month:E,day:A,...timeObject$1(r)}}function gregorianToOrdinal$1(r){const{year:o,month:u,day:h}=r,m=computeOrdinal$1(o,u,h);return{year:o,ordinal:m,...timeObject$1(r)}}function ordinalToGregorian$1(r){const{year:o,ordinal:u}=r,{month:h,day:m}=uncomputeOrdinal$1(o,u);return{year:o,month:h,day:m,...timeObject$1(r)}}function usesLocalWeekValues$1(r,o){if(!isUndefined$3(r.localWeekday)||!isUndefined$3(r.localWeekNumber)||!isUndefined$3(r.localWeekYear)){if(!isUndefined$3(r.weekday)||!isUndefined$3(r.weekNumber)||!isUndefined$3(r.weekYear))throw new ConflictingSpecificationError$1("Cannot mix locale-based week fields with ISO-based week fields");return isUndefined$3(r.localWeekday)||(r.weekday=r.localWeekday),isUndefined$3(r.localWeekNumber)||(r.weekNumber=r.localWeekNumber),isUndefined$3(r.localWeekYear)||(r.weekYear=r.localWeekYear),delete r.localWeekday,delete r.localWeekNumber,delete r.localWeekYear,{minDaysInFirstWeek:o.getMinDaysInFirstWeek(),startOfWeek:o.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData$1(r,o=4,u=1){const h=isInteger$1(r.weekYear),m=integerBetween$1(r.weekNumber,1,weeksInWeekYear$1(r.weekYear,o,u)),p=integerBetween$1(r.weekday,1,7);return h?m?p?!1:unitOutOfRange$1("weekday",r.weekday):unitOutOfRange$1("week",r.weekNumber):unitOutOfRange$1("weekYear",r.weekYear)}function hasInvalidOrdinalData$1(r){const o=isInteger$1(r.year),u=integerBetween$1(r.ordinal,1,daysInYear$1(r.year));return o?u?!1:unitOutOfRange$1("ordinal",r.ordinal):unitOutOfRange$1("year",r.year)}function hasInvalidGregorianData$1(r){const o=isInteger$1(r.year),u=integerBetween$1(r.month,1,12),h=integerBetween$1(r.day,1,daysInMonth$1(r.year,r.month));return o?u?h?!1:unitOutOfRange$1("day",r.day):unitOutOfRange$1("month",r.month):unitOutOfRange$1("year",r.year)}function hasInvalidTimeData$1(r){const{hour:o,minute:u,second:h,millisecond:m}=r,p=integerBetween$1(o,0,23)||o===24&&u===0&&h===0&&m===0,_=integerBetween$1(u,0,59),y=integerBetween$1(h,0,59),S=integerBetween$1(m,0,999);return p?_?y?S?!1:unitOutOfRange$1("millisecond",m):unitOutOfRange$1("second",h):unitOutOfRange$1("minute",u):unitOutOfRange$1("hour",o)}function isUndefined$3(r){return typeof r>"u"}function isNumber$2(r){return typeof r=="number"}function isInteger$1(r){return typeof r=="number"&&r%1===0}function isString$1(r){return typeof r=="string"}function isDate$1(r){return Object.prototype.toString.call(r)==="[object Date]"}function hasRelative$1(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo$1(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function maybeArray$1(r){return Array.isArray(r)?r:[r]}function bestBy$1(r,o,u){if(r.length!==0)return r.reduce((h,m)=>{const p=[o(m),m];return h&&u(h[0],p[0])===h[0]?h:p},null)[1]}function pick$1(r,o){return o.reduce((u,h)=>(u[h]=r[h],u),{})}function hasOwnProperty$1(r,o){return Object.prototype.hasOwnProperty.call(r,o)}function validateWeekSettings$1(r){if(r==null)return null;if(typeof r!="object")throw new InvalidArgumentError$1("Week settings must be an object");if(!integerBetween$1(r.firstDay,1,7)||!integerBetween$1(r.minimalDays,1,7)||!Array.isArray(r.weekend)||r.weekend.some(o=>!integerBetween$1(o,1,7)))throw new InvalidArgumentError$1("Invalid week settings");return{firstDay:r.firstDay,minimalDays:r.minimalDays,weekend:Array.from(r.weekend)}}function integerBetween$1(r,o,u){return isInteger$1(r)&&r>=o&&r<=u}function floorMod$1(r,o){return r-o*Math.floor(r/o)}function padStart$3(r,o=2){const u=r<0;let h;return u?h="-"+(""+-r).padStart(o,"0"):h=(""+r).padStart(o,"0"),h}function parseInteger$3(r){if(!(isUndefined$3(r)||r===null||r===""))return parseInt(r,10)}function parseFloating$1(r){if(!(isUndefined$3(r)||r===null||r===""))return parseFloat(r)}function parseMillis$3(r){if(!(isUndefined$3(r)||r===null||r==="")){const o=parseFloat("0."+r)*1e3;return Math.floor(o)}}function roundTo$1(r,o,u="round"){const h=10**o;switch(u){case"expand":return r>0?Math.ceil(r*h)/h:Math.floor(r*h)/h;case"trunc":return Math.trunc(r*h)/h;case"round":return Math.round(r*h)/h;case"floor":return Math.floor(r*h)/h;case"ceil":return Math.ceil(r*h)/h;default:throw new RangeError(`Value rounding ${u} is out of range`)}}function isLeapYear$1(r){return r%4===0&&(r%100!==0||r%400===0)}function daysInYear$1(r){return isLeapYear$1(r)?366:365}function daysInMonth$1(r,o){const u=floorMod$1(o-1,12)+1,h=r+(o-u)/12;return u===2?isLeapYear$1(h)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][u-1]}function objToLocalTS$3(r){let o=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond);return r.year<100&&r.year>=0&&(o=new Date(o),o.setUTCFullYear(r.year,r.month-1,r.day)),+o}function firstWeekOffset$1(r,o,u){return-isoWeekdayToLocal$1(dayOfWeek$1(r,1,o),u)+o-1}function weeksInWeekYear$1(r,o=4,u=1){const h=firstWeekOffset$1(r,o,u),m=firstWeekOffset$1(r+1,o,u);return(daysInYear$1(r)-h+m)/7}function untruncateYear$1(r){return r>99?r:r>Settings$1.twoDigitCutoffYear?1900+r:2e3+r}function parseZoneInfo$3(r,o,u,h=null){const m=new Date(r),p={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};h&&(p.timeZone=h);const _={timeZoneName:o,...p},y=new Intl.DateTimeFormat(u,_).formatToParts(m).find(S=>S.type.toLowerCase()==="timezonename");return y?y.value:null}function signedOffset$3(r,o){let u=parseInt(r,10);Number.isNaN(u)&&(u=0);const h=parseInt(o,10)||0,m=u<0||Object.is(u,-0)?-h:h;return u*60+m}function asNumber$1(r){const o=Number(r);if(typeof r=="boolean"||r===""||!Number.isFinite(o))throw new InvalidArgumentError$1(`Invalid unit value ${r}`);return o}function normalizeObject$1(r,o){const u={};for(const h in r)if(hasOwnProperty$1(r,h)){const m=r[h];if(m==null)continue;u[o(h)]=asNumber$1(m)}return u}function formatOffset$3(r,o){const u=Math.trunc(Math.abs(r/60)),h=Math.trunc(Math.abs(r%60)),m=r>=0?"+":"-";switch(o){case"short":return`${m}${padStart$3(u,2)}:${padStart$3(h,2)}`;case"narrow":return`${m}${u}${h>0?`:${h}`:""}`;case"techie":return`${m}${padStart$3(u,2)}${padStart$3(h,2)}`;default:throw new RangeError(`Value format ${o} is out of range for property format`)}}function timeObject$1(r){return pick$1(r,["hour","minute","second","millisecond"])}const monthsLong$1=["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort$1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsNarrow$1=["J","F","M","A","M","J","J","A","S","O","N","D"];function months$1(r){switch(r){case"narrow":return[...monthsNarrow$1];case"short":return[...monthsShort$1];case"long":return[...monthsLong$1];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}}const weekdaysLong$1=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort$1=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow$1=["M","T","W","T","F","S","S"];function weekdays$1(r){switch(r){case"narrow":return[...weekdaysNarrow$1];case"short":return[...weekdaysShort$1];case"long":return[...weekdaysLong$1];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const meridiems$1=["AM","PM"],erasLong$1=["Before Christ","Anno Domini"],erasShort$1=["BC","AD"],erasNarrow$1=["B","A"];function eras$1(r){switch(r){case"narrow":return[...erasNarrow$1];case"short":return[...erasShort$1];case"long":return[...erasLong$1];default:return null}}function meridiemForDateTime$1(r){return meridiems$1[r.hour<12?0:1]}function weekdayForDateTime$1(r,o){return weekdays$1(o)[r.weekday-1]}function monthForDateTime$1(r,o){return months$1(o)[r.month-1]}function eraForDateTime$1(r,o){return eras$1(o)[r.year<0?0:1]}function formatRelativeTime$1(r,o,u="always",h=!1){const m={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."]},p=["hours","minutes","seconds"].indexOf(r)===-1;if(u==="auto"&&p){const A=r==="days";switch(o){case 1:return A?"tomorrow":`next ${m[r][0]}`;case-1:return A?"yesterday":`last ${m[r][0]}`;case 0:return A?"today":`this ${m[r][0]}`}}const _=Object.is(o,-0)||o<0,y=Math.abs(o),S=y===1,$=m[r],E=h?S?$[1]:$[2]||$[1]:S?m[r][0]:r;return _?`${y} ${E} ago`:`in ${y} ${E}`}function stringifyTokens$1(r,o){let u="";for(const h of r)h.literal?u+=h.val:u+=o(h.val);return u}const macroTokenToFormatOpts$1={D:DATE_SHORT$1,DD:DATE_MED$1,DDD:DATE_FULL$1,DDDD:DATE_HUGE$1,t:TIME_SIMPLE$1,tt:TIME_WITH_SECONDS$1,ttt:TIME_WITH_SHORT_OFFSET$1,tttt:TIME_WITH_LONG_OFFSET$1,T:TIME_24_SIMPLE$1,TT:TIME_24_WITH_SECONDS$1,TTT:TIME_24_WITH_SHORT_OFFSET$1,TTTT:TIME_24_WITH_LONG_OFFSET$1,f:DATETIME_SHORT$1,ff:DATETIME_MED$1,fff:DATETIME_FULL$1,ffff:DATETIME_HUGE$1,F:DATETIME_SHORT_WITH_SECONDS$1,FF:DATETIME_MED_WITH_SECONDS$1,FFF:DATETIME_FULL_WITH_SECONDS$1,FFFF:DATETIME_HUGE_WITH_SECONDS$1};let Formatter$1=class pr{static create(o,u={}){return new pr(o,u)}static parseFormat(o){let u=null,h="",m=!1;const p=[];for(let _=0;_<o.length;_++){const y=o.charAt(_);y==="'"?((h.length>0||m)&&p.push({literal:m||/^\s+$/.test(h),val:h===""?"'":h}),u=null,h="",m=!m):m||y===u?h+=y:(h.length>0&&p.push({literal:/^\s+$/.test(h),val:h}),h=y,u=y)}return h.length>0&&p.push({literal:m||/^\s+$/.test(h),val:h}),p}static macroTokenToFormatOpts(o){return macroTokenToFormatOpts$1[o]}constructor(o,u){this.opts=u,this.loc=o,this.systemLoc=null}formatWithSystemDefault(o,u){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(o,{...this.opts,...u}).format()}dtFormatter(o,u={}){return this.loc.dtFormatter(o,{...this.opts,...u})}formatDateTime(o,u){return this.dtFormatter(o,u).format()}formatDateTimeParts(o,u){return this.dtFormatter(o,u).formatToParts()}formatInterval(o,u){return this.dtFormatter(o.start,u).dtf.formatRange(o.start.toJSDate(),o.end.toJSDate())}resolvedOptions(o,u){return this.dtFormatter(o,u).resolvedOptions()}num(o,u=0,h=void 0){if(this.opts.forceSimple)return padStart$3(o,u);const m={...this.opts};return u>0&&(m.padTo=u),h&&(m.signDisplay=h),this.loc.numberFormatter(m).format(o)}formatDateTimeFromString(o,u){const h=this.loc.listingMode()==="en",m=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",p=(N,O)=>this.loc.extract(o,N,O),_=N=>o.isOffsetFixed&&o.offset===0&&N.allowZ?"Z":o.isValid?o.zone.formatOffset(o.ts,N.format):"",y=()=>h?meridiemForDateTime$1(o):p({hour:"numeric",hourCycle:"h12"},"dayperiod"),S=(N,O)=>h?monthForDateTime$1(o,N):p(O?{month:N}:{month:N,day:"numeric"},"month"),$=(N,O)=>h?weekdayForDateTime$1(o,N):p(O?{weekday:N}:{weekday:N,month:"long",day:"numeric"},"weekday"),E=N=>{const O=pr.macroTokenToFormatOpts(N);return O?this.formatWithSystemDefault(o,O):N},A=N=>h?eraForDateTime$1(o,N):p({era:N},"era"),T=N=>{switch(N){case"S":return this.num(o.millisecond);case"u":case"SSS":return this.num(o.millisecond,3);case"s":return this.num(o.second);case"ss":return this.num(o.second,2);case"uu":return this.num(Math.floor(o.millisecond/10),2);case"uuu":return this.num(Math.floor(o.millisecond/100));case"m":return this.num(o.minute);case"mm":return this.num(o.minute,2);case"h":return this.num(o.hour%12===0?12:o.hour%12);case"hh":return this.num(o.hour%12===0?12:o.hour%12,2);case"H":return this.num(o.hour);case"HH":return this.num(o.hour,2);case"Z":return _({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return _({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return _({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return o.zone.offsetName(o.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return o.zone.offsetName(o.ts,{format:"long",locale:this.loc.locale});case"z":return o.zoneName;case"a":return y();case"d":return m?p({day:"numeric"},"day"):this.num(o.day);case"dd":return m?p({day:"2-digit"},"day"):this.num(o.day,2);case"c":return this.num(o.weekday);case"ccc":return $("short",!0);case"cccc":return $("long",!0);case"ccccc":return $("narrow",!0);case"E":return this.num(o.weekday);case"EEE":return $("short",!1);case"EEEE":return $("long",!1);case"EEEEE":return $("narrow",!1);case"L":return m?p({month:"numeric",day:"numeric"},"month"):this.num(o.month);case"LL":return m?p({month:"2-digit",day:"numeric"},"month"):this.num(o.month,2);case"LLL":return S("short",!0);case"LLLL":return S("long",!0);case"LLLLL":return S("narrow",!0);case"M":return m?p({month:"numeric"},"month"):this.num(o.month);case"MM":return m?p({month:"2-digit"},"month"):this.num(o.month,2);case"MMM":return S("short",!1);case"MMMM":return S("long",!1);case"MMMMM":return S("narrow",!1);case"y":return m?p({year:"numeric"},"year"):this.num(o.year);case"yy":return m?p({year:"2-digit"},"year"):this.num(o.year.toString().slice(-2),2);case"yyyy":return m?p({year:"numeric"},"year"):this.num(o.year,4);case"yyyyyy":return m?p({year:"numeric"},"year"):this.num(o.year,6);case"G":return A("short");case"GG":return A("long");case"GGGGG":return A("narrow");case"kk":return this.num(o.weekYear.toString().slice(-2),2);case"kkkk":return this.num(o.weekYear,4);case"W":return this.num(o.weekNumber);case"WW":return this.num(o.weekNumber,2);case"n":return this.num(o.localWeekNumber);case"nn":return this.num(o.localWeekNumber,2);case"ii":return this.num(o.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(o.localWeekYear,4);case"o":return this.num(o.ordinal);case"ooo":return this.num(o.ordinal,3);case"q":return this.num(o.quarter);case"qq":return this.num(o.quarter,2);case"X":return this.num(Math.floor(o.ts/1e3));case"x":return this.num(o.ts);default:return E(N)}};return stringifyTokens$1(pr.parseFormat(u),T)}formatDurationFromString(o,u){const h=this.opts.signMode==="negativeLargestOnly"?-1:1,m=E=>{switch(E[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},p=(E,A)=>T=>{const N=m(T);if(N){const O=A.isNegativeDuration&&N!==A.largestUnit?h:1;let C;return this.opts.signMode==="negativeLargestOnly"&&N!==A.largestUnit?C="never":this.opts.signMode==="all"?C="always":C="auto",this.num(E.get(N)*O,T.length,C)}else return T},_=pr.parseFormat(u),y=_.reduce((E,{literal:A,val:T})=>A?E:E.concat(T),[]),S=o.shiftTo(...y.map(m).filter(E=>E)),$={isNegativeDuration:S<0,largestUnit:Object.keys(S.values)[0]};return stringifyTokens$1(_,p(S,$))}};const ianaRegex$3=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes$3(...r){const o=r.reduce((u,h)=>u+h.source,"");return RegExp(`^${o}$`)}function combineExtractors$3(...r){return o=>r.reduce(([u,h,m],p)=>{const[_,y,S]=p(o,m);return[{...u,..._},y||h,S]},[{},null,1]).slice(0,2)}function parse$1(r,...o){if(r==null)return[null,null];for(const[u,h]of o){const m=u.exec(r);if(m)return h(m)}return[null,null]}function simpleParse$3(...r){return(o,u)=>{const h={};let m;for(m=0;m<r.length;m++)h[r[m]]=parseInteger$3(o[u+m]);return[h,null,u+m]}}const offsetRegex$3=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone$3=`(?:${offsetRegex$3.source}?(?:\\[(${ianaRegex$3.source})\\])?)?`,isoTimeBaseRegex$3=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex$3=RegExp(`${isoTimeBaseRegex$3.source}${isoExtendedZone$3}`),isoTimeExtensionRegex$3=RegExp(`(?:[Tt]${isoTimeRegex$3.source})?`),isoYmdRegex$3=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex$3=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex$3=/(\d{4})-?(\d{3})/,extractISOWeekData$3=simpleParse$3("weekYear","weekNumber","weekDay"),extractISOOrdinalData$3=simpleParse$3("year","ordinal"),sqlYmdRegex$3=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex$3=RegExp(`${isoTimeBaseRegex$3.source} ?(?:${offsetRegex$3.source}|(${ianaRegex$3.source}))?`),sqlTimeExtensionRegex$3=RegExp(`(?: ${sqlTimeRegex$3.source})?`);function int$3(r,o,u){const h=r[o];return isUndefined$3(h)?u:parseInteger$3(h)}function extractISOYmd$3(r,o){return[{year:int$3(r,o),month:int$3(r,o+1,1),day:int$3(r,o+2,1)},null,o+3]}function extractISOTime$3(r,o){return[{hours:int$3(r,o,0),minutes:int$3(r,o+1,0),seconds:int$3(r,o+2,0),milliseconds:parseMillis$3(r[o+3])},null,o+4]}function extractISOOffset$3(r,o){const u=!r[o]&&!r[o+1],h=signedOffset$3(r[o+1],r[o+2]),m=u?null:FixedOffsetZone$3.instance(h);return[{},m,o+3]}function extractIANAZone$3(r,o){const u=r[o]?IANAZone$3.create(r[o]):null;return[{},u,o+1]}const isoTimeOnly$1=RegExp(`^T?${isoTimeBaseRegex$3.source}$`),isoDuration$1=/^-?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)?)?)$/;function extractISODuration$1(r){const[o,u,h,m,p,_,y,S,$]=r,E=o[0]==="-",A=S&&S[0]==="-",T=(N,O=!1)=>N!==void 0&&(O||N&&E)?-N:N;return[{years:T(parseFloating$1(u)),months:T(parseFloating$1(h)),weeks:T(parseFloating$1(m)),days:T(parseFloating$1(p)),hours:T(parseFloating$1(_)),minutes:T(parseFloating$1(y)),seconds:T(parseFloating$1(S),S==="-0"),milliseconds:T(parseMillis$3($),A)}]}const obsOffsets$1={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};function fromStrings$1(r,o,u,h,m,p,_){const y={year:o.length===2?untruncateYear$1(parseInteger$3(o)):parseInteger$3(o),month:monthsShort$1.indexOf(u)+1,day:parseInteger$3(h),hour:parseInteger$3(m),minute:parseInteger$3(p)};return _&&(y.second=parseInteger$3(_)),r&&(y.weekday=r.length>3?weekdaysLong$1.indexOf(r)+1:weekdaysShort$1.indexOf(r)+1),y}const rfc2822$1=/^(?:(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)))$/;function extractRFC2822$1(r){const[,o,u,h,m,p,_,y,S,$,E,A]=r,T=fromStrings$1(o,m,h,u,p,_,y);let N;return S?N=obsOffsets$1[S]:$?N=0:N=signedOffset$3(E,A),[T,new FixedOffsetZone$3(N)]}function preprocessRFC2822$1(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const rfc1123$1=/^(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$/,rfc850$1=/^(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$/,ascii$1=/^(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})$/;function extractRFC1123Or850$1(r){const[,o,u,h,m,p,_,y]=r;return[fromStrings$1(o,m,h,u,p,_,y),FixedOffsetZone$3.utcInstance]}function extractASCII$1(r){const[,o,u,h,m,p,_,y]=r;return[fromStrings$1(o,y,u,h,m,p,_),FixedOffsetZone$3.utcInstance]}const isoYmdWithTimeExtensionRegex$1=combineRegexes$3(isoYmdRegex$3,isoTimeExtensionRegex$3),isoWeekWithTimeExtensionRegex$1=combineRegexes$3(isoWeekRegex$3,isoTimeExtensionRegex$3),isoOrdinalWithTimeExtensionRegex$1=combineRegexes$3(isoOrdinalRegex$3,isoTimeExtensionRegex$3),isoTimeCombinedRegex$1=combineRegexes$3(isoTimeRegex$3),extractISOYmdTimeAndOffset$1=combineExtractors$3(extractISOYmd$3,extractISOTime$3,extractISOOffset$3,extractIANAZone$3),extractISOWeekTimeAndOffset$1=combineExtractors$3(extractISOWeekData$3,extractISOTime$3,extractISOOffset$3,extractIANAZone$3),extractISOOrdinalDateAndTime$1=combineExtractors$3(extractISOOrdinalData$3,extractISOTime$3,extractISOOffset$3,extractIANAZone$3),extractISOTimeAndOffset$1=combineExtractors$3(extractISOTime$3,extractISOOffset$3,extractIANAZone$3);function parseISODate$1(r){return parse$1(r,[isoYmdWithTimeExtensionRegex$1,extractISOYmdTimeAndOffset$1],[isoWeekWithTimeExtensionRegex$1,extractISOWeekTimeAndOffset$1],[isoOrdinalWithTimeExtensionRegex$1,extractISOOrdinalDateAndTime$1],[isoTimeCombinedRegex$1,extractISOTimeAndOffset$1])}function parseRFC2822Date$1(r){return parse$1(preprocessRFC2822$1(r),[rfc2822$1,extractRFC2822$1])}function parseHTTPDate$1(r){return parse$1(r,[rfc1123$1,extractRFC1123Or850$1],[rfc850$1,extractRFC1123Or850$1],[ascii$1,extractASCII$1])}function parseISODuration$1(r){return parse$1(r,[isoDuration$1,extractISODuration$1])}const extractISOTimeOnly$1=combineExtractors$3(extractISOTime$3);function parseISOTimeOnly$1(r){return parse$1(r,[isoTimeOnly$1,extractISOTimeOnly$1])}const sqlYmdWithTimeExtensionRegex$1=combineRegexes$3(sqlYmdRegex$3,sqlTimeExtensionRegex$3),sqlTimeCombinedRegex$1=combineRegexes$3(sqlTimeRegex$3),extractISOTimeOffsetAndIANAZone$1=combineExtractors$3(extractISOTime$3,extractISOOffset$3,extractIANAZone$3);function parseSQL$1(r){return parse$1(r,[sqlYmdWithTimeExtensionRegex$1,extractISOYmdTimeAndOffset$1],[sqlTimeCombinedRegex$1,extractISOTimeOffsetAndIANAZone$1])}const INVALID$2$1="Invalid Duration",lowOrderMatrix$1={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}},casualMatrix$1={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},...lowOrderMatrix$1},daysInYearAccurate$1=146097/400,daysInMonthAccurate$1=146097/4800,accurateMatrix$1={years:{quarters:4,months:12,weeks:daysInYearAccurate$1/7,days:daysInYearAccurate$1,hours:daysInYearAccurate$1*24,minutes:daysInYearAccurate$1*24*60,seconds:daysInYearAccurate$1*24*60*60,milliseconds:daysInYearAccurate$1*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate$1/28,days:daysInYearAccurate$1/4,hours:daysInYearAccurate$1*24/4,minutes:daysInYearAccurate$1*24*60/4,seconds:daysInYearAccurate$1*24*60*60/4,milliseconds:daysInYearAccurate$1*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate$1/7,days:daysInMonthAccurate$1,hours:daysInMonthAccurate$1*24,minutes:daysInMonthAccurate$1*24*60,seconds:daysInMonthAccurate$1*24*60*60,milliseconds:daysInMonthAccurate$1*24*60*60*1e3},...lowOrderMatrix$1},orderedUnits$1$1=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits$1=orderedUnits$1$1.slice(0).reverse();function clone$1$1(r,o,u=!1){const h={values:u?o.values:{...r.values,...o.values||{}},loc:r.loc.clone(o.loc),conversionAccuracy:o.conversionAccuracy||r.conversionAccuracy,matrix:o.matrix||r.matrix};return new Duration$1(h)}function durationToMillis$1(r,o){let u=o.milliseconds??0;for(const h of reverseUnits$1.slice(1))o[h]&&(u+=o[h]*r[h].milliseconds);return u}function normalizeValues$1(r,o){const u=durationToMillis$1(r,o)<0?-1:1;orderedUnits$1$1.reduceRight((h,m)=>{if(isUndefined$3(o[m]))return h;if(h){const p=o[h]*u,_=r[m][h],y=Math.floor(p/_);o[m]+=y*u,o[h]-=y*_*u}return m},null),orderedUnits$1$1.reduce((h,m)=>{if(isUndefined$3(o[m]))return h;if(h){const p=o[h]%1;o[h]-=p,o[m]+=p*r[h][m]}return m},null)}function removeZeroes$1(r){const o={};for(const[u,h]of Object.entries(r))h!==0&&(o[u]=h);return o}let Duration$1=class Ft{constructor(o){const u=o.conversionAccuracy==="longterm"||!1;let h=u?accurateMatrix$1:casualMatrix$1;o.matrix&&(h=o.matrix),this.values=o.values,this.loc=o.loc||Locale$1.create(),this.conversionAccuracy=u?"longterm":"casual",this.invalid=o.invalid||null,this.matrix=h,this.isLuxonDuration=!0}static fromMillis(o,u){return Ft.fromObject({milliseconds:o},u)}static fromObject(o,u={}){if(o==null||typeof o!="object")throw new InvalidArgumentError$1(`Duration.fromObject: argument expected to be an object, got ${o===null?"null":typeof o}`);return new Ft({values:normalizeObject$1(o,Ft.normalizeUnit),loc:Locale$1.fromObject(u),conversionAccuracy:u.conversionAccuracy,matrix:u.matrix})}static fromDurationLike(o){if(isNumber$2(o))return Ft.fromMillis(o);if(Ft.isDuration(o))return o;if(typeof o=="object")return Ft.fromObject(o);throw new InvalidArgumentError$1(`Unknown duration argument ${o} of type ${typeof o}`)}static fromISO(o,u){const[h]=parseISODuration$1(o);return h?Ft.fromObject(h,u):Ft.invalid("unparsable",`the input "${o}" can't be parsed as ISO 8601`)}static fromISOTime(o,u){const[h]=parseISOTimeOnly$1(o);return h?Ft.fromObject(h,u):Ft.invalid("unparsable",`the input "${o}" can't be parsed as ISO 8601`)}static invalid(o,u=null){if(!o)throw new InvalidArgumentError$1("need to specify a reason the Duration is invalid");const h=o instanceof Invalid$1?o:new Invalid$1(o,u);if(Settings$1.throwOnInvalid)throw new InvalidDurationError$1(h);return new Ft({invalid:h})}static normalizeUnit(o){const u={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"}[o&&o.toLowerCase()];if(!u)throw new InvalidUnitError$1(o);return u}static isDuration(o){return o&&o.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(o,u={}){const h={...u,floor:u.round!==!1&&u.floor!==!1};return this.isValid?Formatter$1.create(this.loc,h).formatDurationFromString(this,o):INVALID$2$1}toHuman(o={}){if(!this.isValid)return INVALID$2$1;const u=o.showZeros!==!1,h=orderedUnits$1$1.map(m=>{const p=this.values[m];return isUndefined$3(p)||p===0&&!u?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...o,unit:m.slice(0,-1)}).format(p)}).filter(m=>m);return this.loc.listFormatter({type:"conjunction",style:o.listStyle||"narrow",...o}).format(h)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let o="P";return this.years!==0&&(o+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(o+=this.months+this.quarters*3+"M"),this.weeks!==0&&(o+=this.weeks+"W"),this.days!==0&&(o+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(o+="T"),this.hours!==0&&(o+=this.hours+"H"),this.minutes!==0&&(o+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(o+=roundTo$1(this.seconds+this.milliseconds/1e3,3)+"S"),o==="P"&&(o+="T0S"),o}toISOTime(o={}){if(!this.isValid)return null;const u=this.toMillis();return u<0||u>=864e5?null:(o={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...o,includeOffset:!1},DateTime$1.fromMillis(u,{zone:"UTC"}).toISOTime(o))}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?durationToMillis$1(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(o){if(!this.isValid)return this;const u=Ft.fromDurationLike(o),h={};for(const m of orderedUnits$1$1)(hasOwnProperty$1(u.values,m)||hasOwnProperty$1(this.values,m))&&(h[m]=u.get(m)+this.get(m));return clone$1$1(this,{values:h},!0)}minus(o){if(!this.isValid)return this;const u=Ft.fromDurationLike(o);return this.plus(u.negate())}mapUnits(o){if(!this.isValid)return this;const u={};for(const h of Object.keys(this.values))u[h]=asNumber$1(o(this.values[h],h));return clone$1$1(this,{values:u},!0)}get(o){return this[Ft.normalizeUnit(o)]}set(o){if(!this.isValid)return this;const u={...this.values,...normalizeObject$1(o,Ft.normalizeUnit)};return clone$1$1(this,{values:u})}reconfigure({locale:o,numberingSystem:u,conversionAccuracy:h,matrix:m}={}){const _={loc:this.loc.clone({locale:o,numberingSystem:u}),matrix:m,conversionAccuracy:h};return clone$1$1(this,_)}as(o){return this.isValid?this.shiftTo(o).get(o):NaN}normalize(){if(!this.isValid)return this;const o=this.toObject();return normalizeValues$1(this.matrix,o),clone$1$1(this,{values:o},!0)}rescale(){if(!this.isValid)return this;const o=removeZeroes$1(this.normalize().shiftToAll().toObject());return clone$1$1(this,{values:o},!0)}shiftTo(...o){if(!this.isValid)return this;if(o.length===0)return this;o=o.map(_=>Ft.normalizeUnit(_));const u={},h={},m=this.toObject();let p;for(const _ of orderedUnits$1$1)if(o.indexOf(_)>=0){p=_;let y=0;for(const $ in h)y+=this.matrix[$][_]*h[$],h[$]=0;isNumber$2(m[_])&&(y+=m[_]);const S=Math.trunc(y);u[_]=S,h[_]=(y*1e3-S*1e3)/1e3}else isNumber$2(m[_])&&(h[_]=m[_]);for(const _ in h)h[_]!==0&&(u[p]+=_===p?h[_]:h[_]/this.matrix[p][_]);return normalizeValues$1(this.matrix,u),clone$1$1(this,{values:u},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const o={};for(const u of Object.keys(this.values))o[u]=this.values[u]===0?0:-this.values[u];return clone$1$1(this,{values:o},!0)}removeZeros(){if(!this.isValid)return this;const o=removeZeroes$1(this.values);return clone$1$1(this,{values:o},!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(o){if(!this.isValid||!o.isValid||!this.loc.equals(o.loc))return!1;function u(h,m){return h===void 0||h===0?m===void 0||m===0:h===m}for(const h of orderedUnits$1$1)if(!u(this.values[h],o.values[h]))return!1;return!0}};const INVALID$1$1="Invalid Interval";function validateStartEnd$1(r,o){return!r||!r.isValid?Interval$1.invalid("missing or invalid start"):!o||!o.isValid?Interval$1.invalid("missing or invalid end"):o<r?Interval$1.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${o.toISO()}`):null}let Interval$1=class Ut{constructor(o){this.s=o.start,this.e=o.end,this.invalid=o.invalid||null,this.isLuxonInterval=!0}static invalid(o,u=null){if(!o)throw new InvalidArgumentError$1("need to specify a reason the Interval is invalid");const h=o instanceof Invalid$1?o:new Invalid$1(o,u);if(Settings$1.throwOnInvalid)throw new InvalidIntervalError$1(h);return new Ut({invalid:h})}static fromDateTimes(o,u){const h=friendlyDateTime$1(o),m=friendlyDateTime$1(u),p=validateStartEnd$1(h,m);return p??new Ut({start:h,end:m})}static after(o,u){const h=Duration$1.fromDurationLike(u),m=friendlyDateTime$1(o);return Ut.fromDateTimes(m,m.plus(h))}static before(o,u){const h=Duration$1.fromDurationLike(u),m=friendlyDateTime$1(o);return Ut.fromDateTimes(m.minus(h),m)}static fromISO(o,u){const[h,m]=(o||"").split("/",2);if(h&&m){let p,_;try{p=DateTime$1.fromISO(h,u),_=p.isValid}catch{_=!1}let y,S;try{y=DateTime$1.fromISO(m,u),S=y.isValid}catch{S=!1}if(_&&S)return Ut.fromDateTimes(p,y);if(_){const $=Duration$1.fromISO(m,u);if($.isValid)return Ut.after(p,$)}else if(S){const $=Duration$1.fromISO(h,u);if($.isValid)return Ut.before(y,$)}}return Ut.invalid("unparsable",`the input "${o}" can't be parsed as ISO 8601`)}static isInterval(o){return o&&o.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):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(o="milliseconds"){return this.isValid?this.toDuration(o).get(o):NaN}count(o="milliseconds",u){if(!this.isValid)return NaN;const h=this.start.startOf(o,u);let m;return u!=null&&u.useLocaleWeeks?m=this.end.reconfigure({locale:h.locale}):m=this.end,m=m.startOf(o,u),Math.floor(m.diff(h,o).get(o))+(m.valueOf()!==this.end.valueOf())}hasSame(o){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,o):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(o){return this.isValid?this.s>o:!1}isBefore(o){return this.isValid?this.e<=o:!1}contains(o){return this.isValid?this.s<=o&&this.e>o:!1}set({start:o,end:u}={}){return this.isValid?Ut.fromDateTimes(o||this.s,u||this.e):this}splitAt(...o){if(!this.isValid)return[];const u=o.map(friendlyDateTime$1).filter(_=>this.contains(_)).sort((_,y)=>_.toMillis()-y.toMillis()),h=[];let{s:m}=this,p=0;for(;m<this.e;){const _=u[p]||this.e,y=+_>+this.e?this.e:_;h.push(Ut.fromDateTimes(m,y)),m=y,p+=1}return h}splitBy(o){const u=Duration$1.fromDurationLike(o);if(!this.isValid||!u.isValid||u.as("milliseconds")===0)return[];let{s:h}=this,m=1,p;const _=[];for(;h<this.e;){const y=this.start.plus(u.mapUnits(S=>S*m));p=+y>+this.e?this.e:y,_.push(Ut.fromDateTimes(h,p)),h=p,m+=1}return _}divideEqually(o){return this.isValid?this.splitBy(this.length()/o).slice(0,o):[]}overlaps(o){return this.e>o.s&&this.s<o.e}abutsStart(o){return this.isValid?+this.e==+o.s:!1}abutsEnd(o){return this.isValid?+o.e==+this.s:!1}engulfs(o){return this.isValid?this.s<=o.s&&this.e>=o.e:!1}equals(o){return!this.isValid||!o.isValid?!1:this.s.equals(o.s)&&this.e.equals(o.e)}intersection(o){if(!this.isValid)return this;const u=this.s>o.s?this.s:o.s,h=this.e<o.e?this.e:o.e;return u>=h?null:Ut.fromDateTimes(u,h)}union(o){if(!this.isValid)return this;const u=this.s<o.s?this.s:o.s,h=this.e>o.e?this.e:o.e;return Ut.fromDateTimes(u,h)}static merge(o){const[u,h]=o.sort((m,p)=>m.s-p.s).reduce(([m,p],_)=>p?p.overlaps(_)||p.abutsStart(_)?[m,p.union(_)]:[m.concat([p]),_]:[m,_],[[],null]);return h&&u.push(h),u}static xor(o){let u=null,h=0;const m=[],p=o.map(S=>[{time:S.s,type:"s"},{time:S.e,type:"e"}]),_=Array.prototype.concat(...p),y=_.sort((S,$)=>S.time-$.time);for(const S of y)h+=S.type==="s"?1:-1,h===1?u=S.time:(u&&+u!=+S.time&&m.push(Ut.fromDateTimes(u,S.time)),u=null);return Ut.merge(m)}difference(...o){return Ut.xor([this].concat(o)).map(u=>this.intersection(u)).filter(u=>u&&!u.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1$1}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(o=DATE_SHORT$1,u={}){return this.isValid?Formatter$1.create(this.s.loc.clone(u),o).formatInterval(this):INVALID$1$1}toISO(o){return this.isValid?`${this.s.toISO(o)}/${this.e.toISO(o)}`:INVALID$1$1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1$1}toISOTime(o){return this.isValid?`${this.s.toISOTime(o)}/${this.e.toISOTime(o)}`:INVALID$1$1}toFormat(o,{separator:u=" – "}={}){return this.isValid?`${this.s.toFormat(o)}${u}${this.e.toFormat(o)}`:INVALID$1$1}toDuration(o,u){return this.isValid?this.e.diff(this.s,o,u):Duration$1.invalid(this.invalidReason)}mapEndpoints(o){return Ut.fromDateTimes(o(this.s),o(this.e))}},Info$1=class{static hasDST(o=Settings$1.defaultZone){const u=DateTime$1.now().setZone(o).set({month:12});return!o.isUniversal&&u.offset!==u.set({month:6}).offset}static isValidIANAZone(o){return IANAZone$3.isValidZone(o)}static normalizeZone(o){return normalizeZone$1(o,Settings$1.defaultZone)}static getStartOfWeek({locale:o=null,locObj:u=null}={}){return(u||Locale$1.create(o)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:o=null,locObj:u=null}={}){return(u||Locale$1.create(o)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:o=null,locObj:u=null}={}){return(u||Locale$1.create(o)).getWeekendDays().slice()}static months(o="long",{locale:u=null,numberingSystem:h=null,locObj:m=null,outputCalendar:p="gregory"}={}){return(m||Locale$1.create(u,h,p)).months(o)}static monthsFormat(o="long",{locale:u=null,numberingSystem:h=null,locObj:m=null,outputCalendar:p="gregory"}={}){return(m||Locale$1.create(u,h,p)).months(o,!0)}static weekdays(o="long",{locale:u=null,numberingSystem:h=null,locObj:m=null}={}){return(m||Locale$1.create(u,h,null)).weekdays(o)}static weekdaysFormat(o="long",{locale:u=null,numberingSystem:h=null,locObj:m=null}={}){return(m||Locale$1.create(u,h,null)).weekdays(o,!0)}static meridiems({locale:o=null}={}){return Locale$1.create(o).meridiems()}static eras(o="short",{locale:u=null}={}){return Locale$1.create(u,null,"gregory").eras(o)}static features(){return{relative:hasRelative$1(),localeWeek:hasLocaleWeekInfo$1()}}};function dayDiff$1(r,o){const u=m=>m.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),h=u(o)-u(r);return Math.floor(Duration$1.fromMillis(h).as("days"))}function highOrderDiffs$1(r,o,u){const h=[["years",(S,$)=>$.year-S.year],["quarters",(S,$)=>$.quarter-S.quarter+($.year-S.year)*4],["months",(S,$)=>$.month-S.month+($.year-S.year)*12],["weeks",(S,$)=>{const E=dayDiff$1(S,$);return(E-E%7)/7}],["days",dayDiff$1]],m={},p=r;let _,y;for(const[S,$]of h)u.indexOf(S)>=0&&(_=S,m[S]=$(r,o),y=p.plus(m),y>o?(m[S]--,r=p.plus(m),r>o&&(y=r,m[S]--,r=p.plus(m))):r=y);return[r,m,y,_]}function diff(r,o,u,h){let[m,p,_,y]=highOrderDiffs$1(r,o,u);const S=o-m,$=u.filter(A=>["hours","minutes","seconds","milliseconds"].indexOf(A)>=0);$.length===0&&(_<o&&(_=m.plus({[y]:1})),_!==m&&(p[y]=(p[y]||0)+S/(_-m)));const E=Duration$1.fromObject(p,h);return $.length>0?Duration$1.fromMillis(S,h).shiftTo(...$).plus(E):E}const MISSING_FTP$1="missing Intl.DateTimeFormat.formatToParts support";function intUnit$1(r,o=u=>u){return{regex:r,deser:([u])=>o(parseDigits$1(u))}}const NBSP$1=" ",spaceOrNBSP$1=`[ ${NBSP$1}]`,spaceOrNBSPRegExp$1=new RegExp(spaceOrNBSP$1,"g");function fixListRegex$1(r){return r.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp$1,spaceOrNBSP$1)}function stripInsensitivities$1(r){return r.replace(/\./g,"").replace(spaceOrNBSPRegExp$1," ").toLowerCase()}function oneOf$1(r,o){return r===null?null:{regex:RegExp(r.map(fixListRegex$1).join("|")),deser:([u])=>r.findIndex(h=>stripInsensitivities$1(u)===stripInsensitivities$1(h))+o}}function offset$1(r,o){return{regex:r,deser:([,u,h])=>signedOffset$3(u,h),groups:o}}function simple$1(r){return{regex:r,deser:([o])=>o}}function escapeToken$1(r){return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken$1(r,o){const u=digitRegex$1(o),h=digitRegex$1(o,"{2}"),m=digitRegex$1(o,"{3}"),p=digitRegex$1(o,"{4}"),_=digitRegex$1(o,"{6}"),y=digitRegex$1(o,"{1,2}"),S=digitRegex$1(o,"{1,3}"),$=digitRegex$1(o,"{1,6}"),E=digitRegex$1(o,"{1,9}"),A=digitRegex$1(o,"{2,4}"),T=digitRegex$1(o,"{4,6}"),N=L=>({regex:RegExp(escapeToken$1(L.val)),deser:([w])=>w,literal:!0}),C=(L=>{if(r.literal)return N(L);switch(L.val){case"G":return oneOf$1(o.eras("short"),0);case"GG":return oneOf$1(o.eras("long"),0);case"y":return intUnit$1($);case"yy":return intUnit$1(A,untruncateYear$1);case"yyyy":return intUnit$1(p);case"yyyyy":return intUnit$1(T);case"yyyyyy":return intUnit$1(_);case"M":return intUnit$1(y);case"MM":return intUnit$1(h);case"MMM":return oneOf$1(o.months("short",!0),1);case"MMMM":return oneOf$1(o.months("long",!0),1);case"L":return intUnit$1(y);case"LL":return intUnit$1(h);case"LLL":return oneOf$1(o.months("short",!1),1);case"LLLL":return oneOf$1(o.months("long",!1),1);case"d":return intUnit$1(y);case"dd":return intUnit$1(h);case"o":return intUnit$1(S);case"ooo":return intUnit$1(m);case"HH":return intUnit$1(h);case"H":return intUnit$1(y);case"hh":return intUnit$1(h);case"h":return intUnit$1(y);case"mm":return intUnit$1(h);case"m":return intUnit$1(y);case"q":return intUnit$1(y);case"qq":return intUnit$1(h);case"s":return intUnit$1(y);case"ss":return intUnit$1(h);case"S":return intUnit$1(S);case"SSS":return intUnit$1(m);case"u":return simple$1(E);case"uu":return simple$1(y);case"uuu":return intUnit$1(u);case"a":return oneOf$1(o.meridiems(),0);case"kkkk":return intUnit$1(p);case"kk":return intUnit$1(A,untruncateYear$1);case"W":return intUnit$1(y);case"WW":return intUnit$1(h);case"E":case"c":return intUnit$1(u);case"EEE":return oneOf$1(o.weekdays("short",!1),1);case"EEEE":return oneOf$1(o.weekdays("long",!1),1);case"ccc":return oneOf$1(o.weekdays("short",!0),1);case"cccc":return oneOf$1(o.weekdays("long",!0),1);case"Z":case"ZZ":return offset$1(new RegExp(`([+-]${y.source})(?::(${h.source}))?`),2);case"ZZZ":return offset$1(new RegExp(`([+-]${y.source})(${h.source})?`),2);case"z":return simple$1(/[a-z_+-/]{1,256}?/i);case" ":return simple$1(/[^\S\n\r]/);default:return N(L)}})(r)||{invalidReason:MISSING_FTP$1};return C.token=r,C}const partTypeStyleToTokenVal$1={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"}};function tokenForPart$1(r,o,u){const{type:h,value:m}=r;if(h==="literal"){const S=/^\s+$/.test(m);return{literal:!S,val:S?" ":m}}const p=o[h];let _=h;h==="hour"&&(o.hour12!=null?_=o.hour12?"hour12":"hour24":o.hourCycle!=null?o.hourCycle==="h11"||o.hourCycle==="h12"?_="hour12":_="hour24":_=u.hour12?"hour12":"hour24");let y=partTypeStyleToTokenVal$1[_];if(typeof y=="object"&&(y=y[p]),y)return{literal:!1,val:y}}function buildRegex$1(r){return[`^${r.map(u=>u.regex).reduce((u,h)=>`${u}(${h.source})`,"")}$`,r]}function match$1(r,o,u){const h=r.match(o);if(h){const m={};let p=1;for(const _ in u)if(hasOwnProperty$1(u,_)){const y=u[_],S=y.groups?y.groups+1:1;!y.literal&&y.token&&(m[y.token.val[0]]=y.deser(h.slice(p,p+S))),p+=S}return[h,m]}else return[h,{}]}function dateTimeFromMatches$1(r){const o=p=>{switch(p){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}};let u=null,h;return isUndefined$3(r.z)||(u=IANAZone$3.create(r.z)),isUndefined$3(r.Z)||(u||(u=new FixedOffsetZone$3(r.Z)),h=r.Z),isUndefined$3(r.q)||(r.M=(r.q-1)*3+1),isUndefined$3(r.h)||(r.h<12&&r.a===1?r.h+=12:r.h===12&&r.a===0&&(r.h=0)),r.G===0&&r.y&&(r.y=-r.y),isUndefined$3(r.u)||(r.S=parseMillis$3(r.u)),[Object.keys(r).reduce((p,_)=>{const y=o(_);return y&&(p[y]=r[_]),p},{}),u,h]}let dummyDateTimeCache$1=null;function getDummyDateTime$1(){return dummyDateTimeCache$1||(dummyDateTimeCache$1=DateTime$1.fromMillis(1555555555555)),dummyDateTimeCache$1}function maybeExpandMacroToken$1(r,o){if(r.literal)return r;const u=Formatter$1.macroTokenToFormatOpts(r.val),h=formatOptsToTokens$1(u,o);return h==null||h.includes(void 0)?r:h}function expandMacroTokens$1(r,o){return Array.prototype.concat(...r.map(u=>maybeExpandMacroToken$1(u,o)))}let TokenParser$1=class{constructor(o,u){if(this.locale=o,this.format=u,this.tokens=expandMacroTokens$1(Formatter$1.parseFormat(u),o),this.units=this.tokens.map(h=>unitForToken$1(h,o)),this.disqualifyingUnit=this.units.find(h=>h.invalidReason),!this.disqualifyingUnit){const[h,m]=buildRegex$1(this.units);this.regex=RegExp(h,"i"),this.handlers=m}}explainFromTokens(o){if(this.isValid){const[u,h]=match$1(o,this.regex,this.handlers),[m,p,_]=h?dateTimeFromMatches$1(h):[null,null,void 0];if(hasOwnProperty$1(h,"a")&&hasOwnProperty$1(h,"H"))throw new ConflictingSpecificationError$1("Can't include meridiem when specifying 24-hour format");return{input:o,tokens:this.tokens,regex:this.regex,rawMatches:u,matches:h,result:m,zone:p,specificOffset:_}}else return{input:o,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function explainFromTokens$1(r,o,u){return new TokenParser$1(r,u).explainFromTokens(o)}function parseFromTokens$1(r,o,u){const{result:h,zone:m,specificOffset:p,invalidReason:_}=explainFromTokens$1(r,o,u);return[h,m,p,_]}function formatOptsToTokens$1(r,o){if(!r)return null;const h=Formatter$1.create(o,r).dtFormatter(getDummyDateTime$1()),m=h.formatToParts(),p=h.resolvedOptions();return m.map(_=>tokenForPart$1(_,r,p))}const INVALID$4="Invalid DateTime",MAX_DATE$1=864e13;function unsupportedZone$1(r){return new Invalid$1("unsupported zone",`the zone "${r.name}" is not supported`)}function possiblyCachedWeekData$1(r){return r.weekData===null&&(r.weekData=gregorianToWeek$1(r.c)),r.weekData}function possiblyCachedLocalWeekData$1(r){return r.localWeekData===null&&(r.localWeekData=gregorianToWeek$1(r.c,r.loc.getMinDaysInFirstWeek(),r.loc.getStartOfWeek())),r.localWeekData}function clone$2(r,o){const u={ts:r.ts,zone:r.zone,c:r.c,o:r.o,loc:r.loc,invalid:r.invalid};return new DateTime$1({...u,...o,old:u})}function fixOffset$1(r,o,u){let h=r-o*60*1e3;const m=u.offset(h);if(o===m)return[h,o];h-=(m-o)*60*1e3;const p=u.offset(h);return m===p?[h,m]:[r-Math.min(m,p)*60*1e3,Math.max(m,p)]}function tsToObj$1(r,o){r+=o*60*1e3;const u=new Date(r);return{year:u.getUTCFullYear(),month:u.getUTCMonth()+1,day:u.getUTCDate(),hour:u.getUTCHours(),minute:u.getUTCMinutes(),second:u.getUTCSeconds(),millisecond:u.getUTCMilliseconds()}}function objToTS$1(r,o,u){return fixOffset$1(objToLocalTS$3(r),o,u)}function adjustTime$1(r,o){const u=r.o,h=r.c.year+Math.trunc(o.years),m=r.c.month+Math.trunc(o.months)+Math.trunc(o.quarters)*3,p={...r.c,year:h,month:m,day:Math.min(r.c.day,daysInMonth$1(h,m))+Math.trunc(o.days)+Math.trunc(o.weeks)*7},_=Duration$1.fromObject({years:o.years-Math.trunc(o.years),quarters:o.quarters-Math.trunc(o.quarters),months:o.months-Math.trunc(o.months),weeks:o.weeks-Math.trunc(o.weeks),days:o.days-Math.trunc(o.days),hours:o.hours,minutes:o.minutes,seconds:o.seconds,milliseconds:o.milliseconds}).as("milliseconds"),y=objToLocalTS$3(p);let[S,$]=fixOffset$1(y,u,r.zone);return _!==0&&(S+=_,$=r.zone.offset(S)),{ts:S,o:$}}function parseDataToDateTime$1(r,o,u,h,m,p){const{setZone:_,zone:y}=u;if(r&&Object.keys(r).length!==0||o){const S=o||y,$=DateTime$1.fromObject(r,{...u,zone:S,specificOffset:p});return _?$:$.setZone(y)}else return DateTime$1.invalid(new Invalid$1("unparsable",`the input "${m}" can't be parsed as ${h}`))}function toTechFormat$1(r,o,u=!0){return r.isValid?Formatter$1.create(Locale$1.create("en-US"),{allowZ:u,forceSimple:!0}).formatDateTimeFromString(r,o):null}function toISODate$1(r,o,u){const h=r.c.year>9999||r.c.year<0;let m="";if(h&&r.c.year>=0&&(m+="+"),m+=padStart$3(r.c.year,h?6:4),u==="year")return m;if(o){if(m+="-",m+=padStart$3(r.c.month),u==="month")return m;m+="-"}else if(m+=padStart$3(r.c.month),u==="month")return m;return m+=padStart$3(r.c.day),m}function toISOTime$1(r,o,u,h,m,p,_){let y=!u||r.c.millisecond!==0||r.c.second!==0,S="";switch(_){case"day":case"month":case"year":break;default:if(S+=padStart$3(r.c.hour),_==="hour")break;if(o){if(S+=":",S+=padStart$3(r.c.minute),_==="minute")break;y&&(S+=":",S+=padStart$3(r.c.second))}else{if(S+=padStart$3(r.c.minute),_==="minute")break;y&&(S+=padStart$3(r.c.second))}if(_==="second")break;y&&(!h||r.c.millisecond!==0)&&(S+=".",S+=padStart$3(r.c.millisecond,3))}return m&&(r.isOffsetFixed&&r.offset===0&&!p?S+="Z":r.o<0?(S+="-",S+=padStart$3(Math.trunc(-r.o/60)),S+=":",S+=padStart$3(Math.trunc(-r.o%60))):(S+="+",S+=padStart$3(Math.trunc(r.o/60)),S+=":",S+=padStart$3(Math.trunc(r.o%60)))),p&&(S+="["+r.zone.ianaName+"]"),S}const defaultUnitValues$1={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues$1={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues$1={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits$2=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits$1=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits$1=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit$1(r){const o={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"}[r.toLowerCase()];if(!o)throw new InvalidUnitError$1(r);return o}function normalizeUnitWithLocalWeeks$1(r){switch(r.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit$1(r)}}function guessOffsetForZone$1(r){if(zoneOffsetTs$1===void 0&&(zoneOffsetTs$1=Settings$1.now()),r.type!=="iana")return r.offset(zoneOffsetTs$1);const o=r.name;let u=zoneOffsetGuessCache$1.get(o);return u===void 0&&(u=r.offset(zoneOffsetTs$1),zoneOffsetGuessCache$1.set(o,u)),u}function quickDT$1(r,o){const u=normalizeZone$1(o.zone,Settings$1.defaultZone);if(!u.isValid)return DateTime$1.invalid(unsupportedZone$1(u));const h=Locale$1.fromObject(o);let m,p;if(isUndefined$3(r.year))m=Settings$1.now();else{for(const S of orderedUnits$2)isUndefined$3(r[S])&&(r[S]=defaultUnitValues$1[S]);const _=hasInvalidGregorianData$1(r)||hasInvalidTimeData$1(r);if(_)return DateTime$1.invalid(_);const y=guessOffsetForZone$1(u);[m,p]=objToTS$1(r,y,u)}return new DateTime$1({ts:m,zone:u,loc:h,o:p})}function diffRelative$1(r,o,u){const h=isUndefined$3(u.round)?!0:u.round,m=isUndefined$3(u.rounding)?"trunc":u.rounding,p=(y,S)=>(y=roundTo$1(y,h||u.calendary?0:2,u.calendary?"round":m),o.loc.clone(u).relFormatter(u).format(y,S)),_=y=>u.calendary?o.hasSame(r,y)?0:o.startOf(y).diff(r.startOf(y),y).get(y):o.diff(r,y).get(y);if(u.unit)return p(_(u.unit),u.unit);for(const y of u.units){const S=_(y);if(Math.abs(S)>=1)return p(S,y)}return p(r>o?-0:0,u.units[u.units.length-1])}function lastOpts$1(r){let o={},u;return r.length>0&&typeof r[r.length-1]=="object"?(o=r[r.length-1],u=Array.from(r).slice(0,r.length-1)):u=Array.from(r),[o,u]}let zoneOffsetTs$1;const zoneOffsetGuessCache$1=new Map;let DateTime$1=class St{constructor(o){const u=o.zone||Settings$1.defaultZone;let h=o.invalid||(Number.isNaN(o.ts)?new Invalid$1("invalid input"):null)||(u.isValid?null:unsupportedZone$1(u));this.ts=isUndefined$3(o.ts)?Settings$1.now():o.ts;let m=null,p=null;if(!h)if(o.old&&o.old.ts===this.ts&&o.old.zone.equals(u))[m,p]=[o.old.c,o.old.o];else{const y=isNumber$2(o.o)&&!o.old?o.o:u.offset(this.ts);m=tsToObj$1(this.ts,y),h=Number.isNaN(m.year)?new Invalid$1("invalid input"):null,m=h?null:m,p=h?null:y}this._zone=u,this.loc=o.loc||Locale$1.create(),this.invalid=h,this.weekData=null,this.localWeekData=null,this.c=m,this.o=p,this.isLuxonDateTime=!0}static now(){return new St({})}static local(){const[o,u]=lastOpts$1(arguments),[h,m,p,_,y,S,$]=u;return quickDT$1({year:h,month:m,day:p,hour:_,minute:y,second:S,millisecond:$},o)}static utc(){const[o,u]=lastOpts$1(arguments),[h,m,p,_,y,S,$]=u;return o.zone=FixedOffsetZone$3.utcInstance,quickDT$1({year:h,month:m,day:p,hour:_,minute:y,second:S,millisecond:$},o)}static fromJSDate(o,u={}){const h=isDate$1(o)?o.valueOf():NaN;if(Number.isNaN(h))return St.invalid("invalid input");const m=normalizeZone$1(u.zone,Settings$1.defaultZone);return m.isValid?new St({ts:h,zone:m,loc:Locale$1.fromObject(u)}):St.invalid(unsupportedZone$1(m))}static fromMillis(o,u={}){if(isNumber$2(o))return o<-MAX_DATE$1||o>MAX_DATE$1?St.invalid("Timestamp out of range"):new St({ts:o,zone:normalizeZone$1(u.zone,Settings$1.defaultZone),loc:Locale$1.fromObject(u)});throw new InvalidArgumentError$1(`fromMillis requires a numerical input, but received a ${typeof o} with value ${o}`)}static fromSeconds(o,u={}){if(isNumber$2(o))return new St({ts:o*1e3,zone:normalizeZone$1(u.zone,Settings$1.defaultZone),loc:Locale$1.fromObject(u)});throw new InvalidArgumentError$1("fromSeconds requires a numerical input")}static fromObject(o,u={}){o=o||{};const h=normalizeZone$1(u.zone,Settings$1.defaultZone);if(!h.isValid)return St.invalid(unsupportedZone$1(h));const m=Locale$1.fromObject(u),p=normalizeObject$1(o,normalizeUnitWithLocalWeeks$1),{minDaysInFirstWeek:_,startOfWeek:y}=usesLocalWeekValues$1(p,m),S=Settings$1.now(),$=isUndefined$3(u.specificOffset)?h.offset(S):u.specificOffset,E=!isUndefined$3(p.ordinal),A=!isUndefined$3(p.year),T=!isUndefined$3(p.month)||!isUndefined$3(p.day),N=A||T,O=p.weekYear||p.weekNumber;if((N||E)&&O)throw new ConflictingSpecificationError$1("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(T&&E)throw new ConflictingSpecificationError$1("Can't mix ordinal dates with month/day");const C=O||p.weekday&&!N;let L,w,I=tsToObj$1(S,$);C?(L=orderedWeekUnits$1,w=defaultWeekUnitValues$1,I=gregorianToWeek$1(I,_,y)):E?(L=orderedOrdinalUnits$1,w=defaultOrdinalUnitValues$1,I=gregorianToOrdinal$1(I)):(L=orderedUnits$2,w=defaultUnitValues$1);let D=!1;for(const Ee of L){const ge=p[Ee];isUndefined$3(ge)?D?p[Ee]=w[Ee]:p[Ee]=I[Ee]:D=!0}const F=C?hasInvalidWeekData$1(p,_,y):E?hasInvalidOrdinalData$1(p):hasInvalidGregorianData$1(p),k=F||hasInvalidTimeData$1(p);if(k)return St.invalid(k);const ie=C?weekToGregorian$1(p,_,y):E?ordinalToGregorian$1(p):p,[fe,pe]=objToTS$1(ie,$,h),Se=new St({ts:fe,zone:h,o:pe,loc:m});return p.weekday&&N&&o.weekday!==Se.weekday?St.invalid("mismatched weekday",`you can't specify both a weekday of ${p.weekday} and a date of ${Se.toISO()}`):Se.isValid?Se:St.invalid(Se.invalid)}static fromISO(o,u={}){const[h,m]=parseISODate$1(o);return parseDataToDateTime$1(h,m,u,"ISO 8601",o)}static fromRFC2822(o,u={}){const[h,m]=parseRFC2822Date$1(o);return parseDataToDateTime$1(h,m,u,"RFC 2822",o)}static fromHTTP(o,u={}){const[h,m]=parseHTTPDate$1(o);return parseDataToDateTime$1(h,m,u,"HTTP",u)}static fromFormat(o,u,h={}){if(isUndefined$3(o)||isUndefined$3(u))throw new InvalidArgumentError$1("fromFormat requires an input string and a format");const{locale:m=null,numberingSystem:p=null}=h,_=Locale$1.fromOpts({locale:m,numberingSystem:p,defaultToEN:!0}),[y,S,$,E]=parseFromTokens$1(_,o,u);return E?St.invalid(E):parseDataToDateTime$1(y,S,h,`format ${u}`,o,$)}static fromString(o,u,h={}){return St.fromFormat(o,u,h)}static fromSQL(o,u={}){const[h,m]=parseSQL$1(o);return parseDataToDateTime$1(h,m,u,"SQL",o)}static invalid(o,u=null){if(!o)throw new InvalidArgumentError$1("need to specify a reason the DateTime is invalid");const h=o instanceof Invalid$1?o:new Invalid$1(o,u);if(Settings$1.throwOnInvalid)throw new InvalidDateTimeError$1(h);return new St({invalid:h})}static isDateTime(o){return o&&o.isLuxonDateTime||!1}static parseFormatForOpts(o,u={}){const h=formatOptsToTokens$1(o,Locale$1.fromObject(u));return h?h.map(m=>m?m.val:null).join(""):null}static expandFormat(o,u={}){return expandMacroTokens$1(Formatter$1.parseFormat(o),Locale$1.fromObject(u)).map(m=>m.val).join("")}static resetCache(){zoneOffsetTs$1=void 0,zoneOffsetGuessCache$1.clear()}get(o){return this[o]}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?possiblyCachedWeekData$1(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData$1(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData$1(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal$1(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info$1.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info$1.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info$1.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info$1.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];const o=864e5,u=6e4,h=objToLocalTS$3(this.c),m=this.zone.offset(h-o),p=this.zone.offset(h+o),_=this.zone.offset(h-m*u),y=this.zone.offset(h-p*u);if(_===y)return[this];const S=h-_*u,$=h-y*u,E=tsToObj$1(S,_),A=tsToObj$1($,y);return E.hour===A.hour&&E.minute===A.minute&&E.second===A.second&&E.millisecond===A.millisecond?[clone$2(this,{ts:S}),clone$2(this,{ts:$})]:[this]}get isInLeapYear(){return isLeapYear$1(this.year)}get daysInMonth(){return daysInMonth$1(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear$1(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear$1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear$1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(o={}){const{locale:u,numberingSystem:h,calendar:m}=Formatter$1.create(this.loc.clone(o),o).resolvedOptions(this);return{locale:u,numberingSystem:h,outputCalendar:m}}toUTC(o=0,u={}){return this.setZone(FixedOffsetZone$3.instance(o),u)}toLocal(){return this.setZone(Settings$1.defaultZone)}setZone(o,{keepLocalTime:u=!1,keepCalendarTime:h=!1}={}){if(o=normalizeZone$1(o,Settings$1.defaultZone),o.equals(this.zone))return this;if(o.isValid){let m=this.ts;if(u||h){const p=o.offset(this.ts),_=this.toObject();[m]=objToTS$1(_,p,o)}return clone$2(this,{ts:m,zone:o})}else return St.invalid(unsupportedZone$1(o))}reconfigure({locale:o,numberingSystem:u,outputCalendar:h}={}){const m=this.loc.clone({locale:o,numberingSystem:u,outputCalendar:h});return clone$2(this,{loc:m})}setLocale(o){return this.reconfigure({locale:o})}set(o){if(!this.isValid)return this;const u=normalizeObject$1(o,normalizeUnitWithLocalWeeks$1),{minDaysInFirstWeek:h,startOfWeek:m}=usesLocalWeekValues$1(u,this.loc),p=!isUndefined$3(u.weekYear)||!isUndefined$3(u.weekNumber)||!isUndefined$3(u.weekday),_=!isUndefined$3(u.ordinal),y=!isUndefined$3(u.year),S=!isUndefined$3(u.month)||!isUndefined$3(u.day),$=y||S,E=u.weekYear||u.weekNumber;if(($||_)&&E)throw new ConflictingSpecificationError$1("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(S&&_)throw new ConflictingSpecificationError$1("Can't mix ordinal dates with month/day");let A;p?A=weekToGregorian$1({...gregorianToWeek$1(this.c,h,m),...u},h,m):isUndefined$3(u.ordinal)?(A={...this.toObject(),...u},isUndefined$3(u.day)&&(A.day=Math.min(daysInMonth$1(A.year,A.month),A.day))):A=ordinalToGregorian$1({...gregorianToOrdinal$1(this.c),...u});const[T,N]=objToTS$1(A,this.o,this.zone);return clone$2(this,{ts:T,o:N})}plus(o){if(!this.isValid)return this;const u=Duration$1.fromDurationLike(o);return clone$2(this,adjustTime$1(this,u))}minus(o){if(!this.isValid)return this;const u=Duration$1.fromDurationLike(o).negate();return clone$2(this,adjustTime$1(this,u))}startOf(o,{useLocaleWeeks:u=!1}={}){if(!this.isValid)return this;const h={},m=Duration$1.normalizeUnit(o);switch(m){case"years":h.month=1;case"quarters":case"months":h.day=1;case"weeks":case"days":h.hour=0;case"hours":h.minute=0;case"minutes":h.second=0;case"seconds":h.millisecond=0;break}if(m==="weeks")if(u){const p=this.loc.getStartOfWeek(),{weekday:_}=this;_<p&&(h.weekNumber=this.weekNumber-1),h.weekday=p}else h.weekday=1;if(m==="quarters"){const p=Math.ceil(this.month/3);h.month=(p-1)*3+1}return this.set(h)}endOf(o,u){return this.isValid?this.plus({[o]:1}).startOf(o,u).minus(1):this}toFormat(o,u={}){return this.isValid?Formatter$1.create(this.loc.redefaultToEN(u)).formatDateTimeFromString(this,o):INVALID$4}toLocaleString(o=DATE_SHORT$1,u={}){return this.isValid?Formatter$1.create(this.loc.clone(u),o).formatDateTime(this):INVALID$4}toLocaleParts(o={}){return this.isValid?Formatter$1.create(this.loc.clone(o),o).formatDateTimeParts(this):[]}toISO({format:o="extended",suppressSeconds:u=!1,suppressMilliseconds:h=!1,includeOffset:m=!0,extendedZone:p=!1,precision:_="milliseconds"}={}){if(!this.isValid)return null;_=normalizeUnit$1(_);const y=o==="extended";let S=toISODate$1(this,y,_);return orderedUnits$2.indexOf(_)>=3&&(S+="T"),S+=toISOTime$1(this,y,u,h,m,p,_),S}toISODate({format:o="extended",precision:u="day"}={}){return this.isValid?toISODate$1(this,o==="extended",normalizeUnit$1(u)):null}toISOWeekDate(){return toTechFormat$1(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:o=!1,suppressSeconds:u=!1,includeOffset:h=!0,includePrefix:m=!1,extendedZone:p=!1,format:_="extended",precision:y="milliseconds"}={}){return this.isValid?(y=normalizeUnit$1(y),(m&&orderedUnits$2.indexOf(y)>=3?"T":"")+toISOTime$1(this,_==="extended",u,o,h,p,y)):null}toRFC2822(){return toTechFormat$1(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return toTechFormat$1(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?toISODate$1(this,!0):null}toSQLTime({includeOffset:o=!0,includeZone:u=!1,includeOffsetSpace:h=!0}={}){let m="HH:mm:ss.SSS";return(u||o)&&(h&&(m+=" "),u?m+="z":o&&(m+="ZZ")),toTechFormat$1(this,m,!0)}toSQL(o={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(o)}`:null}toString(){return this.isValid?this.toISO():INVALID$4}[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(o={}){if(!this.isValid)return{};const u={...this.c};return o.includeConfig&&(u.outputCalendar=this.outputCalendar,u.numberingSystem=this.loc.numberingSystem,u.locale=this.loc.locale),u}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(o,u="milliseconds",h={}){if(!this.isValid||!o.isValid)return Duration$1.invalid("created by diffing an invalid DateTime");const m={locale:this.locale,numberingSystem:this.numberingSystem,...h},p=maybeArray$1(u).map(Duration$1.normalizeUnit),_=o.valueOf()>this.valueOf(),y=_?this:o,S=_?o:this,$=diff(y,S,p,m);return _?$.negate():$}diffNow(o="milliseconds",u={}){return this.diff(St.now(),o,u)}until(o){return this.isValid?Interval$1.fromDateTimes(this,o):this}hasSame(o,u,h){if(!this.isValid)return!1;const m=o.valueOf(),p=this.setZone(o.zone,{keepLocalTime:!0});return p.startOf(u,h)<=m&&m<=p.endOf(u,h)}equals(o){return this.isValid&&o.isValid&&this.valueOf()===o.valueOf()&&this.zone.equals(o.zone)&&this.loc.equals(o.loc)}toRelative(o={}){if(!this.isValid)return null;const u=o.base||St.fromObject({},{zone:this.zone}),h=o.padding?this<u?-o.padding:o.padding:0;let m=["years","months","days","hours","minutes","seconds"],p=o.unit;return Array.isArray(o.unit)&&(m=o.unit,p=void 0),diffRelative$1(u,this.plus(h),{...o,numeric:"always",units:m,unit:p})}toRelativeCalendar(o={}){return this.isValid?diffRelative$1(o.base||St.fromObject({},{zone:this.zone}),this,{...o,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...o){if(!o.every(St.isDateTime))throw new InvalidArgumentError$1("min requires all arguments be DateTimes");return bestBy$1(o,u=>u.valueOf(),Math.min)}static max(...o){if(!o.every(St.isDateTime))throw new InvalidArgumentError$1("max requires all arguments be DateTimes");return bestBy$1(o,u=>u.valueOf(),Math.max)}static fromFormatExplain(o,u,h={}){const{locale:m=null,numberingSystem:p=null}=h,_=Locale$1.fromOpts({locale:m,numberingSystem:p,defaultToEN:!0});return explainFromTokens$1(_,o,u)}static fromStringExplain(o,u,h={}){return St.fromFormatExplain(o,u,h)}static buildFormatParser(o,u={}){const{locale:h=null,numberingSystem:m=null}=u,p=Locale$1.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0});return new TokenParser$1(p,o)}static fromFormatParser(o,u,h={}){if(isUndefined$3(o)||isUndefined$3(u))throw new InvalidArgumentError$1("fromFormatParser requires an input string and a format parser");const{locale:m=null,numberingSystem:p=null}=h,_=Locale$1.fromOpts({locale:m,numberingSystem:p,defaultToEN:!0});if(!_.equals(u.locale))throw new InvalidArgumentError$1(`fromFormatParser called with a locale of ${_}, but the format parser was created for ${u.locale}`);const{result:y,zone:S,specificOffset:$,invalidReason:E}=u.explainFromTokens(o);return E?St.invalid(E):parseDataToDateTime$1(y,S,h,`format ${u.format}`,o,$)}static get DATE_SHORT(){return DATE_SHORT$1}static get DATE_MED(){return DATE_MED$1}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY$1}static get DATE_FULL(){return DATE_FULL$1}static get DATE_HUGE(){return DATE_HUGE$1}static get TIME_SIMPLE(){return TIME_SIMPLE$1}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS$1}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET$1}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET$1}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE$1}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS$1}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET$1}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET$1}static get DATETIME_SHORT(){return DATETIME_SHORT$1}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS$1}static get DATETIME_MED(){return DATETIME_MED$1}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS$1}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY$1}static get DATETIME_FULL(){return DATETIME_FULL$1}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS$1}static get DATETIME_HUGE(){return DATETIME_HUGE$1}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS$1}};function friendlyDateTime$1(r){if(DateTime$1.isDateTime(r))return r;if(r&&r.valueOf&&isNumber$2(r.valueOf()))return DateTime$1.fromJSDate(r);if(r&&typeof r=="object")return DateTime$1.fromObject(r);throw new InvalidArgumentError$1(`Unknown datetime argument: ${r}, of type ${typeof r}`)}var De$1=r=>{throw TypeError(r)},Ne$1=(r,o,u)=>o.has(r)||De$1("Cannot "+u),M$1=(r,o,u)=>(Ne$1(r,o,"read from private field"),u?u.call(r):o.get(r)),ee$1=(r,o,u)=>o.has(r)?De$1("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,u),X$1=(r,o,u,h)=>(Ne$1(r,o,"write to private field"),h?h.call(r,u):o.set(r,u),u),ne$1=(r,o,u)=>(Ne$1(r,o,"access private method"),u);let LuxonError$2=class extends Error{},ZoneIsAbstractError$2=class extends LuxonError$2{constructor(){super("Zone is an abstract class")}},Zone$2=class{get type(){throw new ZoneIsAbstractError$2}get name(){throw new ZoneIsAbstractError$2}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError$2}offsetName(o,u){throw new ZoneIsAbstractError$2}formatOffset(o,u){throw new ZoneIsAbstractError$2}offset(o){throw new ZoneIsAbstractError$2}equals(o){throw new ZoneIsAbstractError$2}get isValid(){throw new ZoneIsAbstractError$2}};const dtfCache$2=new Map;function makeDTF$2(r){let o=dtfCache$2.get(r);return o===void 0&&(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),dtfCache$2.set(r,o)),o}const typeToPos$2={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset$2(r,o){const u=r.format(o).replace(/\u200E/g,""),h=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(u),[,m,p,_,y,S,$,E]=h;return[_,m,p,y,S,$,E]}function partsOffset$2(r,o){const u=r.formatToParts(o),h=[];for(let m=0;m<u.length;m++){const{type:p,value:_}=u[m],y=typeToPos$2[p];p==="era"?h[y]=_:isUndefined$2(y)||(h[y]=parseInt(_,10))}return h}const ianaZoneCache$2=new Map;let IANAZone$2=class Mr extends Zone$2{static create(o){let u=ianaZoneCache$2.get(o);return u===void 0&&ianaZoneCache$2.set(o,u=new Mr(o)),u}static resetCache(){ianaZoneCache$2.clear(),dtfCache$2.clear()}static isValidSpecifier(o){return this.isValidZone(o)}static isValidZone(o){if(!o)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:o}).format(),!0}catch{return!1}}constructor(o){super(),this.zoneName=o,this.valid=Mr.isValidZone(o)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(o,{format:u,locale:h}){return parseZoneInfo$2(o,u,h,this.name)}formatOffset(o,u){return formatOffset$2(this.offset(o),u)}offset(o){if(!this.valid)return NaN;const u=new Date(o);if(isNaN(u))return NaN;const h=makeDTF$2(this.name);let[m,p,_,y,S,$,E]=h.formatToParts?partsOffset$2(h,u):hackyOffset$2(h,u);y==="BC"&&(m=-Math.abs(m)+1);const A=objToLocalTS$2({year:m,month:p,day:_,hour:S===24?0:S,minute:$,second:E,millisecond:0});let T=+u;const N=T%1e3;return T-=N>=0?N:1e3+N,(A-T)/(60*1e3)}equals(o){return o.type==="iana"&&o.name===this.name}get isValid(){return this.valid}},singleton$3=null,FixedOffsetZone$2=class _r extends Zone$2{static get utcInstance(){return singleton$3===null&&(singleton$3=new _r(0)),singleton$3}static instance(o){return o===0?_r.utcInstance:new _r(o)}static parseSpecifier(o){if(o){const u=o.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(u)return new _r(signedOffset$2(u[1],u[2]))}return null}constructor(o){super(),this.fixed=o}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset$2(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${formatOffset$2(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(o,u){return formatOffset$2(this.fixed,u)}get isUniversal(){return!0}offset(){return this.fixed}equals(o){return o.type==="fixed"&&o.fixed===this.fixed}get isValid(){return!0}};function isUndefined$2(r){return typeof r>"u"}function padStart$2(r,o=2){const u=r<0;let h;return u?h="-"+(""+-r).padStart(o,"0"):h=(""+r).padStart(o,"0"),h}function parseInteger$2(r){if(!(isUndefined$2(r)||r===null||r===""))return parseInt(r,10)}function parseMillis$2(r){if(!(isUndefined$2(r)||r===null||r==="")){const o=parseFloat("0."+r)*1e3;return Math.floor(o)}}function objToLocalTS$2(r){let o=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond);return r.year<100&&r.year>=0&&(o=new Date(o),o.setUTCFullYear(r.year,r.month-1,r.day)),+o}function parseZoneInfo$2(r,o,u,h=null){const m=new Date(r),p={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};h&&(p.timeZone=h);const _={timeZoneName:o,...p},y=new Intl.DateTimeFormat(u,_).formatToParts(m).find(S=>S.type.toLowerCase()==="timezonename");return y?y.value:null}function signedOffset$2(r,o){let u=parseInt(r,10);Number.isNaN(u)&&(u=0);const h=parseInt(o,10)||0,m=u<0||Object.is(u,-0)?-h:h;return u*60+m}function formatOffset$2(r,o){const u=Math.trunc(Math.abs(r/60)),h=Math.trunc(Math.abs(r%60)),m=r>=0?"+":"-";switch(o){case"short":return`${m}${padStart$2(u,2)}:${padStart$2(h,2)}`;case"narrow":return`${m}${u}${h>0?`:${h}`:""}`;case"techie":return`${m}${padStart$2(u,2)}${padStart$2(h,2)}`;default:throw new RangeError(`Value format ${o} is out of range for property format`)}}const ianaRegex$2=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes$2(...r){const o=r.reduce((u,h)=>u+h.source,"");return RegExp(`^${o}$`)}function combineExtractors$2(...r){return o=>r.reduce(([u,h,m],p)=>{const[_,y,S]=p(o,m);return[{...u,..._},y||h,S]},[{},null,1]).slice(0,2)}function simpleParse$2(...r){return(o,u)=>{const h={};let m;for(m=0;m<r.length;m++)h[r[m]]=parseInteger$2(o[u+m]);return[h,null,u+m]}}const offsetRegex$2=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone$2=`(?:${offsetRegex$2.source}?(?:\\[(${ianaRegex$2.source})\\])?)?`,isoTimeBaseRegex$2=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex$2=RegExp(`${isoTimeBaseRegex$2.source}${isoExtendedZone$2}`),isoTimeExtensionRegex$2=RegExp(`(?:T${isoTimeRegex$2.source})?`),isoYmdRegex$2=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex$2=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex$2=/(\d{4})-?(\d{3})/,extractISOWeekData$2=simpleParse$2("weekYear","weekNumber","weekDay"),extractISOOrdinalData$2=simpleParse$2("year","ordinal"),sqlYmdRegex$2=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex$2=RegExp(`${isoTimeBaseRegex$2.source} ?(?:${offsetRegex$2.source}|(${ianaRegex$2.source}))?`),sqlTimeExtensionRegex$2=RegExp(`(?: ${sqlTimeRegex$2.source})?`);function int$2(r,o,u){const h=r[o];return isUndefined$2(h)?u:parseInteger$2(h)}function extractISOYmd$2(r,o){return[{year:int$2(r,o),month:int$2(r,o+1,1),day:int$2(r,o+2,1)},null,o+3]}function extractISOTime$2(r,o){return[{hours:int$2(r,o,0),minutes:int$2(r,o+1,0),seconds:int$2(r,o+2,0),milliseconds:parseMillis$2(r[o+3])},null,o+4]}function extractISOOffset$2(r,o){const u=!r[o]&&!r[o+1],h=signedOffset$2(r[o+1],r[o+2]),m=u?null:FixedOffsetZone$2.instance(h);return[{},m,o+3]}function extractIANAZone$2(r,o){const u=r[o]?IANAZone$2.create(r[o]):null;return[{},u,o+1]}combineRegexes$2(isoYmdRegex$2,isoTimeExtensionRegex$2);combineRegexes$2(isoWeekRegex$2,isoTimeExtensionRegex$2);combineRegexes$2(isoOrdinalRegex$2,isoTimeExtensionRegex$2);combineRegexes$2(isoTimeRegex$2);combineExtractors$2(extractISOYmd$2,extractISOTime$2,extractISOOffset$2,extractIANAZone$2);combineExtractors$2(extractISOWeekData$2,extractISOTime$2,extractISOOffset$2,extractIANAZone$2);combineExtractors$2(extractISOOrdinalData$2,extractISOTime$2,extractISOOffset$2,extractIANAZone$2);combineExtractors$2(extractISOTime$2,extractISOOffset$2,extractIANAZone$2);combineExtractors$2(extractISOTime$2);combineRegexes$2(sqlYmdRegex$2,sqlTimeExtensionRegex$2);combineRegexes$2(sqlTimeRegex$2);combineExtractors$2(extractISOTime$2,extractISOOffset$2,extractIANAZone$2);const countries$1=Object.freeze(new Map([["AD","Andorra"],["AE","United Arab Emirates"],["AF","Afghanistan"],["AG","Antigua and Barbuda"],["AI","Anguilla"],["AL","Albania"],["AM","Armenia"],["AO","Angola"],["AQ","Antarctica"],["AR","Argentina"],["AS","American Samoa"],["AT","Austria"],["AU","Australia"],["AW","Aruba"],["AX","Aland Islands"],["AZ","Azerbaijan"],["BA","Bosnia and Herzegovina"],["BB","Barbados"],["BD","Bangladesh"],["BE","Belgium"],["BF","Burkina Faso"],["BG","Bulgaria"],["BH","Bahrain"],["BI","Burundi"],["BJ","Benin"],["BL","Saint Barthelemy"],["BM","Bermuda"],["BN","Brunei"],["BO","Bolivia"],["BQ","Bonaire, Saint Eustatius and Saba"],["BR","Brazil"],["BS","Bahamas"],["BT","Bhutan"],["BV","Bouvet Island"],["BW","Botswana"],["BY","Belarus"],["BZ","Belize"],["CA","Canada"],["CC","Cocos Islands"],["CD","Democratic Republic of the Congo"],["CF","Central African Republic"],["CG","Republic of the Congo"],["CH","Switzerland"],["CI","Ivory Coast"],["CK","Cook Islands"],["CL","Chile"],["CM","Cameroon"],["CN","China"],["CO","Colombia"],["CR","Costa Rica"],["CU","Cuba"],["CV","Cape Verde"],["CW","Curacao"],["CX","Christmas Island"],["CY","Cyprus"],["CZ","Czech Republic"],["DE","Germany"],["DJ","Djibouti"],["DK","Denmark"],["DM","Dominica"],["DO","Dominican Republic"],["DZ","Algeria"],["EC","Ecuador"],["EE","Estonia"],["EG","Egypt"],["EH","Western Sahara"],["ER","Eritrea"],["ES","Spain"],["ET","Ethiopia"],["FI","Finland"],["FJ","Fiji"],["FK","Falkland Islands"],["FM","Micronesia"],["FO","Faroe Islands"],["FR","France"],["GA","Gabon"],["GB","United Kingdom"],["GD","Grenada"],["GE","Georgia"],["GF","French Guiana"],["GG","Guernsey"],["GH","Ghana"],["GI","Gibraltar"],["GL","Greenland"],["GM","Gambia"],["GN","Guinea"],["GP","Guadeloupe"],["GQ","Equatorial Guinea"],["GR","Greece"],["GS","South Georgia and the South Sandwich Islands"],["GT","Guatemala"],["GU","Guam"],["GW","Guinea-Bissau"],["GY","Guyana"],["HK","Hong Kong"],["HM","Heard Island and McDonald Islands"],["HN","Honduras"],["HR","Croatia"],["HT","Haiti"],["HU","Hungary"],["ID","Indonesia"],["IE","Ireland"],["IL","Israel"],["IM","Isle of Man"],["IN","India"],["IO","British Indian Ocean Territory"],["IQ","Iraq"],["IR","Iran"],["IS","Iceland"],["IT","Italy"],["JE","Jersey"],["JM","Jamaica"],["JO","Jordan"],["JP","Japan"],["KE","Kenya"],["KG","Kyrgyzstan"],["KH","Cambodia"],["KI","Kiribati"],["KM","Comoros"],["KN","Saint Kitts and Nevis"],["KP","North Korea"],["KR","South Korea"],["KW","Kuwait"],["KY","Cayman Islands"],["KZ","Kazakhstan"],["LA","Laos"],["LB","Lebanon"],["LC","Saint Lucia"],["LI","Liechtenstein"],["LK","Sri Lanka"],["LR","Liberia"],["LS","Lesotho"],["LT","Lithuania"],["LU","Luxembourg"],["LV","Latvia"],["LY","Libya"],["MA","Morocco"],["MC","Monaco"],["MD","Moldova"],["ME","Montenegro"],["MF","Saint Martin"],["MG","Madagascar"],["MH","Marshall Islands"],["MK","Macedonia"],["ML","Mali"],["MM","Myanmar"],["MN","Mongolia"],["MO","Macao"],["MP","Northern Mariana Islands"],["MQ","Martinique"],["MR","Mauritania"],["MS","Montserrat"],["MT","Malta"],["MU","Mauritius"],["MV","Maldives"],["MW","Malawi"],["MX","Mexico"],["MY","Malaysia"],["MZ","Mozambique"],["NA","Namibia"],["NC","New Caledonia"],["NE","Niger"],["NF","Norfolk Island"],["NG","Nigeria"],["NI","Nicaragua"],["NL","Netherlands"],["NO","Norway"],["NP","Nepal"],["NR","Nauru"],["NU","Niue"],["NZ","New Zealand"],["OM","Oman"],["PA","Panama"],["PE","Peru"],["PF","French Polynesia"],["PG","Papua New Guinea"],["PH","Philippines"],["PK","Pakistan"],["PL","Poland"],["PM","Saint Pierre and Miquelon"],["PN","Pitcairn"],["PR","Puerto Rico"],["PS","Palestinian Territory"],["PT","Portugal"],["PW","Palau"],["PY","Paraguay"],["QA","Qatar"],["RE","Reunion"],["RO","Romania"],["RS","Serbia"],["RU","Russia"],["RW","Rwanda"],["SA","Saudi Arabia"],["SB","Solomon Islands"],["SC","Seychelles"],["SD","Sudan"],["SE","Sweden"],["SG","Singapore"],["SH","Saint Helena"],["SI","Slovenia"],["SJ","Svalbard and Jan Mayen"],["SK","Slovakia"],["SL","Sierra Leone"],["SM","San Marino"],["SN","Senegal"],["SO","Somalia"],["SR","Suriname"],["SS","South Sudan"],["ST","Sao Tome and Principe"],["SV","El Salvador"],["SX","Sint Maarten"],["SY","Syria"],["SZ","Swaziland"],["TC","Turks and Caicos Islands"],["TD","Chad"],["TF","French Southern Territories"],["TG","Togo"],["TH","Thailand"],["TJ","Tajikistan"],["TK","Tokelau"],["TL","East Timor"],["TM","Turkmenistan"],["TN","Tunisia"],["TO","Tonga"],["TR","Turkey"],["TT","Trinidad and Tobago"],["TV","Tuvalu"],["TW","Taiwan"],["TZ","Tanzania"],["UA","Ukraine"],["UG","Uganda"],["UM","United States Minor Outlying Islands"],["US","United States"],["UY","Uruguay"],["UZ","Uzbekistan"],["VA","Vatican"],["VC","Saint Vincent and the Grenadines"],["VE","Venezuela"],["VG","British Virgin Islands"],["VI","U.S. Virgin Islands"],["VN","Vietnam"],["VU","Vanuatu"],["WF","Wallis and Futuna"],["WS","Samoa"],["XK","Kosovo"],["YE","Yemen"],["YT","Mayotte"],["ZA","South Africa"],["ZM","Zambia"],["ZW","Zimbabwe"]])),timezones$1=Object.freeze(new Map([["AD","Europe/Andorra"],["AE","Asia/Dubai"],["AF","Asia/Kabul"],["AG","America/Antigua"],["AI","America/Anguilla"],["AL","Europe/Tirane"],["AM","Asia/Yerevan"],["AO","Africa/Luanda"],["AQ","Antarctica/Casey"],["AR","America/Argentina/Buenos_Aires"],["AS","Pacific/Pago_Pago"],["AT","Europe/Vienna"],["AU","Australia/Sydney"],["AW","America/Aruba"],["AX","Europe/Mariehamn"],["AZ","Asia/Baku"],["BA","Europe/Sarajevo"],["BB","America/Barbados"],["BD","Asia/Dhaka"],["BE","Europe/Brussels"],["BF","Africa/Ouagadougou"],["BG","Europe/Sofia"],["BH","Asia/Bahrain"],["BI","Africa/Bujumbura"],["BJ","Africa/Porto-Novo"],["BL","America/St_Barthelemy"],["BM","Atlantic/Bermuda"],["BN","Asia/Brunei"],["BO","America/La_Paz"],["BQ","America/Kralendijk"],["BR","America/Sao_Paulo"],["BS","America/Nassau"],["BT","Asia/Thimphu"],["BW","Africa/Gaborone"],["BY","Europe/Minsk"],["BZ","America/Belize"],["CA","America/Toronto"],["CC","Indian/Cocos"],["CD","Africa/Kinshasa"],["CF","Africa/Bangui"],["CG","Africa/Brazzaville"],["CH","Europe/Zurich"],["CI","Africa/Abidjan"],["CK","Pacific/Rarotonga"],["CL","America/Santiago"],["CM","Africa/Douala"],["CN","Asia/Shanghai"],["CO","America/Bogota"],["CR","America/Costa_Rica"],["CU","America/Havana"],["CV","Atlantic/Cape_Verde"],["CW","America/Curacao"],["CX","Indian/Christmas"],["CY","Asia/Nicosia"],["CZ","Europe/Prague"],["DE","Europe/Berlin"],["DJ","Africa/Djibouti"],["DK","Europe/Copenhagen"],["DM","America/Dominica"],["DO","America/Santo_Domingo"],["DZ","Africa/Algiers"],["EC","America/Guayaquil"],["EE","Europe/Tallinn"],["EG","Africa/Cairo"],["EH","Africa/El_Aaiun"],["ER","Africa/Asmara"],["ES","Europe/Madrid"],["ET","Africa/Addis_Ababa"],["FI","Europe/Helsinki"],["FJ","Pacific/Fiji"],["FK","Atlantic/Stanley"],["FM","Pacific/Pohnpei"],["FO","Atlantic/Faroe"],["FR","Europe/Paris"],["GA","Africa/Libreville"],["GB","Europe/London"],["GD","America/Grenada"],["GE","Asia/Tbilisi"],["GF","America/Cayenne"],["GG","Europe/Guernsey"],["GH","Africa/Accra"],["GI","Europe/Gibraltar"],["GL","America/Godthab"],["GM","Africa/Banjul"],["GN","Africa/Conakry"],["GP","America/Guadeloupe"],["GQ","Africa/Malabo"],["GR","Europe/Athens"],["GS","Atlantic/South_Georgia"],["GT","America/Guatemala"],["GU","Pacific/Guam"],["GW","Africa/Bissau"],["GY","America/Guyana"],["HK","Asia/Hong_Kong"],["HN","America/Tegucigalpa"],["HR","Europe/Zagreb"],["HT","America/Port-au-Prince"],["HU","Europe/Budapest"],["ID","Asia/Jakarta"],["IE","Europe/Dublin"],["IL","Asia/Jerusalem"],["IM","Europe/Isle_of_Man"],["IN","Asia/Kolkata"],["IO","Indian/Chagos"],["IQ","Asia/Baghdad"],["IR","Asia/Tehran"],["IS","Atlantic/Reykjavik"],["IT","Europe/Rome"],["JE","Europe/Jersey"],["JM","America/Jamaica"],["JO","Asia/Amman"],["JP","Asia/Tokyo"],["KE","Africa/Nairobi"],["KG","Asia/Bishkek"],["KH","Asia/Phnom_Penh"],["KI","Pacific/Tarawa"],["KM","Indian/Comoro"],["KN","America/St_Kitts"],["KP","Asia/Pyongyang"],["KR","Asia/Seoul"],["KW","Asia/Kuwait"],["KY","America/Cayman"],["KZ","Asia/Almaty"],["LA","Asia/Vientiane"],["LB","Asia/Beirut"],["LC","America/St_Lucia"],["LI","Europe/Vaduz"],["LK","Asia/Colombo"],["LR","Africa/Monrovia"],["LS","Africa/Maseru"],["LT","Europe/Vilnius"],["LU","Europe/Luxembourg"],["LV","Europe/Riga"],["LY","Africa/Tripoli"],["MA","Africa/Casablanca"],["MC","Europe/Monaco"],["MD","Europe/Chisinau"],["ME","Europe/Podgorica"],["MF","America/Marigot"],["MG","Indian/Antananarivo"],["MH","Pacific/Majuro"],["MK","Europe/Skopje"],["ML","Africa/Bamako"],["MM","Asia/Yangon"],["MN","Asia/Ulaanbaatar"],["MO","Asia/Macau"],["MP","Pacific/Saipan"],["MQ","America/Martinique"],["MR","Africa/Nouakchott"],["MS","America/Montserrat"],["MT","Europe/Malta"],["MU","Indian/Mauritius"],["MV","Indian/Maldives"],["MW","Africa/Blantyre"],["MX","America/Mexico_City"],["MY","Asia/Kuala_Lumpur"],["MZ","Africa/Maputo"],["NA","Africa/Windhoek"],["NC","Pacific/Noumea"],["NE","Africa/Niamey"],["NF","Pacific/Norfolk"],["NG","Africa/Lagos"],["NI","America/Managua"],["NL","Europe/Amsterdam"],["NO","Europe/Oslo"],["NP","Asia/Kathmandu"],["NR","Pacific/Nauru"],["NU","Pacific/Niue"],["NZ","Pacific/Auckland"],["OM","Asia/Muscat"],["PA","America/Panama"],["PE","America/Lima"],["PF","Pacific/Tahiti"],["PG","Pacific/Port_Moresby"],["PH","Asia/Manila"],["PK","Asia/Karachi"],["PL","Europe/Warsaw"],["PM","America/Miquelon"],["PN","Pacific/Pitcairn"],["PR","America/Puerto_Rico"],["PS","Asia/Gaza"],["PT","Europe/Lisbon"],["PW","Pacific/Palau"],["PY","America/Asuncion"],["QA","Asia/Qatar"],["RE","Indian/Reunion"],["RO","Europe/Bucharest"],["RS","Europe/Belgrade"],["RU","Europe/Moscow"],["RW","Africa/Kigali"],["SA","Asia/Riyadh"],["SB","Pacific/Guadalcanal"],["SC","Indian/Mahe"],["SD","Africa/Khartoum"],["SE","Europe/Stockholm"],["SG","Asia/Singapore"],["SH","Atlantic/St_Helena"],["SI","Europe/Ljubljana"],["SJ","Arctic/Longyearbyen"],["SK","Europe/Bratislava"],["SL","Africa/Freetown"],["SM","Europe/San_Marino"],["SN","Africa/Dakar"],["SO","Africa/Mogadishu"],["SR","America/Paramaribo"],["SS","Africa/Juba"],["ST","Africa/Sao_Tome"],["SV","America/El_Salvador"],["SX","America/Lower_Princes"],["SY","Asia/Damascus"],["SZ","Africa/Mbabane"],["TC","America/Grand_Turk"],["TD","Africa/Ndjamena"],["TF","Indian/Kerguelen"],["TG","Africa/Lome"],["TH","Asia/Bangkok"],["TJ","Asia/Dushanbe"],["TK","Pacific/Fakaofo"],["TL","Asia/Dili"],["TM","Asia/Ashgabat"],["TN","Africa/Tunis"],["TO","Pacific/Tongatapu"],["TR","Europe/Istanbul"],["TT","America/Port_of_Spain"],["TV","Pacific/Funafuti"],["TW","Asia/Taipei"],["TZ","Africa/Dar_es_Salaam"],["UA","Europe/Kiev"],["UG","Africa/Kampala"],["UM","Pacific/Wake"],["US","America/New_York"],["UY","America/Montevideo"],["UZ","Asia/Tashkent"],["VA","Europe/Vatican"],["VC","America/St_Vincent"],["VE","America/Caracas"],["VG","America/Tortola"],["VI","America/St_Thomas"],["VN","Asia/Ho_Chi_Minh"],["VU","Pacific/Efate"],["WF","Pacific/Wallis"],["WS","Pacific/Apia"],["YE","Asia/Aden"],["YT","Indian/Mayotte"],["ZA","Africa/Johannesburg"],["ZM","Africa/Lusaka"],["ZW","Africa/Harare"]])),isos$1=Object.freeze(new Set([...countries$1.keys()])),areaCodeMap$1={201:"US",202:"US",203:"US",204:"CA",205:"US",206:"US",207:"US",208:"US",209:"US",210:"US",212:"US",213:"US",214:"US",215:"US",216:"US",217:"US",218:"US",219:"US",220:"US",223:"US",224:"US",225:"US",226:"CA",227:"US",228:"US",229:"US",231:"US",234:"US",236:"CA",239:"US",240:"US",242:"BS",246:"BB",248:"US",249:"CA",250:"CA",251:"US",252:"US",253:"US",254:"US",256:"US",260:"US",262:"US",263:"CA",264:"AI",267:"US",268:"AG",269:"US",270:"US",272:"US",276:"US",279:"US",281:"US",283:"US",284:"VG",289:"CA",301:"US",302:"US",303:"US",304:"US",305:"US",306:"CA",307:"US",308:"US",309:"US",310:"US",312:"US",313:"US",314:"US",315:"US",316:"US",317:"US",318:"US",319:"US",320:"US",321:"US",323:"US",325:"US",326:"US",329:"US",330:"US",331:"US",332:"US",334:"US",336:"US",337:"US",339:"US",340:"VI",341:"US",343:"CA",345:"KY",346:"US",347:"US",350:"US",351:"US",352:"US",354:"CA",360:"US",361:"US",364:"US",365:"CA",367:"CA",368:"CA",369:"US",380:"US",382:"CA",385:"US",386:"US",401:"US",402:"US",403:"CA",404:"US",405:"US",406:"US",407:"US",408:"US",409:"US",410:"US",412:"US",413:"US",414:"US",415:"US",416:"CA",417:"US",418:"CA",419:"US",423:"US",424:"US",425:"US",428:"CA",430:"US",431:"CA",432:"US",434:"US",435:"US",437:"CA",438:"CA",440:"US",441:"BM",442:"US",443:"US",445:"US",447:"US",448:"US",450:"CA",458:"US",463:"US",464:"US",468:"CA",469:"US",470:"US",473:"GD",474:"CA",475:"US",478:"US",479:"US",480:"US",484:"US",500:"US",501:"US",502:"US",503:"US",504:"US",505:"US",506:"CA",507:"US",508:"US",509:"US",510:"US",512:"US",513:"US",514:"CA",515:"US",516:"US",517:"US",518:"US",519:"CA",520:"US",521:"US",522:"US",525:"US",526:"US",527:"US",528:"US",529:"US",530:"US",531:"US",533:"US",534:"US",539:"US",540:"US",541:"US",544:"US",548:"CA",551:"US",557:"US",559:"US",561:"US",562:"US",563:"US",564:"US",566:"US",567:"US",570:"US",571:"US",572:"US",573:"US",574:"US",575:"US",577:"US",579:"CA",580:"US",581:"CA",582:"US",584:"CA",585:"US",586:"US",587:"CA",588:"US",600:"CA",601:"US",602:"US",603:"US",604:"CA",605:"US",606:"US",607:"US",608:"US",609:"US",610:"US",612:"US",613:"CA",614:"US",615:"US",616:"US",617:"US",618:"US",619:"US",620:"US",622:"CA",623:"US",626:"US",628:"US",629:"US",630:"US",631:"US",636:"US",639:"CA",640:"US",641:"US",646:"US",647:"CA",649:"TC",650:"US",651:"US",656:"US",657:"US",658:"JM",659:"US",660:"US",661:"US",662:"US",664:"MS",667:"US",669:"US",670:"MP",671:"GU",672:"CA",678:"US",680:"US",681:"US",682:"US",683:"CA",684:"AS",689:"US",701:"US",702:"US",703:"US",704:"US",705:"CA",706:"US",707:"US",708:"US",709:"CA",712:"US",713:"US",714:"US",715:"US",716:"US",717:"US",718:"US",719:"US",720:"US",721:"SX",724:"US",725:"US",726:"US",727:"US",731:"US",732:"US",734:"US",737:"US",740:"US",742:"CA",743:"US",747:"US",753:"CA",754:"US",757:"US",758:"LC",760:"US",762:"US",763:"US",765:"US",767:"DM",769:"US",770:"US",771:"US",772:"US",773:"US",774:"US",775:"US",778:"CA",779:"US",780:"CA",781:"US",782:"CA",784:"VC",785:"US",786:"US",787:"PR",800:"US",801:"US",802:"US",803:"US",804:"US",805:"US",806:"US",807:"CA",808:"US",809:"DO",810:"US",812:"US",813:"US",814:"US",815:"US",816:"US",817:"US",818:"US",819:"CA",820:"US",825:"CA",826:"US",828:"US",829:"DO",830:"US",831:"US",832:"US",833:"US",835:"US",838:"US",839:"US",840:"US",843:"US",844:"US",845:"US",847:"US",848:"US",849:"DO",850:"US",854:"US",855:"US",856:"US",857:"US",858:"US",859:"US",860:"US",862:"US",863:"US",864:"US",865:"US",866:"US",867:"CA",868:"TT",869:"KN",870:"US",872:"US",873:"CA",876:"JM",877:"US",878:"US",888:"US",900:"US",901:"US",902:"CA",903:"US",904:"US",905:"CA",906:"US",907:"US",908:"US",909:"US",910:"US",912:"US",913:"US",914:"US",915:"US",916:"US",917:"US",918:"US",919:"US",920:"US",925:"US",928:"US",929:"US",930:"US",931:"US",934:"US",936:"US",937:"US",938:"US",939:"PR",940:"US",941:"US",943:"US",945:"US",947:"US",948:"US",949:"US",951:"US",952:"US",954:"US",956:"US",959:"US",970:"US",971:"US",972:"US",973:"US",978:"US",979:"US",980:"US",984:"US",985:"US",986:"US",989:"US"},nanpaCountries$1=["US","CA","BS","BB","AI","AG","VG","VI","KY","BM","GD","TC","JM","MS","MP","GU","AS","SX","LC","DM","VC","PR","DO","TT","KN"];var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},allCountries$1=[["Afghanistan (افغانستان)","af","93","+..-..-...-...."],["Åland Islands","ax","358",""],["Albania (Shqipëri)","al","355","+...(...)...-..."],["Algeria (الجزائر)","dz","213","+...-..-...-...."],["American Samoa","as","1684","+.(...)...-...."],["Andorra","ad","376","+...-...-..."],["Angola","ao","244","+...(...)...-..."],["Anguilla","ai","1264","+.(...)...-...."],["Antarctica","aq","672",""],["Antigua and Barbuda","ag","1268","+.(...)...-...."],["Argentina","ar","54","+..(...)...-...."],["Armenia (Հայաստան)","am","374","+...-..-...-..."],["Aruba","aw","297","+...-...-...."],["Australia","au","61","+.. ... ... ..."],["Austria (Österreich)","at","43","+..(...)...-...."],["Azerbaijan (Azərbaycan)","az","994","+...-..-...-..-.."],["Bahamas","bs","1242","+.(...)...-...."],["Bahrain (البحرين)","bh","973","+...-....-...."],["Bangladesh (বাংলাদেশ)","bd","880","+...-..-...-..."],["Barbados","bb","1246","+.(...)...-...."],["Belarus (Беларусь)","by","375","+...(..)...-..-.."],["Belgium (België)","be","32","+.. ... .. .. .."],["Belize","bz","501","+...-...-...."],["Benin (Bénin)","bj","229","+...-..-..-...."],["Bermuda","bm","1441","+.(...)...-...."],["Bhutan (འབྲུག)","bt","975","+...-.-...-..."],["Bolivia","bo","591","+...-.-...-...."],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387","+...-..-...."],["Botswana","bw","267","+...-..-...-..."],["Bouvet Island","bv","47",""],["Brazil (Brasil)","br","55","+..-..-....-...."],["British Indian Ocean Territory","io","246","+...-...-...."],["British Virgin Islands","vg","1284","+.(...)...-...."],["Brunei","bn","673","+...-...-...."],["Bulgaria (България)","bg","359","+...(...)...-..."],["Burkina Faso","bf","226","+...-..-..-...."],["Burundi (Uburundi)","bi","257","+...-..-..-...."],["Cambodia (កម្ពុជា)","kh","855","+...-..-...-..."],["Cameroon (Cameroun)","cm","237","+...-....-...."],["Canada","ca","1","+. (...) ...-....",1,["204","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238","+...(...)..-.."],["Caribbean Netherlands","bq","599","+...-...-....",1],["Cayman Islands","ky","1345","+.(...)...-...."],["Central African Republic (République centrafricaine)","cf","236","+...-..-..-...."],["Chad (Tchad)","td","235","+...-..-..-..-.."],["Chile","cl","56","+..-.-....-...."],["China (中国)","cn","86","+.. ..-........"],["Christmas Island","cx","61",""],["Cocos (Keeling) Islands","cc","61",""],["Colombia","co","57","+..(...)...-...."],["Comoros (جزر القمر)","km","269","+...-..-....."],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243","+...(...)...-..."],["Congo (Republic) (Congo-Brazzaville)","cg","242","+...-..-...-...."],["Cook Islands","ck","682","+...-..-..."],["Costa Rica","cr","506","+... ....-...."],["Côte d’Ivoire","ci","225","+...-..-...-..."],["Croatia (Hrvatska)","hr","385","+...-..-...-..."],["Cuba","cu","53","+..-.-...-...."],["Curaçao","cw","599","+...-...-....",0],["Cyprus (Κύπρος)","cy","357","+...-..-...-..."],["Czech Republic (Česká republika)","cz","420","+...(...)...-..."],["Denmark (Danmark)","dk","45","+.. .. .. .. .."],["Djibouti","dj","253","+...-..-..-..-.."],["Dominica","dm","1767","+.(...)...-...."],["Dominican Republic (República Dominicana)","do","1","+.(...)...-....",2,["809","829","849"]],["Ecuador","ec","593","+...-.-...-...."],["Egypt (مصر)","eg","20","+..(...)...-...."],["El Salvador","sv","503","+... ....-...."],["Equatorial Guinea (Guinea Ecuatorial)","gq","240","+...-..-...-...."],["Eritrea","er","291","+...-.-...-..."],["Estonia (Eesti)","ee","372","+...-...-...."],["Ethiopia","et","251","+...-..-...-...."],["Falkland Islands (Islas Malvinas)","fk","500","+...-....."],["Faroe Islands (Føroyar)","fo","298","+...-...-..."],["Fiji","fj","679","+...-..-....."],["Finland (Suomi)","fi","358","+... .. .... ...."],["France","fr","33","+.. . .. .. .. .."],["French Guiana (Guyane française)","gf","594","+...-.....-...."],["French Polynesia (Polynésie française)","pf","689","+...-..-..-.."],["French Southern and Antarctic Lands","tf","262",""],["Gabon","ga","241","+...-.-..-..-.."],["Gambia","gm","220","+...(...)..-.."],["Georgia (საქართველო)","ge","995","+...(...)...-..."],["Germany (Deutschland)","de","49","+.. ... ......."],["Ghana (Gaana)","gh","233","+...(...)...-..."],["Gibraltar","gi","350","+...-...-....."],["Greece (Ελλάδα)","gr","30","+..(...)...-...."],["Greenland (Kalaallit Nunaat)","gl","299","+...-..-..-.."],["Grenada","gd","1473","+.(...)...-...."],["Guadeloupe","gp","590","",0],["Guam","gu","1671","+.(...)...-...."],["Guatemala","gt","502","+... ....-...."],["Guernsey","gg","44",""],["Guinea (Guinée)","gn","224","+...-..-...-..."],["Guinea-Bissau (Guiné Bissau)","gw","245","+...-.-......"],["Guyana","gy","592","+...-...-...."],["Haiti","ht","509","+... ....-...."],["Heard Island and McDonald Islands","hm","672",""],["Honduras","hn","504","+...-....-...."],["Hong Kong (香港)","hk","852","+... .... ...."],["Hungary (Magyarország)","hu","36","+..(...)...-..."],["Iceland (Ísland)","is","354","+... ... ...."],["India (भारत)","in","91","+.. .....-....."],["Indonesia","id","62","+..-..-...-.."],["Iran (ایران)","ir","98","+..(...)...-...."],["Iraq (العراق)","iq","964","+...(...)...-...."],["Ireland","ie","353","+... .. ......."],["Isle of Man","im","44",""],["Israel (ישראל)","il","972","+...-.-...-...."],["Italy (Italia)","it","39","+.. ... ......",0],["Jamaica","jm","1876","+.(...)...-...."],["Japan (日本)","jp","81","+.. ... .. ...."],["Jersey","je","44",""],["Jordan (الأردن)","jo","962","+...-.-....-...."],["Kazakhstan (Казахстан)","kz","7","+. ... ...-..-..",1],["Kenya","ke","254","+...-...-......"],["Kiribati","ki","686","+...-..-..."],["Kosovo","xk","383",""],["Kuwait (الكويت)","kw","965","+...-....-...."],["Kyrgyzstan (Кыргызстан)","kg","996","+...(...)...-..."],["Laos (ລາວ)","la","856","+...-..-...-..."],["Latvia (Latvija)","lv","371","+...-..-...-..."],["Lebanon (لبنان)","lb","961","+...-.-...-..."],["Lesotho","ls","266","+...-.-...-...."],["Liberia","lr","231","+...-..-...-..."],["Libya (ليبيا)","ly","218","+...-..-...-..."],["Liechtenstein","li","423","+...(...)...-...."],["Lithuania (Lietuva)","lt","370","+...(...)..-..."],["Luxembourg","lu","352","+...(...)...-..."],["Macau (澳門)","mo","853","+...-....-...."],["Macedonia (FYROM) (Македонија)","mk","389","+...-..-...-..."],["Madagascar (Madagasikara)","mg","261","+...-..-..-....."],["Malawi","mw","265","+...-.-....-...."],["Malaysia","my","60","+.. ..-....-...."],["Maldives","mv","960","+...-...-...."],["Mali","ml","223","+...-..-..-...."],["Malta","mt","356","+...-....-...."],["Marshall Islands","mh","692","+...-...-...."],["Martinique","mq","596","+...(...)..-..-.."],["Mauritania (موريتانيا)","mr","222","+...-..-..-...."],["Mauritius (Moris)","mu","230","+...-...-...."],["Mayotte","yt","262",""],["Mexico (México)","mx","52","+..-..-..-...."],["Micronesia","fm","691","+...-...-...."],["Moldova (Republica Moldova)","md","373","+...-....-...."],["Monaco","mc","377","+...-..-...-..."],["Mongolia (Монгол)","mn","976","+...-..-..-...."],["Montenegro (Crna Gora)","me","382","+...-..-...-..."],["Montserrat","ms","1664","+.(...)...-...."],["Morocco (المغرب)","ma","212","+...-..-....-..."],["Mozambique (Moçambique)","mz","258","+...-..-...-..."],["Myanmar (Burma) (မြန်မာ)","mm","95","+..-...-..."],["Namibia (Namibië)","na","264","+...-..-...-...."],["Nauru","nr","674","+...-...-...."],["Nepal (नेपाल)","np","977","+...-..-...-..."],["Netherlands (Nederland)","nl","31","+.. .. ........"],["New Caledonia (Nouvelle-Calédonie)","nc","687","+...-..-...."],["New Zealand","nz","64","+.. ...-...-...."],["Nicaragua","ni","505","+...-....-...."],["Niger (Nijar)","ne","227","+...-..-..-...."],["Nigeria","ng","234","+...-..-...-.."],["Niue","nu","683","+...-...."],["Norfolk Island","nf","672","+...-...-..."],["North Korea (조선 민주주의 인민 공화국)","kp","850","+...-...-..."],["Northern Mariana Islands","mp","1670","+.(...)...-...."],["Norway (Norge)","no","47","+.. ... .. ..."],["Oman (عُمان)","om","968","+...-..-...-..."],["Pakistan (پاکستان)","pk","92","+.. ...-......."],["Palau","pw","680","+...-...-...."],["Palestine (فلسطين)","ps","970","+...-..-...-...."],["Panama (Panamá)","pa","507","+...-...-...."],["Papua New Guinea","pg","675","+...(...)..-..."],["Paraguay","py","595","+...(...)...-..."],["Peru (Perú)","pe","51","+..(...)...-..."],["Philippines","ph","63","+.. ... ...."],["Pitcairn Islands","pn","64",""],["Poland (Polska)","pl","48","+.. ...-...-..."],["Portugal","pt","351","+...-..-...-...."],["Puerto Rico","pr","1","+. (...) ...-....",3,["787","939"]],["Qatar (قطر)","qa","974","+...-....-...."],["Réunion (La Réunion)","re","262","+...-.....-...."],["Romania (România)","ro","40","+..-..-...-...."],["Russia (Россия)","ru","7","+. ... ...-..-..",0],["Rwanda","rw","250","+...(...)...-..."],["Saint Barthélemy (Saint-Barthélemy)","bl","590","",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869","+.(...)...-...."],["Saint Lucia","lc","1758","+.(...)...-...."],["Saint Martin (Saint-Martin (partie française))","mf","590","",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784","+.(...)...-...."],["Samoa","ws","685","+...-..-...."],["San Marino","sm","378","+...-....-......"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239","+...-..-....."],["Saudi Arabia (المملكة العربية السعودية)","sa","966","+...-..-...-...."],["Senegal (Sénégal)","sn","221","+...-..-...-...."],["Serbia (Србија)","rs","381","+...-..-...-...."],["Seychelles","sc","248","+...-.-...-..."],["Sierra Leone","sl","232","+...-..-......"],["Singapore","sg","65","+.. ....-...."],["Sint Maarten","sx","1721","+.(...)...-...."],["Slovakia (Slovensko)","sk","421","+...(...)...-..."],["Slovenia (Slovenija)","si","386","+...-..-...-..."],["Solomon Islands","sb","677","+...-....."],["Somalia (Soomaaliya)","so","252","+...-.-...-..."],["South Africa","za","27","+..-..-...-...."],["South Georgia and the South Sandwich Islands","gs","500",""],["South Korea (대한민국)","kr","82","+..-..-...-...."],["South Sudan (جنوب السودان)","ss","211","+...-..-...-...."],["Spain (España)","es","34","+.. ... ... ..."],["Sri Lanka (ශ්රී ලංකාව)","lk","94","+..-..-...-...."],["Sudan (السودان)","sd","249","+...-..-...-...."],["Suriname","sr","597","+...-...-..."],["Svalbard and Jan Mayen","sj","47",""],["Swaziland","sz","268","+...-..-..-...."],["Sweden (Sverige)","se","46","+.. .. ... .. .."],["Switzerland (Schweiz)","ch","41","+.. .. ... .. .."],["Syria (سوريا)","sy","963","+...-..-....-..."],["Taiwan (台灣)","tw","886","+...-....-...."],["Tajikistan","tj","992","+...-..-...-...."],["Tanzania","tz","255","+...-..-...-...."],["Thailand (ไทย)","th","66","+..-..-...-..."],["Timor-Leste","tl","670","+...-...-...."],["Togo","tg","228","+...-..-...-..."],["Tokelau","tk","690","+...-...."],["Tonga","to","676","+...-....."],["Trinidad and Tobago","tt","1868","+.(...)...-...."],["Tunisia (تونس)","tn","216","+...-..-...-..."],["Turkey (Türkiye)","tr","90","+.. ... ... .. .."],["Turkmenistan","tm","993","+...-.-...-...."],["Turks and Caicos Islands","tc","1649","+.(...)...-...."],["Tuvalu","tv","688","+...-....."],["U.S. Virgin Islands","vi","1340","+.(...)...-...."],["Uganda","ug","256","+...(...)...-..."],["Ukraine (Україна)","ua","380","+...(..)...-..-.."],["United Arab Emirates (الإمارات العربية المتحدة)","ae","971","+...-.-...-...."],["United Kingdom","gb","44","+.. .... ......"],["United States","us","1","+. (...) ...-....",0],["United States Minor Outlying Islands","um","1","",2],["Uruguay","uy","598","+...-.-...-..-.."],["Uzbekistan (Oʻzbekiston)","uz","998","+...-..-...-...."],["Vanuatu","vu","678","+...-....."],["Vatican City (Città del Vaticano)","va","39","+.. .. .... ....",1],["Venezuela","ve","58","+..(...)...-...."],["Vietnam (Việt Nam)","vn","84","+..-..-....-..."],["Wallis and Futuna","wf","681","+...-..-...."],["Western Sahara","eh","212","+...-..-...."],["Yemen (اليمن)","ye","967","+...-.-...-..."],["Zambia","zm","260","+...-..-...-...."],["Zimbabwe","zw","263","+...-.-......"]],allCountryCodes$1={},iso2Lookup$1={},addCountryCode$1=function(r,o,u){o in allCountryCodes$1||(allCountryCodes$1[o]=[]);var h=u||0;allCountryCodes$1[o][h]=r};for(var i$1$1=0;i$1$1<allCountries$1.length;i$1$1++){var c$1=allCountries$1[i$1$1];if(allCountries$1[i$1$1]={name:c$1[0],iso2:c$1[1],dialCode:c$1[2],priority:c$1[4]||0},c$1[3]&&(allCountries$1[i$1$1].format=c$1[3]),c$1[5]){allCountries$1[i$1$1].hasAreaCodes=!0;for(var j$1=0;j$1<c$1[5].length;j$1++){var dialCode$1=c$1[2]+c$1[5][j$1];addCountryCode$1(c$1[1],dialCode$1)}}iso2Lookup$1[allCountries$1[i$1$1].iso2]=i$1$1,addCountryCode$1(c$1[1],c$1[2],c$1[4])}var country_telephone_data$1={allCountries:allCountries$1,iso2Lookup:iso2Lookup$1,allCountryCodes:allCountryCodes$1};function commonjsRequire$1(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var libphonenumber$1={exports:{}};libphonenumber$1.exports;(function(module,exports$1){(function(r){module.exports=r()})(function(){return function(){function r(o,u,h){function m(y,S){if(!u[y]){if(!o[y]){var $=typeof commonjsRequire$1=="function"&&commonjsRequire$1;if(!S&&$)return $(y,!0);if(p)return p(y,!0);var E=new Error("Cannot find module '"+y+"'");throw E.code="MODULE_NOT_FOUND",E}var A=u[y]={exports:{}};o[y][0].call(A.exports,function(T){var N=o[y][1][T];return m(N||T)},A,A.exports,r,o,u,h)}return u[y].exports}for(var p=typeof commonjsRequire$1=="function"&&commonjsRequire$1,_=0;_<h.length;_++)m(h[_]);return m}return r}()({1:[function(require,module,exports$1){(function(global){(function(){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.createTemplateTagFirstArg=function(r){return r.raw=r},$jscomp.createTemplateTagFirstArgWithRaw=function(r,o){return r.raw=o,r},$jscomp.arrayIteratorImpl=function(r){var o=0;return function(){return o<r.length?{done:!1,value:r[o++]}:{done:!0}}},$jscomp.arrayIterator=function(r){return{next:$jscomp.arrayIteratorImpl(r)}},$jscomp.makeIterator=function(r){var o=typeof Symbol<"u"&&Symbol.iterator&&r[Symbol.iterator];return o?o.call(r):$jscomp.arrayIterator(r)},$jscomp.arrayFromIterator=function(r){for(var o,u=[];!(o=r.next()).done;)u.push(o.value);return u},$jscomp.arrayFromIterable=function(r){return r instanceof Array?r:$jscomp.arrayFromIterator($jscomp.makeIterator(r))},$jscomp.checkStringArgs=function(r,o,u){if(r==null)throw new TypeError("The 'this' value for String.prototype."+u+" must not be null or undefined");if(o instanceof RegExp)throw new TypeError("First argument to String.prototype."+u+" must not be a regular expression");return r+""},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(r,o,u){return r==Array.prototype||r==Object.prototype||(r[o]=u.value),r},$jscomp.getGlobal=function(r){r=[typeof globalThis=="object"&&globalThis,r,typeof window=="object"&&window,typeof self=="object"&&self,typeof global=="object"&&global];for(var o=0;o<r.length;++o){var u=r[o];if(u&&u.Math==Math)return u}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE=typeof Symbol=="function"&&typeof Symbol("x")=="symbol",$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$",$jscomp.polyfill=function(r,o,u,h){o&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(r,o,u,h):$jscomp.polyfillUnisolated(r,o,u,h))},$jscomp.polyfillUnisolated=function(r,o,u,h){for(u=$jscomp.global,r=r.split("."),h=0;h<r.length-1;h++){var m=r[h];if(!(m in u))return;u=u[m]}r=r[r.length-1],h=u[r],o=o(h),o!=h&&o!=null&&$jscomp.defineProperty(u,r,{configurable:!0,writable:!0,value:o})},$jscomp.polyfillIsolated=function(r,o,u,h){var m=r.split(".");r=m.length===1,h=m[0],h=!r&&h in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var p=0;p<m.length-1;p++){var _=m[p];if(!(_ in h))return;h=h[_]}m=m[m.length-1],u=$jscomp.IS_SYMBOL_NATIVE&&u==="es6"?h[m]:null,o=o(u),o!=null&&(r?$jscomp.defineProperty($jscomp.polyfills,m,{configurable:!0,writable:!0,value:o}):o!==u&&($jscomp.propertyToPolyfillSymbol[m]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(m):$jscomp.POLYFILL_PREFIX+m,m=$jscomp.propertyToPolyfillSymbol[m],$jscomp.defineProperty(h,m,{configurable:!0,writable:!0,value:o})))},$jscomp.polyfill("String.prototype.endsWith",function(r){return r||function(o,u){var h=$jscomp.checkStringArgs(this,o,"endsWith");o+="",u===void 0&&(u=h.length),u=Math.max(0,Math.min(u|0,h.length));for(var m=o.length;0<m&&0<u;)if(h[--u]!=o[--m])return!1;return 0>=m}},"es6","es3"),$jscomp.findInternal=function(r,o,u){r instanceof String&&(r=String(r));for(var h=r.length,m=0;m<h;m++){var p=r[m];if(o.call(u,p,m,r))return{i:m,v:p}}return{i:-1,v:void 0}},$jscomp.polyfill("Array.prototype.find",function(r){return r||function(o,u){return $jscomp.findInternal(this,o,u).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(r){return r||function(o,u){var h=$jscomp.checkStringArgs(this,o,"startsWith");o+="";var m=h.length,p=o.length;u=Math.max(0,Math.min(u|0,h.length));for(var _=0;_<p&&u<m;)if(h[u++]!=o[_++])return!1;return _>=p}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(r){return r||function(o){var u=$jscomp.checkStringArgs(this,null,"repeat");if(0>o||1342177279<o)throw new RangeError("Invalid count value");o|=0;for(var h="";o;)o&1&&(h+=u),(o>>>=1)&&(u+=u);return h}},"es6","es3"),$jscomp.initSymbol=function(){},$jscomp.polyfill("Symbol",function(r){if(r)return r;var o=function(m,p){this.$jscomp$symbol$id_=m,$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:p})};o.prototype.toString=function(){return this.$jscomp$symbol$id_};var u=0,h=function(m){if(this instanceof h)throw new TypeError("Symbol is not a constructor");return new o("jscomp_symbol_"+(m||"")+"_"+u++,m)};return h},"es6","es3"),$jscomp.polyfill("Symbol.iterator",function(r){if(r)return r;r=Symbol("Symbol.iterator");for(var o="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),u=0;u<o.length;u++){var h=$jscomp.global[o[u]];typeof h=="function"&&typeof h.prototype[r]!="function"&&$jscomp.defineProperty(h.prototype,r,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return r},"es6","es3"),$jscomp.iteratorPrototype=function(r){return r={next:r},r[Symbol.iterator]=function(){return this},r},$jscomp.iteratorFromArray=function(r,o){r instanceof String&&(r+="");var u=0,h=!1,m={next:function(){if(!h&&u<r.length){var p=u++;return{value:o(p,r[p]),done:!1}}return h=!0,{done:!0,value:void 0}}};return m[Symbol.iterator]=function(){return m},m},$jscomp.polyfill("Array.prototype.keys",function(r){return r||function(){return $jscomp.iteratorFromArray(this,function(o){return o})}},"es6","es3"),$jscomp.polyfill("Object.is",function(r){return r||function(o,u){return o===u?o!==0||1/o===1/u:o!==o&&u!==u}},"es6","es3"),$jscomp.polyfill("Array.prototype.includes",function(r){return r||function(o,u){var h=this;h instanceof String&&(h=String(h));var m=h.length;for(u=u||0,0>u&&(u=Math.max(u+m,0));u<m;u++){var p=h[u];if(p===o||Object.is(p,o))return!0}return!1}},"es7","es3"),$jscomp.polyfill("String.prototype.includes",function(r){return r||function(o,u){return $jscomp.checkStringArgs(this,o,"includes").indexOf(o,u||0)!==-1}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.exportPath_=function(r,o,u,h){r=r.split("."),h=h||goog.global,r[0]in h||typeof h.execScript>"u"||h.execScript("var "+r[0]);for(var m;r.length&&(m=r.shift());)if(r.length||o===void 0)h=h[m]&&h[m]!==Object.prototype[m]?h[m]:h[m]={};else if(!u&&goog.isObject(o)&&goog.isObject(h[m]))for(var p in o)o.hasOwnProperty(p)&&(h[m][p]=o[p]);else h[m]=o},goog.define=function(r,o){if(!COMPILED){var u=goog.global.CLOSURE_UNCOMPILED_DEFINES,h=goog.global.CLOSURE_DEFINES;u&&u.nodeType===void 0&&Object.prototype.hasOwnProperty.call(u,r)?o=u[r]:h&&h.nodeType===void 0&&Object.prototype.hasOwnProperty.call(h,r)&&(o=h[r])}return o},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(r){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(r))throw Error('Namespace "'+r+'" already declared.');goog.constructNamespace_(r)},goog.constructNamespace_=function(r,o,u){if(!COMPILED){delete goog.implicitNamespaces_[r];for(var h=r;(h=h.substring(0,h.lastIndexOf(".")))&&!goog.getObjectByName(h);)goog.implicitNamespaces_[h]=!0}goog.exportPath_(r,o,u)},goog.getScriptNonce=function(r){return r&&r!=goog.global?goog.getScriptNonce_(r.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(r){return(r=r.querySelector&&r.querySelector("script[nonce]"))&&(r=r.nonce||r.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(r)?r:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(r){if(typeof r!="string"||!r||r.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+r+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=r,!COMPILED){if(goog.isProvided_(r))throw Error('Namespace "'+r+'" already declared.');delete goog.implicitNamespaces_[r]}},goog.module.get=function(r){return goog.module.getInternal_(r)},goog.module.getInternal_=function(r){if(!COMPILED){if(r in goog.loadedModules_)return goog.loadedModules_[r].exports;if(!goog.implicitNamespaces_[r])return r=goog.getObjectByName(r),r??null}return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var r=goog.global.$jscomp;return r?typeof r.getCurrentModulePath!="function"?!1:!!r.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(r){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(r in goog.loadedModules_)throw Error('Module with namespace "'+r+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=r;else{var o=goog.global.$jscomp;if(!o||typeof o.getCurrentModulePath!="function")throw Error('Module with namespace "'+r+'" has been loaded incorrectly.');o=o.require(o.getCurrentModulePath()),goog.loadedModules_[r]={exports:o,type:goog.ModuleType.ES6,moduleId:r}}},goog.setTestOnly=function(r){if(goog.DISALLOW_TEST_ONLY_CODE)throw r=r||"",Error("Importing test-only code into non-debug environment"+(r?": "+r:"."))},goog.forwardDeclare=function(r){},COMPILED||(goog.isProvided_=function(r){return r in goog.loadedModules_||!goog.implicitNamespaces_[r]&&goog.getObjectByName(r)!=null},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(r,o){r=r.split("."),o=o||goog.global;for(var u=0;u<r.length;u++)if(o=o[r[u]],o==null)return null;return o},goog.addDependency=function(r,o,u,h){!COMPILED&&goog.DEPENDENCIES_ENABLED&&goog.debugLoader_.addDependency(r,o,u,h)},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(r){goog.global.console&&goog.global.console.error(r)},goog.require=function(r){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.debugLoader_.requested(r),goog.isProvided_(r)){if(goog.isInModuleLoader_())return goog.module.getInternal_(r)}else if(goog.ENABLE_DEBUG_LOADER){var o=goog.moduleLoaderState_;goog.moduleLoaderState_=null;try{goog.debugLoader_.load_(r)}finally{goog.moduleLoaderState_=o}}return null}},goog.requireType=function(r){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(r){r.instance_=void 0,r.getInstance=function(){return r.instance_?r.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=r),r.instance_=new r)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(goog.hasBadLetScoping==null){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(r){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(r){return"(function(){"+r+`
|
|
2
2
|
;})();
|
|
3
3
|
`},goog.loadModule=function(r){var o=goog.moduleLoaderState_;try{goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG};var u={},h=u;if(typeof r=="function")h=r.call(void 0,h);else if(typeof r=="string")goog.useSafari10Workaround()&&(r=goog.workaroundSafari10EvalBug(r)),h=goog.loadModuleFromSource_.call(void 0,h,r);else throw Error("Invalid module definition");var m=goog.moduleLoaderState_.moduleName;if(typeof m=="string"&&m)goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(m,h,u!==h):goog.SEAL_MODULE_EXPORTS&&Object.seal&&typeof h=="object"&&h!=null&&Object.seal(h),goog.loadedModules_[m]={exports:h,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName};else throw Error('Invalid module name "'+m+'"')}finally{goog.moduleLoaderState_=o}},goog.loadModuleFromSource_=function(a,b){return eval(b),a},goog.normalizePath_=function(r){r=r.split("/");for(var o=0;o<r.length;)r[o]=="."?r.splice(o,1):o&&r[o]==".."&&r[o-1]&&r[o-1]!=".."?r.splice(--o,2):o++;return r.join("/")},goog.loadFileSync_=function(r){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(r);try{var o=new goog.global.XMLHttpRequest;return o.open("get",r,!1),o.send(),o.status==0||o.status==200?o.responseText:null}catch{return null}},goog.transpile_=function(r,o,u){var h=goog.global.$jscomp;h||(goog.global.$jscomp=h={});var m=h.transpile;if(!m){var p=goog.basePath+goog.TRANSPILER,_=goog.loadFileSync_(p);if(_){if((function(){(0,eval)(_+`
|
|
4
4
|
//# sourceURL=`+p)}).call(goog.global),goog.global.$gwtExport&&goog.global.$gwtExport.$jscomp&&!goog.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(goog.global.$gwtExport));goog.global.$jscomp.transpile=goog.global.$gwtExport.$jscomp.transpile,h=goog.global.$jscomp,m=h.transpile}}return m||(m=h.transpile=function(y,S){return goog.logToConsole_(S+" requires transpilation but no transpiler was found."),y}),m(r,o,u)},goog.typeOf=function(r){var o=typeof r;return o!="object"?o:r?Array.isArray(r)?"array":o:"null"},goog.isArrayLike=function(r){var o=goog.typeOf(r);return o=="array"||o=="object"&&typeof r.length=="number"},goog.isDateLike=function(r){return goog.isObject(r)&&typeof r.getFullYear=="function"},goog.isObject=function(r){var o=typeof r;return o=="object"&&r!=null||o=="function"},goog.getUid=function(r){return Object.prototype.hasOwnProperty.call(r,goog.UID_PROPERTY_)&&r[goog.UID_PROPERTY_]||(r[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(r){return!!r[goog.UID_PROPERTY_]},goog.removeUid=function(r){r!==null&&"removeAttribute"in r&&r.removeAttribute(goog.UID_PROPERTY_);try{delete r[goog.UID_PROPERTY_]}catch{}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.cloneObject=function(r){var o=goog.typeOf(r);if(o=="object"||o=="array"){if(typeof r.clone=="function")return r.clone();o=o=="array"?[]:{};for(var u in r)o[u]=goog.cloneObject(r[u]);return o}return r},goog.bindNative_=function(r,o,u){return r.call.apply(r.bind,arguments)},goog.bindJs_=function(r,o,u){if(!r)throw Error();if(2<arguments.length){var h=Array.prototype.slice.call(arguments,2);return function(){var m=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(m,h),r.apply(o,m)}}return function(){return r.apply(o,arguments)}},goog.bind=function(r,o,u){return Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(r,o){var u=Array.prototype.slice.call(arguments,1);return function(){var h=u.slice();return h.push.apply(h,arguments),r.apply(this,h)}},goog.mixin=function(r,o){for(var u in o)r[u]=o[u]},goog.now=function(){return Date.now()},goog.globalEval=function(r){(0,eval)(r)},goog.getCssName=function(r,o){if(String(r).charAt(0)==".")throw Error('className passed in goog.getCssName must not start with ".". You passed: '+r);var u=function(m){return goog.cssNameMapping_[m]||m},h=function(m){m=m.split("-");for(var p=[],_=0;_<m.length;_++)p.push(u(m[_]));return p.join("-")};return h=goog.cssNameMapping_?goog.cssNameMappingStyle_=="BY_WHOLE"?u:h:function(m){return m},r=o?r+"-"+h(o):h(r),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(r):r},goog.setCssNameMapping=function(r,o){goog.cssNameMapping_=r,goog.cssNameMappingStyle_=o},!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING),goog.getMsg=function(r,o,u){return u&&u.html&&(r=r.replace(/</g,"<")),u&&u.unescapeHtmlEntities&&(r=r.replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,'"').replace(/&/g,"&")),o&&(r=r.replace(/\{\$([^}]+)}/g,function(h,m){return o!=null&&m in o?o[m]:h})),r},goog.getMsgWithFallback=function(r,o){return r},goog.exportSymbol=function(r,o,u){goog.exportPath_(r,o,!0,u)},goog.exportProperty=function(r,o,u){r[o]=u},goog.inherits=function(r,o){function u(){}u.prototype=o.prototype,r.superClass_=o.prototype,r.prototype=new u,r.prototype.constructor=r,r.base=function(h,m,p){for(var _=Array(arguments.length-2),y=2;y<arguments.length;y++)_[y-2]=arguments[y];return o.prototype[m].apply(h,_)}},goog.scope=function(r){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");r.call(goog.global)},COMPILED||(goog.global.COMPILED=COMPILED),goog.defineClass=function(r,o){var u=o.constructor,h=o.statics;return u&&u!=Object.prototype.constructor||(u=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),u=goog.defineClass.createSealingConstructor_(u,r),r&&goog.inherits(u,r),delete o.constructor,delete o.statics,goog.defineClass.applyProperties_(u.prototype,o),h!=null&&(h instanceof Function?h(u):goog.defineClass.applyProperties_(u,h)),u},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(r,o){return goog.defineClass.SEAL_CLASS_INSTANCES?function(){var u=r.apply(this,arguments)||this;return u[goog.UID_PROPERTY_]=u[goog.UID_PROPERTY_],u}:r},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(r,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(r[u]=o[u]);for(var h=0;h<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;h++)u=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[h],Object.prototype.hasOwnProperty.call(o,u)&&(r[u]=o[u])},!COMPILED&&goog.DEPENDENCIES_ENABLED&&(goog.inHtmlDocument_=function(){var r=goog.global.document;return r!=null&&"write"in r},goog.isDocumentLoading_=function(){var r=goog.global.document;return r.attachEvent?r.readyState!="complete":r.readyState=="loading"},goog.findBasePath_=function(){if(goog.global.CLOSURE_BASE_PATH!=null&&typeof goog.global.CLOSURE_BASE_PATH=="string")goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_()){var r=goog.global.document,o=r.currentScript;for(r=o?[o]:r.getElementsByTagName("SCRIPT"),o=r.length-1;0<=o;--o){var u=r[o].src,h=u.lastIndexOf("?");if(h=h==-1?u.length:h,u.substr(h-7,7)=="base.js"){goog.basePath=u.substr(0,h-7);break}}}},goog.findBasePath_(),goog.Transpiler=function(){this.requiresTranspilation_=null,this.transpilationTarget_=goog.TRANSPILE_TO_LANGUAGE},goog.Transpiler.prototype.createRequiresTranspilation_=function(){function a(r,o){e?d[r]=!0:o()?(c=r,d[r]=!1):e=d[r]=!0}function b(g){try{return!!eval(g)}catch(r){return!1}}var c="es3",d={es3:!1},e=!1,f=goog.global.navigator&&goog.global.navigator.userAgent?goog.global.navigator.userAgent:"";return a("es5",function(){return b("[1,].length==1")}),a("es6",function(){return f.match(/Edge\/(\d+)(\.\d)*/i)?!1:b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')}),a("es7",function(){return b("2 ** 2 == 4")}),a("es8",function(){return b("async () => 1, true")}),a("es9",function(){return b("({...rest} = {}), true")}),a("es_next",function(){return!1}),{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(r,o){if(goog.TRANSPILE=="always")return!0;if(goog.TRANSPILE=="never")return!1;if(!this.requiresTranspilation_){var u=this.createRequiresTranspilation_();this.requiresTranspilation_=u.map,this.transpilationTarget_=this.transpilationTarget_||u.target}if(r in this.requiresTranspilation_)return this.requiresTranspilation_[r]?!0:!(!goog.inHtmlDocument_()||o!="es6"||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+r)},goog.Transpiler.prototype.transpile=function(r,o){return goog.transpile_(r,o,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(r){return r.replace(/<\/(SCRIPT)/ig,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(r,o){function u(){h&&(goog.global.setTimeout(h,0),h=null)}var h=o;if(r.length){o=[];for(var m=0;m<r.length;m++){var p=this.getPathFromDeps_(r[m]);if(!p)throw Error("Unregonized namespace: "+r[m]);o.push(this.dependencies_[p])}p=goog.require;var _=0;for(m=0;m<r.length;m++)p(r[m]),o[m].onLoad(function(){++_==r.length&&u()})}else u()},goog.DebugLoader_.prototype.loadClosureDeps=function(){this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath+"deps.js"),"deps.js",[],[],{},!1)),this.loadDeps_()},goog.DebugLoader_.prototype.requested=function(r,o){(r=this.getPathFromDeps_(r))&&(o||this.areDepsLoaded_(this.dependencies_[r].requires))&&(o=this.deferredCallbacks_[r])&&(delete this.deferredCallbacks_[r],o())},goog.DebugLoader_.prototype.setDependencyFactory=function(r){this.factory_=r},goog.DebugLoader_.prototype.load_=function(r){if(this.getPathFromDeps_(r)){var o=this,u=[],h=function(m){var p=o.getPathFromDeps_(m);if(!p)throw Error("Bad dependency path or symbol: "+m);if(!o.written_[p]){for(o.written_[p]=!0,m=o.dependencies_[p],p=0;p<m.requires.length;p++)goog.isProvided_(m.requires[p])||h(m.requires[p]);u.push(m)}};h(r),r=!!this.depsToLoad_.length,this.depsToLoad_=this.depsToLoad_.concat(u),this.paused_||r||this.loadDeps_()}else throw r="goog.require could not find: "+r,goog.logToConsole_(r),Error(r)},goog.DebugLoader_.prototype.loadDeps_=function(){for(var r=this,o=this.paused_;this.depsToLoad_.length&&!o;)(function(){var u=!1,h=r.depsToLoad_.shift(),m=!1;r.loading_(h);var p={pause:function(){if(u)throw Error("Cannot call pause after the call to load.");o=!0},resume:function(){u?r.resume_():o=!1},loaded:function(){if(m)throw Error("Double call to loaded.");m=!0,r.loaded_(h)},pending:function(){for(var _=[],y=0;y<r.loadingDeps_.length;y++)_.push(r.loadingDeps_[y]);return _},setModuleState:function(_){goog.moduleLoaderState_={type:_,moduleName:"",declareLegacyNamespace:!1}},registerEs6ModuleExports:function(_,y,S){S&&(goog.loadedModules_[S]={exports:y,type:goog.ModuleType.ES6,moduleId:S||""})},registerGoogModuleExports:function(_,y){goog.loadedModules_[_]={exports:y,type:goog.ModuleType.GOOG,moduleId:_}},clearModuleState:function(){goog.moduleLoaderState_=null},defer:function(_){if(u)throw Error("Cannot register with defer after the call to load.");r.defer_(h,_)},areDepsLoaded:function(){return r.areDepsLoaded_(h.requires)}};try{h.load(p)}finally{u=!0}})();o&&this.pause_()},goog.DebugLoader_.prototype.pause_=function(){this.paused_=!0},goog.DebugLoader_.prototype.resume_=function(){this.paused_&&(this.paused_=!1,this.loadDeps_())},goog.DebugLoader_.prototype.loading_=function(r){this.loadingDeps_.push(r)},goog.DebugLoader_.prototype.loaded_=function(r){for(var o=0;o<this.loadingDeps_.length;o++)if(this.loadingDeps_[o]==r){this.loadingDeps_.splice(o,1);break}for(o=0;o<this.deferredQueue_.length;o++)if(this.deferredQueue_[o]==r.path){this.deferredQueue_.splice(o,1);break}if(this.loadingDeps_.length==this.deferredQueue_.length&&!this.depsToLoad_.length)for(;this.deferredQueue_.length;)this.requested(this.deferredQueue_.shift(),!0);r.loaded()},goog.DebugLoader_.prototype.areDepsLoaded_=function(r){for(var o=0;o<r.length;o++){var u=this.getPathFromDeps_(r[o]);if(!u||!(u in this.deferredCallbacks_||goog.isProvided_(r[o])))return!1}return!0},goog.DebugLoader_.prototype.getPathFromDeps_=function(r){return r in this.idToPath_?this.idToPath_[r]:r in this.dependencies_?r:null},goog.DebugLoader_.prototype.defer_=function(r,o){this.deferredCallbacks_[r.path]=o,this.deferredQueue_.push(r.path)},goog.LoadController=function(){},goog.LoadController.prototype.pause=function(){},goog.LoadController.prototype.resume=function(){},goog.LoadController.prototype.loaded=function(){},goog.LoadController.prototype.pending=function(){},goog.LoadController.prototype.registerEs6ModuleExports=function(r,o,u){},goog.LoadController.prototype.setModuleState=function(r){},goog.LoadController.prototype.clearModuleState=function(){},goog.LoadController.prototype.defer=function(r){},goog.LoadController.prototype.areDepsLoaded=function(){},goog.Dependency=function(r,o,u,h,m){this.path=r,this.relativePath=o,this.provides=u,this.requires=h,this.loadFlags=m,this.loaded_=!1,this.loadCallbacks_=[]},goog.Dependency.prototype.getPathName=function(){var r=this.path,o=r.indexOf("://");return 0<=o&&(r=r.substring(o+3),o=r.indexOf("/"),0<=o&&(r=r.substring(o+1))),r},goog.Dependency.prototype.onLoad=function(r){this.loaded_?r():this.loadCallbacks_.push(r)},goog.Dependency.prototype.loaded=function(){this.loaded_=!0;var r=this.loadCallbacks_;this.loadCallbacks_=[];for(var o=0;o<r.length;o++)r[o]()},goog.Dependency.defer_=!1,goog.Dependency.callbackMap_={},goog.Dependency.registerCallback_=function(r){var o=Math.random().toString(32);return goog.Dependency.callbackMap_[o]=r,o},goog.Dependency.unregisterCallback_=function(r){delete goog.Dependency.callbackMap_[r]},goog.Dependency.callback_=function(r,o){if(r in goog.Dependency.callbackMap_){for(var u=goog.Dependency.callbackMap_[r],h=[],m=1;m<arguments.length;m++)h.push(arguments[m]);u.apply(void 0,h)}else throw Error("Callback key "+r+" does not exist (was base.js loaded more than once?).")},goog.Dependency.prototype.load=function(r){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?r.loaded():r.pause();else if(goog.inHtmlDocument_()){var o=goog.global.document;if(o.readyState=="complete"&&!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING){if(/\bdeps.js$/.test(this.path)){r.loaded();return}throw Error('Cannot write "'+this.path+'" after document load')}var u=goog.getScriptNonce();if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&goog.isDocumentLoading_()){var h=function(y){y.readyState&&y.readyState!="complete"?y.onload=h:(goog.Dependency.unregisterCallback_(m),r.loaded())},m=goog.Dependency.registerCallback_(h);u=u?' nonce="'+u+'"':"";var p='<script src="'+this.path+'"'+u+(goog.Dependency.defer_?" defer":"")+' id="script-'+m+'"><\/script>';p+="<script"+u+">",p=goog.Dependency.defer_?p+("document.getElementById('script-"+m+`').onload = function() {
|
|
@@ -203,5 +203,5 @@ https://github.com/browserify/crypto-browserify`)},r.constants={DH_CHECK_P_NOT_S
|
|
|
203
203
|
international: ${this.international},
|
|
204
204
|
e164: ${this.e164},
|
|
205
205
|
timezone: ${this.timezone},
|
|
206
|
-
}`}serialize(){let o=buffer.Buffer.from(JSON.stringify({phone:this.raw,country:this.country})).toString("base64");return buffer.Buffer.from(JSON.stringify({phone:this.raw,country:this.country,hash:o})).toString("base64")}static deserialize(o){let u;try{u=buffer.Buffer.from(o,"base64").toString("utf-8")}catch{throw Error("Not a valid serialized phone object")}let h;try{h=JSON.parse(u)}catch{throw Error("Not a valid serialized phone object")}if(!h.phone||!h.country||!h.hash||buffer.Buffer.from(JSON.stringify({phone:h.phone,country:h.country})).toString("base64")!==h.hash)throw Error("Not a valid serialized phone object");return new Vr(h.phone,h.country==="XX"?void 0:h.country)}};z=new WeakMap,H=new WeakMap,Z=new WeakMap,V=new WeakMap,se=new WeakMap,le=new WeakMap,W=new WeakSet,Le=function(r){let o=country_telephone_data.allCountries.map(u=>({iso:u.iso2.toUpperCase(),prefix:String(u.dialCode).trim().replace(/\D/g,"")})).filter(u=>r.substring(0,u.prefix.length)===u.prefix).sort(ne(this,W,be)).filter(u=>{let h=this.constructor;return new h(r,u.iso).valid});return o.length>=1?o[0].iso:ne(this,W,Fe).call(this,r)},Fe=function(r){let o=country_telephone_data.allCountries.map(u=>({iso:u.iso2.toUpperCase(),prefix:String(u.dialCode).trim().replace(/\D/g,"")})).sort(ne(this,W,be)).filter(u=>{let h=this.constructor;return new h(r,u.iso).valid});return o.length>=1?o[0].iso:"XX"},be=function(r,o){if(r.prefix.length===o.prefix.length){let u=Number.parseInt(r.prefix),h=Number.parseInt(o.prefix);return u===h?r.iso.localeCompare(o.iso):u>h?1:-1}return r.prefix.length>o.prefix.length?1:-1},we=function(r){if(!r)return"INVALID";let o=M(this,Z).getNumberType(r),u=Object.values(libphonenumberExports.PhoneNumberType),h=Object.keys(libphonenumberExports.PhoneNumberType),m=u.indexOf(o);return h[m]||"INVALID"},ve=function(){let r=this.raw.substring(1,4);return areaCodeMap[r]&&typeof areaCodeMap[r]=="string"?areaCodeMap[r]:"XX"};let Phone=Te;const messages={"phone.base":"{{#label}} must be a phone number","phone.invalid":"{{#label}} must be a valid phone number for {{#country}}","phone.fixedLine":"{{#label}} must be a fixed line number for {{#country}}","phone.mobile":"{{#label}} must be a mobile number for {{#country}}","phone.strictFixedLine":"{{#label}} is not a fixed line number for {{#country}}","phone.strictMobile":"{{#label}} is not a mobile number for {{#country}}","phone.fixedLineOrMobile":"{{#label}} must be a fixed line or mobile number for {{#country}}","phone.tollFree":"{{#label}} must be a toll-free number for {{#country}}","phone.premiumRate":"{{#label}} must be a premium rate number for {{#country}}","phone.sharedCost":"{{#label}} must be a shared cost number for {{#country}}","phone.voip":"{{#label}} must be a VoIP number for {{#country}}","phone.personalNumber":"{{#label}} must be a personal number for {{#country}}","phone.pager":"{{#label}} must be a pager number for {{#country}}","phone.uan":"{{#label}} must be a UAN number for {{#country}}","phone.voicemail":"{{#label}} must be a voicemail number for {{#country}}","phone.unknown":"{{#label}} must be an unknown type number for {{#country}}","phone.types":"{{#label}} must be one of the specified phone types for {{#country}}"},coerceCountry=r=>{if(typeof r!="string")return null;if(isos.has(r.toUpperCase()))return r.toUpperCase();let o=null;return countries.forEach((u,h)=>{u.toLowerCase()===r.toLowerCase()&&(o=h)}),o},getPhoneObject=(r,o)=>{let u=coerceCountry(o);try{return new Phone(r,u||void 0)}catch{return}},evaluate=(r,o,u)=>{switch(o){case"fixedLine":return["FIXED_LINE","FIXED_LINE_OR_MOBILE"].includes(r.type);case"mobile":return["MOBILE","FIXED_LINE_OR_MOBILE"].includes(r.type);case"fixedLineOrMobile":return["FIXED_LINE","MOBILE","FIXED_LINE_OR_MOBILE"].includes(r.type);case"strictFixedLine":return r.type==="FIXED_LINE";case"strictMobile":return r.type==="MOBILE";case"tollFree":return r.type==="TOLL_FREE";case"premiumRate":return r.type==="PREMIUM_RATE";case"sharedCost":return r.type==="SHARED_COST";case"voip":return r.type==="VOIP";case"personalNumber":return r.type==="PERSONAL_NUMBER";case"pager":return r.type==="PAGER";case"uan":return r.type==="UAN";case"voicemail":return r.type==="VOICEMAIL";case"unknown":return r.type==="UNKNOWN";case"types":return u[0].includes(r.type);default:return!1}},phone=function(r){let o=(h,m)=>typeof h=="string"||typeof h=="number"?(h=h.toString().trim(),{value:h}):{value:h,errors:[m.error("phone.base",{value:String(h)})]},u=h=>{if("$i18n"in r){let m=r;return countries.has(h)&&(m.$i18n(`country.${h}`)||countries.get(h))||h}return countries.get(h)||h};return{type:"phone",base:r.any(),validate(h,{error:m,schema:p,prefs:_,state:y}){let S=h==null,$=p._flags.presence==="required";if(S&&!$)return{value:null};if(S&&$)return{value:h,errors:[m("any.required",{label:p._flags.label})]};let E=p.$_getFlag("country"),A=r.isRef(E)?E.resolve(h,y,_):E,T=getPhoneObject(h,A);if(T){if(!T.valid)return A?{value:h,errors:[m("phone.invalid",{value:String(h),country:u(A)})]}:{value:h,errors:[m("phone.base",{value:String(h)})]}}else return{value:h,errors:[m("phone.base",{value:String(h)})]};let N=p.$_getFlag("as")||"e164",O;switch(N){case"international":O=T.international;break;case"national":O=T.national;break;case"raw":O=T.raw;break;case"timezone":O=T.timezone;break;case"type":O=T.type;break;case"country":O=T.country;break;default:O=T.e164}return{value:O}},flags:{country:{default:null,setter:"country"},as:{default:"e164",setter:"format"}},args(...h){let[m,p]=h;return m.country(p)},coerce:{from:["string","number"],method:o},rules:{check:{method:!1,validate(h,m,p,{name:_,operator:y}){let{state:S,prefs:$}=m,E=m.schema.$_getFlag("country");r.isRef(E)&&(E=E.resolve(h,S,$));let A=getPhoneObject(h,E);if(A){if(!A.valid)return E?m.error("phone.invalid",{value:String(h),country:u(E)}):{value:h,errors:[m.error("phone.base",{value:String(h)})]}}else return m.error("phone.base",{value:String(h)});return evaluate(A,y,Object.values(p||{}))?h:m.error("phone."+_,{value:h.toString(),country:u(E),...p})}},country:{method(h){return this.$_setFlag("country",h)},args:[{name:"country",ref:!0,assert:h=>typeof h=="string"||r.isRef(h),message:"must be a string or a reference"}]},format:{method(h){return this.$_setFlag("as",h)},args:[{name:"as",assert:h=>["e164","international","national","raw","timezone","type","country"].includes(h),message:"must be one of e164, international, national, raw, timezone, type, or country"}]},fixedLine:{method(){return this.$_addRule({name:"fixedLine",method:"check",operator:"fixedLine"})}},mobile:{method(){return this.$_addRule({name:"mobile",method:"check",operator:"mobile"})}},strictFixedLine:{method(){return this.$_addRule({name:"strictFixedLine",method:"check",operator:"strictFixedLine"})}},strictMobile:{method(){return this.$_addRule({name:"strictMobile",method:"check",operator:"strictMobile"})}},fixedLineOrMobile:{method(){return this.$_addRule({name:"fixedLineOrMobile",method:"check",operator:"fixedLineOrMobile"})}},tollFree:{method(){return this.$_addRule({name:"tollFree",method:"check",operator:"tollFree"})}},premiumRate:{method(){return this.$_addRule({name:"premiumRate",method:"check",operator:"premiumRate"})}},sharedCost:{method(){return this.$_addRule({name:"sharedCost",method:"check",operator:"sharedCost"})}},voip:{method(){return this.$_addRule({name:"voip",method:"check",operator:"voip"})}},personalNumber:{method(){return this.$_addRule({name:"personalNumber",method:"check",operator:"personalNumber"})}},pager:{method(){return this.$_addRule({name:"pager",method:"check",operator:"pager"})}},uan:{method(){return this.$_addRule({name:"uan",method:"check",operator:"uan"})}},voicemail:{method(){return this.$_addRule({name:"voicemail",method:"check",operator:"voicemail"})}},unknown:{method(){return this.$_addRule({name:"unknown",method:"check",operator:"unknown"})}},types:{method(...h){return this.$_addRule({name:"types",method:"check",operator:"types",args:{types:h}})}}},cast:{string:{from:h=>typeof h=="string"||typeof h=="number",to:h=>h},number:{from:h=>typeof h=="string"||typeof h=="number",to(h,m){let p=m.schema.$_getFlag("country"),_=getPhoneObject(h,p);return _?Number(_.raw):-1}},object:{from:h=>typeof h=="string"||typeof h=="number",to(h,m){let p=m.schema.$_getFlag("country"),_=getPhoneObject(h,p);return _?_.toObject():{}}}},messages}};var DP=20,RM=1,MAX_DP=1e6,MAX_POWER=1e6,NE=-7,PE=21,STRICT=!1,NAME="[big.js] ",INVALID$3=NAME+"Invalid ",INVALID_DP=INVALID$3+"decimal places",INVALID_RM=INVALID$3+"rounding mode",DIV_BY_ZERO=NAME+"Division by zero",P={},UNDEFINED=void 0,NUMERIC=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function _Big_(){function r(o){var u=this;if(!(u instanceof r))return o===UNDEFINED&&arguments.length===0?_Big_():new r(o);if(o instanceof r)u.s=o.s,u.e=o.e,u.c=o.c.slice();else{if(typeof o!="string"){if(r.strict===!0&&typeof o!="bigint")throw TypeError(INVALID$3+"value");o=o===0&&1/o<0?"-0":String(o)}parse$8(u,o)}u.constructor=r}return r.prototype=P,r.DP=DP,r.RM=RM,r.NE=NE,r.PE=PE,r.strict=STRICT,r.roundDown=0,r.roundHalfUp=1,r.roundHalfEven=2,r.roundUp=3,r}function parse$8(r,o){var u,h,m;if(!NUMERIC.test(o))throw Error(INVALID$3+"number");for(r.s=o.charAt(0)=="-"?(o=o.slice(1),-1):1,(u=o.indexOf("."))>-1&&(o=o.replace(".","")),(h=o.search(/e/i))>0?(u<0&&(u=h),u+=+o.slice(h+1),o=o.substring(0,h)):u<0&&(u=o.length),m=o.length,h=0;h<m&&o.charAt(h)=="0";)++h;if(h==m)r.c=[r.e=0];else{for(;m>0&&o.charAt(--m)=="0";);for(r.e=u-h-1,r.c=[],u=0;h<=m;)r.c[u++]=+o.charAt(h++)}return r}function round(r,o,u,h){var m=r.c;if(u===UNDEFINED&&(u=r.constructor.RM),u!==0&&u!==1&&u!==2&&u!==3)throw Error(INVALID_RM);if(o<1)h=u===3&&(h||!!m[0])||o===0&&(u===1&&m[0]>=5||u===2&&(m[0]>5||m[0]===5&&(h||m[1]!==UNDEFINED))),m.length=1,h?(r.e=r.e-o+1,m[0]=1):m[0]=r.e=0;else if(o<m.length){if(h=u===1&&m[o]>=5||u===2&&(m[o]>5||m[o]===5&&(h||m[o+1]!==UNDEFINED||m[o-1]&1))||u===3&&(h||!!m[0]),m.length=o,h){for(;++m[--o]>9;)if(m[o]=0,o===0){++r.e,m.unshift(1);break}}for(o=m.length;!m[--o];)m.pop()}return r}function stringify$1(r,o,u){var h=r.e,m=r.c.join(""),p=m.length;if(o)m=m.charAt(0)+(p>1?"."+m.slice(1):"")+(h<0?"e":"e+")+h;else if(h<0){for(;++h;)m="0"+m;m="0."+m}else if(h>0)if(++h>p)for(h-=p;h--;)m+="0";else h<p&&(m=m.slice(0,h)+"."+m.slice(h));else p>1&&(m=m.charAt(0)+"."+m.slice(1));return r.s<0&&u?"-"+m:m}P.abs=function(){var r=new this.constructor(this);return r.s=1,r},P.cmp=function(r){var o,u=this,h=u.c,m=(r=new u.constructor(r)).c,p=u.s,_=r.s,y=u.e,S=r.e;if(!h[0]||!m[0])return h[0]?p:m[0]?-_:0;if(p!=_)return p;if(o=p<0,y!=S)return y>S^o?1:-1;for(_=(y=h.length)<(S=m.length)?y:S,p=-1;++p<_;)if(h[p]!=m[p])return h[p]>m[p]^o?1:-1;return y==S?0:y>S^o?1:-1},P.div=function(r){var o=this,u=o.constructor,h=o.c,m=(r=new u(r)).c,p=o.s==r.s?1:-1,_=u.DP;if(_!==~~_||_<0||_>MAX_DP)throw Error(INVALID_DP);if(!m[0])throw Error(DIV_BY_ZERO);if(!h[0])return r.s=p,r.c=[r.e=0],r;var y,S,$,E,A,T=m.slice(),N=y=m.length,O=h.length,C=h.slice(0,y),L=C.length,w=r,I=w.c=[],D=0,F=_+(w.e=o.e-r.e)+1;for(w.s=p,p=F<0?0:F,T.unshift(0);L++<y;)C.push(0);do{for($=0;$<10;$++){if(y!=(L=C.length))E=y>L?1:-1;else for(A=-1,E=0;++A<y;)if(m[A]!=C[A]){E=m[A]>C[A]?1:-1;break}if(E<0){for(S=L==y?m:T;L;){if(C[--L]<S[L]){for(A=L;A&&!C[--A];)C[A]=9;--C[A],C[L]+=10}C[L]-=S[L]}for(;!C[0];)C.shift()}else break}I[D++]=E?$:++$,C[0]&&E?C[L]=h[N]||0:C=[h[N]]}while((N++<O||C[0]!==UNDEFINED)&&p--);return!I[0]&&D!=1&&(I.shift(),w.e--,F--),D>F&&round(w,F,u.RM,C[0]!==UNDEFINED),w},P.eq=function(r){return this.cmp(r)===0},P.gt=function(r){return this.cmp(r)>0},P.gte=function(r){return this.cmp(r)>-1},P.lt=function(r){return this.cmp(r)<0},P.lte=function(r){return this.cmp(r)<1},P.minus=P.sub=function(r){var o,u,h,m,p=this,_=p.constructor,y=p.s,S=(r=new _(r)).s;if(y!=S)return r.s=-S,p.plus(r);var $=p.c.slice(),E=p.e,A=r.c,T=r.e;if(!$[0]||!A[0])return A[0]?r.s=-S:$[0]?r=new _(p):r.s=1,r;if(y=E-T){for((m=y<0)?(y=-y,h=$):(T=E,h=A),h.reverse(),S=y;S--;)h.push(0);h.reverse()}else for(u=((m=$.length<A.length)?$:A).length,y=S=0;S<u;S++)if($[S]!=A[S]){m=$[S]<A[S];break}if(m&&(h=$,$=A,A=h,r.s=-r.s),(S=(u=A.length)-(o=$.length))>0)for(;S--;)$[o++]=0;for(S=o;u>y;){if($[--u]<A[u]){for(o=u;o&&!$[--o];)$[o]=9;--$[o],$[u]+=10}$[u]-=A[u]}for(;$[--S]===0;)$.pop();for(;$[0]===0;)$.shift(),--T;return $[0]||(r.s=1,$=[T=0]),r.c=$,r.e=T,r},P.mod=function(r){var o,u=this,h=u.constructor,m=u.s,p=(r=new h(r)).s;if(!r.c[0])throw Error(DIV_BY_ZERO);return u.s=r.s=1,o=r.cmp(u)==1,u.s=m,r.s=p,o?new h(u):(m=h.DP,p=h.RM,h.DP=h.RM=0,u=u.div(r),h.DP=m,h.RM=p,this.minus(u.times(r)))},P.neg=function(){var r=new this.constructor(this);return r.s=-r.s,r},P.plus=P.add=function(r){var o,u,h,m=this,p=m.constructor;if(r=new p(r),m.s!=r.s)return r.s=-r.s,m.minus(r);var _=m.e,y=m.c,S=r.e,$=r.c;if(!y[0]||!$[0])return $[0]||(y[0]?r=new p(m):r.s=m.s),r;if(y=y.slice(),o=_-S){for(o>0?(S=_,h=$):(o=-o,h=y),h.reverse();o--;)h.push(0);h.reverse()}for(y.length-$.length<0&&(h=$,$=y,y=h),o=$.length,u=0;o;y[o]%=10)u=(y[--o]=y[o]+$[o]+u)/10|0;for(u&&(y.unshift(u),++S),o=y.length;y[--o]===0;)y.pop();return r.c=y,r.e=S,r},P.pow=function(r){var o=this,u=new o.constructor("1"),h=u,m=r<0;if(r!==~~r||r<-MAX_POWER||r>MAX_POWER)throw Error(INVALID$3+"exponent");for(m&&(r=-r);r&1&&(h=h.times(o)),r>>=1,r;)o=o.times(o);return m?u.div(h):h},P.prec=function(r,o){if(r!==~~r||r<1||r>MAX_DP)throw Error(INVALID$3+"precision");return round(new this.constructor(this),r,o)},P.round=function(r,o){if(r===UNDEFINED)r=0;else if(r!==~~r||r<-MAX_DP||r>MAX_DP)throw Error(INVALID_DP);return round(new this.constructor(this),r+this.e+1,o)},P.sqrt=function(){var r,o,u,h=this,m=h.constructor,p=h.s,_=h.e,y=new m("0.5");if(!h.c[0])return new m(h);if(p<0)throw Error(NAME+"No square root");p=Math.sqrt(+stringify$1(h,!0,!0)),p===0||p===1/0?(o=h.c.join(""),o.length+_&1||(o+="0"),p=Math.sqrt(o),_=((_+1)/2|0)-(_<0||_&1),r=new m((p==1/0?"5e":(p=p.toExponential()).slice(0,p.indexOf("e")+1))+_)):r=new m(p+""),_=r.e+(m.DP+=4);do u=r,r=y.times(u.plus(h.div(u)));while(u.c.slice(0,_).join("")!==r.c.slice(0,_).join(""));return round(r,(m.DP-=4)+r.e+1,m.RM)},P.times=P.mul=function(r){var o,u=this,h=u.constructor,m=u.c,p=(r=new h(r)).c,_=m.length,y=p.length,S=u.e,$=r.e;if(r.s=u.s==r.s?1:-1,!m[0]||!p[0])return r.c=[r.e=0],r;for(r.e=S+$,_<y&&(o=m,m=p,p=o,$=_,_=y,y=$),o=Array($=_+y);$--;)o[$]=0;for(S=y;S--;){for(y=0,$=_+S;$>S;)y=o[$]+p[S]*m[$-S-1]+y,o[$--]=y%10,y=y/10|0;o[$]=y}for(y?++r.e:o.shift(),S=o.length;!o[--S];)o.pop();return r.c=o,r},P.toExponential=function(r,o){var u=this,h=u.c[0];if(r!==UNDEFINED){if(r!==~~r||r<0||r>MAX_DP)throw Error(INVALID_DP);for(u=round(new u.constructor(u),++r,o);u.c.length<r;)u.c.push(0)}return stringify$1(u,!0,!!h)},P.toFixed=function(r,o){var u=this,h=u.c[0];if(r!==UNDEFINED){if(r!==~~r||r<0||r>MAX_DP)throw Error(INVALID_DP);for(u=round(new u.constructor(u),r+u.e+1,o),r=r+u.e+1;u.c.length<r;)u.c.push(0)}return stringify$1(u,!1,!!h)},P.toJSON=P.toString=function(){var r=this,o=r.constructor;return stringify$1(r,r.e<=o.NE||r.e>=o.PE,!!r.c[0])},typeof Symbol<"u"&&(P[Symbol.for("nodejs.util.inspect.custom")]=P.toJSON),P.toNumber=function(){var r=+stringify$1(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(r.toString()))throw Error(NAME+"Imprecise conversion");return r},P.toPrecision=function(r,o){var u=this,h=u.constructor,m=u.c[0];if(r!==UNDEFINED){if(r!==~~r||r<1||r>MAX_DP)throw Error(INVALID$3+"precision");for(u=round(new h(u),r,o);u.c.length<r;)u.c.push(0)}return stringify$1(u,r<=u.e||u.e<=h.NE||u.e>=h.PE,!!m)},P.valueOf=function(){var r=this,o=r.constructor;if(o.strict===!0)throw Error(NAME+"valueOf disallowed");return stringify$1(r,r.e<=o.NE||r.e>=o.PE,!0)};var Big=_Big_(),big_default=Big;const messages$1={"bigint.base":'"{{#label}}" must be a valid bigint',"bigint.greater":'"{{#label}}" must be greater than {{#limit}}',"bigint.less":'"{{#label}}" must be less than {{#limit}}',"bigint.max":'"{{#label}}" must be less than or equal to {{#limit}}',"bigint.min":'"{{#label}}" must be greater than or equal to {{#limit}}',"bigint.multiple":'"{{#label}}" must be a multiple of {{#limit}}',"bigint.negative":'"{{#label}}" must be a negative bigint',"bigint.positive":'"{{#label}}" must be a positive bigint'},compare$13=(r,o,u)=>{switch(u){case">":return r.gt(o);case"<":return r.lt(o);case">=":return r.gte(o);case"<=":return r.lte(o);case"multiple":return r.mod(o).eq(0);default:return!1}},bigint=function(r){return{type:"bigint",base:r.any(),coerce:{from:["string","number"],method(o,u){if(typeof o=="bigint")return{value:o};try{let h=big_default(o.toString());return h.eq(h.round(0))?{value:BigInt(h.toString())}:{value:o,errors:[u.error("bigint.base",{value:String(o)})]}}catch{return{value:o,errors:[u.error("bigint.base",{value:String(o)})]}}}},messages:messages$1,validate(o,{error:u}){return typeof o=="bigint"?{value:o}:{value:o,errors:u("bigint.base",{value:String(o)})}},rules:{compare:{method:!1,validate(o,u,{limit:h},{name:m,operator:p}){let _=o==null,y=u.schema._flags.presence==="required";if(_&&!y)return null;if(_&&y)return{value:o,errors:[u.error("any.required",{label:u.schema._flags.label})]};let S=big_default(o.toString()),$=big_default(h.toString());return compare$13(S,$,p)?o:u.error("bigint."+m,{limit:h.toString(),value:o.toString()})},args:[{name:"limit",ref:!0,assert:o=>["bigint","number","string"].includes(typeof o),message:"must be a bigint"}]},greater:{method(o){return this.$_addRule({name:"greater",method:"compare",args:{limit:o},operator:">"})}},less:{method(o){return this.$_addRule({name:"less",method:"compare",args:{limit:o},operator:"<"})}},max:{method(o){return this.$_addRule({name:"max",method:"compare",args:{limit:o},operator:"<="})}},min:{method(o){return this.$_addRule({name:"min",method:"compare",args:{limit:o},operator:">="})}},multiple:{method(o){return this.$_addRule({name:"multiple",method:"compare",args:{limit:o},operator:"multiple"})}},negative:{method(){return this.$_addRule("negative")},validate(o,u){return o>=0n?u.error("bigint.negative",{value:o.toString()}):o}},positive:{method(){return this.$_addRule("positive")},validate(o,u){return o<=0n?u.error("bigint.positive",{value:o.toString()}):o}}},cast:{string:{from:o=>typeof o=="bigint",to(o){return o.toString()}}}}};var LuxonError=class extends Error{},InvalidDateTimeError=class extends LuxonError{constructor(r){super(`Invalid DateTime: ${r.toMessage()}`)}},InvalidIntervalError=class extends LuxonError{constructor(r){super(`Invalid Interval: ${r.toMessage()}`)}},InvalidDurationError=class extends LuxonError{constructor(r){super(`Invalid Duration: ${r.toMessage()}`)}},ConflictingSpecificationError=class extends LuxonError{},InvalidUnitError=class extends LuxonError{constructor(r){super(`Invalid unit ${r}`)}},InvalidArgumentError=class extends LuxonError{},ZoneIsAbstractError=class extends LuxonError{constructor(){super("Zone is an abstract class")}};const n="numeric",s="short",l="long",DATE_SHORT={year:n,month:n,day:n},DATE_MED={year:n,month:s,day:n},DATE_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s},DATE_FULL={year:n,month:l,day:n},DATE_HUGE={year:n,month:l,day:n,weekday:l},TIME_SIMPLE={hour:n,minute:n},TIME_WITH_SECONDS={hour:n,minute:n,second:n},TIME_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,timeZoneName:s},TIME_WITH_LONG_OFFSET={hour:n,minute:n,second:n,timeZoneName:l},TIME_24_SIMPLE={hour:n,minute:n,hourCycle:"h23"},TIME_24_WITH_SECONDS={hour:n,minute:n,second:n,hourCycle:"h23"},TIME_24_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:s},TIME_24_WITH_LONG_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:l},DATETIME_SHORT={year:n,month:n,day:n,hour:n,minute:n},DATETIME_SHORT_WITH_SECONDS={year:n,month:n,day:n,hour:n,minute:n,second:n},DATETIME_MED={year:n,month:s,day:n,hour:n,minute:n},DATETIME_MED_WITH_SECONDS={year:n,month:s,day:n,hour:n,minute:n,second:n},DATETIME_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s,hour:n,minute:n},DATETIME_FULL={year:n,month:l,day:n,hour:n,minute:n,timeZoneName:s},DATETIME_FULL_WITH_SECONDS={year:n,month:l,day:n,hour:n,minute:n,second:n,timeZoneName:s},DATETIME_HUGE={year:n,month:l,day:n,weekday:l,hour:n,minute:n,timeZoneName:l},DATETIME_HUGE_WITH_SECONDS={year:n,month:l,day:n,weekday:l,hour:n,minute:n,second:n,timeZoneName:l};var Zone=class{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(r,o){throw new ZoneIsAbstractError}formatOffset(r,o){throw new ZoneIsAbstractError}offset(r){throw new ZoneIsAbstractError}equals(r){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}};let singleton$1=null;var SystemZone=class jr extends Zone{static get instance(){return singleton$1===null&&(singleton$1=new jr),singleton$1}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(o,{format:u,locale:h}){return parseZoneInfo(o,u,h)}formatOffset(o,u){return formatOffset(this.offset(o),u)}offset(o){return-new Date(o).getTimezoneOffset()}equals(o){return o.type==="system"}get isValid(){return!0}};const dtfCache=new Map;function makeDTF(r){let o=dtfCache.get(r);return o===void 0&&(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),dtfCache.set(r,o)),o}const typeToPos={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(r,o){let u=r.format(o).replace(/\u200E/g,""),h=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(u),[,m,p,_,y,S,$,E]=h;return[_,m,p,y,S,$,E]}function partsOffset(r,o){let u=r.formatToParts(o),h=[];for(let m=0;m<u.length;m++){let{type:p,value:_}=u[m],y=typeToPos[p];p==="era"?h[y]=_:isUndefined(y)||(h[y]=parseInt(_,10))}return h}const ianaZoneCache=new Map;var IANAZone=class Lr extends Zone{static create(o){let u=ianaZoneCache.get(o);return u===void 0&&ianaZoneCache.set(o,u=new Lr(o)),u}static resetCache(){ianaZoneCache.clear(),dtfCache.clear()}static isValidSpecifier(o){return this.isValidZone(o)}static isValidZone(o){if(!o)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:o}).format(),!0}catch{return!1}}constructor(o){super(),this.zoneName=o,this.valid=Lr.isValidZone(o)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(o,{format:u,locale:h}){return parseZoneInfo(o,u,h,this.name)}formatOffset(o,u){return formatOffset(this.offset(o),u)}offset(o){if(!this.valid)return NaN;let u=new Date(o);if(isNaN(u))return NaN;let h=makeDTF(this.name),[m,p,_,y,S,$,E]=h.formatToParts?partsOffset(h,u):hackyOffset(h,u);y==="BC"&&(m=-Math.abs(m)+1);let A=S===24?0:S,T=objToLocalTS({year:m,month:p,day:_,hour:A,minute:$,second:E,millisecond:0}),N=+u,O=N%1e3;return N-=O>=0?O:1e3+O,(T-N)/(60*1e3)}equals(o){return o.type==="iana"&&o.name===this.name}get isValid(){return this.valid}};let intlLFCache={};function getCachedLF(r,o={}){let u=JSON.stringify([r,o]),h=intlLFCache[u];return h||(h=new Intl.ListFormat(r,o),intlLFCache[u]=h),h}const intlDTCache=new Map;function getCachedDTF(r,o={}){let u=JSON.stringify([r,o]),h=intlDTCache.get(u);return h===void 0&&(h=new Intl.DateTimeFormat(r,o),intlDTCache.set(u,h)),h}const intlNumCache=new Map;function getCachedINF(r,o={}){let u=JSON.stringify([r,o]),h=intlNumCache.get(u);return h===void 0&&(h=new Intl.NumberFormat(r,o),intlNumCache.set(u,h)),h}const intlRelCache=new Map;function getCachedRTF(r,o={}){let{base:u,...h}=o,m=JSON.stringify([r,h]),p=intlRelCache.get(m);return p===void 0&&(p=new Intl.RelativeTimeFormat(r,o),intlRelCache.set(m,p)),p}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache)}const intlResolvedOptionsCache=new Map;function getCachedIntResolvedOptions(r){let o=intlResolvedOptionsCache.get(r);return o===void 0&&(o=new Intl.DateTimeFormat(r).resolvedOptions(),intlResolvedOptionsCache.set(r,o)),o}const weekInfoCache=new Map;function getCachedWeekInfo(r){let o=weekInfoCache.get(r);if(!o){let u=new Intl.Locale(r);o="getWeekInfo"in u?u.getWeekInfo():u.weekInfo,"minimalDays"in o||(o={...fallbackWeekSettings,...o}),weekInfoCache.set(r,o)}return o}function parseLocaleString(r){let o=r.indexOf("-x-");o!==-1&&(r=r.substring(0,o));let u=r.indexOf("-u-");if(u===-1)return[r];{let h,m;try{h=getCachedDTF(r).resolvedOptions(),m=r}catch{let y=r.substring(0,u);h=getCachedDTF(y).resolvedOptions(),m=y}let{numberingSystem:p,calendar:_}=h;return[m,p,_]}}function intlConfigString(r,o,u){return(u||o)&&(r.includes("-u-")||(r+="-u"),u&&(r+=`-ca-${u}`),o&&(r+=`-nu-${o}`)),r}function mapMonths(r){let o=[];for(let u=1;u<=12;u++){let h=DateTime.utc(2009,u,1);o.push(r(h))}return o}function mapWeekdays(r){let o=[];for(let u=1;u<=7;u++){let h=DateTime.utc(2016,11,13+u);o.push(r(h))}return o}function listStuff(r,o,u,h){let m=r.listingMode();return m==="error"?null:m==="en"?u(o):h(o)}function supportsFastNumbers(r){return r.numberingSystem&&r.numberingSystem!=="latn"?!1:r.numberingSystem==="latn"||!r.locale||r.locale.startsWith("en")||getCachedIntResolvedOptions(r.locale).numberingSystem==="latn"}var PolyNumberFormatter=class{constructor(r,o,u){this.padTo=u.padTo||0,this.floor=u.floor||!1;let{padTo:h,floor:m,...p}=u;if(!o||Object.keys(p).length>0){let _={useGrouping:!1,...u};u.padTo>0&&(_.minimumIntegerDigits=u.padTo),this.inf=getCachedINF(r,_)}}format(r){if(this.inf){let o=this.floor?Math.floor(r):r;return this.inf.format(o)}else{let o=this.floor?Math.floor(r):roundTo(r,3);return padStart(o,this.padTo)}}},PolyDateFormatter=class{constructor(r,o,u){this.opts=u,this.originalZone=void 0;let h;if(this.opts.timeZone)this.dt=r;else if(r.zone.type==="fixed"){let p=-1*(r.offset/60),_=p>=0?`Etc/GMT+${p}`:`Etc/GMT${p}`;r.offset!==0&&IANAZone.create(_).valid?(h=_,this.dt=r):(h="UTC",this.dt=r.offset===0?r:r.setZone("UTC").plus({minutes:r.offset}),this.originalZone=r.zone)}else r.zone.type==="system"?this.dt=r:r.zone.type==="iana"?(this.dt=r,h=r.zone.name):(h="UTC",this.dt=r.setZone("UTC").plus({minutes:r.offset}),this.originalZone=r.zone);let m={...this.opts};m.timeZone=m.timeZone||h,this.dtf=getCachedDTF(o,m)}format(){return this.originalZone?this.formatToParts().map(({value:r})=>r).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let r=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?r.map(o=>{if(o.type==="timeZoneName"){let u=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...o,value:u}}else return o}):r}resolvedOptions(){return this.dtf.resolvedOptions()}},PolyRelFormatter=class{constructor(r,o,u){this.opts={style:"long",...u},!o&&hasRelative()&&(this.rtf=getCachedRTF(r,u))}format(r,o){return this.rtf?this.rtf.format(r,o):formatRelativeTime(o,r,this.opts.numeric,this.opts.style!=="long")}formatToParts(r,o){return this.rtf?this.rtf.formatToParts(r,o):[]}};const fallbackWeekSettings={firstDay:1,minimalDays:4,weekend:[6,7]};var Locale=class Sr{static fromOpts(o){return Sr.create(o.locale,o.numberingSystem,o.outputCalendar,o.weekSettings,o.defaultToEN)}static create(o,u,h,m,p=!1){let _=o||Settings.defaultLocale,y=_||(p?"en-US":systemLocale()),S=u||Settings.defaultNumberingSystem,$=h||Settings.defaultOutputCalendar,E=validateWeekSettings(m)||Settings.defaultWeekSettings;return new Sr(y,S,$,E,_)}static resetCache(){sysLocaleCache=null,intlDTCache.clear(),intlNumCache.clear(),intlRelCache.clear(),intlResolvedOptionsCache.clear(),weekInfoCache.clear()}static fromObject({locale:o,numberingSystem:u,outputCalendar:h,weekSettings:m}={}){return Sr.create(o,u,h,m)}constructor(o,u,h,m,p){let[_,y,S]=parseLocaleString(o);this.locale=_,this.numberingSystem=u||y||null,this.outputCalendar=h||S||null,this.weekSettings=m,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=p,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached??(this.fastNumbersCached=supportsFastNumbers(this)),this.fastNumbersCached}listingMode(){let o=this.isEnglish(),u=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return o&&u?"en":"intl"}clone(o){return!o||Object.getOwnPropertyNames(o).length===0?this:Sr.create(o.locale||this.specifiedLocale,o.numberingSystem||this.numberingSystem,o.outputCalendar||this.outputCalendar,validateWeekSettings(o.weekSettings)||this.weekSettings,o.defaultToEN||!1)}redefaultToEN(o={}){return this.clone({...o,defaultToEN:!0})}redefaultToSystem(o={}){return this.clone({...o,defaultToEN:!1})}months(o,u=!1){return listStuff(this,o,months,()=>{let h=this.intl==="ja"||this.intl.startsWith("ja-");u&=!h;let m=u?{month:o,day:"numeric"}:{month:o},p=u?"format":"standalone";if(!this.monthsCache[p][o]){let _=h?y=>this.dtFormatter(y,m).format():y=>this.extract(y,m,"month");this.monthsCache[p][o]=mapMonths(_)}return this.monthsCache[p][o]})}weekdays(o,u=!1){return listStuff(this,o,weekdays,()=>{let h=u?{weekday:o,year:"numeric",month:"long",day:"numeric"}:{weekday:o},m=u?"format":"standalone";return this.weekdaysCache[m][o]||(this.weekdaysCache[m][o]=mapWeekdays(p=>this.extract(p,h,"weekday"))),this.weekdaysCache[m][o]})}meridiems(){return listStuff(this,void 0,()=>meridiems,()=>{if(!this.meridiemCache){let o={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(u=>this.extract(u,o,"dayperiod"))}return this.meridiemCache})}eras(o){return listStuff(this,o,eras,()=>{let u={era:o};return this.eraCache[o]||(this.eraCache[o]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(h=>this.extract(h,u,"era"))),this.eraCache[o]})}extract(o,u,h){let m=this.dtFormatter(o,u),p=m.formatToParts(),_=p.find(y=>y.type.toLowerCase()===h);return _?_.value:null}numberFormatter(o={}){return new PolyNumberFormatter(this.intl,o.forceSimple||this.fastNumbers,o)}dtFormatter(o,u={}){return new PolyDateFormatter(o,this.intl,u)}relFormatter(o={}){return new PolyRelFormatter(this.intl,this.isEnglish(),o)}listFormatter(o={}){return getCachedLF(this.intl,o)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||getCachedIntResolvedOptions(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo()?getCachedWeekInfo(this.locale):fallbackWeekSettings}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(o){return this.locale===o.locale&&this.numberingSystem===o.numberingSystem&&this.outputCalendar===o.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};let singleton=null;var FixedOffsetZone=class $r extends Zone{static get utcInstance(){return singleton===null&&(singleton=new $r(0)),singleton}static instance(o){return o===0?$r.utcInstance:new $r(o)}static parseSpecifier(o){if(o){let u=o.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(u)return new $r(signedOffset(u[1],u[2]))}return null}constructor(o){super(),this.fixed=o}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(o,u){return formatOffset(this.fixed,u)}get isUniversal(){return!0}offset(){return this.fixed}equals(o){return o.type==="fixed"&&o.fixed===this.fixed}get isValid(){return!0}},InvalidZone=class extends Zone{constructor(r){super(),this.zoneName=r}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 normalizeZone(r,o){if(isUndefined(r)||r===null)return o;if(r instanceof Zone)return r;if(isString(r)){let u=r.toLowerCase();return u==="default"?o:u==="local"||u==="system"?SystemZone.instance:u==="utc"||u==="gmt"?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier(u)||IANAZone.create(r)}else return isNumber$1(r)?FixedOffsetZone.instance(r):typeof r=="object"&&"offset"in r&&typeof r.offset=="function"?r:new InvalidZone(r)}const numberingSystems={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},numberingSystemsUTF16={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]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(r){let o=parseInt(r,10);if(isNaN(o)){o="";for(let u=0;u<r.length;u++){let h=r.charCodeAt(u);if(r[u].search(numberingSystems.hanidec)!==-1)o+=hanidecChars.indexOf(r[u]);else for(let m in numberingSystemsUTF16){let[p,_]=numberingSystemsUTF16[m];h>=p&&h<=_&&(o+=h-p)}}return parseInt(o,10)}else return o}const digitRegexCache=new Map;function resetDigitRegexCache(){digitRegexCache.clear()}function digitRegex({numberingSystem:r},o=""){let u=r||"latn",h=digitRegexCache.get(u);h===void 0&&(h=new Map,digitRegexCache.set(u,h));let m=h.get(o);return m===void 0&&(m=RegExp(`${numberingSystems[u]}${o}`),h.set(o,m)),m}let now=()=>Date.now(),defaultZone="system",defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=60,throwOnInvalid,defaultWeekSettings=null;var Settings=class{static get now(){return now}static set now(r){now=r}static set defaultZone(r){defaultZone=r}static get defaultZone(){return normalizeZone(defaultZone,SystemZone.instance)}static get defaultLocale(){return defaultLocale}static set defaultLocale(r){defaultLocale=r}static get defaultNumberingSystem(){return defaultNumberingSystem}static set defaultNumberingSystem(r){defaultNumberingSystem=r}static get defaultOutputCalendar(){return defaultOutputCalendar}static set defaultOutputCalendar(r){defaultOutputCalendar=r}static get defaultWeekSettings(){return defaultWeekSettings}static set defaultWeekSettings(r){defaultWeekSettings=validateWeekSettings(r)}static get twoDigitCutoffYear(){return twoDigitCutoffYear}static set twoDigitCutoffYear(r){twoDigitCutoffYear=r%100}static get throwOnInvalid(){return throwOnInvalid}static set throwOnInvalid(r){throwOnInvalid=r}static resetCaches(){Locale.resetCache(),IANAZone.resetCache(),DateTime.resetCache(),resetDigitRegexCache()}},Invalid=class{constructor(r,o){this.reason=r,this.explanation=o}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(r,o){return new Invalid("unit out of range",`you specified ${o} (of type ${typeof o}) as a ${r}, which is invalid`)}function dayOfWeek(r,o,u){let h=new Date(Date.UTC(r,o-1,u));r<100&&r>=0&&h.setUTCFullYear(h.getUTCFullYear()-1900);let m=h.getUTCDay();return m===0?7:m}function computeOrdinal(r,o,u){return u+(isLeapYear(r)?leapLadder:nonLeapLadder)[o-1]}function uncomputeOrdinal(r,o){let u=isLeapYear(r)?leapLadder:nonLeapLadder,h=u.findIndex(p=>p<o),m=o-u[h];return{month:h+1,day:m}}function isoWeekdayToLocal(r,o){return(r-o+7)%7+1}function gregorianToWeek(r,o=4,u=1){let{year:h,month:m,day:p}=r,_=computeOrdinal(h,m,p),y=isoWeekdayToLocal(dayOfWeek(h,m,p),u),S=Math.floor((_-y+14-o)/7),$;return S<1?($=h-1,S=weeksInWeekYear($,o,u)):S>weeksInWeekYear(h,o,u)?($=h+1,S=1):$=h,{weekYear:$,weekNumber:S,weekday:y,...timeObject(r)}}function weekToGregorian(r,o=4,u=1){let{weekYear:h,weekNumber:m,weekday:p}=r,_=isoWeekdayToLocal(dayOfWeek(h,1,o),u),y=daysInYear(h),S=m*7+p-_-7+o,$;S<1?($=h-1,S+=daysInYear($)):S>y?($=h+1,S-=daysInYear(h)):$=h;let{month:E,day:A}=uncomputeOrdinal($,S);return{year:$,month:E,day:A,...timeObject(r)}}function gregorianToOrdinal(r){let{year:o,month:u,day:h}=r,m=computeOrdinal(o,u,h);return{year:o,ordinal:m,...timeObject(r)}}function ordinalToGregorian(r){let{year:o,ordinal:u}=r,{month:h,day:m}=uncomputeOrdinal(o,u);return{year:o,month:h,day:m,...timeObject(r)}}function usesLocalWeekValues(r,o){if(!isUndefined(r.localWeekday)||!isUndefined(r.localWeekNumber)||!isUndefined(r.localWeekYear)){if(!isUndefined(r.weekday)||!isUndefined(r.weekNumber)||!isUndefined(r.weekYear))throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields");return isUndefined(r.localWeekday)||(r.weekday=r.localWeekday),isUndefined(r.localWeekNumber)||(r.weekNumber=r.localWeekNumber),isUndefined(r.localWeekYear)||(r.weekYear=r.localWeekYear),delete r.localWeekday,delete r.localWeekNumber,delete r.localWeekYear,{minDaysInFirstWeek:o.getMinDaysInFirstWeek(),startOfWeek:o.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData(r,o=4,u=1){let h=isInteger(r.weekYear),m=integerBetween(r.weekNumber,1,weeksInWeekYear(r.weekYear,o,u)),p=integerBetween(r.weekday,1,7);return h?m?p?!1:unitOutOfRange("weekday",r.weekday):unitOutOfRange("week",r.weekNumber):unitOutOfRange("weekYear",r.weekYear)}function hasInvalidOrdinalData(r){let o=isInteger(r.year),u=integerBetween(r.ordinal,1,daysInYear(r.year));return o?u?!1:unitOutOfRange("ordinal",r.ordinal):unitOutOfRange("year",r.year)}function hasInvalidGregorianData(r){let o=isInteger(r.year),u=integerBetween(r.month,1,12),h=integerBetween(r.day,1,daysInMonth(r.year,r.month));return o?u?h?!1:unitOutOfRange("day",r.day):unitOutOfRange("month",r.month):unitOutOfRange("year",r.year)}function hasInvalidTimeData(r){let{hour:o,minute:u,second:h,millisecond:m}=r,p=integerBetween(o,0,23)||o===24&&u===0&&h===0&&m===0,_=integerBetween(u,0,59),y=integerBetween(h,0,59),S=integerBetween(m,0,999);return p?_?y?S?!1:unitOutOfRange("millisecond",m):unitOutOfRange("second",h):unitOutOfRange("minute",u):unitOutOfRange("hour",o)}function isUndefined(r){return r===void 0}function isNumber$1(r){return typeof r=="number"}function isInteger(r){return typeof r=="number"&&r%1==0}function isString(r){return typeof r=="string"}function isDate(r){return Object.prototype.toString.call(r)==="[object Date]"}function hasRelative(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function maybeArray(r){return Array.isArray(r)?r:[r]}function bestBy(r,o,u){if(r.length!==0)return r.reduce((h,m)=>{let p=[o(m),m];return h&&u(h[0],p[0])===h[0]?h:p},null)[1]}function pick(r,o){return o.reduce((u,h)=>(u[h]=r[h],u),{})}function hasOwnProperty(r,o){return Object.prototype.hasOwnProperty.call(r,o)}function validateWeekSettings(r){if(r==null)return null;if(typeof r!="object")throw new InvalidArgumentError("Week settings must be an object");if(!integerBetween(r.firstDay,1,7)||!integerBetween(r.minimalDays,1,7)||!Array.isArray(r.weekend)||r.weekend.some(o=>!integerBetween(o,1,7)))throw new InvalidArgumentError("Invalid week settings");return{firstDay:r.firstDay,minimalDays:r.minimalDays,weekend:Array.from(r.weekend)}}function integerBetween(r,o,u){return isInteger(r)&&r>=o&&r<=u}function floorMod(r,o){return r-o*Math.floor(r/o)}function padStart(r,o=2){let u=r<0,h;return h=u?"-"+(""+-r).padStart(o,"0"):(""+r).padStart(o,"0"),h}function parseInteger(r){if(!(isUndefined(r)||r===null||r===""))return parseInt(r,10)}function parseFloating(r){if(!(isUndefined(r)||r===null||r===""))return parseFloat(r)}function parseMillis(r){if(!(isUndefined(r)||r===null||r==="")){let o=parseFloat("0."+r)*1e3;return Math.floor(o)}}function roundTo(r,o,u="round"){let h=10**o;switch(u){case"expand":return r>0?Math.ceil(r*h)/h:Math.floor(r*h)/h;case"trunc":return Math.trunc(r*h)/h;case"round":return Math.round(r*h)/h;case"floor":return Math.floor(r*h)/h;case"ceil":return Math.ceil(r*h)/h;default:throw RangeError(`Value rounding ${u} is out of range`)}}function isLeapYear(r){return r%4==0&&(r%100!=0||r%400==0)}function daysInYear(r){return isLeapYear(r)?366:365}function daysInMonth(r,o){let u=floorMod(o-1,12)+1,h=r+(o-u)/12;return u===2?isLeapYear(h)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][u-1]}function objToLocalTS(r){let o=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond);return r.year<100&&r.year>=0&&(o=new Date(o),o.setUTCFullYear(r.year,r.month-1,r.day)),+o}function firstWeekOffset(r,o,u){return-isoWeekdayToLocal(dayOfWeek(r,1,o),u)+o-1}function weeksInWeekYear(r,o=4,u=1){let h=firstWeekOffset(r,o,u),m=firstWeekOffset(r+1,o,u);return(daysInYear(r)-h+m)/7}function untruncateYear(r){return r>99?r:r>Settings.twoDigitCutoffYear?1900+r:2e3+r}function parseZoneInfo(r,o,u,h=null){let m=new Date(r),p={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};h&&(p.timeZone=h);let _={timeZoneName:o,...p},y=new Intl.DateTimeFormat(u,_).formatToParts(m).find(S=>S.type.toLowerCase()==="timezonename");return y?y.value:null}function signedOffset(r,o){let u=parseInt(r,10);Number.isNaN(u)&&(u=0);let h=parseInt(o,10)||0,m=u<0||Object.is(u,-0)?-h:h;return u*60+m}function asNumber(r){let o=Number(r);if(typeof r=="boolean"||r===""||!Number.isFinite(o))throw new InvalidArgumentError(`Invalid unit value ${r}`);return o}function normalizeObject(r,o){let u={};for(let h in r)if(hasOwnProperty(r,h)){let m=r[h];if(m==null)continue;u[o(h)]=asNumber(m)}return u}function formatOffset(r,o){let u=Math.trunc(Math.abs(r/60)),h=Math.trunc(Math.abs(r%60)),m=r>=0?"+":"-";switch(o){case"short":return`${m}${padStart(u,2)}:${padStart(h,2)}`;case"narrow":return`${m}${u}${h>0?`:${h}`:""}`;case"techie":return`${m}${padStart(u,2)}${padStart(h,2)}`;default:throw RangeError(`Value format ${o} is out of range for property format`)}}function timeObject(r){return pick(r,["hour","minute","second","millisecond"])}const monthsLong=["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsNarrow=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(r){switch(r){case"narrow":return[...monthsNarrow];case"short":return[...monthsShort];case"long":return[...monthsLong];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}}const weekdaysLong=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow=["M","T","W","T","F","S","S"];function weekdays(r){switch(r){case"narrow":return[...weekdaysNarrow];case"short":return[...weekdaysShort];case"long":return[...weekdaysLong];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const meridiems=["AM","PM"],erasLong=["Before Christ","Anno Domini"],erasShort=["BC","AD"],erasNarrow=["B","A"];function eras(r){switch(r){case"narrow":return[...erasNarrow];case"short":return[...erasShort];case"long":return[...erasLong];default:return null}}function meridiemForDateTime(r){return meridiems[r.hour<12?0:1]}function weekdayForDateTime(r,o){return weekdays(o)[r.weekday-1]}function monthForDateTime(r,o){return months(o)[r.month-1]}function eraForDateTime(r,o){return eras(o)[r.year<0?0:1]}function formatRelativeTime(r,o,u="always",h=!1){let m={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."]},p=["hours","minutes","seconds"].indexOf(r)===-1;if(u==="auto"&&p){let A=r==="days";switch(o){case 1:return A?"tomorrow":`next ${m[r][0]}`;case-1:return A?"yesterday":`last ${m[r][0]}`;case 0:return A?"today":`this ${m[r][0]}`}}let _=Object.is(o,-0)||o<0,y=Math.abs(o),S=y===1,$=m[r],E=h?S?$[1]:$[2]||$[1]:S?m[r][0]:r;return _?`${y} ${E} ago`:`in ${y} ${E}`}function stringifyTokens(r,o){let u="";for(let h of r)h.literal?u+=h.val:u+=o(h.val);return u}const macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS};var Formatter=class Er{static create(o,u={}){return new Er(o,u)}static parseFormat(o){let u=null,h="",m=!1,p=[];for(let _=0;_<o.length;_++){let y=o.charAt(_);y==="'"?((h.length>0||m)&&p.push({literal:m||/^\s+$/.test(h),val:h===""?"'":h}),u=null,h="",m=!m):m||y===u?h+=y:(h.length>0&&p.push({literal:/^\s+$/.test(h),val:h}),h=y,u=y)}return h.length>0&&p.push({literal:m||/^\s+$/.test(h),val:h}),p}static macroTokenToFormatOpts(o){return macroTokenToFormatOpts[o]}constructor(o,u){this.opts=u,this.loc=o,this.systemLoc=null}formatWithSystemDefault(o,u){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(o,{...this.opts,...u}).format()}dtFormatter(o,u={}){return this.loc.dtFormatter(o,{...this.opts,...u})}formatDateTime(o,u){return this.dtFormatter(o,u).format()}formatDateTimeParts(o,u){return this.dtFormatter(o,u).formatToParts()}formatInterval(o,u){return this.dtFormatter(o.start,u).dtf.formatRange(o.start.toJSDate(),o.end.toJSDate())}resolvedOptions(o,u){return this.dtFormatter(o,u).resolvedOptions()}num(o,u=0,h=void 0){if(this.opts.forceSimple)return padStart(o,u);let m={...this.opts};return u>0&&(m.padTo=u),h&&(m.signDisplay=h),this.loc.numberFormatter(m).format(o)}formatDateTimeFromString(o,u){let h=this.loc.listingMode()==="en",m=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",p=(N,O)=>this.loc.extract(o,N,O),_=N=>o.isOffsetFixed&&o.offset===0&&N.allowZ?"Z":o.isValid?o.zone.formatOffset(o.ts,N.format):"",y=()=>h?meridiemForDateTime(o):p({hour:"numeric",hourCycle:"h12"},"dayperiod"),S=(N,O)=>h?monthForDateTime(o,N):p(O?{month:N}:{month:N,day:"numeric"},"month"),$=(N,O)=>h?weekdayForDateTime(o,N):p(O?{weekday:N}:{weekday:N,month:"long",day:"numeric"},"weekday"),E=N=>{let O=Er.macroTokenToFormatOpts(N);return O?this.formatWithSystemDefault(o,O):N},A=N=>h?eraForDateTime(o,N):p({era:N},"era"),T=N=>{switch(N){case"S":return this.num(o.millisecond);case"u":case"SSS":return this.num(o.millisecond,3);case"s":return this.num(o.second);case"ss":return this.num(o.second,2);case"uu":return this.num(Math.floor(o.millisecond/10),2);case"uuu":return this.num(Math.floor(o.millisecond/100));case"m":return this.num(o.minute);case"mm":return this.num(o.minute,2);case"h":return this.num(o.hour%12==0?12:o.hour%12);case"hh":return this.num(o.hour%12==0?12:o.hour%12,2);case"H":return this.num(o.hour);case"HH":return this.num(o.hour,2);case"Z":return _({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return _({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return _({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return o.zone.offsetName(o.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return o.zone.offsetName(o.ts,{format:"long",locale:this.loc.locale});case"z":return o.zoneName;case"a":return y();case"d":return m?p({day:"numeric"},"day"):this.num(o.day);case"dd":return m?p({day:"2-digit"},"day"):this.num(o.day,2);case"c":return this.num(o.weekday);case"ccc":return $("short",!0);case"cccc":return $("long",!0);case"ccccc":return $("narrow",!0);case"E":return this.num(o.weekday);case"EEE":return $("short",!1);case"EEEE":return $("long",!1);case"EEEEE":return $("narrow",!1);case"L":return m?p({month:"numeric",day:"numeric"},"month"):this.num(o.month);case"LL":return m?p({month:"2-digit",day:"numeric"},"month"):this.num(o.month,2);case"LLL":return S("short",!0);case"LLLL":return S("long",!0);case"LLLLL":return S("narrow",!0);case"M":return m?p({month:"numeric"},"month"):this.num(o.month);case"MM":return m?p({month:"2-digit"},"month"):this.num(o.month,2);case"MMM":return S("short",!1);case"MMMM":return S("long",!1);case"MMMMM":return S("narrow",!1);case"y":return m?p({year:"numeric"},"year"):this.num(o.year);case"yy":return m?p({year:"2-digit"},"year"):this.num(o.year.toString().slice(-2),2);case"yyyy":return m?p({year:"numeric"},"year"):this.num(o.year,4);case"yyyyyy":return m?p({year:"numeric"},"year"):this.num(o.year,6);case"G":return A("short");case"GG":return A("long");case"GGGGG":return A("narrow");case"kk":return this.num(o.weekYear.toString().slice(-2),2);case"kkkk":return this.num(o.weekYear,4);case"W":return this.num(o.weekNumber);case"WW":return this.num(o.weekNumber,2);case"n":return this.num(o.localWeekNumber);case"nn":return this.num(o.localWeekNumber,2);case"ii":return this.num(o.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(o.localWeekYear,4);case"o":return this.num(o.ordinal);case"ooo":return this.num(o.ordinal,3);case"q":return this.num(o.quarter);case"qq":return this.num(o.quarter,2);case"X":return this.num(Math.floor(o.ts/1e3));case"x":return this.num(o.ts);default:return E(N)}};return stringifyTokens(Er.parseFormat(u),T)}formatDurationFromString(o,u){let h=this.opts.signMode==="negativeLargestOnly"?-1:1,m=E=>{switch(E[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},p=(E,A)=>T=>{let N=m(T);if(N){let O=A.isNegativeDuration&&N!==A.largestUnit?h:1,C;return C=this.opts.signMode==="negativeLargestOnly"&&N!==A.largestUnit?"never":this.opts.signMode==="all"?"always":"auto",this.num(E.get(N)*O,T.length,C)}else return T},_=Er.parseFormat(u),y=_.reduce((E,{literal:A,val:T})=>A?E:E.concat(T),[]),S=o.shiftTo(...y.map(m).filter(E=>E)),$={isNegativeDuration:S<0,largestUnit:Object.keys(S.values)[0]};return stringifyTokens(_,p(S,$))}};const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...r){let o=r.reduce((u,h)=>u+h.source,"");return RegExp(`^${o}$`)}function combineExtractors(...r){return o=>r.reduce(([u,h,m],p)=>{let[_,y,S]=p(o,m);return[{...u,..._},y||h,S]},[{},null,1]).slice(0,2)}function parse$7(r,...o){if(r==null)return[null,null];for(let[u,h]of o){let m=u.exec(r);if(m)return h(m)}return[null,null]}function simpleParse(...r){return(o,u)=>{let h={},m;for(m=0;m<r.length;m++)h[r[m]]=parseInteger(o[u+m]);return[h,null,u+m]}}const offsetRegex=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone=`(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`),isoTimeExtensionRegex=RegExp(`(?:[Tt]${isoTimeRegex.source})?`),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse("weekYear","weekNumber","weekDay"),extractISOOrdinalData=simpleParse("year","ordinal"),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`),sqlTimeExtensionRegex=RegExp(`(?: ${sqlTimeRegex.source})?`);function int(r,o,u){let h=r[o];return isUndefined(h)?u:parseInteger(h)}function extractISOYmd(r,o){return[{year:int(r,o),month:int(r,o+1,1),day:int(r,o+2,1)},null,o+3]}function extractISOTime(r,o){return[{hours:int(r,o,0),minutes:int(r,o+1,0),seconds:int(r,o+2,0),milliseconds:parseMillis(r[o+3])},null,o+4]}function extractISOOffset(r,o){let u=!r[o]&&!r[o+1],h=signedOffset(r[o+1],r[o+2]),m=u?null:FixedOffsetZone.instance(h);return[{},m,o+3]}function extractIANAZone(r,o){let u=r[o]?IANAZone.create(r[o]):null;return[{},u,o+1]}const isoTimeOnly=RegExp(`^T?${isoTimeBaseRegex.source}$`),isoDuration=/^-?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)?)?)$/;function extractISODuration(r){let[o,u,h,m,p,_,y,S,$]=r,E=o[0]==="-",A=S&&S[0]==="-",T=(N,O=!1)=>N!==void 0&&(O||N&&E)?-N:N;return[{years:T(parseFloating(u)),months:T(parseFloating(h)),weeks:T(parseFloating(m)),days:T(parseFloating(p)),hours:T(parseFloating(_)),minutes:T(parseFloating(y)),seconds:T(parseFloating(S),S==="-0"),milliseconds:T(parseMillis($),A)}]}const obsOffsets={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};function fromStrings(r,o,u,h,m,p,_){let y={year:o.length===2?untruncateYear(parseInteger(o)):parseInteger(o),month:monthsShort.indexOf(u)+1,day:parseInteger(h),hour:parseInteger(m),minute:parseInteger(p)};return _&&(y.second=parseInteger(_)),r&&(y.weekday=r.length>3?weekdaysLong.indexOf(r)+1:weekdaysShort.indexOf(r)+1),y}const rfc2822=/^(?:(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)))$/;function extractRFC2822(r){let[,o,u,h,m,p,_,y,S,$,E,A]=r,T=fromStrings(o,m,h,u,p,_,y),N;return N=S?obsOffsets[S]:$?0:signedOffset(E,A),[T,new FixedOffsetZone(N)]}function preprocessRFC2822(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const rfc1123=/^(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$/,rfc850=/^(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$/,ascii=/^(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})$/;function extractRFC1123Or850(r){let[,o,u,h,m,p,_,y]=r;return[fromStrings(o,m,h,u,p,_,y),FixedOffsetZone.utcInstance]}function extractASCII(r){let[,o,u,h,m,p,_,y]=r;return[fromStrings(o,y,u,h,m,p,_),FixedOffsetZone.utcInstance]}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(r){return parse$7(r,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(r){return parse$7(preprocessRFC2822(r),[rfc2822,extractRFC2822])}function parseHTTPDate(r){return parse$7(r,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(r){return parse$7(r,[isoDuration,extractISODuration])}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(r){return parse$7(r,[isoTimeOnly,extractISOTimeOnly])}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(r){return parse$7(r,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}const INVALID$2="Invalid Duration",lowOrderMatrix={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}},casualMatrix={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},...lowOrderMatrix},daysInYearAccurate=146097/400,daysInMonthAccurate=146097/4800,accurateMatrix={years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:daysInYearAccurate*24,minutes:daysInYearAccurate*24*60,seconds:daysInYearAccurate*24*60*60,milliseconds:daysInYearAccurate*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:daysInYearAccurate*24/4,minutes:daysInYearAccurate*24*60/4,seconds:daysInYearAccurate*24*60*60/4,milliseconds:daysInYearAccurate*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:daysInMonthAccurate*24,minutes:daysInMonthAccurate*24*60,seconds:daysInMonthAccurate*24*60*60,milliseconds:daysInMonthAccurate*24*60*60*1e3},...lowOrderMatrix},orderedUnits$1=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits=orderedUnits$1.slice(0).reverse();function clone$1(r,o,u=!1){let h={values:u?o.values:{...r.values,...o.values||{}},loc:r.loc.clone(o.loc),conversionAccuracy:o.conversionAccuracy||r.conversionAccuracy,matrix:o.matrix||r.matrix};return new Duration(h)}function durationToMillis(r,o){let u=o.milliseconds??0;for(let h of reverseUnits.slice(1))o[h]&&(u+=o[h]*r[h].milliseconds);return u}function normalizeValues(r,o){let u=durationToMillis(r,o)<0?-1:1;orderedUnits$1.reduceRight((h,m)=>{if(isUndefined(o[m]))return h;if(h){let p=o[h]*u,_=r[m][h],y=Math.floor(p/_);o[m]+=y*u,o[h]-=y*_*u}return m},null),orderedUnits$1.reduce((h,m)=>{if(isUndefined(o[m]))return h;if(h){let p=o[h]%1;o[h]-=p,o[m]+=p*r[h][m]}return m},null)}function removeZeroes(r){let o={};for(let[u,h]of Object.entries(r))h!==0&&(o[u]=h);return o}var Duration=class qt{constructor(o){let u=o.conversionAccuracy==="longterm"||!1,h=u?accurateMatrix:casualMatrix;o.matrix&&(h=o.matrix),this.values=o.values,this.loc=o.loc||Locale.create(),this.conversionAccuracy=u?"longterm":"casual",this.invalid=o.invalid||null,this.matrix=h,this.isLuxonDuration=!0}static fromMillis(o,u){return qt.fromObject({milliseconds:o},u)}static fromObject(o,u={}){if(typeof o!="object"||!o)throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${o===null?"null":typeof o}`);return new qt({values:normalizeObject(o,qt.normalizeUnit),loc:Locale.fromObject(u),conversionAccuracy:u.conversionAccuracy,matrix:u.matrix})}static fromDurationLike(o){if(isNumber$1(o))return qt.fromMillis(o);if(qt.isDuration(o))return o;if(typeof o=="object")return qt.fromObject(o);throw new InvalidArgumentError(`Unknown duration argument ${o} of type ${typeof o}`)}static fromISO(o,u){let[h]=parseISODuration(o);return h?qt.fromObject(h,u):qt.invalid("unparsable",`the input "${o}" can't be parsed as ISO 8601`)}static fromISOTime(o,u){let[h]=parseISOTimeOnly(o);return h?qt.fromObject(h,u):qt.invalid("unparsable",`the input "${o}" can't be parsed as ISO 8601`)}static invalid(o,u=null){if(!o)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");let h=o instanceof Invalid?o:new Invalid(o,u);if(Settings.throwOnInvalid)throw new InvalidDurationError(h);return new qt({invalid:h})}static normalizeUnit(o){let u={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"}[o&&o.toLowerCase()];if(!u)throw new InvalidUnitError(o);return u}static isDuration(o){return o&&o.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(o,u={}){let h={...u,floor:u.round!==!1&&u.floor!==!1};return this.isValid?Formatter.create(this.loc,h).formatDurationFromString(this,o):INVALID$2}toHuman(o={}){if(!this.isValid)return INVALID$2;let u=o.showZeros!==!1,h=orderedUnits$1.map(m=>{let p=this.values[m];return isUndefined(p)||p===0&&!u?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...o,unit:m.slice(0,-1)}).format(p)}).filter(m=>m);return this.loc.listFormatter({type:"conjunction",style:o.listStyle||"narrow",...o}).format(h)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let o="P";return this.years!==0&&(o+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(o+=this.months+this.quarters*3+"M"),this.weeks!==0&&(o+=this.weeks+"W"),this.days!==0&&(o+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(o+="T"),this.hours!==0&&(o+=this.hours+"H"),this.minutes!==0&&(o+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(o+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),o==="P"&&(o+="T0S"),o}toISOTime(o={}){if(!this.isValid)return null;let u=this.toMillis();return u<0||u>=864e5?null:(o={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...o,includeOffset:!1},DateTime.fromMillis(u,{zone:"UTC"}).toISOTime(o))}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?durationToMillis(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(o){if(!this.isValid)return this;let u=qt.fromDurationLike(o),h={};for(let m of orderedUnits$1)(hasOwnProperty(u.values,m)||hasOwnProperty(this.values,m))&&(h[m]=u.get(m)+this.get(m));return clone$1(this,{values:h},!0)}minus(o){if(!this.isValid)return this;let u=qt.fromDurationLike(o);return this.plus(u.negate())}mapUnits(o){if(!this.isValid)return this;let u={};for(let h of Object.keys(this.values))u[h]=asNumber(o(this.values[h],h));return clone$1(this,{values:u},!0)}get(o){return this[qt.normalizeUnit(o)]}set(o){if(!this.isValid)return this;let u={...this.values,...normalizeObject(o,qt.normalizeUnit)};return clone$1(this,{values:u})}reconfigure({locale:o,numberingSystem:u,conversionAccuracy:h,matrix:m}={}){let p=this.loc.clone({locale:o,numberingSystem:u});return clone$1(this,{loc:p,matrix:m,conversionAccuracy:h})}as(o){return this.isValid?this.shiftTo(o).get(o):NaN}normalize(){if(!this.isValid)return this;let o=this.toObject();return normalizeValues(this.matrix,o),clone$1(this,{values:o},!0)}rescale(){if(!this.isValid)return this;let o=removeZeroes(this.normalize().shiftToAll().toObject());return clone$1(this,{values:o},!0)}shiftTo(...o){if(!this.isValid||o.length===0)return this;o=o.map(_=>qt.normalizeUnit(_));let u={},h={},m=this.toObject(),p;for(let _ of orderedUnits$1)if(o.indexOf(_)>=0){p=_;let y=0;for(let $ in h)y+=this.matrix[$][_]*h[$],h[$]=0;isNumber$1(m[_])&&(y+=m[_]);let S=Math.trunc(y);u[_]=S,h[_]=(y*1e3-S*1e3)/1e3}else isNumber$1(m[_])&&(h[_]=m[_]);for(let _ in h)h[_]!==0&&(u[p]+=_===p?h[_]:h[_]/this.matrix[p][_]);return normalizeValues(this.matrix,u),clone$1(this,{values:u},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let o={};for(let u of Object.keys(this.values))o[u]=this.values[u]===0?0:-this.values[u];return clone$1(this,{values:o},!0)}removeZeros(){if(!this.isValid)return this;let o=removeZeroes(this.values);return clone$1(this,{values:o},!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(o){if(!this.isValid||!o.isValid||!this.loc.equals(o.loc))return!1;function u(h,m){return h===void 0||h===0?m===void 0||m===0:h===m}for(let h of orderedUnits$1)if(!u(this.values[h],o.values[h]))return!1;return!0}};const INVALID$1="Invalid Interval";function validateStartEnd(r,o){return!r||!r.isValid?Interval.invalid("missing or invalid start"):!o||!o.isValid?Interval.invalid("missing or invalid end"):o<r?Interval.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${o.toISO()}`):null}var Interval=class xt{constructor(o){this.s=o.start,this.e=o.end,this.invalid=o.invalid||null,this.isLuxonInterval=!0}static invalid(o,u=null){if(!o)throw new InvalidArgumentError("need to specify a reason the Interval is invalid");let h=o instanceof Invalid?o:new Invalid(o,u);if(Settings.throwOnInvalid)throw new InvalidIntervalError(h);return new xt({invalid:h})}static fromDateTimes(o,u){let h=friendlyDateTime(o),m=friendlyDateTime(u);return validateStartEnd(h,m)??new xt({start:h,end:m})}static after(o,u){let h=Duration.fromDurationLike(u),m=friendlyDateTime(o);return xt.fromDateTimes(m,m.plus(h))}static before(o,u){let h=Duration.fromDurationLike(u),m=friendlyDateTime(o);return xt.fromDateTimes(m.minus(h),m)}static fromISO(o,u){let[h,m]=(o||"").split("/",2);if(h&&m){let p,_;try{p=DateTime.fromISO(h,u),_=p.isValid}catch{_=!1}let y,S;try{y=DateTime.fromISO(m,u),S=y.isValid}catch{S=!1}if(_&&S)return xt.fromDateTimes(p,y);if(_){let $=Duration.fromISO(m,u);if($.isValid)return xt.after(p,$)}else if(S){let $=Duration.fromISO(h,u);if($.isValid)return xt.before(y,$)}}return xt.invalid("unparsable",`the input "${o}" can't be parsed as ISO 8601`)}static isInterval(o){return o&&o.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):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(o="milliseconds"){return this.isValid?this.toDuration(o).get(o):NaN}count(o="milliseconds",u){if(!this.isValid)return NaN;let h=this.start.startOf(o,u),m;return m=u!=null&&u.useLocaleWeeks?this.end.reconfigure({locale:h.locale}):this.end,m=m.startOf(o,u),Math.floor(m.diff(h,o).get(o))+(m.valueOf()!==this.end.valueOf())}hasSame(o){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,o):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(o){return this.isValid?this.s>o:!1}isBefore(o){return this.isValid?this.e<=o:!1}contains(o){return this.isValid?this.s<=o&&this.e>o:!1}set({start:o,end:u}={}){return this.isValid?xt.fromDateTimes(o||this.s,u||this.e):this}splitAt(...o){if(!this.isValid)return[];let u=o.map(friendlyDateTime).filter(_=>this.contains(_)).sort((_,y)=>_.toMillis()-y.toMillis()),h=[],{s:m}=this,p=0;for(;m<this.e;){let _=u[p]||this.e,y=+_>+this.e?this.e:_;h.push(xt.fromDateTimes(m,y)),m=y,p+=1}return h}splitBy(o){let u=Duration.fromDurationLike(o);if(!this.isValid||!u.isValid||u.as("milliseconds")===0)return[];let{s:h}=this,m=1,p,_=[];for(;h<this.e;){let y=this.start.plus(u.mapUnits(S=>S*m));p=+y>+this.e?this.e:y,_.push(xt.fromDateTimes(h,p)),h=p,m+=1}return _}divideEqually(o){return this.isValid?this.splitBy(this.length()/o).slice(0,o):[]}overlaps(o){return this.e>o.s&&this.s<o.e}abutsStart(o){return this.isValid?+this.e==+o.s:!1}abutsEnd(o){return this.isValid?+o.e==+this.s:!1}engulfs(o){return this.isValid?this.s<=o.s&&this.e>=o.e:!1}equals(o){return!this.isValid||!o.isValid?!1:this.s.equals(o.s)&&this.e.equals(o.e)}intersection(o){if(!this.isValid)return this;let u=this.s>o.s?this.s:o.s,h=this.e<o.e?this.e:o.e;return u>=h?null:xt.fromDateTimes(u,h)}union(o){if(!this.isValid)return this;let u=this.s<o.s?this.s:o.s,h=this.e>o.e?this.e:o.e;return xt.fromDateTimes(u,h)}static merge(o){let[u,h]=o.sort((m,p)=>m.s-p.s).reduce(([m,p],_)=>p?p.overlaps(_)||p.abutsStart(_)?[m,p.union(_)]:[m.concat([p]),_]:[m,_],[[],null]);return h&&u.push(h),u}static xor(o){let u=null,h=0,m=[],p=o.map(S=>[{time:S.s,type:"s"},{time:S.e,type:"e"}]),_=Array.prototype.concat(...p),y=_.sort((S,$)=>S.time-$.time);for(let S of y)h+=S.type==="s"?1:-1,h===1?u=S.time:(u&&+u!=+S.time&&m.push(xt.fromDateTimes(u,S.time)),u=null);return xt.merge(m)}difference(...o){return xt.xor([this].concat(o)).map(u=>this.intersection(u)).filter(u=>u&&!u.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(o=DATE_SHORT,u={}){return this.isValid?Formatter.create(this.s.loc.clone(u),o).formatInterval(this):INVALID$1}toISO(o){return this.isValid?`${this.s.toISO(o)}/${this.e.toISO(o)}`:INVALID$1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1}toISOTime(o){return this.isValid?`${this.s.toISOTime(o)}/${this.e.toISOTime(o)}`:INVALID$1}toFormat(o,{separator:u=" – "}={}){return this.isValid?`${this.s.toFormat(o)}${u}${this.e.toFormat(o)}`:INVALID$1}toDuration(o,u){return this.isValid?this.e.diff(this.s,o,u):Duration.invalid(this.invalidReason)}mapEndpoints(o){return xt.fromDateTimes(o(this.s),o(this.e))}},Info=class{static hasDST(r=Settings.defaultZone){let o=DateTime.now().setZone(r).set({month:12});return!r.isUniversal&&o.offset!==o.set({month:6}).offset}static isValidIANAZone(r){return IANAZone.isValidZone(r)}static normalizeZone(r){return normalizeZone(r,Settings.defaultZone)}static getStartOfWeek({locale:r=null,locObj:o=null}={}){return(o||Locale.create(r)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:r=null,locObj:o=null}={}){return(o||Locale.create(r)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:r=null,locObj:o=null}={}){return(o||Locale.create(r)).getWeekendDays().slice()}static months(r="long",{locale:o=null,numberingSystem:u=null,locObj:h=null,outputCalendar:m="gregory"}={}){return(h||Locale.create(o,u,m)).months(r)}static monthsFormat(r="long",{locale:o=null,numberingSystem:u=null,locObj:h=null,outputCalendar:m="gregory"}={}){return(h||Locale.create(o,u,m)).months(r,!0)}static weekdays(r="long",{locale:o=null,numberingSystem:u=null,locObj:h=null}={}){return(h||Locale.create(o,u,null)).weekdays(r)}static weekdaysFormat(r="long",{locale:o=null,numberingSystem:u=null,locObj:h=null}={}){return(h||Locale.create(o,u,null)).weekdays(r,!0)}static meridiems({locale:r=null}={}){return Locale.create(r).meridiems()}static eras(r="short",{locale:o=null}={}){return Locale.create(o,null,"gregory").eras(r)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}};function dayDiff(r,o){let u=m=>m.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),h=u(o)-u(r);return Math.floor(Duration.fromMillis(h).as("days"))}function highOrderDiffs(r,o,u){let h=[["years",(S,$)=>$.year-S.year],["quarters",(S,$)=>$.quarter-S.quarter+($.year-S.year)*4],["months",(S,$)=>$.month-S.month+($.year-S.year)*12],["weeks",(S,$)=>{let E=dayDiff(S,$);return(E-E%7)/7}],["days",dayDiff]],m={},p=r,_,y;for(let[S,$]of h)u.indexOf(S)>=0&&(_=S,m[S]=$(r,o),y=p.plus(m),y>o?(m[S]--,r=p.plus(m),r>o&&(y=r,m[S]--,r=p.plus(m))):r=y);return[r,m,y,_]}function diff$2(r,o,u,h){let[m,p,_,y]=highOrderDiffs(r,o,u),S=o-m,$=u.filter(A=>["hours","minutes","seconds","milliseconds"].indexOf(A)>=0);$.length===0&&(_<o&&(_=m.plus({[y]:1})),_!==m&&(p[y]=(p[y]||0)+S/(_-m)));let E=Duration.fromObject(p,h);return $.length>0?Duration.fromMillis(S,h).shiftTo(...$).plus(E):E}const MISSING_FTP="missing Intl.DateTimeFormat.formatToParts support";function intUnit(r,o=u=>u){return{regex:r,deser:([u])=>o(parseDigits(u))}}const NBSP=" ",spaceOrNBSP=`[ ${NBSP}]`,spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,"g");function fixListRegex(r){return r.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(r){return r.replace(/\./g,"").replace(spaceOrNBSPRegExp," ").toLowerCase()}function oneOf(r,o){return r===null?null:{regex:RegExp(r.map(fixListRegex).join("|")),deser:([u])=>r.findIndex(h=>stripInsensitivities(u)===stripInsensitivities(h))+o}}function offset(r,o){return{regex:r,deser:([,u,h])=>signedOffset(u,h),groups:o}}function simple(r){return{regex:r,deser:([o])=>o}}function escapeToken(r){return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(r,o){let u=digitRegex(o),h=digitRegex(o,"{2}"),m=digitRegex(o,"{3}"),p=digitRegex(o,"{4}"),_=digitRegex(o,"{6}"),y=digitRegex(o,"{1,2}"),S=digitRegex(o,"{1,3}"),$=digitRegex(o,"{1,6}"),E=digitRegex(o,"{1,9}"),A=digitRegex(o,"{2,4}"),T=digitRegex(o,"{4,6}"),N=L=>({regex:RegExp(escapeToken(L.val)),deser:([w])=>w,literal:!0}),O=L=>{if(r.literal)return N(L);switch(L.val){case"G":return oneOf(o.eras("short"),0);case"GG":return oneOf(o.eras("long"),0);case"y":return intUnit($);case"yy":return intUnit(A,untruncateYear);case"yyyy":return intUnit(p);case"yyyyy":return intUnit(T);case"yyyyyy":return intUnit(_);case"M":return intUnit(y);case"MM":return intUnit(h);case"MMM":return oneOf(o.months("short",!0),1);case"MMMM":return oneOf(o.months("long",!0),1);case"L":return intUnit(y);case"LL":return intUnit(h);case"LLL":return oneOf(o.months("short",!1),1);case"LLLL":return oneOf(o.months("long",!1),1);case"d":return intUnit(y);case"dd":return intUnit(h);case"o":return intUnit(S);case"ooo":return intUnit(m);case"HH":return intUnit(h);case"H":return intUnit(y);case"hh":return intUnit(h);case"h":return intUnit(y);case"mm":return intUnit(h);case"m":return intUnit(y);case"q":return intUnit(y);case"qq":return intUnit(h);case"s":return intUnit(y);case"ss":return intUnit(h);case"S":return intUnit(S);case"SSS":return intUnit(m);case"u":return simple(E);case"uu":return simple(y);case"uuu":return intUnit(u);case"a":return oneOf(o.meridiems(),0);case"kkkk":return intUnit(p);case"kk":return intUnit(A,untruncateYear);case"W":return intUnit(y);case"WW":return intUnit(h);case"E":case"c":return intUnit(u);case"EEE":return oneOf(o.weekdays("short",!1),1);case"EEEE":return oneOf(o.weekdays("long",!1),1);case"ccc":return oneOf(o.weekdays("short",!0),1);case"cccc":return oneOf(o.weekdays("long",!0),1);case"Z":case"ZZ":return offset(RegExp(`([+-]${y.source})(?::(${h.source}))?`),2);case"ZZZ":return offset(RegExp(`([+-]${y.source})(${h.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return N(L)}},C=O(r)||{invalidReason:MISSING_FTP};return C.token=r,C}const partTypeStyleToTokenVal={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"}};function tokenForPart(r,o,u){let{type:h,value:m}=r;if(h==="literal"){let S=/^\s+$/.test(m);return{literal:!S,val:S?" ":m}}let p=o[h],_=h;h==="hour"&&(_=o.hour12==null?o.hourCycle==null?u.hour12?"hour12":"hour24":o.hourCycle==="h11"||o.hourCycle==="h12"?"hour12":"hour24":o.hour12?"hour12":"hour24");let y=partTypeStyleToTokenVal[_];if(typeof y=="object"&&(y=y[p]),y)return{literal:!1,val:y}}function buildRegex(r){return[`^${r.map(u=>u.regex).reduce((u,h)=>`${u}(${h.source})`,"")}$`,r]}function match(r,o,u){let h=r.match(o);if(h){let m={},p=1;for(let _ in u)if(hasOwnProperty(u,_)){let y=u[_],S=y.groups?y.groups+1:1;!y.literal&&y.token&&(m[y.token.val[0]]=y.deser(h.slice(p,p+S))),p+=S}return[h,m]}else return[h,{}]}function dateTimeFromMatches(r){let o=p=>{switch(p){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}},u=null,h;return isUndefined(r.z)||(u=IANAZone.create(r.z)),isUndefined(r.Z)||(u||(u=new FixedOffsetZone(r.Z)),h=r.Z),isUndefined(r.q)||(r.M=(r.q-1)*3+1),isUndefined(r.h)||(r.h<12&&r.a===1?r.h+=12:r.h===12&&r.a===0&&(r.h=0)),r.G===0&&r.y&&(r.y=-r.y),isUndefined(r.u)||(r.S=parseMillis(r.u)),[Object.keys(r).reduce((p,_)=>{let y=o(_);return y&&(p[y]=r[_]),p},{}),u,h]}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime.fromMillis(1555555555555)),dummyDateTimeCache}function maybeExpandMacroToken(r,o){if(r.literal)return r;let u=Formatter.macroTokenToFormatOpts(r.val),h=formatOptsToTokens(u,o);return h==null||h.includes(void 0)?r:h}function expandMacroTokens(r,o){return Array.prototype.concat(...r.map(u=>maybeExpandMacroToken(u,o)))}var TokenParser=class{constructor(r,o){if(this.locale=r,this.format=o,this.tokens=expandMacroTokens(Formatter.parseFormat(o),r),this.units=this.tokens.map(u=>unitForToken(u,r)),this.disqualifyingUnit=this.units.find(u=>u.invalidReason),!this.disqualifyingUnit){let[u,h]=buildRegex(this.units);this.regex=RegExp(u,"i"),this.handlers=h}}explainFromTokens(r){if(this.isValid){let[o,u]=match(r,this.regex,this.handlers),[h,m,p]=u?dateTimeFromMatches(u):[null,null,void 0];if(hasOwnProperty(u,"a")&&hasOwnProperty(u,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:r,tokens:this.tokens,regex:this.regex,rawMatches:o,matches:u,result:h,zone:m,specificOffset:p}}else return{input:r,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function explainFromTokens(r,o,u){return new TokenParser(r,u).explainFromTokens(o)}function parseFromTokens(r,o,u){let{result:h,zone:m,specificOffset:p,invalidReason:_}=explainFromTokens(r,o,u);return[h,m,p,_]}function formatOptsToTokens(r,o){if(!r)return null;let u=Formatter.create(o,r),h=u.dtFormatter(getDummyDateTime()),m=h.formatToParts(),p=h.resolvedOptions();return m.map(_=>tokenForPart(_,r,p))}const INVALID="Invalid DateTime",MAX_DATE=864e13;function unsupportedZone(r){return new Invalid("unsupported zone",`the zone "${r.name}" is not supported`)}function possiblyCachedWeekData(r){return r.weekData===null&&(r.weekData=gregorianToWeek(r.c)),r.weekData}function possiblyCachedLocalWeekData(r){return r.localWeekData===null&&(r.localWeekData=gregorianToWeek(r.c,r.loc.getMinDaysInFirstWeek(),r.loc.getStartOfWeek())),r.localWeekData}function clone(r,o){let u={ts:r.ts,zone:r.zone,c:r.c,o:r.o,loc:r.loc,invalid:r.invalid};return new DateTime({...u,...o,old:u})}function fixOffset(r,o,u){let h=r-o*60*1e3,m=u.offset(h);if(o===m)return[h,o];h-=(m-o)*60*1e3;let p=u.offset(h);return m===p?[h,m]:[r-Math.min(m,p)*60*1e3,Math.max(m,p)]}function tsToObj(r,o){r+=o*60*1e3;let u=new Date(r);return{year:u.getUTCFullYear(),month:u.getUTCMonth()+1,day:u.getUTCDate(),hour:u.getUTCHours(),minute:u.getUTCMinutes(),second:u.getUTCSeconds(),millisecond:u.getUTCMilliseconds()}}function objToTS(r,o,u){return fixOffset(objToLocalTS(r),o,u)}function adjustTime(r,o){let u=r.o,h=r.c.year+Math.trunc(o.years),m=r.c.month+Math.trunc(o.months)+Math.trunc(o.quarters)*3,p={...r.c,year:h,month:m,day:Math.min(r.c.day,daysInMonth(h,m))+Math.trunc(o.days)+Math.trunc(o.weeks)*7},_=Duration.fromObject({years:o.years-Math.trunc(o.years),quarters:o.quarters-Math.trunc(o.quarters),months:o.months-Math.trunc(o.months),weeks:o.weeks-Math.trunc(o.weeks),days:o.days-Math.trunc(o.days),hours:o.hours,minutes:o.minutes,seconds:o.seconds,milliseconds:o.milliseconds}).as("milliseconds"),y=objToLocalTS(p),[S,$]=fixOffset(y,u,r.zone);return _!==0&&(S+=_,$=r.zone.offset(S)),{ts:S,o:$}}function parseDataToDateTime(r,o,u,h,m,p){let{setZone:_,zone:y}=u;if(r&&Object.keys(r).length!==0||o){let S=o||y,$=DateTime.fromObject(r,{...u,zone:S,specificOffset:p});return _?$:$.setZone(y)}else return DateTime.invalid(new Invalid("unparsable",`the input "${m}" can't be parsed as ${h}`))}function toTechFormat(r,o,u=!0){return r.isValid?Formatter.create(Locale.create("en-US"),{allowZ:u,forceSimple:!0}).formatDateTimeFromString(r,o):null}function toISODate(r,o,u){let h=r.c.year>9999||r.c.year<0,m="";if(h&&r.c.year>=0&&(m+="+"),m+=padStart(r.c.year,h?6:4),u==="year")return m;if(o){if(m+="-",m+=padStart(r.c.month),u==="month")return m;m+="-"}else if(m+=padStart(r.c.month),u==="month")return m;return m+=padStart(r.c.day),m}function toISOTime(r,o,u,h,m,p,_){let y=!u||r.c.millisecond!==0||r.c.second!==0,S="";switch(_){case"day":case"month":case"year":break;default:if(S+=padStart(r.c.hour),_==="hour")break;if(o){if(S+=":",S+=padStart(r.c.minute),_==="minute")break;y&&(S+=":",S+=padStart(r.c.second))}else{if(S+=padStart(r.c.minute),_==="minute")break;y&&(S+=padStart(r.c.second))}if(_==="second")break;y&&(!h||r.c.millisecond!==0)&&(S+=".",S+=padStart(r.c.millisecond,3))}return m&&(r.isOffsetFixed&&r.offset===0&&!p?S+="Z":r.o<0?(S+="-",S+=padStart(Math.trunc(-r.o/60)),S+=":",S+=padStart(Math.trunc(-r.o%60))):(S+="+",S+=padStart(Math.trunc(r.o/60)),S+=":",S+=padStart(Math.trunc(r.o%60)))),p&&(S+="["+r.zone.ianaName+"]"),S}const defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(r){let o={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"}[r.toLowerCase()];if(!o)throw new InvalidUnitError(r);return o}function normalizeUnitWithLocalWeeks(r){switch(r.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(r)}}function guessOffsetForZone(r){if(zoneOffsetTs===void 0&&(zoneOffsetTs=Settings.now()),r.type!=="iana")return r.offset(zoneOffsetTs);let o=r.name,u=zoneOffsetGuessCache.get(o);return u===void 0&&(u=r.offset(zoneOffsetTs),zoneOffsetGuessCache.set(o,u)),u}function quickDT(r,o){let u=normalizeZone(o.zone,Settings.defaultZone);if(!u.isValid)return DateTime.invalid(unsupportedZone(u));let h=Locale.fromObject(o),m,p;if(isUndefined(r.year))m=Settings.now();else{for(let S of orderedUnits)isUndefined(r[S])&&(r[S]=defaultUnitValues[S]);let _=hasInvalidGregorianData(r)||hasInvalidTimeData(r);if(_)return DateTime.invalid(_);let y=guessOffsetForZone(u);[m,p]=objToTS(r,y,u)}return new DateTime({ts:m,zone:u,loc:h,o:p})}function diffRelative(r,o,u){let h=isUndefined(u.round)?!0:u.round,m=isUndefined(u.rounding)?"trunc":u.rounding,p=(y,S)=>(y=roundTo(y,h||u.calendary?0:2,u.calendary?"round":m),o.loc.clone(u).relFormatter(u).format(y,S)),_=y=>u.calendary?o.hasSame(r,y)?0:o.startOf(y).diff(r.startOf(y),y).get(y):o.diff(r,y).get(y);if(u.unit)return p(_(u.unit),u.unit);for(let y of u.units){let S=_(y);if(Math.abs(S)>=1)return p(S,y)}return p(r>o?-0:0,u.units[u.units.length-1])}function lastOpts(r){let o={},u;return r.length>0&&typeof r[r.length-1]=="object"?(o=r[r.length-1],u=Array.from(r).slice(0,r.length-1)):u=Array.from(r),[o,u]}let zoneOffsetTs;const zoneOffsetGuessCache=new Map;var DateTime=class $t{constructor(o){let u=o.zone||Settings.defaultZone,h=o.invalid||(Number.isNaN(o.ts)?new Invalid("invalid input"):null)||(u.isValid?null:unsupportedZone(u));this.ts=isUndefined(o.ts)?Settings.now():o.ts;let m=null,p=null;if(!h)if(o.old&&o.old.ts===this.ts&&o.old.zone.equals(u))[m,p]=[o.old.c,o.old.o];else{let y=isNumber$1(o.o)&&!o.old?o.o:u.offset(this.ts);m=tsToObj(this.ts,y),h=Number.isNaN(m.year)?new Invalid("invalid input"):null,m=h?null:m,p=h?null:y}this._zone=u,this.loc=o.loc||Locale.create(),this.invalid=h,this.weekData=null,this.localWeekData=null,this.c=m,this.o=p,this.isLuxonDateTime=!0}static now(){return new $t({})}static local(){let[o,u]=lastOpts(arguments),[h,m,p,_,y,S,$]=u;return quickDT({year:h,month:m,day:p,hour:_,minute:y,second:S,millisecond:$},o)}static utc(){let[o,u]=lastOpts(arguments),[h,m,p,_,y,S,$]=u;return o.zone=FixedOffsetZone.utcInstance,quickDT({year:h,month:m,day:p,hour:_,minute:y,second:S,millisecond:$},o)}static fromJSDate(o,u={}){let h=isDate(o)?o.valueOf():NaN;if(Number.isNaN(h))return $t.invalid("invalid input");let m=normalizeZone(u.zone,Settings.defaultZone);return m.isValid?new $t({ts:h,zone:m,loc:Locale.fromObject(u)}):$t.invalid(unsupportedZone(m))}static fromMillis(o,u={}){if(isNumber$1(o))return o<-MAX_DATE||o>MAX_DATE?$t.invalid("Timestamp out of range"):new $t({ts:o,zone:normalizeZone(u.zone,Settings.defaultZone),loc:Locale.fromObject(u)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof o} with value ${o}`)}static fromSeconds(o,u={}){if(isNumber$1(o))return new $t({ts:o*1e3,zone:normalizeZone(u.zone,Settings.defaultZone),loc:Locale.fromObject(u)});throw new InvalidArgumentError("fromSeconds requires a numerical input")}static fromObject(o,u={}){o||(o={});let h=normalizeZone(u.zone,Settings.defaultZone);if(!h.isValid)return $t.invalid(unsupportedZone(h));let m=Locale.fromObject(u),p=normalizeObject(o,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_,startOfWeek:y}=usesLocalWeekValues(p,m),S=Settings.now(),$=isUndefined(u.specificOffset)?h.offset(S):u.specificOffset,E=!isUndefined(p.ordinal),A=!isUndefined(p.year),T=!isUndefined(p.month)||!isUndefined(p.day),N=A||T,O=p.weekYear||p.weekNumber;if((N||E)&&O)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(T&&E)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");let C=O||p.weekday&&!N,L,w,I=tsToObj(S,$);C?(L=orderedWeekUnits,w=defaultWeekUnitValues,I=gregorianToWeek(I,_,y)):E?(L=orderedOrdinalUnits,w=defaultOrdinalUnitValues,I=gregorianToOrdinal(I)):(L=orderedUnits,w=defaultUnitValues);let D=!1;for(let Ee of L){let ge=p[Ee];isUndefined(ge)?D?p[Ee]=w[Ee]:p[Ee]=I[Ee]:D=!0}let F=C?hasInvalidWeekData(p,_,y):E?hasInvalidOrdinalData(p):hasInvalidGregorianData(p),k=F||hasInvalidTimeData(p);if(k)return $t.invalid(k);let ie=C?weekToGregorian(p,_,y):E?ordinalToGregorian(p):p,[fe,pe]=objToTS(ie,$,h),Se=new $t({ts:fe,zone:h,o:pe,loc:m});return p.weekday&&N&&o.weekday!==Se.weekday?$t.invalid("mismatched weekday",`you can't specify both a weekday of ${p.weekday} and a date of ${Se.toISO()}`):Se.isValid?Se:$t.invalid(Se.invalid)}static fromISO(o,u={}){let[h,m]=parseISODate(o);return parseDataToDateTime(h,m,u,"ISO 8601",o)}static fromRFC2822(o,u={}){let[h,m]=parseRFC2822Date(o);return parseDataToDateTime(h,m,u,"RFC 2822",o)}static fromHTTP(o,u={}){let[h,m]=parseHTTPDate(o);return parseDataToDateTime(h,m,u,"HTTP",u)}static fromFormat(o,u,h={}){if(isUndefined(o)||isUndefined(u))throw new InvalidArgumentError("fromFormat requires an input string and a format");let{locale:m=null,numberingSystem:p=null}=h,_=Locale.fromOpts({locale:m,numberingSystem:p,defaultToEN:!0}),[y,S,$,E]=parseFromTokens(_,o,u);return E?$t.invalid(E):parseDataToDateTime(y,S,h,`format ${u}`,o,$)}static fromString(o,u,h={}){return $t.fromFormat(o,u,h)}static fromSQL(o,u={}){let[h,m]=parseSQL(o);return parseDataToDateTime(h,m,u,"SQL",o)}static invalid(o,u=null){if(!o)throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");let h=o instanceof Invalid?o:new Invalid(o,u);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(h);return new $t({invalid:h})}static isDateTime(o){return o&&o.isLuxonDateTime||!1}static parseFormatForOpts(o,u={}){let h=formatOptsToTokens(o,Locale.fromObject(u));return h?h.map(m=>m?m.val:null).join(""):null}static expandFormat(o,u={}){return expandMacroTokens(Formatter.parseFormat(o),Locale.fromObject(u)).map(m=>m.val).join("")}static resetCache(){zoneOffsetTs=void 0,zoneOffsetGuessCache.clear()}get(o){return this[o]}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?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.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 o=864e5,u=6e4,h=objToLocalTS(this.c),m=this.zone.offset(h-o),p=this.zone.offset(h+o),_=this.zone.offset(h-m*u),y=this.zone.offset(h-p*u);if(_===y)return[this];let S=h-_*u,$=h-y*u,E=tsToObj(S,_),A=tsToObj($,y);return E.hour===A.hour&&E.minute===A.minute&&E.second===A.second&&E.millisecond===A.millisecond?[clone(this,{ts:S}),clone(this,{ts:$})]:[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(o={}){let{locale:u,numberingSystem:h,calendar:m}=Formatter.create(this.loc.clone(o),o).resolvedOptions(this);return{locale:u,numberingSystem:h,outputCalendar:m}}toUTC(o=0,u={}){return this.setZone(FixedOffsetZone.instance(o),u)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(o,{keepLocalTime:u=!1,keepCalendarTime:h=!1}={}){if(o=normalizeZone(o,Settings.defaultZone),o.equals(this.zone))return this;if(o.isValid){let m=this.ts;if(u||h){let p=o.offset(this.ts),_=this.toObject();[m]=objToTS(_,p,o)}return clone(this,{ts:m,zone:o})}else return $t.invalid(unsupportedZone(o))}reconfigure({locale:o,numberingSystem:u,outputCalendar:h}={}){let m=this.loc.clone({locale:o,numberingSystem:u,outputCalendar:h});return clone(this,{loc:m})}setLocale(o){return this.reconfigure({locale:o})}set(o){if(!this.isValid)return this;let u=normalizeObject(o,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:h,startOfWeek:m}=usesLocalWeekValues(u,this.loc),p=!isUndefined(u.weekYear)||!isUndefined(u.weekNumber)||!isUndefined(u.weekday),_=!isUndefined(u.ordinal),y=!isUndefined(u.year),S=!isUndefined(u.month)||!isUndefined(u.day),$=y||S,E=u.weekYear||u.weekNumber;if(($||_)&&E)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(S&&_)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");let A;p?A=weekToGregorian({...gregorianToWeek(this.c,h,m),...u},h,m):isUndefined(u.ordinal)?(A={...this.toObject(),...u},isUndefined(u.day)&&(A.day=Math.min(daysInMonth(A.year,A.month),A.day))):A=ordinalToGregorian({...gregorianToOrdinal(this.c),...u});let[T,N]=objToTS(A,this.o,this.zone);return clone(this,{ts:T,o:N})}plus(o){if(!this.isValid)return this;let u=Duration.fromDurationLike(o);return clone(this,adjustTime(this,u))}minus(o){if(!this.isValid)return this;let u=Duration.fromDurationLike(o).negate();return clone(this,adjustTime(this,u))}startOf(o,{useLocaleWeeks:u=!1}={}){if(!this.isValid)return this;let h={},m=Duration.normalizeUnit(o);switch(m){case"years":h.month=1;case"quarters":case"months":h.day=1;case"weeks":case"days":h.hour=0;case"hours":h.minute=0;case"minutes":h.second=0;case"seconds":h.millisecond=0;break}if(m==="weeks")if(u){let p=this.loc.getStartOfWeek(),{weekday:_}=this;_<p&&(h.weekNumber=this.weekNumber-1),h.weekday=p}else h.weekday=1;if(m==="quarters"){let p=Math.ceil(this.month/3);h.month=(p-1)*3+1}return this.set(h)}endOf(o,u){return this.isValid?this.plus({[o]:1}).startOf(o,u).minus(1):this}toFormat(o,u={}){return this.isValid?Formatter.create(this.loc.redefaultToEN(u)).formatDateTimeFromString(this,o):INVALID}toLocaleString(o=DATE_SHORT,u={}){return this.isValid?Formatter.create(this.loc.clone(u),o).formatDateTime(this):INVALID}toLocaleParts(o={}){return this.isValid?Formatter.create(this.loc.clone(o),o).formatDateTimeParts(this):[]}toISO({format:o="extended",suppressSeconds:u=!1,suppressMilliseconds:h=!1,includeOffset:m=!0,extendedZone:p=!1,precision:_="milliseconds"}={}){if(!this.isValid)return null;_=normalizeUnit(_);let y=o==="extended",S=toISODate(this,y,_);return orderedUnits.indexOf(_)>=3&&(S+="T"),S+=toISOTime(this,y,u,h,m,p,_),S}toISODate({format:o="extended",precision:u="day"}={}){return this.isValid?toISODate(this,o==="extended",normalizeUnit(u)):null}toISOWeekDate(){return toTechFormat(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:o=!1,suppressSeconds:u=!1,includeOffset:h=!0,includePrefix:m=!1,extendedZone:p=!1,format:_="extended",precision:y="milliseconds"}={}){return this.isValid?(y=normalizeUnit(y),(m&&orderedUnits.indexOf(y)>=3?"T":"")+toISOTime(this,_==="extended",u,o,h,p,y)):null}toRFC2822(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset:o=!0,includeZone:u=!1,includeOffsetSpace:h=!0}={}){let m="HH:mm:ss.SSS";return(u||o)&&(h&&(m+=" "),u?m+="z":o&&(m+="ZZ")),toTechFormat(this,m,!0)}toSQL(o={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(o)}`:null}toString(){return this.isValid?this.toISO():INVALID}[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(o={}){if(!this.isValid)return{};let u={...this.c};return o.includeConfig&&(u.outputCalendar=this.outputCalendar,u.numberingSystem=this.loc.numberingSystem,u.locale=this.loc.locale),u}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(o,u="milliseconds",h={}){if(!this.isValid||!o.isValid)return Duration.invalid("created by diffing an invalid DateTime");let m={locale:this.locale,numberingSystem:this.numberingSystem,...h},p=maybeArray(u).map(Duration.normalizeUnit),_=o.valueOf()>this.valueOf(),y=_?this:o,S=_?o:this,$=diff$2(y,S,p,m);return _?$.negate():$}diffNow(o="milliseconds",u={}){return this.diff($t.now(),o,u)}until(o){return this.isValid?Interval.fromDateTimes(this,o):this}hasSame(o,u,h){if(!this.isValid)return!1;let m=o.valueOf(),p=this.setZone(o.zone,{keepLocalTime:!0});return p.startOf(u,h)<=m&&m<=p.endOf(u,h)}equals(o){return this.isValid&&o.isValid&&this.valueOf()===o.valueOf()&&this.zone.equals(o.zone)&&this.loc.equals(o.loc)}toRelative(o={}){if(!this.isValid)return null;let u=o.base||$t.fromObject({},{zone:this.zone}),h=o.padding?this<u?-o.padding:o.padding:0,m=["years","months","days","hours","minutes","seconds"],p=o.unit;return Array.isArray(o.unit)&&(m=o.unit,p=void 0),diffRelative(u,this.plus(h),{...o,numeric:"always",units:m,unit:p})}toRelativeCalendar(o={}){return this.isValid?diffRelative(o.base||$t.fromObject({},{zone:this.zone}),this,{...o,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...o){if(!o.every($t.isDateTime))throw new InvalidArgumentError("min requires all arguments be DateTimes");return bestBy(o,u=>u.valueOf(),Math.min)}static max(...o){if(!o.every($t.isDateTime))throw new InvalidArgumentError("max requires all arguments be DateTimes");return bestBy(o,u=>u.valueOf(),Math.max)}static fromFormatExplain(o,u,h={}){let{locale:m=null,numberingSystem:p=null}=h,_=Locale.fromOpts({locale:m,numberingSystem:p,defaultToEN:!0});return explainFromTokens(_,o,u)}static fromStringExplain(o,u,h={}){return $t.fromFormatExplain(o,u,h)}static buildFormatParser(o,u={}){let{locale:h=null,numberingSystem:m=null}=u,p=Locale.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0});return new TokenParser(p,o)}static fromFormatParser(o,u,h={}){if(isUndefined(o)||isUndefined(u))throw new InvalidArgumentError("fromFormatParser requires an input string and a format parser");let{locale:m=null,numberingSystem:p=null}=h,_=Locale.fromOpts({locale:m,numberingSystem:p,defaultToEN:!0});if(!_.equals(u.locale))throw new InvalidArgumentError(`fromFormatParser called with a locale of ${_}, but the format parser was created for ${u.locale}`);let{result:y,zone:S,specificOffset:$,invalidReason:E}=u.explainFromTokens(o);return E?$t.invalid(E):parseDataToDateTime(y,S,h,`format ${u.format}`,o,$)}static get DATE_SHORT(){return DATE_SHORT}static get DATE_MED(){return DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return DATE_FULL}static get DATE_HUGE(){return DATE_HUGE}static get TIME_SIMPLE(){return TIME_SIMPLE}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS}};function friendlyDateTime(r){if(DateTime.isDateTime(r))return r;if(r&&r.valueOf&&isNumber$1(r.valueOf()))return DateTime.fromJSDate(r);if(r&&typeof r=="object")return DateTime.fromObject(r);throw new InvalidArgumentError(`Unknown datetime argument: ${r}, of type ${typeof r}`)}var require_dayjs_min=__commonJSMin((r,o)=>{(function(u,h){typeof r=="object"&&o!==void 0?o.exports=h():typeof define=="function"&&define.amd?define(h):(u=typeof globalThis<"u"?globalThis:u||self).dayjs=h()})(r,function(){var u=1e3,h=6e4,m=36e5,p="millisecond",_="second",y="minute",S="hour",$="day",E="week",A="month",T="quarter",N="year",O="date",C="Invalid Date",L=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var q=["th","st","nd","rd"],R=U%100;return"["+U+(q[(R-20)%10]||q[R]||q[0])+"]"}},D=function(U,q,R){var B=String(U);return!B||B.length>=q?U:""+Array(q+1-B.length).join(R)+U},F={s:D,z:function(U){var q=-U.utcOffset(),R=Math.abs(q),B=Math.floor(R/60),ue=R%60;return(q<=0?"+":"-")+D(B,2,"0")+":"+D(ue,2,"0")},m:function U(q,R){if(q.date()<R.date())return-U(R,q);var B=12*(R.year()-q.year())+(R.month()-q.month()),ue=q.clone().add(B,A),ce=R-ue<0,K=q.clone().add(B+(ce?-1:1),A);return+(-(B+(R-ue)/(ce?ue-K:K-ue))||0)},a:function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},p:function(U){return{M:A,y:N,w:E,d:$,D:O,h:S,m:y,s:_,ms:p,Q:T}[U]||String(U||"").toLowerCase().replace(/s$/,"")},u:function(U){return U===void 0}},k="en",ie={};ie[k]=I;var fe="$isDayjsObject",pe=function(U){return U instanceof J||!(!U||!U[fe])},Se=function U(q,R,B){var ue;if(!q)return k;if(typeof q=="string"){var ce=q.toLowerCase();ie[ce]&&(ue=ce),R&&(ie[ce]=R,ue=ce);var K=q.split("-");if(!ue&&K.length>1)return U(K[0])}else{var Q=q.name;ie[Q]=q,ue=Q}return!B&&ue&&(k=ue),ue||!B&&k},Ee=function(U,q){if(pe(U))return U.clone();var R=typeof q=="object"?q:{};return R.date=U,R.args=arguments,new J(R)},ge=F;ge.l=Se,ge.i=pe,ge.w=function(U,q){return Ee(U,{locale:q.$L,utc:q.$u,x:q.$x,$offset:q.$offset})};var J=function(){function U(R){this.$L=Se(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[fe]=!0}var q=U.prototype;return q.parse=function(R){this.$d=function(B){var ue=B.date,ce=B.utc;if(ue===null)return new Date(NaN);if(ge.u(ue))return new Date;if(ue instanceof Date)return new Date(ue);if(typeof ue=="string"&&!/Z$/i.test(ue)){var K=ue.match(L);if(K){var Q=K[2]-1||0,Y=(K[7]||"0").substring(0,3);return ce?new Date(Date.UTC(K[1],Q,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)):new Date(K[1],Q,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)}}return new Date(ue)}(R),this.init()},q.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},q.$utils=function(){return ge},q.isValid=function(){return this.$d.toString()!==C},q.isSame=function(R,B){var ue=Ee(R);return this.startOf(B)<=ue&&ue<=this.endOf(B)},q.isAfter=function(R,B){return Ee(R)<this.startOf(B)},q.isBefore=function(R,B){return this.endOf(B)<Ee(R)},q.$g=function(R,B,ue){return ge.u(R)?this[B]:this.set(ue,R)},q.unix=function(){return Math.floor(this.valueOf()/1e3)},q.valueOf=function(){return this.$d.getTime()},q.startOf=function(R,B){var ue=this,ce=!!ge.u(B)||B,K=ge.p(R),Q=function(Pe,ke){var Ge=ge.w(ue.$u?Date.UTC(ue.$y,ke,Pe):new Date(ue.$y,ke,Pe),ue);return ce?Ge:Ge.endOf($)},Y=function(Pe,ke){return ge.w(ue.toDate()[Pe].apply(ue.toDate("s"),(ce?[0,0,0,0]:[23,59,59,999]).slice(ke)),ue)},me=this.$W,Oe=this.$M,Me=this.$D,Re="set"+(this.$u?"UTC":"");switch(K){case N:return ce?Q(1,0):Q(31,11);case A:return ce?Q(1,Oe):Q(0,Oe+1);case E:var xe=this.$locale().weekStart||0,Ae=(me<xe?me+7:me)-xe;return Q(ce?Me-Ae:Me+(6-Ae),Oe);case $:case O:return Y(Re+"Hours",0);case S:return Y(Re+"Minutes",1);case y:return Y(Re+"Seconds",2);case _:return Y(Re+"Milliseconds",3);default:return this.clone()}},q.endOf=function(R){return this.startOf(R,!1)},q.$set=function(R,B){var ue,ce=ge.p(R),K="set"+(this.$u?"UTC":""),Q=(ue={},ue[$]=K+"Date",ue[O]=K+"Date",ue[A]=K+"Month",ue[N]=K+"FullYear",ue[S]=K+"Hours",ue[y]=K+"Minutes",ue[_]=K+"Seconds",ue[p]=K+"Milliseconds",ue)[ce],Y=ce===$?this.$D+(B-this.$W):B;if(ce===A||ce===N){var me=this.clone().set(O,1);me.$d[Q](Y),me.init(),this.$d=me.set(O,Math.min(this.$D,me.daysInMonth())).$d}else Q&&this.$d[Q](Y);return this.init(),this},q.set=function(R,B){return this.clone().$set(R,B)},q.get=function(R){return this[ge.p(R)]()},q.add=function(R,B){var ue,ce=this;R=Number(R);var K=ge.p(B),Q=function(Oe){var Me=Ee(ce);return ge.w(Me.date(Me.date()+Math.round(Oe*R)),ce)};if(K===A)return this.set(A,this.$M+R);if(K===N)return this.set(N,this.$y+R);if(K===$)return Q(1);if(K===E)return Q(7);var Y=(ue={},ue[y]=h,ue[S]=m,ue[_]=u,ue)[K]||1,me=this.$d.getTime()+R*Y;return ge.w(me,this)},q.subtract=function(R,B){return this.add(-1*R,B)},q.format=function(R){var B=this,ue=this.$locale();if(!this.isValid())return ue.invalidDate||C;var ce=R||"YYYY-MM-DDTHH:mm:ssZ",K=ge.z(this),Q=this.$H,Y=this.$m,me=this.$M,Oe=ue.weekdays,Me=ue.months,Re=ue.meridiem,xe=function(ke,Ge,Ye,Ce){return ke&&(ke[Ge]||ke(B,ce))||Ye[Ge].slice(0,Ce)},Ae=function(ke){return ge.s(Q%12||12,ke,"0")},Pe=Re||function(ke,Ge,Ye){var Ce=ke<12?"AM":"PM";return Ye?Ce.toLowerCase():Ce};return ce.replace(w,function(ke,Ge){return Ge||function(Ye){switch(Ye){case"YY":return String(B.$y).slice(-2);case"YYYY":return ge.s(B.$y,4,"0");case"M":return me+1;case"MM":return ge.s(me+1,2,"0");case"MMM":return xe(ue.monthsShort,me,Me,3);case"MMMM":return xe(Me,me);case"D":return B.$D;case"DD":return ge.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return xe(ue.weekdaysMin,B.$W,Oe,2);case"ddd":return xe(ue.weekdaysShort,B.$W,Oe,3);case"dddd":return Oe[B.$W];case"H":return String(Q);case"HH":return ge.s(Q,2,"0");case"h":return Ae(1);case"hh":return Ae(2);case"a":return Pe(Q,Y,!0);case"A":return Pe(Q,Y,!1);case"m":return String(Y);case"mm":return ge.s(Y,2,"0");case"s":return String(B.$s);case"ss":return ge.s(B.$s,2,"0");case"SSS":return ge.s(B.$ms,3,"0");case"Z":return K}return null}(ke)||K.replace(":","")})},q.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},q.diff=function(R,B,ue){var ce,K=this,Q=ge.p(B),Y=Ee(R),me=(Y.utcOffset()-this.utcOffset())*h,Oe=this-Y,Me=function(){return ge.m(K,Y)};switch(Q){case N:ce=Me()/12;break;case A:ce=Me();break;case T:ce=Me()/3;break;case E:ce=(Oe-me)/6048e5;break;case $:ce=(Oe-me)/864e5;break;case S:ce=Oe/m;break;case y:ce=Oe/h;break;case _:ce=Oe/u;break;default:ce=Oe}return ue?ce:ge.a(ce)},q.daysInMonth=function(){return this.endOf(A).$D},q.$locale=function(){return ie[this.$L]},q.locale=function(R,B){if(!R)return this.$L;var ue=this.clone(),ce=Se(R,B,!0);return ce&&(ue.$L=ce),ue},q.clone=function(){return ge.w(this.$d,this)},q.toDate=function(){return new Date(this.valueOf())},q.toJSON=function(){return this.isValid()?this.toISOString():null},q.toISOString=function(){return this.$d.toISOString()},q.toString=function(){return this.$d.toUTCString()},U}(),ae=J.prototype;return Ee.prototype=ae,[["$ms",p],["$s",_],["$m",y],["$H",S],["$W",$],["$M",A],["$y",N],["$D",O]].forEach(function(U){ae[U[1]]=function(q){return this.$g(q,U[0],U[1])}}),Ee.extend=function(U,q){return U.$i||(U(q,J,Ee),U.$i=!0),Ee},Ee.locale=Se,Ee.isDayjs=pe,Ee.unix=function(U){return Ee(1e3*U)},Ee.en=ie[k],Ee.Ls=ie,Ee.p={},Ee})});const isInstanceOf$1=(r,o,u)=>{var h;return u!==void 0&&r instanceof u||u!==void 0&&typeof u[Symbol.hasInstance]=="function"&&u[Symbol.hasInstance](r)?!0:typeof r=="object"&&r?((h=r.constructor)==null?void 0:h.name)===o:!1},isLuxonDateTime$1=r=>r instanceof DateTime?!0:typeof r!="object"||!r||!("isLuxonDateTime"in r)?!1:r.isLuxonDateTime===!0,isPlainObject=r=>typeof r=="object"&&!!r&&!Array.isArray(r),isDateObjectUnits=r=>{if(!isPlainObject(r))return!1;let o=Object.keys(r);if(o.length===0)return!1;let u=["year","month","day","ordinal","weekYear","localWeekYear","weekNumber","localWeekNumber","weekday","localWeekday","hour","minute","second","millisecond"];return o.filter(m=>!u.includes(m)).length>0?!1:o.every(m=>{let p=r[m];return typeof p=="number"||p===void 0})};var import_dayjs_min=__toESM(require_dayjs_min());Settings.defaultZone="utc",Settings.defaultLocale="en",Settings.defaultWeekSettings={firstDay:7,minimalDays:4,weekend:[6,7]},Settings.throwOnInvalid=!1;const removeComments=r=>(r=r.replace(/\/\/.*$/gm,""),r=r.replace(/\/\*[\s\S]*?\*\//g,""),r),extractFunctionBody=r=>{let o=r.toString();if(o.includes("[native code]"))throw Error("Cannot extract body from native function");let u=removeComments(o),h=u.match(/^\s*(?:async\s+)?(?:\([^)]*\)|[^=]+)\s*=>\s*(.+)$/s);if(h&&!h[1].trim().startsWith("{")){let N=h[1].trim().replace(/;?\s*$/,"");if(N.startsWith("(")&&N.endsWith(")")){let O=N.slice(1,-1).trim();if(O.startsWith("{")&&O.endsWith("}"))return`return ${O}`}return`return ${N}`}let m=0,p=!1,_="",y=!1,S=!1,$=-1,E=-1;for(let[N,O]of Array.from(u).entries()){if(S){S=!1;continue}if(O==="\\"){S=!0;continue}if(!p&&!y){if(O==='"'||O==="'"){p=!0,_=O;continue}if(O==="`"){y=!0;continue}}else if(p&&O===_){p=!1;continue}else if(y&&O==="`"){y=!1;continue}if(!p&&!y){if(O==="{")$===-1&&($=N),m++;else if(O==="}"&&(m--,m===0&&$!==-1)){E=N;break}}}if($===-1||E===-1||$>=E)throw Error("Unable to extract function body - no valid braces found");let A=u.slice($+1,E).trim();if(/\breturn\b/.test(A))return A;let T=u.slice(0,$).trim();return(T.endsWith("=>")||T.endsWith("=> (")||T.endsWith("=>("))&&/^\s*(?:[a-zA-Z_$][\w$]*\s*:|["'`][^"'`]+["'`]\s*:|get\s+|set\s+|\[)/.test(A)?`return {${A}}`:`return ${A}`},compileCallback=r=>{try{return Function("dt","helpers",r)}catch(o){throw Error(`Failed to compile callback: ${o instanceof Error?o.message:String(o)}`)}},messages$2={"datetime.base":"{{#label}} must be a datetime value","datetime.exactly":"{{#label}} must be a datetime exactly equal to {{#limit}}","datetime.equals":"{{#label}} must be a datetime equal to {{#limit}}","datetime.after":"{{#label}} must be a datetime after {{#limit}}","datetime.greater":"{{#label}} must be a datetime after {{#limit}}","datetime.before":"{{#label}} must be a datetime before {{#limit}}","datetime.less":"{{#label}} must be a datetime before {{#limit}}","datetime.afterOrEqual":"{{#label}} must be a datetime after or equal to {{#limit}}","datetime.min":"{{#label}} must be a datetime after or equal to {{#limit}}","datetime.beforeOrEqual":"{{#label}} must be a datetime before or equal to {{#limit}}","datetime.max":"{{#label}} must be a datetime before or equal to {{#limit}}","datetime.weekend":"{{#label}} is not a weekend","datetime.weekday":"{{#label}} is not a weekday"},compare$12=(r,o,u)=>{switch(r=toDateTime(r),o=toDateTime(o),u){case"===":return r.equals(o);case"=":return r.hasSame(o,"millisecond");case">":return r>o;case"<":return r<o;case">=":return r>=o;case"<=":return r<=o;default:return!1}},backToDateTime=r=>r instanceof DateTime?r:DateTime.fromObject(r.c,{zone:r.zone}).setLocale(r.loc.locale),toDateTime=(r,o)=>{if(isLuxonDateTime$1(r))return r instanceof DateTime?r:backToDateTime(r);if(isInstanceOf$1(r,"Date",Date))return DateTime.fromJSDate(r);if(isInstanceOf$1(r,"Dayjs")||import_dayjs_min.default.isDayjs(r))return DateTime.fromJSDate(r.toDate());if(isDateObjectUnits(r))return DateTime.fromObject(r,{zone:"utc"});if(typeof r=="number"){let u=(0,import_dayjs_min.default)(r);if(u.isValid())return DateTime.fromJSDate(u.toDate(),{zone:"utc"})}if(typeof r=="string"){let u=DateTime.fromISO(r,{setZone:!0});if(u.isValid)return u;let h=[DateTime.fromRFC2822,DateTime.fromHTTP,DateTime.fromSQL];for(let p of h){let _=p(r,{zone:"utc"});if(_.isValid)return _}let m=(0,import_dayjs_min.default)(r);if(m.isValid())return DateTime.fromJSDate(m.toDate(),{zone:"utc"})}return!1},coerce$2=(r,o)=>{let u=r==null,h=o.schema._flags.presence==="required";if(u&&!h)return{value:null};if(u&&h)return{value:r,errors:[o.error("any.required",{label:o.schema._flags.label})]};let m=toDateTime(r);if(m){let{schema:p,prefs:_}=o;if(_.convert){let y=m;if(p._flags.setZone&&Array.isArray(p._flags.setZone))if(Array.isArray(p._flags.setZone[0]))Array.from(p._flags.setZone).forEach(S=>{if(!S)return;let[$,E]=Array.from(S);switch($){case"utc":case"UTC":y=y.toUTC();break;case"local":y=y.toLocal();break;default:y=y.setZone($,E);break}});else{let[S,$]=Array.from(p._flags.setZone);switch(S){case"utc":case"UTC":y=y.toUTC();break;case"local":y=y.toLocal();break;default:y=y.setZone(S,$);break}}if(p._flags.setLocale&&(y=y.setLocale(p._flags.setLocale)),p._flags.toFormat){if(Array.isArray(p._flags.toFormat)){let S=Array.from(p._flags.toFormat),$=S.shift(),E=S.map(A=>typeof A=="string"&&A.includes("return")?compileCallback(A)(y,o):A);y=y[$](...E)}else if(typeof p._flags.toFormat=="string")if(p._flags.toFormat.includes("return")){let S=compileCallback(p._flags.toFormat),$=S(y,o);y=y.toFormat($)}else y=y.toFormat(p._flags.toFormat)}return{value:y}}return{value:m}}return{value:r,errors:[o.error("datetime.base",{value:String(r)})]}},datetime=function(r){return{type:"datetime",base:r.any(),coerce:{from:["string","number","date","object"],method:coerce$2},rules:{compare:{method:!1,validate(o,u,{limit:h},{name:m,operator:p}){let _=toDateTime(o),y=toDateTime(h);return!_||!y?u.error("datetime.base",{value:isLuxonDateTime$1(o)?o.toLocaleString(DateTime.DATETIME_MED):String(o)}):compare$12(_,y,p)?o:u.error("datetime."+m,{limit:y.toLocaleString(DateTime.DATETIME_MED),value:_.toLocaleString(DateTime.DATETIME_MED)})},args:[{name:"limit",ref:!0,assert:o=>isLuxonDateTime$1(toDateTime(o)),message:"must be a datetime"}]},exactly:{method(o){return this.$_addRule({name:"exactly",method:"compare",args:{limit:o},operator:"==="})}},equals:{method(o){return this.$_addRule({name:"equals",method:"compare",args:{limit:o},operator:"="})}},after:{method(o){return this.$_addRule({name:"after",method:"compare",args:{limit:o},operator:">"})}},greater:{method(o){return this.$_addRule({name:"greater",method:"compare",args:{limit:o},operator:">"})}},before:{method(o){return this.$_addRule({name:"before",method:"compare",args:{limit:o},operator:"<"})}},less:{method(o){return this.$_addRule({name:"less",method:"compare",args:{limit:o},operator:"<"})}},afterOrEqual:{method(o){return this.$_addRule({name:"afterOrEqual",method:"compare",args:{limit:o},operator:">="})}},min:{method(o){return this.$_addRule({name:"min",method:"compare",args:{limit:o},operator:">="})}},beforeOrEqual:{method(o){return this.$_addRule({name:"beforeOrEqual",method:"compare",args:{limit:o},operator:"<="})}},max:{method(o){return this.$_addRule({name:"max",method:"compare",args:{limit:o},operator:"<="})}},weekend:{method(){return this.$_addRule({name:"weekend"})},validate(o,u){let h=toDateTime(o);return h.isWeekend?o:u.error("datetime.weekend",{value:h.toLocaleString(DateTime.DATE_MED)})}},weekday:{method(){return this.$_addRule({name:"weekday"})},validate(o,u){let h=toDateTime(o);return h.isWeekend?u.error("datetime.weekday",{value:h.toLocaleString(DateTime.DATE_MED)}):o}},toUTC:{method(){return this.$_setFlag("setZone",["utc"])}},toLocal:{method(){return this.$_setFlag("setZone",["local"])}},setZone:{method(o,u){return this.$_setFlag("setZone",[o,u])}},toFormat:{method(o){let u=typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",u,{clone:!0})}},toLocalizedString:{method(o){let u=typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",["toLocaleString",u],{clone:!0})}},toISO:{method(o){let u=o&&typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",u?["toISO",u]:["toISO"],{clone:!0})}},toISODate:{method(o){let u=o&&typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",u?["toISODate",u]:["toISODate"],{clone:!0})}},toISOWeekDate:{method(){return this.$_setFlag("toFormat",["toISOWeekDate"],{clone:!0})}},toISOTime:{method(o){let u=o&&typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",u?["toISOTime",u]:["toISOTime"],{clone:!0})}},toRFC2822:{method(){return this.$_setFlag("toFormat",["toRFC2822"],{clone:!0})}},toHTTP:{method(){return this.$_setFlag("toFormat",["toHTTP"],{clone:!0})}},toSQLDate:{method(){return this.$_setFlag("toFormat",["toSQLDate"],{clone:!0})}},toSQLTime:{method(o){let u=o&&typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",u?["toSQLTime",u]:["toSQLTime"],{clone:!0})}},toSQL:{method(o){let u=o&&typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",u?["toSQL",u]:["toSQL"],{clone:!0})}},toMillis:{method(){return this.$_setFlag("toFormat",["toMillis"],{clone:!0})}},toSeconds:{method(){return this.$_setFlag("toFormat",["toSeconds"],{clone:!0})}},toUnixInteger:{method(){return this.$_setFlag("toFormat",["toUnixInteger"],{clone:!0})}},toJSON:{method(){return this.$_setFlag("toFormat",["toJSON"],{clone:!0})}},toBSON:{method(){return this.$_setFlag("toFormat",["toBSON"],{clone:!0})}},toObject:{method(o){let u=typeof o=="function"?extractFunctionBody(o):(o==null?void 0:o.includeConfig)===void 0?{includeConfig:!1}:{includeConfig:o.includeConfig};return this.$_setFlag("toFormat",["toObject",u],{clone:!0})}},toJSDate:{method(){return this.$_setFlag("toFormat",["toJSDate"],{clone:!0})}},toRelative:{method(o){let u=o&&typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",u?["toRelative",u]:["toRelative"],{clone:!0})}},setLocale:{method(o){return this.$_setFlag("setLocale",o)}}},messages:messages$2}},generate=(r,o,u)=>(o.$_root=r,!o._definition.args||!u.length?o:o._definition.args(o,...u)),knownMessages={"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}","any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed","array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value","binary.base":"{{#label}} must be a buffer or a string","binary.length":"{{#label}} must be {{#limit}} bytes","binary.max":"{{#label}} must be less than or equal to {{#limit}} bytes","binary.min":"{{#label}} must be at least {{#limit}} bytes","boolean.base":"{{#label}} must be a boolean","date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds","function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}","object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}","number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number","string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters","symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}",...messages$1,...messages$2,...messages,...knexMessages,...fqdnMessages};countries.forEach((r,o)=>{knownMessages[`country.${o}`]=r});let globalI18nCallback;const i18n=r=>{let o=r,u=Object.assign({},o),h=u.types(),m=new Map;Object.entries(knownMessages).forEach(([_,y])=>{m.set(_,y)});let p=_=>{globalI18nCallback=_;let y=$=>{if(globalI18nCallback)try{let E=globalI18nCallback($);if(typeof E=="string")return E}catch{}return m.get($)||$},S=($,E)=>$.messages({"any.custom":y("any.custom"),"any.default":y("any.default"),"any.failover":y("any.failover"),"any.invalid":y("any.invalid"),"any.only":y("any.only"),"any.ref":y("any.ref"),"any.required":y("any.required"),"any.unknown":y("any.unknown"),...E});Object.defineProperty(o,"$i18n",{value:$=>y($),writable:!1,enumerable:!0,configurable:!0}),Object.keys(h).forEach($=>{let E=$;if(typeof o[E]!="function")return;let A=o[E]();o[E]=(...T)=>{let N=generate(o,A,T),O=Object.fromEntries(Object.entries(knexMessages).map(([C])=>[C,y(C)]));switch($){case"alternatives":return S(N,{"alternatives.all":y("alternatives.all"),"alternatives.any":y("alternatives.any"),"alternatives.match":y("alternatives.match"),"alternatives.one":y("alternatives.one"),"alternatives.types":y("alternatives.types"),...O});case"any":return S(N,{"any.custom":y("any.custom"),"any.default":y("any.default"),"any.failover":y("any.failover"),"any.invalid":y("any.invalid"),"any.only":y("any.only"),"any.ref":y("any.ref"),"any.required":y("any.required"),"any.unknown":y("any.unknown"),...O});case"array":return S(N,{"array.base":y("array.base"),"array.excludes":y("array.excludes"),"array.hasKnown":y("array.hasKnown"),"array.hasUnknown":y("array.hasUnknown"),"array.includes":y("array.includes"),"array.includesRequiredBoth":y("array.includesRequiredBoth"),"array.includesRequiredKnowns":y("array.includesRequiredKnowns"),"array.includesRequiredUnknowns":y("array.includesRequiredUnknowns"),"array.length":y("array.length"),"array.max":y("array.max"),"array.min":y("array.min"),"array.orderedLength":y("array.orderedLength"),"array.sort":y("array.sort"),"array.sort.mismatching":y("array.sort.mismatching"),"array.sort.unsupported":y("array.sort.unsupported"),"array.sparse":y("array.sparse"),"array.unique":y("array.unique"),...O});case"binary":return S(N,{"binary.base":y("binary.base"),"binary.length":y("binary.length"),"binary.max":y("binary.max"),"binary.min":y("binary.min"),...O});case"boolean":return S(N,{"boolean.base":y("boolean.base"),...O});case"date":return S(N,{"date.base":y("date.base"),"date.format":y("date.format"),"date.greater":y("date.greater"),"date.less":y("date.less"),"date.max":y("date.max"),"date.min":y("date.min"),"date.format.iso":y("date.format.iso"),"date.format.javascript":y("date.format.javascript"),"date.format.unix":y("date.format.unix"),...O});case"function":return S(N,{"function.arity":y("function.arity"),"function.class":y("function.class"),"function.maxArity":y("function.maxArity"),"function.minArity":y("function.minArity"),...O});case"object":case"keys":return S(N,{"object.and":y("object.and"),"object.assert":y("object.assert"),"object.base":y("object.base"),"object.instance":y("object.instance"),"object.length":y("object.length"),"object.max":y("object.max"),"object.min":y("object.min"),"object.missing":y("object.missing"),"object.nand":y("object.nand"),"object.oxor":y("object.oxor"),"object.pattern.match":y("object.pattern.match"),"object.refType":y("object.refType"),"object.regex":y("object.regex"),"object.rename.multiple":y("object.rename.multiple"),"object.rename.override":y("object.rename.override"),"object.schema":y("object.schema"),"object.unknown":y("object.unknown"),"object.with":y("object.with"),"object.without":y("object.without"),"object.xor":y("object.xor"),...O});case"number":return S(N,{"number.base":y("number.base"),"number.greater":y("number.greater"),"number.infinity":y("number.infinity"),"number.integer":y("number.integer"),"number.less":y("number.less"),"number.max":y("number.max"),"number.min":y("number.min"),"number.multiple":y("number.multiple"),"number.negative":y("number.negative"),"number.port":y("number.port"),"number.positive":y("number.positive"),"number.precision":y("number.precision"),"number.unsafe":y("number.unsafe"),...O});case"string":return S(N,{"string.alphanum":y("string.alphanum"),"string.base":y("string.base"),"string.base64":y("string.base64"),"string.creditCard":y("string.creditCard"),"string.dataUri":y("string.dataUri"),"string.domain":y("string.domain"),"string.email":y("string.email"),"string.empty":y("string.empty"),"string.guid":y("string.guid"),"string.hex":y("string.hex"),"string.hexAlign":y("string.hexAlign"),"string.hostname":y("string.hostname"),"string.ip":y("string.ip"),"string.ipVersion":y("string.ipVersion"),"string.isoDate":y("string.isoDate"),"string.isoDuration":y("string.isoDuration"),"string.length":y("string.length"),"string.lowercase":y("string.lowercase"),"string.max":y("string.max"),"string.min":y("string.min"),"string.normalize":y("string.normalize"),"string.token":y("string.token"),"string.pattern.base":y("string.pattern.base"),"string.pattern.name":y("string.pattern.name"),"string.pattern.invert.base":y("string.pattern.invert.base"),"string.pattern.invert.name":y("string.pattern.invert.name"),"string.trim":y("string.trim"),"string.uri":y("string.uri"),"string.uriCustomScheme":y("string.uriCustomScheme"),"string.uriRelativeOnly":y("string.uriRelativeOnly"),"string.uppercase":y("string.uppercase"),...fqdnMessages,...O});case"symbol":return S(N,{"symbol.base":y("symbol.base"),"symbol.map":y("symbol.map"),...O});case"bigint":return S(N,{"bigint.base":y("bigint.base"),"bigint.greater":y("bigint.greater"),"bigint.less":y("bigint.less"),"bigint.max":y("bigint.max"),"bigint.min":y("bigint.min"),"bigint.multiple":y("bigint.multiple"),"bigint.negative":y("bigint.negative"),"bigint.positive":y("bigint.positive"),...O});case"datetime":return S(N,{"datetime.base":y("datetime.base"),"datetime.exactly":y("datetime.exactly"),"datetime.equals":y("datetime.equals"),"datetime.after":y("datetime.after"),"datetime.greater":y("datetime.greater"),"datetime.before":y("datetime.before"),"datetime.less":y("datetime.less"),"datetime.afterOrEqual":y("datetime.afterOrEqual"),"datetime.min":y("datetime.min"),"datetime.beforeOrEqual":y("datetime.beforeOrEqual"),"datetime.max":y("datetime.max"),"datetime.weekend":y("datetime.weekend"),"datetime.weekday":y("datetime.weekday"),...O});case"phone":return S(N,{"phone.base":y("phone.base"),"phone.invalid":y("phone.invalid"),"phone.fixedLine":y("phone.fixedLine"),"phone.mobile":y("phone.mobile"),"phone.strictFixedLine":y("phone.strictFixedLine"),"phone.strictMobile":y("phone.strictMobile"),"phone.fixedLineOrMobile":y("phone.fixedLineOrMobile"),"phone.tollFree":y("phone.tollFree"),"phone.premiumRate":y("phone.premiumRate"),"phone.sharedCost":y("phone.sharedCost"),"phone.voip":y("phone.voip"),"phone.personalNumber":y("phone.personalNumber"),"phone.pager":y("phone.pager"),"phone.uan":y("phone.uan"),"phone.voicemail":y("phone.voicemail"),"phone.unknown":y("phone.unknown"),"phone.types":y("phone.types"),...O});default:return S(N,{...O})}}})};return Object.defineProperty(o,"$setI18n",{value:_=>(p(_),o),writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(o,"$clearI18n",{value:()=>(p(),o),writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(o,"$i18n",{value:_=>{try{return m.get(_)||_}catch{return _}},writable:!1,enumerable:!0,configurable:!0}),o},patch=r=>(r=json(r),r=i18n(r),r);var require_constants=__commonJSMin((r,o)=>{let u="2.0.0",h=256,m=2**53-1,p=16,_=h-6,y=["major","premajor","minor","preminor","patch","prepatch","prerelease"];o.exports={MAX_LENGTH:h,MAX_SAFE_COMPONENT_LENGTH:p,MAX_SAFE_BUILD_LENGTH:_,MAX_SAFE_INTEGER:m,RELEASE_TYPES:y,SEMVER_SPEC_VERSION:u,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}),require_debug=__commonJSMin((r,o)=>{init_dist();let u=typeof process$1$1=="object"&&process$1$1.env&&process$1$1.env.NODE_DEBUG&&/\bsemver\b/i.test(process$1$1.env.NODE_DEBUG)?(...h)=>console.error("SEMVER",...h):()=>{};o.exports=u}),require_re=__commonJSMin((r,o)=>{let{MAX_SAFE_COMPONENT_LENGTH:u,MAX_SAFE_BUILD_LENGTH:h,MAX_LENGTH:m}=require_constants(),p=require_debug();r=o.exports={};let _=r.re=[],y=r.safeRe=[],S=r.src=[],$=r.safeSrc=[],E=r.t={},A=0,T="[a-zA-Z0-9-]",N=[["\\s",1],["\\d",m],[T,h]],O=L=>{for(let[w,I]of N)L=L.split(`${w}*`).join(`${w}{0,${I}}`).split(`${w}+`).join(`${w}{1,${I}}`);return L},C=(L,w,I)=>{let D=O(w),F=A++;p(L,F,w),E[L]=F,S[F]=w,$[F]=D,_[F]=new RegExp(w,I?"g":void 0),y[F]=new RegExp(D,I?"g":void 0)};C("NUMERICIDENTIFIER","0|[1-9]\\d*"),C("NUMERICIDENTIFIERLOOSE","\\d+"),C("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${T}*`),C("MAINVERSION",`(${S[E.NUMERICIDENTIFIER]})\\.(${S[E.NUMERICIDENTIFIER]})\\.(${S[E.NUMERICIDENTIFIER]})`),C("MAINVERSIONLOOSE",`(${S[E.NUMERICIDENTIFIERLOOSE]})\\.(${S[E.NUMERICIDENTIFIERLOOSE]})\\.(${S[E.NUMERICIDENTIFIERLOOSE]})`),C("PRERELEASEIDENTIFIER",`(?:${S[E.NONNUMERICIDENTIFIER]}|${S[E.NUMERICIDENTIFIER]})`),C("PRERELEASEIDENTIFIERLOOSE",`(?:${S[E.NONNUMERICIDENTIFIER]}|${S[E.NUMERICIDENTIFIERLOOSE]})`),C("PRERELEASE",`(?:-(${S[E.PRERELEASEIDENTIFIER]}(?:\\.${S[E.PRERELEASEIDENTIFIER]})*))`),C("PRERELEASELOOSE",`(?:-?(${S[E.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${S[E.PRERELEASEIDENTIFIERLOOSE]})*))`),C("BUILDIDENTIFIER",`${T}+`),C("BUILD",`(?:\\+(${S[E.BUILDIDENTIFIER]}(?:\\.${S[E.BUILDIDENTIFIER]})*))`),C("FULLPLAIN",`v?${S[E.MAINVERSION]}${S[E.PRERELEASE]}?${S[E.BUILD]}?`),C("FULL",`^${S[E.FULLPLAIN]}$`),C("LOOSEPLAIN",`[v=\\s]*${S[E.MAINVERSIONLOOSE]}${S[E.PRERELEASELOOSE]}?${S[E.BUILD]}?`),C("LOOSE",`^${S[E.LOOSEPLAIN]}$`),C("GTLT","((?:<|>)?=?)"),C("XRANGEIDENTIFIERLOOSE",`${S[E.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),C("XRANGEIDENTIFIER",`${S[E.NUMERICIDENTIFIER]}|x|X|\\*`),C("XRANGEPLAIN",`[v=\\s]*(${S[E.XRANGEIDENTIFIER]})(?:\\.(${S[E.XRANGEIDENTIFIER]})(?:\\.(${S[E.XRANGEIDENTIFIER]})(?:${S[E.PRERELEASE]})?${S[E.BUILD]}?)?)?`),C("XRANGEPLAINLOOSE",`[v=\\s]*(${S[E.XRANGEIDENTIFIERLOOSE]})(?:\\.(${S[E.XRANGEIDENTIFIERLOOSE]})(?:\\.(${S[E.XRANGEIDENTIFIERLOOSE]})(?:${S[E.PRERELEASELOOSE]})?${S[E.BUILD]}?)?)?`),C("XRANGE",`^${S[E.GTLT]}\\s*${S[E.XRANGEPLAIN]}$`),C("XRANGELOOSE",`^${S[E.GTLT]}\\s*${S[E.XRANGEPLAINLOOSE]}$`),C("COERCEPLAIN",`(^|[^\\d])(\\d{1,${u}})(?:\\.(\\d{1,${u}}))?(?:\\.(\\d{1,${u}}))?`),C("COERCE",`${S[E.COERCEPLAIN]}(?:$|[^\\d])`),C("COERCEFULL",S[E.COERCEPLAIN]+`(?:${S[E.PRERELEASE]})?(?:${S[E.BUILD]})?(?:$|[^\\d])`),C("COERCERTL",S[E.COERCE],!0),C("COERCERTLFULL",S[E.COERCEFULL],!0),C("LONETILDE","(?:~>?)"),C("TILDETRIM",`(\\s*)${S[E.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",C("TILDE",`^${S[E.LONETILDE]}${S[E.XRANGEPLAIN]}$`),C("TILDELOOSE",`^${S[E.LONETILDE]}${S[E.XRANGEPLAINLOOSE]}$`),C("LONECARET","(?:\\^)"),C("CARETTRIM",`(\\s*)${S[E.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",C("CARET",`^${S[E.LONECARET]}${S[E.XRANGEPLAIN]}$`),C("CARETLOOSE",`^${S[E.LONECARET]}${S[E.XRANGEPLAINLOOSE]}$`),C("COMPARATORLOOSE",`^${S[E.GTLT]}\\s*(${S[E.LOOSEPLAIN]})$|^$`),C("COMPARATOR",`^${S[E.GTLT]}\\s*(${S[E.FULLPLAIN]})$|^$`),C("COMPARATORTRIM",`(\\s*)${S[E.GTLT]}\\s*(${S[E.LOOSEPLAIN]}|${S[E.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",C("HYPHENRANGE",`^\\s*(${S[E.XRANGEPLAIN]})\\s+-\\s+(${S[E.XRANGEPLAIN]})\\s*$`),C("HYPHENRANGELOOSE",`^\\s*(${S[E.XRANGEPLAINLOOSE]})\\s+-\\s+(${S[E.XRANGEPLAINLOOSE]})\\s*$`),C("STAR","(<|>)?=?\\s*\\*"),C("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),C("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}),require_parse_options=__commonJSMin((r,o)=>{let u=Object.freeze({loose:!0}),h=Object.freeze({}),m=p=>p?typeof p=="object"?p:u:h;o.exports=m}),require_identifiers=__commonJSMin((r,o)=>{let u=/^[0-9]+$/,h=(p,_)=>{if(typeof p=="number"&&typeof _=="number")return p===_?0:p<_?-1:1;let y=u.test(p),S=u.test(_);return y&&S&&(p=+p,_=+_),p===_?0:y&&!S?-1:S&&!y?1:p<_?-1:1},m=(p,_)=>h(_,p);o.exports={compareIdentifiers:h,rcompareIdentifiers:m}}),require_semver$1=__commonJSMin((r,o)=>{let u=require_debug(),{MAX_LENGTH:h,MAX_SAFE_INTEGER:m}=require_constants(),{safeRe:p,t:_}=require_re(),y=require_parse_options(),{compareIdentifiers:S}=require_identifiers();var $=class Ht{constructor(A,T){if(T=y(T),A instanceof Ht){if(A.loose===!!T.loose&&A.includePrerelease===!!T.includePrerelease)return A;A=A.version}else if(typeof A!="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof A}".`);if(A.length>h)throw TypeError(`version is longer than ${h} characters`);u("SemVer",A,T),this.options=T,this.loose=!!T.loose,this.includePrerelease=!!T.includePrerelease;let N=A.trim().match(T.loose?p[_.LOOSE]:p[_.FULL]);if(!N)throw TypeError(`Invalid Version: ${A}`);if(this.raw=A,this.major=+N[1],this.minor=+N[2],this.patch=+N[3],this.major>m||this.major<0)throw TypeError("Invalid major version");if(this.minor>m||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>m||this.patch<0)throw TypeError("Invalid patch version");N[4]?this.prerelease=N[4].split(".").map(O=>{if(/^[0-9]+$/.test(O)){let C=+O;if(C>=0&&C<m)return C}return O}):this.prerelease=[],this.build=N[5]?N[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(A){if(u("SemVer.compare",this.version,this.options,A),!(A instanceof Ht)){if(typeof A=="string"&&A===this.version)return 0;A=new Ht(A,this.options)}return A.version===this.version?0:this.compareMain(A)||this.comparePre(A)}compareMain(A){return A instanceof Ht||(A=new Ht(A,this.options)),this.major<A.major?-1:this.major>A.major?1:this.minor<A.minor?-1:this.minor>A.minor?1:this.patch<A.patch?-1:this.patch>A.patch?1:0}comparePre(A){if(A instanceof Ht||(A=new Ht(A,this.options)),this.prerelease.length&&!A.prerelease.length)return-1;if(!this.prerelease.length&&A.prerelease.length)return 1;if(!this.prerelease.length&&!A.prerelease.length)return 0;let T=0;do{let N=this.prerelease[T],O=A.prerelease[T];if(u("prerelease compare",T,N,O),N===void 0&&O===void 0)return 0;if(O===void 0)return 1;if(N===void 0)return-1;if(N!==O)return S(N,O)}while(++T)}compareBuild(A){A instanceof Ht||(A=new Ht(A,this.options));let T=0;do{let N=this.build[T],O=A.build[T];if(u("build compare",T,N,O),N===void 0&&O===void 0)return 0;if(O===void 0)return 1;if(N===void 0)return-1;if(N!==O)return S(N,O)}while(++T)}inc(A,T,N){if(A.startsWith("pre")){if(!T&&N===!1)throw Error("invalid increment argument: identifier is empty");if(T){let O=`-${T}`.match(this.options.loose?p[_.PRERELEASELOOSE]:p[_.PRERELEASE]);if(!O||O[1]!==T)throw Error(`invalid identifier: ${T}`)}}switch(A){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",T,N);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",T,N);break;case"prepatch":this.prerelease.length=0,this.inc("patch",T,N),this.inc("pre",T,N);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",T,N),this.inc("pre",T,N);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let O=Number(N)?1:0;if(this.prerelease.length===0)this.prerelease=[O];else{let C=this.prerelease.length;for(;--C>=0;)typeof this.prerelease[C]=="number"&&(this.prerelease[C]++,C=-2);if(C===-1){if(T===this.prerelease.join(".")&&N===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(O)}}if(T){let C=[T,O];N===!1&&(C=[T]),S(this.prerelease[0],T)===0?isNaN(this.prerelease[1])&&(this.prerelease=C):this.prerelease=C}break}default:throw Error(`invalid increment argument: ${A}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};o.exports=$}),require_parse=__commonJSMin((r,o)=>{let u=require_semver$1(),h=(m,p,_=!1)=>{if(m instanceof u)return m;try{return new u(m,p)}catch(y){if(!_)return null;throw y}};o.exports=h}),require_valid$1=__commonJSMin((r,o)=>{let u=require_parse(),h=(m,p)=>{let _=u(m,p);return _?_.version:null};o.exports=h}),require_clean=__commonJSMin((r,o)=>{let u=require_parse(),h=(m,p)=>{let _=u(m.trim().replace(/^[=v]+/,""),p);return _?_.version:null};o.exports=h}),require_inc=__commonJSMin((r,o)=>{let u=require_semver$1(),h=(m,p,_,y,S)=>{typeof _=="string"&&(S=y,y=_,_=void 0);try{return new u(m instanceof u?m.version:m,_).inc(p,y,S).version}catch{return null}};o.exports=h}),require_diff=__commonJSMin((r,o)=>{let u=require_parse(),h=(m,p)=>{let _=u(m,null,!0),y=u(p,null,!0),S=_.compare(y);if(S===0)return null;let $=S>0,E=$?_:y,A=$?y:_,T=!!E.prerelease.length;if(!!A.prerelease.length&&!T){if(!A.patch&&!A.minor)return"major";if(A.compareMain(E)===0)return A.minor&&!A.patch?"minor":"patch"}let O=T?"pre":"";return _.major===y.major?_.minor===y.minor?_.patch===y.patch?"prerelease":O+"patch":O+"minor":O+"major"};o.exports=h}),require_major=__commonJSMin((r,o)=>{let u=require_semver$1(),h=(m,p)=>new u(m,p).major;o.exports=h}),require_minor=__commonJSMin((r,o)=>{let u=require_semver$1(),h=(m,p)=>new u(m,p).minor;o.exports=h}),require_patch=__commonJSMin((r,o)=>{let u=require_semver$1(),h=(m,p)=>new u(m,p).patch;o.exports=h}),require_prerelease=__commonJSMin((r,o)=>{let u=require_parse(),h=(m,p)=>{let _=u(m,p);return _&&_.prerelease.length?_.prerelease:null};o.exports=h}),require_compare=__commonJSMin((r,o)=>{let u=require_semver$1(),h=(m,p,_)=>new u(m,_).compare(new u(p,_));o.exports=h}),require_rcompare=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p,_)=>u(p,m,_);o.exports=h}),require_compare_loose=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p)=>u(m,p,!0);o.exports=h}),require_compare_build=__commonJSMin((r,o)=>{let u=require_semver$1(),h=(m,p,_)=>{let y=new u(m,_),S=new u(p,_);return y.compare(S)||y.compareBuild(S)};o.exports=h}),require_sort=__commonJSMin((r,o)=>{let u=require_compare_build(),h=(m,p)=>m.sort((_,y)=>u(_,y,p));o.exports=h}),require_rsort=__commonJSMin((r,o)=>{let u=require_compare_build(),h=(m,p)=>m.sort((_,y)=>u(y,_,p));o.exports=h}),require_gt=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p,_)=>u(m,p,_)>0;o.exports=h}),require_lt=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p,_)=>u(m,p,_)<0;o.exports=h}),require_eq=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p,_)=>u(m,p,_)===0;o.exports=h}),require_neq=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p,_)=>u(m,p,_)!==0;o.exports=h}),require_gte=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p,_)=>u(m,p,_)>=0;o.exports=h}),require_lte=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p,_)=>u(m,p,_)<=0;o.exports=h}),require_cmp=__commonJSMin((r,o)=>{let u=require_eq(),h=require_neq(),m=require_gt(),p=require_gte(),_=require_lt(),y=require_lte(),S=($,E,A,T)=>{switch(E){case"===":return typeof $=="object"&&($=$.version),typeof A=="object"&&(A=A.version),$===A;case"!==":return typeof $=="object"&&($=$.version),typeof A=="object"&&(A=A.version),$!==A;case"":case"=":case"==":return u($,A,T);case"!=":return h($,A,T);case">":return m($,A,T);case">=":return p($,A,T);case"<":return _($,A,T);case"<=":return y($,A,T);default:throw TypeError(`Invalid operator: ${E}`)}};o.exports=S}),require_coerce=__commonJSMin((r,o)=>{let u=require_semver$1(),h=require_parse(),{safeRe:m,t:p}=require_re(),_=(y,S)=>{if(y instanceof u)return y;if(typeof y=="number"&&(y=String(y)),typeof y!="string")return null;S||(S={});let $=null;if(!S.rtl)$=y.match(S.includePrerelease?m[p.COERCEFULL]:m[p.COERCE]);else{let C=S.includePrerelease?m[p.COERCERTLFULL]:m[p.COERCERTL],L;for(;(L=C.exec(y))&&(!$||$.index+$[0].length!==y.length);)(!$||L.index+L[0].length!==$.index+$[0].length)&&($=L),C.lastIndex=L.index+L[1].length+L[2].length;C.lastIndex=-1}if($===null)return null;let E=$[2],A=$[3]||"0",T=$[4]||"0",N=S.includePrerelease&&$[5]?`-${$[5]}`:"",O=S.includePrerelease&&$[6]?`+${$[6]}`:"";return h(`${E}.${A}.${T}${N}${O}`,S)};o.exports=_}),require_lrucache=__commonJSMin((r,o)=>{var u=class{constructor(){this.max=1e3,this.map=new Map}get(h){let m=this.map.get(h);if(m!==void 0)return this.map.delete(h),this.map.set(h,m),m}delete(h){return this.map.delete(h)}set(h,m){if(!this.delete(h)&&m!==void 0){if(this.map.size>=this.max){let _=this.map.keys().next().value;this.delete(_)}this.map.set(h,m)}return this}};o.exports=u}),require_range=__commonJSMin((r,o)=>{let u=/\s+/g;var h=class Or{constructor(B,ue){if(ue=_(ue),B instanceof Or)return B.loose===!!ue.loose&&B.includePrerelease===!!ue.includePrerelease?B:new Or(B.raw,ue);if(B instanceof y)return this.raw=B.value,this.set=[[B]],this.formatted=void 0,this;if(this.options=ue,this.loose=!!ue.loose,this.includePrerelease=!!ue.includePrerelease,this.raw=B.trim().replace(u," "),this.set=this.raw.split("||").map(ce=>this.parseRange(ce.trim())).filter(ce=>ce.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let ce=this.set[0];if(this.set=this.set.filter(K=>!w(K[0])),this.set.length===0)this.set=[ce];else if(this.set.length>1){for(let K of this.set)if(K.length===1&&I(K[0])){this.set=[K];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let B=0;B<this.set.length;B++){B>0&&(this.formatted+="||");let ue=this.set[B];for(let ce=0;ce<ue.length;ce++)ce>0&&(this.formatted+=" "),this.formatted+=ue[ce].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(B){let ue=(this.options.includePrerelease&&C)|(this.options.loose&&L),ce=ue+":"+B,K=p.get(ce);if(K)return K;let Q=this.options.loose,Y=Q?E[A.HYPHENRANGELOOSE]:E[A.HYPHENRANGE];B=B.replace(Y,U(this.options.includePrerelease)),S("hyphen replace",B),B=B.replace(E[A.COMPARATORTRIM],T),S("comparator trim",B),B=B.replace(E[A.TILDETRIM],N),S("tilde trim",B),B=B.replace(E[A.CARETTRIM],O),S("caret trim",B);let me=B.split(" ").map(xe=>F(xe,this.options)).join(" ").split(/\s+/).map(xe=>ae(xe,this.options));Q&&(me=me.filter(xe=>(S("loose invalid filter",xe,this.options),!!xe.match(E[A.COMPARATORLOOSE])))),S("range list",me);let Oe=new Map,Me=me.map(xe=>new y(xe,this.options));for(let xe of Me){if(w(xe))return[xe];Oe.set(xe.value,xe)}Oe.size>1&&Oe.has("")&&Oe.delete("");let Re=[...Oe.values()];return p.set(ce,Re),Re}intersects(B,ue){if(!(B instanceof Or))throw TypeError("a Range is required");return this.set.some(ce=>D(ce,ue)&&B.set.some(K=>D(K,ue)&&ce.every(Q=>K.every(Y=>Q.intersects(Y,ue)))))}test(B){if(!B)return!1;if(typeof B=="string")try{B=new $(B,this.options)}catch{return!1}for(let ue=0;ue<this.set.length;ue++)if(q(this.set[ue],B,this.options))return!0;return!1}};o.exports=h;let m=require_lrucache(),p=new m,_=require_parse_options(),y=require_comparator(),S=require_debug(),$=require_semver$1(),{safeRe:E,t:A,comparatorTrimReplace:T,tildeTrimReplace:N,caretTrimReplace:O}=require_re(),{FLAG_INCLUDE_PRERELEASE:C,FLAG_LOOSE:L}=require_constants(),w=R=>R.value==="<0.0.0-0",I=R=>R.value==="",D=(R,B)=>{let ue=!0,ce=R.slice(),K=ce.pop();for(;ue&&ce.length;)ue=ce.every(Q=>K.intersects(Q,B)),K=ce.pop();return ue},F=(R,B)=>(R=R.replace(E[A.BUILD],""),S("comp",R,B),R=pe(R,B),S("caret",R),R=ie(R,B),S("tildes",R),R=Ee(R,B),S("xrange",R),R=J(R,B),S("stars",R),R),k=R=>!R||R.toLowerCase()==="x"||R==="*",ie=(R,B)=>R.trim().split(/\s+/).map(ue=>fe(ue,B)).join(" "),fe=(R,B)=>{let ue=B.loose?E[A.TILDELOOSE]:E[A.TILDE];return R.replace(ue,(ce,K,Q,Y,me)=>{S("tilde",R,ce,K,Q,Y,me);let Oe;return k(K)?Oe="":k(Q)?Oe=`>=${K}.0.0 <${+K+1}.0.0-0`:k(Y)?Oe=`>=${K}.${Q}.0 <${K}.${+Q+1}.0-0`:me?(S("replaceTilde pr",me),Oe=`>=${K}.${Q}.${Y}-${me} <${K}.${+Q+1}.0-0`):Oe=`>=${K}.${Q}.${Y} <${K}.${+Q+1}.0-0`,S("tilde return",Oe),Oe})},pe=(R,B)=>R.trim().split(/\s+/).map(ue=>Se(ue,B)).join(" "),Se=(R,B)=>{S("caret",R,B);let ue=B.loose?E[A.CARETLOOSE]:E[A.CARET],ce=B.includePrerelease?"-0":"";return R.replace(ue,(K,Q,Y,me,Oe)=>{S("caret",R,K,Q,Y,me,Oe);let Me;return k(Q)?Me="":k(Y)?Me=`>=${Q}.0.0${ce} <${+Q+1}.0.0-0`:k(me)?Me=Q==="0"?`>=${Q}.${Y}.0${ce} <${Q}.${+Y+1}.0-0`:`>=${Q}.${Y}.0${ce} <${+Q+1}.0.0-0`:Oe?(S("replaceCaret pr",Oe),Me=Q==="0"?Y==="0"?`>=${Q}.${Y}.${me}-${Oe} <${Q}.${Y}.${+me+1}-0`:`>=${Q}.${Y}.${me}-${Oe} <${Q}.${+Y+1}.0-0`:`>=${Q}.${Y}.${me}-${Oe} <${+Q+1}.0.0-0`):(S("no pr"),Me=Q==="0"?Y==="0"?`>=${Q}.${Y}.${me}${ce} <${Q}.${Y}.${+me+1}-0`:`>=${Q}.${Y}.${me}${ce} <${Q}.${+Y+1}.0-0`:`>=${Q}.${Y}.${me} <${+Q+1}.0.0-0`),S("caret return",Me),Me})},Ee=(R,B)=>(S("replaceXRanges",R,B),R.split(/\s+/).map(ue=>ge(ue,B)).join(" ")),ge=(R,B)=>{R=R.trim();let ue=B.loose?E[A.XRANGELOOSE]:E[A.XRANGE];return R.replace(ue,(ce,K,Q,Y,me,Oe)=>{S("xRange",R,ce,K,Q,Y,me,Oe);let Me=k(Q),Re=Me||k(Y),xe=Re||k(me),Ae=xe;return K==="="&&Ae&&(K=""),Oe=B.includePrerelease?"-0":"",Me?ce=K===">"||K==="<"?"<0.0.0-0":"*":K&&Ae?(Re&&(Y=0),me=0,K===">"?(K=">=",Re?(Q=+Q+1,Y=0,me=0):(Y=+Y+1,me=0)):K==="<="&&(K="<",Re?Q=+Q+1:Y=+Y+1),K==="<"&&(Oe="-0"),ce=`${K+Q}.${Y}.${me}${Oe}`):Re?ce=`>=${Q}.0.0${Oe} <${+Q+1}.0.0-0`:xe&&(ce=`>=${Q}.${Y}.0${Oe} <${Q}.${+Y+1}.0-0`),S("xRange return",ce),ce})},J=(R,B)=>(S("replaceStars",R,B),R.trim().replace(E[A.STAR],"")),ae=(R,B)=>(S("replaceGTE0",R,B),R.trim().replace(E[B.includePrerelease?A.GTE0PRE:A.GTE0],"")),U=R=>(B,ue,ce,K,Q,Y,me,Oe,Me,Re,xe,Ae)=>(ue=k(ce)?"":k(K)?`>=${ce}.0.0${R?"-0":""}`:k(Q)?`>=${ce}.${K}.0${R?"-0":""}`:Y?`>=${ue}`:`>=${ue}${R?"-0":""}`,Oe=k(Me)?"":k(Re)?`<${+Me+1}.0.0-0`:k(xe)?`<${Me}.${+Re+1}.0-0`:Ae?`<=${Me}.${Re}.${xe}-${Ae}`:R?`<${Me}.${Re}.${+xe+1}-0`:`<=${Oe}`,`${ue} ${Oe}`.trim()),q=(R,B,ue)=>{for(let ce=0;ce<R.length;ce++)if(!R[ce].test(B))return!1;if(B.prerelease.length&&!ue.includePrerelease){for(let ce=0;ce<R.length;ce++)if(S(R[ce].semver),R[ce].semver!==y.ANY&&R[ce].semver.prerelease.length>0){let K=R[ce].semver;if(K.major===B.major&&K.minor===B.minor&&K.patch===B.patch)return!0}return!1}return!0}}),require_comparator=__commonJSMin((r,o)=>{let u=Symbol("SemVer ANY");var h=class Dr{static get ANY(){return u}constructor(T,N){if(N=m(N),T instanceof Dr){if(T.loose===!!N.loose)return T;T=T.value}T=T.trim().split(/\s+/).join(" "),S("comparator",T,N),this.options=N,this.loose=!!N.loose,this.parse(T),this.semver===u?this.value="":this.value=this.operator+this.semver.version,S("comp",this)}parse(T){let N=this.options.loose?p[_.COMPARATORLOOSE]:p[_.COMPARATOR],O=T.match(N);if(!O)throw TypeError(`Invalid comparator: ${T}`);this.operator=O[1]===void 0?"":O[1],this.operator==="="&&(this.operator=""),O[2]?this.semver=new $(O[2],this.options.loose):this.semver=u}toString(){return this.value}test(T){if(S("Comparator.test",T,this.options.loose),this.semver===u||T===u)return!0;if(typeof T=="string")try{T=new $(T,this.options)}catch{return!1}return y(T,this.operator,this.semver,this.options)}intersects(T,N){if(!(T instanceof Dr))throw TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new E(T.value,N).test(this.value):T.operator===""?T.value===""?!0:new E(this.value,N).test(T.semver):(N=m(N),N.includePrerelease&&(this.value==="<0.0.0-0"||T.value==="<0.0.0-0")||!N.includePrerelease&&(this.value.startsWith("<0.0.0")||T.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&T.operator.startsWith(">")||this.operator.startsWith("<")&&T.operator.startsWith("<")||this.semver.version===T.semver.version&&this.operator.includes("=")&&T.operator.includes("=")||y(this.semver,"<",T.semver,N)&&this.operator.startsWith(">")&&T.operator.startsWith("<")||y(this.semver,">",T.semver,N)&&this.operator.startsWith("<")&&T.operator.startsWith(">")))}};o.exports=h;let m=require_parse_options(),{safeRe:p,t:_}=require_re(),y=require_cmp(),S=require_debug(),$=require_semver$1(),E=require_range()}),require_satisfies=__commonJSMin((r,o)=>{let u=require_range(),h=(m,p,_)=>{try{p=new u(p,_)}catch{return!1}return p.test(m)};o.exports=h}),require_to_comparators=__commonJSMin((r,o)=>{let u=require_range(),h=(m,p)=>new u(m,p).set.map(_=>_.map(y=>y.value).join(" ").trim().split(" "));o.exports=h}),require_max_satisfying=__commonJSMin((r,o)=>{let u=require_semver$1(),h=require_range(),m=(p,_,y)=>{let S=null,$=null,E=null;try{E=new h(_,y)}catch{return null}return p.forEach(A=>{E.test(A)&&(!S||$.compare(A)===-1)&&(S=A,$=new u(S,y))}),S};o.exports=m}),require_min_satisfying=__commonJSMin((r,o)=>{let u=require_semver$1(),h=require_range(),m=(p,_,y)=>{let S=null,$=null,E=null;try{E=new h(_,y)}catch{return null}return p.forEach(A=>{E.test(A)&&(!S||$.compare(A)===1)&&(S=A,$=new u(S,y))}),S};o.exports=m}),require_min_version=__commonJSMin((r,o)=>{let u=require_semver$1(),h=require_range(),m=require_gt(),p=(_,y)=>{_=new h(_,y);let S=new u("0.0.0");if(_.test(S)||(S=new u("0.0.0-0"),_.test(S)))return S;S=null;for(let $=0;$<_.set.length;++$){let E=_.set[$],A=null;E.forEach(T=>{let N=new u(T.semver.version);switch(T.operator){case">":N.prerelease.length===0?N.patch++:N.prerelease.push(0),N.raw=N.format();case"":case">=":(!A||m(N,A))&&(A=N);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${T.operator}`)}}),A&&(!S||m(S,A))&&(S=A)}return S&&_.test(S)?S:null};o.exports=p}),require_valid=__commonJSMin((r,o)=>{let u=require_range(),h=(m,p)=>{try{return new u(m,p).range||"*"}catch{return null}};o.exports=h}),require_outside=__commonJSMin((r,o)=>{let u=require_semver$1(),h=require_comparator(),{ANY:m}=h,p=require_range(),_=require_satisfies(),y=require_gt(),S=require_lt(),$=require_lte(),E=require_gte(),A=(T,N,O,C)=>{T=new u(T,C),N=new p(N,C);let L,w,I,D,F;switch(O){case">":L=y,w=$,I=S,D=">",F=">=";break;case"<":L=S,w=E,I=y,D="<",F="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(_(T,N,C))return!1;for(let k=0;k<N.set.length;++k){let ie=N.set[k],fe=null,pe=null;if(ie.forEach(Se=>{Se.semver===m&&(Se=new h(">=0.0.0")),fe||(fe=Se),pe||(pe=Se),L(Se.semver,fe.semver,C)?fe=Se:I(Se.semver,pe.semver,C)&&(pe=Se)}),fe.operator===D||fe.operator===F||(!pe.operator||pe.operator===D)&&w(T,pe.semver)||pe.operator===F&&I(T,pe.semver))return!1}return!0};o.exports=A}),require_gtr=__commonJSMin((r,o)=>{let u=require_outside(),h=(m,p,_)=>u(m,p,">",_);o.exports=h}),require_ltr=__commonJSMin((r,o)=>{let u=require_outside(),h=(m,p,_)=>u(m,p,"<",_);o.exports=h}),require_intersects=__commonJSMin((r,o)=>{let u=require_range(),h=(m,p,_)=>(m=new u(m,_),p=new u(p,_),m.intersects(p,_));o.exports=h}),require_simplify=__commonJSMin((r,o)=>{let u=require_satisfies(),h=require_compare();o.exports=(m,p,_)=>{let y=[],S=null,$=null,E=m.sort((O,C)=>h(O,C,_));for(let O of E)u(O,p,_)?($=O,S||(S=O)):($&&y.push([S,$]),$=null,S=null);S&&y.push([S,null]);let A=[];for(let[O,C]of y)O===C?A.push(O):!C&&O===E[0]?A.push("*"):C?O===E[0]?A.push(`<=${C}`):A.push(`${O} - ${C}`):A.push(`>=${O}`);let T=A.join(" || "),N=typeof p.raw=="string"?p.raw:String(p);return T.length<N.length?T:p}}),require_subset=__commonJSMin((r,o)=>{let u=require_range(),h=require_comparator(),{ANY:m}=h,p=require_satisfies(),_=require_compare(),y=(N,O,C={})=>{if(N===O)return!0;N=new u(N,C),O=new u(O,C);let L=!1;e:for(let w of N.set){for(let I of O.set){let D=E(w,I,C);if(L||(L=D!==null),D)continue e}if(L)return!1}return!0},S=[new h(">=0.0.0-0")],$=[new h(">=0.0.0")],E=(N,O,C)=>{if(N===O)return!0;if(N.length===1&&N[0].semver===m){if(O.length===1&&O[0].semver===m)return!0;N=C.includePrerelease?S:$}if(O.length===1&&O[0].semver===m){if(C.includePrerelease)return!0;O=$}let L=new Set,w,I;for(let Ee of N)Ee.operator===">"||Ee.operator===">="?w=A(w,Ee,C):Ee.operator==="<"||Ee.operator==="<="?I=T(I,Ee,C):L.add(Ee.semver);if(L.size>1)return null;let D;if(w&&I&&(D=_(w.semver,I.semver,C),D>0||D===0&&(w.operator!==">="||I.operator!=="<=")))return null;for(let Ee of L){if(w&&!p(Ee,String(w),C)||I&&!p(Ee,String(I),C))return null;for(let ge of O)if(!p(Ee,String(ge),C))return!1;return!0}let F,k,ie,fe,pe=I&&!C.includePrerelease&&I.semver.prerelease.length?I.semver:!1,Se=w&&!C.includePrerelease&&w.semver.prerelease.length?w.semver:!1;pe&&pe.prerelease.length===1&&I.operator==="<"&&pe.prerelease[0]===0&&(pe=!1);for(let Ee of O){if(fe=fe||Ee.operator===">"||Ee.operator===">=",ie=ie||Ee.operator==="<"||Ee.operator==="<=",w){if(Se&&Ee.semver.prerelease&&Ee.semver.prerelease.length&&Ee.semver.major===Se.major&&Ee.semver.minor===Se.minor&&Ee.semver.patch===Se.patch&&(Se=!1),Ee.operator===">"||Ee.operator===">="){if(F=A(w,Ee,C),F===Ee&&F!==w)return!1}else if(w.operator===">="&&!p(w.semver,String(Ee),C))return!1}if(I){if(pe&&Ee.semver.prerelease&&Ee.semver.prerelease.length&&Ee.semver.major===pe.major&&Ee.semver.minor===pe.minor&&Ee.semver.patch===pe.patch&&(pe=!1),Ee.operator==="<"||Ee.operator==="<="){if(k=T(I,Ee,C),k===Ee&&k!==I)return!1}else if(I.operator==="<="&&!p(I.semver,String(Ee),C))return!1}if(!Ee.operator&&(I||w)&&D!==0)return!1}return!(w&&ie&&!I&&D!==0||I&&fe&&!w&&D!==0||Se||pe)},A=(N,O,C)=>{if(!N)return O;let L=_(N.semver,O.semver,C);return L>0?N:L<0||O.operator===">"&&N.operator===">="?O:N},T=(N,O,C)=>{if(!N)return O;let L=_(N.semver,O.semver,C);return L<0?N:L>0||O.operator==="<"&&N.operator==="<="?O:N};o.exports=y}),require_semver=__commonJSMin((r,o)=>{let u=require_re(),h=require_constants(),m=require_semver$1(),p=require_identifiers(),_=require_parse(),y=require_valid$1(),S=require_clean(),$=require_inc(),E=require_diff(),A=require_major(),T=require_minor(),N=require_patch(),O=require_prerelease(),C=require_compare(),L=require_rcompare(),w=require_compare_loose(),I=require_compare_build(),D=require_sort(),F=require_rsort(),k=require_gt(),ie=require_lt(),fe=require_eq(),pe=require_neq(),Se=require_gte(),Ee=require_lte(),ge=require_cmp(),J=require_coerce(),ae=require_comparator(),U=require_range(),q=require_satisfies(),R=require_to_comparators(),B=require_max_satisfying(),ue=require_min_satisfying(),ce=require_min_version(),K=require_valid(),Q=require_outside(),Y=require_gtr(),me=require_ltr(),Oe=require_intersects(),Me=require_simplify(),Re=require_subset();o.exports={parse:_,valid:y,clean:S,inc:$,diff:E,major:A,minor:T,patch:N,prerelease:O,compare:C,rcompare:L,compareLoose:w,compareBuild:I,sort:D,rsort:F,gt:k,lt:ie,eq:fe,neq:pe,gte:Se,lte:Ee,cmp:ge,coerce:J,Comparator:ae,Range:U,satisfies:q,toComparators:R,maxSatisfying:B,minSatisfying:ue,minVersion:ce,validRange:K,outside:Q,gtr:Y,ltr:me,intersects:Oe,simplifyRange:Me,subset:Re,SemVer:m,re:u.re,src:u.src,tokens:u.t,SEMVER_SPEC_VERSION:h.SEMVER_SPEC_VERSION,RELEASE_TYPES:h.RELEASE_TYPES,compareIdentifiers:p.compareIdentifiers,rcompareIdentifiers:p.rcompareIdentifiers}}),u8$1=Uint8Array,u16$1=Uint16Array,i32$1=Int32Array,fleb$1=new u8$1([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fdeb$1=new u8$1([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]);new u8$1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);var freb$1=function(r,o){for(var u=new u16$1(31),h=0;h<31;++h)u[h]=o+=1<<r[h-1];for(var m=new i32$1(u[30]),h=1;h<30;++h)for(var p=u[h];p<u[h+1];++p)m[p]=p-u[h]<<5|h;return{b:u,r:m}},_a$1=freb$1(fleb$1,2),fl$1=_a$1.b,revfl$1=_a$1.r;fl$1[28]=258,revfl$1[258]=28;for(var _b$1=freb$1(fdeb$1,0),fd$1=_b$1.b,revfd$1=_b$1.r,rev$1=new u16$1(32768),i$3=0;i$3<32768;++i$3){var x$1=(i$3&43690)>>1|(i$3&21845)<<1;x$1=(x$1&52428)>>2|(x$1&13107)<<2,x$1=(x$1&61680)>>4|(x$1&3855)<<4,rev$1[i$3]=((x$1&65280)>>8|(x$1&255)<<8)>>1}for(var hMap$1=function(o,u,h){for(var m=o.length,p=0,_=new u16$1(u);p<m;++p)o[p]&&++_[o[p]-1];var y=new u16$1(u);for(p=1;p<u;++p)y[p]=y[p-1]+_[p-1]<<1;var S;if(h){S=new u16$1(1<<u);var $=15-u;for(p=0;p<m;++p)if(o[p])for(var E=p<<4|o[p],A=u-o[p],T=y[o[p]-1]++<<A,N=T|(1<<A)-1;T<=N;++T)S[rev$1[T]>>$]=E}else for(S=new u16$1(m),p=0;p<m;++p)o[p]&&(S[p]=rev$1[y[o[p]-1]++]>>15-o[p]);return S},flt$1=new u8$1(288),i$3=0;i$3<144;++i$3)flt$1[i$3]=8;for(var i$3=144;i$3<256;++i$3)flt$1[i$3]=9;for(var i$3=256;i$3<280;++i$3)flt$1[i$3]=7;for(var i$3=280;i$3<288;++i$3)flt$1[i$3]=8;for(var fdt$1=new u8$1(32),i$3=0;i$3<32;++i$3)fdt$1[i$3]=5;hMap$1(flt$1,9,0);hMap$1(flt$1,9,1);hMap$1(fdt$1,5,0);hMap$1(fdt$1,5,1);new i32$1([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]);var et$1=new u8$1(0);typeof TextEncoder<"u"&&new TextEncoder;var td$1=typeof TextDecoder<"u"&&new TextDecoder,tds$1=0;try{td$1.decode(et$1,{stream:!0}),tds$1=1}catch{}__toESM(require_semver());const Joi=RootFactory.create({schemaTypeModifiers:[knex,fqdn],shortcutsModifiers:[]}),validator=patch(Joi.extend(bigint).extend(datetime).extend(phone)),TLDS="AAA.AARP.ABB.ABBOTT.ABBVIE.ABC.ABLE.ABOGADO.ABUDHABI.AC.ACADEMY.ACCENTURE.ACCOUNTANT.ACCOUNTANTS.ACO.ACTOR.AD.ADS.ADULT.AE.AEG.AERO.AETNA.AF.AFL.AFRICA.AG.AGAKHAN.AGENCY.AI.AIG.AIRBUS.AIRFORCE.AIRTEL.AKDN.AL.ALIBABA.ALIPAY.ALLFINANZ.ALLSTATE.ALLY.ALSACE.ALSTOM.AM.AMAZON.AMERICANEXPRESS.AMERICANFAMILY.AMEX.AMFAM.AMICA.AMSTERDAM.ANALYTICS.ANDROID.ANQUAN.ANZ.AO.AOL.APARTMENTS.APP.APPLE.AQ.AQUARELLE.AR.ARAB.ARAMCO.ARCHI.ARMY.ARPA.ART.ARTE.AS.ASDA.ASIA.ASSOCIATES.AT.ATHLETA.ATTORNEY.AU.AUCTION.AUDI.AUDIBLE.AUDIO.AUSPOST.AUTHOR.AUTO.AUTOS.AW.AWS.AX.AXA.AZ.AZURE.BA.BABY.BAIDU.BANAMEX.BAND.BANK.BAR.BARCELONA.BARCLAYCARD.BARCLAYS.BAREFOOT.BARGAINS.BASEBALL.BASKETBALL.BAUHAUS.BAYERN.BB.BBC.BBT.BBVA.BCG.BCN.BD.BE.BEATS.BEAUTY.BEER.BERLIN.BEST.BESTBUY.BET.BF.BG.BH.BHARTI.BI.BIBLE.BID.BIKE.BING.BINGO.BIO.BIZ.BJ.BLACK.BLACKFRIDAY.BLOCKBUSTER.BLOG.BLOOMBERG.BLUE.BM.BMS.BMW.BN.BNPPARIBAS.BO.BOATS.BOEHRINGER.BOFA.BOM.BOND.BOO.BOOK.BOOKING.BOSCH.BOSTIK.BOSTON.BOT.BOUTIQUE.BOX.BR.BRADESCO.BRIDGESTONE.BROADWAY.BROKER.BROTHER.BRUSSELS.BS.BT.BUILD.BUILDERS.BUSINESS.BUY.BUZZ.BV.BW.BY.BZ.BZH.CA.CAB.CAFE.CAL.CALL.CALVINKLEIN.CAM.CAMERA.CAMP.CANON.CAPETOWN.CAPITAL.CAPITALONE.CAR.CARAVAN.CARDS.CARE.CAREER.CAREERS.CARS.CASA.CASE.CASH.CASINO.CAT.CATERING.CATHOLIC.CBA.CBN.CBRE.CC.CD.CENTER.CEO.CERN.CF.CFA.CFD.CG.CH.CHANEL.CHANNEL.CHARITY.CHASE.CHAT.CHEAP.CHINTAI.CHRISTMAS.CHROME.CHURCH.CI.CIPRIANI.CIRCLE.CISCO.CITADEL.CITI.CITIC.CITY.CK.CL.CLAIMS.CLEANING.CLICK.CLINIC.CLINIQUE.CLOTHING.CLOUD.CLUB.CLUBMED.CM.CN.CO.COACH.CODES.COFFEE.COLLEGE.COLOGNE.COM.COMMBANK.COMMUNITY.COMPANY.COMPARE.COMPUTER.COMSEC.CONDOS.CONSTRUCTION.CONSULTING.CONTACT.CONTRACTORS.COOKING.COOL.COOP.CORSICA.COUNTRY.COUPON.COUPONS.COURSES.CPA.CR.CREDIT.CREDITCARD.CREDITUNION.CRICKET.CROWN.CRS.CRUISE.CRUISES.CU.CUISINELLA.CV.CW.CX.CY.CYMRU.CYOU.CZ.DAD.DANCE.DATA.DATE.DATING.DATSUN.DAY.DCLK.DDS.DE.DEAL.DEALER.DEALS.DEGREE.DELIVERY.DELL.DELOITTE.DELTA.DEMOCRAT.DENTAL.DENTIST.DESI.DESIGN.DEV.DHL.DIAMONDS.DIET.DIGITAL.DIRECT.DIRECTORY.DISCOUNT.DISCOVER.DISH.DIY.DJ.DK.DM.DNP.DO.DOCS.DOCTOR.DOG.DOMAINS.DOT.DOWNLOAD.DRIVE.DTV.DUBAI.DUPONT.DURBAN.DVAG.DVR.DZ.EARTH.EAT.EC.ECO.EDEKA.EDU.EDUCATION.EE.EG.EMAIL.EMERCK.ENERGY.ENGINEER.ENGINEERING.ENTERPRISES.EPSON.EQUIPMENT.ER.ERICSSON.ERNI.ES.ESQ.ESTATE.ET.EU.EUROVISION.EUS.EVENTS.EXCHANGE.EXPERT.EXPOSED.EXPRESS.EXTRASPACE.FAGE.FAIL.FAIRWINDS.FAITH.FAMILY.FAN.FANS.FARM.FARMERS.FASHION.FAST.FEDEX.FEEDBACK.FERRARI.FERRERO.FI.FIDELITY.FIDO.FILM.FINAL.FINANCE.FINANCIAL.FIRE.FIRESTONE.FIRMDALE.FISH.FISHING.FIT.FITNESS.FJ.FK.FLICKR.FLIGHTS.FLIR.FLORIST.FLOWERS.FLY.FM.FO.FOO.FOOD.FOOTBALL.FORD.FOREX.FORSALE.FORUM.FOUNDATION.FOX.FR.FREE.FRESENIUS.FRL.FROGANS.FRONTIER.FTR.FUJITSU.FUN.FUND.FURNITURE.FUTBOL.FYI.GA.GAL.GALLERY.GALLO.GALLUP.GAME.GAMES.GAP.GARDEN.GAY.GB.GBIZ.GD.GDN.GE.GEA.GENT.GENTING.GEORGE.GF.GG.GGEE.GH.GI.GIFT.GIFTS.GIVES.GIVING.GL.GLASS.GLE.GLOBAL.GLOBO.GM.GMAIL.GMBH.GMO.GMX.GN.GODADDY.GOLD.GOLDPOINT.GOLF.GOO.GOODYEAR.GOOG.GOOGLE.GOP.GOT.GOV.GP.GQ.GR.GRAINGER.GRAPHICS.GRATIS.GREEN.GRIPE.GROCERY.GROUP.GS.GT.GU.GUCCI.GUGE.GUIDE.GUITARS.GURU.GW.GY.HAIR.HAMBURG.HANGOUT.HAUS.HBO.HDFC.HDFCBANK.HEALTH.HEALTHCARE.HELP.HELSINKI.HERE.HERMES.HIPHOP.HISAMITSU.HITACHI.HIV.HK.HKT.HM.HN.HOCKEY.HOLDINGS.HOLIDAY.HOMEDEPOT.HOMEGOODS.HOMES.HOMESENSE.HONDA.HORSE.HOSPITAL.HOST.HOSTING.HOT.HOTELS.HOTMAIL.HOUSE.HOW.HR.HSBC.HT.HU.HUGHES.HYATT.HYUNDAI.IBM.ICBC.ICE.ICU.ID.IE.IEEE.IFM.IKANO.IL.IM.IMAMAT.IMDB.IMMO.IMMOBILIEN.IN.INC.INDUSTRIES.INFINITI.INFO.ING.INK.INSTITUTE.INSURANCE.INSURE.INT.INTERNATIONAL.INTUIT.INVESTMENTS.IO.IPIRANGA.IQ.IR.IRISH.IS.ISMAILI.IST.ISTANBUL.IT.ITAU.ITV.JAGUAR.JAVA.JCB.JE.JEEP.JETZT.JEWELRY.JIO.JLL.JM.JMP.JNJ.JO.JOBS.JOBURG.JOT.JOY.JP.JPMORGAN.JPRS.JUEGOS.JUNIPER.KAUFEN.KDDI.KE.KERRYHOTELS.KERRYPROPERTIES.KFH.KG.KH.KI.KIA.KIDS.KIM.KINDLE.KITCHEN.KIWI.KM.KN.KOELN.KOMATSU.KOSHER.KP.KPMG.KPN.KR.KRD.KRED.KUOKGROUP.KW.KY.KYOTO.KZ.LA.LACAIXA.LAMBORGHINI.LAMER.LAND.LANDROVER.LANXESS.LASALLE.LAT.LATINO.LATROBE.LAW.LAWYER.LB.LC.LDS.LEASE.LECLERC.LEFRAK.LEGAL.LEGO.LEXUS.LGBT.LI.LIDL.LIFE.LIFEINSURANCE.LIFESTYLE.LIGHTING.LIKE.LILLY.LIMITED.LIMO.LINCOLN.LINK.LIVE.LIVING.LK.LLC.LLP.LOAN.LOANS.LOCKER.LOCUS.LOL.LONDON.LOTTE.LOTTO.LOVE.LPL.LPLFINANCIAL.LR.LS.LT.LTD.LTDA.LU.LUNDBECK.LUXE.LUXURY.LV.LY.MA.MADRID.MAIF.MAISON.MAKEUP.MAN.MANAGEMENT.MANGO.MAP.MARKET.MARKETING.MARKETS.MARRIOTT.MARSHALLS.MATTEL.MBA.MC.MCKINSEY.MD.ME.MED.MEDIA.MEET.MELBOURNE.MEME.MEMORIAL.MEN.MENU.MERCKMSD.MG.MH.MIAMI.MICROSOFT.MIL.MINI.MINT.MIT.MITSUBISHI.MK.ML.MLB.MLS.MM.MMA.MN.MO.MOBI.MOBILE.MODA.MOE.MOI.MOM.MONASH.MONEY.MONSTER.MORMON.MORTGAGE.MOSCOW.MOTO.MOTORCYCLES.MOV.MOVIE.MP.MQ.MR.MS.MSD.MT.MTN.MTR.MU.MUSEUM.MUSIC.MV.MW.MX.MY.MZ.NA.NAB.NAGOYA.NAME.NAVY.NBA.NC.NE.NEC.NET.NETBANK.NETFLIX.NETWORK.NEUSTAR.NEW.NEWS.NEXT.NEXTDIRECT.NEXUS.NF.NFL.NG.NGO.NHK.NI.NICO.NIKE.NIKON.NINJA.NISSAN.NISSAY.NL.NO.NOKIA.NORTON.NOW.NOWRUZ.NOWTV.NP.NR.NRA.NRW.NTT.NU.NYC.NZ.OBI.OBSERVER.OFFICE.OKINAWA.OLAYAN.OLAYANGROUP.OLLO.OM.OMEGA.ONE.ONG.ONL.ONLINE.OOO.OPEN.ORACLE.ORANGE.ORG.ORGANIC.ORIGINS.OSAKA.OTSUKA.OTT.OVH.PA.PAGE.PANASONIC.PARIS.PARS.PARTNERS.PARTS.PARTY.PAY.PCCW.PE.PET.PF.PFIZER.PG.PH.PHARMACY.PHD.PHILIPS.PHONE.PHOTO.PHOTOGRAPHY.PHOTOS.PHYSIO.PICS.PICTET.PICTURES.PID.PIN.PING.PINK.PIONEER.PIZZA.PK.PL.PLACE.PLAY.PLAYSTATION.PLUMBING.PLUS.PM.PN.PNC.POHL.POKER.POLITIE.PORN.POST.PR.PRAXI.PRESS.PRIME.PRO.PROD.PRODUCTIONS.PROF.PROGRESSIVE.PROMO.PROPERTIES.PROPERTY.PROTECTION.PRU.PRUDENTIAL.PS.PT.PUB.PW.PWC.PY.QA.QPON.QUEBEC.QUEST.RACING.RADIO.RE.READ.REALESTATE.REALTOR.REALTY.RECIPES.RED.REDUMBRELLA.REHAB.REISE.REISEN.REIT.RELIANCE.REN.RENT.RENTALS.REPAIR.REPORT.REPUBLICAN.REST.RESTAURANT.REVIEW.REVIEWS.REXROTH.RICH.RICHARDLI.RICOH.RIL.RIO.RIP.RO.ROCKS.RODEO.ROGERS.ROOM.RS.RSVP.RU.RUGBY.RUHR.RUN.RW.RWE.RYUKYU.SA.SAARLAND.SAFE.SAFETY.SAKURA.SALE.SALON.SAMSCLUB.SAMSUNG.SANDVIK.SANDVIKCOROMANT.SANOFI.SAP.SARL.SAS.SAVE.SAXO.SB.SBI.SBS.SC.SCB.SCHAEFFLER.SCHMIDT.SCHOLARSHIPS.SCHOOL.SCHULE.SCHWARZ.SCIENCE.SCOT.SD.SE.SEARCH.SEAT.SECURE.SECURITY.SEEK.SELECT.SENER.SERVICES.SEVEN.SEW.SEX.SEXY.SFR.SG.SH.SHANGRILA.SHARP.SHELL.SHIA.SHIKSHA.SHOES.SHOP.SHOPPING.SHOUJI.SHOW.SI.SILK.SINA.SINGLES.SITE.SJ.SK.SKI.SKIN.SKY.SKYPE.SL.SLING.SM.SMART.SMILE.SN.SNCF.SO.SOCCER.SOCIAL.SOFTBANK.SOFTWARE.SOHU.SOLAR.SOLUTIONS.SONG.SONY.SOY.SPA.SPACE.SPORT.SPOT.SR.SRL.SS.ST.STADA.STAPLES.STAR.STATEBANK.STATEFARM.STC.STCGROUP.STOCKHOLM.STORAGE.STORE.STREAM.STUDIO.STUDY.STYLE.SU.SUCKS.SUPPLIES.SUPPLY.SUPPORT.SURF.SURGERY.SUZUKI.SV.SWATCH.SWISS.SX.SY.SYDNEY.SYSTEMS.SZ.TAB.TAIPEI.TALK.TAOBAO.TARGET.TATAMOTORS.TATAR.TATTOO.TAX.TAXI.TC.TCI.TD.TDK.TEAM.TECH.TECHNOLOGY.TEL.TEMASEK.TENNIS.TEVA.TF.TG.TH.THD.THEATER.THEATRE.TIAA.TICKETS.TIENDA.TIPS.TIRES.TIROL.TJ.TJMAXX.TJX.TK.TKMAXX.TL.TM.TMALL.TN.TO.TODAY.TOKYO.TOOLS.TOP.TORAY.TOSHIBA.TOTAL.TOURS.TOWN.TOYOTA.TOYS.TR.TRADE.TRADING.TRAINING.TRAVEL.TRAVELERS.TRAVELERSINSURANCE.TRUST.TRV.TT.TUBE.TUI.TUNES.TUSHU.TV.TVS.TW.TZ.UA.UBANK.UBS.UG.UK.UNICOM.UNIVERSITY.UNO.UOL.UPS.US.UY.UZ.VA.VACATIONS.VANA.VANGUARD.VC.VE.VEGAS.VENTURES.VERISIGN.VERSICHERUNG.VET.VG.VI.VIAJES.VIDEO.VIG.VIKING.VILLAS.VIN.VIP.VIRGIN.VISA.VISION.VIVA.VIVO.VLAANDEREN.VN.VODKA.VOLVO.VOTE.VOTING.VOTO.VOYAGE.VU.WALES.WALMART.WALTER.WANG.WANGGOU.WATCH.WATCHES.WEATHER.WEATHERCHANNEL.WEBCAM.WEBER.WEBSITE.WED.WEDDING.WEIBO.WEIR.WF.WHOSWHO.WIEN.WIKI.WILLIAMHILL.WIN.WINDOWS.WINE.WINNERS.WME.WOLTERSKLUWER.WOODSIDE.WORK.WORKS.WORLD.WOW.WS.WTC.WTF.XBOX.XEROX.XIHUAN.XIN.XN--11B4C3D.XN--1CK2E1B.XN--1QQW23A.XN--2SCRJ9C.XN--30RR7Y.XN--3BST00M.XN--3DS443G.XN--3E0B707E.XN--3HCRJ9C.XN--3PXU8K.XN--42C2D9A.XN--45BR5CYL.XN--45BRJ9C.XN--45Q11C.XN--4DBRK0CE.XN--4GBRIM.XN--54B7FTA0CC.XN--55QW42G.XN--55QX5D.XN--5SU34J936BGSG.XN--5TZM5G.XN--6FRZ82G.XN--6QQ986B3XL.XN--80ADXHKS.XN--80AO21A.XN--80AQECDR1A.XN--80ASEHDB.XN--80ASWG.XN--8Y0A063A.XN--90A3AC.XN--90AE.XN--90AIS.XN--9DBQ2A.XN--9ET52U.XN--9KRT00A.XN--B4W605FERD.XN--BCK1B9A5DRE4C.XN--C1AVG.XN--C2BR7G.XN--CCK2B3B.XN--CCKWCXETD.XN--CG4BKI.XN--CLCHC0EA0B2G2A9GCD.XN--CZR694B.XN--CZRS0T.XN--CZRU2D.XN--D1ACJ3B.XN--D1ALF.XN--E1A4C.XN--ECKVDTC9D.XN--EFVY88H.XN--FCT429K.XN--FHBEI.XN--FIQ228C5HS.XN--FIQ64B.XN--FIQS8S.XN--FIQZ9S.XN--FJQ720A.XN--FLW351E.XN--FPCRJ9C3D.XN--FZC2C9E2C.XN--FZYS8D69UVGM.XN--G2XX48C.XN--GCKR3F0F.XN--GECRJ9C.XN--GK3AT1E.XN--H2BREG3EVE.XN--H2BRJ9C.XN--H2BRJ9C8C.XN--HXT814E.XN--I1B6B1A6A2E.XN--IMR513N.XN--IO0A7I.XN--J1AEF.XN--J1AMH.XN--J6W193G.XN--JLQ480N2RG.XN--JVR189M.XN--KCRX77D1X4A.XN--KPRW13D.XN--KPRY57D.XN--KPUT3I.XN--L1ACC.XN--LGBBAT1AD8J.XN--MGB9AWBF.XN--MGBA3A3EJT.XN--MGBA3A4F16A.XN--MGBA7C0BBN0A.XN--MGBAAM7A8H.XN--MGBAB2BD.XN--MGBAH1A3HJKRD.XN--MGBAI9AZGQP6J.XN--MGBAYH7GPA.XN--MGBBH1A.XN--MGBBH1A71E.XN--MGBC0A9AZCG.XN--MGBCA7DZDO.XN--MGBCPQ6GPA1A.XN--MGBERP4A5D4AR.XN--MGBGU82A.XN--MGBI4ECEXP.XN--MGBPL2FH.XN--MGBT3DHD.XN--MGBTX2B.XN--MGBX4CD0AB.XN--MIX891F.XN--MK1BU44C.XN--MXTQ1M.XN--NGBC5AZD.XN--NGBE9E0A.XN--NGBRX.XN--NODE.XN--NQV7F.XN--NQV7FS00EMA.XN--NYQY26A.XN--O3CW4H.XN--OGBPF8FL.XN--OTU796D.XN--P1ACF.XN--P1AI.XN--PGBS0DH.XN--PSSY2U.XN--Q7CE6A.XN--Q9JYB4C.XN--QCKA1PMC.XN--QXA6A.XN--QXAM.XN--RHQV96G.XN--ROVU88B.XN--RVC1E0AM3E.XN--S9BRJ9C.XN--SES554G.XN--T60B56A.XN--TCKWE.XN--TIQ49XQYJ.XN--UNUP4Y.XN--VERMGENSBERATER-CTB.XN--VERMGENSBERATUNG-PWB.XN--VHQUV.XN--VUQ861B.XN--W4R85EL8FHU5DNRA.XN--W4RS40L.XN--WGBH1C.XN--WGBL6A.XN--XHQ521B.XN--XKC2AL3HYE2A.XN--XKC2DL3A5EE0H.XN--Y9A3AQ.XN--YFRO4I67O.XN--YGBI2AMMX.XN--ZFR164B.XXX.XYZ.YACHTS.YAHOO.YAMAXUN.YANDEX.YE.YODOBASHI.YOGA.YOKOHAMA.YOU.YOUTUBE.YT.YUN.ZA.ZAPPOS.ZARA.ZERO.ZIP.ZM.ZONE.ZUERICH.ZW".split(".");new Set(TLDS.map(r=>r.toLowerCase()));init_esm();__toESM(require_lib$3());var import_lib$1=__toESM(require_lib$2()),import_lib$2=__toESM(require_lib());import_lib$2.ValidationError;import_lib$1.location;const stringSchema=validator.string().allow("").required(),numberSchema=validator.alternatives(validator.number(),validator.object().instance(Number),validator.function().instance(Number)).required(),booleanSchema=validator.boolean().required(),bigintSchema=validator.any().custom((r,o)=>typeof r=="bigint"?r:o.error("any.invalid")).required(),nullSchema=validator.any().valid(null).required(),undefinedSchema=validator.any().custom((r,o)=>typeof r>"u"?r:o.error("any.invalid")),primitiveSchema=validator.alternatives().try(stringSchema,numberSchema,booleanSchema,nullSchema,undefinedSchema),int8ArraySchema=validator.any().custom((r,o)=>r instanceof Int8Array?r:o.error("any.invalid")),uint8ArraySchema=validator.any().custom((r,o)=>r instanceof Uint8Array?r:o.error("any.invalid")),uint8ClampedArraySchema=validator.any().custom((r,o)=>r instanceof Uint8ClampedArray?r:o.error("any.invalid")),int16ArraySchema=validator.any().custom((r,o)=>r instanceof Int16Array?r:o.error("any.invalid")),uint16ArraySchema=validator.any().custom((r,o)=>r instanceof Uint16Array?r:o.error("any.invalid")),int32ArraySchema=validator.any().custom((r,o)=>r instanceof Int32Array?r:o.error("any.invalid")),uint32ArraySchema=validator.any().custom((r,o)=>r instanceof Uint32Array?r:o.error("any.invalid")),float32ArraySchema=validator.any().custom((r,o)=>r instanceof Float32Array?r:o.error("any.invalid")),float64ArraySchema=validator.any().custom((r,o)=>r instanceof Float64Array?r:o.error("any.invalid")),bigInt64ArraySchema=validator.any().custom((r,o)=>r instanceof BigInt64Array||Object.prototype.toString.call(r)==="[object BigInt64Array]"?r:o.error("any.invalid")),bigUint64ArraySchema=validator.any().custom((r,o)=>r instanceof BigUint64Array||Object.prototype.toString.call(r)==="[object BigUint64Array]"?r:o.error("any.invalid")),typedArraySchema=validator.alternatives().try(int8ArraySchema,uint8ArraySchema,uint8ClampedArraySchema,int16ArraySchema,uint16ArraySchema,int32ArraySchema,uint32ArraySchema,float32ArraySchema,float64ArraySchema),bigIntTypedArraySchema=validator.alternatives().try(bigInt64ArraySchema,bigUint64ArraySchema),dateSchema=validator.any().custom((r,o)=>r instanceof Date?r:o.error("any.invalid")),regExpSchema=validator.any().custom((r,o)=>r instanceof RegExp?r:o.error("any.invalid")),arrayBufferSchema=validator.any().custom((r,o)=>r instanceof ArrayBuffer?r:o.error("any.invalid")),dataViewSchema=validator.any().custom((r,o)=>r instanceof DataView?r:o.error("any.invalid")),errorSchema=validator.any().custom((r,o)=>isInstanceOf(r,"Error",Error)?r:o.error("any.invalid")),uniterableObjectSchema=validator.alternatives().try(dateSchema,regExpSchema,arrayBufferSchema,dataViewSchema,errorSchema),phoneObjectSchema=validator.alternatives(validator.custom((r,o)=>r instanceof Phone$1?r:o.error("any.invalid")),validator.object({country:validator.string().min(2).max(2).required(),e164:validator.string().required(),international:validator.string().required(),national:validator.string().required(),phone:validator.string().required(),raw:validator.string().required(),timezone:validator.string().optional(),type:validator.string().required(),valid:validator.boolean().required()})),isObject$1=r=>typeof r=="object"&&r!==null&&!Array.isArray(r),isArray=r=>Array.isArray(r),isLuxonDateTime=r=>r instanceof DateTime$1?!0:typeof r!="object"||r===null||!("isLuxonDateTime"in r)?!1:r.isLuxonDateTime===!0,isLuxonDuration=r=>r instanceof Duration$1?!0:typeof r!="object"||r===null||!("isLuxonDuration"in r)?!1:r.isLuxonDuration===!0,isLuxonInterval=r=>r instanceof Interval$1?!0:typeof r!="object"||r===null||!("isLuxonInterval"in r)?!1:r.isLuxonInterval===!0,isInstanceOf=(r,o,u)=>{var h;return typeof u<"u"&&r instanceof u||typeof u<"u"&&typeof u[Symbol.hasInstance]=="function"&&u[Symbol.hasInstance](r)?!0:typeof r=="object"&&r!==null?((h=r.constructor)==null?void 0:h.name)===o:!1},isMap=r=>isInstanceOf(r,"Map",Map),isSet=r=>isInstanceOf(r,"Set",Set),isNumber=r=>matchesSchema(r,numberSchema),isNegativeZero=r=>isNumber(r)?1/r<0&&Math.abs(r)===0:!1,matchesSchema=(r,o)=>{const{error:u}=o.validate(r,{abortEarly:!0});return!u},isError=r=>matchesSchema(r,errorSchema),isTypedArray=r=>matchesSchema(r,typedArraySchema),isBigIntTypedArray=r=>matchesSchema(r,bigIntTypedArraySchema),isUniterableObject=r=>matchesSchema(r,uniterableObjectSchema),isPrimitive=r=>matchesSchema(r,primitiveSchema),isPhoneObject=r=>matchesSchema(r,phoneObjectSchema),isLuxonSystemZone=r=>isInstanceOf(r,"SystemZone",SystemZone$1),isBigInt=r=>matchesSchema(r,bigintSchema);var u8=Uint8Array,u16=Uint16Array,i32=Int32Array,fleb=new u8([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fdeb=new u8([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(r,o){for(var u=new u16(31),h=0;h<31;++h)u[h]=o+=1<<r[h-1];for(var m=new i32(u[30]),h=1;h<30;++h)for(var p=u[h];p<u[h+1];++p)m[p]=p-u[h]<<5|h;return{b:u,r:m}},_a=freb(fleb,2),fl=_a.b,revfl=_a.r;fl[28]=258,revfl[258]=28;var _b=freb(fdeb,0),fd=_b.b,revfd=_b.r,rev=new u16(32768);for(var i=0;i<32768;++i){var x=(i&43690)>>1|(i&21845)<<1;x=(x&52428)>>2|(x&13107)<<2,x=(x&61680)>>4|(x&3855)<<4,rev[i]=((x&65280)>>8|(x&255)<<8)>>1}var hMap=function(r,o,u){for(var h=r.length,m=0,p=new u16(o);m<h;++m)r[m]&&++p[r[m]-1];var _=new u16(o);for(m=1;m<o;++m)_[m]=_[m-1]+p[m-1]<<1;var y;if(u){y=new u16(1<<o);var S=15-o;for(m=0;m<h;++m)if(r[m])for(var $=m<<4|r[m],E=o-r[m],A=_[r[m]-1]++<<E,T=A|(1<<E)-1;A<=T;++A)y[rev[A]>>S]=$}else for(y=new u16(h),m=0;m<h;++m)r[m]&&(y[m]=rev[_[r[m]-1]++]>>15-r[m]);return y},flt=new u8(288);for(var i=0;i<144;++i)flt[i]=8;for(var i=144;i<256;++i)flt[i]=9;for(var i=256;i<280;++i)flt[i]=7;for(var i=280;i<288;++i)flt[i]=8;var fdt=new u8(32);for(var i=0;i<32;++i)fdt[i]=5;var flm=hMap(flt,9,0),flrm=hMap(flt,9,1),fdm=hMap(fdt,5,0),fdrm=hMap(fdt,5,1),max=function(r){for(var o=r[0],u=1;u<r.length;++u)r[u]>o&&(o=r[u]);return o},bits=function(r,o,u){var h=o/8|0;return(r[h]|r[h+1]<<8)>>(o&7)&u},bits16=function(r,o){var u=o/8|0;return(r[u]|r[u+1]<<8|r[u+2]<<16)>>(o&7)},shft=function(r){return(r+7)/8|0},slc=function(r,o,u){return(o==null||o<0)&&(o=0),(u==null||u>r.length)&&(u=r.length),new u8(r.subarray(o,u))},ec=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],err=function(r,o,u){var h=new Error(o||ec[r]);if(h.code=r,Error.captureStackTrace&&Error.captureStackTrace(h,err),!u)throw h;return h},inflt=function(r,o,u,h){var m=r.length,p=h?h.length:0;if(!m||o.f&&!o.l)return u||new u8(0);var _=!u,y=_||o.i!=2,S=o.i;_&&(u=new u8(m*3));var $=function(Ge){var Ye=u.length;if(Ge>Ye){var Ce=new u8(Math.max(Ye*2,Ge));Ce.set(u),u=Ce}},E=o.f||0,A=o.p||0,T=o.b||0,N=o.l,O=o.d,C=o.m,L=o.n,w=m*8;do{if(!N){E=bits(r,A,1);var I=bits(r,A+1,3);if(A+=3,I)if(I==1)N=flrm,O=fdrm,C=9,L=5;else if(I==2){var ie=bits(r,A,31)+257,fe=bits(r,A+10,15)+4,pe=ie+bits(r,A+5,31)+1;A+=14;for(var Se=new u8(pe),Ee=new u8(19),ge=0;ge<fe;++ge)Ee[clim[ge]]=bits(r,A+ge*3,7);A+=fe*3;for(var J=max(Ee),ae=(1<<J)-1,U=hMap(Ee,J,1),ge=0;ge<pe;){var q=U[bits(r,A,ae)];A+=q&15;var D=q>>4;if(D<16)Se[ge++]=D;else{var R=0,B=0;for(D==16?(B=3+bits(r,A,3),A+=2,R=Se[ge-1]):D==17?(B=3+bits(r,A,7),A+=3):D==18&&(B=11+bits(r,A,127),A+=7);B--;)Se[ge++]=R}}var ue=Se.subarray(0,ie),ce=Se.subarray(ie);C=max(ue),L=max(ce),N=hMap(ue,C,1),O=hMap(ce,L,1)}else err(1);else{var D=shft(A)+4,F=r[D-4]|r[D-3]<<8,k=D+F;if(k>m){S&&err(0);break}y&&$(T+F),u.set(r.subarray(D,k),T),o.b=T+=F,o.p=A=k*8,o.f=E;continue}if(A>w){S&&err(0);break}}y&&$(T+131072);for(var K=(1<<C)-1,Q=(1<<L)-1,Y=A;;Y=A){var R=N[bits16(r,A)&K],me=R>>4;if(A+=R&15,A>w){S&&err(0);break}if(R||err(2),me<256)u[T++]=me;else if(me==256){Y=A,N=null;break}else{var Oe=me-254;if(me>264){var ge=me-257,Me=fleb[ge];Oe=bits(r,A,(1<<Me)-1)+fl[ge],A+=Me}var Re=O[bits16(r,A)&Q],xe=Re>>4;Re||err(3),A+=Re&15;var ce=fd[xe];if(xe>3){var Me=fdeb[xe];ce+=bits16(r,A)&(1<<Me)-1,A+=Me}if(A>w){S&&err(0);break}y&&$(T+131072);var Ae=T+Oe;if(T<ce){var Pe=p-ce,ke=Math.min(ce,Ae);for(Pe+T<0&&err(3);T<ke;++T)u[T]=h[Pe+T]}for(;T<Ae;++T)u[T]=u[T-ce]}}o.l=N,o.p=Y,o.b=T,o.f=E,N&&(E=1,o.m=C,o.d=O,o.n=L)}while(!E);return T!=u.length&&_?slc(u,0,T):u.subarray(0,T)},wbits=function(r,o,u){u<<=o&7;var h=o/8|0;r[h]|=u,r[h+1]|=u>>8},wbits16=function(r,o,u){u<<=o&7;var h=o/8|0;r[h]|=u,r[h+1]|=u>>8,r[h+2]|=u>>16},hTree=function(r,o){for(var u=[],h=0;h<r.length;++h)r[h]&&u.push({s:h,f:r[h]});var m=u.length,p=u.slice();if(!m)return{t:et,l:0};if(m==1){var _=new u8(u[0].s+1);return _[u[0].s]=1,{t:_,l:1}}u.sort(function(k,ie){return k.f-ie.f}),u.push({s:-1,f:25001});var y=u[0],S=u[1],$=0,E=1,A=2;for(u[0]={s:-1,f:y.f+S.f,l:y,r:S};E!=m-1;)y=u[u[$].f<u[A].f?$++:A++],S=u[$!=E&&u[$].f<u[A].f?$++:A++],u[E++]={s:-1,f:y.f+S.f,l:y,r:S};for(var T=p[0].s,h=1;h<m;++h)p[h].s>T&&(T=p[h].s);var N=new u16(T+1),O=ln(u[E-1],N,0);if(O>o){var h=0,C=0,L=O-o,w=1<<L;for(p.sort(function(ie,fe){return N[fe.s]-N[ie.s]||ie.f-fe.f});h<m;++h){var I=p[h].s;if(N[I]>o)C+=w-(1<<O-N[I]),N[I]=o;else break}for(C>>=L;C>0;){var D=p[h].s;N[D]<o?C-=1<<o-N[D]++-1:++h}for(;h>=0&&C;--h){var F=p[h].s;N[F]==o&&(--N[F],++C)}O=o}return{t:new u8(N),l:O}},ln=function(r,o,u){return r.s==-1?Math.max(ln(r.l,o,u+1),ln(r.r,o,u+1)):o[r.s]=u},lc=function(r){for(var o=r.length;o&&!r[--o];);for(var u=new u16(++o),h=0,m=r[0],p=1,_=function(S){u[h++]=S},y=1;y<=o;++y)if(r[y]==m&&y!=o)++p;else{if(!m&&p>2){for(;p>138;p-=138)_(32754);p>2&&(_(p>10?p-11<<5|28690:p-3<<5|12305),p=0)}else if(p>3){for(_(m),--p;p>6;p-=6)_(8304);p>2&&(_(p-3<<5|8208),p=0)}for(;p--;)_(m);p=1,m=r[y]}return{c:u.subarray(0,h),n:o}},clen=function(r,o){for(var u=0,h=0;h<o.length;++h)u+=r[h]*o[h];return u},wfblk=function(r,o,u){var h=u.length,m=shft(o+2);r[m]=h&255,r[m+1]=h>>8,r[m+2]=r[m]^255,r[m+3]=r[m+1]^255;for(var p=0;p<h;++p)r[m+p+4]=u[p];return(m+4+h)*8},wblk=function(r,o,u,h,m,p,_,y,S,$,E){wbits(o,E++,u),++m[256];for(var A=hTree(m,15),T=A.t,N=A.l,O=hTree(p,15),C=O.t,L=O.l,w=lc(T),I=w.c,D=w.n,F=lc(C),k=F.c,ie=F.n,fe=new u16(19),pe=0;pe<I.length;++pe)++fe[I[pe]&31];for(var pe=0;pe<k.length;++pe)++fe[k[pe]&31];for(var Se=hTree(fe,7),Ee=Se.t,ge=Se.l,J=19;J>4&&!Ee[clim[J-1]];--J);var ae=$+5<<3,U=clen(m,flt)+clen(p,fdt)+_,q=clen(m,T)+clen(p,C)+_+14+3*J+clen(fe,Ee)+2*fe[16]+3*fe[17]+7*fe[18];if(S>=0&&ae<=U&&ae<=q)return wfblk(o,E,r.subarray(S,S+$));var R,B,ue,ce;if(wbits(o,E,1+(q<U)),E+=2,q<U){R=hMap(T,N,0),B=T,ue=hMap(C,L,0),ce=C;var K=hMap(Ee,ge,0);wbits(o,E,D-257),wbits(o,E+5,ie-1),wbits(o,E+10,J-4),E+=14;for(var pe=0;pe<J;++pe)wbits(o,E+3*pe,Ee[clim[pe]]);E+=3*J;for(var Q=[I,k],Y=0;Y<2;++Y)for(var me=Q[Y],pe=0;pe<me.length;++pe){var Oe=me[pe]&31;wbits(o,E,K[Oe]),E+=Ee[Oe],Oe>15&&(wbits(o,E,me[pe]>>5&127),E+=me[pe]>>12)}}else R=flm,B=flt,ue=fdm,ce=fdt;for(var pe=0;pe<y;++pe){var Me=h[pe];if(Me>255){var Oe=Me>>18&31;wbits16(o,E,R[Oe+257]),E+=B[Oe+257],Oe>7&&(wbits(o,E,Me>>23&31),E+=fleb[Oe]);var Re=Me&31;wbits16(o,E,ue[Re]),E+=ce[Re],Re>3&&(wbits16(o,E,Me>>5&8191),E+=fdeb[Re])}else wbits16(o,E,R[Me]),E+=B[Me]}return wbits16(o,E,R[256]),E+B[256]},deo=new i32([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),et=new u8(0),dflt=function(r,o,u,h,m,p){var _=p.z||r.length,y=new u8(h+_+5*(1+Math.ceil(_/7e3))+m),S=y.subarray(h,y.length-m),$=p.l,E=(p.r||0)&7;if(o){E&&(S[0]=p.r>>3);for(var A=deo[o-1],T=A>>13,N=A&8191,O=(1<<u)-1,C=p.p||new u16(32768),L=p.h||new u16(O+1),w=Math.ceil(u/3),I=2*w,D=function(Ie){return(r[Ie]^r[Ie+1]<<w^r[Ie+2]<<I)&O},F=new i32(25e3),k=new u16(288),ie=new u16(32),fe=0,pe=0,Se=p.i||0,Ee=0,ge=p.w||0,J=0;Se+2<_;++Se){var ae=D(Se),U=Se&32767,q=L[ae];if(C[U]=q,L[ae]=U,ge<=Se){var R=_-Se;if((fe>7e3||Ee>24576)&&(R>423||!$)){E=wblk(r,S,0,F,k,ie,pe,Ee,J,Se-J,E),Ee=fe=pe=0,J=Se;for(var B=0;B<286;++B)k[B]=0;for(var B=0;B<30;++B)ie[B]=0}var ue=2,ce=0,K=N,Q=U-q&32767;if(R>2&&ae==D(Se-Q))for(var Y=Math.min(T,R)-1,me=Math.min(32767,Se),Oe=Math.min(258,R);Q<=me&&--K&&U!=q;){if(r[Se+ue]==r[Se+ue-Q]){for(var Me=0;Me<Oe&&r[Se+Me]==r[Se+Me-Q];++Me);if(Me>ue){if(ue=Me,ce=Q,Me>Y)break;for(var Re=Math.min(Q,Me-2),xe=0,B=0;B<Re;++B){var Ae=Se-Q+B&32767,Pe=C[Ae],ke=Ae-Pe&32767;ke>xe&&(xe=ke,q=Ae)}}}U=q,q=C[U],Q+=U-q&32767}if(ce){F[Ee++]=268435456|revfl[ue]<<18|revfd[ce];var Ge=revfl[ue]&31,Ye=revfd[ce]&31;pe+=fleb[Ge]+fdeb[Ye],++k[257+Ge],++ie[Ye],ge=Se+ue,++fe}else F[Ee++]=r[Se],++k[r[Se]]}}for(Se=Math.max(Se,ge);Se<_;++Se)F[Ee++]=r[Se],++k[r[Se]];E=wblk(r,S,$,F,k,ie,pe,Ee,J,Se-J,E),$||(p.r=E&7|S[E/8|0]<<3,E-=7,p.h=L,p.p=C,p.i=Se,p.w=ge)}else{for(var Se=p.w||0;Se<_+$;Se+=65535){var Ce=Se+65535;Ce>=_&&(S[E/8|0]=$,Ce=_),E=wfblk(S,E+1,r.subarray(Se,Ce))}p.i=_}return slc(y,0,h+shft(E)+m)},adler=function(){var r=1,o=0;return{p:function(u){for(var h=r,m=o,p=u.length|0,_=0;_!=p;){for(var y=Math.min(_+2655,p);_<y;++_)m+=h+=u[_];h=(h&65535)+15*(h>>16),m=(m&65535)+15*(m>>16)}r=h,o=m},d:function(){return r%=65521,o%=65521,(r&255)<<24|(r&65280)<<8|(o&255)<<8|o>>8}}},dopt=function(r,o,u,h,m){if(!m&&(m={l:1},o.dictionary)){var p=o.dictionary.subarray(-32768),_=new u8(p.length+r.length);_.set(p),_.set(r,p.length),r=_,m.w=p.length}return dflt(r,o.level==null?6:o.level,o.mem==null?m.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+o.mem,u,h,m)},wbytes=function(r,o,u){for(;u;++o)r[o]=u,u>>>=8},zlh=function(r,o){var u=o.level,h=u==0?0:u<6?1:u==9?3:2;if(r[0]=120,r[1]=h<<6|(o.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,o.dictionary){var m=adler();m.p(o.dictionary),wbytes(r,2,m.d())}},zls=function(r,o){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&err(6,"invalid zlib data"),(r[1]>>5&1)==+!o&&err(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function zlibSync(r,o){o||(o={});var u=adler();u.p(r);var h=dopt(r,o,o.dictionary?6:2,4);return zlh(h,o),wbytes(h,h.length-4,u.d()),h}function unzlibSync(r,o){return inflt(r.subarray(zls(r,o),-4),{i:2},o,o)}var te=typeof TextEncoder<"u"&&new TextEncoder,td=typeof TextDecoder<"u"&&new TextDecoder,tds=0;try{td.decode(et,{stream:!0}),tds=1}catch(r){}var dutf8=function(r){for(var o="",u=0;;){var h=r[u++],m=(h>127)+(h>223)+(h>239);if(u+m>r.length)return{s:o,r:slc(r,u-1)};m?m==3?(h=((h&15)<<18|(r[u++]&63)<<12|(r[u++]&63)<<6|r[u++]&63)-65536,o+=String.fromCharCode(55296|h>>10,56320|h&1023)):m&1?o+=String.fromCharCode((h&31)<<6|r[u++]&63):o+=String.fromCharCode((h&15)<<12|(r[u++]&63)<<6|r[u++]&63):o+=String.fromCharCode(h)}};function strToU8(r,o){if(o){for(var u=new u8(r.length),h=0;h<r.length;++h)u[h]=r.charCodeAt(h);return u}if(te)return te.encode(r);for(var m=r.length,p=new u8(r.length+(r.length>>1)),_=0,y=function(E){p[_++]=E},h=0;h<m;++h){if(_+5>p.length){var S=new u8(_+8+(m-h<<1));S.set(p),p=S}var $=r.charCodeAt(h);$<128||o?y($):$<2048?(y(192|$>>6),y(128|$&63)):$>55295&&$<57344?($=65536+($&1047552)|r.charCodeAt(++h)&1023,y(240|$>>18),y(128|$>>12&63),y(128|$>>6&63),y(128|$&63)):(y(224|$>>12),y(128|$>>6&63),y(128|$&63))}return slc(p,0,_)}function strFromU8(r,o){if(o){for(var u="",h=0;h<r.length;h+=16384)u+=String.fromCharCode.apply(null,r.subarray(h,h+16384));return u}else{if(td)return td.decode(r);var m=dutf8(r),p=m.s,u=m.r;return u.length&&err(8),p}}const utoa=r=>{const o=strToU8(r),u=zlibSync(o,{level:9}),h=strFromU8(u,!0);return btoa(h)},atou=r=>{const o=atob(r);if(o.startsWith("xÚ")){const u=strToU8(o,!0),h=unzlibSync(u);return strFromU8(h)}return decodeURIComponent(escape(o))};var Wt,dr,Tr,Vt,cr,Ar,Nr,hr,jt,Gr,Ur,Hr,Wr;const Cr=class Cr{constructor(o,u){kt(this,jt);kt(this,Wt);kt(this,dr);kt(this,Tr,"");kt(this,Vt);kt(this,cr,"");kt(this,Ar,!1);kt(this,Nr,!1);kt(this,hr,!1);Bt(this,Wt,new Map),Bt(this,dr,[]),Bt(this,Vt,""),u&&isObject$1(u)&&Object.entries(u).forEach(([m,p])=>{Lt(this,Wt).set(m,p)});const h=o.trim();fr(this,jt,Gr).call(this,h),fr(this,jt,Hr).call(this,h)}static canSerialize(o){if(typeof o!="function")return!1;const u=o.toString();return!(u.includes("[native code]")||u.startsWith("function () { [native code] }"))}static dehydrate(o,u){if(!Cr.canSerialize(o))throw new TypeError("Function cannot be serialized");const m={_encodedType:"function",_encodedValueType:"string",_encodedValue:o.toString()};return u&&(m._namedBindings=u),m}static rehydrate(o,u){var _;let h,m=u;if(typeof o=="string")h=o;else if(isObject$1(o)&&o._encodedType==="function"&&o._encodedValueType==="string"&&typeof o._encodedValue=="string")h=o._encodedValue,m=o._namedBindings||m;else throw new TypeError("Invalid input for function rehydration");const p=new Cr(h,m);return fr(_=p,jt,Wr).call(_)}};Wt=new WeakMap,dr=new WeakMap,Tr=new WeakMap,Vt=new WeakMap,cr=new WeakMap,Ar=new WeakMap,Nr=new WeakMap,hr=new WeakMap,jt=new WeakSet,Gr=function(o){const u=[/^\s*(?:async\s+)?\(([^)]*)\)\s*=>/,/^\s*(?:async\s+)?([a-zA-Z_$][a-zA-Z0-9_$]*)\s*=>/,/^\s*(?:async\s+)?function\s*(?:\*\s*)?(?:[a-zA-Z_$][a-zA-Z0-9_$]*)?\s*\(([^)]*)\)/,/^\s*(?:async\s+)?(?:\*\s*)?([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(([^)]*)\)\s*\{/];let h="";for(const $ of u){const E=o.match($);if(E){h=E[1]||E[2]||"";break}}if(Bt(this,Tr,h),!h||!h.trim())return;const m=[];let p="",_=0,y=!1,S="";for(let $=0;$<h.length;$++){const E=h[$],A=$>0?h[$-1]:"";if((E==='"'||E==="'"||E==="`")&&A!=="\\"&&(y?E===S&&(y=!1):(y=!0,S=E)),!y&&(E==="{"||E==="["||E==="("?_++:(E==="}"||E==="]"||E===")")&&_--,E===","&&_===0)){const T=fr(this,jt,Ur).call(this,p.trim());T&&m.push(T),p="";continue}p+=E}if(p.trim()){const $=fr(this,jt,Ur).call(this,p.trim());$&&m.push($)}Lt(this,dr).push(...m)},Ur=function(o){if(!o)return"";if(o=o.trim(),o.startsWith("..."))return o.slice(3).trim().split(/[\s=]/)[0];if(o.startsWith("{")||o.startsWith("["))return o.split(/[\s=:]/)[0];const u=o.match(/^([a-zA-Z_$][a-zA-Z0-9_$]*)/);return u?u[1]:""},Hr=function(o){Bt(this,Nr,/^\s*async\s+/.test(o));const u=o.match(/^\s*(async\s+)?(?:\([^)]*\)|[a-zA-Z_$][a-zA-Z0-9_$]*)\s*=>\s*(.+)$/s);if(u&&!u[2].trimStart().startsWith("{")){Bt(this,Ar,!0),Bt(this,Vt,u[2].trim());return}const h=o.match(/^\s*(async\s+)?(?:\([^)]*\)|[a-zA-Z_$][a-zA-Z0-9_$]*)\s*=>\s*\{([\s\S]*)\}\s*$/);if(h){Bt(this,Vt,h[2].trim());return}const m=o.match(/^\s*(async\s+)?function\s*(\*\s*)?([a-zA-Z_$][a-zA-Z0-9_$]*)?\s*\([^)]*\)\s*\{([\s\S]*)\}\s*$/);if(m){Bt(this,hr,!!m[2]),Bt(this,cr,m[3]||""),Bt(this,Vt,m[4].trim());return}const p=o.match(/^\s*(async\s+)?(\*\s*)?([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\([^)]*\)\s*\{([\s\S]*)\}\s*$/);if(p){Bt(this,hr,!!p[2]),Bt(this,cr,p[3]),Bt(this,Vt,p[4].trim());return}const _=o.indexOf("{"),y=o.lastIndexOf("}");if(_!==-1&&y!==-1&&y>_){Bt(this,Vt,o.substring(_+1,y));return}},Wr=function(){const o=Lt(this,Ar)?`return ${Lt(this,Vt)}`:Lt(this,Vt),u=Array.from(Lt(this,Wt).keys()),h=Array.from(Lt(this,Wt).values()),m=Lt(this,Tr);let p="";const _=Lt(this,cr)?` ${Lt(this,cr)}`:"";if(Lt(this,Nr)?p=Lt(this,hr)?`async function*${_}(${m}) { ${o} }`:`async function${_}(${m}) { ${o} }`:p=Lt(this,hr)?`function*${_}(${m}) { ${o} }`:`function${_}(${m}) { ${o} }`,h.length>0){const S=new Set(u.filter(C=>Lt(this,dr).includes(C))),$=u.filter(C=>!S.has(C)),E=$.join(", "),A=$.map(C=>Lt(this,Wt).get(C)),T=$.length>0?`return function(${E}) { return ${p}; }`:`return ${p}`,N=new Function(T)(),O=$.length>0?N(...A):N;if(S.size>0){let C=function(...w){const I=[];let D=0;for(const F of L)F.isBound&&F.boundIndex!==void 0?I.push(h[F.boundIndex]):I.push(w[D++]);return O.call(this,...I)};const L=[];for(const w of Lt(this,dr))if(S.has(w)){const I=u.indexOf(w);L.push({name:w,isBound:!0,boundIndex:I})}else L.push({name:w,isBound:!1});return C}return O}return new Function(`return ${p}`)()};let FunctionSerializer=Cr;const VOID=-1,PRIMITIVE=0,ARRAY=1,OBJECT=2,DATE=3,REGEXP=4,MAP=5,SET=6,ERROR=7,BIGINT=8,env=typeof self=="object"?self:globalThis,deserializer=(r,o)=>{const u=(m,p)=>(r.set(p,m),m),h=m=>{if(r.has(m))return r.get(m);const[p,_]=o[m];switch(p){case PRIMITIVE:case VOID:return u(_,m);case ARRAY:{const y=u([],m);for(const S of _)y.push(h(S));return y}case OBJECT:{const y=u({},m);for(const[S,$]of _)y[h(S)]=h($);return y}case DATE:return u(new Date(_),m);case REGEXP:{const{source:y,flags:S}=_;return u(new RegExp(y,S),m)}case MAP:{const y=u(new Map,m);for(const[S,$]of _)y.set(h(S),h($));return y}case SET:{const y=u(new Set,m);for(const S of _)y.add(h(S));return y}case ERROR:{const{name:y,message:S}=_;return u(new env[y](S),m)}case BIGINT:return u(BigInt(_),m);case"BigInt":return u(Object(BigInt(_)),m);case"ArrayBuffer":return u(new Uint8Array(_).buffer,_);case"DataView":{const{buffer:y}=new Uint8Array(_);return u(new DataView(y),_)}}return u(new env[p](_),m)};return h},deserialize=r=>deserializer(new Map,r)(0),EMPTY="",{toString}={},{keys}=Object,typeOf=r=>{const o=typeof r;if(o!=="object"||!r)return[PRIMITIVE,o];const u=toString.call(r).slice(8,-1);switch(u){case"Array":return[ARRAY,EMPTY];case"Object":return[OBJECT,EMPTY];case"Date":return[DATE,EMPTY];case"RegExp":return[REGEXP,EMPTY];case"Map":return[MAP,EMPTY];case"Set":return[SET,EMPTY];case"DataView":return[ARRAY,u]}return u.includes("Array")?[ARRAY,u]:u.includes("Error")?[ERROR,u]:[OBJECT,u]},shouldSkip=([r,o])=>r===PRIMITIVE&&(o==="function"||o==="symbol"),serializer=(r,o,u,h)=>{const m=(_,y)=>{const S=h.push(_)-1;return u.set(y,S),S},p=_=>{if(u.has(_))return u.get(_);let[y,S]=typeOf(_);switch(y){case PRIMITIVE:{let E=_;switch(S){case"bigint":y=BIGINT,E=_.toString();break;case"function":case"symbol":if(r)throw new TypeError("unable to serialize "+S);E=null;break;case"undefined":return m([VOID],_)}return m([y,E],_)}case ARRAY:{if(S){let T=_;return S==="DataView"?T=new Uint8Array(_.buffer):S==="ArrayBuffer"&&(T=new Uint8Array(_)),m([S,[...T]],_)}const E=[],A=m([y,E],_);for(const T of _)E.push(p(T));return A}case OBJECT:{if(S)switch(S){case"BigInt":return m([S,_.toString()],_);case"Boolean":case"Number":case"String":return m([S,_.valueOf()],_)}if(o&&"toJSON"in _)return p(_.toJSON());const E=[],A=m([y,E],_);for(const T of keys(_))(r||!shouldSkip(typeOf(_[T])))&&E.push([p(T),p(_[T])]);return A}case DATE:return m([y,_.toISOString()],_);case REGEXP:{const{source:E,flags:A}=_;return m([y,{source:E,flags:A}],_)}case MAP:{const E=[],A=m([y,E],_);for(const[T,N]of _)(r||!(shouldSkip(typeOf(T))||shouldSkip(typeOf(N))))&&E.push([p(T),p(N)]);return A}case SET:{const E=[],A=m([y,E],_);for(const T of _)(r||!shouldSkip(typeOf(T)))&&E.push(p(T));return A}}const{message:$}=_;return m([y,{name:S,message:$}],_)};return p},serialize=(r,{json:o,lossy:u}={})=>{const h=[];return serializer(!(o||u),!!o,new Map,h)(r),h},toStructuredData=(r,o=new WeakSet)=>{switch(!0){case isNegativeZero(r):return{_t:"js:negativeZero",_s:""};case isBigInt(r):return{_t:"js:bigint",_s:r.toString()};case isError(r):case isUniterableObject(r):case isPrimitive(r):try{return{_t:"js:native",_s:serialize(r,{lossy:!0,json:!0})}}catch(u){throw u instanceof exceptions.BaseException?u:new exceptions.E_ENCODING_FAILED(r,u)}case isBigIntTypedArray(r):try{return{_t:"js:bigintTypedArray",_s:toStructuredData(serialize(r,{lossy:!0,json:!0}),o)}}catch(u){throw u instanceof exceptions.BaseException?u:new exceptions.E_ENCODING_FAILED(r,u)}case isTypedArray(r):try{return{_t:"js:native",_s:serialize(r,{lossy:!0,json:!0})}}catch(u){throw u instanceof exceptions.BaseException?u:new exceptions.E_ENCODING_FAILED(r,u)}case isPhoneObject(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;return o.add(r),{_t:"@nhtio/phone-object:Phone",_s:toStructuredData(r instanceof Phone$1?r.toJSON():r,o)}}case isLuxonDateTime(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;o.add(r);const u=r instanceof DateTime$1?r:DateTime$1.fromObject(r.c,{zone:r.zone}).setLocale(r.loc.locale);return{_t:"luxon:DateTime",_s:toStructuredData({v:u.toRFC2822(),z:u.zoneName,l:u.locale,c:u.outputCalendar,n:u.numberingSystem},o)}}case isLuxonDuration(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;return o.add(r),{_t:"luxon:Duration",_s:toStructuredData(r instanceof Duration$1?r.toObject():r,o)}}case isLuxonInterval(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;o.add(r);const u=r.start?r.start.toISO({extendedZone:!0}):null,h=r.end?r.end.toISO({extendedZone:!0}):null;if(!u||!h)throw new exceptions.E_UNENCODABLE_VALUE(r);try{return{_t:"luxon:Interval",_s:serialize({start:u,end:h},{lossy:!0,json:!0})}}catch(m){throw m instanceof exceptions.BaseException?m:new exceptions.E_UNENCODABLE_VALUE(r)}}case isLuxonSystemZone(r):try{return{_t:"luxon:SystemZone",_s:serialize({name:r.name},{lossy:!0,json:!0})}}catch(u){throw u instanceof exceptions.BaseException?u:new exceptions.E_ENCODING_FAILED(r,u)}case isMap(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;return o.add(r),{_t:"js:Map",_s:Array.from(r.entries()).map(([u,h])=>[toStructuredData(u,o),toStructuredData(h,o)])}}case isSet(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;return o.add(r),{_t:"js:Set",_s:Array.from(r).map(u=>toStructuredData(u,o))}}case isArray(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;return o.add(r),{_t:"js:Array",_s:btoa(JSON.stringify(r.map(u=>toStructuredData(u,o))))}}case isObject$1(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;o.add(r);const u={};Object.entries(r).forEach(([h,m])=>{u[h.toString()]=toStructuredData(m,o)});try{return{_t:"js:Object",_s:utoa(JSON.stringify(u))}}catch(h){throw new exceptions.E_ENCODING_FAILED(r,h)}}case FunctionSerializer.canSerialize(r):{const u=FunctionSerializer.dehydrate(r);return{_t:"fns:d",_s:serialize(u,{lossy:!0,json:!0})}}default:throw new exceptions.E_UNENCODABLE_VALUE(r)}},fromStructuredData=r=>{switch(r._t){case"js:Object":{const o={},u=JSON.parse(atou(r._s));return Object.entries(u).forEach(([h,m])=>{o[h]=fromStructuredData(m)}),o}case"js:Array":return JSON.parse(atou(r._s)).map(u=>fromStructuredData(u));case"js:Map":{const o=new Map;return r._s.forEach(([u,h])=>{o.set(fromStructuredData(u),fromStructuredData(h))}),o}case"js:Set":{const o=new Set;return r._s.forEach(u=>{o.add(fromStructuredData(u))}),o}case"js:negativeZero":return-0;case"js:bigint":return BigInt(r._s);case"js:bigintTypedArray":{const o=fromStructuredData(r._s);return deserialize(o)}case"js:native":return deserialize(r._s);case"@nhtio/phone-object:Phone":{const o=fromStructuredData(r._s);return new Phone$1(o.phone,o.country)}case"luxon:DateTime":{const o=fromStructuredData(r._s);return DateTime$1.fromRFC2822(o.v,{zone:o.z,locale:o.l,outputCalendar:o.c,numberingSystem:o.n})}case"luxon:Duration":{const o=fromStructuredData(r._s);return Duration$1.fromObject(o)}case"luxon:Interval":{const o=deserialize(r._s);return Interval$1.fromDateTimes(DateTime$1.fromISO(o.start,{setZone:!0}),DateTime$1.fromISO(o.end,{setZone:!0}))}case"luxon:SystemZone":{const o=deserialize(r._s);return Info$1.normalizeZone(o.name)}case"fns:d":try{const o=deserialize(r._s);return FunctionSerializer.rehydrate(o)}catch(o){const u=new exceptions.E_UNDECODABLE_VALUE(r._t);throw o instanceof Error&&(u.cause=o),u}default:throw new exceptions.E_UNDECODABLE_VALUE(r._t)}};/*! (c) Andrea Giammarchi - ISC */const{parse:$parse,stringify:$stringify}=JSON,options={json:!0,lossy:!0},parse=r=>deserialize($parse(r)),stringify=r=>$stringify(serialize(r,options)),version="0.1.0-master-ab456424",encode=r=>{const o=toStructuredData(r),u=serialize(o,{lossy:!0,json:!0}),h=stringify({version:"0.1.0-master-ab456424",serialized:u});return utoa(h)},decode=r=>{try{const o=atou(r),u=parse(o);if(!isObject$1(u)||!("version"in u)||typeof u.version!="string"||!("serialized"in u))throw new exceptions.E_NOT_AN_ENCODED_VALUE(r);const{version:h,serialized:m}=u;if(semver.valid("0.1.0-master-ab456424")){if(!semver.valid(semver.coerce(h)))throw new exceptions.E_INVALID_VERSION(h);if(semver.gt(semver.coerce(h),"0.1.0-master-ab456424"))throw new exceptions.E_INCOMPATIBLE_VERSION(h)}const p=deserialize(m);return fromStructuredData(p)}catch(o){if(o instanceof exceptions.BaseException)throw o;const u=new exceptions.E_NOT_AN_ENCODED_VALUE(r);throw u.cause=o instanceof Error?o:void 0,u}};exports.decode=decode;exports.encode=encode;exports.version=version;
|
|
206
|
+
}`}serialize(){let o=buffer.Buffer.from(JSON.stringify({phone:this.raw,country:this.country})).toString("base64");return buffer.Buffer.from(JSON.stringify({phone:this.raw,country:this.country,hash:o})).toString("base64")}static deserialize(o){let u;try{u=buffer.Buffer.from(o,"base64").toString("utf-8")}catch{throw Error("Not a valid serialized phone object")}let h;try{h=JSON.parse(u)}catch{throw Error("Not a valid serialized phone object")}if(!h.phone||!h.country||!h.hash||buffer.Buffer.from(JSON.stringify({phone:h.phone,country:h.country})).toString("base64")!==h.hash)throw Error("Not a valid serialized phone object");return new Vr(h.phone,h.country==="XX"?void 0:h.country)}};z=new WeakMap,H=new WeakMap,Z=new WeakMap,V=new WeakMap,se=new WeakMap,le=new WeakMap,W=new WeakSet,Le=function(r){let o=country_telephone_data.allCountries.map(u=>({iso:u.iso2.toUpperCase(),prefix:String(u.dialCode).trim().replace(/\D/g,"")})).filter(u=>r.substring(0,u.prefix.length)===u.prefix).sort(ne(this,W,be)).filter(u=>{let h=this.constructor;return new h(r,u.iso).valid});return o.length>=1?o[0].iso:ne(this,W,Fe).call(this,r)},Fe=function(r){let o=country_telephone_data.allCountries.map(u=>({iso:u.iso2.toUpperCase(),prefix:String(u.dialCode).trim().replace(/\D/g,"")})).sort(ne(this,W,be)).filter(u=>{let h=this.constructor;return new h(r,u.iso).valid});return o.length>=1?o[0].iso:"XX"},be=function(r,o){if(r.prefix.length===o.prefix.length){let u=Number.parseInt(r.prefix),h=Number.parseInt(o.prefix);return u===h?r.iso.localeCompare(o.iso):u>h?1:-1}return r.prefix.length>o.prefix.length?1:-1},we=function(r){if(!r)return"INVALID";let o=M(this,Z).getNumberType(r),u=Object.values(libphonenumberExports.PhoneNumberType),h=Object.keys(libphonenumberExports.PhoneNumberType),m=u.indexOf(o);return h[m]||"INVALID"},ve=function(){let r=this.raw.substring(1,4);return areaCodeMap[r]&&typeof areaCodeMap[r]=="string"?areaCodeMap[r]:"XX"};let Phone=Te;const messages={"phone.base":"{{#label}} must be a phone number","phone.invalid":"{{#label}} must be a valid phone number for {{#country}}","phone.fixedLine":"{{#label}} must be a fixed line number for {{#country}}","phone.mobile":"{{#label}} must be a mobile number for {{#country}}","phone.strictFixedLine":"{{#label}} is not a fixed line number for {{#country}}","phone.strictMobile":"{{#label}} is not a mobile number for {{#country}}","phone.fixedLineOrMobile":"{{#label}} must be a fixed line or mobile number for {{#country}}","phone.tollFree":"{{#label}} must be a toll-free number for {{#country}}","phone.premiumRate":"{{#label}} must be a premium rate number for {{#country}}","phone.sharedCost":"{{#label}} must be a shared cost number for {{#country}}","phone.voip":"{{#label}} must be a VoIP number for {{#country}}","phone.personalNumber":"{{#label}} must be a personal number for {{#country}}","phone.pager":"{{#label}} must be a pager number for {{#country}}","phone.uan":"{{#label}} must be a UAN number for {{#country}}","phone.voicemail":"{{#label}} must be a voicemail number for {{#country}}","phone.unknown":"{{#label}} must be an unknown type number for {{#country}}","phone.types":"{{#label}} must be one of the specified phone types for {{#country}}"},coerceCountry=r=>{if(typeof r!="string")return null;if(isos.has(r.toUpperCase()))return r.toUpperCase();let o=null;return countries.forEach((u,h)=>{u.toLowerCase()===r.toLowerCase()&&(o=h)}),o},getPhoneObject=(r,o)=>{let u=coerceCountry(o);try{return new Phone(r,u||void 0)}catch{return}},evaluate=(r,o,u)=>{switch(o){case"fixedLine":return["FIXED_LINE","FIXED_LINE_OR_MOBILE"].includes(r.type);case"mobile":return["MOBILE","FIXED_LINE_OR_MOBILE"].includes(r.type);case"fixedLineOrMobile":return["FIXED_LINE","MOBILE","FIXED_LINE_OR_MOBILE"].includes(r.type);case"strictFixedLine":return r.type==="FIXED_LINE";case"strictMobile":return r.type==="MOBILE";case"tollFree":return r.type==="TOLL_FREE";case"premiumRate":return r.type==="PREMIUM_RATE";case"sharedCost":return r.type==="SHARED_COST";case"voip":return r.type==="VOIP";case"personalNumber":return r.type==="PERSONAL_NUMBER";case"pager":return r.type==="PAGER";case"uan":return r.type==="UAN";case"voicemail":return r.type==="VOICEMAIL";case"unknown":return r.type==="UNKNOWN";case"types":return u[0].includes(r.type);default:return!1}},phone=function(r){let o=(h,m)=>typeof h=="string"||typeof h=="number"?(h=h.toString().trim(),{value:h}):{value:h,errors:[m.error("phone.base",{value:String(h)})]},u=h=>{if("$i18n"in r){let m=r;return countries.has(h)&&(m.$i18n(`country.${h}`)||countries.get(h))||h}return countries.get(h)||h};return{type:"phone",base:r.any(),validate(h,{error:m,schema:p,prefs:_,state:y}){let S=h==null,$=p._flags.presence==="required";if(S&&!$)return{value:null};if(S&&$)return{value:h,errors:[m("any.required",{label:p._flags.label})]};let E=p.$_getFlag("country"),A=r.isRef(E)?E.resolve(h,y,_):E,T=getPhoneObject(h,A);if(T){if(!T.valid)return A?{value:h,errors:[m("phone.invalid",{value:String(h),country:u(A)})]}:{value:h,errors:[m("phone.base",{value:String(h)})]}}else return{value:h,errors:[m("phone.base",{value:String(h)})]};let N=p.$_getFlag("as")||"e164",O;switch(N){case"international":O=T.international;break;case"national":O=T.national;break;case"raw":O=T.raw;break;case"timezone":O=T.timezone;break;case"type":O=T.type;break;case"country":O=T.country;break;default:O=T.e164}return{value:O}},flags:{country:{default:null,setter:"country"},as:{default:"e164",setter:"format"}},args(...h){let[m,p]=h;return m.country(p)},coerce:{from:["string","number"],method:o},rules:{check:{method:!1,validate(h,m,p,{name:_,operator:y}){let{state:S,prefs:$}=m,E=m.schema.$_getFlag("country");r.isRef(E)&&(E=E.resolve(h,S,$));let A=getPhoneObject(h,E);if(A){if(!A.valid)return E?m.error("phone.invalid",{value:String(h),country:u(E)}):{value:h,errors:[m.error("phone.base",{value:String(h)})]}}else return m.error("phone.base",{value:String(h)});return evaluate(A,y,Object.values(p||{}))?h:m.error("phone."+_,{value:h.toString(),country:u(E),...p})}},country:{method(h){return this.$_setFlag("country",h)},args:[{name:"country",ref:!0,assert:h=>typeof h=="string"||r.isRef(h),message:"must be a string or a reference"}]},format:{method(h){return this.$_setFlag("as",h)},args:[{name:"as",assert:h=>["e164","international","national","raw","timezone","type","country"].includes(h),message:"must be one of e164, international, national, raw, timezone, type, or country"}]},fixedLine:{method(){return this.$_addRule({name:"fixedLine",method:"check",operator:"fixedLine"})}},mobile:{method(){return this.$_addRule({name:"mobile",method:"check",operator:"mobile"})}},strictFixedLine:{method(){return this.$_addRule({name:"strictFixedLine",method:"check",operator:"strictFixedLine"})}},strictMobile:{method(){return this.$_addRule({name:"strictMobile",method:"check",operator:"strictMobile"})}},fixedLineOrMobile:{method(){return this.$_addRule({name:"fixedLineOrMobile",method:"check",operator:"fixedLineOrMobile"})}},tollFree:{method(){return this.$_addRule({name:"tollFree",method:"check",operator:"tollFree"})}},premiumRate:{method(){return this.$_addRule({name:"premiumRate",method:"check",operator:"premiumRate"})}},sharedCost:{method(){return this.$_addRule({name:"sharedCost",method:"check",operator:"sharedCost"})}},voip:{method(){return this.$_addRule({name:"voip",method:"check",operator:"voip"})}},personalNumber:{method(){return this.$_addRule({name:"personalNumber",method:"check",operator:"personalNumber"})}},pager:{method(){return this.$_addRule({name:"pager",method:"check",operator:"pager"})}},uan:{method(){return this.$_addRule({name:"uan",method:"check",operator:"uan"})}},voicemail:{method(){return this.$_addRule({name:"voicemail",method:"check",operator:"voicemail"})}},unknown:{method(){return this.$_addRule({name:"unknown",method:"check",operator:"unknown"})}},types:{method(...h){return this.$_addRule({name:"types",method:"check",operator:"types",args:{types:h}})}}},cast:{string:{from:h=>typeof h=="string"||typeof h=="number",to:h=>h},number:{from:h=>typeof h=="string"||typeof h=="number",to(h,m){let p=m.schema.$_getFlag("country"),_=getPhoneObject(h,p);return _?Number(_.raw):-1}},object:{from:h=>typeof h=="string"||typeof h=="number",to(h,m){let p=m.schema.$_getFlag("country"),_=getPhoneObject(h,p);return _?_.toObject():{}}}},messages}};var DP=20,RM=1,MAX_DP=1e6,MAX_POWER=1e6,NE=-7,PE=21,STRICT=!1,NAME="[big.js] ",INVALID$3=NAME+"Invalid ",INVALID_DP=INVALID$3+"decimal places",INVALID_RM=INVALID$3+"rounding mode",DIV_BY_ZERO=NAME+"Division by zero",P={},UNDEFINED=void 0,NUMERIC=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function _Big_(){function r(o){var u=this;if(!(u instanceof r))return o===UNDEFINED&&arguments.length===0?_Big_():new r(o);if(o instanceof r)u.s=o.s,u.e=o.e,u.c=o.c.slice();else{if(typeof o!="string"){if(r.strict===!0&&typeof o!="bigint")throw TypeError(INVALID$3+"value");o=o===0&&1/o<0?"-0":String(o)}parse$8(u,o)}u.constructor=r}return r.prototype=P,r.DP=DP,r.RM=RM,r.NE=NE,r.PE=PE,r.strict=STRICT,r.roundDown=0,r.roundHalfUp=1,r.roundHalfEven=2,r.roundUp=3,r}function parse$8(r,o){var u,h,m;if(!NUMERIC.test(o))throw Error(INVALID$3+"number");for(r.s=o.charAt(0)=="-"?(o=o.slice(1),-1):1,(u=o.indexOf("."))>-1&&(o=o.replace(".","")),(h=o.search(/e/i))>0?(u<0&&(u=h),u+=+o.slice(h+1),o=o.substring(0,h)):u<0&&(u=o.length),m=o.length,h=0;h<m&&o.charAt(h)=="0";)++h;if(h==m)r.c=[r.e=0];else{for(;m>0&&o.charAt(--m)=="0";);for(r.e=u-h-1,r.c=[],u=0;h<=m;)r.c[u++]=+o.charAt(h++)}return r}function round(r,o,u,h){var m=r.c;if(u===UNDEFINED&&(u=r.constructor.RM),u!==0&&u!==1&&u!==2&&u!==3)throw Error(INVALID_RM);if(o<1)h=u===3&&(h||!!m[0])||o===0&&(u===1&&m[0]>=5||u===2&&(m[0]>5||m[0]===5&&(h||m[1]!==UNDEFINED))),m.length=1,h?(r.e=r.e-o+1,m[0]=1):m[0]=r.e=0;else if(o<m.length){if(h=u===1&&m[o]>=5||u===2&&(m[o]>5||m[o]===5&&(h||m[o+1]!==UNDEFINED||m[o-1]&1))||u===3&&(h||!!m[0]),m.length=o,h){for(;++m[--o]>9;)if(m[o]=0,o===0){++r.e,m.unshift(1);break}}for(o=m.length;!m[--o];)m.pop()}return r}function stringify$1(r,o,u){var h=r.e,m=r.c.join(""),p=m.length;if(o)m=m.charAt(0)+(p>1?"."+m.slice(1):"")+(h<0?"e":"e+")+h;else if(h<0){for(;++h;)m="0"+m;m="0."+m}else if(h>0)if(++h>p)for(h-=p;h--;)m+="0";else h<p&&(m=m.slice(0,h)+"."+m.slice(h));else p>1&&(m=m.charAt(0)+"."+m.slice(1));return r.s<0&&u?"-"+m:m}P.abs=function(){var r=new this.constructor(this);return r.s=1,r},P.cmp=function(r){var o,u=this,h=u.c,m=(r=new u.constructor(r)).c,p=u.s,_=r.s,y=u.e,S=r.e;if(!h[0]||!m[0])return h[0]?p:m[0]?-_:0;if(p!=_)return p;if(o=p<0,y!=S)return y>S^o?1:-1;for(_=(y=h.length)<(S=m.length)?y:S,p=-1;++p<_;)if(h[p]!=m[p])return h[p]>m[p]^o?1:-1;return y==S?0:y>S^o?1:-1},P.div=function(r){var o=this,u=o.constructor,h=o.c,m=(r=new u(r)).c,p=o.s==r.s?1:-1,_=u.DP;if(_!==~~_||_<0||_>MAX_DP)throw Error(INVALID_DP);if(!m[0])throw Error(DIV_BY_ZERO);if(!h[0])return r.s=p,r.c=[r.e=0],r;var y,S,$,E,A,T=m.slice(),N=y=m.length,O=h.length,C=h.slice(0,y),L=C.length,w=r,I=w.c=[],D=0,F=_+(w.e=o.e-r.e)+1;for(w.s=p,p=F<0?0:F,T.unshift(0);L++<y;)C.push(0);do{for($=0;$<10;$++){if(y!=(L=C.length))E=y>L?1:-1;else for(A=-1,E=0;++A<y;)if(m[A]!=C[A]){E=m[A]>C[A]?1:-1;break}if(E<0){for(S=L==y?m:T;L;){if(C[--L]<S[L]){for(A=L;A&&!C[--A];)C[A]=9;--C[A],C[L]+=10}C[L]-=S[L]}for(;!C[0];)C.shift()}else break}I[D++]=E?$:++$,C[0]&&E?C[L]=h[N]||0:C=[h[N]]}while((N++<O||C[0]!==UNDEFINED)&&p--);return!I[0]&&D!=1&&(I.shift(),w.e--,F--),D>F&&round(w,F,u.RM,C[0]!==UNDEFINED),w},P.eq=function(r){return this.cmp(r)===0},P.gt=function(r){return this.cmp(r)>0},P.gte=function(r){return this.cmp(r)>-1},P.lt=function(r){return this.cmp(r)<0},P.lte=function(r){return this.cmp(r)<1},P.minus=P.sub=function(r){var o,u,h,m,p=this,_=p.constructor,y=p.s,S=(r=new _(r)).s;if(y!=S)return r.s=-S,p.plus(r);var $=p.c.slice(),E=p.e,A=r.c,T=r.e;if(!$[0]||!A[0])return A[0]?r.s=-S:$[0]?r=new _(p):r.s=1,r;if(y=E-T){for((m=y<0)?(y=-y,h=$):(T=E,h=A),h.reverse(),S=y;S--;)h.push(0);h.reverse()}else for(u=((m=$.length<A.length)?$:A).length,y=S=0;S<u;S++)if($[S]!=A[S]){m=$[S]<A[S];break}if(m&&(h=$,$=A,A=h,r.s=-r.s),(S=(u=A.length)-(o=$.length))>0)for(;S--;)$[o++]=0;for(S=o;u>y;){if($[--u]<A[u]){for(o=u;o&&!$[--o];)$[o]=9;--$[o],$[u]+=10}$[u]-=A[u]}for(;$[--S]===0;)$.pop();for(;$[0]===0;)$.shift(),--T;return $[0]||(r.s=1,$=[T=0]),r.c=$,r.e=T,r},P.mod=function(r){var o,u=this,h=u.constructor,m=u.s,p=(r=new h(r)).s;if(!r.c[0])throw Error(DIV_BY_ZERO);return u.s=r.s=1,o=r.cmp(u)==1,u.s=m,r.s=p,o?new h(u):(m=h.DP,p=h.RM,h.DP=h.RM=0,u=u.div(r),h.DP=m,h.RM=p,this.minus(u.times(r)))},P.neg=function(){var r=new this.constructor(this);return r.s=-r.s,r},P.plus=P.add=function(r){var o,u,h,m=this,p=m.constructor;if(r=new p(r),m.s!=r.s)return r.s=-r.s,m.minus(r);var _=m.e,y=m.c,S=r.e,$=r.c;if(!y[0]||!$[0])return $[0]||(y[0]?r=new p(m):r.s=m.s),r;if(y=y.slice(),o=_-S){for(o>0?(S=_,h=$):(o=-o,h=y),h.reverse();o--;)h.push(0);h.reverse()}for(y.length-$.length<0&&(h=$,$=y,y=h),o=$.length,u=0;o;y[o]%=10)u=(y[--o]=y[o]+$[o]+u)/10|0;for(u&&(y.unshift(u),++S),o=y.length;y[--o]===0;)y.pop();return r.c=y,r.e=S,r},P.pow=function(r){var o=this,u=new o.constructor("1"),h=u,m=r<0;if(r!==~~r||r<-MAX_POWER||r>MAX_POWER)throw Error(INVALID$3+"exponent");for(m&&(r=-r);r&1&&(h=h.times(o)),r>>=1,r;)o=o.times(o);return m?u.div(h):h},P.prec=function(r,o){if(r!==~~r||r<1||r>MAX_DP)throw Error(INVALID$3+"precision");return round(new this.constructor(this),r,o)},P.round=function(r,o){if(r===UNDEFINED)r=0;else if(r!==~~r||r<-MAX_DP||r>MAX_DP)throw Error(INVALID_DP);return round(new this.constructor(this),r+this.e+1,o)},P.sqrt=function(){var r,o,u,h=this,m=h.constructor,p=h.s,_=h.e,y=new m("0.5");if(!h.c[0])return new m(h);if(p<0)throw Error(NAME+"No square root");p=Math.sqrt(+stringify$1(h,!0,!0)),p===0||p===1/0?(o=h.c.join(""),o.length+_&1||(o+="0"),p=Math.sqrt(o),_=((_+1)/2|0)-(_<0||_&1),r=new m((p==1/0?"5e":(p=p.toExponential()).slice(0,p.indexOf("e")+1))+_)):r=new m(p+""),_=r.e+(m.DP+=4);do u=r,r=y.times(u.plus(h.div(u)));while(u.c.slice(0,_).join("")!==r.c.slice(0,_).join(""));return round(r,(m.DP-=4)+r.e+1,m.RM)},P.times=P.mul=function(r){var o,u=this,h=u.constructor,m=u.c,p=(r=new h(r)).c,_=m.length,y=p.length,S=u.e,$=r.e;if(r.s=u.s==r.s?1:-1,!m[0]||!p[0])return r.c=[r.e=0],r;for(r.e=S+$,_<y&&(o=m,m=p,p=o,$=_,_=y,y=$),o=Array($=_+y);$--;)o[$]=0;for(S=y;S--;){for(y=0,$=_+S;$>S;)y=o[$]+p[S]*m[$-S-1]+y,o[$--]=y%10,y=y/10|0;o[$]=y}for(y?++r.e:o.shift(),S=o.length;!o[--S];)o.pop();return r.c=o,r},P.toExponential=function(r,o){var u=this,h=u.c[0];if(r!==UNDEFINED){if(r!==~~r||r<0||r>MAX_DP)throw Error(INVALID_DP);for(u=round(new u.constructor(u),++r,o);u.c.length<r;)u.c.push(0)}return stringify$1(u,!0,!!h)},P.toFixed=function(r,o){var u=this,h=u.c[0];if(r!==UNDEFINED){if(r!==~~r||r<0||r>MAX_DP)throw Error(INVALID_DP);for(u=round(new u.constructor(u),r+u.e+1,o),r=r+u.e+1;u.c.length<r;)u.c.push(0)}return stringify$1(u,!1,!!h)},P.toJSON=P.toString=function(){var r=this,o=r.constructor;return stringify$1(r,r.e<=o.NE||r.e>=o.PE,!!r.c[0])},typeof Symbol<"u"&&(P[Symbol.for("nodejs.util.inspect.custom")]=P.toJSON),P.toNumber=function(){var r=+stringify$1(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(r.toString()))throw Error(NAME+"Imprecise conversion");return r},P.toPrecision=function(r,o){var u=this,h=u.constructor,m=u.c[0];if(r!==UNDEFINED){if(r!==~~r||r<1||r>MAX_DP)throw Error(INVALID$3+"precision");for(u=round(new h(u),r,o);u.c.length<r;)u.c.push(0)}return stringify$1(u,r<=u.e||u.e<=h.NE||u.e>=h.PE,!!m)},P.valueOf=function(){var r=this,o=r.constructor;if(o.strict===!0)throw Error(NAME+"valueOf disallowed");return stringify$1(r,r.e<=o.NE||r.e>=o.PE,!0)};var Big=_Big_(),big_default=Big;const messages$1={"bigint.base":'"{{#label}}" must be a valid bigint',"bigint.greater":'"{{#label}}" must be greater than {{#limit}}',"bigint.less":'"{{#label}}" must be less than {{#limit}}',"bigint.max":'"{{#label}}" must be less than or equal to {{#limit}}',"bigint.min":'"{{#label}}" must be greater than or equal to {{#limit}}',"bigint.multiple":'"{{#label}}" must be a multiple of {{#limit}}',"bigint.negative":'"{{#label}}" must be a negative bigint',"bigint.positive":'"{{#label}}" must be a positive bigint'},compare$13=(r,o,u)=>{switch(u){case">":return r.gt(o);case"<":return r.lt(o);case">=":return r.gte(o);case"<=":return r.lte(o);case"multiple":return r.mod(o).eq(0);default:return!1}},bigint=function(r){return{type:"bigint",base:r.any(),coerce:{from:["string","number"],method(o,u){if(typeof o=="bigint")return{value:o};try{let h=big_default(o.toString());return h.eq(h.round(0))?{value:BigInt(h.toString())}:{value:o,errors:[u.error("bigint.base",{value:String(o)})]}}catch{return{value:o,errors:[u.error("bigint.base",{value:String(o)})]}}}},messages:messages$1,validate(o,{error:u}){return typeof o=="bigint"?{value:o}:{value:o,errors:u("bigint.base",{value:String(o)})}},rules:{compare:{method:!1,validate(o,u,{limit:h},{name:m,operator:p}){let _=o==null,y=u.schema._flags.presence==="required";if(_&&!y)return null;if(_&&y)return{value:o,errors:[u.error("any.required",{label:u.schema._flags.label})]};let S=big_default(o.toString()),$=big_default(h.toString());return compare$13(S,$,p)?o:u.error("bigint."+m,{limit:h.toString(),value:o.toString()})},args:[{name:"limit",ref:!0,assert:o=>["bigint","number","string"].includes(typeof o),message:"must be a bigint"}]},greater:{method(o){return this.$_addRule({name:"greater",method:"compare",args:{limit:o},operator:">"})}},less:{method(o){return this.$_addRule({name:"less",method:"compare",args:{limit:o},operator:"<"})}},max:{method(o){return this.$_addRule({name:"max",method:"compare",args:{limit:o},operator:"<="})}},min:{method(o){return this.$_addRule({name:"min",method:"compare",args:{limit:o},operator:">="})}},multiple:{method(o){return this.$_addRule({name:"multiple",method:"compare",args:{limit:o},operator:"multiple"})}},negative:{method(){return this.$_addRule("negative")},validate(o,u){return o>=0n?u.error("bigint.negative",{value:o.toString()}):o}},positive:{method(){return this.$_addRule("positive")},validate(o,u){return o<=0n?u.error("bigint.positive",{value:o.toString()}):o}}},cast:{string:{from:o=>typeof o=="bigint",to(o){return o.toString()}}}}};var LuxonError=class extends Error{},InvalidDateTimeError=class extends LuxonError{constructor(r){super(`Invalid DateTime: ${r.toMessage()}`)}},InvalidIntervalError=class extends LuxonError{constructor(r){super(`Invalid Interval: ${r.toMessage()}`)}},InvalidDurationError=class extends LuxonError{constructor(r){super(`Invalid Duration: ${r.toMessage()}`)}},ConflictingSpecificationError=class extends LuxonError{},InvalidUnitError=class extends LuxonError{constructor(r){super(`Invalid unit ${r}`)}},InvalidArgumentError=class extends LuxonError{},ZoneIsAbstractError=class extends LuxonError{constructor(){super("Zone is an abstract class")}};const n="numeric",s="short",l="long",DATE_SHORT={year:n,month:n,day:n},DATE_MED={year:n,month:s,day:n},DATE_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s},DATE_FULL={year:n,month:l,day:n},DATE_HUGE={year:n,month:l,day:n,weekday:l},TIME_SIMPLE={hour:n,minute:n},TIME_WITH_SECONDS={hour:n,minute:n,second:n},TIME_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,timeZoneName:s},TIME_WITH_LONG_OFFSET={hour:n,minute:n,second:n,timeZoneName:l},TIME_24_SIMPLE={hour:n,minute:n,hourCycle:"h23"},TIME_24_WITH_SECONDS={hour:n,minute:n,second:n,hourCycle:"h23"},TIME_24_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:s},TIME_24_WITH_LONG_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:l},DATETIME_SHORT={year:n,month:n,day:n,hour:n,minute:n},DATETIME_SHORT_WITH_SECONDS={year:n,month:n,day:n,hour:n,minute:n,second:n},DATETIME_MED={year:n,month:s,day:n,hour:n,minute:n},DATETIME_MED_WITH_SECONDS={year:n,month:s,day:n,hour:n,minute:n,second:n},DATETIME_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s,hour:n,minute:n},DATETIME_FULL={year:n,month:l,day:n,hour:n,minute:n,timeZoneName:s},DATETIME_FULL_WITH_SECONDS={year:n,month:l,day:n,hour:n,minute:n,second:n,timeZoneName:s},DATETIME_HUGE={year:n,month:l,day:n,weekday:l,hour:n,minute:n,timeZoneName:l},DATETIME_HUGE_WITH_SECONDS={year:n,month:l,day:n,weekday:l,hour:n,minute:n,second:n,timeZoneName:l};var Zone=class{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(r,o){throw new ZoneIsAbstractError}formatOffset(r,o){throw new ZoneIsAbstractError}offset(r){throw new ZoneIsAbstractError}equals(r){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}};let singleton$1=null;var SystemZone=class jr extends Zone{static get instance(){return singleton$1===null&&(singleton$1=new jr),singleton$1}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(o,{format:u,locale:h}){return parseZoneInfo(o,u,h)}formatOffset(o,u){return formatOffset(this.offset(o),u)}offset(o){return-new Date(o).getTimezoneOffset()}equals(o){return o.type==="system"}get isValid(){return!0}};const dtfCache=new Map;function makeDTF(r){let o=dtfCache.get(r);return o===void 0&&(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),dtfCache.set(r,o)),o}const typeToPos={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(r,o){let u=r.format(o).replace(/\u200E/g,""),h=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(u),[,m,p,_,y,S,$,E]=h;return[_,m,p,y,S,$,E]}function partsOffset(r,o){let u=r.formatToParts(o),h=[];for(let m=0;m<u.length;m++){let{type:p,value:_}=u[m],y=typeToPos[p];p==="era"?h[y]=_:isUndefined(y)||(h[y]=parseInt(_,10))}return h}const ianaZoneCache=new Map;var IANAZone=class Lr extends Zone{static create(o){let u=ianaZoneCache.get(o);return u===void 0&&ianaZoneCache.set(o,u=new Lr(o)),u}static resetCache(){ianaZoneCache.clear(),dtfCache.clear()}static isValidSpecifier(o){return this.isValidZone(o)}static isValidZone(o){if(!o)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:o}).format(),!0}catch{return!1}}constructor(o){super(),this.zoneName=o,this.valid=Lr.isValidZone(o)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(o,{format:u,locale:h}){return parseZoneInfo(o,u,h,this.name)}formatOffset(o,u){return formatOffset(this.offset(o),u)}offset(o){if(!this.valid)return NaN;let u=new Date(o);if(isNaN(u))return NaN;let h=makeDTF(this.name),[m,p,_,y,S,$,E]=h.formatToParts?partsOffset(h,u):hackyOffset(h,u);y==="BC"&&(m=-Math.abs(m)+1);let A=S===24?0:S,T=objToLocalTS({year:m,month:p,day:_,hour:A,minute:$,second:E,millisecond:0}),N=+u,O=N%1e3;return N-=O>=0?O:1e3+O,(T-N)/(60*1e3)}equals(o){return o.type==="iana"&&o.name===this.name}get isValid(){return this.valid}};let intlLFCache={};function getCachedLF(r,o={}){let u=JSON.stringify([r,o]),h=intlLFCache[u];return h||(h=new Intl.ListFormat(r,o),intlLFCache[u]=h),h}const intlDTCache=new Map;function getCachedDTF(r,o={}){let u=JSON.stringify([r,o]),h=intlDTCache.get(u);return h===void 0&&(h=new Intl.DateTimeFormat(r,o),intlDTCache.set(u,h)),h}const intlNumCache=new Map;function getCachedINF(r,o={}){let u=JSON.stringify([r,o]),h=intlNumCache.get(u);return h===void 0&&(h=new Intl.NumberFormat(r,o),intlNumCache.set(u,h)),h}const intlRelCache=new Map;function getCachedRTF(r,o={}){let{base:u,...h}=o,m=JSON.stringify([r,h]),p=intlRelCache.get(m);return p===void 0&&(p=new Intl.RelativeTimeFormat(r,o),intlRelCache.set(m,p)),p}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache)}const intlResolvedOptionsCache=new Map;function getCachedIntResolvedOptions(r){let o=intlResolvedOptionsCache.get(r);return o===void 0&&(o=new Intl.DateTimeFormat(r).resolvedOptions(),intlResolvedOptionsCache.set(r,o)),o}const weekInfoCache=new Map;function getCachedWeekInfo(r){let o=weekInfoCache.get(r);if(!o){let u=new Intl.Locale(r);o="getWeekInfo"in u?u.getWeekInfo():u.weekInfo,"minimalDays"in o||(o={...fallbackWeekSettings,...o}),weekInfoCache.set(r,o)}return o}function parseLocaleString(r){let o=r.indexOf("-x-");o!==-1&&(r=r.substring(0,o));let u=r.indexOf("-u-");if(u===-1)return[r];{let h,m;try{h=getCachedDTF(r).resolvedOptions(),m=r}catch{let y=r.substring(0,u);h=getCachedDTF(y).resolvedOptions(),m=y}let{numberingSystem:p,calendar:_}=h;return[m,p,_]}}function intlConfigString(r,o,u){return(u||o)&&(r.includes("-u-")||(r+="-u"),u&&(r+=`-ca-${u}`),o&&(r+=`-nu-${o}`)),r}function mapMonths(r){let o=[];for(let u=1;u<=12;u++){let h=DateTime.utc(2009,u,1);o.push(r(h))}return o}function mapWeekdays(r){let o=[];for(let u=1;u<=7;u++){let h=DateTime.utc(2016,11,13+u);o.push(r(h))}return o}function listStuff(r,o,u,h){let m=r.listingMode();return m==="error"?null:m==="en"?u(o):h(o)}function supportsFastNumbers(r){return r.numberingSystem&&r.numberingSystem!=="latn"?!1:r.numberingSystem==="latn"||!r.locale||r.locale.startsWith("en")||getCachedIntResolvedOptions(r.locale).numberingSystem==="latn"}var PolyNumberFormatter=class{constructor(r,o,u){this.padTo=u.padTo||0,this.floor=u.floor||!1;let{padTo:h,floor:m,...p}=u;if(!o||Object.keys(p).length>0){let _={useGrouping:!1,...u};u.padTo>0&&(_.minimumIntegerDigits=u.padTo),this.inf=getCachedINF(r,_)}}format(r){if(this.inf){let o=this.floor?Math.floor(r):r;return this.inf.format(o)}else{let o=this.floor?Math.floor(r):roundTo(r,3);return padStart(o,this.padTo)}}},PolyDateFormatter=class{constructor(r,o,u){this.opts=u,this.originalZone=void 0;let h;if(this.opts.timeZone)this.dt=r;else if(r.zone.type==="fixed"){let p=-1*(r.offset/60),_=p>=0?`Etc/GMT+${p}`:`Etc/GMT${p}`;r.offset!==0&&IANAZone.create(_).valid?(h=_,this.dt=r):(h="UTC",this.dt=r.offset===0?r:r.setZone("UTC").plus({minutes:r.offset}),this.originalZone=r.zone)}else r.zone.type==="system"?this.dt=r:r.zone.type==="iana"?(this.dt=r,h=r.zone.name):(h="UTC",this.dt=r.setZone("UTC").plus({minutes:r.offset}),this.originalZone=r.zone);let m={...this.opts};m.timeZone=m.timeZone||h,this.dtf=getCachedDTF(o,m)}format(){return this.originalZone?this.formatToParts().map(({value:r})=>r).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let r=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?r.map(o=>{if(o.type==="timeZoneName"){let u=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...o,value:u}}else return o}):r}resolvedOptions(){return this.dtf.resolvedOptions()}},PolyRelFormatter=class{constructor(r,o,u){this.opts={style:"long",...u},!o&&hasRelative()&&(this.rtf=getCachedRTF(r,u))}format(r,o){return this.rtf?this.rtf.format(r,o):formatRelativeTime(o,r,this.opts.numeric,this.opts.style!=="long")}formatToParts(r,o){return this.rtf?this.rtf.formatToParts(r,o):[]}};const fallbackWeekSettings={firstDay:1,minimalDays:4,weekend:[6,7]};var Locale=class Sr{static fromOpts(o){return Sr.create(o.locale,o.numberingSystem,o.outputCalendar,o.weekSettings,o.defaultToEN)}static create(o,u,h,m,p=!1){let _=o||Settings.defaultLocale,y=_||(p?"en-US":systemLocale()),S=u||Settings.defaultNumberingSystem,$=h||Settings.defaultOutputCalendar,E=validateWeekSettings(m)||Settings.defaultWeekSettings;return new Sr(y,S,$,E,_)}static resetCache(){sysLocaleCache=null,intlDTCache.clear(),intlNumCache.clear(),intlRelCache.clear(),intlResolvedOptionsCache.clear(),weekInfoCache.clear()}static fromObject({locale:o,numberingSystem:u,outputCalendar:h,weekSettings:m}={}){return Sr.create(o,u,h,m)}constructor(o,u,h,m,p){let[_,y,S]=parseLocaleString(o);this.locale=_,this.numberingSystem=u||y||null,this.outputCalendar=h||S||null,this.weekSettings=m,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=p,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached??(this.fastNumbersCached=supportsFastNumbers(this)),this.fastNumbersCached}listingMode(){let o=this.isEnglish(),u=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return o&&u?"en":"intl"}clone(o){return!o||Object.getOwnPropertyNames(o).length===0?this:Sr.create(o.locale||this.specifiedLocale,o.numberingSystem||this.numberingSystem,o.outputCalendar||this.outputCalendar,validateWeekSettings(o.weekSettings)||this.weekSettings,o.defaultToEN||!1)}redefaultToEN(o={}){return this.clone({...o,defaultToEN:!0})}redefaultToSystem(o={}){return this.clone({...o,defaultToEN:!1})}months(o,u=!1){return listStuff(this,o,months,()=>{let h=this.intl==="ja"||this.intl.startsWith("ja-");u&=!h;let m=u?{month:o,day:"numeric"}:{month:o},p=u?"format":"standalone";if(!this.monthsCache[p][o]){let _=h?y=>this.dtFormatter(y,m).format():y=>this.extract(y,m,"month");this.monthsCache[p][o]=mapMonths(_)}return this.monthsCache[p][o]})}weekdays(o,u=!1){return listStuff(this,o,weekdays,()=>{let h=u?{weekday:o,year:"numeric",month:"long",day:"numeric"}:{weekday:o},m=u?"format":"standalone";return this.weekdaysCache[m][o]||(this.weekdaysCache[m][o]=mapWeekdays(p=>this.extract(p,h,"weekday"))),this.weekdaysCache[m][o]})}meridiems(){return listStuff(this,void 0,()=>meridiems,()=>{if(!this.meridiemCache){let o={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(u=>this.extract(u,o,"dayperiod"))}return this.meridiemCache})}eras(o){return listStuff(this,o,eras,()=>{let u={era:o};return this.eraCache[o]||(this.eraCache[o]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(h=>this.extract(h,u,"era"))),this.eraCache[o]})}extract(o,u,h){let m=this.dtFormatter(o,u),p=m.formatToParts(),_=p.find(y=>y.type.toLowerCase()===h);return _?_.value:null}numberFormatter(o={}){return new PolyNumberFormatter(this.intl,o.forceSimple||this.fastNumbers,o)}dtFormatter(o,u={}){return new PolyDateFormatter(o,this.intl,u)}relFormatter(o={}){return new PolyRelFormatter(this.intl,this.isEnglish(),o)}listFormatter(o={}){return getCachedLF(this.intl,o)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||getCachedIntResolvedOptions(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo()?getCachedWeekInfo(this.locale):fallbackWeekSettings}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(o){return this.locale===o.locale&&this.numberingSystem===o.numberingSystem&&this.outputCalendar===o.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};let singleton=null;var FixedOffsetZone=class $r extends Zone{static get utcInstance(){return singleton===null&&(singleton=new $r(0)),singleton}static instance(o){return o===0?$r.utcInstance:new $r(o)}static parseSpecifier(o){if(o){let u=o.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(u)return new $r(signedOffset(u[1],u[2]))}return null}constructor(o){super(),this.fixed=o}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(o,u){return formatOffset(this.fixed,u)}get isUniversal(){return!0}offset(){return this.fixed}equals(o){return o.type==="fixed"&&o.fixed===this.fixed}get isValid(){return!0}},InvalidZone=class extends Zone{constructor(r){super(),this.zoneName=r}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 normalizeZone(r,o){if(isUndefined(r)||r===null)return o;if(r instanceof Zone)return r;if(isString(r)){let u=r.toLowerCase();return u==="default"?o:u==="local"||u==="system"?SystemZone.instance:u==="utc"||u==="gmt"?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier(u)||IANAZone.create(r)}else return isNumber$1(r)?FixedOffsetZone.instance(r):typeof r=="object"&&"offset"in r&&typeof r.offset=="function"?r:new InvalidZone(r)}const numberingSystems={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},numberingSystemsUTF16={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]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(r){let o=parseInt(r,10);if(isNaN(o)){o="";for(let u=0;u<r.length;u++){let h=r.charCodeAt(u);if(r[u].search(numberingSystems.hanidec)!==-1)o+=hanidecChars.indexOf(r[u]);else for(let m in numberingSystemsUTF16){let[p,_]=numberingSystemsUTF16[m];h>=p&&h<=_&&(o+=h-p)}}return parseInt(o,10)}else return o}const digitRegexCache=new Map;function resetDigitRegexCache(){digitRegexCache.clear()}function digitRegex({numberingSystem:r},o=""){let u=r||"latn",h=digitRegexCache.get(u);h===void 0&&(h=new Map,digitRegexCache.set(u,h));let m=h.get(o);return m===void 0&&(m=RegExp(`${numberingSystems[u]}${o}`),h.set(o,m)),m}let now=()=>Date.now(),defaultZone="system",defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=60,throwOnInvalid,defaultWeekSettings=null;var Settings=class{static get now(){return now}static set now(r){now=r}static set defaultZone(r){defaultZone=r}static get defaultZone(){return normalizeZone(defaultZone,SystemZone.instance)}static get defaultLocale(){return defaultLocale}static set defaultLocale(r){defaultLocale=r}static get defaultNumberingSystem(){return defaultNumberingSystem}static set defaultNumberingSystem(r){defaultNumberingSystem=r}static get defaultOutputCalendar(){return defaultOutputCalendar}static set defaultOutputCalendar(r){defaultOutputCalendar=r}static get defaultWeekSettings(){return defaultWeekSettings}static set defaultWeekSettings(r){defaultWeekSettings=validateWeekSettings(r)}static get twoDigitCutoffYear(){return twoDigitCutoffYear}static set twoDigitCutoffYear(r){twoDigitCutoffYear=r%100}static get throwOnInvalid(){return throwOnInvalid}static set throwOnInvalid(r){throwOnInvalid=r}static resetCaches(){Locale.resetCache(),IANAZone.resetCache(),DateTime.resetCache(),resetDigitRegexCache()}},Invalid=class{constructor(r,o){this.reason=r,this.explanation=o}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(r,o){return new Invalid("unit out of range",`you specified ${o} (of type ${typeof o}) as a ${r}, which is invalid`)}function dayOfWeek(r,o,u){let h=new Date(Date.UTC(r,o-1,u));r<100&&r>=0&&h.setUTCFullYear(h.getUTCFullYear()-1900);let m=h.getUTCDay();return m===0?7:m}function computeOrdinal(r,o,u){return u+(isLeapYear(r)?leapLadder:nonLeapLadder)[o-1]}function uncomputeOrdinal(r,o){let u=isLeapYear(r)?leapLadder:nonLeapLadder,h=u.findIndex(p=>p<o),m=o-u[h];return{month:h+1,day:m}}function isoWeekdayToLocal(r,o){return(r-o+7)%7+1}function gregorianToWeek(r,o=4,u=1){let{year:h,month:m,day:p}=r,_=computeOrdinal(h,m,p),y=isoWeekdayToLocal(dayOfWeek(h,m,p),u),S=Math.floor((_-y+14-o)/7),$;return S<1?($=h-1,S=weeksInWeekYear($,o,u)):S>weeksInWeekYear(h,o,u)?($=h+1,S=1):$=h,{weekYear:$,weekNumber:S,weekday:y,...timeObject(r)}}function weekToGregorian(r,o=4,u=1){let{weekYear:h,weekNumber:m,weekday:p}=r,_=isoWeekdayToLocal(dayOfWeek(h,1,o),u),y=daysInYear(h),S=m*7+p-_-7+o,$;S<1?($=h-1,S+=daysInYear($)):S>y?($=h+1,S-=daysInYear(h)):$=h;let{month:E,day:A}=uncomputeOrdinal($,S);return{year:$,month:E,day:A,...timeObject(r)}}function gregorianToOrdinal(r){let{year:o,month:u,day:h}=r,m=computeOrdinal(o,u,h);return{year:o,ordinal:m,...timeObject(r)}}function ordinalToGregorian(r){let{year:o,ordinal:u}=r,{month:h,day:m}=uncomputeOrdinal(o,u);return{year:o,month:h,day:m,...timeObject(r)}}function usesLocalWeekValues(r,o){if(!isUndefined(r.localWeekday)||!isUndefined(r.localWeekNumber)||!isUndefined(r.localWeekYear)){if(!isUndefined(r.weekday)||!isUndefined(r.weekNumber)||!isUndefined(r.weekYear))throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields");return isUndefined(r.localWeekday)||(r.weekday=r.localWeekday),isUndefined(r.localWeekNumber)||(r.weekNumber=r.localWeekNumber),isUndefined(r.localWeekYear)||(r.weekYear=r.localWeekYear),delete r.localWeekday,delete r.localWeekNumber,delete r.localWeekYear,{minDaysInFirstWeek:o.getMinDaysInFirstWeek(),startOfWeek:o.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData(r,o=4,u=1){let h=isInteger(r.weekYear),m=integerBetween(r.weekNumber,1,weeksInWeekYear(r.weekYear,o,u)),p=integerBetween(r.weekday,1,7);return h?m?p?!1:unitOutOfRange("weekday",r.weekday):unitOutOfRange("week",r.weekNumber):unitOutOfRange("weekYear",r.weekYear)}function hasInvalidOrdinalData(r){let o=isInteger(r.year),u=integerBetween(r.ordinal,1,daysInYear(r.year));return o?u?!1:unitOutOfRange("ordinal",r.ordinal):unitOutOfRange("year",r.year)}function hasInvalidGregorianData(r){let o=isInteger(r.year),u=integerBetween(r.month,1,12),h=integerBetween(r.day,1,daysInMonth(r.year,r.month));return o?u?h?!1:unitOutOfRange("day",r.day):unitOutOfRange("month",r.month):unitOutOfRange("year",r.year)}function hasInvalidTimeData(r){let{hour:o,minute:u,second:h,millisecond:m}=r,p=integerBetween(o,0,23)||o===24&&u===0&&h===0&&m===0,_=integerBetween(u,0,59),y=integerBetween(h,0,59),S=integerBetween(m,0,999);return p?_?y?S?!1:unitOutOfRange("millisecond",m):unitOutOfRange("second",h):unitOutOfRange("minute",u):unitOutOfRange("hour",o)}function isUndefined(r){return r===void 0}function isNumber$1(r){return typeof r=="number"}function isInteger(r){return typeof r=="number"&&r%1==0}function isString(r){return typeof r=="string"}function isDate(r){return Object.prototype.toString.call(r)==="[object Date]"}function hasRelative(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function maybeArray(r){return Array.isArray(r)?r:[r]}function bestBy(r,o,u){if(r.length!==0)return r.reduce((h,m)=>{let p=[o(m),m];return h&&u(h[0],p[0])===h[0]?h:p},null)[1]}function pick(r,o){return o.reduce((u,h)=>(u[h]=r[h],u),{})}function hasOwnProperty(r,o){return Object.prototype.hasOwnProperty.call(r,o)}function validateWeekSettings(r){if(r==null)return null;if(typeof r!="object")throw new InvalidArgumentError("Week settings must be an object");if(!integerBetween(r.firstDay,1,7)||!integerBetween(r.minimalDays,1,7)||!Array.isArray(r.weekend)||r.weekend.some(o=>!integerBetween(o,1,7)))throw new InvalidArgumentError("Invalid week settings");return{firstDay:r.firstDay,minimalDays:r.minimalDays,weekend:Array.from(r.weekend)}}function integerBetween(r,o,u){return isInteger(r)&&r>=o&&r<=u}function floorMod(r,o){return r-o*Math.floor(r/o)}function padStart(r,o=2){let u=r<0,h;return h=u?"-"+(""+-r).padStart(o,"0"):(""+r).padStart(o,"0"),h}function parseInteger(r){if(!(isUndefined(r)||r===null||r===""))return parseInt(r,10)}function parseFloating(r){if(!(isUndefined(r)||r===null||r===""))return parseFloat(r)}function parseMillis(r){if(!(isUndefined(r)||r===null||r==="")){let o=parseFloat("0."+r)*1e3;return Math.floor(o)}}function roundTo(r,o,u="round"){let h=10**o;switch(u){case"expand":return r>0?Math.ceil(r*h)/h:Math.floor(r*h)/h;case"trunc":return Math.trunc(r*h)/h;case"round":return Math.round(r*h)/h;case"floor":return Math.floor(r*h)/h;case"ceil":return Math.ceil(r*h)/h;default:throw RangeError(`Value rounding ${u} is out of range`)}}function isLeapYear(r){return r%4==0&&(r%100!=0||r%400==0)}function daysInYear(r){return isLeapYear(r)?366:365}function daysInMonth(r,o){let u=floorMod(o-1,12)+1,h=r+(o-u)/12;return u===2?isLeapYear(h)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][u-1]}function objToLocalTS(r){let o=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond);return r.year<100&&r.year>=0&&(o=new Date(o),o.setUTCFullYear(r.year,r.month-1,r.day)),+o}function firstWeekOffset(r,o,u){return-isoWeekdayToLocal(dayOfWeek(r,1,o),u)+o-1}function weeksInWeekYear(r,o=4,u=1){let h=firstWeekOffset(r,o,u),m=firstWeekOffset(r+1,o,u);return(daysInYear(r)-h+m)/7}function untruncateYear(r){return r>99?r:r>Settings.twoDigitCutoffYear?1900+r:2e3+r}function parseZoneInfo(r,o,u,h=null){let m=new Date(r),p={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};h&&(p.timeZone=h);let _={timeZoneName:o,...p},y=new Intl.DateTimeFormat(u,_).formatToParts(m).find(S=>S.type.toLowerCase()==="timezonename");return y?y.value:null}function signedOffset(r,o){let u=parseInt(r,10);Number.isNaN(u)&&(u=0);let h=parseInt(o,10)||0,m=u<0||Object.is(u,-0)?-h:h;return u*60+m}function asNumber(r){let o=Number(r);if(typeof r=="boolean"||r===""||!Number.isFinite(o))throw new InvalidArgumentError(`Invalid unit value ${r}`);return o}function normalizeObject(r,o){let u={};for(let h in r)if(hasOwnProperty(r,h)){let m=r[h];if(m==null)continue;u[o(h)]=asNumber(m)}return u}function formatOffset(r,o){let u=Math.trunc(Math.abs(r/60)),h=Math.trunc(Math.abs(r%60)),m=r>=0?"+":"-";switch(o){case"short":return`${m}${padStart(u,2)}:${padStart(h,2)}`;case"narrow":return`${m}${u}${h>0?`:${h}`:""}`;case"techie":return`${m}${padStart(u,2)}${padStart(h,2)}`;default:throw RangeError(`Value format ${o} is out of range for property format`)}}function timeObject(r){return pick(r,["hour","minute","second","millisecond"])}const monthsLong=["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsNarrow=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(r){switch(r){case"narrow":return[...monthsNarrow];case"short":return[...monthsShort];case"long":return[...monthsLong];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}}const weekdaysLong=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow=["M","T","W","T","F","S","S"];function weekdays(r){switch(r){case"narrow":return[...weekdaysNarrow];case"short":return[...weekdaysShort];case"long":return[...weekdaysLong];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const meridiems=["AM","PM"],erasLong=["Before Christ","Anno Domini"],erasShort=["BC","AD"],erasNarrow=["B","A"];function eras(r){switch(r){case"narrow":return[...erasNarrow];case"short":return[...erasShort];case"long":return[...erasLong];default:return null}}function meridiemForDateTime(r){return meridiems[r.hour<12?0:1]}function weekdayForDateTime(r,o){return weekdays(o)[r.weekday-1]}function monthForDateTime(r,o){return months(o)[r.month-1]}function eraForDateTime(r,o){return eras(o)[r.year<0?0:1]}function formatRelativeTime(r,o,u="always",h=!1){let m={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."]},p=["hours","minutes","seconds"].indexOf(r)===-1;if(u==="auto"&&p){let A=r==="days";switch(o){case 1:return A?"tomorrow":`next ${m[r][0]}`;case-1:return A?"yesterday":`last ${m[r][0]}`;case 0:return A?"today":`this ${m[r][0]}`}}let _=Object.is(o,-0)||o<0,y=Math.abs(o),S=y===1,$=m[r],E=h?S?$[1]:$[2]||$[1]:S?m[r][0]:r;return _?`${y} ${E} ago`:`in ${y} ${E}`}function stringifyTokens(r,o){let u="";for(let h of r)h.literal?u+=h.val:u+=o(h.val);return u}const macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS};var Formatter=class Er{static create(o,u={}){return new Er(o,u)}static parseFormat(o){let u=null,h="",m=!1,p=[];for(let _=0;_<o.length;_++){let y=o.charAt(_);y==="'"?((h.length>0||m)&&p.push({literal:m||/^\s+$/.test(h),val:h===""?"'":h}),u=null,h="",m=!m):m||y===u?h+=y:(h.length>0&&p.push({literal:/^\s+$/.test(h),val:h}),h=y,u=y)}return h.length>0&&p.push({literal:m||/^\s+$/.test(h),val:h}),p}static macroTokenToFormatOpts(o){return macroTokenToFormatOpts[o]}constructor(o,u){this.opts=u,this.loc=o,this.systemLoc=null}formatWithSystemDefault(o,u){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(o,{...this.opts,...u}).format()}dtFormatter(o,u={}){return this.loc.dtFormatter(o,{...this.opts,...u})}formatDateTime(o,u){return this.dtFormatter(o,u).format()}formatDateTimeParts(o,u){return this.dtFormatter(o,u).formatToParts()}formatInterval(o,u){return this.dtFormatter(o.start,u).dtf.formatRange(o.start.toJSDate(),o.end.toJSDate())}resolvedOptions(o,u){return this.dtFormatter(o,u).resolvedOptions()}num(o,u=0,h=void 0){if(this.opts.forceSimple)return padStart(o,u);let m={...this.opts};return u>0&&(m.padTo=u),h&&(m.signDisplay=h),this.loc.numberFormatter(m).format(o)}formatDateTimeFromString(o,u){let h=this.loc.listingMode()==="en",m=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",p=(N,O)=>this.loc.extract(o,N,O),_=N=>o.isOffsetFixed&&o.offset===0&&N.allowZ?"Z":o.isValid?o.zone.formatOffset(o.ts,N.format):"",y=()=>h?meridiemForDateTime(o):p({hour:"numeric",hourCycle:"h12"},"dayperiod"),S=(N,O)=>h?monthForDateTime(o,N):p(O?{month:N}:{month:N,day:"numeric"},"month"),$=(N,O)=>h?weekdayForDateTime(o,N):p(O?{weekday:N}:{weekday:N,month:"long",day:"numeric"},"weekday"),E=N=>{let O=Er.macroTokenToFormatOpts(N);return O?this.formatWithSystemDefault(o,O):N},A=N=>h?eraForDateTime(o,N):p({era:N},"era"),T=N=>{switch(N){case"S":return this.num(o.millisecond);case"u":case"SSS":return this.num(o.millisecond,3);case"s":return this.num(o.second);case"ss":return this.num(o.second,2);case"uu":return this.num(Math.floor(o.millisecond/10),2);case"uuu":return this.num(Math.floor(o.millisecond/100));case"m":return this.num(o.minute);case"mm":return this.num(o.minute,2);case"h":return this.num(o.hour%12==0?12:o.hour%12);case"hh":return this.num(o.hour%12==0?12:o.hour%12,2);case"H":return this.num(o.hour);case"HH":return this.num(o.hour,2);case"Z":return _({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return _({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return _({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return o.zone.offsetName(o.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return o.zone.offsetName(o.ts,{format:"long",locale:this.loc.locale});case"z":return o.zoneName;case"a":return y();case"d":return m?p({day:"numeric"},"day"):this.num(o.day);case"dd":return m?p({day:"2-digit"},"day"):this.num(o.day,2);case"c":return this.num(o.weekday);case"ccc":return $("short",!0);case"cccc":return $("long",!0);case"ccccc":return $("narrow",!0);case"E":return this.num(o.weekday);case"EEE":return $("short",!1);case"EEEE":return $("long",!1);case"EEEEE":return $("narrow",!1);case"L":return m?p({month:"numeric",day:"numeric"},"month"):this.num(o.month);case"LL":return m?p({month:"2-digit",day:"numeric"},"month"):this.num(o.month,2);case"LLL":return S("short",!0);case"LLLL":return S("long",!0);case"LLLLL":return S("narrow",!0);case"M":return m?p({month:"numeric"},"month"):this.num(o.month);case"MM":return m?p({month:"2-digit"},"month"):this.num(o.month,2);case"MMM":return S("short",!1);case"MMMM":return S("long",!1);case"MMMMM":return S("narrow",!1);case"y":return m?p({year:"numeric"},"year"):this.num(o.year);case"yy":return m?p({year:"2-digit"},"year"):this.num(o.year.toString().slice(-2),2);case"yyyy":return m?p({year:"numeric"},"year"):this.num(o.year,4);case"yyyyyy":return m?p({year:"numeric"},"year"):this.num(o.year,6);case"G":return A("short");case"GG":return A("long");case"GGGGG":return A("narrow");case"kk":return this.num(o.weekYear.toString().slice(-2),2);case"kkkk":return this.num(o.weekYear,4);case"W":return this.num(o.weekNumber);case"WW":return this.num(o.weekNumber,2);case"n":return this.num(o.localWeekNumber);case"nn":return this.num(o.localWeekNumber,2);case"ii":return this.num(o.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(o.localWeekYear,4);case"o":return this.num(o.ordinal);case"ooo":return this.num(o.ordinal,3);case"q":return this.num(o.quarter);case"qq":return this.num(o.quarter,2);case"X":return this.num(Math.floor(o.ts/1e3));case"x":return this.num(o.ts);default:return E(N)}};return stringifyTokens(Er.parseFormat(u),T)}formatDurationFromString(o,u){let h=this.opts.signMode==="negativeLargestOnly"?-1:1,m=E=>{switch(E[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},p=(E,A)=>T=>{let N=m(T);if(N){let O=A.isNegativeDuration&&N!==A.largestUnit?h:1,C;return C=this.opts.signMode==="negativeLargestOnly"&&N!==A.largestUnit?"never":this.opts.signMode==="all"?"always":"auto",this.num(E.get(N)*O,T.length,C)}else return T},_=Er.parseFormat(u),y=_.reduce((E,{literal:A,val:T})=>A?E:E.concat(T),[]),S=o.shiftTo(...y.map(m).filter(E=>E)),$={isNegativeDuration:S<0,largestUnit:Object.keys(S.values)[0]};return stringifyTokens(_,p(S,$))}};const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...r){let o=r.reduce((u,h)=>u+h.source,"");return RegExp(`^${o}$`)}function combineExtractors(...r){return o=>r.reduce(([u,h,m],p)=>{let[_,y,S]=p(o,m);return[{...u,..._},y||h,S]},[{},null,1]).slice(0,2)}function parse$7(r,...o){if(r==null)return[null,null];for(let[u,h]of o){let m=u.exec(r);if(m)return h(m)}return[null,null]}function simpleParse(...r){return(o,u)=>{let h={},m;for(m=0;m<r.length;m++)h[r[m]]=parseInteger(o[u+m]);return[h,null,u+m]}}const offsetRegex=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone=`(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`),isoTimeExtensionRegex=RegExp(`(?:[Tt]${isoTimeRegex.source})?`),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse("weekYear","weekNumber","weekDay"),extractISOOrdinalData=simpleParse("year","ordinal"),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`),sqlTimeExtensionRegex=RegExp(`(?: ${sqlTimeRegex.source})?`);function int(r,o,u){let h=r[o];return isUndefined(h)?u:parseInteger(h)}function extractISOYmd(r,o){return[{year:int(r,o),month:int(r,o+1,1),day:int(r,o+2,1)},null,o+3]}function extractISOTime(r,o){return[{hours:int(r,o,0),minutes:int(r,o+1,0),seconds:int(r,o+2,0),milliseconds:parseMillis(r[o+3])},null,o+4]}function extractISOOffset(r,o){let u=!r[o]&&!r[o+1],h=signedOffset(r[o+1],r[o+2]),m=u?null:FixedOffsetZone.instance(h);return[{},m,o+3]}function extractIANAZone(r,o){let u=r[o]?IANAZone.create(r[o]):null;return[{},u,o+1]}const isoTimeOnly=RegExp(`^T?${isoTimeBaseRegex.source}$`),isoDuration=/^-?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)?)?)$/;function extractISODuration(r){let[o,u,h,m,p,_,y,S,$]=r,E=o[0]==="-",A=S&&S[0]==="-",T=(N,O=!1)=>N!==void 0&&(O||N&&E)?-N:N;return[{years:T(parseFloating(u)),months:T(parseFloating(h)),weeks:T(parseFloating(m)),days:T(parseFloating(p)),hours:T(parseFloating(_)),minutes:T(parseFloating(y)),seconds:T(parseFloating(S),S==="-0"),milliseconds:T(parseMillis($),A)}]}const obsOffsets={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};function fromStrings(r,o,u,h,m,p,_){let y={year:o.length===2?untruncateYear(parseInteger(o)):parseInteger(o),month:monthsShort.indexOf(u)+1,day:parseInteger(h),hour:parseInteger(m),minute:parseInteger(p)};return _&&(y.second=parseInteger(_)),r&&(y.weekday=r.length>3?weekdaysLong.indexOf(r)+1:weekdaysShort.indexOf(r)+1),y}const rfc2822=/^(?:(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)))$/;function extractRFC2822(r){let[,o,u,h,m,p,_,y,S,$,E,A]=r,T=fromStrings(o,m,h,u,p,_,y),N;return N=S?obsOffsets[S]:$?0:signedOffset(E,A),[T,new FixedOffsetZone(N)]}function preprocessRFC2822(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const rfc1123=/^(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$/,rfc850=/^(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$/,ascii=/^(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})$/;function extractRFC1123Or850(r){let[,o,u,h,m,p,_,y]=r;return[fromStrings(o,m,h,u,p,_,y),FixedOffsetZone.utcInstance]}function extractASCII(r){let[,o,u,h,m,p,_,y]=r;return[fromStrings(o,y,u,h,m,p,_),FixedOffsetZone.utcInstance]}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(r){return parse$7(r,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(r){return parse$7(preprocessRFC2822(r),[rfc2822,extractRFC2822])}function parseHTTPDate(r){return parse$7(r,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(r){return parse$7(r,[isoDuration,extractISODuration])}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(r){return parse$7(r,[isoTimeOnly,extractISOTimeOnly])}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(r){return parse$7(r,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}const INVALID$2="Invalid Duration",lowOrderMatrix={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}},casualMatrix={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},...lowOrderMatrix},daysInYearAccurate=146097/400,daysInMonthAccurate=146097/4800,accurateMatrix={years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:daysInYearAccurate*24,minutes:daysInYearAccurate*24*60,seconds:daysInYearAccurate*24*60*60,milliseconds:daysInYearAccurate*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:daysInYearAccurate*24/4,minutes:daysInYearAccurate*24*60/4,seconds:daysInYearAccurate*24*60*60/4,milliseconds:daysInYearAccurate*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:daysInMonthAccurate*24,minutes:daysInMonthAccurate*24*60,seconds:daysInMonthAccurate*24*60*60,milliseconds:daysInMonthAccurate*24*60*60*1e3},...lowOrderMatrix},orderedUnits$1=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits=orderedUnits$1.slice(0).reverse();function clone$1(r,o,u=!1){let h={values:u?o.values:{...r.values,...o.values||{}},loc:r.loc.clone(o.loc),conversionAccuracy:o.conversionAccuracy||r.conversionAccuracy,matrix:o.matrix||r.matrix};return new Duration(h)}function durationToMillis(r,o){let u=o.milliseconds??0;for(let h of reverseUnits.slice(1))o[h]&&(u+=o[h]*r[h].milliseconds);return u}function normalizeValues(r,o){let u=durationToMillis(r,o)<0?-1:1;orderedUnits$1.reduceRight((h,m)=>{if(isUndefined(o[m]))return h;if(h){let p=o[h]*u,_=r[m][h],y=Math.floor(p/_);o[m]+=y*u,o[h]-=y*_*u}return m},null),orderedUnits$1.reduce((h,m)=>{if(isUndefined(o[m]))return h;if(h){let p=o[h]%1;o[h]-=p,o[m]+=p*r[h][m]}return m},null)}function removeZeroes(r){let o={};for(let[u,h]of Object.entries(r))h!==0&&(o[u]=h);return o}var Duration=class qt{constructor(o){let u=o.conversionAccuracy==="longterm"||!1,h=u?accurateMatrix:casualMatrix;o.matrix&&(h=o.matrix),this.values=o.values,this.loc=o.loc||Locale.create(),this.conversionAccuracy=u?"longterm":"casual",this.invalid=o.invalid||null,this.matrix=h,this.isLuxonDuration=!0}static fromMillis(o,u){return qt.fromObject({milliseconds:o},u)}static fromObject(o,u={}){if(typeof o!="object"||!o)throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${o===null?"null":typeof o}`);return new qt({values:normalizeObject(o,qt.normalizeUnit),loc:Locale.fromObject(u),conversionAccuracy:u.conversionAccuracy,matrix:u.matrix})}static fromDurationLike(o){if(isNumber$1(o))return qt.fromMillis(o);if(qt.isDuration(o))return o;if(typeof o=="object")return qt.fromObject(o);throw new InvalidArgumentError(`Unknown duration argument ${o} of type ${typeof o}`)}static fromISO(o,u){let[h]=parseISODuration(o);return h?qt.fromObject(h,u):qt.invalid("unparsable",`the input "${o}" can't be parsed as ISO 8601`)}static fromISOTime(o,u){let[h]=parseISOTimeOnly(o);return h?qt.fromObject(h,u):qt.invalid("unparsable",`the input "${o}" can't be parsed as ISO 8601`)}static invalid(o,u=null){if(!o)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");let h=o instanceof Invalid?o:new Invalid(o,u);if(Settings.throwOnInvalid)throw new InvalidDurationError(h);return new qt({invalid:h})}static normalizeUnit(o){let u={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"}[o&&o.toLowerCase()];if(!u)throw new InvalidUnitError(o);return u}static isDuration(o){return o&&o.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(o,u={}){let h={...u,floor:u.round!==!1&&u.floor!==!1};return this.isValid?Formatter.create(this.loc,h).formatDurationFromString(this,o):INVALID$2}toHuman(o={}){if(!this.isValid)return INVALID$2;let u=o.showZeros!==!1,h=orderedUnits$1.map(m=>{let p=this.values[m];return isUndefined(p)||p===0&&!u?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...o,unit:m.slice(0,-1)}).format(p)}).filter(m=>m);return this.loc.listFormatter({type:"conjunction",style:o.listStyle||"narrow",...o}).format(h)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let o="P";return this.years!==0&&(o+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(o+=this.months+this.quarters*3+"M"),this.weeks!==0&&(o+=this.weeks+"W"),this.days!==0&&(o+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(o+="T"),this.hours!==0&&(o+=this.hours+"H"),this.minutes!==0&&(o+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(o+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),o==="P"&&(o+="T0S"),o}toISOTime(o={}){if(!this.isValid)return null;let u=this.toMillis();return u<0||u>=864e5?null:(o={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...o,includeOffset:!1},DateTime.fromMillis(u,{zone:"UTC"}).toISOTime(o))}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?durationToMillis(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(o){if(!this.isValid)return this;let u=qt.fromDurationLike(o),h={};for(let m of orderedUnits$1)(hasOwnProperty(u.values,m)||hasOwnProperty(this.values,m))&&(h[m]=u.get(m)+this.get(m));return clone$1(this,{values:h},!0)}minus(o){if(!this.isValid)return this;let u=qt.fromDurationLike(o);return this.plus(u.negate())}mapUnits(o){if(!this.isValid)return this;let u={};for(let h of Object.keys(this.values))u[h]=asNumber(o(this.values[h],h));return clone$1(this,{values:u},!0)}get(o){return this[qt.normalizeUnit(o)]}set(o){if(!this.isValid)return this;let u={...this.values,...normalizeObject(o,qt.normalizeUnit)};return clone$1(this,{values:u})}reconfigure({locale:o,numberingSystem:u,conversionAccuracy:h,matrix:m}={}){let p=this.loc.clone({locale:o,numberingSystem:u});return clone$1(this,{loc:p,matrix:m,conversionAccuracy:h})}as(o){return this.isValid?this.shiftTo(o).get(o):NaN}normalize(){if(!this.isValid)return this;let o=this.toObject();return normalizeValues(this.matrix,o),clone$1(this,{values:o},!0)}rescale(){if(!this.isValid)return this;let o=removeZeroes(this.normalize().shiftToAll().toObject());return clone$1(this,{values:o},!0)}shiftTo(...o){if(!this.isValid||o.length===0)return this;o=o.map(_=>qt.normalizeUnit(_));let u={},h={},m=this.toObject(),p;for(let _ of orderedUnits$1)if(o.indexOf(_)>=0){p=_;let y=0;for(let $ in h)y+=this.matrix[$][_]*h[$],h[$]=0;isNumber$1(m[_])&&(y+=m[_]);let S=Math.trunc(y);u[_]=S,h[_]=(y*1e3-S*1e3)/1e3}else isNumber$1(m[_])&&(h[_]=m[_]);for(let _ in h)h[_]!==0&&(u[p]+=_===p?h[_]:h[_]/this.matrix[p][_]);return normalizeValues(this.matrix,u),clone$1(this,{values:u},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let o={};for(let u of Object.keys(this.values))o[u]=this.values[u]===0?0:-this.values[u];return clone$1(this,{values:o},!0)}removeZeros(){if(!this.isValid)return this;let o=removeZeroes(this.values);return clone$1(this,{values:o},!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(o){if(!this.isValid||!o.isValid||!this.loc.equals(o.loc))return!1;function u(h,m){return h===void 0||h===0?m===void 0||m===0:h===m}for(let h of orderedUnits$1)if(!u(this.values[h],o.values[h]))return!1;return!0}};const INVALID$1="Invalid Interval";function validateStartEnd(r,o){return!r||!r.isValid?Interval.invalid("missing or invalid start"):!o||!o.isValid?Interval.invalid("missing or invalid end"):o<r?Interval.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${o.toISO()}`):null}var Interval=class xt{constructor(o){this.s=o.start,this.e=o.end,this.invalid=o.invalid||null,this.isLuxonInterval=!0}static invalid(o,u=null){if(!o)throw new InvalidArgumentError("need to specify a reason the Interval is invalid");let h=o instanceof Invalid?o:new Invalid(o,u);if(Settings.throwOnInvalid)throw new InvalidIntervalError(h);return new xt({invalid:h})}static fromDateTimes(o,u){let h=friendlyDateTime(o),m=friendlyDateTime(u);return validateStartEnd(h,m)??new xt({start:h,end:m})}static after(o,u){let h=Duration.fromDurationLike(u),m=friendlyDateTime(o);return xt.fromDateTimes(m,m.plus(h))}static before(o,u){let h=Duration.fromDurationLike(u),m=friendlyDateTime(o);return xt.fromDateTimes(m.minus(h),m)}static fromISO(o,u){let[h,m]=(o||"").split("/",2);if(h&&m){let p,_;try{p=DateTime.fromISO(h,u),_=p.isValid}catch{_=!1}let y,S;try{y=DateTime.fromISO(m,u),S=y.isValid}catch{S=!1}if(_&&S)return xt.fromDateTimes(p,y);if(_){let $=Duration.fromISO(m,u);if($.isValid)return xt.after(p,$)}else if(S){let $=Duration.fromISO(h,u);if($.isValid)return xt.before(y,$)}}return xt.invalid("unparsable",`the input "${o}" can't be parsed as ISO 8601`)}static isInterval(o){return o&&o.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):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(o="milliseconds"){return this.isValid?this.toDuration(o).get(o):NaN}count(o="milliseconds",u){if(!this.isValid)return NaN;let h=this.start.startOf(o,u),m;return m=u!=null&&u.useLocaleWeeks?this.end.reconfigure({locale:h.locale}):this.end,m=m.startOf(o,u),Math.floor(m.diff(h,o).get(o))+(m.valueOf()!==this.end.valueOf())}hasSame(o){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,o):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(o){return this.isValid?this.s>o:!1}isBefore(o){return this.isValid?this.e<=o:!1}contains(o){return this.isValid?this.s<=o&&this.e>o:!1}set({start:o,end:u}={}){return this.isValid?xt.fromDateTimes(o||this.s,u||this.e):this}splitAt(...o){if(!this.isValid)return[];let u=o.map(friendlyDateTime).filter(_=>this.contains(_)).sort((_,y)=>_.toMillis()-y.toMillis()),h=[],{s:m}=this,p=0;for(;m<this.e;){let _=u[p]||this.e,y=+_>+this.e?this.e:_;h.push(xt.fromDateTimes(m,y)),m=y,p+=1}return h}splitBy(o){let u=Duration.fromDurationLike(o);if(!this.isValid||!u.isValid||u.as("milliseconds")===0)return[];let{s:h}=this,m=1,p,_=[];for(;h<this.e;){let y=this.start.plus(u.mapUnits(S=>S*m));p=+y>+this.e?this.e:y,_.push(xt.fromDateTimes(h,p)),h=p,m+=1}return _}divideEqually(o){return this.isValid?this.splitBy(this.length()/o).slice(0,o):[]}overlaps(o){return this.e>o.s&&this.s<o.e}abutsStart(o){return this.isValid?+this.e==+o.s:!1}abutsEnd(o){return this.isValid?+o.e==+this.s:!1}engulfs(o){return this.isValid?this.s<=o.s&&this.e>=o.e:!1}equals(o){return!this.isValid||!o.isValid?!1:this.s.equals(o.s)&&this.e.equals(o.e)}intersection(o){if(!this.isValid)return this;let u=this.s>o.s?this.s:o.s,h=this.e<o.e?this.e:o.e;return u>=h?null:xt.fromDateTimes(u,h)}union(o){if(!this.isValid)return this;let u=this.s<o.s?this.s:o.s,h=this.e>o.e?this.e:o.e;return xt.fromDateTimes(u,h)}static merge(o){let[u,h]=o.sort((m,p)=>m.s-p.s).reduce(([m,p],_)=>p?p.overlaps(_)||p.abutsStart(_)?[m,p.union(_)]:[m.concat([p]),_]:[m,_],[[],null]);return h&&u.push(h),u}static xor(o){let u=null,h=0,m=[],p=o.map(S=>[{time:S.s,type:"s"},{time:S.e,type:"e"}]),_=Array.prototype.concat(...p),y=_.sort((S,$)=>S.time-$.time);for(let S of y)h+=S.type==="s"?1:-1,h===1?u=S.time:(u&&+u!=+S.time&&m.push(xt.fromDateTimes(u,S.time)),u=null);return xt.merge(m)}difference(...o){return xt.xor([this].concat(o)).map(u=>this.intersection(u)).filter(u=>u&&!u.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(o=DATE_SHORT,u={}){return this.isValid?Formatter.create(this.s.loc.clone(u),o).formatInterval(this):INVALID$1}toISO(o){return this.isValid?`${this.s.toISO(o)}/${this.e.toISO(o)}`:INVALID$1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1}toISOTime(o){return this.isValid?`${this.s.toISOTime(o)}/${this.e.toISOTime(o)}`:INVALID$1}toFormat(o,{separator:u=" – "}={}){return this.isValid?`${this.s.toFormat(o)}${u}${this.e.toFormat(o)}`:INVALID$1}toDuration(o,u){return this.isValid?this.e.diff(this.s,o,u):Duration.invalid(this.invalidReason)}mapEndpoints(o){return xt.fromDateTimes(o(this.s),o(this.e))}},Info=class{static hasDST(r=Settings.defaultZone){let o=DateTime.now().setZone(r).set({month:12});return!r.isUniversal&&o.offset!==o.set({month:6}).offset}static isValidIANAZone(r){return IANAZone.isValidZone(r)}static normalizeZone(r){return normalizeZone(r,Settings.defaultZone)}static getStartOfWeek({locale:r=null,locObj:o=null}={}){return(o||Locale.create(r)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:r=null,locObj:o=null}={}){return(o||Locale.create(r)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:r=null,locObj:o=null}={}){return(o||Locale.create(r)).getWeekendDays().slice()}static months(r="long",{locale:o=null,numberingSystem:u=null,locObj:h=null,outputCalendar:m="gregory"}={}){return(h||Locale.create(o,u,m)).months(r)}static monthsFormat(r="long",{locale:o=null,numberingSystem:u=null,locObj:h=null,outputCalendar:m="gregory"}={}){return(h||Locale.create(o,u,m)).months(r,!0)}static weekdays(r="long",{locale:o=null,numberingSystem:u=null,locObj:h=null}={}){return(h||Locale.create(o,u,null)).weekdays(r)}static weekdaysFormat(r="long",{locale:o=null,numberingSystem:u=null,locObj:h=null}={}){return(h||Locale.create(o,u,null)).weekdays(r,!0)}static meridiems({locale:r=null}={}){return Locale.create(r).meridiems()}static eras(r="short",{locale:o=null}={}){return Locale.create(o,null,"gregory").eras(r)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}};function dayDiff(r,o){let u=m=>m.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),h=u(o)-u(r);return Math.floor(Duration.fromMillis(h).as("days"))}function highOrderDiffs(r,o,u){let h=[["years",(S,$)=>$.year-S.year],["quarters",(S,$)=>$.quarter-S.quarter+($.year-S.year)*4],["months",(S,$)=>$.month-S.month+($.year-S.year)*12],["weeks",(S,$)=>{let E=dayDiff(S,$);return(E-E%7)/7}],["days",dayDiff]],m={},p=r,_,y;for(let[S,$]of h)u.indexOf(S)>=0&&(_=S,m[S]=$(r,o),y=p.plus(m),y>o?(m[S]--,r=p.plus(m),r>o&&(y=r,m[S]--,r=p.plus(m))):r=y);return[r,m,y,_]}function diff$2(r,o,u,h){let[m,p,_,y]=highOrderDiffs(r,o,u),S=o-m,$=u.filter(A=>["hours","minutes","seconds","milliseconds"].indexOf(A)>=0);$.length===0&&(_<o&&(_=m.plus({[y]:1})),_!==m&&(p[y]=(p[y]||0)+S/(_-m)));let E=Duration.fromObject(p,h);return $.length>0?Duration.fromMillis(S,h).shiftTo(...$).plus(E):E}const MISSING_FTP="missing Intl.DateTimeFormat.formatToParts support";function intUnit(r,o=u=>u){return{regex:r,deser:([u])=>o(parseDigits(u))}}const NBSP=" ",spaceOrNBSP=`[ ${NBSP}]`,spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,"g");function fixListRegex(r){return r.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(r){return r.replace(/\./g,"").replace(spaceOrNBSPRegExp," ").toLowerCase()}function oneOf(r,o){return r===null?null:{regex:RegExp(r.map(fixListRegex).join("|")),deser:([u])=>r.findIndex(h=>stripInsensitivities(u)===stripInsensitivities(h))+o}}function offset(r,o){return{regex:r,deser:([,u,h])=>signedOffset(u,h),groups:o}}function simple(r){return{regex:r,deser:([o])=>o}}function escapeToken(r){return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(r,o){let u=digitRegex(o),h=digitRegex(o,"{2}"),m=digitRegex(o,"{3}"),p=digitRegex(o,"{4}"),_=digitRegex(o,"{6}"),y=digitRegex(o,"{1,2}"),S=digitRegex(o,"{1,3}"),$=digitRegex(o,"{1,6}"),E=digitRegex(o,"{1,9}"),A=digitRegex(o,"{2,4}"),T=digitRegex(o,"{4,6}"),N=L=>({regex:RegExp(escapeToken(L.val)),deser:([w])=>w,literal:!0}),O=L=>{if(r.literal)return N(L);switch(L.val){case"G":return oneOf(o.eras("short"),0);case"GG":return oneOf(o.eras("long"),0);case"y":return intUnit($);case"yy":return intUnit(A,untruncateYear);case"yyyy":return intUnit(p);case"yyyyy":return intUnit(T);case"yyyyyy":return intUnit(_);case"M":return intUnit(y);case"MM":return intUnit(h);case"MMM":return oneOf(o.months("short",!0),1);case"MMMM":return oneOf(o.months("long",!0),1);case"L":return intUnit(y);case"LL":return intUnit(h);case"LLL":return oneOf(o.months("short",!1),1);case"LLLL":return oneOf(o.months("long",!1),1);case"d":return intUnit(y);case"dd":return intUnit(h);case"o":return intUnit(S);case"ooo":return intUnit(m);case"HH":return intUnit(h);case"H":return intUnit(y);case"hh":return intUnit(h);case"h":return intUnit(y);case"mm":return intUnit(h);case"m":return intUnit(y);case"q":return intUnit(y);case"qq":return intUnit(h);case"s":return intUnit(y);case"ss":return intUnit(h);case"S":return intUnit(S);case"SSS":return intUnit(m);case"u":return simple(E);case"uu":return simple(y);case"uuu":return intUnit(u);case"a":return oneOf(o.meridiems(),0);case"kkkk":return intUnit(p);case"kk":return intUnit(A,untruncateYear);case"W":return intUnit(y);case"WW":return intUnit(h);case"E":case"c":return intUnit(u);case"EEE":return oneOf(o.weekdays("short",!1),1);case"EEEE":return oneOf(o.weekdays("long",!1),1);case"ccc":return oneOf(o.weekdays("short",!0),1);case"cccc":return oneOf(o.weekdays("long",!0),1);case"Z":case"ZZ":return offset(RegExp(`([+-]${y.source})(?::(${h.source}))?`),2);case"ZZZ":return offset(RegExp(`([+-]${y.source})(${h.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return N(L)}},C=O(r)||{invalidReason:MISSING_FTP};return C.token=r,C}const partTypeStyleToTokenVal={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"}};function tokenForPart(r,o,u){let{type:h,value:m}=r;if(h==="literal"){let S=/^\s+$/.test(m);return{literal:!S,val:S?" ":m}}let p=o[h],_=h;h==="hour"&&(_=o.hour12==null?o.hourCycle==null?u.hour12?"hour12":"hour24":o.hourCycle==="h11"||o.hourCycle==="h12"?"hour12":"hour24":o.hour12?"hour12":"hour24");let y=partTypeStyleToTokenVal[_];if(typeof y=="object"&&(y=y[p]),y)return{literal:!1,val:y}}function buildRegex(r){return[`^${r.map(u=>u.regex).reduce((u,h)=>`${u}(${h.source})`,"")}$`,r]}function match(r,o,u){let h=r.match(o);if(h){let m={},p=1;for(let _ in u)if(hasOwnProperty(u,_)){let y=u[_],S=y.groups?y.groups+1:1;!y.literal&&y.token&&(m[y.token.val[0]]=y.deser(h.slice(p,p+S))),p+=S}return[h,m]}else return[h,{}]}function dateTimeFromMatches(r){let o=p=>{switch(p){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}},u=null,h;return isUndefined(r.z)||(u=IANAZone.create(r.z)),isUndefined(r.Z)||(u||(u=new FixedOffsetZone(r.Z)),h=r.Z),isUndefined(r.q)||(r.M=(r.q-1)*3+1),isUndefined(r.h)||(r.h<12&&r.a===1?r.h+=12:r.h===12&&r.a===0&&(r.h=0)),r.G===0&&r.y&&(r.y=-r.y),isUndefined(r.u)||(r.S=parseMillis(r.u)),[Object.keys(r).reduce((p,_)=>{let y=o(_);return y&&(p[y]=r[_]),p},{}),u,h]}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime.fromMillis(1555555555555)),dummyDateTimeCache}function maybeExpandMacroToken(r,o){if(r.literal)return r;let u=Formatter.macroTokenToFormatOpts(r.val),h=formatOptsToTokens(u,o);return h==null||h.includes(void 0)?r:h}function expandMacroTokens(r,o){return Array.prototype.concat(...r.map(u=>maybeExpandMacroToken(u,o)))}var TokenParser=class{constructor(r,o){if(this.locale=r,this.format=o,this.tokens=expandMacroTokens(Formatter.parseFormat(o),r),this.units=this.tokens.map(u=>unitForToken(u,r)),this.disqualifyingUnit=this.units.find(u=>u.invalidReason),!this.disqualifyingUnit){let[u,h]=buildRegex(this.units);this.regex=RegExp(u,"i"),this.handlers=h}}explainFromTokens(r){if(this.isValid){let[o,u]=match(r,this.regex,this.handlers),[h,m,p]=u?dateTimeFromMatches(u):[null,null,void 0];if(hasOwnProperty(u,"a")&&hasOwnProperty(u,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:r,tokens:this.tokens,regex:this.regex,rawMatches:o,matches:u,result:h,zone:m,specificOffset:p}}else return{input:r,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function explainFromTokens(r,o,u){return new TokenParser(r,u).explainFromTokens(o)}function parseFromTokens(r,o,u){let{result:h,zone:m,specificOffset:p,invalidReason:_}=explainFromTokens(r,o,u);return[h,m,p,_]}function formatOptsToTokens(r,o){if(!r)return null;let u=Formatter.create(o,r),h=u.dtFormatter(getDummyDateTime()),m=h.formatToParts(),p=h.resolvedOptions();return m.map(_=>tokenForPart(_,r,p))}const INVALID="Invalid DateTime",MAX_DATE=864e13;function unsupportedZone(r){return new Invalid("unsupported zone",`the zone "${r.name}" is not supported`)}function possiblyCachedWeekData(r){return r.weekData===null&&(r.weekData=gregorianToWeek(r.c)),r.weekData}function possiblyCachedLocalWeekData(r){return r.localWeekData===null&&(r.localWeekData=gregorianToWeek(r.c,r.loc.getMinDaysInFirstWeek(),r.loc.getStartOfWeek())),r.localWeekData}function clone(r,o){let u={ts:r.ts,zone:r.zone,c:r.c,o:r.o,loc:r.loc,invalid:r.invalid};return new DateTime({...u,...o,old:u})}function fixOffset(r,o,u){let h=r-o*60*1e3,m=u.offset(h);if(o===m)return[h,o];h-=(m-o)*60*1e3;let p=u.offset(h);return m===p?[h,m]:[r-Math.min(m,p)*60*1e3,Math.max(m,p)]}function tsToObj(r,o){r+=o*60*1e3;let u=new Date(r);return{year:u.getUTCFullYear(),month:u.getUTCMonth()+1,day:u.getUTCDate(),hour:u.getUTCHours(),minute:u.getUTCMinutes(),second:u.getUTCSeconds(),millisecond:u.getUTCMilliseconds()}}function objToTS(r,o,u){return fixOffset(objToLocalTS(r),o,u)}function adjustTime(r,o){let u=r.o,h=r.c.year+Math.trunc(o.years),m=r.c.month+Math.trunc(o.months)+Math.trunc(o.quarters)*3,p={...r.c,year:h,month:m,day:Math.min(r.c.day,daysInMonth(h,m))+Math.trunc(o.days)+Math.trunc(o.weeks)*7},_=Duration.fromObject({years:o.years-Math.trunc(o.years),quarters:o.quarters-Math.trunc(o.quarters),months:o.months-Math.trunc(o.months),weeks:o.weeks-Math.trunc(o.weeks),days:o.days-Math.trunc(o.days),hours:o.hours,minutes:o.minutes,seconds:o.seconds,milliseconds:o.milliseconds}).as("milliseconds"),y=objToLocalTS(p),[S,$]=fixOffset(y,u,r.zone);return _!==0&&(S+=_,$=r.zone.offset(S)),{ts:S,o:$}}function parseDataToDateTime(r,o,u,h,m,p){let{setZone:_,zone:y}=u;if(r&&Object.keys(r).length!==0||o){let S=o||y,$=DateTime.fromObject(r,{...u,zone:S,specificOffset:p});return _?$:$.setZone(y)}else return DateTime.invalid(new Invalid("unparsable",`the input "${m}" can't be parsed as ${h}`))}function toTechFormat(r,o,u=!0){return r.isValid?Formatter.create(Locale.create("en-US"),{allowZ:u,forceSimple:!0}).formatDateTimeFromString(r,o):null}function toISODate(r,o,u){let h=r.c.year>9999||r.c.year<0,m="";if(h&&r.c.year>=0&&(m+="+"),m+=padStart(r.c.year,h?6:4),u==="year")return m;if(o){if(m+="-",m+=padStart(r.c.month),u==="month")return m;m+="-"}else if(m+=padStart(r.c.month),u==="month")return m;return m+=padStart(r.c.day),m}function toISOTime(r,o,u,h,m,p,_){let y=!u||r.c.millisecond!==0||r.c.second!==0,S="";switch(_){case"day":case"month":case"year":break;default:if(S+=padStart(r.c.hour),_==="hour")break;if(o){if(S+=":",S+=padStart(r.c.minute),_==="minute")break;y&&(S+=":",S+=padStart(r.c.second))}else{if(S+=padStart(r.c.minute),_==="minute")break;y&&(S+=padStart(r.c.second))}if(_==="second")break;y&&(!h||r.c.millisecond!==0)&&(S+=".",S+=padStart(r.c.millisecond,3))}return m&&(r.isOffsetFixed&&r.offset===0&&!p?S+="Z":r.o<0?(S+="-",S+=padStart(Math.trunc(-r.o/60)),S+=":",S+=padStart(Math.trunc(-r.o%60))):(S+="+",S+=padStart(Math.trunc(r.o/60)),S+=":",S+=padStart(Math.trunc(r.o%60)))),p&&(S+="["+r.zone.ianaName+"]"),S}const defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(r){let o={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"}[r.toLowerCase()];if(!o)throw new InvalidUnitError(r);return o}function normalizeUnitWithLocalWeeks(r){switch(r.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(r)}}function guessOffsetForZone(r){if(zoneOffsetTs===void 0&&(zoneOffsetTs=Settings.now()),r.type!=="iana")return r.offset(zoneOffsetTs);let o=r.name,u=zoneOffsetGuessCache.get(o);return u===void 0&&(u=r.offset(zoneOffsetTs),zoneOffsetGuessCache.set(o,u)),u}function quickDT(r,o){let u=normalizeZone(o.zone,Settings.defaultZone);if(!u.isValid)return DateTime.invalid(unsupportedZone(u));let h=Locale.fromObject(o),m,p;if(isUndefined(r.year))m=Settings.now();else{for(let S of orderedUnits)isUndefined(r[S])&&(r[S]=defaultUnitValues[S]);let _=hasInvalidGregorianData(r)||hasInvalidTimeData(r);if(_)return DateTime.invalid(_);let y=guessOffsetForZone(u);[m,p]=objToTS(r,y,u)}return new DateTime({ts:m,zone:u,loc:h,o:p})}function diffRelative(r,o,u){let h=isUndefined(u.round)?!0:u.round,m=isUndefined(u.rounding)?"trunc":u.rounding,p=(y,S)=>(y=roundTo(y,h||u.calendary?0:2,u.calendary?"round":m),o.loc.clone(u).relFormatter(u).format(y,S)),_=y=>u.calendary?o.hasSame(r,y)?0:o.startOf(y).diff(r.startOf(y),y).get(y):o.diff(r,y).get(y);if(u.unit)return p(_(u.unit),u.unit);for(let y of u.units){let S=_(y);if(Math.abs(S)>=1)return p(S,y)}return p(r>o?-0:0,u.units[u.units.length-1])}function lastOpts(r){let o={},u;return r.length>0&&typeof r[r.length-1]=="object"?(o=r[r.length-1],u=Array.from(r).slice(0,r.length-1)):u=Array.from(r),[o,u]}let zoneOffsetTs;const zoneOffsetGuessCache=new Map;var DateTime=class $t{constructor(o){let u=o.zone||Settings.defaultZone,h=o.invalid||(Number.isNaN(o.ts)?new Invalid("invalid input"):null)||(u.isValid?null:unsupportedZone(u));this.ts=isUndefined(o.ts)?Settings.now():o.ts;let m=null,p=null;if(!h)if(o.old&&o.old.ts===this.ts&&o.old.zone.equals(u))[m,p]=[o.old.c,o.old.o];else{let y=isNumber$1(o.o)&&!o.old?o.o:u.offset(this.ts);m=tsToObj(this.ts,y),h=Number.isNaN(m.year)?new Invalid("invalid input"):null,m=h?null:m,p=h?null:y}this._zone=u,this.loc=o.loc||Locale.create(),this.invalid=h,this.weekData=null,this.localWeekData=null,this.c=m,this.o=p,this.isLuxonDateTime=!0}static now(){return new $t({})}static local(){let[o,u]=lastOpts(arguments),[h,m,p,_,y,S,$]=u;return quickDT({year:h,month:m,day:p,hour:_,minute:y,second:S,millisecond:$},o)}static utc(){let[o,u]=lastOpts(arguments),[h,m,p,_,y,S,$]=u;return o.zone=FixedOffsetZone.utcInstance,quickDT({year:h,month:m,day:p,hour:_,minute:y,second:S,millisecond:$},o)}static fromJSDate(o,u={}){let h=isDate(o)?o.valueOf():NaN;if(Number.isNaN(h))return $t.invalid("invalid input");let m=normalizeZone(u.zone,Settings.defaultZone);return m.isValid?new $t({ts:h,zone:m,loc:Locale.fromObject(u)}):$t.invalid(unsupportedZone(m))}static fromMillis(o,u={}){if(isNumber$1(o))return o<-MAX_DATE||o>MAX_DATE?$t.invalid("Timestamp out of range"):new $t({ts:o,zone:normalizeZone(u.zone,Settings.defaultZone),loc:Locale.fromObject(u)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof o} with value ${o}`)}static fromSeconds(o,u={}){if(isNumber$1(o))return new $t({ts:o*1e3,zone:normalizeZone(u.zone,Settings.defaultZone),loc:Locale.fromObject(u)});throw new InvalidArgumentError("fromSeconds requires a numerical input")}static fromObject(o,u={}){o||(o={});let h=normalizeZone(u.zone,Settings.defaultZone);if(!h.isValid)return $t.invalid(unsupportedZone(h));let m=Locale.fromObject(u),p=normalizeObject(o,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_,startOfWeek:y}=usesLocalWeekValues(p,m),S=Settings.now(),$=isUndefined(u.specificOffset)?h.offset(S):u.specificOffset,E=!isUndefined(p.ordinal),A=!isUndefined(p.year),T=!isUndefined(p.month)||!isUndefined(p.day),N=A||T,O=p.weekYear||p.weekNumber;if((N||E)&&O)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(T&&E)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");let C=O||p.weekday&&!N,L,w,I=tsToObj(S,$);C?(L=orderedWeekUnits,w=defaultWeekUnitValues,I=gregorianToWeek(I,_,y)):E?(L=orderedOrdinalUnits,w=defaultOrdinalUnitValues,I=gregorianToOrdinal(I)):(L=orderedUnits,w=defaultUnitValues);let D=!1;for(let Ee of L){let ge=p[Ee];isUndefined(ge)?D?p[Ee]=w[Ee]:p[Ee]=I[Ee]:D=!0}let F=C?hasInvalidWeekData(p,_,y):E?hasInvalidOrdinalData(p):hasInvalidGregorianData(p),k=F||hasInvalidTimeData(p);if(k)return $t.invalid(k);let ie=C?weekToGregorian(p,_,y):E?ordinalToGregorian(p):p,[fe,pe]=objToTS(ie,$,h),Se=new $t({ts:fe,zone:h,o:pe,loc:m});return p.weekday&&N&&o.weekday!==Se.weekday?$t.invalid("mismatched weekday",`you can't specify both a weekday of ${p.weekday} and a date of ${Se.toISO()}`):Se.isValid?Se:$t.invalid(Se.invalid)}static fromISO(o,u={}){let[h,m]=parseISODate(o);return parseDataToDateTime(h,m,u,"ISO 8601",o)}static fromRFC2822(o,u={}){let[h,m]=parseRFC2822Date(o);return parseDataToDateTime(h,m,u,"RFC 2822",o)}static fromHTTP(o,u={}){let[h,m]=parseHTTPDate(o);return parseDataToDateTime(h,m,u,"HTTP",u)}static fromFormat(o,u,h={}){if(isUndefined(o)||isUndefined(u))throw new InvalidArgumentError("fromFormat requires an input string and a format");let{locale:m=null,numberingSystem:p=null}=h,_=Locale.fromOpts({locale:m,numberingSystem:p,defaultToEN:!0}),[y,S,$,E]=parseFromTokens(_,o,u);return E?$t.invalid(E):parseDataToDateTime(y,S,h,`format ${u}`,o,$)}static fromString(o,u,h={}){return $t.fromFormat(o,u,h)}static fromSQL(o,u={}){let[h,m]=parseSQL(o);return parseDataToDateTime(h,m,u,"SQL",o)}static invalid(o,u=null){if(!o)throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");let h=o instanceof Invalid?o:new Invalid(o,u);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(h);return new $t({invalid:h})}static isDateTime(o){return o&&o.isLuxonDateTime||!1}static parseFormatForOpts(o,u={}){let h=formatOptsToTokens(o,Locale.fromObject(u));return h?h.map(m=>m?m.val:null).join(""):null}static expandFormat(o,u={}){return expandMacroTokens(Formatter.parseFormat(o),Locale.fromObject(u)).map(m=>m.val).join("")}static resetCache(){zoneOffsetTs=void 0,zoneOffsetGuessCache.clear()}get(o){return this[o]}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?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.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 o=864e5,u=6e4,h=objToLocalTS(this.c),m=this.zone.offset(h-o),p=this.zone.offset(h+o),_=this.zone.offset(h-m*u),y=this.zone.offset(h-p*u);if(_===y)return[this];let S=h-_*u,$=h-y*u,E=tsToObj(S,_),A=tsToObj($,y);return E.hour===A.hour&&E.minute===A.minute&&E.second===A.second&&E.millisecond===A.millisecond?[clone(this,{ts:S}),clone(this,{ts:$})]:[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(o={}){let{locale:u,numberingSystem:h,calendar:m}=Formatter.create(this.loc.clone(o),o).resolvedOptions(this);return{locale:u,numberingSystem:h,outputCalendar:m}}toUTC(o=0,u={}){return this.setZone(FixedOffsetZone.instance(o),u)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(o,{keepLocalTime:u=!1,keepCalendarTime:h=!1}={}){if(o=normalizeZone(o,Settings.defaultZone),o.equals(this.zone))return this;if(o.isValid){let m=this.ts;if(u||h){let p=o.offset(this.ts),_=this.toObject();[m]=objToTS(_,p,o)}return clone(this,{ts:m,zone:o})}else return $t.invalid(unsupportedZone(o))}reconfigure({locale:o,numberingSystem:u,outputCalendar:h}={}){let m=this.loc.clone({locale:o,numberingSystem:u,outputCalendar:h});return clone(this,{loc:m})}setLocale(o){return this.reconfigure({locale:o})}set(o){if(!this.isValid)return this;let u=normalizeObject(o,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:h,startOfWeek:m}=usesLocalWeekValues(u,this.loc),p=!isUndefined(u.weekYear)||!isUndefined(u.weekNumber)||!isUndefined(u.weekday),_=!isUndefined(u.ordinal),y=!isUndefined(u.year),S=!isUndefined(u.month)||!isUndefined(u.day),$=y||S,E=u.weekYear||u.weekNumber;if(($||_)&&E)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(S&&_)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");let A;p?A=weekToGregorian({...gregorianToWeek(this.c,h,m),...u},h,m):isUndefined(u.ordinal)?(A={...this.toObject(),...u},isUndefined(u.day)&&(A.day=Math.min(daysInMonth(A.year,A.month),A.day))):A=ordinalToGregorian({...gregorianToOrdinal(this.c),...u});let[T,N]=objToTS(A,this.o,this.zone);return clone(this,{ts:T,o:N})}plus(o){if(!this.isValid)return this;let u=Duration.fromDurationLike(o);return clone(this,adjustTime(this,u))}minus(o){if(!this.isValid)return this;let u=Duration.fromDurationLike(o).negate();return clone(this,adjustTime(this,u))}startOf(o,{useLocaleWeeks:u=!1}={}){if(!this.isValid)return this;let h={},m=Duration.normalizeUnit(o);switch(m){case"years":h.month=1;case"quarters":case"months":h.day=1;case"weeks":case"days":h.hour=0;case"hours":h.minute=0;case"minutes":h.second=0;case"seconds":h.millisecond=0;break}if(m==="weeks")if(u){let p=this.loc.getStartOfWeek(),{weekday:_}=this;_<p&&(h.weekNumber=this.weekNumber-1),h.weekday=p}else h.weekday=1;if(m==="quarters"){let p=Math.ceil(this.month/3);h.month=(p-1)*3+1}return this.set(h)}endOf(o,u){return this.isValid?this.plus({[o]:1}).startOf(o,u).minus(1):this}toFormat(o,u={}){return this.isValid?Formatter.create(this.loc.redefaultToEN(u)).formatDateTimeFromString(this,o):INVALID}toLocaleString(o=DATE_SHORT,u={}){return this.isValid?Formatter.create(this.loc.clone(u),o).formatDateTime(this):INVALID}toLocaleParts(o={}){return this.isValid?Formatter.create(this.loc.clone(o),o).formatDateTimeParts(this):[]}toISO({format:o="extended",suppressSeconds:u=!1,suppressMilliseconds:h=!1,includeOffset:m=!0,extendedZone:p=!1,precision:_="milliseconds"}={}){if(!this.isValid)return null;_=normalizeUnit(_);let y=o==="extended",S=toISODate(this,y,_);return orderedUnits.indexOf(_)>=3&&(S+="T"),S+=toISOTime(this,y,u,h,m,p,_),S}toISODate({format:o="extended",precision:u="day"}={}){return this.isValid?toISODate(this,o==="extended",normalizeUnit(u)):null}toISOWeekDate(){return toTechFormat(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:o=!1,suppressSeconds:u=!1,includeOffset:h=!0,includePrefix:m=!1,extendedZone:p=!1,format:_="extended",precision:y="milliseconds"}={}){return this.isValid?(y=normalizeUnit(y),(m&&orderedUnits.indexOf(y)>=3?"T":"")+toISOTime(this,_==="extended",u,o,h,p,y)):null}toRFC2822(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset:o=!0,includeZone:u=!1,includeOffsetSpace:h=!0}={}){let m="HH:mm:ss.SSS";return(u||o)&&(h&&(m+=" "),u?m+="z":o&&(m+="ZZ")),toTechFormat(this,m,!0)}toSQL(o={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(o)}`:null}toString(){return this.isValid?this.toISO():INVALID}[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(o={}){if(!this.isValid)return{};let u={...this.c};return o.includeConfig&&(u.outputCalendar=this.outputCalendar,u.numberingSystem=this.loc.numberingSystem,u.locale=this.loc.locale),u}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(o,u="milliseconds",h={}){if(!this.isValid||!o.isValid)return Duration.invalid("created by diffing an invalid DateTime");let m={locale:this.locale,numberingSystem:this.numberingSystem,...h},p=maybeArray(u).map(Duration.normalizeUnit),_=o.valueOf()>this.valueOf(),y=_?this:o,S=_?o:this,$=diff$2(y,S,p,m);return _?$.negate():$}diffNow(o="milliseconds",u={}){return this.diff($t.now(),o,u)}until(o){return this.isValid?Interval.fromDateTimes(this,o):this}hasSame(o,u,h){if(!this.isValid)return!1;let m=o.valueOf(),p=this.setZone(o.zone,{keepLocalTime:!0});return p.startOf(u,h)<=m&&m<=p.endOf(u,h)}equals(o){return this.isValid&&o.isValid&&this.valueOf()===o.valueOf()&&this.zone.equals(o.zone)&&this.loc.equals(o.loc)}toRelative(o={}){if(!this.isValid)return null;let u=o.base||$t.fromObject({},{zone:this.zone}),h=o.padding?this<u?-o.padding:o.padding:0,m=["years","months","days","hours","minutes","seconds"],p=o.unit;return Array.isArray(o.unit)&&(m=o.unit,p=void 0),diffRelative(u,this.plus(h),{...o,numeric:"always",units:m,unit:p})}toRelativeCalendar(o={}){return this.isValid?diffRelative(o.base||$t.fromObject({},{zone:this.zone}),this,{...o,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...o){if(!o.every($t.isDateTime))throw new InvalidArgumentError("min requires all arguments be DateTimes");return bestBy(o,u=>u.valueOf(),Math.min)}static max(...o){if(!o.every($t.isDateTime))throw new InvalidArgumentError("max requires all arguments be DateTimes");return bestBy(o,u=>u.valueOf(),Math.max)}static fromFormatExplain(o,u,h={}){let{locale:m=null,numberingSystem:p=null}=h,_=Locale.fromOpts({locale:m,numberingSystem:p,defaultToEN:!0});return explainFromTokens(_,o,u)}static fromStringExplain(o,u,h={}){return $t.fromFormatExplain(o,u,h)}static buildFormatParser(o,u={}){let{locale:h=null,numberingSystem:m=null}=u,p=Locale.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0});return new TokenParser(p,o)}static fromFormatParser(o,u,h={}){if(isUndefined(o)||isUndefined(u))throw new InvalidArgumentError("fromFormatParser requires an input string and a format parser");let{locale:m=null,numberingSystem:p=null}=h,_=Locale.fromOpts({locale:m,numberingSystem:p,defaultToEN:!0});if(!_.equals(u.locale))throw new InvalidArgumentError(`fromFormatParser called with a locale of ${_}, but the format parser was created for ${u.locale}`);let{result:y,zone:S,specificOffset:$,invalidReason:E}=u.explainFromTokens(o);return E?$t.invalid(E):parseDataToDateTime(y,S,h,`format ${u.format}`,o,$)}static get DATE_SHORT(){return DATE_SHORT}static get DATE_MED(){return DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return DATE_FULL}static get DATE_HUGE(){return DATE_HUGE}static get TIME_SIMPLE(){return TIME_SIMPLE}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS}};function friendlyDateTime(r){if(DateTime.isDateTime(r))return r;if(r&&r.valueOf&&isNumber$1(r.valueOf()))return DateTime.fromJSDate(r);if(r&&typeof r=="object")return DateTime.fromObject(r);throw new InvalidArgumentError(`Unknown datetime argument: ${r}, of type ${typeof r}`)}var require_dayjs_min=__commonJSMin((r,o)=>{(function(u,h){typeof r=="object"&&o!==void 0?o.exports=h():typeof define=="function"&&define.amd?define(h):(u=typeof globalThis<"u"?globalThis:u||self).dayjs=h()})(r,function(){var u=1e3,h=6e4,m=36e5,p="millisecond",_="second",y="minute",S="hour",$="day",E="week",A="month",T="quarter",N="year",O="date",C="Invalid Date",L=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var q=["th","st","nd","rd"],R=U%100;return"["+U+(q[(R-20)%10]||q[R]||q[0])+"]"}},D=function(U,q,R){var B=String(U);return!B||B.length>=q?U:""+Array(q+1-B.length).join(R)+U},F={s:D,z:function(U){var q=-U.utcOffset(),R=Math.abs(q),B=Math.floor(R/60),ue=R%60;return(q<=0?"+":"-")+D(B,2,"0")+":"+D(ue,2,"0")},m:function U(q,R){if(q.date()<R.date())return-U(R,q);var B=12*(R.year()-q.year())+(R.month()-q.month()),ue=q.clone().add(B,A),ce=R-ue<0,K=q.clone().add(B+(ce?-1:1),A);return+(-(B+(R-ue)/(ce?ue-K:K-ue))||0)},a:function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},p:function(U){return{M:A,y:N,w:E,d:$,D:O,h:S,m:y,s:_,ms:p,Q:T}[U]||String(U||"").toLowerCase().replace(/s$/,"")},u:function(U){return U===void 0}},k="en",ie={};ie[k]=I;var fe="$isDayjsObject",pe=function(U){return U instanceof J||!(!U||!U[fe])},Se=function U(q,R,B){var ue;if(!q)return k;if(typeof q=="string"){var ce=q.toLowerCase();ie[ce]&&(ue=ce),R&&(ie[ce]=R,ue=ce);var K=q.split("-");if(!ue&&K.length>1)return U(K[0])}else{var Q=q.name;ie[Q]=q,ue=Q}return!B&&ue&&(k=ue),ue||!B&&k},Ee=function(U,q){if(pe(U))return U.clone();var R=typeof q=="object"?q:{};return R.date=U,R.args=arguments,new J(R)},ge=F;ge.l=Se,ge.i=pe,ge.w=function(U,q){return Ee(U,{locale:q.$L,utc:q.$u,x:q.$x,$offset:q.$offset})};var J=function(){function U(R){this.$L=Se(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[fe]=!0}var q=U.prototype;return q.parse=function(R){this.$d=function(B){var ue=B.date,ce=B.utc;if(ue===null)return new Date(NaN);if(ge.u(ue))return new Date;if(ue instanceof Date)return new Date(ue);if(typeof ue=="string"&&!/Z$/i.test(ue)){var K=ue.match(L);if(K){var Q=K[2]-1||0,Y=(K[7]||"0").substring(0,3);return ce?new Date(Date.UTC(K[1],Q,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)):new Date(K[1],Q,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)}}return new Date(ue)}(R),this.init()},q.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},q.$utils=function(){return ge},q.isValid=function(){return this.$d.toString()!==C},q.isSame=function(R,B){var ue=Ee(R);return this.startOf(B)<=ue&&ue<=this.endOf(B)},q.isAfter=function(R,B){return Ee(R)<this.startOf(B)},q.isBefore=function(R,B){return this.endOf(B)<Ee(R)},q.$g=function(R,B,ue){return ge.u(R)?this[B]:this.set(ue,R)},q.unix=function(){return Math.floor(this.valueOf()/1e3)},q.valueOf=function(){return this.$d.getTime()},q.startOf=function(R,B){var ue=this,ce=!!ge.u(B)||B,K=ge.p(R),Q=function(Pe,ke){var Ge=ge.w(ue.$u?Date.UTC(ue.$y,ke,Pe):new Date(ue.$y,ke,Pe),ue);return ce?Ge:Ge.endOf($)},Y=function(Pe,ke){return ge.w(ue.toDate()[Pe].apply(ue.toDate("s"),(ce?[0,0,0,0]:[23,59,59,999]).slice(ke)),ue)},me=this.$W,Oe=this.$M,Me=this.$D,Re="set"+(this.$u?"UTC":"");switch(K){case N:return ce?Q(1,0):Q(31,11);case A:return ce?Q(1,Oe):Q(0,Oe+1);case E:var xe=this.$locale().weekStart||0,Ae=(me<xe?me+7:me)-xe;return Q(ce?Me-Ae:Me+(6-Ae),Oe);case $:case O:return Y(Re+"Hours",0);case S:return Y(Re+"Minutes",1);case y:return Y(Re+"Seconds",2);case _:return Y(Re+"Milliseconds",3);default:return this.clone()}},q.endOf=function(R){return this.startOf(R,!1)},q.$set=function(R,B){var ue,ce=ge.p(R),K="set"+(this.$u?"UTC":""),Q=(ue={},ue[$]=K+"Date",ue[O]=K+"Date",ue[A]=K+"Month",ue[N]=K+"FullYear",ue[S]=K+"Hours",ue[y]=K+"Minutes",ue[_]=K+"Seconds",ue[p]=K+"Milliseconds",ue)[ce],Y=ce===$?this.$D+(B-this.$W):B;if(ce===A||ce===N){var me=this.clone().set(O,1);me.$d[Q](Y),me.init(),this.$d=me.set(O,Math.min(this.$D,me.daysInMonth())).$d}else Q&&this.$d[Q](Y);return this.init(),this},q.set=function(R,B){return this.clone().$set(R,B)},q.get=function(R){return this[ge.p(R)]()},q.add=function(R,B){var ue,ce=this;R=Number(R);var K=ge.p(B),Q=function(Oe){var Me=Ee(ce);return ge.w(Me.date(Me.date()+Math.round(Oe*R)),ce)};if(K===A)return this.set(A,this.$M+R);if(K===N)return this.set(N,this.$y+R);if(K===$)return Q(1);if(K===E)return Q(7);var Y=(ue={},ue[y]=h,ue[S]=m,ue[_]=u,ue)[K]||1,me=this.$d.getTime()+R*Y;return ge.w(me,this)},q.subtract=function(R,B){return this.add(-1*R,B)},q.format=function(R){var B=this,ue=this.$locale();if(!this.isValid())return ue.invalidDate||C;var ce=R||"YYYY-MM-DDTHH:mm:ssZ",K=ge.z(this),Q=this.$H,Y=this.$m,me=this.$M,Oe=ue.weekdays,Me=ue.months,Re=ue.meridiem,xe=function(ke,Ge,Ye,Ce){return ke&&(ke[Ge]||ke(B,ce))||Ye[Ge].slice(0,Ce)},Ae=function(ke){return ge.s(Q%12||12,ke,"0")},Pe=Re||function(ke,Ge,Ye){var Ce=ke<12?"AM":"PM";return Ye?Ce.toLowerCase():Ce};return ce.replace(w,function(ke,Ge){return Ge||function(Ye){switch(Ye){case"YY":return String(B.$y).slice(-2);case"YYYY":return ge.s(B.$y,4,"0");case"M":return me+1;case"MM":return ge.s(me+1,2,"0");case"MMM":return xe(ue.monthsShort,me,Me,3);case"MMMM":return xe(Me,me);case"D":return B.$D;case"DD":return ge.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return xe(ue.weekdaysMin,B.$W,Oe,2);case"ddd":return xe(ue.weekdaysShort,B.$W,Oe,3);case"dddd":return Oe[B.$W];case"H":return String(Q);case"HH":return ge.s(Q,2,"0");case"h":return Ae(1);case"hh":return Ae(2);case"a":return Pe(Q,Y,!0);case"A":return Pe(Q,Y,!1);case"m":return String(Y);case"mm":return ge.s(Y,2,"0");case"s":return String(B.$s);case"ss":return ge.s(B.$s,2,"0");case"SSS":return ge.s(B.$ms,3,"0");case"Z":return K}return null}(ke)||K.replace(":","")})},q.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},q.diff=function(R,B,ue){var ce,K=this,Q=ge.p(B),Y=Ee(R),me=(Y.utcOffset()-this.utcOffset())*h,Oe=this-Y,Me=function(){return ge.m(K,Y)};switch(Q){case N:ce=Me()/12;break;case A:ce=Me();break;case T:ce=Me()/3;break;case E:ce=(Oe-me)/6048e5;break;case $:ce=(Oe-me)/864e5;break;case S:ce=Oe/m;break;case y:ce=Oe/h;break;case _:ce=Oe/u;break;default:ce=Oe}return ue?ce:ge.a(ce)},q.daysInMonth=function(){return this.endOf(A).$D},q.$locale=function(){return ie[this.$L]},q.locale=function(R,B){if(!R)return this.$L;var ue=this.clone(),ce=Se(R,B,!0);return ce&&(ue.$L=ce),ue},q.clone=function(){return ge.w(this.$d,this)},q.toDate=function(){return new Date(this.valueOf())},q.toJSON=function(){return this.isValid()?this.toISOString():null},q.toISOString=function(){return this.$d.toISOString()},q.toString=function(){return this.$d.toUTCString()},U}(),ae=J.prototype;return Ee.prototype=ae,[["$ms",p],["$s",_],["$m",y],["$H",S],["$W",$],["$M",A],["$y",N],["$D",O]].forEach(function(U){ae[U[1]]=function(q){return this.$g(q,U[0],U[1])}}),Ee.extend=function(U,q){return U.$i||(U(q,J,Ee),U.$i=!0),Ee},Ee.locale=Se,Ee.isDayjs=pe,Ee.unix=function(U){return Ee(1e3*U)},Ee.en=ie[k],Ee.Ls=ie,Ee.p={},Ee})});const isInstanceOf$1=(r,o,u)=>{var h;return u!==void 0&&r instanceof u||u!==void 0&&typeof u[Symbol.hasInstance]=="function"&&u[Symbol.hasInstance](r)?!0:typeof r=="object"&&r?((h=r.constructor)==null?void 0:h.name)===o:!1},isLuxonDateTime$1=r=>r instanceof DateTime?!0:typeof r!="object"||!r||!("isLuxonDateTime"in r)?!1:r.isLuxonDateTime===!0,isPlainObject=r=>typeof r=="object"&&!!r&&!Array.isArray(r),isDateObjectUnits=r=>{if(!isPlainObject(r))return!1;let o=Object.keys(r);if(o.length===0)return!1;let u=["year","month","day","ordinal","weekYear","localWeekYear","weekNumber","localWeekNumber","weekday","localWeekday","hour","minute","second","millisecond"];return o.filter(m=>!u.includes(m)).length>0?!1:o.every(m=>{let p=r[m];return typeof p=="number"||p===void 0})};var import_dayjs_min=__toESM(require_dayjs_min());Settings.defaultZone="utc",Settings.defaultLocale="en",Settings.defaultWeekSettings={firstDay:7,minimalDays:4,weekend:[6,7]},Settings.throwOnInvalid=!1;const removeComments=r=>(r=r.replace(/\/\/.*$/gm,""),r=r.replace(/\/\*[\s\S]*?\*\//g,""),r),extractFunctionBody=r=>{let o=r.toString();if(o.includes("[native code]"))throw Error("Cannot extract body from native function");let u=removeComments(o),h=u.match(/^\s*(?:async\s+)?(?:\([^)]*\)|[^=]+)\s*=>\s*(.+)$/s);if(h&&!h[1].trim().startsWith("{")){let N=h[1].trim().replace(/;?\s*$/,"");if(N.startsWith("(")&&N.endsWith(")")){let O=N.slice(1,-1).trim();if(O.startsWith("{")&&O.endsWith("}"))return`return ${O}`}return`return ${N}`}let m=0,p=!1,_="",y=!1,S=!1,$=-1,E=-1;for(let[N,O]of Array.from(u).entries()){if(S){S=!1;continue}if(O==="\\"){S=!0;continue}if(!p&&!y){if(O==='"'||O==="'"){p=!0,_=O;continue}if(O==="`"){y=!0;continue}}else if(p&&O===_){p=!1;continue}else if(y&&O==="`"){y=!1;continue}if(!p&&!y){if(O==="{")$===-1&&($=N),m++;else if(O==="}"&&(m--,m===0&&$!==-1)){E=N;break}}}if($===-1||E===-1||$>=E)throw Error("Unable to extract function body - no valid braces found");let A=u.slice($+1,E).trim();if(/\breturn\b/.test(A))return A;let T=u.slice(0,$).trim();return(T.endsWith("=>")||T.endsWith("=> (")||T.endsWith("=>("))&&/^\s*(?:[a-zA-Z_$][\w$]*\s*:|["'`][^"'`]+["'`]\s*:|get\s+|set\s+|\[)/.test(A)?`return {${A}}`:`return ${A}`},compileCallback=r=>{try{return Function("dt","helpers",r)}catch(o){throw Error(`Failed to compile callback: ${o instanceof Error?o.message:String(o)}`)}},messages$2={"datetime.base":"{{#label}} must be a datetime value","datetime.exactly":"{{#label}} must be a datetime exactly equal to {{#limit}}","datetime.equals":"{{#label}} must be a datetime equal to {{#limit}}","datetime.after":"{{#label}} must be a datetime after {{#limit}}","datetime.greater":"{{#label}} must be a datetime after {{#limit}}","datetime.before":"{{#label}} must be a datetime before {{#limit}}","datetime.less":"{{#label}} must be a datetime before {{#limit}}","datetime.afterOrEqual":"{{#label}} must be a datetime after or equal to {{#limit}}","datetime.min":"{{#label}} must be a datetime after or equal to {{#limit}}","datetime.beforeOrEqual":"{{#label}} must be a datetime before or equal to {{#limit}}","datetime.max":"{{#label}} must be a datetime before or equal to {{#limit}}","datetime.weekend":"{{#label}} is not a weekend","datetime.weekday":"{{#label}} is not a weekday"},compare$12=(r,o,u)=>{switch(r=toDateTime(r),o=toDateTime(o),u){case"===":return r.equals(o);case"=":return r.hasSame(o,"millisecond");case">":return r>o;case"<":return r<o;case">=":return r>=o;case"<=":return r<=o;default:return!1}},backToDateTime=r=>r instanceof DateTime?r:DateTime.fromObject(r.c,{zone:r.zone}).setLocale(r.loc.locale),toDateTime=(r,o)=>{if(isLuxonDateTime$1(r))return r instanceof DateTime?r:backToDateTime(r);if(isInstanceOf$1(r,"Date",Date))return DateTime.fromJSDate(r);if(isInstanceOf$1(r,"Dayjs")||import_dayjs_min.default.isDayjs(r))return DateTime.fromJSDate(r.toDate());if(isDateObjectUnits(r))return DateTime.fromObject(r,{zone:"utc"});if(typeof r=="number"){let u=(0,import_dayjs_min.default)(r);if(u.isValid())return DateTime.fromJSDate(u.toDate(),{zone:"utc"})}if(typeof r=="string"){let u=DateTime.fromISO(r,{setZone:!0});if(u.isValid)return u;let h=[DateTime.fromRFC2822,DateTime.fromHTTP,DateTime.fromSQL];for(let p of h){let _=p(r,{zone:"utc"});if(_.isValid)return _}let m=(0,import_dayjs_min.default)(r);if(m.isValid())return DateTime.fromJSDate(m.toDate(),{zone:"utc"})}return!1},coerce$2=(r,o)=>{let u=r==null,h=o.schema._flags.presence==="required";if(u&&!h)return{value:null};if(u&&h)return{value:r,errors:[o.error("any.required",{label:o.schema._flags.label})]};let m=toDateTime(r);if(m){let{schema:p,prefs:_}=o;if(_.convert){let y=m;if(p._flags.setZone&&Array.isArray(p._flags.setZone))if(Array.isArray(p._flags.setZone[0]))Array.from(p._flags.setZone).forEach(S=>{if(!S)return;let[$,E]=Array.from(S);switch($){case"utc":case"UTC":y=y.toUTC();break;case"local":y=y.toLocal();break;default:y=y.setZone($,E);break}});else{let[S,$]=Array.from(p._flags.setZone);switch(S){case"utc":case"UTC":y=y.toUTC();break;case"local":y=y.toLocal();break;default:y=y.setZone(S,$);break}}if(p._flags.setLocale&&(y=y.setLocale(p._flags.setLocale)),p._flags.toFormat){if(Array.isArray(p._flags.toFormat)){let S=Array.from(p._flags.toFormat),$=S.shift(),E=S.map(A=>typeof A=="string"&&A.includes("return")?compileCallback(A)(y,o):A);y=y[$](...E)}else if(typeof p._flags.toFormat=="string")if(p._flags.toFormat.includes("return")){let S=compileCallback(p._flags.toFormat),$=S(y,o);y=y.toFormat($)}else y=y.toFormat(p._flags.toFormat)}return{value:y}}return{value:m}}return{value:r,errors:[o.error("datetime.base",{value:String(r)})]}},datetime=function(r){return{type:"datetime",base:r.any(),coerce:{from:["string","number","date","object"],method:coerce$2},rules:{compare:{method:!1,validate(o,u,{limit:h},{name:m,operator:p}){let _=toDateTime(o),y=toDateTime(h);return!_||!y?u.error("datetime.base",{value:isLuxonDateTime$1(o)?o.toLocaleString(DateTime.DATETIME_MED):String(o)}):compare$12(_,y,p)?o:u.error("datetime."+m,{limit:y.toLocaleString(DateTime.DATETIME_MED),value:_.toLocaleString(DateTime.DATETIME_MED)})},args:[{name:"limit",ref:!0,assert:o=>isLuxonDateTime$1(toDateTime(o)),message:"must be a datetime"}]},exactly:{method(o){return this.$_addRule({name:"exactly",method:"compare",args:{limit:o},operator:"==="})}},equals:{method(o){return this.$_addRule({name:"equals",method:"compare",args:{limit:o},operator:"="})}},after:{method(o){return this.$_addRule({name:"after",method:"compare",args:{limit:o},operator:">"})}},greater:{method(o){return this.$_addRule({name:"greater",method:"compare",args:{limit:o},operator:">"})}},before:{method(o){return this.$_addRule({name:"before",method:"compare",args:{limit:o},operator:"<"})}},less:{method(o){return this.$_addRule({name:"less",method:"compare",args:{limit:o},operator:"<"})}},afterOrEqual:{method(o){return this.$_addRule({name:"afterOrEqual",method:"compare",args:{limit:o},operator:">="})}},min:{method(o){return this.$_addRule({name:"min",method:"compare",args:{limit:o},operator:">="})}},beforeOrEqual:{method(o){return this.$_addRule({name:"beforeOrEqual",method:"compare",args:{limit:o},operator:"<="})}},max:{method(o){return this.$_addRule({name:"max",method:"compare",args:{limit:o},operator:"<="})}},weekend:{method(){return this.$_addRule({name:"weekend"})},validate(o,u){let h=toDateTime(o);return h.isWeekend?o:u.error("datetime.weekend",{value:h.toLocaleString(DateTime.DATE_MED)})}},weekday:{method(){return this.$_addRule({name:"weekday"})},validate(o,u){let h=toDateTime(o);return h.isWeekend?u.error("datetime.weekday",{value:h.toLocaleString(DateTime.DATE_MED)}):o}},toUTC:{method(){return this.$_setFlag("setZone",["utc"])}},toLocal:{method(){return this.$_setFlag("setZone",["local"])}},setZone:{method(o,u){return this.$_setFlag("setZone",[o,u])}},toFormat:{method(o){let u=typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",u,{clone:!0})}},toLocalizedString:{method(o){let u=typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",["toLocaleString",u],{clone:!0})}},toISO:{method(o){let u=o&&typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",u?["toISO",u]:["toISO"],{clone:!0})}},toISODate:{method(o){let u=o&&typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",u?["toISODate",u]:["toISODate"],{clone:!0})}},toISOWeekDate:{method(){return this.$_setFlag("toFormat",["toISOWeekDate"],{clone:!0})}},toISOTime:{method(o){let u=o&&typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",u?["toISOTime",u]:["toISOTime"],{clone:!0})}},toRFC2822:{method(){return this.$_setFlag("toFormat",["toRFC2822"],{clone:!0})}},toHTTP:{method(){return this.$_setFlag("toFormat",["toHTTP"],{clone:!0})}},toSQLDate:{method(){return this.$_setFlag("toFormat",["toSQLDate"],{clone:!0})}},toSQLTime:{method(o){let u=o&&typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",u?["toSQLTime",u]:["toSQLTime"],{clone:!0})}},toSQL:{method(o){let u=o&&typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",u?["toSQL",u]:["toSQL"],{clone:!0})}},toMillis:{method(){return this.$_setFlag("toFormat",["toMillis"],{clone:!0})}},toSeconds:{method(){return this.$_setFlag("toFormat",["toSeconds"],{clone:!0})}},toUnixInteger:{method(){return this.$_setFlag("toFormat",["toUnixInteger"],{clone:!0})}},toJSON:{method(){return this.$_setFlag("toFormat",["toJSON"],{clone:!0})}},toBSON:{method(){return this.$_setFlag("toFormat",["toBSON"],{clone:!0})}},toObject:{method(o){let u=typeof o=="function"?extractFunctionBody(o):(o==null?void 0:o.includeConfig)===void 0?{includeConfig:!1}:{includeConfig:o.includeConfig};return this.$_setFlag("toFormat",["toObject",u],{clone:!0})}},toJSDate:{method(){return this.$_setFlag("toFormat",["toJSDate"],{clone:!0})}},toRelative:{method(o){let u=o&&typeof o=="function"?extractFunctionBody(o):o;return this.$_setFlag("toFormat",u?["toRelative",u]:["toRelative"],{clone:!0})}},setLocale:{method(o){return this.$_setFlag("setLocale",o)}}},messages:messages$2}},generate=(r,o,u)=>(o.$_root=r,!o._definition.args||!u.length?o:o._definition.args(o,...u)),knownMessages={"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}","any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed","array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value","binary.base":"{{#label}} must be a buffer or a string","binary.length":"{{#label}} must be {{#limit}} bytes","binary.max":"{{#label}} must be less than or equal to {{#limit}} bytes","binary.min":"{{#label}} must be at least {{#limit}} bytes","boolean.base":"{{#label}} must be a boolean","date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds","function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}","object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}","number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number","string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters","symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}",...messages$1,...messages$2,...messages,...knexMessages,...fqdnMessages};countries.forEach((r,o)=>{knownMessages[`country.${o}`]=r});let globalI18nCallback;const i18n=r=>{let o=r,u=Object.assign({},o),h=u.types(),m=new Map;Object.entries(knownMessages).forEach(([_,y])=>{m.set(_,y)});let p=_=>{globalI18nCallback=_;let y=$=>{if(globalI18nCallback)try{let E=globalI18nCallback($);if(typeof E=="string")return E}catch{}return m.get($)||$},S=($,E)=>$.messages({"any.custom":y("any.custom"),"any.default":y("any.default"),"any.failover":y("any.failover"),"any.invalid":y("any.invalid"),"any.only":y("any.only"),"any.ref":y("any.ref"),"any.required":y("any.required"),"any.unknown":y("any.unknown"),...E});Object.defineProperty(o,"$i18n",{value:$=>y($),writable:!1,enumerable:!0,configurable:!0}),Object.keys(h).forEach($=>{let E=$;if(typeof o[E]!="function")return;let A=o[E]();o[E]=(...T)=>{let N=generate(o,A,T),O=Object.fromEntries(Object.entries(knexMessages).map(([C])=>[C,y(C)]));switch($){case"alternatives":return S(N,{"alternatives.all":y("alternatives.all"),"alternatives.any":y("alternatives.any"),"alternatives.match":y("alternatives.match"),"alternatives.one":y("alternatives.one"),"alternatives.types":y("alternatives.types"),...O});case"any":return S(N,{"any.custom":y("any.custom"),"any.default":y("any.default"),"any.failover":y("any.failover"),"any.invalid":y("any.invalid"),"any.only":y("any.only"),"any.ref":y("any.ref"),"any.required":y("any.required"),"any.unknown":y("any.unknown"),...O});case"array":return S(N,{"array.base":y("array.base"),"array.excludes":y("array.excludes"),"array.hasKnown":y("array.hasKnown"),"array.hasUnknown":y("array.hasUnknown"),"array.includes":y("array.includes"),"array.includesRequiredBoth":y("array.includesRequiredBoth"),"array.includesRequiredKnowns":y("array.includesRequiredKnowns"),"array.includesRequiredUnknowns":y("array.includesRequiredUnknowns"),"array.length":y("array.length"),"array.max":y("array.max"),"array.min":y("array.min"),"array.orderedLength":y("array.orderedLength"),"array.sort":y("array.sort"),"array.sort.mismatching":y("array.sort.mismatching"),"array.sort.unsupported":y("array.sort.unsupported"),"array.sparse":y("array.sparse"),"array.unique":y("array.unique"),...O});case"binary":return S(N,{"binary.base":y("binary.base"),"binary.length":y("binary.length"),"binary.max":y("binary.max"),"binary.min":y("binary.min"),...O});case"boolean":return S(N,{"boolean.base":y("boolean.base"),...O});case"date":return S(N,{"date.base":y("date.base"),"date.format":y("date.format"),"date.greater":y("date.greater"),"date.less":y("date.less"),"date.max":y("date.max"),"date.min":y("date.min"),"date.format.iso":y("date.format.iso"),"date.format.javascript":y("date.format.javascript"),"date.format.unix":y("date.format.unix"),...O});case"function":return S(N,{"function.arity":y("function.arity"),"function.class":y("function.class"),"function.maxArity":y("function.maxArity"),"function.minArity":y("function.minArity"),...O});case"object":case"keys":return S(N,{"object.and":y("object.and"),"object.assert":y("object.assert"),"object.base":y("object.base"),"object.instance":y("object.instance"),"object.length":y("object.length"),"object.max":y("object.max"),"object.min":y("object.min"),"object.missing":y("object.missing"),"object.nand":y("object.nand"),"object.oxor":y("object.oxor"),"object.pattern.match":y("object.pattern.match"),"object.refType":y("object.refType"),"object.regex":y("object.regex"),"object.rename.multiple":y("object.rename.multiple"),"object.rename.override":y("object.rename.override"),"object.schema":y("object.schema"),"object.unknown":y("object.unknown"),"object.with":y("object.with"),"object.without":y("object.without"),"object.xor":y("object.xor"),...O});case"number":return S(N,{"number.base":y("number.base"),"number.greater":y("number.greater"),"number.infinity":y("number.infinity"),"number.integer":y("number.integer"),"number.less":y("number.less"),"number.max":y("number.max"),"number.min":y("number.min"),"number.multiple":y("number.multiple"),"number.negative":y("number.negative"),"number.port":y("number.port"),"number.positive":y("number.positive"),"number.precision":y("number.precision"),"number.unsafe":y("number.unsafe"),...O});case"string":return S(N,{"string.alphanum":y("string.alphanum"),"string.base":y("string.base"),"string.base64":y("string.base64"),"string.creditCard":y("string.creditCard"),"string.dataUri":y("string.dataUri"),"string.domain":y("string.domain"),"string.email":y("string.email"),"string.empty":y("string.empty"),"string.guid":y("string.guid"),"string.hex":y("string.hex"),"string.hexAlign":y("string.hexAlign"),"string.hostname":y("string.hostname"),"string.ip":y("string.ip"),"string.ipVersion":y("string.ipVersion"),"string.isoDate":y("string.isoDate"),"string.isoDuration":y("string.isoDuration"),"string.length":y("string.length"),"string.lowercase":y("string.lowercase"),"string.max":y("string.max"),"string.min":y("string.min"),"string.normalize":y("string.normalize"),"string.token":y("string.token"),"string.pattern.base":y("string.pattern.base"),"string.pattern.name":y("string.pattern.name"),"string.pattern.invert.base":y("string.pattern.invert.base"),"string.pattern.invert.name":y("string.pattern.invert.name"),"string.trim":y("string.trim"),"string.uri":y("string.uri"),"string.uriCustomScheme":y("string.uriCustomScheme"),"string.uriRelativeOnly":y("string.uriRelativeOnly"),"string.uppercase":y("string.uppercase"),...fqdnMessages,...O});case"symbol":return S(N,{"symbol.base":y("symbol.base"),"symbol.map":y("symbol.map"),...O});case"bigint":return S(N,{"bigint.base":y("bigint.base"),"bigint.greater":y("bigint.greater"),"bigint.less":y("bigint.less"),"bigint.max":y("bigint.max"),"bigint.min":y("bigint.min"),"bigint.multiple":y("bigint.multiple"),"bigint.negative":y("bigint.negative"),"bigint.positive":y("bigint.positive"),...O});case"datetime":return S(N,{"datetime.base":y("datetime.base"),"datetime.exactly":y("datetime.exactly"),"datetime.equals":y("datetime.equals"),"datetime.after":y("datetime.after"),"datetime.greater":y("datetime.greater"),"datetime.before":y("datetime.before"),"datetime.less":y("datetime.less"),"datetime.afterOrEqual":y("datetime.afterOrEqual"),"datetime.min":y("datetime.min"),"datetime.beforeOrEqual":y("datetime.beforeOrEqual"),"datetime.max":y("datetime.max"),"datetime.weekend":y("datetime.weekend"),"datetime.weekday":y("datetime.weekday"),...O});case"phone":return S(N,{"phone.base":y("phone.base"),"phone.invalid":y("phone.invalid"),"phone.fixedLine":y("phone.fixedLine"),"phone.mobile":y("phone.mobile"),"phone.strictFixedLine":y("phone.strictFixedLine"),"phone.strictMobile":y("phone.strictMobile"),"phone.fixedLineOrMobile":y("phone.fixedLineOrMobile"),"phone.tollFree":y("phone.tollFree"),"phone.premiumRate":y("phone.premiumRate"),"phone.sharedCost":y("phone.sharedCost"),"phone.voip":y("phone.voip"),"phone.personalNumber":y("phone.personalNumber"),"phone.pager":y("phone.pager"),"phone.uan":y("phone.uan"),"phone.voicemail":y("phone.voicemail"),"phone.unknown":y("phone.unknown"),"phone.types":y("phone.types"),...O});default:return S(N,{...O})}}})};return Object.defineProperty(o,"$setI18n",{value:_=>(p(_),o),writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(o,"$clearI18n",{value:()=>(p(),o),writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(o,"$i18n",{value:_=>{try{return m.get(_)||_}catch{return _}},writable:!1,enumerable:!0,configurable:!0}),o},patch=r=>(r=json(r),r=i18n(r),r);var require_constants=__commonJSMin((r,o)=>{let u="2.0.0",h=256,m=2**53-1,p=16,_=h-6,y=["major","premajor","minor","preminor","patch","prepatch","prerelease"];o.exports={MAX_LENGTH:h,MAX_SAFE_COMPONENT_LENGTH:p,MAX_SAFE_BUILD_LENGTH:_,MAX_SAFE_INTEGER:m,RELEASE_TYPES:y,SEMVER_SPEC_VERSION:u,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}),require_debug=__commonJSMin((r,o)=>{init_dist();let u=typeof process$1$1=="object"&&process$1$1.env&&process$1$1.env.NODE_DEBUG&&/\bsemver\b/i.test(process$1$1.env.NODE_DEBUG)?(...h)=>console.error("SEMVER",...h):()=>{};o.exports=u}),require_re=__commonJSMin((r,o)=>{let{MAX_SAFE_COMPONENT_LENGTH:u,MAX_SAFE_BUILD_LENGTH:h,MAX_LENGTH:m}=require_constants(),p=require_debug();r=o.exports={};let _=r.re=[],y=r.safeRe=[],S=r.src=[],$=r.safeSrc=[],E=r.t={},A=0,T="[a-zA-Z0-9-]",N=[["\\s",1],["\\d",m],[T,h]],O=L=>{for(let[w,I]of N)L=L.split(`${w}*`).join(`${w}{0,${I}}`).split(`${w}+`).join(`${w}{1,${I}}`);return L},C=(L,w,I)=>{let D=O(w),F=A++;p(L,F,w),E[L]=F,S[F]=w,$[F]=D,_[F]=new RegExp(w,I?"g":void 0),y[F]=new RegExp(D,I?"g":void 0)};C("NUMERICIDENTIFIER","0|[1-9]\\d*"),C("NUMERICIDENTIFIERLOOSE","\\d+"),C("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${T}*`),C("MAINVERSION",`(${S[E.NUMERICIDENTIFIER]})\\.(${S[E.NUMERICIDENTIFIER]})\\.(${S[E.NUMERICIDENTIFIER]})`),C("MAINVERSIONLOOSE",`(${S[E.NUMERICIDENTIFIERLOOSE]})\\.(${S[E.NUMERICIDENTIFIERLOOSE]})\\.(${S[E.NUMERICIDENTIFIERLOOSE]})`),C("PRERELEASEIDENTIFIER",`(?:${S[E.NONNUMERICIDENTIFIER]}|${S[E.NUMERICIDENTIFIER]})`),C("PRERELEASEIDENTIFIERLOOSE",`(?:${S[E.NONNUMERICIDENTIFIER]}|${S[E.NUMERICIDENTIFIERLOOSE]})`),C("PRERELEASE",`(?:-(${S[E.PRERELEASEIDENTIFIER]}(?:\\.${S[E.PRERELEASEIDENTIFIER]})*))`),C("PRERELEASELOOSE",`(?:-?(${S[E.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${S[E.PRERELEASEIDENTIFIERLOOSE]})*))`),C("BUILDIDENTIFIER",`${T}+`),C("BUILD",`(?:\\+(${S[E.BUILDIDENTIFIER]}(?:\\.${S[E.BUILDIDENTIFIER]})*))`),C("FULLPLAIN",`v?${S[E.MAINVERSION]}${S[E.PRERELEASE]}?${S[E.BUILD]}?`),C("FULL",`^${S[E.FULLPLAIN]}$`),C("LOOSEPLAIN",`[v=\\s]*${S[E.MAINVERSIONLOOSE]}${S[E.PRERELEASELOOSE]}?${S[E.BUILD]}?`),C("LOOSE",`^${S[E.LOOSEPLAIN]}$`),C("GTLT","((?:<|>)?=?)"),C("XRANGEIDENTIFIERLOOSE",`${S[E.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),C("XRANGEIDENTIFIER",`${S[E.NUMERICIDENTIFIER]}|x|X|\\*`),C("XRANGEPLAIN",`[v=\\s]*(${S[E.XRANGEIDENTIFIER]})(?:\\.(${S[E.XRANGEIDENTIFIER]})(?:\\.(${S[E.XRANGEIDENTIFIER]})(?:${S[E.PRERELEASE]})?${S[E.BUILD]}?)?)?`),C("XRANGEPLAINLOOSE",`[v=\\s]*(${S[E.XRANGEIDENTIFIERLOOSE]})(?:\\.(${S[E.XRANGEIDENTIFIERLOOSE]})(?:\\.(${S[E.XRANGEIDENTIFIERLOOSE]})(?:${S[E.PRERELEASELOOSE]})?${S[E.BUILD]}?)?)?`),C("XRANGE",`^${S[E.GTLT]}\\s*${S[E.XRANGEPLAIN]}$`),C("XRANGELOOSE",`^${S[E.GTLT]}\\s*${S[E.XRANGEPLAINLOOSE]}$`),C("COERCEPLAIN",`(^|[^\\d])(\\d{1,${u}})(?:\\.(\\d{1,${u}}))?(?:\\.(\\d{1,${u}}))?`),C("COERCE",`${S[E.COERCEPLAIN]}(?:$|[^\\d])`),C("COERCEFULL",S[E.COERCEPLAIN]+`(?:${S[E.PRERELEASE]})?(?:${S[E.BUILD]})?(?:$|[^\\d])`),C("COERCERTL",S[E.COERCE],!0),C("COERCERTLFULL",S[E.COERCEFULL],!0),C("LONETILDE","(?:~>?)"),C("TILDETRIM",`(\\s*)${S[E.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",C("TILDE",`^${S[E.LONETILDE]}${S[E.XRANGEPLAIN]}$`),C("TILDELOOSE",`^${S[E.LONETILDE]}${S[E.XRANGEPLAINLOOSE]}$`),C("LONECARET","(?:\\^)"),C("CARETTRIM",`(\\s*)${S[E.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",C("CARET",`^${S[E.LONECARET]}${S[E.XRANGEPLAIN]}$`),C("CARETLOOSE",`^${S[E.LONECARET]}${S[E.XRANGEPLAINLOOSE]}$`),C("COMPARATORLOOSE",`^${S[E.GTLT]}\\s*(${S[E.LOOSEPLAIN]})$|^$`),C("COMPARATOR",`^${S[E.GTLT]}\\s*(${S[E.FULLPLAIN]})$|^$`),C("COMPARATORTRIM",`(\\s*)${S[E.GTLT]}\\s*(${S[E.LOOSEPLAIN]}|${S[E.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",C("HYPHENRANGE",`^\\s*(${S[E.XRANGEPLAIN]})\\s+-\\s+(${S[E.XRANGEPLAIN]})\\s*$`),C("HYPHENRANGELOOSE",`^\\s*(${S[E.XRANGEPLAINLOOSE]})\\s+-\\s+(${S[E.XRANGEPLAINLOOSE]})\\s*$`),C("STAR","(<|>)?=?\\s*\\*"),C("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),C("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}),require_parse_options=__commonJSMin((r,o)=>{let u=Object.freeze({loose:!0}),h=Object.freeze({}),m=p=>p?typeof p=="object"?p:u:h;o.exports=m}),require_identifiers=__commonJSMin((r,o)=>{let u=/^[0-9]+$/,h=(p,_)=>{if(typeof p=="number"&&typeof _=="number")return p===_?0:p<_?-1:1;let y=u.test(p),S=u.test(_);return y&&S&&(p=+p,_=+_),p===_?0:y&&!S?-1:S&&!y?1:p<_?-1:1},m=(p,_)=>h(_,p);o.exports={compareIdentifiers:h,rcompareIdentifiers:m}}),require_semver$1=__commonJSMin((r,o)=>{let u=require_debug(),{MAX_LENGTH:h,MAX_SAFE_INTEGER:m}=require_constants(),{safeRe:p,t:_}=require_re(),y=require_parse_options(),{compareIdentifiers:S}=require_identifiers();var $=class Ht{constructor(A,T){if(T=y(T),A instanceof Ht){if(A.loose===!!T.loose&&A.includePrerelease===!!T.includePrerelease)return A;A=A.version}else if(typeof A!="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof A}".`);if(A.length>h)throw TypeError(`version is longer than ${h} characters`);u("SemVer",A,T),this.options=T,this.loose=!!T.loose,this.includePrerelease=!!T.includePrerelease;let N=A.trim().match(T.loose?p[_.LOOSE]:p[_.FULL]);if(!N)throw TypeError(`Invalid Version: ${A}`);if(this.raw=A,this.major=+N[1],this.minor=+N[2],this.patch=+N[3],this.major>m||this.major<0)throw TypeError("Invalid major version");if(this.minor>m||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>m||this.patch<0)throw TypeError("Invalid patch version");N[4]?this.prerelease=N[4].split(".").map(O=>{if(/^[0-9]+$/.test(O)){let C=+O;if(C>=0&&C<m)return C}return O}):this.prerelease=[],this.build=N[5]?N[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(A){if(u("SemVer.compare",this.version,this.options,A),!(A instanceof Ht)){if(typeof A=="string"&&A===this.version)return 0;A=new Ht(A,this.options)}return A.version===this.version?0:this.compareMain(A)||this.comparePre(A)}compareMain(A){return A instanceof Ht||(A=new Ht(A,this.options)),this.major<A.major?-1:this.major>A.major?1:this.minor<A.minor?-1:this.minor>A.minor?1:this.patch<A.patch?-1:this.patch>A.patch?1:0}comparePre(A){if(A instanceof Ht||(A=new Ht(A,this.options)),this.prerelease.length&&!A.prerelease.length)return-1;if(!this.prerelease.length&&A.prerelease.length)return 1;if(!this.prerelease.length&&!A.prerelease.length)return 0;let T=0;do{let N=this.prerelease[T],O=A.prerelease[T];if(u("prerelease compare",T,N,O),N===void 0&&O===void 0)return 0;if(O===void 0)return 1;if(N===void 0)return-1;if(N!==O)return S(N,O)}while(++T)}compareBuild(A){A instanceof Ht||(A=new Ht(A,this.options));let T=0;do{let N=this.build[T],O=A.build[T];if(u("build compare",T,N,O),N===void 0&&O===void 0)return 0;if(O===void 0)return 1;if(N===void 0)return-1;if(N!==O)return S(N,O)}while(++T)}inc(A,T,N){if(A.startsWith("pre")){if(!T&&N===!1)throw Error("invalid increment argument: identifier is empty");if(T){let O=`-${T}`.match(this.options.loose?p[_.PRERELEASELOOSE]:p[_.PRERELEASE]);if(!O||O[1]!==T)throw Error(`invalid identifier: ${T}`)}}switch(A){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",T,N);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",T,N);break;case"prepatch":this.prerelease.length=0,this.inc("patch",T,N),this.inc("pre",T,N);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",T,N),this.inc("pre",T,N);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let O=Number(N)?1:0;if(this.prerelease.length===0)this.prerelease=[O];else{let C=this.prerelease.length;for(;--C>=0;)typeof this.prerelease[C]=="number"&&(this.prerelease[C]++,C=-2);if(C===-1){if(T===this.prerelease.join(".")&&N===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(O)}}if(T){let C=[T,O];N===!1&&(C=[T]),S(this.prerelease[0],T)===0?isNaN(this.prerelease[1])&&(this.prerelease=C):this.prerelease=C}break}default:throw Error(`invalid increment argument: ${A}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};o.exports=$}),require_parse=__commonJSMin((r,o)=>{let u=require_semver$1(),h=(m,p,_=!1)=>{if(m instanceof u)return m;try{return new u(m,p)}catch(y){if(!_)return null;throw y}};o.exports=h}),require_valid$1=__commonJSMin((r,o)=>{let u=require_parse(),h=(m,p)=>{let _=u(m,p);return _?_.version:null};o.exports=h}),require_clean=__commonJSMin((r,o)=>{let u=require_parse(),h=(m,p)=>{let _=u(m.trim().replace(/^[=v]+/,""),p);return _?_.version:null};o.exports=h}),require_inc=__commonJSMin((r,o)=>{let u=require_semver$1(),h=(m,p,_,y,S)=>{typeof _=="string"&&(S=y,y=_,_=void 0);try{return new u(m instanceof u?m.version:m,_).inc(p,y,S).version}catch{return null}};o.exports=h}),require_diff=__commonJSMin((r,o)=>{let u=require_parse(),h=(m,p)=>{let _=u(m,null,!0),y=u(p,null,!0),S=_.compare(y);if(S===0)return null;let $=S>0,E=$?_:y,A=$?y:_,T=!!E.prerelease.length;if(!!A.prerelease.length&&!T){if(!A.patch&&!A.minor)return"major";if(A.compareMain(E)===0)return A.minor&&!A.patch?"minor":"patch"}let O=T?"pre":"";return _.major===y.major?_.minor===y.minor?_.patch===y.patch?"prerelease":O+"patch":O+"minor":O+"major"};o.exports=h}),require_major=__commonJSMin((r,o)=>{let u=require_semver$1(),h=(m,p)=>new u(m,p).major;o.exports=h}),require_minor=__commonJSMin((r,o)=>{let u=require_semver$1(),h=(m,p)=>new u(m,p).minor;o.exports=h}),require_patch=__commonJSMin((r,o)=>{let u=require_semver$1(),h=(m,p)=>new u(m,p).patch;o.exports=h}),require_prerelease=__commonJSMin((r,o)=>{let u=require_parse(),h=(m,p)=>{let _=u(m,p);return _&&_.prerelease.length?_.prerelease:null};o.exports=h}),require_compare=__commonJSMin((r,o)=>{let u=require_semver$1(),h=(m,p,_)=>new u(m,_).compare(new u(p,_));o.exports=h}),require_rcompare=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p,_)=>u(p,m,_);o.exports=h}),require_compare_loose=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p)=>u(m,p,!0);o.exports=h}),require_compare_build=__commonJSMin((r,o)=>{let u=require_semver$1(),h=(m,p,_)=>{let y=new u(m,_),S=new u(p,_);return y.compare(S)||y.compareBuild(S)};o.exports=h}),require_sort=__commonJSMin((r,o)=>{let u=require_compare_build(),h=(m,p)=>m.sort((_,y)=>u(_,y,p));o.exports=h}),require_rsort=__commonJSMin((r,o)=>{let u=require_compare_build(),h=(m,p)=>m.sort((_,y)=>u(y,_,p));o.exports=h}),require_gt=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p,_)=>u(m,p,_)>0;o.exports=h}),require_lt=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p,_)=>u(m,p,_)<0;o.exports=h}),require_eq=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p,_)=>u(m,p,_)===0;o.exports=h}),require_neq=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p,_)=>u(m,p,_)!==0;o.exports=h}),require_gte=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p,_)=>u(m,p,_)>=0;o.exports=h}),require_lte=__commonJSMin((r,o)=>{let u=require_compare(),h=(m,p,_)=>u(m,p,_)<=0;o.exports=h}),require_cmp=__commonJSMin((r,o)=>{let u=require_eq(),h=require_neq(),m=require_gt(),p=require_gte(),_=require_lt(),y=require_lte(),S=($,E,A,T)=>{switch(E){case"===":return typeof $=="object"&&($=$.version),typeof A=="object"&&(A=A.version),$===A;case"!==":return typeof $=="object"&&($=$.version),typeof A=="object"&&(A=A.version),$!==A;case"":case"=":case"==":return u($,A,T);case"!=":return h($,A,T);case">":return m($,A,T);case">=":return p($,A,T);case"<":return _($,A,T);case"<=":return y($,A,T);default:throw TypeError(`Invalid operator: ${E}`)}};o.exports=S}),require_coerce=__commonJSMin((r,o)=>{let u=require_semver$1(),h=require_parse(),{safeRe:m,t:p}=require_re(),_=(y,S)=>{if(y instanceof u)return y;if(typeof y=="number"&&(y=String(y)),typeof y!="string")return null;S||(S={});let $=null;if(!S.rtl)$=y.match(S.includePrerelease?m[p.COERCEFULL]:m[p.COERCE]);else{let C=S.includePrerelease?m[p.COERCERTLFULL]:m[p.COERCERTL],L;for(;(L=C.exec(y))&&(!$||$.index+$[0].length!==y.length);)(!$||L.index+L[0].length!==$.index+$[0].length)&&($=L),C.lastIndex=L.index+L[1].length+L[2].length;C.lastIndex=-1}if($===null)return null;let E=$[2],A=$[3]||"0",T=$[4]||"0",N=S.includePrerelease&&$[5]?`-${$[5]}`:"",O=S.includePrerelease&&$[6]?`+${$[6]}`:"";return h(`${E}.${A}.${T}${N}${O}`,S)};o.exports=_}),require_lrucache=__commonJSMin((r,o)=>{var u=class{constructor(){this.max=1e3,this.map=new Map}get(h){let m=this.map.get(h);if(m!==void 0)return this.map.delete(h),this.map.set(h,m),m}delete(h){return this.map.delete(h)}set(h,m){if(!this.delete(h)&&m!==void 0){if(this.map.size>=this.max){let _=this.map.keys().next().value;this.delete(_)}this.map.set(h,m)}return this}};o.exports=u}),require_range=__commonJSMin((r,o)=>{let u=/\s+/g;var h=class Or{constructor(B,ue){if(ue=_(ue),B instanceof Or)return B.loose===!!ue.loose&&B.includePrerelease===!!ue.includePrerelease?B:new Or(B.raw,ue);if(B instanceof y)return this.raw=B.value,this.set=[[B]],this.formatted=void 0,this;if(this.options=ue,this.loose=!!ue.loose,this.includePrerelease=!!ue.includePrerelease,this.raw=B.trim().replace(u," "),this.set=this.raw.split("||").map(ce=>this.parseRange(ce.trim())).filter(ce=>ce.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let ce=this.set[0];if(this.set=this.set.filter(K=>!w(K[0])),this.set.length===0)this.set=[ce];else if(this.set.length>1){for(let K of this.set)if(K.length===1&&I(K[0])){this.set=[K];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let B=0;B<this.set.length;B++){B>0&&(this.formatted+="||");let ue=this.set[B];for(let ce=0;ce<ue.length;ce++)ce>0&&(this.formatted+=" "),this.formatted+=ue[ce].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(B){let ue=(this.options.includePrerelease&&C)|(this.options.loose&&L),ce=ue+":"+B,K=p.get(ce);if(K)return K;let Q=this.options.loose,Y=Q?E[A.HYPHENRANGELOOSE]:E[A.HYPHENRANGE];B=B.replace(Y,U(this.options.includePrerelease)),S("hyphen replace",B),B=B.replace(E[A.COMPARATORTRIM],T),S("comparator trim",B),B=B.replace(E[A.TILDETRIM],N),S("tilde trim",B),B=B.replace(E[A.CARETTRIM],O),S("caret trim",B);let me=B.split(" ").map(xe=>F(xe,this.options)).join(" ").split(/\s+/).map(xe=>ae(xe,this.options));Q&&(me=me.filter(xe=>(S("loose invalid filter",xe,this.options),!!xe.match(E[A.COMPARATORLOOSE])))),S("range list",me);let Oe=new Map,Me=me.map(xe=>new y(xe,this.options));for(let xe of Me){if(w(xe))return[xe];Oe.set(xe.value,xe)}Oe.size>1&&Oe.has("")&&Oe.delete("");let Re=[...Oe.values()];return p.set(ce,Re),Re}intersects(B,ue){if(!(B instanceof Or))throw TypeError("a Range is required");return this.set.some(ce=>D(ce,ue)&&B.set.some(K=>D(K,ue)&&ce.every(Q=>K.every(Y=>Q.intersects(Y,ue)))))}test(B){if(!B)return!1;if(typeof B=="string")try{B=new $(B,this.options)}catch{return!1}for(let ue=0;ue<this.set.length;ue++)if(q(this.set[ue],B,this.options))return!0;return!1}};o.exports=h;let m=require_lrucache(),p=new m,_=require_parse_options(),y=require_comparator(),S=require_debug(),$=require_semver$1(),{safeRe:E,t:A,comparatorTrimReplace:T,tildeTrimReplace:N,caretTrimReplace:O}=require_re(),{FLAG_INCLUDE_PRERELEASE:C,FLAG_LOOSE:L}=require_constants(),w=R=>R.value==="<0.0.0-0",I=R=>R.value==="",D=(R,B)=>{let ue=!0,ce=R.slice(),K=ce.pop();for(;ue&&ce.length;)ue=ce.every(Q=>K.intersects(Q,B)),K=ce.pop();return ue},F=(R,B)=>(R=R.replace(E[A.BUILD],""),S("comp",R,B),R=pe(R,B),S("caret",R),R=ie(R,B),S("tildes",R),R=Ee(R,B),S("xrange",R),R=J(R,B),S("stars",R),R),k=R=>!R||R.toLowerCase()==="x"||R==="*",ie=(R,B)=>R.trim().split(/\s+/).map(ue=>fe(ue,B)).join(" "),fe=(R,B)=>{let ue=B.loose?E[A.TILDELOOSE]:E[A.TILDE];return R.replace(ue,(ce,K,Q,Y,me)=>{S("tilde",R,ce,K,Q,Y,me);let Oe;return k(K)?Oe="":k(Q)?Oe=`>=${K}.0.0 <${+K+1}.0.0-0`:k(Y)?Oe=`>=${K}.${Q}.0 <${K}.${+Q+1}.0-0`:me?(S("replaceTilde pr",me),Oe=`>=${K}.${Q}.${Y}-${me} <${K}.${+Q+1}.0-0`):Oe=`>=${K}.${Q}.${Y} <${K}.${+Q+1}.0-0`,S("tilde return",Oe),Oe})},pe=(R,B)=>R.trim().split(/\s+/).map(ue=>Se(ue,B)).join(" "),Se=(R,B)=>{S("caret",R,B);let ue=B.loose?E[A.CARETLOOSE]:E[A.CARET],ce=B.includePrerelease?"-0":"";return R.replace(ue,(K,Q,Y,me,Oe)=>{S("caret",R,K,Q,Y,me,Oe);let Me;return k(Q)?Me="":k(Y)?Me=`>=${Q}.0.0${ce} <${+Q+1}.0.0-0`:k(me)?Me=Q==="0"?`>=${Q}.${Y}.0${ce} <${Q}.${+Y+1}.0-0`:`>=${Q}.${Y}.0${ce} <${+Q+1}.0.0-0`:Oe?(S("replaceCaret pr",Oe),Me=Q==="0"?Y==="0"?`>=${Q}.${Y}.${me}-${Oe} <${Q}.${Y}.${+me+1}-0`:`>=${Q}.${Y}.${me}-${Oe} <${Q}.${+Y+1}.0-0`:`>=${Q}.${Y}.${me}-${Oe} <${+Q+1}.0.0-0`):(S("no pr"),Me=Q==="0"?Y==="0"?`>=${Q}.${Y}.${me}${ce} <${Q}.${Y}.${+me+1}-0`:`>=${Q}.${Y}.${me}${ce} <${Q}.${+Y+1}.0-0`:`>=${Q}.${Y}.${me} <${+Q+1}.0.0-0`),S("caret return",Me),Me})},Ee=(R,B)=>(S("replaceXRanges",R,B),R.split(/\s+/).map(ue=>ge(ue,B)).join(" ")),ge=(R,B)=>{R=R.trim();let ue=B.loose?E[A.XRANGELOOSE]:E[A.XRANGE];return R.replace(ue,(ce,K,Q,Y,me,Oe)=>{S("xRange",R,ce,K,Q,Y,me,Oe);let Me=k(Q),Re=Me||k(Y),xe=Re||k(me),Ae=xe;return K==="="&&Ae&&(K=""),Oe=B.includePrerelease?"-0":"",Me?ce=K===">"||K==="<"?"<0.0.0-0":"*":K&&Ae?(Re&&(Y=0),me=0,K===">"?(K=">=",Re?(Q=+Q+1,Y=0,me=0):(Y=+Y+1,me=0)):K==="<="&&(K="<",Re?Q=+Q+1:Y=+Y+1),K==="<"&&(Oe="-0"),ce=`${K+Q}.${Y}.${me}${Oe}`):Re?ce=`>=${Q}.0.0${Oe} <${+Q+1}.0.0-0`:xe&&(ce=`>=${Q}.${Y}.0${Oe} <${Q}.${+Y+1}.0-0`),S("xRange return",ce),ce})},J=(R,B)=>(S("replaceStars",R,B),R.trim().replace(E[A.STAR],"")),ae=(R,B)=>(S("replaceGTE0",R,B),R.trim().replace(E[B.includePrerelease?A.GTE0PRE:A.GTE0],"")),U=R=>(B,ue,ce,K,Q,Y,me,Oe,Me,Re,xe,Ae)=>(ue=k(ce)?"":k(K)?`>=${ce}.0.0${R?"-0":""}`:k(Q)?`>=${ce}.${K}.0${R?"-0":""}`:Y?`>=${ue}`:`>=${ue}${R?"-0":""}`,Oe=k(Me)?"":k(Re)?`<${+Me+1}.0.0-0`:k(xe)?`<${Me}.${+Re+1}.0-0`:Ae?`<=${Me}.${Re}.${xe}-${Ae}`:R?`<${Me}.${Re}.${+xe+1}-0`:`<=${Oe}`,`${ue} ${Oe}`.trim()),q=(R,B,ue)=>{for(let ce=0;ce<R.length;ce++)if(!R[ce].test(B))return!1;if(B.prerelease.length&&!ue.includePrerelease){for(let ce=0;ce<R.length;ce++)if(S(R[ce].semver),R[ce].semver!==y.ANY&&R[ce].semver.prerelease.length>0){let K=R[ce].semver;if(K.major===B.major&&K.minor===B.minor&&K.patch===B.patch)return!0}return!1}return!0}}),require_comparator=__commonJSMin((r,o)=>{let u=Symbol("SemVer ANY");var h=class Dr{static get ANY(){return u}constructor(T,N){if(N=m(N),T instanceof Dr){if(T.loose===!!N.loose)return T;T=T.value}T=T.trim().split(/\s+/).join(" "),S("comparator",T,N),this.options=N,this.loose=!!N.loose,this.parse(T),this.semver===u?this.value="":this.value=this.operator+this.semver.version,S("comp",this)}parse(T){let N=this.options.loose?p[_.COMPARATORLOOSE]:p[_.COMPARATOR],O=T.match(N);if(!O)throw TypeError(`Invalid comparator: ${T}`);this.operator=O[1]===void 0?"":O[1],this.operator==="="&&(this.operator=""),O[2]?this.semver=new $(O[2],this.options.loose):this.semver=u}toString(){return this.value}test(T){if(S("Comparator.test",T,this.options.loose),this.semver===u||T===u)return!0;if(typeof T=="string")try{T=new $(T,this.options)}catch{return!1}return y(T,this.operator,this.semver,this.options)}intersects(T,N){if(!(T instanceof Dr))throw TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new E(T.value,N).test(this.value):T.operator===""?T.value===""?!0:new E(this.value,N).test(T.semver):(N=m(N),N.includePrerelease&&(this.value==="<0.0.0-0"||T.value==="<0.0.0-0")||!N.includePrerelease&&(this.value.startsWith("<0.0.0")||T.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&T.operator.startsWith(">")||this.operator.startsWith("<")&&T.operator.startsWith("<")||this.semver.version===T.semver.version&&this.operator.includes("=")&&T.operator.includes("=")||y(this.semver,"<",T.semver,N)&&this.operator.startsWith(">")&&T.operator.startsWith("<")||y(this.semver,">",T.semver,N)&&this.operator.startsWith("<")&&T.operator.startsWith(">")))}};o.exports=h;let m=require_parse_options(),{safeRe:p,t:_}=require_re(),y=require_cmp(),S=require_debug(),$=require_semver$1(),E=require_range()}),require_satisfies=__commonJSMin((r,o)=>{let u=require_range(),h=(m,p,_)=>{try{p=new u(p,_)}catch{return!1}return p.test(m)};o.exports=h}),require_to_comparators=__commonJSMin((r,o)=>{let u=require_range(),h=(m,p)=>new u(m,p).set.map(_=>_.map(y=>y.value).join(" ").trim().split(" "));o.exports=h}),require_max_satisfying=__commonJSMin((r,o)=>{let u=require_semver$1(),h=require_range(),m=(p,_,y)=>{let S=null,$=null,E=null;try{E=new h(_,y)}catch{return null}return p.forEach(A=>{E.test(A)&&(!S||$.compare(A)===-1)&&(S=A,$=new u(S,y))}),S};o.exports=m}),require_min_satisfying=__commonJSMin((r,o)=>{let u=require_semver$1(),h=require_range(),m=(p,_,y)=>{let S=null,$=null,E=null;try{E=new h(_,y)}catch{return null}return p.forEach(A=>{E.test(A)&&(!S||$.compare(A)===1)&&(S=A,$=new u(S,y))}),S};o.exports=m}),require_min_version=__commonJSMin((r,o)=>{let u=require_semver$1(),h=require_range(),m=require_gt(),p=(_,y)=>{_=new h(_,y);let S=new u("0.0.0");if(_.test(S)||(S=new u("0.0.0-0"),_.test(S)))return S;S=null;for(let $=0;$<_.set.length;++$){let E=_.set[$],A=null;E.forEach(T=>{let N=new u(T.semver.version);switch(T.operator){case">":N.prerelease.length===0?N.patch++:N.prerelease.push(0),N.raw=N.format();case"":case">=":(!A||m(N,A))&&(A=N);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${T.operator}`)}}),A&&(!S||m(S,A))&&(S=A)}return S&&_.test(S)?S:null};o.exports=p}),require_valid=__commonJSMin((r,o)=>{let u=require_range(),h=(m,p)=>{try{return new u(m,p).range||"*"}catch{return null}};o.exports=h}),require_outside=__commonJSMin((r,o)=>{let u=require_semver$1(),h=require_comparator(),{ANY:m}=h,p=require_range(),_=require_satisfies(),y=require_gt(),S=require_lt(),$=require_lte(),E=require_gte(),A=(T,N,O,C)=>{T=new u(T,C),N=new p(N,C);let L,w,I,D,F;switch(O){case">":L=y,w=$,I=S,D=">",F=">=";break;case"<":L=S,w=E,I=y,D="<",F="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(_(T,N,C))return!1;for(let k=0;k<N.set.length;++k){let ie=N.set[k],fe=null,pe=null;if(ie.forEach(Se=>{Se.semver===m&&(Se=new h(">=0.0.0")),fe||(fe=Se),pe||(pe=Se),L(Se.semver,fe.semver,C)?fe=Se:I(Se.semver,pe.semver,C)&&(pe=Se)}),fe.operator===D||fe.operator===F||(!pe.operator||pe.operator===D)&&w(T,pe.semver)||pe.operator===F&&I(T,pe.semver))return!1}return!0};o.exports=A}),require_gtr=__commonJSMin((r,o)=>{let u=require_outside(),h=(m,p,_)=>u(m,p,">",_);o.exports=h}),require_ltr=__commonJSMin((r,o)=>{let u=require_outside(),h=(m,p,_)=>u(m,p,"<",_);o.exports=h}),require_intersects=__commonJSMin((r,o)=>{let u=require_range(),h=(m,p,_)=>(m=new u(m,_),p=new u(p,_),m.intersects(p,_));o.exports=h}),require_simplify=__commonJSMin((r,o)=>{let u=require_satisfies(),h=require_compare();o.exports=(m,p,_)=>{let y=[],S=null,$=null,E=m.sort((O,C)=>h(O,C,_));for(let O of E)u(O,p,_)?($=O,S||(S=O)):($&&y.push([S,$]),$=null,S=null);S&&y.push([S,null]);let A=[];for(let[O,C]of y)O===C?A.push(O):!C&&O===E[0]?A.push("*"):C?O===E[0]?A.push(`<=${C}`):A.push(`${O} - ${C}`):A.push(`>=${O}`);let T=A.join(" || "),N=typeof p.raw=="string"?p.raw:String(p);return T.length<N.length?T:p}}),require_subset=__commonJSMin((r,o)=>{let u=require_range(),h=require_comparator(),{ANY:m}=h,p=require_satisfies(),_=require_compare(),y=(N,O,C={})=>{if(N===O)return!0;N=new u(N,C),O=new u(O,C);let L=!1;e:for(let w of N.set){for(let I of O.set){let D=E(w,I,C);if(L||(L=D!==null),D)continue e}if(L)return!1}return!0},S=[new h(">=0.0.0-0")],$=[new h(">=0.0.0")],E=(N,O,C)=>{if(N===O)return!0;if(N.length===1&&N[0].semver===m){if(O.length===1&&O[0].semver===m)return!0;N=C.includePrerelease?S:$}if(O.length===1&&O[0].semver===m){if(C.includePrerelease)return!0;O=$}let L=new Set,w,I;for(let Ee of N)Ee.operator===">"||Ee.operator===">="?w=A(w,Ee,C):Ee.operator==="<"||Ee.operator==="<="?I=T(I,Ee,C):L.add(Ee.semver);if(L.size>1)return null;let D;if(w&&I&&(D=_(w.semver,I.semver,C),D>0||D===0&&(w.operator!==">="||I.operator!=="<=")))return null;for(let Ee of L){if(w&&!p(Ee,String(w),C)||I&&!p(Ee,String(I),C))return null;for(let ge of O)if(!p(Ee,String(ge),C))return!1;return!0}let F,k,ie,fe,pe=I&&!C.includePrerelease&&I.semver.prerelease.length?I.semver:!1,Se=w&&!C.includePrerelease&&w.semver.prerelease.length?w.semver:!1;pe&&pe.prerelease.length===1&&I.operator==="<"&&pe.prerelease[0]===0&&(pe=!1);for(let Ee of O){if(fe=fe||Ee.operator===">"||Ee.operator===">=",ie=ie||Ee.operator==="<"||Ee.operator==="<=",w){if(Se&&Ee.semver.prerelease&&Ee.semver.prerelease.length&&Ee.semver.major===Se.major&&Ee.semver.minor===Se.minor&&Ee.semver.patch===Se.patch&&(Se=!1),Ee.operator===">"||Ee.operator===">="){if(F=A(w,Ee,C),F===Ee&&F!==w)return!1}else if(w.operator===">="&&!p(w.semver,String(Ee),C))return!1}if(I){if(pe&&Ee.semver.prerelease&&Ee.semver.prerelease.length&&Ee.semver.major===pe.major&&Ee.semver.minor===pe.minor&&Ee.semver.patch===pe.patch&&(pe=!1),Ee.operator==="<"||Ee.operator==="<="){if(k=T(I,Ee,C),k===Ee&&k!==I)return!1}else if(I.operator==="<="&&!p(I.semver,String(Ee),C))return!1}if(!Ee.operator&&(I||w)&&D!==0)return!1}return!(w&&ie&&!I&&D!==0||I&&fe&&!w&&D!==0||Se||pe)},A=(N,O,C)=>{if(!N)return O;let L=_(N.semver,O.semver,C);return L>0?N:L<0||O.operator===">"&&N.operator===">="?O:N},T=(N,O,C)=>{if(!N)return O;let L=_(N.semver,O.semver,C);return L<0?N:L>0||O.operator==="<"&&N.operator==="<="?O:N};o.exports=y}),require_semver=__commonJSMin((r,o)=>{let u=require_re(),h=require_constants(),m=require_semver$1(),p=require_identifiers(),_=require_parse(),y=require_valid$1(),S=require_clean(),$=require_inc(),E=require_diff(),A=require_major(),T=require_minor(),N=require_patch(),O=require_prerelease(),C=require_compare(),L=require_rcompare(),w=require_compare_loose(),I=require_compare_build(),D=require_sort(),F=require_rsort(),k=require_gt(),ie=require_lt(),fe=require_eq(),pe=require_neq(),Se=require_gte(),Ee=require_lte(),ge=require_cmp(),J=require_coerce(),ae=require_comparator(),U=require_range(),q=require_satisfies(),R=require_to_comparators(),B=require_max_satisfying(),ue=require_min_satisfying(),ce=require_min_version(),K=require_valid(),Q=require_outside(),Y=require_gtr(),me=require_ltr(),Oe=require_intersects(),Me=require_simplify(),Re=require_subset();o.exports={parse:_,valid:y,clean:S,inc:$,diff:E,major:A,minor:T,patch:N,prerelease:O,compare:C,rcompare:L,compareLoose:w,compareBuild:I,sort:D,rsort:F,gt:k,lt:ie,eq:fe,neq:pe,gte:Se,lte:Ee,cmp:ge,coerce:J,Comparator:ae,Range:U,satisfies:q,toComparators:R,maxSatisfying:B,minSatisfying:ue,minVersion:ce,validRange:K,outside:Q,gtr:Y,ltr:me,intersects:Oe,simplifyRange:Me,subset:Re,SemVer:m,re:u.re,src:u.src,tokens:u.t,SEMVER_SPEC_VERSION:h.SEMVER_SPEC_VERSION,RELEASE_TYPES:h.RELEASE_TYPES,compareIdentifiers:p.compareIdentifiers,rcompareIdentifiers:p.rcompareIdentifiers}}),u8$1=Uint8Array,u16$1=Uint16Array,i32$1=Int32Array,fleb$1=new u8$1([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fdeb$1=new u8$1([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]);new u8$1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);var freb$1=function(r,o){for(var u=new u16$1(31),h=0;h<31;++h)u[h]=o+=1<<r[h-1];for(var m=new i32$1(u[30]),h=1;h<30;++h)for(var p=u[h];p<u[h+1];++p)m[p]=p-u[h]<<5|h;return{b:u,r:m}},_a$1=freb$1(fleb$1,2),fl$1=_a$1.b,revfl$1=_a$1.r;fl$1[28]=258,revfl$1[258]=28;for(var _b$1=freb$1(fdeb$1,0),fd$1=_b$1.b,revfd$1=_b$1.r,rev$1=new u16$1(32768),i$3=0;i$3<32768;++i$3){var x$1=(i$3&43690)>>1|(i$3&21845)<<1;x$1=(x$1&52428)>>2|(x$1&13107)<<2,x$1=(x$1&61680)>>4|(x$1&3855)<<4,rev$1[i$3]=((x$1&65280)>>8|(x$1&255)<<8)>>1}for(var hMap$1=function(o,u,h){for(var m=o.length,p=0,_=new u16$1(u);p<m;++p)o[p]&&++_[o[p]-1];var y=new u16$1(u);for(p=1;p<u;++p)y[p]=y[p-1]+_[p-1]<<1;var S;if(h){S=new u16$1(1<<u);var $=15-u;for(p=0;p<m;++p)if(o[p])for(var E=p<<4|o[p],A=u-o[p],T=y[o[p]-1]++<<A,N=T|(1<<A)-1;T<=N;++T)S[rev$1[T]>>$]=E}else for(S=new u16$1(m),p=0;p<m;++p)o[p]&&(S[p]=rev$1[y[o[p]-1]++]>>15-o[p]);return S},flt$1=new u8$1(288),i$3=0;i$3<144;++i$3)flt$1[i$3]=8;for(var i$3=144;i$3<256;++i$3)flt$1[i$3]=9;for(var i$3=256;i$3<280;++i$3)flt$1[i$3]=7;for(var i$3=280;i$3<288;++i$3)flt$1[i$3]=8;for(var fdt$1=new u8$1(32),i$3=0;i$3<32;++i$3)fdt$1[i$3]=5;hMap$1(flt$1,9,0);hMap$1(flt$1,9,1);hMap$1(fdt$1,5,0);hMap$1(fdt$1,5,1);new i32$1([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]);var et$1=new u8$1(0);typeof TextEncoder<"u"&&new TextEncoder;var td$1=typeof TextDecoder<"u"&&new TextDecoder,tds$1=0;try{td$1.decode(et$1,{stream:!0}),tds$1=1}catch{}__toESM(require_semver());const Joi=RootFactory.create({schemaTypeModifiers:[knex,fqdn],shortcutsModifiers:[]}),validator=patch(Joi.extend(bigint).extend(datetime).extend(phone)),TLDS="AAA.AARP.ABB.ABBOTT.ABBVIE.ABC.ABLE.ABOGADO.ABUDHABI.AC.ACADEMY.ACCENTURE.ACCOUNTANT.ACCOUNTANTS.ACO.ACTOR.AD.ADS.ADULT.AE.AEG.AERO.AETNA.AF.AFL.AFRICA.AG.AGAKHAN.AGENCY.AI.AIG.AIRBUS.AIRFORCE.AIRTEL.AKDN.AL.ALIBABA.ALIPAY.ALLFINANZ.ALLSTATE.ALLY.ALSACE.ALSTOM.AM.AMAZON.AMERICANEXPRESS.AMERICANFAMILY.AMEX.AMFAM.AMICA.AMSTERDAM.ANALYTICS.ANDROID.ANQUAN.ANZ.AO.AOL.APARTMENTS.APP.APPLE.AQ.AQUARELLE.AR.ARAB.ARAMCO.ARCHI.ARMY.ARPA.ART.ARTE.AS.ASDA.ASIA.ASSOCIATES.AT.ATHLETA.ATTORNEY.AU.AUCTION.AUDI.AUDIBLE.AUDIO.AUSPOST.AUTHOR.AUTO.AUTOS.AW.AWS.AX.AXA.AZ.AZURE.BA.BABY.BAIDU.BANAMEX.BAND.BANK.BAR.BARCELONA.BARCLAYCARD.BARCLAYS.BAREFOOT.BARGAINS.BASEBALL.BASKETBALL.BAUHAUS.BAYERN.BB.BBC.BBT.BBVA.BCG.BCN.BD.BE.BEATS.BEAUTY.BEER.BERLIN.BEST.BESTBUY.BET.BF.BG.BH.BHARTI.BI.BIBLE.BID.BIKE.BING.BINGO.BIO.BIZ.BJ.BLACK.BLACKFRIDAY.BLOCKBUSTER.BLOG.BLOOMBERG.BLUE.BM.BMS.BMW.BN.BNPPARIBAS.BO.BOATS.BOEHRINGER.BOFA.BOM.BOND.BOO.BOOK.BOOKING.BOSCH.BOSTIK.BOSTON.BOT.BOUTIQUE.BOX.BR.BRADESCO.BRIDGESTONE.BROADWAY.BROKER.BROTHER.BRUSSELS.BS.BT.BUILD.BUILDERS.BUSINESS.BUY.BUZZ.BV.BW.BY.BZ.BZH.CA.CAB.CAFE.CAL.CALL.CALVINKLEIN.CAM.CAMERA.CAMP.CANON.CAPETOWN.CAPITAL.CAPITALONE.CAR.CARAVAN.CARDS.CARE.CAREER.CAREERS.CARS.CASA.CASE.CASH.CASINO.CAT.CATERING.CATHOLIC.CBA.CBN.CBRE.CC.CD.CENTER.CEO.CERN.CF.CFA.CFD.CG.CH.CHANEL.CHANNEL.CHARITY.CHASE.CHAT.CHEAP.CHINTAI.CHRISTMAS.CHROME.CHURCH.CI.CIPRIANI.CIRCLE.CISCO.CITADEL.CITI.CITIC.CITY.CK.CL.CLAIMS.CLEANING.CLICK.CLINIC.CLINIQUE.CLOTHING.CLOUD.CLUB.CLUBMED.CM.CN.CO.COACH.CODES.COFFEE.COLLEGE.COLOGNE.COM.COMMBANK.COMMUNITY.COMPANY.COMPARE.COMPUTER.COMSEC.CONDOS.CONSTRUCTION.CONSULTING.CONTACT.CONTRACTORS.COOKING.COOL.COOP.CORSICA.COUNTRY.COUPON.COUPONS.COURSES.CPA.CR.CREDIT.CREDITCARD.CREDITUNION.CRICKET.CROWN.CRS.CRUISE.CRUISES.CU.CUISINELLA.CV.CW.CX.CY.CYMRU.CYOU.CZ.DAD.DANCE.DATA.DATE.DATING.DATSUN.DAY.DCLK.DDS.DE.DEAL.DEALER.DEALS.DEGREE.DELIVERY.DELL.DELOITTE.DELTA.DEMOCRAT.DENTAL.DENTIST.DESI.DESIGN.DEV.DHL.DIAMONDS.DIET.DIGITAL.DIRECT.DIRECTORY.DISCOUNT.DISCOVER.DISH.DIY.DJ.DK.DM.DNP.DO.DOCS.DOCTOR.DOG.DOMAINS.DOT.DOWNLOAD.DRIVE.DTV.DUBAI.DUPONT.DURBAN.DVAG.DVR.DZ.EARTH.EAT.EC.ECO.EDEKA.EDU.EDUCATION.EE.EG.EMAIL.EMERCK.ENERGY.ENGINEER.ENGINEERING.ENTERPRISES.EPSON.EQUIPMENT.ER.ERICSSON.ERNI.ES.ESQ.ESTATE.ET.EU.EUROVISION.EUS.EVENTS.EXCHANGE.EXPERT.EXPOSED.EXPRESS.EXTRASPACE.FAGE.FAIL.FAIRWINDS.FAITH.FAMILY.FAN.FANS.FARM.FARMERS.FASHION.FAST.FEDEX.FEEDBACK.FERRARI.FERRERO.FI.FIDELITY.FIDO.FILM.FINAL.FINANCE.FINANCIAL.FIRE.FIRESTONE.FIRMDALE.FISH.FISHING.FIT.FITNESS.FJ.FK.FLICKR.FLIGHTS.FLIR.FLORIST.FLOWERS.FLY.FM.FO.FOO.FOOD.FOOTBALL.FORD.FOREX.FORSALE.FORUM.FOUNDATION.FOX.FR.FREE.FRESENIUS.FRL.FROGANS.FRONTIER.FTR.FUJITSU.FUN.FUND.FURNITURE.FUTBOL.FYI.GA.GAL.GALLERY.GALLO.GALLUP.GAME.GAMES.GAP.GARDEN.GAY.GB.GBIZ.GD.GDN.GE.GEA.GENT.GENTING.GEORGE.GF.GG.GGEE.GH.GI.GIFT.GIFTS.GIVES.GIVING.GL.GLASS.GLE.GLOBAL.GLOBO.GM.GMAIL.GMBH.GMO.GMX.GN.GODADDY.GOLD.GOLDPOINT.GOLF.GOO.GOODYEAR.GOOG.GOOGLE.GOP.GOT.GOV.GP.GQ.GR.GRAINGER.GRAPHICS.GRATIS.GREEN.GRIPE.GROCERY.GROUP.GS.GT.GU.GUCCI.GUGE.GUIDE.GUITARS.GURU.GW.GY.HAIR.HAMBURG.HANGOUT.HAUS.HBO.HDFC.HDFCBANK.HEALTH.HEALTHCARE.HELP.HELSINKI.HERE.HERMES.HIPHOP.HISAMITSU.HITACHI.HIV.HK.HKT.HM.HN.HOCKEY.HOLDINGS.HOLIDAY.HOMEDEPOT.HOMEGOODS.HOMES.HOMESENSE.HONDA.HORSE.HOSPITAL.HOST.HOSTING.HOT.HOTELS.HOTMAIL.HOUSE.HOW.HR.HSBC.HT.HU.HUGHES.HYATT.HYUNDAI.IBM.ICBC.ICE.ICU.ID.IE.IEEE.IFM.IKANO.IL.IM.IMAMAT.IMDB.IMMO.IMMOBILIEN.IN.INC.INDUSTRIES.INFINITI.INFO.ING.INK.INSTITUTE.INSURANCE.INSURE.INT.INTERNATIONAL.INTUIT.INVESTMENTS.IO.IPIRANGA.IQ.IR.IRISH.IS.ISMAILI.IST.ISTANBUL.IT.ITAU.ITV.JAGUAR.JAVA.JCB.JE.JEEP.JETZT.JEWELRY.JIO.JLL.JM.JMP.JNJ.JO.JOBS.JOBURG.JOT.JOY.JP.JPMORGAN.JPRS.JUEGOS.JUNIPER.KAUFEN.KDDI.KE.KERRYHOTELS.KERRYPROPERTIES.KFH.KG.KH.KI.KIA.KIDS.KIM.KINDLE.KITCHEN.KIWI.KM.KN.KOELN.KOMATSU.KOSHER.KP.KPMG.KPN.KR.KRD.KRED.KUOKGROUP.KW.KY.KYOTO.KZ.LA.LACAIXA.LAMBORGHINI.LAMER.LAND.LANDROVER.LANXESS.LASALLE.LAT.LATINO.LATROBE.LAW.LAWYER.LB.LC.LDS.LEASE.LECLERC.LEFRAK.LEGAL.LEGO.LEXUS.LGBT.LI.LIDL.LIFE.LIFEINSURANCE.LIFESTYLE.LIGHTING.LIKE.LILLY.LIMITED.LIMO.LINCOLN.LINK.LIVE.LIVING.LK.LLC.LLP.LOAN.LOANS.LOCKER.LOCUS.LOL.LONDON.LOTTE.LOTTO.LOVE.LPL.LPLFINANCIAL.LR.LS.LT.LTD.LTDA.LU.LUNDBECK.LUXE.LUXURY.LV.LY.MA.MADRID.MAIF.MAISON.MAKEUP.MAN.MANAGEMENT.MANGO.MAP.MARKET.MARKETING.MARKETS.MARRIOTT.MARSHALLS.MATTEL.MBA.MC.MCKINSEY.MD.ME.MED.MEDIA.MEET.MELBOURNE.MEME.MEMORIAL.MEN.MENU.MERCKMSD.MG.MH.MIAMI.MICROSOFT.MIL.MINI.MINT.MIT.MITSUBISHI.MK.ML.MLB.MLS.MM.MMA.MN.MO.MOBI.MOBILE.MODA.MOE.MOI.MOM.MONASH.MONEY.MONSTER.MORMON.MORTGAGE.MOSCOW.MOTO.MOTORCYCLES.MOV.MOVIE.MP.MQ.MR.MS.MSD.MT.MTN.MTR.MU.MUSEUM.MUSIC.MV.MW.MX.MY.MZ.NA.NAB.NAGOYA.NAME.NAVY.NBA.NC.NE.NEC.NET.NETBANK.NETFLIX.NETWORK.NEUSTAR.NEW.NEWS.NEXT.NEXTDIRECT.NEXUS.NF.NFL.NG.NGO.NHK.NI.NICO.NIKE.NIKON.NINJA.NISSAN.NISSAY.NL.NO.NOKIA.NORTON.NOW.NOWRUZ.NOWTV.NP.NR.NRA.NRW.NTT.NU.NYC.NZ.OBI.OBSERVER.OFFICE.OKINAWA.OLAYAN.OLAYANGROUP.OLLO.OM.OMEGA.ONE.ONG.ONL.ONLINE.OOO.OPEN.ORACLE.ORANGE.ORG.ORGANIC.ORIGINS.OSAKA.OTSUKA.OTT.OVH.PA.PAGE.PANASONIC.PARIS.PARS.PARTNERS.PARTS.PARTY.PAY.PCCW.PE.PET.PF.PFIZER.PG.PH.PHARMACY.PHD.PHILIPS.PHONE.PHOTO.PHOTOGRAPHY.PHOTOS.PHYSIO.PICS.PICTET.PICTURES.PID.PIN.PING.PINK.PIONEER.PIZZA.PK.PL.PLACE.PLAY.PLAYSTATION.PLUMBING.PLUS.PM.PN.PNC.POHL.POKER.POLITIE.PORN.POST.PR.PRAXI.PRESS.PRIME.PRO.PROD.PRODUCTIONS.PROF.PROGRESSIVE.PROMO.PROPERTIES.PROPERTY.PROTECTION.PRU.PRUDENTIAL.PS.PT.PUB.PW.PWC.PY.QA.QPON.QUEBEC.QUEST.RACING.RADIO.RE.READ.REALESTATE.REALTOR.REALTY.RECIPES.RED.REDUMBRELLA.REHAB.REISE.REISEN.REIT.RELIANCE.REN.RENT.RENTALS.REPAIR.REPORT.REPUBLICAN.REST.RESTAURANT.REVIEW.REVIEWS.REXROTH.RICH.RICHARDLI.RICOH.RIL.RIO.RIP.RO.ROCKS.RODEO.ROGERS.ROOM.RS.RSVP.RU.RUGBY.RUHR.RUN.RW.RWE.RYUKYU.SA.SAARLAND.SAFE.SAFETY.SAKURA.SALE.SALON.SAMSCLUB.SAMSUNG.SANDVIK.SANDVIKCOROMANT.SANOFI.SAP.SARL.SAS.SAVE.SAXO.SB.SBI.SBS.SC.SCB.SCHAEFFLER.SCHMIDT.SCHOLARSHIPS.SCHOOL.SCHULE.SCHWARZ.SCIENCE.SCOT.SD.SE.SEARCH.SEAT.SECURE.SECURITY.SEEK.SELECT.SENER.SERVICES.SEVEN.SEW.SEX.SEXY.SFR.SG.SH.SHANGRILA.SHARP.SHELL.SHIA.SHIKSHA.SHOES.SHOP.SHOPPING.SHOUJI.SHOW.SI.SILK.SINA.SINGLES.SITE.SJ.SK.SKI.SKIN.SKY.SKYPE.SL.SLING.SM.SMART.SMILE.SN.SNCF.SO.SOCCER.SOCIAL.SOFTBANK.SOFTWARE.SOHU.SOLAR.SOLUTIONS.SONG.SONY.SOY.SPA.SPACE.SPORT.SPOT.SR.SRL.SS.ST.STADA.STAPLES.STAR.STATEBANK.STATEFARM.STC.STCGROUP.STOCKHOLM.STORAGE.STORE.STREAM.STUDIO.STUDY.STYLE.SU.SUCKS.SUPPLIES.SUPPLY.SUPPORT.SURF.SURGERY.SUZUKI.SV.SWATCH.SWISS.SX.SY.SYDNEY.SYSTEMS.SZ.TAB.TAIPEI.TALK.TAOBAO.TARGET.TATAMOTORS.TATAR.TATTOO.TAX.TAXI.TC.TCI.TD.TDK.TEAM.TECH.TECHNOLOGY.TEL.TEMASEK.TENNIS.TEVA.TF.TG.TH.THD.THEATER.THEATRE.TIAA.TICKETS.TIENDA.TIPS.TIRES.TIROL.TJ.TJMAXX.TJX.TK.TKMAXX.TL.TM.TMALL.TN.TO.TODAY.TOKYO.TOOLS.TOP.TORAY.TOSHIBA.TOTAL.TOURS.TOWN.TOYOTA.TOYS.TR.TRADE.TRADING.TRAINING.TRAVEL.TRAVELERS.TRAVELERSINSURANCE.TRUST.TRV.TT.TUBE.TUI.TUNES.TUSHU.TV.TVS.TW.TZ.UA.UBANK.UBS.UG.UK.UNICOM.UNIVERSITY.UNO.UOL.UPS.US.UY.UZ.VA.VACATIONS.VANA.VANGUARD.VC.VE.VEGAS.VENTURES.VERISIGN.VERSICHERUNG.VET.VG.VI.VIAJES.VIDEO.VIG.VIKING.VILLAS.VIN.VIP.VIRGIN.VISA.VISION.VIVA.VIVO.VLAANDEREN.VN.VODKA.VOLVO.VOTE.VOTING.VOTO.VOYAGE.VU.WALES.WALMART.WALTER.WANG.WANGGOU.WATCH.WATCHES.WEATHER.WEATHERCHANNEL.WEBCAM.WEBER.WEBSITE.WED.WEDDING.WEIBO.WEIR.WF.WHOSWHO.WIEN.WIKI.WILLIAMHILL.WIN.WINDOWS.WINE.WINNERS.WME.WOLTERSKLUWER.WOODSIDE.WORK.WORKS.WORLD.WOW.WS.WTC.WTF.XBOX.XEROX.XIHUAN.XIN.XN--11B4C3D.XN--1CK2E1B.XN--1QQW23A.XN--2SCRJ9C.XN--30RR7Y.XN--3BST00M.XN--3DS443G.XN--3E0B707E.XN--3HCRJ9C.XN--3PXU8K.XN--42C2D9A.XN--45BR5CYL.XN--45BRJ9C.XN--45Q11C.XN--4DBRK0CE.XN--4GBRIM.XN--54B7FTA0CC.XN--55QW42G.XN--55QX5D.XN--5SU34J936BGSG.XN--5TZM5G.XN--6FRZ82G.XN--6QQ986B3XL.XN--80ADXHKS.XN--80AO21A.XN--80AQECDR1A.XN--80ASEHDB.XN--80ASWG.XN--8Y0A063A.XN--90A3AC.XN--90AE.XN--90AIS.XN--9DBQ2A.XN--9ET52U.XN--9KRT00A.XN--B4W605FERD.XN--BCK1B9A5DRE4C.XN--C1AVG.XN--C2BR7G.XN--CCK2B3B.XN--CCKWCXETD.XN--CG4BKI.XN--CLCHC0EA0B2G2A9GCD.XN--CZR694B.XN--CZRS0T.XN--CZRU2D.XN--D1ACJ3B.XN--D1ALF.XN--E1A4C.XN--ECKVDTC9D.XN--EFVY88H.XN--FCT429K.XN--FHBEI.XN--FIQ228C5HS.XN--FIQ64B.XN--FIQS8S.XN--FIQZ9S.XN--FJQ720A.XN--FLW351E.XN--FPCRJ9C3D.XN--FZC2C9E2C.XN--FZYS8D69UVGM.XN--G2XX48C.XN--GCKR3F0F.XN--GECRJ9C.XN--GK3AT1E.XN--H2BREG3EVE.XN--H2BRJ9C.XN--H2BRJ9C8C.XN--HXT814E.XN--I1B6B1A6A2E.XN--IMR513N.XN--IO0A7I.XN--J1AEF.XN--J1AMH.XN--J6W193G.XN--JLQ480N2RG.XN--JVR189M.XN--KCRX77D1X4A.XN--KPRW13D.XN--KPRY57D.XN--KPUT3I.XN--L1ACC.XN--LGBBAT1AD8J.XN--MGB9AWBF.XN--MGBA3A3EJT.XN--MGBA3A4F16A.XN--MGBA7C0BBN0A.XN--MGBAAM7A8H.XN--MGBAB2BD.XN--MGBAH1A3HJKRD.XN--MGBAI9AZGQP6J.XN--MGBAYH7GPA.XN--MGBBH1A.XN--MGBBH1A71E.XN--MGBC0A9AZCG.XN--MGBCA7DZDO.XN--MGBCPQ6GPA1A.XN--MGBERP4A5D4AR.XN--MGBGU82A.XN--MGBI4ECEXP.XN--MGBPL2FH.XN--MGBT3DHD.XN--MGBTX2B.XN--MGBX4CD0AB.XN--MIX891F.XN--MK1BU44C.XN--MXTQ1M.XN--NGBC5AZD.XN--NGBE9E0A.XN--NGBRX.XN--NODE.XN--NQV7F.XN--NQV7FS00EMA.XN--NYQY26A.XN--O3CW4H.XN--OGBPF8FL.XN--OTU796D.XN--P1ACF.XN--P1AI.XN--PGBS0DH.XN--PSSY2U.XN--Q7CE6A.XN--Q9JYB4C.XN--QCKA1PMC.XN--QXA6A.XN--QXAM.XN--RHQV96G.XN--ROVU88B.XN--RVC1E0AM3E.XN--S9BRJ9C.XN--SES554G.XN--T60B56A.XN--TCKWE.XN--TIQ49XQYJ.XN--UNUP4Y.XN--VERMGENSBERATER-CTB.XN--VERMGENSBERATUNG-PWB.XN--VHQUV.XN--VUQ861B.XN--W4R85EL8FHU5DNRA.XN--W4RS40L.XN--WGBH1C.XN--WGBL6A.XN--XHQ521B.XN--XKC2AL3HYE2A.XN--XKC2DL3A5EE0H.XN--Y9A3AQ.XN--YFRO4I67O.XN--YGBI2AMMX.XN--ZFR164B.XXX.XYZ.YACHTS.YAHOO.YAMAXUN.YANDEX.YE.YODOBASHI.YOGA.YOKOHAMA.YOU.YOUTUBE.YT.YUN.ZA.ZAPPOS.ZARA.ZERO.ZIP.ZM.ZONE.ZUERICH.ZW".split(".");new Set(TLDS.map(r=>r.toLowerCase()));init_esm();__toESM(require_lib$3());var import_lib$1=__toESM(require_lib$2()),import_lib$2=__toESM(require_lib());import_lib$2.ValidationError;import_lib$1.location;const stringSchema=validator.string().allow("").required(),numberSchema=validator.alternatives(validator.number(),validator.object().instance(Number),validator.function().instance(Number)).required(),booleanSchema=validator.boolean().required(),bigintSchema=validator.any().custom((r,o)=>typeof r=="bigint"?r:o.error("any.invalid")).required(),nullSchema=validator.any().valid(null).required(),undefinedSchema=validator.any().custom((r,o)=>typeof r>"u"?r:o.error("any.invalid")),primitiveSchema=validator.alternatives().try(stringSchema,numberSchema,booleanSchema,nullSchema,undefinedSchema),int8ArraySchema=validator.any().custom((r,o)=>r instanceof Int8Array?r:o.error("any.invalid")),uint8ArraySchema=validator.any().custom((r,o)=>r instanceof Uint8Array?r:o.error("any.invalid")),uint8ClampedArraySchema=validator.any().custom((r,o)=>r instanceof Uint8ClampedArray?r:o.error("any.invalid")),int16ArraySchema=validator.any().custom((r,o)=>r instanceof Int16Array?r:o.error("any.invalid")),uint16ArraySchema=validator.any().custom((r,o)=>r instanceof Uint16Array?r:o.error("any.invalid")),int32ArraySchema=validator.any().custom((r,o)=>r instanceof Int32Array?r:o.error("any.invalid")),uint32ArraySchema=validator.any().custom((r,o)=>r instanceof Uint32Array?r:o.error("any.invalid")),float32ArraySchema=validator.any().custom((r,o)=>r instanceof Float32Array?r:o.error("any.invalid")),float64ArraySchema=validator.any().custom((r,o)=>r instanceof Float64Array?r:o.error("any.invalid")),bigInt64ArraySchema=validator.any().custom((r,o)=>r instanceof BigInt64Array||Object.prototype.toString.call(r)==="[object BigInt64Array]"?r:o.error("any.invalid")),bigUint64ArraySchema=validator.any().custom((r,o)=>r instanceof BigUint64Array||Object.prototype.toString.call(r)==="[object BigUint64Array]"?r:o.error("any.invalid")),typedArraySchema=validator.alternatives().try(int8ArraySchema,uint8ArraySchema,uint8ClampedArraySchema,int16ArraySchema,uint16ArraySchema,int32ArraySchema,uint32ArraySchema,float32ArraySchema,float64ArraySchema),bigIntTypedArraySchema=validator.alternatives().try(bigInt64ArraySchema,bigUint64ArraySchema),dateSchema=validator.any().custom((r,o)=>r instanceof Date?r:o.error("any.invalid")),regExpSchema=validator.any().custom((r,o)=>r instanceof RegExp?r:o.error("any.invalid")),arrayBufferSchema=validator.any().custom((r,o)=>r instanceof ArrayBuffer?r:o.error("any.invalid")),dataViewSchema=validator.any().custom((r,o)=>r instanceof DataView?r:o.error("any.invalid")),errorSchema=validator.any().custom((r,o)=>isInstanceOf(r,"Error",Error)?r:o.error("any.invalid")),uniterableObjectSchema=validator.alternatives().try(dateSchema,regExpSchema,arrayBufferSchema,dataViewSchema,errorSchema),phoneObjectSchema=validator.alternatives(validator.custom((r,o)=>r instanceof Phone$1?r:o.error("any.invalid")),validator.object({country:validator.string().min(2).max(2).required(),e164:validator.string().required(),international:validator.string().required(),national:validator.string().required(),phone:validator.string().required(),raw:validator.string().required(),timezone:validator.string().optional(),type:validator.string().required(),valid:validator.boolean().required()})),isObject$1=r=>typeof r=="object"&&r!==null&&!Array.isArray(r),isArray=r=>Array.isArray(r),isLuxonDateTime=r=>r instanceof DateTime$1?!0:typeof r!="object"||r===null||!("isLuxonDateTime"in r)?!1:r.isLuxonDateTime===!0,isLuxonDuration=r=>r instanceof Duration$1?!0:typeof r!="object"||r===null||!("isLuxonDuration"in r)?!1:r.isLuxonDuration===!0,isLuxonInterval=r=>r instanceof Interval$1?!0:typeof r!="object"||r===null||!("isLuxonInterval"in r)?!1:r.isLuxonInterval===!0,isInstanceOf=(r,o,u)=>{var h;return typeof u<"u"&&r instanceof u||typeof u<"u"&&typeof u[Symbol.hasInstance]=="function"&&u[Symbol.hasInstance](r)?!0:typeof r=="object"&&r!==null?((h=r.constructor)==null?void 0:h.name)===o:!1},isMap=r=>isInstanceOf(r,"Map",Map),isSet=r=>isInstanceOf(r,"Set",Set),isNumber=r=>matchesSchema(r,numberSchema),isNegativeZero=r=>isNumber(r)?1/r<0&&Math.abs(r)===0:!1,matchesSchema=(r,o)=>{const{error:u}=o.validate(r,{abortEarly:!0});return!u},isError=r=>matchesSchema(r,errorSchema),isTypedArray=r=>matchesSchema(r,typedArraySchema),isBigIntTypedArray=r=>matchesSchema(r,bigIntTypedArraySchema),isUniterableObject=r=>matchesSchema(r,uniterableObjectSchema),isPrimitive=r=>matchesSchema(r,primitiveSchema),isPhoneObject=r=>matchesSchema(r,phoneObjectSchema),isLuxonSystemZone=r=>isInstanceOf(r,"SystemZone",SystemZone$1),isBigInt=r=>matchesSchema(r,bigintSchema);var u8=Uint8Array,u16=Uint16Array,i32=Int32Array,fleb=new u8([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fdeb=new u8([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(r,o){for(var u=new u16(31),h=0;h<31;++h)u[h]=o+=1<<r[h-1];for(var m=new i32(u[30]),h=1;h<30;++h)for(var p=u[h];p<u[h+1];++p)m[p]=p-u[h]<<5|h;return{b:u,r:m}},_a=freb(fleb,2),fl=_a.b,revfl=_a.r;fl[28]=258,revfl[258]=28;var _b=freb(fdeb,0),fd=_b.b,revfd=_b.r,rev=new u16(32768);for(var i=0;i<32768;++i){var x=(i&43690)>>1|(i&21845)<<1;x=(x&52428)>>2|(x&13107)<<2,x=(x&61680)>>4|(x&3855)<<4,rev[i]=((x&65280)>>8|(x&255)<<8)>>1}var hMap=function(r,o,u){for(var h=r.length,m=0,p=new u16(o);m<h;++m)r[m]&&++p[r[m]-1];var _=new u16(o);for(m=1;m<o;++m)_[m]=_[m-1]+p[m-1]<<1;var y;if(u){y=new u16(1<<o);var S=15-o;for(m=0;m<h;++m)if(r[m])for(var $=m<<4|r[m],E=o-r[m],A=_[r[m]-1]++<<E,T=A|(1<<E)-1;A<=T;++A)y[rev[A]>>S]=$}else for(y=new u16(h),m=0;m<h;++m)r[m]&&(y[m]=rev[_[r[m]-1]++]>>15-r[m]);return y},flt=new u8(288);for(var i=0;i<144;++i)flt[i]=8;for(var i=144;i<256;++i)flt[i]=9;for(var i=256;i<280;++i)flt[i]=7;for(var i=280;i<288;++i)flt[i]=8;var fdt=new u8(32);for(var i=0;i<32;++i)fdt[i]=5;var flm=hMap(flt,9,0),flrm=hMap(flt,9,1),fdm=hMap(fdt,5,0),fdrm=hMap(fdt,5,1),max=function(r){for(var o=r[0],u=1;u<r.length;++u)r[u]>o&&(o=r[u]);return o},bits=function(r,o,u){var h=o/8|0;return(r[h]|r[h+1]<<8)>>(o&7)&u},bits16=function(r,o){var u=o/8|0;return(r[u]|r[u+1]<<8|r[u+2]<<16)>>(o&7)},shft=function(r){return(r+7)/8|0},slc=function(r,o,u){return(o==null||o<0)&&(o=0),(u==null||u>r.length)&&(u=r.length),new u8(r.subarray(o,u))},ec=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],err=function(r,o,u){var h=new Error(o||ec[r]);if(h.code=r,Error.captureStackTrace&&Error.captureStackTrace(h,err),!u)throw h;return h},inflt=function(r,o,u,h){var m=r.length,p=h?h.length:0;if(!m||o.f&&!o.l)return u||new u8(0);var _=!u,y=_||o.i!=2,S=o.i;_&&(u=new u8(m*3));var $=function(Ge){var Ye=u.length;if(Ge>Ye){var Ce=new u8(Math.max(Ye*2,Ge));Ce.set(u),u=Ce}},E=o.f||0,A=o.p||0,T=o.b||0,N=o.l,O=o.d,C=o.m,L=o.n,w=m*8;do{if(!N){E=bits(r,A,1);var I=bits(r,A+1,3);if(A+=3,I)if(I==1)N=flrm,O=fdrm,C=9,L=5;else if(I==2){var ie=bits(r,A,31)+257,fe=bits(r,A+10,15)+4,pe=ie+bits(r,A+5,31)+1;A+=14;for(var Se=new u8(pe),Ee=new u8(19),ge=0;ge<fe;++ge)Ee[clim[ge]]=bits(r,A+ge*3,7);A+=fe*3;for(var J=max(Ee),ae=(1<<J)-1,U=hMap(Ee,J,1),ge=0;ge<pe;){var q=U[bits(r,A,ae)];A+=q&15;var D=q>>4;if(D<16)Se[ge++]=D;else{var R=0,B=0;for(D==16?(B=3+bits(r,A,3),A+=2,R=Se[ge-1]):D==17?(B=3+bits(r,A,7),A+=3):D==18&&(B=11+bits(r,A,127),A+=7);B--;)Se[ge++]=R}}var ue=Se.subarray(0,ie),ce=Se.subarray(ie);C=max(ue),L=max(ce),N=hMap(ue,C,1),O=hMap(ce,L,1)}else err(1);else{var D=shft(A)+4,F=r[D-4]|r[D-3]<<8,k=D+F;if(k>m){S&&err(0);break}y&&$(T+F),u.set(r.subarray(D,k),T),o.b=T+=F,o.p=A=k*8,o.f=E;continue}if(A>w){S&&err(0);break}}y&&$(T+131072);for(var K=(1<<C)-1,Q=(1<<L)-1,Y=A;;Y=A){var R=N[bits16(r,A)&K],me=R>>4;if(A+=R&15,A>w){S&&err(0);break}if(R||err(2),me<256)u[T++]=me;else if(me==256){Y=A,N=null;break}else{var Oe=me-254;if(me>264){var ge=me-257,Me=fleb[ge];Oe=bits(r,A,(1<<Me)-1)+fl[ge],A+=Me}var Re=O[bits16(r,A)&Q],xe=Re>>4;Re||err(3),A+=Re&15;var ce=fd[xe];if(xe>3){var Me=fdeb[xe];ce+=bits16(r,A)&(1<<Me)-1,A+=Me}if(A>w){S&&err(0);break}y&&$(T+131072);var Ae=T+Oe;if(T<ce){var Pe=p-ce,ke=Math.min(ce,Ae);for(Pe+T<0&&err(3);T<ke;++T)u[T]=h[Pe+T]}for(;T<Ae;++T)u[T]=u[T-ce]}}o.l=N,o.p=Y,o.b=T,o.f=E,N&&(E=1,o.m=C,o.d=O,o.n=L)}while(!E);return T!=u.length&&_?slc(u,0,T):u.subarray(0,T)},wbits=function(r,o,u){u<<=o&7;var h=o/8|0;r[h]|=u,r[h+1]|=u>>8},wbits16=function(r,o,u){u<<=o&7;var h=o/8|0;r[h]|=u,r[h+1]|=u>>8,r[h+2]|=u>>16},hTree=function(r,o){for(var u=[],h=0;h<r.length;++h)r[h]&&u.push({s:h,f:r[h]});var m=u.length,p=u.slice();if(!m)return{t:et,l:0};if(m==1){var _=new u8(u[0].s+1);return _[u[0].s]=1,{t:_,l:1}}u.sort(function(k,ie){return k.f-ie.f}),u.push({s:-1,f:25001});var y=u[0],S=u[1],$=0,E=1,A=2;for(u[0]={s:-1,f:y.f+S.f,l:y,r:S};E!=m-1;)y=u[u[$].f<u[A].f?$++:A++],S=u[$!=E&&u[$].f<u[A].f?$++:A++],u[E++]={s:-1,f:y.f+S.f,l:y,r:S};for(var T=p[0].s,h=1;h<m;++h)p[h].s>T&&(T=p[h].s);var N=new u16(T+1),O=ln(u[E-1],N,0);if(O>o){var h=0,C=0,L=O-o,w=1<<L;for(p.sort(function(ie,fe){return N[fe.s]-N[ie.s]||ie.f-fe.f});h<m;++h){var I=p[h].s;if(N[I]>o)C+=w-(1<<O-N[I]),N[I]=o;else break}for(C>>=L;C>0;){var D=p[h].s;N[D]<o?C-=1<<o-N[D]++-1:++h}for(;h>=0&&C;--h){var F=p[h].s;N[F]==o&&(--N[F],++C)}O=o}return{t:new u8(N),l:O}},ln=function(r,o,u){return r.s==-1?Math.max(ln(r.l,o,u+1),ln(r.r,o,u+1)):o[r.s]=u},lc=function(r){for(var o=r.length;o&&!r[--o];);for(var u=new u16(++o),h=0,m=r[0],p=1,_=function(S){u[h++]=S},y=1;y<=o;++y)if(r[y]==m&&y!=o)++p;else{if(!m&&p>2){for(;p>138;p-=138)_(32754);p>2&&(_(p>10?p-11<<5|28690:p-3<<5|12305),p=0)}else if(p>3){for(_(m),--p;p>6;p-=6)_(8304);p>2&&(_(p-3<<5|8208),p=0)}for(;p--;)_(m);p=1,m=r[y]}return{c:u.subarray(0,h),n:o}},clen=function(r,o){for(var u=0,h=0;h<o.length;++h)u+=r[h]*o[h];return u},wfblk=function(r,o,u){var h=u.length,m=shft(o+2);r[m]=h&255,r[m+1]=h>>8,r[m+2]=r[m]^255,r[m+3]=r[m+1]^255;for(var p=0;p<h;++p)r[m+p+4]=u[p];return(m+4+h)*8},wblk=function(r,o,u,h,m,p,_,y,S,$,E){wbits(o,E++,u),++m[256];for(var A=hTree(m,15),T=A.t,N=A.l,O=hTree(p,15),C=O.t,L=O.l,w=lc(T),I=w.c,D=w.n,F=lc(C),k=F.c,ie=F.n,fe=new u16(19),pe=0;pe<I.length;++pe)++fe[I[pe]&31];for(var pe=0;pe<k.length;++pe)++fe[k[pe]&31];for(var Se=hTree(fe,7),Ee=Se.t,ge=Se.l,J=19;J>4&&!Ee[clim[J-1]];--J);var ae=$+5<<3,U=clen(m,flt)+clen(p,fdt)+_,q=clen(m,T)+clen(p,C)+_+14+3*J+clen(fe,Ee)+2*fe[16]+3*fe[17]+7*fe[18];if(S>=0&&ae<=U&&ae<=q)return wfblk(o,E,r.subarray(S,S+$));var R,B,ue,ce;if(wbits(o,E,1+(q<U)),E+=2,q<U){R=hMap(T,N,0),B=T,ue=hMap(C,L,0),ce=C;var K=hMap(Ee,ge,0);wbits(o,E,D-257),wbits(o,E+5,ie-1),wbits(o,E+10,J-4),E+=14;for(var pe=0;pe<J;++pe)wbits(o,E+3*pe,Ee[clim[pe]]);E+=3*J;for(var Q=[I,k],Y=0;Y<2;++Y)for(var me=Q[Y],pe=0;pe<me.length;++pe){var Oe=me[pe]&31;wbits(o,E,K[Oe]),E+=Ee[Oe],Oe>15&&(wbits(o,E,me[pe]>>5&127),E+=me[pe]>>12)}}else R=flm,B=flt,ue=fdm,ce=fdt;for(var pe=0;pe<y;++pe){var Me=h[pe];if(Me>255){var Oe=Me>>18&31;wbits16(o,E,R[Oe+257]),E+=B[Oe+257],Oe>7&&(wbits(o,E,Me>>23&31),E+=fleb[Oe]);var Re=Me&31;wbits16(o,E,ue[Re]),E+=ce[Re],Re>3&&(wbits16(o,E,Me>>5&8191),E+=fdeb[Re])}else wbits16(o,E,R[Me]),E+=B[Me]}return wbits16(o,E,R[256]),E+B[256]},deo=new i32([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),et=new u8(0),dflt=function(r,o,u,h,m,p){var _=p.z||r.length,y=new u8(h+_+5*(1+Math.ceil(_/7e3))+m),S=y.subarray(h,y.length-m),$=p.l,E=(p.r||0)&7;if(o){E&&(S[0]=p.r>>3);for(var A=deo[o-1],T=A>>13,N=A&8191,O=(1<<u)-1,C=p.p||new u16(32768),L=p.h||new u16(O+1),w=Math.ceil(u/3),I=2*w,D=function(Ie){return(r[Ie]^r[Ie+1]<<w^r[Ie+2]<<I)&O},F=new i32(25e3),k=new u16(288),ie=new u16(32),fe=0,pe=0,Se=p.i||0,Ee=0,ge=p.w||0,J=0;Se+2<_;++Se){var ae=D(Se),U=Se&32767,q=L[ae];if(C[U]=q,L[ae]=U,ge<=Se){var R=_-Se;if((fe>7e3||Ee>24576)&&(R>423||!$)){E=wblk(r,S,0,F,k,ie,pe,Ee,J,Se-J,E),Ee=fe=pe=0,J=Se;for(var B=0;B<286;++B)k[B]=0;for(var B=0;B<30;++B)ie[B]=0}var ue=2,ce=0,K=N,Q=U-q&32767;if(R>2&&ae==D(Se-Q))for(var Y=Math.min(T,R)-1,me=Math.min(32767,Se),Oe=Math.min(258,R);Q<=me&&--K&&U!=q;){if(r[Se+ue]==r[Se+ue-Q]){for(var Me=0;Me<Oe&&r[Se+Me]==r[Se+Me-Q];++Me);if(Me>ue){if(ue=Me,ce=Q,Me>Y)break;for(var Re=Math.min(Q,Me-2),xe=0,B=0;B<Re;++B){var Ae=Se-Q+B&32767,Pe=C[Ae],ke=Ae-Pe&32767;ke>xe&&(xe=ke,q=Ae)}}}U=q,q=C[U],Q+=U-q&32767}if(ce){F[Ee++]=268435456|revfl[ue]<<18|revfd[ce];var Ge=revfl[ue]&31,Ye=revfd[ce]&31;pe+=fleb[Ge]+fdeb[Ye],++k[257+Ge],++ie[Ye],ge=Se+ue,++fe}else F[Ee++]=r[Se],++k[r[Se]]}}for(Se=Math.max(Se,ge);Se<_;++Se)F[Ee++]=r[Se],++k[r[Se]];E=wblk(r,S,$,F,k,ie,pe,Ee,J,Se-J,E),$||(p.r=E&7|S[E/8|0]<<3,E-=7,p.h=L,p.p=C,p.i=Se,p.w=ge)}else{for(var Se=p.w||0;Se<_+$;Se+=65535){var Ce=Se+65535;Ce>=_&&(S[E/8|0]=$,Ce=_),E=wfblk(S,E+1,r.subarray(Se,Ce))}p.i=_}return slc(y,0,h+shft(E)+m)},adler=function(){var r=1,o=0;return{p:function(u){for(var h=r,m=o,p=u.length|0,_=0;_!=p;){for(var y=Math.min(_+2655,p);_<y;++_)m+=h+=u[_];h=(h&65535)+15*(h>>16),m=(m&65535)+15*(m>>16)}r=h,o=m},d:function(){return r%=65521,o%=65521,(r&255)<<24|(r&65280)<<8|(o&255)<<8|o>>8}}},dopt=function(r,o,u,h,m){if(!m&&(m={l:1},o.dictionary)){var p=o.dictionary.subarray(-32768),_=new u8(p.length+r.length);_.set(p),_.set(r,p.length),r=_,m.w=p.length}return dflt(r,o.level==null?6:o.level,o.mem==null?m.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+o.mem,u,h,m)},wbytes=function(r,o,u){for(;u;++o)r[o]=u,u>>>=8},zlh=function(r,o){var u=o.level,h=u==0?0:u<6?1:u==9?3:2;if(r[0]=120,r[1]=h<<6|(o.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,o.dictionary){var m=adler();m.p(o.dictionary),wbytes(r,2,m.d())}},zls=function(r,o){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&err(6,"invalid zlib data"),(r[1]>>5&1)==+!o&&err(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function zlibSync(r,o){o||(o={});var u=adler();u.p(r);var h=dopt(r,o,o.dictionary?6:2,4);return zlh(h,o),wbytes(h,h.length-4,u.d()),h}function unzlibSync(r,o){return inflt(r.subarray(zls(r,o),-4),{i:2},o,o)}var te=typeof TextEncoder<"u"&&new TextEncoder,td=typeof TextDecoder<"u"&&new TextDecoder,tds=0;try{td.decode(et,{stream:!0}),tds=1}catch(r){}var dutf8=function(r){for(var o="",u=0;;){var h=r[u++],m=(h>127)+(h>223)+(h>239);if(u+m>r.length)return{s:o,r:slc(r,u-1)};m?m==3?(h=((h&15)<<18|(r[u++]&63)<<12|(r[u++]&63)<<6|r[u++]&63)-65536,o+=String.fromCharCode(55296|h>>10,56320|h&1023)):m&1?o+=String.fromCharCode((h&31)<<6|r[u++]&63):o+=String.fromCharCode((h&15)<<12|(r[u++]&63)<<6|r[u++]&63):o+=String.fromCharCode(h)}};function strToU8(r,o){if(o){for(var u=new u8(r.length),h=0;h<r.length;++h)u[h]=r.charCodeAt(h);return u}if(te)return te.encode(r);for(var m=r.length,p=new u8(r.length+(r.length>>1)),_=0,y=function(E){p[_++]=E},h=0;h<m;++h){if(_+5>p.length){var S=new u8(_+8+(m-h<<1));S.set(p),p=S}var $=r.charCodeAt(h);$<128||o?y($):$<2048?(y(192|$>>6),y(128|$&63)):$>55295&&$<57344?($=65536+($&1047552)|r.charCodeAt(++h)&1023,y(240|$>>18),y(128|$>>12&63),y(128|$>>6&63),y(128|$&63)):(y(224|$>>12),y(128|$>>6&63),y(128|$&63))}return slc(p,0,_)}function strFromU8(r,o){if(o){for(var u="",h=0;h<r.length;h+=16384)u+=String.fromCharCode.apply(null,r.subarray(h,h+16384));return u}else{if(td)return td.decode(r);var m=dutf8(r),p=m.s,u=m.r;return u.length&&err(8),p}}const utoa=r=>{const o=strToU8(r),u=zlibSync(o,{level:9}),h=strFromU8(u,!0);return btoa(h)},atou=r=>{const o=atob(r);if(o.startsWith("xÚ")){const u=strToU8(o,!0),h=unzlibSync(u);return strFromU8(h)}return decodeURIComponent(escape(o))};var Wt,dr,Tr,Vt,cr,Ar,Nr,hr,jt,Gr,Ur,Hr,Wr;const Cr=class Cr{constructor(o,u){kt(this,jt);kt(this,Wt);kt(this,dr);kt(this,Tr,"");kt(this,Vt);kt(this,cr,"");kt(this,Ar,!1);kt(this,Nr,!1);kt(this,hr,!1);Bt(this,Wt,new Map),Bt(this,dr,[]),Bt(this,Vt,""),u&&isObject$1(u)&&Object.entries(u).forEach(([m,p])=>{Lt(this,Wt).set(m,p)});const h=o.trim();fr(this,jt,Gr).call(this,h),fr(this,jt,Hr).call(this,h)}static canSerialize(o){if(typeof o!="function")return!1;const u=o.toString();return!(u.includes("[native code]")||u.startsWith("function () { [native code] }"))}static dehydrate(o,u){if(!Cr.canSerialize(o))throw new TypeError("Function cannot be serialized");const m={_encodedType:"function",_encodedValueType:"string",_encodedValue:o.toString()};return u&&(m._namedBindings=u),m}static rehydrate(o,u){var _;let h,m=u;if(typeof o=="string")h=o;else if(isObject$1(o)&&o._encodedType==="function"&&o._encodedValueType==="string"&&typeof o._encodedValue=="string")h=o._encodedValue,m=o._namedBindings||m;else throw new TypeError("Invalid input for function rehydration");const p=new Cr(h,m);return fr(_=p,jt,Wr).call(_)}};Wt=new WeakMap,dr=new WeakMap,Tr=new WeakMap,Vt=new WeakMap,cr=new WeakMap,Ar=new WeakMap,Nr=new WeakMap,hr=new WeakMap,jt=new WeakSet,Gr=function(o){const u=[/^\s*(?:async\s+)?\(([^)]*)\)\s*=>/,/^\s*(?:async\s+)?([a-zA-Z_$][a-zA-Z0-9_$]*)\s*=>/,/^\s*(?:async\s+)?function\s*(?:\*\s*)?(?:[a-zA-Z_$][a-zA-Z0-9_$]*)?\s*\(([^)]*)\)/,/^\s*(?:async\s+)?(?:\*\s*)?([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(([^)]*)\)\s*\{/];let h="";for(const $ of u){const E=o.match($);if(E){h=E[1]||E[2]||"";break}}if(Bt(this,Tr,h),!h||!h.trim())return;const m=[];let p="",_=0,y=!1,S="";for(let $=0;$<h.length;$++){const E=h[$],A=$>0?h[$-1]:"";if((E==='"'||E==="'"||E==="`")&&A!=="\\"&&(y?E===S&&(y=!1):(y=!0,S=E)),!y&&(E==="{"||E==="["||E==="("?_++:(E==="}"||E==="]"||E===")")&&_--,E===","&&_===0)){const T=fr(this,jt,Ur).call(this,p.trim());T&&m.push(T),p="";continue}p+=E}if(p.trim()){const $=fr(this,jt,Ur).call(this,p.trim());$&&m.push($)}Lt(this,dr).push(...m)},Ur=function(o){if(!o)return"";if(o=o.trim(),o.startsWith("..."))return o.slice(3).trim().split(/[\s=]/)[0];if(o.startsWith("{")||o.startsWith("["))return o.split(/[\s=:]/)[0];const u=o.match(/^([a-zA-Z_$][a-zA-Z0-9_$]*)/);return u?u[1]:""},Hr=function(o){Bt(this,Nr,/^\s*async\s+/.test(o));const u=o.match(/^\s*(async\s+)?(?:\([^)]*\)|[a-zA-Z_$][a-zA-Z0-9_$]*)\s*=>\s*(.+)$/s);if(u&&!u[2].trimStart().startsWith("{")){Bt(this,Ar,!0),Bt(this,Vt,u[2].trim());return}const h=o.match(/^\s*(async\s+)?(?:\([^)]*\)|[a-zA-Z_$][a-zA-Z0-9_$]*)\s*=>\s*\{([\s\S]*)\}\s*$/);if(h){Bt(this,Vt,h[2].trim());return}const m=o.match(/^\s*(async\s+)?function\s*(\*\s*)?([a-zA-Z_$][a-zA-Z0-9_$]*)?\s*\([^)]*\)\s*\{([\s\S]*)\}\s*$/);if(m){Bt(this,hr,!!m[2]),Bt(this,cr,m[3]||""),Bt(this,Vt,m[4].trim());return}const p=o.match(/^\s*(async\s+)?(\*\s*)?([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\([^)]*\)\s*\{([\s\S]*)\}\s*$/);if(p){Bt(this,hr,!!p[2]),Bt(this,cr,p[3]),Bt(this,Vt,p[4].trim());return}const _=o.indexOf("{"),y=o.lastIndexOf("}");if(_!==-1&&y!==-1&&y>_){Bt(this,Vt,o.substring(_+1,y));return}},Wr=function(){const o=Lt(this,Ar)?`return ${Lt(this,Vt)}`:Lt(this,Vt),u=Array.from(Lt(this,Wt).keys()),h=Array.from(Lt(this,Wt).values()),m=Lt(this,Tr);let p="";const _=Lt(this,cr)?` ${Lt(this,cr)}`:"";if(Lt(this,Nr)?p=Lt(this,hr)?`async function*${_}(${m}) { ${o} }`:`async function${_}(${m}) { ${o} }`:p=Lt(this,hr)?`function*${_}(${m}) { ${o} }`:`function${_}(${m}) { ${o} }`,h.length>0){const S=new Set(u.filter(C=>Lt(this,dr).includes(C))),$=u.filter(C=>!S.has(C)),E=$.join(", "),A=$.map(C=>Lt(this,Wt).get(C)),T=$.length>0?`return function(${E}) { return ${p}; }`:`return ${p}`,N=new Function(T)(),O=$.length>0?N(...A):N;if(S.size>0){let C=function(...w){const I=[];let D=0;for(const F of L)F.isBound&&F.boundIndex!==void 0?I.push(h[F.boundIndex]):I.push(w[D++]);return O.call(this,...I)};const L=[];for(const w of Lt(this,dr))if(S.has(w)){const I=u.indexOf(w);L.push({name:w,isBound:!0,boundIndex:I})}else L.push({name:w,isBound:!1});return C}return O}return new Function(`return ${p}`)()};let FunctionSerializer=Cr;const VOID=-1,PRIMITIVE=0,ARRAY=1,OBJECT=2,DATE=3,REGEXP=4,MAP=5,SET=6,ERROR=7,BIGINT=8,env=typeof self=="object"?self:globalThis,deserializer=(r,o)=>{const u=(m,p)=>(r.set(p,m),m),h=m=>{if(r.has(m))return r.get(m);const[p,_]=o[m];switch(p){case PRIMITIVE:case VOID:return u(_,m);case ARRAY:{const y=u([],m);for(const S of _)y.push(h(S));return y}case OBJECT:{const y=u({},m);for(const[S,$]of _)y[h(S)]=h($);return y}case DATE:return u(new Date(_),m);case REGEXP:{const{source:y,flags:S}=_;return u(new RegExp(y,S),m)}case MAP:{const y=u(new Map,m);for(const[S,$]of _)y.set(h(S),h($));return y}case SET:{const y=u(new Set,m);for(const S of _)y.add(h(S));return y}case ERROR:{const{name:y,message:S}=_;return u(new env[y](S),m)}case BIGINT:return u(BigInt(_),m);case"BigInt":return u(Object(BigInt(_)),m);case"ArrayBuffer":return u(new Uint8Array(_).buffer,_);case"DataView":{const{buffer:y}=new Uint8Array(_);return u(new DataView(y),_)}}return u(new env[p](_),m)};return h},deserialize=r=>deserializer(new Map,r)(0),EMPTY="",{toString}={},{keys}=Object,typeOf=r=>{const o=typeof r;if(o!=="object"||!r)return[PRIMITIVE,o];const u=toString.call(r).slice(8,-1);switch(u){case"Array":return[ARRAY,EMPTY];case"Object":return[OBJECT,EMPTY];case"Date":return[DATE,EMPTY];case"RegExp":return[REGEXP,EMPTY];case"Map":return[MAP,EMPTY];case"Set":return[SET,EMPTY];case"DataView":return[ARRAY,u]}return u.includes("Array")?[ARRAY,u]:u.includes("Error")?[ERROR,u]:[OBJECT,u]},shouldSkip=([r,o])=>r===PRIMITIVE&&(o==="function"||o==="symbol"),serializer=(r,o,u,h)=>{const m=(_,y)=>{const S=h.push(_)-1;return u.set(y,S),S},p=_=>{if(u.has(_))return u.get(_);let[y,S]=typeOf(_);switch(y){case PRIMITIVE:{let E=_;switch(S){case"bigint":y=BIGINT,E=_.toString();break;case"function":case"symbol":if(r)throw new TypeError("unable to serialize "+S);E=null;break;case"undefined":return m([VOID],_)}return m([y,E],_)}case ARRAY:{if(S){let T=_;return S==="DataView"?T=new Uint8Array(_.buffer):S==="ArrayBuffer"&&(T=new Uint8Array(_)),m([S,[...T]],_)}const E=[],A=m([y,E],_);for(const T of _)E.push(p(T));return A}case OBJECT:{if(S)switch(S){case"BigInt":return m([S,_.toString()],_);case"Boolean":case"Number":case"String":return m([S,_.valueOf()],_)}if(o&&"toJSON"in _)return p(_.toJSON());const E=[],A=m([y,E],_);for(const T of keys(_))(r||!shouldSkip(typeOf(_[T])))&&E.push([p(T),p(_[T])]);return A}case DATE:return m([y,_.toISOString()],_);case REGEXP:{const{source:E,flags:A}=_;return m([y,{source:E,flags:A}],_)}case MAP:{const E=[],A=m([y,E],_);for(const[T,N]of _)(r||!(shouldSkip(typeOf(T))||shouldSkip(typeOf(N))))&&E.push([p(T),p(N)]);return A}case SET:{const E=[],A=m([y,E],_);for(const T of _)(r||!shouldSkip(typeOf(T)))&&E.push(p(T));return A}}const{message:$}=_;return m([y,{name:S,message:$}],_)};return p},serialize=(r,{json:o,lossy:u}={})=>{const h=[];return serializer(!(o||u),!!o,new Map,h)(r),h},toStructuredData=(r,o=new WeakSet)=>{switch(!0){case isNegativeZero(r):return{_t:"js:negativeZero",_s:""};case isBigInt(r):return{_t:"js:bigint",_s:r.toString()};case isError(r):case isUniterableObject(r):case isPrimitive(r):try{return{_t:"js:native",_s:serialize(r,{lossy:!0,json:!0})}}catch(u){throw u instanceof exceptions.BaseException?u:new exceptions.E_ENCODING_FAILED(r,u)}case isBigIntTypedArray(r):try{return{_t:"js:bigintTypedArray",_s:toStructuredData(serialize(r,{lossy:!0,json:!0}),o)}}catch(u){throw u instanceof exceptions.BaseException?u:new exceptions.E_ENCODING_FAILED(r,u)}case isTypedArray(r):try{return{_t:"js:native",_s:serialize(r,{lossy:!0,json:!0})}}catch(u){throw u instanceof exceptions.BaseException?u:new exceptions.E_ENCODING_FAILED(r,u)}case isPhoneObject(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;return o.add(r),{_t:"@nhtio/phone-object:Phone",_s:toStructuredData(r instanceof Phone$1?r.toJSON():r,o)}}case isLuxonDateTime(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;o.add(r);const u=r instanceof DateTime$1?r:DateTime$1.fromObject(r.c,{zone:r.zone}).setLocale(r.loc.locale);return{_t:"luxon:DateTime",_s:toStructuredData({v:u.toRFC2822(),z:u.zoneName,l:u.locale,c:u.outputCalendar,n:u.numberingSystem},o)}}case isLuxonDuration(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;return o.add(r),{_t:"luxon:Duration",_s:toStructuredData(r instanceof Duration$1?r.toObject():r,o)}}case isLuxonInterval(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;o.add(r);const u=r.start?r.start.toISO({extendedZone:!0}):null,h=r.end?r.end.toISO({extendedZone:!0}):null;if(!u||!h)throw new exceptions.E_UNENCODABLE_VALUE(r);try{return{_t:"luxon:Interval",_s:serialize({start:u,end:h},{lossy:!0,json:!0})}}catch(m){throw m instanceof exceptions.BaseException?m:new exceptions.E_UNENCODABLE_VALUE(r)}}case isLuxonSystemZone(r):try{return{_t:"luxon:SystemZone",_s:serialize({name:r.name},{lossy:!0,json:!0})}}catch(u){throw u instanceof exceptions.BaseException?u:new exceptions.E_ENCODING_FAILED(r,u)}case isMap(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;return o.add(r),{_t:"js:Map",_s:Array.from(r.entries()).map(([u,h])=>[toStructuredData(u,o),toStructuredData(h,o)])}}case isSet(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;return o.add(r),{_t:"js:Set",_s:Array.from(r).map(u=>toStructuredData(u,o))}}case isArray(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;return o.add(r),{_t:"js:Array",_s:btoa(JSON.stringify(r.map(u=>toStructuredData(u,o))))}}case isObject$1(r):{if(o.has(r))throw new exceptions.E_CIRCULAR_REFERENCE;o.add(r);const u={};Object.entries(r).forEach(([h,m])=>{u[h.toString()]=toStructuredData(m,o)});try{return{_t:"js:Object",_s:utoa(JSON.stringify(u))}}catch(h){throw new exceptions.E_ENCODING_FAILED(r,h)}}case FunctionSerializer.canSerialize(r):{const u=FunctionSerializer.dehydrate(r);return{_t:"fns:d",_s:serialize(u,{lossy:!0,json:!0})}}default:throw new exceptions.E_UNENCODABLE_VALUE(r)}},fromStructuredData=r=>{switch(r._t){case"js:Object":{const o={},u=JSON.parse(atou(r._s));return Object.entries(u).forEach(([h,m])=>{o[h]=fromStructuredData(m)}),o}case"js:Array":return JSON.parse(atou(r._s)).map(u=>fromStructuredData(u));case"js:Map":{const o=new Map;return r._s.forEach(([u,h])=>{o.set(fromStructuredData(u),fromStructuredData(h))}),o}case"js:Set":{const o=new Set;return r._s.forEach(u=>{o.add(fromStructuredData(u))}),o}case"js:negativeZero":return-0;case"js:bigint":return BigInt(r._s);case"js:bigintTypedArray":{const o=fromStructuredData(r._s);return deserialize(o)}case"js:native":return deserialize(r._s);case"@nhtio/phone-object:Phone":{const o=fromStructuredData(r._s);return new Phone$1(o.phone,o.country)}case"luxon:DateTime":{const o=fromStructuredData(r._s);return DateTime$1.fromRFC2822(o.v,{zone:o.z,locale:o.l,outputCalendar:o.c,numberingSystem:o.n})}case"luxon:Duration":{const o=fromStructuredData(r._s);return Duration$1.fromObject(o)}case"luxon:Interval":{const o=deserialize(r._s);return Interval$1.fromDateTimes(DateTime$1.fromISO(o.start,{setZone:!0}),DateTime$1.fromISO(o.end,{setZone:!0}))}case"luxon:SystemZone":{const o=deserialize(r._s);return Info$1.normalizeZone(o.name)}case"fns:d":try{const o=deserialize(r._s);return FunctionSerializer.rehydrate(o)}catch(o){const u=new exceptions.E_UNDECODABLE_VALUE(r._t);throw o instanceof Error&&(u.cause=o),u}default:throw new exceptions.E_UNDECODABLE_VALUE(r._t)}};/*! (c) Andrea Giammarchi - ISC */const{parse:$parse,stringify:$stringify}=JSON,options={json:!0,lossy:!0},parse=r=>deserialize($parse(r)),stringify=r=>$stringify(serialize(r,options)),version="1.20251201.0",encode=r=>{const o=toStructuredData(r),u=serialize(o,{lossy:!0,json:!0}),h=stringify({version:"1.20251201.0",serialized:u});return utoa(h)},decode=r=>{try{const o=atou(r),u=parse(o);if(!isObject$1(u)||!("version"in u)||typeof u.version!="string"||!("serialized"in u))throw new exceptions.E_NOT_AN_ENCODED_VALUE(r);const{version:h,serialized:m}=u;if(semver.valid("1.20251201.0")){if(!semver.valid(semver.coerce(h)))throw new exceptions.E_INVALID_VERSION(h);if(semver.gt(semver.coerce(h),"1.20251201.0"))throw new exceptions.E_INCOMPATIBLE_VERSION(h)}const p=deserialize(m);return fromStructuredData(p)}catch(o){if(o instanceof exceptions.BaseException)throw o;const u=new exceptions.E_NOT_AN_ENCODED_VALUE(r);throw u.cause=o instanceof Error?o:void 0,u}};exports.decode=decode;exports.encode=encode;exports.version=version;
|
|
207
207
|
//# sourceMappingURL=index.cjs.map
|