@bitrix24/b24jssdk
Version:
Bitrix24 REST API JavaScript SDK
8 lines • 406 kB
JavaScript
var Oy=Object.defineProperty;var a=(R,W)=>Oy(R,"name",{value:W,configurable:!0});/**
* @package @bitrix24/b24jssdk
* @version 1.0.1
* @copyright (c) 2026 Bitrix24
* @license MIT
* @see https://github.com/bitrix24/b24jssdk
* @see https://bitrix24.github.io/b24jssdk/
*/(function(R,W){typeof exports=="object"&&typeof module<"u"?W(exports):typeof define=="function"&&define.amd?define(["exports"],W):(R=typeof globalThis<"u"?globalThis:R||self,W(R.B24Js={}))})(this,(function(R){"use strict";var W=(r=>(r[r.DEBUG=0]="DEBUG",r[r.INFO=1]="INFO",r[r.NOTICE=2]="NOTICE",r[r.WARNING=3]="WARNING",r[r.ERROR=4]="ERROR",r[r.CRITICAL=5]="CRITICAL",r[r.ALERT=6]="ALERT",r[r.EMERGENCY=7]="EMERGENCY",r))(W||{});class vt extends Error{static{a(this,"LuxonError")}}class Ac extends vt{static{a(this,"InvalidDateTimeError")}constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Rc extends vt{static{a(this,"InvalidIntervalError")}constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Cc extends vt{static{a(this,"InvalidDurationError")}constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Lt extends vt{static{a(this,"ConflictingSpecificationError")}}class Ln extends vt{static{a(this,"InvalidUnitError")}constructor(e){super(`Invalid unit ${e}`)}}class Ie extends vt{static{a(this,"InvalidArgumentError")}}class pt extends vt{static{a(this,"ZoneIsAbstractError")}constructor(){super("Zone is an abstract class")}}const D="numeric",Ge="short",je="long",wr={year:D,month:D,day:D},Pn={year:D,month:Ge,day:D},Nc={year:D,month:Ge,day:D,weekday:Ge},Fn={year:D,month:je,day:D},xn={year:D,month:je,day:D,weekday:je},$n={hour:D,minute:D},Bn={hour:D,minute:D,second:D},jn={hour:D,minute:D,second:D,timeZoneName:Ge},Un={hour:D,minute:D,second:D,timeZoneName:je},Vn={hour:D,minute:D,hourCycle:"h23"},qn={hour:D,minute:D,second:D,hourCycle:"h23"},Wn={hour:D,minute:D,second:D,hourCycle:"h23",timeZoneName:Ge},Hn={hour:D,minute:D,second:D,hourCycle:"h23",timeZoneName:je},zn={year:D,month:D,day:D,hour:D,minute:D},Jn={year:D,month:D,day:D,hour:D,minute:D,second:D},Gn={year:D,month:Ge,day:D,hour:D,minute:D},Yn={year:D,month:Ge,day:D,hour:D,minute:D,second:D},Dc={year:D,month:Ge,day:D,weekday:Ge,hour:D,minute:D},Zn={year:D,month:je,day:D,hour:D,minute:D,timeZoneName:Ge},Kn={year:D,month:je,day:D,hour:D,minute:D,second:D,timeZoneName:Ge},Xn={year:D,month:je,day:D,weekday:je,hour:D,minute:D,timeZoneName:je},Qn={year:D,month:je,day:D,weekday:je,hour:D,minute:D,second:D,timeZoneName:je};class Zt{static{a(this,"Zone")}get type(){throw new pt}get name(){throw new pt}get ianaName(){return this.name}get isUniversal(){throw new pt}offsetName(e,t){throw new pt}formatOffset(e,t){throw new pt}offset(e){throw new pt}equals(e){throw new pt}get isValid(){throw new pt}}let hs=null;class Sr extends Zt{static{a(this,"SystemZone")}static get instance(){return hs===null&&(hs=new Sr),hs}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:s}){return ki(e,t,s)}formatOffset(e,t){return er(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const ds=new Map;function Mc(r){let e=ds.get(r);return e===void 0&&(e=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"}),ds.set(r,e)),e}a(Mc,"makeDTF");const Lc={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Pc(r,e){const t=r.format(e).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,n,i,c,o,u,d,l]=s;return[c,n,i,o,u,d,l]}a(Pc,"hackyOffset");function Fc(r,e){const t=r.formatToParts(e),s=[];for(let n=0;n<t.length;n++){const{type:i,value:c}=t[n],o=Lc[i];i==="era"?s[o]=c:J(o)||(s[o]=parseInt(c,10))}return s}a(Fc,"partsOffset");const fs=new Map;class at extends Zt{static{a(this,"IANAZone")}static create(e){let t=fs.get(e);return t===void 0&&fs.set(e,t=new at(e)),t}static resetCache(){fs.clear(),ds.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=at.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:s}){return ki(e,t,s,this.name)}formatOffset(e,t){return er(this.offset(e),t)}offset(e){if(!this.valid)return NaN;const t=new Date(e);if(isNaN(t))return NaN;const s=Mc(this.name);let[n,i,c,o,u,d,l]=s.formatToParts?Fc(s,t):Pc(s,t);o==="BC"&&(n=-Math.abs(n)+1);const f=Tr({year:n,month:i,day:c,hour:u===24?0:u,minute:d,second:l,millisecond:0});let p=+t;const h=p%1e3;return p-=h>=0?h:1e3+h,(f-p)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let ei={};function xc(r,e={}){const t=JSON.stringify([r,e]);let s=ei[t];return s||(s=new Intl.ListFormat(r,e),ei[t]=s),s}a(xc,"getCachedLF");const ps=new Map;function gs(r,e={}){const t=JSON.stringify([r,e]);let s=ps.get(t);return s===void 0&&(s=new Intl.DateTimeFormat(r,e),ps.set(t,s)),s}a(gs,"getCachedDTF");const ms=new Map;function $c(r,e={}){const t=JSON.stringify([r,e]);let s=ms.get(t);return s===void 0&&(s=new Intl.NumberFormat(r,e),ms.set(t,s)),s}a($c,"getCachedINF");const ys=new Map;function Bc(r,e={}){const{base:t,...s}=e,n=JSON.stringify([r,s]);let i=ys.get(n);return i===void 0&&(i=new Intl.RelativeTimeFormat(r,e),ys.set(n,i)),i}a(Bc,"getCachedRTF");let Kt=null;function jc(){return Kt||(Kt=new Intl.DateTimeFormat().resolvedOptions().locale,Kt)}a(jc,"systemLocale");const bs=new Map;function ti(r){let e=bs.get(r);return e===void 0&&(e=new Intl.DateTimeFormat(r).resolvedOptions(),bs.set(r,e)),e}a(ti,"getCachedIntResolvedOptions");const _s=new Map;function Uc(r){let e=_s.get(r);if(!e){const t=new Intl.Locale(r);e="getWeekInfo"in t?t.getWeekInfo():t.weekInfo,"minimalDays"in e||(e={...ri,...e}),_s.set(r,e)}return e}a(Uc,"getCachedWeekInfo");function Vc(r){const e=r.indexOf("-x-");e!==-1&&(r=r.substring(0,e));const t=r.indexOf("-u-");if(t===-1)return[r];{let s,n;try{s=gs(r).resolvedOptions(),n=r}catch{const u=r.substring(0,t);s=gs(u).resolvedOptions(),n=u}const{numberingSystem:i,calendar:c}=s;return[n,i,c]}}a(Vc,"parseLocaleString");function qc(r,e,t){return(t||e)&&(r.includes("-u-")||(r+="-u"),t&&(r+=`-ca-${t}`),e&&(r+=`-nu-${e}`)),r}a(qc,"intlConfigString");function Wc(r){const e=[];for(let t=1;t<=12;t++){const s=V.utc(2009,t,1);e.push(r(s))}return e}a(Wc,"mapMonths");function Hc(r){const e=[];for(let t=1;t<=7;t++){const s=V.utc(2016,11,13+t);e.push(r(s))}return e}a(Hc,"mapWeekdays");function vr(r,e,t,s){const n=r.listingMode();return n==="error"?null:n==="en"?t(e):s(e)}a(vr,"listStuff");function zc(r){return r.numberingSystem&&r.numberingSystem!=="latn"?!1:r.numberingSystem==="latn"||!r.locale||r.locale.startsWith("en")||ti(r.locale).numberingSystem==="latn"}a(zc,"supportsFastNumbers");class Jc{static{a(this,"PolyNumberFormatter")}constructor(e,t,s){this.padTo=s.padTo||0,this.floor=s.floor||!1;const{padTo:n,floor:i,...c}=s;if(!t||Object.keys(c).length>0){const o={useGrouping:!1,...s};s.padTo>0&&(o.minimumIntegerDigits=s.padTo),this.inf=$c(e,o)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):As(e,3);return _e(t,this.padTo)}}}class Gc{static{a(this,"PolyDateFormatter")}constructor(e,t,s){this.opts=s,this.originalZone=void 0;let n;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const c=-1*(e.offset/60),o=c>=0?`Etc/GMT+${c}`:`Etc/GMT${c}`;e.offset!==0&&at.create(o).valid?(n=o,this.dt=e):(n="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||n,this.dtf=gs(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(t=>{if(t.type==="timeZoneName"){const s=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:s}}else return t}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Yc{static{a(this,"PolyRelFormatter")}constructor(e,t,s){this.opts={style:"long",...s},!t&&Si()&&(this.rtf=Bc(e,s))}format(e,t){return this.rtf?this.rtf.format(e,t):yl(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const ri={firstDay:1,minimalDays:4,weekend:[6,7]};class se{static{a(this,"Locale")}static fromOpts(e){return se.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,s,n,i=!1){const c=e||fe.defaultLocale,o=c||(i?"en-US":jc()),u=t||fe.defaultNumberingSystem,d=s||fe.defaultOutputCalendar,l=Ts(n)||fe.defaultWeekSettings;return new se(o,u,d,l,c)}static resetCache(){Kt=null,ps.clear(),ms.clear(),ys.clear(),bs.clear(),_s.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:s,weekSettings:n}={}){return se.create(e,t,s,n)}constructor(e,t,s,n,i){const[c,o,u]=Vc(e);this.locale=c,this.numberingSystem=t||o||null,this.outputCalendar=s||u||null,this.weekSettings=n,this.intl=qc(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=zc(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:se.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Ts(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return vr(this,e,Ai,()=>{const s=this.intl==="ja"||this.intl.startsWith("ja-");t&=!s;const n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";if(!this.monthsCache[i][e]){const c=s?o=>this.dtFormatter(o,n).format():o=>this.extract(o,n,"month");this.monthsCache[i][e]=Wc(c)}return this.monthsCache[i][e]})}weekdays(e,t=!1){return vr(this,e,Ni,()=>{const s=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";return this.weekdaysCache[n][e]||(this.weekdaysCache[n][e]=Hc(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[n][e]})}meridiems(){return vr(this,void 0,()=>Di,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[V.utc(2016,11,13,9),V.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return vr(this,e,Mi,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[V.utc(-40,1,1),V.utc(2017,1,1)].map(s=>this.extract(s,t,"era"))),this.eraCache[e]})}extract(e,t,s){const n=this.dtFormatter(e,t),i=n.formatToParts(),c=i.find(o=>o.type.toLowerCase()===s);return c?c.value:null}numberFormatter(e={}){return new Jc(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Gc(e,this.intl,t)}relFormatter(e={}){return new Yc(this.intl,this.isEnglish(),e)}listFormatter(e={}){return xc(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||ti(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:vi()?Uc(this.locale):ri}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let ws=null;class Me extends Zt{static{a(this,"FixedOffsetZone")}static get utcInstance(){return ws===null&&(ws=new Me(0)),ws}static instance(e){return e===0?Me.utcInstance:new Me(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new Me(Ir(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${er(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${er(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return er(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Zc extends Zt{static{a(this,"InvalidZone")}constructor(e){super(),this.zoneName=e}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 gt(r,e){if(J(r)||r===null)return e;if(r instanceof Zt)return r;if(rl(r)){const t=r.toLowerCase();return t==="default"?e:t==="local"||t==="system"?Sr.instance:t==="utc"||t==="gmt"?Me.utcInstance:Me.parseSpecifier(t)||at.create(r)}else return mt(r)?Me.instance(r):typeof r=="object"&&"offset"in r&&typeof r.offset=="function"?r:new Zc(r)}a(gt,"normalizeZone");const Ss={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},si={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]},Kc=Ss.hanidec.replace(/[\[|\]]/g,"").split("");function Xc(r){let e=parseInt(r,10);if(isNaN(e)){e="";for(let t=0;t<r.length;t++){const s=r.charCodeAt(t);if(r[t].search(Ss.hanidec)!==-1)e+=Kc.indexOf(r[t]);else for(const n in si){const[i,c]=si[n];s>=i&&s<=c&&(e+=s-i)}}return parseInt(e,10)}else return e}a(Xc,"parseDigits");const vs=new Map;function Qc(){vs.clear()}a(Qc,"resetDigitRegexCache");function Ye({numberingSystem:r},e=""){const t=r||"latn";let s=vs.get(t);s===void 0&&(s=new Map,vs.set(t,s));let n=s.get(e);return n===void 0&&(n=new RegExp(`${Ss[t]}${e}`),s.set(e,n)),n}a(Ye,"digitRegex");let ni=a(()=>Date.now(),"now"),ii="system",oi=null,ai=null,ci=null,li=60,ui,hi=null;class fe{static{a(this,"Settings")}static get now(){return ni}static set now(e){ni=e}static set defaultZone(e){ii=e}static get defaultZone(){return gt(ii,Sr.instance)}static get defaultLocale(){return oi}static set defaultLocale(e){oi=e}static get defaultNumberingSystem(){return ai}static set defaultNumberingSystem(e){ai=e}static get defaultOutputCalendar(){return ci}static set defaultOutputCalendar(e){ci=e}static get defaultWeekSettings(){return hi}static set defaultWeekSettings(e){hi=Ts(e)}static get twoDigitCutoffYear(){return li}static set twoDigitCutoffYear(e){li=e%100}static get throwOnInvalid(){return ui}static set throwOnInvalid(e){ui=e}static resetCaches(){se.resetCache(),at.resetCache(),V.resetCache(),Qc()}}class Ze{static{a(this,"Invalid")}constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const di=[0,31,59,90,120,151,181,212,243,273,304,334],fi=[0,31,60,91,121,152,182,213,244,274,305,335];function He(r,e){return new Ze("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${r}, which is invalid`)}a(He,"unitOutOfRange");function Es(r,e,t){const s=new Date(Date.UTC(r,e-1,t));r<100&&r>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const n=s.getUTCDay();return n===0?7:n}a(Es,"dayOfWeek");function pi(r,e,t){return t+(Xt(r)?fi:di)[e-1]}a(pi,"computeOrdinal");function gi(r,e){const t=Xt(r)?fi:di,s=t.findIndex(i=>i<e),n=e-t[s];return{month:s+1,day:n}}a(gi,"uncomputeOrdinal");function Os(r,e){return(r-e+7)%7+1}a(Os,"isoWeekdayToLocal");function Er(r,e=4,t=1){const{year:s,month:n,day:i}=r,c=pi(s,n,i),o=Os(Es(s,n,i),t);let u=Math.floor((c-o+14-e)/7),d;return u<1?(d=s-1,u=Qt(d,e,t)):u>Qt(s,e,t)?(d=s+1,u=1):d=s,{weekYear:d,weekNumber:u,weekday:o,...Rr(r)}}a(Er,"gregorianToWeek");function mi(r,e=4,t=1){const{weekYear:s,weekNumber:n,weekday:i}=r,c=Os(Es(s,1,e),t),o=Ft(s);let u=n*7+i-c-7+e,d;u<1?(d=s-1,u+=Ft(d)):u>o?(d=s+1,u-=Ft(s)):d=s;const{month:l,day:g}=gi(d,u);return{year:d,month:l,day:g,...Rr(r)}}a(mi,"weekToGregorian");function ks(r){const{year:e,month:t,day:s}=r,n=pi(e,t,s);return{year:e,ordinal:n,...Rr(r)}}a(ks,"gregorianToOrdinal");function yi(r){const{year:e,ordinal:t}=r,{month:s,day:n}=gi(e,t);return{year:e,month:s,day:n,...Rr(r)}}a(yi,"ordinalToGregorian");function bi(r,e){if(!J(r.localWeekday)||!J(r.localWeekNumber)||!J(r.localWeekYear)){if(!J(r.weekday)||!J(r.weekNumber)||!J(r.weekYear))throw new Lt("Cannot mix locale-based week fields with ISO-based week fields");return J(r.localWeekday)||(r.weekday=r.localWeekday),J(r.localWeekNumber)||(r.weekNumber=r.localWeekNumber),J(r.localWeekYear)||(r.weekYear=r.localWeekYear),delete r.localWeekday,delete r.localWeekNumber,delete r.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}a(bi,"usesLocalWeekValues");function el(r,e=4,t=1){const s=Or(r.weekYear),n=ze(r.weekNumber,1,Qt(r.weekYear,e,t)),i=ze(r.weekday,1,7);return s?n?i?!1:He("weekday",r.weekday):He("week",r.weekNumber):He("weekYear",r.weekYear)}a(el,"hasInvalidWeekData");function tl(r){const e=Or(r.year),t=ze(r.ordinal,1,Ft(r.year));return e?t?!1:He("ordinal",r.ordinal):He("year",r.year)}a(tl,"hasInvalidOrdinalData");function _i(r){const e=Or(r.year),t=ze(r.month,1,12),s=ze(r.day,1,kr(r.year,r.month));return e?t?s?!1:He("day",r.day):He("month",r.month):He("year",r.year)}a(_i,"hasInvalidGregorianData");function wi(r){const{hour:e,minute:t,second:s,millisecond:n}=r,i=ze(e,0,23)||e===24&&t===0&&s===0&&n===0,c=ze(t,0,59),o=ze(s,0,59),u=ze(n,0,999);return i?c?o?u?!1:He("millisecond",n):He("second",s):He("minute",t):He("hour",e)}a(wi,"hasInvalidTimeData");function J(r){return typeof r>"u"}a(J,"isUndefined$1");function mt(r){return typeof r=="number"}a(mt,"isNumber$1");function Or(r){return typeof r=="number"&&r%1===0}a(Or,"isInteger");function rl(r){return typeof r=="string"}a(rl,"isString$1");function sl(r){return Object.prototype.toString.call(r)==="[object Date]"}a(sl,"isDate$1");function Si(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}a(Si,"hasRelative");function vi(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}a(vi,"hasLocaleWeekInfo");function nl(r){return Array.isArray(r)?r:[r]}a(nl,"maybeArray");function Ei(r,e,t){if(r.length!==0)return r.reduce((s,n)=>{const i=[e(n),n];return s&&t(s[0],i[0])===s[0]?s:i},null)[1]}a(Ei,"bestBy");function il(r,e){return e.reduce((t,s)=>(t[s]=r[s],t),{})}a(il,"pick$1");function Pt(r,e){return Object.prototype.hasOwnProperty.call(r,e)}a(Pt,"hasOwnProperty$1");function Ts(r){if(r==null)return null;if(typeof r!="object")throw new Ie("Week settings must be an object");if(!ze(r.firstDay,1,7)||!ze(r.minimalDays,1,7)||!Array.isArray(r.weekend)||r.weekend.some(e=>!ze(e,1,7)))throw new Ie("Invalid week settings");return{firstDay:r.firstDay,minimalDays:r.minimalDays,weekend:Array.from(r.weekend)}}a(Ts,"validateWeekSettings");function ze(r,e,t){return Or(r)&&r>=e&&r<=t}a(ze,"integerBetween");function ol(r,e){return r-e*Math.floor(r/e)}a(ol,"floorMod");function _e(r,e=2){const t=r<0;let s;return t?s="-"+(""+-r).padStart(e,"0"):s=(""+r).padStart(e,"0"),s}a(_e,"padStart");function yt(r){if(!(J(r)||r===null||r===""))return parseInt(r,10)}a(yt,"parseInteger");function Et(r){if(!(J(r)||r===null||r===""))return parseFloat(r)}a(Et,"parseFloating");function Is(r){if(!(J(r)||r===null||r==="")){const e=parseFloat("0."+r)*1e3;return Math.floor(e)}}a(Is,"parseMillis");function As(r,e,t="round"){const s=10**e;switch(t){case"expand":return r>0?Math.ceil(r*s)/s:Math.floor(r*s)/s;case"trunc":return Math.trunc(r*s)/s;case"round":return Math.round(r*s)/s;case"floor":return Math.floor(r*s)/s;case"ceil":return Math.ceil(r*s)/s;default:throw new RangeError(`Value rounding ${t} is out of range`)}}a(As,"roundTo");function Xt(r){return r%4===0&&(r%100!==0||r%400===0)}a(Xt,"isLeapYear");function Ft(r){return Xt(r)?366:365}a(Ft,"daysInYear");function kr(r,e){const t=ol(e-1,12)+1,s=r+(e-t)/12;return t===2?Xt(s)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}a(kr,"daysInMonth");function Tr(r){let e=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond);return r.year<100&&r.year>=0&&(e=new Date(e),e.setUTCFullYear(r.year,r.month-1,r.day)),+e}a(Tr,"objToLocalTS");function Oi(r,e,t){return-Os(Es(r,1,e),t)+e-1}a(Oi,"firstWeekOffset");function Qt(r,e=4,t=1){const s=Oi(r,e,t),n=Oi(r+1,e,t);return(Ft(r)-s+n)/7}a(Qt,"weeksInWeekYear");function Rs(r){return r>99?r:r>fe.twoDigitCutoffYear?1900+r:2e3+r}a(Rs,"untruncateYear");function ki(r,e,t,s=null){const n=new Date(r),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(i.timeZone=s);const c={timeZoneName:e,...i},o=new Intl.DateTimeFormat(t,c).formatToParts(n).find(u=>u.type.toLowerCase()==="timezonename");return o?o.value:null}a(ki,"parseZoneInfo");function Ir(r,e){let t=parseInt(r,10);Number.isNaN(t)&&(t=0);const s=parseInt(e,10)||0,n=t<0||Object.is(t,-0)?-s:s;return t*60+n}a(Ir,"signedOffset");function Ti(r){const e=Number(r);if(typeof r=="boolean"||r===""||!Number.isFinite(e))throw new Ie(`Invalid unit value ${r}`);return e}a(Ti,"asNumber");function Ar(r,e){const t={};for(const s in r)if(Pt(r,s)){const n=r[s];if(n==null)continue;t[e(s)]=Ti(n)}return t}a(Ar,"normalizeObject");function er(r,e){const t=Math.trunc(Math.abs(r/60)),s=Math.trunc(Math.abs(r%60)),n=r>=0?"+":"-";switch(e){case"short":return`${n}${_e(t,2)}:${_e(s,2)}`;case"narrow":return`${n}${t}${s>0?`:${s}`:""}`;case"techie":return`${n}${_e(t,2)}${_e(s,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}a(er,"formatOffset");function Rr(r){return il(r,["hour","minute","second","millisecond"])}a(Rr,"timeObject");const al=["January","February","March","April","May","June","July","August","September","October","November","December"],Ii=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],cl=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ai(r){switch(r){case"narrow":return[...cl];case"short":return[...Ii];case"long":return[...al];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}}a(Ai,"months");const Ri=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ci=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ll=["M","T","W","T","F","S","S"];function Ni(r){switch(r){case"narrow":return[...ll];case"short":return[...Ci];case"long":return[...Ri];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}a(Ni,"weekdays");const Di=["AM","PM"],ul=["Before Christ","Anno Domini"],hl=["BC","AD"],dl=["B","A"];function Mi(r){switch(r){case"narrow":return[...dl];case"short":return[...hl];case"long":return[...ul];default:return null}}a(Mi,"eras");function fl(r){return Di[r.hour<12?0:1]}a(fl,"meridiemForDateTime");function pl(r,e){return Ni(e)[r.weekday-1]}a(pl,"weekdayForDateTime");function gl(r,e){return Ai(e)[r.month-1]}a(gl,"monthForDateTime");function ml(r,e){return Mi(e)[r.year<0?0:1]}a(ml,"eraForDateTime");function yl(r,e,t="always",s=!1){const n={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."]},i=["hours","minutes","seconds"].indexOf(r)===-1;if(t==="auto"&&i){const g=r==="days";switch(e){case 1:return g?"tomorrow":`next ${n[r][0]}`;case-1:return g?"yesterday":`last ${n[r][0]}`;case 0:return g?"today":`this ${n[r][0]}`}}const c=Object.is(e,-0)||e<0,o=Math.abs(e),u=o===1,d=n[r],l=s?u?d[1]:d[2]||d[1]:u?n[r][0]:r;return c?`${o} ${l} ago`:`in ${o} ${l}`}a(yl,"formatRelativeTime");function Li(r,e){let t="";for(const s of r)s.literal?t+=s.val:t+=e(s.val);return t}a(Li,"stringifyTokens");const bl={D:wr,DD:Pn,DDD:Fn,DDDD:xn,t:$n,tt:Bn,ttt:jn,tttt:Un,T:Vn,TT:qn,TTT:Wn,TTTT:Hn,f:zn,ff:Gn,fff:Zn,ffff:Xn,F:Jn,FF:Yn,FFF:Kn,FFFF:Qn};class Ae{static{a(this,"Formatter")}static create(e,t={}){return new Ae(e,t)}static parseFormat(e){let t=null,s="",n=!1;const i=[];for(let c=0;c<e.length;c++){const o=e.charAt(c);o==="'"?((s.length>0||n)&&i.push({literal:n||/^\s+$/.test(s),val:s===""?"'":s}),t=null,s="",n=!n):n||o===t?s+=o:(s.length>0&&i.push({literal:/^\s+$/.test(s),val:s}),s=o,t=o)}return s.length>0&&i.push({literal:n||/^\s+$/.test(s),val:s}),i}static macroTokenToFormatOpts(e){return bl[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,s=void 0){if(this.opts.forceSimple)return _e(e,t);const n={...this.opts};return t>0&&(n.padTo=t),s&&(n.signDisplay=s),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const s=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=a((p,h)=>this.loc.extract(e,p,h),"string"),c=a(p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"","formatOffset"),o=a(()=>s?fl(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),"meridiem"),u=a((p,h)=>s?gl(e,p):i(h?{month:p}:{month:p,day:"numeric"},"month"),"month"),d=a((p,h)=>s?pl(e,p):i(h?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),"weekday"),l=a(p=>{const h=Ae.macroTokenToFormatOpts(p);return h?this.formatWithSystemDefault(e,h):p},"maybeMacro"),g=a(p=>s?ml(e,p):i({era:p},"era"),"era"),f=a(p=>{switch(p){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return c({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return c({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return c({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return n?i({day:"numeric"},"day"):this.num(e.day);case"dd":return n?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return n?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return n?i({month:"numeric"},"month"):this.num(e.month);case"MM":return n?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return n?i({year:"numeric"},"year"):this.num(e.year);case"yy":return n?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(p)}},"tokenToString");return Li(Ae.parseFormat(t),f)}formatDurationFromString(e,t){const s=this.opts.signMode==="negativeLargestOnly"?-1:1,n=a(l=>{switch(l[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}},"tokenToField"),i=a((l,g)=>f=>{const p=n(f);if(p){const h=g.isNegativeDuration&&p!==g.largestUnit?s:1;let m;return this.opts.signMode==="negativeLargestOnly"&&p!==g.largestUnit?m="never":this.opts.signMode==="all"?m="always":m="auto",this.num(l.get(p)*h,f.length,m)}else return f},"tokenToString"),c=Ae.parseFormat(t),o=c.reduce((l,{literal:g,val:f})=>g?l:l.concat(f),[]),u=e.shiftTo(...o.map(n).filter(l=>l)),d={isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]};return Li(c,i(u,d))}}const Pi=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function xt(...r){const e=r.reduce((t,s)=>t+s.source,"");return RegExp(`^${e}$`)}a(xt,"combineRegexes");function $t(...r){return e=>r.reduce(([t,s,n],i)=>{const[c,o,u]=i(e,n);return[{...t,...c},o||s,u]},[{},null,1]).slice(0,2)}a($t,"combineExtractors");function Bt(r,...e){if(r==null)return[null,null];for(const[t,s]of e){const n=t.exec(r);if(n)return s(n)}return[null,null]}a(Bt,"parse");function Fi(...r){return(e,t)=>{const s={};let n;for(n=0;n<r.length;n++)s[r[n]]=yt(e[t+n]);return[s,null,t+n]}}a(Fi,"simpleParse");const xi=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,_l=`(?:${xi.source}?(?:\\[(${Pi.source})\\])?)?`,Cs=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,$i=RegExp(`${Cs.source}${_l}`),Ns=RegExp(`(?:[Tt]${$i.source})?`),wl=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Sl=/(\d{4})-?W(\d\d)(?:-?(\d))?/,vl=/(\d{4})-?(\d{3})/,El=Fi("weekYear","weekNumber","weekDay"),Ol=Fi("year","ordinal"),kl=/(\d{4})-(\d\d)-(\d\d)/,Bi=RegExp(`${Cs.source} ?(?:${xi.source}|(${Pi.source}))?`),Tl=RegExp(`(?: ${Bi.source})?`);function jt(r,e,t){const s=r[e];return J(s)?t:yt(s)}a(jt,"int");function Il(r,e){return[{year:jt(r,e),month:jt(r,e+1,1),day:jt(r,e+2,1)},null,e+3]}a(Il,"extractISOYmd");function Ut(r,e){return[{hours:jt(r,e,0),minutes:jt(r,e+1,0),seconds:jt(r,e+2,0),milliseconds:Is(r[e+3])},null,e+4]}a(Ut,"extractISOTime");function tr(r,e){const t=!r[e]&&!r[e+1],s=Ir(r[e+1],r[e+2]),n=t?null:Me.instance(s);return[{},n,e+3]}a(tr,"extractISOOffset");function rr(r,e){const t=r[e]?at.create(r[e]):null;return[{},t,e+1]}a(rr,"extractIANAZone");const Al=RegExp(`^T?${Cs.source}$`),Rl=/^-?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 Cl(r){const[e,t,s,n,i,c,o,u,d]=r,l=e[0]==="-",g=u&&u[0]==="-",f=a((p,h=!1)=>p!==void 0&&(h||p&&l)?-p:p,"maybeNegate");return[{years:f(Et(t)),months:f(Et(s)),weeks:f(Et(n)),days:f(Et(i)),hours:f(Et(c)),minutes:f(Et(o)),seconds:f(Et(u),u==="-0"),milliseconds:f(Is(d),g)}]}a(Cl,"extractISODuration");const Nl={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ds(r,e,t,s,n,i,c){const o={year:e.length===2?Rs(yt(e)):yt(e),month:Ii.indexOf(t)+1,day:yt(s),hour:yt(n),minute:yt(i)};return c&&(o.second=yt(c)),r&&(o.weekday=r.length>3?Ri.indexOf(r)+1:Ci.indexOf(r)+1),o}a(Ds,"fromStrings");const Dl=/^(?:(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 Ml(r){const[,e,t,s,n,i,c,o,u,d,l,g]=r,f=Ds(e,n,s,t,i,c,o);let p;return u?p=Nl[u]:d?p=0:p=Ir(l,g),[f,new Me(p)]}a(Ml,"extractRFC2822");function Ll(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}a(Ll,"preprocessRFC2822");const Pl=/^(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$/,Fl=/^(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$/,xl=/^(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 ji(r){const[,e,t,s,n,i,c,o]=r;return[Ds(e,n,s,t,i,c,o),Me.utcInstance]}a(ji,"extractRFC1123Or850");function $l(r){const[,e,t,s,n,i,c,o]=r;return[Ds(e,o,t,s,n,i,c),Me.utcInstance]}a($l,"extractASCII");const Bl=xt(wl,Ns),jl=xt(Sl,Ns),Ul=xt(vl,Ns),Vl=xt($i),Ui=$t(Il,Ut,tr,rr),ql=$t(El,Ut,tr,rr),Wl=$t(Ol,Ut,tr,rr),Hl=$t(Ut,tr,rr);function zl(r){return Bt(r,[Bl,Ui],[jl,ql],[Ul,Wl],[Vl,Hl])}a(zl,"parseISODate");function Jl(r){return Bt(Ll(r),[Dl,Ml])}a(Jl,"parseRFC2822Date");function Gl(r){return Bt(r,[Pl,ji],[Fl,ji],[xl,$l])}a(Gl,"parseHTTPDate");function Yl(r){return Bt(r,[Rl,Cl])}a(Yl,"parseISODuration");const Zl=$t(Ut);function Kl(r){return Bt(r,[Al,Zl])}a(Kl,"parseISOTimeOnly");const Xl=xt(kl,Tl),Ql=xt(Bi),eu=$t(Ut,tr,rr);function tu(r){return Bt(r,[Xl,Ui],[Ql,eu])}a(tu,"parseSQL");const Vi="Invalid Duration",qi={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},ru={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:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...qi},Je=146097/400,Vt=146097/4800,su={years:{quarters:4,months:12,weeks:Je/7,days:Je,hours:Je*24,minutes:Je*24*60,seconds:Je*24*60*60,milliseconds:Je*24*60*60*1e3},quarters:{months:3,weeks:Je/28,days:Je/4,hours:Je*24/4,minutes:Je*24*60/4,seconds:Je*24*60*60/4,milliseconds:Je*24*60*60*1e3/4},months:{weeks:Vt/7,days:Vt,hours:Vt*24,minutes:Vt*24*60,seconds:Vt*24*60*60,milliseconds:Vt*24*60*60*1e3},...qi},Ot=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],nu=Ot.slice(0).reverse();function ct(r,e,t=!1){const s={values:t?e.values:{...r.values,...e.values||{}},loc:r.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||r.conversionAccuracy,matrix:e.matrix||r.matrix};return new Q(s)}a(ct,"clone$1");function Wi(r,e){let t=e.milliseconds??0;for(const s of nu.slice(1))e[s]&&(t+=e[s]*r[s].milliseconds);return t}a(Wi,"durationToMillis");function Hi(r,e){const t=Wi(r,e)<0?-1:1;Ot.reduceRight((s,n)=>{if(J(e[n]))return s;if(s){const i=e[s]*t,c=r[n][s],o=Math.floor(i/c);e[n]+=o*t,e[s]-=o*c*t}return n},null),Ot.reduce((s,n)=>{if(J(e[n]))return s;if(s){const i=e[s]%1;e[s]-=i,e[n]+=i*r[s][n]}return n},null)}a(Hi,"normalizeValues");function zi(r){const e={};for(const[t,s]of Object.entries(r))s!==0&&(e[t]=s);return e}a(zi,"removeZeroes");class Q{static{a(this,"Duration")}constructor(e){const t=e.conversionAccuracy==="longterm"||!1;let s=t?su:ru;e.matrix&&(s=e.matrix),this.values=e.values,this.loc=e.loc||se.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=s,this.isLuxonDuration=!0}static fromMillis(e,t){return Q.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new Ie(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Q({values:Ar(e,Q.normalizeUnit),loc:se.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(mt(e))return Q.fromMillis(e);if(Q.isDuration(e))return e;if(typeof e=="object")return Q.fromObject(e);throw new Ie(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[s]=Yl(e);return s?Q.fromObject(s,t):Q.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[s]=Kl(e);return s?Q.fromObject(s,t):Q.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new Ie("need to specify a reason the Duration is invalid");const s=e instanceof Ze?e:new Ze(e,t);if(fe.throwOnInvalid)throw new Cc(s);return new Q({invalid:s})}static normalizeUnit(e){const t={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"}[e&&e.toLowerCase()];if(!t)throw new Ln(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const s={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?Ae.create(this.loc,s).formatDurationFromString(this,e):Vi}toHuman(e={}){if(!this.isValid)return Vi;const t=e.showZeros!==!1,s=Ot.map(n=>{const i=this.values[n];return J(i)||i===0&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(s)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=As(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},V.fromMillis(t,{zone:"UTC"}).toISOTime(e))}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?Wi(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Q.fromDurationLike(e),s={};for(const n of Ot)(Pt(t.values,n)||Pt(this.values,n))&&(s[n]=t.get(n)+this.get(n));return ct(this,{values:s},!0)}minus(e){if(!this.isValid)return this;const t=Q.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const s of Object.keys(this.values))t[s]=Ti(e(this.values[s],s));return ct(this,{values:t},!0)}get(e){return this[Q.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...Ar(e,Q.normalizeUnit)};return ct(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:s,matrix:n}={}){const c={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:n,conversionAccuracy:s};return ct(this,c)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Hi(this.matrix,e),ct(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=zi(this.normalize().shiftToAll().toObject());return ct(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(c=>Q.normalizeUnit(c));const t={},s={},n=this.toObject();let i;for(const c of Ot)if(e.indexOf(c)>=0){i=c;let o=0;for(const d in s)o+=this.matrix[d][c]*s[d],s[d]=0;mt(n[c])&&(o+=n[c]);const u=Math.trunc(o);t[c]=u,s[c]=(o*1e3-u*1e3)/1e3}else mt(n[c])&&(s[c]=n[c]);for(const c in s)s[c]!==0&&(t[i]+=c===i?s[c]:s[c]/this.matrix[i][c]);return Hi(this.matrix,t),ct(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return ct(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=zi(this.values);return ct(this,{values:e},!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(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(s,n){return s===void 0||s===0?n===void 0||n===0:s===n}a(t,"eq");for(const s of Ot)if(!t(this.values[s],e.values[s]))return!1;return!0}}const qt="Invalid Interval";function iu(r,e){return!r||!r.isValid?pe.invalid("missing or invalid start"):!e||!e.isValid?pe.invalid("missing or invalid end"):e<r?pe.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${e.toISO()}`):null}a(iu,"validateStartEnd");class pe{static{a(this,"Interval")}constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new Ie("need to specify a reason the Interval is invalid");const s=e instanceof Ze?e:new Ze(e,t);if(fe.throwOnInvalid)throw new Rc(s);return new pe({invalid:s})}static fromDateTimes(e,t){const s=ir(e),n=ir(t),i=iu(s,n);return i??new pe({start:s,end:n})}static after(e,t){const s=Q.fromDurationLike(t),n=ir(e);return pe.fromDateTimes(n,n.plus(s))}static before(e,t){const s=Q.fromDurationLike(t),n=ir(e);return pe.fromDateTimes(n.minus(s),n)}static fromISO(e,t){const[s,n]=(e||"").split("/",2);if(s&&n){let i,c;try{i=V.fromISO(s,t),c=i.isValid}catch{c=!1}let o,u;try{o=V.fromISO(n,t),u=o.isValid}catch{u=!1}if(c&&u)return pe.fromDateTimes(i,o);if(c){const d=Q.fromISO(n,t);if(d.isValid)return pe.after(i,d)}else if(u){const d=Q.fromISO(s,t);if(d.isValid)return pe.before(o,d)}}return pe.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.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(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const s=this.start.startOf(e,t);let n;return t?.useLocaleWeeks?n=this.end.reconfigure({locale:s.locale}):n=this.end,n=n.startOf(e,t),Math.floor(n.diff(s,e).get(e))+(n.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?pe.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(ir).filter(c=>this.contains(c)).sort((c,o)=>c.toMillis()-o.toMillis()),s=[];let{s:n}=this,i=0;for(;n<this.e;){const c=t[i]||this.e,o=+c>+this.e?this.e:c;s.push(pe.fromDateTimes(n,o)),n=o,i+=1}return s}splitBy(e){const t=Q.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s}=this,n=1,i;const c=[];for(;s<this.e;){const o=this.start.plus(t.mapUnits(u=>u*n));i=+o>+this.e?this.e:o,c.push(pe.fromDateTimes(s,i)),s=i,n+=1}return c}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,s=this.e<e.e?this.e:e.e;return t>=s?null:pe.fromDateTimes(t,s)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,s=this.e>e.e?this.e:e.e;return pe.fromDateTimes(t,s)}static merge(e){const[t,s]=e.sort((n,i)=>n.s-i.s).reduce(([n,i],c)=>i?i.overlaps(c)||i.abutsStart(c)?[n,i.union(c)]:[n.concat([i]),c]:[n,c],[[],null]);return s&&t.push(s),t}static xor(e){let t=null,s=0;const n=[],i=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),c=Array.prototype.concat(...i),o=c.sort((u,d)=>u.time-d.time);for(const u of o)s+=u.type==="s"?1:-1,s===1?t=u.time:(t&&+t!=+u.time&&n.push(pe.fromDateTimes(t,u.time)),t=null);return pe.merge(n)}difference(...e){return pe.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:qt}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=wr,t={}){return this.isValid?Ae.create(this.s.loc.clone(t),e).formatInterval(this):qt}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:qt}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:qt}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:qt}toFormat(e,{separator:t=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:qt}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Q.invalid(this.invalidReason)}mapEndpoints(e){return pe.fromDateTimes(e(this.s),e(this.e))}}class Cr{static{a(this,"Info")}static hasDST(e=fe.defaultZone){const t=V.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return at.isValidZone(e)}static normalizeZone(e){return gt(e,fe.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||se.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||se.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||se.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:s=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||se.create(t,s,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:s=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||se.create(t,s,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:s=null,locObj:n=null}={}){return(n||se.create(t,s,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:s=null,locObj:n=null}={}){return(n||se.create(t,s,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return se.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return se.create(t,null,"gregory").eras(e)}static features(){return{relative:Si(),localeWeek:vi()}}}function Ji(r,e){const t=a(n=>n.toUTC(0,{keep