@mailstep/design-system 0.7.79-beta.5 → 0.7.79-beta.6
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/package.json
CHANGED
|
@@ -122,8 +122,11 @@ export var CustomStyles = {
|
|
|
122
122
|
},
|
|
123
123
|
clearIndicator: function (styles, state) {
|
|
124
124
|
var theme = state.theme;
|
|
125
|
-
return __assign(__assign({}, styles), { justifyContent: 'center', alignItems: 'center', padding: theme.narrowIndicators ? '0px 0px 0px
|
|
125
|
+
return __assign(__assign({}, styles), { justifyContent: 'center', alignItems: 'center', padding: theme.narrowIndicators ? '0px 4px 0px 0px' : '0px 4px', color: theme.colors.dropdownIndicatorColor });
|
|
126
126
|
},
|
|
127
|
+
indicatorSeparator: function () { return ({
|
|
128
|
+
display: 'none',
|
|
129
|
+
}); }
|
|
127
130
|
};
|
|
128
131
|
export var getCustomTheme = function (theme, optionVariant, useFilterSubvariant) {
|
|
129
132
|
var inputTextColor = th.color('blue2')({ theme: theme });
|
package/ui/index.es.js
CHANGED
|
@@ -19268,10 +19268,13 @@ const XB = U.div`
|
|
|
19268
19268
|
...e,
|
|
19269
19269
|
justifyContent: "center",
|
|
19270
19270
|
alignItems: "center",
|
|
19271
|
-
padding: n.narrowIndicators ? "0px 0px 0px
|
|
19271
|
+
padding: n.narrowIndicators ? "0px 4px 0px 0px" : "0px 4px",
|
|
19272
19272
|
color: n.colors.dropdownIndicatorColor
|
|
19273
19273
|
};
|
|
19274
|
-
}
|
|
19274
|
+
},
|
|
19275
|
+
indicatorSeparator: () => ({
|
|
19276
|
+
display: "none"
|
|
19277
|
+
})
|
|
19275
19278
|
}, Gue = (e, t, n) => {
|
|
19276
19279
|
const r = W.color("blue2")({
|
|
19277
19280
|
theme: e
|
package/ui/index.umd.js
CHANGED
|
@@ -1474,7 +1474,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1474
1474
|
& > * {
|
|
1475
1475
|
color: ${({hasValue:e})=>e?"black":"#a3b3c1"};
|
|
1476
1476
|
}
|
|
1477
|
-
`,Iue=e=>{var o;const{children:t,...n}=e,r=(o=n.selectProps)==null?void 0:o.icon,i=n.hasValue;return p.jsxs(p.Fragment,{children:[r&&p.jsx(Sue,{className:"inputIcon",hasValue:i,children:p.jsx(lt,{icon:r})}),p.jsx(Jr.components.ValueContainer,{...n,children:t})]})},Eue=e=>{const t=e.getStyles("option",e),{data:n,selectOption:r,innerProps:i}=e,o=C.useCallback(()=>r(n),[n,r]);return p.jsx("div",{style:t,onClick:o,onMouseOver:i.onMouseOver,onMouseMove:i.onMouseMove,children:e.label})},kue=C.memo(Eue,(e,t)=>{var n,r;return e.isFocused===t.isFocused&&((n=e.data)==null?void 0:n.label)===((r=t.data)==null?void 0:r.label)}),Mue={control:(e,{selectProps:t,theme:n,isFocused:r,isDisabled:i})=>{const o=n.colors;return{...e,borderColor:t.isInvalid?o.primary:r?o.inputTextColor:o.inputBorderColor,backgroundColor:i?o.menuHoverBackgroundColor:o.whiteBackgroundColor,boxShadow:n.focusBoxShadow,borderRadius:n.borderRadius,"& input":{fontWeight:n.textWeightNormal,fontFamily:n.font},"&:hover":{...e["&:hover"]??{},borderColor:o.inputBorderHoverColor},fontSize:"14px",minWidth:"min-content",".inputIcon":{color:i?o.defaultControlColor:t.value?o.inputTextColor:o.defaultControlColor}}},valueContainer:(e,{theme:t})=>({...e,width:"50px",flexWrap:t.flexWrap}),singleValue:(e,{selectProps:t,theme:n,isDisabled:r})=>({...e,position:"absolute",top:"50%",transform:"translateY(-50%)",color:t.isInvalid?n.colors.primary:r?n.colors.disabledTextColor:n.colors.inputTextColor,fontSize:"14px",fontWeight:n.textWeightNormal}),multiValue:(e,t)=>{const{theme:n}=t;return{...e,color:n.colors.inputTextColor,fontWeight:n.textWeightNormal,backgroundColor:"#E7EBEF",borderRadius:"4px","& svg":{color:n.colors.inputTextColor}," > div":{fontSize:"12px"}}},multiValueLabel:e=>({...e,fontSize:"unset",padding:"5px"}),multiValueRemove:(e,{theme:t})=>({...e,color:t.colors.inputBorderColor}),placeholder:(e,t)=>{const{theme:n,selectProps:r}=t;return{...e,fontSize:"14px",fontWeight:n.textWeightNormal,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"calc(100% - 8px)",color:r.isDarkPlaceholderText?n.colors.inputTextColor:n.colors.placeholderTextColor}},loadingMessage:(e,{theme:t})=>({...e,color:t.colors.optionTextColor}),noOptionsMessage:(e,{theme:t})=>({...e,color:t.colors.optionTextColor}),input:(e,{theme:t})=>({...e,color:t.colors.inputTextColor}),option:(e,{isSelected:t,theme:n,isDisabled:r,selectProps:i})=>{const o=n.colors.optionTextColor;return{color:t?n.colors.primary:o,backgroundColor:t?n.colors.activeOptionBackground:void 0,fontWeight:n.textWeightNormal,fontSize:"14px",cursor:r?"default":"pointer",display:"flex",flexDirection:"row",alignItems:"center",padding:"7px 10px",minHeight:"36px",marginRight:"4px",marginBottom:"2px",lineHeight:"22px",borderRadius:V.radius("ml")({theme:i==null?void 0:i.systemTheme}),"&:hover":{backgroundColor:t?n.colors.hoverToActiveOptionBackground:r?void 0:n.colors.menuHoverBackgroundColor}}},menu:(e,t)=>{const{theme:n}=t;return{...e,boxShadow:"0 2px 20px 0 rgba(0, 0, 0, 0.10);",marginTop:"4px",paddingTop:"0",borderRadius:"10px",zIndex:3,minWidth:"max-content",backgroundColor:n.colors.whiteBackgroundColor}},menuList:(e,{theme:t})=>({...e,margin:"8px 4px 8px 8px","::-webkit-scrollbar-thumb":{border:"none",borderRadius:"4px",height:"47px",backgroundColor:t.colors.defaultControlColor,"&:hover":{backgroundColor:t.colors.dropdownIndicatorColor}},"::-webkit-scrollbar":{width:"10px"},"::-webkit-scrollbar-track":{backgroundColor:t.colors.menuHoverBackgroundColor,borderRadius:"6px"}}),dropdownIndicator:(e,t)=>{const{theme:n,isDisabled:r}=t;return{...e,justifyContent:"center",alignItems:"center","& svg":{stroke:r?n.colors.dropdownIndicatorColor:n.colors.inputTextColor},padding:"0px 5px 0px 0px","@media (min-width: 1024px)":{padding:"0px 10px 0px 1px"}}},clearIndicator:(e,t)=>{const{theme:n}=t;return{...e,justifyContent:"center",alignItems:"center",padding:n.narrowIndicators?"0px 0px 0px 2px":"0px 4px",color:n.colors.dropdownIndicatorColor}}},Lue=(e,t,n)=>{const r=V.color("blue2")({theme:e}),i={primary:V.color("red1")({theme:e}),inputTextColor:r,whiteBackgroundColor:V.color("white")({theme:e}),optionTextColor:V.color("blue2")({theme:e}),menuHoverBackgroundColor:V.color("bgLightGray1")({theme:e}),inputDisabledColor:V.color("lightGray1")({theme:e}),inputBorderColor:V.color("lightGray3")({theme:e}),placeholderTextColor:V.color("lightGray3")({theme:e}),defaultControlColor:V.color("lightGray5")({theme:e}),disabledTextColor:V.color("lightGray6")({theme:e}),dropdownIndicatorColor:V.color("gray1")({theme:e}),inputBorderHoverColor:V.color("gray5")({theme:e}),activeOptionBackground:V.color("red20")({theme:e}),hoverToActiveOptionBackground:V.color("red30")({theme:e})};return o=>({...o,colors:i,focusBoxShadow:null,height:"38px",flexWrap:n?"nowrap":"wrap",textWeightNormal:V.fontWeight("normal")({theme:e}),optionVariant:t,borderRadius:V.radius("lg")({theme:e}),font:V.font("primary")({theme:e}),narrowIndicators:!!n})},JB=(e="form",t="default",n="default",r="default",i=!1,o=!1,l=!1)=>{const c=ut();return C.useMemo(()=>{const d={ValueContainer:Iue};d.DropdownIndicator=xue,n==="count"&&(d.MultiValue=bue),r==="search"&&(d.DropdownIndicator=null),(l||o)&&(d.MenuList=vue),d.Input=Cue;const f=Lue(c,t,e=="gridFilter"),A=Mue;return d.Option=Aue,i&&(d.Option=kue),[d,f,A]},[n,r,l,o,e,i,c,t])},XB=[],Oue=()=>Re._({id:"select.noOptions",message:"no options"}),Pue=()=>Re._({id:"components.dropdown.loading",message:"Loading..."}),UA=({label:e,name:t,value:n="",options:r=XB,defaultOptions:i,loadOptions:o,onChange:l,onBlur:c,error:d,isInvalid:f,isLoading:A,isDarkPlaceholderText:g,spaceAround:v=!1,disabled:y,onInputChange:w,isSearchable:S,isMulti:I,className:E,useSimplifiedOptions:M=!1,showSelectAllButton:L=!1,showResetGridButton:T=!1,shortValues:P=!0,style:j,optionVariant:B,multiLabelVariant:W,containerVariant:_,placeholder:X,placeholderIcon:N,innerRef:H,maxMenuHeight:ee,getOptionValue:oe,resetGrid:ie,...q})=>{const ce=!!o;L&&!I&&console.error("CheckboxSelect incompatible props");const ge=C.useCallback(()=>{l==null||l(r||[])},[l,r]),fe=C.useCallback(()=>{typeof l=="function"&&(l==null||l(XB))},[l]),Y=_==="search"?"search":N||void 0,z=T&&L&&ee?ee-30:ee,[$,ae,ue]=JB(j,B,W,_,M,L,T),se=ce?ZB:oue;let Q;const re=C.useMemo(()=>oe||(ye=>ye==null?void 0:ye.value),[oe]);Array.isArray(n)?(Q=(i||r).filter(ye=>n.includes(re(ye))),Q=Q!=null&&Q.length?Q:null):n!==void 0&&(Q=(i||r).find(ye=>re(ye)===n)||null);const le=ut(),pe=C.useMemo(()=>o?async ye=>await o(ye):void 0,[o]);return p.jsxs(ms,{spaceAround:v,className:E,children:[p.jsxs(_B,{children:[e&&p.jsx(Nc,{htmlFor:t,children:e}),p.jsx(se,{id:t,name:t,options:r,loadOptions:pe,defaultOptions:i,value:Q,onChange:l,onBlur:c,isDisabled:y||A,isLoading:A,isInvalid:f!==void 0?f:!!d,isDarkPlaceholderText:g,placeholder:X||Re._({id:"components.dropdown.placeholder",message:"Select..."}),styles:ue,theme:ae,icon:Y,hideSelectedOptions:!!(I&&W!="count"),onInputChange:w,isSearchable:ce||S,isMulti:I,classNamePrefix:"react-select",components:$,closeMenuOnSelect:I?!1:void 0,noOptionsMessage:Oue,...q,ref:H,tabIndex:null,systemTheme:le,resetGrid:ie,onCustomSelectAll:ge,onCustomDeselectAll:fe,selectAllButton:L,resetGridButton:T,maxMenuHeight:z,getOptionValue:oe,loadingMessage:Pue,shortValues:P})]}),d&&p.jsx(C1,{children:d})]})};let Tue=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var H7,QB;function Due(){if(QB)return H7;QB=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return H7=e,H7}var G7,KB;function Bue(){if(KB)return G7;KB=1;function e(t,n,r){var i=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(o);++i<o;)l[i]=t[i+n];return l}return G7=e,G7}var _7,qB;function Nue(){if(qB)return _7;qB=1;var e=Wg(),t=Bue();function n(r,i){return i.length<2?r:e(r,t(i,0,-1))}return _7=n,_7}var Z7,$B;function Rue(){if($B)return Z7;$B=1;var e=$f(),t=Due(),n=Nue(),r=Lc();function i(o,l){return l=e(l,o),o=n(o,l),o==null||delete o[r(t(l))]}return Z7=i,Z7}var U7,eN;function Fue(){if(eN)return U7;eN=1;var e=eD();function t(n){return e(n)?void 0:n}return U7=t,U7}var Y7,tN;function nN(){if(tN)return Y7;tN=1;var e=Bg(),t=$8(),n=Rue(),r=$f(),i=v1(),o=Fue(),l=oD(),c=zT(),d=1,f=2,A=4,g=l(function(v,y){var w={};if(v==null)return w;var S=!1;y=e(y,function(E){return E=r(E,v),S||(S=E.length>1),E}),i(v,c(v),w),S&&(w=t(w,d|f|A,o));for(var I=y.length;I--;)n(w,y[I]);return w});return Y7=g,Y7}var jue=s7,rN=jue("omit",nN());rN.placeholder=fA();var zue=rN;const Wue=Hn(zue),J7=`_create_${Tue()}_`,Vue=Jr.createFilter(),Hue=(e,t)=>(e==null?void 0:e.value)==J7?!0:Vue(e,t),X7=e=>e===null?null:Array.isArray(e)?e.map(t=>t.value):e.value,Gue=()=>Re._({id:"components.dropdown.loading",message:"Loading..."}),Q7=e=>{const{name:t,onChange:n,onBlur:r,onValueChange:i,loadOptions:o,asyncLoadMinChars:l=0,isLocked:c,lockedText:d=Re._({id:"components.dropdown.notReact",message:"Select related values first..."}),disabled:f,placeholder:A=Re._({id:"components.dropdown.placeholder",message:"Select..."}),preload:g,initialOptions:v,onCreateOption:y,options:w,filterOption:S,shouldReloadOptions:I=!1}=e,[E,M]=C.useState(!1),L=!!o||!!y,T=C.useCallback(q=>o?q.length<l?Re._({id:"components.dropdown.writeMoreChars",message:"Write at least ${asyncLoadMinChars} characters."}):Re._({id:"dataGrid.filterCell",message:"Type to filter"}):Re._({id:"components.dropdown.noOptions",message:"No options"}),[o,l]),P=C.useCallback(async q=>y?q.trim()?await Promise.resolve([...w||[],{value:J7,label:`${q} (${Re._({id:"components.dropdown.newOption",message:"new value"})})`,inputValue:q}]):await Promise.resolve(w||[]):!o||q.length<l?await Promise.resolve([]):await o(q,!1),[y,o,l,w]),[j,B]=C.useState(w||[]);C.useEffect(()=>{o&&g&&!e.value&&o("",!1).then(B)},[o]);const[W,_]=C.useState(null);C.useEffect(()=>{if(v&&v.length){const q=v.find(ce=>ce.value==e.value)||null;_(q)}o&&!v&&e.value&&o(String(e.value),!0).then(q=>{_((q==null?void 0:q[0])||null)})},[v,_]),C.useEffect(()=>{I&&B(w||[])},[w]);const X=C.useCallback(async q=>{var ge,fe,Y;let ce;if(y&&(q==null?void 0:q.value)==J7)if(q!=null&&q.inputValue&&((fe=(ge=q==null?void 0:q.inputValue)==null?void 0:ge.trim())==null?void 0:fe.length)<2){e==null||e.form.setFieldTouched(t,!0,!0),e==null||e.form.setFieldError(t,Re._({id:"form.general.min2Chars",message:"Minimal length is 2 characters."}));return}else{M(!0);const z=await y(((Y=q==null?void 0:q.inputValue)==null?void 0:Y.trim())??"");ce=X7(z),M(!1)}else ce=X7(q),o&&_(q);n&&n({target:{name:t??"",type:"change",value:ce}}),i&&i(ce)},[y,o,n,i,e==null?void 0:e.form,t]),N=C.useCallback(q=>{r&&r({target:{name:t,type:"blur",value:X7(q)}})},[t,r]),H=["onValueChange","placeholder","options","loadOptions","asyncLoadMinChars"],oe=c&&!f?d:A,ie=C.useMemo(()=>{if(!L)return;const q=y?w:j;return W?q?[...q,W]:[W]:q||void 0},[L,j,y,w,W]);return p.jsx(UA,{...Wue(H,e),filterOption:S||Hue,disabled:f||c,onChange:X,onBlur:N,placeholder:oe,loadingMessage:Gue,noOptionsMessage:T,loadOptions:L?P:void 0,containerVariant:L?"search":void 0,defaultOptions:ie,options:L?void 0:w,isLoading:E||e.isLoading})},K7=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&t!==null&&"label"in t&&"value"in t);function _ue(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var Zue=_ue,q7=gO(),Uue=WP,Yue=rg,Jue=1/0,Xue=q7&&1/Yue(new q7([,-0]))[1]==Jue?function(e){return new q7(e)}:Uue,Que=Xue,Kue=zL,que=nT,$ue=Zue,e0e=WL,t0e=Que,n0e=rg,r0e=200;function i0e(e,t,n){var r=-1,i=que,o=e.length,l=!0,c=[],d=c;if(n)l=!1,i=$ue;else if(o>=r0e){var f=t?null:t0e(e);if(f)return n0e(f);l=!1,i=e0e,d=new Kue}else d=t?[]:c;e:for(;++r<o;){var A=e[r],g=t?t(A):A;if(A=n||A!==0?A:0,l&&g===g){for(var v=d.length;v--;)if(d[v]===g)continue e;t&&d.push(g),c.push(A)}else i(d,g,n)||(d!==c&&d.push(g),c.push(A))}return c}var a0e=i0e,o0e=nA,s0e=a0e;function l0e(e,t){return e&&e.length?s0e(e,o0e(t)):[]}var c0e=l0e;const u0e=Hn(c0e),iN=({onChange:e,isMulti:t,value:n,options:r,checkAllButton:i,asyncLoadKey:o,onAsyncLoadFilterOptions:l})=>{const[c,d]=C.useState([]),f=C.useCallback(v=>{e==null||e(!uQ(v)||!(v!=null&&v.length)?null:v)},[e]),A=!!o,g=C.useCallback(async v=>{let y=[];return o&&(y=await(l==null?void 0:l(o,v))||[]),d(y),y},[r]);if(t){const v=A&&K7(n)?u0e([...c,...n],"value"):void 0;return p.jsx(UA,{maxMenuHeight:250,onChange:f,value:K7(n)?n.map(y=>String(y.value)):n,options:A&&K7(n)?v:r,showSelectAllButton:i,style:"gridFilter",loadOptions:A?g:void 0,defaultOptions:v,placeholder:A?Re._({id:"dataGrid.filterCell",message:"Type to filter"}):void 0,noOptionsMessage:()=>null,containerVariant:A?"search":void 0,optionVariant:"checkbox",multiLabelVariant:"count",isMulti:!0})}return p.jsx(Q7,{maxMenuHeight:250,onChange:e,value:n,options:r,style:"gridFilter",loadOptions:A?g:void 0,placeholder:A?Re._({id:"dataGrid.filterCell",message:"Type to filter"}):void 0,isClearable:!0})},d0e=()=>[{value:"",label:Re._({id:"dataGrid.columnActive.filterOptions.all",message:"All"})},{value:"1",label:Re._({id:"dataGrid.columnActive.filterOptions.yes",message:"Yes"})},{value:"0",label:Re._({id:"dataGrid.columnActive.filterOptions.no",message:"No"})}],f0e=e=>{const t=C.useMemo(()=>d0e(),[]);return p.jsx(iN,{options:t,...e})};class bl extends Error{}class A0e extends bl{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class h0e extends bl{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class p0e extends bl{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Wc extends bl{}class aN extends bl{constructor(t){super(`Invalid unit ${t}`)}}class br extends bl{}class ys extends bl{constructor(){super("Zone is an abstract class")}}const Pe="numeric",ha="short",bi="long",YA={year:Pe,month:Pe,day:Pe},oN={year:Pe,month:ha,day:Pe},g0e={year:Pe,month:ha,day:Pe,weekday:ha},sN={year:Pe,month:bi,day:Pe},lN={year:Pe,month:bi,day:Pe,weekday:bi},cN={hour:Pe,minute:Pe},uN={hour:Pe,minute:Pe,second:Pe},dN={hour:Pe,minute:Pe,second:Pe,timeZoneName:ha},fN={hour:Pe,minute:Pe,second:Pe,timeZoneName:bi},AN={hour:Pe,minute:Pe,hourCycle:"h23"},hN={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23"},pN={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23",timeZoneName:ha},gN={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23",timeZoneName:bi},mN={year:Pe,month:Pe,day:Pe,hour:Pe,minute:Pe},vN={year:Pe,month:Pe,day:Pe,hour:Pe,minute:Pe,second:Pe},yN={year:Pe,month:ha,day:Pe,hour:Pe,minute:Pe},bN={year:Pe,month:ha,day:Pe,hour:Pe,minute:Pe,second:Pe},m0e={year:Pe,month:ha,day:Pe,weekday:ha,hour:Pe,minute:Pe},CN={year:Pe,month:bi,day:Pe,hour:Pe,minute:Pe,timeZoneName:ha},wN={year:Pe,month:bi,day:Pe,hour:Pe,minute:Pe,second:Pe,timeZoneName:ha},xN={year:Pe,month:bi,day:Pe,weekday:bi,hour:Pe,minute:Pe,timeZoneName:bi},SN={year:Pe,month:bi,day:Pe,weekday:bi,hour:Pe,minute:Pe,second:Pe,timeZoneName:bi};class L1{get type(){throw new ys}get name(){throw new ys}get ianaName(){return this.name}get isUniversal(){throw new ys}offsetName(t,n){throw new ys}formatOffset(t,n){throw new ys}offset(t){throw new ys}equals(t){throw new ys}get isValid(){throw new ys}}let $7=null;class JA extends L1{static get instance(){return $7===null&&($7=new JA),$7}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return QN(t,n,r)}formatOffset(t,n){return D1(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const em=new Map;function v0e(e){let t=em.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),em.set(e,t)),t}const y0e={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function b0e(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,o,l,c,d,f,A]=r;return[l,i,o,c,d,f,A]}function C0e(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:o,value:l}=n[i],c=y0e[o];o==="era"?r[c]=l:Ke(c)||(r[c]=parseInt(l,10))}return r}const tm=new Map;class ko extends L1{static create(t){let n=tm.get(t);return n===void 0&&tm.set(t,n=new ko(t)),n}static resetCache(){tm.clear(),em.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=ko.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return QN(t,n,r,this.name)}formatOffset(t,n){return D1(this.offset(t),n)}offset(t){if(!this.valid)return NaN;const n=new Date(t);if(isNaN(n))return NaN;const r=v0e(this.name);let[i,o,l,c,d,f,A]=r.formatToParts?C0e(r,n):b0e(r,n);c==="BC"&&(i=-Math.abs(i)+1);const v=$A({year:i,month:o,day:l,hour:d===24?0:d,minute:f,second:A,millisecond:0});let y=+n;const w=y%1e3;return y-=w>=0?w:1e3+w,(v-y)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let IN={};function w0e(e,t={}){const n=JSON.stringify([e,t]);let r=IN[n];return r||(r=new Intl.ListFormat(e,t),IN[n]=r),r}const nm=new Map;function rm(e,t={}){const n=JSON.stringify([e,t]);let r=nm.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),nm.set(n,r)),r}const im=new Map;function x0e(e,t={}){const n=JSON.stringify([e,t]);let r=im.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),im.set(n,r)),r}const am=new Map;function S0e(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let o=am.get(i);return o===void 0&&(o=new Intl.RelativeTimeFormat(e,t),am.set(i,o)),o}let O1=null;function I0e(){return O1||(O1=new Intl.DateTimeFormat().resolvedOptions().locale,O1)}const om=new Map;function EN(e){let t=om.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),om.set(e,t)),t}const sm=new Map;function E0e(e){let t=sm.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...kN,...t}),sm.set(e,t)}return t}function k0e(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,i;try{r=rm(e).resolvedOptions(),i=e}catch{const d=e.substring(0,n);r=rm(d).resolvedOptions(),i=d}const{numberingSystem:o,calendar:l}=r;return[i,o,l]}}function M0e(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function L0e(e){const t=[];for(let n=1;n<=12;n++){const r=Ze.utc(2009,n,1);t.push(e(r))}return t}function O0e(e){const t=[];for(let n=1;n<=7;n++){const r=Ze.utc(2016,11,13+n);t.push(e(r))}return t}function XA(e,t,n,r){const i=e.listingMode();return i==="error"?null:i==="en"?n(t):r(t)}function P0e(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||EN(e.locale).numberingSystem==="latn"}class T0e{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:o,...l}=r;if(!n||Object.keys(l).length>0){const c={useGrouping:!1,...r};r.padTo>0&&(c.minimumIntegerDigits=r.padTo),this.inf=x0e(t,c)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):gm(t,3);return En(n,this.padTo)}}}class D0e{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const l=-1*(t.offset/60),c=l>=0?`Etc/GMT+${l}`:`Etc/GMT${l}`;t.offset!==0&&ko.create(c).valid?(i=c,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=rm(n,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class B0e{constructor(t,n,r){this.opts={style:"long",...r},!n&&UN()&&(this.rtf=S0e(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):n1e(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const kN={firstDay:1,minimalDays:4,weekend:[6,7]};let $t=class Af{static fromOpts(t){return Af.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,i,o=!1){const l=t||gn.defaultLocale,c=l||(o?"en-US":I0e()),d=n||gn.defaultNumberingSystem,f=r||gn.defaultOutputCalendar,A=hm(i)||gn.defaultWeekSettings;return new Af(c,d,f,A,l)}static resetCache(){O1=null,nm.clear(),im.clear(),am.clear(),om.clear(),sm.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return Af.create(t,n,r,i)}constructor(t,n,r,i,o){const[l,c,d]=k0e(t);this.locale=l,this.numberingSystem=n||c||null,this.outputCalendar=r||d||null,this.weekSettings=i,this.intl=M0e(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=P0e(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Af.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,hm(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return XA(this,t,$N,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const i=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";if(!this.monthsCache[o][t]){const l=r?c=>this.dtFormatter(c,i).format():c=>this.extract(c,i,"month");this.monthsCache[o][t]=L0e(l)}return this.monthsCache[o][t]})}weekdays(t,n=!1){return XA(this,t,nR,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=n?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=O0e(o=>this.extract(o,r,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return XA(this,void 0,()=>rR,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ze.utc(2016,11,13,9),Ze.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return XA(this,t,iR,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ze.utc(-40,1,1),Ze.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),o=i.formatToParts(),l=o.find(c=>c.type.toLowerCase()===r);return l?l.value:null}numberFormatter(t={}){return new T0e(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new D0e(t,this.intl,n)}relFormatter(t={}){return new B0e(this.intl,this.isEnglish(),t)}listFormatter(t={}){return w0e(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||EN(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:YN()?E0e(this.locale):kN}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},lm=null;class Nr extends L1{static get utcInstance(){return lm===null&&(lm=new Nr(0)),lm}static instance(t){return t===0?Nr.utcInstance:new Nr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Nr(e3(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${D1(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${D1(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return D1(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class N0e extends L1{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function bs(e,t){if(Ke(e)||e===null)return t;if(e instanceof L1)return e;if(V0e(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?JA.instance:n==="utc"||n==="gmt"?Nr.utcInstance:Nr.parseSpecifier(n)||ko.create(e)}else return Cs(e)?Nr.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new N0e(e)}const cm={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},MN={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]},R0e=cm.hanidec.replace(/[\[|\]]/g,"").split("");function F0e(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(cm.hanidec)!==-1)t+=R0e.indexOf(e[n]);else for(const i in MN){const[o,l]=MN[i];r>=o&&r<=l&&(t+=r-o)}}return parseInt(t,10)}else return t}const um=new Map;function j0e(){um.clear()}function pa({numberingSystem:e},t=""){const n=e||"latn";let r=um.get(n);r===void 0&&(r=new Map,um.set(n,r));let i=r.get(t);return i===void 0&&(i=new RegExp(`${cm[n]}${t}`),r.set(t,i)),i}let LN=()=>Date.now(),ON="system",PN=null,TN=null,DN=null,BN=60,NN,RN=null;class gn{static get now(){return LN}static set now(t){LN=t}static set defaultZone(t){ON=t}static get defaultZone(){return bs(ON,JA.instance)}static get defaultLocale(){return PN}static set defaultLocale(t){PN=t}static get defaultNumberingSystem(){return TN}static set defaultNumberingSystem(t){TN=t}static get defaultOutputCalendar(){return DN}static set defaultOutputCalendar(t){DN=t}static get defaultWeekSettings(){return RN}static set defaultWeekSettings(t){RN=hm(t)}static get twoDigitCutoffYear(){return BN}static set twoDigitCutoffYear(t){BN=t%100}static get throwOnInvalid(){return NN}static set throwOnInvalid(t){NN=t}static resetCaches(){$t.resetCache(),ko.resetCache(),Ze.resetCache(),j0e()}}class ga{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const FN=[0,31,59,90,120,151,181,212,243,273,304,334],jN=[0,31,60,91,121,152,182,213,244,274,305,335];function ji(e,t){return new ga("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dm(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function zN(e,t,n){return n+(P1(e)?jN:FN)[t-1]}function WN(e,t){const n=P1(e)?jN:FN,r=n.findIndex(o=>o<t),i=t-n[r];return{month:r+1,day:i}}function fm(e,t){return(e-t+7)%7+1}function QA(e,t=4,n=1){const{year:r,month:i,day:o}=e,l=zN(r,i,o),c=fm(dm(r,i,o),n);let d=Math.floor((l-c+14-t)/7),f;return d<1?(f=r-1,d=T1(f,t,n)):d>T1(r,t,n)?(f=r+1,d=1):f=r,{weekYear:f,weekNumber:d,weekday:c,...n3(e)}}function VN(e,t=4,n=1){const{weekYear:r,weekNumber:i,weekday:o}=e,l=fm(dm(r,1,t),n),c=Hc(r);let d=i*7+o-l-7+t,f;d<1?(f=r-1,d+=Hc(f)):d>c?(f=r+1,d-=Hc(r)):f=r;const{month:A,day:g}=WN(f,d);return{year:f,month:A,day:g,...n3(e)}}function Am(e){const{year:t,month:n,day:r}=e,i=zN(t,n,r);return{year:t,ordinal:i,...n3(e)}}function HN(e){const{year:t,ordinal:n}=e,{month:r,day:i}=WN(t,n);return{year:t,month:r,day:i,...n3(e)}}function GN(e,t){if(!Ke(e.localWeekday)||!Ke(e.localWeekNumber)||!Ke(e.localWeekYear)){if(!Ke(e.weekday)||!Ke(e.weekNumber)||!Ke(e.weekYear))throw new Wc("Cannot mix locale-based week fields with ISO-based week fields");return Ke(e.localWeekday)||(e.weekday=e.localWeekday),Ke(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Ke(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function z0e(e,t=4,n=1){const r=KA(e.weekYear),i=zi(e.weekNumber,1,T1(e.weekYear,t,n)),o=zi(e.weekday,1,7);return r?i?o?!1:ji("weekday",e.weekday):ji("week",e.weekNumber):ji("weekYear",e.weekYear)}function W0e(e){const t=KA(e.year),n=zi(e.ordinal,1,Hc(e.year));return t?n?!1:ji("ordinal",e.ordinal):ji("year",e.year)}function _N(e){const t=KA(e.year),n=zi(e.month,1,12),r=zi(e.day,1,qA(e.year,e.month));return t?n?r?!1:ji("day",e.day):ji("month",e.month):ji("year",e.year)}function ZN(e){const{hour:t,minute:n,second:r,millisecond:i}=e,o=zi(t,0,23)||t===24&&n===0&&r===0&&i===0,l=zi(n,0,59),c=zi(r,0,59),d=zi(i,0,999);return o?l?c?d?!1:ji("millisecond",i):ji("second",r):ji("minute",n):ji("hour",t)}function Ke(e){return typeof e>"u"}function Cs(e){return typeof e=="number"}function KA(e){return typeof e=="number"&&e%1===0}function V0e(e){return typeof e=="string"}function H0e(e){return Object.prototype.toString.call(e)==="[object Date]"}function UN(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function YN(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function G0e(e){return Array.isArray(e)?e:[e]}function JN(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const o=[t(i),i];return r&&n(r[0],o[0])===r[0]?r:o},null)[1]}function _0e(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function Vc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function hm(e){if(e==null)return null;if(typeof e!="object")throw new br("Week settings must be an object");if(!zi(e.firstDay,1,7)||!zi(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!zi(t,1,7)))throw new br("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function zi(e,t,n){return KA(e)&&e>=t&&e<=n}function Z0e(e,t){return e-t*Math.floor(e/t)}function En(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function ws(e){if(!(Ke(e)||e===null||e===""))return parseInt(e,10)}function Cl(e){if(!(Ke(e)||e===null||e===""))return parseFloat(e)}function pm(e){if(!(Ke(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function gm(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function P1(e){return e%4===0&&(e%100!==0||e%400===0)}function Hc(e){return P1(e)?366:365}function qA(e,t){const n=Z0e(t-1,12)+1,r=e+(t-n)/12;return n===2?P1(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function $A(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function XN(e,t,n){return-fm(dm(e,1,t),n)+t-1}function T1(e,t=4,n=1){const r=XN(e,t,n),i=XN(e+1,t,n);return(Hc(e)-r+i)/7}function mm(e){return e>99?e:e>gn.twoDigitCutoffYear?1900+e:2e3+e}function QN(e,t,n,r=null){const i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const l={timeZoneName:t,...o},c=new Intl.DateTimeFormat(n,l).formatToParts(i).find(d=>d.type.toLowerCase()==="timezonename");return c?c.value:null}function e3(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function KN(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new br(`Invalid unit value ${e}`);return t}function t3(e,t){const n={};for(const r in e)if(Vc(e,r)){const i=e[r];if(i==null)continue;n[t(r)]=KN(i)}return n}function D1(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${En(n,2)}:${En(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${En(n,2)}${En(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function n3(e){return _0e(e,["hour","minute","second","millisecond"])}const U0e=["January","February","March","April","May","June","July","August","September","October","November","December"],qN=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Y0e=["J","F","M","A","M","J","J","A","S","O","N","D"];function $N(e){switch(e){case"narrow":return[...Y0e];case"short":return[...qN];case"long":return[...U0e];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 eR=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tR=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],J0e=["M","T","W","T","F","S","S"];function nR(e){switch(e){case"narrow":return[...J0e];case"short":return[...tR];case"long":return[...eR];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const rR=["AM","PM"],X0e=["Before Christ","Anno Domini"],Q0e=["BC","AD"],K0e=["B","A"];function iR(e){switch(e){case"narrow":return[...K0e];case"short":return[...Q0e];case"long":return[...X0e];default:return null}}function q0e(e){return rR[e.hour<12?0:1]}function $0e(e,t){return nR(t)[e.weekday-1]}function e1e(e,t){return $N(t)[e.month-1]}function t1e(e,t){return iR(t)[e.year<0?0:1]}function n1e(e,t,n="always",r=!1){const i={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(e)===-1;if(n==="auto"&&o){const g=e==="days";switch(t){case 1:return g?"tomorrow":`next ${i[e][0]}`;case-1:return g?"yesterday":`last ${i[e][0]}`;case 0:return g?"today":`this ${i[e][0]}`}}const l=Object.is(t,-0)||t<0,c=Math.abs(t),d=c===1,f=i[e],A=r?d?f[1]:f[2]||f[1]:d?i[e][0]:e;return l?`${c} ${A} ago`:`in ${c} ${A}`}function aR(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const r1e={D:YA,DD:oN,DDD:sN,DDDD:lN,t:cN,tt:uN,ttt:dN,tttt:fN,T:AN,TT:hN,TTT:pN,TTTT:gN,f:mN,ff:yN,fff:CN,ffff:xN,F:vN,FF:bN,FFF:wN,FFFF:SN};class Cr{static create(t,n={}){return new Cr(t,n)}static parseFormat(t){let n=null,r="",i=!1;const o=[];for(let l=0;l<t.length;l++){const c=t.charAt(l);c==="'"?((r.length>0||i)&&o.push({literal:i||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",i=!i):i||c===n?r+=c:(r.length>0&&o.push({literal:/^\s+$/.test(r),val:r}),r=c,n=c)}return r.length>0&&o.push({literal:i||/^\s+$/.test(r),val:r}),o}static macroTokenToFormatOpts(t){return r1e[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,r=void 0){if(this.opts.forceSimple)return En(t,n);const i={...this.opts};return n>0&&(i.padTo=n),r&&(i.signDisplay=r),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(y,w)=>this.loc.extract(t,y,w),l=y=>t.isOffsetFixed&&t.offset===0&&y.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,y.format):"",c=()=>r?q0e(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),d=(y,w)=>r?e1e(t,y):o(w?{month:y}:{month:y,day:"numeric"},"month"),f=(y,w)=>r?$0e(t,y):o(w?{weekday:y}:{weekday:y,month:"long",day:"numeric"},"weekday"),A=y=>{const w=Cr.macroTokenToFormatOpts(y);return w?this.formatWithSystemDefault(t,w):y},g=y=>r?t1e(t,y):o({era:y},"era"),v=y=>{switch(y){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return l({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return l({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return l({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return f("short",!0);case"cccc":return f("long",!0);case"ccccc":return f("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return f("short",!1);case"EEEE":return f("long",!1);case"EEEEE":return f("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return d("short",!0);case"LLLL":return d("long",!0);case"LLLLL":return d("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return d("short",!1);case"MMMM":return d("long",!1);case"MMMMM":return d("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return A(y)}};return aR(Cr.parseFormat(n),v)}formatDurationFromString(t,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,i=A=>{switch(A[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},o=(A,g)=>v=>{const y=i(v);if(y){const w=g.isNegativeDuration&&y!==g.largestUnit?r:1;let S;return this.opts.signMode==="negativeLargestOnly"&&y!==g.largestUnit?S="never":this.opts.signMode==="all"?S="always":S="auto",this.num(A.get(y)*w,v.length,S)}else return v},l=Cr.parseFormat(n),c=l.reduce((A,{literal:g,val:v})=>g?A:A.concat(v),[]),d=t.shiftTo(...c.map(i).filter(A=>A)),f={isNegativeDuration:d<0,largestUnit:Object.keys(d.values)[0]};return aR(l,o(d,f))}}const oR=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Gc(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function _c(...e){return t=>e.reduce(([n,r,i],o)=>{const[l,c,d]=o(t,i);return[{...n,...l},c||r,d]},[{},null,1]).slice(0,2)}function Zc(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function sR(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=ws(t[n+i]);return[r,null,n+i]}}const lR=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,i1e=`(?:${lR.source}?(?:\\[(${oR.source})\\])?)?`,vm=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,cR=RegExp(`${vm.source}${i1e}`),ym=RegExp(`(?:[Tt]${cR.source})?`),a1e=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,o1e=/(\d{4})-?W(\d\d)(?:-?(\d))?/,s1e=/(\d{4})-?(\d{3})/,l1e=sR("weekYear","weekNumber","weekDay"),c1e=sR("year","ordinal"),u1e=/(\d{4})-(\d\d)-(\d\d)/,uR=RegExp(`${vm.source} ?(?:${lR.source}|(${oR.source}))?`),d1e=RegExp(`(?: ${uR.source})?`);function Uc(e,t,n){const r=e[t];return Ke(r)?n:ws(r)}function f1e(e,t){return[{year:Uc(e,t),month:Uc(e,t+1,1),day:Uc(e,t+2,1)},null,t+3]}function Yc(e,t){return[{hours:Uc(e,t,0),minutes:Uc(e,t+1,0),seconds:Uc(e,t+2,0),milliseconds:pm(e[t+3])},null,t+4]}function B1(e,t){const n=!e[t]&&!e[t+1],r=e3(e[t+1],e[t+2]),i=n?null:Nr.instance(r);return[{},i,t+3]}function N1(e,t){const n=e[t]?ko.create(e[t]):null;return[{},n,t+1]}const A1e=RegExp(`^T?${vm.source}$`),h1e=/^-?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 p1e(e){const[t,n,r,i,o,l,c,d,f]=e,A=t[0]==="-",g=d&&d[0]==="-",v=(y,w=!1)=>y!==void 0&&(w||y&&A)?-y:y;return[{years:v(Cl(n)),months:v(Cl(r)),weeks:v(Cl(i)),days:v(Cl(o)),hours:v(Cl(l)),minutes:v(Cl(c)),seconds:v(Cl(d),d==="-0"),milliseconds:v(pm(f),g)}]}const g1e={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function bm(e,t,n,r,i,o,l){const c={year:t.length===2?mm(ws(t)):ws(t),month:qN.indexOf(n)+1,day:ws(r),hour:ws(i),minute:ws(o)};return l&&(c.second=ws(l)),e&&(c.weekday=e.length>3?eR.indexOf(e)+1:tR.indexOf(e)+1),c}const m1e=/^(?:(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 v1e(e){const[,t,n,r,i,o,l,c,d,f,A,g]=e,v=bm(t,i,r,n,o,l,c);let y;return d?y=g1e[d]:f?y=0:y=e3(A,g),[v,new Nr(y)]}function y1e(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const b1e=/^(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$/,C1e=/^(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$/,w1e=/^(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 dR(e){const[,t,n,r,i,o,l,c]=e;return[bm(t,i,r,n,o,l,c),Nr.utcInstance]}function x1e(e){const[,t,n,r,i,o,l,c]=e;return[bm(t,c,n,r,i,o,l),Nr.utcInstance]}const S1e=Gc(a1e,ym),I1e=Gc(o1e,ym),E1e=Gc(s1e,ym),k1e=Gc(cR),fR=_c(f1e,Yc,B1,N1),M1e=_c(l1e,Yc,B1,N1),L1e=_c(c1e,Yc,B1,N1),O1e=_c(Yc,B1,N1);function P1e(e){return Zc(e,[S1e,fR],[I1e,M1e],[E1e,L1e],[k1e,O1e])}function T1e(e){return Zc(y1e(e),[m1e,v1e])}function D1e(e){return Zc(e,[b1e,dR],[C1e,dR],[w1e,x1e])}function B1e(e){return Zc(e,[h1e,p1e])}const N1e=_c(Yc);function R1e(e){return Zc(e,[A1e,N1e])}const F1e=Gc(u1e,d1e),j1e=Gc(uR),z1e=_c(Yc,B1,N1);function W1e(e){return Zc(e,[F1e,fR],[j1e,z1e])}const AR="Invalid Duration",hR={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},V1e={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...hR},Wi=146097/400,Jc=146097/4800,H1e={years:{quarters:4,months:12,weeks:Wi/7,days:Wi,hours:Wi*24,minutes:Wi*24*60,seconds:Wi*24*60*60,milliseconds:Wi*24*60*60*1e3},quarters:{months:3,weeks:Wi/28,days:Wi/4,hours:Wi*24/4,minutes:Wi*24*60/4,seconds:Wi*24*60*60/4,milliseconds:Wi*24*60*60*1e3/4},months:{weeks:Jc/7,days:Jc,hours:Jc*24,minutes:Jc*24*60,seconds:Jc*24*60*60,milliseconds:Jc*24*60*60*1e3},...hR},wl=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],G1e=wl.slice(0).reverse();function Mo(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new wr(r)}function pR(e,t){let n=t.milliseconds??0;for(const r of G1e.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function gR(e,t){const n=pR(e,t)<0?-1:1;wl.reduceRight((r,i)=>{if(Ke(t[i]))return r;if(r){const o=t[r]*n,l=e[i][r],c=Math.floor(o/l);t[i]+=c*n,t[r]-=c*l*n}return i},null),wl.reduce((r,i)=>{if(Ke(t[i]))return r;if(r){const o=t[r]%1;t[r]-=o,t[i]+=o*e[r][i]}return i},null)}function mR(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}let wr=class pr{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?H1e:V1e;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||$t.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return pr.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new br(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new pr({values:t3(t,pr.normalizeUnit),loc:$t.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Cs(t))return pr.fromMillis(t);if(pr.isDuration(t))return t;if(typeof t=="object")return pr.fromObject(t);throw new br(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=B1e(t);return r?pr.fromObject(r,n):pr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=R1e(t);return r?pr.fromObject(r,n):pr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new br("need to specify a reason the Duration is invalid");const r=t instanceof ga?t:new ga(t,n);if(gn.throwOnInvalid)throw new p0e(r);return new pr({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new aN(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Cr.create(this.loc,r).formatDurationFromString(this,t):AR}toHuman(t={}){if(!this.isValid)return AR;const n=t.showZeros!==!1,r=wl.map(i=>{const o=this.values[i];return Ke(o)||o===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:i.slice(0,-1)}).format(o)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=gm(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ze.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?pR(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=pr.fromDurationLike(t),r={};for(const i of wl)(Vc(n.values,i)||Vc(this.values,i))&&(r[i]=n.get(i)+this.get(i));return Mo(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=pr.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=KN(t(this.values[r],r));return Mo(this,{values:n},!0)}get(t){return this[pr.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...t3(t,pr.normalizeUnit)};return Mo(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:i}={}){const l={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:i,conversionAccuracy:r};return Mo(this,l)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return gR(this.matrix,t),Mo(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=mR(this.normalize().shiftToAll().toObject());return Mo(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(l=>pr.normalizeUnit(l));const n={},r={},i=this.toObject();let o;for(const l of wl)if(t.indexOf(l)>=0){o=l;let c=0;for(const f in r)c+=this.matrix[f][l]*r[f],r[f]=0;Cs(i[l])&&(c+=i[l]);const d=Math.trunc(c);n[l]=d,r[l]=(c*1e3-d*1e3)/1e3}else Cs(i[l])&&(r[l]=i[l]);for(const l in r)r[l]!==0&&(n[o]+=l===o?r[l]:r[l]/this.matrix[o][l]);return gR(this.matrix,n),Mo(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Mo(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=mR(this.values);return Mo(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of wl)if(!n(this.values[r],t.values[r]))return!1;return!0}};const Xc="Invalid Interval";function _1e(e,t){return!e||!e.isValid?mn.invalid("missing or invalid start"):!t||!t.isValid?mn.invalid("missing or invalid end"):t<e?mn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class mn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new br("need to specify a reason the Interval is invalid");const r=t instanceof ga?t:new ga(t,n);if(gn.throwOnInvalid)throw new h0e(r);return new mn({invalid:r})}static fromDateTimes(t,n){const r=j1(t),i=j1(n),o=_1e(r,i);return o??new mn({start:r,end:i})}static after(t,n){const r=wr.fromDurationLike(n),i=j1(t);return mn.fromDateTimes(i,i.plus(r))}static before(t,n){const r=wr.fromDurationLike(n),i=j1(t);return mn.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let o,l;try{o=Ze.fromISO(r,n),l=o.isValid}catch{l=!1}let c,d;try{c=Ze.fromISO(i,n),d=c.isValid}catch{d=!1}if(l&&d)return mn.fromDateTimes(o,c);if(l){const f=wr.fromISO(i,n);if(f.isValid)return mn.after(o,f)}else if(d){const f=wr.fromISO(r,n);if(f.isValid)return mn.before(c,f)}}return mn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let i;return n!=null&&n.useLocaleWeeks?i=this.end.reconfigure({locale:r.locale}):i=this.end,i=i.startOf(t,n),Math.floor(i.diff(r,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?mn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(j1).filter(l=>this.contains(l)).sort((l,c)=>l.toMillis()-c.toMillis()),r=[];let{s:i}=this,o=0;for(;i<this.e;){const l=n[o]||this.e,c=+l>+this.e?this.e:l;r.push(mn.fromDateTimes(i,c)),i=c,o+=1}return r}splitBy(t){const n=wr.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,o;const l=[];for(;r<this.e;){const c=this.start.plus(n.mapUnits(d=>d*i));o=+c>+this.e?this.e:c,l.push(mn.fromDateTimes(r,o)),r=o,i+=1}return l}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:mn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return mn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],l)=>o?o.overlaps(l)||o.abutsStart(l)?[i,o.union(l)]:[i.concat([o]),l]:[i,l],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],o=t.map(d=>[{time:d.s,type:"s"},{time:d.e,type:"e"}]),l=Array.prototype.concat(...o),c=l.sort((d,f)=>d.time-f.time);for(const d of c)r+=d.type==="s"?1:-1,r===1?n=d.time:(n&&+n!=+d.time&&i.push(mn.fromDateTimes(n,d.time)),n=null);return mn.merge(i)}difference(...t){return mn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Xc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=YA,n={}){return this.isValid?Cr.create(this.s.loc.clone(n),t).formatInterval(this):Xc}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Xc}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Xc}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Xc}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Xc}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):wr.invalid(this.invalidReason)}mapEndpoints(t){return mn.fromDateTimes(t(this.s),t(this.e))}}class r3{static hasDST(t=gn.defaultZone){const n=Ze.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return ko.isValidZone(t)}static normalizeZone(t){return bs(t,gn.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||$t.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||$t.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||$t.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||$t.create(n,r,o)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||$t.create(n,r,o)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||$t.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||$t.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return $t.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return $t.create(n,null,"gregory").eras(t)}static features(){return{relative:UN(),localeWeek:YN()}}}function vR(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(wr.fromMillis(r).as("days"))}function Z1e(e,t,n){const r=[["years",(d,f)=>f.year-d.year],["quarters",(d,f)=>f.quarter-d.quarter+(f.year-d.year)*4],["months",(d,f)=>f.month-d.month+(f.year-d.year)*12],["weeks",(d,f)=>{const A=vR(d,f);return(A-A%7)/7}],["days",vR]],i={},o=e;let l,c;for(const[d,f]of r)n.indexOf(d)>=0&&(l=d,i[d]=f(e,t),c=o.plus(i),c>t?(i[d]--,e=o.plus(i),e>t&&(c=e,i[d]--,e=o.plus(i))):e=c);return[e,i,c,l]}function U1e(e,t,n,r){let[i,o,l,c]=Z1e(e,t,n);const d=t-i,f=n.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);f.length===0&&(l<t&&(l=i.plus({[c]:1})),l!==i&&(o[c]=(o[c]||0)+d/(l-i)));const A=wr.fromObject(o,r);return f.length>0?wr.fromMillis(d,r).shiftTo(...f).plus(A):A}const Y1e="missing Intl.DateTimeFormat.formatToParts support";function St(e,t=n=>n){return{regex:e,deser:([n])=>t(F0e(n))}}const yR="[ ]",bR=new RegExp(yR,"g");function J1e(e){return e.replace(/\./g,"\\.?").replace(bR,yR)}function CR(e){return e.replace(/\./g,"").replace(bR," ").toLowerCase()}function ma(e,t){return e===null?null:{regex:RegExp(e.map(J1e).join("|")),deser:([n])=>e.findIndex(r=>CR(n)===CR(r))+t}}function wR(e,t){return{regex:e,deser:([,n,r])=>e3(n,r),groups:t}}function i3(e){return{regex:e,deser:([t])=>t}}function X1e(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Q1e(e,t){const n=pa(t),r=pa(t,"{2}"),i=pa(t,"{3}"),o=pa(t,"{4}"),l=pa(t,"{6}"),c=pa(t,"{1,2}"),d=pa(t,"{1,3}"),f=pa(t,"{1,6}"),A=pa(t,"{1,9}"),g=pa(t,"{2,4}"),v=pa(t,"{4,6}"),y=I=>({regex:RegExp(X1e(I.val)),deser:([E])=>E,literal:!0}),S=(I=>{if(e.literal)return y(I);switch(I.val){case"G":return ma(t.eras("short"),0);case"GG":return ma(t.eras("long"),0);case"y":return St(f);case"yy":return St(g,mm);case"yyyy":return St(o);case"yyyyy":return St(v);case"yyyyyy":return St(l);case"M":return St(c);case"MM":return St(r);case"MMM":return ma(t.months("short",!0),1);case"MMMM":return ma(t.months("long",!0),1);case"L":return St(c);case"LL":return St(r);case"LLL":return ma(t.months("short",!1),1);case"LLLL":return ma(t.months("long",!1),1);case"d":return St(c);case"dd":return St(r);case"o":return St(d);case"ooo":return St(i);case"HH":return St(r);case"H":return St(c);case"hh":return St(r);case"h":return St(c);case"mm":return St(r);case"m":return St(c);case"q":return St(c);case"qq":return St(r);case"s":return St(c);case"ss":return St(r);case"S":return St(d);case"SSS":return St(i);case"u":return i3(A);case"uu":return i3(c);case"uuu":return St(n);case"a":return ma(t.meridiems(),0);case"kkkk":return St(o);case"kk":return St(g,mm);case"W":return St(c);case"WW":return St(r);case"E":case"c":return St(n);case"EEE":return ma(t.weekdays("short",!1),1);case"EEEE":return ma(t.weekdays("long",!1),1);case"ccc":return ma(t.weekdays("short",!0),1);case"cccc":return ma(t.weekdays("long",!0),1);case"Z":case"ZZ":return wR(new RegExp(`([+-]${c.source})(?::(${r.source}))?`),2);case"ZZZ":return wR(new RegExp(`([+-]${c.source})(${r.source})?`),2);case"z":return i3(/[a-z_+-/]{1,256}?/i);case" ":return i3(/[^\S\n\r]/);default:return y(I)}})(e)||{invalidReason:Y1e};return S.token=e,S}const K1e={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function q1e(e,t,n){const{type:r,value:i}=e;if(r==="literal"){const d=/^\s+$/.test(i);return{literal:!d,val:d?" ":i}}const o=t[r];let l=r;r==="hour"&&(t.hour12!=null?l=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?l="hour12":l="hour24":l=n.hour12?"hour12":"hour24");let c=K1e[l];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function $1e(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function e2e(e,t,n){const r=e.match(t);if(r){const i={};let o=1;for(const l in n)if(Vc(n,l)){const c=n[l],d=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(r.slice(o,o+d))),o+=d}return[r,i]}else return[r,{}]}function t2e(e){const t=o=>{switch(o){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 n=null,r;return Ke(e.z)||(n=ko.create(e.z)),Ke(e.Z)||(n||(n=new Nr(e.Z)),r=e.Z),Ke(e.q)||(e.M=(e.q-1)*3+1),Ke(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Ke(e.u)||(e.S=pm(e.u)),[Object.keys(e).reduce((o,l)=>{const c=t(l);return c&&(o[c]=e[l]),o},{}),n,r]}let Cm=null;function n2e(){return Cm||(Cm=Ze.fromMillis(1555555555555)),Cm}function r2e(e,t){if(e.literal)return e;const n=Cr.macroTokenToFormatOpts(e.val),r=ER(n,t);return r==null||r.includes(void 0)?e:r}function xR(e,t){return Array.prototype.concat(...e.map(n=>r2e(n,t)))}class SR{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=xR(Cr.parseFormat(n),t),this.units=this.tokens.map(r=>Q1e(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,i]=$1e(this.units);this.regex=RegExp(r,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){const[n,r]=e2e(t,this.regex,this.handlers),[i,o,l]=r?t2e(r):[null,null,void 0];if(Vc(r,"a")&&Vc(r,"H"))throw new Wc("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:i,zone:o,specificOffset:l}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function IR(e,t,n){return new SR(e,n).explainFromTokens(t)}function i2e(e,t,n){const{result:r,zone:i,specificOffset:o,invalidReason:l}=IR(e,t,n);return[r,i,o,l]}function ER(e,t){if(!e)return null;const r=Cr.create(t,e).dtFormatter(n2e()),i=r.formatToParts(),o=r.resolvedOptions();return i.map(l=>q1e(l,e,o))}const wm="Invalid DateTime",kR=864e13;function R1(e){return new ga("unsupported zone",`the zone "${e.name}" is not supported`)}function xm(e){return e.weekData===null&&(e.weekData=QA(e.c)),e.weekData}function Sm(e){return e.localWeekData===null&&(e.localWeekData=QA(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function xl(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ze({...n,...t,old:n})}function MR(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const o=n.offset(r);return i===o?[r,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function a3(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function o3(e,t,n){return MR($A(e),t,n)}function LR(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:r,month:i,day:Math.min(e.c.day,qA(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},l=wr.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),c=$A(o);let[d,f]=MR(c,n,e.zone);return l!==0&&(d+=l,f=e.zone.offset(d)),{ts:d,o:f}}function Qc(e,t,n,r,i,o){const{setZone:l,zone:c}=n;if(e&&Object.keys(e).length!==0||t){const d=t||c,f=Ze.fromObject(e,{...n,zone:d,specificOffset:o});return l?f:f.setZone(c)}else return Ze.invalid(new ga("unparsable",`the input "${i}" can't be parsed as ${r}`))}function s3(e,t,n=!0){return e.isValid?Cr.create($t.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Im(e,t,n){const r=e.c.year>9999||e.c.year<0;let i="";if(r&&e.c.year>=0&&(i+="+"),i+=En(e.c.year,r?6:4),n==="year")return i;if(t){if(i+="-",i+=En(e.c.month),n==="month")return i;i+="-"}else if(i+=En(e.c.month),n==="month")return i;return i+=En(e.c.day),i}function OR(e,t,n,r,i,o,l){let c=!n||e.c.millisecond!==0||e.c.second!==0,d="";switch(l){case"day":case"month":case"year":break;default:if(d+=En(e.c.hour),l==="hour")break;if(t){if(d+=":",d+=En(e.c.minute),l==="minute")break;c&&(d+=":",d+=En(e.c.second))}else{if(d+=En(e.c.minute),l==="minute")break;c&&(d+=En(e.c.second))}if(l==="second")break;c&&(!r||e.c.millisecond!==0)&&(d+=".",d+=En(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!o?d+="Z":e.o<0?(d+="-",d+=En(Math.trunc(-e.o/60)),d+=":",d+=En(Math.trunc(-e.o%60))):(d+="+",d+=En(Math.trunc(e.o/60)),d+=":",d+=En(Math.trunc(e.o%60)))),o&&(d+="["+e.zone.ianaName+"]"),d}const PR={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},a2e={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},o2e={ordinal:1,hour:0,minute:0,second:0,millisecond:0},l3=["year","month","day","hour","minute","second","millisecond"],s2e=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],l2e=["year","ordinal","hour","minute","second","millisecond"];function c3(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new aN(e);return t}function TR(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return c3(e)}}function c2e(e){if(F1===void 0&&(F1=gn.now()),e.type!=="iana")return e.offset(F1);const t=e.name;let n=Em.get(t);return n===void 0&&(n=e.offset(F1),Em.set(t,n)),n}function DR(e,t){const n=bs(t.zone,gn.defaultZone);if(!n.isValid)return Ze.invalid(R1(n));const r=$t.fromObject(t);let i,o;if(Ke(e.year))i=gn.now();else{for(const d of l3)Ke(e[d])&&(e[d]=PR[d]);const l=_N(e)||ZN(e);if(l)return Ze.invalid(l);const c=c2e(n);[i,o]=o3(e,c,n)}return new Ze({ts:i,zone:n,loc:r,o})}function BR(e,t,n){const r=Ke(n.round)?!0:n.round,i=Ke(n.rounding)?"trunc":n.rounding,o=(c,d)=>(c=gm(c,r||n.calendary?0:2,n.calendary?"round":i),t.loc.clone(n).relFormatter(n).format(c,d)),l=c=>n.calendary?t.hasSame(e,c)?0:t.startOf(c).diff(e.startOf(c),c).get(c):t.diff(e,c).get(c);if(n.unit)return o(l(n.unit),n.unit);for(const c of n.units){const d=l(c);if(Math.abs(d)>=1)return o(d,c)}return o(e>t?-0:0,n.units[n.units.length-1])}function NR(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let F1;const Em=new Map;class Ze{constructor(t){const n=t.zone||gn.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new ga("invalid input"):null)||(n.isValid?null:R1(n));this.ts=Ke(t.ts)?gn.now():t.ts;let i=null,o=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,o]=[t.old.c,t.old.o];else{const c=Cs(t.o)&&!t.old?t.o:n.offset(this.ts);i=a3(this.ts,c),r=Number.isNaN(i.year)?new ga("invalid input"):null,i=r?null:i,o=r?null:c}this._zone=n,this.loc=t.loc||$t.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new Ze({})}static local(){const[t,n]=NR(arguments),[r,i,o,l,c,d,f]=n;return DR({year:r,month:i,day:o,hour:l,minute:c,second:d,millisecond:f},t)}static utc(){const[t,n]=NR(arguments),[r,i,o,l,c,d,f]=n;return t.zone=Nr.utcInstance,DR({year:r,month:i,day:o,hour:l,minute:c,second:d,millisecond:f},t)}static fromJSDate(t,n={}){const r=H0e(t)?t.valueOf():NaN;if(Number.isNaN(r))return Ze.invalid("invalid input");const i=bs(n.zone,gn.defaultZone);return i.isValid?new Ze({ts:r,zone:i,loc:$t.fromObject(n)}):Ze.invalid(R1(i))}static fromMillis(t,n={}){if(Cs(t))return t<-kR||t>kR?Ze.invalid("Timestamp out of range"):new Ze({ts:t,zone:bs(n.zone,gn.defaultZone),loc:$t.fromObject(n)});throw new br(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Cs(t))return new Ze({ts:t*1e3,zone:bs(n.zone,gn.defaultZone),loc:$t.fromObject(n)});throw new br("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=bs(n.zone,gn.defaultZone);if(!r.isValid)return Ze.invalid(R1(r));const i=$t.fromObject(n),o=t3(t,TR),{minDaysInFirstWeek:l,startOfWeek:c}=GN(o,i),d=gn.now(),f=Ke(n.specificOffset)?r.offset(d):n.specificOffset,A=!Ke(o.ordinal),g=!Ke(o.year),v=!Ke(o.month)||!Ke(o.day),y=g||v,w=o.weekYear||o.weekNumber;if((y||A)&&w)throw new Wc("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&A)throw new Wc("Can't mix ordinal dates with month/day");const S=w||o.weekday&&!y;let I,E,M=a3(d,f);S?(I=s2e,E=a2e,M=QA(M,l,c)):A?(I=l2e,E=o2e,M=Am(M)):(I=l3,E=PR);let L=!1;for(const X of I){const N=o[X];Ke(N)?L?o[X]=E[X]:o[X]=M[X]:L=!0}const T=S?z0e(o,l,c):A?W0e(o):_N(o),P=T||ZN(o);if(P)return Ze.invalid(P);const j=S?VN(o,l,c):A?HN(o):o,[B,W]=o3(j,f,r),_=new Ze({ts:B,zone:r,o:W,loc:i});return o.weekday&&y&&t.weekday!==_.weekday?Ze.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${_.toISO()}`):_.isValid?_:Ze.invalid(_.invalid)}static fromISO(t,n={}){const[r,i]=P1e(t);return Qc(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=T1e(t);return Qc(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=D1e(t);return Qc(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(Ke(t)||Ke(n))throw new br("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:o=null}=r,l=$t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,d,f,A]=i2e(l,t,n);return A?Ze.invalid(A):Qc(c,d,r,`format ${n}`,t,f)}static fromString(t,n,r={}){return Ze.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=W1e(t);return Qc(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new br("need to specify a reason the DateTime is invalid");const r=t instanceof ga?t:new ga(t,n);if(gn.throwOnInvalid)throw new A0e(r);return new Ze({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=ER(t,$t.fromObject(n));return r?r.map(i=>i?i.val:null).join(""):null}static expandFormat(t,n={}){return xR(Cr.parseFormat(t),$t.fromObject(n)).map(i=>i.val).join("")}static resetCache(){F1=void 0,Em.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?xm(this).weekYear:NaN}get weekNumber(){return this.isValid?xm(this).weekNumber:NaN}get weekday(){return this.isValid?xm(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Sm(this).weekday:NaN}get localWeekNumber(){return this.isValid?Sm(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Sm(this).weekYear:NaN}get ordinal(){return this.isValid?Am(this.c).ordinal:NaN}get monthShort(){return this.isValid?r3.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?r3.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?r3.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?r3.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=$A(this.c),i=this.zone.offset(r-t),o=this.zone.offset(r+t),l=this.zone.offset(r-i*n),c=this.zone.offset(r-o*n);if(l===c)return[this];const d=r-l*n,f=r-c*n,A=a3(d,l),g=a3(f,c);return A.hour===g.hour&&A.minute===g.minute&&A.second===g.second&&A.millisecond===g.millisecond?[xl(this,{ts:d}),xl(this,{ts:f})]:[this]}get isInLeapYear(){return P1(this.year)}get daysInMonth(){return qA(this.year,this.month)}get daysInYear(){return this.isValid?Hc(this.year):NaN}get weeksInWeekYear(){return this.isValid?T1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?T1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:i}=Cr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(Nr.instance(t),n)}toLocal(){return this.setZone(gn.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=bs(t,gn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const o=t.offset(this.ts),l=this.toObject();[i]=o3(l,o,t)}return xl(this,{ts:i,zone:t})}else return Ze.invalid(R1(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return xl(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=t3(t,TR),{minDaysInFirstWeek:r,startOfWeek:i}=GN(n,this.loc),o=!Ke(n.weekYear)||!Ke(n.weekNumber)||!Ke(n.weekday),l=!Ke(n.ordinal),c=!Ke(n.year),d=!Ke(n.month)||!Ke(n.day),f=c||d,A=n.weekYear||n.weekNumber;if((f||l)&&A)throw new Wc("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&l)throw new Wc("Can't mix ordinal dates with month/day");let g;o?g=VN({...QA(this.c,r,i),...n},r,i):Ke(n.ordinal)?(g={...this.toObject(),...n},Ke(n.day)&&(g.day=Math.min(qA(g.year,g.month),g.day))):g=HN({...Am(this.c),...n});const[v,y]=o3(g,this.o,this.zone);return xl(this,{ts:v,o:y})}plus(t){if(!this.isValid)return this;const n=wr.fromDurationLike(t);return xl(this,LR(this,n))}minus(t){if(!this.isValid)return this;const n=wr.fromDurationLike(t).negate();return xl(this,LR(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},i=wr.normalizeUnit(t);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")if(n){const o=this.loc.getStartOfWeek(),{weekday:l}=this;l<o&&(r.weekNumber=this.weekNumber-1),r.weekday=o}else r.weekday=1;if(i==="quarters"){const o=Math.ceil(this.month/3);r.month=(o-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?Cr.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):wm}toLocaleString(t=YA,n={}){return this.isValid?Cr.create(this.loc.clone(n),t).formatDateTime(this):wm}toLocaleParts(t={}){return this.isValid?Cr.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:o=!1,precision:l="milliseconds"}={}){if(!this.isValid)return null;l=c3(l);const c=t==="extended";let d=Im(this,c,l);return l3.indexOf(l)>=3&&(d+="T"),d+=OR(this,c,n,r,i,o,l),d}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?Im(this,t==="extended",c3(n)):null}toISOWeekDate(){return s3(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:o=!1,format:l="extended",precision:c="milliseconds"}={}){return this.isValid?(c=c3(c),(i&&l3.indexOf(c)>=3?"T":"")+OR(this,l==="extended",n,t,r,o,c)):null}toRFC2822(){return s3(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return s3(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Im(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(r&&(i+=" "),n?i+="z":t&&(i+="ZZ")),s3(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():wm}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return wr.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},o=G0e(n).map(wr.normalizeUnit),l=t.valueOf()>this.valueOf(),c=l?this:t,d=l?t:this,f=U1e(c,d,o,i);return l?f.negate():f}diffNow(t="milliseconds",n={}){return this.diff(Ze.now(),t,n)}until(t){return this.isValid?mn.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(n,r)<=i&&i<=o.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Ze.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),BR(n,this.plus(r),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?BR(t.base||Ze.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Ze.isDateTime))throw new br("min requires all arguments be DateTimes");return JN(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Ze.isDateTime))throw new br("max requires all arguments be DateTimes");return JN(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:o=null}=r,l=$t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return IR(l,t,n)}static fromStringExplain(t,n,r={}){return Ze.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:i=null}=n,o=$t.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return new SR(o,t)}static fromFormatParser(t,n,r={}){if(Ke(t)||Ke(n))throw new br("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:o=null}=r,l=$t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!l.equals(n.locale))throw new br(`fromFormatParser called with a locale of ${l}, but the format parser was created for ${n.locale}`);const{result:c,zone:d,specificOffset:f,invalidReason:A}=n.explainFromTokens(t);return A?Ze.invalid(A):Qc(c,d,r,`format ${n.format}`,t,f)}static get DATE_SHORT(){return YA}static get DATE_MED(){return oN}static get DATE_MED_WITH_WEEKDAY(){return g0e}static get DATE_FULL(){return sN}static get DATE_HUGE(){return lN}static get TIME_SIMPLE(){return cN}static get TIME_WITH_SECONDS(){return uN}static get TIME_WITH_SHORT_OFFSET(){return dN}static get TIME_WITH_LONG_OFFSET(){return fN}static get TIME_24_SIMPLE(){return AN}static get TIME_24_WITH_SECONDS(){return hN}static get TIME_24_WITH_SHORT_OFFSET(){return pN}static get TIME_24_WITH_LONG_OFFSET(){return gN}static get DATETIME_SHORT(){return mN}static get DATETIME_SHORT_WITH_SECONDS(){return vN}static get DATETIME_MED(){return yN}static get DATETIME_MED_WITH_SECONDS(){return bN}static get DATETIME_MED_WITH_WEEKDAY(){return m0e}static get DATETIME_FULL(){return CN}static get DATETIME_FULL_WITH_SECONDS(){return wN}static get DATETIME_HUGE(){return xN}static get DATETIME_HUGE_WITH_SECONDS(){return SN}}function j1(e){if(Ze.isDateTime(e))return e;if(e&&e.valueOf&&Cs(e.valueOf()))return Ze.fromJSDate(e);if(e&&typeof e=="object")return Ze.fromObject(e);throw new br(`Unknown datetime argument: ${e}, of type ${typeof e}`)}//! moment.js
|
|
1477
|
+
`,Iue=e=>{var o;const{children:t,...n}=e,r=(o=n.selectProps)==null?void 0:o.icon,i=n.hasValue;return p.jsxs(p.Fragment,{children:[r&&p.jsx(Sue,{className:"inputIcon",hasValue:i,children:p.jsx(lt,{icon:r})}),p.jsx(Jr.components.ValueContainer,{...n,children:t})]})},Eue=e=>{const t=e.getStyles("option",e),{data:n,selectOption:r,innerProps:i}=e,o=C.useCallback(()=>r(n),[n,r]);return p.jsx("div",{style:t,onClick:o,onMouseOver:i.onMouseOver,onMouseMove:i.onMouseMove,children:e.label})},kue=C.memo(Eue,(e,t)=>{var n,r;return e.isFocused===t.isFocused&&((n=e.data)==null?void 0:n.label)===((r=t.data)==null?void 0:r.label)}),Mue={control:(e,{selectProps:t,theme:n,isFocused:r,isDisabled:i})=>{const o=n.colors;return{...e,borderColor:t.isInvalid?o.primary:r?o.inputTextColor:o.inputBorderColor,backgroundColor:i?o.menuHoverBackgroundColor:o.whiteBackgroundColor,boxShadow:n.focusBoxShadow,borderRadius:n.borderRadius,"& input":{fontWeight:n.textWeightNormal,fontFamily:n.font},"&:hover":{...e["&:hover"]??{},borderColor:o.inputBorderHoverColor},fontSize:"14px",minWidth:"min-content",".inputIcon":{color:i?o.defaultControlColor:t.value?o.inputTextColor:o.defaultControlColor}}},valueContainer:(e,{theme:t})=>({...e,width:"50px",flexWrap:t.flexWrap}),singleValue:(e,{selectProps:t,theme:n,isDisabled:r})=>({...e,position:"absolute",top:"50%",transform:"translateY(-50%)",color:t.isInvalid?n.colors.primary:r?n.colors.disabledTextColor:n.colors.inputTextColor,fontSize:"14px",fontWeight:n.textWeightNormal}),multiValue:(e,t)=>{const{theme:n}=t;return{...e,color:n.colors.inputTextColor,fontWeight:n.textWeightNormal,backgroundColor:"#E7EBEF",borderRadius:"4px","& svg":{color:n.colors.inputTextColor}," > div":{fontSize:"12px"}}},multiValueLabel:e=>({...e,fontSize:"unset",padding:"5px"}),multiValueRemove:(e,{theme:t})=>({...e,color:t.colors.inputBorderColor}),placeholder:(e,t)=>{const{theme:n,selectProps:r}=t;return{...e,fontSize:"14px",fontWeight:n.textWeightNormal,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"calc(100% - 8px)",color:r.isDarkPlaceholderText?n.colors.inputTextColor:n.colors.placeholderTextColor}},loadingMessage:(e,{theme:t})=>({...e,color:t.colors.optionTextColor}),noOptionsMessage:(e,{theme:t})=>({...e,color:t.colors.optionTextColor}),input:(e,{theme:t})=>({...e,color:t.colors.inputTextColor}),option:(e,{isSelected:t,theme:n,isDisabled:r,selectProps:i})=>{const o=n.colors.optionTextColor;return{color:t?n.colors.primary:o,backgroundColor:t?n.colors.activeOptionBackground:void 0,fontWeight:n.textWeightNormal,fontSize:"14px",cursor:r?"default":"pointer",display:"flex",flexDirection:"row",alignItems:"center",padding:"7px 10px",minHeight:"36px",marginRight:"4px",marginBottom:"2px",lineHeight:"22px",borderRadius:V.radius("ml")({theme:i==null?void 0:i.systemTheme}),"&:hover":{backgroundColor:t?n.colors.hoverToActiveOptionBackground:r?void 0:n.colors.menuHoverBackgroundColor}}},menu:(e,t)=>{const{theme:n}=t;return{...e,boxShadow:"0 2px 20px 0 rgba(0, 0, 0, 0.10);",marginTop:"4px",paddingTop:"0",borderRadius:"10px",zIndex:3,minWidth:"max-content",backgroundColor:n.colors.whiteBackgroundColor}},menuList:(e,{theme:t})=>({...e,margin:"8px 4px 8px 8px","::-webkit-scrollbar-thumb":{border:"none",borderRadius:"4px",height:"47px",backgroundColor:t.colors.defaultControlColor,"&:hover":{backgroundColor:t.colors.dropdownIndicatorColor}},"::-webkit-scrollbar":{width:"10px"},"::-webkit-scrollbar-track":{backgroundColor:t.colors.menuHoverBackgroundColor,borderRadius:"6px"}}),dropdownIndicator:(e,t)=>{const{theme:n,isDisabled:r}=t;return{...e,justifyContent:"center",alignItems:"center","& svg":{stroke:r?n.colors.dropdownIndicatorColor:n.colors.inputTextColor},padding:"0px 5px 0px 0px","@media (min-width: 1024px)":{padding:"0px 10px 0px 1px"}}},clearIndicator:(e,t)=>{const{theme:n}=t;return{...e,justifyContent:"center",alignItems:"center",padding:n.narrowIndicators?"0px 4px 0px 0px":"0px 4px",color:n.colors.dropdownIndicatorColor}},indicatorSeparator:()=>({display:"none"})},Lue=(e,t,n)=>{const r=V.color("blue2")({theme:e}),i={primary:V.color("red1")({theme:e}),inputTextColor:r,whiteBackgroundColor:V.color("white")({theme:e}),optionTextColor:V.color("blue2")({theme:e}),menuHoverBackgroundColor:V.color("bgLightGray1")({theme:e}),inputDisabledColor:V.color("lightGray1")({theme:e}),inputBorderColor:V.color("lightGray3")({theme:e}),placeholderTextColor:V.color("lightGray3")({theme:e}),defaultControlColor:V.color("lightGray5")({theme:e}),disabledTextColor:V.color("lightGray6")({theme:e}),dropdownIndicatorColor:V.color("gray1")({theme:e}),inputBorderHoverColor:V.color("gray5")({theme:e}),activeOptionBackground:V.color("red20")({theme:e}),hoverToActiveOptionBackground:V.color("red30")({theme:e})};return o=>({...o,colors:i,focusBoxShadow:null,height:"38px",flexWrap:n?"nowrap":"wrap",textWeightNormal:V.fontWeight("normal")({theme:e}),optionVariant:t,borderRadius:V.radius("lg")({theme:e}),font:V.font("primary")({theme:e}),narrowIndicators:!!n})},JB=(e="form",t="default",n="default",r="default",i=!1,o=!1,l=!1)=>{const c=ut();return C.useMemo(()=>{const d={ValueContainer:Iue};d.DropdownIndicator=xue,n==="count"&&(d.MultiValue=bue),r==="search"&&(d.DropdownIndicator=null),(l||o)&&(d.MenuList=vue),d.Input=Cue;const f=Lue(c,t,e=="gridFilter"),A=Mue;return d.Option=Aue,i&&(d.Option=kue),[d,f,A]},[n,r,l,o,e,i,c,t])},XB=[],Oue=()=>Re._({id:"select.noOptions",message:"no options"}),Pue=()=>Re._({id:"components.dropdown.loading",message:"Loading..."}),UA=({label:e,name:t,value:n="",options:r=XB,defaultOptions:i,loadOptions:o,onChange:l,onBlur:c,error:d,isInvalid:f,isLoading:A,isDarkPlaceholderText:g,spaceAround:v=!1,disabled:y,onInputChange:w,isSearchable:S,isMulti:I,className:E,useSimplifiedOptions:M=!1,showSelectAllButton:L=!1,showResetGridButton:T=!1,shortValues:P=!0,style:j,optionVariant:B,multiLabelVariant:W,containerVariant:_,placeholder:X,placeholderIcon:N,innerRef:H,maxMenuHeight:ee,getOptionValue:oe,resetGrid:ie,...q})=>{const ce=!!o;L&&!I&&console.error("CheckboxSelect incompatible props");const ge=C.useCallback(()=>{l==null||l(r||[])},[l,r]),fe=C.useCallback(()=>{typeof l=="function"&&(l==null||l(XB))},[l]),Y=_==="search"?"search":N||void 0,z=T&&L&&ee?ee-30:ee,[$,ae,ue]=JB(j,B,W,_,M,L,T),se=ce?ZB:oue;let Q;const re=C.useMemo(()=>oe||(ye=>ye==null?void 0:ye.value),[oe]);Array.isArray(n)?(Q=(i||r).filter(ye=>n.includes(re(ye))),Q=Q!=null&&Q.length?Q:null):n!==void 0&&(Q=(i||r).find(ye=>re(ye)===n)||null);const le=ut(),pe=C.useMemo(()=>o?async ye=>await o(ye):void 0,[o]);return p.jsxs(ms,{spaceAround:v,className:E,children:[p.jsxs(_B,{children:[e&&p.jsx(Nc,{htmlFor:t,children:e}),p.jsx(se,{id:t,name:t,options:r,loadOptions:pe,defaultOptions:i,value:Q,onChange:l,onBlur:c,isDisabled:y||A,isLoading:A,isInvalid:f!==void 0?f:!!d,isDarkPlaceholderText:g,placeholder:X||Re._({id:"components.dropdown.placeholder",message:"Select..."}),styles:ue,theme:ae,icon:Y,hideSelectedOptions:!!(I&&W!="count"),onInputChange:w,isSearchable:ce||S,isMulti:I,classNamePrefix:"react-select",components:$,closeMenuOnSelect:I?!1:void 0,noOptionsMessage:Oue,...q,ref:H,tabIndex:null,systemTheme:le,resetGrid:ie,onCustomSelectAll:ge,onCustomDeselectAll:fe,selectAllButton:L,resetGridButton:T,maxMenuHeight:z,getOptionValue:oe,loadingMessage:Pue,shortValues:P})]}),d&&p.jsx(C1,{children:d})]})};let Tue=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var H7,QB;function Due(){if(QB)return H7;QB=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return H7=e,H7}var G7,KB;function Bue(){if(KB)return G7;KB=1;function e(t,n,r){var i=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(o);++i<o;)l[i]=t[i+n];return l}return G7=e,G7}var _7,qB;function Nue(){if(qB)return _7;qB=1;var e=Wg(),t=Bue();function n(r,i){return i.length<2?r:e(r,t(i,0,-1))}return _7=n,_7}var Z7,$B;function Rue(){if($B)return Z7;$B=1;var e=$f(),t=Due(),n=Nue(),r=Lc();function i(o,l){return l=e(l,o),o=n(o,l),o==null||delete o[r(t(l))]}return Z7=i,Z7}var U7,eN;function Fue(){if(eN)return U7;eN=1;var e=eD();function t(n){return e(n)?void 0:n}return U7=t,U7}var Y7,tN;function nN(){if(tN)return Y7;tN=1;var e=Bg(),t=$8(),n=Rue(),r=$f(),i=v1(),o=Fue(),l=oD(),c=zT(),d=1,f=2,A=4,g=l(function(v,y){var w={};if(v==null)return w;var S=!1;y=e(y,function(E){return E=r(E,v),S||(S=E.length>1),E}),i(v,c(v),w),S&&(w=t(w,d|f|A,o));for(var I=y.length;I--;)n(w,y[I]);return w});return Y7=g,Y7}var jue=s7,rN=jue("omit",nN());rN.placeholder=fA();var zue=rN;const Wue=Hn(zue),J7=`_create_${Tue()}_`,Vue=Jr.createFilter(),Hue=(e,t)=>(e==null?void 0:e.value)==J7?!0:Vue(e,t),X7=e=>e===null?null:Array.isArray(e)?e.map(t=>t.value):e.value,Gue=()=>Re._({id:"components.dropdown.loading",message:"Loading..."}),Q7=e=>{const{name:t,onChange:n,onBlur:r,onValueChange:i,loadOptions:o,asyncLoadMinChars:l=0,isLocked:c,lockedText:d=Re._({id:"components.dropdown.notReact",message:"Select related values first..."}),disabled:f,placeholder:A=Re._({id:"components.dropdown.placeholder",message:"Select..."}),preload:g,initialOptions:v,onCreateOption:y,options:w,filterOption:S,shouldReloadOptions:I=!1}=e,[E,M]=C.useState(!1),L=!!o||!!y,T=C.useCallback(q=>o?q.length<l?Re._({id:"components.dropdown.writeMoreChars",message:"Write at least ${asyncLoadMinChars} characters."}):Re._({id:"dataGrid.filterCell",message:"Type to filter"}):Re._({id:"components.dropdown.noOptions",message:"No options"}),[o,l]),P=C.useCallback(async q=>y?q.trim()?await Promise.resolve([...w||[],{value:J7,label:`${q} (${Re._({id:"components.dropdown.newOption",message:"new value"})})`,inputValue:q}]):await Promise.resolve(w||[]):!o||q.length<l?await Promise.resolve([]):await o(q,!1),[y,o,l,w]),[j,B]=C.useState(w||[]);C.useEffect(()=>{o&&g&&!e.value&&o("",!1).then(B)},[o]);const[W,_]=C.useState(null);C.useEffect(()=>{if(v&&v.length){const q=v.find(ce=>ce.value==e.value)||null;_(q)}o&&!v&&e.value&&o(String(e.value),!0).then(q=>{_((q==null?void 0:q[0])||null)})},[v,_]),C.useEffect(()=>{I&&B(w||[])},[w]);const X=C.useCallback(async q=>{var ge,fe,Y;let ce;if(y&&(q==null?void 0:q.value)==J7)if(q!=null&&q.inputValue&&((fe=(ge=q==null?void 0:q.inputValue)==null?void 0:ge.trim())==null?void 0:fe.length)<2){e==null||e.form.setFieldTouched(t,!0,!0),e==null||e.form.setFieldError(t,Re._({id:"form.general.min2Chars",message:"Minimal length is 2 characters."}));return}else{M(!0);const z=await y(((Y=q==null?void 0:q.inputValue)==null?void 0:Y.trim())??"");ce=X7(z),M(!1)}else ce=X7(q),o&&_(q);n&&n({target:{name:t??"",type:"change",value:ce}}),i&&i(ce)},[y,o,n,i,e==null?void 0:e.form,t]),N=C.useCallback(q=>{r&&r({target:{name:t,type:"blur",value:X7(q)}})},[t,r]),H=["onValueChange","placeholder","options","loadOptions","asyncLoadMinChars"],oe=c&&!f?d:A,ie=C.useMemo(()=>{if(!L)return;const q=y?w:j;return W?q?[...q,W]:[W]:q||void 0},[L,j,y,w,W]);return p.jsx(UA,{...Wue(H,e),filterOption:S||Hue,disabled:f||c,onChange:X,onBlur:N,placeholder:oe,loadingMessage:Gue,noOptionsMessage:T,loadOptions:L?P:void 0,containerVariant:L?"search":void 0,defaultOptions:ie,options:L?void 0:w,isLoading:E||e.isLoading})},K7=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&t!==null&&"label"in t&&"value"in t);function _ue(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var Zue=_ue,q7=gO(),Uue=WP,Yue=rg,Jue=1/0,Xue=q7&&1/Yue(new q7([,-0]))[1]==Jue?function(e){return new q7(e)}:Uue,Que=Xue,Kue=zL,que=nT,$ue=Zue,e0e=WL,t0e=Que,n0e=rg,r0e=200;function i0e(e,t,n){var r=-1,i=que,o=e.length,l=!0,c=[],d=c;if(n)l=!1,i=$ue;else if(o>=r0e){var f=t?null:t0e(e);if(f)return n0e(f);l=!1,i=e0e,d=new Kue}else d=t?[]:c;e:for(;++r<o;){var A=e[r],g=t?t(A):A;if(A=n||A!==0?A:0,l&&g===g){for(var v=d.length;v--;)if(d[v]===g)continue e;t&&d.push(g),c.push(A)}else i(d,g,n)||(d!==c&&d.push(g),c.push(A))}return c}var a0e=i0e,o0e=nA,s0e=a0e;function l0e(e,t){return e&&e.length?s0e(e,o0e(t)):[]}var c0e=l0e;const u0e=Hn(c0e),iN=({onChange:e,isMulti:t,value:n,options:r,checkAllButton:i,asyncLoadKey:o,onAsyncLoadFilterOptions:l})=>{const[c,d]=C.useState([]),f=C.useCallback(v=>{e==null||e(!uQ(v)||!(v!=null&&v.length)?null:v)},[e]),A=!!o,g=C.useCallback(async v=>{let y=[];return o&&(y=await(l==null?void 0:l(o,v))||[]),d(y),y},[r]);if(t){const v=A&&K7(n)?u0e([...c,...n],"value"):void 0;return p.jsx(UA,{maxMenuHeight:250,onChange:f,value:K7(n)?n.map(y=>String(y.value)):n,options:A&&K7(n)?v:r,showSelectAllButton:i,style:"gridFilter",loadOptions:A?g:void 0,defaultOptions:v,placeholder:A?Re._({id:"dataGrid.filterCell",message:"Type to filter"}):void 0,noOptionsMessage:()=>null,containerVariant:A?"search":void 0,optionVariant:"checkbox",multiLabelVariant:"count",isMulti:!0})}return p.jsx(Q7,{maxMenuHeight:250,onChange:e,value:n,options:r,style:"gridFilter",loadOptions:A?g:void 0,placeholder:A?Re._({id:"dataGrid.filterCell",message:"Type to filter"}):void 0,isClearable:!0})},d0e=()=>[{value:"",label:Re._({id:"dataGrid.columnActive.filterOptions.all",message:"All"})},{value:"1",label:Re._({id:"dataGrid.columnActive.filterOptions.yes",message:"Yes"})},{value:"0",label:Re._({id:"dataGrid.columnActive.filterOptions.no",message:"No"})}],f0e=e=>{const t=C.useMemo(()=>d0e(),[]);return p.jsx(iN,{options:t,...e})};class bl extends Error{}class A0e extends bl{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class h0e extends bl{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class p0e extends bl{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Wc extends bl{}class aN extends bl{constructor(t){super(`Invalid unit ${t}`)}}class br extends bl{}class ys extends bl{constructor(){super("Zone is an abstract class")}}const Pe="numeric",ha="short",bi="long",YA={year:Pe,month:Pe,day:Pe},oN={year:Pe,month:ha,day:Pe},g0e={year:Pe,month:ha,day:Pe,weekday:ha},sN={year:Pe,month:bi,day:Pe},lN={year:Pe,month:bi,day:Pe,weekday:bi},cN={hour:Pe,minute:Pe},uN={hour:Pe,minute:Pe,second:Pe},dN={hour:Pe,minute:Pe,second:Pe,timeZoneName:ha},fN={hour:Pe,minute:Pe,second:Pe,timeZoneName:bi},AN={hour:Pe,minute:Pe,hourCycle:"h23"},hN={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23"},pN={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23",timeZoneName:ha},gN={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23",timeZoneName:bi},mN={year:Pe,month:Pe,day:Pe,hour:Pe,minute:Pe},vN={year:Pe,month:Pe,day:Pe,hour:Pe,minute:Pe,second:Pe},yN={year:Pe,month:ha,day:Pe,hour:Pe,minute:Pe},bN={year:Pe,month:ha,day:Pe,hour:Pe,minute:Pe,second:Pe},m0e={year:Pe,month:ha,day:Pe,weekday:ha,hour:Pe,minute:Pe},CN={year:Pe,month:bi,day:Pe,hour:Pe,minute:Pe,timeZoneName:ha},wN={year:Pe,month:bi,day:Pe,hour:Pe,minute:Pe,second:Pe,timeZoneName:ha},xN={year:Pe,month:bi,day:Pe,weekday:bi,hour:Pe,minute:Pe,timeZoneName:bi},SN={year:Pe,month:bi,day:Pe,weekday:bi,hour:Pe,minute:Pe,second:Pe,timeZoneName:bi};class L1{get type(){throw new ys}get name(){throw new ys}get ianaName(){return this.name}get isUniversal(){throw new ys}offsetName(t,n){throw new ys}formatOffset(t,n){throw new ys}offset(t){throw new ys}equals(t){throw new ys}get isValid(){throw new ys}}let $7=null;class JA extends L1{static get instance(){return $7===null&&($7=new JA),$7}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return QN(t,n,r)}formatOffset(t,n){return D1(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const em=new Map;function v0e(e){let t=em.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),em.set(e,t)),t}const y0e={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function b0e(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,o,l,c,d,f,A]=r;return[l,i,o,c,d,f,A]}function C0e(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:o,value:l}=n[i],c=y0e[o];o==="era"?r[c]=l:Ke(c)||(r[c]=parseInt(l,10))}return r}const tm=new Map;class ko extends L1{static create(t){let n=tm.get(t);return n===void 0&&tm.set(t,n=new ko(t)),n}static resetCache(){tm.clear(),em.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=ko.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return QN(t,n,r,this.name)}formatOffset(t,n){return D1(this.offset(t),n)}offset(t){if(!this.valid)return NaN;const n=new Date(t);if(isNaN(n))return NaN;const r=v0e(this.name);let[i,o,l,c,d,f,A]=r.formatToParts?C0e(r,n):b0e(r,n);c==="BC"&&(i=-Math.abs(i)+1);const v=$A({year:i,month:o,day:l,hour:d===24?0:d,minute:f,second:A,millisecond:0});let y=+n;const w=y%1e3;return y-=w>=0?w:1e3+w,(v-y)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let IN={};function w0e(e,t={}){const n=JSON.stringify([e,t]);let r=IN[n];return r||(r=new Intl.ListFormat(e,t),IN[n]=r),r}const nm=new Map;function rm(e,t={}){const n=JSON.stringify([e,t]);let r=nm.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),nm.set(n,r)),r}const im=new Map;function x0e(e,t={}){const n=JSON.stringify([e,t]);let r=im.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),im.set(n,r)),r}const am=new Map;function S0e(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let o=am.get(i);return o===void 0&&(o=new Intl.RelativeTimeFormat(e,t),am.set(i,o)),o}let O1=null;function I0e(){return O1||(O1=new Intl.DateTimeFormat().resolvedOptions().locale,O1)}const om=new Map;function EN(e){let t=om.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),om.set(e,t)),t}const sm=new Map;function E0e(e){let t=sm.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...kN,...t}),sm.set(e,t)}return t}function k0e(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,i;try{r=rm(e).resolvedOptions(),i=e}catch{const d=e.substring(0,n);r=rm(d).resolvedOptions(),i=d}const{numberingSystem:o,calendar:l}=r;return[i,o,l]}}function M0e(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function L0e(e){const t=[];for(let n=1;n<=12;n++){const r=Ze.utc(2009,n,1);t.push(e(r))}return t}function O0e(e){const t=[];for(let n=1;n<=7;n++){const r=Ze.utc(2016,11,13+n);t.push(e(r))}return t}function XA(e,t,n,r){const i=e.listingMode();return i==="error"?null:i==="en"?n(t):r(t)}function P0e(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||EN(e.locale).numberingSystem==="latn"}class T0e{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:o,...l}=r;if(!n||Object.keys(l).length>0){const c={useGrouping:!1,...r};r.padTo>0&&(c.minimumIntegerDigits=r.padTo),this.inf=x0e(t,c)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):gm(t,3);return En(n,this.padTo)}}}class D0e{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const l=-1*(t.offset/60),c=l>=0?`Etc/GMT+${l}`:`Etc/GMT${l}`;t.offset!==0&&ko.create(c).valid?(i=c,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=rm(n,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class B0e{constructor(t,n,r){this.opts={style:"long",...r},!n&&UN()&&(this.rtf=S0e(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):n1e(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const kN={firstDay:1,minimalDays:4,weekend:[6,7]};let $t=class Af{static fromOpts(t){return Af.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,i,o=!1){const l=t||gn.defaultLocale,c=l||(o?"en-US":I0e()),d=n||gn.defaultNumberingSystem,f=r||gn.defaultOutputCalendar,A=hm(i)||gn.defaultWeekSettings;return new Af(c,d,f,A,l)}static resetCache(){O1=null,nm.clear(),im.clear(),am.clear(),om.clear(),sm.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return Af.create(t,n,r,i)}constructor(t,n,r,i,o){const[l,c,d]=k0e(t);this.locale=l,this.numberingSystem=n||c||null,this.outputCalendar=r||d||null,this.weekSettings=i,this.intl=M0e(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=P0e(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Af.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,hm(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return XA(this,t,$N,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const i=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";if(!this.monthsCache[o][t]){const l=r?c=>this.dtFormatter(c,i).format():c=>this.extract(c,i,"month");this.monthsCache[o][t]=L0e(l)}return this.monthsCache[o][t]})}weekdays(t,n=!1){return XA(this,t,nR,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=n?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=O0e(o=>this.extract(o,r,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return XA(this,void 0,()=>rR,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ze.utc(2016,11,13,9),Ze.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return XA(this,t,iR,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ze.utc(-40,1,1),Ze.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),o=i.formatToParts(),l=o.find(c=>c.type.toLowerCase()===r);return l?l.value:null}numberFormatter(t={}){return new T0e(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new D0e(t,this.intl,n)}relFormatter(t={}){return new B0e(this.intl,this.isEnglish(),t)}listFormatter(t={}){return w0e(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||EN(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:YN()?E0e(this.locale):kN}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},lm=null;class Nr extends L1{static get utcInstance(){return lm===null&&(lm=new Nr(0)),lm}static instance(t){return t===0?Nr.utcInstance:new Nr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Nr(e3(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${D1(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${D1(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return D1(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class N0e extends L1{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function bs(e,t){if(Ke(e)||e===null)return t;if(e instanceof L1)return e;if(V0e(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?JA.instance:n==="utc"||n==="gmt"?Nr.utcInstance:Nr.parseSpecifier(n)||ko.create(e)}else return Cs(e)?Nr.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new N0e(e)}const cm={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},MN={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]},R0e=cm.hanidec.replace(/[\[|\]]/g,"").split("");function F0e(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(cm.hanidec)!==-1)t+=R0e.indexOf(e[n]);else for(const i in MN){const[o,l]=MN[i];r>=o&&r<=l&&(t+=r-o)}}return parseInt(t,10)}else return t}const um=new Map;function j0e(){um.clear()}function pa({numberingSystem:e},t=""){const n=e||"latn";let r=um.get(n);r===void 0&&(r=new Map,um.set(n,r));let i=r.get(t);return i===void 0&&(i=new RegExp(`${cm[n]}${t}`),r.set(t,i)),i}let LN=()=>Date.now(),ON="system",PN=null,TN=null,DN=null,BN=60,NN,RN=null;class gn{static get now(){return LN}static set now(t){LN=t}static set defaultZone(t){ON=t}static get defaultZone(){return bs(ON,JA.instance)}static get defaultLocale(){return PN}static set defaultLocale(t){PN=t}static get defaultNumberingSystem(){return TN}static set defaultNumberingSystem(t){TN=t}static get defaultOutputCalendar(){return DN}static set defaultOutputCalendar(t){DN=t}static get defaultWeekSettings(){return RN}static set defaultWeekSettings(t){RN=hm(t)}static get twoDigitCutoffYear(){return BN}static set twoDigitCutoffYear(t){BN=t%100}static get throwOnInvalid(){return NN}static set throwOnInvalid(t){NN=t}static resetCaches(){$t.resetCache(),ko.resetCache(),Ze.resetCache(),j0e()}}class ga{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const FN=[0,31,59,90,120,151,181,212,243,273,304,334],jN=[0,31,60,91,121,152,182,213,244,274,305,335];function ji(e,t){return new ga("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dm(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function zN(e,t,n){return n+(P1(e)?jN:FN)[t-1]}function WN(e,t){const n=P1(e)?jN:FN,r=n.findIndex(o=>o<t),i=t-n[r];return{month:r+1,day:i}}function fm(e,t){return(e-t+7)%7+1}function QA(e,t=4,n=1){const{year:r,month:i,day:o}=e,l=zN(r,i,o),c=fm(dm(r,i,o),n);let d=Math.floor((l-c+14-t)/7),f;return d<1?(f=r-1,d=T1(f,t,n)):d>T1(r,t,n)?(f=r+1,d=1):f=r,{weekYear:f,weekNumber:d,weekday:c,...n3(e)}}function VN(e,t=4,n=1){const{weekYear:r,weekNumber:i,weekday:o}=e,l=fm(dm(r,1,t),n),c=Hc(r);let d=i*7+o-l-7+t,f;d<1?(f=r-1,d+=Hc(f)):d>c?(f=r+1,d-=Hc(r)):f=r;const{month:A,day:g}=WN(f,d);return{year:f,month:A,day:g,...n3(e)}}function Am(e){const{year:t,month:n,day:r}=e,i=zN(t,n,r);return{year:t,ordinal:i,...n3(e)}}function HN(e){const{year:t,ordinal:n}=e,{month:r,day:i}=WN(t,n);return{year:t,month:r,day:i,...n3(e)}}function GN(e,t){if(!Ke(e.localWeekday)||!Ke(e.localWeekNumber)||!Ke(e.localWeekYear)){if(!Ke(e.weekday)||!Ke(e.weekNumber)||!Ke(e.weekYear))throw new Wc("Cannot mix locale-based week fields with ISO-based week fields");return Ke(e.localWeekday)||(e.weekday=e.localWeekday),Ke(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Ke(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function z0e(e,t=4,n=1){const r=KA(e.weekYear),i=zi(e.weekNumber,1,T1(e.weekYear,t,n)),o=zi(e.weekday,1,7);return r?i?o?!1:ji("weekday",e.weekday):ji("week",e.weekNumber):ji("weekYear",e.weekYear)}function W0e(e){const t=KA(e.year),n=zi(e.ordinal,1,Hc(e.year));return t?n?!1:ji("ordinal",e.ordinal):ji("year",e.year)}function _N(e){const t=KA(e.year),n=zi(e.month,1,12),r=zi(e.day,1,qA(e.year,e.month));return t?n?r?!1:ji("day",e.day):ji("month",e.month):ji("year",e.year)}function ZN(e){const{hour:t,minute:n,second:r,millisecond:i}=e,o=zi(t,0,23)||t===24&&n===0&&r===0&&i===0,l=zi(n,0,59),c=zi(r,0,59),d=zi(i,0,999);return o?l?c?d?!1:ji("millisecond",i):ji("second",r):ji("minute",n):ji("hour",t)}function Ke(e){return typeof e>"u"}function Cs(e){return typeof e=="number"}function KA(e){return typeof e=="number"&&e%1===0}function V0e(e){return typeof e=="string"}function H0e(e){return Object.prototype.toString.call(e)==="[object Date]"}function UN(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function YN(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function G0e(e){return Array.isArray(e)?e:[e]}function JN(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const o=[t(i),i];return r&&n(r[0],o[0])===r[0]?r:o},null)[1]}function _0e(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function Vc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function hm(e){if(e==null)return null;if(typeof e!="object")throw new br("Week settings must be an object");if(!zi(e.firstDay,1,7)||!zi(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!zi(t,1,7)))throw new br("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function zi(e,t,n){return KA(e)&&e>=t&&e<=n}function Z0e(e,t){return e-t*Math.floor(e/t)}function En(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function ws(e){if(!(Ke(e)||e===null||e===""))return parseInt(e,10)}function Cl(e){if(!(Ke(e)||e===null||e===""))return parseFloat(e)}function pm(e){if(!(Ke(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function gm(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function P1(e){return e%4===0&&(e%100!==0||e%400===0)}function Hc(e){return P1(e)?366:365}function qA(e,t){const n=Z0e(t-1,12)+1,r=e+(t-n)/12;return n===2?P1(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function $A(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function XN(e,t,n){return-fm(dm(e,1,t),n)+t-1}function T1(e,t=4,n=1){const r=XN(e,t,n),i=XN(e+1,t,n);return(Hc(e)-r+i)/7}function mm(e){return e>99?e:e>gn.twoDigitCutoffYear?1900+e:2e3+e}function QN(e,t,n,r=null){const i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const l={timeZoneName:t,...o},c=new Intl.DateTimeFormat(n,l).formatToParts(i).find(d=>d.type.toLowerCase()==="timezonename");return c?c.value:null}function e3(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function KN(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new br(`Invalid unit value ${e}`);return t}function t3(e,t){const n={};for(const r in e)if(Vc(e,r)){const i=e[r];if(i==null)continue;n[t(r)]=KN(i)}return n}function D1(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${En(n,2)}:${En(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${En(n,2)}${En(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function n3(e){return _0e(e,["hour","minute","second","millisecond"])}const U0e=["January","February","March","April","May","June","July","August","September","October","November","December"],qN=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Y0e=["J","F","M","A","M","J","J","A","S","O","N","D"];function $N(e){switch(e){case"narrow":return[...Y0e];case"short":return[...qN];case"long":return[...U0e];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 eR=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tR=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],J0e=["M","T","W","T","F","S","S"];function nR(e){switch(e){case"narrow":return[...J0e];case"short":return[...tR];case"long":return[...eR];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const rR=["AM","PM"],X0e=["Before Christ","Anno Domini"],Q0e=["BC","AD"],K0e=["B","A"];function iR(e){switch(e){case"narrow":return[...K0e];case"short":return[...Q0e];case"long":return[...X0e];default:return null}}function q0e(e){return rR[e.hour<12?0:1]}function $0e(e,t){return nR(t)[e.weekday-1]}function e1e(e,t){return $N(t)[e.month-1]}function t1e(e,t){return iR(t)[e.year<0?0:1]}function n1e(e,t,n="always",r=!1){const i={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(e)===-1;if(n==="auto"&&o){const g=e==="days";switch(t){case 1:return g?"tomorrow":`next ${i[e][0]}`;case-1:return g?"yesterday":`last ${i[e][0]}`;case 0:return g?"today":`this ${i[e][0]}`}}const l=Object.is(t,-0)||t<0,c=Math.abs(t),d=c===1,f=i[e],A=r?d?f[1]:f[2]||f[1]:d?i[e][0]:e;return l?`${c} ${A} ago`:`in ${c} ${A}`}function aR(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const r1e={D:YA,DD:oN,DDD:sN,DDDD:lN,t:cN,tt:uN,ttt:dN,tttt:fN,T:AN,TT:hN,TTT:pN,TTTT:gN,f:mN,ff:yN,fff:CN,ffff:xN,F:vN,FF:bN,FFF:wN,FFFF:SN};class Cr{static create(t,n={}){return new Cr(t,n)}static parseFormat(t){let n=null,r="",i=!1;const o=[];for(let l=0;l<t.length;l++){const c=t.charAt(l);c==="'"?((r.length>0||i)&&o.push({literal:i||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",i=!i):i||c===n?r+=c:(r.length>0&&o.push({literal:/^\s+$/.test(r),val:r}),r=c,n=c)}return r.length>0&&o.push({literal:i||/^\s+$/.test(r),val:r}),o}static macroTokenToFormatOpts(t){return r1e[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,r=void 0){if(this.opts.forceSimple)return En(t,n);const i={...this.opts};return n>0&&(i.padTo=n),r&&(i.signDisplay=r),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(y,w)=>this.loc.extract(t,y,w),l=y=>t.isOffsetFixed&&t.offset===0&&y.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,y.format):"",c=()=>r?q0e(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),d=(y,w)=>r?e1e(t,y):o(w?{month:y}:{month:y,day:"numeric"},"month"),f=(y,w)=>r?$0e(t,y):o(w?{weekday:y}:{weekday:y,month:"long",day:"numeric"},"weekday"),A=y=>{const w=Cr.macroTokenToFormatOpts(y);return w?this.formatWithSystemDefault(t,w):y},g=y=>r?t1e(t,y):o({era:y},"era"),v=y=>{switch(y){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return l({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return l({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return l({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return f("short",!0);case"cccc":return f("long",!0);case"ccccc":return f("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return f("short",!1);case"EEEE":return f("long",!1);case"EEEEE":return f("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return d("short",!0);case"LLLL":return d("long",!0);case"LLLLL":return d("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return d("short",!1);case"MMMM":return d("long",!1);case"MMMMM":return d("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return A(y)}};return aR(Cr.parseFormat(n),v)}formatDurationFromString(t,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,i=A=>{switch(A[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},o=(A,g)=>v=>{const y=i(v);if(y){const w=g.isNegativeDuration&&y!==g.largestUnit?r:1;let S;return this.opts.signMode==="negativeLargestOnly"&&y!==g.largestUnit?S="never":this.opts.signMode==="all"?S="always":S="auto",this.num(A.get(y)*w,v.length,S)}else return v},l=Cr.parseFormat(n),c=l.reduce((A,{literal:g,val:v})=>g?A:A.concat(v),[]),d=t.shiftTo(...c.map(i).filter(A=>A)),f={isNegativeDuration:d<0,largestUnit:Object.keys(d.values)[0]};return aR(l,o(d,f))}}const oR=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Gc(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function _c(...e){return t=>e.reduce(([n,r,i],o)=>{const[l,c,d]=o(t,i);return[{...n,...l},c||r,d]},[{},null,1]).slice(0,2)}function Zc(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function sR(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=ws(t[n+i]);return[r,null,n+i]}}const lR=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,i1e=`(?:${lR.source}?(?:\\[(${oR.source})\\])?)?`,vm=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,cR=RegExp(`${vm.source}${i1e}`),ym=RegExp(`(?:[Tt]${cR.source})?`),a1e=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,o1e=/(\d{4})-?W(\d\d)(?:-?(\d))?/,s1e=/(\d{4})-?(\d{3})/,l1e=sR("weekYear","weekNumber","weekDay"),c1e=sR("year","ordinal"),u1e=/(\d{4})-(\d\d)-(\d\d)/,uR=RegExp(`${vm.source} ?(?:${lR.source}|(${oR.source}))?`),d1e=RegExp(`(?: ${uR.source})?`);function Uc(e,t,n){const r=e[t];return Ke(r)?n:ws(r)}function f1e(e,t){return[{year:Uc(e,t),month:Uc(e,t+1,1),day:Uc(e,t+2,1)},null,t+3]}function Yc(e,t){return[{hours:Uc(e,t,0),minutes:Uc(e,t+1,0),seconds:Uc(e,t+2,0),milliseconds:pm(e[t+3])},null,t+4]}function B1(e,t){const n=!e[t]&&!e[t+1],r=e3(e[t+1],e[t+2]),i=n?null:Nr.instance(r);return[{},i,t+3]}function N1(e,t){const n=e[t]?ko.create(e[t]):null;return[{},n,t+1]}const A1e=RegExp(`^T?${vm.source}$`),h1e=/^-?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 p1e(e){const[t,n,r,i,o,l,c,d,f]=e,A=t[0]==="-",g=d&&d[0]==="-",v=(y,w=!1)=>y!==void 0&&(w||y&&A)?-y:y;return[{years:v(Cl(n)),months:v(Cl(r)),weeks:v(Cl(i)),days:v(Cl(o)),hours:v(Cl(l)),minutes:v(Cl(c)),seconds:v(Cl(d),d==="-0"),milliseconds:v(pm(f),g)}]}const g1e={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function bm(e,t,n,r,i,o,l){const c={year:t.length===2?mm(ws(t)):ws(t),month:qN.indexOf(n)+1,day:ws(r),hour:ws(i),minute:ws(o)};return l&&(c.second=ws(l)),e&&(c.weekday=e.length>3?eR.indexOf(e)+1:tR.indexOf(e)+1),c}const m1e=/^(?:(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 v1e(e){const[,t,n,r,i,o,l,c,d,f,A,g]=e,v=bm(t,i,r,n,o,l,c);let y;return d?y=g1e[d]:f?y=0:y=e3(A,g),[v,new Nr(y)]}function y1e(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const b1e=/^(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$/,C1e=/^(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$/,w1e=/^(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 dR(e){const[,t,n,r,i,o,l,c]=e;return[bm(t,i,r,n,o,l,c),Nr.utcInstance]}function x1e(e){const[,t,n,r,i,o,l,c]=e;return[bm(t,c,n,r,i,o,l),Nr.utcInstance]}const S1e=Gc(a1e,ym),I1e=Gc(o1e,ym),E1e=Gc(s1e,ym),k1e=Gc(cR),fR=_c(f1e,Yc,B1,N1),M1e=_c(l1e,Yc,B1,N1),L1e=_c(c1e,Yc,B1,N1),O1e=_c(Yc,B1,N1);function P1e(e){return Zc(e,[S1e,fR],[I1e,M1e],[E1e,L1e],[k1e,O1e])}function T1e(e){return Zc(y1e(e),[m1e,v1e])}function D1e(e){return Zc(e,[b1e,dR],[C1e,dR],[w1e,x1e])}function B1e(e){return Zc(e,[h1e,p1e])}const N1e=_c(Yc);function R1e(e){return Zc(e,[A1e,N1e])}const F1e=Gc(u1e,d1e),j1e=Gc(uR),z1e=_c(Yc,B1,N1);function W1e(e){return Zc(e,[F1e,fR],[j1e,z1e])}const AR="Invalid Duration",hR={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},V1e={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...hR},Wi=146097/400,Jc=146097/4800,H1e={years:{quarters:4,months:12,weeks:Wi/7,days:Wi,hours:Wi*24,minutes:Wi*24*60,seconds:Wi*24*60*60,milliseconds:Wi*24*60*60*1e3},quarters:{months:3,weeks:Wi/28,days:Wi/4,hours:Wi*24/4,minutes:Wi*24*60/4,seconds:Wi*24*60*60/4,milliseconds:Wi*24*60*60*1e3/4},months:{weeks:Jc/7,days:Jc,hours:Jc*24,minutes:Jc*24*60,seconds:Jc*24*60*60,milliseconds:Jc*24*60*60*1e3},...hR},wl=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],G1e=wl.slice(0).reverse();function Mo(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new wr(r)}function pR(e,t){let n=t.milliseconds??0;for(const r of G1e.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function gR(e,t){const n=pR(e,t)<0?-1:1;wl.reduceRight((r,i)=>{if(Ke(t[i]))return r;if(r){const o=t[r]*n,l=e[i][r],c=Math.floor(o/l);t[i]+=c*n,t[r]-=c*l*n}return i},null),wl.reduce((r,i)=>{if(Ke(t[i]))return r;if(r){const o=t[r]%1;t[r]-=o,t[i]+=o*e[r][i]}return i},null)}function mR(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}let wr=class pr{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?H1e:V1e;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||$t.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return pr.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new br(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new pr({values:t3(t,pr.normalizeUnit),loc:$t.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Cs(t))return pr.fromMillis(t);if(pr.isDuration(t))return t;if(typeof t=="object")return pr.fromObject(t);throw new br(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=B1e(t);return r?pr.fromObject(r,n):pr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=R1e(t);return r?pr.fromObject(r,n):pr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new br("need to specify a reason the Duration is invalid");const r=t instanceof ga?t:new ga(t,n);if(gn.throwOnInvalid)throw new p0e(r);return new pr({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new aN(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Cr.create(this.loc,r).formatDurationFromString(this,t):AR}toHuman(t={}){if(!this.isValid)return AR;const n=t.showZeros!==!1,r=wl.map(i=>{const o=this.values[i];return Ke(o)||o===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:i.slice(0,-1)}).format(o)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=gm(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ze.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?pR(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=pr.fromDurationLike(t),r={};for(const i of wl)(Vc(n.values,i)||Vc(this.values,i))&&(r[i]=n.get(i)+this.get(i));return Mo(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=pr.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=KN(t(this.values[r],r));return Mo(this,{values:n},!0)}get(t){return this[pr.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...t3(t,pr.normalizeUnit)};return Mo(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:i}={}){const l={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:i,conversionAccuracy:r};return Mo(this,l)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return gR(this.matrix,t),Mo(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=mR(this.normalize().shiftToAll().toObject());return Mo(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(l=>pr.normalizeUnit(l));const n={},r={},i=this.toObject();let o;for(const l of wl)if(t.indexOf(l)>=0){o=l;let c=0;for(const f in r)c+=this.matrix[f][l]*r[f],r[f]=0;Cs(i[l])&&(c+=i[l]);const d=Math.trunc(c);n[l]=d,r[l]=(c*1e3-d*1e3)/1e3}else Cs(i[l])&&(r[l]=i[l]);for(const l in r)r[l]!==0&&(n[o]+=l===o?r[l]:r[l]/this.matrix[o][l]);return gR(this.matrix,n),Mo(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Mo(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=mR(this.values);return Mo(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of wl)if(!n(this.values[r],t.values[r]))return!1;return!0}};const Xc="Invalid Interval";function _1e(e,t){return!e||!e.isValid?mn.invalid("missing or invalid start"):!t||!t.isValid?mn.invalid("missing or invalid end"):t<e?mn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class mn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new br("need to specify a reason the Interval is invalid");const r=t instanceof ga?t:new ga(t,n);if(gn.throwOnInvalid)throw new h0e(r);return new mn({invalid:r})}static fromDateTimes(t,n){const r=j1(t),i=j1(n),o=_1e(r,i);return o??new mn({start:r,end:i})}static after(t,n){const r=wr.fromDurationLike(n),i=j1(t);return mn.fromDateTimes(i,i.plus(r))}static before(t,n){const r=wr.fromDurationLike(n),i=j1(t);return mn.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let o,l;try{o=Ze.fromISO(r,n),l=o.isValid}catch{l=!1}let c,d;try{c=Ze.fromISO(i,n),d=c.isValid}catch{d=!1}if(l&&d)return mn.fromDateTimes(o,c);if(l){const f=wr.fromISO(i,n);if(f.isValid)return mn.after(o,f)}else if(d){const f=wr.fromISO(r,n);if(f.isValid)return mn.before(c,f)}}return mn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let i;return n!=null&&n.useLocaleWeeks?i=this.end.reconfigure({locale:r.locale}):i=this.end,i=i.startOf(t,n),Math.floor(i.diff(r,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?mn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(j1).filter(l=>this.contains(l)).sort((l,c)=>l.toMillis()-c.toMillis()),r=[];let{s:i}=this,o=0;for(;i<this.e;){const l=n[o]||this.e,c=+l>+this.e?this.e:l;r.push(mn.fromDateTimes(i,c)),i=c,o+=1}return r}splitBy(t){const n=wr.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,o;const l=[];for(;r<this.e;){const c=this.start.plus(n.mapUnits(d=>d*i));o=+c>+this.e?this.e:c,l.push(mn.fromDateTimes(r,o)),r=o,i+=1}return l}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:mn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return mn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],l)=>o?o.overlaps(l)||o.abutsStart(l)?[i,o.union(l)]:[i.concat([o]),l]:[i,l],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],o=t.map(d=>[{time:d.s,type:"s"},{time:d.e,type:"e"}]),l=Array.prototype.concat(...o),c=l.sort((d,f)=>d.time-f.time);for(const d of c)r+=d.type==="s"?1:-1,r===1?n=d.time:(n&&+n!=+d.time&&i.push(mn.fromDateTimes(n,d.time)),n=null);return mn.merge(i)}difference(...t){return mn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Xc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=YA,n={}){return this.isValid?Cr.create(this.s.loc.clone(n),t).formatInterval(this):Xc}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Xc}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Xc}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Xc}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Xc}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):wr.invalid(this.invalidReason)}mapEndpoints(t){return mn.fromDateTimes(t(this.s),t(this.e))}}class r3{static hasDST(t=gn.defaultZone){const n=Ze.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return ko.isValidZone(t)}static normalizeZone(t){return bs(t,gn.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||$t.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||$t.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||$t.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||$t.create(n,r,o)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||$t.create(n,r,o)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||$t.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||$t.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return $t.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return $t.create(n,null,"gregory").eras(t)}static features(){return{relative:UN(),localeWeek:YN()}}}function vR(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(wr.fromMillis(r).as("days"))}function Z1e(e,t,n){const r=[["years",(d,f)=>f.year-d.year],["quarters",(d,f)=>f.quarter-d.quarter+(f.year-d.year)*4],["months",(d,f)=>f.month-d.month+(f.year-d.year)*12],["weeks",(d,f)=>{const A=vR(d,f);return(A-A%7)/7}],["days",vR]],i={},o=e;let l,c;for(const[d,f]of r)n.indexOf(d)>=0&&(l=d,i[d]=f(e,t),c=o.plus(i),c>t?(i[d]--,e=o.plus(i),e>t&&(c=e,i[d]--,e=o.plus(i))):e=c);return[e,i,c,l]}function U1e(e,t,n,r){let[i,o,l,c]=Z1e(e,t,n);const d=t-i,f=n.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);f.length===0&&(l<t&&(l=i.plus({[c]:1})),l!==i&&(o[c]=(o[c]||0)+d/(l-i)));const A=wr.fromObject(o,r);return f.length>0?wr.fromMillis(d,r).shiftTo(...f).plus(A):A}const Y1e="missing Intl.DateTimeFormat.formatToParts support";function St(e,t=n=>n){return{regex:e,deser:([n])=>t(F0e(n))}}const yR="[ ]",bR=new RegExp(yR,"g");function J1e(e){return e.replace(/\./g,"\\.?").replace(bR,yR)}function CR(e){return e.replace(/\./g,"").replace(bR," ").toLowerCase()}function ma(e,t){return e===null?null:{regex:RegExp(e.map(J1e).join("|")),deser:([n])=>e.findIndex(r=>CR(n)===CR(r))+t}}function wR(e,t){return{regex:e,deser:([,n,r])=>e3(n,r),groups:t}}function i3(e){return{regex:e,deser:([t])=>t}}function X1e(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Q1e(e,t){const n=pa(t),r=pa(t,"{2}"),i=pa(t,"{3}"),o=pa(t,"{4}"),l=pa(t,"{6}"),c=pa(t,"{1,2}"),d=pa(t,"{1,3}"),f=pa(t,"{1,6}"),A=pa(t,"{1,9}"),g=pa(t,"{2,4}"),v=pa(t,"{4,6}"),y=I=>({regex:RegExp(X1e(I.val)),deser:([E])=>E,literal:!0}),S=(I=>{if(e.literal)return y(I);switch(I.val){case"G":return ma(t.eras("short"),0);case"GG":return ma(t.eras("long"),0);case"y":return St(f);case"yy":return St(g,mm);case"yyyy":return St(o);case"yyyyy":return St(v);case"yyyyyy":return St(l);case"M":return St(c);case"MM":return St(r);case"MMM":return ma(t.months("short",!0),1);case"MMMM":return ma(t.months("long",!0),1);case"L":return St(c);case"LL":return St(r);case"LLL":return ma(t.months("short",!1),1);case"LLLL":return ma(t.months("long",!1),1);case"d":return St(c);case"dd":return St(r);case"o":return St(d);case"ooo":return St(i);case"HH":return St(r);case"H":return St(c);case"hh":return St(r);case"h":return St(c);case"mm":return St(r);case"m":return St(c);case"q":return St(c);case"qq":return St(r);case"s":return St(c);case"ss":return St(r);case"S":return St(d);case"SSS":return St(i);case"u":return i3(A);case"uu":return i3(c);case"uuu":return St(n);case"a":return ma(t.meridiems(),0);case"kkkk":return St(o);case"kk":return St(g,mm);case"W":return St(c);case"WW":return St(r);case"E":case"c":return St(n);case"EEE":return ma(t.weekdays("short",!1),1);case"EEEE":return ma(t.weekdays("long",!1),1);case"ccc":return ma(t.weekdays("short",!0),1);case"cccc":return ma(t.weekdays("long",!0),1);case"Z":case"ZZ":return wR(new RegExp(`([+-]${c.source})(?::(${r.source}))?`),2);case"ZZZ":return wR(new RegExp(`([+-]${c.source})(${r.source})?`),2);case"z":return i3(/[a-z_+-/]{1,256}?/i);case" ":return i3(/[^\S\n\r]/);default:return y(I)}})(e)||{invalidReason:Y1e};return S.token=e,S}const K1e={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function q1e(e,t,n){const{type:r,value:i}=e;if(r==="literal"){const d=/^\s+$/.test(i);return{literal:!d,val:d?" ":i}}const o=t[r];let l=r;r==="hour"&&(t.hour12!=null?l=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?l="hour12":l="hour24":l=n.hour12?"hour12":"hour24");let c=K1e[l];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function $1e(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function e2e(e,t,n){const r=e.match(t);if(r){const i={};let o=1;for(const l in n)if(Vc(n,l)){const c=n[l],d=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(r.slice(o,o+d))),o+=d}return[r,i]}else return[r,{}]}function t2e(e){const t=o=>{switch(o){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 n=null,r;return Ke(e.z)||(n=ko.create(e.z)),Ke(e.Z)||(n||(n=new Nr(e.Z)),r=e.Z),Ke(e.q)||(e.M=(e.q-1)*3+1),Ke(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Ke(e.u)||(e.S=pm(e.u)),[Object.keys(e).reduce((o,l)=>{const c=t(l);return c&&(o[c]=e[l]),o},{}),n,r]}let Cm=null;function n2e(){return Cm||(Cm=Ze.fromMillis(1555555555555)),Cm}function r2e(e,t){if(e.literal)return e;const n=Cr.macroTokenToFormatOpts(e.val),r=ER(n,t);return r==null||r.includes(void 0)?e:r}function xR(e,t){return Array.prototype.concat(...e.map(n=>r2e(n,t)))}class SR{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=xR(Cr.parseFormat(n),t),this.units=this.tokens.map(r=>Q1e(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,i]=$1e(this.units);this.regex=RegExp(r,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){const[n,r]=e2e(t,this.regex,this.handlers),[i,o,l]=r?t2e(r):[null,null,void 0];if(Vc(r,"a")&&Vc(r,"H"))throw new Wc("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:i,zone:o,specificOffset:l}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function IR(e,t,n){return new SR(e,n).explainFromTokens(t)}function i2e(e,t,n){const{result:r,zone:i,specificOffset:o,invalidReason:l}=IR(e,t,n);return[r,i,o,l]}function ER(e,t){if(!e)return null;const r=Cr.create(t,e).dtFormatter(n2e()),i=r.formatToParts(),o=r.resolvedOptions();return i.map(l=>q1e(l,e,o))}const wm="Invalid DateTime",kR=864e13;function R1(e){return new ga("unsupported zone",`the zone "${e.name}" is not supported`)}function xm(e){return e.weekData===null&&(e.weekData=QA(e.c)),e.weekData}function Sm(e){return e.localWeekData===null&&(e.localWeekData=QA(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function xl(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ze({...n,...t,old:n})}function MR(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const o=n.offset(r);return i===o?[r,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function a3(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function o3(e,t,n){return MR($A(e),t,n)}function LR(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:r,month:i,day:Math.min(e.c.day,qA(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},l=wr.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),c=$A(o);let[d,f]=MR(c,n,e.zone);return l!==0&&(d+=l,f=e.zone.offset(d)),{ts:d,o:f}}function Qc(e,t,n,r,i,o){const{setZone:l,zone:c}=n;if(e&&Object.keys(e).length!==0||t){const d=t||c,f=Ze.fromObject(e,{...n,zone:d,specificOffset:o});return l?f:f.setZone(c)}else return Ze.invalid(new ga("unparsable",`the input "${i}" can't be parsed as ${r}`))}function s3(e,t,n=!0){return e.isValid?Cr.create($t.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Im(e,t,n){const r=e.c.year>9999||e.c.year<0;let i="";if(r&&e.c.year>=0&&(i+="+"),i+=En(e.c.year,r?6:4),n==="year")return i;if(t){if(i+="-",i+=En(e.c.month),n==="month")return i;i+="-"}else if(i+=En(e.c.month),n==="month")return i;return i+=En(e.c.day),i}function OR(e,t,n,r,i,o,l){let c=!n||e.c.millisecond!==0||e.c.second!==0,d="";switch(l){case"day":case"month":case"year":break;default:if(d+=En(e.c.hour),l==="hour")break;if(t){if(d+=":",d+=En(e.c.minute),l==="minute")break;c&&(d+=":",d+=En(e.c.second))}else{if(d+=En(e.c.minute),l==="minute")break;c&&(d+=En(e.c.second))}if(l==="second")break;c&&(!r||e.c.millisecond!==0)&&(d+=".",d+=En(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!o?d+="Z":e.o<0?(d+="-",d+=En(Math.trunc(-e.o/60)),d+=":",d+=En(Math.trunc(-e.o%60))):(d+="+",d+=En(Math.trunc(e.o/60)),d+=":",d+=En(Math.trunc(e.o%60)))),o&&(d+="["+e.zone.ianaName+"]"),d}const PR={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},a2e={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},o2e={ordinal:1,hour:0,minute:0,second:0,millisecond:0},l3=["year","month","day","hour","minute","second","millisecond"],s2e=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],l2e=["year","ordinal","hour","minute","second","millisecond"];function c3(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new aN(e);return t}function TR(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return c3(e)}}function c2e(e){if(F1===void 0&&(F1=gn.now()),e.type!=="iana")return e.offset(F1);const t=e.name;let n=Em.get(t);return n===void 0&&(n=e.offset(F1),Em.set(t,n)),n}function DR(e,t){const n=bs(t.zone,gn.defaultZone);if(!n.isValid)return Ze.invalid(R1(n));const r=$t.fromObject(t);let i,o;if(Ke(e.year))i=gn.now();else{for(const d of l3)Ke(e[d])&&(e[d]=PR[d]);const l=_N(e)||ZN(e);if(l)return Ze.invalid(l);const c=c2e(n);[i,o]=o3(e,c,n)}return new Ze({ts:i,zone:n,loc:r,o})}function BR(e,t,n){const r=Ke(n.round)?!0:n.round,i=Ke(n.rounding)?"trunc":n.rounding,o=(c,d)=>(c=gm(c,r||n.calendary?0:2,n.calendary?"round":i),t.loc.clone(n).relFormatter(n).format(c,d)),l=c=>n.calendary?t.hasSame(e,c)?0:t.startOf(c).diff(e.startOf(c),c).get(c):t.diff(e,c).get(c);if(n.unit)return o(l(n.unit),n.unit);for(const c of n.units){const d=l(c);if(Math.abs(d)>=1)return o(d,c)}return o(e>t?-0:0,n.units[n.units.length-1])}function NR(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let F1;const Em=new Map;class Ze{constructor(t){const n=t.zone||gn.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new ga("invalid input"):null)||(n.isValid?null:R1(n));this.ts=Ke(t.ts)?gn.now():t.ts;let i=null,o=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,o]=[t.old.c,t.old.o];else{const c=Cs(t.o)&&!t.old?t.o:n.offset(this.ts);i=a3(this.ts,c),r=Number.isNaN(i.year)?new ga("invalid input"):null,i=r?null:i,o=r?null:c}this._zone=n,this.loc=t.loc||$t.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new Ze({})}static local(){const[t,n]=NR(arguments),[r,i,o,l,c,d,f]=n;return DR({year:r,month:i,day:o,hour:l,minute:c,second:d,millisecond:f},t)}static utc(){const[t,n]=NR(arguments),[r,i,o,l,c,d,f]=n;return t.zone=Nr.utcInstance,DR({year:r,month:i,day:o,hour:l,minute:c,second:d,millisecond:f},t)}static fromJSDate(t,n={}){const r=H0e(t)?t.valueOf():NaN;if(Number.isNaN(r))return Ze.invalid("invalid input");const i=bs(n.zone,gn.defaultZone);return i.isValid?new Ze({ts:r,zone:i,loc:$t.fromObject(n)}):Ze.invalid(R1(i))}static fromMillis(t,n={}){if(Cs(t))return t<-kR||t>kR?Ze.invalid("Timestamp out of range"):new Ze({ts:t,zone:bs(n.zone,gn.defaultZone),loc:$t.fromObject(n)});throw new br(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Cs(t))return new Ze({ts:t*1e3,zone:bs(n.zone,gn.defaultZone),loc:$t.fromObject(n)});throw new br("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=bs(n.zone,gn.defaultZone);if(!r.isValid)return Ze.invalid(R1(r));const i=$t.fromObject(n),o=t3(t,TR),{minDaysInFirstWeek:l,startOfWeek:c}=GN(o,i),d=gn.now(),f=Ke(n.specificOffset)?r.offset(d):n.specificOffset,A=!Ke(o.ordinal),g=!Ke(o.year),v=!Ke(o.month)||!Ke(o.day),y=g||v,w=o.weekYear||o.weekNumber;if((y||A)&&w)throw new Wc("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&A)throw new Wc("Can't mix ordinal dates with month/day");const S=w||o.weekday&&!y;let I,E,M=a3(d,f);S?(I=s2e,E=a2e,M=QA(M,l,c)):A?(I=l2e,E=o2e,M=Am(M)):(I=l3,E=PR);let L=!1;for(const X of I){const N=o[X];Ke(N)?L?o[X]=E[X]:o[X]=M[X]:L=!0}const T=S?z0e(o,l,c):A?W0e(o):_N(o),P=T||ZN(o);if(P)return Ze.invalid(P);const j=S?VN(o,l,c):A?HN(o):o,[B,W]=o3(j,f,r),_=new Ze({ts:B,zone:r,o:W,loc:i});return o.weekday&&y&&t.weekday!==_.weekday?Ze.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${_.toISO()}`):_.isValid?_:Ze.invalid(_.invalid)}static fromISO(t,n={}){const[r,i]=P1e(t);return Qc(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=T1e(t);return Qc(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=D1e(t);return Qc(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(Ke(t)||Ke(n))throw new br("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:o=null}=r,l=$t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,d,f,A]=i2e(l,t,n);return A?Ze.invalid(A):Qc(c,d,r,`format ${n}`,t,f)}static fromString(t,n,r={}){return Ze.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=W1e(t);return Qc(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new br("need to specify a reason the DateTime is invalid");const r=t instanceof ga?t:new ga(t,n);if(gn.throwOnInvalid)throw new A0e(r);return new Ze({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=ER(t,$t.fromObject(n));return r?r.map(i=>i?i.val:null).join(""):null}static expandFormat(t,n={}){return xR(Cr.parseFormat(t),$t.fromObject(n)).map(i=>i.val).join("")}static resetCache(){F1=void 0,Em.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?xm(this).weekYear:NaN}get weekNumber(){return this.isValid?xm(this).weekNumber:NaN}get weekday(){return this.isValid?xm(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Sm(this).weekday:NaN}get localWeekNumber(){return this.isValid?Sm(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Sm(this).weekYear:NaN}get ordinal(){return this.isValid?Am(this.c).ordinal:NaN}get monthShort(){return this.isValid?r3.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?r3.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?r3.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?r3.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=$A(this.c),i=this.zone.offset(r-t),o=this.zone.offset(r+t),l=this.zone.offset(r-i*n),c=this.zone.offset(r-o*n);if(l===c)return[this];const d=r-l*n,f=r-c*n,A=a3(d,l),g=a3(f,c);return A.hour===g.hour&&A.minute===g.minute&&A.second===g.second&&A.millisecond===g.millisecond?[xl(this,{ts:d}),xl(this,{ts:f})]:[this]}get isInLeapYear(){return P1(this.year)}get daysInMonth(){return qA(this.year,this.month)}get daysInYear(){return this.isValid?Hc(this.year):NaN}get weeksInWeekYear(){return this.isValid?T1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?T1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:i}=Cr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(Nr.instance(t),n)}toLocal(){return this.setZone(gn.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=bs(t,gn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const o=t.offset(this.ts),l=this.toObject();[i]=o3(l,o,t)}return xl(this,{ts:i,zone:t})}else return Ze.invalid(R1(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return xl(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=t3(t,TR),{minDaysInFirstWeek:r,startOfWeek:i}=GN(n,this.loc),o=!Ke(n.weekYear)||!Ke(n.weekNumber)||!Ke(n.weekday),l=!Ke(n.ordinal),c=!Ke(n.year),d=!Ke(n.month)||!Ke(n.day),f=c||d,A=n.weekYear||n.weekNumber;if((f||l)&&A)throw new Wc("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&l)throw new Wc("Can't mix ordinal dates with month/day");let g;o?g=VN({...QA(this.c,r,i),...n},r,i):Ke(n.ordinal)?(g={...this.toObject(),...n},Ke(n.day)&&(g.day=Math.min(qA(g.year,g.month),g.day))):g=HN({...Am(this.c),...n});const[v,y]=o3(g,this.o,this.zone);return xl(this,{ts:v,o:y})}plus(t){if(!this.isValid)return this;const n=wr.fromDurationLike(t);return xl(this,LR(this,n))}minus(t){if(!this.isValid)return this;const n=wr.fromDurationLike(t).negate();return xl(this,LR(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},i=wr.normalizeUnit(t);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")if(n){const o=this.loc.getStartOfWeek(),{weekday:l}=this;l<o&&(r.weekNumber=this.weekNumber-1),r.weekday=o}else r.weekday=1;if(i==="quarters"){const o=Math.ceil(this.month/3);r.month=(o-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?Cr.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):wm}toLocaleString(t=YA,n={}){return this.isValid?Cr.create(this.loc.clone(n),t).formatDateTime(this):wm}toLocaleParts(t={}){return this.isValid?Cr.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:o=!1,precision:l="milliseconds"}={}){if(!this.isValid)return null;l=c3(l);const c=t==="extended";let d=Im(this,c,l);return l3.indexOf(l)>=3&&(d+="T"),d+=OR(this,c,n,r,i,o,l),d}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?Im(this,t==="extended",c3(n)):null}toISOWeekDate(){return s3(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:o=!1,format:l="extended",precision:c="milliseconds"}={}){return this.isValid?(c=c3(c),(i&&l3.indexOf(c)>=3?"T":"")+OR(this,l==="extended",n,t,r,o,c)):null}toRFC2822(){return s3(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return s3(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Im(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(r&&(i+=" "),n?i+="z":t&&(i+="ZZ")),s3(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():wm}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return wr.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},o=G0e(n).map(wr.normalizeUnit),l=t.valueOf()>this.valueOf(),c=l?this:t,d=l?t:this,f=U1e(c,d,o,i);return l?f.negate():f}diffNow(t="milliseconds",n={}){return this.diff(Ze.now(),t,n)}until(t){return this.isValid?mn.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(n,r)<=i&&i<=o.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Ze.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),BR(n,this.plus(r),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?BR(t.base||Ze.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Ze.isDateTime))throw new br("min requires all arguments be DateTimes");return JN(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Ze.isDateTime))throw new br("max requires all arguments be DateTimes");return JN(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:o=null}=r,l=$t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return IR(l,t,n)}static fromStringExplain(t,n,r={}){return Ze.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:i=null}=n,o=$t.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return new SR(o,t)}static fromFormatParser(t,n,r={}){if(Ke(t)||Ke(n))throw new br("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:o=null}=r,l=$t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!l.equals(n.locale))throw new br(`fromFormatParser called with a locale of ${l}, but the format parser was created for ${n.locale}`);const{result:c,zone:d,specificOffset:f,invalidReason:A}=n.explainFromTokens(t);return A?Ze.invalid(A):Qc(c,d,r,`format ${n.format}`,t,f)}static get DATE_SHORT(){return YA}static get DATE_MED(){return oN}static get DATE_MED_WITH_WEEKDAY(){return g0e}static get DATE_FULL(){return sN}static get DATE_HUGE(){return lN}static get TIME_SIMPLE(){return cN}static get TIME_WITH_SECONDS(){return uN}static get TIME_WITH_SHORT_OFFSET(){return dN}static get TIME_WITH_LONG_OFFSET(){return fN}static get TIME_24_SIMPLE(){return AN}static get TIME_24_WITH_SECONDS(){return hN}static get TIME_24_WITH_SHORT_OFFSET(){return pN}static get TIME_24_WITH_LONG_OFFSET(){return gN}static get DATETIME_SHORT(){return mN}static get DATETIME_SHORT_WITH_SECONDS(){return vN}static get DATETIME_MED(){return yN}static get DATETIME_MED_WITH_SECONDS(){return bN}static get DATETIME_MED_WITH_WEEKDAY(){return m0e}static get DATETIME_FULL(){return CN}static get DATETIME_FULL_WITH_SECONDS(){return wN}static get DATETIME_HUGE(){return xN}static get DATETIME_HUGE_WITH_SECONDS(){return SN}}function j1(e){if(Ze.isDateTime(e))return e;if(e&&e.valueOf&&Cs(e.valueOf()))return Ze.fromJSDate(e);if(e&&typeof e=="object")return Ze.fromObject(e);throw new br(`Unknown datetime argument: ${e}, of type ${typeof e}`)}//! moment.js
|
|
1478
1478
|
//! version : 2.30.1
|
|
1479
1479
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
1480
1480
|
//! license : MIT
|