@tachybase/plugin-block-calendar 0.23.8 → 0.23.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +5 -5
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +1 -1
- package/package.json +8 -7
- package/.turbo/turbo-build.log +0 -14
package/dist/client/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Z,$){typeof exports=="object"&&typeof module!="undefined"?$(exports,require("@tachybase/client"),require("react-i18next"),require("react/jsx-runtime"),require("react"),require("@tachybase/schema"),require("@ant-design/icons"),require("dayjs"),require("react-dom"),require("lodash"),require("antd"),require("@tachybase/components")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","react-i18next","react/jsx-runtime","react","@tachybase/schema","@ant-design/icons","dayjs","react-dom","lodash","antd","@tachybase/components"],$):(Z=typeof globalThis!="undefined"?globalThis:Z||self,$(Z["@tachybase/plugin-block-calendar"]={},Z["@tachybase/client"],Z["react-i18next"],Z.jsxRuntime,Z.react,Z["@tachybase/schema"],Z["@ant-design/icons"],Z.dayjs,Z["react-dom"],Z.lodash,Z.antd,Z["@tachybase/components"]))})(this,function(Z,$,le,A,g,ee,ht,ke,Ye,Cr,Ae,ka){"use strict";var V_=Object.defineProperty,R_=Object.defineProperties;var B_=Object.getOwnPropertyDescriptors;var Ma=Object.getOwnPropertySymbols;var Hf=Object.prototype.hasOwnProperty,Uf=Object.prototype.propertyIsEnumerable;var jf=Math.pow,To=(Z,$,le)=>$ in Z?V_(Z,$,{enumerable:!0,configurable:!0,writable:!0,value:le}):Z[$]=le,z=(Z,$)=>{for(var le in $||($={}))Hf.call($,le)&&To(Z,le,$[le]);if(Ma)for(var le of Ma($))Uf.call($,le)&&To(Z,le,$[le]);return Z},ve=(Z,$)=>R_(Z,B_($));var wn=(Z,$)=>{var le={};for(var A in Z)Hf.call(Z,A)&&$.indexOf(A)<0&&(le[A]=Z[A]);if(Z!=null&&Ma)for(var A of Ma(Z))$.indexOf(A)<0&&Uf.call(Z,A)&&(le[A]=Z[A]);return le};var $t=(Z,$,le)=>To(Z,typeof $!="symbol"?$+"":$,le);var Zt=(Z,$,le)=>new Promise((A,g)=>{var ee=Ye=>{try{ke(le.next(Ye))}catch(Cr){g(Cr)}},ht=Ye=>{try{ke(le.throw(Ye))}catch(Cr){g(Cr)}},ke=Ye=>Ye.done?A(Ye.value):Promise.resolve(Ye.value).then(ee,ht);ke((le=le.apply(Z,$)).next())});const Aa="calendar";function qe(e,t={}){return $.i18n.t(e,z({ns:Aa},t))}function q(e){return`{{t('${e}', { ns: '${Aa}' })}}`}function et(){return le.useTranslation(Aa)}var Ge=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});class Ct extends Error{}class Yf extends Ct{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class qf extends Ct{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class Gf extends Ct{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Kt extends Ct{}class Eo extends Ct{constructor(t){super(`Invalid unit ${t}`)}}class De extends Ct{}class pt extends Ct{constructor(){super("Zone is an abstract class")}}const I="numeric",Ze="short",Le="long",Sn={year:I,month:I,day:I},$o={year:I,month:Ze,day:I},Zf={year:I,month:Ze,day:I,weekday:Ze},Co={year:I,month:Le,day:I},_o={year:I,month:Le,day:I,weekday:Le},Mo={hour:I,minute:I},ko={hour:I,minute:I,second:I},Ao={hour:I,minute:I,second:I,timeZoneName:Ze},No={hour:I,minute:I,second:I,timeZoneName:Le},Io={hour:I,minute:I,hourCycle:"h23"},Po={hour:I,minute:I,second:I,hourCycle:"h23"},Fo={hour:I,minute:I,second:I,hourCycle:"h23",timeZoneName:Ze},Lo={hour:I,minute:I,second:I,hourCycle:"h23",timeZoneName:Le},Wo={year:I,month:I,day:I,hour:I,minute:I},zo={year:I,month:I,day:I,hour:I,minute:I,second:I},Vo={year:I,month:Ze,day:I,hour:I,minute:I},Ro={year:I,month:Ze,day:I,hour:I,minute:I,second:I},Kf={year:I,month:Ze,day:I,weekday:Ze,hour:I,minute:I},Bo={year:I,month:Le,day:I,hour:I,minute:I,timeZoneName:Ze},Ho={year:I,month:Le,day:I,hour:I,minute:I,second:I,timeZoneName:Ze},Uo={year:I,month:Le,day:I,weekday:Le,hour:I,minute:I,timeZoneName:Le},jo={year:I,month:Le,day:I,weekday:Le,hour:I,minute:I,second:I,timeZoneName:Le};class Xt{get type(){throw new pt}get name(){throw new pt}get ianaName(){return this.name}get isUniversal(){throw new pt}offsetName(t,r){throw new pt}formatOffset(t,r){throw new pt}offset(t){throw new pt}equals(t){throw new pt}get isValid(){throw new pt}}let Na=null;class _r extends Xt{static get instance(){return Na===null&&(Na=new _r),Na}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return gs(t,r,n)}formatOffset(t,r){return Nr(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let On={};function Xf(e){return On[e]||(On[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),On[e]}const Jf={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Qf(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,a,i,o,s,l,c,u]=n;return[o,a,i,s,l,c,u]}function ed(e,t){const r=e.formatToParts(t),n=[];for(let a=0;a<r.length;a++){const{type:i,value:o}=r[a],s=Jf[i];i==="era"?n[s]=o:H(s)||(n[s]=parseInt(o,10))}return n}let Dn={};class tt extends Xt{static create(t){return Dn[t]||(Dn[t]=new tt(t)),Dn[t]}static resetCache(){Dn={},On={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(r){return!1}}constructor(t){super(),this.zoneName=t,this.valid=tt.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return gs(t,r,n,this.name)}formatOffset(t,r){return Nr(this.offset(t),r)}offset(t){const r=new Date(t);if(isNaN(r))return NaN;const n=Xf(this.name);let[a,i,o,s,l,c,u]=n.formatToParts?ed(n,r):Qf(n,r);s==="BC"&&(a=-Math.abs(a)+1);const d=Cn({year:a,month:i,day:o,hour:l===24?0:l,minute:c,second:u,millisecond:0});let h=+r;const m=h%1e3;return h-=m>=0?m:1e3+m,(d-h)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let Yo={};function td(e,t={}){const r=JSON.stringify([e,t]);let n=Yo[r];return n||(n=new Intl.ListFormat(e,t),Yo[r]=n),n}let Ia={};function Pa(e,t={}){const r=JSON.stringify([e,t]);let n=Ia[r];return n||(n=new Intl.DateTimeFormat(e,t),Ia[r]=n),n}let Fa={};function rd(e,t={}){const r=JSON.stringify([e,t]);let n=Fa[r];return n||(n=new Intl.NumberFormat(e,t),Fa[r]=n),n}let La={};function nd(e,t={}){const o=t,{base:r}=o,n=wn(o,["base"]),a=JSON.stringify([e,n]);let i=La[a];return i||(i=new Intl.RelativeTimeFormat(e,t),La[a]=i),i}let Mr=null;function ad(){return Mr||(Mr=new Intl.DateTimeFormat().resolvedOptions().locale,Mr)}let qo={};function id(e){let t=qo[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,qo[e]=t}return t}function od(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const r=e.indexOf("-u-");if(r===-1)return[e];{let n,a;try{n=Pa(e).resolvedOptions(),a=e}catch(s){const l=e.substring(0,r);n=Pa(l).resolvedOptions(),a=l}const{numberingSystem:i,calendar:o}=n;return[a,i,o]}}function sd(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function ld(e){const t=[];for(let r=1;r<=12;r++){const n=U.utc(2009,r,1);t.push(e(n))}return t}function cd(e){const t=[];for(let r=1;r<=7;r++){const n=U.utc(2016,11,13+r);t.push(e(n))}return t}function Tn(e,t,r,n){const a=e.listingMode();return a==="error"?null:a==="en"?r(t):n(t)}function ud(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class fd{constructor(t,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const s=n,{padTo:a,floor:i}=s,o=wn(s,["padTo","floor"]);if(!r||Object.keys(o).length>0){const l=z({useGrouping:!1},n);n.padTo>0&&(l.minimumIntegerDigits=n.padTo),this.inf=rd(t,l)}}format(t){if(this.inf){const r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{const r=this.floor?Math.floor(t):ja(t,3);return be(r,this.padTo)}}}class dd{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let a;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const o=-1*(t.offset/60),s=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;t.offset!==0&&tt.create(s).valid?(a=s,this.dt=t):(a="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,a=t.zone.name):(a="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const i=z({},this.opts);i.timeZone=i.timeZone||a,this.dtf=Pa(r,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(r=>{if(r.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return ve(z({},r),{value:n})}else return r}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class hd{constructor(t,r,n){this.opts=z({style:"long"},n),!r&&hs()&&(this.rtf=nd(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):Pd(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}}const pd={firstDay:1,minimalDays:4,weekend:[6,7]};class re{static fromOpts(t){return re.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,a,i=!1){const o=t||ce.defaultLocale,s=o||(i?"en-US":ad()),l=r||ce.defaultNumberingSystem,c=n||ce.defaultOutputCalendar,u=Ha(a)||ce.defaultWeekSettings;return new re(s,l,c,u,o)}static resetCache(){Mr=null,Ia={},Fa={},La={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:n,weekSettings:a}={}){return re.create(t,r,n,a)}constructor(t,r,n,a,i){const[o,s,l]=od(t);this.locale=o,this.numberingSystem=r||s||null,this.outputCalendar=n||l||null,this.weekSettings=a,this.intl=sd(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=ud(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:re.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,Ha(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone(ve(z({},t),{defaultToEN:!0}))}redefaultToSystem(t={}){return this.clone(ve(z({},t),{defaultToEN:!1}))}months(t,r=!1){return Tn(this,t,ws,()=>{const n=r?{month:t,day:"numeric"}:{month:t},a=r?"format":"standalone";return this.monthsCache[a][t]||(this.monthsCache[a][t]=ld(i=>this.extract(i,n,"month"))),this.monthsCache[a][t]})}weekdays(t,r=!1){return Tn(this,t,Ds,()=>{const n=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},a=r?"format":"standalone";return this.weekdaysCache[a][t]||(this.weekdaysCache[a][t]=cd(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[a][t]})}meridiems(){return Tn(this,void 0,()=>Ts,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[U.utc(2016,11,13,9),U.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Tn(this,t,xs,()=>{const r={era:t};return this.eraCache[t]||(this.eraCache[t]=[U.utc(-40,1,1),U.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){const a=this.dtFormatter(t,r),i=a.formatToParts(),o=i.find(s=>s.type.toLowerCase()===n);return o?o.value:null}numberFormatter(t={}){return new fd(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new dd(t,this.intl,r)}relFormatter(t={}){return new hd(this.intl,this.isEnglish(),t)}listFormatter(t={}){return td(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ps()?id(this.locale):pd}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Wa=null;class Te extends Xt{static get utcInstance(){return Wa===null&&(Wa=new Te(0)),Wa}static instance(t){return t===0?Te.utcInstance:new Te(t)}static parseSpecifier(t){if(t){const r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new Te(_n(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Nr(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Nr(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return Nr(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Go extends Xt{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function mt(e,t){if(H(e)||e===null)return t;if(e instanceof Xt)return e;if(wd(e)){const r=e.toLowerCase();return r==="default"?t:r==="local"||r==="system"?_r.instance:r==="utc"||r==="gmt"?Te.utcInstance:Te.parseSpecifier(r)||tt.create(e)}else return vt(e)?Te.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Go(e)}const za={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Zo={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]},md=za.hanidec.replace(/[\[|\]]/g,"").split("");function vd(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);if(e[r].search(za.hanidec)!==-1)t+=md.indexOf(e[r]);else for(const a in Zo){const[i,o]=Zo[a];n>=i&&n<=o&&(t+=n-i)}}return parseInt(t,10)}else return t}let Jt={};function gd(){Jt={}}function Ke({numberingSystem:e},t=""){const r=e||"latn";return Jt[r]||(Jt[r]={}),Jt[r][t]||(Jt[r][t]=new RegExp(`${za[r]}${t}`)),Jt[r][t]}let Ko=()=>Date.now(),Xo="system",Jo=null,Qo=null,es=null,ts=60,rs,ns=null;class ce{static get now(){return Ko}static set now(t){Ko=t}static set defaultZone(t){Xo=t}static get defaultZone(){return mt(Xo,_r.instance)}static get defaultLocale(){return Jo}static set defaultLocale(t){Jo=t}static get defaultNumberingSystem(){return Qo}static set defaultNumberingSystem(t){Qo=t}static get defaultOutputCalendar(){return es}static set defaultOutputCalendar(t){es=t}static get defaultWeekSettings(){return ns}static set defaultWeekSettings(t){ns=Ha(t)}static get twoDigitCutoffYear(){return ts}static set twoDigitCutoffYear(t){ts=t%100}static get throwOnInvalid(){return rs}static set throwOnInvalid(t){rs=t}static resetCaches(){re.resetCache(),tt.resetCache(),U.resetCache(),gd()}}class Xe{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const as=[0,31,59,90,120,151,181,212,243,273,304,334],is=[0,31,60,91,121,152,182,213,244,274,305,335];function ze(e,t){return new Xe("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Va(e,t,r){const n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const a=n.getUTCDay();return a===0?7:a}function os(e,t,r){return r+(kr(e)?is:as)[t-1]}function ss(e,t){const r=kr(e)?is:as,n=r.findIndex(i=>i<t),a=t-r[n];return{month:n+1,day:a}}function Ra(e,t){return(e-t+7)%7+1}function xn(e,t=4,r=1){const{year:n,month:a,day:i}=e,o=os(n,a,i),s=Ra(Va(n,a,i),r);let l=Math.floor((o-s+14-t)/7),c;return l<1?(c=n-1,l=Ar(c,t,r)):l>Ar(n,t,r)?(c=n+1,l=1):c=n,z({weekYear:c,weekNumber:l,weekday:s},kn(e))}function ls(e,t=4,r=1){const{weekYear:n,weekNumber:a,weekday:i}=e,o=Ra(Va(n,1,t),r),s=er(n);let l=a*7+i-o-7+t,c;l<1?(c=n-1,l+=er(c)):l>s?(c=n+1,l-=er(n)):c=n;const{month:u,day:f}=ss(c,l);return z({year:c,month:u,day:f},kn(e))}function Ba(e){const{year:t,month:r,day:n}=e,a=os(t,r,n);return z({year:t,ordinal:a},kn(e))}function cs(e){const{year:t,ordinal:r}=e,{month:n,day:a}=ss(t,r);return z({year:t,month:n,day:a},kn(e))}function us(e,t){if(!H(e.localWeekday)||!H(e.localWeekNumber)||!H(e.localWeekYear)){if(!H(e.weekday)||!H(e.weekNumber)||!H(e.weekYear))throw new Kt("Cannot mix locale-based week fields with ISO-based week fields");return H(e.localWeekday)||(e.weekday=e.localWeekday),H(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),H(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function bd(e,t=4,r=1){const n=En(e.weekYear),a=Ve(e.weekNumber,1,Ar(e.weekYear,t,r)),i=Ve(e.weekday,1,7);return n?a?i?!1:ze("weekday",e.weekday):ze("week",e.weekNumber):ze("weekYear",e.weekYear)}function yd(e){const t=En(e.year),r=Ve(e.ordinal,1,er(e.year));return t?r?!1:ze("ordinal",e.ordinal):ze("year",e.year)}function fs(e){const t=En(e.year),r=Ve(e.month,1,12),n=Ve(e.day,1,$n(e.year,e.month));return t?r?n?!1:ze("day",e.day):ze("month",e.month):ze("year",e.year)}function ds(e){const{hour:t,minute:r,second:n,millisecond:a}=e,i=Ve(t,0,23)||t===24&&r===0&&n===0&&a===0,o=Ve(r,0,59),s=Ve(n,0,59),l=Ve(a,0,999);return i?o?s?l?!1:ze("millisecond",a):ze("second",n):ze("minute",r):ze("hour",t)}function H(e){return typeof e=="undefined"}function vt(e){return typeof e=="number"}function En(e){return typeof e=="number"&&e%1===0}function wd(e){return typeof e=="string"}function Sd(e){return Object.prototype.toString.call(e)==="[object Date]"}function hs(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function ps(){try{return typeof Intl!="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function Od(e){return Array.isArray(e)?e:[e]}function ms(e,t,r){if(e.length!==0)return e.reduce((n,a)=>{const i=[t(a),a];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function Dd(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function Qt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ha(e){if(e==null)return null;if(typeof e!="object")throw new De("Week settings must be an object");if(!Ve(e.firstDay,1,7)||!Ve(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Ve(t,1,7)))throw new De("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ve(e,t,r){return En(e)&&e>=t&&e<=r}function Td(e,t){return e-t*Math.floor(e/t)}function be(e,t=2){const r=e<0;let n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function gt(e){if(!(H(e)||e===null||e===""))return parseInt(e,10)}function _t(e){if(!(H(e)||e===null||e===""))return parseFloat(e)}function Ua(e){if(!(H(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function ja(e,t,r=!1){const n=jf(10,t);return(r?Math.trunc:Math.round)(e*n)/n}function kr(e){return e%4===0&&(e%100!==0||e%400===0)}function er(e){return kr(e)?366:365}function $n(e,t){const r=Td(t-1,12)+1,n=e+(t-r)/12;return r===2?kr(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Cn(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function vs(e,t,r){return-Ra(Va(e,1,t),r)+t-1}function Ar(e,t=4,r=1){const n=vs(e,t,r),a=vs(e+1,t,r);return(er(e)-n+a)/7}function Ya(e){return e>99?e:e>ce.twoDigitCutoffYear?1900+e:2e3+e}function gs(e,t,r,n=null){const a=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const o=z({timeZoneName:t},i),s=new Intl.DateTimeFormat(r,o).formatToParts(a).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function _n(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const n=parseInt(t,10)||0,a=r<0||Object.is(r,-0)?-n:n;return r*60+a}function bs(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new De(`Invalid unit value ${e}`);return t}function Mn(e,t){const r={};for(const n in e)if(Qt(e,n)){const a=e[n];if(a==null)continue;r[t(n)]=bs(a)}return r}function Nr(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),a=e>=0?"+":"-";switch(t){case"short":return`${a}${be(r,2)}:${be(n,2)}`;case"narrow":return`${a}${r}${n>0?`:${n}`:""}`;case"techie":return`${a}${be(r,2)}${be(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function kn(e){return Dd(e,["hour","minute","second","millisecond"])}const xd=["January","February","March","April","May","June","July","August","September","October","November","December"],ys=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ed=["J","F","M","A","M","J","J","A","S","O","N","D"];function ws(e){switch(e){case"narrow":return[...Ed];case"short":return[...ys];case"long":return[...xd];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ss=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Os=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],$d=["M","T","W","T","F","S","S"];function Ds(e){switch(e){case"narrow":return[...$d];case"short":return[...Os];case"long":return[...Ss];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ts=["AM","PM"],Cd=["Before Christ","Anno Domini"],_d=["BC","AD"],Md=["B","A"];function xs(e){switch(e){case"narrow":return[...Md];case"short":return[..._d];case"long":return[...Cd];default:return null}}function kd(e){return Ts[e.hour<12?0:1]}function Ad(e,t){return Ds(t)[e.weekday-1]}function Nd(e,t){return ws(t)[e.month-1]}function Id(e,t){return xs(t)[e.year<0?0:1]}function Pd(e,t,r="always",n=!1){const a={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(e)===-1;if(r==="auto"&&i){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${a[e][0]}`;case-1:return f?"yesterday":`last ${a[e][0]}`;case 0:return f?"today":`this ${a[e][0]}`}}const o=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,c=a[e],u=n?l?c[1]:c[2]||c[1]:l?a[e][0]:e;return o?`${s} ${u} ago`:`in ${s} ${u}`}function Es(e,t){let r="";for(const n of e)n.literal?r+=n.val:r+=t(n.val);return r}const Fd={D:Sn,DD:$o,DDD:Co,DDDD:_o,t:Mo,tt:ko,ttt:Ao,tttt:No,T:Io,TT:Po,TTT:Fo,TTTT:Lo,f:Wo,ff:Vo,fff:Bo,ffff:Uo,F:zo,FF:Ro,FFF:Ho,FFFF:jo};class xe{static create(t,r={}){return new xe(t,r)}static parseFormat(t){let r=null,n="",a=!1;const i=[];for(let o=0;o<t.length;o++){const s=t.charAt(o);s==="'"?(n.length>0&&i.push({literal:a||/^\s+$/.test(n),val:n}),r=null,n="",a=!a):a||s===r?n+=s:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=s,r=s)}return n.length>0&&i.push({literal:a||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(t){return Fd[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,z(z({},this.opts),r)).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,z(z({},this.opts),r))}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return be(t,r);const n=z({},this.opts);return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,r){const n=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(h,m)=>this.loc.extract(t,h,m),o=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",s=()=>n?kd(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(h,m)=>n?Nd(t,h):i(m?{month:h}:{month:h,day:"numeric"},"month"),c=(h,m)=>n?Ad(t,h):i(m?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),u=h=>{const m=xe.macroTokenToFormatOpts(h);return m?this.formatWithSystemDefault(t,m):h},f=h=>n?Id(t,h):i({era:h},"era"),d=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return a?i({day:"numeric"},"day"):this.num(t.day);case"dd":return a?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return a?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return a?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return a?i({month:"numeric"},"month"):this.num(t.month);case"MM":return a?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return a?i({year:"numeric"},"year"):this.num(t.year);case"yy":return a?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return a?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return a?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(h)}};return Es(xe.parseFormat(r),d)}formatDurationFromString(t,r){const n=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=l=>c=>{const u=n(c);return u?this.num(l.get(u),c.length):c},i=xe.parseFormat(r),o=i.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),s=t.shiftTo(...o.map(n).filter(l=>l));return Es(i,a(s))}}const $s=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function tr(...e){const t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function rr(...e){return t=>e.reduce(([r,n,a],i)=>{const[o,s,l]=i(t,a);return[z(z({},r),o),s||n,l]},[{},null,1]).slice(0,2)}function nr(e,...t){if(e==null)return[null,null];for(const[r,n]of t){const a=r.exec(e);if(a)return n(a)}return[null,null]}function Cs(...e){return(t,r)=>{const n={};let a;for(a=0;a<e.length;a++)n[e[a]]=gt(t[r+a]);return[n,null,r+a]}}const _s=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Ld=`(?:${_s.source}?(?:\\[(${$s.source})\\])?)?`,qa=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ms=RegExp(`${qa.source}${Ld}`),Ga=RegExp(`(?:T${Ms.source})?`),Wd=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,zd=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Vd=/(\d{4})-?(\d{3})/,Rd=Cs("weekYear","weekNumber","weekDay"),Bd=Cs("year","ordinal"),Hd=/(\d{4})-(\d\d)-(\d\d)/,ks=RegExp(`${qa.source} ?(?:${_s.source}|(${$s.source}))?`),Ud=RegExp(`(?: ${ks.source})?`);function ar(e,t,r){const n=e[t];return H(n)?r:gt(n)}function jd(e,t){return[{year:ar(e,t),month:ar(e,t+1,1),day:ar(e,t+2,1)},null,t+3]}function ir(e,t){return[{hours:ar(e,t,0),minutes:ar(e,t+1,0),seconds:ar(e,t+2,0),milliseconds:Ua(e[t+3])},null,t+4]}function Ir(e,t){const r=!e[t]&&!e[t+1],n=_n(e[t+1],e[t+2]),a=r?null:Te.instance(n);return[{},a,t+3]}function Pr(e,t){const r=e[t]?tt.create(e[t]):null;return[{},r,t+1]}const Yd=RegExp(`^T?${qa.source}$`),qd=/^-?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 Gd(e){const[t,r,n,a,i,o,s,l,c]=e,u=t[0]==="-",f=l&&l[0]==="-",d=(h,m=!1)=>h!==void 0&&(m||h&&u)?-h:h;return[{years:d(_t(r)),months:d(_t(n)),weeks:d(_t(a)),days:d(_t(i)),hours:d(_t(o)),minutes:d(_t(s)),seconds:d(_t(l),l==="-0"),milliseconds:d(Ua(c),f)}]}const Zd={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Za(e,t,r,n,a,i,o){const s={year:t.length===2?Ya(gt(t)):gt(t),month:ys.indexOf(r)+1,day:gt(n),hour:gt(a),minute:gt(i)};return o&&(s.second=gt(o)),e&&(s.weekday=e.length>3?Ss.indexOf(e)+1:Os.indexOf(e)+1),s}const Kd=/^(?:(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 Xd(e){const[,t,r,n,a,i,o,s,l,c,u,f]=e,d=Za(t,a,n,r,i,o,s);let h;return l?h=Zd[l]:c?h=0:h=_n(u,f),[d,new Te(h)]}function Jd(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Qd=/^(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$/,eh=/^(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$/,th=/^(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 As(e){const[,t,r,n,a,i,o,s]=e;return[Za(t,a,n,r,i,o,s),Te.utcInstance]}function rh(e){const[,t,r,n,a,i,o,s]=e;return[Za(t,s,r,n,a,i,o),Te.utcInstance]}const nh=tr(Wd,Ga),ah=tr(zd,Ga),ih=tr(Vd,Ga),oh=tr(Ms),Ns=rr(jd,ir,Ir,Pr),sh=rr(Rd,ir,Ir,Pr),lh=rr(Bd,ir,Ir,Pr),ch=rr(ir,Ir,Pr);function uh(e){return nr(e,[nh,Ns],[ah,sh],[ih,lh],[oh,ch])}function fh(e){return nr(Jd(e),[Kd,Xd])}function dh(e){return nr(e,[Qd,As],[eh,As],[th,rh])}function hh(e){return nr(e,[qd,Gd])}const ph=rr(ir);function mh(e){return nr(e,[Yd,ph])}const vh=tr(Hd,Ud),gh=tr(ks),bh=rr(ir,Ir,Pr);function yh(e){return nr(e,[vh,Ns],[gh,bh])}const Is="Invalid Duration",Ps={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},wh=z({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3}},Ps),Re=146097/400,or=146097/4800,Sh=z({years:{quarters:4,months:12,weeks:Re/7,days:Re,hours:Re*24,minutes:Re*24*60,seconds:Re*24*60*60,milliseconds:Re*24*60*60*1e3},quarters:{months:3,weeks:Re/28,days:Re/4,hours:Re*24/4,minutes:Re*24*60/4,seconds:Re*24*60*60/4,milliseconds:Re*24*60*60*1e3/4},months:{weeks:or/7,days:or,hours:or*24,minutes:or*24*60,seconds:or*24*60*60,milliseconds:or*24*60*60*1e3}},Ps),Mt=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Oh=Mt.slice(0).reverse();function bt(e,t,r=!1){const n={values:r?t.values:z(z({},e.values),t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new X(n)}function Fs(e,t){var r;let n=(r=t.milliseconds)!=null?r:0;for(const a of Oh.slice(1))t[a]&&(n+=t[a]*e[a].milliseconds);return n}function Ls(e,t){const r=Fs(e,t)<0?-1:1;Mt.reduceRight((n,a)=>{if(H(t[a]))return n;if(n){const i=t[n]*r,o=e[a][n],s=Math.floor(i/o);t[a]+=s*r,t[n]-=s*o*r}return a},null),Mt.reduce((n,a)=>{if(H(t[a]))return n;if(n){const i=t[n]%1;t[n]-=i,t[a]+=i*e[n][a]}return a},null)}function Dh(e){const t={};for(const[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}class X{constructor(t){const r=t.conversionAccuracy==="longterm"||!1;let n=r?Sh:wh;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||re.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return X.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new De(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new X({values:Mn(t,X.normalizeUnit),loc:re.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(vt(t))return X.fromMillis(t);if(X.isDuration(t))return t;if(typeof t=="object")return X.fromObject(t);throw new De(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){const[n]=hh(t);return n?X.fromObject(n,r):X.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){const[n]=mh(t);return n?X.fromObject(n,r):X.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new De("need to specify a reason the Duration is invalid");const n=t instanceof Xe?t:new Xe(t,r);if(ce.throwOnInvalid)throw new Gf(n);return new X({invalid:n})}static normalizeUnit(t){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!r)throw new Eo(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){const n=ve(z({},r),{floor:r.round!==!1&&r.floor!==!1});return this.isValid?xe.create(this.loc,n).formatDurationFromString(this,t):Is}toHuman(t={}){if(!this.isValid)return Is;const r=Mt.map(n=>{const a=this.values[n];return H(a)?null:this.loc.numberFormatter(ve(z({style:"unit",unitDisplay:"long"},t),{unit:n.slice(0,-1)})).format(a)}).filter(n=>n);return this.loc.listFormatter(z({type:"conjunction",style:t.listStyle||"narrow"},t)).format(r)}toObject(){return this.isValid?z({},this.values):{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=ja(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(t=ve(z({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t),{includeOffset:!1}),U.fromMillis(r,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Fs(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const r=X.fromDurationLike(t),n={};for(const a of Mt)(Qt(r.values,a)||Qt(this.values,a))&&(n[a]=r.get(a)+this.get(a));return bt(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const r=X.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=bs(t(this.values[n],n));return bt(this,{values:r},!0)}get(t){return this[X.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const r=z(z({},this.values),Mn(t,X.normalizeUnit));return bt(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n,matrix:a}={}){const o={loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:a,conversionAccuracy:n};return bt(this,o)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Ls(this.matrix,t),bt(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=Dh(this.normalize().shiftToAll().toObject());return bt(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>X.normalizeUnit(o));const r={},n={},a=this.toObject();let i;for(const o of Mt)if(t.indexOf(o)>=0){i=o;let s=0;for(const c in n)s+=this.matrix[c][o]*n[c],n[c]=0;vt(a[o])&&(s+=a[o]);const l=Math.trunc(s);r[o]=l,n[o]=(s*1e3-l*1e3)/1e3}else vt(a[o])&&(n[o]=a[o]);for(const o in n)n[o]!==0&&(r[i]+=o===i?n[o]:n[o]/this.matrix[i][o]);return Ls(this.matrix,r),bt(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return bt(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(n,a){return n===void 0||n===0?a===void 0||a===0:n===a}for(const n of Mt)if(!r(this.values[n],t.values[n]))return!1;return!0}}const sr="Invalid Interval";function Th(e,t){return!e||!e.isValid?ue.invalid("missing or invalid start"):!t||!t.isValid?ue.invalid("missing or invalid end"):t<e?ue.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class ue{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new De("need to specify a reason the Interval is invalid");const n=t instanceof Xe?t:new Xe(t,r);if(ce.throwOnInvalid)throw new qf(n);return new ue({invalid:n})}static fromDateTimes(t,r){const n=Wr(t),a=Wr(r),i=Th(n,a);return i==null?new ue({start:n,end:a}):i}static after(t,r){const n=X.fromDurationLike(r),a=Wr(t);return ue.fromDateTimes(a,a.plus(n))}static before(t,r){const n=X.fromDurationLike(r),a=Wr(t);return ue.fromDateTimes(a.minus(n),a)}static fromISO(t,r){const[n,a]=(t||"").split("/",2);if(n&&a){let i,o;try{i=U.fromISO(n,r),o=i.isValid}catch(c){o=!1}let s,l;try{s=U.fromISO(a,r),l=s.isValid}catch(c){l=!1}if(o&&l)return ue.fromDateTimes(i,s);if(o){const c=X.fromISO(a,r);if(c.isValid)return ue.after(i,c)}else if(l){const c=X.fromISO(n,r);if(c.isValid)return ue.before(s,c)}}return ue.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",r){if(!this.isValid)return NaN;const n=this.start.startOf(t,r);let a;return r!=null&&r.useLocaleWeeks?a=this.end.reconfigure({locale:n.locale}):a=this.end,a=a.startOf(t,r),Math.floor(a.diff(n,t).get(t))+(a.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?ue.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];const r=t.map(Wr).filter(o=>this.contains(o)).sort((o,s)=>o.toMillis()-s.toMillis()),n=[];let{s:a}=this,i=0;for(;a<this.e;){const o=r[i]||this.e,s=+o>+this.e?this.e:o;n.push(ue.fromDateTimes(a,s)),a=s,i+=1}return n}splitBy(t){const r=X.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,a=1,i;const o=[];for(;n<this.e;){const s=this.start.plus(r.mapUnits(l=>l*a));i=+s>+this.e?this.e:s,o.push(ue.fromDateTimes(n,i)),n=i,a+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:ue.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;const r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return ue.fromDateTimes(r,n)}static merge(t){const[r,n]=t.sort((a,i)=>a.s-i.s).reduce(([a,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[a,i.union(o)]:[a.concat([i]),o]:[a,o],[[],null]);return n&&r.push(n),r}static xor(t){let r=null,n=0;const a=[],i=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...i),s=o.sort((l,c)=>l.time-c.time);for(const l of s)n+=l.type==="s"?1:-1,n===1?r=l.time:(r&&+r!=+l.time&&a.push(ue.fromDateTimes(r,l.time)),r=null);return ue.merge(a)}difference(...t){return ue.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:sr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=Sn,r={}){return this.isValid?xe.create(this.s.loc.clone(r),t).formatInterval(this):sr}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:sr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:sr}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:sr}toFormat(t,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:sr}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):X.invalid(this.invalidReason)}mapEndpoints(t){return ue.fromDateTimes(t(this.s),t(this.e))}}class Fr{static hasDST(t=ce.defaultZone){const r=U.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return tt.isValidZone(t)}static normalizeZone(t){return mt(t,ce.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||re.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||re.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||re.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||re.create(r,n,i)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||re.create(r,n,i)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:a=null}={}){return(a||re.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:a=null}={}){return(a||re.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return re.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return re.create(r,null,"gregory").eras(t)}static features(){return{relative:hs(),localeWeek:ps()}}}function Ws(e,t){const r=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(X.fromMillis(n).as("days"))}function xh(e,t,r){const n=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=Ws(l,c);return(u-u%7)/7}],["days",Ws]],a={},i=e;let o,s;for(const[l,c]of n)r.indexOf(l)>=0&&(o=l,a[l]=c(e,t),s=i.plus(a),s>t?(a[l]--,e=i.plus(a),e>t&&(s=e,a[l]--,e=i.plus(a))):e=s);return[e,a,s,o]}function Eh(e,t,r,n){let[a,i,o,s]=xh(e,t,r);const l=t-a,c=r.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(o<t&&(o=a.plus({[s]:1})),o!==a&&(i[s]=(i[s]||0)+l/(o-a)));const u=X.fromObject(i,n);return c.length>0?X.fromMillis(l,n).shiftTo(...c).plus(u):u}const $h="missing Intl.DateTimeFormat.formatToParts support";function te(e,t=r=>r){return{regex:e,deser:([r])=>t(vd(r))}}const zs="[ ]",Vs=new RegExp(zs,"g");function Ch(e){return e.replace(/\./g,"\\.?").replace(Vs,zs)}function Rs(e){return e.replace(/\./g,"").replace(Vs," ").toLowerCase()}function Je(e,t){return e===null?null:{regex:RegExp(e.map(Ch).join("|")),deser:([r])=>e.findIndex(n=>Rs(r)===Rs(n))+t}}function Bs(e,t){return{regex:e,deser:([,r,n])=>_n(r,n),groups:t}}function An(e){return{regex:e,deser:([t])=>t}}function _h(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Mh(e,t){const r=Ke(t),n=Ke(t,"{2}"),a=Ke(t,"{3}"),i=Ke(t,"{4}"),o=Ke(t,"{6}"),s=Ke(t,"{1,2}"),l=Ke(t,"{1,3}"),c=Ke(t,"{1,6}"),u=Ke(t,"{1,9}"),f=Ke(t,"{2,4}"),d=Ke(t,"{4,6}"),h=v=>({regex:RegExp(_h(v.val)),deser:([b])=>b,literal:!0}),p=(v=>{if(e.literal)return h(v);switch(v.val){case"G":return Je(t.eras("short"),0);case"GG":return Je(t.eras("long"),0);case"y":return te(c);case"yy":return te(f,Ya);case"yyyy":return te(i);case"yyyyy":return te(d);case"yyyyyy":return te(o);case"M":return te(s);case"MM":return te(n);case"MMM":return Je(t.months("short",!0),1);case"MMMM":return Je(t.months("long",!0),1);case"L":return te(s);case"LL":return te(n);case"LLL":return Je(t.months("short",!1),1);case"LLLL":return Je(t.months("long",!1),1);case"d":return te(s);case"dd":return te(n);case"o":return te(l);case"ooo":return te(a);case"HH":return te(n);case"H":return te(s);case"hh":return te(n);case"h":return te(s);case"mm":return te(n);case"m":return te(s);case"q":return te(s);case"qq":return te(n);case"s":return te(s);case"ss":return te(n);case"S":return te(l);case"SSS":return te(a);case"u":return An(u);case"uu":return An(s);case"uuu":return te(r);case"a":return Je(t.meridiems(),0);case"kkkk":return te(i);case"kk":return te(f,Ya);case"W":return te(s);case"WW":return te(n);case"E":case"c":return te(r);case"EEE":return Je(t.weekdays("short",!1),1);case"EEEE":return Je(t.weekdays("long",!1),1);case"ccc":return Je(t.weekdays("short",!0),1);case"cccc":return Je(t.weekdays("long",!0),1);case"Z":case"ZZ":return Bs(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return Bs(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return An(/[a-z_+-/]{1,256}?/i);case" ":return An(/[^\S\n\r]/);default:return h(v)}})(e)||{invalidReason:$h};return p.token=e,p}const kh={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Ah(e,t,r){const{type:n,value:a}=e;if(n==="literal"){const l=/^\s+$/.test(a);return{literal:!l,val:l?" ":a}}const i=t[n];let o=n;n==="hour"&&(t.hour12!=null?o=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?o="hour12":o="hour24":o=r.hour12?"hour12":"hour24");let s=kh[o];if(typeof s=="object"&&(s=s[i]),s)return{literal:!1,val:s}}function Nh(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function Ih(e,t,r){const n=e.match(t);if(n){const a={};let i=1;for(const o in r)if(Qt(r,o)){const s=r[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(a[s.token.val[0]]=s.deser(n.slice(i,i+l))),i+=l}return[n,a]}else return[n,{}]}function Ph(e){const t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,n;return H(e.z)||(r=tt.create(e.z)),H(e.Z)||(r||(r=new Te(e.Z)),n=e.Z),H(e.q)||(e.M=(e.q-1)*3+1),H(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),H(e.u)||(e.S=Ua(e.u)),[Object.keys(e).reduce((i,o)=>{const s=t(o);return s&&(i[s]=e[o]),i},{}),r,n]}let Ka=null;function Fh(){return Ka||(Ka=U.fromMillis(1555555555555)),Ka}function Lh(e,t){if(e.literal)return e;const r=xe.macroTokenToFormatOpts(e.val),n=Ys(r,t);return n==null||n.includes(void 0)?e:n}function Hs(e,t){return Array.prototype.concat(...e.map(r=>Lh(r,t)))}class Us{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=Hs(xe.parseFormat(r),t),this.units=this.tokens.map(n=>Mh(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){const[n,a]=Nh(this.units);this.regex=RegExp(n,"i"),this.handlers=a}}explainFromTokens(t){if(this.isValid){const[r,n]=Ih(t,this.regex,this.handlers),[a,i,o]=n?Ph(n):[null,null,void 0];if(Qt(n,"a")&&Qt(n,"H"))throw new Kt("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:a,zone:i,specificOffset:o}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function js(e,t,r){return new Us(e,r).explainFromTokens(t)}function Wh(e,t,r){const{result:n,zone:a,specificOffset:i,invalidReason:o}=js(e,t,r);return[n,a,i,o]}function Ys(e,t){if(!e)return null;const n=xe.create(t,e).dtFormatter(Fh()),a=n.formatToParts(),i=n.resolvedOptions();return a.map(o=>Ah(o,e,i))}const Xa="Invalid DateTime",qs=864e13;function Lr(e){return new Xe("unsupported zone",`the zone "${e.name}" is not supported`)}function Ja(e){return e.weekData===null&&(e.weekData=xn(e.c)),e.weekData}function Qa(e){return e.localWeekData===null&&(e.localWeekData=xn(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function kt(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new U(ve(z(z({},r),t),{old:r}))}function Gs(e,t,r){let n=e-t*60*1e3;const a=r.offset(n);if(t===a)return[n,t];n-=(a-t)*60*1e3;const i=r.offset(n);return a===i?[n,a]:[e-Math.min(a,i)*60*1e3,Math.max(a,i)]}function Nn(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function In(e,t,r){return Gs(Cn(e),t,r)}function Zs(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),a=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i=ve(z({},e.c),{year:n,month:a,day:Math.min(e.c.day,$n(n,a))+Math.trunc(t.days)+Math.trunc(t.weeks)*7}),o=X.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Cn(i);let[l,c]=Gs(s,r,e.zone);return o!==0&&(l+=o,c=e.zone.offset(l)),{ts:l,o:c}}function lr(e,t,r,n,a,i){const{setZone:o,zone:s}=r;if(e&&Object.keys(e).length!==0||t){const l=t||s,c=U.fromObject(e,ve(z({},r),{zone:l,specificOffset:i}));return o?c:c.setZone(s)}else return U.invalid(new Xe("unparsable",`the input "${a}" can't be parsed as ${n}`))}function Pn(e,t,r=!0){return e.isValid?xe.create(re.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function ei(e,t){const r=e.c.year>9999||e.c.year<0;let n="";return r&&e.c.year>=0&&(n+="+"),n+=be(e.c.year,r?6:4),t?(n+="-",n+=be(e.c.month),n+="-",n+=be(e.c.day)):(n+=be(e.c.month),n+=be(e.c.day)),n}function Ks(e,t,r,n,a,i){let o=be(e.c.hour);return t?(o+=":",o+=be(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(o+=":")):o+=be(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(o+=be(e.c.second),(e.c.millisecond!==0||!n)&&(o+=".",o+=be(e.c.millisecond,3))),a&&(e.isOffsetFixed&&e.offset===0&&!i?o+="Z":e.o<0?(o+="-",o+=be(Math.trunc(-e.o/60)),o+=":",o+=be(Math.trunc(-e.o%60))):(o+="+",o+=be(Math.trunc(e.o/60)),o+=":",o+=be(Math.trunc(e.o%60)))),i&&(o+="["+e.zone.ianaName+"]"),o}const Xs={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},zh={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Vh={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Js=["year","month","day","hour","minute","second","millisecond"],Rh=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Bh=["year","ordinal","hour","minute","second","millisecond"];function Hh(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Eo(e);return t}function Qs(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Hh(e)}}function Uh(e){return Ln[e]||(Fn===void 0&&(Fn=ce.now()),Ln[e]=e.offset(Fn)),Ln[e]}function el(e,t){const r=mt(t.zone,ce.defaultZone);if(!r.isValid)return U.invalid(Lr(r));const n=re.fromObject(t);let a,i;if(H(e.year))a=ce.now();else{for(const l of Js)H(e[l])&&(e[l]=Xs[l]);const o=fs(e)||ds(e);if(o)return U.invalid(o);const s=Uh(r);[a,i]=In(e,s,r)}return new U({ts:a,zone:r,loc:n,o:i})}function tl(e,t,r){const n=H(r.round)?!0:r.round,a=(o,s)=>(o=ja(o,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(o,s)),i=o=>r.calendary?t.hasSame(e,o)?0:t.startOf(o).diff(e.startOf(o),o).get(o):t.diff(e,o).get(o);if(r.unit)return a(i(r.unit),r.unit);for(const o of r.units){const s=i(o);if(Math.abs(s)>=1)return a(s,o)}return a(e>t?-0:0,r.units[r.units.length-1])}function rl(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}let Fn,Ln={};class U{constructor(t){const r=t.zone||ce.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new Xe("invalid input"):null)||(r.isValid?null:Lr(r));this.ts=H(t.ts)?ce.now():t.ts;let a=null,i=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[a,i]=[t.old.c,t.old.o];else{const s=vt(t.o)&&!t.old?t.o:r.offset(this.ts);a=Nn(this.ts,s),n=Number.isNaN(a.year)?new Xe("invalid input"):null,a=n?null:a,i=n?null:s}this._zone=r,this.loc=t.loc||re.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=a,this.o=i,this.isLuxonDateTime=!0}static now(){return new U({})}static local(){const[t,r]=rl(arguments),[n,a,i,o,s,l,c]=r;return el({year:n,month:a,day:i,hour:o,minute:s,second:l,millisecond:c},t)}static utc(){const[t,r]=rl(arguments),[n,a,i,o,s,l,c]=r;return t.zone=Te.utcInstance,el({year:n,month:a,day:i,hour:o,minute:s,second:l,millisecond:c},t)}static fromJSDate(t,r={}){const n=Sd(t)?t.valueOf():NaN;if(Number.isNaN(n))return U.invalid("invalid input");const a=mt(r.zone,ce.defaultZone);return a.isValid?new U({ts:n,zone:a,loc:re.fromObject(r)}):U.invalid(Lr(a))}static fromMillis(t,r={}){if(vt(t))return t<-qs||t>qs?U.invalid("Timestamp out of range"):new U({ts:t,zone:mt(r.zone,ce.defaultZone),loc:re.fromObject(r)});throw new De(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(vt(t))return new U({ts:t*1e3,zone:mt(r.zone,ce.defaultZone),loc:re.fromObject(r)});throw new De("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};const n=mt(r.zone,ce.defaultZone);if(!n.isValid)return U.invalid(Lr(n));const a=re.fromObject(r),i=Mn(t,Qs),{minDaysInFirstWeek:o,startOfWeek:s}=us(i,a),l=ce.now(),c=H(r.specificOffset)?n.offset(l):r.specificOffset,u=!H(i.ordinal),f=!H(i.year),d=!H(i.month)||!H(i.day),h=f||d,m=i.weekYear||i.weekNumber;if((h||u)&&m)throw new Kt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&u)throw new Kt("Can't mix ordinal dates with month/day");const p=m||i.weekday&&!h;let v,b,y=Nn(l,c);p?(v=Rh,b=zh,y=xn(y,o,s)):u?(v=Bh,b=Vh,y=Ba(y)):(v=Js,b=Xs);let O=!1;for(const M of v){const N=i[M];H(N)?O?i[M]=b[M]:i[M]=y[M]:O=!0}const S=p?bd(i,o,s):u?yd(i):fs(i),w=S||ds(i);if(w)return U.invalid(w);const D=p?ls(i,o,s):u?cs(i):i,[T,x]=In(D,c,n),E=new U({ts:T,zone:n,o:x,loc:a});return i.weekday&&h&&t.weekday!==E.weekday?U.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${E.toISO()}`):E.isValid?E:U.invalid(E.invalid)}static fromISO(t,r={}){const[n,a]=uh(t);return lr(n,a,r,"ISO 8601",t)}static fromRFC2822(t,r={}){const[n,a]=fh(t);return lr(n,a,r,"RFC 2822",t)}static fromHTTP(t,r={}){const[n,a]=dh(t);return lr(n,a,r,"HTTP",r)}static fromFormat(t,r,n={}){if(H(t)||H(r))throw new De("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:i=null}=n,o=re.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0}),[s,l,c,u]=Wh(o,t,r);return u?U.invalid(u):lr(s,l,n,`format ${r}`,t,c)}static fromString(t,r,n={}){return U.fromFormat(t,r,n)}static fromSQL(t,r={}){const[n,a]=yh(t);return lr(n,a,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new De("need to specify a reason the DateTime is invalid");const n=t instanceof Xe?t:new Xe(t,r);if(ce.throwOnInvalid)throw new Yf(n);return new U({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){const n=Ys(t,re.fromObject(r));return n?n.map(a=>a?a.val:null).join(""):null}static expandFormat(t,r={}){return Hs(xe.parseFormat(t),re.fromObject(r)).map(a=>a.val).join("")}static resetCache(){Fn=void 0,Ln={}}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ja(this).weekYear:NaN}get weekNumber(){return this.isValid?Ja(this).weekNumber:NaN}get weekday(){return this.isValid?Ja(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Qa(this).weekday:NaN}get localWeekNumber(){return this.isValid?Qa(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Qa(this).weekYear:NaN}get ordinal(){return this.isValid?Ba(this.c).ordinal:NaN}get monthShort(){return this.isValid?Fr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Fr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Fr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Fr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,r=6e4,n=Cn(this.c),a=this.zone.offset(n-t),i=this.zone.offset(n+t),o=this.zone.offset(n-a*r),s=this.zone.offset(n-i*r);if(o===s)return[this];const l=n-o*r,c=n-s*r,u=Nn(l,o),f=Nn(c,s);return u.hour===f.hour&&u.minute===f.minute&&u.second===f.second&&u.millisecond===f.millisecond?[kt(this,{ts:l}),kt(this,{ts:c})]:[this]}get isInLeapYear(){return kr(this.year)}get daysInMonth(){return $n(this.year,this.month)}get daysInYear(){return this.isValid?er(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ar(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ar(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:r,numberingSystem:n,calendar:a}=xe.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:a}}toUTC(t=0,r={}){return this.setZone(Te.instance(t),r)}toLocal(){return this.setZone(ce.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=mt(t,ce.defaultZone),t.equals(this.zone))return this;if(t.isValid){let a=this.ts;if(r||n){const i=t.offset(this.ts),o=this.toObject();[a]=In(o,i,t)}return kt(this,{ts:a,zone:t})}else return U.invalid(Lr(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){const a=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return kt(this,{loc:a})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const r=Mn(t,Qs),{minDaysInFirstWeek:n,startOfWeek:a}=us(r,this.loc),i=!H(r.weekYear)||!H(r.weekNumber)||!H(r.weekday),o=!H(r.ordinal),s=!H(r.year),l=!H(r.month)||!H(r.day),c=s||l,u=r.weekYear||r.weekNumber;if((c||o)&&u)throw new Kt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new Kt("Can't mix ordinal dates with month/day");let f;i?f=ls(z(z({},xn(this.c,n,a)),r),n,a):H(r.ordinal)?(f=z(z({},this.toObject()),r),H(r.day)&&(f.day=Math.min($n(f.year,f.month),f.day))):f=cs(z(z({},Ba(this.c)),r));const[d,h]=In(f,this.o,this.zone);return kt(this,{ts:d,o:h})}plus(t){if(!this.isValid)return this;const r=X.fromDurationLike(t);return kt(this,Zs(this,r))}minus(t){if(!this.isValid)return this;const r=X.fromDurationLike(t).negate();return kt(this,Zs(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const n={},a=X.normalizeUnit(t);switch(a){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(a==="weeks")if(r){const i=this.loc.getStartOfWeek(),{weekday:o}=this;o<i&&(n.weekNumber=this.weekNumber-1),n.weekday=i}else n.weekday=1;if(a==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(t,r){return this.isValid?this.plus({[t]:1}).startOf(t,r).minus(1):this}toFormat(t,r={}){return this.isValid?xe.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):Xa}toLocaleString(t=Sn,r={}){return this.isValid?xe.create(this.loc.clone(r),t).formatDateTime(this):Xa}toLocaleParts(t={}){return this.isValid?xe.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:a=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o=t==="extended";let s=ei(this,o);return s+="T",s+=Ks(this,o,r,n,a,i),s}toISODate({format:t="extended"}={}){return this.isValid?ei(this,t==="extended"):null}toISOWeekDate(){return Pn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:a=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(a?"T":"")+Ks(this,o==="extended",r,t,n,i):null}toRFC2822(){return Pn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Pn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ei(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let a="HH:mm:ss.SSS";return(r||t)&&(n&&(a+=" "),r?a+="z":t&&(a+="ZZ")),Pn(this,a,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Xa}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const r=z({},this.c);return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return X.invalid("created by diffing an invalid DateTime");const a=z({locale:this.locale,numberingSystem:this.numberingSystem},n),i=Od(r).map(X.normalizeUnit),o=t.valueOf()>this.valueOf(),s=o?this:t,l=o?t:this,c=Eh(s,l,i,a);return o?c.negate():c}diffNow(t="milliseconds",r={}){return this.diff(U.now(),t,r)}until(t){return this.isValid?ue.fromDateTimes(this,t):this}hasSame(t,r,n){if(!this.isValid)return!1;const a=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(r,n)<=a&&a<=i.endOf(r,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const r=t.base||U.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0;let a=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(a=t.unit,i=void 0),tl(r,this.plus(n),ve(z({},t),{numeric:"always",units:a,unit:i}))}toRelativeCalendar(t={}){return this.isValid?tl(t.base||U.fromObject({},{zone:this.zone}),this,ve(z({},t),{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...t){if(!t.every(U.isDateTime))throw new De("min requires all arguments be DateTimes");return ms(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(U.isDateTime))throw new De("max requires all arguments be DateTimes");return ms(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){const{locale:a=null,numberingSystem:i=null}=n,o=re.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return js(o,t,r)}static fromStringExplain(t,r,n={}){return U.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){const{locale:n=null,numberingSystem:a=null}=r,i=re.fromOpts({locale:n,numberingSystem:a,defaultToEN:!0});return new Us(i,t)}static fromFormatParser(t,r,n={}){if(H(t)||H(r))throw new De("fromFormatParser requires an input string and a format parser");const{locale:a=null,numberingSystem:i=null}=n,o=re.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});if(!o.equals(r.locale))throw new De(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${r.locale}`);const{result:s,zone:l,specificOffset:c,invalidReason:u}=r.explainFromTokens(t);return u?U.invalid(u):lr(s,l,n,`format ${r.format}`,t,c)}static get DATE_SHORT(){return Sn}static get DATE_MED(){return $o}static get DATE_MED_WITH_WEEKDAY(){return Zf}static get DATE_FULL(){return Co}static get DATE_HUGE(){return _o}static get TIME_SIMPLE(){return Mo}static get TIME_WITH_SECONDS(){return ko}static get TIME_WITH_SHORT_OFFSET(){return Ao}static get TIME_WITH_LONG_OFFSET(){return No}static get TIME_24_SIMPLE(){return Io}static get TIME_24_WITH_SECONDS(){return Po}static get TIME_24_WITH_SHORT_OFFSET(){return Fo}static get TIME_24_WITH_LONG_OFFSET(){return Lo}static get DATETIME_SHORT(){return Wo}static get DATETIME_SHORT_WITH_SECONDS(){return zo}static get DATETIME_MED(){return Vo}static get DATETIME_MED_WITH_SECONDS(){return Ro}static get DATETIME_MED_WITH_WEEKDAY(){return Kf}static get DATETIME_FULL(){return Bo}static get DATETIME_FULL_WITH_SECONDS(){return Ho}static get DATETIME_HUGE(){return Uo}static get DATETIME_HUGE_WITH_SECONDS(){return jo}}function Wr(e){if(U.isDateTime(e))return e;if(e&&e.valueOf&&vt(e.valueOf()))return U.fromJSDate(e);if(e&&typeof e=="object")return U.fromObject(e);throw new De(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const jh="3.5.0";Fe.DateTime=U,Fe.Duration=X,Fe.FixedOffsetZone=Te,Fe.IANAZone=tt,Fe.Info=Fr,Fe.Interval=ue,Fe.InvalidZone=Go,Fe.Settings=ce,Fe.SystemZone=_r,Fe.VERSION=jh,Fe.Zone=Xt;var At=Fe;Y.prototype.addYear=function(){this._date=this._date.plus({years:1})},Y.prototype.addMonth=function(){this._date=this._date.plus({months:1}).startOf("month")},Y.prototype.addDay=function(){this._date=this._date.plus({days:1}).startOf("day")},Y.prototype.addHour=function(){var e=this._date;this._date=this._date.plus({hours:1}).startOf("hour"),this._date<=e&&(this._date=this._date.plus({hours:1}))},Y.prototype.addMinute=function(){var e=this._date;this._date=this._date.plus({minutes:1}).startOf("minute"),this._date<e&&(this._date=this._date.plus({hours:1}))},Y.prototype.addSecond=function(){var e=this._date;this._date=this._date.plus({seconds:1}).startOf("second"),this._date<e&&(this._date=this._date.plus({hours:1}))},Y.prototype.subtractYear=function(){this._date=this._date.minus({years:1})},Y.prototype.subtractMonth=function(){this._date=this._date.minus({months:1}).endOf("month").startOf("second")},Y.prototype.subtractDay=function(){this._date=this._date.minus({days:1}).endOf("day").startOf("second")},Y.prototype.subtractHour=function(){var e=this._date;this._date=this._date.minus({hours:1}).endOf("hour").startOf("second"),this._date>=e&&(this._date=this._date.minus({hours:1}))},Y.prototype.subtractMinute=function(){var e=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second"),this._date>e&&(this._date=this._date.minus({hours:1}))},Y.prototype.subtractSecond=function(){var e=this._date;this._date=this._date.minus({seconds:1}).startOf("second"),this._date>e&&(this._date=this._date.minus({hours:1}))},Y.prototype.getDate=function(){return this._date.day},Y.prototype.getFullYear=function(){return this._date.year},Y.prototype.getDay=function(){var e=this._date.weekday;return e==7?0:e},Y.prototype.getMonth=function(){return this._date.month-1},Y.prototype.getHours=function(){return this._date.hour},Y.prototype.getMinutes=function(){return this._date.minute},Y.prototype.getSeconds=function(){return this._date.second},Y.prototype.getMilliseconds=function(){return this._date.millisecond},Y.prototype.getTime=function(){return this._date.valueOf()},Y.prototype.getUTCDate=function(){return this._getUTC().day},Y.prototype.getUTCFullYear=function(){return this._getUTC().year},Y.prototype.getUTCDay=function(){var e=this._getUTC().weekday;return e==7?0:e},Y.prototype.getUTCMonth=function(){return this._getUTC().month-1},Y.prototype.getUTCHours=function(){return this._getUTC().hour},Y.prototype.getUTCMinutes=function(){return this._getUTC().minute},Y.prototype.getUTCSeconds=function(){return this._getUTC().second},Y.prototype.toISOString=function(){return this._date.toUTC().toISO()},Y.prototype.toJSON=function(){return this._date.toJSON()},Y.prototype.setDate=function(e){this._date=this._date.set({day:e})},Y.prototype.setFullYear=function(e){this._date=this._date.set({year:e})},Y.prototype.setDay=function(e){this._date=this._date.set({weekday:e})},Y.prototype.setMonth=function(e){this._date=this._date.set({month:e+1})},Y.prototype.setHours=function(e){this._date=this._date.set({hour:e})},Y.prototype.setMinutes=function(e){this._date=this._date.set({minute:e})},Y.prototype.setSeconds=function(e){this._date=this._date.set({second:e})},Y.prototype.setMilliseconds=function(e){this._date=this._date.set({millisecond:e})},Y.prototype._getUTC=function(){return this._date.toUTC()},Y.prototype.toString=function(){return this.toDate().toString()},Y.prototype.toDate=function(){return this._date.toJSDate()},Y.prototype.isLastDayOfMonth=function(){var e=this._date.plus({days:1}).startOf("day");return this._date.month!==e.month},Y.prototype.isLastWeekdayOfMonth=function(){var e=this._date.plus({days:7}).startOf("day");return this._date.month!==e.month};function Y(e,t){var r={zone:t};if(e?e instanceof Y?this._date=e._date:e instanceof Date?this._date=At.DateTime.fromJSDate(e,r):typeof e=="number"?this._date=At.DateTime.fromMillis(e,r):typeof e=="string"&&(this._date=At.DateTime.fromISO(e,r),this._date.isValid||(this._date=At.DateTime.fromRFC2822(e,r)),this._date.isValid||(this._date=At.DateTime.fromSQL(e,r)),this._date.isValid||(this._date=At.DateTime.fromFormat(e,"EEE, d MMM yyyy HH:mm:ss",r))):this._date=At.DateTime.local(),!this._date||!this._date.isValid)throw new Error("CronDate: unhandled timestamp: "+JSON.stringify(e));t&&t!==this._date.zoneName&&(this._date=this._date.setZone(t))}var Yh=Y;function Nt(e){return{start:e,count:1}}function nl(e,t){e.end=t,e.step=t-e.start,e.count=2}function ti(e,t,r){t&&(t.count===2?(e.push(Nt(t.start)),e.push(Nt(t.end))):e.push(t)),r&&e.push(r)}function qh(e){for(var t=[],r=void 0,n=0;n<e.length;n++){var a=e[n];typeof a!="number"?(ti(t,r,Nt(a)),r=void 0):r?r.count===1?nl(r,a):r.step===a-r.end?(r.count++,r.end=a):r.count===2?(t.push(Nt(r.start)),r=Nt(r.end),nl(r,a)):(ti(t,r),r=Nt(a)):r=Nt(a)}return ti(t,r),t}var Gh=qh,Zh=Gh;function Kh(e,t,r){var n=Zh(e);if(n.length===1){var a=n[0],i=a.step;if(i===1&&a.start===t&&a.end===r)return"*";if(i!==1&&a.start===t&&a.end===r-i+1)return"*/"+i}for(var o=[],s=0,l=n.length;s<l;++s){var c=n[s];if(c.count===1){o.push(c.start);continue}var i=c.step;if(c.step===1){o.push(c.start+"-"+c.end);continue}var u=c.start==0?c.count-1:c.count;c.step*u>c.end?o=o.concat(Array.from({length:c.end-c.start+1}).map(function(d,h){var m=c.start+h;return(m-c.start)%c.step===0?m:null}).filter(function(d){return d!=null})):c.end===r-c.step+1?o.push(c.start+"/"+c.step):o.push(c.start+"-"+c.end+"/"+c.step)}return o.join(",")}var Xh=Kh,It=Yh,Jh=Xh,al=1e4;function L(e,t){this._options=t,this._utc=t.utc||!1,this._tz=this._utc?"UTC":t.tz,this._currentDate=new It(t.currentDate,this._tz),this._startDate=t.startDate?new It(t.startDate,this._tz):null,this._endDate=t.endDate?new It(t.endDate,this._tz):null,this._isIterator=t.iterator||!1,this._hasIterated=!1,this._nthDayOfWeek=t.nthDayOfWeek||0,this.fields=L._freezeFields(e)}L.map=["second","minute","hour","dayOfMonth","month","dayOfWeek"],L.predefined={"@yearly":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@hourly":"0 * * * *"},L.constraints=[{min:0,max:59,chars:[]},{min:0,max:59,chars:[]},{min:0,max:23,chars:[]},{min:1,max:31,chars:["L"]},{min:1,max:12,chars:[]},{min:0,max:7,chars:["L"]}],L.daysInMonth=[31,29,31,30,31,30,31,31,30,31,30,31],L.aliases={month:{jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},dayOfWeek:{sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}},L.parseDefaults=["0","*","*","*","*","*"],L.standardValidCharacters=/^[,*\d/-]+$/,L.dayOfWeekValidCharacters=/^[?,*\dL#/-]+$/,L.dayOfMonthValidCharacters=/^[?,*\dL/-]+$/,L.validCharacters={second:L.standardValidCharacters,minute:L.standardValidCharacters,hour:L.standardValidCharacters,dayOfMonth:L.dayOfMonthValidCharacters,month:L.standardValidCharacters,dayOfWeek:L.dayOfWeekValidCharacters},L._isValidConstraintChar=function(t,r){return typeof r!="string"?!1:t.chars.some(function(n){return r.indexOf(n)>-1})},L._parseField=function(t,r,n){switch(t){case"month":case"dayOfWeek":var a=L.aliases[t];r=r.replace(/[a-z]{3}/gi,function(l){if(l=l.toLowerCase(),typeof a[l]!="undefined")return a[l];throw new Error('Validation error, cannot resolve alias "'+l+'"')});break}if(!L.validCharacters[t].test(r))throw new Error("Invalid characters, got value: "+r);r.indexOf("*")!==-1?r=r.replace(/\*/g,n.min+"-"+n.max):r.indexOf("?")!==-1&&(r=r.replace(/\?/g,n.min+"-"+n.max));function i(l){var c=[];function u(m){if(m instanceof Array)for(var p=0,v=m.length;p<v;p++){var b=m[p];if(L._isValidConstraintChar(n,b)){c.push(b);continue}if(typeof b!="number"||Number.isNaN(b)||b<n.min||b>n.max)throw new Error("Constraint error, got value "+b+" expected range "+n.min+"-"+n.max);c.push(b)}else{if(L._isValidConstraintChar(n,m)){c.push(m);return}var y=+m;if(Number.isNaN(y)||y<n.min||y>n.max)throw new Error("Constraint error, got value "+m+" expected range "+n.min+"-"+n.max);t==="dayOfWeek"&&(y=y%7),c.push(y)}}var f=l.split(",");if(!f.every(function(m){return m.length>0}))throw new Error("Invalid list value format");if(f.length>1)for(var d=0,h=f.length;d<h;d++)u(o(f[d]));else u(o(l));return c.sort(L._sortCompareFn),c}function o(l){var c=1,u=l.split("/");if(u.length>2)throw new Error("Invalid repeat: "+l);return u.length>1?(u[0]==+u[0]&&(u=[u[0]+"-"+n.max,u[1]]),s(u[0],u[u.length-1])):s(l,c)}function s(l,c){var u=[],f=l.split("-");if(f.length>1){if(f.length<2)return+l;if(!f[0].length){if(!f[1].length)throw new Error("Invalid range: "+l);return+l}var d=+f[0],h=+f[1];if(Number.isNaN(d)||Number.isNaN(h)||d<n.min||h>n.max)throw new Error("Constraint error, got range "+d+"-"+h+" expected range "+n.min+"-"+n.max);if(d>h)throw new Error("Invalid range: "+l);var m=+c;if(Number.isNaN(m)||m<=0)throw new Error("Constraint error, cannot repeat at every "+m+" time.");t==="dayOfWeek"&&h%7===0&&u.push(0);for(var p=d,v=h;p<=v;p++){var b=u.indexOf(p)!==-1;!b&&m>0&&m%c===0?(m=1,u.push(p)):m++}return u}return Number.isNaN(+l)?l:+l}return i(r)},L._sortCompareFn=function(e,t){var r=typeof e=="number",n=typeof t=="number";return r&&n?e-t:!r&&n?1:r&&!n?-1:e.localeCompare(t)},L._handleMaxDaysInMonth=function(e){if(e.month.length===1){var t=L.daysInMonth[e.month[0]-1];if(e.dayOfMonth[0]>t)throw new Error("Invalid explicit day of month definition");return e.dayOfMonth.filter(function(r){return r==="L"?!0:r<=t}).sort(L._sortCompareFn)}},L._freezeFields=function(e){for(var t=0,r=L.map.length;t<r;++t){var n=L.map[t],a=e[n];e[n]=Object.freeze(a)}return Object.freeze(e)},L.prototype._applyTimezoneShift=function(e,t,r){if(r==="Month"||r==="Day"){var n=e.getTime();e[t+r]();var a=e.getTime();n===a&&(e.getMinutes()===0&&e.getSeconds()===0?e.addHour():e.getMinutes()===59&&e.getSeconds()===59&&e.subtractHour())}else{var i=e.getHours();e[t+r]();var o=e.getHours(),s=o-i;s===2?this.fields.hour.length!==24&&(this._dstStart=o):s===0&&e.getMinutes()===0&&e.getSeconds()===0&&this.fields.hour.length!==24&&(this._dstEnd=o)}},L.prototype._findSchedule=function(t){function r(b,y){for(var O=0,S=y.length;O<S;O++)if(y[O]>=b)return y[O]===b;return y[0]===b}function n(b,y){if(y<6){if(b.getDate()<8&&y===1)return!0;var O=b.getDate()%7?1:0,S=b.getDate()-b.getDate()%7,w=Math.floor(S/7)+O;return w===y}return!1}function a(b){return b.length>0&&b.some(function(y){return typeof y=="string"&&y.indexOf("L")>=0})}t=t||!1;var i=t?"subtract":"add",o=new It(this._currentDate,this._tz),s=this._startDate,l=this._endDate,c=o.getTime(),u=0;function f(b){return b.some(function(y){if(!a([y]))return!1;var O=Number.parseInt(y[0])%7;if(Number.isNaN(O))throw new Error("Invalid last weekday of the month expression: "+y);return o.getDay()===O&&o.isLastWeekdayOfMonth()})}for(;u<al;){if(u++,t){if(s&&o.getTime()-s.getTime()<0)throw new Error("Out of the timespan range")}else if(l&&l.getTime()-o.getTime()<0)throw new Error("Out of the timespan range");var d=r(o.getDate(),this.fields.dayOfMonth);a(this.fields.dayOfMonth)&&(d=d||o.isLastDayOfMonth());var h=r(o.getDay(),this.fields.dayOfWeek);a(this.fields.dayOfWeek)&&(h=h||f(this.fields.dayOfWeek));var m=this.fields.dayOfMonth.length>=L.daysInMonth[o.getMonth()],p=this.fields.dayOfWeek.length===L.constraints[5].max-L.constraints[5].min+1,v=o.getHours();if(!d&&(!h||p)){this._applyTimezoneShift(o,i,"Day");continue}if(!m&&p&&!d){this._applyTimezoneShift(o,i,"Day");continue}if(m&&!p&&!h){this._applyTimezoneShift(o,i,"Day");continue}if(this._nthDayOfWeek>0&&!n(o,this._nthDayOfWeek)){this._applyTimezoneShift(o,i,"Day");continue}if(!r(o.getMonth()+1,this.fields.month)){this._applyTimezoneShift(o,i,"Month");continue}if(r(v,this.fields.hour)){if(this._dstEnd===v&&!t){this._dstEnd=null,this._applyTimezoneShift(o,"add","Hour");continue}}else if(this._dstStart!==v){this._dstStart=null,this._applyTimezoneShift(o,i,"Hour");continue}else if(!r(v-1,this.fields.hour)){o[i+"Hour"]();continue}if(!r(o.getMinutes(),this.fields.minute)){this._applyTimezoneShift(o,i,"Minute");continue}if(!r(o.getSeconds(),this.fields.second)){this._applyTimezoneShift(o,i,"Second");continue}if(c===o.getTime()){i==="add"||o.getMilliseconds()===0?this._applyTimezoneShift(o,i,"Second"):o.setMilliseconds(0);continue}break}if(u>=al)throw new Error("Invalid expression, loop limit exceeded");return this._currentDate=new It(o,this._tz),this._hasIterated=!0,o},L.prototype.next=function(){var t=this._findSchedule();return this._isIterator?{value:t,done:!this.hasNext()}:t},L.prototype.prev=function(){var t=this._findSchedule(!0);return this._isIterator?{value:t,done:!this.hasPrev()}:t},L.prototype.hasNext=function(){var e=this._currentDate,t=this._hasIterated;try{return this._findSchedule(),!0}catch(r){return!1}finally{this._currentDate=e,this._hasIterated=t}},L.prototype.hasPrev=function(){var e=this._currentDate,t=this._hasIterated;try{return this._findSchedule(!0),!0}catch(r){return!1}finally{this._currentDate=e,this._hasIterated=t}},L.prototype.iterate=function(t,r){var n=[];if(t>=0)for(var a=0,i=t;a<i;a++)try{var o=this.next();n.push(o),r&&r(o,a)}catch(s){break}else for(var a=0,i=t;a>i;a--)try{var o=this.prev();n.push(o),r&&r(o,a)}catch(c){break}return n},L.prototype.reset=function(t){this._currentDate=new It(t||this._options.currentDate)},L.prototype.stringify=function(t){for(var r=[],n=t?0:1,a=L.map.length;n<a;++n){var i=L.map[n],o=this.fields[i],s=L.constraints[n];i==="dayOfMonth"&&this.fields.month.length===1?s={min:1,max:L.daysInMonth[this.fields.month[0]-1]}:i==="dayOfWeek"&&(s={min:0,max:6},o=o[o.length-1]===7?o.slice(0,-1):o),r.push(Jh(o,s.min,s.max))}return r.join(" ")},L.parse=function(t,r){var n=this;typeof r=="function"&&(r={});function a(i,o){o||(o={}),typeof o.currentDate=="undefined"&&(o.currentDate=new It(void 0,n._tz)),L.predefined[i]&&(i=L.predefined[i]);var s=[],l=(i+"").trim().split(/\s+/);if(l.length>6)throw new Error("Invalid cron expression");for(var c=L.map.length-l.length,u=0,f=L.map.length;u<f;++u){var d=L.map[u],h=l[l.length>f?u:u-c];if(u<c||!h)s.push(L._parseField(d,L.parseDefaults[u],L.constraints[u]));else{var m=d==="dayOfWeek"?y(h):h;s.push(L._parseField(d,m,L.constraints[u]))}}for(var p={},u=0,f=L.map.length;u<f;u++){var v=L.map[u];p[v]=s[u]}var b=L._handleMaxDaysInMonth(p);return p.dayOfMonth=b||p.dayOfMonth,new L(p,o);function y(O){var S=O.split("#");if(S.length>1){var w=+S[S.length-1];if(/,/.test(O))throw new Error("Constraint error, invalid dayOfWeek `#` and `,` special characters are incompatible");if(/\//.test(O))throw new Error("Constraint error, invalid dayOfWeek `#` and `/` special characters are incompatible");if(/-/.test(O))throw new Error("Constraint error, invalid dayOfWeek `#` and `-` special characters are incompatible");if(S.length>2||Number.isNaN(w)||w<1||w>5)throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return o.nthDayOfWeek=w,S[0]}return O}}return a(t,r)},L.fieldsToExpression=function(t,r){function n(d,h,m){if(!h)throw new Error("Validation error, Field "+d+" is missing");if(h.length===0)throw new Error("Validation error, Field "+d+" contains no values");for(var p=0,v=h.length;p<v;p++){var b=h[p];if(!L._isValidConstraintChar(m,b)&&(typeof b!="number"||Number.isNaN(b)||b<m.min||b>m.max))throw new Error("Constraint error, got value "+b+" expected range "+m.min+"-"+m.max)}}for(var a={},i=0,o=L.map.length;i<o;++i){var s=L.map[i],l=t[s];n(s,l,L.constraints[i]);for(var c=[],u=-1;++u<l.length;)c[u]=l[u];if(l=c.sort(L._sortCompareFn).filter(function(d,h,m){return!h||d!==m[h-1]}),l.length!==c.length)throw new Error("Validation error, Field "+s+" contains duplicate values");a[s]=l}var f=L._handleMaxDaysInMonth(a);return a.dayOfMonth=f||a.dayOfMonth,new L(a,r||{})};var Qh=L;const ep=xo(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Wn=Qh;function yt(){}yt._parseEntry=function(t){var r=t.split(" ");if(r.length===6)return{interval:Wn.parse(t)};if(r.length>6)return{interval:Wn.parse(r.slice(0,6).join(" ")),command:r.slice(6,r.length)};throw new Error("Invalid entry: "+t)},yt.parseExpression=function(t,r){return Wn.parse(t,r)},yt.fieldsToExpression=function(t,r){return Wn.fieldsToExpression(t,r)},yt.parseString=function(t){for(var r=t.split(`
|
|
1
|
+
(function(Z,$){typeof exports=="object"&&typeof module!="undefined"?$(exports,require("@tachybase/client"),require("react-i18next"),require("react/jsx-runtime"),require("react"),require("@tachybase/schema"),require("@ant-design/icons"),require("dayjs"),require("react-dom"),require("lodash"),require("antd"),require("@tachybase/components")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","react-i18next","react/jsx-runtime","react","@tachybase/schema","@ant-design/icons","dayjs","react-dom","lodash","antd","@tachybase/components"],$):(Z=typeof globalThis!="undefined"?globalThis:Z||self,$(Z["@tachybase/plugin-block-calendar"]={},Z["@tachybase/client"],Z["react-i18next"],Z.jsxRuntime,Z.react,Z["@tachybase/schema"],Z["@ant-design/icons"],Z.dayjs,Z["react-dom"],Z.lodash,Z.antd,Z["@tachybase/components"]))})(this,function(Z,$,le,A,g,ee,ht,ke,Ye,Cr,Ae,ka){"use strict";var V_=Object.defineProperty,R_=Object.defineProperties;var B_=Object.getOwnPropertyDescriptors;var Ma=Object.getOwnPropertySymbols;var Hf=Object.prototype.hasOwnProperty,Uf=Object.prototype.propertyIsEnumerable;var jf=Math.pow,To=(Z,$,le)=>$ in Z?V_(Z,$,{enumerable:!0,configurable:!0,writable:!0,value:le}):Z[$]=le,z=(Z,$)=>{for(var le in $||($={}))Hf.call($,le)&&To(Z,le,$[le]);if(Ma)for(var le of Ma($))Uf.call($,le)&&To(Z,le,$[le]);return Z},ve=(Z,$)=>R_(Z,B_($));var wn=(Z,$)=>{var le={};for(var A in Z)Hf.call(Z,A)&&$.indexOf(A)<0&&(le[A]=Z[A]);if(Z!=null&&Ma)for(var A of Ma(Z))$.indexOf(A)<0&&Uf.call(Z,A)&&(le[A]=Z[A]);return le};var $t=(Z,$,le)=>To(Z,typeof $!="symbol"?$+"":$,le);var Zt=(Z,$,le)=>new Promise((A,g)=>{var ee=Ye=>{try{ke(le.next(Ye))}catch(Cr){g(Cr)}},ht=Ye=>{try{ke(le.throw(Ye))}catch(Cr){g(Cr)}},ke=Ye=>Ye.done?A(Ye.value):Promise.resolve(Ye.value).then(ee,ht);ke((le=le.apply(Z,$)).next())});const Aa="block-calendar";function qe(e,t={}){return $.i18n.t(e,z({ns:Aa},t))}function q(e){return`{{t('${e}', { ns: '${Aa}' })}}`}function et(){return le.useTranslation(Aa)}var Ge=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});class Ct extends Error{}class Yf extends Ct{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class qf extends Ct{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class Gf extends Ct{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Kt extends Ct{}class Eo extends Ct{constructor(t){super(`Invalid unit ${t}`)}}class De extends Ct{}class pt extends Ct{constructor(){super("Zone is an abstract class")}}const I="numeric",Ze="short",Le="long",Sn={year:I,month:I,day:I},$o={year:I,month:Ze,day:I},Zf={year:I,month:Ze,day:I,weekday:Ze},Co={year:I,month:Le,day:I},_o={year:I,month:Le,day:I,weekday:Le},Mo={hour:I,minute:I},ko={hour:I,minute:I,second:I},Ao={hour:I,minute:I,second:I,timeZoneName:Ze},No={hour:I,minute:I,second:I,timeZoneName:Le},Io={hour:I,minute:I,hourCycle:"h23"},Po={hour:I,minute:I,second:I,hourCycle:"h23"},Fo={hour:I,minute:I,second:I,hourCycle:"h23",timeZoneName:Ze},Lo={hour:I,minute:I,second:I,hourCycle:"h23",timeZoneName:Le},Wo={year:I,month:I,day:I,hour:I,minute:I},zo={year:I,month:I,day:I,hour:I,minute:I,second:I},Vo={year:I,month:Ze,day:I,hour:I,minute:I},Ro={year:I,month:Ze,day:I,hour:I,minute:I,second:I},Kf={year:I,month:Ze,day:I,weekday:Ze,hour:I,minute:I},Bo={year:I,month:Le,day:I,hour:I,minute:I,timeZoneName:Ze},Ho={year:I,month:Le,day:I,hour:I,minute:I,second:I,timeZoneName:Ze},Uo={year:I,month:Le,day:I,weekday:Le,hour:I,minute:I,timeZoneName:Le},jo={year:I,month:Le,day:I,weekday:Le,hour:I,minute:I,second:I,timeZoneName:Le};class Xt{get type(){throw new pt}get name(){throw new pt}get ianaName(){return this.name}get isUniversal(){throw new pt}offsetName(t,r){throw new pt}formatOffset(t,r){throw new pt}offset(t){throw new pt}equals(t){throw new pt}get isValid(){throw new pt}}let Na=null;class _r extends Xt{static get instance(){return Na===null&&(Na=new _r),Na}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return gs(t,r,n)}formatOffset(t,r){return Nr(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let On={};function Xf(e){return On[e]||(On[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),On[e]}const Jf={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Qf(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,a,i,o,s,l,c,u]=n;return[o,a,i,s,l,c,u]}function ed(e,t){const r=e.formatToParts(t),n=[];for(let a=0;a<r.length;a++){const{type:i,value:o}=r[a],s=Jf[i];i==="era"?n[s]=o:H(s)||(n[s]=parseInt(o,10))}return n}let Dn={};class tt extends Xt{static create(t){return Dn[t]||(Dn[t]=new tt(t)),Dn[t]}static resetCache(){Dn={},On={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(r){return!1}}constructor(t){super(),this.zoneName=t,this.valid=tt.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return gs(t,r,n,this.name)}formatOffset(t,r){return Nr(this.offset(t),r)}offset(t){const r=new Date(t);if(isNaN(r))return NaN;const n=Xf(this.name);let[a,i,o,s,l,c,u]=n.formatToParts?ed(n,r):Qf(n,r);s==="BC"&&(a=-Math.abs(a)+1);const d=Cn({year:a,month:i,day:o,hour:l===24?0:l,minute:c,second:u,millisecond:0});let h=+r;const m=h%1e3;return h-=m>=0?m:1e3+m,(d-h)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let Yo={};function td(e,t={}){const r=JSON.stringify([e,t]);let n=Yo[r];return n||(n=new Intl.ListFormat(e,t),Yo[r]=n),n}let Ia={};function Pa(e,t={}){const r=JSON.stringify([e,t]);let n=Ia[r];return n||(n=new Intl.DateTimeFormat(e,t),Ia[r]=n),n}let Fa={};function rd(e,t={}){const r=JSON.stringify([e,t]);let n=Fa[r];return n||(n=new Intl.NumberFormat(e,t),Fa[r]=n),n}let La={};function nd(e,t={}){const o=t,{base:r}=o,n=wn(o,["base"]),a=JSON.stringify([e,n]);let i=La[a];return i||(i=new Intl.RelativeTimeFormat(e,t),La[a]=i),i}let Mr=null;function ad(){return Mr||(Mr=new Intl.DateTimeFormat().resolvedOptions().locale,Mr)}let qo={};function id(e){let t=qo[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,qo[e]=t}return t}function od(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const r=e.indexOf("-u-");if(r===-1)return[e];{let n,a;try{n=Pa(e).resolvedOptions(),a=e}catch(s){const l=e.substring(0,r);n=Pa(l).resolvedOptions(),a=l}const{numberingSystem:i,calendar:o}=n;return[a,i,o]}}function sd(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function ld(e){const t=[];for(let r=1;r<=12;r++){const n=U.utc(2009,r,1);t.push(e(n))}return t}function cd(e){const t=[];for(let r=1;r<=7;r++){const n=U.utc(2016,11,13+r);t.push(e(n))}return t}function Tn(e,t,r,n){const a=e.listingMode();return a==="error"?null:a==="en"?r(t):n(t)}function ud(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class fd{constructor(t,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const s=n,{padTo:a,floor:i}=s,o=wn(s,["padTo","floor"]);if(!r||Object.keys(o).length>0){const l=z({useGrouping:!1},n);n.padTo>0&&(l.minimumIntegerDigits=n.padTo),this.inf=rd(t,l)}}format(t){if(this.inf){const r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{const r=this.floor?Math.floor(t):ja(t,3);return be(r,this.padTo)}}}class dd{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let a;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const o=-1*(t.offset/60),s=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;t.offset!==0&&tt.create(s).valid?(a=s,this.dt=t):(a="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,a=t.zone.name):(a="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const i=z({},this.opts);i.timeZone=i.timeZone||a,this.dtf=Pa(r,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(r=>{if(r.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return ve(z({},r),{value:n})}else return r}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class hd{constructor(t,r,n){this.opts=z({style:"long"},n),!r&&hs()&&(this.rtf=nd(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):Pd(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}}const pd={firstDay:1,minimalDays:4,weekend:[6,7]};class re{static fromOpts(t){return re.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,a,i=!1){const o=t||ce.defaultLocale,s=o||(i?"en-US":ad()),l=r||ce.defaultNumberingSystem,c=n||ce.defaultOutputCalendar,u=Ha(a)||ce.defaultWeekSettings;return new re(s,l,c,u,o)}static resetCache(){Mr=null,Ia={},Fa={},La={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:n,weekSettings:a}={}){return re.create(t,r,n,a)}constructor(t,r,n,a,i){const[o,s,l]=od(t);this.locale=o,this.numberingSystem=r||s||null,this.outputCalendar=n||l||null,this.weekSettings=a,this.intl=sd(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=ud(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:re.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,Ha(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone(ve(z({},t),{defaultToEN:!0}))}redefaultToSystem(t={}){return this.clone(ve(z({},t),{defaultToEN:!1}))}months(t,r=!1){return Tn(this,t,ws,()=>{const n=r?{month:t,day:"numeric"}:{month:t},a=r?"format":"standalone";return this.monthsCache[a][t]||(this.monthsCache[a][t]=ld(i=>this.extract(i,n,"month"))),this.monthsCache[a][t]})}weekdays(t,r=!1){return Tn(this,t,Ds,()=>{const n=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},a=r?"format":"standalone";return this.weekdaysCache[a][t]||(this.weekdaysCache[a][t]=cd(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[a][t]})}meridiems(){return Tn(this,void 0,()=>Ts,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[U.utc(2016,11,13,9),U.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Tn(this,t,xs,()=>{const r={era:t};return this.eraCache[t]||(this.eraCache[t]=[U.utc(-40,1,1),U.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){const a=this.dtFormatter(t,r),i=a.formatToParts(),o=i.find(s=>s.type.toLowerCase()===n);return o?o.value:null}numberFormatter(t={}){return new fd(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new dd(t,this.intl,r)}relFormatter(t={}){return new hd(this.intl,this.isEnglish(),t)}listFormatter(t={}){return td(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ps()?id(this.locale):pd}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Wa=null;class Te extends Xt{static get utcInstance(){return Wa===null&&(Wa=new Te(0)),Wa}static instance(t){return t===0?Te.utcInstance:new Te(t)}static parseSpecifier(t){if(t){const r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new Te(_n(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Nr(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Nr(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return Nr(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Go extends Xt{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function mt(e,t){if(H(e)||e===null)return t;if(e instanceof Xt)return e;if(wd(e)){const r=e.toLowerCase();return r==="default"?t:r==="local"||r==="system"?_r.instance:r==="utc"||r==="gmt"?Te.utcInstance:Te.parseSpecifier(r)||tt.create(e)}else return vt(e)?Te.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Go(e)}const za={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Zo={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]},md=za.hanidec.replace(/[\[|\]]/g,"").split("");function vd(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);if(e[r].search(za.hanidec)!==-1)t+=md.indexOf(e[r]);else for(const a in Zo){const[i,o]=Zo[a];n>=i&&n<=o&&(t+=n-i)}}return parseInt(t,10)}else return t}let Jt={};function gd(){Jt={}}function Ke({numberingSystem:e},t=""){const r=e||"latn";return Jt[r]||(Jt[r]={}),Jt[r][t]||(Jt[r][t]=new RegExp(`${za[r]}${t}`)),Jt[r][t]}let Ko=()=>Date.now(),Xo="system",Jo=null,Qo=null,es=null,ts=60,rs,ns=null;class ce{static get now(){return Ko}static set now(t){Ko=t}static set defaultZone(t){Xo=t}static get defaultZone(){return mt(Xo,_r.instance)}static get defaultLocale(){return Jo}static set defaultLocale(t){Jo=t}static get defaultNumberingSystem(){return Qo}static set defaultNumberingSystem(t){Qo=t}static get defaultOutputCalendar(){return es}static set defaultOutputCalendar(t){es=t}static get defaultWeekSettings(){return ns}static set defaultWeekSettings(t){ns=Ha(t)}static get twoDigitCutoffYear(){return ts}static set twoDigitCutoffYear(t){ts=t%100}static get throwOnInvalid(){return rs}static set throwOnInvalid(t){rs=t}static resetCaches(){re.resetCache(),tt.resetCache(),U.resetCache(),gd()}}class Xe{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const as=[0,31,59,90,120,151,181,212,243,273,304,334],is=[0,31,60,91,121,152,182,213,244,274,305,335];function ze(e,t){return new Xe("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Va(e,t,r){const n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const a=n.getUTCDay();return a===0?7:a}function os(e,t,r){return r+(kr(e)?is:as)[t-1]}function ss(e,t){const r=kr(e)?is:as,n=r.findIndex(i=>i<t),a=t-r[n];return{month:n+1,day:a}}function Ra(e,t){return(e-t+7)%7+1}function xn(e,t=4,r=1){const{year:n,month:a,day:i}=e,o=os(n,a,i),s=Ra(Va(n,a,i),r);let l=Math.floor((o-s+14-t)/7),c;return l<1?(c=n-1,l=Ar(c,t,r)):l>Ar(n,t,r)?(c=n+1,l=1):c=n,z({weekYear:c,weekNumber:l,weekday:s},kn(e))}function ls(e,t=4,r=1){const{weekYear:n,weekNumber:a,weekday:i}=e,o=Ra(Va(n,1,t),r),s=er(n);let l=a*7+i-o-7+t,c;l<1?(c=n-1,l+=er(c)):l>s?(c=n+1,l-=er(n)):c=n;const{month:u,day:f}=ss(c,l);return z({year:c,month:u,day:f},kn(e))}function Ba(e){const{year:t,month:r,day:n}=e,a=os(t,r,n);return z({year:t,ordinal:a},kn(e))}function cs(e){const{year:t,ordinal:r}=e,{month:n,day:a}=ss(t,r);return z({year:t,month:n,day:a},kn(e))}function us(e,t){if(!H(e.localWeekday)||!H(e.localWeekNumber)||!H(e.localWeekYear)){if(!H(e.weekday)||!H(e.weekNumber)||!H(e.weekYear))throw new Kt("Cannot mix locale-based week fields with ISO-based week fields");return H(e.localWeekday)||(e.weekday=e.localWeekday),H(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),H(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function bd(e,t=4,r=1){const n=En(e.weekYear),a=Ve(e.weekNumber,1,Ar(e.weekYear,t,r)),i=Ve(e.weekday,1,7);return n?a?i?!1:ze("weekday",e.weekday):ze("week",e.weekNumber):ze("weekYear",e.weekYear)}function yd(e){const t=En(e.year),r=Ve(e.ordinal,1,er(e.year));return t?r?!1:ze("ordinal",e.ordinal):ze("year",e.year)}function fs(e){const t=En(e.year),r=Ve(e.month,1,12),n=Ve(e.day,1,$n(e.year,e.month));return t?r?n?!1:ze("day",e.day):ze("month",e.month):ze("year",e.year)}function ds(e){const{hour:t,minute:r,second:n,millisecond:a}=e,i=Ve(t,0,23)||t===24&&r===0&&n===0&&a===0,o=Ve(r,0,59),s=Ve(n,0,59),l=Ve(a,0,999);return i?o?s?l?!1:ze("millisecond",a):ze("second",n):ze("minute",r):ze("hour",t)}function H(e){return typeof e=="undefined"}function vt(e){return typeof e=="number"}function En(e){return typeof e=="number"&&e%1===0}function wd(e){return typeof e=="string"}function Sd(e){return Object.prototype.toString.call(e)==="[object Date]"}function hs(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function ps(){try{return typeof Intl!="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function Od(e){return Array.isArray(e)?e:[e]}function ms(e,t,r){if(e.length!==0)return e.reduce((n,a)=>{const i=[t(a),a];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function Dd(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function Qt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ha(e){if(e==null)return null;if(typeof e!="object")throw new De("Week settings must be an object");if(!Ve(e.firstDay,1,7)||!Ve(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Ve(t,1,7)))throw new De("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ve(e,t,r){return En(e)&&e>=t&&e<=r}function Td(e,t){return e-t*Math.floor(e/t)}function be(e,t=2){const r=e<0;let n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function gt(e){if(!(H(e)||e===null||e===""))return parseInt(e,10)}function _t(e){if(!(H(e)||e===null||e===""))return parseFloat(e)}function Ua(e){if(!(H(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function ja(e,t,r=!1){const n=jf(10,t);return(r?Math.trunc:Math.round)(e*n)/n}function kr(e){return e%4===0&&(e%100!==0||e%400===0)}function er(e){return kr(e)?366:365}function $n(e,t){const r=Td(t-1,12)+1,n=e+(t-r)/12;return r===2?kr(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Cn(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function vs(e,t,r){return-Ra(Va(e,1,t),r)+t-1}function Ar(e,t=4,r=1){const n=vs(e,t,r),a=vs(e+1,t,r);return(er(e)-n+a)/7}function Ya(e){return e>99?e:e>ce.twoDigitCutoffYear?1900+e:2e3+e}function gs(e,t,r,n=null){const a=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const o=z({timeZoneName:t},i),s=new Intl.DateTimeFormat(r,o).formatToParts(a).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function _n(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const n=parseInt(t,10)||0,a=r<0||Object.is(r,-0)?-n:n;return r*60+a}function bs(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new De(`Invalid unit value ${e}`);return t}function Mn(e,t){const r={};for(const n in e)if(Qt(e,n)){const a=e[n];if(a==null)continue;r[t(n)]=bs(a)}return r}function Nr(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),a=e>=0?"+":"-";switch(t){case"short":return`${a}${be(r,2)}:${be(n,2)}`;case"narrow":return`${a}${r}${n>0?`:${n}`:""}`;case"techie":return`${a}${be(r,2)}${be(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function kn(e){return Dd(e,["hour","minute","second","millisecond"])}const xd=["January","February","March","April","May","June","July","August","September","October","November","December"],ys=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ed=["J","F","M","A","M","J","J","A","S","O","N","D"];function ws(e){switch(e){case"narrow":return[...Ed];case"short":return[...ys];case"long":return[...xd];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ss=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Os=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],$d=["M","T","W","T","F","S","S"];function Ds(e){switch(e){case"narrow":return[...$d];case"short":return[...Os];case"long":return[...Ss];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ts=["AM","PM"],Cd=["Before Christ","Anno Domini"],_d=["BC","AD"],Md=["B","A"];function xs(e){switch(e){case"narrow":return[...Md];case"short":return[..._d];case"long":return[...Cd];default:return null}}function kd(e){return Ts[e.hour<12?0:1]}function Ad(e,t){return Ds(t)[e.weekday-1]}function Nd(e,t){return ws(t)[e.month-1]}function Id(e,t){return xs(t)[e.year<0?0:1]}function Pd(e,t,r="always",n=!1){const a={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(e)===-1;if(r==="auto"&&i){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${a[e][0]}`;case-1:return f?"yesterday":`last ${a[e][0]}`;case 0:return f?"today":`this ${a[e][0]}`}}const o=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,c=a[e],u=n?l?c[1]:c[2]||c[1]:l?a[e][0]:e;return o?`${s} ${u} ago`:`in ${s} ${u}`}function Es(e,t){let r="";for(const n of e)n.literal?r+=n.val:r+=t(n.val);return r}const Fd={D:Sn,DD:$o,DDD:Co,DDDD:_o,t:Mo,tt:ko,ttt:Ao,tttt:No,T:Io,TT:Po,TTT:Fo,TTTT:Lo,f:Wo,ff:Vo,fff:Bo,ffff:Uo,F:zo,FF:Ro,FFF:Ho,FFFF:jo};class xe{static create(t,r={}){return new xe(t,r)}static parseFormat(t){let r=null,n="",a=!1;const i=[];for(let o=0;o<t.length;o++){const s=t.charAt(o);s==="'"?(n.length>0&&i.push({literal:a||/^\s+$/.test(n),val:n}),r=null,n="",a=!a):a||s===r?n+=s:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=s,r=s)}return n.length>0&&i.push({literal:a||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(t){return Fd[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,z(z({},this.opts),r)).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,z(z({},this.opts),r))}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return be(t,r);const n=z({},this.opts);return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,r){const n=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(h,m)=>this.loc.extract(t,h,m),o=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",s=()=>n?kd(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(h,m)=>n?Nd(t,h):i(m?{month:h}:{month:h,day:"numeric"},"month"),c=(h,m)=>n?Ad(t,h):i(m?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),u=h=>{const m=xe.macroTokenToFormatOpts(h);return m?this.formatWithSystemDefault(t,m):h},f=h=>n?Id(t,h):i({era:h},"era"),d=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return a?i({day:"numeric"},"day"):this.num(t.day);case"dd":return a?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return a?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return a?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return a?i({month:"numeric"},"month"):this.num(t.month);case"MM":return a?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return a?i({year:"numeric"},"year"):this.num(t.year);case"yy":return a?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return a?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return a?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(h)}};return Es(xe.parseFormat(r),d)}formatDurationFromString(t,r){const n=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=l=>c=>{const u=n(c);return u?this.num(l.get(u),c.length):c},i=xe.parseFormat(r),o=i.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),s=t.shiftTo(...o.map(n).filter(l=>l));return Es(i,a(s))}}const $s=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function tr(...e){const t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function rr(...e){return t=>e.reduce(([r,n,a],i)=>{const[o,s,l]=i(t,a);return[z(z({},r),o),s||n,l]},[{},null,1]).slice(0,2)}function nr(e,...t){if(e==null)return[null,null];for(const[r,n]of t){const a=r.exec(e);if(a)return n(a)}return[null,null]}function Cs(...e){return(t,r)=>{const n={};let a;for(a=0;a<e.length;a++)n[e[a]]=gt(t[r+a]);return[n,null,r+a]}}const _s=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Ld=`(?:${_s.source}?(?:\\[(${$s.source})\\])?)?`,qa=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ms=RegExp(`${qa.source}${Ld}`),Ga=RegExp(`(?:T${Ms.source})?`),Wd=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,zd=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Vd=/(\d{4})-?(\d{3})/,Rd=Cs("weekYear","weekNumber","weekDay"),Bd=Cs("year","ordinal"),Hd=/(\d{4})-(\d\d)-(\d\d)/,ks=RegExp(`${qa.source} ?(?:${_s.source}|(${$s.source}))?`),Ud=RegExp(`(?: ${ks.source})?`);function ar(e,t,r){const n=e[t];return H(n)?r:gt(n)}function jd(e,t){return[{year:ar(e,t),month:ar(e,t+1,1),day:ar(e,t+2,1)},null,t+3]}function ir(e,t){return[{hours:ar(e,t,0),minutes:ar(e,t+1,0),seconds:ar(e,t+2,0),milliseconds:Ua(e[t+3])},null,t+4]}function Ir(e,t){const r=!e[t]&&!e[t+1],n=_n(e[t+1],e[t+2]),a=r?null:Te.instance(n);return[{},a,t+3]}function Pr(e,t){const r=e[t]?tt.create(e[t]):null;return[{},r,t+1]}const Yd=RegExp(`^T?${qa.source}$`),qd=/^-?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 Gd(e){const[t,r,n,a,i,o,s,l,c]=e,u=t[0]==="-",f=l&&l[0]==="-",d=(h,m=!1)=>h!==void 0&&(m||h&&u)?-h:h;return[{years:d(_t(r)),months:d(_t(n)),weeks:d(_t(a)),days:d(_t(i)),hours:d(_t(o)),minutes:d(_t(s)),seconds:d(_t(l),l==="-0"),milliseconds:d(Ua(c),f)}]}const Zd={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Za(e,t,r,n,a,i,o){const s={year:t.length===2?Ya(gt(t)):gt(t),month:ys.indexOf(r)+1,day:gt(n),hour:gt(a),minute:gt(i)};return o&&(s.second=gt(o)),e&&(s.weekday=e.length>3?Ss.indexOf(e)+1:Os.indexOf(e)+1),s}const Kd=/^(?:(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 Xd(e){const[,t,r,n,a,i,o,s,l,c,u,f]=e,d=Za(t,a,n,r,i,o,s);let h;return l?h=Zd[l]:c?h=0:h=_n(u,f),[d,new Te(h)]}function Jd(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Qd=/^(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$/,eh=/^(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$/,th=/^(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 As(e){const[,t,r,n,a,i,o,s]=e;return[Za(t,a,n,r,i,o,s),Te.utcInstance]}function rh(e){const[,t,r,n,a,i,o,s]=e;return[Za(t,s,r,n,a,i,o),Te.utcInstance]}const nh=tr(Wd,Ga),ah=tr(zd,Ga),ih=tr(Vd,Ga),oh=tr(Ms),Ns=rr(jd,ir,Ir,Pr),sh=rr(Rd,ir,Ir,Pr),lh=rr(Bd,ir,Ir,Pr),ch=rr(ir,Ir,Pr);function uh(e){return nr(e,[nh,Ns],[ah,sh],[ih,lh],[oh,ch])}function fh(e){return nr(Jd(e),[Kd,Xd])}function dh(e){return nr(e,[Qd,As],[eh,As],[th,rh])}function hh(e){return nr(e,[qd,Gd])}const ph=rr(ir);function mh(e){return nr(e,[Yd,ph])}const vh=tr(Hd,Ud),gh=tr(ks),bh=rr(ir,Ir,Pr);function yh(e){return nr(e,[vh,Ns],[gh,bh])}const Is="Invalid Duration",Ps={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},wh=z({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3}},Ps),Re=146097/400,or=146097/4800,Sh=z({years:{quarters:4,months:12,weeks:Re/7,days:Re,hours:Re*24,minutes:Re*24*60,seconds:Re*24*60*60,milliseconds:Re*24*60*60*1e3},quarters:{months:3,weeks:Re/28,days:Re/4,hours:Re*24/4,minutes:Re*24*60/4,seconds:Re*24*60*60/4,milliseconds:Re*24*60*60*1e3/4},months:{weeks:or/7,days:or,hours:or*24,minutes:or*24*60,seconds:or*24*60*60,milliseconds:or*24*60*60*1e3}},Ps),Mt=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Oh=Mt.slice(0).reverse();function bt(e,t,r=!1){const n={values:r?t.values:z(z({},e.values),t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new X(n)}function Fs(e,t){var r;let n=(r=t.milliseconds)!=null?r:0;for(const a of Oh.slice(1))t[a]&&(n+=t[a]*e[a].milliseconds);return n}function Ls(e,t){const r=Fs(e,t)<0?-1:1;Mt.reduceRight((n,a)=>{if(H(t[a]))return n;if(n){const i=t[n]*r,o=e[a][n],s=Math.floor(i/o);t[a]+=s*r,t[n]-=s*o*r}return a},null),Mt.reduce((n,a)=>{if(H(t[a]))return n;if(n){const i=t[n]%1;t[n]-=i,t[a]+=i*e[n][a]}return a},null)}function Dh(e){const t={};for(const[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}class X{constructor(t){const r=t.conversionAccuracy==="longterm"||!1;let n=r?Sh:wh;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||re.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return X.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new De(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new X({values:Mn(t,X.normalizeUnit),loc:re.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(vt(t))return X.fromMillis(t);if(X.isDuration(t))return t;if(typeof t=="object")return X.fromObject(t);throw new De(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){const[n]=hh(t);return n?X.fromObject(n,r):X.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){const[n]=mh(t);return n?X.fromObject(n,r):X.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new De("need to specify a reason the Duration is invalid");const n=t instanceof Xe?t:new Xe(t,r);if(ce.throwOnInvalid)throw new Gf(n);return new X({invalid:n})}static normalizeUnit(t){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!r)throw new Eo(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){const n=ve(z({},r),{floor:r.round!==!1&&r.floor!==!1});return this.isValid?xe.create(this.loc,n).formatDurationFromString(this,t):Is}toHuman(t={}){if(!this.isValid)return Is;const r=Mt.map(n=>{const a=this.values[n];return H(a)?null:this.loc.numberFormatter(ve(z({style:"unit",unitDisplay:"long"},t),{unit:n.slice(0,-1)})).format(a)}).filter(n=>n);return this.loc.listFormatter(z({type:"conjunction",style:t.listStyle||"narrow"},t)).format(r)}toObject(){return this.isValid?z({},this.values):{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=ja(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(t=ve(z({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t),{includeOffset:!1}),U.fromMillis(r,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Fs(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const r=X.fromDurationLike(t),n={};for(const a of Mt)(Qt(r.values,a)||Qt(this.values,a))&&(n[a]=r.get(a)+this.get(a));return bt(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const r=X.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=bs(t(this.values[n],n));return bt(this,{values:r},!0)}get(t){return this[X.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const r=z(z({},this.values),Mn(t,X.normalizeUnit));return bt(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n,matrix:a}={}){const o={loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:a,conversionAccuracy:n};return bt(this,o)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Ls(this.matrix,t),bt(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=Dh(this.normalize().shiftToAll().toObject());return bt(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>X.normalizeUnit(o));const r={},n={},a=this.toObject();let i;for(const o of Mt)if(t.indexOf(o)>=0){i=o;let s=0;for(const c in n)s+=this.matrix[c][o]*n[c],n[c]=0;vt(a[o])&&(s+=a[o]);const l=Math.trunc(s);r[o]=l,n[o]=(s*1e3-l*1e3)/1e3}else vt(a[o])&&(n[o]=a[o]);for(const o in n)n[o]!==0&&(r[i]+=o===i?n[o]:n[o]/this.matrix[i][o]);return Ls(this.matrix,r),bt(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return bt(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(n,a){return n===void 0||n===0?a===void 0||a===0:n===a}for(const n of Mt)if(!r(this.values[n],t.values[n]))return!1;return!0}}const sr="Invalid Interval";function Th(e,t){return!e||!e.isValid?ue.invalid("missing or invalid start"):!t||!t.isValid?ue.invalid("missing or invalid end"):t<e?ue.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class ue{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new De("need to specify a reason the Interval is invalid");const n=t instanceof Xe?t:new Xe(t,r);if(ce.throwOnInvalid)throw new qf(n);return new ue({invalid:n})}static fromDateTimes(t,r){const n=Wr(t),a=Wr(r),i=Th(n,a);return i==null?new ue({start:n,end:a}):i}static after(t,r){const n=X.fromDurationLike(r),a=Wr(t);return ue.fromDateTimes(a,a.plus(n))}static before(t,r){const n=X.fromDurationLike(r),a=Wr(t);return ue.fromDateTimes(a.minus(n),a)}static fromISO(t,r){const[n,a]=(t||"").split("/",2);if(n&&a){let i,o;try{i=U.fromISO(n,r),o=i.isValid}catch(c){o=!1}let s,l;try{s=U.fromISO(a,r),l=s.isValid}catch(c){l=!1}if(o&&l)return ue.fromDateTimes(i,s);if(o){const c=X.fromISO(a,r);if(c.isValid)return ue.after(i,c)}else if(l){const c=X.fromISO(n,r);if(c.isValid)return ue.before(s,c)}}return ue.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",r){if(!this.isValid)return NaN;const n=this.start.startOf(t,r);let a;return r!=null&&r.useLocaleWeeks?a=this.end.reconfigure({locale:n.locale}):a=this.end,a=a.startOf(t,r),Math.floor(a.diff(n,t).get(t))+(a.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?ue.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];const r=t.map(Wr).filter(o=>this.contains(o)).sort((o,s)=>o.toMillis()-s.toMillis()),n=[];let{s:a}=this,i=0;for(;a<this.e;){const o=r[i]||this.e,s=+o>+this.e?this.e:o;n.push(ue.fromDateTimes(a,s)),a=s,i+=1}return n}splitBy(t){const r=X.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,a=1,i;const o=[];for(;n<this.e;){const s=this.start.plus(r.mapUnits(l=>l*a));i=+s>+this.e?this.e:s,o.push(ue.fromDateTimes(n,i)),n=i,a+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:ue.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;const r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return ue.fromDateTimes(r,n)}static merge(t){const[r,n]=t.sort((a,i)=>a.s-i.s).reduce(([a,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[a,i.union(o)]:[a.concat([i]),o]:[a,o],[[],null]);return n&&r.push(n),r}static xor(t){let r=null,n=0;const a=[],i=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...i),s=o.sort((l,c)=>l.time-c.time);for(const l of s)n+=l.type==="s"?1:-1,n===1?r=l.time:(r&&+r!=+l.time&&a.push(ue.fromDateTimes(r,l.time)),r=null);return ue.merge(a)}difference(...t){return ue.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:sr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=Sn,r={}){return this.isValid?xe.create(this.s.loc.clone(r),t).formatInterval(this):sr}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:sr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:sr}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:sr}toFormat(t,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:sr}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):X.invalid(this.invalidReason)}mapEndpoints(t){return ue.fromDateTimes(t(this.s),t(this.e))}}class Fr{static hasDST(t=ce.defaultZone){const r=U.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return tt.isValidZone(t)}static normalizeZone(t){return mt(t,ce.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||re.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||re.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||re.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||re.create(r,n,i)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||re.create(r,n,i)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:a=null}={}){return(a||re.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:a=null}={}){return(a||re.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return re.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return re.create(r,null,"gregory").eras(t)}static features(){return{relative:hs(),localeWeek:ps()}}}function Ws(e,t){const r=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(X.fromMillis(n).as("days"))}function xh(e,t,r){const n=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=Ws(l,c);return(u-u%7)/7}],["days",Ws]],a={},i=e;let o,s;for(const[l,c]of n)r.indexOf(l)>=0&&(o=l,a[l]=c(e,t),s=i.plus(a),s>t?(a[l]--,e=i.plus(a),e>t&&(s=e,a[l]--,e=i.plus(a))):e=s);return[e,a,s,o]}function Eh(e,t,r,n){let[a,i,o,s]=xh(e,t,r);const l=t-a,c=r.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(o<t&&(o=a.plus({[s]:1})),o!==a&&(i[s]=(i[s]||0)+l/(o-a)));const u=X.fromObject(i,n);return c.length>0?X.fromMillis(l,n).shiftTo(...c).plus(u):u}const $h="missing Intl.DateTimeFormat.formatToParts support";function te(e,t=r=>r){return{regex:e,deser:([r])=>t(vd(r))}}const zs="[ ]",Vs=new RegExp(zs,"g");function Ch(e){return e.replace(/\./g,"\\.?").replace(Vs,zs)}function Rs(e){return e.replace(/\./g,"").replace(Vs," ").toLowerCase()}function Je(e,t){return e===null?null:{regex:RegExp(e.map(Ch).join("|")),deser:([r])=>e.findIndex(n=>Rs(r)===Rs(n))+t}}function Bs(e,t){return{regex:e,deser:([,r,n])=>_n(r,n),groups:t}}function An(e){return{regex:e,deser:([t])=>t}}function _h(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Mh(e,t){const r=Ke(t),n=Ke(t,"{2}"),a=Ke(t,"{3}"),i=Ke(t,"{4}"),o=Ke(t,"{6}"),s=Ke(t,"{1,2}"),l=Ke(t,"{1,3}"),c=Ke(t,"{1,6}"),u=Ke(t,"{1,9}"),f=Ke(t,"{2,4}"),d=Ke(t,"{4,6}"),h=v=>({regex:RegExp(_h(v.val)),deser:([b])=>b,literal:!0}),p=(v=>{if(e.literal)return h(v);switch(v.val){case"G":return Je(t.eras("short"),0);case"GG":return Je(t.eras("long"),0);case"y":return te(c);case"yy":return te(f,Ya);case"yyyy":return te(i);case"yyyyy":return te(d);case"yyyyyy":return te(o);case"M":return te(s);case"MM":return te(n);case"MMM":return Je(t.months("short",!0),1);case"MMMM":return Je(t.months("long",!0),1);case"L":return te(s);case"LL":return te(n);case"LLL":return Je(t.months("short",!1),1);case"LLLL":return Je(t.months("long",!1),1);case"d":return te(s);case"dd":return te(n);case"o":return te(l);case"ooo":return te(a);case"HH":return te(n);case"H":return te(s);case"hh":return te(n);case"h":return te(s);case"mm":return te(n);case"m":return te(s);case"q":return te(s);case"qq":return te(n);case"s":return te(s);case"ss":return te(n);case"S":return te(l);case"SSS":return te(a);case"u":return An(u);case"uu":return An(s);case"uuu":return te(r);case"a":return Je(t.meridiems(),0);case"kkkk":return te(i);case"kk":return te(f,Ya);case"W":return te(s);case"WW":return te(n);case"E":case"c":return te(r);case"EEE":return Je(t.weekdays("short",!1),1);case"EEEE":return Je(t.weekdays("long",!1),1);case"ccc":return Je(t.weekdays("short",!0),1);case"cccc":return Je(t.weekdays("long",!0),1);case"Z":case"ZZ":return Bs(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return Bs(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return An(/[a-z_+-/]{1,256}?/i);case" ":return An(/[^\S\n\r]/);default:return h(v)}})(e)||{invalidReason:$h};return p.token=e,p}const kh={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Ah(e,t,r){const{type:n,value:a}=e;if(n==="literal"){const l=/^\s+$/.test(a);return{literal:!l,val:l?" ":a}}const i=t[n];let o=n;n==="hour"&&(t.hour12!=null?o=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?o="hour12":o="hour24":o=r.hour12?"hour12":"hour24");let s=kh[o];if(typeof s=="object"&&(s=s[i]),s)return{literal:!1,val:s}}function Nh(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function Ih(e,t,r){const n=e.match(t);if(n){const a={};let i=1;for(const o in r)if(Qt(r,o)){const s=r[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(a[s.token.val[0]]=s.deser(n.slice(i,i+l))),i+=l}return[n,a]}else return[n,{}]}function Ph(e){const t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,n;return H(e.z)||(r=tt.create(e.z)),H(e.Z)||(r||(r=new Te(e.Z)),n=e.Z),H(e.q)||(e.M=(e.q-1)*3+1),H(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),H(e.u)||(e.S=Ua(e.u)),[Object.keys(e).reduce((i,o)=>{const s=t(o);return s&&(i[s]=e[o]),i},{}),r,n]}let Ka=null;function Fh(){return Ka||(Ka=U.fromMillis(1555555555555)),Ka}function Lh(e,t){if(e.literal)return e;const r=xe.macroTokenToFormatOpts(e.val),n=Ys(r,t);return n==null||n.includes(void 0)?e:n}function Hs(e,t){return Array.prototype.concat(...e.map(r=>Lh(r,t)))}class Us{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=Hs(xe.parseFormat(r),t),this.units=this.tokens.map(n=>Mh(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){const[n,a]=Nh(this.units);this.regex=RegExp(n,"i"),this.handlers=a}}explainFromTokens(t){if(this.isValid){const[r,n]=Ih(t,this.regex,this.handlers),[a,i,o]=n?Ph(n):[null,null,void 0];if(Qt(n,"a")&&Qt(n,"H"))throw new Kt("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:a,zone:i,specificOffset:o}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function js(e,t,r){return new Us(e,r).explainFromTokens(t)}function Wh(e,t,r){const{result:n,zone:a,specificOffset:i,invalidReason:o}=js(e,t,r);return[n,a,i,o]}function Ys(e,t){if(!e)return null;const n=xe.create(t,e).dtFormatter(Fh()),a=n.formatToParts(),i=n.resolvedOptions();return a.map(o=>Ah(o,e,i))}const Xa="Invalid DateTime",qs=864e13;function Lr(e){return new Xe("unsupported zone",`the zone "${e.name}" is not supported`)}function Ja(e){return e.weekData===null&&(e.weekData=xn(e.c)),e.weekData}function Qa(e){return e.localWeekData===null&&(e.localWeekData=xn(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function kt(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new U(ve(z(z({},r),t),{old:r}))}function Gs(e,t,r){let n=e-t*60*1e3;const a=r.offset(n);if(t===a)return[n,t];n-=(a-t)*60*1e3;const i=r.offset(n);return a===i?[n,a]:[e-Math.min(a,i)*60*1e3,Math.max(a,i)]}function Nn(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function In(e,t,r){return Gs(Cn(e),t,r)}function Zs(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),a=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i=ve(z({},e.c),{year:n,month:a,day:Math.min(e.c.day,$n(n,a))+Math.trunc(t.days)+Math.trunc(t.weeks)*7}),o=X.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Cn(i);let[l,c]=Gs(s,r,e.zone);return o!==0&&(l+=o,c=e.zone.offset(l)),{ts:l,o:c}}function lr(e,t,r,n,a,i){const{setZone:o,zone:s}=r;if(e&&Object.keys(e).length!==0||t){const l=t||s,c=U.fromObject(e,ve(z({},r),{zone:l,specificOffset:i}));return o?c:c.setZone(s)}else return U.invalid(new Xe("unparsable",`the input "${a}" can't be parsed as ${n}`))}function Pn(e,t,r=!0){return e.isValid?xe.create(re.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function ei(e,t){const r=e.c.year>9999||e.c.year<0;let n="";return r&&e.c.year>=0&&(n+="+"),n+=be(e.c.year,r?6:4),t?(n+="-",n+=be(e.c.month),n+="-",n+=be(e.c.day)):(n+=be(e.c.month),n+=be(e.c.day)),n}function Ks(e,t,r,n,a,i){let o=be(e.c.hour);return t?(o+=":",o+=be(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(o+=":")):o+=be(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(o+=be(e.c.second),(e.c.millisecond!==0||!n)&&(o+=".",o+=be(e.c.millisecond,3))),a&&(e.isOffsetFixed&&e.offset===0&&!i?o+="Z":e.o<0?(o+="-",o+=be(Math.trunc(-e.o/60)),o+=":",o+=be(Math.trunc(-e.o%60))):(o+="+",o+=be(Math.trunc(e.o/60)),o+=":",o+=be(Math.trunc(e.o%60)))),i&&(o+="["+e.zone.ianaName+"]"),o}const Xs={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},zh={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Vh={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Js=["year","month","day","hour","minute","second","millisecond"],Rh=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Bh=["year","ordinal","hour","minute","second","millisecond"];function Hh(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Eo(e);return t}function Qs(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Hh(e)}}function Uh(e){return Ln[e]||(Fn===void 0&&(Fn=ce.now()),Ln[e]=e.offset(Fn)),Ln[e]}function el(e,t){const r=mt(t.zone,ce.defaultZone);if(!r.isValid)return U.invalid(Lr(r));const n=re.fromObject(t);let a,i;if(H(e.year))a=ce.now();else{for(const l of Js)H(e[l])&&(e[l]=Xs[l]);const o=fs(e)||ds(e);if(o)return U.invalid(o);const s=Uh(r);[a,i]=In(e,s,r)}return new U({ts:a,zone:r,loc:n,o:i})}function tl(e,t,r){const n=H(r.round)?!0:r.round,a=(o,s)=>(o=ja(o,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(o,s)),i=o=>r.calendary?t.hasSame(e,o)?0:t.startOf(o).diff(e.startOf(o),o).get(o):t.diff(e,o).get(o);if(r.unit)return a(i(r.unit),r.unit);for(const o of r.units){const s=i(o);if(Math.abs(s)>=1)return a(s,o)}return a(e>t?-0:0,r.units[r.units.length-1])}function rl(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}let Fn,Ln={};class U{constructor(t){const r=t.zone||ce.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new Xe("invalid input"):null)||(r.isValid?null:Lr(r));this.ts=H(t.ts)?ce.now():t.ts;let a=null,i=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[a,i]=[t.old.c,t.old.o];else{const s=vt(t.o)&&!t.old?t.o:r.offset(this.ts);a=Nn(this.ts,s),n=Number.isNaN(a.year)?new Xe("invalid input"):null,a=n?null:a,i=n?null:s}this._zone=r,this.loc=t.loc||re.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=a,this.o=i,this.isLuxonDateTime=!0}static now(){return new U({})}static local(){const[t,r]=rl(arguments),[n,a,i,o,s,l,c]=r;return el({year:n,month:a,day:i,hour:o,minute:s,second:l,millisecond:c},t)}static utc(){const[t,r]=rl(arguments),[n,a,i,o,s,l,c]=r;return t.zone=Te.utcInstance,el({year:n,month:a,day:i,hour:o,minute:s,second:l,millisecond:c},t)}static fromJSDate(t,r={}){const n=Sd(t)?t.valueOf():NaN;if(Number.isNaN(n))return U.invalid("invalid input");const a=mt(r.zone,ce.defaultZone);return a.isValid?new U({ts:n,zone:a,loc:re.fromObject(r)}):U.invalid(Lr(a))}static fromMillis(t,r={}){if(vt(t))return t<-qs||t>qs?U.invalid("Timestamp out of range"):new U({ts:t,zone:mt(r.zone,ce.defaultZone),loc:re.fromObject(r)});throw new De(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(vt(t))return new U({ts:t*1e3,zone:mt(r.zone,ce.defaultZone),loc:re.fromObject(r)});throw new De("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};const n=mt(r.zone,ce.defaultZone);if(!n.isValid)return U.invalid(Lr(n));const a=re.fromObject(r),i=Mn(t,Qs),{minDaysInFirstWeek:o,startOfWeek:s}=us(i,a),l=ce.now(),c=H(r.specificOffset)?n.offset(l):r.specificOffset,u=!H(i.ordinal),f=!H(i.year),d=!H(i.month)||!H(i.day),h=f||d,m=i.weekYear||i.weekNumber;if((h||u)&&m)throw new Kt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&u)throw new Kt("Can't mix ordinal dates with month/day");const p=m||i.weekday&&!h;let v,b,y=Nn(l,c);p?(v=Rh,b=zh,y=xn(y,o,s)):u?(v=Bh,b=Vh,y=Ba(y)):(v=Js,b=Xs);let O=!1;for(const M of v){const N=i[M];H(N)?O?i[M]=b[M]:i[M]=y[M]:O=!0}const S=p?bd(i,o,s):u?yd(i):fs(i),w=S||ds(i);if(w)return U.invalid(w);const D=p?ls(i,o,s):u?cs(i):i,[T,x]=In(D,c,n),E=new U({ts:T,zone:n,o:x,loc:a});return i.weekday&&h&&t.weekday!==E.weekday?U.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${E.toISO()}`):E.isValid?E:U.invalid(E.invalid)}static fromISO(t,r={}){const[n,a]=uh(t);return lr(n,a,r,"ISO 8601",t)}static fromRFC2822(t,r={}){const[n,a]=fh(t);return lr(n,a,r,"RFC 2822",t)}static fromHTTP(t,r={}){const[n,a]=dh(t);return lr(n,a,r,"HTTP",r)}static fromFormat(t,r,n={}){if(H(t)||H(r))throw new De("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:i=null}=n,o=re.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0}),[s,l,c,u]=Wh(o,t,r);return u?U.invalid(u):lr(s,l,n,`format ${r}`,t,c)}static fromString(t,r,n={}){return U.fromFormat(t,r,n)}static fromSQL(t,r={}){const[n,a]=yh(t);return lr(n,a,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new De("need to specify a reason the DateTime is invalid");const n=t instanceof Xe?t:new Xe(t,r);if(ce.throwOnInvalid)throw new Yf(n);return new U({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){const n=Ys(t,re.fromObject(r));return n?n.map(a=>a?a.val:null).join(""):null}static expandFormat(t,r={}){return Hs(xe.parseFormat(t),re.fromObject(r)).map(a=>a.val).join("")}static resetCache(){Fn=void 0,Ln={}}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ja(this).weekYear:NaN}get weekNumber(){return this.isValid?Ja(this).weekNumber:NaN}get weekday(){return this.isValid?Ja(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Qa(this).weekday:NaN}get localWeekNumber(){return this.isValid?Qa(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Qa(this).weekYear:NaN}get ordinal(){return this.isValid?Ba(this.c).ordinal:NaN}get monthShort(){return this.isValid?Fr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Fr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Fr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Fr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,r=6e4,n=Cn(this.c),a=this.zone.offset(n-t),i=this.zone.offset(n+t),o=this.zone.offset(n-a*r),s=this.zone.offset(n-i*r);if(o===s)return[this];const l=n-o*r,c=n-s*r,u=Nn(l,o),f=Nn(c,s);return u.hour===f.hour&&u.minute===f.minute&&u.second===f.second&&u.millisecond===f.millisecond?[kt(this,{ts:l}),kt(this,{ts:c})]:[this]}get isInLeapYear(){return kr(this.year)}get daysInMonth(){return $n(this.year,this.month)}get daysInYear(){return this.isValid?er(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ar(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ar(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:r,numberingSystem:n,calendar:a}=xe.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:a}}toUTC(t=0,r={}){return this.setZone(Te.instance(t),r)}toLocal(){return this.setZone(ce.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=mt(t,ce.defaultZone),t.equals(this.zone))return this;if(t.isValid){let a=this.ts;if(r||n){const i=t.offset(this.ts),o=this.toObject();[a]=In(o,i,t)}return kt(this,{ts:a,zone:t})}else return U.invalid(Lr(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){const a=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return kt(this,{loc:a})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const r=Mn(t,Qs),{minDaysInFirstWeek:n,startOfWeek:a}=us(r,this.loc),i=!H(r.weekYear)||!H(r.weekNumber)||!H(r.weekday),o=!H(r.ordinal),s=!H(r.year),l=!H(r.month)||!H(r.day),c=s||l,u=r.weekYear||r.weekNumber;if((c||o)&&u)throw new Kt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new Kt("Can't mix ordinal dates with month/day");let f;i?f=ls(z(z({},xn(this.c,n,a)),r),n,a):H(r.ordinal)?(f=z(z({},this.toObject()),r),H(r.day)&&(f.day=Math.min($n(f.year,f.month),f.day))):f=cs(z(z({},Ba(this.c)),r));const[d,h]=In(f,this.o,this.zone);return kt(this,{ts:d,o:h})}plus(t){if(!this.isValid)return this;const r=X.fromDurationLike(t);return kt(this,Zs(this,r))}minus(t){if(!this.isValid)return this;const r=X.fromDurationLike(t).negate();return kt(this,Zs(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const n={},a=X.normalizeUnit(t);switch(a){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(a==="weeks")if(r){const i=this.loc.getStartOfWeek(),{weekday:o}=this;o<i&&(n.weekNumber=this.weekNumber-1),n.weekday=i}else n.weekday=1;if(a==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(t,r){return this.isValid?this.plus({[t]:1}).startOf(t,r).minus(1):this}toFormat(t,r={}){return this.isValid?xe.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):Xa}toLocaleString(t=Sn,r={}){return this.isValid?xe.create(this.loc.clone(r),t).formatDateTime(this):Xa}toLocaleParts(t={}){return this.isValid?xe.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:a=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o=t==="extended";let s=ei(this,o);return s+="T",s+=Ks(this,o,r,n,a,i),s}toISODate({format:t="extended"}={}){return this.isValid?ei(this,t==="extended"):null}toISOWeekDate(){return Pn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:a=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(a?"T":"")+Ks(this,o==="extended",r,t,n,i):null}toRFC2822(){return Pn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Pn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ei(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let a="HH:mm:ss.SSS";return(r||t)&&(n&&(a+=" "),r?a+="z":t&&(a+="ZZ")),Pn(this,a,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Xa}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const r=z({},this.c);return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return X.invalid("created by diffing an invalid DateTime");const a=z({locale:this.locale,numberingSystem:this.numberingSystem},n),i=Od(r).map(X.normalizeUnit),o=t.valueOf()>this.valueOf(),s=o?this:t,l=o?t:this,c=Eh(s,l,i,a);return o?c.negate():c}diffNow(t="milliseconds",r={}){return this.diff(U.now(),t,r)}until(t){return this.isValid?ue.fromDateTimes(this,t):this}hasSame(t,r,n){if(!this.isValid)return!1;const a=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(r,n)<=a&&a<=i.endOf(r,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const r=t.base||U.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0;let a=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(a=t.unit,i=void 0),tl(r,this.plus(n),ve(z({},t),{numeric:"always",units:a,unit:i}))}toRelativeCalendar(t={}){return this.isValid?tl(t.base||U.fromObject({},{zone:this.zone}),this,ve(z({},t),{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...t){if(!t.every(U.isDateTime))throw new De("min requires all arguments be DateTimes");return ms(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(U.isDateTime))throw new De("max requires all arguments be DateTimes");return ms(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){const{locale:a=null,numberingSystem:i=null}=n,o=re.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return js(o,t,r)}static fromStringExplain(t,r,n={}){return U.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){const{locale:n=null,numberingSystem:a=null}=r,i=re.fromOpts({locale:n,numberingSystem:a,defaultToEN:!0});return new Us(i,t)}static fromFormatParser(t,r,n={}){if(H(t)||H(r))throw new De("fromFormatParser requires an input string and a format parser");const{locale:a=null,numberingSystem:i=null}=n,o=re.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});if(!o.equals(r.locale))throw new De(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${r.locale}`);const{result:s,zone:l,specificOffset:c,invalidReason:u}=r.explainFromTokens(t);return u?U.invalid(u):lr(s,l,n,`format ${r.format}`,t,c)}static get DATE_SHORT(){return Sn}static get DATE_MED(){return $o}static get DATE_MED_WITH_WEEKDAY(){return Zf}static get DATE_FULL(){return Co}static get DATE_HUGE(){return _o}static get TIME_SIMPLE(){return Mo}static get TIME_WITH_SECONDS(){return ko}static get TIME_WITH_SHORT_OFFSET(){return Ao}static get TIME_WITH_LONG_OFFSET(){return No}static get TIME_24_SIMPLE(){return Io}static get TIME_24_WITH_SECONDS(){return Po}static get TIME_24_WITH_SHORT_OFFSET(){return Fo}static get TIME_24_WITH_LONG_OFFSET(){return Lo}static get DATETIME_SHORT(){return Wo}static get DATETIME_SHORT_WITH_SECONDS(){return zo}static get DATETIME_MED(){return Vo}static get DATETIME_MED_WITH_SECONDS(){return Ro}static get DATETIME_MED_WITH_WEEKDAY(){return Kf}static get DATETIME_FULL(){return Bo}static get DATETIME_FULL_WITH_SECONDS(){return Ho}static get DATETIME_HUGE(){return Uo}static get DATETIME_HUGE_WITH_SECONDS(){return jo}}function Wr(e){if(U.isDateTime(e))return e;if(e&&e.valueOf&&vt(e.valueOf()))return U.fromJSDate(e);if(e&&typeof e=="object")return U.fromObject(e);throw new De(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const jh="3.5.0";Fe.DateTime=U,Fe.Duration=X,Fe.FixedOffsetZone=Te,Fe.IANAZone=tt,Fe.Info=Fr,Fe.Interval=ue,Fe.InvalidZone=Go,Fe.Settings=ce,Fe.SystemZone=_r,Fe.VERSION=jh,Fe.Zone=Xt;var At=Fe;Y.prototype.addYear=function(){this._date=this._date.plus({years:1})},Y.prototype.addMonth=function(){this._date=this._date.plus({months:1}).startOf("month")},Y.prototype.addDay=function(){this._date=this._date.plus({days:1}).startOf("day")},Y.prototype.addHour=function(){var e=this._date;this._date=this._date.plus({hours:1}).startOf("hour"),this._date<=e&&(this._date=this._date.plus({hours:1}))},Y.prototype.addMinute=function(){var e=this._date;this._date=this._date.plus({minutes:1}).startOf("minute"),this._date<e&&(this._date=this._date.plus({hours:1}))},Y.prototype.addSecond=function(){var e=this._date;this._date=this._date.plus({seconds:1}).startOf("second"),this._date<e&&(this._date=this._date.plus({hours:1}))},Y.prototype.subtractYear=function(){this._date=this._date.minus({years:1})},Y.prototype.subtractMonth=function(){this._date=this._date.minus({months:1}).endOf("month").startOf("second")},Y.prototype.subtractDay=function(){this._date=this._date.minus({days:1}).endOf("day").startOf("second")},Y.prototype.subtractHour=function(){var e=this._date;this._date=this._date.minus({hours:1}).endOf("hour").startOf("second"),this._date>=e&&(this._date=this._date.minus({hours:1}))},Y.prototype.subtractMinute=function(){var e=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second"),this._date>e&&(this._date=this._date.minus({hours:1}))},Y.prototype.subtractSecond=function(){var e=this._date;this._date=this._date.minus({seconds:1}).startOf("second"),this._date>e&&(this._date=this._date.minus({hours:1}))},Y.prototype.getDate=function(){return this._date.day},Y.prototype.getFullYear=function(){return this._date.year},Y.prototype.getDay=function(){var e=this._date.weekday;return e==7?0:e},Y.prototype.getMonth=function(){return this._date.month-1},Y.prototype.getHours=function(){return this._date.hour},Y.prototype.getMinutes=function(){return this._date.minute},Y.prototype.getSeconds=function(){return this._date.second},Y.prototype.getMilliseconds=function(){return this._date.millisecond},Y.prototype.getTime=function(){return this._date.valueOf()},Y.prototype.getUTCDate=function(){return this._getUTC().day},Y.prototype.getUTCFullYear=function(){return this._getUTC().year},Y.prototype.getUTCDay=function(){var e=this._getUTC().weekday;return e==7?0:e},Y.prototype.getUTCMonth=function(){return this._getUTC().month-1},Y.prototype.getUTCHours=function(){return this._getUTC().hour},Y.prototype.getUTCMinutes=function(){return this._getUTC().minute},Y.prototype.getUTCSeconds=function(){return this._getUTC().second},Y.prototype.toISOString=function(){return this._date.toUTC().toISO()},Y.prototype.toJSON=function(){return this._date.toJSON()},Y.prototype.setDate=function(e){this._date=this._date.set({day:e})},Y.prototype.setFullYear=function(e){this._date=this._date.set({year:e})},Y.prototype.setDay=function(e){this._date=this._date.set({weekday:e})},Y.prototype.setMonth=function(e){this._date=this._date.set({month:e+1})},Y.prototype.setHours=function(e){this._date=this._date.set({hour:e})},Y.prototype.setMinutes=function(e){this._date=this._date.set({minute:e})},Y.prototype.setSeconds=function(e){this._date=this._date.set({second:e})},Y.prototype.setMilliseconds=function(e){this._date=this._date.set({millisecond:e})},Y.prototype._getUTC=function(){return this._date.toUTC()},Y.prototype.toString=function(){return this.toDate().toString()},Y.prototype.toDate=function(){return this._date.toJSDate()},Y.prototype.isLastDayOfMonth=function(){var e=this._date.plus({days:1}).startOf("day");return this._date.month!==e.month},Y.prototype.isLastWeekdayOfMonth=function(){var e=this._date.plus({days:7}).startOf("day");return this._date.month!==e.month};function Y(e,t){var r={zone:t};if(e?e instanceof Y?this._date=e._date:e instanceof Date?this._date=At.DateTime.fromJSDate(e,r):typeof e=="number"?this._date=At.DateTime.fromMillis(e,r):typeof e=="string"&&(this._date=At.DateTime.fromISO(e,r),this._date.isValid||(this._date=At.DateTime.fromRFC2822(e,r)),this._date.isValid||(this._date=At.DateTime.fromSQL(e,r)),this._date.isValid||(this._date=At.DateTime.fromFormat(e,"EEE, d MMM yyyy HH:mm:ss",r))):this._date=At.DateTime.local(),!this._date||!this._date.isValid)throw new Error("CronDate: unhandled timestamp: "+JSON.stringify(e));t&&t!==this._date.zoneName&&(this._date=this._date.setZone(t))}var Yh=Y;function Nt(e){return{start:e,count:1}}function nl(e,t){e.end=t,e.step=t-e.start,e.count=2}function ti(e,t,r){t&&(t.count===2?(e.push(Nt(t.start)),e.push(Nt(t.end))):e.push(t)),r&&e.push(r)}function qh(e){for(var t=[],r=void 0,n=0;n<e.length;n++){var a=e[n];typeof a!="number"?(ti(t,r,Nt(a)),r=void 0):r?r.count===1?nl(r,a):r.step===a-r.end?(r.count++,r.end=a):r.count===2?(t.push(Nt(r.start)),r=Nt(r.end),nl(r,a)):(ti(t,r),r=Nt(a)):r=Nt(a)}return ti(t,r),t}var Gh=qh,Zh=Gh;function Kh(e,t,r){var n=Zh(e);if(n.length===1){var a=n[0],i=a.step;if(i===1&&a.start===t&&a.end===r)return"*";if(i!==1&&a.start===t&&a.end===r-i+1)return"*/"+i}for(var o=[],s=0,l=n.length;s<l;++s){var c=n[s];if(c.count===1){o.push(c.start);continue}var i=c.step;if(c.step===1){o.push(c.start+"-"+c.end);continue}var u=c.start==0?c.count-1:c.count;c.step*u>c.end?o=o.concat(Array.from({length:c.end-c.start+1}).map(function(d,h){var m=c.start+h;return(m-c.start)%c.step===0?m:null}).filter(function(d){return d!=null})):c.end===r-c.step+1?o.push(c.start+"/"+c.step):o.push(c.start+"-"+c.end+"/"+c.step)}return o.join(",")}var Xh=Kh,It=Yh,Jh=Xh,al=1e4;function L(e,t){this._options=t,this._utc=t.utc||!1,this._tz=this._utc?"UTC":t.tz,this._currentDate=new It(t.currentDate,this._tz),this._startDate=t.startDate?new It(t.startDate,this._tz):null,this._endDate=t.endDate?new It(t.endDate,this._tz):null,this._isIterator=t.iterator||!1,this._hasIterated=!1,this._nthDayOfWeek=t.nthDayOfWeek||0,this.fields=L._freezeFields(e)}L.map=["second","minute","hour","dayOfMonth","month","dayOfWeek"],L.predefined={"@yearly":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@hourly":"0 * * * *"},L.constraints=[{min:0,max:59,chars:[]},{min:0,max:59,chars:[]},{min:0,max:23,chars:[]},{min:1,max:31,chars:["L"]},{min:1,max:12,chars:[]},{min:0,max:7,chars:["L"]}],L.daysInMonth=[31,29,31,30,31,30,31,31,30,31,30,31],L.aliases={month:{jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},dayOfWeek:{sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}},L.parseDefaults=["0","*","*","*","*","*"],L.standardValidCharacters=/^[,*\d/-]+$/,L.dayOfWeekValidCharacters=/^[?,*\dL#/-]+$/,L.dayOfMonthValidCharacters=/^[?,*\dL/-]+$/,L.validCharacters={second:L.standardValidCharacters,minute:L.standardValidCharacters,hour:L.standardValidCharacters,dayOfMonth:L.dayOfMonthValidCharacters,month:L.standardValidCharacters,dayOfWeek:L.dayOfWeekValidCharacters},L._isValidConstraintChar=function(t,r){return typeof r!="string"?!1:t.chars.some(function(n){return r.indexOf(n)>-1})},L._parseField=function(t,r,n){switch(t){case"month":case"dayOfWeek":var a=L.aliases[t];r=r.replace(/[a-z]{3}/gi,function(l){if(l=l.toLowerCase(),typeof a[l]!="undefined")return a[l];throw new Error('Validation error, cannot resolve alias "'+l+'"')});break}if(!L.validCharacters[t].test(r))throw new Error("Invalid characters, got value: "+r);r.indexOf("*")!==-1?r=r.replace(/\*/g,n.min+"-"+n.max):r.indexOf("?")!==-1&&(r=r.replace(/\?/g,n.min+"-"+n.max));function i(l){var c=[];function u(m){if(m instanceof Array)for(var p=0,v=m.length;p<v;p++){var b=m[p];if(L._isValidConstraintChar(n,b)){c.push(b);continue}if(typeof b!="number"||Number.isNaN(b)||b<n.min||b>n.max)throw new Error("Constraint error, got value "+b+" expected range "+n.min+"-"+n.max);c.push(b)}else{if(L._isValidConstraintChar(n,m)){c.push(m);return}var y=+m;if(Number.isNaN(y)||y<n.min||y>n.max)throw new Error("Constraint error, got value "+m+" expected range "+n.min+"-"+n.max);t==="dayOfWeek"&&(y=y%7),c.push(y)}}var f=l.split(",");if(!f.every(function(m){return m.length>0}))throw new Error("Invalid list value format");if(f.length>1)for(var d=0,h=f.length;d<h;d++)u(o(f[d]));else u(o(l));return c.sort(L._sortCompareFn),c}function o(l){var c=1,u=l.split("/");if(u.length>2)throw new Error("Invalid repeat: "+l);return u.length>1?(u[0]==+u[0]&&(u=[u[0]+"-"+n.max,u[1]]),s(u[0],u[u.length-1])):s(l,c)}function s(l,c){var u=[],f=l.split("-");if(f.length>1){if(f.length<2)return+l;if(!f[0].length){if(!f[1].length)throw new Error("Invalid range: "+l);return+l}var d=+f[0],h=+f[1];if(Number.isNaN(d)||Number.isNaN(h)||d<n.min||h>n.max)throw new Error("Constraint error, got range "+d+"-"+h+" expected range "+n.min+"-"+n.max);if(d>h)throw new Error("Invalid range: "+l);var m=+c;if(Number.isNaN(m)||m<=0)throw new Error("Constraint error, cannot repeat at every "+m+" time.");t==="dayOfWeek"&&h%7===0&&u.push(0);for(var p=d,v=h;p<=v;p++){var b=u.indexOf(p)!==-1;!b&&m>0&&m%c===0?(m=1,u.push(p)):m++}return u}return Number.isNaN(+l)?l:+l}return i(r)},L._sortCompareFn=function(e,t){var r=typeof e=="number",n=typeof t=="number";return r&&n?e-t:!r&&n?1:r&&!n?-1:e.localeCompare(t)},L._handleMaxDaysInMonth=function(e){if(e.month.length===1){var t=L.daysInMonth[e.month[0]-1];if(e.dayOfMonth[0]>t)throw new Error("Invalid explicit day of month definition");return e.dayOfMonth.filter(function(r){return r==="L"?!0:r<=t}).sort(L._sortCompareFn)}},L._freezeFields=function(e){for(var t=0,r=L.map.length;t<r;++t){var n=L.map[t],a=e[n];e[n]=Object.freeze(a)}return Object.freeze(e)},L.prototype._applyTimezoneShift=function(e,t,r){if(r==="Month"||r==="Day"){var n=e.getTime();e[t+r]();var a=e.getTime();n===a&&(e.getMinutes()===0&&e.getSeconds()===0?e.addHour():e.getMinutes()===59&&e.getSeconds()===59&&e.subtractHour())}else{var i=e.getHours();e[t+r]();var o=e.getHours(),s=o-i;s===2?this.fields.hour.length!==24&&(this._dstStart=o):s===0&&e.getMinutes()===0&&e.getSeconds()===0&&this.fields.hour.length!==24&&(this._dstEnd=o)}},L.prototype._findSchedule=function(t){function r(b,y){for(var O=0,S=y.length;O<S;O++)if(y[O]>=b)return y[O]===b;return y[0]===b}function n(b,y){if(y<6){if(b.getDate()<8&&y===1)return!0;var O=b.getDate()%7?1:0,S=b.getDate()-b.getDate()%7,w=Math.floor(S/7)+O;return w===y}return!1}function a(b){return b.length>0&&b.some(function(y){return typeof y=="string"&&y.indexOf("L")>=0})}t=t||!1;var i=t?"subtract":"add",o=new It(this._currentDate,this._tz),s=this._startDate,l=this._endDate,c=o.getTime(),u=0;function f(b){return b.some(function(y){if(!a([y]))return!1;var O=Number.parseInt(y[0])%7;if(Number.isNaN(O))throw new Error("Invalid last weekday of the month expression: "+y);return o.getDay()===O&&o.isLastWeekdayOfMonth()})}for(;u<al;){if(u++,t){if(s&&o.getTime()-s.getTime()<0)throw new Error("Out of the timespan range")}else if(l&&l.getTime()-o.getTime()<0)throw new Error("Out of the timespan range");var d=r(o.getDate(),this.fields.dayOfMonth);a(this.fields.dayOfMonth)&&(d=d||o.isLastDayOfMonth());var h=r(o.getDay(),this.fields.dayOfWeek);a(this.fields.dayOfWeek)&&(h=h||f(this.fields.dayOfWeek));var m=this.fields.dayOfMonth.length>=L.daysInMonth[o.getMonth()],p=this.fields.dayOfWeek.length===L.constraints[5].max-L.constraints[5].min+1,v=o.getHours();if(!d&&(!h||p)){this._applyTimezoneShift(o,i,"Day");continue}if(!m&&p&&!d){this._applyTimezoneShift(o,i,"Day");continue}if(m&&!p&&!h){this._applyTimezoneShift(o,i,"Day");continue}if(this._nthDayOfWeek>0&&!n(o,this._nthDayOfWeek)){this._applyTimezoneShift(o,i,"Day");continue}if(!r(o.getMonth()+1,this.fields.month)){this._applyTimezoneShift(o,i,"Month");continue}if(r(v,this.fields.hour)){if(this._dstEnd===v&&!t){this._dstEnd=null,this._applyTimezoneShift(o,"add","Hour");continue}}else if(this._dstStart!==v){this._dstStart=null,this._applyTimezoneShift(o,i,"Hour");continue}else if(!r(v-1,this.fields.hour)){o[i+"Hour"]();continue}if(!r(o.getMinutes(),this.fields.minute)){this._applyTimezoneShift(o,i,"Minute");continue}if(!r(o.getSeconds(),this.fields.second)){this._applyTimezoneShift(o,i,"Second");continue}if(c===o.getTime()){i==="add"||o.getMilliseconds()===0?this._applyTimezoneShift(o,i,"Second"):o.setMilliseconds(0);continue}break}if(u>=al)throw new Error("Invalid expression, loop limit exceeded");return this._currentDate=new It(o,this._tz),this._hasIterated=!0,o},L.prototype.next=function(){var t=this._findSchedule();return this._isIterator?{value:t,done:!this.hasNext()}:t},L.prototype.prev=function(){var t=this._findSchedule(!0);return this._isIterator?{value:t,done:!this.hasPrev()}:t},L.prototype.hasNext=function(){var e=this._currentDate,t=this._hasIterated;try{return this._findSchedule(),!0}catch(r){return!1}finally{this._currentDate=e,this._hasIterated=t}},L.prototype.hasPrev=function(){var e=this._currentDate,t=this._hasIterated;try{return this._findSchedule(!0),!0}catch(r){return!1}finally{this._currentDate=e,this._hasIterated=t}},L.prototype.iterate=function(t,r){var n=[];if(t>=0)for(var a=0,i=t;a<i;a++)try{var o=this.next();n.push(o),r&&r(o,a)}catch(s){break}else for(var a=0,i=t;a>i;a--)try{var o=this.prev();n.push(o),r&&r(o,a)}catch(c){break}return n},L.prototype.reset=function(t){this._currentDate=new It(t||this._options.currentDate)},L.prototype.stringify=function(t){for(var r=[],n=t?0:1,a=L.map.length;n<a;++n){var i=L.map[n],o=this.fields[i],s=L.constraints[n];i==="dayOfMonth"&&this.fields.month.length===1?s={min:1,max:L.daysInMonth[this.fields.month[0]-1]}:i==="dayOfWeek"&&(s={min:0,max:6},o=o[o.length-1]===7?o.slice(0,-1):o),r.push(Jh(o,s.min,s.max))}return r.join(" ")},L.parse=function(t,r){var n=this;typeof r=="function"&&(r={});function a(i,o){o||(o={}),typeof o.currentDate=="undefined"&&(o.currentDate=new It(void 0,n._tz)),L.predefined[i]&&(i=L.predefined[i]);var s=[],l=(i+"").trim().split(/\s+/);if(l.length>6)throw new Error("Invalid cron expression");for(var c=L.map.length-l.length,u=0,f=L.map.length;u<f;++u){var d=L.map[u],h=l[l.length>f?u:u-c];if(u<c||!h)s.push(L._parseField(d,L.parseDefaults[u],L.constraints[u]));else{var m=d==="dayOfWeek"?y(h):h;s.push(L._parseField(d,m,L.constraints[u]))}}for(var p={},u=0,f=L.map.length;u<f;u++){var v=L.map[u];p[v]=s[u]}var b=L._handleMaxDaysInMonth(p);return p.dayOfMonth=b||p.dayOfMonth,new L(p,o);function y(O){var S=O.split("#");if(S.length>1){var w=+S[S.length-1];if(/,/.test(O))throw new Error("Constraint error, invalid dayOfWeek `#` and `,` special characters are incompatible");if(/\//.test(O))throw new Error("Constraint error, invalid dayOfWeek `#` and `/` special characters are incompatible");if(/-/.test(O))throw new Error("Constraint error, invalid dayOfWeek `#` and `-` special characters are incompatible");if(S.length>2||Number.isNaN(w)||w<1||w>5)throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return o.nthDayOfWeek=w,S[0]}return O}}return a(t,r)},L.fieldsToExpression=function(t,r){function n(d,h,m){if(!h)throw new Error("Validation error, Field "+d+" is missing");if(h.length===0)throw new Error("Validation error, Field "+d+" contains no values");for(var p=0,v=h.length;p<v;p++){var b=h[p];if(!L._isValidConstraintChar(m,b)&&(typeof b!="number"||Number.isNaN(b)||b<m.min||b>m.max))throw new Error("Constraint error, got value "+b+" expected range "+m.min+"-"+m.max)}}for(var a={},i=0,o=L.map.length;i<o;++i){var s=L.map[i],l=t[s];n(s,l,L.constraints[i]);for(var c=[],u=-1;++u<l.length;)c[u]=l[u];if(l=c.sort(L._sortCompareFn).filter(function(d,h,m){return!h||d!==m[h-1]}),l.length!==c.length)throw new Error("Validation error, Field "+s+" contains duplicate values");a[s]=l}var f=L._handleMaxDaysInMonth(a);return a.dayOfMonth=f||a.dayOfMonth,new L(a,r||{})};var Qh=L;const ep=xo(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Wn=Qh;function yt(){}yt._parseEntry=function(t){var r=t.split(" ");if(r.length===6)return{interval:Wn.parse(t)};if(r.length>6)return{interval:Wn.parse(r.slice(0,6).join(" ")),command:r.slice(6,r.length)};throw new Error("Invalid entry: "+t)},yt.parseExpression=function(t,r){return Wn.parse(t,r)},yt.fieldsToExpression=function(t,r){return Wn.fieldsToExpression(t,r)},yt.parseString=function(t){for(var r=t.split(`
|
|
2
2
|
`),n={variables:{},expressions:[],errors:{}},a=0,i=r.length;a<i;a++){var o=r[a],s=null,l=o.trim();if(l.length>0){if(l.match(/^#/))continue;if(s=l.match(/^(.*)=(.*)$/))n.variables[s[1]]=s[2];else{var c=null;try{c=yt._parseEntry("0 "+l),n.expressions.push(c.interval)}catch(u){n.errors[l]=u}}}}return n},yt.parseFile=function(t,r){ep.readFile(t,function(n,a){if(n){r(n);return}return r(null,yt.parseString(a.toString()))})};var tp=yt,rp=Array.isArray,Be=rp,np=typeof Ge=="object"&&Ge&&Ge.Object===Object&&Ge,il=np,ap=il,ip=typeof self=="object"&&self&&self.Object===Object&&self,op=ap||ip||Function("return this")(),rt=op,sp=rt,lp=sp.Symbol,cr=lp,ol=cr,sl=Object.prototype,cp=sl.hasOwnProperty,up=sl.toString,zr=ol?ol.toStringTag:void 0;function fp(e){var t=cp.call(e,zr),r=e[zr];try{e[zr]=void 0;var n=!0}catch(i){}var a=up.call(e);return n&&(t?e[zr]=r:delete e[zr]),a}var dp=fp,hp=Object.prototype,pp=hp.toString;function mp(e){return pp.call(e)}var vp=mp,ll=cr,gp=dp,bp=vp,yp="[object Null]",wp="[object Undefined]",cl=ll?ll.toStringTag:void 0;function Sp(e){return e==null?e===void 0?wp:yp:cl&&cl in Object(e)?gp(e):bp(e)}var ur=Sp;function Op(e){return e!=null&&typeof e=="object"}var wt=Op,Dp=ur,Tp=wt,xp="[object Symbol]";function Ep(e){return typeof e=="symbol"||Tp(e)&&Dp(e)==xp}var Vr=Ep,$p=Be,Cp=Vr,_p=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mp=/^\w*$/;function kp(e,t){if($p(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Cp(e)?!0:Mp.test(e)||!_p.test(e)||t!=null&&e in Object(t)}var ri=kp;function Ap(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var st=Ap,Np=ur,Ip=st,Pp="[object AsyncFunction]",Fp="[object Function]",Lp="[object GeneratorFunction]",Wp="[object Proxy]";function zp(e){if(!Ip(e))return!1;var t=Np(e);return t==Fp||t==Lp||t==Pp||t==Wp}var ni=zp,Vp=rt,Rp=Vp["__core-js_shared__"],Bp=Rp,ai=Bp,ul=function(){var e=/[^.]+$/.exec(ai&&ai.keys&&ai.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Hp(e){return!!ul&&ul in e}var Up=Hp,jp=Function.prototype,Yp=jp.toString;function qp(e){if(e!=null){try{return Yp.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var fl=qp,Gp=ni,Zp=Up,Kp=st,Xp=fl,Jp=/[\\^$.*+?()[\]{}|]/g,Qp=/^\[object .+?Constructor\]$/,em=Function.prototype,tm=Object.prototype,rm=em.toString,nm=tm.hasOwnProperty,am=RegExp("^"+rm.call(nm).replace(Jp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function im(e){if(!Kp(e)||Zp(e))return!1;var t=Gp(e)?am:Qp;return t.test(Xp(e))}var om=im;function sm(e,t){return e==null?void 0:e[t]}var lm=sm,cm=om,um=lm;function fm(e,t){var r=um(e,t);return cm(r)?r:void 0}var Pt=fm,dm=Pt,hm=dm(Object,"create"),zn=hm,dl=zn;function pm(){this.__data__=dl?dl(null):{},this.size=0}var mm=pm;function vm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var gm=vm,bm=zn,ym="__lodash_hash_undefined__",wm=Object.prototype,Sm=wm.hasOwnProperty;function Om(e){var t=this.__data__;if(bm){var r=t[e];return r===ym?void 0:r}return Sm.call(t,e)?t[e]:void 0}var Dm=Om,Tm=zn,xm=Object.prototype,Em=xm.hasOwnProperty;function $m(e){var t=this.__data__;return Tm?t[e]!==void 0:Em.call(t,e)}var Cm=$m,_m=zn,Mm="__lodash_hash_undefined__";function km(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=_m&&t===void 0?Mm:t,this}var Am=km,Nm=mm,Im=gm,Pm=Dm,Fm=Cm,Lm=Am;function fr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fr.prototype.clear=Nm,fr.prototype.delete=Im,fr.prototype.get=Pm,fr.prototype.has=Fm,fr.prototype.set=Lm;var Wm=fr;function zm(){this.__data__=[],this.size=0}var Vm=zm;function Rm(e,t){return e===t||e!==e&&t!==t}var Rr=Rm,Bm=Rr;function Hm(e,t){for(var r=e.length;r--;)if(Bm(e[r][0],t))return r;return-1}var Vn=Hm,Um=Vn,jm=Array.prototype,Ym=jm.splice;function qm(e){var t=this.__data__,r=Um(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ym.call(t,r,1),--this.size,!0}var Gm=qm,Zm=Vn;function Km(e){var t=this.__data__,r=Zm(t,e);return r<0?void 0:t[r][1]}var Xm=Km,Jm=Vn;function Qm(e){return Jm(this.__data__,e)>-1}var ev=Qm,tv=Vn;function rv(e,t){var r=this.__data__,n=tv(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var nv=rv,av=Vm,iv=Gm,ov=Xm,sv=ev,lv=nv;function dr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}dr.prototype.clear=av,dr.prototype.delete=iv,dr.prototype.get=ov,dr.prototype.has=sv,dr.prototype.set=lv;var Rn=dr,cv=Pt,uv=rt,fv=cv(uv,"Map"),ii=fv,hl=Wm,dv=Rn,hv=ii;function pv(){this.size=0,this.__data__={hash:new hl,map:new(hv||dv),string:new hl}}var mv=pv;function vv(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var gv=vv,bv=gv;function yv(e,t){var r=e.__data__;return bv(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Bn=yv,wv=Bn;function Sv(e){var t=wv(this,e).delete(e);return this.size-=t?1:0,t}var Ov=Sv,Dv=Bn;function Tv(e){return Dv(this,e).get(e)}var xv=Tv,Ev=Bn;function $v(e){return Ev(this,e).has(e)}var Cv=$v,_v=Bn;function Mv(e,t){var r=_v(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var kv=Mv,Av=mv,Nv=Ov,Iv=xv,Pv=Cv,Fv=kv;function hr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}hr.prototype.clear=Av,hr.prototype.delete=Nv,hr.prototype.get=Iv,hr.prototype.has=Pv,hr.prototype.set=Fv;var oi=hr,pl=oi,Lv="Expected a function";function si(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Lv);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(si.Cache||pl),r}si.Cache=pl;var Wv=si,zv=Wv,Vv=500;function Rv(e){var t=zv(e,function(n){return r.size===Vv&&r.clear(),n}),r=t.cache;return t}var Bv=Rv,Hv=Bv,Uv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jv=/\\(\\)?/g,Yv=Hv(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Uv,function(r,n,a,i){t.push(a?i.replace(jv,"$1"):n||r)}),t}),qv=Yv;function Gv(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var li=Gv,ml=cr,Zv=li,Kv=Be,Xv=Vr,Jv=1/0,vl=ml?ml.prototype:void 0,gl=vl?vl.toString:void 0;function bl(e){if(typeof e=="string")return e;if(Kv(e))return Zv(e,bl)+"";if(Xv(e))return gl?gl.call(e):"";var t=e+"";return t=="0"&&1/e==-Jv?"-0":t}var Qv=bl,eg=Qv;function tg(e){return e==null?"":eg(e)}var rg=tg,ng=Be,ag=ri,ig=qv,og=rg;function sg(e,t){return ng(e)?e:ag(e,t)?[e]:ig(og(e))}var Hn=sg,lg=Vr,cg=1/0;function ug(e){if(typeof e=="string"||lg(e))return e;var t=e+"";return t=="0"&&1/e==-cg?"-0":t}var Br=ug,fg=Hn,dg=Br;function hg(e,t){t=fg(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[dg(t[r++])];return r&&r==n?e:void 0}var Un=hg,pg=Un;function mg(e,t,r){var n=e==null?void 0:pg(e,t);return n===void 0?r:n}var yl=mg;const jn=ge(yl);function lt(e){"@babel/helpers - typeof";return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(e)}function vg(e,t){if(lt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(lt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wl(e){var t=vg(e,"string");return lt(t)=="symbol"?t:t+""}function Ft(e,t,r){return(t=wl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sl(Object(r),!0).forEach(function(n){Ft(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yn(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function nt(e,t){if(e==null)return{};var r,n,a=Yn(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ol(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wl(n.key),n)}}function we(e,t,r){return t&&Ol(e.prototype,t),r&&Ol(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qn(e){return qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qn(e)}function Dl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Dl=function(){return!!e})()}function gg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bg(e,t){if(t&&(lt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gg(e)}function Ee(e,t,r){return t=qn(t),bg(e,Dl()?Reflect.construct(t,r||[],qn(e).constructor):t.apply(e,r))}function Gn(e,t){return Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Gn(e,t)}function $e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gn(e,t)}function Tl(e){if(Array.isArray(e))return e}function yg(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function ci(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ui(e,t){if(e){if(typeof e=="string")return ci(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ci(e,t):void 0}}function xl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function He(e,t){return Tl(e)||yg(e,t)||ui(e,t)||xl()}function El(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=El(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function he(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=El(e))&&(n&&(n+=" "),n+=t);return n}function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pe.apply(null,arguments)}var wg=function(e,t,r,n,a,i,o,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,a,i,o,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},Sg=wg;const Hr=ge(Sg);var Og=function(){};function Dg(e,t){var r={};return Object.keys(e).forEach(function(n){r[Zn(n)]=Og}),r}function $l(e,t){return e[t]!==void 0}function Zn(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Tg(e){return!!e&&(typeof e!="function"||e.prototype&&e.prototype.isReactComponent)}function xg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gn(e,t)}function Cl(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function _l(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n!=null?n:null}this.setState(t.bind(this))}function Ml(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}Cl.__suppressDeprecationWarning=!0,_l.__suppressDeprecationWarning=!0,Ml.__suppressDeprecationWarning=!0;function Eg(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var r=null,n=null,a=null;if(typeof t.componentWillMount=="function"?r="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?a="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(a="UNSAFE_componentWillUpdate"),r!==null||n!==null||a!==null){var i=e.displayName||e.name,o=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
4
4
|
|
package/dist/externalVersion.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
"@tachybase/client": "0.23.
|
|
2
|
+
"@tachybase/client": "0.23.16",
|
|
3
3
|
"react-i18next": "15.2.0",
|
|
4
|
-
"@tachybase/server": "0.23.
|
|
5
|
-
"@tachybase/test": "0.23.
|
|
4
|
+
"@tachybase/server": "0.23.16",
|
|
5
|
+
"@tachybase/test": "0.23.16",
|
|
6
6
|
"react": "18.3.1",
|
|
7
|
-
"@tachybase/schema": "0.23.
|
|
7
|
+
"@tachybase/schema": "0.23.16",
|
|
8
8
|
"@ant-design/icons": "5.3.7",
|
|
9
9
|
"dayjs": "1.11.13",
|
|
10
10
|
"lodash": "4.17.21",
|
|
11
11
|
"antd": "5.22.5",
|
|
12
12
|
"react-dom": "18.3.1",
|
|
13
|
-
"@tachybase/components": "0.23.
|
|
13
|
+
"@tachybase/components": "0.23.16"
|
|
14
14
|
};
|
package/dist/locale/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const NAMESPACE = "calendar";
|
|
1
|
+
export declare const NAMESPACE = "block-calendar";
|
|
2
2
|
export declare function i18nt(key: string, options?: any): string;
|
|
3
3
|
export declare function generateNTemplate(key: string): string;
|
|
4
|
-
export declare function useTranslation(): import("react-i18next").UseTranslationResponse<"calendar", undefined>;
|
|
4
|
+
export declare function useTranslation(): import("react-i18next").UseTranslationResponse<"block-calendar", undefined>;
|
package/dist/locale/index.js
CHANGED
|
@@ -25,7 +25,7 @@ __export(locale_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(locale_exports);
|
|
26
26
|
var import_client = require("@tachybase/client");
|
|
27
27
|
var import_react_i18next = require("react-i18next");
|
|
28
|
-
const NAMESPACE = "calendar";
|
|
28
|
+
const NAMESPACE = "block-calendar";
|
|
29
29
|
function i18nt(key, options = {}) {
|
|
30
30
|
return import_client.i18n.t(key, { ns: NAMESPACE, ...options });
|
|
31
31
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/plugin-block-calendar",
|
|
3
3
|
"displayName": "Calendar",
|
|
4
|
-
"version": "0.23.
|
|
4
|
+
"version": "0.23.16",
|
|
5
5
|
"description": "Provides callendar collection template and block for managing date data, typically for date/time related information such as events, appointments, tasks, and so on.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"Collections",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"main": "./dist/server/index.js",
|
|
12
12
|
"types": "./dist/server/index.d.ts",
|
|
13
|
+
"dependencies": {},
|
|
13
14
|
"devDependencies": {
|
|
14
15
|
"@ant-design/icons": "~5.3.7",
|
|
15
16
|
"antd": "5.22.5",
|
|
@@ -21,14 +22,14 @@
|
|
|
21
22
|
"react-i18next": "^15.2.0",
|
|
22
23
|
"react-js-cron": "^3.2.0",
|
|
23
24
|
"solarlunar-es": "^1.0.9",
|
|
24
|
-
"@tachybase/components": "0.23.
|
|
25
|
-
"@tachybase/schema": "0.23.
|
|
25
|
+
"@tachybase/components": "0.23.16",
|
|
26
|
+
"@tachybase/schema": "0.23.16"
|
|
26
27
|
},
|
|
27
28
|
"peerDependencies": {
|
|
28
|
-
"@tachybase/
|
|
29
|
-
"@tachybase/
|
|
30
|
-
"@tachybase/
|
|
31
|
-
"@tachybase/
|
|
29
|
+
"@tachybase/database": "0.23.16",
|
|
30
|
+
"@tachybase/server": "0.23.16",
|
|
31
|
+
"@tachybase/test": "0.23.16",
|
|
32
|
+
"@tachybase/client": "0.23.16"
|
|
32
33
|
},
|
|
33
34
|
"description.zh-CN": "提供日历数据表模板和卡片,用于管理日期数据,通常用于事件、约会、任务等与日期/时间相关的信息。",
|
|
34
35
|
"displayName.zh-CN": "日历",
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
> @tachybase/plugin-calendar@0.22.38 build /Users/seal/Documents/projects/tachybase/packages/plugin-block-calendar
|
|
4
|
-
> tachybase-build --no-dts @tachybase/plugin-calendar
|
|
5
|
-
|
|
6
|
-
[33m[33mThe CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.[39m[39m
|
|
7
|
-
[4m[95m@tachybase/plugin-calendar[39m[24m: [1mplugin-block-calendar[22m build start
|
|
8
|
-
[4m[95m@tachybase/plugin-calendar[39m[24m: build plugin client
|
|
9
|
-
[4m[95m@tachybase/plugin-calendar[39m[24m: build plugin server source
|
|
10
|
-
[4m[95m@tachybase/plugin-calendar[39m[24m: delete server files
|
|
11
|
-
[4m[95m@tachybase/plugin-calendar[39m[24m: build plugin server dependencies
|
|
12
|
-
[4m[95m@tachybase/plugin-calendar[39m[24m: These packages [33m@tachybase/client, react-i18next, @tachybase/server[39m will be [3mexclude[23m. For more information, please refer to: [34mhttps://docs.tachybase.com/development/deps[39m.
|
|
13
|
-
[4m[95m@tachybase/plugin-calendar[39m[24m: write external version
|
|
14
|
-
|