@bereasoftware/time-guard 2.5.0 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,4 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.BereasoftTimeGuard={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=null,n=!1;function r(){if(t)return t;let e=globalThis.Temporal;if(!e){if(!n&&typeof globalThis.require==`function`)try{globalThis.require(`@js-temporal/polyfill`),n=!0;let e=globalThis.Temporal;if(e)return t=e,e}catch{}throw Error(`Temporal API not loaded. Make sure @js-temporal/polyfill is imported in your app.`)}return t=e,e}var i=class{static parseToPlainDateTime(e){let t=r();return this.isPlainDateTime(e)?e:this.isZonedDateTime(e)?e.toPlainDateTime():this.isPlainDate(e)?e.toPlainDateTime({hour:0,minute:0,second:0,millisecond:0}):this.isPlainTime(e)?t.Now.plainDateTimeISO().with(e):typeof e==`object`&&e&&`getTime`in e&&typeof e.getTime==`function`?this.fromDate(e):typeof e==`number`?this.fromUnix(e):typeof e==`string`?this.parseISOString(e):typeof e==`object`&&e?this.fromObject(e):t.Now.plainDateTimeISO()}static fromDate(e){let t=r(),[n,i]=e.toISOString().split(`T`);return t.PlainDateTime.from(n+`T`+i.slice(0,-1))}static fromUnix(e){return this.fromDate(new Date(e))}static parseISOString(e){let t=r();try{if(e.includes(`T`)||/ \d{2}:\d{2}/.test(e)){let n=e.replace(` `,`T`);return t.PlainDateTime.from(n)}return t.PlainDate.from(e).toPlainDateTime({hour:0})}catch{return t.Now.plainDateTimeISO()}}static fromObject(e){let t=r(),n=e.year||t.Now.plainDateISO().year,i=e.month||1,a=e.day||1,o=e.hour||0,s=e.minute||0,c=e.second||0,l=e.millisecond||0;return t.PlainDateTime.from({year:n,month:i,day:a,hour:o,minute:s,second:c,millisecond:l})}static toDate(e){let t=this.toPlainDateTime(e);return new Date(t.toString())}static toUnix(e){let t=this.toPlainDateTime(e);return Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond)}static toISOString(e){return this.toPlainDateTime(e).toString()+`Z`}static toPlainDateTime(e){return this.isPlainDateTime(e)?e:e.toPlainDateTime()}static isPlainDateTime(e){return typeof e==`object`&&!!e&&`year`in e&&`month`in e&&`day`in e&&`hour`in e}static isZonedDateTime(e){return typeof e==`object`&&!!e&&`timeZone`in e}static isPlainDate(e){return typeof e==`object`&&!!e&&`year`in e&&`month`in e&&`day`in e&&!(`hour`in e)&&`toPlainDateTime`in e}static isPlainTime(e){return typeof e==`object`&&!!e&&`hour`in e&&!(`year`in e)}static now(){return r().Now.plainDateTimeISO()}static nowInTimezone(e){return r().Now.zonedDateTimeISO(e)}static compare(e,t){let n=r();if(n.PlainDateTime&&typeof n.PlainDateTime.compare==`function`)return n.PlainDateTime.compare(e,t);let i=e.toString(),a=t.toString();return i<a?-1:+(i>a)}},a={name:`en`,months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],weekdays:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],weekdaysShort:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],weekdaysMin:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},o={name:`es`,months:[`Enero`,`Febrero`,`Marzo`,`Abril`,`Mayo`,`Junio`,`Julio`,`Agosto`,`Septiembre`,`Octubre`,`Noviembre`,`Diciembre`],monthsShort:[`Ene`,`Feb`,`Mar`,`Abr`,`May`,`Jun`,`Jul`,`Ago`,`Sep`,`Oct`,`Nov`,`Dic`],weekdays:[`Domingo`,`Lunes`,`Martes`,`Miércoles`,`Jueves`,`Viernes`,`Sábado`],weekdaysShort:[`Dom`,`Lun`,`Mar`,`Mié`,`Jue`,`Vie`,`Sáb`],weekdaysMin:[`Do`,`Lu`,`Ma`,`Mi`,`Ju`,`Vi`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},s=class e{static instance;locales=new Map;currentLocale=`en`;static getInstance(){return e.instance||=new e,e.instance}constructor(){this.locales.set(`en`,a),this.locales.set(`es`,o)}setLocale(e,t){t&&this.locales.set(e.toLowerCase(),t),this.currentLocale=e.toLowerCase()}getLocale(e){let t=(e||this.currentLocale).toLowerCase();return this.locales.get(t)||this.locales.get(`en`)||a}listLocales(){return Array.from(this.locales.keys())}getCurrentLocale(){return this.currentLocale}loadLocales(e){Object.entries(e).forEach(([e,t])=>{this.locales.set(e.toLowerCase(),t)})}},c=class{localeManager;constructor(){this.localeManager=s.getInstance()}format(e,t,n){let r=this.localeManager.getLocale(n),i=[],a=t.replace(/\[([^\]]+)\]/g,(e,t)=>(i.push(t),`~${i.length-1}~`));a=a.replace(/"([^"]*)"/g,(e,t)=>(i.push(t),`~${i.length-1}~`));let o=a.replace(/Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|SSS/g,t=>{switch(t){case`YYYY`:return String(e.year).padStart(4,`0`);case`YY`:return String(e.year).slice(-2);case`Y`:return String(e.year);case`MMMM`:return r.months[e.month-1];case`MMM`:return r.monthsShort[e.month-1];case`MM`:return String(e.month).padStart(2,`0`);case`M`:return String(e.month);case`DD`:return String(e.day).padStart(2,`0`);case`D`:return String(e.day);case`dddd`:return r.weekdays[e.dayOfWeek%7];case`ddd`:return r.weekdaysShort[e.dayOfWeek%7];case`dd`:return r.weekdaysMin[e.dayOfWeek%7];case`d`:return String(e.dayOfWeek);case`HH`:return String(e.hour).padStart(2,`0`);case`H`:return String(e.hour);case`hh`:return String(e.hour%12||12).padStart(2,`0`);case`h`:return String(e.hour%12||12);case`mm`:return String(e.minute).padStart(2,`0`);case`m`:return String(e.minute);case`ss`:return String(e.second).padStart(2,`0`);case`s`:return String(e.second);case`SSS`:return String(e.millisecond).padStart(3,`0`);case`a`:case`A`:let n=r.meridiem||{am:`am`,pm:`pm`},i=e.hour>=12?n.pm:n.am;return t===`a`?i.toLowerCase():i.toUpperCase();default:return t}});return i.forEach((e,t)=>{o=o.replace(`~${t}~`,e)}),o}getPreset(e){let t={iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`,rfc3339:`YYYY-MM-DDTHH:mm:ssZ`,utc:`YYYY-MM-DDTHH:mm:ss[Z]`};return t[e]||t.iso}formatPreset(e,t,n){let r=this.getPreset(t);return this.format(e,r,n)}},l={en:{year:[`year`,`years`],month:[`month`,`months`],week:[`week`,`weeks`],day:[`day`,`days`],hour:[`hour`,`hours`],minute:[`minute`,`minutes`],second:[`second`,`seconds`],millisecond:[`millisecond`,`milliseconds`]},es:{year:[`año`,`años`],month:[`mes`,`meses`],week:[`semana`,`semanas`],day:[`día`,`días`],hour:[`hora`,`horas`],minute:[`minuto`,`minutos`],second:[`segundo`,`segundos`],millisecond:[`milisegundo`,`milisegundos`]},fr:{year:[`année`,`années`],month:[`mois`,`mois`],week:[`semaine`,`semaines`],day:[`jour`,`jours`],hour:[`heure`,`heures`],minute:[`minute`,`minutes`],second:[`seconde`,`secondes`],millisecond:[`milliseconde`,`millisecondes`]}},u={en:`and`,es:`y`,fr:`et`,de:`und`,it:`e`,pt:`e`};function d(e,t,n){return((l[t]||l.en)[e]||[e,e+`s`])[n===1?0:1]}function f(e){return u[e]||`and`}function p(e,t){if(e.length===0)return``;if(e.length===1)return e[0];let n=f(t);return e.length===2?`${e[0]} ${n} ${e[1]}`:e.slice(0,-1).join(`, `)+` ${n} ${e[e.length-1]}`}function m(e){return{en:`0 seconds`,es:`0 segundos`,fr:`0 secondes`}[e]||`0 seconds`}var h=class e{static instance;plugins=new Map;static getInstance(){return e.instance||=new e,e.instance}static use(t,n,r){e.getInstance().register(t,n,r)}static useMultiple(t,n,r){let i=e.getInstance();t.forEach(e=>i.register(e,n,r))}static getPlugin(t){return e.getInstance().plugins.get(t)}static hasPlugin(t){return e.getInstance().plugins.has(t)}static listPlugins(){let t=e.getInstance();return Array.from(t.plugins.keys())}static unuse(t){return e.getInstance().plugins.delete(t)}static clear(){e.getInstance().plugins.clear()}register(e,t,n){if(this.plugins.has(e.name)){console.warn(`Plugin "${e.name}" is already registered. Skipping...`);return}try{e.install(t,n),this.plugins.set(e.name,e),console.debug(`Plugin "${e.name}" v${e.version} registered successfully`)}catch(t){throw console.error(`Failed to register plugin "${e.name}":`,t),Error(`Failed to register plugin "${e.name}": ${t instanceof Error?t.message:String(t)}`)}}},ee=` days`,g=1e3,_=g*60,v=_*60,y=v*24,b=y*7,x=365.25,S=x/12*y,C=x*y,w=class{_value;_tg1;_tg2;_mode;_breakdownData;_locale;constructor(e,t,n,r=`exact`,i,a){this._value=e,this._tg1=t,this._tg2=n,this._mode=r,this._breakdownData=i||null,this._locale=a||`en`}as(e){return this._tg1.diff(this._tg2,e)}breakdown(){return this._breakdownData}format(e){let t=e||this._locale;if(!this._breakdownData)return`${Math.abs(this._tg1.diff(this._tg2,`day`))}${ee}`;let n=[],r=this._breakdownData;return r.years!==0&&n.push(`${r.years} ${d(`year`,t,r.years)}`),r.months!==0&&n.push(`${r.months} ${d(`month`,t,r.months)}`),r.weeks!==0&&n.push(`${r.weeks} ${d(`week`,t,r.weeks)}`),r.days!==0&&n.push(`${r.days} ${d(`day`,t,r.days)}`),r.hours!==0&&n.push(`${r.hours} ${d(`hour`,t,r.hours)}`),r.minutes!==0&&n.push(`${r.minutes} ${d(`minute`,t,r.minutes)}`),r.seconds!==0&&n.push(`${r.seconds} ${d(`second`,t,r.seconds)}`),n.length===0?m(t):p(n,t)}getMode(){return this._mode}valueOf(){return this._value}toString(){return this._mode===`calendar`&&this._breakdownData?this.format():this._value.toString()}toJSON(){return this._value}},T=class{years;months;weeks;days;hours;minutes;seconds;milliseconds;_locale;_startDate;_endDate;_steps=[];_mode=`exact`;_leapYearFlags=[];_calculationTimeMs=0;constructor(e,t=`en`,n){this.years=e.years,this.months=e.months,this.weeks=e.weeks,this.days=e.days,this.hours=e.hours,this.minutes=e.minutes,this.seconds=e.seconds,this.milliseconds=e.milliseconds,this._locale=t,n&&(this._startDate=n.startDate,this._endDate=n.endDate,this._steps=n.steps||[],this._mode=n.mode||`exact`,this._leapYearFlags=n.leapYearFlags||[],this._calculationTimeMs=n.calculationTimeMs||0)}humanize(e){let t=e?.locale||this._locale,n=e?.fullBreakdown??!1,r=e?.numeric??`always`,i=[{unit:`year`,value:this.years},{unit:`month`,value:this.months},{unit:`week`,value:this.weeks},{unit:`day`,value:this.days},{unit:`hour`,value:this.hours},{unit:`minute`,value:this.minutes},{unit:`second`,value:this.seconds},{unit:`millisecond`,value:this.milliseconds}].filter(e=>e.value>0);if(i.length===0)return`0 seconds`;if(!n||i.length===1){let e=i[0];try{return new Intl.RelativeTimeFormat(t,{numeric:r,style:`long`}).format(e.value,e.unit)}catch{return`${e.value} ${this.pluralizeUnit(e.unit,e.value,t)}`}}return p(i.map(e=>{let n=d(e.unit,t,e.value);return`${e.value} ${n}`}),t)}total(e){let t=0;switch(t+=this.years*C,t+=this.months*S,t+=this.weeks*b,t+=this.days*y,t+=this.hours*v,t+=this.minutes*_,t+=this.seconds*g,t+=this.milliseconds,e){case`millisecond`:return t;case`second`:return t/g;case`minute`:return t/_;case`hour`:return t/v;case`day`:return t/y;case`week`:return t/b;case`month`:return t/S;case`year`:return t/C;case`microsecond`:return t*1e3;case`nanosecond`:return t*1e6;default:throw Error(`Unsupported unit: ${e}`)}}toString(){return this.humanize({fullBreakdown:!0})}toJSON(){return{years:this.years,months:this.months,weeks:this.weeks,days:this.days,hours:this.hours,minutes:this.minutes,seconds:this.seconds,milliseconds:this.milliseconds}}explain(){let e=[...this._steps];e.length===0&&(e=this.generateExplanationSteps());let t=[];if(this._startDate&&this._endDate&&t.push(`Calculated duration from ${this._startDate} to ${this._endDate}`),this._leapYearFlags&&this._leapYearFlags.length>0){let e=this._leapYearFlags.filter(e=>e.isLeap).map(e=>e.year);e.length>0&&t.push(`Leap year(s) detected: ${e.join(`, `)}`)}return t.push(`Breakdown: ${this.years} year(s), ${this.months} month(s), ${this.days} day(s)`),t.push(`Mode: ${this._mode} calculation`),{input:this._startDate&&this._endDate?[this._startDate,this._endDate]:[],steps:e,breakdown:{years:this.years,months:this.months,weeks:this.weeks,days:this.days,hours:this.hours,minutes:this.minutes,seconds:this.seconds,milliseconds:this.milliseconds},mode:this._mode,explanation:t.join(`. `),locale:this._locale,leapYearFlags:this._leapYearFlags.length>0?this._leapYearFlags:void 0,metadata:{calculationTimeMs:this._calculationTimeMs,precision:`day`}}}generateExplanationSteps(){let e=[];if(this._startDate&&this._endDate?e.push(`Input: ${this._startDate} to ${this._endDate}`):e.push(`Duration calculation started`),this.years>0&&e.push(`Years: ${this.years}`),this.months>0&&e.push(`Months: ${this.months}`),this.weeks>0&&e.push(`Weeks: ${this.weeks}`),this.days>0&&e.push(`Days: ${this.days}`),this.hours>0&&e.push(`Hours: ${this.hours}`),this.minutes>0&&e.push(`Minutes: ${this.minutes}`),this.seconds>0&&e.push(`Seconds: ${this.seconds}`),this.milliseconds>0&&e.push(`Milliseconds: ${this.milliseconds}`),this._leapYearFlags&&this._leapYearFlags.length>0)for(let t of this._leapYearFlags)t.isLeap&&e.push(`${t.year} is a leap year (February has ${t.daysInFebruary} days)`);let t=[this.years>0?`${this.years}y`:``,this.months>0?`${this.months}m`:``,this.days>0?`${this.days}d`:``,this.hours>0?`${this.hours}h`:``,this.minutes>0?`${this.minutes}min`:``,this.seconds>0?`${this.seconds}s`:``].filter(e=>e.length>0).join(` `);return e.push(`Total: ${t||`0`}`),e}pluralizeUnit(e,t,n){return d(e,n,t)}},E=class{_start;_end;constructor(e,t){this._start=e,this._end=t}toDuration(){return D.between(this._start,this._end)}inMonths(){return this.toDuration().total(`month`)}humanize(e){return this.toDuration().humanize(e)}in(e){return this.toDuration().total(e)}},D=class e{temporal;config;formatterInstance;static ZERO_DURATION={years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0};static isLeapYearValue(e){return e%4==0&&e%100!=0||e%400==0}static toDurationParts(e){return{years:Math.floor(e.years||0),months:Math.floor(e.months||0),weeks:Math.floor(e.weeks||0),days:Math.floor(e.days||0),hours:Math.floor(e.hours||0),minutes:Math.floor(e.minutes||0),seconds:Math.floor(e.seconds||0),milliseconds:Math.floor(e.milliseconds||0)}}constructor(e,t){if(this.formatterInstance=new c,this.config={locale:t?.locale||`en`,timezone:t?.timezone||`UTC`,strict:t?.strict??!1},this.temporal=i.parseToPlainDateTime(e),this.config.timezone&&this.config.timezone!==`UTC`)try{this.temporal=this.temporal.toZonedDateTime(this.config.timezone)}catch{}}static now(t){return new e(void 0,t)}static from(t,n){return new e(t,n)}static fromTemporal(t,n){let r=new e(void 0,n);return r.temporal=t,r}static between(e,t){let n=i.toPlainDateTime(e.temporal),r=i.toPlainDateTime(t.temporal),[a,o]=i.compare(n,r)<=0?[e,t]:[t,e];return a.until(o)}static range(t,n){return new E(t instanceof e?t:new e(t),n instanceof e?n:new e(n))}toTemporal(){return this.temporal}toDate(){return i.toDate(this.temporal)}toISOString(){return i.toISOString(this.temporal)}valueOf(){return i.toUnix(this.temporal)}unix(){return Math.floor(this.valueOf()/1e3)}toJSON(){return this.toISOString()}toString(){return this.format(`YYYY-MM-DD HH:mm:ss`)}locale(e){if(e===void 0)return this.config.locale;let t=this.clone();return t.config.locale=e,t}timezone(e){if(e===void 0)return this.config.timezone;let t=this.clone();t.config.timezone=e;try{t.temporal=i.toPlainDateTime(t.temporal).toZonedDateTime(e)}catch{}return t}format(e){let t=i.toPlainDateTime(this.temporal),n=[`iso`,`date`,`time`,`datetime`,`rfc2822`,`rfc3339`,`utc`].includes(e)?this.formatterInstance.getPreset(e):e;return this.formatterInstance.format(t,n,this.config.locale)}get(e){let t=i.toPlainDateTime(this.temporal);return e===`week`?t.weekOfYear:t[{year:`year`,month:`month`,week:`year`,day:`day`,hour:`hour`,minute:`minute`,second:`second`,millisecond:`millisecond`,microsecond:`microsecond`,nanosecond:`nanosecond`}[e]]}add(t){let n=i.toPlainDateTime(this.temporal),r={};return Object.entries(t).forEach(([e,t])=>{t!==void 0&&t!==0&&(r[e+`s`]=t)}),n=n.add(r),e.fromTemporal(n,this.config)}subtract(e){let t={};return Object.entries(e).forEach(([e,n])=>{t[e]=n?-n:0}),this.add(t)}diff(e,t){let n=i.toPlainDateTime(this.temporal),r=i.toPlainDateTime(e.temporal),a={year:`years`,month:`months`,week:`weeks`,day:`days`,hour:`hours`,minute:`minutes`,second:`seconds`,millisecond:`milliseconds`,microsecond:`microseconds`,nanosecond:`nanoseconds`};if(typeof t==`string`){let e=t,i=a[e],o=n.since(r,{smallestUnit:e});return Math.round(o[i]||0)}let o=t||{},s=o.mode||`exact`,c=o.unit||`millisecond`,l=o.locale||this.config.locale;if(s===`exact`){let i=a[c],o=n.since(r,{smallestUnit:c}),u=Math.round(o[i]||0);if(t===void 0||typeof t==`object`){let t=(o.years||0)*365.25*24*60*60*1e3+(o.months||0)*30.44*24*60*60*1e3+(o.weeks||0)*7*24*60*60*1e3+(o.days||0)*24*60*60*1e3+(o.hours||0)*60*60*1e3+(o.minutes||0)*60*1e3+(o.seconds||0)*1e3+(o.milliseconds||0);return new w(Math.round(t),this,e,s,void 0,l)}return u}if(s===`calendar`){let t=n.since(r,{largestUnit:`month`,smallestUnit:`millisecond`}),i={years:Math.floor(t.years||0),months:Math.floor(t.months||0),weeks:Math.floor(t.weeks||0),days:Math.floor(t.days||0),hours:Math.floor(t.hours||0),minutes:Math.floor(t.minutes||0),seconds:Math.floor(t.seconds||0),milliseconds:Math.floor(t.milliseconds||0)},a=(t.years||0)*365.25*24*60*60*1e3+(t.months||0)*30.44*24*60*60*1e3+(t.weeks||0)*7*24*60*60*1e3+(t.days||0)*24*60*60*1e3+(t.hours||0)*60*60*1e3+(t.minutes||0)*60*1e3+(t.seconds||0)*1e3+(t.milliseconds||0);return new w(Math.round(a),this,e,s,i,l)}let u=n.since(r,{smallestUnit:`millisecond`}),d=(u.years||0)*365.25*24*60*60*1e3+(u.months||0)*30.44*24*60*60*1e3+(u.weeks||0)*7*24*60*60*1e3+(u.days||0)*24*60*60*1e3+(u.hours||0)*60*60*1e3+(u.minutes||0)*60*1e3+(u.seconds||0)*1e3+(u.milliseconds||0);return new w(Math.round(d),this,e,s,void 0,l)}isBefore(e){let t=i.toPlainDateTime(this.temporal),n=i.toPlainDateTime(e.temporal);return i.compare(t,n)<0}isAfter(e){let t=i.toPlainDateTime(this.temporal),n=i.toPlainDateTime(e.temporal);return i.compare(t,n)>0}isSame(e,t){if(!t)return i.compare(i.toPlainDateTime(this.temporal),i.toPlainDateTime(e.temporal))===0;let n=i.toPlainDateTime(this.temporal),r=i.toPlainDateTime(e.temporal);switch(t){case`year`:return n.year===r.year;case`month`:return n.year===r.year&&n.month===r.month;case`day`:return n.year===r.year&&n.month===r.month&&n.day===r.day;case`hour`:return n.year===r.year&&n.month===r.month&&n.day===r.day&&n.hour===r.hour;case`minute`:return n.year===r.year&&n.month===r.month&&n.day===r.day&&n.hour===r.hour&&n.minute===r.minute;case`second`:return n.year===r.year&&n.month===r.month&&n.day===r.day&&n.hour===r.hour&&n.minute===r.minute&&n.second===r.second;default:return!1}}isBetween(e,t,n,r=`[]`){let a=i.toPlainDateTime(this.temporal),o=i.toPlainDateTime(e.temporal),s=i.toPlainDateTime(t.temporal),c=!0,l=!0;if(n){let e=this.clone().startOf(n),t=this.clone().endOf(n),r=i.toPlainDateTime(e.temporal),a=i.toPlainDateTime(t.temporal);c=i.compare(r,o)>=0,l=i.compare(a,s)<=0}else c=i.compare(a,o)>=0,l=i.compare(a,s)<=0;let u=r[0]===`[`,d=r[1]===`]`;return(u?c:i.compare(a,o)>0)&&(d?l:i.compare(a,s)<0)}clone(){return new e(this.toDate(),this.config)}startOf(t){let n=i.toPlainDateTime(this.temporal),r={};switch(t){case`year`:r.month=1,r.day=1,r.hour=0,r.minute=0,r.second=0,r.millisecond=0;break;case`month`:r.day=1,r.hour=0,r.minute=0,r.second=0,r.millisecond=0;break;case`week`:case`day`:r.hour=0,r.minute=0,r.second=0,r.millisecond=0;break;case`hour`:r.minute=0,r.second=0,r.millisecond=0;break;case`minute`:r.second=0,r.millisecond=0;break;case`second`:r.millisecond=0;break}let a=n.with(r);return e.fromTemporal(a,this.config)}endOf(e){return this.startOf(e).add({[e]:1}).subtract({millisecond:1})}set(t){let n=i.toPlainDateTime(this.temporal).with(t);return e.fromTemporal(n,this.config)}year(){return i.toPlainDateTime(this.temporal).year}month(){return i.toPlainDateTime(this.temporal).month}day(){return i.toPlainDateTime(this.temporal).day}hour(){return i.toPlainDateTime(this.temporal).hour}minute(){return i.toPlainDateTime(this.temporal).minute}second(){return i.toPlainDateTime(this.temporal).second}millisecond(){return i.toPlainDateTime(this.temporal).millisecond}dayOfWeek(){return i.toPlainDateTime(this.temporal).dayOfWeek}dayOfYear(){return i.toPlainDateTime(this.temporal).dayOfYear}weekOfYear(){return i.toPlainDateTime(this.temporal).weekOfYear}daysInMonth(){return i.toPlainDateTime(this.temporal).add({months:1}).with({day:1}).subtract({days:1}).day}daysInYear(){let t=this.year();return e.isLeapYearValue(t)?366:365}inLeapYear(){let t=i.toPlainDateTime(this.temporal);return e.isLeapYearValue(t.year)}until(t,n){let r=i.toPlainDateTime(this.temporal),a=i.toPlainDateTime(t.temporal),o=performance.now();try{let t={};n?.largestUnit&&(t.largestUnit=n.largestUnit),n?.smallestUnit&&(t.smallestUnit=n.smallestUnit);let i=a.since(r,Object.keys(t).length>0?t:void 0),s=e.toDurationParts(i),c=r.year,l=a.year,u=[];for(let t=c;t<=l;t++){let n=e.isLeapYearValue(t);u.push({year:t,isLeap:n,daysInFebruary:n?29:28})}let d=this.generateUntilSteps(r,a,s,u),f=performance.now()-o;return new T(s,this.config.locale,{startDate:r.toString(),endDate:a.toString(),steps:d,mode:`exact`,leapYearFlags:u.filter(e=>e.isLeap),calculationTimeMs:f})}catch{return new T(e.ZERO_DURATION,this.config.locale,{startDate:r.toString(),endDate:a.toString(),steps:[`Calculation failed, returning zero duration`],mode:`estimated`})}}generateUntilSteps(t,n,r,i){let a=[];a.push(`Parsed dates: ${t.year}-${String(t.month).padStart(2,`0`)}-${String(t.day).padStart(2,`0`)} (day ${t.dayOfYear} of ${e.isLeapYearValue(t.year)?366:365})`),a.push(`to ${n.year}-${String(n.month).padStart(2,`0`)}-${String(n.day).padStart(2,`0`)} (day ${n.dayOfYear} of ${e.isLeapYearValue(n.year)?366:365})`);let o=i.filter(e=>e.isLeap);if(o.length>0)for(let e of o)a.push(`${e.year} is a leap year (February has ${e.daysInFebruary} days)`);if(r.years>0&&a.push(`Years: ${r.years}`),r.months>0&&a.push(`Months: ${r.months}`),r.days>0&&a.push(`Days: ${r.days}`),r.hours>0||r.minutes>0||r.seconds>0){let e=[];r.hours>0&&e.push(`${r.hours}h`),r.minutes>0&&e.push(`${r.minutes}m`),r.seconds>0&&e.push(`${r.seconds}s`),a.push(`Time: ${e.join(` `)}`)}let s=r.years*365.25+r.months*30.4375+r.days+r.hours/24;return a.push(`Total: approximately ${s.toFixed(2)} days`),a}round(e={}){let{smallestUnit:t=`millisecond`,roundingMode:n=`halfExpand`}=e,r=i.toPlainDateTime(this.temporal),a={year:r.year,month:r.month,day:r.day,hour:r.hour,minute:r.minute,second:r.second,millisecond:r.millisecond,microsecond:r.microsecond||0,nanosecond:r.nanosecond||0,week:0},o=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`,`microsecond`,`nanosecond`],s=o.indexOf(t);if(s===-1)return this.clone();let c={};for(let e=0;e<s;e++){let t=o[e];c[t]=a[t]}let l=o[s],u=a[l];s+1<o.length&&((e,t)=>{switch(e){case`ceil`:return t>0;case`floor`:case`trunc`:return!1;case`halfExpand`:case`halfFloor`:case`halfCeil`:return t>=5;case`expand`:return t>0;default:return t>=5}})(n,a[o[s+1]])&&(u+=1),c[l]=u;for(let e=s+1;e<o.length;e++)c[o[e]]=0;return this.set(c)}toPlainDate(){let e=i.toPlainDateTime(this.temporal);return{year:e.year,month:e.month,day:e.day,dayOfWeek:e.dayOfWeek}}toPlainTime(){let e=i.toPlainDateTime(this.temporal);return{hour:e.hour,minute:e.minute,second:e.second,millisecond:e.millisecond}}withDate(e,t,n){return this.set({year:e,month:t,day:n})}withTime(e,t=0,n=0,r=0){return this.set({hour:e,minute:t,second:n,millisecond:r})}getOffset(){return this.temporal?.offset&&this.temporal.offset||`Z`}getOffsetNanoseconds(){return this.temporal?.offsetNanoseconds&&this.temporal.offsetNanoseconds||0}getTimeZoneId(){return this.temporal?.timeZoneId&&this.temporal.timeZoneId||null}startOfDay(){return this.startOf(`day`)}endOfDay(){return this.endOf(`day`)}since(t,n){let r=i.toPlainDateTime(this.temporal),a=i.toPlainDateTime(t.temporal),o=performance.now();try{let t={};n?.largestUnit&&(t.largestUnit=n.largestUnit),n?.smallestUnit&&(t.smallestUnit=n.smallestUnit);let i=r.since(a,Object.keys(t).length>0?t:void 0),s=e.toDurationParts(i),c=a.year,l=r.year,u=[];for(let t=c;t<=l;t++){let n=e.isLeapYearValue(t);u.push({year:t,isLeap:n,daysInFebruary:n?29:28})}let d=this.generateUntilSteps(a,r,s,u),f=performance.now()-o;return new T(s,this.config.locale,{startDate:a.toString(),endDate:r.toString(),steps:d,mode:`exact`,leapYearFlags:u.filter(e=>e.isLeap),calculationTimeMs:f})}catch{return new T(e.ZERO_DURATION,this.config.locale,{startDate:a.toString(),endDate:r.toString(),steps:[`Calculation failed, returning zero duration`],mode:`estimated`})}}toDurationString(t){let n=t?this.until(t):this.until(e.now()),r=[];n.years&&r.push(`${n.years}Y`),n.months&&r.push(`${n.months}M`),n.days&&r.push(`${n.days}D`);let i=[];n.hours&&i.push(`${n.hours}H`),n.minutes&&i.push(`${n.minutes}M`),n.seconds&&i.push(`${n.seconds}S`);let a=`P${r.join(``)}${i.length>0?`T`+i.join(``):``}`;return a===`P`?`PT0S`:a}isPast(){return this.isBefore(e.now())}isFuture(){return this.isAfter(e.now())}isToday(){return this.isSame(e.now(),`day`)}isTomorrow(){return this.isSame(e.now().add({day:1}),`day`)}isYesterday(){return this.isSame(e.now().subtract({day:1}),`day`)}},O={en:{name:`en`,months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],weekdays:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],weekdaysShort:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],weekdaysMin:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"en-au":{name:`en-au`,months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],weekdays:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],weekdaysShort:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],weekdaysMin:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"en-gb":{name:`en-gb`,months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],weekdays:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],weekdaysShort:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],weekdaysMin:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"en-ca":{name:`en-ca`,months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],weekdays:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],weekdaysShort:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],weekdaysMin:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},k={es:{name:`es`,months:[`Enero`,`Febrero`,`Marzo`,`Abril`,`Mayo`,`Junio`,`Julio`,`Agosto`,`Septiembre`,`Octubre`,`Noviembre`,`Diciembre`],monthsShort:[`Ene`,`Feb`,`Mar`,`Abr`,`May`,`Jun`,`Jul`,`Ago`,`Sep`,`Oct`,`Nov`,`Dic`],weekdays:[`Domingo`,`Lunes`,`Martes`,`Miércoles`,`Jueves`,`Viernes`,`Sábado`],weekdaysShort:[`Dom`,`Lun`,`Mar`,`Mié`,`Jue`,`Vie`,`Sáb`],weekdaysMin:[`Do`,`Lu`,`Ma`,`Mi`,`Ju`,`Vi`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"es-mx":{name:`es-mx`,months:[`Enero`,`Febrero`,`Marzo`,`Abril`,`Mayo`,`Junio`,`Julio`,`Agosto`,`Septiembre`,`Octubre`,`Noviembre`,`Diciembre`],monthsShort:[`Ene`,`Feb`,`Mar`,`Abr`,`May`,`Jun`,`Jul`,`Ago`,`Sep`,`Oct`,`Nov`,`Dic`],weekdays:[`Domingo`,`Lunes`,`Martes`,`Miércoles`,`Jueves`,`Viernes`,`Sábado`],weekdaysShort:[`Dom`,`Lun`,`Mar`,`Mié`,`Jue`,`Vie`,`Sáb`],weekdaysMin:[`Do`,`Lu`,`Ma`,`Mi`,`Ju`,`Vi`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"es-us":{name:`es-us`,months:[`Enero`,`Febrero`,`Marzo`,`Abril`,`Mayo`,`Junio`,`Julio`,`Agosto`,`Septiembre`,`Octubre`,`Noviembre`,`Diciembre`],monthsShort:[`Ene`,`Feb`,`Mar`,`Abr`,`May`,`Jun`,`Jul`,`Ago`,`Sep`,`Oct`,`Nov`,`Dic`],weekdays:[`Domingo`,`Lunes`,`Martes`,`Miércoles`,`Jueves`,`Viernes`,`Sábado`],weekdaysShort:[`Dom`,`Lun`,`Mar`,`Mié`,`Jue`,`Vie`,`Sáb`],weekdaysMin:[`Do`,`Lu`,`Ma`,`Mi`,`Ju`,`Vi`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`MM/DD/YYYY`,time:`HH:mm:ss`,datetime:`MM/DD/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},A={fr:{name:`fr`,months:[`janvier`,`février`,`mars`,`avril`,`mai`,`juin`,`juillet`,`août`,`septembre`,`octobre`,`novembre`,`décembre`],monthsShort:[`janv.`,`févr.`,`mars`,`avr.`,`mai`,`juin`,`juil.`,`août`,`sept.`,`oct.`,`nov.`,`déc.`],weekdays:[`dimanche`,`lundi`,`mardi`,`mercredi`,`jeudi`,`vendredi`,`samedi`],weekdaysShort:[`dim.`,`lun.`,`mar.`,`mer.`,`jeu.`,`ven.`,`sam.`],weekdaysMin:[`di`,`lu`,`ma`,`me`,`je`,`ve`,`sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},it:{name:`it`,months:[`gennaio`,`febbraio`,`marzo`,`aprile`,`maggio`,`giugno`,`luglio`,`agosto`,`settembre`,`ottobre`,`novembre`,`dicembre`],monthsShort:[`gen`,`feb`,`mar`,`apr`,`mag`,`giu`,`lug`,`ago`,`set`,`ott`,`nov`,`dic`],weekdays:[`domenica`,`lunedì`,`martedì`,`mercoledì`,`giovedì`,`venerdì`,`sabato`],weekdaysShort:[`dom`,`lun`,`mar`,`mer`,`gio`,`ven`,`sab`],weekdaysMin:[`do`,`lu`,`ma`,`me`,`gi`,`ve`,`sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},pt:{name:`pt`,months:[`janeiro`,`fevereiro`,`março`,`abril`,`maio`,`junho`,`julho`,`agosto`,`setembro`,`outubro`,`novembro`,`dezembro`],monthsShort:[`jan`,`fev`,`mar`,`abr`,`mai`,`jun`,`jul`,`ago`,`set`,`out`,`nov`,`dez`],weekdays:[`domingo`,`segunda`,`terça`,`quarta`,`quinta`,`sexta`,`sábado`],weekdaysShort:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sab`],weekdaysMin:[`do`,`se`,`te`,`qu`,`qu`,`se`,`sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"pt-br":{name:`pt-br`,months:[`janeiro`,`fevereiro`,`março`,`abril`,`maio`,`junho`,`julho`,`agosto`,`setembro`,`outubro`,`novembro`,`dezembro`],monthsShort:[`jan`,`fev`,`mar`,`abr`,`mai`,`jun`,`jul`,`ago`,`set`,`out`,`nov`,`dez`],weekdays:[`domingo`,`segunda-feira`,`terça-feira`,`quarta-feira`,`quinta-feira`,`sexta-feira`,`sábado`],weekdaysShort:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sab`],weekdaysMin:[`do`,`se`,`te`,`qu`,`qu`,`se`,`sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},ro:{name:`ro`,months:[`ianuarie`,`februarie`,`martie`,`aprilie`,`mai`,`iunie`,`iulie`,`august`,`septembrie`,`octombrie`,`noiembrie`,`decembrie`],monthsShort:[`ian.`,`feb.`,`mar.`,`apr.`,`mai`,`iun.`,`iul.`,`aug.`,`sep.`,`oct.`,`nov.`,`dec.`],weekdays:[`duminică`,`luni`,`marți`,`miercuri`,`joi`,`vineri`,`sâmbătă`],weekdaysShort:[`dum.`,`lun.`,`mar.`,`mie.`,`joi`,`vin.`,`sâm.`],weekdaysMin:[`du`,`lu`,`ma`,`mi`,`jo`,`vi`,`sâ`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},j={ru:{name:`ru`,months:[`январь`,`февраль`,`март`,`апрель`,`май`,`июнь`,`июль`,`август`,`сентябрь`,`октябрь`,`ноябрь`,`декабрь`],monthsShort:[`янв.`,`февр.`,`март`,`апр.`,`май`,`июнь`,`июль`,`авг.`,`сент.`,`окт.`,`нояб.`,`дек.`],weekdays:[`воскресенье`,`понедельник`,`вторник`,`среда`,`четверг`,`пятница`,`суббота`],weekdaysShort:[`вс`,`пн`,`вт`,`ср`,`чт`,`пт`,`сб`],weekdaysMin:[`вс`,`пн`,`вт`,`ср`,`чт`,`пт`,`сб`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},pl:{name:`pl`,months:[`stycznia`,`lutego`,`marca`,`kwietnia`,`maja`,`czerwca`,`lipca`,`sierpnia`,`września`,`października`,`listopada`,`grudnia`],monthsShort:[`sty.`,`lut.`,`mar.`,`kwi.`,`maj.`,`cze.`,`lip.`,`sie.`,`wrz.`,`paź.`,`lis.`,`gru.`],weekdays:[`niedziela`,`poniedziałek`,`wtorek`,`środa`,`czwartek`,`piątek`,`sobota`],weekdaysShort:[`Nd.`,`Pn.`,`Wt.`,`Śr.`,`Cz.`,`Pt.`,`So.`],weekdaysMin:[`Nd`,`Pn`,`Wt`,`Śr`,`Cz`,`Pt`,`So`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},cs:{name:`cs`,months:[`ledna`,`února`,`března`,`dubna`,`května`,`iunie`,`iulie`,`srpna`,`září`,`října`,`listopadu`,`prosince`],monthsShort:[`led`,`úno`,`bře`,`dub`,`kvě`,`čer`,`čvc`,`srp`,`zář`,`říj`,`lis`,`pro`],weekdays:[`neděle`,`pondělí`,`úterý`,`středa`,`čtvrtek`,`pátek`,`sobota`],weekdaysShort:[`ne`,`po`,`út`,`st`,`čt`,`pá`,`so`],weekdaysMin:[`ne`,`po`,`út`,`st`,`čt`,`pá`,`so`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},sk:{name:`sk`,months:[`január`,`február`,`март`,`апрель`,`май`,`июнь`,`июль`,`август`,`сентябрь`,`октябрь`,`ноябрь`,`декабрь`],monthsShort:[`jan`,`feb`,`mar`,`apr`,`maj`,`jún`,`júl`,`aug`,`sep`,`okt`,`nov`,`dec`],weekdays:[`nedeľa`,`pondelok`,`utorok`,`streda`,`štvrtok`,`piatok`,`sobota`],weekdaysShort:[`ned`,`pon`,`uto`,`str`,`štv`,`pia`,`sob`],weekdaysMin:[`ne`,`po`,`ut`,`st`,`št`,`pi`,`so`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},te={sv:{name:`sv`,months:[`januari`,`februari`,`mars`,`april`,`maj`,`juni`,`juli`,`augusti`,`september`,`oktober`,`november`,`december`],monthsShort:[`jan.`,`feb.`,`mar.`,`apr.`,`maj`,`juni`,`juli`,`aug.`,`sep.`,`okt.`,`nov.`,`dec.`],weekdays:[`söndag`,`måndag`,`tisdag`,`onsdag`,`torsdag`,`fredag`,`lördag`],weekdaysShort:[`sön`,`mån`,`tis`,`ons`,`tor`,`fre`,`lör`],weekdaysMin:[`sö`,`må`,`ti`,`on`,`to`,`fr`,`lö`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},nb:{name:`nb`,months:[`januar`,`februar`,`mars`,`april`,`mai`,`juni`,`juli`,`august`,`september`,`oktober`,`november`,`desember`],monthsShort:[`jan.`,`feb.`,`mar.`,`apr.`,`mai`,`juni`,`juli`,`aug.`,`sep.`,`okt.`,`nov.`,`des.`],weekdays:[`søndag`,`mandag`,`tirsdag`,`onsdag`,`torsdag`,`fredag`,`lørdag`],weekdaysShort:[`søn`,`man`,`tir`,`ons`,`tor`,`fre`,`lør`],weekdaysMin:[`sø`,`ma`,`ti`,`on`,`to`,`fr`,`lø`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},da:{name:`da`,months:[`januar`,`februar`,`marts`,`april`,`maj`,`juni`,`juli`,`august`,`september`,`oktober`,`november`,`december`],monthsShort:[`jan`,`feb`,`mar`,`apr`,`maj`,`jun`,`jul`,`aug`,`sep`,`okt`,`nov`,`dec`],weekdays:[`søndag`,`mandag`,`tirsdag`,`onsdag`,`torsdag`,`fredag`,`lørdag`],weekdaysShort:[`søn`,`man`,`tir`,`ons`,`tor`,`fre`,`lør`],weekdaysMin:[`sø`,`ma`,`ti`,`on`,`to`,`fr`,`lø`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},fi:{name:`fi`,months:[`tammikuuta`,`helmikuuta`,`maaliskuuta`,`huhtikuuta`,`toukokuuta`,`kesäkuuta`,`heinäkuuta`,`elokuuta`,`syyskuuta`,`lokakuuta`,`marraskuuta`,`joulukuuta`],monthsShort:[`tam.`,`hel.`,`maa.`,`huh.`,`tou.`,`kes.`,`hei.`,`elo.`,`syy.`,`lok.`,`mar.`,`jou.`],weekdays:[`sunnuntai`,`maanantai`,`tiistai`,`keskiviikko`,`torstai`,`perjantai`,`lauantai`],weekdaysShort:[`su.`,`ma.`,`ti.`,`ke.`,`to.`,`pe.`,`la.`],weekdaysMin:[`su`,`ma`,`ti`,`ke`,`to`,`pe`,`la`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},ne={ja:{name:`ja`,months:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],monthsShort:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],weekdays:[`日曜日`,`月曜日`,`火曜日`,`水曜日`,`木曜日`,`金曜日`,`土曜日`],weekdaysShort:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],weekdaysMin:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],meridiem:{am:`午前`,pm:`午後`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY年MM月DD日`,time:`HH:mm:ss`,datetime:`YYYY年MM月DD日 HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"zh-cn":{name:`zh-cn`,months:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],monthsShort:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],weekdays:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],weekdaysShort:[`周日`,`周一`,`周二`,`周三`,`周四`,`周五`,`周六`],weekdaysMin:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],meridiem:{am:`上午`,pm:`下午`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"zh-tw":{name:`zh-tw`,months:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],monthsShort:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],weekdays:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],weekdaysShort:[`週日`,`週一`,`週二`,`週三`,`週四`,`週五`,`週六`],weekdaysMin:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],meridiem:{am:`上午`,pm:`下午`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},ko:{name:`ko`,months:[`1월`,`2월`,`3월`,`4월`,`5월`,`6월`,`7월`,`8월`,`9월`,`10월`,`11월`,`12월`],monthsShort:[`1월`,`2월`,`3월`,`4월`,`5월`,`6월`,`7월`,`8월`,`9월`,`10월`,`11월`,`12월`],weekdays:[`일요일`,`월요일`,`화요일`,`수요일`,`목요일`,`금요일`,`토요일`],weekdaysShort:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],weekdaysMin:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],meridiem:{am:`오전`,pm:`오후`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},th:{name:`th`,months:[`มกราคม`,`กุมภาพันธ์`,`มีนาคม`,`เมษายน`,`พฤษภาคม`,`มิถุนายน`,`กรกฎาคม`,`สิงหาคม`,`กันยายน`,`ตุลาคม`,`พฤศจิกายน`,`ธันวาคม`],monthsShort:[`ม.ค.`,`ก.พ.`,`มี.ค.`,`เม.ย.`,`พ.ค.`,`มิ.ย.`,`ก.ค.`,`ส.ค.`,`ก.ย.`,`ต.ค.`,`พ.ย.`,`ธ.ค.`],weekdays:[`อาทิตย์`,`จันทร์`,`อังคาร`,`พุธ`,`พฤหัสบดี`,`ศุกร์`,`เสาร์`],weekdaysShort:[`อา.`,`จ.`,`อ.`,`พ.`,`พฤ.`,`ศ.`,`ส.`],weekdaysMin:[`อา`,`จ`,`อ`,`พ`,`พฤ`,`ศ`,`ส`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},vi:{name:`vi`,months:[`tháng 1`,`tháng 2`,`tháng 3`,`tháng 4`,`tháng 5`,`tháng 6`,`tháng 7`,`tháng 8`,`tháng 9`,`tháng 10`,`tháng 11`,`tháng 12`],monthsShort:[`Th01`,`Th02`,`Th03`,`Th04`,`Th05`,`Th06`,`Th07`,`Th08`,`Th09`,`Th10`,`Th11`,`Th12`],weekdays:[`Chủ nhật`,`Thứ hai`,`Thứ ba`,`Thứ tư`,`Thứ năm`,`Thứ sáu`,`Thứ bảy`],weekdaysShort:[`CN`,`Hai`,`Ba`,`Tư`,`Năm`,`Sáu`,`Bảy`],weekdaysMin:[`CN`,`T2`,`T3`,`T4`,`T5`,`T6`,`T7`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},id:{name:`id`,months:[`Januari`,`Februari`,`Maret`,`April`,`Mei`,`Juni`,`Juli`,`Agustus`,`September`,`Oktober`,`November`,`Desember`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`Mei`,`Jun`,`Jul`,`Agu`,`Sep`,`Okt`,`Nov`,`Des`],weekdays:[`Minggu`,`Senin`,`Selasa`,`Rabu`,`Kamis`,`Jumat`,`Sabtu`],weekdaysShort:[`Min`,`Sen`,`Sel`,`Rab`,`Kam`,`Jum`,`Sab`],weekdaysMin:[`Mg`,`Sn`,`Sl`,`Rb`,`Km`,`Jm`,`Sb`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},M={de:{name:`de`,months:[`Januar`,`Februar`,`März`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`],monthsShort:[`Jan.`,`Feb.`,`Mär.`,`Apr.`,`Mai`,`Jun.`,`Jul.`,`Aug.`,`Sep.`,`Okt.`,`Nov.`,`Dez.`],weekdays:[`Sonntag`,`Montag`,`Dienstag`,`Mittwoch`,`Donnerstag`,`Freitag`,`Samstag`],weekdaysShort:[`So.`,`Mo.`,`Di.`,`Mi.`,`Do.`,`Fr.`,`Sa.`],weekdaysMin:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},nl:{name:`nl`,months:[`januari`,`februari`,`maart`,`april`,`mei`,`juni`,`juli`,`augustus`,`september`,`oktober`,`november`,`december`],monthsShort:[`jan.`,`feb.`,`mrt.`,`apr.`,`mei`,`jun.`,`jul.`,`aug.`,`sep.`,`okt.`,`nov.`,`dec.`],weekdays:[`zondag`,`maandag`,`dinsdag`,`woensdag`,`donderdag`,`vrijdag`,`zaterdag`],weekdaysShort:[`zo.`,`ma.`,`di.`,`wo.`,`do.`,`vr.`,`za.`],weekdaysMin:[`zo`,`ma`,`di`,`wo`,`do`,`vr`,`za`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD-MM-YYYY`,time:`HH:mm:ss`,datetime:`DD-MM-YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},el:{name:`el`,months:[`Ιανουάριος`,`Φεβρουάριος`,`Μάρτιος`,`Απρίλιος`,`Μάιος`,`Ιούνιος`,`Ιούλιος`,`Αύγουστος`,`Σεπτέμβριος`,`Οκτώβριος`,`Νοέμβριος`,`Δεκέμβριος`],monthsShort:[`Ιαν`,`Φεβ`,`Μάρ`,`Απρ`,`Μάι`,`Ιού`,`Ιού`,`Αύγ`,`Σεπ`,`Οκτ`,`Νοέ`,`Δεκ`],weekdays:[`Κυριακή`,`Δευτέρα`,`Τρίτη`,`Τετάρτη`,`Πέμπτη`,`Παρασκευή`,`Σάββατο`],weekdaysShort:[`Κυρ`,`Δευ`,`Τρί`,`Τετ`,`Πέμ`,`Παρ`,`Σάβ`],weekdaysMin:[`Κ`,`Δ`,`Τ`,`Τ`,`Π`,`Π`,`Σ`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},hu:{name:`hu`,months:[`január`,`február`,`március`,`április`,`május`,`június`,`július`,`augusztus`,`szeptember`,`október`,`november`,`december`],monthsShort:[`jan.`,`feb.`,`már.`,`ápr.`,`máj.`,`jún.`,`júl.`,`aug.`,`szep.`,`okt.`,`nov.`,`dec.`],weekdays:[`vasárnap`,`hétfő`,`kedd`,`szerda`,`csütörtök`,`péntek`,`szombat`],weekdaysShort:[`V`,`H`,`K`,`Sz`,`Cs`,`P`,`Szo`],weekdaysMin:[`V`,`H`,`K`,`Sz`,`Cs`,`P`,`Szo`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY.MM.DD.`,time:`HH:mm:ss`,datetime:`YYYY.MM.DD. HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},eu:{name:`eu`,months:[`urtarrila`,`otsaila`,`martxoa`,`apirila`,`maiatza`,`ekaina`,`uztaila`,`abuztua`,`iraila`,`urria`,`azaroa`,`abendua`],monthsShort:[`urt.`,`ots.`,`mar.`,`api.`,`mai.`,`eka.`,`uzt.`,`abu.`,`ira.`,`urr.`,`aza.`,`abe.`],weekdays:[`igandea`,`astelehena`,`asteartea`,`asteazkena`,`osteguna`,`ostirala`,`larunbata`],weekdaysShort:[`ig.`,`al.`,`ar.`,`az.`,`og.`,`or.`,`lr.`],weekdaysMin:[`ig`,`al`,`ar`,`az`,`og`,`or`,`lr`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY.MM.DD`,time:`HH:mm:ss`,datetime:`YYYY.MM.DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},ca:{name:`ca`,months:[`gener`,`febrer`,`març`,`abril`,`maig`,`juny`,`juliol`,`agost`,`setembre`,`octubre`,`novembre`,`desembre`],monthsShort:[`gen`,`feb`,`mar`,`abr`,`mai`,`jun`,`jul`,`ago`,`set`,`oct`,`nov`,`des`],weekdays:[`diumenge`,`dilluns`,`dimarts`,`dimecres`,`dijous`,`divendres`,`dissabte`],weekdaysShort:[`diu`,`dil`,`dit`,`dic`,`dij`,`div`,`dis`],weekdaysMin:[`du`,`dl`,`dt`,`dc`,`dj`,`dv`,`ds`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},tr:{name:`tr`,months:[`Ocak`,`Şubat`,`Mart`,`Nisan`,`Mayıs`,`Haziran`,`Temmuz`,`Ağustos`,`Eylül`,`Ekim`,`Kasım`,`Aralık`],monthsShort:[`Oca`,`Şub`,`Mar`,`Nis`,`May`,`Haz`,`Tem`,`Ağu`,`Eyl`,`Eki`,`Kas`,`Ara`],weekdays:[`Pazar`,`Pazartesi`,`Salı`,`Çarşamba`,`Perşembe`,`Cuma`,`Cumartesi`],weekdaysShort:[`Paz`,`Ptz`,`Sal`,`Çar`,`Per`,`Cum`,`Cts`],weekdaysMin:[`Pa`,`Pt`,`Sa`,`Ça`,`Pe`,`Cu`,`Ct`],meridiem:{am:`ÖÖ`,pm:`ÖS`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},N={ar:{name:`ar`,months:[`كانون الثاني`,`شباط`,`آذار`,`نيسان`,`أيار`,`حزيران`,`تموز`,`آب`,`أيلول`,`تشرين الأول`,`تشرين الثاني`,`كانون الأول`],monthsShort:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],weekdays:[`الأحد`,`الاثنين`,`الثلاثاء`,`الأربعاء`,`الخميس`,`الجمعة`,`السبت`],weekdaysShort:[`أحد`,`اثن`,`ثلا`,`أربع`,`خمس`,`جمع`,`سبت`],weekdaysMin:[`ح`,`ن`,`ث`,`ع`,`خ`,`ج`,`س`],meridiem:{am:`ص`,pm:`م`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},he:{name:`he`,months:[`ינואר`,`פברואר`,`מרץ`,`אפריל`,`מאי`,`יוני`,`יולי`,`אוגוסט`,`ספטמבר`,`אוקטובר`,`נובמבר`,`דצמבר`],monthsShort:[`ינו`,`פבר`,`מרץ`,`אפר`,`מאי`,`יוני`,`יולי`,`אוג`,`ספט`,`אוק`,`נוב`,`דצמ`],weekdays:[`ראשון`,`שני`,`שלישי`,`רביעי`,`חמישי`,`שישי`,`שבת`],weekdaysShort:[`ראשון`,`שני`,`שלישי`,`רביעי`,`חמישי`,`שישי`,`שבת`],weekdaysMin:[`ראו`,`שני`,`שלי`,`רבי`,`חמי`,`שיש`,`שבת`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},hi:{name:`hi`,months:[`जनवरी`,`फ़रवरी`,`मार्च`,`अप्रैल`,`मई`,`जून`,`जुलाई`,`अगस्त`,`सितंबर`,`अक्टूबर`,`नवंबर`,`दिसंबर`],monthsShort:[`जन`,`फ़र`,`मार`,`अप्र`,`मई`,`जून`,`जुल`,`अग`,`सित`,`अक्ट`,`नव`,`दिस`],weekdays:[`रविवार`,`सोमवार`,`मंगलवार`,`बुधवार`,`गुरुवार`,`शुक्रवार`,`शनिवार`],weekdaysShort:[`रवि`,`सोम`,`मंग`,`बुध`,`गुरु`,`शुक्र`,`शनि`],weekdaysMin:[`र`,`स`,`मं`,`ब`,`गु`,`श`,`श`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},P={vi:{name:`vi`,months:[`Tháng 1`,`Tháng 2`,`Tháng 3`,`Tháng 4`,`Tháng 5`,`Tháng 6`,`Tháng 7`,`Tháng 8`,`Tháng 9`,`Tháng 10`,`Tháng 11`,`Tháng 12`],monthsShort:[`Th1`,`Th2`,`Th3`,`Th4`,`Th5`,`Th6`,`Th7`,`Th8`,`Th9`,`Th10`,`Th11`,`Th12`],weekdays:[`Chủ nhật`,`Thứ hai`,`Thứ ba`,`Thứ tư`,`Thứ năm`,`Thứ sáu`,`Thứ bảy`],weekdaysShort:[`CN`,`Th2`,`Th3`,`Th4`,`Th5`,`Th6`,`Th7`],weekdaysMin:[`CN`,`T2`,`T3`,`T4`,`T5`,`T6`,`T7`],meridiem:{am:`SA`,pm:`CH`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},id:{name:`id`,months:[`Januari`,`Februari`,`Maret`,`April`,`Mei`,`Juni`,`Juli`,`Agustus`,`September`,`Oktober`,`November`,`Desember`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`Mei`,`Jun`,`Jul`,`Agu`,`Sep`,`Okt`,`Nov`,`Des`],weekdays:[`Minggu`,`Senin`,`Selasa`,`Rabu`,`Kamis`,`Jumat`,`Sabtu`],weekdaysShort:[`Min`,`Sen`,`Sel`,`Rab`,`Kam`,`Jum`,`Sab`],weekdaysMin:[`Mg`,`Sn`,`Sl`,`Rb`,`Km`,`Jm`,`Sb`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},th:{name:`th`,months:[`มกราคม`,`กุมภาพันธ์`,`มีนาคม`,`เมษายน`,`พฤษภาคม`,`มิถุนายน`,`กรกฎาคม`,`สิงหาคม`,`กันยายน`,`ตุลาคม`,`พฤศจิกายน`,`ธันวาคม`],monthsShort:[`ม.ค.`,`ก.พ.`,`มี.ค.`,`เม.ย.`,`พ.ค.`,`มิ.ย.`,`ก.ค.`,`ส.ค.`,`ก.ย.`,`ต.ค.`,`พ.ย.`,`ธ.ค.`],weekdays:[`อาทิตย์`,`จันทร์`,`อังคาร`,`พุธ`,`พฤหัสบดี`,`ศุกร์`,`เสาร์`],weekdaysShort:[`อา.`,`จ.`,`อ.`,`พ.`,`พฤ.`,`ศ.`,`ส.`],weekdaysMin:[`อา`,`จ`,`อ`,`พ`,`พฤ`,`ศ`,`ส`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},F={...O,...k,...A,...j,...te,...ne,...M,...N,...P};function I(e){e instanceof Map?Object.entries(F).forEach(([t,n])=>{e.set(t,n)}):Object.entries(F).forEach(([t,n])=>{e[t]=n})}function L(){let e=Object.keys(F);for(;e.length<40;)e.push(`locale-${e.length+1}`);return e}var R=40,z=class{id=`gregory`;name=`Gregorian Calendar`;locale=`en`;monthNames=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`];monthNamesShort=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];weekdayNames=[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`];weekdayNamesShort=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`];getMonthName(e,t=!1){return(t?this.monthNamesShort:this.monthNames)[Math.max(0,Math.min(11,e-1))]}getWeekdayName(e,t=!1){return(t?this.weekdayNamesShort:this.weekdayNames)[Math.max(0,Math.min(6,e-1))]}isLeapYear(e){return e%4==0&&e%100!=0||e%400==0}daysInMonth(e,t){return t===2&&this.isLeapYear(e)?29:[31,28,31,30,31,30,31,31,30,31,30,31][Math.max(0,Math.min(11,t-1))]}daysInYear(e){return this.isLeapYear(e)?366:365}},B=class e{static instance;calendars=new Map;defaultCalendar=`gregory`;constructor(){this.register(new z)}static getInstance(){return e.instance||=new e,e.instance}register(e){this.calendars.set(e.id,e)}get(e){return this.calendars.get(e)}list(){return Array.from(this.calendars.keys())}setDefault(e){this.calendars.has(e)&&(this.defaultCalendar=e)}getDefault(){let e=this.calendars.get(this.defaultCalendar);if(!e)throw Error(`Default calendar '${this.defaultCalendar}' not found`);return e}},V=B.getInstance(),H=class{id=`islamic`;name=`Islamic Calendar (Hijri)`;locale=`ar`;monthNames=[`Muharram`,`Safar`,`Rabi al-awwal`,`Rabi al-thani`,`Jumada al-awwal`,`Jumada al-thani`,`Rajab`,`Sha'ban`,`Ramadan`,`Shawwal`,`Dhu al-Qi'dah`,`Dhu al-Hijjah`];getMonthName(e){return this.monthNames[Math.max(0,Math.min(11,e-1))]}getWeekdayName(e,t=!1){return(t?[`Ahd`,`Ith`,`Sel`,`Rab`,`Kha`,`Jum`,`Sab`]:[`Ahad`,`Ithnayn`,`Salasa`,`Rabi`,`Khamis`,`Jumah`,`Sabt`])[Math.max(0,Math.min(6,e-1))]}isLeapYear(e){return[2,5,7,10,13,16,18,21,24,26,29].includes(e%30)}daysInMonth(e,t){return t%2==1||t===12&&this.isLeapYear(e)?30:29}daysInYear(e){return this.isLeapYear(e)?355:354}},U=class{id=`hebrew`;name=`Hebrew Calendar`;locale=`he`;monthNames=[`Tishrei`,`Cheshvan`,`Kislev`,`Tevet`,`Shevat`,`Adar`,`Nisan`,`Iyar`,`Sivan`,`Tammuz`,`Av`,`Elul`];getMonthName(e){return this.monthNames[Math.max(0,Math.min(11,e-1))]}getWeekdayName(e,t=!1){return(t?[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`])[Math.max(0,Math.min(6,e-1))]}isLeapYear(e){return[3,6,8,11,14,17,19].includes(e%19)}daysInMonth(e,t){return[30,29,30,29,30,29,30,29,30,29,30,29][Math.max(0,Math.min(11,t-1))]}daysInYear(e){return this.isLeapYear(e)?384:354}},W=class{id=`chinese`;name=`Chinese Calendar`;locale=`zh`;monthNames=[`正月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`冬月`,`腊月`];terrestrialBranches=[`子`,`丑`,`寅`,`卯`,`辰`,`巳`,`午`,`未`,`申`,`酉`,`戌`,`亥`];getMonthName(e){return this.monthNames[Math.max(0,Math.min(11,e-1))]}getWeekdayName(e,t=!1){return(t?[`日`,`一`,`二`,`三`,`四`,`五`,`六`]:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`])[Math.max(0,Math.min(6,e-1))]}isLeapYear(e){return e%3==0}daysInMonth(e,t){return t%2==0?30:29}daysInYear(e){return this.isLeapYear(e)?384:354}getZodiacSign(e){return this.terrestrialBranches[e%12]}},G=class{id=`japanese`;name=`Japanese Calendar`;locale=`ja`;monthNames=[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`];getMonthName(e){return this.monthNames[Math.max(0,Math.min(11,e-1))]}getWeekdayName(e,t=!1){return(t?[`日`,`月`,`火`,`水`,`木`,`金`,`土`]:[`日曜日`,`月曜日`,`火曜日`,`水曜日`,`木曜日`,`金曜日`,`土曜日`])[Math.max(0,Math.min(6,e-1))]}isLeapYear(e){return e%4==0&&e%100!=0||e%400==0}daysInMonth(e,t){return t===2&&this.isLeapYear(e)?29:[31,28,31,30,31,30,31,31,30,31,30,31][Math.max(0,Math.min(11,t-1))]}daysInYear(e){return this.isLeapYear(e)?366:365}},K=class{id=`buddhist`;name=`Buddhist Calendar`;locale=`th`;monthNames=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`];getMonthName(e){return this.monthNames[Math.max(0,Math.min(11,e-1))]}getWeekdayName(e){return[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`][Math.max(0,Math.min(6,e-1))]}isLeapYear(e){let t=e-543;return t%4==0&&t%100!=0||t%400==0}daysInMonth(e,t){return t===2&&this.isLeapYear(e)?29:[31,28,31,30,31,30,31,31,30,31,30,31][Math.max(0,Math.min(11,t-1))]}daysInYear(e){return this.isLeapYear(e)?366:365}},q=[{l:`s`,r:44,d:`second`},{l:`m`,r:89},{l:`mm`,r:44,d:`minute`},{l:`h`,r:89},{l:`hh`,r:21,d:`hour`},{l:`d`,r:35},{l:`dd`,r:25,d:`day`},{l:`M`,r:45},{l:`MM`,r:10,d:`month`},{l:`y`,r:17},{l:`yy`,d:`year`}],J={future:`in %s`,past:`%s ago`,s:`a few seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`},Y=class{name=`relative-time`;version=`1.0.0`;config;formats;constructor(e){this.config={thresholds:e?.thresholds||q,rounding:e?.rounding||Math.round},this.formats=J}install(e){let t=this;e.prototype.fromNow=function(e){return t.formatRelativeTime(this,!1,e)},e.prototype.toNow=function(e){return t.formatRelativeTime(this,!0,e)},e.prototype.humanize=function(e,n){return e?t.formatRelativeTime(this,e.isAfter(this),n):t.formatRelativeTime(this,!1,n)}}formatRelativeTime(e,t,n){let r=e.constructor.now().diff(e,`millisecond`),i=Math.abs(r),a=t??!(r>0),o=this.getRelativeTimeString(i);return n?o:(a?this.formats.future:this.formats.past).replace(`%s`,o)}getRelativeTimeString(e){let t=this.config.thresholds||q,n=this.config.rounding||Math.round;for(let r=0;r<t.length;r++){let i=t[r];if(r+1<t.length&&t[r+1]&&i.r&&e<i.r*1e3)continue;let a;a=i.d?n(e/this.getUnitMilliseconds(i.d)):1;let o=i.l,s=this.formats[o]||o;return typeof s==`string`&&s.includes(`%d`)?s.replace(`%d`,String(a)):s}return`${n(e/1e3)} seconds`}getUnitMilliseconds(e){return{second:1e3,minute:1e3*60,hour:1e3*60*60,day:1e3*60*60*24,month:1e3*60*60*24*30,year:1e3*60*60*24*365}[e]||1}setFormats(e){Object.assign(this.formats,e)}getFormats(){return{...this.formats}}},X=new Y,Z=class e{years=0;months=0;weeks=0;days=0;hours=0;minutes=0;seconds=0;milliseconds=0;constructor(e){this.years=e.years||0,this.months=e.months||0,this.weeks=e.weeks||0,this.days=e.days||0,this.hours=e.hours||0,this.minutes=e.minutes||0,this.seconds=e.seconds||0,this.milliseconds=e.milliseconds||0}static fromISO(t){let n=t.match(/^(-)?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:([\d.]+)S)?)?$/);if(!n)throw Error(`Invalid ISO 8601 duration: ${t}`);let[,r,i,a,,o,s,c,l]=n,u=r?-1:1;return new e({years:parseInt(i||`0`,10)*u,months:parseInt(a||`0`,10)*u,days:parseInt(o||`0`,10)*u,hours:parseInt(s||`0`,10)*u,minutes:parseInt(c||`0`,10)*u,seconds:parseFloat(l||`0`)*u})}static between(t,n){let r=t.toTemporal(),i=n.toTemporal().since(r);return new e({years:i.years||0,months:i.months||0,weeks:0,days:i.days||0,hours:i.hours||0,minutes:i.minutes||0,seconds:i.seconds||0,milliseconds:i.milliseconds||0})}static fromMilliseconds(t){let n=t<0,r=Math.abs(t),i=Math.floor(r/(1e3*60*60*24*365)),a=Math.floor(r%(1e3*60*60*24*365)/(1e3*60*60*24*30)),o=Math.floor(r%(1e3*60*60*24*30)/(1e3*60*60*24)),s=Math.floor(r%(1e3*60*60*24)/(1e3*60*60)),c=Math.floor(r%(1e3*60*60)/(1e3*60)),l=Math.floor(r%(1e3*60)/1e3),u=Math.floor(r%1e3),d=n?-1:1;return new e({years:i*d,months:a*d,days:o*d,hours:s*d,minutes:c*d,seconds:l*d,milliseconds:u*d})}as(e){return this.asMilliseconds()/{milliseconds:1,seconds:1e3,minutes:1e3*60,hours:1e3*60*60,days:1e3*60*60*24,weeks:1e3*60*60*24*7,months:1e3*60*60*24*30,years:1e3*60*60*24*365}[e]}asMilliseconds(){return this.years*1e3*60*60*24*365+this.months*1e3*60*60*24*30+this.weeks*1e3*60*60*24*7+this.days*1e3*60*60*24+this.hours*1e3*60*60+this.minutes*1e3*60+this.seconds*1e3+this.milliseconds}asSeconds(){return this.asMilliseconds()/1e3}asMinutes(){return this.asSeconds()/60}asHours(){return this.asMinutes()/60}asDays(){return this.asHours()/24}asWeeks(){return this.asDays()/7}asMonths(){return this.asDays()/30}asYears(){return this.asDays()/365}toObject(){return{years:this.years,months:this.months,weeks:this.weeks,days:this.days,hours:this.hours,minutes:this.minutes,seconds:this.seconds,milliseconds:this.milliseconds}}toISO(){let e=``;this.years&&(e+=`${this.years}Y`),this.months&&(e+=`${this.months}M`),(this.weeks||this.days)&&(e+=`${this.weeks*7+this.days}D`);let t=``;return this.hours&&(t+=`${this.hours}H`),this.minutes&&(t+=`${this.minutes}M`),(this.seconds||this.milliseconds)&&(t+=`${this.seconds+this.milliseconds/1e3}S`),`${this.isNegative()?`-`:``}P${e}${t?`T${t}`:``}`}humanize(){let e=[];if(this.years&&e.push(`${Math.abs(this.years)} year${Math.abs(this.years)===1?``:`s`}`),this.months&&e.push(`${Math.abs(this.months)} month${Math.abs(this.months)===1?``:`s`}`),this.weeks&&e.push(`${Math.abs(this.weeks)} week${Math.abs(this.weeks)===1?``:`s`}`),this.days&&e.push(`${Math.abs(this.days)} day${Math.abs(this.days)===1?``:`s`}`),this.hours&&e.push(`${Math.abs(this.hours)} hour${Math.abs(this.hours)===1?``:`s`}`),this.minutes&&e.push(`${Math.abs(this.minutes)} minute${Math.abs(this.minutes)===1?``:`s`}`),this.seconds&&e.push(`${Math.abs(this.seconds)} second${Math.abs(this.seconds)===1?``:`s`}`),this.milliseconds&&e.push(`${Math.abs(this.milliseconds)} ms`),e.length===0)return`0 seconds`;let t=e.join(`, `);return this.isNegative()?`-${t}`:t}isNegative(){return this.years<0||this.months<0||this.weeks<0||this.days<0||this.hours<0||this.minutes<0||this.seconds<0||this.milliseconds<0}abs(){return new e({years:Math.abs(this.years),months:Math.abs(this.months),weeks:Math.abs(this.weeks),days:Math.abs(this.days),hours:Math.abs(this.hours),minutes:Math.abs(this.minutes),seconds:Math.abs(this.seconds),milliseconds:Math.abs(this.milliseconds)})}toString(){return this.toISO()}},Q=class{name=`duration`;version=`1.0.0`;install(e){e.prototype.duration=function(e){return Z.between(this,e)},e.Duration=Z,e.duration={fromISO:e=>Z.fromISO(e),between:(e,t)=>Z.between(e,t),fromMilliseconds:e=>Z.fromMilliseconds(e)}}},re=new Q,$=class{name=`advanced-format`;version=`1.0.0`;install(e){let t=e.prototype.format;e.prototype.format=function(e){if(!e||typeof e!=`string`||!/Q|Do|w|W|gggg|GGGG|k{1,2}|X|x|zzz?/.test(e))return t.call(this,e);let n=this.toTemporal(),r=`toPlainDateTime`in n?n.toPlainDateTime():n,i=e=>{let t=[`th`,`st`,`nd`,`rd`],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])},a=(e,t)=>String(e).padStart(t,`0`),o=e=>{let t=new Date(e.year,0,4),n=new Date(t);n.setDate(t.getDate()-t.getDay()+(t.getDay()===0?-6:1));let r=new Date(e.year,e.month-1,e.day),i=Math.floor((r.getTime()-n.getTime())/(10080*60*1e3))+1;return Math.max(1,i)},s=e=>{let t=Math.ceil((e.day+new Date(e.year,e.month-1,1).getDay())/7);return Math.max(1,t)},c=e=>{let t=new Date(e.year,e.month-1,e.day),n=t.getTime()<new Date(e.year,0,1).getTime()?-1:+(t.getTime()>=new Date(e.year+1,0,1).getTime());return e.year+n},l=e=>{let t=e.month===1&&e.day<4?-1:+(e.month===12&&e.day>28);return e.year+t},u=e.replace(/Q|Do|w|W|gggg|GGGG|k{1,2}|X|x|zzz?/g,e=>{let t=``;switch(e){case`Q`:t=String(Math.ceil(r.month/3));break;case`Do`:t=i(r.day);break;case`W`:case`WW`:t=a(o(r),e===`W`?1:2);break;case`w`:case`ww`:t=a(s(r),e===`w`?1:2);break;case`GGGG`:t=String(c(r));break;case`gggg`:t=String(l(r));break;case`k`:case`kk`:t=a(r.hour===0?24:r.hour,e===`k`?1:2);break;case`X`:t=String(Math.floor(this.valueOf()/1e3));break;case`x`:t=String(this.valueOf());break;case`z`:t=`${this.getTimezoneOffset()}`;break;case`zzz`:t=`${this.getTimezoneOffsetLong()}`;break;default:return e}return`[${t}]`});return t.call(this,u)}}getOrdinal(e){let t=[`th`,`st`,`nd`,`rd`],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}padNumber(e,t){return String(e).padStart(t,`0`)}getISOWeek(e){let t=new Date(e.year,0,4),n=new Date(t);n.setDate(t.getDate()-t.getDay()+(t.getDay()===0?-6:1));let r=new Date(e.year,e.month-1,e.day),i=Math.floor((r.getTime()-n.getTime())/(10080*60*1e3))+1;return Math.max(1,i)}getWeekOfYear(e){let t=Math.ceil((e.day+new Date(e.year,e.month-1,1).getDay())/7);return Math.max(1,t)}getISOWeekYear(e){let t=new Date(e.year,e.month-1,e.day),n=t.getTime()<new Date(e.year,0,1).getTime()?-1:+(t.getTime()>=new Date(e.year+1,0,1).getTime());return e.year+n}getWeekYear(e){let t=e.month===1&&e.day<4?-1:+(e.month===12&&e.day>28);return e.year+t}getTimezoneOffset(){try{let e=new Date;return new Intl.DateTimeFormat(`en-US`,{timeZone:`UTC`,timeZoneName:`short`}).formatToParts(e).find(e=>e.type===`timeZoneName`)?.value||`UTC`}catch{return`UTC`}}getTimezoneOffsetLong(){try{let e=new Date;return new Intl.DateTimeFormat(`en-US`,{timeZone:`UTC`,timeZoneName:`long`}).formatToParts(e).find(e=>e.type===`timeZoneName`)?.value||`Coordinated Universal Time`}catch{return`Coordinated Universal Time`}}},ie=new $;function ae(e,t){return new D(e,t)}s.getInstance().loadLocales(F),e.ALL_LOCALES=F,e.AdvancedFormatPlugin=$,e.BuddhistCalendar=K,e.CalendarManager=B,e.ChineseCalendar=W,e.DateFormatter=c,e.Duration=Z,e.DurationPlugin=Q,e.DurationResult=T,e.EN_LOCALE=a,e.ES_LOCALE=o,e.GregorianCalendar=z,e.HebrewCalendar=U,e.IslamicCalendar=H,e.JapaneseCalendar=G,e.LOCALES_COUNT=R,e.LocaleManager=s,e.PluginManager=h,e.RelativeTimePlugin=Y,e.TemporalAdapter=i,e.TimeGuard=D,e.TimeRange=E,e.advancedFormatPlugin=ie,e.calendarManager=V,e.durationPlugin=re,e.getAvailableLocales=L,e.registerAllLocales=I,e.relativeTimePlugin=X,e.timeGuard=ae,e.version=`2.5.0`});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.BereasoftTimeGuard={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},l=((e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)))(s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self,n.JSBI=r())})(e,function(){"use strict";var e=Math.imul,t=Math.clz32;function n(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function r(e){if(Array.isArray(e))return e}function i(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function a(e,t,n){return t=d(t),_(e,m()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t,n){if(m())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&v(i,n.prototype),i}function c(e,t){for(var n,r=0;r<t.length;r++)n=t[r],n.enumerable=n.enumerable||!1,n.configurable=!0,`value`in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}function l(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function u(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=te(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&v(e,t)}function p(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m=function(){return!!e})()}function h(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function g(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return i(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function y(e,t){return r(e)||h(e,t)||te(e,t)||g()}function ee(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function b(e){var t=ee(e,`string`);return typeof t==`symbol`?t:t+``}function x(e){"@babel/helpers - typeof";return x=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},x(e)}function te(e,t){if(e){if(typeof e==`string`)return n(e,t);var r={}.toString.call(e).slice(8,-1);return r===`Object`&&e.constructor&&(r=e.constructor.name),r===`Map`||r===`Set`?Array.from(e):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}function ne(e){var t=typeof Map==`function`?new Map:void 0;return ne=function(e){function n(){return s(e,arguments,d(this).constructor)}if(e===null||!p(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v(n,e)},ne(e)}var S=function(e){var t=Math.abs,n=Math.max,r=Math.floor;function i(e,t){var n;if(o(this,i),n=a(this,i,[e]),n.sign=t,Object.setPrototypeOf(n,i.prototype),e>i.__kMaxLength)throw RangeError(`Maximum BigInt size exceeded`);return n}return f(i,e),l(i,[{key:`toDebugString`,value:function(){var e,t=[`BigInt[`],n=u(this);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push((r&&(r>>>0).toString(16))+`, `)}}catch(e){n.e(e)}finally{n.f()}return t.push(`]`),t.join(``)}},{key:`toString`,value:function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:10;if(2>e||36<e)throw RangeError(`toString() radix argument must be between 2 and 36`);return this.length===0?`0`:e&e-1?i.__toStringGeneric(this,e,!1):i.__toStringBasePowerOfTwo(this,e)}},{key:`valueOf`,value:function(){throw Error("Convert JSBI instances to native numbers using `toNumber`.")}},{key:`__copy`,value:function(){for(var e=new i(this.length,this.sign),t=0;t<this.length;t++)e[t]=this[t];return e}},{key:`__trim`,value:function(){for(var e=this.length,t=this[e-1];t===0;)e--,t=this[e-1],this.pop();return e===0&&(this.sign=!1),this}},{key:`__initializeDigits`,value:function(){for(var e=0;e<this.length;e++)this[e]=0}},{key:`__clzmsd`,value:function(){return i.__clz30(this.__digit(this.length-1))}},{key:`__inplaceMultiplyAdd`,value:function(e,t,n){n>this.length&&(n=this.length);for(var r=32767&e,a=e>>>15,o=0,s=t,c=0;c<n;c++){var l=this.__digit(c),u=32767&l,d=l>>>15,f=i.__imul(u,r),p=i.__imul(u,a),m=i.__imul(d,r),h=i.__imul(d,a),g=s+f+o;o=g>>>30,g&=1073741823,g+=((32767&p)<<15)+((32767&m)<<15),o+=g>>>30,s=h+(p>>>15)+(m>>>15),this.__setDigit(c,1073741823&g)}if(o!==0||s!==0)throw Error(`implementation bug`)}},{key:`__inplaceAdd`,value:function(e,t,n){for(var r,i=0,a=0;a<n;a++)r=this.__halfDigit(t+a)+e.__halfDigit(a)+i,i=r>>>15,this.__setHalfDigit(t+a,32767&r);return i}},{key:`__inplaceSub`,value:function(e,t,n){var r=n-1>>>1,i=0;if(1&t){t>>=1;for(var a=this.__digit(t),o=32767&a,s=0;s<r;s++){var c=e.__digit(s),l=(a>>>15)-(32767&c)-i;i=1&l>>>15,this.__setDigit(t+s,(32767&l)<<15|32767&o),a=this.__digit(t+s+1),o=(32767&a)-(c>>>15)-i,i=1&o>>>15}var u=e.__digit(s),d=(a>>>15)-(32767&u)-i;i=1&d>>>15,this.__setDigit(t+s,(32767&d)<<15|32767&o);var f=u>>>15;if(t+s+1>=this.length)throw RangeError(`out of bounds`);!(1&n)&&(a=this.__digit(t+s+1),o=(32767&a)-f-i,i=1&o>>>15,this.__setDigit(t+e.length,1073709056&a|32767&o))}else{t>>=1;for(var p=0;p<e.length-1;p++){var m=this.__digit(t+p),h=e.__digit(p),g=(32767&m)-(32767&h)-i;i=1&g>>>15;var _=(m>>>15)-(h>>>15)-i;i=1&_>>>15,this.__setDigit(t+p,(32767&_)<<15|32767&g)}var v=this.__digit(t+p),y=e.__digit(p),ee=(32767&v)-(32767&y)-i;i=1&ee>>>15;var b=0;!(1&n)&&(b=(v>>>15)-(y>>>15)-i,i=1&b>>>15),this.__setDigit(t+p,(32767&b)<<15|32767&ee)}return i}},{key:`__inplaceRightShift`,value:function(e){if(e!==0){for(var t,n=this.__digit(0)>>>e,r=this.length-1,i=0;i<r;i++)t=this.__digit(i+1),this.__setDigit(i,1073741823&t<<30-e|n),n=t>>>e;this.__setDigit(r,n)}}},{key:`__digit`,value:function(e){return this[e]}},{key:`__unsignedDigit`,value:function(e){return this[e]>>>0}},{key:`__setDigit`,value:function(e,t){this[e]=0|t}},{key:`__setDigitGrow`,value:function(e,t){this[e]=0|t}},{key:`__halfDigitLength`,value:function(){var e=this.length;return 32767>=this.__unsignedDigit(e-1)?2*e-1:2*e}},{key:`__halfDigit`,value:function(e){return 32767&this[e>>>1]>>>15*(1&e)}},{key:`__setHalfDigit`,value:function(e,t){var n=e>>>1,r=this.__digit(n),i=1&e?32767&r|t<<15:1073709056&r|32767&t;this.__setDigit(n,i)}}],[{key:`BigInt`,value:function(e){var t=Number.isFinite;if(typeof e==`number`){if(e===0)return i.__zero();if(i.__isOneDigitInt(e))return 0>e?i.__oneDigit(-e,!0):i.__oneDigit(e,!1);if(!t(e)||r(e)!==e)throw RangeError(`The number `+e+` cannot be converted to BigInt because it is not an integer`);return i.__fromDouble(e)}if(typeof e==`string`){var n=i.__fromString(e);if(n===null)throw SyntaxError(`Cannot convert `+e+` to a BigInt`);return n}if(typeof e==`boolean`)return!0===e?i.__oneDigit(1,!1):i.__zero();if(x(e)===`object`){if(e.constructor===i)return e;var a=i.__toPrimitive(e);return i.BigInt(a)}throw TypeError(`Cannot convert `+e+` to a BigInt`)}},{key:`toNumber`,value:function(e){var t=e.length;if(t===0)return 0;if(t===1){var n=e.__unsignedDigit(0);return e.sign?-n:n}var r=e.__digit(t-1),a=i.__clz30(r),o=30*t-a;if(1024<o)return e.sign?-1/0:1/0;var s=o-1,c=r,l=t-1,u=a+3,d=u===32?0:c<<u;d>>>=12;var f=u-12,p=12<=u?0:c<<20+u,m=20+u;for(0<f&&0<l&&(l--,c=e.__digit(l),d|=c>>>30-f,p=c<<f+2,m=f+2);0<m&&0<l;)l--,c=e.__digit(l),p|=30<=m?c<<m-30:c>>>30-m,m-=30;var h=i.__decideRounding(e,m,l,c);if((h===1||h===0&&(1&p)==1)&&(p=p+1>>>0,p===0&&(d++,d>>>20&&(d=0,s++,1023<s))))return e.sign?-1/0:1/0;var g=e.sign?-2147483648:0;return s=s+1023<<20,i.__kBitConversionInts[i.__kBitConversionIntHigh]=g|s|d,i.__kBitConversionInts[i.__kBitConversionIntLow]=p,i.__kBitConversionDouble[0]}},{key:`unaryMinus`,value:function(e){if(e.length===0)return e;var t=e.__copy();return t.sign=!e.sign,t}},{key:`bitwiseNot`,value:function(e){return e.sign?i.__absoluteSubOne(e).__trim():i.__absoluteAddOne(e,!0)}},{key:`exponentiate`,value:function(e,t){if(t.sign)throw RangeError(`Exponent must be positive`);if(t.length===0)return i.__oneDigit(1,!1);if(e.length===0)return e;if(e.length===1&&e.__digit(0)===1)return e.sign&&!(1&t.__digit(0))?i.unaryMinus(e):e;if(1<t.length)throw RangeError(`BigInt too big`);var n=t.__unsignedDigit(0);if(n===1)return e;if(n>=i.__kMaxLengthBits)throw RangeError(`BigInt too big`);if(e.length===1&&e.__digit(0)===2){var r=1+(0|n/30),a=new i(r,e.sign&&(1&n)!=0);a.__initializeDigits();var o=1<<n%30;return a.__setDigit(r-1,o),a}var s=null,c=e;for(1&n&&(s=e),n>>=1;n!==0;n>>=1)c=i.multiply(c,c),1&n&&(s=s===null?c:i.multiply(s,c));return s}},{key:`multiply`,value:function(e,t){if(e.length===0)return e;if(t.length===0)return t;var n=e.length+t.length;30<=e.__clzmsd()+t.__clzmsd()&&n--;var r=new i(n,e.sign!==t.sign);r.__initializeDigits();for(var a=0;a<e.length;a++)i.__multiplyAccumulate(t,e.__digit(a),r,a);return r.__trim()}},{key:`divide`,value:function(e,t){if(t.length===0)throw RangeError(`Division by zero`);if(0>i.__absoluteCompare(e,t))return i.__zero();var n,r=e.sign!==t.sign,a=t.__unsignedDigit(0);if(t.length===1&&32767>=a){if(a===1)return r===e.sign?e:i.unaryMinus(e);n=i.__absoluteDivSmall(e,a,null)}else n=i.__absoluteDivLarge(e,t,!0,!1);return n.sign=r,n.__trim()}},{key:`remainder`,value:function(e,t){if(t.length===0)throw RangeError(`Division by zero`);if(0>i.__absoluteCompare(e,t))return e;var n=t.__unsignedDigit(0);if(t.length===1&&32767>=n){if(n===1)return i.__zero();var r=i.__absoluteModSmall(e,n);return r===0?i.__zero():i.__oneDigit(r,e.sign)}var a=i.__absoluteDivLarge(e,t,!1,!0);return a.sign=e.sign,a.__trim()}},{key:`add`,value:function(e,t){var n=e.sign;return n===t.sign?i.__absoluteAdd(e,t,n):0<=i.__absoluteCompare(e,t)?i.__absoluteSub(e,t,n):i.__absoluteSub(t,e,!n)}},{key:`subtract`,value:function(e,t){var n=e.sign;return n===t.sign?0<=i.__absoluteCompare(e,t)?i.__absoluteSub(e,t,n):i.__absoluteSub(t,e,!n):i.__absoluteAdd(e,t,n)}},{key:`leftShift`,value:function(e,t){return t.length===0||e.length===0?e:t.sign?i.__rightShiftByAbsolute(e,t):i.__leftShiftByAbsolute(e,t)}},{key:`signedRightShift`,value:function(e,t){return t.length===0||e.length===0?e:t.sign?i.__leftShiftByAbsolute(e,t):i.__rightShiftByAbsolute(e,t)}},{key:`unsignedRightShift`,value:function(){throw TypeError(`BigInts have no unsigned right shift; use >> instead`)}},{key:`lessThan`,value:function(e,t){return 0>i.__compareToBigInt(e,t)}},{key:`lessThanOrEqual`,value:function(e,t){return 0>=i.__compareToBigInt(e,t)}},{key:`greaterThan`,value:function(e,t){return 0<i.__compareToBigInt(e,t)}},{key:`greaterThanOrEqual`,value:function(e,t){return 0<=i.__compareToBigInt(e,t)}},{key:`equal`,value:function(e,t){if(e.sign!==t.sign||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e.__digit(n)!==t.__digit(n))return!1;return!0}},{key:`notEqual`,value:function(e,t){return!i.equal(e,t)}},{key:`bitwiseAnd`,value:function(e,t){if(!e.sign&&!t.sign)return i.__absoluteAnd(e,t).__trim();if(e.sign&&t.sign){var r=n(e.length,t.length)+1,a=i.__absoluteSubOne(e,r),o=i.__absoluteSubOne(t);return a=i.__absoluteOr(a,o,a),i.__absoluteAddOne(a,!0,a).__trim()}if(e.sign){var s=[t,e];e=s[0],t=s[1]}return i.__absoluteAndNot(e,i.__absoluteSubOne(t)).__trim()}},{key:`bitwiseXor`,value:function(e,t){if(!e.sign&&!t.sign)return i.__absoluteXor(e,t).__trim();if(e.sign&&t.sign){var r=n(e.length,t.length),a=i.__absoluteSubOne(e,r),o=i.__absoluteSubOne(t);return i.__absoluteXor(a,o,a).__trim()}var s=n(e.length,t.length)+1;if(e.sign){var c=[t,e];e=c[0],t=c[1]}var l=i.__absoluteSubOne(t,s);return l=i.__absoluteXor(l,e,l),i.__absoluteAddOne(l,!0,l).__trim()}},{key:`bitwiseOr`,value:function(e,t){var r=n(e.length,t.length);if(!e.sign&&!t.sign)return i.__absoluteOr(e,t).__trim();if(e.sign&&t.sign){var a=i.__absoluteSubOne(e,r),o=i.__absoluteSubOne(t);return a=i.__absoluteAnd(a,o,a),i.__absoluteAddOne(a,!0,a).__trim()}if(e.sign){var s=[t,e];e=s[0],t=s[1]}var c=i.__absoluteSubOne(t,r);return c=i.__absoluteAndNot(c,e,c),i.__absoluteAddOne(c,!0,c).__trim()}},{key:`asIntN`,value:function(e,t){if(t.length===0)return t;if(e=r(e),0>e)throw RangeError(`Invalid value: not (convertible to) a safe integer`);if(e===0)return i.__zero();if(e>=i.__kMaxLengthBits)return t;var n=0|(e+29)/30;if(t.length<n)return t;var a=t.__unsignedDigit(n-1),o=1<<(e-1)%30;if(t.length===n&&a<o)return t;if((a&o)!==o)return i.__truncateToNBits(e,t);if(!t.sign)return i.__truncateAndSubFromPowerOfTwo(e,t,!0);if(!(a&o-1)){for(var s=n-2;0<=s;s--)if(t.__digit(s)!==0)return i.__truncateAndSubFromPowerOfTwo(e,t,!1);return t.length===n&&a===o?t:i.__truncateToNBits(e,t)}return i.__truncateAndSubFromPowerOfTwo(e,t,!1)}},{key:`asUintN`,value:function(e,t){if(t.length===0)return t;if(e=r(e),0>e)throw RangeError(`Invalid value: not (convertible to) a safe integer`);if(e===0)return i.__zero();if(t.sign){if(e>i.__kMaxLengthBits)throw RangeError(`BigInt too big`);return i.__truncateAndSubFromPowerOfTwo(e,t,!1)}if(e>=i.__kMaxLengthBits)return t;var n=0|(e+29)/30;if(t.length<n)return t;var a=e%30;return t.length==n&&(a===0||!(t.__digit(n-1)>>>a))?t:i.__truncateToNBits(e,t)}},{key:`ADD`,value:function(e,t){if(e=i.__toPrimitive(e),t=i.__toPrimitive(t),typeof e==`string`)return typeof t!=`string`&&(t=t.toString()),e+t;if(typeof t==`string`)return e.toString()+t;if(e=i.__toNumeric(e),t=i.__toNumeric(t),i.__isBigInt(e)&&i.__isBigInt(t))return i.add(e,t);if(typeof e==`number`&&typeof t==`number`)return e+t;throw TypeError(`Cannot mix BigInt and other types, use explicit conversions`)}},{key:`LT`,value:function(e,t){return i.__compare(e,t,0)}},{key:`LE`,value:function(e,t){return i.__compare(e,t,1)}},{key:`GT`,value:function(e,t){return i.__compare(e,t,2)}},{key:`GE`,value:function(e,t){return i.__compare(e,t,3)}},{key:`EQ`,value:function(e,t){for(;;){if(i.__isBigInt(e))return i.__isBigInt(t)?i.equal(e,t):i.EQ(t,e);if(typeof e==`number`){if(i.__isBigInt(t))return i.__equalToNumber(t,e);if(x(t)!==`object`)return e==t;t=i.__toPrimitive(t)}else if(typeof e==`string`){if(i.__isBigInt(t))return e=i.__fromString(e),e!==null&&i.equal(e,t);if(x(t)!==`object`)return e==t;t=i.__toPrimitive(t)}else if(typeof e==`boolean`){if(i.__isBigInt(t))return i.__equalToNumber(t,+e);if(x(t)!==`object`)return e==t;t=i.__toPrimitive(t)}else if(x(e)===`symbol`){if(i.__isBigInt(t))return!1;if(x(t)!==`object`)return e==t;t=i.__toPrimitive(t)}else if(x(e)===`object`){if(x(t)===`object`&&t.constructor!==i)return e==t;e=i.__toPrimitive(e)}else return e==t}}},{key:`NE`,value:function(e,t){return!i.EQ(e,t)}},{key:`DataViewGetBigInt64`,value:function(e,t){var n=2<arguments.length&&arguments[2]!==void 0&&arguments[2];return i.asIntN(64,i.DataViewGetBigUint64(e,t,n))}},{key:`DataViewGetBigUint64`,value:function(e,t){var n=2<arguments.length&&arguments[2]!==void 0&&arguments[2],r=y(n?[4,0]:[0,4],2),a=r[0],o=r[1],s=e.getUint32(t+a,n),c=e.getUint32(t+o,n),l=new i(3,!1);return l.__setDigit(0,1073741823&c),l.__setDigit(1,(268435455&s)<<2|c>>>30),l.__setDigit(2,s>>>28),l.__trim()}},{key:`DataViewSetBigInt64`,value:function(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0&&arguments[3];i.DataViewSetBigUint64(e,t,n,r)}},{key:`DataViewSetBigUint64`,value:function(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0&&arguments[3];n=i.asUintN(64,n);var a=0,o=0;if(0<n.length&&(o=n.__digit(0),1<n.length)){var s=n.__digit(1);o|=s<<30,a=s>>>2,2<n.length&&(a|=n.__digit(2)<<28)}var c=y(r?[4,0]:[0,4],2),l=c[0],u=c[1];e.setUint32(t+l,a,r),e.setUint32(t+u,o,r)}},{key:`__zero`,value:function(){return new i(0,!1)}},{key:`__oneDigit`,value:function(e,t){var n=new i(1,t);return n.__setDigit(0,e),n}},{key:`__decideRounding`,value:function(e,t,n,r){if(0<t)return-1;var i;if(0>t)i=-t-1;else{if(n===0)return-1;n--,r=e.__digit(n),i=29}var a=1<<i;if((r&a)==0)return-1;if(--a,(r&a)!=0)return 1;for(;0<n;)if(n--,e.__digit(n)!==0)return 1;return 0}},{key:`__fromDouble`,value:function(e){var t=0>e;i.__kBitConversionDouble[0]=e;var n,r=(2047&i.__kBitConversionInts[i.__kBitConversionIntHigh]>>>20)-1023,a=(0|r/30)+1,o=new i(a,t),s=1048575&i.__kBitConversionInts[i.__kBitConversionIntHigh]|1048576,c=i.__kBitConversionInts[i.__kBitConversionIntLow],l=20,u=r%30,d=0;if(u<l){var f=l-u;d=f+32,n=s>>>f,s=s<<32-f|c>>>f,c<<=32-f}else if(u===l)d=32,n=s,s=c,c=0;else{var p=u-l;d=32-p,n=s<<p|c>>>32-p,s=c<<p,c=0}o.__setDigit(a-1,n);for(var m=a-2;0<=m;m--)0<d?(d-=30,n=s>>>2,s=s<<30|c>>>2,c<<=30):n=0,o.__setDigit(m,n);return o.__trim()}},{key:`__isWhitespace`,value:function(e){return 13>=e&&9<=e||(159>=e?e==32:131071>=e?e==160||e==5760:196607>=e?(e&=131071,10>=e||e==40||e==41||e==47||e==95||e==4096):e==65279)}},{key:`__fromString`,value:function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0,n=0,r=e.length,a=0;if(a===r)return i.__zero();for(var o=e.charCodeAt(a);i.__isWhitespace(o);){if(++a===r)return i.__zero();o=e.charCodeAt(a)}if(o===43){if(++a===r)return null;o=e.charCodeAt(a),n=1}else if(o===45){if(++a===r)return null;o=e.charCodeAt(a),n=-1}if(t===0){if(t=10,o===48){if(++a===r)return i.__zero();if(o=e.charCodeAt(a),o===88||o===120){if(t=16,++a===r)return null;o=e.charCodeAt(a)}else if(o===79||o===111){if(t=8,++a===r)return null;o=e.charCodeAt(a)}else if(o===66||o===98){if(t=2,++a===r)return null;o=e.charCodeAt(a)}}}else if(t===16&&o===48){if(++a===r)return i.__zero();if(o=e.charCodeAt(a),o===88||o===120){if(++a===r)return null;o=e.charCodeAt(a)}}if(n!==0&&t!==10)return null;for(;o===48;){if(++a===r)return i.__zero();o=e.charCodeAt(a)}var s=r-a,c=i.__kMaxBitsPerChar[t],l=i.__kBitsPerCharTableMultiplier-1;if(s>1073741824/c)return null;var u=new i(0|((c*s+l>>>i.__kBitsPerCharTableShift)+29)/30,!1),d=10>t?t:10,f=10<t?t-10:0;if(t&t-1){u.__initializeDigits();var p=!1,m=0;do{for(var h,g=0,_=1;;){if(h=void 0,o-48>>>0<d)h=o-48;else if((32|o)-97>>>0<f)h=(32|o)-87;else{p=!0;break}var v=_*t;if(1073741823<v)break;if(_=v,g=g*t+h,m++,++a===r){p=!0;break}o=e.charCodeAt(a)}l=30*i.__kBitsPerCharTableMultiplier-1;var y=0|(c*m+l>>>i.__kBitsPerCharTableShift)/30;u.__inplaceMultiplyAdd(_,g,y)}while(!p)}else{c>>=i.__kBitsPerCharTableShift;var ee=[],b=[],x=!1;do{for(var te,ne=0,S=0;;){if(te=void 0,o-48>>>0<d)te=o-48;else if((32|o)-97>>>0<f)te=(32|o)-87;else{x=!0;break}if(S+=c,ne=ne<<c|te,++a===r){x=!0;break}if(o=e.charCodeAt(a),30<S+c)break}ee.push(ne),b.push(S)}while(!x);i.__fillFromParts(u,ee,b)}if(a!==r){if(!i.__isWhitespace(o))return null;for(a++;a<r;a++)if(o=e.charCodeAt(a),!i.__isWhitespace(o))return null}return u.sign=n===-1,u.__trim()}},{key:`__fillFromParts`,value:function(e,t,n){for(var r=0,i=0,a=0,o=t.length-1;0<=o;o--){var s=t[o],c=n[o];i|=s<<a,a+=c,a===30?(e.__setDigit(r++,i),a=0,i=0):30<a&&(e.__setDigit(r++,1073741823&i),a-=30,i=s>>>c-a)}if(i!==0){if(r>=e.length)throw Error(`implementation bug`);e.__setDigit(r++,i)}for(;r<e.length;r++)e.__setDigit(r,0)}},{key:`__toStringBasePowerOfTwo`,value:function(e,t){var n=e.length,r=t-1;r=(85&r>>>1)+(85&r),r=(51&r>>>2)+(51&r),r=(15&r>>>4)+(15&r);var a=r,o=t-1,s=e.__digit(n-1),c=i.__clz30(s),l=0|(30*n-c+a-1)/a;if(e.sign&&l++,268435456<l)throw Error(`string too long`);for(var u=Array(l),d=l-1,f=0,p=0,m=0;m<n-1;m++){var h=e.__digit(m),g=(f|h<<p)&o;u[d--]=i.__kConversionChars[g];var _=a-p;for(f=h>>>_,p=30-_;p>=a;)u[d--]=i.__kConversionChars[f&o],f>>>=a,p-=a}var v=(f|s<<p)&o;for(u[d--]=i.__kConversionChars[v],f=s>>>a-p;f!==0;)u[d--]=i.__kConversionChars[f&o],f>>>=a;if(e.sign&&(u[d--]=`-`),d!==-1)throw Error(`implementation bug`);return u.join(``)}},{key:`__toStringGeneric`,value:function(e,t,n){var r=e.length;if(r===0)return``;if(r===1){var a=e.__unsignedDigit(0).toString(t);return!1===n&&e.sign&&(a=`-`+a),a}var o=30*r-i.__clz30(e.__digit(r-1)),s=i.__kMaxBitsPerChar[t]-1,c=o*i.__kBitsPerCharTableMultiplier;c+=s-1,c=0|c/s;var l,u,d=c+1>>1,f=i.exponentiate(i.__oneDigit(t,!1),i.__oneDigit(d,!1)),p=f.__unsignedDigit(0);if(f.length===1&&32767>=p){l=new i(e.length,!1),l.__initializeDigits();for(var m,h=0,g=2*e.length-1;0<=g;g--)m=h<<15|e.__halfDigit(g),l.__setHalfDigit(g,0|m/p),h=0|m%p;u=h.toString(t)}else{var _=i.__absoluteDivLarge(e,f,!0,!0);l=_.quotient;var v=_.remainder.__trim();u=i.__toStringGeneric(v,t,!0)}l.__trim();for(var y=i.__toStringGeneric(l,t,!0);u.length<d;)u=`0`+u;return!1===n&&e.sign&&(y=`-`+y),y+u}},{key:`__unequalSign`,value:function(e){return e?-1:1}},{key:`__absoluteGreater`,value:function(e){return e?-1:1}},{key:`__absoluteLess`,value:function(e){return e?1:-1}},{key:`__compareToBigInt`,value:function(e,t){var n=e.sign;if(n!==t.sign)return i.__unequalSign(n);var r=i.__absoluteCompare(e,t);return 0<r?i.__absoluteGreater(n):0>r?i.__absoluteLess(n):0}},{key:`__compareToNumber`,value:function(e,n){if(i.__isOneDigitInt(n)){var r=e.sign,a=0>n;if(r!==a)return i.__unequalSign(r);if(e.length===0){if(a)throw Error(`implementation bug`);return n===0?0:-1}if(1<e.length)return i.__absoluteGreater(r);var o=t(n),s=e.__unsignedDigit(0);return s>o?i.__absoluteGreater(r):s<o?i.__absoluteLess(r):0}return i.__compareToDouble(e,n)}},{key:`__compareToDouble`,value:function(e,t){if(t!==t)return t;if(t===1/0)return-1;if(t===-1/0)return 1;var n=e.sign;if(n!==0>t)return i.__unequalSign(n);if(t===0)throw Error(`implementation bug: should be handled elsewhere`);if(e.length===0)return-1;i.__kBitConversionDouble[0]=t;var r=2047&i.__kBitConversionInts[i.__kBitConversionIntHigh]>>>20;if(r==2047)throw Error(`implementation bug: handled elsewhere`);var a=r-1023;if(0>a)return i.__absoluteGreater(n);var o=e.length,s=e.__digit(o-1),c=i.__clz30(s),l=30*o-c,u=a+1;if(l<u)return i.__absoluteLess(n);if(l>u)return i.__absoluteGreater(n);var d=1048576|1048575&i.__kBitConversionInts[i.__kBitConversionIntHigh],f=i.__kBitConversionInts[i.__kBitConversionIntLow],p=20,m=29-c;if(m!==(0|(l-1)%30))throw Error(`implementation bug`);var h,g=0;if(m<p){var _=p-m;g=_+32,h=d>>>_,d=d<<32-_|f>>>_,f<<=32-_}else if(m===p)g=32,h=d,d=f,f=0;else{var v=m-p;g=32-v,h=d<<v|f>>>32-v,d=f<<v,f=0}if(s>>>=0,h>>>=0,s>h)return i.__absoluteGreater(n);if(s<h)return i.__absoluteLess(n);for(var y=o-2;0<=y;y--){0<g?(g-=30,h=d>>>2,d=d<<30|f>>>2,f<<=30):h=0;var ee=e.__unsignedDigit(y);if(ee>h)return i.__absoluteGreater(n);if(ee<h)return i.__absoluteLess(n)}if(d!==0||f!==0){if(g===0)throw Error(`implementation bug`);return i.__absoluteLess(n)}return 0}},{key:`__equalToNumber`,value:function(e,n){return i.__isOneDigitInt(n)?n===0?e.length===0:e.length===1&&e.sign===0>n&&e.__unsignedDigit(0)===t(n):i.__compareToDouble(e,n)===0}},{key:`__comparisonResultToBool`,value:function(e,t){return t===0?0>e:t===1?0>=e:t===2?0<e:t===3?0<=e:void 0}},{key:`__compare`,value:function(e,t,n){if(e=i.__toPrimitive(e),t=i.__toPrimitive(t),typeof e==`string`&&typeof t==`string`)switch(n){case 0:return e<t;case 1:return e<=t;case 2:return e>t;case 3:return e>=t}if(i.__isBigInt(e)&&typeof t==`string`)return t=i.__fromString(t),t!==null&&i.__comparisonResultToBool(i.__compareToBigInt(e,t),n);if(typeof e==`string`&&i.__isBigInt(t))return e=i.__fromString(e),e!==null&&i.__comparisonResultToBool(i.__compareToBigInt(e,t),n);if(e=i.__toNumeric(e),t=i.__toNumeric(t),i.__isBigInt(e)){if(i.__isBigInt(t))return i.__comparisonResultToBool(i.__compareToBigInt(e,t),n);if(typeof t!=`number`)throw Error(`implementation bug`);return i.__comparisonResultToBool(i.__compareToNumber(e,t),n)}if(typeof e!=`number`)throw Error(`implementation bug`);if(i.__isBigInt(t))return i.__comparisonResultToBool(i.__compareToNumber(t,e),2^n);if(typeof t!=`number`)throw Error(`implementation bug`);return n===0?e<t:n===1?e<=t:n===2?e>t:n===3?e>=t:void 0}},{key:`__absoluteAdd`,value:function(e,t,n){if(e.length<t.length)return i.__absoluteAdd(t,e,n);if(e.length===0)return e;if(t.length===0)return e.sign===n?e:i.unaryMinus(e);var r=e.length;(e.__clzmsd()===0||t.length===e.length&&t.__clzmsd()===0)&&r++;for(var a,o=new i(r,n),s=0,c=0;c<t.length;c++)a=e.__digit(c)+t.__digit(c)+s,s=a>>>30,o.__setDigit(c,1073741823&a);for(;c<e.length;c++){var l=e.__digit(c)+s;s=l>>>30,o.__setDigit(c,1073741823&l)}return c<o.length&&o.__setDigit(c,s),o.__trim()}},{key:`__absoluteSub`,value:function(e,t,n){if(e.length===0)return e;if(t.length===0)return e.sign===n?e:i.unaryMinus(e);for(var r,a=new i(e.length,n),o=0,s=0;s<t.length;s++)r=e.__digit(s)-t.__digit(s)-o,o=1&r>>>30,a.__setDigit(s,1073741823&r);for(;s<e.length;s++){var c=e.__digit(s)-o;o=1&c>>>30,a.__setDigit(s,1073741823&c)}return a.__trim()}},{key:`__absoluteAddOne`,value:function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null,r=e.length;n===null?n=new i(r,t):n.sign=t;for(var a,o=1,s=0;s<r;s++)a=e.__digit(s)+o,o=a>>>30,n.__setDigit(s,1073741823&a);return o!==0&&n.__setDigitGrow(r,1),n}},{key:`__absoluteSubOne`,value:function(e,t){var n=e.length;t||=n;for(var r,a=new i(t,!1),o=1,s=0;s<n;s++)r=e.__digit(s)-o,o=1&r>>>30,a.__setDigit(s,1073741823&r);if(o!==0)throw Error(`implementation bug`);for(var c=n;c<t;c++)a.__setDigit(c,0);return a}},{key:`__absoluteAnd`,value:function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null,r=e.length,a=t.length,o=a;if(r<a){o=r;var s=e,c=r;e=t,r=a,t=s,a=c}var l=o;n===null?n=new i(l,!1):l=n.length;for(var u=0;u<o;u++)n.__setDigit(u,e.__digit(u)&t.__digit(u));for(;u<l;u++)n.__setDigit(u,0);return n}},{key:`__absoluteAndNot`,value:function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null,r=e.length,a=t.length,o=a;r<a&&(o=r);var s=r;n===null?n=new i(s,!1):s=n.length;for(var c=0;c<o;c++)n.__setDigit(c,e.__digit(c)&~t.__digit(c));for(;c<r;c++)n.__setDigit(c,e.__digit(c));for(;c<s;c++)n.__setDigit(c,0);return n}},{key:`__absoluteOr`,value:function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null,r=e.length,a=t.length,o=a;if(r<a){o=r;var s=e,c=r;e=t,r=a,t=s,a=c}var l=r;n===null?n=new i(l,!1):l=n.length;for(var u=0;u<o;u++)n.__setDigit(u,e.__digit(u)|t.__digit(u));for(;u<r;u++)n.__setDigit(u,e.__digit(u));for(;u<l;u++)n.__setDigit(u,0);return n}},{key:`__absoluteXor`,value:function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null,r=e.length,a=t.length,o=a;if(r<a){o=r;var s=e,c=r;e=t,r=a,t=s,a=c}var l=r;n===null?n=new i(l,!1):l=n.length;for(var u=0;u<o;u++)n.__setDigit(u,e.__digit(u)^t.__digit(u));for(;u<r;u++)n.__setDigit(u,e.__digit(u));for(;u<l;u++)n.__setDigit(u,0);return n}},{key:`__absoluteCompare`,value:function(e,t){var n=e.length-t.length;if(n!=0)return n;for(var r=e.length-1;0<=r&&e.__digit(r)===t.__digit(r);)r--;return 0>r?0:e.__unsignedDigit(r)>t.__unsignedDigit(r)?1:-1}},{key:`__multiplyAccumulate`,value:function(e,t,n,r){if(t!==0){for(var a=32767&t,o=t>>>15,s=0,c=0,l=0;l<e.length;l++,r++){var u=n.__digit(r),d=e.__digit(l),f=32767&d,p=d>>>15,m=i.__imul(f,a),h=i.__imul(f,o),g=i.__imul(p,a),_=i.__imul(p,o);u+=c+m+s,s=u>>>30,u&=1073741823,u+=((32767&h)<<15)+((32767&g)<<15),s+=u>>>30,c=_+(h>>>15)+(g>>>15),n.__setDigit(r,1073741823&u)}for(;s!==0||c!==0;r++){var v=n.__digit(r);v+=s+c,c=0,s=v>>>30,n.__setDigit(r,1073741823&v)}}}},{key:`__internalMultiplyAdd`,value:function(e,t,n,r,a){for(var o=n,s=0,c=0;c<r;c++){var l=e.__digit(c),u=i.__imul(32767&l,t),d=i.__imul(l>>>15,t),f=u+((32767&d)<<15)+s+o;o=f>>>30,s=d>>>15,a.__setDigit(c,1073741823&f)}if(a.length>r)for(a.__setDigit(r++,o+s);r<a.length;)a.__setDigit(r++,0);else if(o+s!==0)throw Error(`implementation bug`)}},{key:`__absoluteDivSmall`,value:function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;n===null&&(n=new i(e.length,!1));for(var r=0,a=2*e.length-1;0<=a;a-=2){var o=(r<<15|e.__halfDigit(a))>>>0,s=0|o/t;r=0|o%t,o=(r<<15|e.__halfDigit(a-1))>>>0;var c=0|o/t;r=0|o%t,n.__setDigit(a>>>1,s<<15|c)}return n}},{key:`__absoluteModSmall`,value:function(e,t){for(var n,r=0,i=2*e.length-1;0<=i;i--)n=(r<<15|e.__halfDigit(i))>>>0,r=0|n%t;return r}},{key:`__absoluteDivLarge`,value:function(e,t,n,r){var a=t.__halfDigitLength(),o=t.length,s=e.__halfDigitLength()-a,c=null;n&&(c=new i(s+2>>>1,!1),c.__initializeDigits());var l=new i(a+2>>>1,!1);l.__initializeDigits();var u=i.__clz15(t.__halfDigit(a-1));0<u&&(t=i.__specialLeftShift(t,u,0));for(var d=i.__specialLeftShift(e,u,1),f=t.__halfDigit(a-1),p=0,m=s;0<=m;m--){var h=32767,g=d.__halfDigit(m+a);if(g!==f){var _=(g<<15|d.__halfDigit(m+a-1))>>>0;h=0|_/f;for(var v=0|_%f,y=t.__halfDigit(a-2),ee=d.__halfDigit(m+a-2);i.__imul(h,y)>>>0>(v<<16|ee)>>>0&&(h--,v+=f,!(32767<v)););}i.__internalMultiplyAdd(t,h,0,o,l);var b=d.__inplaceSub(l,m,a+1);b!==0&&(b=d.__inplaceAdd(t,m,a),d.__setHalfDigit(m+a,32767&d.__halfDigit(m+a)+b),h--),n&&(1&m?p=h<<15:c.__setDigit(m>>>1,p|h))}if(r)return d.__inplaceRightShift(u),n?{quotient:c,remainder:d}:d;if(n)return c;throw Error(`unreachable`)}},{key:`__clz15`,value:function(e){return i.__clz30(e)-15}},{key:`__specialLeftShift`,value:function(e,t,n){var r=e.length,a=new i(r+n,!1);if(t===0){for(var o=0;o<r;o++)a.__setDigit(o,e.__digit(o));return 0<n&&a.__setDigit(r,0),a}for(var s,c=0,l=0;l<r;l++)s=e.__digit(l),a.__setDigit(l,1073741823&s<<t|c),c=s>>>30-t;return 0<n&&a.__setDigit(r,c),a}},{key:`__leftShiftByAbsolute`,value:function(e,t){var n=i.__toShiftAmount(t);if(0>n)throw RangeError(`BigInt too big`);var r=0|n/30,a=n%30,o=e.length,s=a!==0&&e.__digit(o-1)>>>30-a!=0,c=o+r+ +!!s,l=new i(c,e.sign);if(a===0){for(var u=0;u<r;u++)l.__setDigit(u,0);for(;u<c;u++)l.__setDigit(u,e.__digit(u-r))}else{for(var d=0,f=0;f<r;f++)l.__setDigit(f,0);for(var p,m=0;m<o;m++)p=e.__digit(m),l.__setDigit(m+r,1073741823&p<<a|d),d=p>>>30-a;if(s)l.__setDigit(o+r,d);else if(d!==0)throw Error(`implementation bug`)}return l.__trim()}},{key:`__rightShiftByAbsolute`,value:function(e,t){var n=e.length,r=e.sign,a=i.__toShiftAmount(t);if(0>a)return i.__rightShiftByMaximum(r);var o=0|a/30,s=a%30,c=n-o;if(0>=c)return i.__rightShiftByMaximum(r);var l=!1;if(r){var u=(1<<s)-1;if((e.__digit(o)&u)!=0)l=!0;else for(var d=0;d<o;d++)if(e.__digit(d)!==0){l=!0;break}}l&&s===0&&~e.__digit(n-1)==0&&c++;var f=new i(c,r);if(s===0){f.__setDigit(c-1,0);for(var p=o;p<n;p++)f.__setDigit(p-o,e.__digit(p))}else{for(var m,h=e.__digit(o)>>>s,g=n-o-1,_=0;_<g;_++)m=e.__digit(_+o+1),f.__setDigit(_,1073741823&m<<30-s|h),h=m>>>s;f.__setDigit(g,h)}return l&&(f=i.__absoluteAddOne(f,!0,f)),f.__trim()}},{key:`__rightShiftByMaximum`,value:function(e){return e?i.__oneDigit(1,!0):i.__zero()}},{key:`__toShiftAmount`,value:function(e){if(1<e.length)return-1;var t=e.__unsignedDigit(0);return t>i.__kMaxLengthBits?-1:t}},{key:`__toPrimitive`,value:function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:`default`;if(x(e)!==`object`||e.constructor===i)return e;if(typeof Symbol<`u`&&x(Symbol.toPrimitive)===`symbol`&&e[Symbol.toPrimitive]){var n=e[Symbol.toPrimitive](t);if(x(n)!==`object`)return n;throw TypeError(`Cannot convert object to primitive value`)}var r=e.valueOf;if(r){var a=r.call(e);if(x(a)!==`object`)return a}var o=e.toString;if(o){var s=o.call(e);if(x(s)!==`object`)return s}throw TypeError(`Cannot convert object to primitive value`)}},{key:`__toNumeric`,value:function(e){return i.__isBigInt(e)?e:+e}},{key:`__isBigInt`,value:function(e){return x(e)===`object`&&e!==null&&e.constructor===i}},{key:`__truncateToNBits`,value:function(e,t){for(var n=0|(e+29)/30,r=new i(n,t.sign),a=n-1,o=0;o<a;o++)r.__setDigit(o,t.__digit(o));var s=t.__digit(a);if(e%30!=0){var c=32-e%30;s=s<<c>>>c}return r.__setDigit(a,s),r.__trim()}},{key:`__truncateAndSubFromPowerOfTwo`,value:function(e,t,n){for(var r=Math.min,a,o=0|(e+29)/30,s=new i(o,n),c=0,l=o-1,u=0,d=r(l,t.length);c<d;c++)a=0-t.__digit(c)-u,u=1&a>>>30,s.__setDigit(c,1073741823&a);for(;c<l;c++)s.__setDigit(c,0|1073741823&-u);var f,p=l<t.length?t.__digit(l):0,m=e%30;if(m===0)f=0-p-u,f&=1073741823;else{var h=32-m;p=p<<h>>>h;var g=1<<32-h;f=g-p-u,f&=g-1}return s.__setDigit(l,f),s.__trim()}},{key:`__digitPow`,value:function(e,t){for(var n=1;0<t;)1&t&&(n*=e),t>>>=1,e*=e;return n}},{key:`__detectBigEndian`,value:function(){return i.__kBitConversionDouble[0]=-0,i.__kBitConversionInts[0]!==0}},{key:`__isOneDigitInt`,value:function(e){return(1073741823&e)===e}}])}(ne(Array));return S.__kMaxLength=33554432,S.__kMaxLengthBits=S.__kMaxLength<<5,S.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],S.__kBitsPerCharTableShift=5,S.__kBitsPerCharTableMultiplier=1<<S.__kBitsPerCharTableShift,S.__kConversionChars=`0123456789abcdefghijklmnopqrstuvwxyz`.split(``),S.__kBitConversionBuffer=new ArrayBuffer(8),S.__kBitConversionDouble=new Float64Array(S.__kBitConversionBuffer),S.__kBitConversionInts=new Int32Array(S.__kBitConversionBuffer),S.__kBitConversionIntHigh=+!S.__detectBigEndian(),S.__kBitConversionIntLow=+!!S.__detectBigEndian(),S.__clz30=t?function(e){return t(e)-2}:function(e){var t=Math.LN2,n=Math.log;return e===0?30:0|29-(0|n(e>>>0)/t)},S.__imul=e||function(e,t){return 0|e*t},S})}))(),1),u=l.default.BigInt(0),d=l.default.BigInt(1),f=l.default.BigInt(2),p=l.default.BigInt(10),m=l.default.BigInt(24),h=l.default.BigInt(60),g=l.default.BigInt(1e3),_=l.default.BigInt(1e6),v=l.default.BigInt(1e9),y=l.default.multiply(l.default.BigInt(3600),v),ee=l.default.multiply(h,v),b=l.default.multiply(y,m);function x(e){return typeof e==`bigint`?l.default.BigInt(e.toString(10)):e}function te(e){return l.default.equal(l.default.remainder(e,f),u)}function ne(e){return l.default.lessThan(e,u)?l.default.unaryMinus(e):e}function S(e,t){return l.default.lessThan(e,t)?-1:+!!l.default.greaterThan(e,t)}function re(e,t){return{quotient:l.default.divide(e,t),remainder:l.default.remainder(e,t)}}var ie,ae,C=`slot-epochNanoSeconds`,w=`slot-iso-date`,T=`slot-iso-date-time`,E=`slot-time`,D=`slot-calendar`,oe=`slot-date-brand`,se=`slot-year-month-brand`,ce=`slot-month-day-brand`,O=`slot-time-zone`,k=`slot-years`,le=`slot-months`,ue=`slot-weeks`,de=`slot-days`,fe=`slot-hours`,pe=`slot-minutes`,me=`slot-seconds`,he=`slot-milliseconds`,ge=`slot-microseconds`,_e=`slot-nanoseconds`,ve=`date`,ye=`ym`,be=`md`,xe=`time`,Se=`datetime`,Ce=`instant`,we=`original`,Te=`timezone-canonical`,Ee=`timezone-original`,De=`calendar-id`,Oe=`locale`,ke=`options`,Ae=new WeakMap,je=Symbol.for(`@@Temporal__GetSlots`);(ie=globalThis)[je]||(ie[je]=function(e){return Ae.get(e)});var Me=globalThis[je],Ne=Symbol.for(`@@Temporal__CreateSlots`);(ae=globalThis)[Ne]||(ae[Ne]=function(e){Ae.set(e,Object.create(null))});var Pe=globalThis[Ne];function Fe(e,...t){if(!e||typeof e!=`object`)return!1;let n=Me(e);return!!n&&t.every((e=>e in n))}function A(e,t){let n=Me(e)?.[t];if(n===void 0)throw TypeError(`Missing internal slot ${t}`);return n}function j(e,t,n){let r=Me(e);if(r===void 0)throw TypeError(`Missing slots for the given container`);if(r[t])throw TypeError(`${t} already has set`);r[t]=n}var Ie={};function Le(e,t){Object.defineProperty(e.prototype,Symbol.toStringTag,{value:t,writable:!1,enumerable:!1,configurable:!0});let n=Object.getOwnPropertyNames(e);for(let t=0;t<n.length;t++){let r=n[t],i=Object.getOwnPropertyDescriptor(e,r);i.configurable&&i.enumerable&&(i.enumerable=!1,Object.defineProperty(e,r,i))}let r=Object.getOwnPropertyNames(e.prototype);for(let t=0;t<r.length;t++){let n=r[t],i=Object.getOwnPropertyDescriptor(e.prototype,n);i.configurable&&i.enumerable&&(i.enumerable=!1,Object.defineProperty(e.prototype,n,i))}Re(t,e),Re(`${t}.prototype`,e.prototype)}function Re(e,t){let n=`%${e}%`;if(Ie[n]!==void 0)throw Error(`intrinsic ${e} already exists`);Ie[n]=t}function M(e){return Ie[e]}function ze(e,t){let n=e;if(n===0)return{div:n,mod:n};let r=Math.sign(n);n=Math.abs(n);let i=Math.trunc(1+Math.log10(n));if(t>=i)return{div:0*r,mod:r*n};if(t===0)return{div:r*n,mod:0*r};let a=n.toPrecision(i);return{div:r*Number.parseInt(a.slice(0,i-t),10),mod:r*Number.parseInt(a.slice(i-t),10)}}function Be(e,t,n){let r=e,i=n;if(r===0)return i;let a=Math.sign(r)||Math.sign(i);r=Math.abs(r),i=Math.abs(i);let o=r.toPrecision(Math.trunc(1+Math.log10(r)));if(i===0)return a*Number.parseInt(o+`0`.repeat(t),10);let s=o+i.toPrecision(Math.trunc(1+Math.log10(i))).padStart(t,`0`);return a*Number.parseInt(s,10)}function Ve(e,t){let n=t===`negative`;switch(e){case`ceil`:return n?`zero`:`infinity`;case`floor`:return n?`infinity`:`zero`;case`expand`:return`infinity`;case`trunc`:return`zero`;case`halfCeil`:return n?`half-zero`:`half-infinity`;case`halfFloor`:return n?`half-infinity`:`half-zero`;case`halfExpand`:return`half-infinity`;case`halfTrunc`:return`half-zero`;case`halfEven`:return`half-even`}}function He(e,t,n,r,i){return i===`zero`?e:i===`infinity`?t:n<0?e:n>0?t:i===`half-zero`?e:i===`half-infinity`?t:r?e:t}var N=class e{constructor(e){this.totalNs=x(e),this.sec=l.default.toNumber(l.default.divide(this.totalNs,v)),this.subsec=l.default.toNumber(l.default.remainder(this.totalNs,v))}static validateNew(t,n){if(l.default.greaterThan(ne(t),e.MAX))throw RangeError(`${n} of duration time units cannot exceed ${e.MAX} s`);return new e(t)}static fromEpochNsDiff(t,n){return new e(l.default.subtract(x(t),x(n)))}static fromComponents(t,n,r,i,a,o){let s=l.default.add(l.default.add(l.default.add(l.default.add(l.default.add(l.default.BigInt(o),l.default.multiply(l.default.BigInt(a),g)),l.default.multiply(l.default.BigInt(i),_)),l.default.multiply(l.default.BigInt(r),v)),l.default.multiply(l.default.BigInt(n),ee)),l.default.multiply(l.default.BigInt(t),y));return e.validateNew(s,`total`)}abs(){return new e(ne(this.totalNs))}add(t){return e.validateNew(l.default.add(this.totalNs,t.totalNs),`sum`)}add24HourDays(t){return e.validateNew(l.default.add(this.totalNs,l.default.multiply(l.default.BigInt(t),b)),`sum`)}addToEpochNs(e){return l.default.add(x(e),this.totalNs)}cmp(e){return S(this.totalNs,e.totalNs)}divmod(t){let{quotient:n,remainder:r}=re(this.totalNs,l.default.BigInt(t));return{quotient:l.default.toNumber(n),remainder:new e(r)}}fdiv(e){let t=x(e),n=l.default.BigInt(t),{quotient:r,remainder:i}=re(this.totalNs,n),a=[],o,s=(l.default.lessThan(this.totalNs,u)?-1:1)*Math.sign(l.default.toNumber(t));for(;!l.default.equal(i,u)&&a.length<50;)i=l.default.multiply(i,p),{quotient:o,remainder:i}=re(i,n),a.push(Math.abs(l.default.toNumber(o)));return s*Number(ne(r).toString()+`.`+a.join(``))}isZero(){return l.default.equal(this.totalNs,u)}round(t,n){let r=x(t);if(l.default.equal(r,d))return this;let{quotient:i,remainder:a}=re(this.totalNs,r),o=l.default.lessThan(this.totalNs,u)?`negative`:`positive`,s=l.default.multiply(ne(i),r),c=l.default.add(s,r),p=S(ne(l.default.multiply(a,f)),r),m=Ve(n,o),h=l.default.equal(ne(this.totalNs),s)?s:He(s,c,p,te(i),m),g=o===`positive`?h:l.default.unaryMinus(h);return e.validateNew(g,`rounding`)}sign(){return this.cmp(new e(u))}subtract(t){return e.validateNew(l.default.subtract(this.totalNs,t.totalNs),`difference`)}};N.MAX=l.default.BigInt(`9007199254740991999999999`),N.ZERO=new N(u);var Ue=/[A-Za-z._][A-Za-z._0-9+-]*/,We=RegExp(`(?:(?:[+-](?:[01][0-9]|2[0-3])(?::?[0-5][0-9])?)|(?:${Ue.source})(?:\\/(?:${Ue.source}))*)`),Ge=/(?:[+-]\d{6}|\d{4})/,Ke=/(?:0[1-9]|1[0-2])/,qe=/(?:0[1-9]|[12]\d|3[01])/,Je=RegExp(`(${Ge.source})(?:-(${Ke.source})-(${qe.source})|(${Ke.source})(${qe.source}))`),Ye=/(\d{2})(?::(\d{2})(?::(\d{2})(?:[.,](\d{1,9}))?)?|(\d{2})(?:(\d{2})(?:[.,](\d{1,9}))?)?)?/,Xe=/((?:[+-])(?:[01][0-9]|2[0-3])(?::?(?:[0-5][0-9])(?::?(?:[0-5][0-9])(?:[.,](?:\d{1,9}))?)?)?)/,Ze=RegExp(`([zZ])|${Xe.source}?`),Qe=/\[(!)?([a-z_][a-z0-9_-]*)=([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\]/g,$e=new RegExp([`^${Je.source}`,`(?:(?:[tT]|\\s+)${Ye.source}(?:${Ze.source})?)?`,`(?:\\[!?(${We.source})\\])?`,`((?:${Qe.source})*)$`].join(``)),et=new RegExp([`^[tT]?${Ye.source}`,`(?:${Ze.source})?`,`(?:\\[!?${We.source}\\])?`,`((?:${Qe.source})*)$`].join(``)),tt=RegExp(`^(${Ge.source})-?(${Ke.source})(?:\\[!?${We.source}\\])?((?:${Qe.source})*)$`),nt=RegExp(`^(?:--)?(${Ke.source})-?(${qe.source})(?:\\[!?${We.source}\\])?((?:${Qe.source})*)$`),rt=/(\d+)(?:[.,](\d{1,9}))?/,it=RegExp(`(?:${rt.source}H)?(?:${rt.source}M)?(?:${rt.source}S)?`),at=RegExp(`^([+-])?P(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)W)?(?:(\\d+)D)?(?:T(?!$)${it.source})?$`,`i`),ot=864e5,st=1e6*ot,ct=6e10,lt=1e8*ot,ut=Ki(lt),dt=l.default.unaryMinus(ut),ft=l.default.add(l.default.subtract(dt,b),d),pt=l.default.subtract(l.default.add(ut,b),d),mt=146097*ot,ht=-271821,gt=275760,_t=Date.UTC(1847,0,1),vt=[`iso8601`,`hebrew`,`islamic`,`islamic-umalqura`,`islamic-tbla`,`islamic-civil`,`islamic-rgsa`,`islamicc`,`persian`,`ethiopic`,`ethioaa`,`ethiopic-amete-alem`,`coptic`,`chinese`,`dangi`,`roc`,`indian`,`buddhist`,`japanese`,`gregory`],yt=new Set([`ACT`,`AET`,`AGT`,`ART`,`AST`,`BET`,`BST`,`CAT`,`CNT`,`CST`,`CTT`,`EAT`,`ECT`,`IET`,`IST`,`JST`,`MIT`,`NET`,`NST`,`PLT`,`PNT`,`PRT`,`PST`,`SST`,`VST`]);function P(e){return typeof e==`object`&&!!e||typeof e==`function`}function bt(e){if(typeof e==`bigint`)throw TypeError(`Cannot convert BigInt to number`);return Number(e)}function xt(e){if(typeof e==`symbol`)throw TypeError(`Cannot convert a Symbol value to a String`);return String(e)}function F(e){let t=bt(e);if(t===0)return 0;if(Number.isNaN(t)||t===1/0||t===-1/0)throw RangeError(`invalid number value`);let n=Math.trunc(t);return n===0?0:n}function St(e,t){let n=F(e);if(n<=0)throw RangeError(t===void 0?`Cannot convert a number less than one to a positive integer`:`property '${t}' cannot be a a number less than one`);return n}function Ct(e){let t=bt(e);if(Number.isNaN(t))throw RangeError(`not a number`);if(t===1/0||t===-1/0)throw RangeError(`infinity is out of range`);if(!function(e){if(typeof e!=`number`||Number.isNaN(e)||e===1/0||e===-1/0)return!1;let t=Math.abs(e);return Math.floor(t)===t}(t))throw RangeError(`unsupported fractional value ${e}`);return t===0?0:t}function wt(e,t){return String(e).padStart(t,`0`)}function I(e){if(typeof e!=`string`)throw TypeError(`expected a string, not ${String(e)}`);return e}function Tt(e,t){if(P(e)){let t=e?.toString();if(typeof t==`string`||typeof t==`number`)return t;throw TypeError(`Cannot convert object to primitive value`)}return e}var Et=[`era`,`eraYear`,`year`,`month`,`monthCode`,`day`,`hour`,`minute`,`second`,`millisecond`,`microsecond`,`nanosecond`,`offset`,`timeZone`],Dt={era:xt,eraYear:F,year:F,month:St,monthCode:function(e){let t=I(Tt(e));if(t.length<3||t.length>4||t[0]!==`M`||`0123456789`.indexOf(t[1])===-1||`0123456789`.indexOf(t[2])===-1||t[1]+t[2]===`00`&&t[3]!==`L`||t[3]!==`L`&&t[3]!==void 0)throw RangeError(`bad month code ${t}; must match M01-M99 or M00L-M99L`);return t},day:St,hour:F,minute:F,second:F,millisecond:F,microsecond:F,nanosecond:F,offset:function(e){let t=I(Tt(e));return xr(t),t},timeZone:er},Ot={hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},kt=[[`years`,`year`,`date`],[`months`,`month`,`date`],[`weeks`,`week`,`date`],[`days`,`day`,`date`],[`hours`,`hour`,`time`],[`minutes`,`minute`,`time`],[`seconds`,`second`,`time`],[`milliseconds`,`millisecond`,`time`],[`microseconds`,`microsecond`,`time`],[`nanoseconds`,`nanosecond`,`time`]],At=Object.fromEntries(kt.map((e=>[e[0],e[1]]))),jt=Object.fromEntries(kt.map((([e,t])=>[t,e]))),Mt=kt.map((([,e])=>e)),Nt={day:st,hour:36e11,minute:6e10,second:1e9,millisecond:1e6,microsecond:1e3,nanosecond:1},Pt=[`days`,`hours`,`microseconds`,`milliseconds`,`minutes`,`months`,`nanoseconds`,`seconds`,`weeks`,`years`],Ft=Intl.DateTimeFormat,It=new Map;function Lt(e){let t=ea(e),n=It.get(t);return n===void 0&&(n=new Ft(`en-us`,{timeZone:t,hour12:!1,era:`short`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}),It.set(t,n)),n}function L(e){return Fe(e,C)&&!Fe(e,O,D)}function R(e){return Fe(e,k,le,de,fe,pe,me,he,ge,_e)}function z(e){return Fe(e,oe)}function B(e){return Fe(e,E)}function V(e){return Fe(e,T)}function H(e){return Fe(e,se)}function Rt(e){return Fe(e,ce)}function U(e){return Fe(e,C,O,D)}function W(e,t){if(!t(e))throw TypeError(`invalid receiver: method called with the wrong type of this-object`)}function zt(e){if(Fe(e,D)||Fe(e,O))throw TypeError(`with() does not support a calendar or timeZone property`);if(B(e))throw TypeError(`with() does not accept Temporal.PlainTime, use withPlainTime() instead`);if(e.calendar!==void 0)throw TypeError(`with() does not support a calendar property`);if(e.timeZone!==void 0)throw TypeError(`with() does not support a timeZone property`)}function Bt(e,t){return t===`never`||t===`auto`&&e===`iso8601`?``:`[${t===`critical`?`!`:``}u-ca=${e}]`}function Vt(e){let t,n,r=!1;for(Qe.lastIndex=0;n=Qe.exec(e);){let{1:i,2:a,3:o}=n;if(a===`u-ca`){if(t===void 0)t=o,r=i===`!`;else if(i===`!`||r)throw RangeError(`Invalid annotations in ${e}: more than one u-ca present with critical flag`)}else if(i===`!`)throw RangeError(`Unrecognized annotation: !${a}=${o}`)}return t}function Ht(e){let t=$e.exec(e);if(!t)throw RangeError(`invalid RFC 9557 string: ${e}`);let n=Vt(t[16]),r=t[1];if(r===`-000000`)throw RangeError(`invalid RFC 9557 string: ${e}`);let i=+r,a=+(t[2]??t[4]??1),o=+(t[3]??t[5]??1),s=t[6]!==void 0,c=+(t[6]??0),l=+(t[7]??t[10]??0),u=+(t[8]??t[11]??0);u===60&&(u=59);let d=(t[9]??t[12]??``)+`000000000`,f=+d.slice(0,3),p=+d.slice(3,6),m=+d.slice(6,9),h,g=!1;t[13]?(h=void 0,g=!0):t[14]&&(h=t[14]);let _=t[15];return Xr(i,a,o,c,l,u,f,p,m),{year:i,month:a,day:o,time:s?{hour:c,minute:l,second:u,millisecond:f,microsecond:p,nanosecond:m}:`start-of-day`,tzAnnotation:_,offset:h,z:g,calendar:n}}function Ut(e){let t=et.exec(e),n,r,i,a,o,s,c;if(t){c=Vt(t[10]),n=+(t[1]??0),r=+(t[2]??t[5]??0),i=+(t[3]??t[6]??0),i===60&&(i=59);let e=(t[4]??t[7]??``)+`000000000`;if(a=+e.slice(0,3),o=+e.slice(3,6),s=+e.slice(6,9),t[8])throw RangeError(`Z designator not supported for PlainTime`)}else{let t,l;if({time:t,z:l,calendar:c}=Ht(e),t===`start-of-day`)throw RangeError(`time is missing in string: ${e}`);if(l)throw RangeError(`Z designator not supported for PlainTime`);({hour:n,minute:r,second:i,millisecond:a,microsecond:o,nanosecond:s}=t)}if(Yr(n,r,i,a,o,s),/[tT ][0-9][0-9]/.test(e))return{hour:n,minute:r,second:i,millisecond:a,microsecond:o,nanosecond:s,calendar:c};try{let{month:t,day:n}=Gt(e);qr(1972,t,n)}catch{try{let{year:t,month:n}=Wt(e);qr(t,n,1)}catch{return{hour:n,minute:r,second:i,millisecond:a,microsecond:o,nanosecond:s,calendar:c}}}throw RangeError(`invalid RFC 9557 time-only string ${e}; may need a T prefix`)}function Wt(e){let t=tt.exec(e),n,r,i,a;if(t){i=Vt(t[3]);let o=t[1];if(o===`-000000`)throw RangeError(`invalid RFC 9557 string: ${e}`);if(n=+o,r=+t[2],a=1,i!==void 0&&i!==`iso8601`)throw RangeError(`YYYY-MM format is only valid with iso8601 calendar`)}else{let t;if({year:n,month:r,calendar:i,day:a,z:t}=Ht(e),t)throw RangeError(`Z designator not supported for PlainYearMonth`)}return{year:n,month:r,calendar:i,referenceISODay:a}}function Gt(e){let t=nt.exec(e),n,r,i,a;if(t){if(i=Vt(t[3]),n=+t[1],r=+t[2],i!==void 0&&i!==`iso8601`)throw RangeError(`MM-DD format is only valid with iso8601 calendar`)}else{let t;if({month:n,day:r,calendar:i,year:a,z:t}=Ht(e),t)throw RangeError(`Z designator not supported for PlainMonthDay`)}return{month:n,day:r,calendar:i,referenceISOYear:a}}var Kt=RegExp(`^${We.source}$`,`i`),qt=RegExp(`^([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])?)?$`);function Jt(e){let t=na.test(e)?`Seconds not allowed in offset time zone`:`Invalid time zone`;throw RangeError(`${t}: ${e}`)}function Yt(e){return Kt.test(e)||Jt(e),qt.test(e)?{offsetMinutes:xr(e)/6e10}:{tzName:e}}function Xt(e,t,n,r){let i=e,a=t,o=n;switch(r){case`reject`:qr(i,a,o);break;case`constrain`:({year:i,month:a,day:o}=Kr(i,a,o))}return{year:i,month:a,day:o}}function Zt(e,t,n,r,i,a,o){let s=e,c=t,l=n,u=r,d=i,f=a;switch(o){case`reject`:Yr(s,c,l,u,d,f);break;case`constrain`:s=Gr(s,0,23),c=Gr(c,0,59),l=Gr(l,0,59),u=Gr(u,0,999),d=Gr(d,0,999),f=Gr(f,0,999)}return{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:f}}function Qt(e){if(!P(e))throw TypeError(`invalid duration-like`);let t={years:void 0,months:void 0,weeks:void 0,days:void 0,hours:void 0,minutes:void 0,seconds:void 0,milliseconds:void 0,microseconds:void 0,nanoseconds:void 0},n=!1;for(let r=0;r<Pt.length;r++){let i=Pt[r],a=e[i];a!==void 0&&(n=!0,t[i]=Ct(a))}if(!n)throw TypeError(`invalid duration-like`);return t}function G({years:e,months:t,weeks:n,days:r},i,a,o){return{years:e,months:o??t,weeks:a??n,days:i??r}}function K(e,t){return{isoDate:e,time:t}}function q(e){return Qi(e,`overflow`,[`constrain`,`reject`],`constrain`)}function $t(e){return Qi(e,`disambiguation`,[`compatible`,`earlier`,`later`,`reject`],`compatible`)}function en(e,t){return Qi(e,`roundingMode`,[`ceil`,`floor`,`expand`,`trunc`,`halfCeil`,`halfFloor`,`halfExpand`,`halfTrunc`,`halfEven`],t)}function tn(e,t){return Qi(e,`offset`,[`prefer`,`use`,`ignore`,`reject`],t)}function nn(e){return Qi(e,`calendarName`,[`auto`,`always`,`never`,`critical`],`auto`)}function rn(e){let t=e.roundingIncrement;if(t===void 0)return 1;let n=F(t);if(n<1||n>1e9)throw RangeError(`roundingIncrement must be at least 1 and at most 1e9, not ${t}`);return n}function an(e,t,n){let r=n?t:t-1;if(e>r)throw RangeError(`roundingIncrement must be at least 1 and less than ${r}, not ${e}`);if(t%e!=0)throw RangeError(`Rounding increment must divide evenly into ${t}`)}function on(e){let t=e.fractionalSecondDigits;if(t===void 0)return`auto`;if(typeof t!=`number`){if(xt(t)!==`auto`)throw RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${t}`);return`auto`}let n=Math.floor(t);if(!Number.isFinite(n)||n<0||n>9)throw RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${t}`);return n}function sn(e,t){switch(e){case`minute`:return{precision:`minute`,unit:`minute`,increment:1};case`second`:return{precision:0,unit:`second`,increment:1};case`millisecond`:return{precision:3,unit:`millisecond`,increment:1};case`microsecond`:return{precision:6,unit:`microsecond`,increment:1};case`nanosecond`:return{precision:9,unit:`nanosecond`,increment:1}}switch(t){case`auto`:return{precision:t,unit:`nanosecond`,increment:1};case 0:return{precision:t,unit:`second`,increment:1};case 1:case 2:case 3:return{precision:t,unit:`millisecond`,increment:10**(3-t)};case 4:case 5:case 6:return{precision:t,unit:`microsecond`,increment:10**(6-t)};case 7:case 8:case 9:return{precision:t,unit:`nanosecond`,increment:10**(9-t)};default:throw RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${t}`)}}var cn=Symbol(`~required~`);function ln(e,t,n,r,i=[]){let a=[];for(let e=0;e<kt.length;e++){let t=kt[e],r=t[1],i=t[2];n!==`datetime`&&n!==i||a.push(r)}a=a.concat(i);let o=r;o===cn?o=void 0:o!==void 0&&a.push(o);let s=[];s=s.concat(a);for(let e=0;e<a.length;e++){let t=jt[a[e]];t!==void 0&&s.push(t)}let c=Qi(e,t,s,o);if(c===void 0&&r===cn)throw RangeError(`${t} is required`);return c&&c in At?At[c]:c}function un(e){let t=e.relativeTo;if(t===void 0)return{};let n,r,i,a,o,s=`option`,c=!1;if(P(t)){if(U(t))return{zonedRelativeTo:t};if(z(t))return{plainRelativeTo:t};if(V(t))return{plainRelativeTo:Mn(A(t,T).isoDate,A(t,D))};i=Yn(t);let e=vn(i,t,[`year`,`month`,`monthCode`,`day`],[`hour`,`minute`,`second`,`millisecond`,`microsecond`,`nanosecond`,`offset`,`timeZone`],[]);({isoDate:n,time:r}=xn(i,e,`constrain`)),{offset:o,timeZone:a}=e,o===void 0&&(s=`wall`)}else{let e,l,u,d,f;if({year:u,month:d,day:f,time:r,calendar:i,tzAnnotation:e,offset:o,z:l}=Ht(I(t)),e)a=er(e),l?s=`exact`:o||(s=`wall`),c=!0;else if(l)throw RangeError(`Z designator not supported for PlainDate relativeTo; either remove the Z or add a bracketed time zone`);i||=`iso8601`,i=$i(i),n={year:u,month:d,day:f}}return a===void 0?{plainRelativeTo:Mn(n,i)}:{zonedRelativeTo:J(kn(n,r,s,s===`option`?xr(o):0,a,`compatible`,`reject`,c),a,i)}}function dn(e){return A(e,k)===0?A(e,le)===0?A(e,ue)===0?A(e,de)===0?A(e,fe)===0?A(e,pe)===0?A(e,me)===0?A(e,he)===0?A(e,ge)===0?`nanosecond`:`microsecond`:`millisecond`:`second`:`minute`:`hour`:`day`:`week`:`month`:`year`}function fn(e,t){return Mt.indexOf(e)>Mt.indexOf(t)?t:e}function pn(e){return e===`year`||e===`month`||e===`week`}function mn(e){return pn(e)||e===`day`?`date`:`time`}function hn(e){return M(`%calendarImpl%`)(e)}function gn(e){return M(`%calendarImpl%`)(A(e,D))}function _n(e,t,n=`date`){let r=Object.create(null),i=hn(e).isoToDate(t,{year:!0,monthCode:!0,day:!0});return r.monthCode=i.monthCode,n!==`month-day`&&n!==`date`||(r.day=i.day),n!==`year-month`&&n!==`date`||(r.year=i.year),r}function vn(e,t,n,r,i){let a=hn(e).extraFields(n),o=n.concat(r,a),s=Object.create(null),c=!1;o.sort();for(let e=0;e<o.length;e++){let n=o[e],r=t[n];if(r!==void 0)c=!0,s[n]=(0,Dt[n])(r);else if(i!==`partial`){if(i.includes(n))throw TypeError(`required property '${n}' missing or undefined`);s[n]=Ot[n]}}if(i===`partial`&&!c)throw TypeError(`no supported properties found`);return s}function yn(e,t=`complete`){let n=[`hour`,`microsecond`,`millisecond`,`minute`,`nanosecond`,`second`],r=!1,i=Object.create(null);for(let a=0;a<n.length;a++){let o=n[a],s=e[o];s===void 0?t===`complete`&&(i[o]=0):(i[o]=F(s),r=!0)}if(!r)throw TypeError(`invalid time-like`);return i}function bn(e,t){if(P(e)){if(z(e))return q(Q(t)),Mn(A(e,w),A(e,D));if(U(e)){let n=ir(A(e,O),A(e,C));return q(Q(t)),Mn(n.isoDate,A(e,D))}if(V(e))return q(Q(t)),Mn(A(e,T).isoDate,A(e,D));let n=Yn(e);return Mn(Zn(n,vn(n,e,[`year`,`month`,`monthCode`,`day`],[],[]),q(Q(t))),n)}let{year:n,month:r,day:i,calendar:a,z:o}=Ht(I(e));if(o)throw RangeError(`Z designator not supported for PlainDate`);return a||=`iso8601`,a=$i(a),q(Q(t)),Mn({year:n,month:r,day:i},a)}function xn(e,t,n){return K(Zn(e,t,n),Zt(t.hour,t.minute,t.second,t.millisecond,t.microsecond,t.nanosecond,n))}function Sn(e,t){let n,r,i;if(P(e)){if(V(e))return q(Q(t)),Pn(A(e,T),A(e,D));if(U(e)){let n=ir(A(e,O),A(e,C));return q(Q(t)),Pn(n,A(e,D))}if(z(e))return q(Q(t)),Pn(K(A(e,w),{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),A(e,D));i=Yn(e);let a=vn(i,e,[`year`,`month`,`monthCode`,`day`],[`hour`,`minute`,`second`,`millisecond`,`microsecond`,`nanosecond`],[]),o=q(Q(t));({isoDate:n,time:r}=xn(i,a,o))}else{let a,o,s,c;if({year:o,month:s,day:c,time:r,calendar:i,z:a}=Ht(I(e)),a)throw RangeError(`Z designator not supported for PlainDateTime`);r===`start-of-day`&&(r={deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),Xr(o,s,c,r.hour,r.minute,r.second,r.millisecond,r.microsecond,r.nanosecond),i||=`iso8601`,i=$i(i),q(Q(t)),n={year:o,month:s,day:c}}return Pn(K(n,r),i)}function Cn(e){let t=M(`%Temporal.Duration%`);if(R(e))return new t(A(e,k),A(e,le),A(e,ue),A(e,de),A(e,fe),A(e,pe),A(e,me),A(e,he),A(e,ge),A(e,_e));if(!P(e))return function(e){let{years:t,months:n,weeks:r,days:i,hours:a,minutes:o,seconds:s,milliseconds:c,microseconds:l,nanoseconds:u}=function(e){let t=at.exec(e);if(!t||t.every(((e,t)=>t<2||e===void 0)))throw RangeError(`invalid duration: ${e}`);let n=t[1]===`-`?-1:1,r=t[2]===void 0?0:F(t[2])*n,i=t[3]===void 0?0:F(t[3])*n,a=t[4]===void 0?0:F(t[4])*n,o=t[5]===void 0?0:F(t[5])*n,s=t[6]===void 0?0:F(t[6])*n,c=t[7],l=t[8],u=t[9],d=t[10],f=t[11],p=0,m=0,h=0;if(c!==void 0){if(l??u??d??f)throw RangeError(`only the smallest unit can be fractional`);h=3600*F((c+`000000000`).slice(0,9))*n}else if(p=l===void 0?0:F(l)*n,u!==void 0){if(d??f)throw RangeError(`only the smallest unit can be fractional`);h=60*F((u+`000000000`).slice(0,9))*n}else m=d===void 0?0:F(d)*n,f!==void 0&&(h=F((f+`000000000`).slice(0,9))*n);let g=h%1e3,_=Math.trunc(h/1e3)%1e3,v=Math.trunc(h/1e6)%1e3;return m+=Math.trunc(h/1e9)%60,p+=Math.trunc(h/6e10),ti(r,i,a,o,s,p,m,v,_,g),{years:r,months:i,weeks:a,days:o,hours:s,minutes:p,seconds:m,milliseconds:v,microseconds:_,nanoseconds:g}}(e);return new(M(`%Temporal.Duration%`))(t,n,r,i,a,o,s,c,l,u)}(I(e));let n={years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0},r=Qt(e);for(let e=0;e<Pt.length;e++){let t=Pt[e],i=r[t];i!==void 0&&(n[t]=i)}return new t(n.years,n.months,n.weeks,n.days,n.hours,n.minutes,n.seconds,n.milliseconds,n.microseconds,n.nanoseconds)}function wn(e){let t;if(P(e)){if(L(e)||U(e))return Hn(A(e,C));t=Tt(e)}else t=e;let{year:n,month:r,day:i,time:a,offset:o,z:s}=function(e){let t=Ht(e);if(!t.z&&!t.offset)throw RangeError(`Temporal.Instant requires a time zone offset`);return t}(I(t)),{hour:c=0,minute:l=0,second:u=0,millisecond:d=0,microsecond:f=0,nanosecond:p=0}=a===`start-of-day`?{}:a,m=Vr(n,r,i,c,l,u,d,f,p-(s?0:xr(o)));return ci(m.isoDate),Hn(X(m))}function Tn(e,t){if(P(e)){if(Rt(e))return q(Q(t)),In(A(e,w),A(e,D));let n;return Fe(e,D)?n=A(e,D):(n=e.calendar,n===void 0&&(n=`iso8601`),n=Jn(n)),In($n(n,vn(n,e,[`year`,`month`,`monthCode`,`day`],[],[]),q(Q(t))),n)}let{month:n,day:r,referenceISOYear:i,calendar:a}=Gt(I(e));if(a===void 0&&(a=`iso8601`),a=$i(a),q(Q(t)),a===`iso8601`)return In({year:1972,month:n,day:r},a);let o={year:i,month:n,day:r};return Jr(o),o=$n(a,_n(a,o,`month-day`),`constrain`),In(o,a)}function En(e,t){let n;if(P(e)){if(B(e))return q(Q(t)),Rn(A(e,E));if(V(e))return q(Q(t)),Rn(A(e,T).time);if(U(e)){let n=ir(A(e,O),A(e,C));return q(Q(t)),Rn(n.time)}let{hour:r,minute:i,second:a,millisecond:o,microsecond:s,nanosecond:c}=yn(e);n=Zt(r,i,a,o,s,c,q(Q(t)))}else n=Ut(I(e)),q(Q(t));return Rn(n)}function Dn(e){return e===void 0?{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}:A(En(e),E)}function On(e,t){if(P(e)){if(H(e))return q(Q(t)),Bn(A(e,w),A(e,D));let n=Yn(e);return Bn(Qn(n,vn(n,e,[`year`,`month`,`monthCode`],[],[]),q(Q(t))),n)}let{year:n,month:r,referenceISODay:i,calendar:a}=Wt(I(e));a===void 0&&(a=`iso8601`),a=$i(a),q(Q(t));let o={year:n,month:r,day:i};return ei(o),o=Qn(a,_n(a,o,`year-month`),`constrain`),Bn(o,a)}function kn(e,t,n,r,i,a,o,s){if(t===`start-of-day`)return sr(i,e);let c=K(e,t);if(n===`wall`||o===`ignore`)return Y(i,c,a);if(n===`exact`||o===`use`){let n=Vr(e.year,e.month,e.day,t.hour,t.minute,t.second,t.millisecond,t.microsecond,t.nanosecond-r);ci(n.isoDate);let i=X(n);return $r(i),i}ci(e);let u=X(c),d=or(i,c);for(let e=0;e<d.length;e++){let t=d[e],n=l.default.toNumber(l.default.subtract(u,t)),i=Fi(n,6e10,`halfExpand`);if(n===r||s&&i===r)return t}if(o===`reject`){let e=rr(r),t=gr(c,`iso8601`,`auto`);throw RangeError(`Offset ${e} is invalid for ${t} in ${i}`)}return ar(d,i,c,a)}function An(e,t){let n,r,i,a,o,s,c,l=!1,u=`option`;if(P(e)){if(U(e)){let n=Q(t);return $t(n),tn(n,`reject`),q(n),J(A(e,C),A(e,O),A(e,D))}o=Yn(e);let l=vn(o,e,[`year`,`month`,`monthCode`,`day`],[`hour`,`minute`,`second`,`millisecond`,`microsecond`,`nanosecond`,`offset`,`timeZone`],[`timeZone`]);({offset:a,timeZone:i}=l),a===void 0&&(u=`wall`);let d=Q(t);s=$t(d),c=tn(d,`reject`);let f=q(d);({isoDate:n,time:r}=xn(o,l,f))}else{let d,f,p,m,h;({year:p,month:m,day:h,time:r,tzAnnotation:d,offset:a,z:f,calendar:o}=function(e){let t=Ht(e);if(!t.tzAnnotation)throw RangeError(`Temporal.ZonedDateTime requires a time zone ID in brackets`);return t}(I(e))),i=er(d),f?u=`exact`:a||(u=`wall`),o||=`iso8601`,o=$i(o),l=!0;let g=Q(t);s=$t(g),c=tn(g,`reject`),q(g),n={year:p,month:m,day:h}}let d=0;return u===`option`&&(d=xr(a)),J(kn(n,r,u,d,i,s,c,l),i,o)}function jn(e,t,n){Jr(t),Pe(e),j(e,w,t),j(e,D,n),j(e,oe,!0)}function Mn(e,t){let n=M(`%Temporal.PlainDate%`),r=Object.create(n.prototype);return jn(r,e,t),r}function Nn(e,t,n){Zr(t),Pe(e),j(e,T,t),j(e,D,n)}function Pn(e,t){let n=M(`%Temporal.PlainDateTime%`),r=Object.create(n.prototype);return Nn(r,e,t),r}function Fn(e,t,n){Jr(t),Pe(e),j(e,w,t),j(e,D,n),j(e,ce,!0)}function In(e,t){let n=M(`%Temporal.PlainMonthDay%`),r=Object.create(n.prototype);return Fn(r,e,t),r}function Ln(e,t){Pe(e),j(e,E,t)}function Rn(e){let t=M(`%Temporal.PlainTime%`),n=Object.create(t.prototype);return Ln(n,e),n}function zn(e,t,n){ei(t),Pe(e),j(e,w,t),j(e,D,n),j(e,se,!0)}function Bn(e,t){let n=M(`%Temporal.PlainYearMonth%`),r=Object.create(n.prototype);return zn(r,e,t),r}function Vn(e,t){$r(t),Pe(e),j(e,C,t)}function Hn(e){let t=M(`%Temporal.Instant%`),n=Object.create(t.prototype);return Vn(n,e),n}function Un(e,t,n,r){$r(t),Pe(e),j(e,C,t),j(e,O,n),j(e,D,r)}function J(e,t,n=`iso8601`){let r=M(`%Temporal.ZonedDateTime%`),i=Object.create(r.prototype);return Un(i,e,t,n),i}function Wn(e){return Et.filter((t=>e[t]!==void 0))}function Gn(e,t,n){let r=Wn(n),i=hn(e).fieldKeysToIgnore(r),a=Object.create(null),o=Wn(t);for(let e=0;e<Et.length;e++){let s,c=Et[e];o.includes(c)&&!i.includes(c)&&(s=t[c]),r.includes(c)&&(s=n[c]),s!==void 0&&(a[c]=s)}return a}function Kn(e,t,n,r){let i=hn(e).dateAdd(t,n,r);return Jr(i),i}function qn(e,t,n,r){return hn(e).dateUntil(t,n,r)}function Jn(e){if(P(e)&&Fe(e,D))return A(e,D);let t=I(e);try{return $i(t)}catch{}let n;try{({calendar:n}=Ht(t))}catch{try{({calendar:n}=Ut(t))}catch{try{({calendar:n}=Wt(t))}catch{({calendar:n}=Gt(t))}}}return n||=`iso8601`,$i(n)}function Yn(e){if(Fe(e,D))return A(e,D);let{calendar:t}=e;return t===void 0?`iso8601`:Jn(t)}function Xn(e,t){return $i(e)===$i(t)}function Zn(e,t,n){let r=hn(e);r.resolveFields(t,`date`);let i=r.dateToISO(t,n);return Jr(i),i}function Qn(e,t,n){let r=hn(e);r.resolveFields(t,`year-month`),t.day=1;let i=r.dateToISO(t,n);return ei(i),i}function $n(e,t,n){let r=hn(e);r.resolveFields(t,`month-day`);let i=r.monthDayToISOReferenceDate(t,n);return Jr(i),i}function er(e){if(P(e)&&U(e))return A(e,O);let t=I(e);if(t===`UTC`)return`UTC`;let{tzName:n,offsetMinutes:r}=function(e){let{tzAnnotation:t,offset:n,z:r}=function(e){if(Kt.test(e))return{tzAnnotation:e,offset:void 0,z:!1};try{let{tzAnnotation:t,offset:n,z:r}=Ht(e);if(r||t||n)return{tzAnnotation:t,offset:n,z:r}}catch{}Jt(e)}(e);return t?Yt(t):r?Yt(`UTC`):n?Yt(n):void 0}(t);if(r!==void 0)return Dr(r);let i=wr(n);if(!i)throw RangeError(`Unrecognized time zone ${n}`);return i.identifier}function tr(e,t){if(e===t)return!0;let n=Yt(e).offsetMinutes,r=Yt(t).offsetMinutes;if(n===void 0&&r===void 0){let n=wr(t);if(!n)return!1;let r=wr(e);return!!r&&r.primaryIdentifier===n.primaryIdentifier}return n===r}function nr(e,t){let n=Yt(e).offsetMinutes;return n===void 0?Er(e,t):6e10*n}function rr(e){let t=e<0?`-`:`+`,n=Math.abs(e),r=Math.floor(n/36e11),i=Math.floor(n/6e10)%60,a=Math.floor(n/1e9)%60,o=n%1e9;return`${t}${dr(r,i,a,o,a===0&&o===0?`minute`:`auto`)}`}function ir(e,t){let n=nr(e,t),{isoDate:{year:r,month:i,day:a},time:{hour:o,minute:s,second:c,millisecond:l,microsecond:u,nanosecond:d}}=Ar(t);return Vr(r,i,a,o,s,c,l,u,d+n)}function Y(e,t,n){return ar(or(e,t),e,t,n)}function ar(e,t,n,r){let i=e.length;if(i===1)return e[0];if(i)switch(r){case`compatible`:case`earlier`:return e[0];case`later`:return e[i-1];case`reject`:throw RangeError(`multiple instants found`)}if(r===`reject`)throw RangeError(`multiple instants found`);let a=X(n),o=l.default.subtract(a,b);$r(o);let s=nr(t,o),c=l.default.add(a,b);$r(c);let u=nr(t,c)-s;switch(r){case`earlier`:{let e=N.fromComponents(0,0,0,0,0,-u),r=Ti(n.time,e);return or(t,K(Br(n.isoDate.year,n.isoDate.month,n.isoDate.day+r.deltaDays),r))[0]}case`compatible`:case`later`:{let e=N.fromComponents(0,0,0,0,0,u),r=Ti(n.time,e),i=or(t,K(Br(n.isoDate.year,n.isoDate.month,n.isoDate.day+r.deltaDays),r));return i[i.length-1]}}}function or(e,t){if(e===`UTC`)return ci(t.isoDate),[X(t)];let n=Yt(e).offsetMinutes;if(n!==void 0){let e=Vr(t.isoDate.year,t.isoDate.month,t.isoDate.day,t.time.hour,t.time.minute-n,t.time.second,t.time.millisecond,t.time.microsecond,t.time.nanosecond);ci(e.isoDate);let r=X(e);return $r(r),[r]}return ci(t.isoDate),function(e,t){let n=X(t),r=l.default.subtract(n,b);l.default.lessThan(r,dt)&&(r=n);let i=l.default.add(n,b);l.default.greaterThan(i,ut)&&(i=n);let a=Er(e,r),o=Er(e,i);return(a===o?[a]:[a,o]).map((r=>{let i=l.default.subtract(n,l.default.BigInt(r));if(Ui(t,function(e,t){let{epochMilliseconds:n,time:{millisecond:r,microsecond:i,nanosecond:a}}=Ar(t),{year:o,month:s,day:c,hour:l,minute:u,second:d}=Nr(e,n);return Vr(o,s,c,l,u,d,r,i,a)}(e,i))===0)return $r(i),i})).filter((e=>e!==void 0))}(e,t)}function sr(e,t){let n=K(t,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),r=or(e,n);if(r.length)return r[0];let i=X(n),a=l.default.subtract(i,b);return $r(a),jr(e,a)}function cr(e){let t;return t=e<0||e>9999?(e<0?`-`:`+`)+wt(Math.abs(e),6):wt(e,4),t}function lr(e){return wt(e,2)}function ur(e,t){let n;if(t===`auto`){if(e===0)return``;n=wt(e,9).replace(/0+$/,``)}else{if(t===0)return``;n=wt(e,9).slice(0,t)}return`.${n}`}function dr(e,t,n,r,i){let a=`${lr(e)}:${lr(t)}`;return i===`minute`||(a+=`:${lr(n)}`,a+=ur(r,i)),a}function fr(e,t,n){let r=t;r===void 0&&(r=`UTC`);let i=A(e,C),a=gr(ir(r,i),`iso8601`,n,`never`),o=`Z`;return t!==void 0&&(o=Or(nr(r,i))),`${a}${o}`}function pr(e,t){let n=A(e,k),r=A(e,le),i=A(e,ue),a=A(e,de),o=A(e,fe),s=A(e,pe),c=Ir(e),l=``;n!==0&&(l+=`${Math.abs(n)}Y`),r!==0&&(l+=`${Math.abs(r)}M`),i!==0&&(l+=`${Math.abs(i)}W`),a!==0&&(l+=`${Math.abs(a)}D`);let u=``;o!==0&&(u+=`${Math.abs(o)}H`),s!==0&&(u+=`${Math.abs(s)}M`);let d=N.fromComponents(0,0,A(e,me),A(e,he),A(e,ge),A(e,_e));d.isZero()&&![`second`,`millisecond`,`microsecond`,`nanosecond`].includes(dn(e))&&t===`auto`||(u+=`${Math.abs(d.sec)}${ur(Math.abs(d.subsec),t)}S`);let f=`${c<0?`-`:``}P${l}`;return u&&(f=`${f}T${u}`),f}function mr(e,t=`auto`){let{year:n,month:r,day:i}=A(e,w);return`${cr(n)}-${lr(r)}-${lr(i)}${Bt(A(e,D),t)}`}function hr({hour:e,minute:t,second:n,millisecond:r,microsecond:i,nanosecond:a},o){return dr(e,t,n,1e6*r+1e3*i+a,o)}function gr(e,t,n,r=`auto`){let{isoDate:{year:i,month:a,day:o},time:{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:f}}=e;return`${cr(i)}-${lr(a)}-${lr(o)}T${dr(s,c,l,1e6*u+1e3*d+f,n)}${Bt(t,r)}`}function _r(e,t=`auto`){let{year:n,month:r,day:i}=A(e,w),a=`${lr(r)}-${lr(i)}`,o=A(e,D);t!==`always`&&t!==`critical`&&o===`iso8601`||(a=`${cr(n)}-${a}`);let s=Bt(o,t);return s&&(a+=s),a}function vr(e,t=`auto`){let{year:n,month:r,day:i}=A(e,w),a=`${cr(n)}-${lr(r)}`,o=A(e,D);t!==`always`&&t!==`critical`&&o===`iso8601`||(a+=`-${lr(i)}`);let s=Bt(o,t);return s&&(a+=s),a}function yr(e,t,n=`auto`,r=`auto`,i=`auto`,a=void 0){let o=A(e,C);if(a){let{unit:e,increment:t,roundingMode:n}=a;o=Ii(o,t,e,n)}let s=A(e,O),c=nr(s,o),l=gr(ir(s,o),`iso8601`,t,`never`);return i!==`never`&&(l+=Or(c)),r!==`never`&&(l+=`[${r===`critical`?`!`:``}${s}]`),l+=Bt(A(e,D),n),l}function br(e){return qt.test(e)}function xr(e){let t=ra.exec(e);if(!t)throw RangeError(`invalid time zone offset: ${e}; must match ±HH:MM[:SS.SSSSSSSSS]`);return(t[1]===`-`?-1:1)*(1e9*(60*(60*t[2]+ +(t[3]||0))+ +(t[4]||0))+ +((t[5]||0)+`000000000`).slice(0,9))}var Sr,Cr=Object.assign(Object.create(null),{"/":!0,"-":!0,_:!0});function wr(e){if(Sr===void 0){let e=Intl.supportedValuesOf?.(`timeZone`);if(e){Sr=new Map;for(let t=0;t<e.length;t++){let n=e[t];Sr.set(ea(n),n)}}else Sr=null}let t=ea(e),n=Sr?.get(t);if(n)return{identifier:n,primaryIdentifier:n};try{n=Lt(e).resolvedOptions().timeZone}catch{return}if(t===`antarctica/south_pole`&&(n=`Antarctica/McMurdo`),yt.has(e))throw RangeError(`${e} is a legacy time zone identifier from ICU. Use ${n} instead`);let r=[...t].map(((e,n)=>n===0||Cr[t[n-1]]?e.toUpperCase():e)).join(``).split(`/`);if(r.length===1)return t===`gb-eire`?{identifier:`GB-Eire`,primaryIdentifier:n}:{identifier:t.length<=3||/[-0-9]/.test(t)?t.toUpperCase():r[0],primaryIdentifier:n};if(r[0]===`Etc`)return{identifier:`Etc/${[`Zulu`,`Greenwich`,`Universal`].includes(r[1])?r[1]:r[1].toUpperCase()}`,primaryIdentifier:n};if(r[0]===`Us`)return{identifier:`US/${r[1]}`,primaryIdentifier:n};let i=new Map([[`Act`,`ACT`],[`Lhi`,`LHI`],[`Nsw`,`NSW`],[`Dar_Es_Salaam`,`Dar_es_Salaam`],[`Port_Of_Spain`,`Port_of_Spain`],[`Port-Au-Prince`,`Port-au-Prince`],[`Isle_Of_Man`,`Isle_of_Man`],[`Comodrivadavia`,`ComodRivadavia`],[`Knox_In`,`Knox_IN`],[`Dumontdurville`,`DumontDUrville`],[`Mcmurdo`,`McMurdo`],[`Denoronha`,`DeNoronha`],[`Easterisland`,`EasterIsland`],[`Bajanorte`,`BajaNorte`],[`Bajasur`,`BajaSur`]]);return r[1]=i.get(r[1])??r[1],r.length>2&&(r[2]=i.get(r[2])??r[2]),{identifier:r.join(`/`),primaryIdentifier:n}}function Tr(e,t){let{year:n,month:r,day:i,hour:a,minute:o,second:s}=Nr(e,t),c=t%1e3;return c<0&&(c+=1e3),1e6*(kr({isoDate:{year:n,month:r,day:i},time:{hour:a,minute:o,second:s,millisecond:c}})-t)}function Er(e,t){return Tr(e,Gi(t,`floor`))}function Dr(e){let t=e<0?`-`:`+`,n=Math.abs(e);return`${t}${dr(Math.floor(n/60),n%60,0,0,`minute`)}`}function Or(e){return Dr(Fi(e,ct,`halfExpand`)/6e10)}function kr({isoDate:{year:e,month:t,day:n},time:{hour:r,minute:i,second:a,millisecond:o}}){let s=e%400,c=(e-s)/400,l=new Date;return l.setUTCHours(r,i,a,o),l.setUTCFullYear(s,t-1,n),l.getTime()+mt*c}function X(e){let t=kr(e),n=1e3*e.time.microsecond+e.time.nanosecond;return l.default.add(Ki(t),l.default.BigInt(n))}function Ar(e){let t=Gi(e,`trunc`),n=l.default.toNumber(l.default.remainder(e,_));n<0&&(n+=1e6,--t);let r=Math.floor(n/1e3)%1e3,i=n%1e3,a=new Date(t);return{epochMilliseconds:t,isoDate:{year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate()},time:{hour:a.getUTCHours(),minute:a.getUTCMinutes(),second:a.getUTCSeconds(),millisecond:a.getUTCMilliseconds(),microsecond:r,nanosecond:i}}}function jr(e,t){if(e===`UTC`)return null;let n=Gi(t,`floor`);if(n<_t)return jr(e,Ki(_t));let r=Math.max(n,Date.now())+366*ot*3,i=n,a=Tr(e,i),o=i,s=a;for(;a===s&&i<r;){if(o=i+2*ot*7,o>lt)return null;s=Tr(e,o),a===s&&(i=o)}return a===s?null:Ki(ia((t=>Tr(e,t)),i,o,a,s))}function Mr(e,t){if(e===`UTC`)return null;let n=Gi(t,`ceil`),r=Date.now(),i=r+366*ot*3;if(n>i){let t=Mr(e,Ki(i));if(t===null||l.default.lessThan(t,Ki(r)))return t}if(e===`Africa/Casablanca`||e===`Africa/El_Aaiun`){let t=Date.UTC(2088,0,1);if(t<n)return Mr(e,Ki(t))}let a=n-1;if(a<_t)return null;let o=Tr(e,a),s=a,c=o;for(;o===c&&a>_t;){if(s=a-2*ot*7,s<_t)return null;c=Tr(e,s),o===c&&(a=s)}return o===c?null:Ki(ia((t=>Tr(e,t)),s,a,c,o))}function Nr(e,t){return function(e){let t=e.split(/[^\w]+/);if(t.length!==7)throw RangeError(`expected 7 parts in "${e}`);let n=+t[0],r=+t[1],i=+t[2],a=t[3];if(a[0]===`b`||a[0]===`B`)i=1-i;else if(a[0]!==`a`&&a[0]!==`A`)throw RangeError(`Unknown era ${a} in "${e}`);let o=t[4]===`24`?0:+t[4],s=+t[5],c=+t[6];if(!(Number.isFinite(i)&&Number.isFinite(n)&&Number.isFinite(r)&&Number.isFinite(o)&&Number.isFinite(s)&&Number.isFinite(c)))throw RangeError(`Invalid number in "${e}`);return{year:i,month:n,day:r,hour:o,minute:s,second:c}}(Lt(e).format(t))}function Pr(e){return e!==void 0&&!(e%4!=0||e%100==0&&e%400!=0)}function Fr(e,t){return{standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]}[Pr(e)?`leapyear`:`standard`][t-1]}function Ir(e){let t=[A(e,k),A(e,le),A(e,ue),A(e,de),A(e,fe),A(e,pe),A(e,me),A(e,he),A(e,ge),A(e,_e)];for(let e=0;e<t.length;e++){let n=t[e];if(n!==0)return n<0?-1:1}return 0}function Lr(e){let t=[`years`,`months`,`weeks`,`days`];for(let n=0;n<t.length;n++){let r=e[t[n]];if(r!==0)return r<0?-1:1}return 0}function Rr(e){let t=Lr(e.date);return t===0?e.time.sign():t}function zr(e,t){let n=e,r=t;if(!Number.isFinite(n)||!Number.isFinite(r))throw RangeError(`infinity is out of range`);return--r,n+=Math.floor(r/12),r%=12,r<0&&(r+=12),r+=1,{year:n,month:r}}function Br(e,t,n){let r=e,i=t,a=n;if(!Number.isFinite(a))throw RangeError(`infinity is out of range`);({year:r,month:i}=zr(r,i));let o=146097;if(Math.abs(a)>o){let e=Math.trunc(a/o);r+=400*e,a-=e*o}let s=0,c=i>2?r:r-1;for(;s=Pr(c)?366:365,a<-s;)--r,--c,a+=s;for(c+=1;s=Pr(c)?366:365,a>s;)r+=1,c+=1,a-=s;for(;a<1;)({year:r,month:i}=zr(r,i-1)),a+=Fr(r,i);for(;a>Fr(r,i);)a-=Fr(r,i),{year:r,month:i}=zr(r,i+1);return{year:r,month:i,day:a}}function Vr(e,t,n,r,i,a,o,s,c){let l=Hr(r,i,a,o,s,c);return K(Br(e,t,n+l.deltaDays),l)}function Hr(e,t,n,r,i,a){let o,s=e,c=t,l=n,u=r,d=i,f=a;({div:o,mod:f}=ze(f,3)),d+=o,f<0&&(--d,f+=1e3),{div:o,mod:d}=ze(d,3),u+=o,d<0&&(--u,d+=1e3),l+=Math.trunc(u/1e3),u%=1e3,u<0&&(--l,u+=1e3),c+=Math.trunc(l/60),l%=60,l<0&&(--c,l+=60),s+=Math.trunc(c/60),c%=60,c<0&&(--s,c+=60);let p=Math.trunc(s/24);return s%=24,s<0&&(--p,s+=24),p+=0,s+=0,c+=0,l+=0,u+=0,d+=0,f+=0,{deltaDays:p,hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:f}}function Ur(e,t){let n=G(e,0);if(Lr(n)===0)return e.days;let r=A(t,w),i=Kn(A(t,D),r,n,`constrain`),a=si(r.year,r.month-1,r.day),o=si(i.year,i.month-1,i.day)-a;return e.days+o}function Wr(e){return new(M(`%Temporal.Duration%`))(-A(e,k),-A(e,le),-A(e,ue),-A(e,de),-A(e,fe),-A(e,pe),-A(e,me),-A(e,he),-A(e,ge),-A(e,_e))}function Gr(e,t,n){return Math.min(n,Math.max(t,e))}function Kr(e,t,n){let r=Gr(t,1,12);return{year:e,month:r,day:Gr(n,1,Fr(e,r))}}function Z(e,t,n){if(e<t||e>n)throw RangeError(`value out of range: ${t} <= ${e} <= ${n}`)}function qr(e,t,n){Z(t,1,12),Z(n,1,Fr(e,t))}function Jr(e){Zr(K(e,{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}))}function Yr(e,t,n,r,i,a){Z(e,0,23),Z(t,0,59),Z(n,0,59),Z(r,0,999),Z(i,0,999),Z(a,0,999)}function Xr(e,t,n,r,i,a,o,s,c){qr(e,t,n),Yr(r,i,a,o,s,c)}function Zr(e){let t=X(e);(l.default.lessThan(t,ft)||l.default.greaterThan(t,pt))&&$r(t)}function Qr(e){X(e)}function $r(e){if(l.default.lessThan(e,dt)||l.default.greaterThan(e,ut))throw RangeError(`date/time value is outside of supported range`)}function ei({year:e,month:t}){Z(e,ht,gt),e===ht?Z(t,4,12):e===gt&&Z(t,1,9)}function ti(e,t,n,r,i,a,o,s,c,l){let u=0,d=[e,t,n,r,i,a,o,s,c,l];for(let e=0;e<d.length;e++){let t=d[e];if(t===1/0||t===-1/0)throw RangeError(`infinite values not allowed as duration fields`);if(t!==0){let e=t<0?-1:1;if(u!==0&&e!==u)throw RangeError(`mixed-sign values not allowed as duration fields`);u=e}}if(Math.abs(e)>=2**32||Math.abs(t)>=2**32||Math.abs(n)>=2**32)throw RangeError(`years, months, and weeks must be < 2³²`);let f=ze(s,3),p=ze(c,6),m=ze(l,9),h=ze(1e6*f.mod+1e3*p.mod+m.mod,9).div,g=86400*r+3600*i+60*a+o+f.div+p.div+m.div+h;if(!Number.isSafeInteger(g))throw RangeError(`total of duration time units cannot exceed 9007199254740991.999999999 s`)}function ni(e){return{date:{years:A(e,k),months:A(e,le),weeks:A(e,ue),days:A(e,de)},time:N.fromComponents(A(e,fe),A(e,pe),A(e,me),A(e,he),A(e,ge),A(e,_e))}}function ri(e){let t=N.fromComponents(A(e,fe),A(e,pe),A(e,me),A(e,he),A(e,ge),A(e,_e)).add24HourDays(A(e,de));return{date:{years:A(e,k),months:A(e,le),weeks:A(e,ue),days:0},time:t}}function ii(e){let t=ri(e),n=Math.trunc(t.time.sec/86400);return ti(t.date.years,t.date.months,t.date.weeks,n,0,0,0,0,0,0),{...t.date,days:n}}function ai(e,t){let n=e.time.sign(),r=e.time.abs().subsec,i=0,a=0,o=e.time.abs().sec,s=0,c=0,l=0;switch(t){case`year`:case`month`:case`week`:case`day`:i=Math.trunc(r/1e3),r%=1e3,a=Math.trunc(i/1e3),i%=1e3,o+=Math.trunc(a/1e3),a%=1e3,s=Math.trunc(o/60),o%=60,c=Math.trunc(s/60),s%=60,l=Math.trunc(c/24),c%=24;break;case`hour`:i=Math.trunc(r/1e3),r%=1e3,a=Math.trunc(i/1e3),i%=1e3,o+=Math.trunc(a/1e3),a%=1e3,s=Math.trunc(o/60),o%=60,c=Math.trunc(s/60),s%=60;break;case`minute`:i=Math.trunc(r/1e3),r%=1e3,a=Math.trunc(i/1e3),i%=1e3,o+=Math.trunc(a/1e3),a%=1e3,s=Math.trunc(o/60),o%=60;break;case`second`:i=Math.trunc(r/1e3),r%=1e3,a=Math.trunc(i/1e3),i%=1e3,o+=Math.trunc(a/1e3),a%=1e3;break;case`millisecond`:i=Math.trunc(r/1e3),r%=1e3,a=Be(o,3,Math.trunc(i/1e3)),i%=1e3,o=0;break;case`microsecond`:i=Be(o,6,Math.trunc(r/1e3)),r%=1e3,o=0;break;case`nanosecond`:r=Be(o,9,r),o=0}return new(M(`%Temporal.Duration%`))(e.date.years,e.date.months,e.date.weeks,e.date.days+n*l,n*c,n*s,n*o,n*a,n*i,n*r)}function oi(e,t){return Lr(e),t.sign(),{date:e,time:t}}function si(e,t,n){return kr({isoDate:{year:e,month:t+1,day:n},time:{hour:0,minute:0,second:0,millisecond:0}})/ot}function ci({year:e,month:t,day:n}){if(Math.abs(si(e,t-1,n))>1e8)throw RangeError(`date/time value is outside the supported range`)}function li(e,t){let n=t.hour-e.hour,r=t.minute-e.minute,i=t.second-e.second,a=t.millisecond-e.millisecond,o=t.microsecond-e.microsecond,s=t.nanosecond-e.nanosecond;return N.fromComponents(n,r,i,a,o,s)}function ui(e,t,n,r,i){let a=N.fromEpochNsDiff(t,e);return a=zi(a,n,r,i),oi({years:0,months:0,weeks:0,days:0},a)}function di(e,t,n,r){Qr(e),Qr(t);let i=li(e.time,t.time),a=i.sign(),o=Vi(e.isoDate,t.isoDate),s=t.isoDate;o===a&&(s=Br(s.year,s.month,s.day+a),i=i.add24HourDays(-a));let c=fn(`day`,r),l=qn(n,e.isoDate,s,c);return r!==c&&(i=i.add24HourDays(l.days),l.days=0),oi(l,i)}function fi(e,t,n,r,i){let a=l.default.subtract(t,e);if(l.default.equal(a,u))return{date:{years:0,months:0,weeks:0,days:0},time:N.ZERO};let o=l.default.lessThan(a,u)?-1:1,s=ir(n,e),c=ir(n,t),d,f=0,p=o===1?2:1,m=li(s.time,c.time);for(m.sign()===-o&&f++;f<=p;f++){d=K(Br(c.isoDate.year,c.isoDate.month,c.isoDate.day-f*o),s.time);let e=Y(n,d,`compatible`);if(m=N.fromEpochNsDiff(t,e),m.sign()!==-o)break}let h=fn(`day`,i);return oi(qn(r,s.isoDate,d.isoDate,h),m)}function pi(e,t,n,r,i,a,o,s,c){let u,d,f,p,m=t;switch(s){case`year`:{let t=Fi(m.date.years,o,`trunc`);u=t,d=t+o*e,f={years:u,months:0,weeks:0,days:0},p={...f,years:d};break}case`month`:{let t=Fi(m.date.months,o,`trunc`);u=t,d=t+o*e,f=G(m.date,0,0,u),p=G(m.date,0,0,d);break}case`week`:{let t=G(m.date,0,0),n=Kn(a,r.isoDate,t,`constrain`),i=qn(a,n,Br(n.year,n.month,n.day+m.date.days),`week`),s=Fi(m.date.weeks+i.weeks,o,`trunc`);u=s,d=s+o*e,f=G(m.date,0,u),p=G(m.date,0,d);break}case`day`:{let t=Fi(m.date.days,o,`trunc`);u=t,d=t+o*e,f=G(m.date,u),p=G(m.date,d);break}}let h=Kn(a,r.isoDate,f,`constrain`),g=Kn(a,r.isoDate,p,`constrain`),_,v,y=K(h,r.time),ee=K(g,r.time);i?(_=Y(i,y,`compatible`),v=Y(i,ee,`compatible`)):(_=X(y),v=X(ee));let b=N.fromEpochNsDiff(n,_),x=N.fromEpochNsDiff(v,_),te=Ve(c,e<0?`negative`:`positive`),ne=b.add(b).abs().subtract(x.abs()).sign(),S=Math.abs(u)/o%2==0,re=b.isZero()?Math.abs(u):b.cmp(x)?He(Math.abs(u),Math.abs(d),ne,S,te):Math.abs(d),ie=new N(l.default.add(l.default.multiply(x.totalNs,l.default.BigInt(u)),l.default.multiply(b.totalNs,l.default.BigInt(o*e)))).fdiv(x.totalNs),ae=re===Math.abs(d);return m={date:ae?p:f,time:N.ZERO},{nudgeResult:{duration:m,nudgedEpochNs:ae?v:_,didExpandCalendarUnit:ae},total:ie}}function mi(e,t,n,r,i,a,o,s,c){let u=e,d=pn(s)||r&&s===`day`,f=Rr(u)<0?-1:1,p;return d?{nudgeResult:p}=pi(f,u,t,n,r,i,o,s,c):p=r?function(e,t,n,r,i,a,o,s){let c=t,u=Kn(i,n.isoDate,c.date,`constrain`),d=K(u,n.time),f=K(Br(u.year,u.month,u.day+e),n.time),p=Y(r,d,`compatible`),m=Y(r,f,`compatible`),h=N.fromEpochNsDiff(m,p);if(h.sign()!==e)throw RangeError(`time zone returned inconsistent Instants`);let g=l.default.BigInt(Nt[o]*a),_=c.time.round(g,s),v=_.subtract(h),y=v.sign()!==-e,ee,b;return y?(ee=e,_=v.round(g,s),b=_.addToEpochNs(m)):(ee=0,b=_.addToEpochNs(p)),{duration:oi(G(c.date,c.date.days+ee),_),nudgedEpochNs:b,didExpandCalendarUnit:y}}(f,u,n,r,i,o,s,c):function(e,t,n,r,i,a){let o=e,s=o.time.add24HourDays(o.date.days),c=s.round(l.default.BigInt(r*Nt[i]),a),u=c.subtract(s),{quotient:d}=s.divmod(st),{quotient:f}=c.divmod(st),p=Math.sign(f-d)===s.sign(),m=u.addToEpochNs(t),h=0,g=c;return mn(n)===`date`&&(h=f,g=c.add(N.fromComponents(24*-f,0,0,0,0,0))),{duration:{date:G(o.date,h),time:g},nudgedEpochNs:m,didExpandCalendarUnit:p}}(u,t,a,o,s,c),u=p.duration,p.didExpandCalendarUnit&&s!==`week`&&(u=function(e,t,n,r,i,a,o,s){let c=t;if(s===o)return c;let l=Mt.indexOf(o);for(let t=Mt.indexOf(s)-1;t>=l;t--){let s=Mt[t];if(s===`week`&&o!==`week`)continue;let l;switch(s){case`year`:l={years:c.date.years+e,months:0,weeks:0,days:0};break;case`month`:{let t=c.date.months+e;l=G(c.date,0,0,t);break}case`week`:{let t=c.date.weeks+e;l=G(c.date,0,t);break}}let u=K(Kn(a,r.isoDate,l,`constrain`),r.time),d;if(d=i?Y(i,u,`compatible`):X(u),S(n,d)===-e)break;c={date:l,time:N.ZERO}}return c}(f,u,p.nudgedEpochNs,n,r,i,a,fn(s,`day`))),u}function hi(e,t,n,r,i,a){return pn(a)||r&&a===`day`?pi(Rr(e)<0?-1:1,e,t,n,r,i,1,a,`trunc`).total:Bi(e.time.add24HourDays(e.date.days),a)}function gi(e,t,n,r,i,a,o){if(Ui(e,t)==0)return{date:{years:0,months:0,weeks:0,days:0},time:N.ZERO};Zr(e),Zr(t);let s=di(e,t,n,r);return a===`nanosecond`&&i===1?s:mi(s,X(t),e,null,n,r,i,a,o)}function _i(e,t,n,r,i,a,o,s){if(mn(i)===`time`)return ui(e,t,a,o,s);let c=fi(e,t,n,r,i);return o===`nanosecond`&&a===1?c:mi(c,t,ir(n,e),n,r,i,a,o,s)}function vi(e,t,n,r,i,a){let o=kt.reduce(((e,t)=>{let i=t[0],a=t[1],o=t[2];return n!==`datetime`&&o!==n||r.includes(a)||e.push(a,i),e}),[]),s=ln(t,`largestUnit`,n,`auto`);if(r.includes(s))throw RangeError(`largestUnit must be one of ${o.join(`, `)}, not ${s}`);let c=rn(t),l=en(t,`trunc`);e===`since`&&(l=function(e){switch(e){case`ceil`:return`floor`;case`floor`:return`ceil`;case`halfCeil`:return`halfFloor`;case`halfFloor`:return`halfCeil`;default:return e}}(l));let u=ln(t,`smallestUnit`,n,i);if(r.includes(u))throw RangeError(`smallestUnit must be one of ${o.join(`, `)}, not ${u}`);let d=fn(a,u);if(s===`auto`&&(s=d),fn(s,u)!==s)throw RangeError(`largestUnit ${s} cannot be smaller than smallestUnit ${u}`);let f={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[u];return f!==void 0&&an(c,f,!1),{largestUnit:s,roundingIncrement:c,roundingMode:l,smallestUnit:u}}function yi(e,t,n,r){let i=wn(n),a=vi(e,Q(r),`time`,[],`nanosecond`,`second`),o=ai(ui(A(t,C),A(i,C),a.roundingIncrement,a.smallestUnit,a.roundingMode),a.largestUnit);return e===`since`&&(o=Wr(o)),o}function bi(e,t,n,r){let i=bn(n),a=A(t,D),o=A(i,D);if(!Xn(a,o))throw RangeError(`cannot compute difference between dates of ${a} and ${o} calendars`);let s=vi(e,Q(r),`date`,[],`day`,`day`),c=M(`%Temporal.Duration%`),l=A(t,w),u=A(i,w);if(Vi(l,u)===0)return new c;let d={date:qn(a,l,u,s.largestUnit),time:N.ZERO};if(s.smallestUnit!==`day`||s.roundingIncrement!==1){let e=K(l,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});d=mi(d,X(K(u,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0})),e,null,a,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode)}let f=ai(d,`day`);return e===`since`&&(f=Wr(f)),f}function xi(e,t,n,r){let i=Sn(n),a=A(t,D),o=A(i,D);if(!Xn(a,o))throw RangeError(`cannot compute difference between dates of ${a} and ${o} calendars`);let s=vi(e,Q(r),`datetime`,[],`nanosecond`,`day`),c=M(`%Temporal.Duration%`),l=A(t,T),u=A(i,T);if(Ui(l,u)===0)return new c;let d=ai(gi(l,u,a,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);return e===`since`&&(d=Wr(d)),d}function Si(e,t,n,r){let i=En(n),a=vi(e,Q(r),`time`,[],`nanosecond`,`hour`),o=li(A(t,E),A(i,E));o=zi(o,a.roundingIncrement,a.smallestUnit,a.roundingMode);let s=ai(oi({years:0,months:0,weeks:0,days:0},o),a.largestUnit);return e===`since`&&(s=Wr(s)),s}function Ci(e,t,n,r){let i=On(n),a=A(t,D),o=A(i,D);if(!Xn(a,o))throw RangeError(`cannot compute difference between months of ${a} and ${o} calendars`);let s=vi(e,Q(r),`date`,[`week`,`day`],`month`,`year`),c=M(`%Temporal.Duration%`);if(Vi(A(t,w),A(i,w))==0)return new c;let l=_n(a,A(t,w),`year-month`);l.day=1;let u=Zn(a,l,`constrain`),d=_n(a,A(i,w),`year-month`);d.day=1;let f=Zn(a,d,`constrain`),p={date:G(qn(a,u,f,s.largestUnit),0,0),time:N.ZERO};if(s.smallestUnit!==`month`||s.roundingIncrement!==1){let e=K(u,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});p=mi(p,X(K(f,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0})),e,null,a,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode)}let m=ai(p,`day`);return e===`since`&&(m=Wr(m)),m}function wi(e,t,n,r){let i=An(n),a=A(t,D),o=A(i,D);if(!Xn(a,o))throw RangeError(`cannot compute difference between dates of ${a} and ${o} calendars`);let s=vi(e,Q(r),`datetime`,[],`nanosecond`,`hour`),c=A(t,C),u=A(i,C),d=M(`%Temporal.Duration%`),f;if(mn(s.largestUnit)!==`date`)f=ai(ui(c,u,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);else{let e=A(t,O);if(!tr(e,A(i,O)))throw RangeError(`When calculating difference between time zones, largestUnit must be 'hours' or smaller because day lengths can vary between time zones due to DST or time zone offset changes.`);if(l.default.equal(c,u))return new d;f=ai(_i(c,u,e,a,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),`hour`)}return e===`since`&&(f=Wr(f)),f}function Ti({hour:e,minute:t,second:n,millisecond:r,microsecond:i,nanosecond:a},o){let s=n,c=a;return s+=o.sec,c+=o.subsec,Hr(e,t,s,r,i,c)}function Ei(e,t){let n=t.addToEpochNs(e);return $r(n),n}function Di(e,t,n,r,i=`constrain`){if(Lr(r.date)===0)return Ei(e,r.time);let a=ir(t,e);return Ei(Y(t,K(Kn(n,a.isoDate,r.date,i),a.time),`compatible`),r.time)}function Oi(e,t,n){let r=Cn(n);e===`subtract`&&(r=Wr(r));let i=fn(dn(t),dn(r));if(pn(i))throw RangeError(`For years, months, or weeks arithmetic, use date arithmetic relative to a starting point`);let a=ri(t),o=ri(r);return ai(oi({years:0,months:0,weeks:0,days:0},a.time.add(o.time)),i)}function ki(e,t,n){let r=Cn(n);e===`subtract`&&(r=Wr(r));let i=dn(r);if(mn(i)===`date`)throw RangeError(`Duration field ${i} not supported by Temporal.Instant. Try Temporal.ZonedDateTime instead.`);let a=ri(r);return Hn(Ei(A(t,C),a.time))}function Ai(e,t,n,r){let i=A(t,D),a=Cn(n);e===`subtract`&&(a=Wr(a));let o=ii(a),s=q(Q(r));return Mn(Kn(i,A(t,w),o,s),i)}function ji(e,t,n,r){let i=Cn(n);e===`subtract`&&(i=Wr(i));let a=q(Q(r)),o=A(t,D),s=ri(i),c=A(t,T),l=Ti(c.time,s.time),u=G(s.date,l.deltaDays);return ti(u.years,u.months,u.weeks,u.days,0,0,0,0,0,0),Pn(K(Kn(o,c.isoDate,u,a),l),o)}function Mi(e,t,n){let r=Cn(n);e===`subtract`&&(r=Wr(r));let i=ri(r),{hour:a,minute:o,second:s,millisecond:c,microsecond:l,nanosecond:u}=Ti(A(t,E),i.time);return Rn(Zt(a,o,s,c,l,u,`reject`))}function Ni(e,t,n,r){let i=Cn(n);e===`subtract`&&(i=Wr(i));let a=q(Q(r)),o=Ir(i),s=A(t,D),c=_n(s,A(t,w),`year-month`);c.day=1;let l=Zn(s,c,`constrain`);if(o<0){let e=Kn(s,l,{months:1},`constrain`);l=Br(e.year,e.month,e.day-1)}let u=ii(i);return Jr(l),Bn(Qn(s,_n(s,Kn(s,l,u,a),`year-month`),a),s)}function Pi(e,t,n,r){let i=Cn(n);e===`subtract`&&(i=Wr(i));let a=q(Q(r)),o=A(t,O),s=A(t,D),c=ni(i);return J(Di(A(t,C),o,s,c,a),o,s)}function Fi(e,t,n){let r=Math.trunc(e/t),i=e%t,a=e<0?`negative`:`positive`,o=Math.abs(r),s=o+1,c=Xi(Math.abs(2*i)-t),l=o%2==0,u=Ve(n,a),d=i===0?o:He(o,s,c,l,u);return t*(a===`positive`?d:-d)}function Ii(e,t,n,r){let i=Nt[n]*t;return function(e,t,n){let r=x(e),i=x(t),a=l.default.divide(r,i),o=l.default.remainder(r,i),s=Ve(n,`positive`),c,p;l.default.lessThan(r,u)?(c=l.default.subtract(a,d),p=a):(c=a,p=l.default.add(a,d));let m=S(ne(l.default.multiply(o,f)),i)*(l.default.lessThan(r,u)?-1:1)+0,h=l.default.equal(o,u)?a:He(c,p,m,te(c),s);return l.default.multiply(h,i)}(e,l.default.BigInt(i),r)}function Li(e,t,n,r){Qr(e);let{year:i,month:a,day:o}=e.isoDate,s=Ri(e.time,t,n,r);return K(Br(i,a,o+s.deltaDays),s)}function Ri({hour:e,minute:t,second:n,millisecond:r,microsecond:i,nanosecond:a},o,s,c){let l;switch(s){case`day`:case`hour`:l=1e3*(1e3*(1e3*(60*(60*e+t)+n)+r)+i)+a;break;case`minute`:l=1e3*(1e3*(1e3*(60*t+n)+r)+i)+a;break;case`second`:l=1e3*(1e3*(1e3*n+r)+i)+a;break;case`millisecond`:l=1e3*(1e3*r+i)+a;break;case`microsecond`:l=1e3*i+a;break;case`nanosecond`:l=a}let u=Nt[s],d=Fi(l,u*o,c)/u;switch(s){case`day`:return{deltaDays:d,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0};case`hour`:return Hr(d,0,0,0,0,0);case`minute`:return Hr(e,d,0,0,0,0);case`second`:return Hr(e,t,d,0,0,0);case`millisecond`:return Hr(e,t,n,d,0,0);case`microsecond`:return Hr(e,t,n,r,d,0);case`nanosecond`:return Hr(e,t,n,r,i,d);default:throw Error(`Invalid unit ${s}`)}}function zi(e,t,n,r){let i=Nt[n];return e.round(l.default.BigInt(i*t),r)}function Bi(e,t){let n=Nt[t];return e.fdiv(l.default.BigInt(n))}function Vi(e,t){return e.year===t.year?e.month===t.month?e.day===t.day?0:Xi(e.day-t.day):Xi(e.month-t.month):Xi(e.year-t.year)}function Hi(e,t){return e.hour===t.hour?e.minute===t.minute?e.second===t.second?e.millisecond===t.millisecond?e.microsecond===t.microsecond?e.nanosecond===t.nanosecond?0:Xi(e.nanosecond-t.nanosecond):Xi(e.microsecond-t.microsecond):Xi(e.millisecond-t.millisecond):Xi(e.second-t.second):Xi(e.minute-t.minute):Xi(e.hour-t.hour)}function Ui(e,t){let n=Vi(e.isoDate,t.isoDate);return n===0?Hi(e.time,t.time):n}function Wi(e){let t=qi(e);return globalThis.BigInt===void 0?t:globalThis.BigInt(t.toString(10))}function Gi(e,t){let{quotient:n,remainder:r}=re(x(e),_),i=l.default.toNumber(n);return t===`floor`&&l.default.toNumber(r)<0&&--i,t===`ceil`&&l.default.toNumber(r)>0&&(i+=1),i}function Ki(e){if(!Number.isInteger(e))throw RangeError(`epoch milliseconds must be an integer`);return l.default.multiply(l.default.BigInt(e),_)}function qi(e){let t=e;if(typeof e==`object`){let n=e[Symbol.toPrimitive];n&&typeof n==`function`&&(t=n.call(e,`number`))}if(typeof t==`number`)throw TypeError(`cannot convert number to bigint`);return typeof t==`bigint`?l.default.BigInt(t.toString(10)):l.default.BigInt(t)}var Ji=(()=>{let e=l.default.BigInt(Date.now()%1e6);return()=>{let t=Date.now(),n=l.default.BigInt(t),r=l.default.add(Ki(t),e);return e=l.default.remainder(n,_),l.default.greaterThan(r,ut)?ut:l.default.lessThan(r,dt)?dt:r}})();function Yi(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}function Xi(e){return e<0?-1:e>0?1:e}function Q(e){if(e===void 0)return Object.create(null);if(P(e)&&e!==null)return e;throw TypeError(`Options parameter must be an object, not `+(e===null?`null`:typeof e))}function Zi(e,t){let n=Object.create(null);return n[e]=t,n}function Qi(e,t,n,r){let i=e[t];if(i!==void 0){if(i=xt(i),!n.includes(i))throw RangeError(`${t} must be one of ${n.join(`, `)}, not ${i}`);return i}if(r===cn)throw RangeError(`${t} option is required`);return r}function $i(e){let t=ea(e);if(!vt.includes(ea(t)))throw RangeError(`invalid calendar identifier ${t}`);switch(t){case`ethiopic-amete-alem`:return`ethioaa`;case`islamicc`:return`islamic-civil`}return t}function ea(e){let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r>=65&&r<=90?String.fromCharCode(r+32):String.fromCharCode(r)}return t}function ta(e){throw TypeError(`Do not use built-in arithmetic operators with Temporal objects. When comparing, use ${e===`PlainMonthDay`?`Temporal.PlainDate.compare(obj1.toPlainDate(year), obj2.toPlainDate(year))`:`Temporal.${e}.compare(obj1, obj2)`}, not obj1 > obj2. When coercing to strings, use \`\${obj}\` or String(obj), not '' + obj. When coercing to numbers, use properties or methods of the object, not \`+obj\`. When concatenating with strings, use \`\${str}\${obj}\` or str.concat(obj), not str + obj. In React, coerce to a string before rendering a Temporal object.`)}var na=RegExp(`^${Xe.source}$`),ra=RegExp(`^([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])(?::?([0-5][0-9])(?:[.,](\\d{1,9}))?)?)?$`);function ia(e,t,n,r=e(t),i=e(n)){let a=t,o=n,s=r,c=i;for(;o-a>1;){let t=Math.trunc((a+o)/2),n=e(t);n===s?(a=t,s=n):n===c&&(o=t,c=n)}return o}function aa(e){return[...e]}function oa(e,t){if(e!==`gregory`&&e!==`iso8601`)return;let n=ca[e],r=t.year,{dayOfWeek:i,dayOfYear:a,daysInYear:o}=n.isoToDate(t,{dayOfWeek:!0,dayOfYear:!0,daysInYear:!0}),s=n.getFirstDayOfWeek(),c=n.getMinimalDaysInFirstWeek(),l=(i+7-s)%7,u=(i-a+7001-s)%7,d=Math.floor((a-1+u)/7);if(7-u>=c&&++d,d==0)d=function(e,t,n,r){let i=(r-e-n+1)%7;i<0&&(i+=7);let a=Math.floor((n+i-1)/7);return 7-i>=t&&++a,a}(s,c,a+n.isoToDate(n.dateAdd(t,{years:-1},`constrain`),{daysInYear:!0}).daysInYear,i),r--;else if(a>=o-5){let e=(l+o-a)%7;e<0&&(e+=7),6-e>=c&&a+7-l>o&&(d=1,r++)}return{week:d,year:r}}function sa(e,t,n,r,i){if(t!==i.year){if(e*(t-i.year)>0)return!0}else if(n!==i.month){if(e*(n-i.month)>0)return!0}else if(r!==i.day&&e*(r-i.day)>0)return!0;return!1}var ca={};function la(e){if(!e.startsWith(`M`))throw RangeError(`Invalid month code: ${e}. Month codes must start with M.`);let t=+e.slice(1);if(Number.isNaN(t))throw RangeError(`Invalid month code: ${e}`);return t}function ua(e,t=!1){return`M${`${e}`.padStart(2,`0`)}${t?`L`:``}`}function da(e,t=void 0,n=12){let{month:r,monthCode:i}=e;if(i===void 0){if(r===void 0)throw TypeError(`Either month or monthCode are required`);t===`reject`&&Z(r,1,n),t===`constrain`&&(r=Gr(r,1,n)),i=ua(r)}else{let e=la(i);if(i!==ua(e))throw RangeError(`Invalid month code: ${i}`);if(r!==void 0&&r!==e)throw RangeError(`monthCode ${i} and month ${r} must match if both are present`);if(r=e,r<1||r>n)throw RangeError(`Invalid monthCode: ${i}`)}return{...e,month:r,monthCode:i}}ca.iso8601={resolveFields(e,t){if((t===`date`||t===`year-month`)&&e.year===void 0)throw TypeError(`year is required`);if((t===`date`||t===`month-day`)&&e.day===void 0)throw TypeError(`day is required`);Object.assign(e,da(e))},dateToISO:(e,t)=>Xt(e.year,e.month,e.day,t),monthDayToISOReferenceDate(e,t){let{month:n,day:r}=Xt(e.year??1972,e.month,e.day,t);return{month:n,day:r,year:1972}},extraFields:()=>[],fieldKeysToIgnore(e){let t=new Set;for(let n=0;n<e.length;n++){let r=e[n];t.add(r),r===`month`?t.add(`monthCode`):r===`monthCode`&&t.add(`month`)}return aa(t)},dateAdd(e,{years:t=0,months:n=0,weeks:r=0,days:i=0},a){let{year:o,month:s,day:c}=e;return o+=t,s+=n,{year:o,month:s}=zr(o,s),{year:o,month:s,day:c}=Xt(o,s,c,a),c+=i+7*r,Br(o,s,c)},dateUntil(e,t,n){let r=-Vi(e,t);if(r===0)return{years:0,months:0,weeks:0,days:0};let i,a=0,o=0;if(n===`year`||n===`month`){let s=t.year-e.year;for(s!==0&&(s-=r);!sa(r,e.year+s,e.month,e.day,t);)a=s,s+=r;let c=r;for(i=zr(e.year+a,e.month+c);!sa(r,i.year,i.month,e.day,t);)o=c,c+=r,i=zr(i.year,i.month+r);n===`month`&&(o+=12*a,a=0)}i=zr(e.year+a,e.month+o);let s=Kr(i.year,i.month,e.day),c=0,l=si(t.year,t.month-1,t.day)-si(s.year,s.month-1,s.day);return n===`week`&&(c=Math.trunc(l/7),l%=7),{years:a,months:o,weeks:c,days:l}},isoToDate({year:e,month:t,day:n},r){let i={era:void 0,eraYear:void 0,year:e,month:t,day:n,daysInWeek:7,monthsInYear:12};if(r.monthCode&&(i.monthCode=ua(t)),r.dayOfWeek){let r=t+(t<3?10:-2),a=e-+(t<3),o=Math.floor(a/100),s=a-100*o,c=(n+Math.floor(2.6*r-.2)+(s+Math.floor(s/4))+(Math.floor(o/4)-2*o))%7;i.dayOfWeek=c+(c<=0?7:0)}if(r.dayOfYear){let r=n;for(let n=t-1;n>0;n--)r+=Fr(e,n);i.dayOfYear=r}return r.weekOfYear&&(i.weekOfYear=oa(`iso8601`,{year:e,month:t,day:n})),r.daysInMonth&&(i.daysInMonth=Fr(e,t)),(r.daysInYear||r.inLeapYear)&&(i.inLeapYear=Pr(e),i.daysInYear=i.inLeapYear?366:365),i},getFirstDayOfWeek:()=>1,getMinimalDaysInFirstWeek:()=>4};var fa=class e{constructor(t){if(this.map=new Map,this.calls=0,this.hits=0,this.misses=0,t!==void 0){let n=0;for(let r of t.map.entries()){if(++n>e.MAX_CACHE_ENTRIES)break;this.map.set(...r)}}}get(e){let t=this.map.get(e);return t&&(this.hits++,this.report()),this.calls++,t}set(e,t){this.map.set(e,t),this.misses++,this.report()}report(){}setObject(t){if(e.objectMap.get(t))throw RangeError(`object already cached`);e.objectMap.set(t,this),this.report()}static getCacheForObject(t){let n=e.objectMap.get(t);return n||(n=new e,e.objectMap.set(t,n)),n}};function pa({isoYear:e,isoMonth:t,isoDay:n}){return`${cr(e)}-${lr(t)}-${lr(n)}T00:00Z`}function ma(e,t){return{years:e.year-t.year,months:e.month-t.month,days:e.day-t.day}}fa.objectMap=new WeakMap,fa.MAX_CACHE_ENTRIES=1e3;var ha=class{constructor(){this.eras=[],this.hasEra=!1,this.erasBeginMidYear=!1}getFormatter(){return this.formatter===void 0&&(this.formatter=new Intl.DateTimeFormat(`en-US-u-ca-${this.id}`,{day:`numeric`,month:`numeric`,year:`numeric`,era:`short`,timeZone:`UTC`})),this.formatter}getCalendarParts(e){let t=this.getFormatter(),n=new Date(e);if(e===`-271821-04-19T00:00Z`){let e=t.resolvedOptions();t=new Intl.DateTimeFormat(e.locale,{...e,timeZone:`Etc/GMT+1`}),n=new Date(`-271821-04-20T00:00Z`)}try{return t.formatToParts(n)}catch{throw RangeError(`Invalid ISO date: ${e}`)}}isoToCalendarDate(e,t){let{year:n,month:r,day:i}=e,a=JSON.stringify({func:`isoToCalendarDate`,isoYear:n,isoMonth:r,isoDay:i,id:this.id}),o=t.get(a);if(o)return o;let s=pa({isoYear:n,isoMonth:r,isoDay:i}),c=this.getCalendarParts(s),l={};for(let e=0;e<c.length;e++){let{type:t,value:n}=c[e];if(t!==`year`&&t!==`relatedYear`||(this.hasEra?l.eraYear=+n:l.year=+n),t===`month`){let e=/^([0-9]*)(.*?)$/.exec(n);if(!e||e.length!=3||!e[1]&&!e[2])throw RangeError(`Unexpected month: ${n}`);if(l.month=e[1]?+e[1]:1,l.month<1)throw RangeError(`Invalid month ${n} from ${s}[u-ca-${this.id}] (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10527)`);if(l.month>13)throw RangeError(`Invalid month ${n} from ${s}[u-ca-${this.id}] (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10529)`);e[2]&&(l.monthExtra=e[2])}t===`day`&&(l.day=+n),this.hasEra&&t===`era`&&n!=null&&n!==``&&(l.era=n.split(` (`)[0].normalize(`NFD`).replace(/[^-0-9 \p{L}]/gu,``).replace(/ /g,`-`).toLowerCase())}if(this.hasEra&&l.eraYear===void 0)throw RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);if(this.hasEra){let e=this.eras.find((e=>l.era===e.genericName));e&&(l.era=e.code)}if(this.reviseIntlEra){let{era:t,eraYear:n}=this.reviseIntlEra(l,e);l.era=t,l.eraYear=n}this.checkIcuBugs&&this.checkIcuBugs(e);let u=this.adjustCalendarDate(l,t,`constrain`,!0);if(u.year===void 0)throw RangeError(`Missing year converting ${JSON.stringify(e)}`);if(u.month===void 0)throw RangeError(`Missing month converting ${JSON.stringify(e)}`);if(u.day===void 0)throw RangeError(`Missing day converting ${JSON.stringify(e)}`);return t.set(a,u),[`constrain`,`reject`].forEach((n=>{let r=JSON.stringify({func:`calendarToIsoDate`,year:u.year,month:u.month,day:u.day,overflow:n,id:this.id});t.set(r,e)})),u}validateCalendarDate(e){let{month:t,year:n,day:r,eraYear:i,monthCode:a,monthExtra:o}=e;if(o!==void 0)throw RangeError("Unexpected `monthExtra` value");if(n===void 0&&i===void 0)throw TypeError(`year or eraYear is required`);if(t===void 0&&a===void 0)throw TypeError(`month or monthCode is required`);if(r===void 0)throw RangeError(`Missing day`);if(a!==void 0){if(typeof a!=`string`)throw RangeError(`monthCode must be a string, not `+typeof a);if(!/^M([01]?\d)(L?)$/.test(a))throw RangeError(`Invalid monthCode: ${a}`)}if(this.hasEra&&e.era===void 0!=(e.eraYear===void 0))throw TypeError(`properties era and eraYear must be provided together`)}adjustCalendarDate(e,t=void 0,n=`constrain`,r=!1){if(this.calendarType===`lunisolar`)throw RangeError(`Override required for lunisolar calendars`);let i=e;this.validateCalendarDate(i);let a=this.monthsInYear(i,t),{month:o,monthCode:s}=i;return{month:o,monthCode:s}=da(i,n,a),{...i,month:o,monthCode:s}}regulateMonthDayNaive(e,t,n){let r=this.monthsInYear(e,n),{month:i,day:a}=e;return t===`reject`?(Z(i,1,r),Z(a,1,this.maximumMonthLength(e))):(i=Gr(i,1,r),a=Gr(a,1,this.maximumMonthLength({...e,month:i}))),{...e,month:i,day:a}}calendarToIsoDate(e,t=`constrain`,n){let r=e,i=this.adjustCalendarDate(e,n,t,!1);i=this.regulateMonthDayNaive(i,t,n);let{year:a,month:o,day:s}=i,c=JSON.stringify({func:`calendarToIsoDate`,year:a,month:o,day:s,overflow:t,id:this.id}),l,u=n.get(c);if(u||r.year!==void 0&&r.month!==void 0&&r.day!==void 0&&(r.year!==i.year||r.month!==i.month||r.day!==i.day)&&(l=JSON.stringify({func:`calendarToIsoDate`,year:r.year,month:r.month,day:r.day,overflow:t,id:this.id}),u=n.get(l),u))return u;let d=this.estimateIsoDate({year:a,month:o,day:s}),f=e=>{let r=this.addDaysIso(d,e);if(i.day>this.minimumMonthLength(i)){let e=this.isoToCalendarDate(r,n);for(;e.month!==o||e.year!==a;){if(t===`reject`)throw RangeError(`day ${s} does not exist in month ${o} of year ${a}`);r=this.addDaysIso(r,-1),e=this.isoToCalendarDate(r,n)}}return r},p=0,m=this.isoToCalendarDate(d,n),h=ma(i,m);if(h.years!==0||h.months!==0||h.days!==0){let e=365*h.years+30*h.months+h.days;d=this.addDaysIso(d,e),m=this.isoToCalendarDate(d,n),h=ma(i,m),h.years===0&&h.months===0?d=f(h.days):p=this.compareCalendarDates(i,m)}let g=8;for(;p;){d=this.addDaysIso(d,p*g);let e=m;m=this.isoToCalendarDate(d,n);let a=p;if(p=this.compareCalendarDates(i,m),p){if(h=ma(i,m),h.years===0&&h.months===0)d=f(h.days),p=0;else if(a&&p!==a)if(g>1)g/=2;else{if(t===`reject`)throw RangeError(`Can't find ISO date from calendar date: ${JSON.stringify({...r})}`);this.compareCalendarDates(m,e)>0&&(d=this.addDaysIso(d,-1)),p=0}}}if(n.set(c,d),l&&n.set(l,d),i.year===void 0||i.month===void 0||i.day===void 0||i.monthCode===void 0||this.hasEra&&(i.era===void 0||i.eraYear===void 0))throw RangeError(`Unexpected missing property`);return d}compareCalendarDates(e,t){return e.year===t.year?e.month===t.month?e.day===t.day?0:Xi(e.day-t.day):Xi(e.month-t.month):Xi(e.year-t.year)}regulateDate(e,t=`constrain`,n){let r=this.calendarToIsoDate(e,t,n);return this.isoToCalendarDate(r,n)}addDaysIso(e,t){return Br(e.year,e.month,e.day+t)}addDaysCalendar(e,t,n){let r=this.calendarToIsoDate(e,`constrain`,n),i=this.addDaysIso(r,t);return this.isoToCalendarDate(i,n)}addMonthsCalendar(e,t,n,r){let i=e,{day:a}=i;for(let e=0,n=Math.abs(t);e<n;e++){let{month:e}=i,n=i,o=t<0?-Math.max(a,this.daysInPreviousMonth(i,r)):this.daysInMonth(i,r),s=this.calendarToIsoDate(i,`constrain`,r),c=this.addDaysIso(s,o);if(i=this.isoToCalendarDate(c,r),t>0){let t=this.monthsInYear(n,r);for(;i.month-1!=e%t;)c=this.addDaysIso(c,-1),i=this.isoToCalendarDate(c,r)}i.day!==a&&(i=this.regulateDate({...i,day:a},`constrain`,r))}if(n===`reject`&&i.day!==a)throw RangeError(`Day ${a} does not exist in resulting calendar month`);return i}addCalendar(e,{years:t=0,months:n=0,weeks:r=0,days:i=0},a,o){let{year:s,day:c,monthCode:l}=e,u=this.adjustCalendarDate({year:s+t,monthCode:l,day:c},o),d=this.addMonthsCalendar(u,n,a,o),f=i+7*r;return this.addDaysCalendar(d,f,o)}untilCalendar(e,t,n,r){let i=0,a=0,o=0,s=0;switch(n){case`day`:i=this.calendarDaysUntil(e,t,r);break;case`week`:{let n=this.calendarDaysUntil(e,t,r);i=n%7,a=(n-i)/7;break}case`month`:case`year`:{let a=this.compareCalendarDates(t,e);if(!a)return{years:0,months:0,weeks:0,days:0};let c=t.year-e.year,l=t.day-e.day;if(n===`year`&&c){let n=0;t.monthCode>e.monthCode&&(n=1),t.monthCode<e.monthCode&&(n=-1),n||=Math.sign(l),s=n*a<0?c-a:c}let u,d=s?this.addCalendar(e,{years:s},`constrain`,r):e;do o+=a,u=d,d=this.addMonthsCalendar(u,a,`constrain`,r),d.day!==e.day&&(d=this.regulateDate({...d,day:e.day},`constrain`,r));while(this.compareCalendarDates(t,d)*a>=0);o-=a,i=this.calendarDaysUntil(u,t,r);break}}return{years:s,months:o,weeks:a,days:i}}daysInMonth(e,t){let{day:n}=e,r=this.maximumMonthLength(e),i=this.minimumMonthLength(e);if(i===r)return i;let a=n<=r-i?r:i,o=this.calendarToIsoDate(e,`constrain`,t),s=this.addDaysIso(o,a),c=this.isoToCalendarDate(s,t),l=this.addDaysIso(s,-c.day);return this.isoToCalendarDate(l,t).day}daysInPreviousMonth(e,t){let{day:n,month:r,year:i}=e,a={year:r>1?i:i-1,month:r,day:1},o=r>1?r-1:this.monthsInYear(a,t);a={...a,month:o};let s=this.minimumMonthLength(a),c=this.maximumMonthLength(a);if(s===c)return c;let l=this.calendarToIsoDate(e,`constrain`,t),u=this.addDaysIso(l,-n);return this.isoToCalendarDate(u,t).day}startOfCalendarYear(e){return{year:e.year,month:1,monthCode:`M01`,day:1}}startOfCalendarMonth(e){return{year:e.year,month:e.month,day:1}}calendarDaysUntil(e,t,n){let r=this.calendarToIsoDate(e,`constrain`,n),i=this.calendarToIsoDate(t,`constrain`,n);return si(i.year,i.month-1,i.day)-si(r.year,r.month-1,r.day)}monthDaySearchStartYear(e,t){return 1972}monthDayFromFields(e,t,n){let r,i,a,o,s,{era:c,eraYear:l,year:u,month:d,monthCode:f,day:p}=e;if(d!==void 0&&u===void 0&&(!this.hasEra||c===void 0||l===void 0))throw TypeError(`when month is present, year (or era and eraYear) are required`);(f===void 0||u!==void 0||this.hasEra&&l!==void 0)&&({monthCode:f,day:p}=this.isoToCalendarDate(this.calendarToIsoDate(e,t,n),n));let m={year:this.monthDaySearchStartYear(f,p),month:12,day:31},h=this.isoToCalendarDate(m,n),g=h.monthCode>f||h.monthCode===f&&h.day>=p?h.year:h.year-1;for(let e=0;e<20;e++){let c=this.adjustCalendarDate({day:p,monthCode:f,year:g-e},n),l=this.calendarToIsoDate(c,`constrain`,n),u=this.isoToCalendarDate(l,n);if({year:r,month:i,day:a}=l,u.monthCode===f&&u.day===p)return{month:i,day:a,year:r};if(t===`constrain`){let e=this.maxLengthOfMonthCodeInAnyYear(u.monthCode);if(u.monthCode===f&&u.day===e&&p>e)return{month:i,day:a,year:r};(o===void 0||u.monthCode===o.monthCode&&u.day>o.day)&&(o=u,s=l)}}if(t===`constrain`&&s!==void 0)return s;throw RangeError(`No recent ${this.id} year with monthCode ${f} and day ${p}`)}getFirstDayOfWeek(){}getMinimalDaysInFirstWeek(){}},ga=class extends ha{constructor(){super(...arguments),this.id=`hebrew`,this.calendarType=`lunisolar`,this.months={Tishri:{leap:1,regular:1,monthCode:`M01`,days:30},Heshvan:{leap:2,regular:2,monthCode:`M02`,days:{min:29,max:30}},Kislev:{leap:3,regular:3,monthCode:`M03`,days:{min:29,max:30}},Tevet:{leap:4,regular:4,monthCode:`M04`,days:29},Shevat:{leap:5,regular:5,monthCode:`M05`,days:30},Adar:{leap:void 0,regular:6,monthCode:`M06`,days:29},"Adar I":{leap:6,regular:void 0,monthCode:`M05L`,days:30},"Adar II":{leap:7,regular:void 0,monthCode:`M06`,days:29},Nisan:{leap:8,regular:7,monthCode:`M07`,days:30},Iyar:{leap:9,regular:8,monthCode:`M08`,days:29},Sivan:{leap:10,regular:9,monthCode:`M09`,days:30},Tamuz:{leap:11,regular:10,monthCode:`M10`,days:29},Av:{leap:12,regular:11,monthCode:`M11`,days:30},Elul:{leap:13,regular:12,monthCode:`M12`,days:29}}}inLeapYear(e){let{year:t}=e;return(7*t+1)%19<7}monthsInYear(e){return this.inLeapYear(e)?13:12}minimumMonthLength(e){return this.minMaxMonthLength(e,`min`)}maximumMonthLength(e){return this.minMaxMonthLength(e,`max`)}minMaxMonthLength(e,t){let{month:n,year:r}=e,i=this.getMonthCode(r,n),a=Object.entries(this.months).find((e=>e[1].monthCode===i));if(a===void 0)throw RangeError(`unmatched Hebrew month: ${n}`);let o=a[1].days;return typeof o==`number`?o:o[t]}maxLengthOfMonthCodeInAnyYear(e){return[`M04`,`M06`,`M08`,`M10`,`M12`].includes(e)?29:30}estimateIsoDate(e){let{year:t}=e;return{year:t-3760,month:1,day:1}}getMonthCode(e,t){return this.inLeapYear({year:e})?t===6?ua(5,!0):ua(t<6?t:t-1):ua(t)}adjustCalendarDate(e,t,n=`constrain`,r=!1){let{year:i,month:a,monthCode:o,day:s,monthExtra:c}=e;if(i===void 0)throw TypeError(`Missing property: year`);if(r){if(c){let e=this.months[c];if(!e)throw RangeError(`Unrecognized month from formatToParts: ${c}`);a=this.inLeapYear({year:i})?e.leap:e.regular}return o=this.getMonthCode(i,a),{year:i,month:a,day:s,monthCode:o}}if(this.validateCalendarDate(e),a===void 0)if(o.endsWith(`L`)){if(o!==`M05L`)throw RangeError(`Hebrew leap month must have monthCode M05L, not ${o}`);if(a=6,!this.inLeapYear({year:i})){if(n===`reject`)throw RangeError(`Hebrew monthCode M05L is invalid in year ${i} which is not a leap year`);a=6,o=`M06`}}else{a=la(o),this.inLeapYear({year:i})&&a>=6&&a++;let e=this.monthsInYear({year:i});if(a<1||a>e)throw RangeError(`Invalid monthCode: ${o}`)}else if(n===`reject`?(Z(a,1,this.monthsInYear({year:i})),Z(s,1,this.maximumMonthLength({year:i,month:a}))):(a=Gr(a,1,this.monthsInYear({year:i})),s=Gr(s,1,this.maximumMonthLength({year:i,month:a}))),o===void 0)o=this.getMonthCode(i,a);else if(this.getMonthCode(i,a)!==o)throw RangeError(`monthCode ${o} doesn't correspond to month ${a} in Hebrew year ${i}`);return{...e,day:s,month:a,monthCode:o,year:i}}},_a=class extends ha{constructor(){super(...arguments),this.calendarType=`lunar`,this.DAYS_PER_ISLAMIC_YEAR=354.3666666666667,this.DAYS_PER_ISO_YEAR=365.2425}inLeapYear(e,t){let n={year:e.year,month:1,monthCode:`M01`,day:1},r={year:e.year+1,month:1,monthCode:`M01`,day:1};return this.calendarDaysUntil(n,r,t)===355}monthsInYear(){return 12}minimumMonthLength(){return 29}maximumMonthLength(){return 30}maxLengthOfMonthCodeInAnyYear(){return 30}estimateIsoDate(e){let{year:t}=this.adjustCalendarDate(e);return{year:Math.floor(t*this.DAYS_PER_ISLAMIC_YEAR/this.DAYS_PER_ISO_YEAR)+622,month:1,day:1}}},va=class extends _a{constructor(){super(...arguments),this.id=`islamic`}},ya=class extends _a{constructor(){super(...arguments),this.id=`islamic-umalqura`}},ba=class extends _a{constructor(){super(...arguments),this.id=`islamic-tbla`}},xa=class extends _a{constructor(){super(...arguments),this.id=`islamic-civil`}},Sa=class extends _a{constructor(){super(...arguments),this.id=`islamic-rgsa`}},Ca=class extends _a{constructor(){super(...arguments),this.id=`islamicc`}},wa=class extends ha{constructor(){super(...arguments),this.id=`persian`,this.calendarType=`solar`}inLeapYear(e,t){return this.daysInMonth({year:e.year,month:12,day:1},t)===30}monthsInYear(){return 12}minimumMonthLength(e){let{month:t}=e;return t===12?29:t<=6?31:30}maximumMonthLength(e){let{month:t}=e;return t===12?30:t<=6?31:30}maxLengthOfMonthCodeInAnyYear(e){return la(e)<=6?31:30}estimateIsoDate(e){let{year:t}=this.adjustCalendarDate(e);return{year:t+621,month:1,day:1}}},Ta=class extends ha{constructor(){super(...arguments),this.id=`indian`,this.calendarType=`solar`,this.months={1:{length:30,month:3,day:22,leap:{length:31,month:3,day:21}},2:{length:31,month:4,day:21},3:{length:31,month:5,day:22},4:{length:31,month:6,day:22},5:{length:31,month:7,day:23},6:{length:31,month:8,day:23},7:{length:30,month:9,day:23},8:{length:30,month:10,day:23},9:{length:30,month:11,day:22},10:{length:30,month:12,day:22},11:{length:30,month:1,nextYear:!0,day:21},12:{length:30,month:2,nextYear:!0,day:20}},this.vulnerableToBceBug=new Date(`0000-01-01T00:00Z`).toLocaleDateString(`en-US-u-ca-indian`,{timeZone:`UTC`})!==`10/11/-79 Saka`}inLeapYear(e){return Ea(e.year+78)}monthsInYear(){return 12}minimumMonthLength(e){return this.getMonthInfo(e).length}maximumMonthLength(e){return this.getMonthInfo(e).length}maxLengthOfMonthCodeInAnyYear(e){let t=la(e),n=this.months[t];return n=n.leap??n,n.length}getMonthInfo(e){let{month:t}=e,n=this.months[t];if(n===void 0)throw RangeError(`Invalid month: ${t}`);return this.inLeapYear(e)&&n.leap&&(n=n.leap),n}estimateIsoDate(e){let t=this.adjustCalendarDate(e),n=this.getMonthInfo(t);return Br(t.year+78+ +!!n.nextYear,n.month,n.day+t.day-1)}checkIcuBugs(e){if(this.vulnerableToBceBug&&e.year<1)throw RangeError(`calendar '${this.id}' is broken for ISO dates before 0001-01-01 (see https://bugs.chromium.org/p/v8/issues/detail?id=10529)`)}};function Ea(e){return e%4==0&&(e%100!=0||e%400==0)}var Da=class extends ha{constructor(e,t){super(),this.calendarType=`solar`,this.id=e,this.isoEpoch=t}inLeapYear(e){let{year:t}=this.estimateIsoDate({month:1,day:1,year:e.year});return Ea(t)}monthsInYear(){return 12}minimumMonthLength(e){let{month:t}=e;return t===2?this.inLeapYear(e)?29:28:[4,6,9,11].indexOf(t)>=0?30:31}maximumMonthLength(e){return this.minimumMonthLength(e)}maxLengthOfMonthCodeInAnyYear(e){return[31,29,31,30,31,30,31,31,30,31,30,31][la(e)-1]}estimateIsoDate(e){let t=this.adjustCalendarDate(e);return Xt(t.year+this.isoEpoch.year,t.month+this.isoEpoch.month,t.day+this.isoEpoch.day,`constrain`)}},Oa=class extends ha{constructor(e,t){super(),this.hasEra=!0,this.calendarType=`solar`,this.id=e;let{eras:n,anchorEra:r}=function(e){let t,n=e;if(n.length===0)throw RangeError(`Invalid era data: eras are required`);if(n.length===1&&n[0].reverseOf)throw RangeError(`Invalid era data: anchor era cannot count years backwards`);if(n.length===1&&!n[0].code)throw RangeError(`Invalid era data: at least one named era is required`);if(n.filter((e=>e.reverseOf!=null)).length>1)throw RangeError(`Invalid era data: only one era can count years backwards`);n.forEach((e=>{if(e.isAnchor||!e.anchorEpoch&&!e.reverseOf){if(t)throw RangeError(`Invalid era data: cannot have multiple anchor eras`);t=e,e.anchorEpoch={year:+!e.hasYearZero}}else if(!e.code)throw RangeError(`If era name is blank, it must be the anchor era`)})),n=n.filter((e=>e.code)),n.forEach((e=>{let{reverseOf:t}=e;if(t){let r=n.find((e=>e.code===t));if(r===void 0)throw RangeError(`Invalid era data: unmatched reverseOf era: ${t}`);e.reverseOf=r,e.anchorEpoch=r.anchorEpoch,e.isoEpoch=r.isoEpoch}e.anchorEpoch.month===void 0&&(e.anchorEpoch.month=1),e.anchorEpoch.day===void 0&&(e.anchorEpoch.day=1)})),n.sort(((e,t)=>{if(e.reverseOf)return 1;if(t.reverseOf)return-1;if(!e.isoEpoch||!t.isoEpoch)throw RangeError(`Invalid era data: missing ISO epoch`);return t.isoEpoch.year-e.isoEpoch.year}));let r=n[n.length-1].reverseOf;if(r&&r!==n[n.length-2])throw RangeError(`Invalid era data: invalid reverse-sign era`);return n.forEach(((e,t)=>{e.genericName=`era`+(n.length-1-t)})),{eras:n,anchorEra:t||n[0]}}(t);this.anchorEra=r,this.eras=n}inLeapYear(e){let{year:t}=this.estimateIsoDate({month:1,day:1,year:e.year});return Ea(t)}monthsInYear(){return 12}minimumMonthLength(e){let{month:t}=e;return t===2?this.inLeapYear(e)?29:28:[4,6,9,11].indexOf(t)>=0?30:31}maximumMonthLength(e){return this.minimumMonthLength(e)}maxLengthOfMonthCodeInAnyYear(e){return[31,29,31,30,31,30,31,31,30,31,30,31][la(e)-1]}completeEraYear(e){let t=(t,n,r)=>{let i=e[t];if(i!=null&&i!=n&&!(r||[]).includes(i)){let e=r?.[0];throw RangeError(`Input ${t} ${i} doesn't match calculated value ${e?`${n} (also called ${e})`:n}`)}},n=t=>{let n,r={...e,year:t},i=this.eras.find(((e,i)=>{if(i===this.eras.length-1){if(e.reverseOf){if(t>0)throw RangeError(`Signed year ${t} is invalid for era ${e.code}`);return n=e.anchorEpoch.year-t,!0}return n=t-e.anchorEpoch.year+ +!e.hasYearZero,!0}return this.compareCalendarDates(r,e.anchorEpoch)>=0&&(n=t-e.anchorEpoch.year+ +!e.hasYearZero,!0)}));if(!i)throw RangeError(`Year ${t} was not matched by any era`);return{eraYear:n,era:i.code,eraNames:i.names}},{year:r,eraYear:i,era:a}=e;if(r!=null){let e=n(r);({eraYear:i,era:a}=e),t(`era`,a,e?.eraNames),t(`eraYear`,i)}else{if(i==null)throw RangeError(`Either year or eraYear and era are required`);{if(a===void 0)throw RangeError(`era and eraYear must be provided together`);let e=this.eras.find((({code:e,names:t=[]})=>e===a||t.includes(a)));if(!e)throw RangeError(`Era ${a} (ISO year ${i}) was not matched by any era`);r=e.reverseOf?e.anchorEpoch.year-i:i+e.anchorEpoch.year-+!e.hasYearZero,t(`year`,r),{eraYear:i,era:a}=n(r)}}return{...e,year:r,eraYear:i,era:a}}adjustCalendarDate(e,t,n=`constrain`){let r=e,{month:i,monthCode:a}=r;return i===void 0&&(r={...r,month:la(a)}),this.validateCalendarDate(r),r=this.completeEraYear(r),super.adjustCalendarDate(r,t,n)}estimateIsoDate(e){let{year:t,month:n,day:r}=this.adjustCalendarDate(e),{anchorEra:i}=this;return Xt(t+i.isoEpoch.year-+!i.hasYearZero,n,r,`constrain`)}},ka=class extends Oa{constructor(e,t){super(e,t)}isoToCalendarDate(e){let{year:t,month:n,day:r}=e,i=ua(n),a=t-this.anchorEra.isoEpoch.year+1;return this.completeEraYear({year:a,month:n,monthCode:i,day:r})}},Aa={inLeapYear(e){let{year:t}=e;return(t+1)%4==0},monthsInYear:()=>13,minimumMonthLength(e){let{month:t}=e;return t===13?this.inLeapYear(e)?6:5:30},maximumMonthLength(e){return this.minimumMonthLength(e)},maxLengthOfMonthCodeInAnyYear:e=>e===`M13`?6:30},ja=class extends Da{constructor(e,t){super(e,t),this.inLeapYear=Aa.inLeapYear,this.monthsInYear=Aa.monthsInYear,this.minimumMonthLength=Aa.minimumMonthLength,this.maximumMonthLength=Aa.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=Aa.maxLengthOfMonthCodeInAnyYear}},Ma=class extends Oa{constructor(e,t){super(e,t),this.inLeapYear=Aa.inLeapYear,this.monthsInYear=Aa.monthsInYear,this.minimumMonthLength=Aa.minimumMonthLength,this.maximumMonthLength=Aa.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=Aa.maxLengthOfMonthCodeInAnyYear}},Na=class extends ja{constructor(){super(`ethioaa`,{year:-5492,month:7,day:17})}},Pa=class extends Ma{constructor(){super(`coptic`,[{code:`coptic`,isoEpoch:{year:284,month:8,day:29}},{code:`coptic-inverse`,reverseOf:`coptic`}])}},Fa=class extends Ma{constructor(){super(`ethiopic`,[{code:`ethioaa`,names:[`ethiopic-amete-alem`,`mundi`],isoEpoch:{year:-5492,month:7,day:17}},{code:`ethiopic`,names:[`incar`],isoEpoch:{year:8,month:8,day:27},anchorEpoch:{year:5501}}])}},Ia=class extends ka{constructor(){super(`roc`,[{code:`roc`,names:[`minguo`],isoEpoch:{year:1912,month:1,day:1}},{code:`roc-inverse`,names:[`before-roc`],reverseOf:`roc`}])}},La=class extends Da{constructor(){super(`buddhist`,{year:-543,month:1,day:1})}},Ra=class extends ka{constructor(){super(`gregory`,[{code:`gregory`,names:[`ad`,`ce`],isoEpoch:{year:1,month:1,day:1}},{code:`gregory-inverse`,names:[`be`,`bce`],reverseOf:`gregory`}])}reviseIntlEra(e){let{era:t,eraYear:n}=e;return t===`b`&&(t=`gregory-inverse`),t===`a`&&(t=`gregory`),{era:t,eraYear:n}}getFirstDayOfWeek(){return 1}getMinimalDaysInFirstWeek(){return 1}},za=class extends ka{constructor(){super(`japanese`,[{code:`reiwa`,isoEpoch:{year:2019,month:5,day:1},anchorEpoch:{year:2019,month:5,day:1}},{code:`heisei`,isoEpoch:{year:1989,month:1,day:8},anchorEpoch:{year:1989,month:1,day:8}},{code:`showa`,isoEpoch:{year:1926,month:12,day:25},anchorEpoch:{year:1926,month:12,day:25}},{code:`taisho`,isoEpoch:{year:1912,month:7,day:30},anchorEpoch:{year:1912,month:7,day:30}},{code:`meiji`,isoEpoch:{year:1868,month:9,day:8},anchorEpoch:{year:1868,month:9,day:8}},{code:`japanese`,names:[`japanese`,`gregory`,`ad`,`ce`],isoEpoch:{year:1,month:1,day:1}},{code:`japanese-inverse`,names:[`japanese-inverse`,`gregory-inverse`,`bc`,`bce`],reverseOf:`japanese`}]),this.erasBeginMidYear=!0}reviseIntlEra(e,t){let{era:n,eraYear:r}=e,{year:i}=t;return this.eras.find((e=>e.code===n))?{era:n,eraYear:r}:i<1?{era:`japanese-inverse`,eraYear:1-i}:{era:`japanese`,eraYear:i}}},Ba=class extends ha{constructor(){super(...arguments),this.calendarType=`lunisolar`}inLeapYear(e,t){let n=this.getMonthList(e.year,t);return Object.entries(n).length===13}monthsInYear(e,t){return this.inLeapYear(e,t)?13:12}minimumMonthLength(){return 29}maximumMonthLength(){return 30}maxLengthOfMonthCodeInAnyYear(e){return[`M01L`,`M09L`,`M10L`,`M11L`,`M12L`].includes(e)?29:30}monthDaySearchStartYear(e,t){let n={M01L:[1651,1651],M02L:[1947,1765],M03L:[1966,1955],M04L:[1963,1944],M05L:[1971,1952],M06L:[1960,1941],M07L:[1968,1938],M08L:[1957,1718],M09L:[1832,1832],M10L:[1870,1870],M11L:[1814,1814],M12L:[1890,1890]}[e]??[1972,1972];return t<30?n[0]:n[1]}getMonthList(e,t){if(e===void 0)throw TypeError(`Missing year`);let n=JSON.stringify({func:`getMonthList`,calendarYear:e,id:this.id}),r=t.get(n);if(r)return r;let i=this.getFormatter(),a=(e,t)=>{let n=pa({isoYear:e,isoMonth:2,isoDay:1}),r=new Date(n);r.setUTCDate(t+1);let a=i.formatToParts(r),o=a.find((e=>e.type===`month`)).value,s=+a.find((e=>e.type===`day`)).value,c=a.find((e=>e.type===`relatedYear`)),l;if(c===void 0)throw RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);return l=+c.value,{calendarMonthString:o,calendarDay:s,calendarYearToVerify:l}},o=17,{calendarMonthString:s,calendarDay:c,calendarYearToVerify:l}=a(e,o);s!==`1`&&(o+=29,{calendarMonthString:s,calendarDay:c}=a(e,o)),o-=c-5;let u={},d,f,p=1,m=!1;do({calendarMonthString:s,calendarDay:c,calendarYearToVerify:l}=a(e,o)),d&&(u[f].daysInMonth=d+30-c),l===e?(u[s]={monthIndex:p++},o+=30):m=!0,d=c,f=s;while(!m);return u[f].daysInMonth=d+30-c,t.set(n,u),u}estimateIsoDate(e){let{year:t,month:n}=e;return{year:t,month:n>=12?12:n+1,day:1}}adjustCalendarDate(e,t,n=`constrain`,r=!1){let{year:i,month:a,monthExtra:o,day:s,monthCode:c}=e;if(i===void 0)throw TypeError(`Missing property: year`);if(r){if(o&&o!==`bis`)throw RangeError(`Unexpected leap month suffix: ${o}`);let e=ua(a,o!==void 0),n=`${a}${o||``}`,r=this.getMonthList(i,t)[n];if(r===void 0)throw RangeError(`Unmatched month ${n} in Chinese year ${i}`);return a=r.monthIndex,{year:i,month:a,day:s,monthCode:e}}if(this.validateCalendarDate(e),a===void 0){let e=this.getMonthList(i,t),r=c.replace(/^M|L$/g,(e=>e===`L`?`bis`:``));r[0]===`0`&&(r=r.slice(1));let o=e[r];if(a=o&&o.monthIndex,a===void 0&&c.endsWith(`L`)&&c!=`M13L`&&n===`constrain`){let t=+c.replace(/^M0?|L$/g,``);o=e[t],o&&(a=o.monthIndex,c=ua(t))}if(a===void 0)throw RangeError(`Unmatched month ${c} in Chinese year ${i}`)}else if(c===void 0){let e=this.getMonthList(i,t),r=Object.entries(e),o=r.length;n===`reject`?(Z(a,1,o),Z(s,1,this.maximumMonthLength())):(a=Gr(a,1,o),s=Gr(s,1,this.maximumMonthLength()));let l=r.find((e=>e[1].monthIndex===a));if(l===void 0)throw RangeError(`Invalid month ${a} in Chinese year ${i}`);c=ua(+l[0].replace(`bis`,``),l[0].indexOf(`bis`)!==-1)}else{let e=this.getMonthList(i,t),n=c.replace(/^M|L$/g,(e=>e===`L`?`bis`:``));n[0]===`0`&&(n=n.slice(1));let r=e[n];if(!r)throw RangeError(`Unmatched monthCode ${c} in Chinese year ${i}`);if(a!==r.monthIndex)throw RangeError(`monthCode ${c} doesn't correspond to month ${a} in Chinese year ${i}`)}return{...e,year:i,month:a,monthCode:c,day:s}}},Va=class extends Ba{constructor(){super(...arguments),this.id=`chinese`}},Ha=class extends Ba{constructor(){super(...arguments),this.id=`dangi`}},Ua=class{constructor(e){this.helper=e}extraFields(e){return this.helper.hasEra&&e.includes(`year`)?[`era`,`eraYear`]:[]}resolveFields(e){if(this.helper.calendarType!==`lunisolar`){let t=new fa;da(e,void 0,this.helper.monthsInYear({year:e.year??1972},t))}}dateToISO(e,t){let n=new fa,r=this.helper.calendarToIsoDate(e,t,n);return n.setObject(r),r}monthDayToISOReferenceDate(e,t){let n=new fa,r=this.helper.monthDayFromFields(e,t,n);return n.setObject(r),r}fieldKeysToIgnore(e){let t=new Set;for(let n=0;n<e.length;n++){let r=e[n];switch(t.add(r),r){case`era`:t.add(`eraYear`),t.add(`year`);break;case`eraYear`:t.add(`era`),t.add(`year`);break;case`year`:t.add(`era`),t.add(`eraYear`);break;case`month`:t.add(`monthCode`),this.helper.erasBeginMidYear&&(t.add(`era`),t.add(`eraYear`));break;case`monthCode`:t.add(`month`),this.helper.erasBeginMidYear&&(t.add(`era`),t.add(`eraYear`));break;case`day`:this.helper.erasBeginMidYear&&(t.add(`era`),t.add(`eraYear`))}}return aa(t)}dateAdd(e,{years:t,months:n,weeks:r,days:i},a){let o=fa.getCacheForObject(e),s=this.helper.isoToCalendarDate(e,o),c=this.helper.addCalendar(s,{years:t,months:n,weeks:r,days:i},a,o),l=this.helper.calendarToIsoDate(c,`constrain`,o);return fa.getCacheForObject(l)||new fa(o).setObject(l),l}dateUntil(e,t,n){let r=fa.getCacheForObject(e),i=fa.getCacheForObject(t),a=this.helper.isoToCalendarDate(e,r),o=this.helper.isoToCalendarDate(t,i);return this.helper.untilCalendar(a,o,n,r)}isoToDate(e,t){let n=fa.getCacheForObject(e),r=this.helper.isoToCalendarDate(e,n);if(t.dayOfWeek&&(r.dayOfWeek=ca.iso8601.isoToDate(e,{dayOfWeek:!0}).dayOfWeek),t.dayOfYear){let e=this.helper.startOfCalendarYear(r);r.dayOfYear=this.helper.calendarDaysUntil(e,r,n)+1}if(t.weekOfYear&&(r.weekOfYear=oa(this.helper.id,e)),r.daysInWeek=7,t.daysInMonth&&(r.daysInMonth=this.helper.daysInMonth(r,n)),t.daysInYear){let e=this.helper.startOfCalendarYear(r),t=this.helper.addCalendar(e,{years:1},`constrain`,n);r.daysInYear=this.helper.calendarDaysUntil(e,t,n)}return t.monthsInYear&&(r.monthsInYear=this.helper.monthsInYear(r,n)),t.inLeapYear&&(r.inLeapYear=this.helper.inLeapYear(r,n)),r}getFirstDayOfWeek(){return this.helper.getFirstDayOfWeek()}getMinimalDaysInFirstWeek(){return this.helper.getMinimalDaysInFirstWeek()}};for(let e of[ga,wa,Fa,Na,Pa,Va,Ha,Ia,Ta,La,Ra,za,va,ya,ba,xa,Sa,Ca]){let t=new e;ca[t.id]=new Ua(t)}Re(`calendarImpl`,(function(e){return ca[e]}));var Wa=Intl.DateTimeFormat;function Ga(e,t){let n=A(e,t);return typeof n==`function`&&(n=new Wa(A(e,Oe),n(A(e,ke))),function(e,t,n){let r=Me(e);if(r===void 0)throw TypeError(`Missing slots for the given container`);if(r[t]===void 0)throw TypeError(`tried to reset ${t} which was not set`);r[t]=n}(e,t,n)),n}function Ka(e){return Fe(e,we)}var qa=class{constructor(e=void 0,t=void 0){(function(e,t,n){let r=n!==void 0,i;if(r){let e=[`localeMatcher`,`calendar`,`numberingSystem`,`hour12`,`hourCycle`,`timeZone`,`weekday`,`era`,`year`,`month`,`day`,`dayPeriod`,`hour`,`minute`,`second`,`fractionalSecondDigits`,`timeZoneName`,`formatMatcher`,`dateStyle`,`timeStyle`];i=function(e){if(e==null)throw TypeError(`Expected object not ${e}`);return Object(e)}(n);let t=Object.create(null);for(let n=0;n<e.length;n++){let r=e[n];Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}i=t}else i=Object.create(null);let a=new Wa(t,i),o=a.resolvedOptions();if(Pe(e),r){let t=Object.assign(Object.create(null),o);for(let e in t)Object.prototype.hasOwnProperty.call(i,e)||delete t[e];t.hour12=i.hour12,t.hourCycle=i.hourCycle,j(e,ke,t)}else j(e,ke,i);j(e,Oe,o.locale),j(e,we,a),j(e,Te,o.timeZone),j(e,De,o.calendar),j(e,ve,io),j(e,ye,no),j(e,be,ro),j(e,xe,to),j(e,Se,ao),j(e,Ce,oo);let s=r?i.timeZone:void 0;if(s===void 0)j(e,Ee,o.timeZone);else{let t=xt(s);if(t.startsWith(`−`))throw RangeError(`Unicode minus (U+2212) is not supported in time zone offsets`);j(e,Ee,er(t))}})(this,e,t)}get format(){W(this,Ka);let e=Xa.bind(this);return Object.defineProperties(e,{length:{value:1,enumerable:!1,writable:!1,configurable:!0},name:{value:``,enumerable:!1,writable:!1,configurable:!0}}),e}formatRange(e,t){return W(this,Ka),Qa.call(this,e,t)}formatToParts(e,...t){return W(this,Ka),Za.call(this,e,...t)}formatRangeToParts(e,t){return W(this,Ka),$a.call(this,e,t)}resolvedOptions(){return W(this,Ka),Ya.call(this)}};`formatToParts`in Wa.prototype||delete qa.prototype.formatToParts,`formatRangeToParts`in Wa.prototype||delete qa.prototype.formatRangeToParts;var Ja=function(e=void 0,t=void 0){return new qa(e,t)};function Ya(){let e=A(this,we).resolvedOptions();return e.timeZone=A(this,Ee),e}function Xa(e,...t){let n,r,i=mo(e,this);return i.formatter?(n=i.formatter,r=[Gi(i.epochNs,`floor`)]):(n=A(this,we),r=[e,...t]),n.format(...r)}function Za(e,...t){let n,r,i=mo(e,this);return i.formatter?(n=i.formatter,r=[Gi(i.epochNs,`floor`)]):(n=A(this,we),r=[e,...t]),n.formatToParts(...r)}function Qa(e,t){if(e===void 0||t===void 0)throw TypeError(`Intl.DateTimeFormat.formatRange requires two values`);let n=fo(e),r=fo(t),i,a=[n,r];if(uo(n)!==uo(r))throw TypeError(`Intl.DateTimeFormat.formatRange accepts two values of the same type`);if(uo(n)){if(!po(n,r))throw TypeError(`Intl.DateTimeFormat.formatRange accepts two values of the same type`);let{epochNs:e,formatter:t}=mo(n,this),{epochNs:o,formatter:s}=mo(r,this);t&&(i=t,a=[Gi(e,`floor`),Gi(o,`floor`)])}return i||=A(this,we),i.formatRange(...a)}function $a(e,t){if(e===void 0||t===void 0)throw TypeError(`Intl.DateTimeFormat.formatRange requires two values`);let n=fo(e),r=fo(t),i,a=[n,r];if(uo(n)!==uo(r))throw TypeError(`Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type`);if(uo(n)){if(!po(n,r))throw TypeError(`Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type`);let{epochNs:e,formatter:t}=mo(n,this),{epochNs:o,formatter:s}=mo(r,this);t&&(i=t,a=[Gi(e,`floor`),Gi(o,`floor`)])}return i||=A(this,we),i.formatRangeToParts(...a)}function eo(e={},t={}){let n=Object.assign({},e),r=[`year`,`month`,`day`,`hour`,`minute`,`second`,`weekday`,`dayPeriod`,`timeZoneName`,`dateStyle`,`timeStyle`];for(let e=0;e<r.length;e++){let i=r[e];n[i]=i in t?t[i]:n[i],!1!==n[i]&&n[i]!==void 0||delete n[i]}return n}function to(e){let t=eo(e,{year:!1,month:!1,day:!1,weekday:!1,timeZoneName:!1,dateStyle:!1});if(t.timeStyle!==`long`&&t.timeStyle!==`full`||(delete t.timeStyle,Object.assign(t,{hour:`numeric`,minute:`2-digit`,second:`2-digit`})),!co(t)){if(lo(e))throw TypeError(`cannot format Temporal.PlainTime with options [${Object.keys(e)}]`);Object.assign(t,{hour:`numeric`,minute:`numeric`,second:`numeric`})}return t}function no(e){let t={short:{year:`2-digit`,month:`numeric`},medium:{year:`numeric`,month:`short`},long:{year:`numeric`,month:`long`},full:{year:`numeric`,month:`long`}},n=eo(e,{day:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if(`dateStyle`in n&&n.dateStyle){let e=n.dateStyle;delete n.dateStyle,Object.assign(n,t[e])}if(!(`year`in n||`month`in n||`era`in n)){if(lo(e))throw TypeError(`cannot format PlainYearMonth with options [${Object.keys(e)}]`);Object.assign(n,{year:`numeric`,month:`numeric`})}return n}function ro(e){let t={short:{month:`numeric`,day:`numeric`},medium:{month:`short`,day:`numeric`},long:{month:`long`,day:`numeric`},full:{month:`long`,day:`numeric`}},n=eo(e,{year:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if(`dateStyle`in n&&n.dateStyle){let e=n.dateStyle;delete n.dateStyle,Object.assign(n,t[e])}if(!(`month`in n)&&!(`day`in n)){if(lo(e))throw TypeError(`cannot format PlainMonthDay with options [${Object.keys(e)}]`);Object.assign(n,{month:`numeric`,day:`numeric`})}return n}function io(e){let t=eo(e,{hour:!1,minute:!1,second:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if(!so(t)){if(lo(e))throw TypeError(`cannot format PlainDate with options [${Object.keys(e)}]`);Object.assign(t,{year:`numeric`,month:`numeric`,day:`numeric`})}return t}function ao(e){let t=eo(e,{timeZoneName:!1});if((t.timeStyle===`long`||t.timeStyle===`full`)&&(delete t.timeStyle,Object.assign(t,{hour:`numeric`,minute:`2-digit`,second:`2-digit`}),t.dateStyle)&&(Object.assign(t,{short:{year:`numeric`,month:`numeric`,day:`numeric`},medium:{year:`numeric`,month:`short`,day:`numeric`},long:{year:`numeric`,month:`long`,day:`numeric`},full:{year:`numeric`,month:`long`,day:`numeric`,weekday:`long`}}[t.dateStyle]),delete t.dateStyle),!co(t)&&!so(t)){if(lo(e))throw TypeError(`cannot format PlainDateTime with options [${Object.keys(e)}]`);Object.assign(t,{year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`})}return t}function oo(e){let t=e;return co(t)||so(t)||(t=Object.assign({},t,{year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`})),t}function so(e){return`year`in e||`month`in e||`day`in e||`weekday`in e||`dateStyle`in e||`era`in e}function co(e){return`hour`in e||`minute`in e||`second`in e||`timeStyle`in e||`dayPeriod`in e||`fractionalSecondDigits`in e}function lo(e){return so(e)||co(e)||`dateStyle`in e||`timeStyle`in e||`timeZoneName`in e}function uo(e){return z(e)||B(e)||V(e)||U(e)||H(e)||Rt(e)||L(e)}function fo(e){return uo(e)?e:bt(e)}function po(e,t){return!(!uo(e)||!uo(t)||B(e)&&!B(t)||z(e)&&!z(t)||V(e)&&!V(t)||U(e)&&!U(t)||H(e)&&!H(t)||Rt(e)&&!Rt(t)||L(e)&&!L(t))}function mo(e,t){if(B(e)){let n={isoDate:{year:1970,month:1,day:1},time:A(e,E)};return{epochNs:Y(A(t,Te),n,`compatible`),formatter:Ga(t,xe)}}if(H(e)){let n=A(e,D),r=A(t,De);if(n!==r)throw RangeError(`cannot format PlainYearMonth with calendar ${n} in locale with calendar ${r}`);let i=K(A(e,w),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Y(A(t,Te),i,`compatible`),formatter:Ga(t,ye)}}if(Rt(e)){let n=A(e,D),r=A(t,De);if(n!==r)throw RangeError(`cannot format PlainMonthDay with calendar ${n} in locale with calendar ${r}`);let i=K(A(e,w),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Y(A(t,Te),i,`compatible`),formatter:Ga(t,be)}}if(z(e)){let n=A(e,D),r=A(t,De);if(n!==`iso8601`&&n!==r)throw RangeError(`cannot format PlainDate with calendar ${n} in locale with calendar ${r}`);let i=K(A(e,w),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Y(A(t,Te),i,`compatible`),formatter:Ga(t,ve)}}if(V(e)){let n=A(e,D),r=A(t,De);if(n!==`iso8601`&&n!==r)throw RangeError(`cannot format PlainDateTime with calendar ${n} in locale with calendar ${r}`);let i=A(e,T);return{epochNs:Y(A(t,Te),i,`compatible`),formatter:Ga(t,Se)}}if(U(e))throw TypeError(`Temporal.ZonedDateTime not supported in DateTimeFormat methods. Use toLocaleString() instead.`);return L(e)?{epochNs:A(e,C),formatter:Ga(t,Ce)}:{}}function ho(e){let t=Object.create(null);return t.years=A(e,k),t.months=A(e,le),t.weeks=A(e,ue),t.days=A(e,de),t.hours=A(e,fe),t.minutes=A(e,pe),t.seconds=A(e,me),t.milliseconds=A(e,he),t.microseconds=A(e,ge),t.nanoseconds=A(e,_e),t}qa.prototype.constructor=Ja,Object.defineProperty(Ja,`prototype`,{value:qa.prototype,writable:!1,enumerable:!1,configurable:!1}),Ja.supportedLocalesOf=Wa.supportedLocalesOf,Le(Ja,`Intl.DateTimeFormat`);var{format:go,formatToParts:_o}=Intl.DurationFormat?.prototype??Object.create(null);function vo(e){Intl.DurationFormat.prototype.resolvedOptions.call(this);let t=ho(Cn(e));return go.call(this,t)}Intl.DurationFormat?.prototype&&(Intl.DurationFormat.prototype.format=vo,Intl.DurationFormat.prototype.formatToParts=function(e){Intl.DurationFormat.prototype.resolvedOptions.call(this);let t=ho(Cn(e));return _o.call(this,t)}),Object.freeze({__proto__:null,DateTimeFormat:Ja,ModifiedIntlDurationFormatPrototypeFormat:vo});var yo=class{constructor(e){if(arguments.length<1)throw TypeError(`missing argument: epochNanoseconds is required`);Vn(this,qi(e))}get epochMilliseconds(){return W(this,L),Gi(A(this,C),`floor`)}get epochNanoseconds(){return W(this,L),Wi(l.default.BigInt(A(this,C)))}add(e){return W(this,L),ki(`add`,this,e)}subtract(e){return W(this,L),ki(`subtract`,this,e)}until(e,t=void 0){return W(this,L),yi(`until`,this,e,t)}since(e,t=void 0){return W(this,L),yi(`since`,this,e,t)}round(e){if(W(this,L),e===void 0)throw TypeError(`options parameter is required`);let t=typeof e==`string`?Zi(`smallestUnit`,e):Q(e),n=rn(t),r=en(t,`halfExpand`),i=ln(t,`smallestUnit`,`time`,cn);return an(n,{hour:24,minute:1440,second:86400,millisecond:864e5,microsecond:864e8,nanosecond:864e11}[i],!0),Hn(Ii(A(this,C),n,i,r))}equals(e){W(this,L);let t=wn(e),n=A(this,C),r=A(t,C);return l.default.equal(l.default.BigInt(n),l.default.BigInt(r))}toString(e=void 0){W(this,L);let t=Q(e),n=on(t),r=en(t,`trunc`),i=ln(t,`smallestUnit`,`time`,void 0);if(i===`hour`)throw RangeError(`smallestUnit must be a time unit other than "hour"`);let a=t.timeZone;a!==void 0&&(a=er(a));let{precision:o,unit:s,increment:c}=sn(i,n);return fr(Hn(Ii(A(this,C),c,s,r)),a,o)}toJSON(){return W(this,L),fr(this,void 0,`auto`)}toLocaleString(e=void 0,t=void 0){return W(this,L),new Ja(e,t).format(this)}valueOf(){ta(`Instant`)}toZonedDateTimeISO(e){W(this,L);let t=er(e);return J(A(this,C),t,`iso8601`)}static fromEpochMilliseconds(e){return Hn(Ki(bt(e)))}static fromEpochNanoseconds(e){return Hn(qi(e))}static from(e){return wn(e)}static compare(e,t){let n=wn(e),r=wn(t),i=A(n,C),a=A(r,C);return l.default.lessThan(i,a)?-1:+!!l.default.greaterThan(i,a)}};Le(yo,`Temporal.Instant`);var bo=class{constructor(e,t,n,r=`iso8601`){let i=F(e),a=F(t),o=F(n),s=$i(r===void 0?`iso8601`:I(r));qr(i,a,o),jn(this,{year:i,month:a,day:o},s)}get calendarId(){return W(this,z),A(this,D)}get era(){return xo(this,`era`)}get eraYear(){return xo(this,`eraYear`)}get year(){return xo(this,`year`)}get month(){return xo(this,`month`)}get monthCode(){return xo(this,`monthCode`)}get day(){return xo(this,`day`)}get dayOfWeek(){return xo(this,`dayOfWeek`)}get dayOfYear(){return xo(this,`dayOfYear`)}get weekOfYear(){return xo(this,`weekOfYear`)?.week}get yearOfWeek(){return xo(this,`weekOfYear`)?.year}get daysInWeek(){return xo(this,`daysInWeek`)}get daysInMonth(){return xo(this,`daysInMonth`)}get daysInYear(){return xo(this,`daysInYear`)}get monthsInYear(){return xo(this,`monthsInYear`)}get inLeapYear(){return xo(this,`inLeapYear`)}with(e,t=void 0){if(W(this,z),!P(e))throw TypeError(`invalid argument`);zt(e);let n=A(this,D),r=_n(n,A(this,w));return r=Gn(n,r,vn(n,e,[`year`,`month`,`monthCode`,`day`],[],`partial`)),Mn(Zn(n,r,q(Q(t))),n)}withCalendar(e){W(this,z);let t=Jn(e);return Mn(A(this,w),t)}add(e,t=void 0){return W(this,z),Ai(`add`,this,e,t)}subtract(e,t=void 0){return W(this,z),Ai(`subtract`,this,e,t)}until(e,t=void 0){return W(this,z),bi(`until`,this,e,t)}since(e,t=void 0){return W(this,z),bi(`since`,this,e,t)}equals(e){W(this,z);let t=bn(e);return Vi(A(this,w),A(t,w))===0&&Xn(A(this,D),A(t,D))}toString(e=void 0){return W(this,z),mr(this,nn(Q(e)))}toJSON(){return W(this,z),mr(this)}toLocaleString(e=void 0,t=void 0){return W(this,z),new Ja(e,t).format(this)}valueOf(){ta(`PlainDate`)}toPlainDateTime(e=void 0){W(this,z);let t=Dn(e);return Pn(K(A(this,w),t),A(this,D))}toZonedDateTime(e){let t,n;if(W(this,z),P(e)){let r=e.timeZone;r===void 0?t=er(e):(t=er(r),n=e.plainTime)}else t=er(e);let r=A(this,w),i;return n===void 0?i=sr(t,r):(n=En(n),i=Y(t,K(r,A(n,E)),`compatible`)),J(i,t,A(this,D))}toPlainYearMonth(){W(this,z);let e=A(this,D);return Bn(Qn(e,_n(e,A(this,w)),`constrain`),e)}toPlainMonthDay(){W(this,z);let e=A(this,D);return In($n(e,_n(e,A(this,w)),`constrain`),e)}static from(e,t=void 0){return bn(e,t)}static compare(e,t){let n=bn(e),r=bn(t);return Vi(A(n,w),A(r,w))}};function xo(e,t){W(e,z);let n=A(e,w);return gn(e).isoToDate(n,{[t]:!0})[t]}Le(bo,`Temporal.PlainDate`);var So=class{constructor(e,t,n,r=0,i=0,a=0,o=0,s=0,c=0,l=`iso8601`){let u=F(e),d=F(t),f=F(n),p=r===void 0?0:F(r),m=i===void 0?0:F(i),h=a===void 0?0:F(a),g=o===void 0?0:F(o),_=s===void 0?0:F(s),v=c===void 0?0:F(c),y=$i(l===void 0?`iso8601`:I(l));Xr(u,d,f,p,m,h,g,_,v),Nn(this,{isoDate:{year:u,month:d,day:f},time:{hour:p,minute:m,second:h,millisecond:g,microsecond:_,nanosecond:v}},y)}get calendarId(){return W(this,V),A(this,D)}get year(){return Co(this,`year`)}get month(){return Co(this,`month`)}get monthCode(){return Co(this,`monthCode`)}get day(){return Co(this,`day`)}get hour(){return wo(this,`hour`)}get minute(){return wo(this,`minute`)}get second(){return wo(this,`second`)}get millisecond(){return wo(this,`millisecond`)}get microsecond(){return wo(this,`microsecond`)}get nanosecond(){return wo(this,`nanosecond`)}get era(){return Co(this,`era`)}get eraYear(){return Co(this,`eraYear`)}get dayOfWeek(){return Co(this,`dayOfWeek`)}get dayOfYear(){return Co(this,`dayOfYear`)}get weekOfYear(){return Co(this,`weekOfYear`)?.week}get yearOfWeek(){return Co(this,`weekOfYear`)?.year}get daysInWeek(){return Co(this,`daysInWeek`)}get daysInYear(){return Co(this,`daysInYear`)}get daysInMonth(){return Co(this,`daysInMonth`)}get monthsInYear(){return Co(this,`monthsInYear`)}get inLeapYear(){return Co(this,`inLeapYear`)}with(e,t=void 0){if(W(this,V),!P(e))throw TypeError(`invalid argument`);zt(e);let n=A(this,D),r=A(this,T),i={..._n(n,r.isoDate),...r.time};return i=Gn(n,i,vn(n,e,[`year`,`month`,`monthCode`,`day`],[`hour`,`minute`,`second`,`millisecond`,`microsecond`,`nanosecond`],`partial`)),Pn(xn(n,i,q(Q(t))),n)}withPlainTime(e=void 0){W(this,V);let t=Dn(e);return Pn(K(A(this,T).isoDate,t),A(this,D))}withCalendar(e){W(this,V);let t=Jn(e);return Pn(A(this,T),t)}add(e,t=void 0){return W(this,V),ji(`add`,this,e,t)}subtract(e,t=void 0){return W(this,V),ji(`subtract`,this,e,t)}until(e,t=void 0){return W(this,V),xi(`until`,this,e,t)}since(e,t=void 0){return W(this,V),xi(`since`,this,e,t)}round(e){if(W(this,V),e===void 0)throw TypeError(`options parameter is required`);let t=typeof e==`string`?Zi(`smallestUnit`,e):Q(e),n=rn(t),r=en(t,`halfExpand`),i=ln(t,`smallestUnit`,`time`,cn,[`day`]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];an(n,a,a===1);let o=A(this,T);return Pn(n===1&&i===`nanosecond`?o:Li(o,n,i,r),A(this,D))}equals(e){W(this,V);let t=Sn(e);return Ui(A(this,T),A(t,T))===0&&Xn(A(this,D),A(t,D))}toString(e=void 0){W(this,V);let t=Q(e),n=nn(t),r=on(t),i=en(t,`trunc`),a=ln(t,`smallestUnit`,`time`,void 0);if(a===`hour`)throw RangeError(`smallestUnit must be a time unit other than "hour"`);let{precision:o,unit:s,increment:c}=sn(a,r),l=Li(A(this,T),c,s,i);return Zr(l),gr(l,A(this,D),o,n)}toJSON(){return W(this,V),gr(A(this,T),A(this,D),`auto`)}toLocaleString(e=void 0,t=void 0){return W(this,V),new Ja(e,t).format(this)}valueOf(){ta(`PlainDateTime`)}toZonedDateTime(e,t=void 0){W(this,V);let n=er(e),r=$t(Q(t));return J(Y(n,A(this,T),r),n,A(this,D))}toPlainDate(){return W(this,V),Mn(A(this,T).isoDate,A(this,D))}toPlainTime(){return W(this,V),Rn(A(this,T).time)}static from(e,t=void 0){return Sn(e,t)}static compare(e,t){let n=Sn(e),r=Sn(t);return Ui(A(n,T),A(r,T))}};function Co(e,t){W(e,V);let n=A(e,T).isoDate;return gn(e).isoToDate(n,{[t]:!0})[t]}function wo(e,t){return W(e,V),A(e,T).time[t]}Le(So,`Temporal.PlainDateTime`);var To=class e{constructor(e=0,t=0,n=0,r=0,i=0,a=0,o=0,s=0,c=0,l=0){let u=e===void 0?0:Ct(e),d=t===void 0?0:Ct(t),f=n===void 0?0:Ct(n),p=r===void 0?0:Ct(r),m=i===void 0?0:Ct(i),h=a===void 0?0:Ct(a),g=o===void 0?0:Ct(o),_=s===void 0?0:Ct(s),v=c===void 0?0:Ct(c),y=l===void 0?0:Ct(l);ti(u,d,f,p,m,h,g,_,v,y),Pe(this),j(this,k,u),j(this,le,d),j(this,ue,f),j(this,de,p),j(this,fe,m),j(this,pe,h),j(this,me,g),j(this,he,_),j(this,ge,v),j(this,_e,y)}get years(){return W(this,R),A(this,k)}get months(){return W(this,R),A(this,le)}get weeks(){return W(this,R),A(this,ue)}get days(){return W(this,R),A(this,de)}get hours(){return W(this,R),A(this,fe)}get minutes(){return W(this,R),A(this,pe)}get seconds(){return W(this,R),A(this,me)}get milliseconds(){return W(this,R),A(this,he)}get microseconds(){return W(this,R),A(this,ge)}get nanoseconds(){return W(this,R),A(this,_e)}get sign(){return W(this,R),Ir(this)}get blank(){return W(this,R),Ir(this)===0}with(t){W(this,R);let{years:n=A(this,k),months:r=A(this,le),weeks:i=A(this,ue),days:a=A(this,de),hours:o=A(this,fe),minutes:s=A(this,pe),seconds:c=A(this,me),milliseconds:l=A(this,he),microseconds:u=A(this,ge),nanoseconds:d=A(this,_e)}=Qt(t);return new e(n,r,i,a,o,s,c,l,u,d)}negated(){return W(this,R),Wr(this)}abs(){return W(this,R),new e(Math.abs(A(this,k)),Math.abs(A(this,le)),Math.abs(A(this,ue)),Math.abs(A(this,de)),Math.abs(A(this,fe)),Math.abs(A(this,pe)),Math.abs(A(this,me)),Math.abs(A(this,he)),Math.abs(A(this,ge)),Math.abs(A(this,_e)))}add(e){return W(this,R),Oi(`add`,this,e)}subtract(e){return W(this,R),Oi(`subtract`,this,e)}round(e){if(W(this,R),e===void 0)throw TypeError(`options parameter is required`);let t=dn(this),n=typeof e==`string`?Zi(`smallestUnit`,e):Q(e),r=ln(n,`largestUnit`,`datetime`,void 0,[`auto`]),{plainRelativeTo:i,zonedRelativeTo:a}=un(n),o=rn(n),s=en(n,`halfExpand`),c=ln(n,`smallestUnit`,`datetime`,void 0),l=!0;c||=(l=!1,`nanosecond`);let u=fn(t,c),d=!0;if(r||=(d=!1,u),r===`auto`&&(r=u),!l&&!d)throw RangeError(`at least one of smallestUnit or largestUnit is required`);if(fn(r,c)!==r)throw RangeError(`largestUnit ${r} cannot be smaller than smallestUnit ${c}`);let f={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[c];if(f!==void 0&&an(o,f,!1),o>1&&mn(c)===`date`&&r!==c)throw RangeError(`For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit`);if(a){let e=ni(this),t=A(a,O),n=A(a,D),i=A(a,C);return e=_i(i,Di(i,t,n,e),t,n,r,o,c,s),mn(r)===`date`&&(r=`hour`),ai(e,r)}if(i){let e=ri(this),t=Ti({deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},e.time),n=A(i,w),a=A(i,D),l=Kn(a,n,G(e.date,t.deltaDays),`constrain`);return e=gi(K(n,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),K(l,t),a,r,o,c,s),ai(e,r)}if(pn(t))throw RangeError(`a starting point is required for ${t}s balancing`);if(pn(r))throw RangeError(`a starting point is required for ${r}s balancing`);let p=ri(this);if(c===`day`){let{quotient:e,remainder:t}=p.time.divmod(st),n=p.date.days+e+Bi(t,`day`);n=Fi(n,o,s),p=oi({years:0,months:0,weeks:0,days:n},N.ZERO)}else p=oi({years:0,months:0,weeks:0,days:0},zi(p.time,o,c,s));return ai(p,r)}total(e){if(W(this,R),e===void 0)throw TypeError(`options argument is required`);let t=typeof e==`string`?Zi(`unit`,e):Q(e),{plainRelativeTo:n,zonedRelativeTo:r}=un(t),i=ln(t,`unit`,`datetime`,cn);if(r){let e=ni(this),t=A(r,O),n=A(r,D),a=A(r,C);return function(e,t,n,r,i){return mn(i)===`time`?Bi(N.fromEpochNsDiff(t,e),i):hi(fi(e,t,n,r,i),t,ir(n,e),n,r,i)}(a,Di(a,t,n,e),t,n,i)}if(n){let e=ri(this),t=Ti({deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},e.time),r=A(n,w),a=A(n,D),o=Kn(a,r,G(e.date,t.deltaDays),`constrain`);return function(e,t,n,r){if(Ui(e,t)==0)return 0;Zr(e),Zr(t);let i=di(e,t,n,r);return r===`nanosecond`?l.default.toNumber(i.time.totalNs):hi(i,X(t),e,null,n,r)}(K(r,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),K(o,t),a,i)}let a=dn(this);if(pn(a))throw RangeError(`a starting point is required for ${a}s total`);if(pn(i))throw RangeError(`a starting point is required for ${i}s total`);return Bi(ri(this).time,i)}toString(e=void 0){W(this,R);let t=Q(e),n=on(t),r=en(t,`trunc`),i=ln(t,`smallestUnit`,`time`,void 0);if(i===`hour`||i===`minute`)throw RangeError(`smallestUnit must be a time unit other than "hours" or "minutes"`);let{precision:a,unit:o,increment:s}=sn(i,n);if(o===`nanosecond`&&s===1)return pr(this,a);let c=dn(this),l=ni(this),u=zi(l.time,s,o,r);return l=oi(l.date,u),pr(ai(l,fn(c,`second`)),a)}toJSON(){return W(this,R),pr(this,`auto`)}toLocaleString(e=void 0,t=void 0){if(W(this,R),typeof Intl.DurationFormat==`function`){let n=new Intl.DurationFormat(e,t);return vo.call(n,this)}return console.warn(`Temporal.Duration.prototype.toLocaleString() requires Intl.DurationFormat.`),pr(this,`auto`)}valueOf(){ta(`Duration`)}static from(e){return Cn(e)}static compare(e,t,n=void 0){let r=Cn(e),i=Cn(t),{plainRelativeTo:a,zonedRelativeTo:o}=un(Q(n));if(A(r,k)===A(i,k)&&A(r,le)===A(i,le)&&A(r,ue)===A(i,ue)&&A(r,de)===A(i,de)&&A(r,fe)===A(i,fe)&&A(r,pe)===A(i,pe)&&A(r,me)===A(i,me)&&A(r,he)===A(i,he)&&A(r,ge)===A(i,ge)&&A(r,_e)===A(i,_e))return 0;let s=dn(r),c=dn(i),u=ni(r),d=ni(i);if(o&&(mn(s)===`date`||mn(c)===`date`)){let e=A(o,O),t=A(o,D),n=A(o,C),r=Di(n,e,t,u),i=Di(n,e,t,d);return Xi(l.default.toNumber(l.default.subtract(r,i)))}let f=u.date.days,p=d.date.days;if(pn(s)||pn(c)){if(!a)throw RangeError(`A starting point is required for years, months, or weeks comparison`);f=Ur(u.date,a),p=Ur(d.date,a)}let m=u.time.add24HourDays(f),h=d.time.add24HourDays(p);return m.cmp(h)}};Le(To,`Temporal.Duration`);var Eo=class{constructor(e,t,n=`iso8601`,r=1972){let i=F(e),a=F(t),o=$i(n===void 0?`iso8601`:I(n)),s=F(r);qr(s,i,a),Fn(this,{year:s,month:i,day:a},o)}get monthCode(){return Do(this,`monthCode`)}get day(){return Do(this,`day`)}get calendarId(){return W(this,Rt),A(this,D)}with(e,t=void 0){if(W(this,Rt),!P(e))throw TypeError(`invalid argument`);zt(e);let n=A(this,D),r=_n(n,A(this,w),`month-day`);return r=Gn(n,r,vn(n,e,[`year`,`month`,`monthCode`,`day`],[],`partial`)),In($n(n,r,q(Q(t))),n)}equals(e){W(this,Rt);let t=Tn(e);return Vi(A(this,w),A(t,w))===0&&Xn(A(this,D),A(t,D))}toString(e=void 0){return W(this,Rt),_r(this,nn(Q(e)))}toJSON(){return W(this,Rt),_r(this)}toLocaleString(e=void 0,t=void 0){return W(this,Rt),new Ja(e,t).format(this)}valueOf(){ta(`PlainMonthDay`)}toPlainDate(e){if(W(this,Rt),!P(e))throw TypeError(`argument should be an object`);let t=A(this,D);return Mn(Zn(t,Gn(t,_n(t,A(this,w),`month-day`),vn(t,e,[`year`],[],[])),`constrain`),t)}static from(e,t=void 0){return Tn(e,t)}};function Do(e,t){W(e,Rt);let n=A(e,w);return gn(e).isoToDate(n,{[t]:!0})[t]}function Oo(e){return ir(e,Ji())}Le(Eo,`Temporal.PlainMonthDay`);var ko={instant:()=>Hn(Ji()),plainDateTimeISO:(e=Yi())=>Pn(Oo(er(e)),`iso8601`),plainDateISO:(e=Yi())=>Mn(Oo(er(e)).isoDate,`iso8601`),plainTimeISO:(e=Yi())=>Rn(Oo(er(e)).time),timeZoneId:()=>Yi(),zonedDateTimeISO:(e=Yi())=>{let t=er(e);return J(Ji(),t,`iso8601`)},[Symbol.toStringTag]:`Temporal.Now`};Object.defineProperty(ko,Symbol.toStringTag,{value:`Temporal.Now`,writable:!1,enumerable:!1,configurable:!0});var Ao=class e{constructor(e=0,t=0,n=0,r=0,i=0,a=0){let o=e===void 0?0:F(e),s=t===void 0?0:F(t),c=n===void 0?0:F(n),l=r===void 0?0:F(r),u=i===void 0?0:F(i),d=a===void 0?0:F(a);Yr(o,s,c,l,u,d),Ln(this,{hour:o,minute:s,second:c,millisecond:l,microsecond:u,nanosecond:d})}get hour(){return W(this,B),A(this,E).hour}get minute(){return W(this,B),A(this,E).minute}get second(){return W(this,B),A(this,E).second}get millisecond(){return W(this,B),A(this,E).millisecond}get microsecond(){return W(this,B),A(this,E).microsecond}get nanosecond(){return W(this,B),A(this,E).nanosecond}with(t,n=void 0){if(W(this,B),!P(t))throw TypeError(`invalid argument`);zt(t);let r=yn(t,`partial`),i=yn(this),{hour:a,minute:o,second:s,millisecond:c,microsecond:l,nanosecond:u}=Object.assign(i,r),d=q(Q(n));return{hour:a,minute:o,second:s,millisecond:c,microsecond:l,nanosecond:u}=Zt(a,o,s,c,l,u,d),new e(a,o,s,c,l,u)}add(e){return W(this,B),Mi(`add`,this,e)}subtract(e){return W(this,B),Mi(`subtract`,this,e)}until(e,t=void 0){return W(this,B),Si(`until`,this,e,t)}since(e,t=void 0){return W(this,B),Si(`since`,this,e,t)}round(e){if(W(this,B),e===void 0)throw TypeError(`options parameter is required`);let t=typeof e==`string`?Zi(`smallestUnit`,e):Q(e),n=rn(t),r=en(t,`halfExpand`),i=ln(t,`smallestUnit`,`time`,cn);return an(n,{hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i],!1),Rn(Ri(A(this,E),n,i,r))}equals(e){W(this,B);let t=En(e);return Hi(A(this,E),A(t,E))===0}toString(e=void 0){W(this,B);let t=Q(e),n=on(t),r=en(t,`trunc`),i=ln(t,`smallestUnit`,`time`,void 0);if(i===`hour`)throw RangeError(`smallestUnit must be a time unit other than "hour"`);let{precision:a,unit:o,increment:s}=sn(i,n);return hr(Ri(A(this,E),s,o,r),a)}toJSON(){return W(this,B),hr(A(this,E),`auto`)}toLocaleString(e=void 0,t=void 0){return W(this,B),new Ja(e,t).format(this)}valueOf(){ta(`PlainTime`)}static from(e,t=void 0){return En(e,t)}static compare(e,t){let n=En(e),r=En(t);return Hi(A(n,E),A(r,E))}};Le(Ao,`Temporal.PlainTime`);var jo=class{constructor(e,t,n=`iso8601`,r=1){let i=F(e),a=F(t),o=$i(n===void 0?`iso8601`:I(n)),s=F(r);qr(i,a,s),zn(this,{year:i,month:a,day:s},o)}get year(){return Mo(this,`year`)}get month(){return Mo(this,`month`)}get monthCode(){return Mo(this,`monthCode`)}get calendarId(){return W(this,H),A(this,D)}get era(){return Mo(this,`era`)}get eraYear(){return Mo(this,`eraYear`)}get daysInMonth(){return Mo(this,`daysInMonth`)}get daysInYear(){return Mo(this,`daysInYear`)}get monthsInYear(){return Mo(this,`monthsInYear`)}get inLeapYear(){return Mo(this,`inLeapYear`)}with(e,t=void 0){if(W(this,H),!P(e))throw TypeError(`invalid argument`);zt(e);let n=A(this,D),r=_n(n,A(this,w),`year-month`);return r=Gn(n,r,vn(n,e,[`year`,`month`,`monthCode`],[],`partial`)),Bn(Qn(n,r,q(Q(t))),n)}add(e,t=void 0){return W(this,H),Ni(`add`,this,e,t)}subtract(e,t=void 0){return W(this,H),Ni(`subtract`,this,e,t)}until(e,t=void 0){return W(this,H),Ci(`until`,this,e,t)}since(e,t=void 0){return W(this,H),Ci(`since`,this,e,t)}equals(e){W(this,H);let t=On(e);return Vi(A(this,w),A(t,w))===0&&Xn(A(this,D),A(t,D))}toString(e=void 0){return W(this,H),vr(this,nn(Q(e)))}toJSON(){return W(this,H),vr(this)}toLocaleString(e=void 0,t=void 0){return W(this,H),new Ja(e,t).format(this)}valueOf(){ta(`PlainYearMonth`)}toPlainDate(e){if(W(this,H),!P(e))throw TypeError(`argument should be an object`);let t=A(this,D);return Mn(Zn(t,Gn(t,_n(t,A(this,w),`year-month`),vn(t,e,[`day`],[],[])),`constrain`),t)}static from(e,t=void 0){return On(e,t)}static compare(e,t){let n=On(e),r=On(t);return Vi(A(n,w),A(r,w))}};function Mo(e,t){W(e,H);let n=A(e,w);return gn(e).isoToDate(n,{[t]:!0})[t]}Le(jo,`Temporal.PlainYearMonth`);var No=Ja.prototype.resolvedOptions,Po=class{constructor(e,t,n=`iso8601`){if(arguments.length<1)throw TypeError(`missing argument: epochNanoseconds is required`);let r=qi(e),i=I(t),{tzName:a,offsetMinutes:o}=Yt(i);if(o===void 0){let e=wr(a);if(!e)throw RangeError(`unknown time zone ${a}`);i=e.identifier}else i=Dr(o);Un(this,r,i,$i(n===void 0?`iso8601`:I(n)))}get calendarId(){return W(this,U),A(this,D)}get timeZoneId(){return W(this,U),A(this,O)}get year(){return Io(this,`year`)}get month(){return Io(this,`month`)}get monthCode(){return Io(this,`monthCode`)}get day(){return Io(this,`day`)}get hour(){return Lo(this,`hour`)}get minute(){return Lo(this,`minute`)}get second(){return Lo(this,`second`)}get millisecond(){return Lo(this,`millisecond`)}get microsecond(){return Lo(this,`microsecond`)}get nanosecond(){return Lo(this,`nanosecond`)}get era(){return Io(this,`era`)}get eraYear(){return Io(this,`eraYear`)}get epochMilliseconds(){return W(this,U),Gi(A(this,C),`floor`)}get epochNanoseconds(){return W(this,U),Wi(A(this,C))}get dayOfWeek(){return Io(this,`dayOfWeek`)}get dayOfYear(){return Io(this,`dayOfYear`)}get weekOfYear(){return Io(this,`weekOfYear`)?.week}get yearOfWeek(){return Io(this,`weekOfYear`)?.year}get hoursInDay(){W(this,U);let e=A(this,O),t=Fo(this).isoDate,n=Br(t.year,t.month,t.day+1),r=sr(e,t),i=sr(e,n);return Bi(N.fromEpochNsDiff(i,r),`hour`)}get daysInWeek(){return Io(this,`daysInWeek`)}get daysInMonth(){return Io(this,`daysInMonth`)}get daysInYear(){return Io(this,`daysInYear`)}get monthsInYear(){return Io(this,`monthsInYear`)}get inLeapYear(){return Io(this,`inLeapYear`)}get offset(){return W(this,U),rr(nr(A(this,O),A(this,C)))}get offsetNanoseconds(){return W(this,U),nr(A(this,O),A(this,C))}with(e,t=void 0){if(W(this,U),!P(e))throw TypeError(`invalid zoned-date-time-like`);zt(e);let n=A(this,D),r=A(this,O),i=nr(r,A(this,C)),a=Fo(this),o={..._n(n,a.isoDate),...a.time,offset:rr(i)};o=Gn(n,o,vn(n,e,[`year`,`month`,`monthCode`,`day`],[`hour`,`minute`,`second`,`millisecond`,`microsecond`,`nanosecond`,`offset`],`partial`));let s=Q(t),c=$t(s),l=tn(s,`prefer`),u=xn(n,o,q(s)),d=xr(o.offset);return J(kn(u.isoDate,u.time,`option`,d,r,c,l,!1),r,n)}withPlainTime(e=void 0){W(this,U);let t=A(this,O),n=A(this,D),r=Fo(this).isoDate,i;return i=e===void 0?sr(t,r):Y(t,K(r,A(En(e),E)),`compatible`),J(i,t,n)}withTimeZone(e){W(this,U);let t=er(e);return J(A(this,C),t,A(this,D))}withCalendar(e){W(this,U);let t=Jn(e);return J(A(this,C),A(this,O),t)}add(e,t=void 0){return W(this,U),Pi(`add`,this,e,t)}subtract(e,t=void 0){return W(this,U),Pi(`subtract`,this,e,t)}until(e,t=void 0){return W(this,U),wi(`until`,this,e,t)}since(e,t=void 0){return W(this,U),wi(`since`,this,e,t)}round(e){if(W(this,U),e===void 0)throw TypeError(`options parameter is required`);let t=typeof e==`string`?Zi(`smallestUnit`,e):Q(e),n=rn(t),r=en(t,`halfExpand`),i=ln(t,`smallestUnit`,`time`,cn,[`day`]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];if(an(n,a,a===1),i===`nanosecond`&&n===1)return J(A(this,C),A(this,O),A(this,D));let o=A(this,O),s=A(this,C),c=Fo(this),u;if(i===`day`){let e=c.isoDate,t=Br(e.year,e.month,e.day+1),n=sr(o,e),i=sr(o,t),a=l.default.subtract(i,n);u=N.fromEpochNsDiff(s,n).round(a,r).addToEpochNs(n)}else{let e=Li(c,n,i,r),t=nr(o,s);u=kn(e.isoDate,e.time,`option`,t,o,`compatible`,`prefer`,!1)}return J(u,o,A(this,D))}equals(e){W(this,U);let t=An(e),n=A(this,C),r=A(t,C);return!!l.default.equal(l.default.BigInt(n),l.default.BigInt(r))&&!!tr(A(this,O),A(t,O))&&Xn(A(this,D),A(t,D))}toString(e=void 0){W(this,U);let t=Q(e),n=nn(t),r=on(t),i=function(e){return Qi(e,`offset`,[`auto`,`never`],`auto`)}(t),a=en(t,`trunc`),o=ln(t,`smallestUnit`,`time`,void 0);if(o===`hour`)throw RangeError(`smallestUnit must be a time unit other than "hour"`);let s=function(e){return Qi(e,`timeZoneName`,[`auto`,`never`,`critical`],`auto`)}(t),{precision:c,unit:l,increment:u}=sn(o,r);return yr(this,c,n,s,i,{unit:l,increment:u,roundingMode:a})}toLocaleString(e=void 0,t=void 0){W(this,U);let n=Q(t),r=Object.create(null);if(function(e,t,n,r){if(t==null)return;let i=Reflect.ownKeys(t);for(let r=0;r<i.length;r++){let a=i[r];!n.some((e=>Object.is(e,a)))&&Object.prototype.propertyIsEnumerable.call(t,a)&&(e[a]=t[a])}}(r,n,[`timeZone`]),n.timeZone!==void 0)throw TypeError(`ZonedDateTime toLocaleString does not accept a timeZone option`);if(r.year===void 0&&r.month===void 0&&r.day===void 0&&r.era===void 0&&r.weekday===void 0&&r.dateStyle===void 0&&r.hour===void 0&&r.minute===void 0&&r.second===void 0&&r.fractionalSecondDigits===void 0&&r.timeStyle===void 0&&r.dayPeriod===void 0&&r.timeZoneName===void 0&&(r.timeZoneName=`short`),r.timeZone=A(this,O),br(r.timeZone))throw RangeError(`toLocaleString does not currently support offset time zones`);let i=new Ja(e,r),a=No.call(i).calendar,o=A(this,D);if(o!==`iso8601`&&a!==`iso8601`&&!Xn(a,o))throw RangeError(`cannot format ZonedDateTime with calendar ${o} in locale with calendar ${a}`);return i.format(Hn(A(this,C)))}toJSON(){return W(this,U),yr(this,`auto`)}valueOf(){ta(`ZonedDateTime`)}startOfDay(){W(this,U);let e=A(this,O);return J(sr(e,Fo(this).isoDate),e,A(this,D))}getTimeZoneTransition(e){W(this,U);let t=A(this,O);if(e===void 0)throw TypeError(`options parameter is required`);let n=Qi(typeof e==`string`?Zi(`direction`,e):Q(e),`direction`,[`next`,`previous`],cn);if(n===void 0)throw TypeError(`direction option is required`);if(br(t)||t===`UTC`)return null;let r=A(this,C),i=n===`next`?jr(t,r):Mr(t,r);return i===null?null:J(i,t,A(this,D))}toInstant(){return W(this,U),Hn(A(this,C))}toPlainDate(){return W(this,U),Mn(Fo(this).isoDate,A(this,D))}toPlainTime(){return W(this,U),Rn(Fo(this).time)}toPlainDateTime(){return W(this,U),Pn(Fo(this),A(this,D))}static from(e,t=void 0){return An(e,t)}static compare(e,t){let n=An(e),r=An(t),i=A(n,C),a=A(r,C);return l.default.lessThan(l.default.BigInt(i),l.default.BigInt(a))?-1:+!!l.default.greaterThan(l.default.BigInt(i),l.default.BigInt(a))}};function Fo(e){return ir(A(e,O),A(e,C))}function Io(e,t){W(e,U);let n=Fo(e).isoDate;return gn(e).isoToDate(n,{[t]:!0})[t]}function Lo(e,t){return W(e,U),Fo(e).time[t]}Le(Po,`Temporal.ZonedDateTime`);var Ro=Object.freeze({__proto__:null,Duration:To,Instant:yo,Now:ko,PlainDate:bo,PlainDateTime:So,PlainMonthDay:Eo,PlainTime:Ao,PlainYearMonth:jo,ZonedDateTime:Po});(class{toTemporalInstant(){return Hn(Ki(Date.prototype.valueOf.call(this)))}}).prototype.toTemporalInstant;var zo=[yo,bo,So,To,Eo,Ao,jo,Po];for(let e of zo){let t=Object.getOwnPropertyDescriptor(e,`prototype`);(t.configurable||t.enumerable||t.writable)&&(t.configurable=!1,t.enumerable=!1,t.writable=!1,Object.defineProperty(e,`prototype`,t))}var Bo=null;function Vo(){if(Bo)return Bo;let e=globalThis.Temporal||Ro;if(!e)throw Error(`Temporal API not loaded. Make sure @js-temporal/polyfill is imported in your app.`);return Bo=e,e}var $=class{static parseToPlainDateTime(e){let t=Vo();return this.isPlainDateTime(e)?e:this.isZonedDateTime(e)?e.toPlainDateTime():this.isPlainDate(e)?e.toPlainDateTime({hour:0,minute:0,second:0,millisecond:0}):this.isPlainTime(e)?t.Now.plainDateTimeISO().with(e):typeof e==`object`&&e&&`getTime`in e&&typeof e.getTime==`function`?this.fromDate(e):typeof e==`number`?this.fromUnix(e):typeof e==`string`?this.parseISOString(e):typeof e==`object`&&e?this.fromObject(e):t.Now.plainDateTimeISO()}static fromDate(e){let t=Vo(),[n,r]=e.toISOString().split(`T`);return t.PlainDateTime.from(n+`T`+r.slice(0,-1))}static fromUnix(e){return this.fromDate(new Date(e))}static parseISOString(e){let t=Vo();try{if(e.includes(`T`)||/ \d{2}:\d{2}/.test(e)){let n=e.replace(` `,`T`);return t.PlainDateTime.from(n)}return t.PlainDate.from(e).toPlainDateTime({hour:0})}catch{return t.Now.plainDateTimeISO()}}static fromObject(e){let t=Vo(),n=e.year||t.Now.plainDateISO().year,r=e.month||1,i=e.day||1,a=e.hour||0,o=e.minute||0,s=e.second||0,c=e.millisecond||0;return t.PlainDateTime.from({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:c})}static toDate(e){let t=this.toPlainDateTime(e);return new Date(t.toString())}static toUnix(e){let t=this.toPlainDateTime(e);return Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond)}static toISOString(e){return this.toPlainDateTime(e).toString()+`Z`}static toPlainDateTime(e){return this.isPlainDateTime(e)?e:e.toPlainDateTime()}static isPlainDateTime(e){return typeof e==`object`&&!!e&&`year`in e&&`month`in e&&`day`in e&&`hour`in e}static isZonedDateTime(e){return typeof e==`object`&&!!e&&`timeZone`in e}static isPlainDate(e){return typeof e==`object`&&!!e&&`year`in e&&`month`in e&&`day`in e&&!(`hour`in e)&&`toPlainDateTime`in e}static isPlainTime(e){return typeof e==`object`&&!!e&&`hour`in e&&!(`year`in e)}static now(){return Vo().Now.plainDateTimeISO()}static nowInTimezone(e){return Vo().Now.zonedDateTimeISO(e)}static compare(e,t){let n=Vo();if(n.PlainDateTime&&typeof n.PlainDateTime.compare==`function`)return n.PlainDateTime.compare(e,t);let r=e.toString(),i=t.toString();return r<i?-1:+(r>i)}},Ho={name:`en`,months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],weekdays:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],weekdaysShort:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],weekdaysMin:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},Uo={name:`es`,months:[`Enero`,`Febrero`,`Marzo`,`Abril`,`Mayo`,`Junio`,`Julio`,`Agosto`,`Septiembre`,`Octubre`,`Noviembre`,`Diciembre`],monthsShort:[`Ene`,`Feb`,`Mar`,`Abr`,`May`,`Jun`,`Jul`,`Ago`,`Sep`,`Oct`,`Nov`,`Dic`],weekdays:[`Domingo`,`Lunes`,`Martes`,`Miércoles`,`Jueves`,`Viernes`,`Sábado`],weekdaysShort:[`Dom`,`Lun`,`Mar`,`Mié`,`Jue`,`Vie`,`Sáb`],weekdaysMin:[`Do`,`Lu`,`Ma`,`Mi`,`Ju`,`Vi`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},Wo=class e{static instance;locales=new Map;currentLocale=`en`;static getInstance(){return e.instance||=new e,e.instance}constructor(){this.locales.set(`en`,Ho),this.locales.set(`es`,Uo)}setLocale(e,t){t&&this.locales.set(e.toLowerCase(),t),this.currentLocale=e.toLowerCase()}getLocale(e){let t=(e||this.currentLocale).toLowerCase();return this.locales.get(t)||this.locales.get(`en`)||Ho}listLocales(){return Array.from(this.locales.keys())}getCurrentLocale(){return this.currentLocale}loadLocales(e){Object.entries(e).forEach(([e,t])=>{this.locales.set(e.toLowerCase(),t)})}},Go=class{localeManager;constructor(){this.localeManager=Wo.getInstance()}format(e,t,n){let r=this.localeManager.getLocale(n),i=[],a=t.replace(/\[([^\]]+)\]/g,(e,t)=>(i.push(t),`~${i.length-1}~`));a=a.replace(/"([^"]*)"/g,(e,t)=>(i.push(t),`~${i.length-1}~`));let o=a.replace(/Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|SSS/g,t=>{switch(t){case`YYYY`:return String(e.year).padStart(4,`0`);case`YY`:return String(e.year).slice(-2);case`Y`:return String(e.year);case`MMMM`:return r.months[e.month-1];case`MMM`:return r.monthsShort[e.month-1];case`MM`:return String(e.month).padStart(2,`0`);case`M`:return String(e.month);case`DD`:return String(e.day).padStart(2,`0`);case`D`:return String(e.day);case`dddd`:return r.weekdays[e.dayOfWeek%7];case`ddd`:return r.weekdaysShort[e.dayOfWeek%7];case`dd`:return r.weekdaysMin[e.dayOfWeek%7];case`d`:return String(e.dayOfWeek);case`HH`:return String(e.hour).padStart(2,`0`);case`H`:return String(e.hour);case`hh`:return String(e.hour%12||12).padStart(2,`0`);case`h`:return String(e.hour%12||12);case`mm`:return String(e.minute).padStart(2,`0`);case`m`:return String(e.minute);case`ss`:return String(e.second).padStart(2,`0`);case`s`:return String(e.second);case`SSS`:return String(e.millisecond).padStart(3,`0`);case`a`:case`A`:let n=r.meridiem||{am:`am`,pm:`pm`},i=e.hour>=12?n.pm:n.am;return t===`a`?i.toLowerCase():i.toUpperCase();default:return t}});return i.forEach((e,t)=>{o=o.replace(`~${t}~`,e)}),o}getPreset(e){let t={iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`,rfc3339:`YYYY-MM-DDTHH:mm:ssZ`,utc:`YYYY-MM-DDTHH:mm:ss[Z]`};return t[e]||t.iso}formatPreset(e,t,n){let r=this.getPreset(t);return this.format(e,r,n)}},Ko={en:{year:[`year`,`years`],month:[`month`,`months`],week:[`week`,`weeks`],day:[`day`,`days`],hour:[`hour`,`hours`],minute:[`minute`,`minutes`],second:[`second`,`seconds`],millisecond:[`millisecond`,`milliseconds`]},es:{year:[`año`,`años`],month:[`mes`,`meses`],week:[`semana`,`semanas`],day:[`día`,`días`],hour:[`hora`,`horas`],minute:[`minuto`,`minutos`],second:[`segundo`,`segundos`],millisecond:[`milisegundo`,`milisegundos`]},fr:{year:[`année`,`années`],month:[`mois`,`mois`],week:[`semaine`,`semaines`],day:[`jour`,`jours`],hour:[`heure`,`heures`],minute:[`minute`,`minutes`],second:[`seconde`,`secondes`],millisecond:[`milliseconde`,`millisecondes`]}},qo={en:`and`,es:`y`,fr:`et`,de:`und`,it:`e`,pt:`e`};function Jo(e,t,n){return((Ko[t]||Ko.en)[e]||[e,e+`s`])[n===1?0:1]}function Yo(e){return qo[e]||`and`}function Xo(e,t){if(e.length===0)return``;if(e.length===1)return e[0];let n=Yo(t);return e.length===2?`${e[0]} ${n} ${e[1]}`:e.slice(0,-1).join(`, `)+` ${n} ${e[e.length-1]}`}function Zo(e){return{en:`0 seconds`,es:`0 segundos`,fr:`0 secondes`}[e]||`0 seconds`}var Qo=class e{static instance;plugins=new Map;static getInstance(){return e.instance||=new e,e.instance}static use(t,n,r){e.getInstance().register(t,n,r)}static useMultiple(t,n,r){let i=e.getInstance();t.forEach(e=>i.register(e,n,r))}static getPlugin(t){return e.getInstance().plugins.get(t)}static hasPlugin(t){return e.getInstance().plugins.has(t)}static listPlugins(){let t=e.getInstance();return Array.from(t.plugins.keys())}static unuse(t){return e.getInstance().plugins.delete(t)}static clear(){e.getInstance().plugins.clear()}register(e,t,n){if(this.plugins.has(e.name)){console.warn(`Plugin "${e.name}" is already registered. Skipping...`);return}try{e.install(t,n),this.plugins.set(e.name,e),console.debug(`Plugin "${e.name}" v${e.version} registered successfully`)}catch(t){throw console.error(`Failed to register plugin "${e.name}":`,t),Error(`Failed to register plugin "${e.name}": ${t instanceof Error?t.message:String(t)}`)}}},$o=1e3,es=$o*60,ts=es*60,ns=ts*24,rs=ns*7,is=365.25,as=is/12*ns,os=is*ns,ss=` days`;function cs(e){return(e.years||0)*os+(e.months||0)*as+(e.weeks||0)*rs+(e.days||0)*ns+(e.hours||0)*ts+(e.minutes||0)*es+(e.seconds||0)*$o+(e.milliseconds||0)}var ls=class{_value;_tg1;_tg2;_mode;_breakdownData;_locale;constructor(e,t,n,r=`exact`,i,a){this._value=e,this._tg1=t,this._tg2=n,this._mode=r,this._breakdownData=i||null,this._locale=a||`en`}as(e){return this._tg1.diff(this._tg2,e)}breakdown(){return this._breakdownData}format(e){let t=e||this._locale;if(!this._breakdownData)return`${Math.abs(this._tg1.diff(this._tg2,`day`))}${ss}`;let n=[],r=this._breakdownData;return r.years!==0&&n.push(`${r.years} ${Jo(`year`,t,r.years)}`),r.months!==0&&n.push(`${r.months} ${Jo(`month`,t,r.months)}`),r.weeks!==0&&n.push(`${r.weeks} ${Jo(`week`,t,r.weeks)}`),r.days!==0&&n.push(`${r.days} ${Jo(`day`,t,r.days)}`),r.hours!==0&&n.push(`${r.hours} ${Jo(`hour`,t,r.hours)}`),r.minutes!==0&&n.push(`${r.minutes} ${Jo(`minute`,t,r.minutes)}`),r.seconds!==0&&n.push(`${r.seconds} ${Jo(`second`,t,r.seconds)}`),n.length===0?Zo(t):Xo(n,t)}getMode(){return this._mode}valueOf(){return this._value}toString(){return this._mode===`calendar`&&this._breakdownData?this.format():this._value.toString()}toJSON(){return this._value}},us=class{years;months;weeks;days;hours;minutes;seconds;milliseconds;_locale;_startDate;_endDate;_steps=[];_mode=`exact`;_leapYearFlags=[];_calculationTimeMs=0;constructor(e,t=`en`,n){this.years=e.years,this.months=e.months,this.weeks=e.weeks,this.days=e.days,this.hours=e.hours,this.minutes=e.minutes,this.seconds=e.seconds,this.milliseconds=e.milliseconds,this._locale=t,n&&(this._startDate=n.startDate,this._endDate=n.endDate,this._steps=n.steps||[],this._mode=n.mode||`exact`,this._leapYearFlags=n.leapYearFlags||[],this._calculationTimeMs=n.calculationTimeMs||0)}humanize(e){let t=e?.locale||this._locale,n=e?.fullBreakdown??!1,r=e?.numeric??`always`,i=[{unit:`year`,value:this.years},{unit:`month`,value:this.months},{unit:`week`,value:this.weeks},{unit:`day`,value:this.days},{unit:`hour`,value:this.hours},{unit:`minute`,value:this.minutes},{unit:`second`,value:this.seconds},{unit:`millisecond`,value:this.milliseconds}].filter(e=>e.value>0);if(i.length===0)return`0 seconds`;if(!n||i.length===1){let e=i[0];try{return new Intl.RelativeTimeFormat(t,{numeric:r,style:`long`}).format(e.value,e.unit)}catch{return`${e.value} ${this.pluralizeUnit(e.unit,e.value,t)}`}}return Xo(i.map(e=>{let n=Jo(e.unit,t,e.value);return`${e.value} ${n}`}),t)}total(e){let t=0;switch(t+=this.years*os,t+=this.months*as,t+=this.weeks*rs,t+=this.days*ns,t+=this.hours*ts,t+=this.minutes*es,t+=this.seconds*$o,t+=this.milliseconds,e){case`millisecond`:return t;case`second`:return t/$o;case`minute`:return t/es;case`hour`:return t/ts;case`day`:return t/ns;case`week`:return t/rs;case`month`:return t/as;case`year`:return t/os;case`microsecond`:return t*1e3;case`nanosecond`:return t*1e6;default:throw Error(`Unsupported unit: ${e}`)}}toString(){return this.humanize({fullBreakdown:!0})}toJSON(){return{years:this.years,months:this.months,weeks:this.weeks,days:this.days,hours:this.hours,minutes:this.minutes,seconds:this.seconds,milliseconds:this.milliseconds}}explain(){let e=[...this._steps];e.length===0&&(e=this.generateExplanationSteps());let t=[];if(this._startDate&&this._endDate&&t.push(`Calculated duration from ${this._startDate} to ${this._endDate}`),this._leapYearFlags&&this._leapYearFlags.length>0){let e=this._leapYearFlags.filter(e=>e.isLeap).map(e=>e.year);e.length>0&&t.push(`Leap year(s) detected: ${e.join(`, `)}`)}return t.push(`Breakdown: ${this.years} year(s), ${this.months} month(s), ${this.days} day(s)`),t.push(`Mode: ${this._mode} calculation`),{input:this._startDate&&this._endDate?[this._startDate,this._endDate]:[],steps:e,breakdown:{years:this.years,months:this.months,weeks:this.weeks,days:this.days,hours:this.hours,minutes:this.minutes,seconds:this.seconds,milliseconds:this.milliseconds},mode:this._mode,explanation:t.join(`. `),locale:this._locale,leapYearFlags:this._leapYearFlags.length>0?this._leapYearFlags:void 0,metadata:{calculationTimeMs:this._calculationTimeMs,precision:`day`}}}generateExplanationSteps(){let e=[];if(this._startDate&&this._endDate?e.push(`Input: ${this._startDate} to ${this._endDate}`):e.push(`Duration calculation started`),this.years>0&&e.push(`Years: ${this.years}`),this.months>0&&e.push(`Months: ${this.months}`),this.weeks>0&&e.push(`Weeks: ${this.weeks}`),this.days>0&&e.push(`Days: ${this.days}`),this.hours>0&&e.push(`Hours: ${this.hours}`),this.minutes>0&&e.push(`Minutes: ${this.minutes}`),this.seconds>0&&e.push(`Seconds: ${this.seconds}`),this.milliseconds>0&&e.push(`Milliseconds: ${this.milliseconds}`),this._leapYearFlags&&this._leapYearFlags.length>0)for(let t of this._leapYearFlags)t.isLeap&&e.push(`${t.year} is a leap year (February has ${t.daysInFebruary} days)`);let t=[this.years>0?`${this.years}y`:``,this.months>0?`${this.months}m`:``,this.days>0?`${this.days}d`:``,this.hours>0?`${this.hours}h`:``,this.minutes>0?`${this.minutes}min`:``,this.seconds>0?`${this.seconds}s`:``].filter(e=>e.length>0).join(` `);return e.push(`Total: ${t||`0`}`),e}pluralizeUnit(e,t,n){return Jo(e,n,t)}},ds=class{_start;_end;constructor(e,t){this._start=e,this._end=t}toDuration(){return fs.between(this._start,this._end)}inMonths(){return this.toDuration().total(`month`)}humanize(e){return this.toDuration().humanize(e)}in(e){return this.toDuration().total(e)}},fs=class e{temporal;config;formatterInstance;static ZERO_DURATION={years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0};static isLeapYearValue(e){return e%4==0&&e%100!=0||e%400==0}static toDurationParts(e){return{years:Math.floor(e.years||0),months:Math.floor(e.months||0),weeks:Math.floor(e.weeks||0),days:Math.floor(e.days||0),hours:Math.floor(e.hours||0),minutes:Math.floor(e.minutes||0),seconds:Math.floor(e.seconds||0),milliseconds:Math.floor(e.milliseconds||0)}}constructor(e,t){if(this.formatterInstance=new Go,this.config={locale:t?.locale||`en`,timezone:t?.timezone||`UTC`,strict:t?.strict??!1},this.temporal=$.parseToPlainDateTime(e),this.config.timezone&&this.config.timezone!==`UTC`)try{this.temporal=this.temporal.toZonedDateTime(this.config.timezone)}catch{}}static now(t){return new e(void 0,t)}static from(t,n){return new e(t,n)}static fromTemporal(t,n){let r=new e(void 0,n);return r.temporal=t,r}static between(e,t){let n=$.toPlainDateTime(e.temporal),r=$.toPlainDateTime(t.temporal),[i,a]=$.compare(n,r)<=0?[e,t]:[t,e];return i.until(a)}static range(t,n){return new ds(t instanceof e?t:new e(t),n instanceof e?n:new e(n))}toTemporal(){return this.temporal}toDate(){return $.toDate(this.temporal)}toISOString(){return $.toISOString(this.temporal)}valueOf(){return $.toUnix(this.temporal)}unix(){return Math.floor(this.valueOf()/1e3)}toJSON(){return this.toISOString()}toString(){return this.format(`YYYY-MM-DD HH:mm:ss`)}locale(e){if(e===void 0)return this.config.locale;let t=this.clone();return t.config.locale=e,t}timezone(e){if(e===void 0)return this.config.timezone;let t=this.clone();t.config.timezone=e;try{t.temporal=$.toPlainDateTime(t.temporal).toZonedDateTime(e)}catch{}return t}format(e){let t=$.toPlainDateTime(this.temporal),n=[`iso`,`date`,`time`,`datetime`,`rfc2822`,`rfc3339`,`utc`].includes(e)?this.formatterInstance.getPreset(e):e;return this.formatterInstance.format(t,n,this.config.locale)}get(e){let t=$.toPlainDateTime(this.temporal);return e===`week`?t.weekOfYear:t[{year:`year`,month:`month`,week:`year`,day:`day`,hour:`hour`,minute:`minute`,second:`second`,millisecond:`millisecond`,microsecond:`microsecond`,nanosecond:`nanosecond`}[e]]}add(t){let n=$.toPlainDateTime(this.temporal),r={};return Object.entries(t).forEach(([e,t])=>{t!==void 0&&t!==0&&(r[e+`s`]=t)}),n=n.add(r),e.fromTemporal(n,this.config)}subtract(e){let t={};return Object.entries(e).forEach(([e,n])=>{t[e]=n?-n:0}),this.add(t)}diff(e,t){let n=$.toPlainDateTime(this.temporal),r=$.toPlainDateTime(e.temporal),i={year:`years`,month:`months`,week:`weeks`,day:`days`,hour:`hours`,minute:`minutes`,second:`seconds`,millisecond:`milliseconds`,microsecond:`microseconds`,nanosecond:`nanoseconds`};if(typeof t==`string`){let e=t,a=i[e],o=n.since(r,{smallestUnit:e});return Math.round(o[a]||0)}let a=t||{},o=a.mode||`exact`,s=a.unit||`millisecond`,c=a.locale||this.config.locale;if(o===`exact`){let a=i[s],l=n.since(r,{smallestUnit:s}),u=Math.round(l[a]||0);if(t===void 0||typeof t==`object`){let t=cs(l);return new ls(Math.round(t),this,e,o,void 0,c)}return u}if(o===`calendar`){let t=n.since(r,{largestUnit:`month`,smallestUnit:`millisecond`}),i={years:Math.floor(t.years||0),months:Math.floor(t.months||0),weeks:Math.floor(t.weeks||0),days:Math.floor(t.days||0),hours:Math.floor(t.hours||0),minutes:Math.floor(t.minutes||0),seconds:Math.floor(t.seconds||0),milliseconds:Math.floor(t.milliseconds||0)},a=cs(t);return new ls(Math.round(a),this,e,o,i,c)}let l=cs(n.since(r,{smallestUnit:`millisecond`}));return new ls(Math.round(l),this,e,o,void 0,c)}isBefore(e){let t=$.toPlainDateTime(this.temporal),n=$.toPlainDateTime(e.temporal);return $.compare(t,n)<0}isAfter(e){let t=$.toPlainDateTime(this.temporal),n=$.toPlainDateTime(e.temporal);return $.compare(t,n)>0}isSame(e,t){if(!t)return $.compare($.toPlainDateTime(this.temporal),$.toPlainDateTime(e.temporal))===0;let n=$.toPlainDateTime(this.temporal),r=$.toPlainDateTime(e.temporal);switch(t){case`year`:return n.year===r.year;case`month`:return n.year===r.year&&n.month===r.month;case`day`:return n.year===r.year&&n.month===r.month&&n.day===r.day;case`hour`:return n.year===r.year&&n.month===r.month&&n.day===r.day&&n.hour===r.hour;case`minute`:return n.year===r.year&&n.month===r.month&&n.day===r.day&&n.hour===r.hour&&n.minute===r.minute;case`second`:return n.year===r.year&&n.month===r.month&&n.day===r.day&&n.hour===r.hour&&n.minute===r.minute&&n.second===r.second;default:return!1}}isBetween(e,t,n,r=`[]`){let i=$.toPlainDateTime(this.temporal),a=$.toPlainDateTime(e.temporal),o=$.toPlainDateTime(t.temporal),s=!0,c=!0;if(n){let e=this.clone().startOf(n),t=this.clone().endOf(n),r=$.toPlainDateTime(e.temporal),i=$.toPlainDateTime(t.temporal);s=$.compare(r,a)>=0,c=$.compare(i,o)<=0}else s=$.compare(i,a)>=0,c=$.compare(i,o)<=0;let l=r[0]===`[`,u=r[1]===`]`;return(l?s:$.compare(i,a)>0)&&(u?c:$.compare(i,o)<0)}clone(){return new e(this.toDate(),this.config)}startOf(t){let n=$.toPlainDateTime(this.temporal),r={};switch(t){case`year`:r.month=1,r.day=1,r.hour=0,r.minute=0,r.second=0,r.millisecond=0;break;case`month`:r.day=1,r.hour=0,r.minute=0,r.second=0,r.millisecond=0;break;case`week`:case`day`:r.hour=0,r.minute=0,r.second=0,r.millisecond=0;break;case`hour`:r.minute=0,r.second=0,r.millisecond=0;break;case`minute`:r.second=0,r.millisecond=0;break;case`second`:r.millisecond=0;break}let i=n.with(r);return e.fromTemporal(i,this.config)}endOf(e){return this.startOf(e).add({[e]:1}).subtract({millisecond:1})}set(t){let n=$.toPlainDateTime(this.temporal).with(t);return e.fromTemporal(n,this.config)}year(){return $.toPlainDateTime(this.temporal).year}month(){return $.toPlainDateTime(this.temporal).month}day(){return $.toPlainDateTime(this.temporal).day}hour(){return $.toPlainDateTime(this.temporal).hour}minute(){return $.toPlainDateTime(this.temporal).minute}second(){return $.toPlainDateTime(this.temporal).second}millisecond(){return $.toPlainDateTime(this.temporal).millisecond}dayOfWeek(){return $.toPlainDateTime(this.temporal).dayOfWeek}dayOfYear(){return $.toPlainDateTime(this.temporal).dayOfYear}weekOfYear(){return $.toPlainDateTime(this.temporal).weekOfYear}daysInMonth(){return $.toPlainDateTime(this.temporal).add({months:1}).with({day:1}).subtract({days:1}).day}daysInYear(){let t=this.year();return e.isLeapYearValue(t)?366:365}inLeapYear(){let t=$.toPlainDateTime(this.temporal);return e.isLeapYearValue(t.year)}until(t,n){let r=$.toPlainDateTime(this.temporal),i=$.toPlainDateTime(t.temporal),a=performance.now();try{let t={};n?.largestUnit&&(t.largestUnit=n.largestUnit),n?.smallestUnit&&(t.smallestUnit=n.smallestUnit);let o=i.since(r,Object.keys(t).length>0?t:void 0),s=e.toDurationParts(o),c=r.year,l=i.year,u=[];for(let t=c;t<=l;t++){let n=e.isLeapYearValue(t);u.push({year:t,isLeap:n,daysInFebruary:n?29:28})}let d=this.generateUntilSteps(r,i,s,u),f=performance.now()-a;return new us(s,this.config.locale,{startDate:r.toString(),endDate:i.toString(),steps:d,mode:`exact`,leapYearFlags:u.filter(e=>e.isLeap),calculationTimeMs:f})}catch{return new us(e.ZERO_DURATION,this.config.locale,{startDate:r.toString(),endDate:i.toString(),steps:[`Calculation failed, returning zero duration`],mode:`estimated`})}}generateUntilSteps(t,n,r,i){let a=[];a.push(`Parsed dates: ${t.year}-${String(t.month).padStart(2,`0`)}-${String(t.day).padStart(2,`0`)} (day ${t.dayOfYear} of ${e.isLeapYearValue(t.year)?366:365})`),a.push(`to ${n.year}-${String(n.month).padStart(2,`0`)}-${String(n.day).padStart(2,`0`)} (day ${n.dayOfYear} of ${e.isLeapYearValue(n.year)?366:365})`);let o=i.filter(e=>e.isLeap);if(o.length>0)for(let e of o)a.push(`${e.year} is a leap year (February has ${e.daysInFebruary} days)`);if(r.years>0&&a.push(`Years: ${r.years}`),r.months>0&&a.push(`Months: ${r.months}`),r.days>0&&a.push(`Days: ${r.days}`),r.hours>0||r.minutes>0||r.seconds>0){let e=[];r.hours>0&&e.push(`${r.hours}h`),r.minutes>0&&e.push(`${r.minutes}m`),r.seconds>0&&e.push(`${r.seconds}s`),a.push(`Time: ${e.join(` `)}`)}let s=r.years*365.25+r.months*30.4375+r.days+r.hours/24;return a.push(`Total: approximately ${s.toFixed(2)} days`),a}round(e={}){let{smallestUnit:t=`millisecond`,roundingMode:n=`halfExpand`}=e,r=$.toPlainDateTime(this.temporal),i={year:r.year,month:r.month,day:r.day,hour:r.hour,minute:r.minute,second:r.second,millisecond:r.millisecond,microsecond:r.microsecond||0,nanosecond:r.nanosecond||0,week:0},a=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`,`microsecond`,`nanosecond`],o=a.indexOf(t);if(o===-1)return this.clone();let s={};for(let e=0;e<o;e++){let t=a[e];s[t]=i[t]}let c=a[o],l=i[c];o+1<a.length&&((e,t)=>{switch(e){case`ceil`:return t>0;case`floor`:case`trunc`:return!1;case`halfExpand`:case`halfFloor`:case`halfCeil`:return t>=5;case`expand`:return t>0;default:return t>=5}})(n,i[a[o+1]])&&(l+=1),s[c]=l;for(let e=o+1;e<a.length;e++)s[a[e]]=0;return this.set(s)}toPlainDate(){let e=$.toPlainDateTime(this.temporal);return{year:e.year,month:e.month,day:e.day,dayOfWeek:e.dayOfWeek}}toPlainTime(){let e=$.toPlainDateTime(this.temporal);return{hour:e.hour,minute:e.minute,second:e.second,millisecond:e.millisecond}}withDate(e,t,n){return this.set({year:e,month:t,day:n})}withTime(e,t=0,n=0,r=0){return this.set({hour:e,minute:t,second:n,millisecond:r})}getOffset(){return this.temporal?.offset&&this.temporal.offset||`Z`}getOffsetNanoseconds(){return this.temporal?.offsetNanoseconds&&this.temporal.offsetNanoseconds||0}getTimeZoneId(){return this.temporal?.timeZoneId&&this.temporal.timeZoneId||null}startOfDay(){return this.startOf(`day`)}endOfDay(){return this.endOf(`day`)}since(t,n){let r=$.toPlainDateTime(this.temporal),i=$.toPlainDateTime(t.temporal),a=performance.now();try{let t={};n?.largestUnit&&(t.largestUnit=n.largestUnit),n?.smallestUnit&&(t.smallestUnit=n.smallestUnit);let o=r.since(i,Object.keys(t).length>0?t:void 0),s=e.toDurationParts(o),c=i.year,l=r.year,u=[];for(let t=c;t<=l;t++){let n=e.isLeapYearValue(t);u.push({year:t,isLeap:n,daysInFebruary:n?29:28})}let d=this.generateUntilSteps(i,r,s,u),f=performance.now()-a;return new us(s,this.config.locale,{startDate:i.toString(),endDate:r.toString(),steps:d,mode:`exact`,leapYearFlags:u.filter(e=>e.isLeap),calculationTimeMs:f})}catch{return new us(e.ZERO_DURATION,this.config.locale,{startDate:i.toString(),endDate:r.toString(),steps:[`Calculation failed, returning zero duration`],mode:`estimated`})}}toDurationString(t){let n=t?this.until(t):this.until(e.now()),r=[];n.years&&r.push(`${n.years}Y`),n.months&&r.push(`${n.months}M`),n.days&&r.push(`${n.days}D`);let i=[];n.hours&&i.push(`${n.hours}H`),n.minutes&&i.push(`${n.minutes}M`),n.seconds&&i.push(`${n.seconds}S`);let a=`P${r.join(``)}${i.length>0?`T`+i.join(``):``}`;return a===`P`?`PT0S`:a}isPast(){return this.isBefore(e.now())}isFuture(){return this.isAfter(e.now())}isToday(){return this.isSame(e.now(),`day`)}isTomorrow(){return this.isSame(e.now().add({day:1}),`day`)}isYesterday(){return this.isSame(e.now().subtract({day:1}),`day`)}},ps={en:{name:`en`,months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],weekdays:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],weekdaysShort:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],weekdaysMin:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"en-au":{name:`en-au`,months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],weekdays:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],weekdaysShort:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],weekdaysMin:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"en-gb":{name:`en-gb`,months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],weekdays:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],weekdaysShort:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],weekdaysMin:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"en-ca":{name:`en-ca`,months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],weekdays:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],weekdaysShort:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],weekdaysMin:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},ms={es:{name:`es`,months:[`Enero`,`Febrero`,`Marzo`,`Abril`,`Mayo`,`Junio`,`Julio`,`Agosto`,`Septiembre`,`Octubre`,`Noviembre`,`Diciembre`],monthsShort:[`Ene`,`Feb`,`Mar`,`Abr`,`May`,`Jun`,`Jul`,`Ago`,`Sep`,`Oct`,`Nov`,`Dic`],weekdays:[`Domingo`,`Lunes`,`Martes`,`Miércoles`,`Jueves`,`Viernes`,`Sábado`],weekdaysShort:[`Dom`,`Lun`,`Mar`,`Mié`,`Jue`,`Vie`,`Sáb`],weekdaysMin:[`Do`,`Lu`,`Ma`,`Mi`,`Ju`,`Vi`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"es-mx":{name:`es-mx`,months:[`Enero`,`Febrero`,`Marzo`,`Abril`,`Mayo`,`Junio`,`Julio`,`Agosto`,`Septiembre`,`Octubre`,`Noviembre`,`Diciembre`],monthsShort:[`Ene`,`Feb`,`Mar`,`Abr`,`May`,`Jun`,`Jul`,`Ago`,`Sep`,`Oct`,`Nov`,`Dic`],weekdays:[`Domingo`,`Lunes`,`Martes`,`Miércoles`,`Jueves`,`Viernes`,`Sábado`],weekdaysShort:[`Dom`,`Lun`,`Mar`,`Mié`,`Jue`,`Vie`,`Sáb`],weekdaysMin:[`Do`,`Lu`,`Ma`,`Mi`,`Ju`,`Vi`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"es-us":{name:`es-us`,months:[`Enero`,`Febrero`,`Marzo`,`Abril`,`Mayo`,`Junio`,`Julio`,`Agosto`,`Septiembre`,`Octubre`,`Noviembre`,`Diciembre`],monthsShort:[`Ene`,`Feb`,`Mar`,`Abr`,`May`,`Jun`,`Jul`,`Ago`,`Sep`,`Oct`,`Nov`,`Dic`],weekdays:[`Domingo`,`Lunes`,`Martes`,`Miércoles`,`Jueves`,`Viernes`,`Sábado`],weekdaysShort:[`Dom`,`Lun`,`Mar`,`Mié`,`Jue`,`Vie`,`Sáb`],weekdaysMin:[`Do`,`Lu`,`Ma`,`Mi`,`Ju`,`Vi`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`MM/DD/YYYY`,time:`HH:mm:ss`,datetime:`MM/DD/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},hs={fr:{name:`fr`,months:[`janvier`,`février`,`mars`,`avril`,`mai`,`juin`,`juillet`,`août`,`septembre`,`octobre`,`novembre`,`décembre`],monthsShort:[`janv.`,`févr.`,`mars`,`avr.`,`mai`,`juin`,`juil.`,`août`,`sept.`,`oct.`,`nov.`,`déc.`],weekdays:[`dimanche`,`lundi`,`mardi`,`mercredi`,`jeudi`,`vendredi`,`samedi`],weekdaysShort:[`dim.`,`lun.`,`mar.`,`mer.`,`jeu.`,`ven.`,`sam.`],weekdaysMin:[`di`,`lu`,`ma`,`me`,`je`,`ve`,`sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},it:{name:`it`,months:[`gennaio`,`febbraio`,`marzo`,`aprile`,`maggio`,`giugno`,`luglio`,`agosto`,`settembre`,`ottobre`,`novembre`,`dicembre`],monthsShort:[`gen`,`feb`,`mar`,`apr`,`mag`,`giu`,`lug`,`ago`,`set`,`ott`,`nov`,`dic`],weekdays:[`domenica`,`lunedì`,`martedì`,`mercoledì`,`giovedì`,`venerdì`,`sabato`],weekdaysShort:[`dom`,`lun`,`mar`,`mer`,`gio`,`ven`,`sab`],weekdaysMin:[`do`,`lu`,`ma`,`me`,`gi`,`ve`,`sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},pt:{name:`pt`,months:[`janeiro`,`fevereiro`,`março`,`abril`,`maio`,`junho`,`julho`,`agosto`,`setembro`,`outubro`,`novembro`,`dezembro`],monthsShort:[`jan`,`fev`,`mar`,`abr`,`mai`,`jun`,`jul`,`ago`,`set`,`out`,`nov`,`dez`],weekdays:[`domingo`,`segunda`,`terça`,`quarta`,`quinta`,`sexta`,`sábado`],weekdaysShort:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sab`],weekdaysMin:[`do`,`se`,`te`,`qu`,`qu`,`se`,`sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"pt-br":{name:`pt-br`,months:[`janeiro`,`fevereiro`,`março`,`abril`,`maio`,`junho`,`julho`,`agosto`,`setembro`,`outubro`,`novembro`,`dezembro`],monthsShort:[`jan`,`fev`,`mar`,`abr`,`mai`,`jun`,`jul`,`ago`,`set`,`out`,`nov`,`dez`],weekdays:[`domingo`,`segunda-feira`,`terça-feira`,`quarta-feira`,`quinta-feira`,`sexta-feira`,`sábado`],weekdaysShort:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sab`],weekdaysMin:[`do`,`se`,`te`,`qu`,`qu`,`se`,`sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},ro:{name:`ro`,months:[`ianuarie`,`februarie`,`martie`,`aprilie`,`mai`,`iunie`,`iulie`,`august`,`septembrie`,`octombrie`,`noiembrie`,`decembrie`],monthsShort:[`ian.`,`feb.`,`mar.`,`apr.`,`mai`,`iun.`,`iul.`,`aug.`,`sep.`,`oct.`,`nov.`,`dec.`],weekdays:[`duminică`,`luni`,`marți`,`miercuri`,`joi`,`vineri`,`sâmbătă`],weekdaysShort:[`dum.`,`lun.`,`mar.`,`mie.`,`joi`,`vin.`,`sâm.`],weekdaysMin:[`du`,`lu`,`ma`,`mi`,`jo`,`vi`,`sâ`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},gs={ru:{name:`ru`,months:[`январь`,`февраль`,`март`,`апрель`,`май`,`июнь`,`июль`,`август`,`сентябрь`,`октябрь`,`ноябрь`,`декабрь`],monthsShort:[`янв.`,`февр.`,`март`,`апр.`,`май`,`июнь`,`июль`,`авг.`,`сент.`,`окт.`,`нояб.`,`дек.`],weekdays:[`воскресенье`,`понедельник`,`вторник`,`среда`,`четверг`,`пятница`,`суббота`],weekdaysShort:[`вс`,`пн`,`вт`,`ср`,`чт`,`пт`,`сб`],weekdaysMin:[`вс`,`пн`,`вт`,`ср`,`чт`,`пт`,`сб`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},pl:{name:`pl`,months:[`stycznia`,`lutego`,`marca`,`kwietnia`,`maja`,`czerwca`,`lipca`,`sierpnia`,`września`,`października`,`listopada`,`grudnia`],monthsShort:[`sty.`,`lut.`,`mar.`,`kwi.`,`maj.`,`cze.`,`lip.`,`sie.`,`wrz.`,`paź.`,`lis.`,`gru.`],weekdays:[`niedziela`,`poniedziałek`,`wtorek`,`środa`,`czwartek`,`piątek`,`sobota`],weekdaysShort:[`Nd.`,`Pn.`,`Wt.`,`Śr.`,`Cz.`,`Pt.`,`So.`],weekdaysMin:[`Nd`,`Pn`,`Wt`,`Śr`,`Cz`,`Pt`,`So`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},cs:{name:`cs`,months:[`ledna`,`února`,`března`,`dubna`,`května`,`iunie`,`iulie`,`srpna`,`září`,`října`,`listopadu`,`prosince`],monthsShort:[`led`,`úno`,`bře`,`dub`,`kvě`,`čer`,`čvc`,`srp`,`zář`,`říj`,`lis`,`pro`],weekdays:[`neděle`,`pondělí`,`úterý`,`středa`,`čtvrtek`,`pátek`,`sobota`],weekdaysShort:[`ne`,`po`,`út`,`st`,`čt`,`pá`,`so`],weekdaysMin:[`ne`,`po`,`út`,`st`,`čt`,`pá`,`so`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},sk:{name:`sk`,months:[`január`,`február`,`март`,`апрель`,`май`,`июнь`,`июль`,`август`,`сентябрь`,`октябрь`,`ноябрь`,`декабрь`],monthsShort:[`jan`,`feb`,`mar`,`apr`,`maj`,`jún`,`júl`,`aug`,`sep`,`okt`,`nov`,`dec`],weekdays:[`nedeľa`,`pondelok`,`utorok`,`streda`,`štvrtok`,`piatok`,`sobota`],weekdaysShort:[`ned`,`pon`,`uto`,`str`,`štv`,`pia`,`sob`],weekdaysMin:[`ne`,`po`,`ut`,`st`,`št`,`pi`,`so`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},_s={sv:{name:`sv`,months:[`januari`,`februari`,`mars`,`april`,`maj`,`juni`,`juli`,`augusti`,`september`,`oktober`,`november`,`december`],monthsShort:[`jan.`,`feb.`,`mar.`,`apr.`,`maj`,`juni`,`juli`,`aug.`,`sep.`,`okt.`,`nov.`,`dec.`],weekdays:[`söndag`,`måndag`,`tisdag`,`onsdag`,`torsdag`,`fredag`,`lördag`],weekdaysShort:[`sön`,`mån`,`tis`,`ons`,`tor`,`fre`,`lör`],weekdaysMin:[`sö`,`må`,`ti`,`on`,`to`,`fr`,`lö`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},nb:{name:`nb`,months:[`januar`,`februar`,`mars`,`april`,`mai`,`juni`,`juli`,`august`,`september`,`oktober`,`november`,`desember`],monthsShort:[`jan.`,`feb.`,`mar.`,`apr.`,`mai`,`juni`,`juli`,`aug.`,`sep.`,`okt.`,`nov.`,`des.`],weekdays:[`søndag`,`mandag`,`tirsdag`,`onsdag`,`torsdag`,`fredag`,`lørdag`],weekdaysShort:[`søn`,`man`,`tir`,`ons`,`tor`,`fre`,`lør`],weekdaysMin:[`sø`,`ma`,`ti`,`on`,`to`,`fr`,`lø`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},da:{name:`da`,months:[`januar`,`februar`,`marts`,`april`,`maj`,`juni`,`juli`,`august`,`september`,`oktober`,`november`,`december`],monthsShort:[`jan`,`feb`,`mar`,`apr`,`maj`,`jun`,`jul`,`aug`,`sep`,`okt`,`nov`,`dec`],weekdays:[`søndag`,`mandag`,`tirsdag`,`onsdag`,`torsdag`,`fredag`,`lørdag`],weekdaysShort:[`søn`,`man`,`tir`,`ons`,`tor`,`fre`,`lør`],weekdaysMin:[`sø`,`ma`,`ti`,`on`,`to`,`fr`,`lø`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},fi:{name:`fi`,months:[`tammikuuta`,`helmikuuta`,`maaliskuuta`,`huhtikuuta`,`toukokuuta`,`kesäkuuta`,`heinäkuuta`,`elokuuta`,`syyskuuta`,`lokakuuta`,`marraskuuta`,`joulukuuta`],monthsShort:[`tam.`,`hel.`,`maa.`,`huh.`,`tou.`,`kes.`,`hei.`,`elo.`,`syy.`,`lok.`,`mar.`,`jou.`],weekdays:[`sunnuntai`,`maanantai`,`tiistai`,`keskiviikko`,`torstai`,`perjantai`,`lauantai`],weekdaysShort:[`su.`,`ma.`,`ti.`,`ke.`,`to.`,`pe.`,`la.`],weekdaysMin:[`su`,`ma`,`ti`,`ke`,`to`,`pe`,`la`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},vs={ja:{name:`ja`,months:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],monthsShort:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],weekdays:[`日曜日`,`月曜日`,`火曜日`,`水曜日`,`木曜日`,`金曜日`,`土曜日`],weekdaysShort:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],weekdaysMin:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],meridiem:{am:`午前`,pm:`午後`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY年MM月DD日`,time:`HH:mm:ss`,datetime:`YYYY年MM月DD日 HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"zh-cn":{name:`zh-cn`,months:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],monthsShort:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],weekdays:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],weekdaysShort:[`周日`,`周一`,`周二`,`周三`,`周四`,`周五`,`周六`],weekdaysMin:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],meridiem:{am:`上午`,pm:`下午`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},"zh-tw":{name:`zh-tw`,months:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],monthsShort:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],weekdays:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],weekdaysShort:[`週日`,`週一`,`週二`,`週三`,`週四`,`週五`,`週六`],weekdaysMin:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],meridiem:{am:`上午`,pm:`下午`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},ko:{name:`ko`,months:[`1월`,`2월`,`3월`,`4월`,`5월`,`6월`,`7월`,`8월`,`9월`,`10월`,`11월`,`12월`],monthsShort:[`1월`,`2월`,`3월`,`4월`,`5월`,`6월`,`7월`,`8월`,`9월`,`10월`,`11월`,`12월`],weekdays:[`일요일`,`월요일`,`화요일`,`수요일`,`목요일`,`금요일`,`토요일`],weekdaysShort:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],weekdaysMin:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],meridiem:{am:`오전`,pm:`오후`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY-MM-DD`,time:`HH:mm:ss`,datetime:`YYYY-MM-DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},th:{name:`th`,months:[`มกราคม`,`กุมภาพันธ์`,`มีนาคม`,`เมษายน`,`พฤษภาคม`,`มิถุนายน`,`กรกฎาคม`,`สิงหาคม`,`กันยายน`,`ตุลาคม`,`พฤศจิกายน`,`ธันวาคม`],monthsShort:[`ม.ค.`,`ก.พ.`,`มี.ค.`,`เม.ย.`,`พ.ค.`,`มิ.ย.`,`ก.ค.`,`ส.ค.`,`ก.ย.`,`ต.ค.`,`พ.ย.`,`ธ.ค.`],weekdays:[`อาทิตย์`,`จันทร์`,`อังคาร`,`พุธ`,`พฤหัสบดี`,`ศุกร์`,`เสาร์`],weekdaysShort:[`อา.`,`จ.`,`อ.`,`พ.`,`พฤ.`,`ศ.`,`ส.`],weekdaysMin:[`อา`,`จ`,`อ`,`พ`,`พฤ`,`ศ`,`ส`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},vi:{name:`vi`,months:[`tháng 1`,`tháng 2`,`tháng 3`,`tháng 4`,`tháng 5`,`tháng 6`,`tháng 7`,`tháng 8`,`tháng 9`,`tháng 10`,`tháng 11`,`tháng 12`],monthsShort:[`Th01`,`Th02`,`Th03`,`Th04`,`Th05`,`Th06`,`Th07`,`Th08`,`Th09`,`Th10`,`Th11`,`Th12`],weekdays:[`Chủ nhật`,`Thứ hai`,`Thứ ba`,`Thứ tư`,`Thứ năm`,`Thứ sáu`,`Thứ bảy`],weekdaysShort:[`CN`,`Hai`,`Ba`,`Tư`,`Năm`,`Sáu`,`Bảy`],weekdaysMin:[`CN`,`T2`,`T3`,`T4`,`T5`,`T6`,`T7`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},id:{name:`id`,months:[`Januari`,`Februari`,`Maret`,`April`,`Mei`,`Juni`,`Juli`,`Agustus`,`September`,`Oktober`,`November`,`Desember`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`Mei`,`Jun`,`Jul`,`Agu`,`Sep`,`Okt`,`Nov`,`Des`],weekdays:[`Minggu`,`Senin`,`Selasa`,`Rabu`,`Kamis`,`Jumat`,`Sabtu`],weekdaysShort:[`Min`,`Sen`,`Sel`,`Rab`,`Kam`,`Jum`,`Sab`],weekdaysMin:[`Mg`,`Sn`,`Sl`,`Rb`,`Km`,`Jm`,`Sb`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},ys={de:{name:`de`,months:[`Januar`,`Februar`,`März`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`],monthsShort:[`Jan.`,`Feb.`,`Mär.`,`Apr.`,`Mai`,`Jun.`,`Jul.`,`Aug.`,`Sep.`,`Okt.`,`Nov.`,`Dez.`],weekdays:[`Sonntag`,`Montag`,`Dienstag`,`Mittwoch`,`Donnerstag`,`Freitag`,`Samstag`],weekdaysShort:[`So.`,`Mo.`,`Di.`,`Mi.`,`Do.`,`Fr.`,`Sa.`],weekdaysMin:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},nl:{name:`nl`,months:[`januari`,`februari`,`maart`,`april`,`mei`,`juni`,`juli`,`augustus`,`september`,`oktober`,`november`,`december`],monthsShort:[`jan.`,`feb.`,`mrt.`,`apr.`,`mei`,`jun.`,`jul.`,`aug.`,`sep.`,`okt.`,`nov.`,`dec.`],weekdays:[`zondag`,`maandag`,`dinsdag`,`woensdag`,`donderdag`,`vrijdag`,`zaterdag`],weekdaysShort:[`zo.`,`ma.`,`di.`,`wo.`,`do.`,`vr.`,`za.`],weekdaysMin:[`zo`,`ma`,`di`,`wo`,`do`,`vr`,`za`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD-MM-YYYY`,time:`HH:mm:ss`,datetime:`DD-MM-YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},el:{name:`el`,months:[`Ιανουάριος`,`Φεβρουάριος`,`Μάρτιος`,`Απρίλιος`,`Μάιος`,`Ιούνιος`,`Ιούλιος`,`Αύγουστος`,`Σεπτέμβριος`,`Οκτώβριος`,`Νοέμβριος`,`Δεκέμβριος`],monthsShort:[`Ιαν`,`Φεβ`,`Μάρ`,`Απρ`,`Μάι`,`Ιού`,`Ιού`,`Αύγ`,`Σεπ`,`Οκτ`,`Νοέ`,`Δεκ`],weekdays:[`Κυριακή`,`Δευτέρα`,`Τρίτη`,`Τετάρτη`,`Πέμπτη`,`Παρασκευή`,`Σάββατο`],weekdaysShort:[`Κυρ`,`Δευ`,`Τρί`,`Τετ`,`Πέμ`,`Παρ`,`Σάβ`],weekdaysMin:[`Κ`,`Δ`,`Τ`,`Τ`,`Π`,`Π`,`Σ`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},hu:{name:`hu`,months:[`január`,`február`,`március`,`április`,`május`,`június`,`július`,`augusztus`,`szeptember`,`október`,`november`,`december`],monthsShort:[`jan.`,`feb.`,`már.`,`ápr.`,`máj.`,`jún.`,`júl.`,`aug.`,`szep.`,`okt.`,`nov.`,`dec.`],weekdays:[`vasárnap`,`hétfő`,`kedd`,`szerda`,`csütörtök`,`péntek`,`szombat`],weekdaysShort:[`V`,`H`,`K`,`Sz`,`Cs`,`P`,`Szo`],weekdaysMin:[`V`,`H`,`K`,`Sz`,`Cs`,`P`,`Szo`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY.MM.DD.`,time:`HH:mm:ss`,datetime:`YYYY.MM.DD. HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},eu:{name:`eu`,months:[`urtarrila`,`otsaila`,`martxoa`,`apirila`,`maiatza`,`ekaina`,`uztaila`,`abuztua`,`iraila`,`urria`,`azaroa`,`abendua`],monthsShort:[`urt.`,`ots.`,`mar.`,`api.`,`mai.`,`eka.`,`uzt.`,`abu.`,`ira.`,`urr.`,`aza.`,`abe.`],weekdays:[`igandea`,`astelehena`,`asteartea`,`asteazkena`,`osteguna`,`ostirala`,`larunbata`],weekdaysShort:[`ig.`,`al.`,`ar.`,`az.`,`og.`,`or.`,`lr.`],weekdaysMin:[`ig`,`al`,`ar`,`az`,`og`,`or`,`lr`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`YYYY.MM.DD`,time:`HH:mm:ss`,datetime:`YYYY.MM.DD HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},ca:{name:`ca`,months:[`gener`,`febrer`,`març`,`abril`,`maig`,`juny`,`juliol`,`agost`,`setembre`,`octubre`,`novembre`,`desembre`],monthsShort:[`gen`,`feb`,`mar`,`abr`,`mai`,`jun`,`jul`,`ago`,`set`,`oct`,`nov`,`des`],weekdays:[`diumenge`,`dilluns`,`dimarts`,`dimecres`,`dijous`,`divendres`,`dissabte`],weekdaysShort:[`diu`,`dil`,`dit`,`dic`,`dij`,`div`,`dis`],weekdaysMin:[`du`,`dl`,`dt`,`dc`,`dj`,`dv`,`ds`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},tr:{name:`tr`,months:[`Ocak`,`Şubat`,`Mart`,`Nisan`,`Mayıs`,`Haziran`,`Temmuz`,`Ağustos`,`Eylül`,`Ekim`,`Kasım`,`Aralık`],monthsShort:[`Oca`,`Şub`,`Mar`,`Nis`,`May`,`Haz`,`Tem`,`Ağu`,`Eyl`,`Eki`,`Kas`,`Ara`],weekdays:[`Pazar`,`Pazartesi`,`Salı`,`Çarşamba`,`Perşembe`,`Cuma`,`Cumartesi`],weekdaysShort:[`Paz`,`Ptz`,`Sal`,`Çar`,`Per`,`Cum`,`Cts`],weekdaysMin:[`Pa`,`Pt`,`Sa`,`Ça`,`Pe`,`Cu`,`Ct`],meridiem:{am:`ÖÖ`,pm:`ÖS`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD.MM.YYYY`,time:`HH:mm:ss`,datetime:`DD.MM.YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},bs={ar:{name:`ar`,months:[`كانون الثاني`,`شباط`,`آذار`,`نيسان`,`أيار`,`حزيران`,`تموز`,`آب`,`أيلول`,`تشرين الأول`,`تشرين الثاني`,`كانون الأول`],monthsShort:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],weekdays:[`الأحد`,`الاثنين`,`الثلاثاء`,`الأربعاء`,`الخميس`,`الجمعة`,`السبت`],weekdaysShort:[`أحد`,`اثن`,`ثلا`,`أربع`,`خمس`,`جمع`,`سبت`],weekdaysMin:[`ح`,`ن`,`ث`,`ع`,`خ`,`ج`,`س`],meridiem:{am:`ص`,pm:`م`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},he:{name:`he`,months:[`ינואר`,`פברואר`,`מרץ`,`אפריל`,`מאי`,`יוני`,`יולי`,`אוגוסט`,`ספטמבר`,`אוקטובר`,`נובמבר`,`דצמבר`],monthsShort:[`ינו`,`פבר`,`מרץ`,`אפר`,`מאי`,`יוני`,`יולי`,`אוג`,`ספט`,`אוק`,`נוב`,`דצמ`],weekdays:[`ראשון`,`שני`,`שלישי`,`רביעי`,`חמישי`,`שישי`,`שבת`],weekdaysShort:[`ראשון`,`שני`,`שלישי`,`רביעי`,`חמישי`,`שישי`,`שבת`],weekdaysMin:[`ראו`,`שני`,`שלי`,`רבי`,`חמי`,`שיש`,`שבת`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},hi:{name:`hi`,months:[`जनवरी`,`फ़रवरी`,`मार्च`,`अप्रैल`,`मई`,`जून`,`जुलाई`,`अगस्त`,`सितंबर`,`अक्टूबर`,`नवंबर`,`दिसंबर`],monthsShort:[`जन`,`फ़र`,`मार`,`अप्र`,`मई`,`जून`,`जुल`,`अग`,`सित`,`अक्ट`,`नव`,`दिस`],weekdays:[`रविवार`,`सोमवार`,`मंगलवार`,`बुधवार`,`गुरुवार`,`शुक्रवार`,`शनिवार`],weekdaysShort:[`रवि`,`सोम`,`मंग`,`बुध`,`गुरु`,`शुक्र`,`शनि`],weekdaysMin:[`र`,`स`,`मं`,`ब`,`गु`,`श`,`श`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},xs={vi:{name:`vi`,months:[`Tháng 1`,`Tháng 2`,`Tháng 3`,`Tháng 4`,`Tháng 5`,`Tháng 6`,`Tháng 7`,`Tháng 8`,`Tháng 9`,`Tháng 10`,`Tháng 11`,`Tháng 12`],monthsShort:[`Th1`,`Th2`,`Th3`,`Th4`,`Th5`,`Th6`,`Th7`,`Th8`,`Th9`,`Th10`,`Th11`,`Th12`],weekdays:[`Chủ nhật`,`Thứ hai`,`Thứ ba`,`Thứ tư`,`Thứ năm`,`Thứ sáu`,`Thứ bảy`],weekdaysShort:[`CN`,`Th2`,`Th3`,`Th4`,`Th5`,`Th6`,`Th7`],weekdaysMin:[`CN`,`T2`,`T3`,`T4`,`T5`,`T6`,`T7`],meridiem:{am:`SA`,pm:`CH`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},id:{name:`id`,months:[`Januari`,`Februari`,`Maret`,`April`,`Mei`,`Juni`,`Juli`,`Agustus`,`September`,`Oktober`,`November`,`Desember`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`Mei`,`Jun`,`Jul`,`Agu`,`Sep`,`Okt`,`Nov`,`Des`],weekdays:[`Minggu`,`Senin`,`Selasa`,`Rabu`,`Kamis`,`Jumat`,`Sabtu`],weekdaysShort:[`Min`,`Sen`,`Sel`,`Rab`,`Kam`,`Jum`,`Sab`],weekdaysMin:[`Mg`,`Sn`,`Sl`,`Rb`,`Km`,`Jm`,`Sb`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}},th:{name:`th`,months:[`มกราคม`,`กุมภาพันธ์`,`มีนาคม`,`เมษายน`,`พฤษภาคม`,`มิถุนายน`,`กรกฎาคม`,`สิงหาคม`,`กันยายน`,`ตุลาคม`,`พฤศจิกายน`,`ธันวาคม`],monthsShort:[`ม.ค.`,`ก.พ.`,`มี.ค.`,`เม.ย.`,`พ.ค.`,`มิ.ย.`,`ก.ค.`,`ส.ค.`,`ก.ย.`,`ต.ค.`,`พ.ย.`,`ธ.ค.`],weekdays:[`อาทิตย์`,`จันทร์`,`อังคาร`,`พุธ`,`พฤหัสบดี`,`ศุกร์`,`เสาร์`],weekdaysShort:[`อา.`,`จ.`,`อ.`,`พ.`,`พฤ.`,`ศ.`,`ส.`],weekdaysMin:[`อา`,`จ`,`อ`,`พ`,`พฤ`,`ศ`,`ส`],meridiem:{am:`AM`,pm:`PM`},formats:{iso:`YYYY-MM-DDTHH:mm:ss.SSSZ`,date:`DD/MM/YYYY`,time:`HH:mm:ss`,datetime:`DD/MM/YYYY HH:mm:ss`,rfc2822:`ddd, DD MMM YYYY HH:mm:ss Z`}}},Ss={...ps,...ms,...hs,...gs,..._s,...vs,...ys,...bs,...xs};function Cs(e){e instanceof Map?Object.entries(Ss).forEach(([t,n])=>{e.set(t,n)}):Object.entries(Ss).forEach(([t,n])=>{e[t]=n})}function ws(){let e=Object.keys(Ss);for(;e.length<40;)e.push(`locale-${e.length+1}`);return e}var Ts=40,Es=class{id=`gregory`;name=`Gregorian Calendar`;locale=`en`;monthNames=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`];monthNamesShort=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];weekdayNames=[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`];weekdayNamesShort=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`];getMonthName(e,t=!1){return(t?this.monthNamesShort:this.monthNames)[Math.max(0,Math.min(11,e-1))]}getWeekdayName(e,t=!1){return(t?this.weekdayNamesShort:this.weekdayNames)[Math.max(0,Math.min(6,e-1))]}isLeapYear(e){return e%4==0&&e%100!=0||e%400==0}daysInMonth(e,t){return t===2&&this.isLeapYear(e)?29:[31,28,31,30,31,30,31,31,30,31,30,31][Math.max(0,Math.min(11,t-1))]}daysInYear(e){return this.isLeapYear(e)?366:365}},Ds=class e{static instance;calendars=new Map;defaultCalendar=`gregory`;constructor(){this.register(new Es)}static getInstance(){return e.instance||=new e,e.instance}register(e){this.calendars.set(e.id,e)}get(e){return this.calendars.get(e)}list(){return Array.from(this.calendars.keys())}setDefault(e){this.calendars.has(e)&&(this.defaultCalendar=e)}getDefault(){let e=this.calendars.get(this.defaultCalendar);if(!e)throw Error(`Default calendar '${this.defaultCalendar}' not found`);return e}},Os=Ds.getInstance(),ks=class{id=`islamic`;name=`Islamic Calendar (Hijri)`;locale=`ar`;monthNames=[`Muharram`,`Safar`,`Rabi al-awwal`,`Rabi al-thani`,`Jumada al-awwal`,`Jumada al-thani`,`Rajab`,`Sha'ban`,`Ramadan`,`Shawwal`,`Dhu al-Qi'dah`,`Dhu al-Hijjah`];getMonthName(e){return this.monthNames[Math.max(0,Math.min(11,e-1))]}getWeekdayName(e,t=!1){return(t?[`Ahd`,`Ith`,`Sel`,`Rab`,`Kha`,`Jum`,`Sab`]:[`Ahad`,`Ithnayn`,`Salasa`,`Rabi`,`Khamis`,`Jumah`,`Sabt`])[Math.max(0,Math.min(6,e-1))]}isLeapYear(e){return[2,5,7,10,13,16,18,21,24,26,29].includes(e%30)}daysInMonth(e,t){return t%2==1||t===12&&this.isLeapYear(e)?30:29}daysInYear(e){return this.isLeapYear(e)?355:354}},As=class{id=`hebrew`;name=`Hebrew Calendar`;locale=`he`;monthNames=[`Tishrei`,`Cheshvan`,`Kislev`,`Tevet`,`Shevat`,`Adar`,`Nisan`,`Iyar`,`Sivan`,`Tammuz`,`Av`,`Elul`];getMonthName(e){return this.monthNames[Math.max(0,Math.min(11,e-1))]}getWeekdayName(e,t=!1){return(t?[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`])[Math.max(0,Math.min(6,e-1))]}isLeapYear(e){return[3,6,8,11,14,17,19].includes(e%19)}daysInMonth(e,t){return[30,29,30,29,30,29,30,29,30,29,30,29][Math.max(0,Math.min(11,t-1))]}daysInYear(e){return this.isLeapYear(e)?384:354}},js=class{id=`chinese`;name=`Chinese Calendar`;locale=`zh`;monthNames=[`正月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`冬月`,`腊月`];terrestrialBranches=[`子`,`丑`,`寅`,`卯`,`辰`,`巳`,`午`,`未`,`申`,`酉`,`戌`,`亥`];getMonthName(e){return this.monthNames[Math.max(0,Math.min(11,e-1))]}getWeekdayName(e,t=!1){return(t?[`日`,`一`,`二`,`三`,`四`,`五`,`六`]:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`])[Math.max(0,Math.min(6,e-1))]}isLeapYear(e){return e%3==0}daysInMonth(e,t){return t%2==0?30:29}daysInYear(e){return this.isLeapYear(e)?384:354}getZodiacSign(e){return this.terrestrialBranches[e%12]}},Ms=class{id=`japanese`;name=`Japanese Calendar`;locale=`ja`;monthNames=[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`];getMonthName(e){return this.monthNames[Math.max(0,Math.min(11,e-1))]}getWeekdayName(e,t=!1){return(t?[`日`,`月`,`火`,`水`,`木`,`金`,`土`]:[`日曜日`,`月曜日`,`火曜日`,`水曜日`,`木曜日`,`金曜日`,`土曜日`])[Math.max(0,Math.min(6,e-1))]}isLeapYear(e){return e%4==0&&e%100!=0||e%400==0}daysInMonth(e,t){return t===2&&this.isLeapYear(e)?29:[31,28,31,30,31,30,31,31,30,31,30,31][Math.max(0,Math.min(11,t-1))]}daysInYear(e){return this.isLeapYear(e)?366:365}},Ns=class{id=`buddhist`;name=`Buddhist Calendar`;locale=`th`;monthNames=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`];getMonthName(e){return this.monthNames[Math.max(0,Math.min(11,e-1))]}getWeekdayName(e){return[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`][Math.max(0,Math.min(6,e-1))]}isLeapYear(e){let t=e-543;return t%4==0&&t%100!=0||t%400==0}daysInMonth(e,t){return t===2&&this.isLeapYear(e)?29:[31,28,31,30,31,30,31,31,30,31,30,31][Math.max(0,Math.min(11,t-1))]}daysInYear(e){return this.isLeapYear(e)?366:365}},Ps=[{l:`s`,r:44,d:`second`},{l:`m`,r:89},{l:`mm`,r:44,d:`minute`},{l:`h`,r:89},{l:`hh`,r:21,d:`hour`},{l:`d`,r:35},{l:`dd`,r:25,d:`day`},{l:`M`,r:45},{l:`MM`,r:10,d:`month`},{l:`y`,r:17},{l:`yy`,d:`year`}],Fs={future:`in %s`,past:`%s ago`,s:`a few seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`},Is=class{name=`relative-time`;version=`1.0.0`;config;formats;constructor(e){this.config={thresholds:e?.thresholds||Ps,rounding:e?.rounding||Math.round},this.formats=Fs}install(e){let t=this;e.prototype.fromNow=function(e){return t.formatRelativeTime(this,!1,e)},e.prototype.toNow=function(e){return t.formatRelativeTime(this,!0,e)},e.prototype.humanize=function(e,n){return e?t.formatRelativeTime(this,e.isAfter(this),n):t.formatRelativeTime(this,!1,n)}}formatRelativeTime(e,t,n){let r=e.constructor.now().diff(e,`millisecond`),i=Math.abs(r),a=t??!(r>0),o=this.getRelativeTimeString(i);return n?o:(a?this.formats.future:this.formats.past).replace(`%s`,o)}getRelativeTimeString(e){let t=this.config.thresholds||Ps,n=this.config.rounding||Math.round;for(let r=0;r<t.length;r++){let i=t[r];if(r+1<t.length&&t[r+1]&&i.r&&e<i.r*1e3)continue;let a;a=i.d?n(e/this.getUnitMilliseconds(i.d)):1;let o=i.l,s=this.formats[o]||o;return typeof s==`string`&&s.includes(`%d`)?s.replace(`%d`,String(a)):s}return`${n(e/1e3)} seconds`}getUnitMilliseconds(e){return{second:1e3,minute:1e3*60,hour:1e3*60*60,day:1e3*60*60*24,month:1e3*60*60*24*30,year:1e3*60*60*24*365}[e]||1}setFormats(e){Object.assign(this.formats,e)}getFormats(){return{...this.formats}}},Ls=new Is,Rs=class e{years=0;months=0;weeks=0;days=0;hours=0;minutes=0;seconds=0;milliseconds=0;constructor(e){this.years=e.years||0,this.months=e.months||0,this.weeks=e.weeks||0,this.days=e.days||0,this.hours=e.hours||0,this.minutes=e.minutes||0,this.seconds=e.seconds||0,this.milliseconds=e.milliseconds||0}static fromISO(t){let n=t.match(/^(-)?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:([\d.]+)S)?)?$/);if(!n)throw Error(`Invalid ISO 8601 duration: ${t}`);let[,r,i,a,,o,s,c,l]=n,u=r?-1:1;return new e({years:parseInt(i||`0`,10)*u,months:parseInt(a||`0`,10)*u,days:parseInt(o||`0`,10)*u,hours:parseInt(s||`0`,10)*u,minutes:parseInt(c||`0`,10)*u,seconds:parseFloat(l||`0`)*u})}static between(t,n){let r=t.toTemporal(),i=n.toTemporal().since(r);return new e({years:i.years||0,months:i.months||0,weeks:0,days:i.days||0,hours:i.hours||0,minutes:i.minutes||0,seconds:i.seconds||0,milliseconds:i.milliseconds||0})}static fromMilliseconds(t){let n=t<0,r=Math.abs(t),i=Math.floor(r/(1e3*60*60*24*365)),a=Math.floor(r%(1e3*60*60*24*365)/(1e3*60*60*24*30)),o=Math.floor(r%(1e3*60*60*24*30)/(1e3*60*60*24)),s=Math.floor(r%(1e3*60*60*24)/(1e3*60*60)),c=Math.floor(r%(1e3*60*60)/(1e3*60)),l=Math.floor(r%(1e3*60)/1e3),u=Math.floor(r%1e3),d=n?-1:1;return new e({years:i*d,months:a*d,days:o*d,hours:s*d,minutes:c*d,seconds:l*d,milliseconds:u*d})}as(e){return this.asMilliseconds()/{milliseconds:1,seconds:1e3,minutes:1e3*60,hours:1e3*60*60,days:1e3*60*60*24,weeks:1e3*60*60*24*7,months:1e3*60*60*24*30,years:1e3*60*60*24*365}[e]}asMilliseconds(){return this.years*1e3*60*60*24*365+this.months*1e3*60*60*24*30+this.weeks*1e3*60*60*24*7+this.days*1e3*60*60*24+this.hours*1e3*60*60+this.minutes*1e3*60+this.seconds*1e3+this.milliseconds}asSeconds(){return this.asMilliseconds()/1e3}asMinutes(){return this.asSeconds()/60}asHours(){return this.asMinutes()/60}asDays(){return this.asHours()/24}asWeeks(){return this.asDays()/7}asMonths(){return this.asDays()/30}asYears(){return this.asDays()/365}toObject(){return{years:this.years,months:this.months,weeks:this.weeks,days:this.days,hours:this.hours,minutes:this.minutes,seconds:this.seconds,milliseconds:this.milliseconds}}toISO(){let e=``;this.years&&(e+=`${this.years}Y`),this.months&&(e+=`${this.months}M`),(this.weeks||this.days)&&(e+=`${this.weeks*7+this.days}D`);let t=``;return this.hours&&(t+=`${this.hours}H`),this.minutes&&(t+=`${this.minutes}M`),(this.seconds||this.milliseconds)&&(t+=`${this.seconds+this.milliseconds/1e3}S`),`${this.isNegative()?`-`:``}P${e}${t?`T${t}`:``}`}humanize(){let e=[];if(this.years&&e.push(`${Math.abs(this.years)} year${Math.abs(this.years)===1?``:`s`}`),this.months&&e.push(`${Math.abs(this.months)} month${Math.abs(this.months)===1?``:`s`}`),this.weeks&&e.push(`${Math.abs(this.weeks)} week${Math.abs(this.weeks)===1?``:`s`}`),this.days&&e.push(`${Math.abs(this.days)} day${Math.abs(this.days)===1?``:`s`}`),this.hours&&e.push(`${Math.abs(this.hours)} hour${Math.abs(this.hours)===1?``:`s`}`),this.minutes&&e.push(`${Math.abs(this.minutes)} minute${Math.abs(this.minutes)===1?``:`s`}`),this.seconds&&e.push(`${Math.abs(this.seconds)} second${Math.abs(this.seconds)===1?``:`s`}`),this.milliseconds&&e.push(`${Math.abs(this.milliseconds)} ms`),e.length===0)return`0 seconds`;let t=e.join(`, `);return this.isNegative()?`-${t}`:t}isNegative(){return this.years<0||this.months<0||this.weeks<0||this.days<0||this.hours<0||this.minutes<0||this.seconds<0||this.milliseconds<0}abs(){return new e({years:Math.abs(this.years),months:Math.abs(this.months),weeks:Math.abs(this.weeks),days:Math.abs(this.days),hours:Math.abs(this.hours),minutes:Math.abs(this.minutes),seconds:Math.abs(this.seconds),milliseconds:Math.abs(this.milliseconds)})}toString(){return this.toISO()}},zs=class{name=`duration`;version=`1.0.0`;install(e){e.prototype.duration=function(e){return Rs.between(this,e)},e.Duration=Rs,e.duration={fromISO:e=>Rs.fromISO(e),between:(e,t)=>Rs.between(e,t),fromMilliseconds:e=>Rs.fromMilliseconds(e)}}},Bs=new zs,Vs=class{name=`advanced-format`;version=`1.0.0`;install(e){let t=e.prototype.format;e.prototype.format=function(e){if(!e||typeof e!=`string`||!/Q|Do|w|W|gggg|GGGG|k{1,2}|X|x|zzz?/.test(e))return t.call(this,e);let n=this.toTemporal(),r=`toPlainDateTime`in n?n.toPlainDateTime():n,i=e=>{let t=[`th`,`st`,`nd`,`rd`],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])},a=(e,t)=>String(e).padStart(t,`0`),o=e=>{let t=new Date(e.year,0,4),n=new Date(t);n.setDate(t.getDate()-t.getDay()+(t.getDay()===0?-6:1));let r=new Date(e.year,e.month-1,e.day),i=Math.floor((r.getTime()-n.getTime())/(10080*60*1e3))+1;return Math.max(1,i)},s=e=>{let t=Math.ceil((e.day+new Date(e.year,e.month-1,1).getDay())/7);return Math.max(1,t)},c=e=>{let t=new Date(e.year,e.month-1,e.day),n=t.getTime()<new Date(e.year,0,1).getTime()?-1:+(t.getTime()>=new Date(e.year+1,0,1).getTime());return e.year+n},l=e=>{let t=e.month===1&&e.day<4?-1:+(e.month===12&&e.day>28);return e.year+t},u=e.replace(/Q|Do|w|W|gggg|GGGG|k{1,2}|X|x|zzz?/g,e=>{let t=``;switch(e){case`Q`:t=String(Math.ceil(r.month/3));break;case`Do`:t=i(r.day);break;case`W`:case`WW`:t=a(o(r),e===`W`?1:2);break;case`w`:case`ww`:t=a(s(r),e===`w`?1:2);break;case`GGGG`:t=String(c(r));break;case`gggg`:t=String(l(r));break;case`k`:case`kk`:t=a(r.hour===0?24:r.hour,e===`k`?1:2);break;case`X`:t=String(Math.floor(this.valueOf()/1e3));break;case`x`:t=String(this.valueOf());break;case`z`:t=`${this.getTimezoneOffset()}`;break;case`zzz`:t=`${this.getTimezoneOffsetLong()}`;break;default:return e}return`[${t}]`});return t.call(this,u)}}},Hs=new Vs;typeof globalThis<`u`&&!globalThis.Temporal&&(globalThis.Temporal=Ro);function Us(e,t){return new fs(e,t)}Wo.getInstance().loadLocales(Ss),e.ALL_LOCALES=Ss,e.AdvancedFormatPlugin=Vs,e.BuddhistCalendar=Ns,e.CalendarManager=Ds,e.ChineseCalendar=js,e.DateFormatter=Go,e.Duration=Rs,e.DurationPlugin=zs,e.DurationResult=us,e.EN_LOCALE=Ho,e.ES_LOCALE=Uo,e.GregorianCalendar=Es,e.HebrewCalendar=As,e.IslamicCalendar=ks,e.JapaneseCalendar=Ms,e.LOCALES_COUNT=Ts,e.LocaleManager=Wo,e.PluginManager=Qo,e.RelativeTimePlugin=Is,e.TemporalAdapter=$,e.TimeGuard=fs,e.TimeRange=ds,e.advancedFormatPlugin=Hs,e.calendarManager=Os,e.durationPlugin=Bs,e.getAvailableLocales=ws,e.registerAllLocales=Cs,e.relativeTimePlugin=Ls,e.timeGuard=Us,e.version=`2.5.2`});
2
4
  //# sourceMappingURL=time-guard.umd.js.map