@mescius/activereportsjs
Version:
ActiveReportsJS
9 lines • 6.19 MB
JavaScript
/*!
* @mescius/activereports 5.2.1
* Description: ActiveReportsJS
* https://www.npmjs.com/package/@mescius/activereports
* Copyright ©️ MESCIUS inc. 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(Pt,wi){typeof exports=="object"&&typeof module<"u"?wi(exports):typeof define=="function"&&define.amd?define(["exports"],wi):(Pt=typeof globalThis<"u"?globalThis:Pt||self,wi((Pt.MESCIUS=Pt.MESCIUS||{},Pt.MESCIUS.ActiveReportsJS=Pt.MESCIUS.ActiveReportsJS||{},Pt.MESCIUS.ActiveReportsJS.Core={})))})(this,function(Pt){"use strict";var fae=Object.defineProperty;var hae=(Pt,wi,Ai)=>wi in Pt?fae(Pt,wi,{enumerable:!0,configurable:!0,writable:!0,value:Ai}):Pt[wi]=Ai;var Bn=(Pt,wi,Ai)=>hae(Pt,typeof wi!="symbol"?wi+"":wi,Ai);var zO;function wi(c,f){for(var a=0;a<f.length;a++){const d=f[a];if(typeof d!="string"&&!Array.isArray(d)){for(const g in d)if(g!=="default"&&!(g in c)){const v=Object.getOwnPropertyDescriptor(d,g);v&&Object.defineProperty(c,g,v.get?v:{enumerable:!0,get:()=>d[g]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}const Ai={selectAll:"$selectAll"},na=void 0;var ui;(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"})(ui||(ui={}));function UO(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var Xg={exports:{}},sn=Xg.exports={},_r,pr;function ef(){throw new Error("setTimeout has not been defined")}function tf(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_r=setTimeout:_r=ef}catch{_r=ef}try{typeof clearTimeout=="function"?pr=clearTimeout:pr=tf}catch{pr=tf}})();function Kg(c){if(_r===setTimeout)return setTimeout(c,0);if((_r===ef||!_r)&&setTimeout)return _r=setTimeout,setTimeout(c,0);try{return _r(c,0)}catch{try{return _r.call(null,c,0)}catch{return _r.call(this,c,0)}}}function HO(c){if(pr===clearTimeout)return clearTimeout(c);if((pr===tf||!pr)&&clearTimeout)return pr=clearTimeout,clearTimeout(c);try{return pr(c)}catch{try{return pr.call(null,c)}catch{return pr.call(this,c)}}}var $r=[],ia=!1,ol,$s=-1;function GO(){!ia||!ol||(ia=!1,ol.length?$r=ol.concat($r):$s=-1,$r.length&&Zg())}function Zg(){if(!ia){var c=Kg(GO);ia=!0;for(var f=$r.length;f;){for(ol=$r,$r=[];++$s<f;)ol&&ol[$s].run();$s=-1,f=$r.length}ol=null,ia=!1,HO(c)}}sn.nextTick=function(c){var f=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)f[a-1]=arguments[a];$r.push(new Qg(c,f)),$r.length===1&&!ia&&Kg(Zg)};function Qg(c,f){this.fun=c,this.array=f}Qg.prototype.run=function(){this.fun.apply(null,this.array)},sn.title="browser",sn.browser=!0,sn.env={},sn.argv=[],sn.version="",sn.versions={};function Yr(){}sn.on=Yr,sn.addListener=Yr,sn.once=Yr,sn.off=Yr,sn.removeListener=Yr,sn.removeAllListeners=Yr,sn.emit=Yr,sn.prependListener=Yr,sn.prependOnceListener=Yr,sn.listeners=function(c){return[]},sn.binding=function(c){throw new Error("process.binding is not supported")},sn.cwd=function(){return"/"},sn.chdir=function(c){throw new Error("process.chdir is not supported")},sn.umask=function(){return 0};var WO=Xg.exports;const du=UO(WO);var ra=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function fr(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function qO(c){if(c.__esModule)return c;var f=c.default;if(typeof f=="function"){var a=function d(){return this instanceof d?Reflect.construct(f,arguments,this.constructor):f.apply(this,arguments)};a.prototype=f.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(c).forEach(function(d){var g=Object.getOwnPropertyDescriptor(c,d);Object.defineProperty(a,d,g.get?g:{enumerable:!0,get:function(){return c[d]}})}),a}var nf={exports:{}};(function(c,f){var a={NODE_ENV:"production"};Object.defineProperty(f,"__esModule",{value:!0});function d(C){return typeof C=="object"&&!("toString"in C)?Object.prototype.toString.call(C).slice(8,-1):C}var g=typeof du=="object"&&a.NODE_ENV==="production";function v(C,P){if(!C)throw g?new Error("Invariant failed"):new Error(P())}f.invariant=v;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)||v(!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."}),v(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 O=P;return n(V).forEach(function(A){if(t.call(M.commands,A)){var L=P===O;O=M.commands[A](V[A],O,V,P),L&&M.isEquals(O,P)&&(O=P)}else{var E=i(P)==="Map"?M.update(P.get(A),V[A]):M.update(P[A],V[A]),F=i(O)==="Map"?O.get(A):O[A];(!M.isEquals(E,F)||typeof E>"u"&&!t.call(P,A))&&(O===P&&(O=r(P)),i(O)==="Map"?O.set(A,E):O[A]=E)}}),O},C}();f.Context=o;var u={$push:function(C,P,x){return p(P,x,"$push"),C.length?P.concat(C):P},$unshift:function(C,P,x){return p(P,x,"$unshift"),C.length?C.concat(P):P},$splice:function(C,P,x,M){return y(P,x),C.forEach(function(V){m(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){h(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 h(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"),h(C,"$add"),i(P)==="Map"?C.forEach(function(V){var O=V[0],A=V[1];P===M&&P.get(O)!==A&&(P=r(M)),P.set(O,A)}):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"),h(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;f.isEquals=_.update.isEquals,f.extend=_.extend,f.default=_.update,f.default.default=c.exports=e(f.default,f);function p(C,P,x){v(Array.isArray(C),function(){return"update(): expected target of "+d(x)+" to be an array; got "+d(C)+"."}),h(P[x],x)}function h(C,P){v(Array.isArray(C),function(){return"update(): expected spec of "+d(P)+" to be an array; got "+d(C)+". Did you forget to wrap your parameter in an array?"})}function y(C,P){v(Array.isArray(C),function(){return"Expected $splice target to be an array; got "+d(C)}),m(P.$splice)}function m(C){v(Array.isArray(C),function(){return"update(): expected spec of $splice to be an array of arrays; got "+d(C)+". Did you forget to wrap your parameters in an array?"})}function w(C){v(typeof C=="function",function(){return"update(): expected spec of $apply to be a function; got "+d(C)+"."})}function b(C){v(Object.keys(C).length===1,function(){return"Cannot have more than one key in an object with $set"})}function D(C,P){v(P&&typeof P=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+d(P)}),v(C&&typeof C=="object",function(){return"update(): $merge expects a target of type 'object'; got "+d(C)})}function S(C,P){var x=i(C);v(x==="Map"||x==="Set",function(){return"update(): "+d(P)+" expects a target of type Set or Map; got "+d(x)})}})(nf,nf.exports);var $O=nf.exports;const rf=fr($O);function Dn(c){if(c===null||c===!0||c===!1)return NaN;var f=Number(c);return isNaN(f)?f:f<0?Math.ceil(f):Math.floor(f)}function Sn(c,f){if(f.length<c)throw new TypeError(c+" argument"+(c>1?"s":"")+" required, but only "+f.length+" present")}function si(c){Sn(1,arguments);var f=Object.prototype.toString.call(c);return c instanceof Date||typeof c=="object"&&f==="[object Date]"?new Date(c.getTime()):typeof c=="number"||f==="[object Number]"?new Date(c):((typeof c=="string"||f==="[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://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function YO(c,f){Sn(2,arguments);var a=si(c).getTime(),d=Dn(f);return new Date(a+d)}function JO(c){var f=new Date(Date.UTC(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds()));return f.setUTCFullYear(c.getFullYear()),c.getTime()-f.getTime()}var em=6e4,tm=36e5;function XO(c){return Sn(1,arguments),c instanceof Date||typeof c=="object"&&Object.prototype.toString.call(c)==="[object Date]"}function nm(c){if(Sn(1,arguments),!XO(c)&&typeof c!="number")return!1;var f=si(c);return!isNaN(Number(f))}var KO={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"}},ZO=function(c,f,a){var d,g=KO[c];return typeof g=="string"?d=g:f===1?d=g.one:d=g.other.replace("{{count}}",f.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+d:d+" ago":d};function of(c){return function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=f.width?String(f.width):c.defaultWidth,d=c.formats[a]||c.formats[c.defaultWidth];return d}}var QO={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},eA={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},tA={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nA={date:of({formats:QO,defaultWidth:"full"}),time:of({formats:eA,defaultWidth:"full"}),dateTime:of({formats:tA,defaultWidth:"full"})},iA={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},rA=function(c,f,a,d){return iA[c]};function yu(c){return function(f,a){var d=a||{},g=d.context?String(d.context):"standalone",v;if(g==="formatting"&&c.formattingValues){var t=c.defaultFormattingWidth||c.defaultWidth,s=d.width?String(d.width):t;v=c.formattingValues[s]||c.formattingValues[t]}else{var l=c.defaultWidth,i=d.width?String(d.width):c.defaultWidth;v=c.values[i]||c.values[l]}var e=c.argumentCallback?c.argumentCallback(f):f;return v[e]}}var oA={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},lA={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},aA={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"]},uA={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"]},sA={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"}},cA={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"}},_A=function(c,f){var a=Number(c),d=a%100;if(d>20||d<10)switch(d%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},pA={ordinalNumber:_A,era:yu({values:oA,defaultWidth:"wide"}),quarter:yu({values:lA,defaultWidth:"wide",argumentCallback:function(c){return c-1}}),month:yu({values:aA,defaultWidth:"wide"}),day:yu({values:uA,defaultWidth:"wide"}),dayPeriod:yu({values:sA,defaultWidth:"wide",formattingValues:cA,defaultFormattingWidth:"wide"})};function gu(c){return function(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=a.width,g=d&&c.matchPatterns[d]||c.matchPatterns[c.defaultMatchWidth],v=f.match(g);if(!v)return null;var t=v[0],s=d&&c.parsePatterns[d]||c.parsePatterns[c.defaultParseWidth],l=Array.isArray(s)?hA(s,function(n){return n.test(t)}):fA(s,function(n){return n.test(t)}),i;i=c.valueCallback?c.valueCallback(l):l,i=a.valueCallback?a.valueCallback(i):i;var e=f.slice(t.length);return{value:i,rest:e}}}function fA(c,f){for(var a in c)if(c.hasOwnProperty(a)&&f(c[a]))return a}function hA(c,f){for(var a=0;a<c.length;a++)if(f(c[a]))return a}function dA(c){return function(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=f.match(c.matchPattern);if(!d)return null;var g=d[0],v=f.match(c.parsePattern);if(!v)return null;var t=c.valueCallback?c.valueCallback(v[0]):v[0];t=a.valueCallback?a.valueCallback(t):t;var s=f.slice(g.length);return{value:t,rest:s}}}var yA=/^(\d+)(th|st|nd|rd)?/i,gA=/\d+/i,mA={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},vA={any:[/^b/i,/^(a|c)/i]},wA={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bA={any:[/1/i,/2/i,/3/i,/4/i]},DA={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},SA={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]},CA={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},PA={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]},xA={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},MA={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}},VA={ordinalNumber:dA({matchPattern:yA,parsePattern:gA,valueCallback:function(c){return parseInt(c,10)}}),era:gu({matchPatterns:mA,defaultMatchWidth:"wide",parsePatterns:vA,defaultParseWidth:"any"}),quarter:gu({matchPatterns:wA,defaultMatchWidth:"wide",parsePatterns:bA,defaultParseWidth:"any",valueCallback:function(c){return c+1}}),month:gu({matchPatterns:DA,defaultMatchWidth:"wide",parsePatterns:SA,defaultParseWidth:"any"}),day:gu({matchPatterns:CA,defaultMatchWidth:"wide",parsePatterns:PA,defaultParseWidth:"any"}),dayPeriod:gu({matchPatterns:xA,defaultMatchWidth:"any",parsePatterns:MA,defaultParseWidth:"any"})},OA={code:"en-US",formatDistance:ZO,formatLong:nA,formatRelative:rA,localize:pA,match:VA,options:{weekStartsOn:0,firstWeekContainsDate:1}};function AA(c,f){Sn(2,arguments);var a=Dn(f);return YO(c,-a)}function oa(c){Sn(1,arguments);var f=1,a=si(c),d=a.getUTCDay(),g=(d<f?7:0)+d-f;return a.setUTCDate(a.getUTCDate()-g),a.setUTCHours(0,0,0,0),a}function LA(c){Sn(1,arguments);var f=si(c),a=f.getUTCFullYear(),d=new Date(0);d.setUTCFullYear(a+1,0,4),d.setUTCHours(0,0,0,0);var g=oa(d),v=new Date(0);v.setUTCFullYear(a,0,4),v.setUTCHours(0,0,0,0);var t=oa(v);return f.getTime()>=g.getTime()?a+1:f.getTime()>=t.getTime()?a:a-1}function EA(c){Sn(1,arguments);var f=LA(c),a=new Date(0);a.setUTCFullYear(f,0,4),a.setUTCHours(0,0,0,0);var d=oa(a);return d}var TA=6048e5;function FA(c){Sn(1,arguments);var f=si(c),a=oa(f).getTime()-EA(f).getTime();return Math.round(a/TA)+1}function ll(c,f){Sn(1,arguments);var a=f||{},d=a.locale,g=d&&d.options&&d.options.weekStartsOn,v=g==null?0:Dn(g),t=a.weekStartsOn==null?v:Dn(a.weekStartsOn);if(!(t>=0&&t<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=si(c),l=s.getUTCDay(),i=(l<t?7:0)+l-t;return s.setUTCDate(s.getUTCDate()-i),s.setUTCHours(0,0,0,0),s}function im(c,f){Sn(1,arguments);var a=si(c),d=a.getUTCFullYear(),g=f||{},v=g.locale,t=v&&v.options&&v.options.firstWeekContainsDate,s=t==null?1:Dn(t),l=g.firstWeekContainsDate==null?s:Dn(g.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var i=new Date(0);i.setUTCFullYear(d+1,0,l),i.setUTCHours(0,0,0,0);var e=ll(i,f),n=new Date(0);n.setUTCFullYear(d,0,l),n.setUTCHours(0,0,0,0);var r=ll(n,f);return a.getTime()>=e.getTime()?d+1:a.getTime()>=r.getTime()?d:d-1}function IA(c,f){Sn(1,arguments);var a=f||{},d=a.locale,g=d&&d.options&&d.options.firstWeekContainsDate,v=g==null?1:Dn(g),t=a.firstWeekContainsDate==null?v:Dn(a.firstWeekContainsDate),s=im(c,f),l=new Date(0);l.setUTCFullYear(s,0,t),l.setUTCHours(0,0,0,0);var i=ll(l,f);return i}var BA=6048e5;function RA(c,f){Sn(1,arguments);var a=si(c),d=ll(a,f).getTime()-IA(a,f).getTime();return Math.round(d/BA)+1}function rm(c,f){switch(c){case"P":return f.date({width:"short"});case"PP":return f.date({width:"medium"});case"PPP":return f.date({width:"long"});case"PPPP":default:return f.date({width:"full"})}}function om(c,f){switch(c){case"p":return f.time({width:"short"});case"pp":return f.time({width:"medium"});case"ppp":return f.time({width:"long"});case"pppp":default:return f.time({width:"full"})}}function kA(c,f){var a=c.match(/(P+)(p+)?/)||[],d=a[1],g=a[2];if(!g)return rm(c,f);var v;switch(d){case"P":v=f.dateTime({width:"short"});break;case"PP":v=f.dateTime({width:"medium"});break;case"PPP":v=f.dateTime({width:"long"});break;case"PPPP":default:v=f.dateTime({width:"full"});break}return v.replace("{{date}}",rm(d,f)).replace("{{time}}",om(g,f))}var NA={p:om,P:kA},zA=["D","DD"],jA=["YY","YYYY"];function UA(c){return zA.indexOf(c)!==-1}function HA(c){return jA.indexOf(c)!==-1}function lm(c,f,a){if(c==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(f,"`) for formatting years to the input `").concat(a,"`; see: https://git.io/fxCyr"));if(c==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(f,"`) for formatting years to the input `").concat(a,"`; see: https://git.io/fxCyr"));if(c==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(f,"`) for formatting days of the month to the input `").concat(a,"`; see: https://git.io/fxCyr"));if(c==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(f,"`) for formatting days of the month to the input `").concat(a,"`; see: https://git.io/fxCyr"))}function GA(c,f){if(c==null)throw new TypeError("assign requires that input parameter not be null or undefined");f=f||{};for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(c[a]=f[a]);return c}function lf(c,f,a){Sn(2,arguments);var d=a||{},g=d.locale,v=g&&g.options&&g.options.weekStartsOn,t=v==null?0:Dn(v),s=d.weekStartsOn==null?t:Dn(d.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=si(c),i=Dn(f),e=l.getUTCDay(),n=i%7,r=(n+7)%7,o=(r<s?7:0)+i-e;return l.setUTCDate(l.getUTCDate()+o),l}function WA(c,f){Sn(2,arguments);var a=Dn(f);a%7===0&&(a=a-7);var d=1,g=si(c),v=g.getUTCDay(),t=a%7,s=(t+7)%7,l=(s<d?7:0)+a-v;return g.setUTCDate(g.getUTCDate()+l),g}function qA(c,f){Sn(2,arguments);var a=si(c),d=Dn(f),g=FA(a)-d;return a.setUTCDate(a.getUTCDate()-g*7),a}function $A(c,f,a){Sn(2,arguments);var d=si(c),g=Dn(f),v=RA(d,a)-g;return d.setUTCDate(d.getUTCDate()-v*7),d}var YA=36e5,JA=6e4,XA=1e3,cn={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}/},hr={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 Kt(c,f,a){var d=f.match(c);if(!d)return null;var g=parseInt(d[0],10);return{value:a?a(g):g,rest:f.slice(d[0].length)}}function dr(c,f){var a=f.match(c);if(!a)return null;if(a[0]==="Z")return{value:0,rest:f.slice(1)};var d=a[1]==="+"?1:-1,g=a[2]?parseInt(a[2],10):0,v=a[3]?parseInt(a[3],10):0,t=a[5]?parseInt(a[5],10):0;return{value:d*(g*YA+v*JA+t*XA),rest:f.slice(a[0].length)}}function am(c,f){return Kt(cn.anyDigitsSigned,c,f)}function on(c,f,a){switch(c){case 1:return Kt(cn.singleDigit,f,a);case 2:return Kt(cn.twoDigits,f,a);case 3:return Kt(cn.threeDigits,f,a);case 4:return Kt(cn.fourDigits,f,a);default:return Kt(new RegExp("^\\d{1,"+c+"}"),f,a)}}function Ys(c,f,a){switch(c){case 1:return Kt(cn.singleDigitSigned,f,a);case 2:return Kt(cn.twoDigitsSigned,f,a);case 3:return Kt(cn.threeDigitsSigned,f,a);case 4:return Kt(cn.fourDigitsSigned,f,a);default:return Kt(new RegExp("^-?\\d{1,"+c+"}"),f,a)}}function af(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 um(c,f){var a=f>0,d=a?f:1-f,g;if(d<=50)g=c||100;else{var v=d+50,t=Math.floor(v/100)*100,s=c>=v%100;g=c+t-(s?100:0)}return a?g:1-g}var KA=[31,28,31,30,31,30,31,31,30,31,30,31],ZA=[31,29,31,30,31,30,31,31,30,31,30,31];function sm(c){return c%400===0||c%4===0&&c%100!==0}var QA={G:{priority:140,parse:function(c,f,a,d){switch(f){case"G":case"GG":case"GGG":return a.era(c,{width:"abbreviated"})||a.era(c,{width:"narrow"});case"GGGGG":return a.era(c,{width:"narrow"});case"GGGG":default:return a.era(c,{width:"wide"})||a.era(c,{width:"abbreviated"})||a.era(c,{width:"narrow"})}},set:function(c,f,a,d){return f.era=a,c.setUTCFullYear(a,0,1),c.setUTCHours(0,0,0,0),c},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(c,f,a,d){var g=function(v){return{year:v,isTwoDigitYear:f==="yy"}};switch(f){case"y":return on(4,c,g);case"yo":return a.ordinalNumber(c,{unit:"year",valueCallback:g});default:return on(f.length,c,g)}},validate:function(c,f,a){return f.isTwoDigitYear||f.year>0},set:function(c,f,a,d){var g=c.getUTCFullYear();if(a.isTwoDigitYear){var v=um(a.year,g);return c.setUTCFullYear(v,0,1),c.setUTCHours(0,0,0,0),c}var t=!("era"in f)||f.era===1?a.year:1-a.year;return c.setUTCFullYear(t,0,1),c.setUTCHours(0,0,0,0),c},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(c,f,a,d){var g=function(v){return{year:v,isTwoDigitYear:f==="YY"}};switch(f){case"Y":return on(4,c,g);case"Yo":return a.ordinalNumber(c,{unit:"year",valueCallback:g});default:return on(f.length,c,g)}},validate:function(c,f,a){return f.isTwoDigitYear||f.year>0},set:function(c,f,a,d){var g=im(c,d);if(a.isTwoDigitYear){var v=um(a.year,g);return c.setUTCFullYear(v,0,d.firstWeekContainsDate),c.setUTCHours(0,0,0,0),ll(c,d)}var t=!("era"in f)||f.era===1?a.year:1-a.year;return c.setUTCFullYear(t,0,d.firstWeekContainsDate),c.setUTCHours(0,0,0,0),ll(c,d)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(c,f,a,d){return Ys(f==="R"?4:f.length,c)},set:function(c,f,a,d){var g=new Date(0);return g.setUTCFullYear(a,0,4),g.setUTCHours(0,0,0,0),oa(g)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(c,f,a,d){return Ys(f==="u"?4:f.length,c)},set:function(c,f,a,d){return c.setUTCFullYear(a,0,1),c.setUTCHours(0,0,0,0),c},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(c,f,a,d){switch(f){case"Q":case"QQ":return on(f.length,c);case"Qo":return a.ordinalNumber(c,{unit:"quarter"});case"QQQ":return a.quarter(c,{width:"abbreviated",context:"formatting"})||a.quarter(c,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(c,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(c,{width:"wide",context:"formatting"})||a.quarter(c,{width:"abbreviated",context:"formatting"})||a.quarter(c,{width:"narrow",context:"formatting"})}},validate:function(c,f,a){return f>=1&&f<=4},set:function(c,f,a,d){return c.setUTCMonth((a-1)*3,1),c.setUTCHours(0,0,0,0),c},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(c,f,a,d){switch(f){case"q":case"qq":return on(f.length,c);case"qo":return a.ordinalNumber(c,{unit:"quarter"});case"qqq":return a.quarter(c,{width:"abbreviated",context:"standalone"})||a.quarter(c,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(c,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(c,{width:"wide",context:"standalone"})||a.quarter(c,{width:"abbreviated",context:"standalone"})||a.quarter(c,{width:"narrow",context:"standalone"})}},validate:function(c,f,a){return f>=1&&f<=4},set:function(c,f,a,d){return c.setUTCMonth((a-1)*3,1),c.setUTCHours(0,0,0,0),c},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(c,f,a,d){var g=function(v){return v-1};switch(f){case"M":return Kt(cn.month,c,g);case"MM":return on(2,c,g);case"Mo":return a.ordinalNumber(c,{unit:"month",valueCallback:g});case"MMM":return a.month(c,{width:"abbreviated",context:"formatting"})||a.month(c,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(c,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(c,{width:"wide",context:"formatting"})||a.month(c,{width:"abbreviated",context:"formatting"})||a.month(c,{width:"narrow",context:"formatting"})}},validate:function(c,f,a){return f>=0&&f<=11},set:function(c,f,a,d){return c.setUTCMonth(a,1),c.setUTCHours(0,0,0,0),c},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(c,f,a,d){var g=function(v){return v-1};switch(f){case"L":return Kt(cn.month,c,g);case"LL":return on(2,c,g);case"Lo":return a.ordinalNumber(c,{unit:"month",valueCallback:g});case"LLL":return a.month(c,{width:"abbreviated",context:"standalone"})||a.month(c,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(c,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(c,{width:"wide",context:"standalone"})||a.month(c,{width:"abbreviated",context:"standalone"})||a.month(c,{width:"narrow",context:"standalone"})}},validate:function(c,f,a){return f>=0&&f<=11},set:function(c,f,a,d){return c.setUTCMonth(a,1),c.setUTCHours(0,0,0,0),c},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(c,f,a,d){switch(f){case"w":return Kt(cn.week,c);case"wo":return a.ordinalNumber(c,{unit:"week"});default:return on(f.length,c)}},validate:function(c,f,a){return f>=1&&f<=53},set:function(c,f,a,d){return ll($A(c,a,d),d)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(c,f,a,d){switch(f){case"I":return Kt(cn.week,c);case"Io":return a.ordinalNumber(c,{unit:"week"});default:return on(f.length,c)}},validate:function(c,f,a){return f>=1&&f<=53},set:function(c,f,a,d){return oa(qA(c,a,d),d)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(c,f,a,d){switch(f){case"d":return Kt(cn.date,c);case"do":return a.ordinalNumber(c,{unit:"date"});default:return on(f.length,c)}},validate:function(c,f,a){var d=c.getUTCFullYear(),g=sm(d),v=c.getUTCMonth();return g?f>=1&&f<=ZA[v]:f>=1&&f<=KA[v]},set:function(c,f,a,d){return c.setUTCDate(a),c.setUTCHours(0,0,0,0),c},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(c,f,a,d){switch(f){case"D":case"DD":return Kt(cn.dayOfYear,c);case"Do":return a.ordinalNumber(c,{unit:"date"});default:return on(f.length,c)}},validate:function(c,f,a){var d=c.getUTCFullYear(),g=sm(d);return g?f>=1&&f<=366:f>=1&&f<=365},set:function(c,f,a,d){return c.setUTCMonth(0,a),c.setUTCHours(0,0,0,0),c},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(c,f,a,d){switch(f){case"E":case"EE":case"EEE":return a.day(c,{width:"abbreviated",context:"formatting"})||a.day(c,{width:"short",context:"formatting"})||a.day(c,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(c,{width:"short",context:"formatting"})||a.day(c,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(c,{width:"wide",context:"formatting"})||a.day(c,{width:"abbreviated",context:"formatting"})||a.day(c,{width:"short",context:"formatting"})||a.day(c,{width:"narrow",context:"formatting"})}},validate:function(c,f,a){return f>=0&&f<=6},set:function(c,f,a,d){return c=lf(c,a,d),c.setUTCHours(0,0,0,0),c},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(c,f,a,d){var g=function(v){var t=Math.floor((v-1)/7)*7;return(v+d.weekStartsOn+6)%7+t};switch(f){case"e":case"ee":return on(f.length,c,g);case"eo":return a.ordinalNumber(c,{unit:"day",valueCallback:g});case"eee":return a.day(c,{width:"abbreviated",context:"formatting"})||a.day(c,{width:"short",context:"formatting"})||a.day(c,{width:"narrow",context:"formatting"});case"eeeee":return a.day(c,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(c,{width:"short",context:"formatting"})||a.day(c,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(c,{width:"wide",context:"formatting"})||a.day(c,{width:"abbreviated",context:"formatting"})||a.day(c,{width:"short",context:"formatting"})||a.day(c,{width:"narrow",context:"formatting"})}},validate:function(c,f,a){return f>=0&&f<=6},set:function(c,f,a,d){return c=lf(c,a,d),c.setUTCHours(0,0,0,0),c},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(c,f,a,d){var g=function(v){var t=Math.floor((v-1)/7)*7;return(v+d.weekStartsOn+6)%7+t};switch(f){case"c":case"cc":return on(f.length,c,g);case"co":return a.ordinalNumber(c,{unit:"day",valueCallback:g});case"ccc":return a.day(c,{width:"abbreviated",context:"standalone"})||a.day(c,{width:"short",context:"standalone"})||a.day(c,{width:"narrow",context:"standalone"});case"ccccc":return a.day(c,{width:"narrow",context:"standalone"});case"cccccc":return a.day(c,{width:"short",context:"standalone"})||a.day(c,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(c,{width:"wide",context:"standalone"})||a.day(c,{width:"abbreviated",context:"standalone"})||a.day(c,{width:"short",context:"standalone"})||a.day(c,{width:"narrow",context:"standalone"})}},validate:function(c,f,a){return f>=0&&f<=6},set:function(c,f,a,d){return c=lf(c,a,d),c.setUTCHours(0,0,0,0),c},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(c,f,a,d){var g=function(v){return v===0?7:v};switch(f){case"i":case"ii":return on(f.length,c);case"io":return a.ordinalNumber(c,{unit:"day"});case"iii":return a.day(c,{width:"abbreviated",context:"formatting",valueCallback:g})||a.day(c,{width:"short",context:"formatting",valueCallback:g})||a.day(c,{width:"narrow",context:"formatting",valueCallback:g});case"iiiii":return a.day(c,{width:"narrow",context:"formatting",valueCallback:g});case"iiiiii":return a.day(c,{width:"short",context:"formatting",valueCallback:g})||a.day(c,{width:"narrow",context:"formatting",valueCallback:g});case"iiii":default:return a.day(c,{width:"wide",context:"formatting",valueCallback:g})||a.day(c,{width:"abbreviated",context:"formatting",valueCallback:g})||a.day(c,{width:"short",context:"formatting",valueCallback:g})||a.day(c,{width:"narrow",context:"formatting",valueCallback:g})}},validate:function(c,f,a){return f>=1&&f<=7},set:function(c,f,a,d){return c=WA(c,a,d),c.setUTCHours(0,0,0,0),c},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(c,f,a,d){switch(f){case"a":case"aa":case"aaa":return a.dayPeriod(c,{width:"abbreviated",context:"formatting"})||a.dayPeriod(c,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(c,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(c,{width:"wide",context:"formatting"})||a.dayPeriod(c,{width:"abbreviated",context:"formatting"})||a.dayPeriod(c,{width:"narrow",context:"formatting"})}},set:function(c,f,a,d){return c.setUTCHours(af(a),0,0,0),c},incompatibleTokens:["b","B","H","k","t","T"]},b:{priority:80,parse:function(c,f,a,d){switch(f){case"b":case"bb":case"bbb":return a.dayPeriod(c,{width:"abbreviated",context:"formatting"})||a.dayPeriod(c,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(c,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(c,{width:"wide",context:"formatting"})||a.dayPeriod(c,{width:"abbreviated",context:"formatting"})||a.dayPeriod(c,{width:"narrow",context:"formatting"})}},set:function(c,f,a,d){return c.setUTCHours(af(a),0,0,0),c},incompatibleTokens:["a","B","H","k","t","T"]},B:{priority:80,parse:function(c,f,a,d){switch(f){case"B":case"BB":case"BBB":return a.dayPeriod(c,{width:"abbreviated",context:"formatting"})||a.dayPeriod(c,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(c,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(c,{width:"wide",context:"formatting"})||a.dayPeriod(c,{width:"abbreviated",context:"formatting"})||a.dayPeriod(c,{width:"narrow",context:"formatting"})}},set:function(c,f,a,d){return c.setUTCHours(af(a),0,0,0),c},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(c,f,a,d){switch(f){case"h":return Kt(cn.hour12h,c);case"ho":return a.ordinalNumber(c,{unit:"hour"});default:return on(f.length,c)}},validate:function(c,f,a){return f>=1&&f<=12},set:function(c,f,a,d){var g=c.getUTCHours()>=12;return g&&a<12?c.setUTCHours(a+12,0,0,0):!g&&a===12?c.setUTCHours(0,0,0,0):c.setUTCHours(a,0,0,0),c},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(c,f,a,d){switch(f){case"H":return Kt(cn.hour23h,c);case"Ho":return a.ordinalNumber(c,{unit:"hour"});default:return on(f.length,c)}},validate:function(c,f,a){return f>=0&&f<=23},set:function(c,f,a,d){return c.setUTCHours(a,0,0,0),c},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(c,f,a,d){switch(f){case"K":return Kt(cn.hour11h,c);case"Ko":return a.ordinalNumber(c,{unit:"hour"});default:return on(f.length,c)}},validate:function(c,f,a){return f>=0&&f<=11},set:function(c,f,a,d){var g=c.getUTCHours()>=12;return g&&a<12?c.setUTCHours(a+12,0,0,0):c.setUTCHours(a,0,0,0),c},incompatibleTokens:["h","H","k","t","T"]},k:{priority:70,parse:function(c,f,a,d){switch(f){case"k":return Kt(cn.hour24h,c);case"ko":return a.ordinalNumber(c,{unit:"hour"});default:return on(f.length,c)}},validate:function(c,f,a){return f>=1&&f<=24},set:function(c,f,a,d){var g=a<=24?a%24:a;return c.setUTCHours(g,0,0,0),c},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(c,f,a,d){switch(f){case"m":return Kt(cn.minute,c);case"mo":return a.ordinalNumber(c,{unit:"minute"});default:return on(f.length,c)}},validate:function(c,f,a){return f>=0&&f<=59},set:function(c,f,a,d){return c.setUTCMinutes(a,0,0),c},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(c,f,a,d){switch(f){case"s":return Kt(cn.second,c);case"so":return a.ordinalNumber(c,{unit:"second"});default:return on(f.length,c)}},validate:function(c,f,a){return f>=0&&f<=59},set:function(c,f,a,d){return c.setUTCSeconds(a,0),c},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(c,f,a,d){var g=function(v){return Math.floor(v*Math.pow(10,-f.length+3))};return on(f.length,c,g)},set:function(c,f,a,d){return c.setUTCMilliseconds(a),c},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(c,f,a,d){switch(f){case"X":return dr(hr.basicOptionalMinutes,c);case"XX":return dr(hr.basic,c);case"XXXX":return dr(hr.basicOptionalSeconds,c);case"XXXXX":return dr(hr.extendedOptionalSeconds,c);case"XXX":default:return dr(hr.extended,c)}},set:function(c,f,a,d){return f.timestampIsSet?c:new Date(c.getTime()-a)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(c,f,a,d){switch(f){case"x":return dr(hr.basicOptionalMinutes,c);case"xx":return dr(hr.basic,c);case"xxxx":return dr(hr.basicOptionalSeconds,c);case"xxxxx":return dr(hr.extendedOptionalSeconds,c);case"xxx":default:return dr(hr.extended,c)}},set:function(c,f,a,d){return f.timestampIsSet?c:new Date(c.getTime()-a)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(c,f,a,d){return am(c)},set:function(c,f,a,d){return[new Date(a*1e3),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(c,f,a,d){return am(c)},set:function(c,f,a,d){return[new Date(a),{timestampIsSet:!0}]},incompatibleTokens:"*"}},eL=10,tL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,iL=/^'([^]*?)'?$/,rL=/''/g,oL=/\S/,lL=/[a-zA-Z]/;function aL(c,f,a,d){Sn(3,arguments);var g=String(c),v=String(f),t={},s=t.locale||OA;if(!s.match)throw new RangeError("locale must contain match property");var l=s.options&&s.options.firstWeekContainsDate,i=l==null?1:Dn(l),e=t.firstWeekContainsDate==null?i:Dn(t.firstWeekContainsDate);if(!(e>=1&&e<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var n=s.options&&s.options.weekStartsOn,r=n==null?0:Dn(n),o=t.weekStartsOn==null?r:Dn(t.weekStartsOn);if(!(o>=0&&o<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(v==="")return g===""?si(a):new Date(NaN);var u={firstWeekContainsDate:e,weekStartsOn:o,locale:s},_=[{priority:eL,subPriority:-1,set:uL,index:0}],p,h=v.match(nL).map(function(F){var T=F[0];if(T==="p"||T==="P"){var I=NA[T];return I(F,s.formatLong,u)}return F}).join("").match(tL),y=[];for(p=0;p<h.length;p++){var m=h[p];!t.useAdditionalWeekYearTokens&&HA(m)&&lm(m,v,c),!t.useAdditionalDayOfYearTokens&&UA(m)&&lm(m,v,c);var w=m[0],b=QA[w];if(b){var D=b.incompatibleTokens;if(Array.isArray(D)){for(var S=void 0,C=0;C<y.length;C++){var P=y[C].token;if(D.indexOf(P)!==-1||P===w){S=y[C];break}}if(S)throw new RangeError("The format string mustn't contain `".concat(S.fullToken,"` and `").concat(m,"` at the same time"))}else if(b.incompatibleTokens==="*"&&y.length)throw new RangeError("The format string mustn't contain `".concat(m,"` and any other token at the same time"));y.push({token:w,fullToken:m});var x=b.parse(g,m,s.match,u);if(!x)return new Date(NaN);_.push({priority:b.priority,subPriority:b.subPriority||0,set:b.set,validate:b.validate,value:x.value,index:_.length}),g=x.r