@bitrix24/b24jssdk
Version:
Bitrix24 REST API JavaScript SDK
8 lines • 427 kB
JavaScript
var C0=Object.defineProperty;var a=(I,z)=>C0(I,"name",{value:z,configurable:!0});/**
* @package @bitrix24/b24jssdk
* @version 2.0.0
* @copyright (c) 2026 Bitrix24
* @license MIT
* @see https://github.com/bitrix24/b24jssdk
* @see https://bitrix24.github.io/b24jssdk/
*/(function(I,z){typeof exports=="object"&&typeof module<"u"?z(exports):typeof define=="function"&&define.amd?define(["exports"],z):(I=typeof globalThis<"u"?globalThis:I||self,z(I.B24Js={}))})(this,(function(I){"use strict";var z=(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))(z||{});class Ot extends Error{static{a(this,"LuxonError")}}class ol extends Ot{static{a(this,"InvalidDateTimeError")}constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class al extends Ot{static{a(this,"InvalidIntervalError")}constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class cl extends Ot{static{a(this,"InvalidDurationError")}constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Ft extends Ot{static{a(this,"ConflictingSpecificationError")}}class hi extends Ot{static{a(this,"InvalidUnitError")}constructor(e){super(`Invalid unit ${e}`)}}class Ce extends Ot{static{a(this,"InvalidArgumentError")}}class mt extends Ot{static{a(this,"ZoneIsAbstractError")}constructor(){super("Zone is an abstract class")}}const L="numeric",Ye="short",Ve="long",Cr={year:L,month:L,day:L},di={year:L,month:Ye,day:L},ll={year:L,month:Ye,day:L,weekday:Ye},fi={year:L,month:Ve,day:L},pi={year:L,month:Ve,day:L,weekday:Ve},gi={hour:L,minute:L},mi={hour:L,minute:L,second:L},yi={hour:L,minute:L,second:L,timeZoneName:Ye},bi={hour:L,minute:L,second:L,timeZoneName:Ve},_i={hour:L,minute:L,hourCycle:"h23"},wi={hour:L,minute:L,second:L,hourCycle:"h23"},Si={hour:L,minute:L,second:L,hourCycle:"h23",timeZoneName:Ye},vi={hour:L,minute:L,second:L,hourCycle:"h23",timeZoneName:Ve},Ei={year:L,month:L,day:L,hour:L,minute:L},Oi={year:L,month:L,day:L,hour:L,minute:L,second:L},Ti={year:L,month:Ye,day:L,hour:L,minute:L},ki={year:L,month:Ye,day:L,hour:L,minute:L,second:L},ul={year:L,month:Ye,day:L,weekday:Ye,hour:L,minute:L},Ii={year:L,month:Ve,day:L,hour:L,minute:L,timeZoneName:Ye},Ai={year:L,month:Ve,day:L,hour:L,minute:L,second:L,timeZoneName:Ye},Ri={year:L,month:Ve,day:L,weekday:Ve,hour:L,minute:L,timeZoneName:Ve},Ci={year:L,month:Ve,day:L,weekday:Ve,hour:L,minute:L,second:L,timeZoneName:Ve};class sr{static{a(this,"Zone")}get type(){throw new mt}get name(){throw new mt}get ianaName(){return this.name}get isUniversal(){throw new mt}offsetName(e,t){throw new mt}formatOffset(e,t){throw new mt}offset(e){throw new mt}equals(e){throw new mt}get isValid(){throw new mt}}let Es=null;class Nr extends sr{static{a(this,"SystemZone")}static get instance(){return Es===null&&(Es=new Nr),Es}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:s}){return ro(e,t,s)}formatOffset(e,t){return ar(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const Os=new Map;function hl(r){let e=Os.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"}),Os.set(r,e)),e}a(hl,"makeDTF");const dl={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function fl(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,l,h,u]=s;return[c,n,i,o,l,h,u]}a(fl,"hackyOffset");function pl(r,e){const t=r.formatToParts(e),s=[];for(let n=0;n<t.length;n++){const{type:i,value:c}=t[n],o=dl[i];i==="era"?s[o]=c:J(o)||(s[o]=parseInt(c,10))}return s}a(pl,"partsOffset");const Ts=new Map;class ct extends sr{static{a(this,"IANAZone")}static create(e){let t=Ts.get(e);return t===void 0&&Ts.set(e,t=new ct(e)),t}static resetCache(){Ts.clear(),Os.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=ct.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:s}){return ro(e,t,s,this.name)}formatOffset(e,t){return ar(this.offset(e),t)}offset(e){if(!this.valid)return NaN;const t=new Date(e);if(isNaN(t))return NaN;const s=hl(this.name);let[n,i,c,o,l,h,u]=s.formatToParts?pl(s,t):fl(s,t);o==="BC"&&(n=-Math.abs(n)+1);const p=Fr({year:n,month:i,day:c,hour:l===24?0:l,minute:h,second:u,millisecond:0});let d=+t;const f=d%1e3;return d-=f>=0?f:1e3+f,(p-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ni={};function gl(r,e={}){const t=JSON.stringify([r,e]);let s=Ni[t];return s||(s=new Intl.ListFormat(r,e),Ni[t]=s),s}a(gl,"getCachedLF");const ks=new Map;function Is(r,e={}){const t=JSON.stringify([r,e]);let s=ks.get(t);return s===void 0&&(s=new Intl.DateTimeFormat(r,e),ks.set(t,s)),s}a(Is,"getCachedDTF");const As=new Map;function ml(r,e={}){const t=JSON.stringify([r,e]);let s=As.get(t);return s===void 0&&(s=new Intl.NumberFormat(r,e),As.set(t,s)),s}a(ml,"getCachedINF");const Rs=new Map;function yl(r,e={}){const{base:t,...s}=e,n=JSON.stringify([r,s]);let i=Rs.get(n);return i===void 0&&(i=new Intl.RelativeTimeFormat(r,e),Rs.set(n,i)),i}a(yl,"getCachedRTF");let nr=null;function bl(){return nr||(nr=new Intl.DateTimeFormat().resolvedOptions().locale,nr)}a(bl,"systemLocale");const Cs=new Map;function Di(r){let e=Cs.get(r);return e===void 0&&(e=new Intl.DateTimeFormat(r).resolvedOptions(),Cs.set(r,e)),e}a(Di,"getCachedIntResolvedOptions");const Ns=new Map;function _l(r){let e=Ns.get(r);if(!e){const t=new Intl.Locale(r);e="getWeekInfo"in t?t.getWeekInfo():t.weekInfo,"minimalDays"in e||(e={...Li,...e}),Ns.set(r,e)}return e}a(_l,"getCachedWeekInfo");function wl(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=Is(r).resolvedOptions(),n=r}catch{const l=r.substring(0,t);s=Is(l).resolvedOptions(),n=l}const{numberingSystem:i,calendar:c}=s;return[n,i,c]}}a(wl,"parseLocaleString");function Sl(r,e,t){return(t||e)&&(r.includes("-u-")||(r+="-u"),t&&(r+=`-ca-${t}`),e&&(r+=`-nu-${e}`)),r}a(Sl,"intlConfigString");function vl(r){const e=[];for(let t=1;t<=12;t++){const s=q.utc(2009,t,1);e.push(r(s))}return e}a(vl,"mapMonths");function El(r){const e=[];for(let t=1;t<=7;t++){const s=q.utc(2016,11,13+t);e.push(r(s))}return e}a(El,"mapWeekdays");function Dr(r,e,t,s){const n=r.listingMode();return n==="error"?null:n==="en"?t(e):s(e)}a(Dr,"listStuff");function Ol(r){return r.numberingSystem&&r.numberingSystem!=="latn"?!1:r.numberingSystem==="latn"||!r.locale||r.locale.startsWith("en")||Di(r.locale).numberingSystem==="latn"}a(Ol,"supportsFastNumbers");class Tl{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=ml(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):js(e,3);return ve(t,this.padTo)}}}class kl{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&&ct.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=Is(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 Il{static{a(this,"PolyRelFormatter")}constructor(e,t,s){this.opts={style:"long",...s},!t&&Xi()&&(this.rtf=yl(e,s))}format(e,t){return this.rtf?this.rtf.format(e,t):Kl(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const Li={firstDay:1,minimalDays:4,weekend:[6,7]};class ae{static{a(this,"Locale")}static fromOpts(e){return ae.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,s,n,i=!1){const c=e||me.defaultLocale,o=c||(i?"en-US":bl()),l=t||me.defaultNumberingSystem,h=s||me.defaultOutputCalendar,u=$s(n)||me.defaultWeekSettings;return new ae(o,l,h,u,c)}static resetCache(){nr=null,ks.clear(),As.clear(),Rs.clear(),Cs.clear(),Ns.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:s,weekSettings:n}={}){return ae.create(e,t,s,n)}constructor(e,t,s,n,i){const[c,o,l]=wl(e);this.locale=c,this.numberingSystem=t||o||null,this.outputCalendar=s||l||null,this.weekSettings=n,this.intl=Sl(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=Ol(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:ae.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,$s(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 Dr(this,e,io,()=>{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]=vl(c)}return this.monthsCache[i][e]})}weekdays(e,t=!1){return Dr(this,e,co,()=>{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]=El(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[n][e]})}meridiems(){return Dr(this,void 0,()=>lo,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[q.utc(2016,11,13,9),q.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Dr(this,e,uo,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[q.utc(-40,1,1),q.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 Tl(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new kl(e,this.intl,t)}relFormatter(e={}){return new Il(this.intl,this.isEnglish(),e)}listFormatter(e={}){return gl(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Di(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Qi()?_l(this.locale):Li}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 Ds=null;class Fe extends sr{static{a(this,"FixedOffsetZone")}static get utcInstance(){return Ds===null&&(Ds=new Fe(0)),Ds}static instance(e){return e===0?Fe.utcInstance:new Fe(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new Fe(xr(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ar(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ar(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return ar(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 Al extends sr{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 yt(r,e){if(J(r)||r===null)return e;if(r instanceof sr)return r;if(Pl(r)){const t=r.toLowerCase();return t==="default"?e:t==="local"||t==="system"?Nr.instance:t==="utc"||t==="gmt"?Fe.utcInstance:Fe.parseSpecifier(t)||ct.create(r)}else return bt(r)?Fe.instance(r):typeof r=="object"&&"offset"in r&&typeof r.offset=="function"?r:new Al(r)}a(yt,"normalizeZone");const Ls={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"},Pi={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]},Rl=Ls.hanidec.replace(/[\[|\]]/g,"").split("");function Cl(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(Ls.hanidec)!==-1)e+=Rl.indexOf(r[t]);else for(const n in Pi){const[i,c]=Pi[n];s>=i&&s<=c&&(e+=s-i)}}return parseInt(e,10)}else return e}a(Cl,"parseDigits");const Ps=new Map;function Nl(){Ps.clear()}a(Nl,"resetDigitRegexCache");function Ze({numberingSystem:r},e=""){const t=r||"latn";let s=Ps.get(t);s===void 0&&(s=new Map,Ps.set(t,s));let n=s.get(e);return n===void 0&&(n=new RegExp(`${Ls[t]}${e}`),s.set(e,n)),n}a(Ze,"digitRegex");let Mi=a(()=>Date.now(),"now"),Fi="system",xi=null,$i=null,Bi=null,ji=60,Ui,Vi=null;class me{static{a(this,"Settings")}static get now(){return Mi}static set now(e){Mi=e}static set defaultZone(e){Fi=e}static get defaultZone(){return yt(Fi,Nr.instance)}static get defaultLocale(){return xi}static set defaultLocale(e){xi=e}static get defaultNumberingSystem(){return $i}static set defaultNumberingSystem(e){$i=e}static get defaultOutputCalendar(){return Bi}static set defaultOutputCalendar(e){Bi=e}static get defaultWeekSettings(){return Vi}static set defaultWeekSettings(e){Vi=$s(e)}static get twoDigitCutoffYear(){return ji}static set twoDigitCutoffYear(e){ji=e%100}static get throwOnInvalid(){return Ui}static set throwOnInvalid(e){Ui=e}static resetCaches(){ae.resetCache(),ct.resetCache(),q.resetCache(),Nl()}}class Xe{static{a(this,"Invalid")}constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const qi=[0,31,59,90,120,151,181,212,243,273,304,334],Hi=[0,31,60,91,121,152,182,213,244,274,305,335];function ze(r,e){return new Xe("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${r}, which is invalid`)}a(ze,"unitOutOfRange");function Ms(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(Ms,"dayOfWeek");function Wi(r,e,t){return t+(ir(r)?Hi:qi)[e-1]}a(Wi,"computeOrdinal");function zi(r,e){const t=ir(r)?Hi:qi,s=t.findIndex(i=>i<e),n=e-t[s];return{month:s+1,day:n}}a(zi,"uncomputeOrdinal");function Fs(r,e){return(r-e+7)%7+1}a(Fs,"isoWeekdayToLocal");function Lr(r,e=4,t=1){const{year:s,month:n,day:i}=r,c=Wi(s,n,i),o=Fs(Ms(s,n,i),t);let l=Math.floor((c-o+14-e)/7),h;return l<1?(h=s-1,l=or(h,e,t)):l>or(s,e,t)?(h=s+1,l=1):h=s,{weekYear:h,weekNumber:l,weekday:o,...Br(r)}}a(Lr,"gregorianToWeek");function Ji(r,e=4,t=1){const{weekYear:s,weekNumber:n,weekday:i}=r,c=Fs(Ms(s,1,e),t),o=$t(s);let l=n*7+i-c-7+e,h;l<1?(h=s-1,l+=$t(h)):l>o?(h=s+1,l-=$t(s)):h=s;const{month:u,day:m}=zi(h,l);return{year:h,month:u,day:m,...Br(r)}}a(Ji,"weekToGregorian");function xs(r){const{year:e,month:t,day:s}=r,n=Wi(e,t,s);return{year:e,ordinal:n,...Br(r)}}a(xs,"gregorianToOrdinal");function Gi(r){const{year:e,ordinal:t}=r,{month:s,day:n}=zi(e,t);return{year:e,month:s,day:n,...Br(r)}}a(Gi,"ordinalToGregorian");function Ki(r,e){if(!J(r.localWeekday)||!J(r.localWeekNumber)||!J(r.localWeekYear)){if(!J(r.weekday)||!J(r.weekNumber)||!J(r.weekYear))throw new Ft("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(Ki,"usesLocalWeekValues");function Dl(r,e=4,t=1){const s=Pr(r.weekYear),n=Je(r.weekNumber,1,or(r.weekYear,e,t)),i=Je(r.weekday,1,7);return s?n?i?!1:ze("weekday",r.weekday):ze("week",r.weekNumber):ze("weekYear",r.weekYear)}a(Dl,"hasInvalidWeekData");function Ll(r){const e=Pr(r.year),t=Je(r.ordinal,1,$t(r.year));return e?t?!1:ze("ordinal",r.ordinal):ze("year",r.year)}a(Ll,"hasInvalidOrdinalData");function Yi(r){const e=Pr(r.year),t=Je(r.month,1,12),s=Je(r.day,1,Mr(r.year,r.month));return e?t?s?!1:ze("day",r.day):ze("month",r.month):ze("year",r.year)}a(Yi,"hasInvalidGregorianData");function Zi(r){const{hour:e,minute:t,second:s,millisecond:n}=r,i=Je(e,0,23)||e===24&&t===0&&s===0&&n===0,c=Je(t,0,59),o=Je(s,0,59),l=Je(n,0,999);return i?c?o?l?!1:ze("millisecond",n):ze("second",s):ze("minute",t):ze("hour",e)}a(Zi,"hasInvalidTimeData");function J(r){return typeof r>"u"}a(J,"isUndefined$1");function bt(r){return typeof r=="number"}a(bt,"isNumber$1");function Pr(r){return typeof r=="number"&&r%1===0}a(Pr,"isInteger");function Pl(r){return typeof r=="string"}a(Pl,"isString$1");function Ml(r){return Object.prototype.toString.call(r)==="[object Date]"}a(Ml,"isDate$1");function Xi(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}a(Xi,"hasRelative");function Qi(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}a(Qi,"hasLocaleWeekInfo");function Fl(r){return Array.isArray(r)?r:[r]}a(Fl,"maybeArray");function eo(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(eo,"bestBy");function xl(r,e){return e.reduce((t,s)=>(t[s]=r[s],t),{})}a(xl,"pick$1");function xt(r,e){return Object.prototype.hasOwnProperty.call(r,e)}a(xt,"hasOwnProperty$1");function $s(r){if(r==null)return null;if(typeof r!="object")throw new Ce("Week settings must be an object");if(!Je(r.firstDay,1,7)||!Je(r.minimalDays,1,7)||!Array.isArray(r.weekend)||r.weekend.some(e=>!Je(e,1,7)))throw new Ce("Invalid week settings");return{firstDay:r.firstDay,minimalDays:r.minimalDays,weekend:Array.from(r.weekend)}}a($s,"validateWeekSettings");function Je(r,e,t){return Pr(r)&&r>=e&&r<=t}a(Je,"integerBetween");function $l(r,e){return r-e*Math.floor(r/e)}a($l,"floorMod");function ve(r,e=2){const t=r<0;let s;return t?s="-"+(""+-r).padStart(e,"0"):s=(""+r).padStart(e,"0"),s}a(ve,"padStart");function _t(r){if(!(J(r)||r===null||r===""))return parseInt(r,10)}a(_t,"parseInteger");function Tt(r){if(!(J(r)||r===null||r===""))return parseFloat(r)}a(Tt,"parseFloating");function Bs(r){if(!(J(r)||r===null||r==="")){const e=parseFloat("0."+r)*1e3;return Math.floor(e)}}a(Bs,"parseMillis");function js(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(js,"roundTo");function ir(r){return r%4===0&&(r%100!==0||r%400===0)}a(ir,"isLeapYear");function $t(r){return ir(r)?366:365}a($t,"daysInYear");function Mr(r,e){const t=$l(e-1,12)+1,s=r+(e-t)/12;return t===2?ir(s)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}a(Mr,"daysInMonth");function Fr(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(Fr,"objToLocalTS");function to(r,e,t){return-Fs(Ms(r,1,e),t)+e-1}a(to,"firstWeekOffset");function or(r,e=4,t=1){const s=to(r,e,t),n=to(r+1,e,t);return($t(r)-s+n)/7}a(or,"weeksInWeekYear");function Us(r){return r>99?r:r>me.twoDigitCutoffYear?1900+r:2e3+r}a(Us,"untruncateYear");function ro(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(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}a(ro,"parseZoneInfo");function xr(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(xr,"signedOffset");function so(r){const e=Number(r);if(typeof r=="boolean"||r===""||!Number.isFinite(e))throw new Ce(`Invalid unit value ${r}`);return e}a(so,"asNumber");function $r(r,e){const t={};for(const s in r)if(xt(r,s)){const n=r[s];if(n==null)continue;t[e(s)]=so(n)}return t}a($r,"normalizeObject");function ar(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}${ve(t,2)}:${ve(s,2)}`;case"narrow":return`${n}${t}${s>0?`:${s}`:""}`;case"techie":return`${n}${ve(t,2)}${ve(s,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}a(ar,"formatOffset");function Br(r){return xl(r,["hour","minute","second","millisecond"])}a(Br,"timeObject");const Bl=["January","February","March","April","May","June","July","August","September","October","November","December"],no=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],jl=["J","F","M","A","M","J","J","A","S","O","N","D"];function io(r){switch(r){case"narrow":return[...jl];case"short":return[...no];case"long":return[...Bl];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(io,"months");const oo=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ao=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ul=["M","T","W","T","F","S","S"];function co(r){switch(r){case"narrow":return[...Ul];case"short":return[...ao];case"long":return[...oo];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}a(co,"weekdays");const lo=["AM","PM"],Vl=["Before Christ","Anno Domini"],ql=["BC","AD"],Hl=["B","A"];function uo(r){switch(r){case"narrow":return[...Hl];case"short":return[...ql];case"long":return[...Vl];default:return null}}a(uo,"eras");function Wl(r){return lo[r.hour<12?0:1]}a(Wl,"meridiemForDateTime");function zl(r,e){return co(e)[r.weekday-1]}a(zl,"weekdayForDateTime");function Jl(r,e){return io(e)[r.month-1]}a(Jl,"monthForDateTime");function Gl(r,e){return uo(e)[r.year<0?0:1]}a(Gl,"eraForDateTime");function Kl(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 m=r==="days";switch(e){case 1:return m?"tomorrow":`next ${n[r][0]}`;case-1:return m?"yesterday":`last ${n[r][0]}`;case 0:return m?"today":`this ${n[r][0]}`}}const c=Object.is(e,-0)||e<0,o=Math.abs(e),l=o===1,h=n[r],u=s?l?h[1]:h[2]||h[1]:l?n[r][0]:r;return c?`${o} ${u} ago`:`in ${o} ${u}`}a(Kl,"formatRelativeTime");function ho(r,e){let t="";for(const s of r)s.literal?t+=s.val:t+=e(s.val);return t}a(ho,"stringifyTokens");const Yl={D:Cr,DD:di,DDD:fi,DDDD:pi,t:gi,tt:mi,ttt:yi,tttt:bi,T:_i,TT:wi,TTT:Si,TTTT:vi,f:Ei,ff:Ti,fff:Ii,ffff:Ri,F:Oi,FF:ki,FFF:Ai,FFFF:Ci};class Ne{static{a(this,"Formatter")}static create(e,t={}){return new Ne(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 Yl[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 ve(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((d,f)=>this.loc.extract(e,d,f),"string"),c=a(d=>e.isOffsetFixed&&e.offset===0&&d.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,d.format):"","formatOffset"),o=a(()=>s?Wl(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),"meridiem"),l=a((d,f)=>s?Jl(e,d):i(f?{month:d}:{month:d,day:"numeric"},"month"),"month"),h=a((d,f)=>s?zl(e,d):i(f?{weekday:d}:{weekday:d,month:"long",day:"numeric"},"weekday"),"weekday"),u=a(d=>{const f=Ne.macroTokenToFormatOpts(d);return f?this.formatWithSystemDefault(e,f):d},"maybeMacro"),m=a(d=>s?Gl(e,d):i({era:d},"era"),"era"),p=a(d=>{switch(d){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 h("short",!0);case"cccc":return h("long",!0);case"ccccc":return h("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return h("short",!1);case"EEEE":return h("long",!1);case"EEEEE":return h("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 l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("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 l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("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 m("short");case"GG":return m("long");case"GGGGG":return m("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 u(d)}},"tokenToString");return ho(Ne.parseFormat(t),p)}formatDurationFromString(e,t){const s=this.opts.signMode==="negativeLargestOnly"?-1:1,n=a(u=>{switch(u[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((u,m)=>p=>{const d=n(p);if(d){const f=m.isNegativeDuration&&d!==m.largestUnit?s:1;let g;return this.opts.signMode==="negativeLargestOnly"&&d!==m.largestUnit?g="never":this.opts.signMode==="all"?g="always":g="auto",this.num(u.get(d)*f,p.length,g)}else return p},"tokenToString"),c=Ne.parseFormat(t),o=c.reduce((u,{literal:m,val:p})=>m?u:u.concat(p),[]),l=e.shiftTo(...o.map(n).filter(u=>u)),h={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return ho(c,i(l,h))}}const fo=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Bt(...r){const e=r.reduce((t,s)=>t+s.source,"");return RegExp(`^${e}$`)}a(Bt,"combineRegexes");function jt(...r){return e=>r.reduce(([t,s,n],i)=>{const[c,o,l]=i(e,n);return[{...t,...c},o||s,l]},[{},null,1]).slice(0,2)}a(jt,"combineExtractors");function Ut(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(Ut,"parse");function po(...r){return(e,t)=>{const s={};let n;for(n=0;n<r.length;n++)s[r[n]]=_t(e[t+n]);return[s,null,t+n]}}a(po,"simpleParse");const go=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Zl=`(?:${go.source}?(?:\\[(${fo.source})\\])?)?`,Vs=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,mo=RegExp(`${Vs.source}${Zl}`),qs=RegExp(`(?:[Tt]${mo.source})?`),Xl=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ql=/(\d{4})-?W(\d\d)(?:-?(\d))?/,eu=/(\d{4})-?(\d{3})/,tu=po("weekYear","weekNumber","weekDay"),ru=po("year","ordinal"),su=/(\d{4})-(\d\d)-(\d\d)/,yo=RegExp(`${Vs.source} ?(?:${go.source}|(${fo.source}))?`),nu=RegExp(`(?: ${yo.source})?`);function Vt(r,e,t){const s=r[e];return J(s)?t:_t(s)}a(Vt,"int");function iu(r,e){return[{year:Vt(r,e),month:Vt(r,e+1,1),day:Vt(r,e+2,1)},null,e+3]}a(iu,"extractISOYmd");function qt(r,e){return[{hours:Vt(r,e,0),minutes:Vt(r,e+1,0),seconds:Vt(r,e+2,0),milliseconds:Bs(r[e+3])},null,e+4]}a(qt,"extractISOTime");function cr(r,e){const t=!r[e]&&!r[e+1],s=xr(r[e+1],r[e+2]),n=t?null:Fe.instance(s);return[{},n,e+3]}a(cr,"extractISOOffset");function lr(r,e){const t=r[e]?ct.create(r[e]):null;return[{},t,e+1]}a(lr,"extractIANAZone");const ou=RegExp(`^T?${Vs.source}$`),au=/^-?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 cu(r){const[e,t,s,n,i,c,o,l,h]=r,u=e[0]==="-",m=l&&l[0]==="-",p=a((d,f=!1)=>d!==void 0&&(f||d&&u)?-d:d,"maybeNegate");return[{years:p(Tt(t)),months:p(Tt(s)),weeks:p(Tt(n)),days:p(Tt(i)),hours:p(Tt(c)),minutes:p(Tt(o)),seconds:p(Tt(l),l==="-0"),milliseconds:p(Bs(h),m)}]}a(cu,"extractISODuration");const lu={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Hs(r,e,t,s,n,i,c){const o={year:e.length===2?Us(_t(e)):_t(e),month:no.indexOf(t)+1,day:_t(s),hour:_t(n),minute:_t(i)};return c&&(o.second=_t(c)),r&&(o.weekday=r.length>3?oo.indexOf(r)+1:ao.indexOf(r)+1),o}a(Hs,"fromStrings");const uu=/^(?:(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 hu(r){const[,e,t,s,n,i,c,o,l,h,u,m]=r,p=Hs(e,n,s,t,i,c,o);let d;return l?d=lu[l]:h?d=0:d=xr(u,m),[p,new Fe(d)]}a(hu,"extractRFC2822");function du(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}a(du,"preprocessRFC2822");const fu=/^(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$/,pu=/^(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$/,gu=/^(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 bo(r){const[,e,t,s,n,i,c,o]=r;return[Hs(e,n,s,t,i,c,o),Fe.utcInstance]}a(bo,"extractRFC1123Or850");function mu(r){const[,e,t,s,n,i,c,o]=r;return[Hs(e,o,t,s,n,i,c),Fe.utcInstance]}a(mu,"extractASCII");const yu=Bt(Xl,qs),bu=Bt(Ql,qs),_u=Bt(eu,qs),wu=Bt(mo),_o=jt(iu,qt,cr,lr),Su=jt(tu,qt,cr,lr),vu=jt(ru,qt,cr,lr),Eu=jt(qt,cr,lr);function Ou(r){return Ut(r,[yu,_o],[bu,Su],[_u,vu],[wu,Eu])}a(Ou,"parseISODate");function Tu(r){return Ut(du(r),[uu,hu])}a(Tu,"parseRFC2822Date");function ku(r){return Ut(r,[fu,bo],[pu,bo],[gu,mu])}a(ku,"parseHTTPDate");function Iu(r){return Ut(r,[au,cu])}a(Iu,"parseISODuration");const Au=jt(qt);function Ru(r){return Ut(r,[ou,Au])}a(Ru,"parseISOTimeOnly");const Cu=Bt(su,nu),Nu=Bt(yo),Du=jt(qt,cr,lr);function Lu(r){return Ut(r,[Cu,_o],[Nu,Du])}a(Lu,"parseSQL");const wo="Invalid Duration",So={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}},Pu={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},...So},Ge=146097/400,Ht=146097/4800,Mu={years:{quarters:4,months:12,weeks:Ge/7,days:Ge,hours:Ge*24,minutes:Ge*24*60,seconds:Ge*24*60*60,milliseconds:Ge*24*60*60*1e3},quarters:{months:3,weeks:Ge/28,days:Ge/4,hours:Ge*24/4,minutes:Ge*24*60/4,seconds:Ge*24*60*60/4,milliseconds:Ge*24*60*60*1e3/4},months:{weeks:Ht/7,days:Ht,hours:Ht*24,minutes:Ht*24*60,seconds:Ht*24*60*60,milliseconds:Ht*24*60*60*1e3},...So},kt=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Fu=kt.slice(0).reverse();function lt(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 te(s)}a(lt,"clone$1");function vo(r,e){let t=e.milliseconds??0;for(const s of Fu.slice(1))e[s]&&(t+=e[s]*r[s].milliseconds);return t}a(vo,"durationToMillis");function Eo(r,e){const t=vo(r,e)<0?-1:1;kt.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),kt.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(Eo,"normalizeValues");function Oo(r){const e={};for(const[t,s]of Object.entries(r))s!==0&&(e[t]=s);return e}a(Oo,"removeZeroes");class te{static{a(this,"Duration")}constructor(e){const t=e.conversionAccuracy==="longterm"||!1;let s=t?Mu:Pu;e.matrix&&(s=e.matrix),this.values=e.values,this.loc=e.loc||ae.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=s,this.isLuxonDuration=!0}static fromMillis(e,t){return te.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new Ce(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new te({values:$r(e,te.normalizeUnit),loc:ae.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(bt(e))return te.fromMillis(e);if(te.isDuration(e))return e;if(typeof e=="object")return te.fromObject(e);throw new Ce(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[s]=Iu(e);return s?te.fromObject(s,t):te.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[s]=Ru(e);return s?te.fromObject(s,t):te.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new Ce("need to specify a reason the Duration is invalid");const s=e instanceof Xe?e:new Xe(e,t);if(me.throwOnInvalid)throw new cl(s);return new te({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 hi(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?Ne.create(this.loc,s).formatDurationFromString(this,e):wo}toHuman(e={}){if(!this.isValid)return wo;const t=e.showZeros!==!1,s=kt.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+=js(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},q.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?vo(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=te.fromDurationLike(e),s={};for(const n of kt)(xt(t.values,n)||xt(this.values,n))&&(s[n]=t.get(n)+this.get(n));return lt(this,{values:s},!0)}minus(e){if(!this.isValid)return this;const t=te.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]=so(e(this.values[s],s));return lt(this,{values:t},!0)}get(e){return this[te.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...$r(e,te.normalizeUnit)};return lt(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 lt(this,c)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Eo(this.matrix,e),lt(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Oo(this.normalize().shiftToAll().toObject());return lt(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(c=>te.normalizeUnit(c));const t={},s={},n=this.toObject();let i;for(const c of kt)if(e.indexOf(c)>=0){i=c;let o=0;for(const h in s)o+=this.matrix[h][c]*s[h],s[h]=0;bt(n[c])&&(o+=n[c]);const l=Math.trunc(o);t[c]=l,s[c]=(o*1e3-l*1e3)/1e3}else bt(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 Eo(this.matrix,t),lt(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 lt(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=Oo(this.values);return lt(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 kt)if(!t(this.values[s],e.values[s]))return!1;return!0}}const Wt="Invalid Interval";function xu(r,e){return!r||!r.isValid?ye.invalid("missing or invalid start"):!e||!e.isValid?ye.invalid("missing or invalid end"):e<r?ye.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(xu,"validateStartEnd");class ye{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 Ce("need to specify a reason the Interval is invalid");const s=e instanceof Xe?e:new Xe(e,t);if(me.throwOnInvalid)throw new al(s);return new ye({invalid:s})}static fromDateTimes(e,t){const s=dr(e),n=dr(t),i=xu(s,n);return i??new ye({start:s,end:n})}static after(e,t){const s=te.fromDurationLike(t),n=dr(e);return ye.fromDateTimes(n,n.plus(s))}static before(e,t){const s=te.fromDurationLike(t),n=dr(e);return ye.fromDateTimes(n.minus(s),n)}static fromISO(e,t){const[s,n]=(e||"").split("/",2);if(s&&n){let i,c;try{i=q.fromISO(s,t),c=i.isValid}catch{c=!1}let o,l;try{o=q.fromISO(n,t),l=o.isValid}catch{l=!1}if(c&&l)return ye.fromDateTimes(i,o);if(c){const h=te.fromISO(n,t);if(h.isValid)return ye.after(i,h)}else if(l){const h=te.fromISO(s,t);if(h.isValid)return ye.before(o,h)}}return ye.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?ye.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(dr).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(ye.fromDateTimes(n,o)),n=o,i+=1}return s}splitBy(e){const t=te.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(l=>l*n));i=+o>+this.e?this.e:o,c.push(ye.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:ye.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 ye.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(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),c=Array.prototype.concat(...i),o=c.sort((l,h)=>l.time-h.time);for(const l of o)s+=l.type==="s"?1:-1,s===1?t=l.time:(t&&+t!=+l.time&&n.push(ye.fromDateTimes(t,l.time)),t=null);return ye.merge(n)}difference(...e){return ye.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()})`:Wt}[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=Cr,t={}){return this.isValid?Ne.create(this.s.loc.clone(t),e).formatInterval(this):Wt}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Wt}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Wt}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Wt}toFormat(e,{separator:t=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Wt}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):te.invalid(this.invalidReason)}mapEndpoints(e){return ye.fromDateTimes(e(this.s),e(this.e))}}class jr{static{a(this,"Info")}static hasDST(e=me.defaultZone){const t=q.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return ct.isValidZone(e)}static normalizeZone(e){return yt(e,me.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||ae.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||ae.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||ae.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:s=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||ae.create(t,s,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:s=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||ae.create(t,s,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:s=null,locObj:n=null}={}){return(n||ae.create(t,s,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:s=null,locObj:n=null}={}){return(n||ae.create(t,s,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return ae.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return ae.create(t,null,"gregory").eras(e)}static features(){return{relative:Xi(),localeWeek:Qi()}}}function To(r,e){cons