// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define(["exports"],function(da){function yc(a,b={}){const c=JSON.stringify([a,b]);let d=bb[c];d||(d=new Intl.ListFormat(a,b),bb[c]=d);return d}function Ga(a,b={}){const c=JSON.stringify([a,b]);let d=Ha[c];d||(d=new Intl.DateTimeFormat(a,b),Ha[c]=d);return d}function zc(a,b={}){const c=JSON.stringify([a,b]);let d=Ia[c];d||(d=new Intl.NumberFormat(a,b),Ia[c]=d);return d}function Ac(a,b={}){const {base:c,...d}=b,e=JSON.stringify([a,d]);let f=Ja[e];f||(f=new Intl.RelativeTimeFormat(a,b),Ja[e]=f);return f} function Bc(a){const b=[];for(let c=1;12>=c;c++){const d=n.utc(2009,c,1);b.push(a(d))}return b}function Cc(a){const b=[];for(let c=1;7>=c;c++){const d=n.utc(2016,11,13+c);b.push(a(d))}return b}function ma(a,b,c,d){a=a.listingMode();return"error"===a?null:"en"===a?c(b):d(b)}function M(a,b){if(m(a)||null===a)return b;if(a instanceof V)return a;if("string"===typeof a){const c=a.toLowerCase();return"default"===c?b:"local"===c||"system"===c?Ka.instance:"utc"===c||"gmt"===c?B.utcInstance:B.parseSpecifier(c)|| K.create(a)}return Q(a)?B.instance(a):"object"===typeof a&&"offset"in a&&"function"===typeof a.offset?a:new Dc(a)}function E(a,b){return new G("unit out of range",`you specified ${b} (of type ${typeof b}) as a ${a}, which is invalid`)}function na(a,b,c){b=new Date(Date.UTC(a,b-1,c));100>a&&0<=a&&b.setUTCFullYear(b.getUTCFullYear()-1900);a=b.getUTCDay();return 0===a?7:a}function cb(a,b){a=H(a)?La:Ma;const c=a.findIndex(d=>dg?(k=d-1,g=ea(k,b,c)):g>ea(d,b,c)?(k=d+1,g=1):k=d;return{weekYear:k,weekNumber:g,weekday:h,...qa(a)}}function db(a,b=4,c=1){const {weekYear:d,weekNumber:e,weekday:f}=a,g=oa(na(d,1,b),c);c=H(d)?366:365;b=7*e+f-g-7+b;1>b?(c=d-1,b+=H(c)?366:365):b>c?(c=d+1,b-=H(d)?366:365):c=d;const {month:h,day:k}=cb(c,b);return{year:c,month:h,day:k,...qa(a)}}function Na(a){const {year:b,month:c, day:d}=a;var e=d+(H(b)?La:Ma)[c-1];return{year:b,ordinal:e,...qa(a)}}function eb(a){const {year:b,ordinal:c}=a,{month:d,day:e}=cb(b,c);return{year:b,month:d,day:e,...qa(a)}}function fb(a,b){if(m(a.localWeekday)&&m(a.localWeekNumber)&&m(a.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!m(a.weekday)||!m(a.weekNumber)||!m(a.weekYear))throw new W("Cannot mix locale-based week fields with ISO-based week fields");m(a.localWeekday)||(a.weekday=a.localWeekday);m(a.localWeekNumber)||(a.weekNumber= a.localWeekNumber);m(a.localWeekYear)||(a.weekYear=a.localWeekYear);delete a.localWeekday;delete a.localWeekNumber;delete a.localWeekYear;return{minDaysInFirstWeek:b.getMinDaysInFirstWeek(),startOfWeek:b.getStartOfWeek()}}function Ec(a,b=4,c=1){const d=ra(a.weekYear);b=F(a.weekNumber,1,ea(a.weekYear,b,c));c=F(a.weekday,1,7);return d?b?c?!1:E("weekday",a.weekday):E("week",a.weekNumber):E("weekYear",a.weekYear)}function gb(a){const b=ra(a.year),c=F(a.month,1,12),d=F(a.day,1,sa(a.year,a.month));return b? c?d?!1:E("day",a.day):E("month",a.month):E("year",a.year)}function hb(a){const {hour:b,minute:c,second:d,millisecond:e}=a;a=F(b,0,23)||24===b&&0===c&&0===d&&0===e;const f=F(c,0,59),g=F(d,0,59),h=F(e,0,999);return a?f?g?h?!1:E("millisecond",e):E("second",d):E("minute",c):E("hour",b)}function m(a){return"undefined"===typeof a}function Q(a){return"number"===typeof a}function ra(a){return"number"===typeof a&&0===a%1}function ib(){try{return"undefined"!==typeof Intl&&!!Intl.RelativeTimeFormat}catch(a){return!1}} function jb(){try{return"undefined"!==typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(a){return!1}}function kb(a,b,c){if(0!==a.length)return a.reduce((d,e)=>{e=[b(e),e];return d?c(d[0],e[0])===d[0]?d:e:e},null)[1]}function Fc(a,b){return b.reduce((c,d)=>{c[d]=a[d];return c},{})}function X(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function Oa(a){if(null==a)return null;if("object"!==typeof a)throw new D("Week settings must be an object"); if(!F(a.firstDay,1,7)||!F(a.minimalDays,1,7)||!Array.isArray(a.weekend)||a.weekend.some(b=>!F(b,1,7)))throw new D("Invalid week settings");return{firstDay:a.firstDay,minimalDays:a.minimalDays,weekend:Array.from(a.weekend)}}function F(a,b,c){return ra(a)&&a>=b&&a<=c}function y(a,b=2){return 0>a?"-"+(""+-a).padStart(b,"0"):(""+a).padStart(b,"0")}function N(a){if(!m(a)&&null!==a&&""!==a)return parseInt(a,10)}function R(a){if(!m(a)&&null!==a&&""!==a)return parseFloat(a)}function Pa(a){if(!m(a)&&null!== a&&""!==a)return a=1E3*parseFloat("0."+a),Math.floor(a)}function Qa(a,b,c=!1){b=10**b;return(c?Math.trunc:Math.round)(a*b)/b}function H(a){return 0===a%4&&(0!==a%100||0===a%400)}function sa(a,b){var c=b-1;c=c-12*Math.floor(c/12)+1;return 2===c?H(a+(b-c)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][c-1]}function ta(a){let b=Date.UTC(a.year,a.month-1,a.day,a.hour,a.minute,a.second,a.millisecond);100>a.year&&0<=a.year&&(b=new Date(b),b.setUTCFullYear(a.year,a.month-1,a.day));return+b}function ea(a, b=4,c=1){var d=-oa(na(a,1,b),c)+b-1;b=-oa(na(a+1,1,b),c)+b-1;return((H(a)?366:365)-d+b)/7}function Ra(a){return 99w.twoDigitCutoffYear?1900+a:2E3+a}function lb(a,b,c,d=null){a=new Date(a);const e={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};d&&(e.timeZone=d);return(b=(new Intl.DateTimeFormat(c,{timeZoneName:b,...e})).formatToParts(a).find(f=>"timezonename"===f.type.toLowerCase()))?b.value:null}function ua(a,b){a=parseInt(a,10);Number.isNaN(a)&& (a=0);b=parseInt(b,10)||0;b=0>a||Object.is(a,-0)?-b:b;return 60*a+b}function mb(a){const b=Number(a);if("boolean"===typeof a||""===a||Number.isNaN(b))throw new D(`Invalid unit value ${a}`);return b}function va(a,b){const c={};for(const d in a)if(X(a,d)){const e=a[d];void 0!==e&&null!==e&&(c[b(d)]=mb(e))}return c}function fa(a,b){const c=Math.trunc(Math.abs(a/60)),d=Math.trunc(Math.abs(a%60));a=0<=a?"+":"-";switch(b){case "short":return`${a}${y(c,2)}:${y(d,2)}`;case "narrow":return`${a}${c}${0b;b=Math.abs(b);f=1===b;const g=e[a];a=d?f?g[1]:g[2]||g[1]:f?e[a][0]:a;return c?`${b} ${a} ago`:`in ${b} ${a}`}function tb(a,b){let c="";for(const d of a)c=d.literal?c+d.val:c+b(d.val);return c}function Y(...a){a=a.reduce((b,c)=>b+c.source,"");return RegExp(`^${a}$`)}function Z(...a){return b=> a.reduce(([c,d,e],f)=>{const [g,h,k]=f(b,e);return[{...c,...g},h||d,k]},[{},null,1]).slice(0,2)}function aa(a,...b){if(null==a)return[null,null];for(const [c,d]of b)if(b=c.exec(a))return d(b);return[null,null]}function ub(...a){return(b,c)=>{const d={};let e;for(e=0;evoid 0!==u&&(z||u&&l)?-u:u;return[{years:p(R(c)),months:p(R(d)),weeks:p(R(e)),days:p(R(f)),hours:p(R(g)),minutes:p(R(h)),seconds:p(R(k),"-0"===k),milliseconds:p(Pa(q),a)}]}function Sa(a,b,c,d,e,f,g){b={year:2===b.length?Ra(N(b)):N(b),month:ob.indexOf(c)+1,day:N(d),hour:N(e),minute:N(f)}; g&&(b.second=N(g));a&&(b.weekday=3wb(a,b)?-1:1;S.reduceRight((d,e)=>{if(m(b[e]))return d;if(d){const f=a[e][d],g=Math.floor(b[d]*c/f);b[e]+=g*c;b[d]-=g*f*c}return e},null);S.reduce((d,e)=>{if(m(b[e]))return d;if(d){const f=b[d]%1;b[d]-=f;b[e]+=f*a[d][e]}return e},null)}function yb(a,b){a=b.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()-a.toUTC(0, {keepLocalTime:!0}).startOf("day").valueOf();return Math.floor(r.fromMillis(a).as("days"))}function Sc(a,b,c){const d=[["years",(k,q)=>q.year-k.year],["quarters",(k,q)=>q.quarter-k.quarter+4*(q.year-k.year)],["months",(k,q)=>q.month-k.month+12*(q.year-k.year)],["weeks",(k,q)=>{k=yb(k,q);return(k-k%7)/7}],["days",yb]],e={},f=a;let g,h;for(const [k,q]of d)0<=c.indexOf(k)&&(g=k,e[k]=q(a,b),h=f.plus(e),h>b?(e[k]--,a=f.plus(e),a>b&&(h=a,e[k]--,a=f.plus(e))):a=h);return[a,e,h,g]}function Tc(a,b,c,d){let [e, f,g,h]=Sc(a,b,c);a=b-e;c=c.filter(k=>0<=["hours","minutes","seconds","milliseconds"].indexOf(k));0===c.length&&(gc){return{regex:a,deser:([c])=>{{let d=parseInt(c,10);if(isNaN(d)){d="";for(let e=0;e=h&&f<=k&&(d+=f-h)}}c=parseInt(d,10)}else c=d}return b(c)}}}function Vc(a){return a.replace(/\./g,"\\.?").replace(Ua,Ab)}function J(a,b){return null===a?null:{regex:RegExp(a.map(Vc).join("|")),deser:([c])=>a.findIndex(d=>c.replace(/\./g,"").replace(Ua," ").toLowerCase()===d.replace(/\./g,"").replace(Ua," ").toLowerCase())+b}}function Bb(a,b){return{regex:a,deser:([,c,d])=>ua(c,d),groups:b}}function wa(a){return{regex:a,deser:([b])=>b}}function Wc(a, b){const c=I(b),d=I(b,"{2}"),e=I(b,"{3}"),f=I(b,"{4}"),g=I(b,"{6}"),h=I(b,"{1,2}"),k=I(b,"{1,3}"),q=I(b,"{1,6}"),l=I(b,"{1,9}"),p=I(b,"{2,4}"),u=I(b,"{4,6}"),z=L=>({regex:RegExp(L.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$\x26")),deser:([ja])=>ja,literal:!0}),A=(L=>{if(a.literal)return z(L);switch(L.val){case "G":return J(b.eras("short"),0);case "GG":return J(b.eras("long"),0);case "y":return t(q);case "yy":return t(p,Ra);case "yyyy":return t(f);case "yyyyy":return t(u);case "yyyyyy":return t(g); case "M":return t(h);case "MM":return t(d);case "MMM":return J(b.months("short",!0),1);case "MMMM":return J(b.months("long",!0),1);case "L":return t(h);case "LL":return t(d);case "LLL":return J(b.months("short",!1),1);case "LLLL":return J(b.months("long",!1),1);case "d":return t(h);case "dd":return t(d);case "o":return t(k);case "ooo":return t(e);case "HH":return t(d);case "H":return t(h);case "hh":return t(d);case "h":return t(h);case "mm":return t(d);case "m":return t(h);case "q":return t(h);case "qq":return t(d); case "s":return t(h);case "ss":return t(d);case "S":return t(k);case "SSS":return t(e);case "u":return wa(l);case "uu":return wa(h);case "uuu":return t(c);case "a":return J(b.meridiems(),0);case "kkkk":return t(f);case "kk":return t(p,Ra);case "W":return t(h);case "WW":return t(d);case "E":case "c":return t(c);case "EEE":return J(b.weekdays("short",!1),1);case "EEEE":return J(b.weekdays("long",!1),1);case "ccc":return J(b.weekdays("short",!0),1);case "cccc":return J(b.weekdays("long",!0),1);case "Z":case "ZZ":return Bb(new RegExp(`([+-]${h.source})(?::(${d.source}))?`), 2);case "ZZZ":return Bb(new RegExp(`([+-]${h.source})(${d.source})?`),2);case "z":return wa(/[a-z_+-/]{1,256}?/i);case " ":return wa(/[^\S\n\r]/);default:return z(L)}})(a)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};A.token=a;return A}function Xc(a){return[`^${a.map(b=>b.regex).reduce((b,c)=>`${b}(${c.source})`,"")}$`,a]}function Yc(a,b,c){if(a=a.match(b)){b={};let d=1;for(const e in c)if(X(c,e)){const f=c[e],g=f.groups?f.groups+1:1;!f.literal&&f.token&&(b[f.token.val[0]]= f.deser(a.slice(d,d+g)));d+=g}return[a,b]}return[a,{}]}function Zc(a){const b=e=>{switch(e){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 c=null,d;m(a.z)||(c=K.create(a.z));m(a.Z)||(c||=new B(a.Z),d=a.Z); m(a.q)||(a.M=3*(a.q-1)+1);m(a.h)||(12>a.h&&1===a.a?a.h+=12:12===a.h&&0===a.a&&(a.h=0));0===a.G&&a.y&&(a.y=-a.y);m(a.u)||(a.S=Pa(a.u));return[Object.keys(a).reduce((e,f)=>{const g=b(f);g&&(e[g]=a[f]);return e},{}),c,d]}function Cb(a,b){return Array.prototype.concat(...a.map(c=>{if(!c.literal){var d=C.macroTokenToFormatOpts(c.val);d=Db(d,b);c=null==d||d.includes(void 0)?c:d}return c}))}function Eb(a,b,c){c=Cb(C.parseFormat(c),a);var d=c.map(u=>Wc(u,a));const e=d.find(u=>u.invalidReason);if(e)return{input:b, tokens:c,invalidReason:e.invalidReason};const [f,g]=Xc(d);d=RegExp(f,"i");const [h,k]=Yc(b,d,g),[q,l,p]=k?Zc(k):[null,null,void 0];if(X(k,"a")&&X(k,"H"))throw new W("Can't include meridiem when specifying 24-hour format");return{input:b,tokens:c,regex:d,rawMatches:h,matches:k,result:q,zone:l,specificOffset:p}}function Db(a,b){if(!a)return null;b=C.create(b,a);var c=b.dtFormatter;Fb||=n.fromMillis(1555555555555);b=c.call(b,Fb);c=b.formatToParts();const d=b.resolvedOptions();return c.map(e=>{{const {type:g, value:h}=e;if("literal"===g)e=/^\s+$/.test(h),e={literal:!e,val:e?" ":h};else{e=a[g];var f=g;"hour"===g&&(f=null!=a.hour12?a.hour12?"hour12":"hour24":null!=a.hourCycle?"h11"===a.hourCycle||"h12"===a.hourCycle?"hour12":"hour24":d.hour12?"hour12":"hour24");f=$c[f];"object"===typeof f&&(f=f[e]);e=f?{literal:!1,val:f}:void 0}}return e})}function xa(a){return new G("unsupported zone",`the zone "${a.name}" is not supported`)}function Va(a){null===a.weekData&&(a.weekData=pa(a.c));return a.weekData}function Wa(a){null=== a.localWeekData&&(a.localWeekData=pa(a.c,a.loc.getMinDaysInFirstWeek(),a.loc.getStartOfWeek()));return a.localWeekData}function T(a,b){a={ts:a.ts,zone:a.zone,c:a.c,o:a.o,loc:a.loc,invalid:a.invalid};return new n({...a,...b,old:a})}function Gb(a,b,c){let d=a-6E4*b;const e=c.offset(d);if(b===e)return[d,b];d-=6E4*(e-b);b=c.offset(d);return e===b?[d,e]:[a-6E4*Math.min(e,b),Math.max(e,b)]}function ya(a,b){a=new Date(a+6E4*b);return{year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate(),hour:a.getUTCHours(), minute:a.getUTCMinutes(),second:a.getUTCSeconds(),millisecond:a.getUTCMilliseconds()}}function za(a,b,c){return Gb(ta(a),b,c)}function Hb(a,b){const c=a.o;var d=a.c.year+Math.trunc(b.years);const e=a.c.month+Math.trunc(b.months)+3*Math.trunc(b.quarters);d={...a.c,year:d,month:e,day:Math.min(a.c.day,sa(d,e))+Math.trunc(b.days)+7*Math.trunc(b.weeks)};b=r.fromObject({years:b.years-Math.trunc(b.years),quarters:b.quarters-Math.trunc(b.quarters),months:b.months-Math.trunc(b.months),weeks:b.weeks-Math.trunc(b.weeks), days:b.days-Math.trunc(b.days),hours:b.hours,minutes:b.minutes,seconds:b.seconds,milliseconds:b.milliseconds}).as("milliseconds");d=ta(d);let [f,g]=Gb(d,c,a.zone);0!==b&&(f+=b,g=a.zone.offset(f));return{ts:f,o:g}}function ka(a,b,c,d,e,f){const {setZone:g,zone:h}=c;return a&&0!==Object.keys(a).length||b?(a=n.fromObject(a,{...c,zone:b||h,specificOffset:f}),g?a:a.setZone(h)):n.invalid(new G("unparsable",`the input "${e}" can't be parsed as ${d}`))}function Aa(a,b,c=!0){return a.isValid?C.create(v.create("en-US"), {allowZ:c,forceSimple:!0}).formatDateTimeFromString(a,b):null}function Xa(a,b){const c=9999a.c.year;let d="";c&&0<=a.c.year&&(d+="+");d+=y(a.c.year,c?6:4);b?(d=d+"-"+y(a.c.month),d=d+"-"+y(a.c.day)):(d+=y(a.c.month),d+=y(a.c.day));return d}function Ib(a,b,c,d,e,f){let g=y(a.c.hour);b?(g=g+":"+y(a.c.minute),0===a.c.millisecond&&0===a.c.second&&c||(g+=":")):g+=y(a.c.minute);0===a.c.millisecond&&0===a.c.second&&c||(g+=y(a.c.second),0===a.c.millisecond&&d||(g=g+"."+y(a.c.millisecond,3))); e&&(a.isOffsetFixed&&0===a.offset&&!f?g+="Z":0>a.o?(g=g+"-"+y(Math.trunc(-a.o/60)),g=g+":"+y(Math.trunc(-a.o%60))):(g=g+"+"+y(Math.trunc(a.o/60)),g=g+":"+y(Math.trunc(a.o%60))));f&&(g+="["+a.zone.ianaName+"]");return g}function Jb(a){switch(a.toLowerCase()){case "localweekday":case "localweekdays":return"localWeekday";case "localweeknumber":case "localweeknumbers":return"localWeekNumber";case "localweekyear":case "localweekyears":return"localWeekYear";default:const b={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"}[a.toLowerCase()];if(!b)throw new Kb(a);return b}}function Lb(a,b){const c=M(b.zone,w.defaultZone);b=v.fromObject(b); const d=w.now();var e;if(m(a.year))a=d;else{for(const f of Mb)m(a[f])&&(a[f]=Nb[f]);if(e=gb(a)||hb(a))return n.invalid(e);e=c.offset(d);[a,e]=za(a,e,c)}return new n({ts:a,zone:c,loc:b,o:e})}function Ob(a,b,c){const d=m(c.round)?!0:c.round,e=(g,h)=>{g=Qa(g,d||c.calendary?0:2,!0);return b.loc.clone(c).relFormatter(c).format(g,h)},f=g=>c.calendary?b.hasSame(a,g)?0:b.startOf(g).diff(a.startOf(g),g).get(g):b.diff(a,g).get(g);if(c.unit)return e(f(c.unit),c.unit);for(const g of c.units){const h=f(g);if(1<= Math.abs(h))return e(h,g)}return e(a>b?-0:0,c.units[c.units.length-1])}function Pb(a){let b={};0a).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const a=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?a.map(b=>{if("timeZoneName"===b.type){const c=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...b,value:c}}return b}):a}resolvedOptions(){return this.dtf.resolvedOptions()}}class id{constructor(a,b,c){this.opts={style:"long",...c}; !b&&ib()&&(this.rtf=Ac(a,c))}format(a,b){return this.rtf?this.rtf.format(a,b):Mc(b,a,this.opts.numeric,"long"!==this.opts.style)}formatToParts(a,b){return this.rtf?this.rtf.formatToParts(a,b):[]}}const jd={firstDay:1,minimalDays:4,weekend:[6,7]};class v{static fromOpts(a){return v.create(a.locale,a.numberingSystem,a.outputCalendar,a.weekSettings,a.defaultToEN)}static create(a,b,c,d,e=!1){a=a||w.defaultLocale;var f;(f=a)||(e?e="en-US":(Ea||(Ea=(new Intl.DateTimeFormat).resolvedOptions().locale),e= Ea),f=e);e=f;b=b||w.defaultNumberingSystem;c=c||w.defaultOutputCalendar;d=Oa(d)||w.defaultWeekSettings;return new v(e,b,c,d,a)}static resetCache(){Ea=null;Ha={};Ia={};Ja={}}static fromObject({locale:a,numberingSystem:b,outputCalendar:c,weekSettings:d}={}){return v.create(a,b,c,d)}constructor(a,b,c,d,e){var f=a.indexOf("-x-");-1!==f&&(a=a.substring(0,f));f=a.indexOf("-u-");if(-1===f)var g=[a];else{try{g=Ga(a).resolvedOptions();var h=a}catch(z){h=a.substring(0,f),g=Ga(h).resolvedOptions()}const {numberingSystem:p, calendar:u}=g;g=[h,p,u]}const [k,q,l]=g;this.locale=k;this.numberingSystem=b||q||null;this.outputCalendar=c||l||null;this.weekSettings=d;b=this.locale;c=this.numberingSystem;if((d=this.outputCalendar)||c)b.includes("-u-")||(b+="-u"),d&&(b+=`-ca-${d}`),c&&(b+=`-nu-${c}`);this.intl=b;this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=e;this.fastNumbersCached=null}get fastNumbers(){if(null==this.fastNumbersCached){var a= this.numberingSystem&&"latn"!==this.numberingSystem?!1:"latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===(new Intl.DateTimeFormat(this.intl)).resolvedOptions().numberingSystem;this.fastNumbersCached=a}return this.fastNumbersCached}listingMode(){const a=this.isEnglish(),b=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return a&&b?"en":"intl"}clone(a){return a&&0!==Object.getOwnPropertyNames(a).length? v.create(a.locale||this.specifiedLocale,a.numberingSystem||this.numberingSystem,a.outputCalendar||this.outputCalendar,Oa(a.weekSettings)||this.weekSettings,a.defaultToEN||!1):this}redefaultToEN(a={}){return this.clone({...a,defaultToEN:!0})}redefaultToSystem(a={}){return this.clone({...a,defaultToEN:!1})}months(a,b=!1){return ma(this,a,nb,()=>{const c=b?{month:a,day:"numeric"}:{month:a},d=b?"format":"standalone";this.monthsCache[d][a]||(this.monthsCache[d][a]=Bc(e=>this.extract(e,c,"month")));return this.monthsCache[d][a]})}weekdays(a, b=!1){return ma(this,a,pb,()=>{const c=b?{weekday:a,year:"numeric",month:"long",day:"numeric"}:{weekday:a},d=b?"format":"standalone";this.weekdaysCache[d][a]||(this.weekdaysCache[d][a]=Cc(e=>this.extract(e,c,"weekday")));return this.weekdaysCache[d][a]})}meridiems(){return ma(this,void 0,()=>jc,()=>{if(!this.meridiemCache){const a={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[n.utc(2016,11,13,9),n.utc(2016,11,13,19)].map(b=>this.extract(b,a,"dayperiod"))}return this.meridiemCache})}eras(a){return ma(this, a,sb,()=>{const b={era:a};this.eraCache[a]||(this.eraCache[a]=[n.utc(-40,1,1),n.utc(2017,1,1)].map(c=>this.extract(c,b,"era")));return this.eraCache[a]})}extract(a,b,c){return(a=this.dtFormatter(a,b).formatToParts().find(d=>d.type.toLowerCase()===c))?a.value:null}numberFormatter(a={}){return new gd(this.intl,a.forceSimple||this.fastNumbers,a)}dtFormatter(a,b={}){return new hd(a,this.intl,b)}relFormatter(a={}){return new id(this.intl,this.isEnglish(),a)}listFormatter(a={}){return yc(this.intl,a)}isEnglish(){return"en"=== this.locale||"en-us"===this.locale.toLowerCase()||(new Intl.DateTimeFormat(this.intl)).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings)return this.weekSettings;if(jb()){var a=this.locale,b=ic[a];b||(b=new Intl.Locale(a),b="getWeekInfo"in b?b.getWeekInfo():b.weekInfo,ic[a]=b);return b}return jd}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(a){return this.locale=== a.locale&&this.numberingSystem===a.numberingSystem&&this.outputCalendar===a.outputCalendar}}let Za=null;class B extends V{static get utcInstance(){null===Za&&(Za=new B(0));return Za}static instance(a){return 0===a?B.utcInstance:new B(a)}static parseSpecifier(a){return a&&(a=a.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i))?new B(ua(a[1],a[2])):null}constructor(a){super();this.fixed=a}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${fa(this.fixed,"narrow")}`}get ianaName(){return 0=== this.fixed?"Etc/UTC":`Etc/GMT${fa(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(a,b){return fa(this.fixed,b)}get isUniversal(){return!0}offset(){return this.fixed}equals(a){return"fixed"===a.type&&a.fixed===this.fixed}get isValid(){return!0}}class Dc extends V{constructor(a){super();this.zoneName=a}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}} let kc=()=>Date.now(),lc="system",mc=null,nc=null,oc=null,pc=60,qc,rc=null;class w{static get now(){return kc}static set now(a){kc=a}static set defaultZone(a){lc=a}static get defaultZone(){return M(lc,Ka.instance)}static get defaultLocale(){return mc}static set defaultLocale(a){mc=a}static get defaultNumberingSystem(){return nc}static set defaultNumberingSystem(a){nc=a}static get defaultOutputCalendar(){return oc}static set defaultOutputCalendar(a){oc=a}static get defaultWeekSettings(){return rc}static set defaultWeekSettings(a){rc= Oa(a)}static get twoDigitCutoffYear(){return pc}static set twoDigitCutoffYear(a){pc=a%100}static get throwOnInvalid(){return qc}static set throwOnInvalid(a){qc=a}static resetCaches(){v.resetCache();K.resetCache()}}class G{constructor(a,b){this.reason=a;this.explanation=b}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Ma=[0,31,59,90,120,151,181,212,243,273,304,334],La=[0,31,60,91,121,152,182,213,244,274,305,335],Hc="January February March April May June July August September October November December".split(" "), ob="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Gc="JFMAMJJASOND".split(""),rb="Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),qb="Mon Tue Wed Thu Fri Sat Sun".split(" "),Ic="MTWTFSS".split(""),jc=["AM","PM"],Lc=["Before Christ","Anno Domini"],Kc=["BC","AD"],Jc=["B","A"],kd={D:Ba,DD:Qb,DDD:Rb,DDDD:Sb,t:Tb,tt:Ub,ttt:Vb,tttt:Wb,T:Xb,TT:Yb,TTT:Zb,TTTT:$b,f:ac,ff:cc,fff:ec,ffff:gc,F:bc,FF:dc,FFF:fc,FFFF:hc};class C{static create(a,b={}){return new C(a,b)}static parseFormat(a){let b= null,c="",d=!1;const e=[];for(let f=0;fthis.loc.extract(a,l,p),f=l=>a.isOffsetFixed&&0===a.offset&&l.allowZ?"Z":a.isValid?a.zone.formatOffset(a.ts,l.format):"",g=(l,p)=>c?nb(l)[a.month-1]:e(p?{month:l}:{month:l,day:"numeric"},"month"),h=(l,p)=>c?pb(l)[a.weekday-1]:e(p?{weekday:l}:{weekday:l,month:"long",day:"numeric"},"weekday"),k=l=>{const p= C.macroTokenToFormatOpts(l);return p?this.formatWithSystemDefault(a,p):l},q=l=>c?sb(l)[0>a.year?0:1]:e({era:l},"era");return tb(C.parseFormat(b),l=>{switch(l){case "S":return this.num(a.millisecond);case "u":case "SSS":return this.num(a.millisecond,3);case "s":return this.num(a.second);case "ss":return this.num(a.second,2);case "uu":return this.num(Math.floor(a.millisecond/10),2);case "uuu":return this.num(Math.floor(a.millisecond/100));case "m":return this.num(a.minute);case "mm":return this.num(a.minute, 2);case "h":return this.num(0===a.hour%12?12:a.hour%12);case "hh":return this.num(0===a.hour%12?12:a.hour%12,2);case "H":return this.num(a.hour);case "HH":return this.num(a.hour,2);case "Z":return f({format:"narrow",allowZ:this.opts.allowZ});case "ZZ":return f({format:"short",allowZ:this.opts.allowZ});case "ZZZ":return f({format:"techie",allowZ:this.opts.allowZ});case "ZZZZ":return a.zone.offsetName(a.ts,{format:"short",locale:this.loc.locale});case "ZZZZZ":return a.zone.offsetName(a.ts,{format:"long", locale:this.loc.locale});case "z":return a.zoneName;case "a":return c?jc[12>a.hour?0:1]:e({hour:"numeric",hourCycle:"h12"},"dayperiod");case "d":return d?e({day:"numeric"},"day"):this.num(a.day);case "dd":return d?e({day:"2-digit"},"day"):this.num(a.day,2);case "c":return this.num(a.weekday);case "ccc":return h("short",!0);case "cccc":return h("long",!0);case "ccccc":return h("narrow",!0);case "E":return this.num(a.weekday);case "EEE":return h("short",!1);case "EEEE":return h("long",!1);case "EEEEE":return h("narrow", !1);case "L":return d?e({month:"numeric",day:"numeric"},"month"):this.num(a.month);case "LL":return d?e({month:"2-digit",day:"numeric"},"month"):this.num(a.month,2);case "LLL":return g("short",!0);case "LLLL":return g("long",!0);case "LLLLL":return g("narrow",!0);case "M":return d?e({month:"numeric"},"month"):this.num(a.month);case "MM":return d?e({month:"2-digit"},"month"):this.num(a.month,2);case "MMM":return g("short",!1);case "MMMM":return g("long",!1);case "MMMMM":return g("narrow",!1);case "y":return d? e({year:"numeric"},"year"):this.num(a.year);case "yy":return d?e({year:"2-digit"},"year"):this.num(a.year.toString().slice(-2),2);case "yyyy":return d?e({year:"numeric"},"year"):this.num(a.year,4);case "yyyyyy":return d?e({year:"numeric"},"year"):this.num(a.year,6);case "G":return q("short");case "GG":return q("long");case "GGGGG":return q("narrow");case "kk":return this.num(a.weekYear.toString().slice(-2),2);case "kkkk":return this.num(a.weekYear,4);case "W":return this.num(a.weekNumber);case "WW":return this.num(a.weekNumber, 2);case "n":return this.num(a.localWeekNumber);case "nn":return this.num(a.localWeekNumber,2);case "ii":return this.num(a.localWeekYear.toString().slice(-2),2);case "iiii":return this.num(a.localWeekYear,4);case "o":return this.num(a.ordinal);case "ooo":return this.num(a.ordinal,3);case "q":return this.num(a.quarter);case "qq":return this.num(a.quarter,2);case "X":return this.num(Math.floor(a.ts/1E3));case "x":return this.num(a.ts);default:return k(l)}})}formatDurationFromString(a,b){const c=e=>{switch(e[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}};b=C.parseFormat(b);const d=b.reduce((e,{literal:f,val:g})=>f?e:e.concat(g),[]);a=a.shiftTo(...d.map(c).filter(e=>e));return tb(b,(e=>f=>{const g=c(f);return g?this.num(e.get(g),f.length):f})(a))}}const sc=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,tc=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, $a=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,uc=RegExp(`${$a.source}${`(?:${tc.source}?(?:\\[(${sc.source})\\])?)?`}`),ab=RegExp(`(?:T${uc.source})?`),ld=ub("weekYear","weekNumber","weekDay"),md=ub("year","ordinal"),vc=RegExp(`${$a.source} ?(?:${tc.source}|(${sc.source}))?`),nd=RegExp(`(?: ${vc.source})?`),od=RegExp(`^T?${$a.source}$`),pd=/^-?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)?)?)$/, Pc={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},qd=/^(?:(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)))$/,rd=/^(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$/,sd=/^(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$/, td=/^(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})$/,ud=Y(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ab),vd=Y(/(\d{4})-?W(\d\d)(?:-?(\d))?/,ab),wd=Y(/(\d{4})-?(\d{3})/,ab),xd=Y(uc),wc=Z(function(a,b){return[{year:ba(a,b),month:ba(a,b+1,1),day:ba(a,b+2,1)},null,b+3]},ca,ha,ia),yd=Z(ld,ca,ha,ia),zd=Z(md,ca,ha,ia),Ad=Z(ca,ha,ia),Bd=Z(ca),Cd=Y(/(\d{4})-(\d\d)-(\d\d)/,nd),Dd=Y(vc),Ed=Z(ca,ha,ia),xc={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}},Fd={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}, ...xc},Gd={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},...xc},S="years quarters months weeks days hours minutes seconds milliseconds".split(" "),Rc=S.slice(0).reverse();class r{constructor(a){const b= "longterm"===a.conversionAccuracy||!1;let c=b?Gd:Fd;a.matrix&&(c=a.matrix);this.values=a.values;this.loc=a.loc||v.create();this.conversionAccuracy=b?"longterm":"casual";this.invalid=a.invalid||null;this.matrix=c;this.isLuxonDuration=!0}static fromMillis(a,b){return r.fromObject({milliseconds:a},b)}static fromObject(a,b={}){if(null==a||"object"!==typeof a)throw new D(`Duration.fromObject: argument expected to be an object, got ${null===a?"null":typeof a}`);return new r({values:va(a,r.normalizeUnit), loc:v.fromObject(b),conversionAccuracy:b.conversionAccuracy,matrix:b.matrix})}static fromDurationLike(a){if(Q(a))return r.fromMillis(a);if(r.isDuration(a))return a;if("object"===typeof a)return r.fromObject(a);throw new D(`Unknown duration argument ${a} of type ${typeof a}`);}static fromISO(a,b){const [c]=aa(a,[pd,Nc]);return c?r.fromObject(c,b):r.invalid("unparsable",`the input "${a}" can't be parsed as ISO 8601`)}static fromISOTime(a,b){const [c]=aa(a,[od,Bd]);return c?r.fromObject(c,b):r.invalid("unparsable", `the input "${a}" can't be parsed as ISO 8601`)}static invalid(a,b=null){if(!a)throw new D("need to specify a reason the Duration is invalid");a=a instanceof G?a:new G(a,b);if(w.throwOnInvalid)throw new cd(a);return new r({invalid:a})}static normalizeUnit(a){const b={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"}[a?a.toLowerCase():a];if(!b)throw new Kb(a);return b}static isDuration(a){return a&&a.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(a,b={}){b={...b,floor:!1!==b.round&&!1!==b.floor};return this.isValid?C.create(this.loc,b).formatDurationFromString(this,a):"Invalid Duration"}toHuman(a={}){if(!this.isValid)return"Invalid Duration";const b= S.map(c=>{const d=this.values[c];return m(d)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...a,unit:c.slice(0,-1)}).format(d)}).filter(c=>c);return this.loc.listFormatter({type:"conjunction",style:a.listStyle||"narrow",...a}).format(b)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let a="P";0!==this.years&&(a+=this.years+"Y");if(0!==this.months||0!==this.quarters)a+=this.months+3*this.quarters+"M";0!==this.weeks&&(a+=this.weeks+"W");0!== this.days&&(a+=this.days+"D");if(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)a+="T";0!==this.hours&&(a+=this.hours+"H");0!==this.minutes&&(a+=this.minutes+"M");if(0!==this.seconds||0!==this.milliseconds)a+=Qa(this.seconds+this.milliseconds/1E3,3)+"S";"P"===a&&(a+="T0S");return a}toISOTime(a={}){if(!this.isValid)return null;const b=this.toMillis();if(0>b||864E5<=b)return null;a={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...a,includeOffset:!1}; return n.fromMillis(b,{zone:"UTC"}).toISOTime(a)}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?wb(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(a){if(!this.isValid)return this;a=r.fromDurationLike(a);const b={};for(const c of S)if(X(a.values,c)||X(this.values,c))b[c]= a.get(c)+this.get(c);return O(this,{values:b},!0)}minus(a){if(!this.isValid)return this;a=r.fromDurationLike(a);return this.plus(a.negate())}mapUnits(a){if(!this.isValid)return this;const b={};for(const c of Object.keys(this.values))b[c]=mb(a(this.values[c],c));return O(this,{values:b},!0)}get(a){return this[r.normalizeUnit(a)]}set(a){if(!this.isValid)return this;a={...this.values,...va(a,r.normalizeUnit)};return O(this,{values:a})}reconfigure({locale:a,numberingSystem:b,conversionAccuracy:c,matrix:d}= {}){a={loc:this.loc.clone({locale:a,numberingSystem:b}),matrix:d,conversionAccuracy:c};return O(this,a)}as(a){return this.isValid?this.shiftTo(a).get(a):NaN}normalize(){if(!this.isValid)return this;const a=this.toObject();xb(this.matrix,a);return O(this,{values:a},!0)}rescale(){if(!this.isValid)return this;var a=this.normalize().shiftToAll().toObject();const b={};for(const [c,d]of Object.entries(a))0!==d&&(b[c]=d);return O(this,{values:b},!0)}shiftTo(...a){if(!this.isValid||0===a.length)return this; a=a.map(f=>r.normalizeUnit(f));const b={},c={},d=this.toObject();let e;for(const f of S)if(0<=a.indexOf(f)){e=f;let g=0;for(const k in c)g+=this.matrix[k][f]*c[k],c[k]=0;Q(d[f])&&(g+=d[f]);const h=Math.trunc(g);b[f]=h;c[f]=(1E3*g-1E3*h)/1E3}else Q(d[f])&&(c[f]=d[f]);for(const f in c)0!==c[f]&&(b[e]+=f===e?c[f]:c[f]/this.matrix[e][f]);xb(this.matrix,b);return O(this,{values:b},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"): this}negate(){if(!this.isValid)return this;const a={};for(const b of Object.keys(this.values))a[b]=0===this.values[b]?0:-this.values[b];return O(this,{values:a},!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(a){if(!this.isValid||!a.isValid||!this.loc.equals(a.loc))return!1;for(const d of S){var b=this.values[d];var c=a.values[d]; b=void 0===b||0===b?void 0===c||0===c:b===c;if(!b)return!1}return!0}}class x{constructor(a){this.s=a.start;this.e=a.end;this.invalid=a.invalid||null;this.isLuxonInterval=!0}static invalid(a,b=null){if(!a)throw new D("need to specify a reason the Interval is invalid");a=a instanceof G?a:new G(a,b);if(w.throwOnInvalid)throw new bd(a);return new x({invalid:a})}static fromDateTimes(a,b){a=la(a);b=la(b);var c=a&&a.isValid?b&&b.isValid?ba:!1}isBefore(a){return this.isValid?this.e<=a:!1}contains(a){return this.isValid?this.s<=a&&this.e>a:!1}set({start:a,end:b}={}){return this.isValid?x.fromDateTimes(a||this.s,b||this.e):this}splitAt(...a){if(!this.isValid)return[];a=a.map(la).filter(f=>this.contains(f)).sort((f,g)=>f.toMillis()-g.toMillis());const b=[];let {s:c}=this,d=0;for(;c+this.e?this.e:e;b.push(x.fromDateTimes(c,e));c=e;d+=1}return b}splitBy(a){a=r.fromDurationLike(a);if(!this.isValid|| !a.isValid||0===a.as("milliseconds"))return[];let {s:b}=this,c=1;const d=[];for(;bf*c));e=+e>+this.e?this.e:e;d.push(x.fromDateTimes(b,e));b=e;c+=1}return d}divideEqually(a){return this.isValid?this.splitBy(this.length()/a).slice(0,a):[]}overlaps(a){return this.e>a.s&&this.s=a.e:!1}equals(a){return this.isValid&& a.isValid?this.s.equals(a.s)&&this.e.equals(a.e):!1}intersection(a){if(!this.isValid)return this;const b=this.s>a.s?this.s:a.s;a=this.e=a?null:x.fromDateTimes(b,a)}union(a){return this.isValid?x.fromDateTimes(this.sa.e?this.e:a.e):this}static merge(a){const [b,c]=a.sort((d,e)=>d.s-e.s).reduce(([d,e],f)=>e?e.overlaps(f)||e.abutsStart(f)?[d,e.union(f)]:[d.concat([e]),f]:[d,f],[[],null]);c&&b.push(c);return b}static xor(a){let b=null,c=0;const d=[];a=a.map(e=> [{time:e.s,type:"s"},{time:e.e,type:"e"}]);a=Array.prototype.concat(...a).sort((e,f)=>e.time-f.time);for(const e of a)c+="s"===e.type?1:-1,1===c?b=e.time:(b&&+b!==+e.time&&d.push(x.fromDateTimes(b,e.time)),b=null);return x.merge(d)}difference(...a){return x.xor([this].concat(a)).map(b=>this.intersection(b)).filter(b=>b&&!b.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:"Invalid Interval"}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`: `Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(a=Ba,b={}){return this.isValid?C.create(this.s.loc.clone(b),a).formatInterval(this):"Invalid Interval"}toISO(a){return this.isValid?`${this.s.toISO(a)}/${this.e.toISO(a)}`:"Invalid Interval"}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:"Invalid Interval"}toISOTime(a){return this.isValid?`${this.s.toISOTime(a)}/${this.e.toISOTime(a)}`:"Invalid Interval"}toFormat(a,{separator:b=" \u2013 "}={}){return this.isValid? `${this.s.toFormat(a)}${b}${this.e.toFormat(a)}`:"Invalid Interval"}toDuration(a,b){return this.isValid?this.e.diff(this.s,a,b):r.invalid(this.invalidReason)}mapEndpoints(a){return x.fromDateTimes(a(this.s),a(this.e))}}class Fa{static hasDST(a=w.defaultZone){const b=n.now().setZone(a).set({month:12});return!a.isUniversal&&b.offset!==b.set({month:6}).offset}static isValidIANAZone(a){return K.isValidZone(a)}static normalizeZone(a){return M(a,w.defaultZone)}static getStartOfWeek({locale:a=null,locObj:b= null}={}){return(b||v.create(a)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:a=null,locObj:b=null}={}){return(b||v.create(a)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:a=null,locObj:b=null}={}){return(b||v.create(a)).getWeekendDays().slice()}static months(a="long",{locale:b=null,numberingSystem:c=null,locObj:d=null,outputCalendar:e="gregory"}={}){return(d||v.create(b,c,e)).months(a)}static monthsFormat(a="long",{locale:b=null,numberingSystem:c=null,locObj:d=null,outputCalendar:e= "gregory"}={}){return(d||v.create(b,c,e)).months(a,!0)}static weekdays(a="long",{locale:b=null,numberingSystem:c=null,locObj:d=null}={}){return(d||v.create(b,c,null)).weekdays(a)}static weekdaysFormat(a="long",{locale:b=null,numberingSystem:c=null,locObj:d=null}={}){return(d||v.create(b,c,null)).weekdays(a,!0)}static meridiems({locale:a=null}={}){return v.create(a).meridiems()}static eras(a="short",{locale:b=null}={}){return v.create(b,null,"gregory").eras(a)}static features(){return{relative:ib(), localeWeek:jb()}}}const Ta={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]", thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},zb={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]},Uc=Ta.hanidec.replace(/[\[|\]]/g,"").split(""),Ab=`[ ${String.fromCharCode(160)}]`,Ua=new RegExp(Ab,"g"), $c={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"}};let Fb=null;const Nb={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Hd={weekNumber:1,weekday:1,hour:0,minute:0,second:0, millisecond:0},Id={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Mb="year month day hour minute second millisecond".split(" "),Jd="weekYear weekNumber weekday hour minute second millisecond".split(" "),Kd="year ordinal hour minute second millisecond".split(" ");class n{constructor(a){const b=a.zone||w.defaultZone;let c=a.invalid||(Number.isNaN(a.ts)?new G("invalid input"):null)||(b.isValid?null:xa(b));this.ts=m(a.ts)?w.now():a.ts;let d=null;var e=null;c||(a.old&&a.old.ts===this.ts&&a.old.zone.equals(b)? [d,e]=[a.old.c,a.old.o]:(e=b.offset(this.ts),d=ya(this.ts,e),d=(c=Number.isNaN(d.year)?new G("invalid input"):null)?null:d,e=c?null:e));this._zone=b;this.loc=a.loc||v.create();this.invalid=c;this.localWeekData=this.weekData=null;this.c=d;this.o=e;this.isLuxonDateTime=!0}static now(){return new n({})}static local(){const [a,b]=Pb(arguments),[c,d,e,f,g,h,k]=b;return Lb({year:c,month:d,day:e,hour:f,minute:g,second:h,millisecond:k},a)}static utc(){const [a,b]=Pb(arguments),[c,d,e,f,g,h,k]=b;a.zone=B.utcInstance; return Lb({year:c,month:d,day:e,hour:f,minute:g,second:h,millisecond:k},a)}static fromJSDate(a,b={}){a="[object Date]"===Object.prototype.toString.call(a)?a.valueOf():NaN;if(Number.isNaN(a))return n.invalid("invalid input");const c=M(b.zone,w.defaultZone);return c.isValid?new n({ts:a,zone:c,loc:v.fromObject(b)}):n.invalid(xa(c))}static fromMillis(a,b={}){if(Q(a))return-864E13>a||864E13c?c.val:null).join(""):null}static expandFormat(a,b={}){return Cb(C.parseFormat(a),v.fromObject(b)).map(c=>c.val).join("")}get(a){return this[a]}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?Va(this).weekYear:NaN}get weekNumber(){return this.isValid?Va(this).weekNumber:NaN}get weekday(){return this.isValid?Va(this).weekday: NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Wa(this).weekday:NaN}get localWeekNumber(){return this.isValid?Wa(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Wa(this).weekYear:NaN}get ordinal(){return this.isValid?Na(this.c).ordinal:NaN}get monthShort(){return this.isValid?Fa.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Fa.months("long",{locObj:this.loc})[this.month- 1]:null}get weekdayShort(){return this.isValid?Fa.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Fa.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];var a=ta(this.c),b=this.zone.offset(a-864E5),c=this.zone.offset(a+864E5);b=this.zone.offset(a-6E4*b);var d=this.zone.offset(a-6E4*c);if(b===d)return[this];c=a-6E4*b;a-=6E4*d;b=ya(c,b);d=ya(a,d);return b.hour===d.hour&&b.minute===d.minute&&b.second===d.second&&b.millisecond=== d.millisecond?[T(this,{ts:c}),T(this,{ts:a})]:[this]}get isInLeapYear(){return H(this.year)}get daysInMonth(){return sa(this.year,this.month)}get daysInYear(){return this.isValid?H(this.year)?366:365:NaN}get weeksInWeekYear(){return this.isValid?ea(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ea(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(a={}){const {locale:b,numberingSystem:c,calendar:d}=C.create(this.loc.clone(a), a).resolvedOptions(this);return{locale:b,numberingSystem:c,outputCalendar:d}}toUTC(a=0,b={}){return this.setZone(B.instance(a),b)}toLocal(){return this.setZone(w.defaultZone)}setZone(a,{keepLocalTime:b=!1,keepCalendarTime:c=!1}={}){a=M(a,w.defaultZone);if(a.equals(this.zone))return this;if(a.isValid){let d=this.ts;if(b||c)b=a.offset(this.ts),c=this.toObject(),[d]=za(c,b,a);return T(this,{ts:d,zone:a})}return n.invalid(xa(a))}reconfigure({locale:a,numberingSystem:b,outputCalendar:c}={}){a=this.loc.clone({locale:a, numberingSystem:b,outputCalendar:c});return T(this,{loc:a})}setLocale(a){return this.reconfigure({locale:a})}set(a){if(!this.isValid)return this;a=va(a,Jb);const {minDaysInFirstWeek:b,startOfWeek:c}=fb(a,this.loc);var d=!m(a.weekYear)||!m(a.weekNumber)||!m(a.weekday);const e=!m(a.ordinal),f=!m(a.year),g=!m(a.month)||!m(a.day),h=a.weekYear||a.weekNumber;if((f||g||e)&&h)throw new W("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(g&&e)throw new W("Can't mix ordinal dates with month/day"); d?d=db({...pa(this.c,b,c),...a},b,c):m(a.ordinal)?(d={...this.toObject(),...a},m(a.day)&&(d.day=Math.min(sa(d.year,d.month),d.day))):d=eb({...Na(this.c),...a});const [k,q]=za(d,this.o,this.zone);return T(this,{ts:k,o:q})}plus(a){if(!this.isValid)return this;a=r.fromDurationLike(a);return T(this,Hb(this,a))}minus(a){if(!this.isValid)return this;a=r.fromDurationLike(a).negate();return T(this,Hb(this,a))}startOf(a,{useLocaleWeeks:b=!1}={}){if(!this.isValid)return this;const c={};a=r.normalizeUnit(a); switch(a){case "years":c.month=1;case "quarters":case "months":c.day=1;case "weeks":case "days":c.hour=0;case "hours":c.minute=0;case "minutes":c.second=0;case "seconds":c.millisecond=0}if("weeks"===a)if(b){b=this.loc.getStartOfWeek();const {weekday:d}=this;dthis.valueOf();a=Tc(b?this:a,b?a:this,d,c);return b?a.negate():a}diffNow(a="milliseconds",b={}){return this.diff(n.now(),a,b)}until(a){return this.isValid?x.fromDateTimes(this,a):this}hasSame(a,b,c){if(!this.isValid)return!1;const d=a.valueOf();a=this.setZone(a.zone,{keepLocalTime:!0});return a.startOf(b,c)<=d&&d<=a.endOf(b,c)}equals(a){return this.isValid&&a.isValid&& this.valueOf()===a.valueOf()&&this.zone.equals(a.zone)&&this.loc.equals(a.loc)}toRelative(a={}){if(!this.isValid)return null;const b=a.base||n.fromObject({},{zone:this.zone}),c=a.padding?thisb.valueOf(),Math.min)}static max(...a){if(!a.every(n.isDateTime))throw new D("max requires all arguments be DateTimes");return kb(a,b=>b.valueOf(),Math.max)}static fromFormatExplain(a,b,c={}){const {locale:d=null,numberingSystem:e=null}=c;c=v.fromOpts({locale:d,numberingSystem:e,defaultToEN:!0});return Eb(c,a,b)}static fromStringExplain(a, b,c={}){return n.fromFormatExplain(a,b,c)}static get DATE_SHORT(){return Ba}static get DATE_MED(){return Qb}static get DATE_MED_WITH_WEEKDAY(){return dd}static get DATE_FULL(){return Rb}static get DATE_HUGE(){return Sb}static get TIME_SIMPLE(){return Tb}static get TIME_WITH_SECONDS(){return Ub}static get TIME_WITH_SHORT_OFFSET(){return Vb}static get TIME_WITH_LONG_OFFSET(){return Wb}static get TIME_24_SIMPLE(){return Xb}static get TIME_24_WITH_SECONDS(){return Yb}static get TIME_24_WITH_SHORT_OFFSET(){return Zb}static get TIME_24_WITH_LONG_OFFSET(){return $b}static get DATETIME_SHORT(){return ac}static get DATETIME_SHORT_WITH_SECONDS(){return bc}static get DATETIME_MED(){return cc}static get DATETIME_MED_WITH_SECONDS(){return dc}static get DATETIME_MED_WITH_WEEKDAY(){return ed}static get DATETIME_FULL(){return ec}static get DATETIME_FULL_WITH_SECONDS(){return fc}static get DATETIME_HUGE(){return gc}static get DATETIME_HUGE_WITH_SECONDS(){return hc}} da.DateTime=n;da.Duration=r;da.FixedOffsetZone=B;da.IANAZone=K;da.Zone=V});