forked from duneanalytics/DuneQueryRepo
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
f185a4bd-e8cff2972972f92f.js.download
2 lines (2 loc) · 60.7 KB
/
f185a4bd-e8cff2972972f92f.js.download
1
2
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9225],{68565:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});class r extends Error{}class n extends r{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class s extends r{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class i extends r{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class a extends r{}class o extends r{constructor(t){super(`Invalid unit ${t}`)}}class u extends r{}class l extends r{constructor(){super("Zone is an abstract class")}}let c="numeric",h="short",d="long",m={year:c,month:c,day:c},f={year:c,month:h,day:c},y={year:c,month:h,day:c,weekday:h},g={year:c,month:d,day:c},w={year:c,month:d,day:c,weekday:d},p={hour:c,minute:c},T={hour:c,minute:c,second:c},v={hour:c,minute:c,second:c,timeZoneName:h},S={hour:c,minute:c,second:c,timeZoneName:d},O={hour:c,minute:c,hourCycle:"h23"},N={hour:c,minute:c,second:c,hourCycle:"h23"},k={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:h},M={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:d},b={year:c,month:c,day:c,hour:c,minute:c},D={year:c,month:c,day:c,hour:c,minute:c,second:c},E={year:c,month:h,day:c,hour:c,minute:c},V={year:c,month:h,day:c,hour:c,minute:c,second:c},I={year:c,month:h,day:c,weekday:h,hour:c,minute:c},x={year:c,month:d,day:c,hour:c,minute:c,timeZoneName:h},C={year:c,month:d,day:c,hour:c,minute:c,second:c,timeZoneName:h},Z={year:c,month:d,day:c,weekday:d,hour:c,minute:c,timeZoneName:d},F={year:c,month:d,day:c,weekday:d,hour:c,minute:c,second:c,timeZoneName:d};class ${get type(){throw new l}get name(){throw new l}get ianaName(){return this.name}get isUniversal(){throw new l}offsetName(t,e){throw new l}formatOffset(t,e){throw new l}offset(t){throw new l}equals(t){throw new l}get isValid(){throw new l}}let L=null;class z extends ${static get instance(){return null===L&&(L=new z),L}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:r}){return tV(t,e,r)}formatOffset(t,e){return tZ(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let q={},A={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},j={};class _ extends ${static create(t){return j[t]||(j[t]=new _(t)),j[t]}static resetCache(){j={},q={}}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(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=_.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:r}){return tV(t,e,r,this.name)}formatOffset(t,e){return tZ(this.offset(t),e)}offset(t){var e;let r=new Date(t);if(isNaN(r))return NaN;let n=(q[e=this.name]||(q[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"})),q[e]),[s,i,a,o,u,l,c]=n.formatToParts?function(t,e){let r=t.formatToParts(e),n=[];for(let t=0;t<r.length;t++){let{type:e,value:s}=r[t],i=A[e];"era"===e?n[i]=s:th(i)||(n[i]=parseInt(s,10))}return n}(n,r):function(t,e){let r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,i,a,o,u,l,c]=n;return[a,s,i,o,u,l,c]}(n,r);"BC"===o&&(s=-Math.abs(s)+1);let h=tb({year:s,month:i,day:a,hour:24===u?0:u,minute:l,second:c,millisecond:0}),d=+r,m=d%1e3;return(h-(d-=m>=0?m:1e3+m))/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let U={},H={};function W(t,e={}){let r=JSON.stringify([t,e]),n=H[r];return n||(n=new Intl.DateTimeFormat(t,e),H[r]=n),n}let R={},J={},P=null;function Y(t,e,r,n,s){let i=t.listingMode(r);return"error"===i?null:"en"===i?n(e):s(e)}class G{constructor(t,e,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;let{padTo:n,floor:s,...i}=r;if(!e||Object.keys(i).length>0){let e={useGrouping:!1,...r};r.padTo>0&&(e.minimumIntegerDigits=r.padTo),this.inf=function(t,e={}){let r=JSON.stringify([t,e]),n=R[r];return n||(n=new Intl.NumberFormat(t,e),R[r]=n),n}(t,e)}}format(t){if(this.inf){let e=this.floor?Math.floor(t):t;return this.inf.format(e)}{let e=this.floor?Math.floor(t):tO(t,3);return tp(e,this.padTo)}}}class B{constructor(t,e,r){let n;if(this.opts=r,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){let e=-1*(t.offset/60),r=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&_.create(r).valid?(n=r,this.dt=t):(n="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,n=t.zone.name):(n="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let s={...this.opts};s.timeZone=s.timeZone||n,this.dtf=W(e,s)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(t=>{if("timeZoneName"!==t.type)return t;{let e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class Q{constructor(t,e,r){this.opts={style:"long",...r},!e&&tf()&&(this.rtf=function(t,e={}){let{base:r,...n}=e,s=JSON.stringify([t,n]),i=J[s];return i||(i=new Intl.RelativeTimeFormat(t,e),J[s]=i),i}(t,r))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,r="always",n=!1){let s={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=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===r&&i){let r="days"===t;switch(e){case 1:return r?"tomorrow":`next ${s[t][0]}`;case -1:return r?"yesterday":`last ${s[t][0]}`;case 0:return r?"today":`this ${s[t][0]}`}}let a=Object.is(e,-0)||e<0,o=Math.abs(e),u=1===o,l=s[t],c=n?u?l[1]:l[2]||l[1]:u?s[t][0]:t;return a?`${o} ${c} ago`:`in ${o} ${c}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}class K{static fromOpts(t){return K.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,e,r,n=!1){let s=t||tc.defaultLocale,i=s||(n?"en-US":P||(P=new Intl.DateTimeFormat().resolvedOptions().locale)),a=e||tc.defaultNumberingSystem,o=r||tc.defaultOutputCalendar;return new K(i,a,o,s)}static resetCache(){P=null,H={},R={},J={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:r}={}){return K.create(t,e,r)}constructor(t,e,r,n){var s,i,a;let[o,u,l]=function(t){let e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(-1===r)return[t];{let e,n;try{e=W(t).resolvedOptions(),n=t}catch(i){let s=t.substring(0,r);e=W(s).resolvedOptions(),n=s}let{numberingSystem:s,calendar:i}=e;return[n,s,i]}}(t);this.locale=o,this.numberingSystem=e||u||null,this.outputCalendar=r||l||null,this.intl=(s=this.locale,i=this.numberingSystem,((a=this.outputCalendar)||i)&&(s.includes("-u-")||(s+="-u"),a&&(s+=`-ca-${a}`),i&&(s+=`-nu-${i}`)),s),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=(!this.numberingSystem||"latn"===this.numberingSystem)&&("latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(this.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),e=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return t&&e?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?K.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1,r=!0){return Y(this,t,r,tq,()=>{let r=e?{month:t,day:"numeric"}:{month:t},n=e?"format":"standalone";return this.monthsCache[n][t]||(this.monthsCache[n][t]=function(t){let e=[];for(let r=1;r<=12;r++){let n=rE.utc(2016,r,1);e.push(t(n))}return e}(t=>this.extract(t,r,"month"))),this.monthsCache[n][t]})}weekdays(t,e=!1,r=!0){return Y(this,t,r,tU,()=>{let r=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},n=e?"format":"standalone";return this.weekdaysCache[n][t]||(this.weekdaysCache[n][t]=function(t){let e=[];for(let r=1;r<=7;r++){let n=rE.utc(2016,11,13+r);e.push(t(n))}return e}(t=>this.extract(t,r,"weekday"))),this.weekdaysCache[n][t]})}meridiems(t=!0){return Y(this,void 0,t,()=>tH,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[rE.utc(2016,11,13,9),rE.utc(2016,11,13,19)].map(e=>this.extract(e,t,"dayperiod"))}return this.meridiemCache})}eras(t,e=!0){return Y(this,t,e,tP,()=>{let e={era:t};return this.eraCache[t]||(this.eraCache[t]=[rE.utc(-40,1,1),rE.utc(2017,1,1)].map(t=>this.extract(t,e,"era"))),this.eraCache[t]})}extract(t,e,r){let n=this.dtFormatter(t,e),s=n.formatToParts(),i=s.find(t=>t.type.toLowerCase()===r);return i?i.value:null}numberFormatter(t={}){return new G(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new B(t,this.intl,e)}relFormatter(t={}){return new Q(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){let r=JSON.stringify([t,e]),n=U[r];return n||(n=new Intl.ListFormat(t,e),U[r]=n),n}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let X=null;class tt extends ${static get utcInstance(){return null===X&&(X=new tt(0)),X}static instance(t){return 0===t?tt.utcInstance:new tt(t)}static parseSpecifier(t){if(t){let e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new tt(tI(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${tZ(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${tZ(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return tZ(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class te extends ${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 tr(t,e){if(th(t)||null===t)return e;if(t instanceof $)return t;if("string"==typeof t){let r=t.toLowerCase();return"default"===r?e:"local"===r||"system"===r?z.instance:"utc"===r||"gmt"===r?tt.utcInstance:tt.parseSpecifier(r)||_.create(t)}return td(t)?tt.instance(t):"object"==typeof t&&t.offset&&"number"==typeof t.offset?t:new te(t)}let tn=()=>Date.now(),ts="system",ti=null,ta=null,to=null,tu=60,tl;class tc{static get now(){return tn}static set now(t){tn=t}static set defaultZone(t){ts=t}static get defaultZone(){return tr(ts,z.instance)}static get defaultLocale(){return ti}static set defaultLocale(t){ti=t}static get defaultNumberingSystem(){return ta}static set defaultNumberingSystem(t){ta=t}static get defaultOutputCalendar(){return to}static set defaultOutputCalendar(t){to=t}static get twoDigitCutoffYear(){return tu}static set twoDigitCutoffYear(t){tu=t%100}static get throwOnInvalid(){return tl}static set throwOnInvalid(t){tl=t}static resetCaches(){K.resetCache(),_.resetCache()}}function th(t){return void 0===t}function td(t){return"number"==typeof t}function tm(t){return"number"==typeof t&&t%1==0}function tf(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function ty(t,e,r){if(0!==t.length)return t.reduce((t,n)=>{let s=[e(n),n];return t&&r(t[0],s[0])===t[0]?t:s},null)[1]}function tg(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function tw(t,e,r){return tm(t)&&t>=e&&t<=r}function tp(t,e=2){return t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0")}function tT(t){if(!th(t)&&null!==t&&""!==t)return parseInt(t,10)}function tv(t){if(!th(t)&&null!==t&&""!==t)return parseFloat(t)}function tS(t){if(!th(t)&&null!==t&&""!==t){let e=1e3*parseFloat("0."+t);return Math.floor(e)}}function tO(t,e,r=!1){let n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function tN(t){return t%4==0&&(t%100!=0||t%400==0)}function tk(t){return tN(t)?366:365}function tM(t,e){var r;let n=(r=e-1)-12*Math.floor(r/12)+1;return 2===n?tN(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function tb(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e)).setUTCFullYear(t.year,t.month-1,t.day),+e}function tD(t){let e=t-1;return 4==(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7||3==(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7?53:52}function tE(t){return t>99?t:t>tc.twoDigitCutoffYear?1900+t:2e3+t}function tV(t,e,r,n=null){let s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);let a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(r,a).formatToParts(s).find(t=>"timezonename"===t.type.toLowerCase());return o?o.value:null}function tI(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let n=parseInt(e,10)||0,s=r<0||Object.is(r,-0)?-n:n;return 60*r+s}function tx(t){let e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new u(`Invalid unit value ${t}`);return e}function tC(t,e){let r={};for(let n in t)if(tg(t,n)){let s=t[n];if(null==s)continue;r[e(n)]=tx(s)}return r}function tZ(t,e){let r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${tp(r,2)}:${tp(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${tp(r,2)}${tp(n,2)}`;default:throw RangeError(`Value format ${e} is out of range for property format`)}}function tF(t){return["hour","minute","second","millisecond"].reduce((e,r)=>(e[r]=t[r],e),{})}let t$=["January","February","March","April","May","June","July","August","September","October","November","December"],tL=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tz=["J","F","M","A","M","J","J","A","S","O","N","D"];function tq(t){switch(t){case"narrow":return[...tz];case"short":return[...tL];case"long":return[...t$];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}}let tA=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tj=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],t_=["M","T","W","T","F","S","S"];function tU(t){switch(t){case"narrow":return[...t_];case"short":return[...tj];case"long":return[...tA];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}let tH=["AM","PM"],tW=["Before Christ","Anno Domini"],tR=["BC","AD"],tJ=["B","A"];function tP(t){switch(t){case"narrow":return[...tJ];case"short":return[...tR];case"long":return[...tW];default:return null}}function tY(t,e){let r="";for(let n of t)n.literal?r+=n.val:r+=e(n.val);return r}let tG={D:m,DD:f,DDD:g,DDDD:w,t:p,tt:T,ttt:v,tttt:S,T:O,TT:N,TTT:k,TTTT:M,f:b,ff:E,fff:x,ffff:Z,F:D,FF:V,FFF:C,FFFF:F};class tB{static create(t,e={}){return new tB(t,e)}static parseFormat(t){let e=null,r="",n=!1,s=[];for(let i=0;i<t.length;i++){let a=t.charAt(i);"'"===a?(r.length>0&&s.push({literal:n||/^\s+$/.test(r),val:r}),e=null,r="",n=!n):n?r+=a:a===e?r+=a:(r.length>0&&s.push({literal:/^\s+$/.test(r),val:r}),r=a,e=a)}return r.length>0&&s.push({literal:n||/^\s+$/.test(r),val:r}),s}static macroTokenToFormatOpts(t){return tG[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());let r=this.systemLoc.dtFormatter(t,{...this.opts,...e});return r.format()}formatDateTime(t,e={}){let r=this.loc.dtFormatter(t,{...this.opts,...e});return r.format()}formatDateTimeParts(t,e={}){let r=this.loc.dtFormatter(t,{...this.opts,...e});return r.formatToParts()}formatInterval(t,e={}){let r=this.loc.dtFormatter(t.start,{...this.opts,...e});return r.dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e={}){let r=this.loc.dtFormatter(t,{...this.opts,...e});return r.resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return tp(t,e);let r={...this.opts};return e>0&&(r.padTo=e),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,e){let r="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(e,r)=>this.loc.extract(t,e,r),i=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",a=()=>r?tH[t.hour<12?0:1]:s({hour:"numeric",hourCycle:"h12"},"dayperiod"),o=(e,n)=>r?tq(e)[t.month-1]:s(n?{month:e}:{month:e,day:"numeric"},"month"),u=(e,n)=>r?tU(e)[t.weekday-1]:s(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),l=e=>{let r=tB.macroTokenToFormatOpts(e);return r?this.formatWithSystemDefault(t,r):e},c=e=>r?tP(e)[t.year<0?0:1]:s({era:e},"era");return tY(tB.parseFormat(e),e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({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 a();case"d":return n?s({day:"numeric"},"day"):this.num(t.day);case"dd":return n?s({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return n?s({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return n?s({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return n?s({month:"numeric"},"month"):this.num(t.month);case"MM":return n?s({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return n?s({year:"numeric"},"year"):this.num(t.year);case"yy":return n?s({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return n?s({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return n?s({year:"numeric"},"year"):this.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("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"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 l(e)}})}formatDurationFromString(t,e){let r=t=>{switch(t[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}},n=tB.parseFormat(e),s=n.reduce((t,{literal:e,val:r})=>e?t:t.concat(r),[]),i=t.shiftTo(...s.map(r).filter(t=>t));return tY(n,t=>{let e=r(t);return e?this.num(i.get(e),t.length):t})}}class tQ{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}let tK=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function tX(...t){let e=t.reduce((t,e)=>t+e.source,"");return RegExp(`^${e}$`)}function t0(...t){return e=>t.reduce(([t,r,n],s)=>{let[i,a,o]=s(e,n);return[{...t,...i},a||r,o]},[{},null,1]).slice(0,2)}function t1(t,...e){if(null==t)return[null,null];for(let[r,n]of e){let e=r.exec(t);if(e)return n(e)}return[null,null]}function t2(...t){return(e,r)=>{let n;let s={};for(n=0;n<t.length;n++)s[t[n]]=tT(e[r+n]);return[s,null,r+n]}}let t3=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,t6=`(?:${t3.source}?(?:\\[(${tK.source})\\])?)?`,t4=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,t5=RegExp(`${t4.source}${t6}`),t9=RegExp(`(?:T${t5.source})?`),t7=t2("weekYear","weekNumber","weekDay"),t8=t2("year","ordinal"),et=RegExp(`${t4.source} ?(?:${t3.source}|(${tK.source}))?`),ee=RegExp(`(?: ${et.source})?`);function er(t,e,r){let n=t[e];return th(n)?r:tT(n)}function en(t,e){let r={hours:er(t,e,0),minutes:er(t,e+1,0),seconds:er(t,e+2,0),milliseconds:tS(t[e+3])};return[r,null,e+4]}function es(t,e){let r=!t[e]&&!t[e+1],n=tI(t[e+1],t[e+2]),s=r?null:tt.instance(n);return[{},s,e+3]}function ei(t,e){let r=t[e]?_.create(t[e]):null;return[{},r,e+1]}let ea=RegExp(`^T?${t4.source}$`),eo=/^-?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 eu(t){let[e,r,n,s,i,a,o,u,l]=t,c="-"===e[0],h=u&&"-"===u[0],d=(t,e=!1)=>void 0!==t&&(e||t&&c)?-t:t;return[{years:d(tv(r)),months:d(tv(n)),weeks:d(tv(s)),days:d(tv(i)),hours:d(tv(a)),minutes:d(tv(o)),seconds:d(tv(u),"-0"===u),milliseconds:d(tS(l),h)}]}let el={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ec(t,e,r,n,s,i,a){let o={year:2===e.length?tE(tT(e)):tT(e),month:tL.indexOf(r)+1,day:tT(n),hour:tT(s),minute:tT(i)};return a&&(o.second=tT(a)),t&&(o.weekday=t.length>3?tA.indexOf(t)+1:tj.indexOf(t)+1),o}let eh=/^(?:(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 ed(t){let e;let[,r,n,s,i,a,o,u,l,c,h,d]=t,m=ec(r,i,s,n,a,o,u);return e=l?el[l]:c?0:tI(h,d),[m,new tt(e)]}let em=/^(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$/,ef=/^(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$/,ey=/^(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 eg(t){let[,e,r,n,s,i,a,o]=t,u=ec(e,s,n,r,i,a,o);return[u,tt.utcInstance]}function ew(t){let[,e,r,n,s,i,a,o]=t,u=ec(e,o,r,n,s,i,a);return[u,tt.utcInstance]}let ep=tX(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,t9),eT=tX(/(\d{4})-?W(\d\d)(?:-?(\d))?/,t9),ev=tX(/(\d{4})-?(\d{3})/,t9),eS=tX(t5),eO=t0(function(t,e){let r={year:er(t,e),month:er(t,e+1,1),day:er(t,e+2,1)};return[r,null,e+3]},en,es,ei),eN=t0(t7,en,es,ei),ek=t0(t8,en,es,ei),eM=t0(en,es,ei),eb=t0(en),eD=tX(/(\d{4})-(\d\d)-(\d\d)/,ee),eE=tX(et),eV=t0(en,es,ei),eI={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},ex={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...eI},eC={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:31556952,milliseconds:31556952e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238e3},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...eI},eZ=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],eF=eZ.slice(0).reverse();function e$(t,e,r=!1){let n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new ez(n)}function eL(t,e,r,n,s){let i=t[s][r],a=e[r]/i,o=Math.sign(a)===Math.sign(n[s]),u=!o&&0!==n[s]&&1>=Math.abs(a)?a<0?Math.floor(a):Math.ceil(a):Math.trunc(a);n[s]+=u,e[r]-=u*i}class ez{constructor(t){let e="longterm"===t.conversionAccuracy,r=e?eC:ex;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||K.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,e){return ez.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new u(`Duration.fromObject: argument expected to be an object, got ${null===t?"null":typeof t}`);return new ez({values:tC(t,ez.normalizeUnit),loc:K.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(td(t))return ez.fromMillis(t);if(ez.isDuration(t))return t;if("object"==typeof t)return ez.fromObject(t);throw new u(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){let[r]=t1(t,[eo,eu]);return r?ez.fromObject(r,e):ez.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){let[r]=t1(t,[ea,eb]);return r?ez.fromObject(r,e):ez.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new u("need to specify a reason the Duration is invalid");let r=t instanceof tQ?t:new tQ(t,e);if(!tc.throwOnInvalid)return new ez({invalid:r});throw new i(r)}static normalizeUnit(t){let e={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():t];if(!e)throw new o(t);return e}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,e={}){let r={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?tB.create(this.loc,r).formatDurationFromString(this,t):"Invalid Duration"}toHuman(t={}){let e=eZ.map(e=>{let r=this.values[e];return th(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:e.slice(0,-1)}).format(r)}).filter(t=>t);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(e)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(t+=tO(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let e=this.toMillis();if(e<0||e>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t};let r=this.shiftTo("hours","minutes","seconds","milliseconds"),n="basic"===t.format?"hhmm":"hh:mm";t.suppressSeconds&&0===r.seconds&&0===r.milliseconds||(n+="basic"===t.format?"ss":":ss",t.suppressMilliseconds&&0===r.milliseconds||(n+=".SSS"));let s=r.toFormat(n);return t.includePrefix&&(s="T"+s),s}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let e=ez.fromDurationLike(t),r={};for(let t of eZ)(tg(e.values,t)||tg(this.values,t))&&(r[t]=e.get(t)+this.get(t));return e$(this,{values:r},!0)}minus(t){if(!this.isValid)return this;let e=ez.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=tx(t(this.values[r],r));return e$(this,{values:e},!0)}get(t){return this[ez.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let e={...this.values,...tC(t,ez.normalizeUnit)};return e$(this,{values:e})}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:r,matrix:n}={}){let s=this.loc.clone({locale:t,numberingSystem:e});return e$(this,{loc:s,matrix:n,conversionAccuracy:r})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){var t;if(!this.isValid)return this;let e=this.toObject();return t=this.matrix,eF.reduce((r,n)=>th(e[n])?r:(r&&eL(t,e,r,e,n),n),null),e$(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let t=function(t){let e={};for(let[r,n]of Object.entries(t))0!==n&&(e[r]=n);return e}(this.normalize().shiftToAll().toObject());return e$(this,{values:t},!0)}shiftTo(...t){let e;if(!this.isValid||0===t.length)return this;t=t.map(t=>ez.normalizeUnit(t));let r={},n={},s=this.toObject();for(let i of eZ)if(t.indexOf(i)>=0){e=i;let t=0;for(let e in n)t+=this.matrix[e][i]*n[e],n[e]=0;td(s[i])&&(t+=s[i]);let a=Math.trunc(t);for(let e in r[i]=a,n[i]=(1e3*t-1e3*a)/1e3,s)eZ.indexOf(e)>eZ.indexOf(i)&&eL(this.matrix,s,e,r,i)}else td(s[i])&&(n[i]=s[i]);for(let t in n)0!==n[t]&&(r[e]+=t===e?n[t]:n[t]/this.matrix[e][t]);return e$(this,{values:r},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return e$(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 null===this.invalid}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;for(let n of eZ){var e,r;if(e=this.values[n],r=t.values[n],void 0===e||0===e?void 0!==r&&0!==r:e!==r)return!1}return!0}}let eq="Invalid Interval";class eA{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new u("need to specify a reason the Interval is invalid");let r=t instanceof tQ?t:new tQ(t,e);if(!tc.throwOnInvalid)return new eA({invalid:r});throw new s(r)}static fromDateTimes(t,e){let r=rV(t),n=rV(e),s=r&&r.isValid?n&&n.isValid?n<r?eA.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${n.toISO()}`):null:eA.invalid("missing or invalid end"):eA.invalid("missing or invalid start");return null==s?new eA({start:r,end:n}):s}static after(t,e){let r=ez.fromDurationLike(e),n=rV(t);return eA.fromDateTimes(n,n.plus(r))}static before(t,e){let r=ez.fromDurationLike(e),n=rV(t);return eA.fromDateTimes(n.minus(r),n)}static fromISO(t,e){let[r,n]=(t||"").split("/",2);if(r&&n){let t,s,i,a;try{s=(t=rE.fromISO(r,e)).isValid}catch(t){s=!1}try{a=(i=rE.fromISO(n,e)).isValid}catch(t){a=!1}if(s&&a)return eA.fromDateTimes(t,i);if(s){let r=ez.fromISO(n,e);if(r.isValid)return eA.after(t,r)}else if(a){let t=ez.fromISO(r,e);if(t.isValid)return eA.before(i,t)}}return eA.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 null===this.invalidReason}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"){if(!this.isValid)return NaN;let e=this.start.startOf(t),r=this.end.startOf(t);return Math.floor(r.diff(e,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?eA.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];let e=t.map(rV).filter(t=>this.contains(t)).sort(),r=[],{s:n}=this,s=0;for(;n<this.e;){let t=e[s]||this.e,i=+t>+this.e?this.e:t;r.push(eA.fromDateTimes(n,i)),n=i,s+=1}return r}splitBy(t){let e=ez.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let{s:r}=this,n=1,s,i=[];for(;r<this.e;){let t=this.start.plus(e.mapUnits(t=>t*n));s=+t>+this.e?this.e:t,i.push(eA.fromDateTimes(r,s)),r=s,n+=1}return i}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}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&this.s<=t.s&&this.e>=t.e}equals(t){return!!this.isValid&&!!t.isValid&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let e=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return e>=r?null:eA.fromDateTimes(e,r)}union(t){if(!this.isValid)return this;let e=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return eA.fromDateTimes(e,r)}static merge(t){let[e,r]=t.sort((t,e)=>t.s-e.s).reduce(([t,e],r)=>e?e.overlaps(r)||e.abutsStart(r)?[t,e.union(r)]:[t.concat([e]),r]:[t,r],[[],null]);return r&&e.push(r),e}static xor(t){let e=null,r=0,n=[],s=t.map(t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}]),i=Array.prototype.concat(...s),a=i.sort((t,e)=>t.time-e.time);for(let t of a)1===(r+="s"===t.type?1:-1)?e=t.time:(e&&+e!=+t.time&&n.push(eA.fromDateTimes(e,t.time)),e=null);return eA.merge(n)}difference(...t){return eA.xor([this].concat(t)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:eq}toLocaleString(t=m,e={}){return this.isValid?tB.create(this.s.loc.clone(e),t).formatInterval(this):eq}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:eq}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:eq}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:eq}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:eq}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):ez.invalid(this.invalidReason)}mapEndpoints(t){return eA.fromDateTimes(t(this.s),t(this.e))}}class ej{static hasDST(t=tc.defaultZone){let e=rE.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return _.isValidZone(t)}static normalizeZone(t){return tr(t,tc.defaultZone)}static months(t="long",{locale:e=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||K.create(e,r,s)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||K.create(e,r,s)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:r=null,locObj:n=null}={}){return(n||K.create(e,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:r=null,locObj:n=null}={}){return(n||K.create(e,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return K.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return K.create(e,null,"gregory").eras(t)}static features(){return{relative:tf()}}}function e_(t,e){let r=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(ez.fromMillis(n).as("days"))}let eU={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},eH={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]},eW=eU.hanidec.replace(/[\[|\]]/g,"").split("");function eR({numberingSystem:t},e=""){return RegExp(`${eU[t||"latn"]}${e}`)}function eJ(t,e=t=>t){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(!isNaN(e))return e;e="";for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(-1!==t[r].search(eU.hanidec))e+=eW.indexOf(t[r]);else for(let t in eH){let[r,s]=eH[t];n>=r&&n<=s&&(e+=n-r)}}return parseInt(e,10)}(t))}}let eP=String.fromCharCode(160),eY=`[ ${eP}]`,eG=RegExp(eY,"g");function eB(t){return t.replace(/\./g,"\\.?").replace(eG,eY)}function eQ(t){return t.replace(/\./g,"").replace(eG," ").toLowerCase()}function eK(t,e){return null===t?null:{regex:RegExp(t.map(eB).join("|")),deser:([r])=>t.findIndex(t=>eQ(r)===eQ(t))+e}}function eX(t,e){return{regex:t,deser:([,t,e])=>tI(t,e),groups:e}}function e0(t){return{regex:t,deser:([t])=>t}}let e1={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",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}},e2=null;function e3(t,e){return Array.prototype.concat(...t.map(t=>(function(t,e){if(t.literal)return t;let r=tB.macroTokenToFormatOpts(t.val),n=e4(r,e);return null==n||n.includes(void 0)?t:n})(t,e)))}function e6(t,e,r){let n=e3(tB.parseFormat(r),t),s=n.map(e=>(function(t,e){let r=eR(e),n=eR(e,"{2}"),s=eR(e,"{3}"),i=eR(e,"{4}"),a=eR(e,"{6}"),o=eR(e,"{1,2}"),u=eR(e,"{1,3}"),l=eR(e,"{1,6}"),c=eR(e,"{1,9}"),h=eR(e,"{2,4}"),d=eR(e,"{4,6}"),m=t=>({regex:RegExp(t.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:([t])=>t,literal:!0}),f=(f=>{if(t.literal)return m(f);switch(f.val){case"G":return eK(e.eras("short",!1),0);case"GG":return eK(e.eras("long",!1),0);case"y":return eJ(l);case"yy":case"kk":return eJ(h,tE);case"yyyy":case"kkkk":return eJ(i);case"yyyyy":return eJ(d);case"yyyyyy":return eJ(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return eJ(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return eJ(n);case"MMM":return eK(e.months("short",!0,!1),1);case"MMMM":return eK(e.months("long",!0,!1),1);case"LLL":return eK(e.months("short",!1,!1),1);case"LLLL":return eK(e.months("long",!1,!1),1);case"o":case"S":return eJ(u);case"ooo":case"SSS":return eJ(s);case"u":return e0(c);case"uu":return e0(o);case"uuu":case"E":case"c":return eJ(r);case"a":return eK(e.meridiems(),0);case"EEE":return eK(e.weekdays("short",!1,!1),1);case"EEEE":return eK(e.weekdays("long",!1,!1),1);case"ccc":return eK(e.weekdays("short",!0,!1),1);case"cccc":return eK(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return eX(RegExp(`([+-]${o.source})(?::(${n.source}))?`),2);case"ZZZ":return eX(RegExp(`([+-]${o.source})(${n.source})?`),2);case"z":return e0(/[a-z_+-/]{1,256}?/i);case" ":return e0(/[^\S\n\r]/);default:return m(f)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=t,f})(e,t)),i=s.find(t=>t.invalidReason);if(i)return{input:e,tokens:n,invalidReason:i.invalidReason};{let[t,r]=function(t){let e=t.map(t=>t.regex).reduce((t,e)=>`${t}(${e.source})`,"");return[`^${e}$`,t]}(s),i=RegExp(t,"i"),[o,u]=function(t,e,r){let n=t.match(e);if(!n)return[n,{}];{let t={},e=1;for(let s in r)if(tg(r,s)){let i=r[s],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(t[i.token.val[0]]=i.deser(n.slice(e,e+a))),e+=a}return[n,t]}}(e,i,r),[l,c,h]=u?function(t){let e;let r=t=>{switch(t){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}},n=null;th(t.z)||(n=_.create(t.z)),th(t.Z)||(n||(n=new tt(t.Z)),e=t.Z),th(t.q)||(t.M=(t.q-1)*3+1),th(t.h)||(t.h<12&&1===t.a?t.h+=12:12!==t.h||0!==t.a||(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),th(t.u)||(t.S=tS(t.u));let s=Object.keys(t).reduce((e,n)=>{let s=r(n);return s&&(e[s]=t[n]),e},{});return[s,n,e]}(u):[null,null,void 0];if(tg(u,"a")&&tg(u,"H"))throw new a("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:i,rawMatches:o,matches:u,result:l,zone:c,specificOffset:h}}}function e4(t,e){if(!t)return null;let r=tB.create(e,t),n=r.formatDateTimeParts((e2||(e2=rE.fromMillis(1555555555555)),e2));return n.map(e=>(function(t,e){let{type:r,value:n}=t;if("literal"===r){let t=/^\s+$/.test(n);return{literal:!t,val:t?" ":n}}let s=e[r],i=e1[r];if("object"==typeof i&&(i=i[s]),i)return{literal:!1,val:i}})(e,t))}let e5=[0,31,59,90,120,151,181,212,243,273,304,334],e9=[0,31,60,91,121,152,182,213,244,274,305,335];function e7(t,e){return new tQ("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function e8(t,e,r){let n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let s=n.getUTCDay();return 0===s?7:s}function rt(t,e){let r=tN(t)?e9:e5,n=r.findIndex(t=>t<e),s=e-r[n];return{month:n+1,day:s}}function re(t){let{year:e,month:r,day:n}=t,s=n+(tN(e)?e9:e5)[r-1],i=e8(e,r,n),a=Math.floor((s-i+10)/7),o;return a<1?a=tD(o=e-1):a>tD(e)?(o=e+1,a=1):o=e,{weekYear:o,weekNumber:a,weekday:i,...tF(t)}}function rr(t){let{weekYear:e,weekNumber:r,weekday:n}=t,s=e8(e,1,4),i=tk(e),a=7*r+n-s-3,o;a<1?a+=tk(o=e-1):a>i?(o=e+1,a-=tk(e)):o=e;let{month:u,day:l}=rt(o,a);return{year:o,month:u,day:l,...tF(t)}}function rn(t){let{year:e,month:r,day:n}=t,s=n+(tN(e)?e9:e5)[r-1];return{year:e,ordinal:s,...tF(t)}}function rs(t){let{year:e,ordinal:r}=t,{month:n,day:s}=rt(e,r);return{year:e,month:n,day:s,...tF(t)}}function ri(t){let e=tm(t.year),r=tw(t.month,1,12),n=tw(t.day,1,tM(t.year,t.month));return e?r?!n&&e7("day",t.day):e7("month",t.month):e7("year",t.year)}function ra(t){let{hour:e,minute:r,second:n,millisecond:s}=t,i=tw(e,0,23)||24===e&&0===r&&0===n&&0===s,a=tw(r,0,59),o=tw(n,0,59),u=tw(s,0,999);return i?a?o?!u&&e7("millisecond",s):e7("second",n):e7("minute",r):e7("hour",e)}let ro="Invalid DateTime";function ru(t){return new tQ("unsupported zone",`the zone "${t.name}" is not supported`)}function rl(t){return null===t.weekData&&(t.weekData=re(t.c)),t.weekData}function rc(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new rE({...r,...e,old:r})}function rh(t,e,r){let n=t-6e4*e,s=r.offset(n);if(e===s)return[n,e];n-=(s-e)*6e4;let i=r.offset(n);return s===i?[n,s]:[t-6e4*Math.min(s,i),Math.max(s,i)]}function rd(t,e){t+=6e4*e;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function rm(t,e){let r=t.o,n=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),i={...t.c,year:n,month:s,day:Math.min(t.c.day,tM(n,s))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},a=ez.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=tb(i),[u,l]=rh(o,r,t.zone);return 0!==a&&(u+=a,l=t.zone.offset(u)),{ts:u,o:l}}function rf(t,e,r,n,s,i){let{setZone:a,zone:o}=r;if((!t||0===Object.keys(t).length)&&!e)return rE.invalid(new tQ("unparsable",`the input "${s}" can't be parsed as ${n}`));{let n=e||o,s=rE.fromObject(t,{...r,zone:n,specificOffset:i});return a?s:s.setZone(o)}}function ry(t,e,r=!0){return t.isValid?tB.create(K.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function rg(t,e){let r=t.c.year>9999||t.c.year<0,n="";return r&&t.c.year>=0&&(n+="+"),n+=tp(t.c.year,r?6:4),e?n+="-"+tp(t.c.month)+"-"+tp(t.c.day):n+=tp(t.c.month)+tp(t.c.day),n}function rw(t,e,r,n,s,i){let a=tp(t.c.hour);return e?(a+=":"+tp(t.c.minute),0===t.c.second&&r||(a+=":")):a+=tp(t.c.minute),0===t.c.second&&r||(a+=tp(t.c.second),0===t.c.millisecond&&n||(a+="."+tp(t.c.millisecond,3))),s&&(t.isOffsetFixed&&0===t.offset&&!i?a+="Z":t.o<0?a+="-"+tp(Math.trunc(-t.o/60))+":"+tp(Math.trunc(-t.o%60)):a+="+"+tp(Math.trunc(t.o/60))+":"+tp(Math.trunc(t.o%60))),i&&(a+="["+t.zone.ianaName+"]"),a}let rp={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},rT={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},rv={ordinal:1,hour:0,minute:0,second:0,millisecond:0},rS=["year","month","day","hour","minute","second","millisecond"],rO=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],rN=["year","ordinal","hour","minute","second","millisecond"];function rk(t){let e={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"}[t.toLowerCase()];if(!e)throw new o(t);return e}function rM(t,e){let r,n;let s=tr(e.zone,tc.defaultZone),i=K.fromObject(e),a=tc.now();if(th(t.year))r=a;else{for(let e of rS)th(t[e])&&(t[e]=rp[e]);let e=ri(t)||ra(t);if(e)return rE.invalid(e);let i=s.offset(a);[r,n]=rh(tb(t),i,s)}return new rE({ts:r,zone:s,loc:i,o:n})}function rb(t,e,r){let n=!!th(r.round)||r.round,s=(t,s)=>{t=tO(t,n||r.calendary?0:2,!0);let i=e.loc.clone(r).relFormatter(r);return i.format(t,s)},i=n=>r.calendary?e.hasSame(t,n)?0:e.startOf(n).diff(t.startOf(n),n).get(n):e.diff(t,n).get(n);if(r.unit)return s(i(r.unit),r.unit);for(let t of r.units){let e=i(t);if(Math.abs(e)>=1)return s(e,t)}return s(t>e?-0:0,r.units[r.units.length-1])}function rD(t){let e={},r;return t.length>0&&"object"==typeof t[t.length-1]?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}class rE{constructor(t){let e=t.zone||tc.defaultZone,r=t.invalid||(Number.isNaN(t.ts)?new tQ("invalid input"):null)||(e.isValid?null:ru(e));this.ts=th(t.ts)?tc.now():t.ts;let n=null,s=null;if(!r){let i=t.old&&t.old.ts===this.ts&&t.old.zone.equals(e);if(i)[n,s]=[t.old.c,t.old.o];else{let t=e.offset(this.ts);n=(r=Number.isNaN((n=rd(this.ts,t)).year)?new tQ("invalid input"):null)?null:n,s=r?null:t}}this._zone=e,this.loc=t.loc||K.create(),this.invalid=r,this.weekData=null,this.c=n,this.o=s,this.isLuxonDateTime=!0}static now(){return new rE({})}static local(){let[t,e]=rD(arguments),[r,n,s,i,a,o,u]=e;return rM({year:r,month:n,day:s,hour:i,minute:a,second:o,millisecond:u},t)}static utc(){let[t,e]=rD(arguments),[r,n,s,i,a,o,u]=e;return t.zone=tt.utcInstance,rM({year:r,month:n,day:s,hour:i,minute:a,second:o,millisecond:u},t)}static fromJSDate(t,e={}){let r="[object Date]"===Object.prototype.toString.call(t)?t.valueOf():NaN;if(Number.isNaN(r))return rE.invalid("invalid input");let n=tr(e.zone,tc.defaultZone);return n.isValid?new rE({ts:r,zone:n,loc:K.fromObject(e)}):rE.invalid(ru(n))}static fromMillis(t,e={}){if(td(t))return t<-864e13||t>864e13?rE.invalid("Timestamp out of range"):new rE({ts:t,zone:tr(e.zone,tc.defaultZone),loc:K.fromObject(e)});throw new u(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(td(t))return new rE({ts:1e3*t,zone:tr(e.zone,tc.defaultZone),loc:K.fromObject(e)});throw new u("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};let r=tr(e.zone,tc.defaultZone);if(!r.isValid)return rE.invalid(ru(r));let n=tc.now(),s=th(e.specificOffset)?r.offset(n):e.specificOffset,i=tC(t,rk),o=!th(i.ordinal),u=!th(i.year),l=!th(i.month)||!th(i.day),c=u||l,h=i.weekYear||i.weekNumber,d=K.fromObject(e);if((c||o)&&h)throw new a("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new a("Can't mix ordinal dates with month/day");let m=h||i.weekday&&!c,f,y,g=rd(n,s);m?(f=rO,y=rT,g=re(g)):o?(f=rN,y=rv,g=rn(g)):(f=rS,y=rp);let w=!1;for(let t of f){let e=i[t];th(e)?w?i[t]=y[t]:i[t]=g[t]:w=!0}let p=m?function(t){let e=tm(t.weekYear),r=tw(t.weekNumber,1,tD(t.weekYear)),n=tw(t.weekday,1,7);return e?r?!n&&e7("weekday",t.weekday):e7("week",t.week):e7("weekYear",t.weekYear)}(i):o?function(t){let e=tm(t.year),r=tw(t.ordinal,1,tk(t.year));return e?!r&&e7("ordinal",t.ordinal):e7("year",t.year)}(i):ri(i),T=p||ra(i);if(T)return rE.invalid(T);let v=m?rr(i):o?rs(i):i,[S,O]=rh(tb(v),s,r),N=new rE({ts:S,zone:r,o:O,loc:d});return i.weekday&&c&&t.weekday!==N.weekday?rE.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${N.toISO()}`):N}static fromISO(t,e={}){let[r,n]=t1(t,[ep,eO],[eT,eN],[ev,ek],[eS,eM]);return rf(r,n,e,"ISO 8601",t)}static fromRFC2822(t,e={}){let[r,n]=t1(t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[eh,ed]);return rf(r,n,e,"RFC 2822",t)}static fromHTTP(t,e={}){let[r,n]=t1(t,[em,eg],[ef,eg],[ey,ew]);return rf(r,n,e,"HTTP",e)}static fromFormat(t,e,r={}){if(th(t)||th(e))throw new u("fromFormat requires an input string and a format");let{locale:n=null,numberingSystem:s=null}=r,i=K.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0}),[a,o,l,c]=function(t,e,r){let{result:n,zone:s,specificOffset:i,invalidReason:a}=e6(t,e,r);return[n,s,i,a]}(i,t,e);return c?rE.invalid(c):rf(a,o,r,`format ${e}`,t,l)}static fromString(t,e,r={}){return rE.fromFormat(t,e,r)}static fromSQL(t,e={}){let[r,n]=t1(t,[eD,eO],[eE,eV]);return rf(r,n,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new u("need to specify a reason the DateTime is invalid");let r=t instanceof tQ?t:new tQ(t,e);if(!tc.throwOnInvalid)return new rE({invalid:r});throw new n(r)}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){let r=e4(t,K.fromObject(e));return r?r.map(t=>t?t.val:null).join(""):null}static expandFormat(t,e={}){let r=e3(tB.parseFormat(t),K.fromObject(e));return r.map(t=>t.val).join("")}get(t){return this[t]}get isValid(){return null===this.invalid}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?rl(this).weekYear:NaN}get weekNumber(){return this.isValid?rl(this).weekNumber:NaN}get weekday(){return this.isValid?rl(this).weekday:NaN}get ordinal(){return this.isValid?rn(this.c).ordinal:NaN}get monthShort(){return this.isValid?ej.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ej.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ej.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ej.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&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return tN(this.year)}get daysInMonth(){return tM(this.year,this.month)}get daysInYear(){return this.isValid?tk(this.year):NaN}get weeksInWeekYear(){return this.isValid?tD(this.weekYear):NaN}resolvedLocaleOptions(t={}){let{locale:e,numberingSystem:r,calendar:n}=tB.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:r,outputCalendar:n}}toUTC(t=0,e={}){return this.setZone(tt.instance(t),e)}toLocal(){return this.setZone(tc.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:r=!1}={}){if((t=tr(t,tc.defaultZone)).equals(this.zone))return this;if(!t.isValid)return rE.invalid(ru(t));{let s=this.ts;if(e||r){var n;let e=t.offset(this.ts),r=this.toObject();[s]=(n=t,rh(tb(r),e,n))}return rc(this,{ts:s,zone:t})}}reconfigure({locale:t,numberingSystem:e,outputCalendar:r}={}){let n=this.loc.clone({locale:t,numberingSystem:e,outputCalendar:r});return rc(this,{loc:n})}setLocale(t){return this.reconfigure({locale:t})}set(t){var e,r,n;let s;if(!this.isValid)return this;let i=tC(t,rk),o=!th(i.weekYear)||!th(i.weekNumber)||!th(i.weekday),u=!th(i.ordinal),l=!th(i.year),c=!th(i.month)||!th(i.day),h=i.weekYear||i.weekNumber;if((l||c||u)&&h)throw new a("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&u)throw new a("Can't mix ordinal dates with month/day");o?s=rr({...re(this.c),...i}):th(i.ordinal)?(s={...this.toObject(),...i},th(i.day)&&(s.day=Math.min(tM(s.year,s.month),s.day))):s=rs({...rn(this.c),...i});let[d,m]=(e=s,r=this.o,n=this.zone,rh(tb(e),r,n));return rc(this,{ts:d,o:m})}plus(t){if(!this.isValid)return this;let e=ez.fromDurationLike(t);return rc(this,rm(this,e))}minus(t){if(!this.isValid)return this;let e=ez.fromDurationLike(t).negate();return rc(this,rm(this,e))}startOf(t){if(!this.isValid)return this;let e={},r=ez.normalizeUnit(t);switch(r){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===r&&(e.weekday=1),"quarters"===r){let t=Math.ceil(this.month/3);e.month=(t-1)*3+1}return this.set(e)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,e={}){return this.isValid?tB.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):ro}toLocaleString(t=m,e={}){return this.isValid?tB.create(this.loc.clone(e),t).formatDateTime(this):ro}toLocaleParts(t={}){return this.isValid?tB.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:r=!1,includeOffset:n=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;let i="extended"===t;return rg(this,i)+"T"+rw(this,i,e,r,n,s)}toISODate({format:t="extended"}={}){return this.isValid?rg(this,"extended"===t):null}toISOWeekDate(){return ry(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:r=!0,includePrefix:n=!1,extendedZone:s=!1,format:i="extended"}={}){return this.isValid?(n?"T":"")+rw(this,"extended"===i,e,t,r,s):null}toRFC2822(){return ry(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ry(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?rg(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:r=!0}={}){let n="HH:mm:ss.SSS";return(e||t)&&(r&&(n+=" "),e?n+="z":t&&(n+="ZZ")),ry(this,n,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():ro}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{};let e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",r={}){if(!this.isValid||!t.isValid)return ez.invalid("created by diffing an invalid DateTime");let n={locale:this.locale,numberingSystem:this.numberingSystem,...r},s=(Array.isArray(e)?e:[e]).map(ez.normalizeUnit),i=t.valueOf()>this.valueOf(),a=function(t,e,r,n){let[s,i,a,o]=function(t,e,r){let n,s;let i=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+(e.year-t.year)*4],["months",(t,e)=>e.month-t.month+(e.year-t.year)*12],["weeks",(t,e)=>{let r=e_(t,e);return(r-r%7)/7}],["days",e_]],a={},o=t;for(let[u,l]of i)r.indexOf(u)>=0&&(n=u,a[u]=l(t,e),(s=o.plus(a))>e?(a[u]--,t=o.plus(a)):t=s);return[t,a,s,n]}(t,e,r),u=e-s,l=r.filter(t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0);0===l.length&&(a<e&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+u/(a-s)));let c=ez.fromObject(i,n);return l.length>0?ez.fromMillis(u,n).shiftTo(...l).plus(c):c}(i?this:t,i?t:this,s,n);return i?a.negate():a}diffNow(t="milliseconds",e={}){return this.diff(rE.now(),t,e)}until(t){return this.isValid?eA.fromDateTimes(this,t):this}hasSame(t,e){if(!this.isValid)return!1;let r=t.valueOf(),n=this.setZone(t.zone,{keepLocalTime:!0});return n.startOf(e)<=r&&r<=n.endOf(e)}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;let e=t.base||rE.fromObject({},{zone:this.zone}),r=t.padding?this<e?-t.padding:t.padding:0,n=["years","months","days","hours","minutes","seconds"],s=t.unit;return Array.isArray(t.unit)&&(n=t.unit,s=void 0),rb(e,this.plus(r),{...t,numeric:"always",units:n,unit:s})}toRelativeCalendar(t={}){return this.isValid?rb(t.base||rE.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(rE.isDateTime))throw new u("min requires all arguments be DateTimes");return ty(t,t=>t.valueOf(),Math.min)}static max(...t){if(!t.every(rE.isDateTime))throw new u("max requires all arguments be DateTimes");return ty(t,t=>t.valueOf(),Math.max)}static fromFormatExplain(t,e,r={}){let{locale:n=null,numberingSystem:s=null}=r,i=K.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0});return e6(i,t,e)}static fromStringExplain(t,e,r={}){return rE.fromFormatExplain(t,e,r)}static get DATE_SHORT(){return m}static get DATE_MED(){return f}static get DATE_MED_WITH_WEEKDAY(){return y}static get DATE_FULL(){return g}static get DATE_HUGE(){return w}static get TIME_SIMPLE(){return p}static get TIME_WITH_SECONDS(){return T}static get TIME_WITH_SHORT_OFFSET(){return v}static get TIME_WITH_LONG_OFFSET(){return S}static get TIME_24_SIMPLE(){return O}static get TIME_24_WITH_SECONDS(){return N}static get TIME_24_WITH_SHORT_OFFSET(){return k}static get TIME_24_WITH_LONG_OFFSET(){return M}static get DATETIME_SHORT(){return b}static get DATETIME_SHORT_WITH_SECONDS(){return D}static get DATETIME_MED(){return E}static get DATETIME_MED_WITH_SECONDS(){return V}static get DATETIME_MED_WITH_WEEKDAY(){return I}static get DATETIME_FULL(){return x}static get DATETIME_FULL_WITH_SECONDS(){return C}static get DATETIME_HUGE(){return Z}static get DATETIME_HUGE_WITH_SECONDS(){return F}}function rV(t){if(rE.isDateTime(t))return t;if(t&&t.valueOf&&td(t.valueOf()))return rE.fromJSDate(t);if(t&&"object"==typeof t)return rE.fromObject(t);throw new u(`Unknown datetime argument: ${t}, of type ${typeof t}`)}e.DateTime=rE,e.Duration=ez,e.FixedOffsetZone=tt,e.IANAZone=_,e.Info=ej,e.Interval=eA,e.InvalidZone=te,e.Settings=tc,e.SystemZone=z,e.VERSION="3.3.0",e.Zone=$}}]);
//# sourceMappingURL=f185a4bd-e8cff2972972f92f.js.map