@malloy-publisher/server 0.0.88 → 0.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build.ts +1 -0
- package/dist/app/api-doc.yaml +43 -5
- package/dist/app/assets/RenderedResult-BAZuT25g-QakVAbYy.js +2 -0
- package/dist/app/assets/{index-CNRCklos.js → index-Bq29VQqL.js} +1 -1
- package/dist/app/assets/index-DZMePHJ5.js +251 -0
- package/dist/app/assets/{index-lhN38COk.js → index-TslDWlxH.js} +5 -5
- package/dist/app/assets/{index.umd-CSPhcx55.js → index.umd-BN4_E5KD.js} +1 -1
- package/dist/app/assets/mui-BEbinrI-.js +161 -0
- package/dist/app/assets/vendor-c5ypKtDW.js +17 -0
- package/dist/app/index.html +3 -1
- package/dist/instrumentation.js +28 -4
- package/dist/server.js +38461 -48955
- package/package.json +5 -2
- package/src/constants.ts +9 -1
- package/src/controller/connection.controller.ts +21 -4
- package/src/controller/package.controller.ts +12 -1
- package/src/controller/schedule.controller.ts +3 -3
- package/src/logger.ts +9 -0
- package/src/server.ts +36 -30
- package/src/service/connection.ts +152 -154
- package/src/service/package.spec.ts +12 -10
- package/src/service/package.ts +11 -4
- package/src/service/project.ts +72 -33
- package/src/service/project_store.spec.ts +73 -51
- package/src/service/project_store.ts +76 -11
- package/tests/harness/mcp_test_setup.ts +5 -5
- package/dist/app/assets/RenderedResult-BAZuT25g-DLMDvQic.js +0 -2
- package/dist/app/assets/index-CobAY3LE.js +0 -427
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as I1e}from"./index-CobAY3LE.js";function xEt(aS,lS){for(var Kr=0;Kr<lS.length;Kr++){const Ut=lS[Kr];if(typeof Ut!="string"&&!Array.isArray(Ut)){for(const fu in Ut)if(fu!=="default"&&!(fu in aS)){const lm=Object.getOwnPropertyDescriptor(Ut,fu);lm&&Object.defineProperty(aS,fu,lm.get?lm:{enumerable:!0,get:()=>Ut[fu]})}}}return Object.freeze(Object.defineProperty(aS,Symbol.toStringTag,{value:"Module"}))}var tS={exports:{}},vEt=tS.exports,k1e;function EEt(){return k1e||(k1e=1,function(aS,lS){(function(Kr,Ut){Ut(lS)})(vEt,function(Kr){class Ut{constructor(){this.tagOptionExtractors={}}addExtractor(e,...r){for(const i in r)this.tagOptionExtractors[r[i]]=e}activates(e){return!1}isValidMatch(e){return!0}matches(e){return e.renderer===this.rendererName}parseTagParameters(e){const r={};for(const i in this.tagOptionExtractors){const s=e.tag(i);s&&this.tagOptionExtractors[i](r,s)}return r}}function fu(t){if(t.isArray())return t.values.map(e=>fu(e));if(t.isBoolean()||t.isNumber()||t.isString()||t.isNull())return t.value;if(t.isTime())return t.value.toISOString();if(t.isJSON())try{return JSON.parse(t.value)}catch{return t.value}else if(t.isRecord()){const e={};for(const r of t.columns)e[r.field.name]=fu(r);return e}return null}class lm{constructor(e){this.document=e}async render(e){const r=this.document.createElement("pre");return r.appendChild(this.document.createTextNode(JSON.stringify(fu(e),void 0,2))),r}}const k4=class extends Ut{create(e,r,i,s,o){return new lm(e)}get rendererName(){return"json"}};k4.instance=new k4;let q1e=k4;class H1e{constructor(e,r,i){this.document=e,this.options=r,this.tagged=i}}class uS extends H1e{constructor(){super(...arguments),this.childRenderers={}}get defaultStylesForChildren(){return this.childrenStyleDefaults}static make(e,r,i,s,o){return new e(r,s,o)}}var R=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof I1e<"u"?I1e:typeof self<"u"?self:{};function cS(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function lB(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return t[i]}})}),r}function z1e(t,e,r,i){var s=-1,o=t==null?0:t.length;for(i&&o&&(r=t[++s]);++s<o;)r=e(r,t[s],s,t);return r}var Q1e=z1e;function G1e(t){return function(e){return t?.[e]}}var W1e=G1e,V1e=W1e,Y1e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},K1e=V1e(Y1e),J1e=K1e,X1e=typeof R=="object"&&R&&R.Object===Object&&R,Z1e=X1e,e0e=Z1e,t0e=typeof self=="object"&&self&&self.Object===Object&&self,r0e=e0e||t0e||Function("return this")(),n0e=r0e,i0e=n0e,s0e=i0e.Symbol,M4=s0e;function o0e(t,e){for(var r=-1,i=t==null?0:t.length,s=Array(i);++r<i;)s[r]=e(t[r],r,t);return s}var a0e=o0e,l0e=Array.isArray,u0e=l0e,uB=M4,cB=Object.prototype,c0e=cB.hasOwnProperty,d0e=cB.toString,$0=uB?uB.toStringTag:void 0;function f0e(t){var e=c0e.call(t,$0),r=t[$0];try{t[$0]=void 0;var i=!0}catch{}var s=d0e.call(t);return i&&(e?t[$0]=r:delete t[$0]),s}var h0e=f0e,p0e=Object.prototype,m0e=p0e.toString;function g0e(t){return m0e.call(t)}var y0e=g0e,dB=M4,x0e=h0e,v0e=y0e,E0e="[object Null]",b0e="[object Undefined]",fB=dB?dB.toStringTag:void 0;function S0e(t){return t==null?t===void 0?b0e:E0e:fB&&fB in Object(t)?x0e(t):v0e(t)}var _0e=S0e;function T0e(t){return t!=null&&typeof t=="object"}var A0e=T0e,R0e=_0e,O0e=A0e,w0e="[object Symbol]";function C0e(t){return typeof t=="symbol"||O0e(t)&&R0e(t)==w0e}var N0e=C0e,hB=M4,D0e=a0e,L0e=u0e,I0e=N0e,pB=hB?hB.prototype:void 0,mB=pB?pB.toString:void 0;function gB(t){if(typeof t=="string")return t;if(L0e(t))return D0e(t,gB)+"";if(I0e(t))return mB?mB.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var k0e=gB,M0e=k0e;function P0e(t){return t==null?"":M0e(t)}var P4=P0e,F0e=J1e,$0e=P4,j0e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,U0e="\\u0300-\\u036f",B0e="\\ufe20-\\ufe2f",q0e="\\u20d0-\\u20ff",H0e=U0e+B0e+q0e,z0e="["+H0e+"]",Q0e=RegExp(z0e,"g");function G0e(t){return t=$0e(t),t&&t.replace(j0e,F0e).replace(Q0e,"")}var W0e=G0e,V0e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Y0e(t){return t.match(V0e)||[]}var K0e=Y0e,J0e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function X0e(t){return J0e.test(t)}var Z0e=X0e,yB="\\ud800-\\udfff",eye="\\u0300-\\u036f",tye="\\ufe20-\\ufe2f",rye="\\u20d0-\\u20ff",nye=eye+tye+rye,xB="\\u2700-\\u27bf",vB="a-z\\xdf-\\xf6\\xf8-\\xff",iye="\\xac\\xb1\\xd7\\xf7",sye="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",oye="\\u2000-\\u206f",aye=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",EB="A-Z\\xc0-\\xd6\\xd8-\\xde",lye="\\ufe0e\\ufe0f",bB=iye+sye+oye+aye,SB="['’]",_B="["+bB+"]",uye="["+nye+"]",TB="\\d+",cye="["+xB+"]",AB="["+vB+"]",RB="[^"+yB+bB+TB+xB+vB+EB+"]",dye="\\ud83c[\\udffb-\\udfff]",fye="(?:"+uye+"|"+dye+")",hye="[^"+yB+"]",OB="(?:\\ud83c[\\udde6-\\uddff]){2}",wB="[\\ud800-\\udbff][\\udc00-\\udfff]",um="["+EB+"]",pye="\\u200d",CB="(?:"+AB+"|"+RB+")",mye="(?:"+um+"|"+RB+")",NB="(?:"+SB+"(?:d|ll|m|re|s|t|ve))?",DB="(?:"+SB+"(?:D|LL|M|RE|S|T|VE))?",LB=fye+"?",IB="["+lye+"]?",gye="(?:"+pye+"(?:"+[hye,OB,wB].join("|")+")"+IB+LB+")*",yye="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xye="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vye=IB+LB+gye,Eye="(?:"+[cye,OB,wB].join("|")+")"+vye,bye=RegExp([um+"?"+AB+"+"+NB+"(?="+[_B,um,"$"].join("|")+")",mye+"+"+DB+"(?="+[_B,um+CB,"$"].join("|")+")",um+"?"+CB+"+"+NB,um+"+"+DB,xye,yye,TB,Eye].join("|"),"g");function Sye(t){return t.match(bye)||[]}var _ye=Sye,Tye=K0e,Aye=Z0e,Rye=P4,Oye=_ye;function wye(t,e,r){return t=Rye(t),e=r?void 0:e,e===void 0?Aye(t)?Oye(t):Tye(t):t.match(e)||[]}var Cye=wye,Nye=Q1e,Dye=W0e,Lye=Cye,Iye="['’]",kye=RegExp(Iye,"g");function Mye(t){return function(e){return Nye(Lye(Dye(e).replace(kye,"")),t,"")}}var Pye=Mye;function Fye(t,e,r){var i=-1,s=t.length;e<0&&(e=-e>s?0:s+e),r=r>s?s:r,r<0&&(r+=s),s=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(s);++i<s;)o[i]=t[i+e];return o}var $ye=Fye,jye=$ye;function Uye(t,e,r){var i=t.length;return r=r===void 0?i:r,!e&&r>=i?t:jye(t,e,r)}var Bye=Uye,qye="\\ud800-\\udfff",Hye="\\u0300-\\u036f",zye="\\ufe20-\\ufe2f",Qye="\\u20d0-\\u20ff",Gye=Hye+zye+Qye,Wye="\\ufe0e\\ufe0f",Vye="\\u200d",Yye=RegExp("["+Vye+qye+Gye+Wye+"]");function Kye(t){return Yye.test(t)}var kB=Kye;function Jye(t){return t.split("")}var Xye=Jye,MB="\\ud800-\\udfff",Zye="\\u0300-\\u036f",exe="\\ufe20-\\ufe2f",txe="\\u20d0-\\u20ff",rxe=Zye+exe+txe,nxe="\\ufe0e\\ufe0f",ixe="["+MB+"]",F4="["+rxe+"]",$4="\\ud83c[\\udffb-\\udfff]",sxe="(?:"+F4+"|"+$4+")",PB="[^"+MB+"]",FB="(?:\\ud83c[\\udde6-\\uddff]){2}",$B="[\\ud800-\\udbff][\\udc00-\\udfff]",oxe="\\u200d",jB=sxe+"?",UB="["+nxe+"]?",axe="(?:"+oxe+"(?:"+[PB,FB,$B].join("|")+")"+UB+jB+")*",lxe=UB+jB+axe,uxe="(?:"+[PB+F4+"?",F4,FB,$B,ixe].join("|")+")",cxe=RegExp($4+"(?="+$4+")|"+uxe+lxe,"g");function dxe(t){return t.match(cxe)||[]}var fxe=dxe,hxe=Xye,pxe=kB,mxe=fxe;function gxe(t){return pxe(t)?mxe(t):hxe(t)}var yxe=gxe,xxe=Bye,vxe=kB,Exe=yxe,bxe=P4;function Sxe(t){return function(e){e=bxe(e);var r=vxe(e)?Exe(e):void 0,i=r?r[0]:e.charAt(0),s=r?xxe(r,1).join(""):e.slice(1);return i[t]()+s}}var _xe=Sxe,Txe=_xe,Axe=Txe("toUpperCase"),Rxe=Axe,Oxe=Pye,wxe=Rxe,Cxe=Oxe(function(t,e,r){return t+(r?" ":"")+wxe(e)}),Nxe=Cxe;const Dxe=cS(Nxe);class Cf extends Error{}class Lxe extends Cf{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Ixe extends Cf{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class kxe extends Cf{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class j0 extends Cf{}class BB extends Cf{constructor(e){super(`Invalid unit ${e}`)}}class to extends Cf{}class Lc extends Cf{constructor(){super("Zone is an abstract class")}}const Qe="numeric",qo="short",ws="long",j4={year:Qe,month:Qe,day:Qe},qB={year:Qe,month:qo,day:Qe},Mxe={year:Qe,month:qo,day:Qe,weekday:qo},HB={year:Qe,month:ws,day:Qe},zB={year:Qe,month:ws,day:Qe,weekday:ws},QB={hour:Qe,minute:Qe},GB={hour:Qe,minute:Qe,second:Qe},WB={hour:Qe,minute:Qe,second:Qe,timeZoneName:qo},VB={hour:Qe,minute:Qe,second:Qe,timeZoneName:ws},YB={hour:Qe,minute:Qe,hourCycle:"h23"},KB={hour:Qe,minute:Qe,second:Qe,hourCycle:"h23"},JB={hour:Qe,minute:Qe,second:Qe,hourCycle:"h23",timeZoneName:qo},XB={hour:Qe,minute:Qe,second:Qe,hourCycle:"h23",timeZoneName:ws},ZB={year:Qe,month:Qe,day:Qe,hour:Qe,minute:Qe},tq={year:Qe,month:Qe,day:Qe,hour:Qe,minute:Qe,second:Qe},rq={year:Qe,month:qo,day:Qe,hour:Qe,minute:Qe},nq={year:Qe,month:qo,day:Qe,hour:Qe,minute:Qe,second:Qe},Pxe={year:Qe,month:qo,day:Qe,weekday:qo,hour:Qe,minute:Qe},iq={year:Qe,month:ws,day:Qe,hour:Qe,minute:Qe,timeZoneName:qo},sq={year:Qe,month:ws,day:Qe,hour:Qe,minute:Qe,second:Qe,timeZoneName:qo},oq={year:Qe,month:ws,day:Qe,weekday:ws,hour:Qe,minute:Qe,timeZoneName:ws},aq={year:Qe,month:ws,day:Qe,weekday:ws,hour:Qe,minute:Qe,second:Qe,timeZoneName:ws};function Nt(t){return typeof t>"u"}function Nf(t){return typeof t=="number"}function dS(t){return typeof t=="number"&&t%1===0}function Fxe(t){return typeof t=="string"}function $xe(t){return Object.prototype.toString.call(t)==="[object Date]"}function lq(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function jxe(t){return Array.isArray(t)?t:[t]}function uq(t,e,r){if(t.length!==0)return t.reduce((i,s)=>{const o=[e(s),s];return i&&r(i[0],o[0])===i[0]?i:o},null)[1]}function Uxe(t,e){return e.reduce((r,i)=>(r[i]=t[i],r),{})}function cm(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function hu(t,e,r){return dS(t)&&t>=e&&t<=r}function Bxe(t,e){return t-e*Math.floor(t/e)}function Jr(t,e=2){const r=t<0;let i;return r?i="-"+(""+-t).padStart(e,"0"):i=(""+t).padStart(e,"0"),i}function Ic(t){if(!(Nt(t)||t===null||t===""))return parseInt(t,10)}function Df(t){if(!(Nt(t)||t===null||t===""))return parseFloat(t)}function U4(t){if(!(Nt(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function B4(t,e,r=!1){const i=10**e;return(r?Math.trunc:Math.round)(t*i)/i}function U0(t){return t%4===0&&(t%100!==0||t%400===0)}function B0(t){return U0(t)?366:365}function fS(t,e){const r=Bxe(e-1,12)+1,i=t+(e-r)/12;return r===2?U0(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function q4(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function hS(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,r=t-1,i=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return e===4||i===3?53:52}function H4(t){return t>99?t:t>60?1900+t:2e3+t}function cq(t,e,r,i=null){const s=new Date(t),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(o.timeZone=i);const a={timeZoneName:e,...o},l=new Intl.DateTimeFormat(r,a).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return l?l.value:null}function pS(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const i=parseInt(e,10)||0,s=r<0||Object.is(r,-0)?-i:i;return r*60+s}function dq(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new to(`Invalid unit value ${t}`);return e}function mS(t,e){const r={};for(const i in t)if(cm(t,i)){const s=t[i];if(s==null)continue;r[e(i)]=dq(s)}return r}function q0(t,e){const r=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${Jr(r,2)}:${Jr(i,2)}`;case"narrow":return`${s}${r}${i>0?`:${i}`:""}`;case"techie":return`${s}${Jr(r,2)}${Jr(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function gS(t){return Uxe(t,["hour","minute","second","millisecond"])}const fq=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,qxe=["January","February","March","April","May","June","July","August","September","October","November","December"],hq=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Hxe=["J","F","M","A","M","J","J","A","S","O","N","D"];function pq(t){switch(t){case"narrow":return[...Hxe];case"short":return[...hq];case"long":return[...qxe];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const mq=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],gq=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],zxe=["M","T","W","T","F","S","S"];function yq(t){switch(t){case"narrow":return[...zxe];case"short":return[...gq];case"long":return[...mq];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const xq=["AM","PM"],Qxe=["Before Christ","Anno Domini"],Gxe=["BC","AD"],Wxe=["B","A"];function vq(t){switch(t){case"narrow":return[...Wxe];case"short":return[...Gxe];case"long":return[...Qxe];default:return null}}function Vxe(t){return xq[t.hour<12?0:1]}function Yxe(t,e){return yq(e)[t.weekday-1]}function Kxe(t,e){return pq(e)[t.month-1]}function Jxe(t,e){return vq(e)[t.year<0?0:1]}function Xxe(t,e,r="always",i=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&o){const f=t==="days";switch(e){case 1:return f?"tomorrow":`next ${s[t][0]}`;case-1:return f?"yesterday":`last ${s[t][0]}`;case 0:return f?"today":`this ${s[t][0]}`}}const a=Object.is(e,-0)||e<0,l=Math.abs(e),u=l===1,c=s[t],d=i?u?c[1]:c[2]||c[1]:u?s[t][0]:t;return a?`${l} ${d} ago`:`in ${l} ${d}`}function Eq(t,e){let r="";for(const i of t)i.literal?r+=i.val:r+=e(i.val);return r}const Zxe={D:j4,DD:qB,DDD:HB,DDDD:zB,t:QB,tt:GB,ttt:WB,tttt:VB,T:YB,TT:KB,TTT:JB,TTTT:XB,f:ZB,ff:rq,fff:iq,ffff:oq,F:tq,FF:nq,FFF:sq,FFFF:aq};class rs{static create(e,r={}){return new rs(e,r)}static parseFormat(e){let r=null,i="",s=!1;const o=[];for(let a=0;a<e.length;a++){const l=e.charAt(a);l==="'"?(i.length>0&&o.push({literal:s,val:i}),r=null,i="",s=!s):s||l===r?i+=l:(i.length>0&&o.push({literal:!1,val:i}),i=l,r=l)}return i.length>0&&o.push({literal:s,val:i}),o}static macroTokenToFormatOpts(e){return Zxe[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}formatDateTime(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r}).format()}formatDateTimeParts(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r}).formatToParts()}resolvedOptions(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r}).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return Jr(e,r);const i={...this.opts};return r>0&&(i.padTo=r),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,r){const i=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(m,g)=>this.loc.extract(e,m,g),a=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",l=()=>i?Vxe(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(m,g)=>i?Kxe(e,m):o(g?{month:m}:{month:m,day:"numeric"},"month"),c=(m,g)=>i?Yxe(e,m):o(g?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),d=m=>{const g=rs.macroTokenToFormatOpts(m);return g?this.formatWithSystemDefault(e,g):m},f=m=>i?Jxe(e,m):o({era:m},"era"),h=m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return l();case"d":return s?o({day:"numeric"},"day"):this.num(e.day);case"dd":return s?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return s?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?o({month:"numeric"},"month"):this.num(e.month);case"MM":return s?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?o({year:"numeric"},"year"):this.num(e.year);case"yy":return s?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(m)}};return Eq(rs.parseFormat(r),h)}formatDurationFromString(e,r){const i=u=>{switch(u[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=u=>c=>{const d=i(c);return d?this.num(u.get(d),c.length):c},o=rs.parseFormat(r),a=o.reduce((u,{literal:c,val:d})=>c?u:u.concat(d),[]),l=e.shiftTo(...a.map(i).filter(u=>u));return Eq(o,s(l))}}class Ho{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}let dm=class{get type(){throw new Lc}get name(){throw new Lc}get ianaName(){return this.name}get isUniversal(){throw new Lc}offsetName(t,e){throw new Lc}formatOffset(t,e){throw new Lc}offset(t){throw new Lc}equals(t){throw new Lc}get isValid(){throw new Lc}},z4=null;class yS extends dm{static get instance(){return z4===null&&(z4=new yS),z4}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:i}){return cq(e,r,i)}formatOffset(e,r){return q0(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let xS={};function eve(t){return xS[t]||(xS[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),xS[t]}const tve={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function rve(t,e){const r=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,a,l,u,c,d]=i;return[a,s,o,l,u,c,d]}function nve(t,e){const r=t.formatToParts(e),i=[];for(let s=0;s<r.length;s++){const{type:o,value:a}=r[s],l=tve[o];o==="era"?i[l]=a:Nt(l)||(i[l]=parseInt(a,10))}return i}let vS={};class Qa extends dm{static create(e){return vS[e]||(vS[e]=new Qa(e)),vS[e]}static resetCache(){vS={},xS={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Qa.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:i}){return cq(e,r,i,this.name)}formatOffset(e,r){return q0(this.offset(e),r)}offset(e){const r=new Date(e);if(isNaN(r))return NaN;const i=eve(this.name);let[s,o,a,l,u,c,d]=i.formatToParts?nve(i,r):rve(i,r);l==="BC"&&(s=-Math.abs(s)+1);const f=q4({year:s,month:o,day:a,hour:u===24?0:u,minute:c,second:d,millisecond:0});let h=+r;const m=h%1e3;return h-=m>=0?m:1e3+m,(f-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Q4=null;class Kn extends dm{static get utcInstance(){return Q4===null&&(Q4=new Kn(0)),Q4}static instance(e){return e===0?Kn.utcInstance:new Kn(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new Kn(pS(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${q0(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${q0(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return q0(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class bq extends dm{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function kc(t,e){if(Nt(t)||t===null)return e;if(t instanceof dm)return t;if(Fxe(t)){const r=t.toLowerCase();return r==="local"||r==="system"?e:r==="utc"||r==="gmt"?Kn.utcInstance:Kn.parseSpecifier(r)||Qa.create(t)}else return Nf(t)?Kn.instance(t):typeof t=="object"&&t.offset&&typeof t.offset=="number"?t:new bq(t)}let Sq=()=>Date.now(),_q="system",Tq=null,Aq=null,Rq=null,Oq;class Xr{static get now(){return Sq}static set now(e){Sq=e}static set defaultZone(e){_q=e}static get defaultZone(){return kc(_q,yS.instance)}static get defaultLocale(){return Tq}static set defaultLocale(e){Tq=e}static get defaultNumberingSystem(){return Aq}static set defaultNumberingSystem(e){Aq=e}static get defaultOutputCalendar(){return Rq}static set defaultOutputCalendar(e){Rq=e}static get throwOnInvalid(){return Oq}static set throwOnInvalid(e){Oq=e}static resetCaches(){Cr.resetCache(),Qa.resetCache()}}let wq={};function ive(t,e={}){const r=JSON.stringify([t,e]);let i=wq[r];return i||(i=new Intl.ListFormat(t,e),wq[r]=i),i}let G4={};function W4(t,e={}){const r=JSON.stringify([t,e]);let i=G4[r];return i||(i=new Intl.DateTimeFormat(t,e),G4[r]=i),i}let V4={};function sve(t,e={}){const r=JSON.stringify([t,e]);let i=V4[r];return i||(i=new Intl.NumberFormat(t,e),V4[r]=i),i}let Y4={};function ove(t,e={}){const{base:r,...i}=e,s=JSON.stringify([t,i]);let o=Y4[s];return o||(o=new Intl.RelativeTimeFormat(t,e),Y4[s]=o),o}let ES=null;function ave(){return ES||(ES=new Intl.DateTimeFormat().resolvedOptions().locale,ES)}function lve(t){const e=t.indexOf("-u-");if(e===-1)return[t];{let r;const i=t.substring(0,e);try{r=W4(t).resolvedOptions()}catch{r=W4(i).resolvedOptions()}const{numberingSystem:s,calendar:o}=r;return[i,s,o]}}function uve(t,e,r){return(r||e)&&(t+="-u",r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function cve(t){const e=[];for(let r=1;r<=12;r++){const i=gt.utc(2016,r,1);e.push(t(i))}return e}function dve(t){const e=[];for(let r=1;r<=7;r++){const i=gt.utc(2016,11,13+r);e.push(t(i))}return e}function bS(t,e,r,i,s){const o=t.listingMode(r);return o==="error"?null:o==="en"?i(e):s(e)}function fve(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class hve{constructor(e,r,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:s,floor:o,...a}=i;if(!r||Object.keys(a).length>0){const l={useGrouping:!1,...i};i.padTo>0&&(l.minimumIntegerDigits=i.padTo),this.inf=sve(e,l)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):B4(e,3);return Jr(r,this.padTo)}}}class pve{constructor(e,r,i){this.opts=i;let s;if(e.zone.isUniversal){const a=-1*(e.offset/60),l=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&Qa.create(l).valid?(s=l,this.dt=e):(s="UTC",i.timeZoneName?this.dt=e:this.dt=e.offset===0?e:gt.fromMillis(e.ts+e.offset*60*1e3))}else e.zone.type==="system"?this.dt=e:(this.dt=e,s=e.zone.name);const o={...this.opts};s&&(o.timeZone=s),this.dtf=W4(r,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class mve{constructor(e,r,i){this.opts={style:"long",...i},!r&&lq()&&(this.rtf=ove(e,i))}format(e,r){return this.rtf?this.rtf.format(e,r):Xxe(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}class Cr{static fromOpts(e){return Cr.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,r,i,s=!1){const o=e||Xr.defaultLocale,a=o||(s?"en-US":ave()),l=r||Xr.defaultNumberingSystem,u=i||Xr.defaultOutputCalendar;return new Cr(a,l,u,o)}static resetCache(){ES=null,G4={},V4={},Y4={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:i}={}){return Cr.create(e,r,i)}constructor(e,r,i,s){const[o,a,l]=lve(e);this.locale=o,this.numberingSystem=r||a||null,this.outputCalendar=i||l||null,this.intl=uve(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=fve(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Cr.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1,i=!0){return bS(this,e,i,pq,()=>{const s=r?{month:e,day:"numeric"}:{month:e},o=r?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=cve(a=>this.extract(a,s,"month"))),this.monthsCache[o][e]})}weekdays(e,r=!1,i=!0){return bS(this,e,i,yq,()=>{const s=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=r?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=dve(a=>this.extract(a,s,"weekday"))),this.weekdaysCache[o][e]})}meridiems(e=!0){return bS(this,void 0,e,()=>xq,()=>{if(!this.meridiemCache){const r={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[gt.utc(2016,11,13,9),gt.utc(2016,11,13,19)].map(i=>this.extract(i,r,"dayperiod"))}return this.meridiemCache})}eras(e,r=!0){return bS(this,e,r,vq,()=>{const i={era:e};return this.eraCache[e]||(this.eraCache[e]=[gt.utc(-40,1,1),gt.utc(2017,1,1)].map(s=>this.extract(s,i,"era"))),this.eraCache[e]})}extract(e,r,i){const s=this.dtFormatter(e,r),o=s.formatToParts(),a=o.find(l=>l.type.toLowerCase()===i);return a?a.value:null}numberFormatter(e={}){return new hve(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new pve(e,this.intl,r)}relFormatter(e={}){return new mve(this.intl,this.isEnglish(),e)}listFormatter(e={}){return ive(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function fm(...t){const e=t.reduce((r,i)=>r+i.source,"");return RegExp(`^${e}$`)}function hm(...t){return e=>t.reduce(([r,i,s],o)=>{const[a,l,u]=o(e,s);return[{...r,...a},l||i,u]},[{},null,1]).slice(0,2)}function pm(t,...e){if(t==null)return[null,null];for(const[r,i]of e){const s=r.exec(t);if(s)return i(s)}return[null,null]}function Cq(...t){return(e,r)=>{const i={};let s;for(s=0;s<t.length;s++)i[t[s]]=Ic(e[r+s]);return[i,null,r+s]}}const Nq=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,gve=`(?:${Nq.source}?(?:\\[(${fq.source})\\])?)?`,K4=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Dq=RegExp(`${K4.source}${gve}`),J4=RegExp(`(?:T${Dq.source})?`),yve=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,xve=/(\d{4})-?W(\d\d)(?:-?(\d))?/,vve=/(\d{4})-?(\d{3})/,Eve=Cq("weekYear","weekNumber","weekDay"),bve=Cq("year","ordinal"),Sve=/(\d{4})-(\d\d)-(\d\d)/,Lq=RegExp(`${K4.source} ?(?:${Nq.source}|(${fq.source}))?`),_ve=RegExp(`(?: ${Lq.source})?`);function mm(t,e,r){const i=t[e];return Nt(i)?r:Ic(i)}function Tve(t,e){return[{year:mm(t,e),month:mm(t,e+1,1),day:mm(t,e+2,1)},null,e+3]}function gm(t,e){return[{hours:mm(t,e,0),minutes:mm(t,e+1,0),seconds:mm(t,e+2,0),milliseconds:U4(t[e+3])},null,e+4]}function H0(t,e){const r=!t[e]&&!t[e+1],i=pS(t[e+1],t[e+2]),s=r?null:Kn.instance(i);return[{},s,e+3]}function z0(t,e){const r=t[e]?Qa.create(t[e]):null;return[{},r,e+1]}const Ave=RegExp(`^T?${K4.source}$`),Rve=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Ove(t){const[e,r,i,s,o,a,l,u,c]=t,d=e[0]==="-",f=u&&u[0]==="-",h=(m,g=!1)=>m!==void 0&&(g||m&&d)?-m:m;return[{years:h(Df(r)),months:h(Df(i)),weeks:h(Df(s)),days:h(Df(o)),hours:h(Df(a)),minutes:h(Df(l)),seconds:h(Df(u),u==="-0"),milliseconds:h(U4(c),f)}]}const wve={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function X4(t,e,r,i,s,o,a){const l={year:e.length===2?H4(Ic(e)):Ic(e),month:hq.indexOf(r)+1,day:Ic(i),hour:Ic(s),minute:Ic(o)};return a&&(l.second=Ic(a)),t&&(l.weekday=t.length>3?mq.indexOf(t)+1:gq.indexOf(t)+1),l}const Cve=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Nve(t){const[,e,r,i,s,o,a,l,u,c,d,f]=t,h=X4(e,s,i,r,o,a,l);let m;return u?m=wve[u]:c?m=0:m=pS(d,f),[h,new Kn(m)]}function Dve(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Lve=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ive=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,kve=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Iq(t){const[,e,r,i,s,o,a,l]=t;return[X4(e,s,i,r,o,a,l),Kn.utcInstance]}function Mve(t){const[,e,r,i,s,o,a,l]=t;return[X4(e,l,r,i,s,o,a),Kn.utcInstance]}const Pve=fm(yve,J4),Fve=fm(xve,J4),$ve=fm(vve,J4),jve=fm(Dq),kq=hm(Tve,gm,H0,z0),Uve=hm(Eve,gm,H0,z0),Bve=hm(bve,gm,H0,z0),qve=hm(gm,H0,z0);function Hve(t){return pm(t,[Pve,kq],[Fve,Uve],[$ve,Bve],[jve,qve])}function zve(t){return pm(Dve(t),[Cve,Nve])}function Qve(t){return pm(t,[Lve,Iq],[Ive,Iq],[kve,Mve])}function Gve(t){return pm(t,[Rve,Ove])}const Wve=hm(gm);function Vve(t){return pm(t,[Ave,Wve])}const Yve=fm(Sve,_ve),Kve=fm(Lq),Jve=hm(gm,H0,z0);function Xve(t){return pm(t,[Yve,kq],[Kve,Jve])}const Zve="Invalid Duration",Mq={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},eEe={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...Mq},ro=146097/400,ym=146097/4800,tEe={years:{quarters:4,months:12,weeks:ro/7,days:ro,hours:ro*24,minutes:ro*24*60,seconds:ro*24*60*60,milliseconds:ro*24*60*60*1e3},quarters:{months:3,weeks:ro/28,days:ro/4,hours:ro*24/4,minutes:ro*24*60/4,seconds:ro*24*60*60/4,milliseconds:ro*24*60*60*1e3/4},months:{weeks:ym/7,days:ym,hours:ym*24,minutes:ym*24*60,seconds:ym*24*60*60,milliseconds:ym*24*60*60*1e3},...Mq},Lf=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],rEe=Lf.slice(0).reverse();function If(t,e,r=!1){const i={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new Dt(i)}function nEe(t){return t<0?Math.floor(t):Math.ceil(t)}function Pq(t,e,r,i,s){const o=t[s][r],a=e[r]/o,l=Math.sign(a)===Math.sign(i[s]),u=!l&&i[s]!==0&&Math.abs(a)<=1?nEe(a):Math.trunc(a);i[s]+=u,e[r]-=u*o}function iEe(t,e){rEe.reduce((r,i)=>Nt(e[i])?r:(r&&Pq(t,e,r,e,i),i),null)}class Dt{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;this.values=e.values,this.loc=e.loc||Cr.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r?tEe:eEe,this.isLuxonDuration=!0}static fromMillis(e,r){return Dt.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new to(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Dt({values:mS(e,Dt.normalizeUnit),loc:Cr.fromObject(r),conversionAccuracy:r.conversionAccuracy})}static fromDurationLike(e){if(Nf(e))return Dt.fromMillis(e);if(Dt.isDuration(e))return e;if(typeof e=="object")return Dt.fromObject(e);throw new to(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[i]=Gve(e);return i?Dt.fromObject(i,r):Dt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[i]=Vve(e);return i?Dt.fromObject(i,r):Dt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new to("need to specify a reason the Duration is invalid");const i=e instanceof Ho?e:new Ho(e,r);if(Xr.throwOnInvalid)throw new kxe(i);return new Dt({invalid:i})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new BB(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const i={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?rs.create(this.loc,i).formatDurationFromString(this,e):Zve}toHuman(e={}){const r=Lf.map(i=>{const s=this.values[i];return Nt(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(s)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=B4(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();if(r<0||r>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const i=this.shiftTo("hours","minutes","seconds","milliseconds");let s=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||i.seconds!==0||i.milliseconds!==0)&&(s+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||i.milliseconds!==0)&&(s+=".SSS"));let o=i.toFormat(s);return e.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=Dt.fromDurationLike(e),i={};for(const s of Lf)(cm(r.values,s)||cm(this.values,s))&&(i[s]=r.get(s)+this.get(s));return If(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const r=Dt.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const i of Object.keys(this.values))r[i]=dq(e(this.values[i],i));return If(this,{values:r},!0)}get(e){return this[Dt.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...mS(e,Dt.normalizeUnit)};return If(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:i}={}){const s=this.loc.clone({locale:e,numberingSystem:r}),o={loc:s};return i&&(o.conversionAccuracy=i),If(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return iEe(this.matrix,e),If(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>Dt.normalizeUnit(a));const r={},i={},s=this.toObject();let o;for(const a of Lf)if(e.indexOf(a)>=0){o=a;let l=0;for(const c in i)l+=this.matrix[c][a]*i[c],i[c]=0;Nf(s[a])&&(l+=s[a]);const u=Math.trunc(l);r[a]=u,i[a]=(l*1e3-u*1e3)/1e3;for(const c in s)Lf.indexOf(c)>Lf.indexOf(a)&&Pq(this.matrix,s,c,r,a)}else Nf(s[a])&&(i[a]=s[a]);for(const a in i)i[a]!==0&&(r[o]+=a===o?i[a]:i[a]/this.matrix[o][a]);return If(this,{values:r},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return If(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(i,s){return i===void 0||i===0?s===void 0||s===0:i===s}for(const i of Lf)if(!r(this.values[i],e.values[i]))return!1;return!0}}const Q0="Invalid Interval";function sEe(t,e){return!t||!t.isValid?G0.invalid("missing or invalid start"):!e||!e.isValid?G0.invalid("missing or invalid end"):e<t?G0.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}let G0=class Mn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new to("need to specify a reason the Interval is invalid");const i=e instanceof Ho?e:new Ho(e,r);if(Xr.throwOnInvalid)throw new Ixe(i);return new Mn({invalid:i})}static fromDateTimes(e,r){const i=K0(e),s=K0(r);return sEe(i,s)??new Mn({start:i,end:s})}static after(e,r){const i=Dt.fromDurationLike(r),s=K0(e);return Mn.fromDateTimes(s,s.plus(i))}static before(e,r){const i=Dt.fromDurationLike(r),s=K0(e);return Mn.fromDateTimes(s.minus(i),s)}static fromISO(e,r){const[i,s]=(e||"").split("/",2);if(i&&s){let o,a;try{o=gt.fromISO(i,r),a=o.isValid}catch{a=!1}let l,u;try{l=gt.fromISO(s,r),u=l.isValid}catch{u=!1}if(a&&u)return Mn.fromDateTimes(o,l);if(a){const c=Dt.fromISO(s,r);if(c.isValid)return Mn.after(o,c)}else if(u){const c=Dt.fromISO(i,r);if(c.isValid)return Mn.before(l,c)}}return Mn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const r=this.start.startOf(e),i=this.end.startOf(e);return Math.floor(i.diff(r,e).get(e))+1}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?Mn.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(K0).filter(a=>this.contains(a)).sort(),i=[];let{s}=this,o=0;for(;s<this.e;){const a=r[o]||this.e,l=+a>+this.e?this.e:a;i.push(Mn.fromDateTimes(s,l)),s=l,o+=1}return i}splitBy(e){const r=Dt.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:i}=this,s=1,o;const a=[];for(;i<this.e;){const l=this.start.plus(r.mapUnits(u=>u*s));o=+l>+this.e?this.e:l,a.push(Mn.fromDateTimes(i,o)),i=o,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,i=this.e<e.e?this.e:e.e;return r>=i?null:Mn.fromDateTimes(r,i)}union(e){if(!this.isValid)return this;const r=this.s<e.s?this.s:e.s,i=this.e>e.e?this.e:e.e;return Mn.fromDateTimes(r,i)}static merge(e){const[r,i]=e.sort((s,o)=>s.s-o.s).reduce(([s,o],a)=>o?o.overlaps(a)||o.abutsStart(a)?[s,o.union(a)]:[s.concat([o]),a]:[s,a],[[],null]);return i&&r.push(i),r}static xor(e){let r=null,i=0;const s=[],o=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),a=Array.prototype.concat(...o),l=a.sort((u,c)=>u.time-c.time);for(const u of l)i+=u.type==="s"?1:-1,i===1?r=u.time:(r&&+r!=+u.time&&s.push(Mn.fromDateTimes(r,u.time)),r=null);return Mn.merge(s)}difference(...e){return Mn.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Q0}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Q0}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Q0}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Q0}toFormat(e,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:Q0}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):Dt.invalid(this.invalidReason)}mapEndpoints(e){return Mn.fromDateTimes(e(this.s),e(this.e))}},W0=class{static hasDST(t=Xr.defaultZone){const e=gt.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return Qa.isValidZone(t)}static normalizeZone(t){return kc(t,Xr.defaultZone)}static months(t="long",{locale:e=null,numberingSystem:r=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||Cr.create(e,r,s)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:r=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||Cr.create(e,r,s)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:r=null,locObj:i=null}={}){return(i||Cr.create(e,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:r=null,locObj:i=null}={}){return(i||Cr.create(e,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Cr.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return Cr.create(e,null,"gregory").eras(t)}static features(){return{relative:lq()}}};function Fq(t,e){const r=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=r(e)-r(t);return Math.floor(Dt.fromMillis(i).as("days"))}function oEe(t,e,r){const i=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{const c=Fq(l,u);return(c-c%7)/7}],["days",Fq]],s={};let o,a;for(const[l,u]of i)if(r.indexOf(l)>=0){o=l;let c=u(t,e);a=t.plus({[l]:c}),a>e?(t=t.plus({[l]:c-1}),c-=1):t=a,s[l]=c}return[t,s,a,o]}function aEe(t,e,r,i){let[s,o,a,l]=oEe(t,e,r);const u=e-s,c=r.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(a<e&&(a=s.plus({[l]:1})),a!==s&&(o[l]=(o[l]||0)+u/(a-s)));const d=Dt.fromObject(o,i);return c.length>0?Dt.fromMillis(u,i).shiftTo(...c).plus(d):d}const Z4={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},$q={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},lEe=Z4.hanidec.replace(/[\[|\]]/g,"").split("");function uEe(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){const i=t.charCodeAt(r);if(t[r].search(Z4.hanidec)!==-1)e+=lEe.indexOf(t[r]);else for(const s in $q){const[o,a]=$q[s];i>=o&&i<=a&&(e+=i-o)}}return parseInt(e,10)}else return e}function zo({numberingSystem:t},e=""){return new RegExp(`${Z4[t||"latn"]}${e}`)}const cEe="missing Intl.DateTimeFormat.formatToParts support";function Vt(t,e=r=>r){return{regex:t,deser:([r])=>e(uEe(r))}}const jq="[ ]",Uq=new RegExp(jq,"g");function dEe(t){return t.replace(/\./g,"\\.?").replace(Uq,jq)}function Bq(t){return t.replace(/\./g,"").replace(Uq," ").toLowerCase()}function Qo(t,e){return t===null?null:{regex:RegExp(t.map(dEe).join("|")),deser:([r])=>t.findIndex(i=>Bq(r)===Bq(i))+e}}function qq(t,e){return{regex:t,deser:([,r,i])=>pS(r,i),groups:e}}function e5(t){return{regex:t,deser:([e])=>e}}function fEe(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function hEe(t,e){const r=zo(e),i=zo(e,"{2}"),s=zo(e,"{3}"),o=zo(e,"{4}"),a=zo(e,"{6}"),l=zo(e,"{1,2}"),u=zo(e,"{1,3}"),c=zo(e,"{1,6}"),d=zo(e,"{1,9}"),f=zo(e,"{2,4}"),h=zo(e,"{4,6}"),m=y=>({regex:RegExp(fEe(y.val)),deser:([x])=>x,literal:!0}),g=(y=>{if(t.literal)return m(y);switch(y.val){case"G":return Qo(e.eras("short",!1),0);case"GG":return Qo(e.eras("long",!1),0);case"y":return Vt(c);case"yy":return Vt(f,H4);case"yyyy":return Vt(o);case"yyyyy":return Vt(h);case"yyyyyy":return Vt(a);case"M":return Vt(l);case"MM":return Vt(i);case"MMM":return Qo(e.months("short",!0,!1),1);case"MMMM":return Qo(e.months("long",!0,!1),1);case"L":return Vt(l);case"LL":return Vt(i);case"LLL":return Qo(e.months("short",!1,!1),1);case"LLLL":return Qo(e.months("long",!1,!1),1);case"d":return Vt(l);case"dd":return Vt(i);case"o":return Vt(u);case"ooo":return Vt(s);case"HH":return Vt(i);case"H":return Vt(l);case"hh":return Vt(i);case"h":return Vt(l);case"mm":return Vt(i);case"m":return Vt(l);case"q":return Vt(l);case"qq":return Vt(i);case"s":return Vt(l);case"ss":return Vt(i);case"S":return Vt(u);case"SSS":return Vt(s);case"u":return e5(d);case"uu":return e5(l);case"uuu":return Vt(r);case"a":return Qo(e.meridiems(),0);case"kkkk":return Vt(o);case"kk":return Vt(f,H4);case"W":return Vt(l);case"WW":return Vt(i);case"E":case"c":return Vt(r);case"EEE":return Qo(e.weekdays("short",!1,!1),1);case"EEEE":return Qo(e.weekdays("long",!1,!1),1);case"ccc":return Qo(e.weekdays("short",!0,!1),1);case"cccc":return Qo(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return qq(new RegExp(`([+-]${l.source})(?::(${i.source}))?`),2);case"ZZZ":return qq(new RegExp(`([+-]${l.source})(${i.source})?`),2);case"z":return e5(/[a-z_+-/]{1,256}?/i);default:return m(y)}})(t)||{invalidReason:cEe};return g.token=t,g}const pEe={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function mEe(t,e,r){const{type:i,value:s}=t;if(i==="literal")return{literal:!0,val:s};const o=r[i];let a=pEe[i];if(typeof a=="object"&&(a=a[o]),a)return{literal:!1,val:a}}function gEe(t){return[`^${t.map(e=>e.regex).reduce((e,r)=>`${e}(${r.source})`,"")}$`,t]}function yEe(t,e,r){const i=t.match(e);if(i){const s={};let o=1;for(const a in r)if(cm(r,a)){const l=r[a],u=l.groups?l.groups+1:1;!l.literal&&l.token&&(s[l.token.val[0]]=l.deser(i.slice(o,o+u))),o+=u}return[i,s]}else return[i,{}]}function xEe(t){const e=s=>{switch(s){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,i;return Nt(t.z)||(r=Qa.create(t.z)),Nt(t.Z)||(r||(r=new Kn(t.Z)),i=t.Z),Nt(t.q)||(t.M=(t.q-1)*3+1),Nt(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Nt(t.u)||(t.S=U4(t.u)),[Object.keys(t).reduce((s,o)=>{const a=e(o);return a&&(s[a]=t[o]),s},{}),r,i]}let t5=null;function vEe(){return t5||(t5=gt.fromMillis(1555555555555)),t5}function EEe(t,e){if(t.literal)return t;const r=rs.macroTokenToFormatOpts(t.val);if(!r)return t;const i=rs.create(e,r).formatDateTimeParts(vEe()).map(s=>mEe(s,e,r));return i.includes(void 0)?t:i}function bEe(t,e){return Array.prototype.concat(...t.map(r=>EEe(r,e)))}function Hq(t,e,r){const i=bEe(rs.parseFormat(r),t),s=i.map(a=>hEe(a,t)),o=s.find(a=>a.invalidReason);if(o)return{input:e,tokens:i,invalidReason:o.invalidReason};{const[a,l]=gEe(s),u=RegExp(a,"i"),[c,d]=yEe(e,u,l),[f,h,m]=d?xEe(d):[null,null,void 0];if(cm(d,"a")&&cm(d,"H"))throw new j0("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:u,rawMatches:c,matches:d,result:f,zone:h,specificOffset:m}}}function SEe(t,e,r){const{result:i,zone:s,specificOffset:o,invalidReason:a}=Hq(t,e,r);return[i,s,o,a]}const zq=[0,31,59,90,120,151,181,212,243,273,304,334],Qq=[0,31,60,91,121,152,182,213,244,274,305,335];function no(t,e){return new Ho("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Gq(t,e,r){const i=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const s=i.getUTCDay();return s===0?7:s}function Wq(t,e,r){return r+(U0(t)?Qq:zq)[e-1]}function Vq(t,e){const r=U0(t)?Qq:zq,i=r.findIndex(o=>o<e),s=e-r[i];return{month:i+1,day:s}}function r5(t){const{year:e,month:r,day:i}=t,s=Wq(e,r,i),o=Gq(e,r,i);let a=Math.floor((s-o+10)/7),l;return a<1?(l=e-1,a=hS(l)):a>hS(e)?(l=e+1,a=1):l=e,{weekYear:l,weekNumber:a,weekday:o,...gS(t)}}function Yq(t){const{weekYear:e,weekNumber:r,weekday:i}=t,s=Gq(e,1,4),o=B0(e);let a=r*7+i-s-3,l;a<1?(l=e-1,a+=B0(l)):a>o?(l=e+1,a-=B0(e)):l=e;const{month:u,day:c}=Vq(l,a);return{year:l,month:u,day:c,...gS(t)}}function n5(t){const{year:e,month:r,day:i}=t,s=Wq(e,r,i);return{year:e,ordinal:s,...gS(t)}}function Kq(t){const{year:e,ordinal:r}=t,{month:i,day:s}=Vq(e,r);return{year:e,month:i,day:s,...gS(t)}}function _Ee(t){const e=dS(t.weekYear),r=hu(t.weekNumber,1,hS(t.weekYear)),i=hu(t.weekday,1,7);return e?r?i?!1:no("weekday",t.weekday):no("week",t.week):no("weekYear",t.weekYear)}function TEe(t){const e=dS(t.year),r=hu(t.ordinal,1,B0(t.year));return e?r?!1:no("ordinal",t.ordinal):no("year",t.year)}function Jq(t){const e=dS(t.year),r=hu(t.month,1,12),i=hu(t.day,1,fS(t.year,t.month));return e?r?i?!1:no("day",t.day):no("month",t.month):no("year",t.year)}function Xq(t){const{hour:e,minute:r,second:i,millisecond:s}=t,o=hu(e,0,23)||e===24&&r===0&&i===0&&s===0,a=hu(r,0,59),l=hu(i,0,59),u=hu(s,0,999);return o?a?l?u?!1:no("millisecond",s):no("second",i):no("minute",r):no("hour",e)}const i5="Invalid DateTime",Zq=864e13;function SS(t){return new Ho("unsupported zone",`the zone "${t.name}" is not supported`)}function s5(t){return t.weekData===null&&(t.weekData=r5(t.c)),t.weekData}function V0(t,e){const r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new gt({...r,...e,old:r})}function eH(t,e,r){let i=t-e*60*1e3;const s=r.offset(i);if(e===s)return[i,e];i-=(s-e)*60*1e3;const o=r.offset(i);return s===o?[i,s]:[t-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tH(t,e){t+=e*60*1e3;const r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function _S(t,e,r){return eH(q4(t),e,r)}function rH(t,e){const r=t.o,i=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...t.c,year:i,month:s,day:Math.min(t.c.day,fS(i,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=Dt.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),l=q4(o);let[u,c]=eH(l,r,t.zone);return a!==0&&(u+=a,c=t.zone.offset(u)),{ts:u,o:c}}function Y0(t,e,r,i,s,o){const{setZone:a,zone:l}=r;if(t&&Object.keys(t).length!==0){const u=e||l,c=gt.fromObject(t,{...r,zone:u,specificOffset:o});return a?c:c.setZone(l)}else return gt.invalid(new Ho("unparsable",`the input "${s}" can't be parsed as ${i}`))}function TS(t,e,r=!0){return t.isValid?rs.create(Cr.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function o5(t,e){const r=t.c.year>9999||t.c.year<0;let i="";return r&&t.c.year>=0&&(i+="+"),i+=Jr(t.c.year,r?6:4),e?(i+="-",i+=Jr(t.c.month),i+="-",i+=Jr(t.c.day)):(i+=Jr(t.c.month),i+=Jr(t.c.day)),i}function nH(t,e,r,i,s,o){let a=Jr(t.c.hour);return e?(a+=":",a+=Jr(t.c.minute),(t.c.second!==0||!r)&&(a+=":")):a+=Jr(t.c.minute),(t.c.second!==0||!r)&&(a+=Jr(t.c.second),(t.c.millisecond!==0||!i)&&(a+=".",a+=Jr(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!o?a+="Z":t.o<0?(a+="-",a+=Jr(Math.trunc(-t.o/60)),a+=":",a+=Jr(Math.trunc(-t.o%60))):(a+="+",a+=Jr(Math.trunc(t.o/60)),a+=":",a+=Jr(Math.trunc(t.o%60)))),o&&(a+="["+t.zone.ianaName+"]"),a}const iH={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},AEe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},REe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},sH=["year","month","day","hour","minute","second","millisecond"],OEe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],wEe=["year","ordinal","hour","minute","second","millisecond"];function oH(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new BB(t);return e}function aH(t,e){const r=kc(e.zone,Xr.defaultZone),i=Cr.fromObject(e),s=Xr.now();let o,a;if(Nt(t.year))o=s;else{for(const c of sH)Nt(t[c])&&(t[c]=iH[c]);const l=Jq(t)||Xq(t);if(l)return gt.invalid(l);const u=r.offset(s);[o,a]=_S(t,u,r)}return new gt({ts:o,zone:r,loc:i,o:a})}function lH(t,e,r){const i=Nt(r.round)?!0:r.round,s=(a,l)=>(a=B4(a,i||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(a,l)),o=a=>r.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(r.unit)return s(o(r.unit),r.unit);for(const a of r.units){const l=o(a);if(Math.abs(l)>=1)return s(l,a)}return s(t>e?-0:0,r.units[r.units.length-1])}function uH(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}class gt{constructor(e){const r=e.zone||Xr.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new Ho("invalid input"):null)||(r.isValid?null:SS(r));this.ts=Nt(e.ts)?Xr.now():e.ts;let s=null,o=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[s,o]=[e.old.c,e.old.o];else{const a=r.offset(this.ts);s=tH(this.ts,a),i=Number.isNaN(s.year)?new Ho("invalid input"):null,s=i?null:s,o=i?null:a}this._zone=r,this.loc=e.loc||Cr.create(),this.invalid=i,this.weekData=null,this.c=s,this.o=o,this.isLuxonDateTime=!0}static now(){return new gt({})}static local(){const[e,r]=uH(arguments),[i,s,o,a,l,u,c]=r;return aH({year:i,month:s,day:o,hour:a,minute:l,second:u,millisecond:c},e)}static utc(){const[e,r]=uH(arguments),[i,s,o,a,l,u,c]=r;return e.zone=Kn.utcInstance,aH({year:i,month:s,day:o,hour:a,minute:l,second:u,millisecond:c},e)}static fromJSDate(e,r={}){const i=$xe(e)?e.valueOf():NaN;if(Number.isNaN(i))return gt.invalid("invalid input");const s=kc(r.zone,Xr.defaultZone);return s.isValid?new gt({ts:i,zone:s,loc:Cr.fromObject(r)}):gt.invalid(SS(s))}static fromMillis(e,r={}){if(Nf(e))return e<-Zq||e>Zq?gt.invalid("Timestamp out of range"):new gt({ts:e,zone:kc(r.zone,Xr.defaultZone),loc:Cr.fromObject(r)});throw new to(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(Nf(e))return new gt({ts:e*1e3,zone:kc(r.zone,Xr.defaultZone),loc:Cr.fromObject(r)});throw new to("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const i=kc(r.zone,Xr.defaultZone);if(!i.isValid)return gt.invalid(SS(i));const s=Xr.now(),o=Nt(r.specificOffset)?i.offset(s):r.specificOffset,a=mS(e,oH),l=!Nt(a.ordinal),u=!Nt(a.year),c=!Nt(a.month)||!Nt(a.day),d=u||c,f=a.weekYear||a.weekNumber,h=Cr.fromObject(r);if((d||l)&&f)throw new j0("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&l)throw new j0("Can't mix ordinal dates with month/day");const m=f||a.weekday&&!d;let g,y,x=tH(s,o);m?(g=OEe,y=AEe,x=r5(x)):l?(g=wEe,y=REe,x=n5(x)):(g=sH,y=iH);let E=!1;for(const O of g){const w=a[O];Nt(w)?E?a[O]=y[O]:a[O]=x[O]:E=!0}const v=m?_Ee(a):l?TEe(a):Jq(a),b=v||Xq(a);if(b)return gt.invalid(b);const S=m?Yq(a):l?Kq(a):a,[_,A]=_S(S,o,i),T=new gt({ts:_,zone:i,o:A,loc:h});return a.weekday&&d&&e.weekday!==T.weekday?gt.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${T.toISO()}`):T}static fromISO(e,r={}){const[i,s]=Hve(e);return Y0(i,s,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[i,s]=zve(e);return Y0(i,s,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[i,s]=Qve(e);return Y0(i,s,r,"HTTP",r)}static fromFormat(e,r,i={}){if(Nt(e)||Nt(r))throw new to("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:o=null}=i,a=Cr.fromOpts({locale:s,numberingSystem:o,defaultToEN:!0}),[l,u,c,d]=SEe(a,e,r);return d?gt.invalid(d):Y0(l,u,i,`format ${r}`,e,c)}static fromString(e,r,i={}){return gt.fromFormat(e,r,i)}static fromSQL(e,r={}){const[i,s]=Xve(e);return Y0(i,s,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new to("need to specify a reason the DateTime is invalid");const i=e instanceof Ho?e:new Ho(e,r);if(Xr.throwOnInvalid)throw new Lxe(i);return new gt({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?s5(this).weekYear:NaN}get weekNumber(){return this.isValid?s5(this).weekNumber:NaN}get weekday(){return this.isValid?s5(this).weekday:NaN}get ordinal(){return this.isValid?n5(this.c).ordinal:NaN}get monthShort(){return this.isValid?W0.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?W0.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?W0.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?W0.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return U0(this.year)}get daysInMonth(){return fS(this.year,this.month)}get daysInYear(){return this.isValid?B0(this.year):NaN}get weeksInWeekYear(){return this.isValid?hS(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:i,calendar:s}=rs.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:i,outputCalendar:s}}toUTC(e=0,r={}){return this.setZone(Kn.instance(e),r)}toLocal(){return this.setZone(Xr.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:i=!1}={}){if(e=kc(e,Xr.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(r||i){const o=e.offset(this.ts),a=this.toObject();[s]=_S(a,o,e)}return V0(this,{ts:s,zone:e})}else return gt.invalid(SS(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:i}={}){const s=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:i});return V0(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=mS(e,oH),i=!Nt(r.weekYear)||!Nt(r.weekNumber)||!Nt(r.weekday),s=!Nt(r.ordinal),o=!Nt(r.year),a=!Nt(r.month)||!Nt(r.day),l=o||a,u=r.weekYear||r.weekNumber;if((l||s)&&u)throw new j0("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new j0("Can't mix ordinal dates with month/day");let c;i?c=Yq({...r5(this.c),...r}):Nt(r.ordinal)?(c={...this.toObject(),...r},Nt(r.day)&&(c.day=Math.min(fS(c.year,c.month),c.day))):c=Kq({...n5(this.c),...r});const[d,f]=_S(c,this.o,this.zone);return V0(this,{ts:d,o:f})}plus(e){if(!this.isValid)return this;const r=Dt.fromDurationLike(e);return V0(this,rH(this,r))}minus(e){if(!this.isValid)return this;const r=Dt.fromDurationLike(e).negate();return V0(this,rH(this,r))}startOf(e){if(!this.isValid)return this;const r={},i=Dt.normalizeUnit(e);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(i==="weeks"&&(r.weekday=1),i==="quarters"){const s=Math.ceil(this.month/3);r.month=(s-1)*3+1}return this.set(r)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,r={}){return this.isValid?rs.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):i5}toLocaleString(e=j4,r={}){return this.isValid?rs.create(this.loc.clone(r),e).formatDateTime(this):i5}toLocaleParts(e={}){return this.isValid?rs.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:i=!1,includeOffset:s=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const a=e==="extended";let l=o5(this,a);return l+="T",l+=nH(this,a,r,i,s,o),l}toISODate({format:e="extended"}={}){return this.isValid?o5(this,e==="extended"):null}toISOWeekDate(){return TS(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:i=!0,includePrefix:s=!1,extendedZone:o=!1,format:a="extended"}={}){return this.isValid?(s?"T":"")+nH(this,a==="extended",r,e,i,o):null}toRFC2822(){return TS(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return TS(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?o5(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:i=!0}={}){let s="HH:mm:ss.SSS";return(r||e)&&(i&&(s+=" "),r?s+="z":e&&(s+="ZZ")),TS(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():i5}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",i={}){if(!this.isValid||!e.isValid)return Dt.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...i},o=jxe(r).map(Dt.normalizeUnit),a=e.valueOf()>this.valueOf(),l=a?this:e,u=a?e:this,c=aEe(l,u,o,s);return a?c.negate():c}diffNow(e="milliseconds",r={}){return this.diff(gt.now(),e,r)}until(e){return this.isValid?G0.fromDateTimes(this,e):this}hasSame(e,r){if(!this.isValid)return!1;const i=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(r)<=i&&i<=s.endOf(r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||gt.fromObject({},{zone:this.zone}),i=e.padding?this<r?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(s=e.unit,o=void 0),lH(r,this.plus(i),{...e,numeric:"always",units:s,unit:o})}toRelativeCalendar(e={}){return this.isValid?lH(e.base||gt.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(gt.isDateTime))throw new to("min requires all arguments be DateTimes");return uq(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(gt.isDateTime))throw new to("max requires all arguments be DateTimes");return uq(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,i={}){const{locale:s=null,numberingSystem:o=null}=i,a=Cr.fromOpts({locale:s,numberingSystem:o,defaultToEN:!0});return Hq(a,e,r)}static fromStringExplain(e,r,i={}){return gt.fromFormatExplain(e,r,i)}static get DATE_SHORT(){return j4}static get DATE_MED(){return qB}static get DATE_MED_WITH_WEEKDAY(){return Mxe}static get DATE_FULL(){return HB}static get DATE_HUGE(){return zB}static get TIME_SIMPLE(){return QB}static get TIME_WITH_SECONDS(){return GB}static get TIME_WITH_SHORT_OFFSET(){return WB}static get TIME_WITH_LONG_OFFSET(){return VB}static get TIME_24_SIMPLE(){return YB}static get TIME_24_WITH_SECONDS(){return KB}static get TIME_24_WITH_SHORT_OFFSET(){return JB}static get TIME_24_WITH_LONG_OFFSET(){return XB}static get DATETIME_SHORT(){return ZB}static get DATETIME_SHORT_WITH_SECONDS(){return tq}static get DATETIME_MED(){return rq}static get DATETIME_MED_WITH_SECONDS(){return nq}static get DATETIME_MED_WITH_WEEKDAY(){return Pxe}static get DATETIME_FULL(){return iq}static get DATETIME_FULL_WITH_SECONDS(){return sq}static get DATETIME_HUGE(){return oq}static get DATETIME_HUGE_WITH_SECONDS(){return aq}}function K0(t){if(gt.isDateTime(t))return t;if(t&&t.valueOf&&Nf(t.valueOf()))return gt.fromJSDate(t);if(t&&typeof t=="object")return gt.fromObject(t);throw new to(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const CEe=Object.freeze(Object.defineProperty({__proto__:null,DateTime:gt,Duration:Dt,FixedOffsetZone:Kn,IANAZone:Qa,Info:W0,Interval:G0,InvalidZone:bq,Settings:Xr,SystemZone:yS,VERSION:"2.5.2",Zone:dm},Symbol.toStringTag,{value:"Module"}));function Mc(t,e,r=!1){if(t!==void 0)switch(t){case"ordinal":return{range:["#C2D5EE","#1A73E8"]};case"temporal":case"quantitative":return e?r?{range:["#6BA4EE","#EEA361"]}:{range:["#1A73E8","#E8710A"]}:{range:["#C2D5EE","#1A73E8"]};case"nominal":return r?{range:["#6BA4EE","#66CEDC","#EC72B8","#EEA361","#F9C85B","#AACD85","#B87CED","#ACB0B3"]}:{range:["#1A73E8","#12B5CB","#E52592","#E8710A","#F9AB00","#7CB342","#9334E6","#80868B"]}}}function xr(t,e){return t.toString().padStart(e,"0")}function a5(t,e,r){e||(e="second");let i=!1;switch(e){case"hour":case"minute":case"second":i=!0;break}const s=gt.fromJSDate(t,{zone:i&&r?r:"UTC"});switch(e){case"year":return`${xr(s.year,4)}`;case"quarter":{const o=xr(s.year,4),a=Math.floor(s.month/3)+1;return`${o}-Q${a}`}case"month":{const o=xr(s.year,2),a=xr(s.month,2);return`${o}-${a}`}case"week":{const o=xr(s.year,2),a=xr(s.month,2),l=xr(s.day,2);return`${o}-${a}-${l}-WK`}case"day":{const o=xr(s.year,2),a=xr(s.month,2),l=xr(s.day,2);return`${o}-${a}-${l}`}case"hour":{const o=xr(s.year,2),a=xr(s.month,2),l=xr(s.day,2),u=xr(s.hour,2);return`${o}-${a}-${l} ${u}`}case"minute":{const o=xr(s.year,2),a=xr(s.month,2),l=xr(s.day,2),u=xr(s.hour,2),c=xr(s.minute,2);return`${o}-${a}-${l} ${u}:${c}`}case"second":{const o=xr(s.year,2),a=xr(s.month,2),l=xr(s.day,2),u=xr(s.hour,2),c=xr(s.minute,2),d=xr(s.second,2);return`${o}-${a}-${l} ${u}:${c}:${d}`}default:throw new Error("Unknown timeframe.")}}function NEe(t,e){const r=gt.fromJSDate(t,{zone:e??"UTC"});return new Date(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond)}let l5;const DEe=100;async function AS(){const t=Date.now();if(!(l5&&t<l5+DEe))return l5=t,new Promise(e=>{setTimeout(e,0)})}function io(t,e){const r=t.createElement("span");return r.classList.add("error"),r.appendChild(t.createTextNode(typeof e=="string"?e:e.message)),r}function J0(t){const e=t.createElement("span");return e.appendChild(t.createTextNode("∅")),e.classList.add("value-null"),e}function cH(t){const e=t.createElement("div");return e.classList.add("drill-icon"),e.innerHTML=`
|
|
1
|
+
import{c as I1e}from"./vendor-c5ypKtDW.js";function xEt(aS,lS){for(var Kr=0;Kr<lS.length;Kr++){const Ut=lS[Kr];if(typeof Ut!="string"&&!Array.isArray(Ut)){for(const fu in Ut)if(fu!=="default"&&!(fu in aS)){const lm=Object.getOwnPropertyDescriptor(Ut,fu);lm&&Object.defineProperty(aS,fu,lm.get?lm:{enumerable:!0,get:()=>Ut[fu]})}}}return Object.freeze(Object.defineProperty(aS,Symbol.toStringTag,{value:"Module"}))}var tS={exports:{}},vEt=tS.exports,k1e;function EEt(){return k1e||(k1e=1,function(aS,lS){(function(Kr,Ut){Ut(lS)})(vEt,function(Kr){class Ut{constructor(){this.tagOptionExtractors={}}addExtractor(e,...r){for(const i in r)this.tagOptionExtractors[r[i]]=e}activates(e){return!1}isValidMatch(e){return!0}matches(e){return e.renderer===this.rendererName}parseTagParameters(e){const r={};for(const i in this.tagOptionExtractors){const s=e.tag(i);s&&this.tagOptionExtractors[i](r,s)}return r}}function fu(t){if(t.isArray())return t.values.map(e=>fu(e));if(t.isBoolean()||t.isNumber()||t.isString()||t.isNull())return t.value;if(t.isTime())return t.value.toISOString();if(t.isJSON())try{return JSON.parse(t.value)}catch{return t.value}else if(t.isRecord()){const e={};for(const r of t.columns)e[r.field.name]=fu(r);return e}return null}class lm{constructor(e){this.document=e}async render(e){const r=this.document.createElement("pre");return r.appendChild(this.document.createTextNode(JSON.stringify(fu(e),void 0,2))),r}}const k4=class extends Ut{create(e,r,i,s,o){return new lm(e)}get rendererName(){return"json"}};k4.instance=new k4;let q1e=k4;class H1e{constructor(e,r,i){this.document=e,this.options=r,this.tagged=i}}class uS extends H1e{constructor(){super(...arguments),this.childRenderers={}}get defaultStylesForChildren(){return this.childrenStyleDefaults}static make(e,r,i,s,o){return new e(r,s,o)}}var R=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof I1e<"u"?I1e:typeof self<"u"?self:{};function cS(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function lB(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return t[i]}})}),r}function z1e(t,e,r,i){var s=-1,o=t==null?0:t.length;for(i&&o&&(r=t[++s]);++s<o;)r=e(r,t[s],s,t);return r}var Q1e=z1e;function G1e(t){return function(e){return t?.[e]}}var W1e=G1e,V1e=W1e,Y1e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},K1e=V1e(Y1e),J1e=K1e,X1e=typeof R=="object"&&R&&R.Object===Object&&R,Z1e=X1e,e0e=Z1e,t0e=typeof self=="object"&&self&&self.Object===Object&&self,r0e=e0e||t0e||Function("return this")(),n0e=r0e,i0e=n0e,s0e=i0e.Symbol,M4=s0e;function o0e(t,e){for(var r=-1,i=t==null?0:t.length,s=Array(i);++r<i;)s[r]=e(t[r],r,t);return s}var a0e=o0e,l0e=Array.isArray,u0e=l0e,uB=M4,cB=Object.prototype,c0e=cB.hasOwnProperty,d0e=cB.toString,$0=uB?uB.toStringTag:void 0;function f0e(t){var e=c0e.call(t,$0),r=t[$0];try{t[$0]=void 0;var i=!0}catch{}var s=d0e.call(t);return i&&(e?t[$0]=r:delete t[$0]),s}var h0e=f0e,p0e=Object.prototype,m0e=p0e.toString;function g0e(t){return m0e.call(t)}var y0e=g0e,dB=M4,x0e=h0e,v0e=y0e,E0e="[object Null]",b0e="[object Undefined]",fB=dB?dB.toStringTag:void 0;function S0e(t){return t==null?t===void 0?b0e:E0e:fB&&fB in Object(t)?x0e(t):v0e(t)}var _0e=S0e;function T0e(t){return t!=null&&typeof t=="object"}var A0e=T0e,R0e=_0e,O0e=A0e,w0e="[object Symbol]";function C0e(t){return typeof t=="symbol"||O0e(t)&&R0e(t)==w0e}var N0e=C0e,hB=M4,D0e=a0e,L0e=u0e,I0e=N0e,pB=hB?hB.prototype:void 0,mB=pB?pB.toString:void 0;function gB(t){if(typeof t=="string")return t;if(L0e(t))return D0e(t,gB)+"";if(I0e(t))return mB?mB.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var k0e=gB,M0e=k0e;function P0e(t){return t==null?"":M0e(t)}var P4=P0e,F0e=J1e,$0e=P4,j0e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,U0e="\\u0300-\\u036f",B0e="\\ufe20-\\ufe2f",q0e="\\u20d0-\\u20ff",H0e=U0e+B0e+q0e,z0e="["+H0e+"]",Q0e=RegExp(z0e,"g");function G0e(t){return t=$0e(t),t&&t.replace(j0e,F0e).replace(Q0e,"")}var W0e=G0e,V0e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Y0e(t){return t.match(V0e)||[]}var K0e=Y0e,J0e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function X0e(t){return J0e.test(t)}var Z0e=X0e,yB="\\ud800-\\udfff",eye="\\u0300-\\u036f",tye="\\ufe20-\\ufe2f",rye="\\u20d0-\\u20ff",nye=eye+tye+rye,xB="\\u2700-\\u27bf",vB="a-z\\xdf-\\xf6\\xf8-\\xff",iye="\\xac\\xb1\\xd7\\xf7",sye="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",oye="\\u2000-\\u206f",aye=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",EB="A-Z\\xc0-\\xd6\\xd8-\\xde",lye="\\ufe0e\\ufe0f",bB=iye+sye+oye+aye,SB="['’]",_B="["+bB+"]",uye="["+nye+"]",TB="\\d+",cye="["+xB+"]",AB="["+vB+"]",RB="[^"+yB+bB+TB+xB+vB+EB+"]",dye="\\ud83c[\\udffb-\\udfff]",fye="(?:"+uye+"|"+dye+")",hye="[^"+yB+"]",OB="(?:\\ud83c[\\udde6-\\uddff]){2}",wB="[\\ud800-\\udbff][\\udc00-\\udfff]",um="["+EB+"]",pye="\\u200d",CB="(?:"+AB+"|"+RB+")",mye="(?:"+um+"|"+RB+")",NB="(?:"+SB+"(?:d|ll|m|re|s|t|ve))?",DB="(?:"+SB+"(?:D|LL|M|RE|S|T|VE))?",LB=fye+"?",IB="["+lye+"]?",gye="(?:"+pye+"(?:"+[hye,OB,wB].join("|")+")"+IB+LB+")*",yye="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xye="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vye=IB+LB+gye,Eye="(?:"+[cye,OB,wB].join("|")+")"+vye,bye=RegExp([um+"?"+AB+"+"+NB+"(?="+[_B,um,"$"].join("|")+")",mye+"+"+DB+"(?="+[_B,um+CB,"$"].join("|")+")",um+"?"+CB+"+"+NB,um+"+"+DB,xye,yye,TB,Eye].join("|"),"g");function Sye(t){return t.match(bye)||[]}var _ye=Sye,Tye=K0e,Aye=Z0e,Rye=P4,Oye=_ye;function wye(t,e,r){return t=Rye(t),e=r?void 0:e,e===void 0?Aye(t)?Oye(t):Tye(t):t.match(e)||[]}var Cye=wye,Nye=Q1e,Dye=W0e,Lye=Cye,Iye="['’]",kye=RegExp(Iye,"g");function Mye(t){return function(e){return Nye(Lye(Dye(e).replace(kye,"")),t,"")}}var Pye=Mye;function Fye(t,e,r){var i=-1,s=t.length;e<0&&(e=-e>s?0:s+e),r=r>s?s:r,r<0&&(r+=s),s=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(s);++i<s;)o[i]=t[i+e];return o}var $ye=Fye,jye=$ye;function Uye(t,e,r){var i=t.length;return r=r===void 0?i:r,!e&&r>=i?t:jye(t,e,r)}var Bye=Uye,qye="\\ud800-\\udfff",Hye="\\u0300-\\u036f",zye="\\ufe20-\\ufe2f",Qye="\\u20d0-\\u20ff",Gye=Hye+zye+Qye,Wye="\\ufe0e\\ufe0f",Vye="\\u200d",Yye=RegExp("["+Vye+qye+Gye+Wye+"]");function Kye(t){return Yye.test(t)}var kB=Kye;function Jye(t){return t.split("")}var Xye=Jye,MB="\\ud800-\\udfff",Zye="\\u0300-\\u036f",exe="\\ufe20-\\ufe2f",txe="\\u20d0-\\u20ff",rxe=Zye+exe+txe,nxe="\\ufe0e\\ufe0f",ixe="["+MB+"]",F4="["+rxe+"]",$4="\\ud83c[\\udffb-\\udfff]",sxe="(?:"+F4+"|"+$4+")",PB="[^"+MB+"]",FB="(?:\\ud83c[\\udde6-\\uddff]){2}",$B="[\\ud800-\\udbff][\\udc00-\\udfff]",oxe="\\u200d",jB=sxe+"?",UB="["+nxe+"]?",axe="(?:"+oxe+"(?:"+[PB,FB,$B].join("|")+")"+UB+jB+")*",lxe=UB+jB+axe,uxe="(?:"+[PB+F4+"?",F4,FB,$B,ixe].join("|")+")",cxe=RegExp($4+"(?="+$4+")|"+uxe+lxe,"g");function dxe(t){return t.match(cxe)||[]}var fxe=dxe,hxe=Xye,pxe=kB,mxe=fxe;function gxe(t){return pxe(t)?mxe(t):hxe(t)}var yxe=gxe,xxe=Bye,vxe=kB,Exe=yxe,bxe=P4;function Sxe(t){return function(e){e=bxe(e);var r=vxe(e)?Exe(e):void 0,i=r?r[0]:e.charAt(0),s=r?xxe(r,1).join(""):e.slice(1);return i[t]()+s}}var _xe=Sxe,Txe=_xe,Axe=Txe("toUpperCase"),Rxe=Axe,Oxe=Pye,wxe=Rxe,Cxe=Oxe(function(t,e,r){return t+(r?" ":"")+wxe(e)}),Nxe=Cxe;const Dxe=cS(Nxe);class Cf extends Error{}class Lxe extends Cf{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Ixe extends Cf{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class kxe extends Cf{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class j0 extends Cf{}class BB extends Cf{constructor(e){super(`Invalid unit ${e}`)}}class to extends Cf{}class Lc extends Cf{constructor(){super("Zone is an abstract class")}}const Qe="numeric",qo="short",ws="long",j4={year:Qe,month:Qe,day:Qe},qB={year:Qe,month:qo,day:Qe},Mxe={year:Qe,month:qo,day:Qe,weekday:qo},HB={year:Qe,month:ws,day:Qe},zB={year:Qe,month:ws,day:Qe,weekday:ws},QB={hour:Qe,minute:Qe},GB={hour:Qe,minute:Qe,second:Qe},WB={hour:Qe,minute:Qe,second:Qe,timeZoneName:qo},VB={hour:Qe,minute:Qe,second:Qe,timeZoneName:ws},YB={hour:Qe,minute:Qe,hourCycle:"h23"},KB={hour:Qe,minute:Qe,second:Qe,hourCycle:"h23"},JB={hour:Qe,minute:Qe,second:Qe,hourCycle:"h23",timeZoneName:qo},XB={hour:Qe,minute:Qe,second:Qe,hourCycle:"h23",timeZoneName:ws},ZB={year:Qe,month:Qe,day:Qe,hour:Qe,minute:Qe},tq={year:Qe,month:Qe,day:Qe,hour:Qe,minute:Qe,second:Qe},rq={year:Qe,month:qo,day:Qe,hour:Qe,minute:Qe},nq={year:Qe,month:qo,day:Qe,hour:Qe,minute:Qe,second:Qe},Pxe={year:Qe,month:qo,day:Qe,weekday:qo,hour:Qe,minute:Qe},iq={year:Qe,month:ws,day:Qe,hour:Qe,minute:Qe,timeZoneName:qo},sq={year:Qe,month:ws,day:Qe,hour:Qe,minute:Qe,second:Qe,timeZoneName:qo},oq={year:Qe,month:ws,day:Qe,weekday:ws,hour:Qe,minute:Qe,timeZoneName:ws},aq={year:Qe,month:ws,day:Qe,weekday:ws,hour:Qe,minute:Qe,second:Qe,timeZoneName:ws};function Nt(t){return typeof t>"u"}function Nf(t){return typeof t=="number"}function dS(t){return typeof t=="number"&&t%1===0}function Fxe(t){return typeof t=="string"}function $xe(t){return Object.prototype.toString.call(t)==="[object Date]"}function lq(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function jxe(t){return Array.isArray(t)?t:[t]}function uq(t,e,r){if(t.length!==0)return t.reduce((i,s)=>{const o=[e(s),s];return i&&r(i[0],o[0])===i[0]?i:o},null)[1]}function Uxe(t,e){return e.reduce((r,i)=>(r[i]=t[i],r),{})}function cm(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function hu(t,e,r){return dS(t)&&t>=e&&t<=r}function Bxe(t,e){return t-e*Math.floor(t/e)}function Jr(t,e=2){const r=t<0;let i;return r?i="-"+(""+-t).padStart(e,"0"):i=(""+t).padStart(e,"0"),i}function Ic(t){if(!(Nt(t)||t===null||t===""))return parseInt(t,10)}function Df(t){if(!(Nt(t)||t===null||t===""))return parseFloat(t)}function U4(t){if(!(Nt(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function B4(t,e,r=!1){const i=10**e;return(r?Math.trunc:Math.round)(t*i)/i}function U0(t){return t%4===0&&(t%100!==0||t%400===0)}function B0(t){return U0(t)?366:365}function fS(t,e){const r=Bxe(e-1,12)+1,i=t+(e-r)/12;return r===2?U0(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function q4(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function hS(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,r=t-1,i=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return e===4||i===3?53:52}function H4(t){return t>99?t:t>60?1900+t:2e3+t}function cq(t,e,r,i=null){const s=new Date(t),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(o.timeZone=i);const a={timeZoneName:e,...o},l=new Intl.DateTimeFormat(r,a).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return l?l.value:null}function pS(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const i=parseInt(e,10)||0,s=r<0||Object.is(r,-0)?-i:i;return r*60+s}function dq(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new to(`Invalid unit value ${t}`);return e}function mS(t,e){const r={};for(const i in t)if(cm(t,i)){const s=t[i];if(s==null)continue;r[e(i)]=dq(s)}return r}function q0(t,e){const r=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${Jr(r,2)}:${Jr(i,2)}`;case"narrow":return`${s}${r}${i>0?`:${i}`:""}`;case"techie":return`${s}${Jr(r,2)}${Jr(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function gS(t){return Uxe(t,["hour","minute","second","millisecond"])}const fq=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,qxe=["January","February","March","April","May","June","July","August","September","October","November","December"],hq=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Hxe=["J","F","M","A","M","J","J","A","S","O","N","D"];function pq(t){switch(t){case"narrow":return[...Hxe];case"short":return[...hq];case"long":return[...qxe];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const mq=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],gq=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],zxe=["M","T","W","T","F","S","S"];function yq(t){switch(t){case"narrow":return[...zxe];case"short":return[...gq];case"long":return[...mq];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const xq=["AM","PM"],Qxe=["Before Christ","Anno Domini"],Gxe=["BC","AD"],Wxe=["B","A"];function vq(t){switch(t){case"narrow":return[...Wxe];case"short":return[...Gxe];case"long":return[...Qxe];default:return null}}function Vxe(t){return xq[t.hour<12?0:1]}function Yxe(t,e){return yq(e)[t.weekday-1]}function Kxe(t,e){return pq(e)[t.month-1]}function Jxe(t,e){return vq(e)[t.year<0?0:1]}function Xxe(t,e,r="always",i=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&o){const f=t==="days";switch(e){case 1:return f?"tomorrow":`next ${s[t][0]}`;case-1:return f?"yesterday":`last ${s[t][0]}`;case 0:return f?"today":`this ${s[t][0]}`}}const a=Object.is(e,-0)||e<0,l=Math.abs(e),u=l===1,c=s[t],d=i?u?c[1]:c[2]||c[1]:u?s[t][0]:t;return a?`${l} ${d} ago`:`in ${l} ${d}`}function Eq(t,e){let r="";for(const i of t)i.literal?r+=i.val:r+=e(i.val);return r}const Zxe={D:j4,DD:qB,DDD:HB,DDDD:zB,t:QB,tt:GB,ttt:WB,tttt:VB,T:YB,TT:KB,TTT:JB,TTTT:XB,f:ZB,ff:rq,fff:iq,ffff:oq,F:tq,FF:nq,FFF:sq,FFFF:aq};class rs{static create(e,r={}){return new rs(e,r)}static parseFormat(e){let r=null,i="",s=!1;const o=[];for(let a=0;a<e.length;a++){const l=e.charAt(a);l==="'"?(i.length>0&&o.push({literal:s,val:i}),r=null,i="",s=!s):s||l===r?i+=l:(i.length>0&&o.push({literal:!1,val:i}),i=l,r=l)}return i.length>0&&o.push({literal:s,val:i}),o}static macroTokenToFormatOpts(e){return Zxe[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}formatDateTime(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r}).format()}formatDateTimeParts(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r}).formatToParts()}resolvedOptions(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r}).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return Jr(e,r);const i={...this.opts};return r>0&&(i.padTo=r),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,r){const i=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(m,g)=>this.loc.extract(e,m,g),a=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",l=()=>i?Vxe(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(m,g)=>i?Kxe(e,m):o(g?{month:m}:{month:m,day:"numeric"},"month"),c=(m,g)=>i?Yxe(e,m):o(g?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),d=m=>{const g=rs.macroTokenToFormatOpts(m);return g?this.formatWithSystemDefault(e,g):m},f=m=>i?Jxe(e,m):o({era:m},"era"),h=m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return l();case"d":return s?o({day:"numeric"},"day"):this.num(e.day);case"dd":return s?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return s?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?o({month:"numeric"},"month"):this.num(e.month);case"MM":return s?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?o({year:"numeric"},"year"):this.num(e.year);case"yy":return s?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(m)}};return Eq(rs.parseFormat(r),h)}formatDurationFromString(e,r){const i=u=>{switch(u[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=u=>c=>{const d=i(c);return d?this.num(u.get(d),c.length):c},o=rs.parseFormat(r),a=o.reduce((u,{literal:c,val:d})=>c?u:u.concat(d),[]),l=e.shiftTo(...a.map(i).filter(u=>u));return Eq(o,s(l))}}class Ho{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}let dm=class{get type(){throw new Lc}get name(){throw new Lc}get ianaName(){return this.name}get isUniversal(){throw new Lc}offsetName(t,e){throw new Lc}formatOffset(t,e){throw new Lc}offset(t){throw new Lc}equals(t){throw new Lc}get isValid(){throw new Lc}},z4=null;class yS extends dm{static get instance(){return z4===null&&(z4=new yS),z4}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:i}){return cq(e,r,i)}formatOffset(e,r){return q0(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let xS={};function eve(t){return xS[t]||(xS[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),xS[t]}const tve={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function rve(t,e){const r=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,a,l,u,c,d]=i;return[a,s,o,l,u,c,d]}function nve(t,e){const r=t.formatToParts(e),i=[];for(let s=0;s<r.length;s++){const{type:o,value:a}=r[s],l=tve[o];o==="era"?i[l]=a:Nt(l)||(i[l]=parseInt(a,10))}return i}let vS={};class Qa extends dm{static create(e){return vS[e]||(vS[e]=new Qa(e)),vS[e]}static resetCache(){vS={},xS={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Qa.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:i}){return cq(e,r,i,this.name)}formatOffset(e,r){return q0(this.offset(e),r)}offset(e){const r=new Date(e);if(isNaN(r))return NaN;const i=eve(this.name);let[s,o,a,l,u,c,d]=i.formatToParts?nve(i,r):rve(i,r);l==="BC"&&(s=-Math.abs(s)+1);const f=q4({year:s,month:o,day:a,hour:u===24?0:u,minute:c,second:d,millisecond:0});let h=+r;const m=h%1e3;return h-=m>=0?m:1e3+m,(f-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Q4=null;class Kn extends dm{static get utcInstance(){return Q4===null&&(Q4=new Kn(0)),Q4}static instance(e){return e===0?Kn.utcInstance:new Kn(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new Kn(pS(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${q0(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${q0(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return q0(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class bq extends dm{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function kc(t,e){if(Nt(t)||t===null)return e;if(t instanceof dm)return t;if(Fxe(t)){const r=t.toLowerCase();return r==="local"||r==="system"?e:r==="utc"||r==="gmt"?Kn.utcInstance:Kn.parseSpecifier(r)||Qa.create(t)}else return Nf(t)?Kn.instance(t):typeof t=="object"&&t.offset&&typeof t.offset=="number"?t:new bq(t)}let Sq=()=>Date.now(),_q="system",Tq=null,Aq=null,Rq=null,Oq;class Xr{static get now(){return Sq}static set now(e){Sq=e}static set defaultZone(e){_q=e}static get defaultZone(){return kc(_q,yS.instance)}static get defaultLocale(){return Tq}static set defaultLocale(e){Tq=e}static get defaultNumberingSystem(){return Aq}static set defaultNumberingSystem(e){Aq=e}static get defaultOutputCalendar(){return Rq}static set defaultOutputCalendar(e){Rq=e}static get throwOnInvalid(){return Oq}static set throwOnInvalid(e){Oq=e}static resetCaches(){Cr.resetCache(),Qa.resetCache()}}let wq={};function ive(t,e={}){const r=JSON.stringify([t,e]);let i=wq[r];return i||(i=new Intl.ListFormat(t,e),wq[r]=i),i}let G4={};function W4(t,e={}){const r=JSON.stringify([t,e]);let i=G4[r];return i||(i=new Intl.DateTimeFormat(t,e),G4[r]=i),i}let V4={};function sve(t,e={}){const r=JSON.stringify([t,e]);let i=V4[r];return i||(i=new Intl.NumberFormat(t,e),V4[r]=i),i}let Y4={};function ove(t,e={}){const{base:r,...i}=e,s=JSON.stringify([t,i]);let o=Y4[s];return o||(o=new Intl.RelativeTimeFormat(t,e),Y4[s]=o),o}let ES=null;function ave(){return ES||(ES=new Intl.DateTimeFormat().resolvedOptions().locale,ES)}function lve(t){const e=t.indexOf("-u-");if(e===-1)return[t];{let r;const i=t.substring(0,e);try{r=W4(t).resolvedOptions()}catch{r=W4(i).resolvedOptions()}const{numberingSystem:s,calendar:o}=r;return[i,s,o]}}function uve(t,e,r){return(r||e)&&(t+="-u",r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function cve(t){const e=[];for(let r=1;r<=12;r++){const i=gt.utc(2016,r,1);e.push(t(i))}return e}function dve(t){const e=[];for(let r=1;r<=7;r++){const i=gt.utc(2016,11,13+r);e.push(t(i))}return e}function bS(t,e,r,i,s){const o=t.listingMode(r);return o==="error"?null:o==="en"?i(e):s(e)}function fve(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class hve{constructor(e,r,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:s,floor:o,...a}=i;if(!r||Object.keys(a).length>0){const l={useGrouping:!1,...i};i.padTo>0&&(l.minimumIntegerDigits=i.padTo),this.inf=sve(e,l)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):B4(e,3);return Jr(r,this.padTo)}}}class pve{constructor(e,r,i){this.opts=i;let s;if(e.zone.isUniversal){const a=-1*(e.offset/60),l=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&Qa.create(l).valid?(s=l,this.dt=e):(s="UTC",i.timeZoneName?this.dt=e:this.dt=e.offset===0?e:gt.fromMillis(e.ts+e.offset*60*1e3))}else e.zone.type==="system"?this.dt=e:(this.dt=e,s=e.zone.name);const o={...this.opts};s&&(o.timeZone=s),this.dtf=W4(r,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class mve{constructor(e,r,i){this.opts={style:"long",...i},!r&&lq()&&(this.rtf=ove(e,i))}format(e,r){return this.rtf?this.rtf.format(e,r):Xxe(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}class Cr{static fromOpts(e){return Cr.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,r,i,s=!1){const o=e||Xr.defaultLocale,a=o||(s?"en-US":ave()),l=r||Xr.defaultNumberingSystem,u=i||Xr.defaultOutputCalendar;return new Cr(a,l,u,o)}static resetCache(){ES=null,G4={},V4={},Y4={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:i}={}){return Cr.create(e,r,i)}constructor(e,r,i,s){const[o,a,l]=lve(e);this.locale=o,this.numberingSystem=r||a||null,this.outputCalendar=i||l||null,this.intl=uve(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=fve(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Cr.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1,i=!0){return bS(this,e,i,pq,()=>{const s=r?{month:e,day:"numeric"}:{month:e},o=r?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=cve(a=>this.extract(a,s,"month"))),this.monthsCache[o][e]})}weekdays(e,r=!1,i=!0){return bS(this,e,i,yq,()=>{const s=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=r?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=dve(a=>this.extract(a,s,"weekday"))),this.weekdaysCache[o][e]})}meridiems(e=!0){return bS(this,void 0,e,()=>xq,()=>{if(!this.meridiemCache){const r={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[gt.utc(2016,11,13,9),gt.utc(2016,11,13,19)].map(i=>this.extract(i,r,"dayperiod"))}return this.meridiemCache})}eras(e,r=!0){return bS(this,e,r,vq,()=>{const i={era:e};return this.eraCache[e]||(this.eraCache[e]=[gt.utc(-40,1,1),gt.utc(2017,1,1)].map(s=>this.extract(s,i,"era"))),this.eraCache[e]})}extract(e,r,i){const s=this.dtFormatter(e,r),o=s.formatToParts(),a=o.find(l=>l.type.toLowerCase()===i);return a?a.value:null}numberFormatter(e={}){return new hve(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new pve(e,this.intl,r)}relFormatter(e={}){return new mve(this.intl,this.isEnglish(),e)}listFormatter(e={}){return ive(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function fm(...t){const e=t.reduce((r,i)=>r+i.source,"");return RegExp(`^${e}$`)}function hm(...t){return e=>t.reduce(([r,i,s],o)=>{const[a,l,u]=o(e,s);return[{...r,...a},l||i,u]},[{},null,1]).slice(0,2)}function pm(t,...e){if(t==null)return[null,null];for(const[r,i]of e){const s=r.exec(t);if(s)return i(s)}return[null,null]}function Cq(...t){return(e,r)=>{const i={};let s;for(s=0;s<t.length;s++)i[t[s]]=Ic(e[r+s]);return[i,null,r+s]}}const Nq=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,gve=`(?:${Nq.source}?(?:\\[(${fq.source})\\])?)?`,K4=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Dq=RegExp(`${K4.source}${gve}`),J4=RegExp(`(?:T${Dq.source})?`),yve=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,xve=/(\d{4})-?W(\d\d)(?:-?(\d))?/,vve=/(\d{4})-?(\d{3})/,Eve=Cq("weekYear","weekNumber","weekDay"),bve=Cq("year","ordinal"),Sve=/(\d{4})-(\d\d)-(\d\d)/,Lq=RegExp(`${K4.source} ?(?:${Nq.source}|(${fq.source}))?`),_ve=RegExp(`(?: ${Lq.source})?`);function mm(t,e,r){const i=t[e];return Nt(i)?r:Ic(i)}function Tve(t,e){return[{year:mm(t,e),month:mm(t,e+1,1),day:mm(t,e+2,1)},null,e+3]}function gm(t,e){return[{hours:mm(t,e,0),minutes:mm(t,e+1,0),seconds:mm(t,e+2,0),milliseconds:U4(t[e+3])},null,e+4]}function H0(t,e){const r=!t[e]&&!t[e+1],i=pS(t[e+1],t[e+2]),s=r?null:Kn.instance(i);return[{},s,e+3]}function z0(t,e){const r=t[e]?Qa.create(t[e]):null;return[{},r,e+1]}const Ave=RegExp(`^T?${K4.source}$`),Rve=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Ove(t){const[e,r,i,s,o,a,l,u,c]=t,d=e[0]==="-",f=u&&u[0]==="-",h=(m,g=!1)=>m!==void 0&&(g||m&&d)?-m:m;return[{years:h(Df(r)),months:h(Df(i)),weeks:h(Df(s)),days:h(Df(o)),hours:h(Df(a)),minutes:h(Df(l)),seconds:h(Df(u),u==="-0"),milliseconds:h(U4(c),f)}]}const wve={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function X4(t,e,r,i,s,o,a){const l={year:e.length===2?H4(Ic(e)):Ic(e),month:hq.indexOf(r)+1,day:Ic(i),hour:Ic(s),minute:Ic(o)};return a&&(l.second=Ic(a)),t&&(l.weekday=t.length>3?mq.indexOf(t)+1:gq.indexOf(t)+1),l}const Cve=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Nve(t){const[,e,r,i,s,o,a,l,u,c,d,f]=t,h=X4(e,s,i,r,o,a,l);let m;return u?m=wve[u]:c?m=0:m=pS(d,f),[h,new Kn(m)]}function Dve(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Lve=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ive=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,kve=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Iq(t){const[,e,r,i,s,o,a,l]=t;return[X4(e,s,i,r,o,a,l),Kn.utcInstance]}function Mve(t){const[,e,r,i,s,o,a,l]=t;return[X4(e,l,r,i,s,o,a),Kn.utcInstance]}const Pve=fm(yve,J4),Fve=fm(xve,J4),$ve=fm(vve,J4),jve=fm(Dq),kq=hm(Tve,gm,H0,z0),Uve=hm(Eve,gm,H0,z0),Bve=hm(bve,gm,H0,z0),qve=hm(gm,H0,z0);function Hve(t){return pm(t,[Pve,kq],[Fve,Uve],[$ve,Bve],[jve,qve])}function zve(t){return pm(Dve(t),[Cve,Nve])}function Qve(t){return pm(t,[Lve,Iq],[Ive,Iq],[kve,Mve])}function Gve(t){return pm(t,[Rve,Ove])}const Wve=hm(gm);function Vve(t){return pm(t,[Ave,Wve])}const Yve=fm(Sve,_ve),Kve=fm(Lq),Jve=hm(gm,H0,z0);function Xve(t){return pm(t,[Yve,kq],[Kve,Jve])}const Zve="Invalid Duration",Mq={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},eEe={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...Mq},ro=146097/400,ym=146097/4800,tEe={years:{quarters:4,months:12,weeks:ro/7,days:ro,hours:ro*24,minutes:ro*24*60,seconds:ro*24*60*60,milliseconds:ro*24*60*60*1e3},quarters:{months:3,weeks:ro/28,days:ro/4,hours:ro*24/4,minutes:ro*24*60/4,seconds:ro*24*60*60/4,milliseconds:ro*24*60*60*1e3/4},months:{weeks:ym/7,days:ym,hours:ym*24,minutes:ym*24*60,seconds:ym*24*60*60,milliseconds:ym*24*60*60*1e3},...Mq},Lf=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],rEe=Lf.slice(0).reverse();function If(t,e,r=!1){const i={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new Dt(i)}function nEe(t){return t<0?Math.floor(t):Math.ceil(t)}function Pq(t,e,r,i,s){const o=t[s][r],a=e[r]/o,l=Math.sign(a)===Math.sign(i[s]),u=!l&&i[s]!==0&&Math.abs(a)<=1?nEe(a):Math.trunc(a);i[s]+=u,e[r]-=u*o}function iEe(t,e){rEe.reduce((r,i)=>Nt(e[i])?r:(r&&Pq(t,e,r,e,i),i),null)}class Dt{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;this.values=e.values,this.loc=e.loc||Cr.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r?tEe:eEe,this.isLuxonDuration=!0}static fromMillis(e,r){return Dt.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new to(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Dt({values:mS(e,Dt.normalizeUnit),loc:Cr.fromObject(r),conversionAccuracy:r.conversionAccuracy})}static fromDurationLike(e){if(Nf(e))return Dt.fromMillis(e);if(Dt.isDuration(e))return e;if(typeof e=="object")return Dt.fromObject(e);throw new to(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[i]=Gve(e);return i?Dt.fromObject(i,r):Dt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[i]=Vve(e);return i?Dt.fromObject(i,r):Dt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new to("need to specify a reason the Duration is invalid");const i=e instanceof Ho?e:new Ho(e,r);if(Xr.throwOnInvalid)throw new kxe(i);return new Dt({invalid:i})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new BB(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const i={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?rs.create(this.loc,i).formatDurationFromString(this,e):Zve}toHuman(e={}){const r=Lf.map(i=>{const s=this.values[i];return Nt(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(s)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=B4(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();if(r<0||r>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const i=this.shiftTo("hours","minutes","seconds","milliseconds");let s=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||i.seconds!==0||i.milliseconds!==0)&&(s+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||i.milliseconds!==0)&&(s+=".SSS"));let o=i.toFormat(s);return e.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=Dt.fromDurationLike(e),i={};for(const s of Lf)(cm(r.values,s)||cm(this.values,s))&&(i[s]=r.get(s)+this.get(s));return If(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const r=Dt.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const i of Object.keys(this.values))r[i]=dq(e(this.values[i],i));return If(this,{values:r},!0)}get(e){return this[Dt.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...mS(e,Dt.normalizeUnit)};return If(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:i}={}){const s=this.loc.clone({locale:e,numberingSystem:r}),o={loc:s};return i&&(o.conversionAccuracy=i),If(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return iEe(this.matrix,e),If(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>Dt.normalizeUnit(a));const r={},i={},s=this.toObject();let o;for(const a of Lf)if(e.indexOf(a)>=0){o=a;let l=0;for(const c in i)l+=this.matrix[c][a]*i[c],i[c]=0;Nf(s[a])&&(l+=s[a]);const u=Math.trunc(l);r[a]=u,i[a]=(l*1e3-u*1e3)/1e3;for(const c in s)Lf.indexOf(c)>Lf.indexOf(a)&&Pq(this.matrix,s,c,r,a)}else Nf(s[a])&&(i[a]=s[a]);for(const a in i)i[a]!==0&&(r[o]+=a===o?i[a]:i[a]/this.matrix[o][a]);return If(this,{values:r},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return If(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(i,s){return i===void 0||i===0?s===void 0||s===0:i===s}for(const i of Lf)if(!r(this.values[i],e.values[i]))return!1;return!0}}const Q0="Invalid Interval";function sEe(t,e){return!t||!t.isValid?G0.invalid("missing or invalid start"):!e||!e.isValid?G0.invalid("missing or invalid end"):e<t?G0.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}let G0=class Mn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new to("need to specify a reason the Interval is invalid");const i=e instanceof Ho?e:new Ho(e,r);if(Xr.throwOnInvalid)throw new Ixe(i);return new Mn({invalid:i})}static fromDateTimes(e,r){const i=K0(e),s=K0(r);return sEe(i,s)??new Mn({start:i,end:s})}static after(e,r){const i=Dt.fromDurationLike(r),s=K0(e);return Mn.fromDateTimes(s,s.plus(i))}static before(e,r){const i=Dt.fromDurationLike(r),s=K0(e);return Mn.fromDateTimes(s.minus(i),s)}static fromISO(e,r){const[i,s]=(e||"").split("/",2);if(i&&s){let o,a;try{o=gt.fromISO(i,r),a=o.isValid}catch{a=!1}let l,u;try{l=gt.fromISO(s,r),u=l.isValid}catch{u=!1}if(a&&u)return Mn.fromDateTimes(o,l);if(a){const c=Dt.fromISO(s,r);if(c.isValid)return Mn.after(o,c)}else if(u){const c=Dt.fromISO(i,r);if(c.isValid)return Mn.before(l,c)}}return Mn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const r=this.start.startOf(e),i=this.end.startOf(e);return Math.floor(i.diff(r,e).get(e))+1}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?Mn.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(K0).filter(a=>this.contains(a)).sort(),i=[];let{s}=this,o=0;for(;s<this.e;){const a=r[o]||this.e,l=+a>+this.e?this.e:a;i.push(Mn.fromDateTimes(s,l)),s=l,o+=1}return i}splitBy(e){const r=Dt.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:i}=this,s=1,o;const a=[];for(;i<this.e;){const l=this.start.plus(r.mapUnits(u=>u*s));o=+l>+this.e?this.e:l,a.push(Mn.fromDateTimes(i,o)),i=o,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,i=this.e<e.e?this.e:e.e;return r>=i?null:Mn.fromDateTimes(r,i)}union(e){if(!this.isValid)return this;const r=this.s<e.s?this.s:e.s,i=this.e>e.e?this.e:e.e;return Mn.fromDateTimes(r,i)}static merge(e){const[r,i]=e.sort((s,o)=>s.s-o.s).reduce(([s,o],a)=>o?o.overlaps(a)||o.abutsStart(a)?[s,o.union(a)]:[s.concat([o]),a]:[s,a],[[],null]);return i&&r.push(i),r}static xor(e){let r=null,i=0;const s=[],o=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),a=Array.prototype.concat(...o),l=a.sort((u,c)=>u.time-c.time);for(const u of l)i+=u.type==="s"?1:-1,i===1?r=u.time:(r&&+r!=+u.time&&s.push(Mn.fromDateTimes(r,u.time)),r=null);return Mn.merge(s)}difference(...e){return Mn.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Q0}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Q0}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Q0}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Q0}toFormat(e,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:Q0}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):Dt.invalid(this.invalidReason)}mapEndpoints(e){return Mn.fromDateTimes(e(this.s),e(this.e))}},W0=class{static hasDST(t=Xr.defaultZone){const e=gt.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return Qa.isValidZone(t)}static normalizeZone(t){return kc(t,Xr.defaultZone)}static months(t="long",{locale:e=null,numberingSystem:r=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||Cr.create(e,r,s)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:r=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||Cr.create(e,r,s)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:r=null,locObj:i=null}={}){return(i||Cr.create(e,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:r=null,locObj:i=null}={}){return(i||Cr.create(e,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Cr.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return Cr.create(e,null,"gregory").eras(t)}static features(){return{relative:lq()}}};function Fq(t,e){const r=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=r(e)-r(t);return Math.floor(Dt.fromMillis(i).as("days"))}function oEe(t,e,r){const i=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{const c=Fq(l,u);return(c-c%7)/7}],["days",Fq]],s={};let o,a;for(const[l,u]of i)if(r.indexOf(l)>=0){o=l;let c=u(t,e);a=t.plus({[l]:c}),a>e?(t=t.plus({[l]:c-1}),c-=1):t=a,s[l]=c}return[t,s,a,o]}function aEe(t,e,r,i){let[s,o,a,l]=oEe(t,e,r);const u=e-s,c=r.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(a<e&&(a=s.plus({[l]:1})),a!==s&&(o[l]=(o[l]||0)+u/(a-s)));const d=Dt.fromObject(o,i);return c.length>0?Dt.fromMillis(u,i).shiftTo(...c).plus(d):d}const Z4={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},$q={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},lEe=Z4.hanidec.replace(/[\[|\]]/g,"").split("");function uEe(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){const i=t.charCodeAt(r);if(t[r].search(Z4.hanidec)!==-1)e+=lEe.indexOf(t[r]);else for(const s in $q){const[o,a]=$q[s];i>=o&&i<=a&&(e+=i-o)}}return parseInt(e,10)}else return e}function zo({numberingSystem:t},e=""){return new RegExp(`${Z4[t||"latn"]}${e}`)}const cEe="missing Intl.DateTimeFormat.formatToParts support";function Vt(t,e=r=>r){return{regex:t,deser:([r])=>e(uEe(r))}}const jq="[ ]",Uq=new RegExp(jq,"g");function dEe(t){return t.replace(/\./g,"\\.?").replace(Uq,jq)}function Bq(t){return t.replace(/\./g,"").replace(Uq," ").toLowerCase()}function Qo(t,e){return t===null?null:{regex:RegExp(t.map(dEe).join("|")),deser:([r])=>t.findIndex(i=>Bq(r)===Bq(i))+e}}function qq(t,e){return{regex:t,deser:([,r,i])=>pS(r,i),groups:e}}function e5(t){return{regex:t,deser:([e])=>e}}function fEe(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function hEe(t,e){const r=zo(e),i=zo(e,"{2}"),s=zo(e,"{3}"),o=zo(e,"{4}"),a=zo(e,"{6}"),l=zo(e,"{1,2}"),u=zo(e,"{1,3}"),c=zo(e,"{1,6}"),d=zo(e,"{1,9}"),f=zo(e,"{2,4}"),h=zo(e,"{4,6}"),m=y=>({regex:RegExp(fEe(y.val)),deser:([x])=>x,literal:!0}),g=(y=>{if(t.literal)return m(y);switch(y.val){case"G":return Qo(e.eras("short",!1),0);case"GG":return Qo(e.eras("long",!1),0);case"y":return Vt(c);case"yy":return Vt(f,H4);case"yyyy":return Vt(o);case"yyyyy":return Vt(h);case"yyyyyy":return Vt(a);case"M":return Vt(l);case"MM":return Vt(i);case"MMM":return Qo(e.months("short",!0,!1),1);case"MMMM":return Qo(e.months("long",!0,!1),1);case"L":return Vt(l);case"LL":return Vt(i);case"LLL":return Qo(e.months("short",!1,!1),1);case"LLLL":return Qo(e.months("long",!1,!1),1);case"d":return Vt(l);case"dd":return Vt(i);case"o":return Vt(u);case"ooo":return Vt(s);case"HH":return Vt(i);case"H":return Vt(l);case"hh":return Vt(i);case"h":return Vt(l);case"mm":return Vt(i);case"m":return Vt(l);case"q":return Vt(l);case"qq":return Vt(i);case"s":return Vt(l);case"ss":return Vt(i);case"S":return Vt(u);case"SSS":return Vt(s);case"u":return e5(d);case"uu":return e5(l);case"uuu":return Vt(r);case"a":return Qo(e.meridiems(),0);case"kkkk":return Vt(o);case"kk":return Vt(f,H4);case"W":return Vt(l);case"WW":return Vt(i);case"E":case"c":return Vt(r);case"EEE":return Qo(e.weekdays("short",!1,!1),1);case"EEEE":return Qo(e.weekdays("long",!1,!1),1);case"ccc":return Qo(e.weekdays("short",!0,!1),1);case"cccc":return Qo(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return qq(new RegExp(`([+-]${l.source})(?::(${i.source}))?`),2);case"ZZZ":return qq(new RegExp(`([+-]${l.source})(${i.source})?`),2);case"z":return e5(/[a-z_+-/]{1,256}?/i);default:return m(y)}})(t)||{invalidReason:cEe};return g.token=t,g}const pEe={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function mEe(t,e,r){const{type:i,value:s}=t;if(i==="literal")return{literal:!0,val:s};const o=r[i];let a=pEe[i];if(typeof a=="object"&&(a=a[o]),a)return{literal:!1,val:a}}function gEe(t){return[`^${t.map(e=>e.regex).reduce((e,r)=>`${e}(${r.source})`,"")}$`,t]}function yEe(t,e,r){const i=t.match(e);if(i){const s={};let o=1;for(const a in r)if(cm(r,a)){const l=r[a],u=l.groups?l.groups+1:1;!l.literal&&l.token&&(s[l.token.val[0]]=l.deser(i.slice(o,o+u))),o+=u}return[i,s]}else return[i,{}]}function xEe(t){const e=s=>{switch(s){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,i;return Nt(t.z)||(r=Qa.create(t.z)),Nt(t.Z)||(r||(r=new Kn(t.Z)),i=t.Z),Nt(t.q)||(t.M=(t.q-1)*3+1),Nt(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Nt(t.u)||(t.S=U4(t.u)),[Object.keys(t).reduce((s,o)=>{const a=e(o);return a&&(s[a]=t[o]),s},{}),r,i]}let t5=null;function vEe(){return t5||(t5=gt.fromMillis(1555555555555)),t5}function EEe(t,e){if(t.literal)return t;const r=rs.macroTokenToFormatOpts(t.val);if(!r)return t;const i=rs.create(e,r).formatDateTimeParts(vEe()).map(s=>mEe(s,e,r));return i.includes(void 0)?t:i}function bEe(t,e){return Array.prototype.concat(...t.map(r=>EEe(r,e)))}function Hq(t,e,r){const i=bEe(rs.parseFormat(r),t),s=i.map(a=>hEe(a,t)),o=s.find(a=>a.invalidReason);if(o)return{input:e,tokens:i,invalidReason:o.invalidReason};{const[a,l]=gEe(s),u=RegExp(a,"i"),[c,d]=yEe(e,u,l),[f,h,m]=d?xEe(d):[null,null,void 0];if(cm(d,"a")&&cm(d,"H"))throw new j0("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:u,rawMatches:c,matches:d,result:f,zone:h,specificOffset:m}}}function SEe(t,e,r){const{result:i,zone:s,specificOffset:o,invalidReason:a}=Hq(t,e,r);return[i,s,o,a]}const zq=[0,31,59,90,120,151,181,212,243,273,304,334],Qq=[0,31,60,91,121,152,182,213,244,274,305,335];function no(t,e){return new Ho("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Gq(t,e,r){const i=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const s=i.getUTCDay();return s===0?7:s}function Wq(t,e,r){return r+(U0(t)?Qq:zq)[e-1]}function Vq(t,e){const r=U0(t)?Qq:zq,i=r.findIndex(o=>o<e),s=e-r[i];return{month:i+1,day:s}}function r5(t){const{year:e,month:r,day:i}=t,s=Wq(e,r,i),o=Gq(e,r,i);let a=Math.floor((s-o+10)/7),l;return a<1?(l=e-1,a=hS(l)):a>hS(e)?(l=e+1,a=1):l=e,{weekYear:l,weekNumber:a,weekday:o,...gS(t)}}function Yq(t){const{weekYear:e,weekNumber:r,weekday:i}=t,s=Gq(e,1,4),o=B0(e);let a=r*7+i-s-3,l;a<1?(l=e-1,a+=B0(l)):a>o?(l=e+1,a-=B0(e)):l=e;const{month:u,day:c}=Vq(l,a);return{year:l,month:u,day:c,...gS(t)}}function n5(t){const{year:e,month:r,day:i}=t,s=Wq(e,r,i);return{year:e,ordinal:s,...gS(t)}}function Kq(t){const{year:e,ordinal:r}=t,{month:i,day:s}=Vq(e,r);return{year:e,month:i,day:s,...gS(t)}}function _Ee(t){const e=dS(t.weekYear),r=hu(t.weekNumber,1,hS(t.weekYear)),i=hu(t.weekday,1,7);return e?r?i?!1:no("weekday",t.weekday):no("week",t.week):no("weekYear",t.weekYear)}function TEe(t){const e=dS(t.year),r=hu(t.ordinal,1,B0(t.year));return e?r?!1:no("ordinal",t.ordinal):no("year",t.year)}function Jq(t){const e=dS(t.year),r=hu(t.month,1,12),i=hu(t.day,1,fS(t.year,t.month));return e?r?i?!1:no("day",t.day):no("month",t.month):no("year",t.year)}function Xq(t){const{hour:e,minute:r,second:i,millisecond:s}=t,o=hu(e,0,23)||e===24&&r===0&&i===0&&s===0,a=hu(r,0,59),l=hu(i,0,59),u=hu(s,0,999);return o?a?l?u?!1:no("millisecond",s):no("second",i):no("minute",r):no("hour",e)}const i5="Invalid DateTime",Zq=864e13;function SS(t){return new Ho("unsupported zone",`the zone "${t.name}" is not supported`)}function s5(t){return t.weekData===null&&(t.weekData=r5(t.c)),t.weekData}function V0(t,e){const r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new gt({...r,...e,old:r})}function eH(t,e,r){let i=t-e*60*1e3;const s=r.offset(i);if(e===s)return[i,e];i-=(s-e)*60*1e3;const o=r.offset(i);return s===o?[i,s]:[t-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tH(t,e){t+=e*60*1e3;const r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function _S(t,e,r){return eH(q4(t),e,r)}function rH(t,e){const r=t.o,i=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...t.c,year:i,month:s,day:Math.min(t.c.day,fS(i,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=Dt.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),l=q4(o);let[u,c]=eH(l,r,t.zone);return a!==0&&(u+=a,c=t.zone.offset(u)),{ts:u,o:c}}function Y0(t,e,r,i,s,o){const{setZone:a,zone:l}=r;if(t&&Object.keys(t).length!==0){const u=e||l,c=gt.fromObject(t,{...r,zone:u,specificOffset:o});return a?c:c.setZone(l)}else return gt.invalid(new Ho("unparsable",`the input "${s}" can't be parsed as ${i}`))}function TS(t,e,r=!0){return t.isValid?rs.create(Cr.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function o5(t,e){const r=t.c.year>9999||t.c.year<0;let i="";return r&&t.c.year>=0&&(i+="+"),i+=Jr(t.c.year,r?6:4),e?(i+="-",i+=Jr(t.c.month),i+="-",i+=Jr(t.c.day)):(i+=Jr(t.c.month),i+=Jr(t.c.day)),i}function nH(t,e,r,i,s,o){let a=Jr(t.c.hour);return e?(a+=":",a+=Jr(t.c.minute),(t.c.second!==0||!r)&&(a+=":")):a+=Jr(t.c.minute),(t.c.second!==0||!r)&&(a+=Jr(t.c.second),(t.c.millisecond!==0||!i)&&(a+=".",a+=Jr(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!o?a+="Z":t.o<0?(a+="-",a+=Jr(Math.trunc(-t.o/60)),a+=":",a+=Jr(Math.trunc(-t.o%60))):(a+="+",a+=Jr(Math.trunc(t.o/60)),a+=":",a+=Jr(Math.trunc(t.o%60)))),o&&(a+="["+t.zone.ianaName+"]"),a}const iH={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},AEe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},REe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},sH=["year","month","day","hour","minute","second","millisecond"],OEe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],wEe=["year","ordinal","hour","minute","second","millisecond"];function oH(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new BB(t);return e}function aH(t,e){const r=kc(e.zone,Xr.defaultZone),i=Cr.fromObject(e),s=Xr.now();let o,a;if(Nt(t.year))o=s;else{for(const c of sH)Nt(t[c])&&(t[c]=iH[c]);const l=Jq(t)||Xq(t);if(l)return gt.invalid(l);const u=r.offset(s);[o,a]=_S(t,u,r)}return new gt({ts:o,zone:r,loc:i,o:a})}function lH(t,e,r){const i=Nt(r.round)?!0:r.round,s=(a,l)=>(a=B4(a,i||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(a,l)),o=a=>r.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(r.unit)return s(o(r.unit),r.unit);for(const a of r.units){const l=o(a);if(Math.abs(l)>=1)return s(l,a)}return s(t>e?-0:0,r.units[r.units.length-1])}function uH(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}class gt{constructor(e){const r=e.zone||Xr.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new Ho("invalid input"):null)||(r.isValid?null:SS(r));this.ts=Nt(e.ts)?Xr.now():e.ts;let s=null,o=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[s,o]=[e.old.c,e.old.o];else{const a=r.offset(this.ts);s=tH(this.ts,a),i=Number.isNaN(s.year)?new Ho("invalid input"):null,s=i?null:s,o=i?null:a}this._zone=r,this.loc=e.loc||Cr.create(),this.invalid=i,this.weekData=null,this.c=s,this.o=o,this.isLuxonDateTime=!0}static now(){return new gt({})}static local(){const[e,r]=uH(arguments),[i,s,o,a,l,u,c]=r;return aH({year:i,month:s,day:o,hour:a,minute:l,second:u,millisecond:c},e)}static utc(){const[e,r]=uH(arguments),[i,s,o,a,l,u,c]=r;return e.zone=Kn.utcInstance,aH({year:i,month:s,day:o,hour:a,minute:l,second:u,millisecond:c},e)}static fromJSDate(e,r={}){const i=$xe(e)?e.valueOf():NaN;if(Number.isNaN(i))return gt.invalid("invalid input");const s=kc(r.zone,Xr.defaultZone);return s.isValid?new gt({ts:i,zone:s,loc:Cr.fromObject(r)}):gt.invalid(SS(s))}static fromMillis(e,r={}){if(Nf(e))return e<-Zq||e>Zq?gt.invalid("Timestamp out of range"):new gt({ts:e,zone:kc(r.zone,Xr.defaultZone),loc:Cr.fromObject(r)});throw new to(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(Nf(e))return new gt({ts:e*1e3,zone:kc(r.zone,Xr.defaultZone),loc:Cr.fromObject(r)});throw new to("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const i=kc(r.zone,Xr.defaultZone);if(!i.isValid)return gt.invalid(SS(i));const s=Xr.now(),o=Nt(r.specificOffset)?i.offset(s):r.specificOffset,a=mS(e,oH),l=!Nt(a.ordinal),u=!Nt(a.year),c=!Nt(a.month)||!Nt(a.day),d=u||c,f=a.weekYear||a.weekNumber,h=Cr.fromObject(r);if((d||l)&&f)throw new j0("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&l)throw new j0("Can't mix ordinal dates with month/day");const m=f||a.weekday&&!d;let g,y,x=tH(s,o);m?(g=OEe,y=AEe,x=r5(x)):l?(g=wEe,y=REe,x=n5(x)):(g=sH,y=iH);let E=!1;for(const O of g){const w=a[O];Nt(w)?E?a[O]=y[O]:a[O]=x[O]:E=!0}const v=m?_Ee(a):l?TEe(a):Jq(a),b=v||Xq(a);if(b)return gt.invalid(b);const S=m?Yq(a):l?Kq(a):a,[_,A]=_S(S,o,i),T=new gt({ts:_,zone:i,o:A,loc:h});return a.weekday&&d&&e.weekday!==T.weekday?gt.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${T.toISO()}`):T}static fromISO(e,r={}){const[i,s]=Hve(e);return Y0(i,s,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[i,s]=zve(e);return Y0(i,s,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[i,s]=Qve(e);return Y0(i,s,r,"HTTP",r)}static fromFormat(e,r,i={}){if(Nt(e)||Nt(r))throw new to("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:o=null}=i,a=Cr.fromOpts({locale:s,numberingSystem:o,defaultToEN:!0}),[l,u,c,d]=SEe(a,e,r);return d?gt.invalid(d):Y0(l,u,i,`format ${r}`,e,c)}static fromString(e,r,i={}){return gt.fromFormat(e,r,i)}static fromSQL(e,r={}){const[i,s]=Xve(e);return Y0(i,s,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new to("need to specify a reason the DateTime is invalid");const i=e instanceof Ho?e:new Ho(e,r);if(Xr.throwOnInvalid)throw new Lxe(i);return new gt({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?s5(this).weekYear:NaN}get weekNumber(){return this.isValid?s5(this).weekNumber:NaN}get weekday(){return this.isValid?s5(this).weekday:NaN}get ordinal(){return this.isValid?n5(this.c).ordinal:NaN}get monthShort(){return this.isValid?W0.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?W0.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?W0.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?W0.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return U0(this.year)}get daysInMonth(){return fS(this.year,this.month)}get daysInYear(){return this.isValid?B0(this.year):NaN}get weeksInWeekYear(){return this.isValid?hS(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:i,calendar:s}=rs.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:i,outputCalendar:s}}toUTC(e=0,r={}){return this.setZone(Kn.instance(e),r)}toLocal(){return this.setZone(Xr.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:i=!1}={}){if(e=kc(e,Xr.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(r||i){const o=e.offset(this.ts),a=this.toObject();[s]=_S(a,o,e)}return V0(this,{ts:s,zone:e})}else return gt.invalid(SS(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:i}={}){const s=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:i});return V0(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=mS(e,oH),i=!Nt(r.weekYear)||!Nt(r.weekNumber)||!Nt(r.weekday),s=!Nt(r.ordinal),o=!Nt(r.year),a=!Nt(r.month)||!Nt(r.day),l=o||a,u=r.weekYear||r.weekNumber;if((l||s)&&u)throw new j0("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new j0("Can't mix ordinal dates with month/day");let c;i?c=Yq({...r5(this.c),...r}):Nt(r.ordinal)?(c={...this.toObject(),...r},Nt(r.day)&&(c.day=Math.min(fS(c.year,c.month),c.day))):c=Kq({...n5(this.c),...r});const[d,f]=_S(c,this.o,this.zone);return V0(this,{ts:d,o:f})}plus(e){if(!this.isValid)return this;const r=Dt.fromDurationLike(e);return V0(this,rH(this,r))}minus(e){if(!this.isValid)return this;const r=Dt.fromDurationLike(e).negate();return V0(this,rH(this,r))}startOf(e){if(!this.isValid)return this;const r={},i=Dt.normalizeUnit(e);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(i==="weeks"&&(r.weekday=1),i==="quarters"){const s=Math.ceil(this.month/3);r.month=(s-1)*3+1}return this.set(r)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,r={}){return this.isValid?rs.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):i5}toLocaleString(e=j4,r={}){return this.isValid?rs.create(this.loc.clone(r),e).formatDateTime(this):i5}toLocaleParts(e={}){return this.isValid?rs.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:i=!1,includeOffset:s=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const a=e==="extended";let l=o5(this,a);return l+="T",l+=nH(this,a,r,i,s,o),l}toISODate({format:e="extended"}={}){return this.isValid?o5(this,e==="extended"):null}toISOWeekDate(){return TS(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:i=!0,includePrefix:s=!1,extendedZone:o=!1,format:a="extended"}={}){return this.isValid?(s?"T":"")+nH(this,a==="extended",r,e,i,o):null}toRFC2822(){return TS(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return TS(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?o5(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:i=!0}={}){let s="HH:mm:ss.SSS";return(r||e)&&(i&&(s+=" "),r?s+="z":e&&(s+="ZZ")),TS(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():i5}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",i={}){if(!this.isValid||!e.isValid)return Dt.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...i},o=jxe(r).map(Dt.normalizeUnit),a=e.valueOf()>this.valueOf(),l=a?this:e,u=a?e:this,c=aEe(l,u,o,s);return a?c.negate():c}diffNow(e="milliseconds",r={}){return this.diff(gt.now(),e,r)}until(e){return this.isValid?G0.fromDateTimes(this,e):this}hasSame(e,r){if(!this.isValid)return!1;const i=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(r)<=i&&i<=s.endOf(r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||gt.fromObject({},{zone:this.zone}),i=e.padding?this<r?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(s=e.unit,o=void 0),lH(r,this.plus(i),{...e,numeric:"always",units:s,unit:o})}toRelativeCalendar(e={}){return this.isValid?lH(e.base||gt.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(gt.isDateTime))throw new to("min requires all arguments be DateTimes");return uq(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(gt.isDateTime))throw new to("max requires all arguments be DateTimes");return uq(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,i={}){const{locale:s=null,numberingSystem:o=null}=i,a=Cr.fromOpts({locale:s,numberingSystem:o,defaultToEN:!0});return Hq(a,e,r)}static fromStringExplain(e,r,i={}){return gt.fromFormatExplain(e,r,i)}static get DATE_SHORT(){return j4}static get DATE_MED(){return qB}static get DATE_MED_WITH_WEEKDAY(){return Mxe}static get DATE_FULL(){return HB}static get DATE_HUGE(){return zB}static get TIME_SIMPLE(){return QB}static get TIME_WITH_SECONDS(){return GB}static get TIME_WITH_SHORT_OFFSET(){return WB}static get TIME_WITH_LONG_OFFSET(){return VB}static get TIME_24_SIMPLE(){return YB}static get TIME_24_WITH_SECONDS(){return KB}static get TIME_24_WITH_SHORT_OFFSET(){return JB}static get TIME_24_WITH_LONG_OFFSET(){return XB}static get DATETIME_SHORT(){return ZB}static get DATETIME_SHORT_WITH_SECONDS(){return tq}static get DATETIME_MED(){return rq}static get DATETIME_MED_WITH_SECONDS(){return nq}static get DATETIME_MED_WITH_WEEKDAY(){return Pxe}static get DATETIME_FULL(){return iq}static get DATETIME_FULL_WITH_SECONDS(){return sq}static get DATETIME_HUGE(){return oq}static get DATETIME_HUGE_WITH_SECONDS(){return aq}}function K0(t){if(gt.isDateTime(t))return t;if(t&&t.valueOf&&Nf(t.valueOf()))return gt.fromJSDate(t);if(t&&typeof t=="object")return gt.fromObject(t);throw new to(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const CEe=Object.freeze(Object.defineProperty({__proto__:null,DateTime:gt,Duration:Dt,FixedOffsetZone:Kn,IANAZone:Qa,Info:W0,Interval:G0,InvalidZone:bq,Settings:Xr,SystemZone:yS,VERSION:"2.5.2",Zone:dm},Symbol.toStringTag,{value:"Module"}));function Mc(t,e,r=!1){if(t!==void 0)switch(t){case"ordinal":return{range:["#C2D5EE","#1A73E8"]};case"temporal":case"quantitative":return e?r?{range:["#6BA4EE","#EEA361"]}:{range:["#1A73E8","#E8710A"]}:{range:["#C2D5EE","#1A73E8"]};case"nominal":return r?{range:["#6BA4EE","#66CEDC","#EC72B8","#EEA361","#F9C85B","#AACD85","#B87CED","#ACB0B3"]}:{range:["#1A73E8","#12B5CB","#E52592","#E8710A","#F9AB00","#7CB342","#9334E6","#80868B"]}}}function xr(t,e){return t.toString().padStart(e,"0")}function a5(t,e,r){e||(e="second");let i=!1;switch(e){case"hour":case"minute":case"second":i=!0;break}const s=gt.fromJSDate(t,{zone:i&&r?r:"UTC"});switch(e){case"year":return`${xr(s.year,4)}`;case"quarter":{const o=xr(s.year,4),a=Math.floor(s.month/3)+1;return`${o}-Q${a}`}case"month":{const o=xr(s.year,2),a=xr(s.month,2);return`${o}-${a}`}case"week":{const o=xr(s.year,2),a=xr(s.month,2),l=xr(s.day,2);return`${o}-${a}-${l}-WK`}case"day":{const o=xr(s.year,2),a=xr(s.month,2),l=xr(s.day,2);return`${o}-${a}-${l}`}case"hour":{const o=xr(s.year,2),a=xr(s.month,2),l=xr(s.day,2),u=xr(s.hour,2);return`${o}-${a}-${l} ${u}`}case"minute":{const o=xr(s.year,2),a=xr(s.month,2),l=xr(s.day,2),u=xr(s.hour,2),c=xr(s.minute,2);return`${o}-${a}-${l} ${u}:${c}`}case"second":{const o=xr(s.year,2),a=xr(s.month,2),l=xr(s.day,2),u=xr(s.hour,2),c=xr(s.minute,2),d=xr(s.second,2);return`${o}-${a}-${l} ${u}:${c}:${d}`}default:throw new Error("Unknown timeframe.")}}function NEe(t,e){const r=gt.fromJSDate(t,{zone:e??"UTC"});return new Date(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond)}let l5;const DEe=100;async function AS(){const t=Date.now();if(!(l5&&t<l5+DEe))return l5=t,new Promise(e=>{setTimeout(e,0)})}function io(t,e){const r=t.createElement("span");return r.classList.add("error"),r.appendChild(t.createTextNode(typeof e=="string"?e:e.message)),r}function J0(t){const e=t.createElement("span");return e.appendChild(t.createTextNode("∅")),e.classList.add("value-null"),e}function cH(t){const e=t.createElement("div");return e.classList.add("drill-icon"),e.innerHTML=`
|
|
2
2
|
<style>
|
|
3
3
|
.drill-icon:hover .copy-circle {
|
|
4
4
|
fill: #eef7f9;
|