@grapecity/activereports
Version:
ActiveReportsJS
10 lines • 6.25 MB
JavaScript
/*!
* @grapecity/activereports 5.2.2
* Description: ActiveReportsJS
* https://www.npmjs.com/package/@grapecity/activereports
* Copyright ©️ Respective Holders. All rights reserved.
* Licensed under the Commercial license
*/
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".arjs-reportPage,.arjs-reportPage *{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}@media screen{.arjs-hide-screen{visibility:hidden}}@media print{.arjs-hide-paper{visibility:hidden}}@media (forced-colors: active){.arjs-reportPage{forced-color-adjust:none}}.arjs-reportPage{background-color:#fff;color:#000;font-family:Arial;font-size:10pt;font-weight:400;font-style:normal;text-rendering:optimizeSpeed;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}.arjs-canvasItem,.arjs-itemContent{position:absolute}.arjs-stack_vert{display:flex;flex-direction:column}.arjs-stack_horz{display:flex;flex-direction:row}.arjs-listItem,.arjs-section{position:relative}.arjs-placeItem{position:absolute;z-index:inherit}.arjs-tableItem{border-collapse:collapse;table-layout:fixed}.arjs-tableCell{padding:0;vertical-align:top}@-moz-document url-prefix(){.arjs-tableCell{height:100%}}.arjs-cellContent{position:relative;height:100%;overflow:hidden}.arjs-cellContent>div{min-height:100%;min-width:100%}.arjs-cbControl{width:12px;height:12px;min-width:12px;min-height:12px;border-width:1px;border-style:solid}.arjs-cbCommon{width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;text-align:center}.arjs-cbTopLeft{align-items:flex-start;text-align:left}.arjs-cbTopRight{align-items:flex-end;text-align:right}.arjs-cbMiddleLeft{flex-direction:row;text-align:left}.arjs-cbMiddleCenter{flex-direction:row;justify-content:center}.arjs-cbMiddleRight{flex-direction:row-reverse;text-align:right}.arjs-cbBottomLeft{flex-direction:column-reverse;align-items:flex-start;text-align:left}.arjs-cbBottomCenter{flex-direction:column-reverse}.arjs-cbBottomRight{flex-direction:column-reverse;align-items:flex-end;text-align:right}.arjs-cbTextCommon{width:100%}.arjs-cbPadding{padding-bottom:.75pt}.arjs-cbTextTopLeft,.arjs-cbTextBottomLeft{padding-left:14px}.arjs-cbTextTopRight,.arjs-cbTextBottomRight{padding-right:14px}.arjs-cbTextMiddleLeft{padding-left:2px;width:calc(100% - 2px)}.arjs-cbTextMiddleCenter{position:absolute}.arjs-cbTextMiddleRight{padding-right:2px;width:calc(100% - 2px)}.arjs-textBoxItem{display:flex;position:absolute;overflow:hidden}.arjs-textBoxContent{width:100%;max-height:100%;overflow:hidden;text-decoration-style:inherit;text-decoration-line:inherit;transform-origin:left top}.arjs-whitespace{white-space-collapse:preserve}.arjs-hideOverflow{overflow:hidden}.arjs-action{cursor:pointer;text-decoration-style:inherit;text-decoration-line:inherit}.arjs-action.arjs-control{background-size:contain;background-repeat:no-repeat;display:inline-block}.arjs-action.arjs-control.arjs-toggle-placeholder,.arjs-action.arjs-control.arjs-toggle-expanded,.arjs-action.arjs-control.arjs-toggle-collapsed{min-width:15px;min-height:15px}.arjs-action.arjs-control.arjs-sort-placeholder,.arjs-action.arjs-control.arjs-sort-variant,.arjs-action.arjs-control.arjs-sort-ascending,.arjs-action.arjs-control.arjs-sort-descending{min-width:18px;min-height:18px}.arjs-toggle-expanded{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTE5LDEzSDEzVjE5SDExVjEzSDVWMTFIMTFWNUgxM1YxMUgxOVYxM1oiIC8+PC9zdmc+)}.arjs-toggle-collapsed{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTE5LDEzSDVWMTFIMTlWMTNaIiAvPjwvc3ZnPg==)}.arjs-icon-placeholder{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBoZWlnaHQ9IjI0IiB3aWR0aD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PC9zdmc+DQo=)}.arjs-sort-variant{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEwLDEzVjExSDE4VjEzSDEwTTEwLDE5VjE3SDE0VjE5SDEwTTEwLDdWNUgyMlY3SDEwTTYsMTdIOC41TDUsMjAuNUwxLjUsMTdINFY3SDEuNUw1LDMuNUw4LjUsN0g2VjE3WiIgLz48L3N2Zz4=)}.arjs-sort-ascending{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEwLDExVjEzSDE4VjExSDEwTTEwLDVWN0gxNFY1SDEwTTEwLDE3VjE5SDIyVjE3SDEwTTYsN0g4LjVMNSwzLjVMMS41LDdINFYyMEg2VjdaIiAvPjwvc3ZnPg==)}.arjs-sort-descending{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEwLDEzVjExSDE4VjEzSDEwTTEwLDE5VjE3SDE0VjE5SDEwTTEwLDdWNUgyMlY3SDEwTTYsMTdIOC41TDUsMjAuNUwxLjUsMTdINFY0SDZWMTdaIiAvPjwvc3ZnPg==)}.arjs-tocLevelLabel{text-decoration-style:inherit;text-decoration-line:inherit;white-space:pre-wrap}.arjs-flex-wrap{display:flex;flex-wrap:wrap;justify-content:flex-start}.arjs-barcode{display:flex}.arjs-barcode>div{flex:1}.arjs-flex-textitem{flex:0 1 auto;text-decoration-style:inherit;text-decoration-line:inherit;pointer-events:none}.arjs-flex-textfiller{flex:1 1 auto;position:relative;overflow:hidden;text-decoration-style:inherit;text-decoration-line:inherit;pointer-events:none}.arjs-text-tab{display:inline-block;text-align:left;text-decoration-style:inherit;text-decoration-line:inherit;pointer-events:none}.arjs-float-r{float:right;text-decoration-style:inherit;text-decoration-line:inherit}.arjs-float-r-abs{display:flex;flex-direction:row-reverse;position:absolute;right:0;text-decoration-style:inherit;text-decoration-line:inherit}.arjs-char-wrap{overflow-wrap:break-word;text-decoration-style:inherit;text-decoration-line:inherit}.arjs-bordersItem{pointer-events:none}.arjs-errorMessage{font-size:10pt;color:#000;padding:2pt}.arjs-inputField{display:table-cell;vertical-align:middle;height:100%}.arjs-inputFieldBase{position:relative;display:table;height:100%;width:100%}.arjs-fullSize{width:100%;height:100%}.arjs-textRun{overflow:hidden}.arjs-textLine{white-space:nowrap;display:block;text-indent:initial}.arjs-textLine:last-child{-moz-text-align-last:auto;text-align-last:auto}.arjs-textLine:first-child{text-indent:inherit}.arjs-richtext-list-item{display:flex;align-items:baseline}.arjs-richtext-list-item__content{flex-grow:1}.arjs-richtext-list-item__marker{display:flex;justify-content:flex-end;text-indent:0}.arjs-upright{-webkit-text-combine:horizontal;text-combine-upright:all}.arjs-frozen-row{position:relative}.arjs-frozen-cell{position:sticky}.arjs-cell-outline-borders{border-color:transparent!important}.arjs-cell-outline-borders>div>div{position:absolute}.arjs-cell-outline-borders>div{width:100%;height:100%}.arjs-frozen-cell>div>div{left:0;top:0}.gcdv-tooltip{position:absolute;z-index:1000;top:0;left:0;pointer-events:none;max-width:400px;padding:6px;background-color:#ffffe5;border:1px solid rgba(0,0,0,.1);border-radius:6px;box-shadow:0 6px 12px #0000002d;box-sizing:border-box}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
(function(Gt,Ji){typeof exports=="object"&&typeof module<"u"?Ji(exports):typeof define=="function"&&define.amd?define(["exports"],Ji):(Gt=typeof globalThis<"u"?globalThis:Gt||self,Ji((Gt.GC=Gt.GC||{},Gt.GC.ActiveReports=Gt.GC.ActiveReports||{},Gt.GC.ActiveReports.Core={})))})(this,function(Gt){"use strict";var k_e=Object.defineProperty;var N_e=(Gt,Ji,To)=>Ji in Gt?k_e(Gt,Ji,{enumerable:!0,configurable:!0,writable:!0,value:To}):Gt[Ji]=To;var ci=(Gt,Ji,To)=>N_e(Gt,typeof Ji!="symbol"?Ji+"":Ji,To);var FL,ri;function Ji(c,p){for(var a=0;a<p.length;a++){const h=p[a];if(typeof h!="string"&&!Array.isArray(h)){for(const g in h)if(g!=="default"&&!(g in c)){const m=Object.getOwnPropertyDescriptor(h,g);m&&Object.defineProperty(c,g,m.get?m:{enumerable:!0,get:()=>h[g]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}const To={selectAll:"$selectAll"},Ya=void 0,BL=(c,p)=>{var a;return p?c===p:((a=c)===null||a===void 0?void 0:a.selectAll)==="$selectAll"},Jc=(c,p)=>{var a;return((a=c)===null||a===void 0?void 0:a.length)===1&&BL(c[0],p)};var Bi;(function(c){c[c.ok=0]="ok",c[c.expectValue=1]="expectValue",c[c.hasOutstandingDependencies=2]="hasOutstandingDependencies",c[c.validationFailed=3]="validationFailed",c[c.dynamicValuesUnavailable=4]="dynamicValuesUnavailable",c[c.communicating=5]="communicating",c[c.isValidation=6]="isValidation"})(Bi||(Bi={}));function RL(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var c0={exports:{}},Tn=c0.exports={},jr,Ur;function ch(){throw new Error("setTimeout has not been defined")}function _h(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?jr=setTimeout:jr=ch}catch{jr=ch}try{typeof clearTimeout=="function"?Ur=clearTimeout:Ur=_h}catch{Ur=_h}})();function _0(c){if(jr===setTimeout)return setTimeout(c,0);if((jr===ch||!jr)&&setTimeout)return jr=setTimeout,setTimeout(c,0);try{return jr(c,0)}catch{try{return jr.call(null,c,0)}catch{return jr.call(this,c,0)}}}function kL(c){if(Ur===clearTimeout)return clearTimeout(c);if((Ur===_h||!Ur)&&clearTimeout)return Ur=clearTimeout,clearTimeout(c);try{return Ur(c)}catch{try{return Ur.call(null,c)}catch{return Ur.call(this,c)}}}var Eo=[],Ja=!1,$l,Xc=-1;function NL(){!Ja||!$l||(Ja=!1,$l.length?Eo=$l.concat(Eo):Xc=-1,Eo.length&&p0())}function p0(){if(!Ja){var c=_0(NL);Ja=!0;for(var p=Eo.length;p;){for($l=Eo,Eo=[];++Xc<p;)$l&&$l[Xc].run();Xc=-1,p=Eo.length}$l=null,Ja=!1,kL(c)}}Tn.nextTick=function(c){var p=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)p[a-1]=arguments[a];Eo.push(new f0(c,p)),Eo.length===1&&!Ja&&_0(p0)};function f0(c,p){this.fun=c,this.array=p}f0.prototype.run=function(){this.fun.apply(null,this.array)},Tn.title="browser",Tn.browser=!0,Tn.env={},Tn.argv=[],Tn.version="",Tn.versions={};function Fo(){}Tn.on=Fo,Tn.addListener=Fo,Tn.once=Fo,Tn.off=Fo,Tn.removeListener=Fo,Tn.removeAllListeners=Fo,Tn.emit=Fo,Tn.prependListener=Fo,Tn.prependOnceListener=Fo,Tn.listeners=function(c){return[]},Tn.binding=function(c){throw new Error("process.binding is not supported")},Tn.cwd=function(){return"/"},Tn.chdir=function(c){throw new Error("process.chdir is not supported")},Tn.umask=function(){return 0};var zL=c0.exports;const hs=RL(zL);var Xa=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function Hr(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function jL(c){if(c.__esModule)return c;var p=c.default;if(typeof p=="function"){var a=function h(){return this instanceof h?Reflect.construct(p,arguments,this.constructor):p.apply(this,arguments)};a.prototype=p.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(c).forEach(function(h){var g=Object.getOwnPropertyDescriptor(c,h);Object.defineProperty(a,h,g.get?g:{enumerable:!0,get:function(){return c[h]}})}),a}var ph={exports:{}};(function(c,p){var a={NODE_ENV:"production"};Object.defineProperty(p,"__esModule",{value:!0});function h(C){return typeof C=="object"&&!("toString"in C)?Object.prototype.toString.call(C).slice(8,-1):C}var g=typeof hs=="object"&&a.NODE_ENV==="production";function m(C,P){if(!C)throw g?new Error("Invariant failed"):new Error(P())}p.invariant=m;var t=Object.prototype.hasOwnProperty,s=Array.prototype.splice,l=Object.prototype.toString;function i(C){return l.call(C).slice(8,-1)}var e=Object.assign||function(C,P){return n(P).forEach(function(x){t.call(P,x)&&(C[x]=P[x])}),C},n=typeof Object.getOwnPropertySymbols=="function"?function(C){return Object.keys(C).concat(Object.getOwnPropertySymbols(C))}:function(C){return Object.keys(C)};function r(C){return Array.isArray(C)?e(C.constructor(C.length),C):i(C)==="Map"?new Map(C):i(C)==="Set"?new Set(C):C&&typeof C=="object"?e(Object.create(Object.getPrototypeOf(C)),C):C}var o=function(){function C(){this.commands=e({},u),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(P,x){return P===x},this.update.newContext=function(){return new C().update}}return Object.defineProperty(C.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(P){this.update.isEquals=P},enumerable:!0,configurable:!0}),C.prototype.extend=function(P,x){this.commands[P]=x},C.prototype.update=function(P,x){var M=this,V=typeof x=="function"?{$apply:x}:x;Array.isArray(P)&&Array.isArray(V)||m(!Array.isArray(V),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),m(typeof V=="object"&&V!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(M.commands).join(", ")+".")});var A=P;return n(V).forEach(function(O){if(t.call(M.commands,O)){var L=P===A;A=M.commands[O](V[O],A,V,P),L&&M.isEquals(A,P)&&(A=P)}else{var T=i(P)==="Map"?M.update(P.get(O),V[O]):M.update(P[O],V[O]),F=i(A)==="Map"?A.get(O):A[O];(!M.isEquals(T,F)||typeof T>"u"&&!t.call(P,O))&&(A===P&&(A=r(P)),i(A)==="Map"?A.set(O,T):A[O]=T)}}),A},C}();p.Context=o;var u={$push:function(C,P,x){return f(P,x,"$push"),C.length?P.concat(C):P},$unshift:function(C,P,x){return f(P,x,"$unshift"),C.length?C.concat(P):P},$splice:function(C,P,x,M){return y(P,x),C.forEach(function(V){v(V),P===M&&V.length&&(P=r(M)),s.apply(P,V)}),P},$set:function(C,P,x){return b(x),C},$toggle:function(C,P){d(C,"$toggle");var x=C.length?r(P):P;return C.forEach(function(M){x[M]=!P[M]}),x},$unset:function(C,P,x,M){return d(C,"$unset"),C.forEach(function(V){Object.hasOwnProperty.call(P,V)&&(P===M&&(P=r(M)),delete P[V])}),P},$add:function(C,P,x,M){return S(P,"$add"),d(C,"$add"),i(P)==="Map"?C.forEach(function(V){var A=V[0],O=V[1];P===M&&P.get(A)!==O&&(P=r(M)),P.set(A,O)}):C.forEach(function(V){P===M&&!P.has(V)&&(P=r(M)),P.add(V)}),P},$remove:function(C,P,x,M){return S(P,"$remove"),d(C,"$remove"),C.forEach(function(V){P===M&&P.has(V)&&(P=r(M)),P.delete(V)}),P},$merge:function(C,P,x,M){return D(P,C),n(C).forEach(function(V){C[V]!==P[V]&&(P===M&&(P=r(M)),P[V]=C[V])}),P},$apply:function(C,P){return w(C),C(P)}},_=new o;p.isEquals=_.update.isEquals,p.extend=_.extend,p.default=_.update,p.default.default=c.exports=e(p.default,p);function f(C,P,x){m(Array.isArray(C),function(){return"update(): expected target of "+h(x)+" to be an array; got "+h(C)+"."}),d(P[x],x)}function d(C,P){m(Array.isArray(C),function(){return"update(): expected spec of "+h(P)+" to be an array; got "+h(C)+". Did you forget to wrap your parameter in an array?"})}function y(C,P){m(Array.isArray(C),function(){return"Expected $splice target to be an array; got "+h(C)}),v(P.$splice)}function v(C){m(Array.isArray(C),function(){return"update(): expected spec of $splice to be an array of arrays; got "+h(C)+". Did you forget to wrap your parameters in an array?"})}function w(C){m(typeof C=="function",function(){return"update(): expected spec of $apply to be a function; got "+h(C)+"."})}function b(C){m(Object.keys(C).length===1,function(){return"Cannot have more than one key in an object with $set"})}function D(C,P){m(P&&typeof P=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+h(P)}),m(C&&typeof C=="object",function(){return"update(): $merge expects a target of type 'object'; got "+h(C)})}function S(C,P){var x=i(C);m(x==="Map"||x==="Set",function(){return"update(): "+h(P)+" expects a target of type Set or Map; got "+h(x)})}})(ph,ph.exports);var UL=ph.exports;const fh=Hr(UL);function Ri(c){"@babel/helpers - typeof";return Ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},Ri(c)}function Xi(c){if(c===null||c===!0||c===!1)return NaN;var p=Number(c);return isNaN(p)?p:p<0?Math.ceil(p):Math.floor(p)}function $n(c,p){if(p.length<c)throw new TypeError(c+" argument"+(c>1?"s":"")+" required, but only "+p.length+" present")}function ki(c){$n(1,arguments);var p=Object.prototype.toString.call(c);return c instanceof Date||Ri(c)==="object"&&p==="[object Date]"?new Date(c.getTime()):typeof c=="number"||p==="[object Number]"?new Date(c):((typeof c=="string"||p==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function HL(c,p){$n(2,arguments);var a=ki(c).getTime(),h=Xi(p);return new Date(a+h)}var GL={};function ds(){return GL}function WL(c){var p=new Date(Date.UTC(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds()));return p.setUTCFullYear(c.getFullYear()),c.getTime()-p.getTime()}var hh=6e4,dh=36e5,qL=1e3;function $L(c){return $n(1,arguments),c instanceof Date||Ri(c)==="object"&&Object.prototype.toString.call(c)==="[object Date]"}function h0(c){if($n(1,arguments),!$L(c)&&typeof c!="number")return!1;var p=ki(c);return!isNaN(Number(p))}function YL(c,p){$n(2,arguments);var a=Xi(p);return HL(c,-a)}function Ka(c){$n(1,arguments);var p=1,a=ki(c),h=a.getUTCDay(),g=(h<p?7:0)+h-p;return a.setUTCDate(a.getUTCDate()-g),a.setUTCHours(0,0,0,0),a}function JL(c){$n(1,arguments);var p=ki(c),a=p.getUTCFullYear(),h=new Date(0);h.setUTCFullYear(a+1,0,4),h.setUTCHours(0,0,0,0);var g=Ka(h),m=new Date(0);m.setUTCFullYear(a,0,4),m.setUTCHours(0,0,0,0);var t=Ka(m);return p.getTime()>=g.getTime()?a+1:p.getTime()>=t.getTime()?a:a-1}function XL(c){$n(1,arguments);var p=JL(c),a=new Date(0);a.setUTCFullYear(p,0,4),a.setUTCHours(0,0,0,0);var h=Ka(a);return h}var KL=6048e5;function ZL(c){$n(1,arguments);var p=ki(c),a=Ka(p).getTime()-XL(p).getTime();return Math.round(a/KL)+1}function Yl(c,p){var a,h,g,m,t,s,l,i;$n(1,arguments);var e=ds(),n=Xi((a=(h=(g=(m=p==null?void 0:p.weekStartsOn)!==null&&m!==void 0?m:p==null||(t=p.locale)===null||t===void 0||(s=t.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&g!==void 0?g:e.weekStartsOn)!==null&&h!==void 0?h:(l=e.locale)===null||l===void 0||(i=l.options)===null||i===void 0?void 0:i.weekStartsOn)!==null&&a!==void 0?a:0);if(!(n>=0&&n<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var r=ki(c),o=r.getUTCDay(),u=(o<n?7:0)+o-n;return r.setUTCDate(r.getUTCDate()-u),r.setUTCHours(0,0,0,0),r}function d0(c,p){var a,h,g,m,t,s,l,i;$n(1,arguments);var e=ki(c),n=e.getUTCFullYear(),r=ds(),o=Xi((a=(h=(g=(m=p==null?void 0:p.firstWeekContainsDate)!==null&&m!==void 0?m:p==null||(t=p.locale)===null||t===void 0||(s=t.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&g!==void 0?g:r.firstWeekContainsDate)!==null&&h!==void 0?h:(l=r.locale)===null||l===void 0||(i=l.options)===null||i===void 0?void 0:i.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(o>=1&&o<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(n+1,0,o),u.setUTCHours(0,0,0,0);var _=Yl(u,p),f=new Date(0);f.setUTCFullYear(n,0,o),f.setUTCHours(0,0,0,0);var d=Yl(f,p);return e.getTime()>=_.getTime()?n+1:e.getTime()>=d.getTime()?n:n-1}function QL(c,p){var a,h,g,m,t,s,l,i;$n(1,arguments);var e=ds(),n=Xi((a=(h=(g=(m=p==null?void 0:p.firstWeekContainsDate)!==null&&m!==void 0?m:p==null||(t=p.locale)===null||t===void 0||(s=t.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&g!==void 0?g:e.firstWeekContainsDate)!==null&&h!==void 0?h:(l=e.locale)===null||l===void 0||(i=l.options)===null||i===void 0?void 0:i.firstWeekContainsDate)!==null&&a!==void 0?a:1),r=d0(c,p),o=new Date(0);o.setUTCFullYear(r,0,n),o.setUTCHours(0,0,0,0);var u=Yl(o,p);return u}var eT=6048e5;function tT(c,p){$n(1,arguments);var a=ki(c),h=Yl(a,p).getTime()-QL(a,p).getTime();return Math.round(h/eT)+1}var y0=function(p,a){switch(p){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},g0=function(p,a){switch(p){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},nT=function(p,a){var h=p.match(/(P+)(p+)?/)||[],g=h[1],m=h[2];if(!m)return y0(p,a);var t;switch(g){case"P":t=a.dateTime({width:"short"});break;case"PP":t=a.dateTime({width:"medium"});break;case"PPP":t=a.dateTime({width:"long"});break;case"PPPP":default:t=a.dateTime({width:"full"});break}return t.replace("{{date}}",y0(g,a)).replace("{{time}}",g0(m,a))},m0={p:g0,P:nT},iT=["D","DD"],rT=["YY","YYYY"];function oT(c){return iT.indexOf(c)!==-1}function lT(c){return rT.indexOf(c)!==-1}function v0(c,p,a){if(c==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(p,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(c==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(p,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(c==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(p,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(c==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(p,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var aT={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},uT=function(p,a,h){var g,m=aT[p];return typeof m=="string"?g=m:a===1?g=m.one:g=m.other.replace("{{count}}",a.toString()),h!=null&&h.addSuffix?h.comparison&&h.comparison>0?"in "+g:g+" ago":g};function yh(c){return function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=p.width?String(p.width):c.defaultWidth,h=c.formats[a]||c.formats[c.defaultWidth];return h}}var sT={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cT={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_T={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pT={date:yh({formats:sT,defaultWidth:"full"}),time:yh({formats:cT,defaultWidth:"full"}),dateTime:yh({formats:_T,defaultWidth:"full"})},fT={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hT=function(p,a,h,g){return fT[p]};function ys(c){return function(p,a){var h=a!=null&&a.context?String(a.context):"standalone",g;if(h==="formatting"&&c.formattingValues){var m=c.defaultFormattingWidth||c.defaultWidth,t=a!=null&&a.width?String(a.width):m;g=c.formattingValues[t]||c.formattingValues[m]}else{var s=c.defaultWidth,l=a!=null&&a.width?String(a.width):c.defaultWidth;g=c.values[l]||c.values[s]}var i=c.argumentCallback?c.argumentCallback(p):p;return g[i]}}var dT={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},yT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},gT={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},mT={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},vT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},wT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},bT=function(p,a){var h=Number(p),g=h%100;if(g>20||g<10)switch(g%10){case 1:return h+"st";case 2:return h+"nd";case 3:return h+"rd"}return h+"th"},DT={ordinalNumber:bT,era:ys({values:dT,defaultWidth:"wide"}),quarter:ys({values:yT,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:ys({values:gT,defaultWidth:"wide"}),day:ys({values:mT,defaultWidth:"wide"}),dayPeriod:ys({values:vT,defaultWidth:"wide",formattingValues:wT,defaultFormattingWidth:"wide"})};function gs(c){return function(p){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=a.width,g=h&&c.matchPatterns[h]||c.matchPatterns[c.defaultMatchWidth],m=p.match(g);if(!m)return null;var t=m[0],s=h&&c.parsePatterns[h]||c.parsePatterns[c.defaultParseWidth],l=Array.isArray(s)?CT(s,function(n){return n.test(t)}):ST(s,function(n){return n.test(t)}),i;i=c.valueCallback?c.valueCallback(l):l,i=a.valueCallback?a.valueCallback(i):i;var e=p.slice(t.length);return{value:i,rest:e}}}function ST(c,p){for(var a in c)if(c.hasOwnProperty(a)&&p(c[a]))return a}function CT(c,p){for(var a=0;a<c.length;a++)if(p(c[a]))return a}function PT(c){return function(p){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=p.match(c.matchPattern);if(!h)return null;var g=h[0],m=p.match(c.parsePattern);if(!m)return null;var t=c.valueCallback?c.valueCallback(m[0]):m[0];t=a.valueCallback?a.valueCallback(t):t;var s=p.slice(g.length);return{value:t,rest:s}}}var xT=/^(\d+)(th|st|nd|rd)?/i,MT=/\d+/i,VT={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},AT={any:[/^b/i,/^(a|c)/i]},OT={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},LT={any:[/1/i,/2/i,/3/i,/4/i]},TT={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ET={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},FT={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},IT={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},BT={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},RT={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kT={ordinalNumber:PT({matchPattern:xT,parsePattern:MT,valueCallback:function(p){return parseInt(p,10)}}),era:gs({matchPatterns:VT,defaultMatchWidth:"wide",parsePatterns:AT,defaultParseWidth:"any"}),quarter:gs({matchPatterns:OT,defaultMatchWidth:"wide",parsePatterns:LT,defaultParseWidth:"any",valueCallback:function(p){return p+1}}),month:gs({matchPatterns:TT,defaultMatchWidth:"wide",parsePatterns:ET,defaultParseWidth:"any"}),day:gs({matchPatterns:FT,defaultMatchWidth:"wide",parsePatterns:IT,defaultParseWidth:"any"}),dayPeriod:gs({matchPatterns:BT,defaultMatchWidth:"any",parsePatterns:RT,defaultParseWidth:"any"})},NT={code:"en-US",formatDistance:uT,formatLong:pT,formatRelative:hT,localize:DT,match:kT,options:{weekStartsOn:0,firstWeekContainsDate:1}};function zT(c,p){if(c==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var a in p)Object.prototype.hasOwnProperty.call(p,a)&&(c[a]=p[a]);return c}function w0(c,p){(p==null||p>c.length)&&(p=c.length);for(var a=0,h=Array(p);a<p;a++)h[a]=c[a];return h}function jT(c,p){if(c){if(typeof c=="string")return w0(c,p);var a={}.toString.call(c).slice(8,-1);return a==="Object"&&c.constructor&&(a=c.constructor.name),a==="Map"||a==="Set"?Array.from(c):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?w0(c,p):void 0}}function b0(c,p){var a=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!a){if(Array.isArray(c)||(a=jT(c))||p){a&&(c=a);var h=0,g=function(){};return{s:g,n:function(){return h>=c.length?{done:!0}:{done:!1,value:c[h++]}},e:function(i){throw i},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m,t=!0,s=!1;return{s:function(){a=a.call(c)},n:function(){var i=a.next();return t=i.done,i},e:function(i){s=!0,m=i},f:function(){try{t||a.return==null||a.return()}finally{if(s)throw m}}}}function Xe(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function gh(c,p){return gh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,h){return a.__proto__=h,a},gh(c,p)}function Bt(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),p&&gh(c,p)}function al(c){return al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},al(c)}function D0(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D0=function(){return!!c})()}function Za(c,p){if(p&&(Ri(p)=="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xe(c)}function jt(c){var p=D0();return function(){var a,h=al(c);if(p){var g=al(this).constructor;a=Reflect.construct(h,arguments,g)}else a=h.apply(this,arguments);return Za(this,a)}}function gt(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function UT(c,p){if(Ri(c)!="object"||!c)return c;var a=c[Symbol.toPrimitive];if(a!==void 0){var h=a.call(c,p);if(Ri(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}function S0(c){var p=UT(c,"string");return Ri(p)=="symbol"?p:p+""}function C0(c,p){for(var a=0;a<p.length;a++){var h=p[a];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(c,S0(h.key),h)}}function mt(c,p,a){return p&&C0(c.prototype,p),a&&C0(c,a),Object.defineProperty(c,"prototype",{writable:!1}),c}function Ke(c,p,a){return(p=S0(p))in c?Object.defineProperty(c,p,{value:a,enumerable:!0,configurable:!0,writable:!0}):c[p]=a,c}var HT=10,P0=function(){function c(){gt(this,c),Ke(this,"priority",void 0),Ke(this,"subPriority",0)}return mt(c,[{key:"validate",value:function(a,h){return!0}}]),c}(),GT=function(c){Bt(a,c);var p=jt(a);function a(h,g,m,t,s){var l;return gt(this,a),l=p.call(this),l.value=h,l.validateValue=g,l.setValue=m,l.priority=t,s&&(l.subPriority=s),l}return mt(a,[{key:"validate",value:function(g,m){return this.validateValue(g,this.value,m)}},{key:"set",value:function(g,m,t){return this.setValue(g,m,this.value,t)}}]),a}(P0),WT=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"priority",HT),Ke(Xe(h),"subPriority",-1),h}return mt(a,[{key:"set",value:function(g,m){if(m.timestampIsSet)return g;var t=new Date(0);return t.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),t.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),t}}]),a}(P0),Yt=function(){function c(){gt(this,c),Ke(this,"incompatibleTokens",void 0),Ke(this,"priority",void 0),Ke(this,"subPriority",void 0)}return mt(c,[{key:"run",value:function(a,h,g,m){var t=this.parse(a,h,g,m);return t?{setter:new GT(t.value,this.validate,this.set,this.priority,this.subPriority),rest:t.rest}:null}},{key:"validate",value:function(a,h,g){return!0}}]),c}(),qT=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"priority",140),Ke(Xe(h),"incompatibleTokens",["R","u","t","T"]),h}return mt(a,[{key:"parse",value:function(g,m,t){switch(m){case"G":case"GG":case"GGG":return t.era(g,{width:"abbreviated"})||t.era(g,{width:"narrow"});case"GGGGG":return t.era(g,{width:"narrow"});case"GGGG":default:return t.era(g,{width:"wide"})||t.era(g,{width:"abbreviated"})||t.era(g,{width:"narrow"})}}},{key:"set",value:function(g,m,t){return m.era=t,g.setUTCFullYear(t,0,1),g.setUTCHours(0,0,0,0),g}}]),a}(Yt),En={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Gr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Fn(c,p){return c&&{value:p(c.value),rest:c.rest}}function vn(c,p){var a=p.match(c);return a?{value:parseInt(a[0],10),rest:p.slice(a[0].length)}:null}function Wr(c,p){var a=p.match(c);if(!a)return null;if(a[0]==="Z")return{value:0,rest:p.slice(1)};var h=a[1]==="+"?1:-1,g=a[2]?parseInt(a[2],10):0,m=a[3]?parseInt(a[3],10):0,t=a[5]?parseInt(a[5],10):0;return{value:h*(g*dh+m*hh+t*qL),rest:p.slice(a[0].length)}}function x0(c){return vn(En.anyDigitsSigned,c)}function Mn(c,p){switch(c){case 1:return vn(En.singleDigit,p);case 2:return vn(En.twoDigits,p);case 3:return vn(En.threeDigits,p);case 4:return vn(En.fourDigits,p);default:return vn(new RegExp("^\\d{1,"+c+"}"),p)}}function Kc(c,p){switch(c){case 1:return vn(En.singleDigitSigned,p);case 2:return vn(En.twoDigitsSigned,p);case 3:return vn(En.threeDigitsSigned,p);case 4:return vn(En.fourDigitsSigned,p);default:return vn(new RegExp("^-?\\d{1,"+c+"}"),p)}}function mh(c){switch(c){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function M0(c,p){var a=p>0,h=a?p:1-p,g;if(h<=50)g=c||100;else{var m=h+50,t=Math.floor(m/100)*100,s=c>=m%100;g=c+t-(s?100:0)}return a?g:1-g}function V0(c){return c%400===0||c%4===0&&c%100!==0}var $T=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"priority",130),Ke(Xe(h),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),h}return mt(a,[{key:"parse",value:function(g,m,t){var s=function(i){return{year:i,isTwoDigitYear:m==="yy"}};switch(m){case"y":return Fn(Mn(4,g),s);case"yo":return Fn(t.ordinalNumber(g,{unit:"year"}),s);default:return Fn(Mn(m.length,g),s)}}},{key:"validate",value:function(g,m){return m.isTwoDigitYear||m.year>0}},{key:"set",value:function(g,m,t){var s=g.getUTCFullYear();if(t.isTwoDigitYear){var l=M0(t.year,s);return g.setUTCFullYear(l,0,1),g.setUTCHours(0,0,0,0),g}var i=!("era"in m)||m.era===1?t.year:1-t.year;return g.setUTCFullYear(i,0,1),g.setUTCHours(0,0,0,0),g}}]),a}(Yt),YT=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"priority",130),Ke(Xe(h),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),h}return mt(a,[{key:"parse",value:function(g,m,t){var s=function(i){return{year:i,isTwoDigitYear:m==="YY"}};switch(m){case"Y":return Fn(Mn(4,g),s);case"Yo":return Fn(t.ordinalNumber(g,{unit:"year"}),s);default:return Fn(Mn(m.length,g),s)}}},{key:"validate",value:function(g,m){return m.isTwoDigitYear||m.year>0}},{key:"set",value:function(g,m,t,s){var l=d0(g,s);if(t.isTwoDigitYear){var i=M0(t.year,l);return g.setUTCFullYear(i,0,s.firstWeekContainsDate),g.setUTCHours(0,0,0,0),Yl(g,s)}var e=!("era"in m)||m.era===1?t.year:1-t.year;return g.setUTCFullYear(e,0,s.firstWeekContainsDate),g.setUTCHours(0,0,0,0),Yl(g,s)}}]),a}(Yt),JT=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"priority",130),Ke(Xe(h),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),h}return mt(a,[{key:"parse",value:function(g,m){return Kc(m==="R"?4:m.length,g)}},{key:"set",value:function(g,m,t){var s=new Date(0);return s.setUTCFullYear(t,0,4),s.setUTCHours(0,0,0,0),Ka(s)}}]),a}(Yt),XT=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"priority",130),Ke(Xe(h),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),h}return mt(a,[{key:"parse",value:function(g,m){return Kc(m==="u"?4:m.length,g)}},{key:"set",value:function(g,m,t){return g.setUTCFullYear(t,0,1),g.setUTCHours(0,0,0,0),g}}]),a}(Yt),KT=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"priority",120),Ke(Xe(h),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),h}return mt(a,[{key:"parse",value:function(g,m,t){switch(m){case"Q":case"QQ":return Mn(m.length,g);case"Qo":return t.ordinalNumber(g,{unit:"quarter"});case"QQQ":return t.quarter(g,{width:"abbreviated",context:"formatting"})||t.quarter(g,{width:"narrow",context:"formatting"});case"QQQQQ":return t.quarter(g,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(g,{width:"wide",context:"formatting"})||t.quarter(g,{width:"abbreviated",context:"formatting"})||t.quarter(g,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(g,m){return m>=1&&m<=4}},{key:"set",value:function(g,m,t){return g.setUTCMonth((t-1)*3,1),g.setUTCHours(0,0,0,0),g}}]),a}(Yt),ZT=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"priority",120),Ke(Xe(h),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),h}return mt(a,[{key:"parse",value:function(g,m,t){switch(m){case"q":case"qq":return Mn(m.length,g);case"qo":return t.ordinalNumber(g,{unit:"quarter"});case"qqq":return t.quarter(g,{width:"abbreviated",context:"standalone"})||t.quarter(g,{width:"narrow",context:"standalone"});case"qqqqq":return t.quarter(g,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(g,{width:"wide",context:"standalone"})||t.quarter(g,{width:"abbreviated",context:"standalone"})||t.quarter(g,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(g,m){return m>=1&&m<=4}},{key:"set",value:function(g,m,t){return g.setUTCMonth((t-1)*3,1),g.setUTCHours(0,0,0,0),g}}]),a}(Yt),QT=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Ke(Xe(h),"priority",110),h}return mt(a,[{key:"parse",value:function(g,m,t){var s=function(i){return i-1};switch(m){case"M":return Fn(vn(En.month,g),s);case"MM":return Fn(Mn(2,g),s);case"Mo":return Fn(t.ordinalNumber(g,{unit:"month"}),s);case"MMM":return t.month(g,{width:"abbreviated",context:"formatting"})||t.month(g,{width:"narrow",context:"formatting"});case"MMMMM":return t.month(g,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(g,{width:"wide",context:"formatting"})||t.month(g,{width:"abbreviated",context:"formatting"})||t.month(g,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(g,m){return m>=0&&m<=11}},{key:"set",value:function(g,m,t){return g.setUTCMonth(t,1),g.setUTCHours(0,0,0,0),g}}]),a}(Yt),eE=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"priority",110),Ke(Xe(h),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),h}return mt(a,[{key:"parse",value:function(g,m,t){var s=function(i){return i-1};switch(m){case"L":return Fn(vn(En.month,g),s);case"LL":return Fn(Mn(2,g),s);case"Lo":return Fn(t.ordinalNumber(g,{unit:"month"}),s);case"LLL":return t.month(g,{width:"abbreviated",context:"standalone"})||t.month(g,{width:"narrow",context:"standalone"});case"LLLLL":return t.month(g,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(g,{width:"wide",context:"standalone"})||t.month(g,{width:"abbreviated",context:"standalone"})||t.month(g,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(g,m){return m>=0&&m<=11}},{key:"set",value:function(g,m,t){return g.setUTCMonth(t,1),g.setUTCHours(0,0,0,0),g}}]),a}(Yt);function tE(c,p,a){$n(2,arguments);var h=ki(c),g=Xi(p),m=tT(h,a)-g;return h.setUTCDate(h.getUTCDate()-m*7),h}var nE=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"priority",100),Ke(Xe(h),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),h}return mt(a,[{key:"parse",value:function(g,m,t){switch(m){case"w":return vn(En.week,g);case"wo":return t.ordinalNumber(g,{unit:"week"});default:return Mn(m.length,g)}}},{key:"validate",value:function(g,m){return m>=1&&m<=53}},{key:"set",value:function(g,m,t,s){return Yl(tE(g,t,s),s)}}]),a}(Yt);function iE(c,p){$n(2,arguments);var a=ki(c),h=Xi(p),g=ZL(a)-h;return a.setUTCDate(a.getUTCDate()-g*7),a}var rE=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"priority",100),Ke(Xe(h),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),h}return mt(a,[{key:"parse",value:function(g,m,t){switch(m){case"I":return vn(En.week,g);case"Io":return t.ordinalNumber(g,{unit:"week"});default:return Mn(m.length,g)}}},{key:"validate",value:function(g,m){return m>=1&&m<=53}},{key:"set",value:function(g,m,t){return Ka(iE(g,t))}}]),a}(Yt),oE=[31,28,31,30,31,30,31,31,30,31,30,31],lE=[31,29,31,30,31,30,31,31,30,31,30,31],aE=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"priority",90),Ke(Xe(h),"subPriority",1),Ke(Xe(h),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),h}return mt(a,[{key:"parse",value:function(g,m,t){switch(m){case"d":return vn(En.date,g);case"do":return t.ordinalNumber(g,{unit:"date"});default:return Mn(m.length,g)}}},{key:"validate",value:function(g,m){var t=g.getUTCFullYear(),s=V0(t),l=g.getUTCMonth();return s?m>=1&&m<=lE[l]:m>=1&&m<=oE[l]}},{key:"set",value:function(g,m,t){return g.setUTCDate(t),g.setUTCHours(0,0,0,0),g}}]),a}(Yt),uE=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"priority",90),Ke(Xe(h),"subpriority",1),Ke(Xe(h),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),h}return mt(a,[{key:"parse",value:function(g,m,t){switch(m){case"D":case"DD":return vn(En.dayOfYear,g);case"Do":return t.ordinalNumber(g,{unit:"date"});default:return Mn(m.length,g)}}},{key:"validate",value:function(g,m){var t=g.getUTCFullYear(),s=V0(t);return s?m>=1&&m<=366:m>=1&&m<=365}},{key:"set",value:function(g,m,t){return g.setUTCMonth(0,t),g.setUTCHours(0,0,0,0),g}}]),a}(Yt);function vh(c,p,a){var h,g,m,t,s,l,i,e;$n(2,arguments);var n=ds(),r=Xi((h=(g=(m=(t=a==null?void 0:a.weekStartsOn)!==null&&t!==void 0?t:a==null||(s=a.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&m!==void 0?m:n.weekStartsOn)!==null&&g!==void 0?g:(i=n.locale)===null||i===void 0||(e=i.options)===null||e===void 0?void 0:e.weekStartsOn)!==null&&h!==void 0?h:0);if(!(r>=0&&r<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var o=ki(c),u=Xi(p),_=o.getUTCDay(),f=u%7,d=(f+7)%7,y=(d<r?7:0)+u-_;return o.setUTCDate(o.getUTCDate()+y),o}var sE=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"priority",90),Ke(Xe(h),"incompatibleTokens",["D","i","e","c","t","T"]),h}return mt(a,[{key:"parse",value:function(g,m,t){switch(m){case"E":case"EE":case"EEE":return t.day(g,{width:"abbreviated",context:"formatting"})||t.day(g,{width:"short",context:"formatting"})||t.day(g,{width:"narrow",context:"formatting"});case"EEEEE":return t.day(g,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(g,{width:"short",context:"formatting"})||t.day(g,{width:"narrow",context:"formatting"});case"EEEE":default:return t.day(g,{width:"wide",context:"formatting"})||t.day(g,{width:"abbreviated",context:"formatting"})||t.day(g,{width:"short",context:"formatting"})||t.day(g,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(g,m){return m>=0&&m<=6}},{key:"set",value:function(g,m,t,s){return g=vh(g,t,s),g.setUTCHours(0,0,0,0),g}}]),a}(Yt),cE=function(c){Bt(a,c);var p=jt(a);function a(){var h;gt(this,a);for(var g=arguments.length,m=new Array(g),t=0;t<g;t++)m[t]=arguments[t];return h=p.call.apply(p,[this].concat(m)),Ke(Xe(h),"priority",90),Ke(Xe(h),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),h}return mt(a,[{key:"parse",value:fu