pangea-lib 4.0.488 → 4.0.489
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.cjs.js +2 -2
- package/dist/main.css +1 -1
- package/dist/main.es.js +4 -4
- package/package.json +1 -1
package/dist/main.cjs.js
CHANGED
|
@@ -8628,7 +8628,7 @@ X1.version="2.30.1";TE1(Oe);X1.fn=j1;X1.min=xP1;X1.max=bP1;X1.now=zP1;X1.utc=Lt;
|
|
|
8628
8628
|
`),p1}function f1(o1,p1){if(A(o1)&&o1.nextElementSibling!=null&&!G(p1,`
|
|
8629
8629
|
|
|
8630
8630
|
`)){var b1=o1.offsetHeight+parseFloat(U(o1).marginTop)+parseFloat(U(o1).marginBottom);o1.nextElementSibling.offsetTop>o1.offsetTop+b1*1.5&&p1.insert(`
|
|
8631
|
-
`)}return p1}function t1(o1,p1){var b1={},v1=o1.style||{};return v1.fontStyle&&U(o1).fontStyle==="italic"&&(b1.italic=!0),v1.fontWeight&&(U(o1).fontWeight.startsWith("bold")||parseInt(U(o1).fontWeight)>=700)&&(b1.bold=!0),Object.keys(b1).length>0&&(p1=S(p1,b1)),parseFloat(v1.textIndent||0)>0&&(p1=new d.default().insert(" ").concat(p1)),p1}function u1(o1,p1){var b1=o1.data;if(o1.parentNode.tagName==="O:P")return p1.insert(b1.trim());if(b1.trim().length===0&&o1.parentNode.classList.contains("ql-clipboard"))return p1;if(!U(o1.parentNode).whiteSpace.startsWith("pre")){var v1=function(D1,R1){return R1=R1.replace(/[^\u00a0]/g,""),R1.length<1&&D1?" ":R1};b1=b1.replace(/\r\n/g," ").replace(/\n/g," "),b1=b1.replace(/\s\s+/g,v1.bind(v1,!0)),(o1.previousSibling==null&&A(o1.parentNode)||o1.previousSibling!=null&&A(o1.previousSibling))&&(b1=b1.replace(/^\s+/,v1.bind(v1,!1))),(o1.nextSibling==null&&A(o1.parentNode)||o1.nextSibling!=null&&A(o1.nextSibling))&&(b1=b1.replace(/\s+$/,v1.bind(v1,!1)))}return p1.insert(b1)}c.default=E,c.matchAttributor=c1,c.matchBlot=K,c.matchNewline=k1,c.matchSpacing=f1,c.matchText=u1},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(6),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,[{key:"optimize",value:function(g){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,g),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(l.default);p.blotName="bold",p.tagName=["STRONG","B"],c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.addControls=c.default=void 0;var r=function(){function L(w,P){var j=[],T=!0,R=!1,Y=void 0;try{for(var e1=w[Symbol.iterator](),Z;!(T=(Z=e1.next()).done)&&(j.push(Z.value),!(P&&j.length===P));T=!0);}catch(W){R=!0,Y=W}finally{try{!T&&e1.return&&e1.return()}finally{if(R)throw Y}}return j}return function(w,P){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return L(w,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function L(w,P){for(var j=0;j<P.length;j++){var T=P[j];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(w,T.key,T)}}return function(w,P,j){return P&&L(w.prototype,P),j&&L(w,j),w}}(),o=n(2),l=g(o),f=n(0),u=g(f),d=n(5),h=g(d),p=n(10),v=g(p),m=n(9),y=g(m);function g(L){return L&&L.__esModule?L:{default:L}}function M(L,w,P){return w in L?Object.defineProperty(L,w,{value:P,enumerable:!0,configurable:!0,writable:!0}):L[w]=P,L}function x(L,w){if(!(L instanceof w))throw new TypeError("Cannot call a class as a function")}function k(L,w){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:L}function b(L,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);L.prototype=Object.create(w&&w.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(L,w):L.__proto__=w)}var _=(0,v.default)("quill:toolbar"),C=function(L){b(w,L);function w(P,j){x(this,w);var T=k(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,P,j));if(Array.isArray(T.options.container)){var R=document.createElement("div");V(R,T.options.container),P.container.parentNode.insertBefore(R,P.container),T.container=R}else typeof T.options.container=="string"?T.container=document.querySelector(T.options.container):T.container=T.options.container;if(!(T.container instanceof HTMLElement)){var Y;return Y=_.error("Container required for toolbar",T.options),k(T,Y)}return T.container.classList.add("ql-toolbar"),T.controls=[],T.handlers={},Object.keys(T.options.handlers).forEach(function(e1){T.addHandler(e1,T.options.handlers[e1])}),[].forEach.call(T.container.querySelectorAll("button, select"),function(e1){T.attach(e1)}),T.quill.on(h.default.events.EDITOR_CHANGE,function(e1,Z){e1===h.default.events.SELECTION_CHANGE&&T.update(Z)}),T.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){var e1=T.quill.selection.getRange(),Z=r(e1,1),W=Z[0];T.update(W)}),T}return i(w,[{key:"addHandler",value:function(j,T){this.handlers[j]=T}},{key:"attach",value:function(j){var T=this,R=[].find.call(j.classList,function(e1){return e1.indexOf("ql-")===0});if(R){if(R=R.slice(3),j.tagName==="BUTTON"&&j.setAttribute("type","button"),this.handlers[R]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[R]==null){_.warn("ignoring attaching to disabled format",R,j);return}if(u.default.query(R)==null){_.warn("ignoring attaching to nonexistent format",R,j);return}}var Y=j.tagName==="SELECT"?"change":"click";j.addEventListener(Y,function(e1){var Z=void 0;if(j.tagName==="SELECT"){if(j.selectedIndex<0)return;var W=j.options[j.selectedIndex];W.hasAttribute("selected")?Z=!1:Z=W.value||!1}else j.classList.contains("ql-active")?Z=!1:Z=j.value||!j.hasAttribute("value"),e1.preventDefault();T.quill.focus();var I=T.quill.selection.getRange(),E=r(I,1),S=E[0];if(T.handlers[R]!=null)T.handlers[R].call(T,Z);else if(u.default.query(R).prototype instanceof u.default.Embed){if(Z=prompt("Enter "+R),!Z)return;T.quill.updateContents(new l.default().retain(S.index).delete(S.length).insert(M({},R,Z)),h.default.sources.USER)}else T.quill.format(R,Z,h.default.sources.USER);T.update(S)}),this.controls.push([R,j])}}},{key:"update",value:function(j){var T=j==null?{}:this.quill.getFormat(j);this.controls.forEach(function(R){var Y=r(R,2),e1=Y[0],Z=Y[1];if(Z.tagName==="SELECT"){var W=void 0;if(j==null)W=null;else if(T[e1]==null)W=Z.querySelector("option[selected]");else if(!Array.isArray(T[e1])){var I=T[e1];typeof I=="string"&&(I=I.replace(/\"/g,'\\"')),W=Z.querySelector('option[value="'+I+'"]')}W==null?(Z.value="",Z.selectedIndex=-1):W.selected=!0}else if(j==null)Z.classList.remove("ql-active");else if(Z.hasAttribute("value")){var E=T[e1]===Z.getAttribute("value")||T[e1]!=null&&T[e1].toString()===Z.getAttribute("value")||T[e1]==null&&!Z.getAttribute("value");Z.classList.toggle("ql-active",E)}else Z.classList.toggle("ql-active",T[e1]!=null)})}}]),w}(y.default);C.DEFAULTS={};function H(L,w,P){var j=document.createElement("button");j.setAttribute("type","button"),j.classList.add("ql-"+w),P!=null&&(j.value=P),L.appendChild(j)}function V(L,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(P){var j=document.createElement("span");j.classList.add("ql-formats"),P.forEach(function(T){if(typeof T=="string")H(j,T);else{var R=Object.keys(T)[0],Y=T[R];Array.isArray(Y)?N(j,R,Y):H(j,R,Y)}}),L.appendChild(j)})}function N(L,w,P){var j=document.createElement("select");j.classList.add("ql-"+w),P.forEach(function(T){var R=document.createElement("option");T!==!1?R.setAttribute("value",T):R.setAttribute("selected","selected"),j.appendChild(R)}),L.appendChild(j)}C.DEFAULTS={container:null,handlers:{clean:function(){var w=this,P=this.quill.getSelection();if(P!=null)if(P.length==0){var j=this.quill.getFormat();Object.keys(j).forEach(function(T){u.default.query(T,u.default.Scope.INLINE)!=null&&w.quill.format(T,!1)})}else this.quill.removeFormat(P,h.default.sources.USER)},direction:function(w){var P=this.quill.getFormat().align;w==="rtl"&&P==null?this.quill.format("align","right",h.default.sources.USER):!w&&P==="right"&&this.quill.format("align",!1,h.default.sources.USER),this.quill.format("direction",w,h.default.sources.USER)},indent:function(w){var P=this.quill.getSelection(),j=this.quill.getFormat(P),T=parseInt(j.indent||0);if(w==="+1"||w==="-1"){var R=w==="+1"?1:-1;j.direction==="rtl"&&(R*=-1),this.quill.format("indent",T+R,h.default.sources.USER)}},link:function(w){w===!0&&(w=prompt("Enter link URL:")),this.quill.format("link",w,h.default.sources.USER)},list:function(w){var P=this.quill.getSelection(),j=this.quill.getFormat(P);w==="check"?j.list==="checked"||j.list==="unchecked"?this.quill.format("list",!1,h.default.sources.USER):this.quill.format("list","unchecked",h.default.sources.USER):this.quill.format("list",w,h.default.sources.USER)}}},c.default=C,c.addControls=V},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(28),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(y,g){u(this,m);var M=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return M.label.innerHTML=g,M.container.classList.add("ql-color-picker"),[].slice.call(M.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),M}return r(m,[{key:"buildItem",value:function(g){var M=i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,g);return M.style.backgroundColor=g.getAttribute("value")||"",M}},{key:"selectItem",value:function(g,M){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,g,M);var x=this.label.querySelector(".ql-color-label"),k=g&&g.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=k:x.style.fill=k)}}]),m}(l.default);c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(28),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(y,g){u(this,m);var M=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return M.container.classList.add("ql-icon-picker"),[].forEach.call(M.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=g[x.getAttribute("data-value")||""]}),M.defaultItem=M.container.querySelector(".ql-selected"),M.selectItem(M.defaultItem),M}return r(m,[{key:"selectItem",value:function(g,M){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,g,M),g=g||this.defaultItem,this.label.innerHTML=g.innerHTML}}]),m}(l.default);c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function l(f,u){for(var d=0;d<u.length;d++){var h=u[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,u,d){return u&&l(f.prototype,u),d&&l(f,d),f}}();function i(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}var o=function(){function l(f,u){var d=this;i(this,l),this.quill=f,this.boundsContainer=u||document.body,this.root=f.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){d.root.style.marginTop=-1*d.quill.root.scrollTop+"px"}),this.hide()}return r(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var d=u.left+u.width/2-this.root.offsetWidth/2,h=u.bottom+this.quill.root.scrollTop;this.root.style.left=d+"px",this.root.style.top=h+"px",this.root.classList.remove("ql-flip");var p=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),m=0;if(v.right>p.right&&(m=p.right-v.right,this.root.style.left=d+m+"px"),v.left<p.left&&(m=p.left-v.left,this.root.style.left=d+m+"px"),v.bottom>p.bottom){var y=v.bottom-v.top,g=u.bottom-u.top+y;this.root.style.top=h-g+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();c.default=o},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function N(L,w){var P=[],j=!0,T=!1,R=void 0;try{for(var Y=L[Symbol.iterator](),e1;!(j=(e1=Y.next()).done)&&(P.push(e1.value),!(w&&P.length===w));j=!0);}catch(Z){T=!0,R=Z}finally{try{!j&&Y.return&&Y.return()}finally{if(T)throw R}}return P}return function(L,w){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return N(L,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function N(L,w,P){L===null&&(L=Function.prototype);var j=Object.getOwnPropertyDescriptor(L,w);if(j===void 0){var T=Object.getPrototypeOf(L);return T===null?void 0:N(T,w,P)}else{if("value"in j)return j.value;var R=j.get;return R===void 0?void 0:R.call(P)}},o=function(){function N(L,w){for(var P=0;P<w.length;P++){var j=w[P];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(L,j.key,j)}}return function(L,w,P){return w&&N(L.prototype,w),P&&N(L,P),L}}(),l=n(3),f=x(l),u=n(8),d=x(u),h=n(43),p=x(h),v=n(27),m=x(v),y=n(15),g=n(41),M=x(g);function x(N){return N&&N.__esModule?N:{default:N}}function k(N,L){if(!(N instanceof L))throw new TypeError("Cannot call a class as a function")}function b(N,L){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:N}function _(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);N.prototype=Object.create(L&&L.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(N,L):N.__proto__=L)}var C=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],H=function(N){_(L,N);function L(w,P){k(this,L),P.modules.toolbar!=null&&P.modules.toolbar.container==null&&(P.modules.toolbar.container=C);var j=b(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,w,P));return j.quill.container.classList.add("ql-snow"),j}return o(L,[{key:"extendToolbar",value:function(P){P.container.classList.add("ql-snow"),this.buildButtons([].slice.call(P.container.querySelectorAll("button")),M.default),this.buildPickers([].slice.call(P.container.querySelectorAll("select")),M.default),this.tooltip=new V(this.quill,this.options.bounds),P.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(j,T){P.handlers.link.call(P,!T.format.link)})}}]),L}(p.default);H.DEFAULTS=(0,f.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(L){if(L){var w=this.quill.getSelection();if(w==null||w.length==0)return;var P=this.quill.getText(w);/^\S+@\S+\.\S+$/.test(P)&&P.indexOf("mailto:")!==0&&(P="mailto:"+P);var j=this.quill.theme.tooltip;j.edit("link",P)}else this.quill.format("link",!1)}}}}});var V=function(N){_(L,N);function L(w,P){k(this,L);var j=b(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,w,P));return j.preview=j.root.querySelector("a.ql-preview"),j}return o(L,[{key:"listen",value:function(){var P=this;i(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(j){P.root.classList.contains("ql-editing")?P.save():P.edit("link",P.preview.textContent),j.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(j){if(P.linkRange!=null){var T=P.linkRange;P.restoreFocus(),P.quill.formatText(T,"link",!1,d.default.sources.USER),delete P.linkRange}j.preventDefault(),P.hide()}),this.quill.on(d.default.events.SELECTION_CHANGE,function(j,T,R){if(j!=null){if(j.length===0&&R===d.default.sources.USER){var Y=P.quill.scroll.descendant(m.default,j.index),e1=r(Y,2),Z=e1[0],W=e1[1];if(Z!=null){P.linkRange=new y.Range(j.index-W,Z.length());var I=m.default.formats(Z.domNode);P.preview.textContent=I,P.preview.setAttribute("href",I),P.show(),P.position(P.quill.getBounds(P.linkRange));return}}else delete P.linkRange;P.hide()}})}},{key:"show",value:function(){i(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),L}(h.BaseTooltip);V.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),c.default=H},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(29),i=C1(r),o=n(36),l=n(38),f=n(64),u=n(65),d=C1(u),h=n(66),p=C1(h),v=n(67),m=C1(v),y=n(37),g=n(26),M=n(39),x=n(40),k=n(56),b=C1(k),_=n(68),C=C1(_),H=n(27),V=C1(H),N=n(69),L=C1(N),w=n(70),P=C1(w),j=n(71),T=C1(j),R=n(72),Y=C1(R),e1=n(73),Z=C1(e1),W=n(13),I=C1(W),E=n(74),S=C1(E),U=n(75),G=C1(U),A=n(57),B=C1(A),Q=n(41),c1=C1(Q),K=n(28),a1=C1(K),F=n(59),l1=C1(F),k1=n(60),f1=C1(k1),t1=n(61),u1=C1(t1),o1=n(108),p1=C1(o1),b1=n(62),v1=C1(b1);function C1(D1){return D1&&D1.__esModule?D1:{default:D1}}i.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":M.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":M.FontStyle,"attributors/style/size":x.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":f.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":M.FontClass,"formats/size":x.SizeClass,"formats/blockquote":d.default,"formats/code-block":I.default,"formats/header":p.default,"formats/list":m.default,"formats/bold":b.default,"formats/code":W.Code,"formats/italic":C.default,"formats/link":V.default,"formats/script":L.default,"formats/strike":P.default,"formats/underline":T.default,"formats/image":Y.default,"formats/video":Z.default,"formats/list/item":v.ListItem,"modules/formula":S.default,"modules/syntax":G.default,"modules/toolbar":B.default,"themes/bubble":p1.default,"themes/snow":v1.default,"ui/icons":c1.default,"ui/picker":a1.default,"ui/icon-picker":f1.default,"ui/color-picker":l1.default,"ui/tooltip":u1.default},!0),c.default=i.default},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.IndentClass=void 0;var r=function(){function m(y,g){for(var M=0;M<g.length;M++){var x=g[M];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,g,M){return g&&m(y.prototype,g),M&&m(y,M),y}}(),i=function m(y,g,M){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,g);if(x===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:m(k,g,M)}else{if("value"in x)return x.value;var b=x.get;return b===void 0?void 0:b.call(M)}},o=n(0),l=f(o);function f(m){return m&&m.__esModule?m:{default:m}}function u(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function d(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function h(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var p=function(m){h(y,m);function y(){return u(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"add",value:function(M,x){if(x==="+1"||x==="-1"){var k=this.value(M)||0;x=x==="+1"?k+1:k-1}return x===0?(this.remove(M),!0):i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"add",this).call(this,M,x)}},{key:"canAdd",value:function(M,x){return i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,M,x)||i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,M,parseInt(x))}},{key:"value",value:function(M){return parseInt(i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,M))||void 0}}]),y}(l.default.Attributor.Class),v=new p("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});c.IndentClass=v},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(4),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="blockquote",d.tagName="blockquote",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function p(v,m){for(var y=0;y<m.length;y++){var g=m[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(v,g.key,g)}}return function(v,m,y){return m&&p(v.prototype,m),y&&p(v,y),v}}(),i=n(4),o=l(i);function l(p){return p&&p.__esModule?p:{default:p}}function f(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function u(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function d(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var h=function(p){d(v,p);function v(){return f(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return r(v,null,[{key:"formats",value:function(y){return this.tagName.indexOf(y.tagName)+1}}]),v}(o.default);h.blotName="header",h.tagName=["H1","H2","H3","H4","H5","H6"],c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.ListItem=void 0;var r=function(){function k(b,_){for(var C=0;C<_.length;C++){var H=_[C];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(b,H.key,H)}}return function(b,_,C){return _&&k(b.prototype,_),C&&k(b,C),b}}(),i=function k(b,_,C){b===null&&(b=Function.prototype);var H=Object.getOwnPropertyDescriptor(b,_);if(H===void 0){var V=Object.getPrototypeOf(b);return V===null?void 0:k(V,_,C)}else{if("value"in H)return H.value;var N=H.get;return N===void 0?void 0:N.call(C)}},o=n(0),l=p(o),f=n(4),u=p(f),d=n(25),h=p(d);function p(k){return k&&k.__esModule?k:{default:k}}function v(k,b,_){return b in k?Object.defineProperty(k,b,{value:_,enumerable:!0,configurable:!0,writable:!0}):k[b]=_,k}function m(k,b){if(!(k instanceof b))throw new TypeError("Cannot call a class as a function")}function y(k,b){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:k}function g(k,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);k.prototype=Object.create(b&&b.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(k,b):k.__proto__=b)}var M=function(k){g(b,k);function b(){return m(this,b),y(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return r(b,[{key:"format",value:function(C,H){C===x.blotName&&!H?this.replaceWith(l.default.create(this.statics.scope)):i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,C,H)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(C,H){return this.parent.isolate(this.offset(this.parent),this.length()),C===this.parent.statics.blotName?(this.parent.replaceWith(C,H),this):(this.parent.unwrap(),i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replaceWith",this).call(this,C,H))}}],[{key:"formats",value:function(C){return C.tagName===this.tagName?void 0:i(b.__proto__||Object.getPrototypeOf(b),"formats",this).call(this,C)}}]),b}(u.default);M.blotName="list-item",M.tagName="LI";var x=function(k){g(b,k),r(b,null,[{key:"create",value:function(C){var H=C==="ordered"?"OL":"UL",V=i(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,H);return(C==="checked"||C==="unchecked")&&V.setAttribute("data-checked",C==="checked"),V}},{key:"formats",value:function(C){if(C.tagName==="OL")return"ordered";if(C.tagName==="UL")return C.hasAttribute("data-checked")?C.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function b(_){m(this,b);var C=y(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,_)),H=function(N){if(N.target.parentNode===_){var L=C.statics.formats(_),w=l.default.find(N.target);L==="checked"?w.format("list","unchecked"):L==="unchecked"&&w.format("list","checked")}};return _.addEventListener("touchstart",H),_.addEventListener("mousedown",H),C}return r(b,[{key:"format",value:function(C,H){this.children.length>0&&this.children.tail.format(C,H)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(C,H){if(C instanceof M)i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertBefore",this).call(this,C,H);else{var V=H==null?this.length():H.offset(this),N=this.split(V);N.parent.insertBefore(C,N)}}},{key:"optimize",value:function(C){i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,C);var H=this.next;H!=null&&H.prev===this&&H.statics.blotName===this.statics.blotName&&H.domNode.tagName===this.domNode.tagName&&H.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(H.moveChildren(this),H.remove())}},{key:"replace",value:function(C){if(C.statics.blotName!==this.statics.blotName){var H=l.default.create(this.statics.defaultChild);C.moveChildren(H),this.appendChild(H)}i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replace",this).call(this,C)}}]),b}(h.default);x.blotName="list",x.scope=l.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[M],c.ListItem=M,c.default=x},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(56),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="italic",d.tagName=["EM","I"],c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(6),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,null,[{key:"create",value:function(g){return g==="super"?document.createElement("sup"):g==="sub"?document.createElement("sub"):i(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,g)}},{key:"formats",value:function(g){if(g.tagName==="SUB")return"sub";if(g.tagName==="SUP")return"super"}}]),m}(l.default);p.blotName="script",p.tagName=["SUB","SUP"],c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="strike",d.tagName="S",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="underline",d.tagName="U",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function y(g,M){for(var x=0;x<M.length;x++){var k=M[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,M,x){return M&&y(g.prototype,M),x&&y(g,x),g}}(),i=function y(g,M,x){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,M);if(k===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:y(b,M,x)}else{if("value"in k)return k.value;var _=k.get;return _===void 0?void 0:_.call(x)}},o=n(0),l=u(o),f=n(27);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var v=["alt","height","width"],m=function(y){p(g,y);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(x,k){v.indexOf(x)>-1?k?this.domNode.setAttribute(x,k):this.domNode.removeAttribute(x):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,k)}}],[{key:"create",value:function(x){var k=i(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return typeof x=="string"&&k.setAttribute("src",this.sanitize(x)),k}},{key:"formats",value:function(x){return v.reduce(function(k,b){return x.hasAttribute(b)&&(k[b]=x.getAttribute(b)),k},{})}},{key:"match",value:function(x){return/\.(jpe?g|gif|png)$/.test(x)||/^data:image\/.+;base64/.test(x)}},{key:"sanitize",value:function(x){return(0,f.sanitize)(x,["http","https","data"])?x:"//:0"}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g}(l.default.Embed);m.blotName="image",m.tagName="IMG",c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function y(g,M){for(var x=0;x<M.length;x++){var k=M[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,M,x){return M&&y(g.prototype,M),x&&y(g,x),g}}(),i=function y(g,M,x){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,M);if(k===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:y(b,M,x)}else{if("value"in k)return k.value;var _=k.get;return _===void 0?void 0:_.call(x)}},o=n(4),l=n(27),f=u(l);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var v=["height","width"],m=function(y){p(g,y);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(x,k){v.indexOf(x)>-1?k?this.domNode.setAttribute(x,k):this.domNode.removeAttribute(x):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,k)}}],[{key:"create",value:function(x){var k=i(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return k.setAttribute("frameborder","0"),k.setAttribute("allowfullscreen",!0),k.setAttribute("src",this.sanitize(x)),k}},{key:"formats",value:function(x){return v.reduce(function(k,b){return x.hasAttribute(b)&&(k[b]=x.getAttribute(b)),k},{})}},{key:"sanitize",value:function(x){return f.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g}(o.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.FormulaBlot=void 0;var r=function(){function x(k,b){for(var _=0;_<b.length;_++){var C=b[_];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(k,C.key,C)}}return function(k,b,_){return b&&x(k.prototype,b),_&&x(k,_),k}}(),i=function x(k,b,_){k===null&&(k=Function.prototype);var C=Object.getOwnPropertyDescriptor(k,b);if(C===void 0){var H=Object.getPrototypeOf(k);return H===null?void 0:x(H,b,_)}else{if("value"in C)return C.value;var V=C.get;return V===void 0?void 0:V.call(_)}},o=n(35),l=p(o),f=n(5),u=p(f),d=n(9),h=p(d);function p(x){return x&&x.__esModule?x:{default:x}}function v(x,k){if(!(x instanceof k))throw new TypeError("Cannot call a class as a function")}function m(x,k){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:x}function y(x,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);x.prototype=Object.create(k&&k.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(x,k):x.__proto__=k)}var g=function(x){y(k,x);function k(){return v(this,k),m(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return r(k,null,[{key:"create",value:function(_){var C=i(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,_);return typeof _=="string"&&(window.katex.render(_,C,{throwOnError:!1,errorColor:"#f00"}),C.setAttribute("data-value",_)),C}},{key:"value",value:function(_){return _.getAttribute("data-value")}}]),k}(l.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var M=function(x){y(k,x),r(k,null,[{key:"register",value:function(){u.default.register(g,!0)}}]);function k(){v(this,k);var b=m(this,(k.__proto__||Object.getPrototypeOf(k)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return b}return k}(h.default);c.FormulaBlot=g,c.default=M},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.CodeToken=c.CodeBlock=void 0;var r=function(){function _(C,H){for(var V=0;V<H.length;V++){var N=H[V];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(C,N.key,N)}}return function(C,H,V){return H&&_(C.prototype,H),V&&_(C,V),C}}(),i=function _(C,H,V){C===null&&(C=Function.prototype);var N=Object.getOwnPropertyDescriptor(C,H);if(N===void 0){var L=Object.getPrototypeOf(C);return L===null?void 0:_(L,H,V)}else{if("value"in N)return N.value;var w=N.get;return w===void 0?void 0:w.call(V)}},o=n(0),l=m(o),f=n(5),u=m(f),d=n(9),h=m(d),p=n(13),v=m(p);function m(_){return _&&_.__esModule?_:{default:_}}function y(_,C){if(!(_ instanceof C))throw new TypeError("Cannot call a class as a function")}function g(_,C){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:_}function M(_,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);_.prototype=Object.create(C&&C.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(_,C):_.__proto__=C)}var x=function(_){M(C,_);function C(){return y(this,C),g(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return r(C,[{key:"replaceWith",value:function(V){this.domNode.textContent=this.domNode.textContent,this.attach(),i(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replaceWith",this).call(this,V)}},{key:"highlight",value:function(V){var N=this.domNode.textContent;this.cachedText!==N&&((N.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=V(N),this.domNode.normalize(),this.attach()),this.cachedText=N)}}]),C}(v.default);x.className="ql-syntax";var k=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),b=function(_){M(C,_),r(C,null,[{key:"register",value:function(){u.default.register(k,!0),u.default.register(x,!0)}}]);function C(H,V){y(this,C);var N=g(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,H,V));if(typeof N.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var L=null;return N.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(L),L=setTimeout(function(){N.highlight(),L=null},N.options.interval)}),N.highlight(),N}return r(C,[{key:"highlight",value:function(){var V=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var N=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(L){L.highlight(V.options.highlight)}),this.quill.update(u.default.sources.SILENT),N!=null&&this.quill.setSelection(N,u.default.sources.SILENT)}}}]),C}(h.default);b.DEFAULTS={highlight:function(){return window.hljs==null?null:function(_){var C=window.hljs.highlightAuto(_);return C.value}}(),interval:1e3},c.CodeBlock=x,c.CodeToken=k,c.default=b},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.BubbleTooltip=void 0;var r=function C(H,V,N){H===null&&(H=Function.prototype);var L=Object.getOwnPropertyDescriptor(H,V);if(L===void 0){var w=Object.getPrototypeOf(H);return w===null?void 0:C(w,V,N)}else{if("value"in L)return L.value;var P=L.get;return P===void 0?void 0:P.call(N)}},i=function(){function C(H,V){for(var N=0;N<V.length;N++){var L=V[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(H,L.key,L)}}return function(H,V,N){return V&&C(H.prototype,V),N&&C(H,N),H}}(),o=n(3),l=y(o),f=n(8),u=y(f),d=n(43),h=y(d),p=n(15),v=n(41),m=y(v);function y(C){return C&&C.__esModule?C:{default:C}}function g(C,H){if(!(C instanceof H))throw new TypeError("Cannot call a class as a function")}function M(C,H){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H&&(typeof H=="object"||typeof H=="function")?H:C}function x(C,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof H);C.prototype=Object.create(H&&H.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),H&&(Object.setPrototypeOf?Object.setPrototypeOf(C,H):C.__proto__=H)}var k=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(C){x(H,C);function H(V,N){g(this,H),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=k);var L=M(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,V,N));return L.quill.container.classList.add("ql-bubble"),L}return i(H,[{key:"extendToolbar",value:function(N){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(N.container),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),m.default)}}]),H}(h.default);b.DEFAULTS=(0,l.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(H){H?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(C){x(H,C);function H(V,N){g(this,H);var L=M(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,V,N));return L.quill.on(u.default.events.EDITOR_CHANGE,function(w,P,j,T){if(w===u.default.events.SELECTION_CHANGE)if(P!=null&&P.length>0&&T===u.default.sources.USER){L.show(),L.root.style.left="0px",L.root.style.width="",L.root.style.width=L.root.offsetWidth+"px";var R=L.quill.getLines(P.index,P.length);if(R.length===1)L.position(L.quill.getBounds(P));else{var Y=R[R.length-1],e1=L.quill.getIndex(Y),Z=Math.min(Y.length()-1,P.index+P.length-e1),W=L.quill.getBounds(new p.Range(e1,Z));L.position(W)}}else document.activeElement!==L.textbox&&L.quill.hasFocus()&&L.hide()}),L}return i(H,[{key:"listen",value:function(){var N=this;r(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){N.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!N.root.classList.contains("ql-hidden")){var L=N.quill.getSelection();L!=null&&N.position(N.quill.getBounds(L))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(N){var L=r(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"position",this).call(this,N),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",L===0)return L;w.style.marginLeft=-1*L-w.offsetWidth/2+"px"}}]),H}(d.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),c.BubbleTooltip=_,c.default=b},function(a,c,n){a.exports=n(63)}]).default})})(Gr1);var Ml2=Gr1.exports;const kl2=fA1(Ml2);const xl2={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert content here ...",readOnly:!1},bl2={name:"quill-editor",props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:()=>({})}},emits:["ready","change","input","blur","focus","update:value"],setup(e,t){const a={editorOption:{},quill:null};let c="";s.watch(()=>e.value,o=>{a.quill&&(o&&o!==c?(c=o,a.quill.pasteHTML(o)):o||a.quill.setText(""))}),s.watch(()=>e.content,o=>{a.quill&&(o&&o!==c?(c=o,a.quill.pasteHTML(o)):o||a.quill.setText(""))}),s.watch(()=>e.disabled,o=>{a.quill&&a.quill.enable(!o)});const n=s.ref(null),r=(o,l)=>{for(const f in l)!o[f]||f!=="modules"?o[f]=l[f]:r(o[f],l[f]);return o},i=()=>{n.value&&(a.editorOption=r(xl2,e.options),a.editorOption.readOnly=!!e.disabled,a.quill=new kl2(n.value,a.editorOption),e.value&&a.quill.pasteHTML(e.value),a.quill.on("selection-change",o=>{o?t.emit("focus",a.quill):t.emit("blur",a.quill)}),a.quill.on("text-change",()=>{e.disabled&&a.quill.enable(!1);let o=n.value.children[0].innerHTML;const l=a.quill,f=a.quill.getText();o==="<p><br></p>"&&(o=""),c=o,t.emit("update:value",c),t.emit("change",{html:o,text:f,quill:l})}),t.emit("ready",a.quill))};return s.onBeforeUnmount(()=>{const o=n.value.previousSibling;o&&o.nodeType===1&&o.className.indexOf("ql-toolbar")>-1&&o.parentNode.removeChild(o)}),s.onMounted(()=>{i()}),s.onUnmounted(()=>{a.quill=null}),{editor:n}}},zl2={ref:"editor"};function Cl2(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("section",zl2,null,512)}const aF=Q1(bl2,[["render",Cl2]]);aF.install=function(e){e.component(aF.name,aF)};const _l2=s.defineComponent({__name:"PgaMaxLength",props:{content:{},maxLength:{}},setup(e){const t=e,a=s.computed(()=>{var n;return((n=t.content)==null?void 0:n.length)||0}),c=s.computed(()=>a.value>t.maxLength);return(n,r)=>(s.openBlock(),s.createElementBlock("span",{class:s.normalizeClass(["pga-max-length",{"pga-max-length--error":c.value}])},s.toDisplayString(`${a.value} / ${n.maxLength}`),3))}});const yK=Q1(_l2,[["__scopeId","data-v-e4fba1ee"]]),wl2={class:"editor__container"},Hl2={class:"editor__footer"},Ll2={class:"editor__actions"},Vl2={class:"editor__status"},Sl2=s.defineComponent({__name:"PgaEditor",props:s.mergeModels({saveFn:{type:Function},maxContentLength:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=T2("pgaEditor"),n={placeholder:"",modules:{toolbar:[[{header:[!1,1,2,3,4,5,6]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["blockquote"],[{list:"ordered"},{list:"bullet"}],[{color:[]},{background:[]}],["link"],["clean"]]}},r=s.ref(t.value),i=s.ref(!1);let o;const l=s.ref(!1),f=s.ref(!1),u=s.computed(()=>on1(t.value)),d=s.computed(()=>u.value.length),h=s.computed(()=>d.value>a.maxContentLength),p=s.computed(()=>r.value!==t.value);function v(){l.value=!1,f.value=!1,clearTimeout(o),o=setTimeout(()=>y(),1e3*5)}function m(){clearTimeout(o),y()}async function y(){if(r.value!==t.value){if(h.value){f.value=!0;return}try{i.value=!0,r.value=await a.saveFn(t.value),l.value=!0,setTimeout(()=>l.value=!1,1e3*3)}finally{i.value=!1}}}return(g,M)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-editor",{"pga-editor--loading":i.value}])},[s.createElementVNode("div",wl2,[s.createVNode(s.unref(aF),{value:t.value,"onUpdate:value":M[0]||(M[0]=x=>t.value=x),options:n,onChange:M[1]||(M[1]=x=>v())},null,8,["value"])]),s.createElementVNode("div",Hl2,[s.createVNode(yK,{content:u.value,maxLength:g.maxContentLength},null,8,["content","maxLength"]),s.createElementVNode("div",Ll2,[s.createVNode(k2,{icon:"save",text:s.unref(c)("saveBtn"),variant:"outlined",size:"s",disabled:!p.value,isLoading:i.value,onClick:M[2]||(M[2]=x=>m())},null,8,["text","disabled","isLoading"]),s.createElementVNode("div",Vl2,[l.value?(s.openBlock(),s.createBlock(me,{key:0,icon:"save",text:s.unref(c)("savedMsg"),color:"success"},null,8,["text"])):f.value?(s.openBlock(),s.createBlock(me,{key:1,icon:"circle-x",text:s.unref(c)("saveErrorMsg"),color:"danger"},null,8,["text"])):s.createCommentVNode("",!0)])])])],2))}});const Nl2=Q1(Sl2,[["__scopeId","data-v-8eb25e3c"]]),Al2={class:"pga-info-card"},Tl2={key:1,class:"info-card__content"},El2=s.defineComponent({__name:"PgaInfoCard",props:{type:{default:"success"},title:{},description:{},isLoading:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",Al2,[t.isLoading?(s.openBlock(),s.createBlock(Ja,{key:0})):(s.openBlock(),s.createElementBlock("div",Tl2,[s.createVNode(ge,{icon:t.type==="success"?"circle-check":"circle-x",color:t.type,size:"1.9rem"},null,8,["icon","color"]),s.createVNode(me,{class:"info-card__title",text:t.title},null,8,["text"]),t.description?(s.openBlock(),s.createBlock(me,{key:0,class:"info-card__description",text:t.description},null,8,["text"])):s.createCommentVNode("",!0),s.renderSlot(t.$slots,"default",{},void 0,!0)]))]))}});const Dl2=Q1(El2,[["__scopeId","data-v-16fcf446"]]),Iq=s.defineComponent({__name:"PgaInfoTooltip",props:{info:{},size:{default:"0.9rem"}},setup(e){const t=e,a=s.computed(()=>Ne(t.info));return(c,n)=>{const r=s.resolveDirective("tooltip");return a.value?s.withDirectives((s.openBlock(),s.createBlock(ge,{key:0,icon:"circle-help",size:c.size},null,8,["size"])),[[r,{content:a.value,html:!0}]]):s.createCommentVNode("",!0)}}}),Pl2=s.defineComponent({__name:"PgaIsEnabled",props:{isEnabled:{type:Boolean}},setup(e){const t=e;return(a,c)=>(s.openBlock(),s.createBlock(ge,{icon:t.isEnabled?"circle-check":"circle-x",color:t.isEnabled?"success":"danger"},null,8,["icon","color"]))}}),Ol2=s.defineComponent({__name:"PgaItemSelected",props:s.mergeModels({items:{},item:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const a=s.useModel(e,"modelValue"),c=e;t({toggleItemSelected:r});const n=s.computed({get(){if(c.item)return!!a.value.find(o=>o.id===c.item.id);for(const i of c.items)if(!a.value.find(l=>l.id===i.id))return!1;return!0},set(i){c.item?i?a.value.push(c.item):a.value=a.value.filter(o=>o.id!==c.item.id):i?a.value=[...c.items]:a.value=[]}});function r(){n.value=!n.value}return(i,o)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-item-selected",{"pga-item-selected--selected":n.value}]),onClick:o[0]||(o[0]=l=>r())},[n.value?(s.openBlock(),s.createBlock(ge,{key:0,class:"item-selected__check-icon",icon:"check"})):s.createCommentVNode("",!0)],2))}});const zG=Q1(Ol2,[["__scopeId","data-v-4b2dba1d"]]),Il2={class:"modal__header"},Bl2=["textContent"],Rl2={class:"modal__body"},Fl2={key:0,class:"modal__footer"},$l2=s.defineComponent({__name:"PgaModal",props:s.mergeModels({title:{},confirmButtons:{type:Boolean},isLoading:{type:Boolean},width:{default:"auto"},acceptText:{},cancelText:{},acceptIcon:{default:"save"}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:s.mergeModels(["accept"],["update:modelValue"]),setup(e,{emit:t}){s.useCssVars(r=>({"76cc6218":r.width}));const a=s.useModel(e,"modelValue"),c=t,n=T2("pgaModal");return s.watch(a,r=>$i(!r)),(r,i)=>a.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"pga-modal",onMousedown:i[4]||(i[4]=o=>a.value=!1)},[s.createElementVNode("div",{class:"modal__content",onMousedown:i[3]||(i[3]=s.withModifiers(()=>{},["stop"]))},[s.createElementVNode("div",Il2,[s.createElementVNode("span",{class:"modal__title",textContent:s.toDisplayString(r.title)},null,8,Bl2),s.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=o=>a.value=!1)},[s.createVNode(ge,{icon:"x"})])]),s.createElementVNode("div",Rl2,[s.renderSlot(r.$slots,"default",{},void 0,!0)]),r.confirmButtons?(s.openBlock(),s.createElementBlock("div",Fl2,[r.isLoading?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(k2,{key:0,text:r.cancelText||s.unref(n)("cancelBtn"),color:"danger",variant:"flat",onClick:i[1]||(i[1]=o=>a.value=!1)},null,8,["text"])),s.createVNode(k2,{icon:r.acceptIcon,text:r.acceptText||s.unref(n)("acceptBtn"),color:"success",variant:"filled",isLoading:r.isLoading,onClick:i[2]||(i[2]=o=>c("accept"))},null,8,["icon","text","isLoading"])])):s.createCommentVNode("",!0)],32)],32)):s.createCommentVNode("",!0)}});const ql2=Q1($l2,[["__scopeId","data-v-ff34d1e3"]]),jl2={class:"pga-flex-row"},Ul2=s.defineComponent({__name:"PgaMonthSelector",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=s.computed({get(){return{year:t.value.datetimeFrom.getFullYear(),month:t.value.datetimeFrom.getMonth()}},set(r){const i=new Date(r.year,r.month,1);t.value={datetimeFrom:i,datetimeTo:c4.getNextMonthStartDate(i)}}});function c(){t.value={datetimeFrom:c4.getPreviousMonthStartDate(t.value.datetimeFrom),datetimeTo:c4.getPreviousMonthStartDate(t.value.datetimeTo)}}function n(){t.value={datetimeFrom:c4.getNextMonthStartDate(t.value.datetimeFrom),datetimeTo:c4.getNextMonthStartDate(t.value.datetimeTo)}}return(r,i)=>{const o=s.resolveComponent("PgaButton"),l=s.resolveComponent("PgaMonthPicker");return s.openBlock(),s.createElementBlock("div",jl2,[s.createVNode(o,{icon:"chevron-left",variant:"flat",color:"first",onClick:i[0]||(i[0]=f=>c())}),s.createVNode(l,{modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=f=>a.value=f),notClearable:""},null,8,["modelValue"]),s.createVNode(o,{icon:"chevron-right",variant:"flat",color:"first",onClick:i[2]||(i[2]=f=>n())})])}}}),Wl2=s.defineComponent({__name:"PgaSeparator",props:{vertical:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-separator",{"pga-separator--vertical":t.vertical}])},null,2))}});const Yl2=Q1(Wl2,[["__scopeId","data-v-ede6004e"]]),Gl2={class:"pga-tabs"},Zl2={class:"tabs__nav",role:"tablist"},Xl2=["aria-selected","onClick"],Kl2=s.defineComponent({__name:"PgaTabs",props:{tabs:{}},setup(e){const t=s.ref(0);return(a,c)=>{const n=s.resolveComponent("PgaIcon"),r=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createElementBlock("div",Gl2,[s.createElementVNode("nav",Zl2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.tabs,(i,o)=>(s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass(["tabs__card",{"tabs__card--active":t.value===o}]),key:`tab-${o}`,role:"tab","aria-selected":t.value===o,onClick:l=>t.value=o},[i.icon?(s.openBlock(),s.createBlock(n,{key:0,class:"tabs__icon",icon:i.icon},null,8,["icon"])):s.createCommentVNode("",!0),s.createVNode(r,{class:"tabs__label",text:i.label},null,8,["text"])],10,Xl2))),128))]),s.createVNode(s.Transition,{name:"tabs-fade",mode:"out-in"},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("section",{key:t.value,class:"tabs__panel",role:"tabpanel"},[s.renderSlot(a.$slots,`panel${t.value+1}`,{},void 0,!0)]))]),_:3})])}}});const Ql2=Q1(Kl2,[["__scopeId","data-v-02af7f0a"]]),Jl2=["accept","multiple","disabled"],ef2={class:"input-file__label-container"},tf2=s.defineComponent({__name:"PgaInputFile",props:{type:{},multiple:{type:Boolean},label:{},disabled:{type:Boolean},isLoading:{type:Boolean}},emits:["newFile","newFiles"],setup(e,{expose:t,emit:a}){s.useCssVars(b=>({"13af3e9c":s.unref(r).input.borderColor,"309935ba":s.unref(r).input.borderRadius,"404a4b70":s.unref(r).input.backgroundColor,"1cb633ac":s.unref(r).input.backgroundColorHover,"54c07a0c":s.unref(r).input.backgroundColorDisabled}));const c=e,n=a;t({click:M,resetInput:x});const{form:r}=C4(),i=T2("pgaForm"),o=(()=>c.type==="image"?["jpeg","jpg","png","webp","gif","svg","bmp","tiff","heic"]:c.type==="video"?["mp4","mov","avi","webm","mkv"]:["xls","xlsx"])(),l=o.map(b=>`.${b}`).join(","),f=s.ref(),u=s.ref([]),d=s.ref(!1),h=s.ref(!1),p=s.computed(()=>c.disabled||c.isLoading),v=s.computed(()=>!!u.value.length),m=s.computed(()=>{for(const b of u.value){const _=b.name.split(".").pop();if(!o.includes(_))return!1}return!0}),y=s.computed(()=>{const b={icon:"upload"};return!v.value||d.value&&!h.value&&!p.value?b:m.value?{icon:"circle-check",color:"success"}:{icon:"circle-x",color:"danger"}}),g=s.computed(()=>v.value?u.value.map(b=>b.name).join(", "):c.label?c.label:c.multiple?i("selectFilesLabel"):i("selectFileLabel"));function M(){var b;(b=f.value)==null||b.click()}function x(){u.value=[],f.value&&(f.value.value="")}function k(b){d.value=!1;const C=b.target.files;if(C.length){if(u.value=[...C],!m.value){W4.Add("danger",()=>i("newFileError"));return}n("newFile",C[0]),n("newFiles",[...C])}}return(b,_)=>(s.openBlock(),s.createElementBlock("label",{class:s.normalizeClass(["pga-input-file",{"pga-input-file--disabled":p.value}]),onMouseenter:_[4]||(_[4]=C=>d.value=!0),onMouseleave:_[5]||(_[5]=C=>d.value=!1)},[b.isLoading?(s.openBlock(),s.createBlock(Ja,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("input",{ref_key:"inputRef",ref:f,class:"input-file__input",type:"file",accept:s.unref(l),multiple:b.multiple,disabled:p.value,onChange:_[0]||(_[0]=C=>k(C))},null,40,Jl2),s.createVNode(ge,{class:"input-file__icon",icon:y.value.icon,color:y.value.color},null,8,["icon","color"]),s.createElementVNode("div",ef2,[s.createVNode(me,{text:g.value},null,8,["text"])]),v.value?(s.openBlock(),s.createBlock(k2,{key:0,text:s.unref(i)("removeBtn"),variant:"flat",color:"danger",size:"s",disabled:p.value,onMouseenter:_[1]||(_[1]=C=>h.value=!0),onMouseleave:_[2]||(_[2]=C=>h.value=!1),onClick:_[3]||(_[3]=s.withModifiers(C=>x(),["prevent"]))},null,8,["text","disabled"])):s.createCommentVNode("",!0)],64))],34))}});const vu=Q1(tf2,[["__scopeId","data-v-0a46f5a2"]]),af2={class:"pga-videos"},cf2={class:"videos"},nf2=["src"],rf2={key:0,class:"videos__input-container"},if2=s.defineComponent({__name:"PgaVideos",props:s.mergeModels({maxVideosQuantity:{},uploadFn:{type:Function},deleteFn:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=T2("pgaFile"),n=s.ref(),r=s.ref(!1),i=s.ref(-1),o=s.computed(()=>t.value.length),l=s.computed(()=>t.value.map(d=>typeof d=="string"?d:URL.createObjectURL(d)));async function f(d){var h;if((h=n.value)==null||h.resetInput(),o.value+d.length>a.maxVideosQuantity&&(d=d.slice(0,a.maxVideosQuantity-o.value),W4.Add("warning",()=>c("maxVideosQuantityAlert",{maxQuantity:a.maxVideosQuantity}))),!a.uploadFn){t.value.push(...d);return}try{r.value=!0,t.value=await a.uploadFn({file:d})}finally{r.value=!1}}async function u(d){if(a.deleteFn)try{i.value=d,await a.deleteFn({index:d})}finally{i.value=-1}t.value.splice(d,1)}return(d,h)=>{const p=s.resolveComponent("PgaDeleteButton");return s.openBlock(),s.createElementBlock("div",af2,[s.createElementVNode("div",cf2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(v,m)=>(s.openBlock(),s.createElementBlock("div",{key:v,class:"videos__video-container"},[s.createElementVNode("video",{class:"videos__video",src:v,controls:""},null,8,nf2),s.createVNode(p,{class:"videos__delete-btn",variant:"filled",withoutText:"",withoutConfirm:"",isLoading:i.value===m,onDeleteConfirmed:y=>u(m)},null,8,["isLoading","onDeleteConfirmed"])]))),128)),o.value<d.maxVideosQuantity?(s.openBlock(),s.createElementBlock("div",rf2,[s.createVNode(vu,{ref_key:"inputFileRef",ref:n,class:"videos__input",type:"video",multiple:"",label:s.unref(c)("selectVideos"),isLoading:r.value,onNewFiles:h[0]||(h[0]=v=>f(v))},null,8,["label","isLoading"])])):s.createCommentVNode("",!0)]),s.createElementVNode("span",null,s.toDisplayString(`${o.value} / ${d.maxVideosQuantity}`),1)])}}});const of2=Q1(if2,[["__scopeId","data-v-f02c9cd7"]]),sf2=s.defineComponent({__name:"PgaBackButton",setup(e){const t=T2("pgaButton");return(a,c)=>(s.openBlock(),s.createBlock(k2,{text:s.unref(t)("backBtn"),icon:"chevron-left",color:"first",size:"s"},null,8,["text"]))}}),lf2={class:"pga-button-link",type:"button"},ff2=s.defineComponent({__name:"PgaButtonLink",props:{text:{},icon:{},size:{default:"inherit"},color:{default:"link"},noUnderline:{type:Boolean}},setup(e){s.useCssVars(n=>({"4c5e64be":n.size,"48cda4c0":a.value,"55e62c5c":c.value}));const t=e,a=s.computed(()=>`var(--pga-color-${t.color})`),c=s.computed(()=>`var(--pga-color-${t.color}-08)`);return(n,r)=>(s.openBlock(),s.createElementBlock("button",lf2,[n.text?(s.openBlock(),s.createBlock(me,{key:0,class:s.normalizeClass(["button-link__text",{"button-link__text--with-underline":!n.noUnderline}]),text:n.text,icon:n.icon},null,8,["class","text","icon"])):s.renderSlot(n.$slots,"default",{key:1},void 0,!0)]))}});const Zr1=Q1(ff2,[["__scopeId","data-v-e0ff11ed"]]),uf2={class:"pga-copy"},df2=s.defineComponent({__name:"PgaCopy",props:{text:{}},setup(e){const t=e,a=T2("pgaButton"),c=s.ref(!1),n=s.computed(()=>Ne(t.text));async function r(){await navigator.clipboard.writeText(n.value),c.value=!0,setTimeout(()=>c.value=!1,3e3)}return(i,o)=>{const l=s.resolveDirective("tooltip");return s.openBlock(),s.createElementBlock("div",uf2,[s.createElementVNode("span",null,s.toDisplayString(n.value),1),c.value?(s.openBlock(),s.createBlock(ge,{key:1,icon:"circle-check",color:"success"})):s.withDirectives((s.openBlock(),s.createBlock(k2,{key:0,color:"first",icon:"copy",size:"s",onClick:o[0]||(o[0]=f=>r())},null,512)),[[l,s.unref(a)("copyBtn")]])])}}});const hf2=Q1(df2,[["__scopeId","data-v-64962c4d"]]),pf2=s.defineComponent({__name:"PgaCopyButton",props:{text:{},label:{}},setup(e){const t=e,a=T2("pgaButton"),c=s.computed(()=>Ne(t.text)),n=s.computed(()=>t.label||a("copyBtn"));async function r(){await navigator.clipboard.writeText(c.value),W4.Add("success",()=>a("textCopied"))}return(i,o)=>{const l=s.resolveDirective("tooltip");return s.withDirectives((s.openBlock(),s.createBlock(k2,{color:"first",icon:"copy",text:n.value,onClick:o[0]||(o[0]=f=>r())},null,8,["text"])),[[l,c.value]])}}});class Xr1{static Show(t,a){pG.value=t,rr1.value=a,Lo.value=!0}}const Bq=s.defineComponent({__name:"PgaDeleteButton",props:{variant:{default:"flat"},icon:{default:"trash-2"},text:{},withoutText:{type:Boolean},withoutConfirm:{type:Boolean},confirmDeleteText:{}},emits:["deleteConfirmed"],setup(e,{emit:t}){const a=e,c=t,n=T2("pgaButton");function r(){if(a.withoutConfirm){c("deleteConfirmed");return}const i=a.confirmDeleteText||n("confirmDeleteText");Xr1.Show(i,()=>c("deleteConfirmed"))}return(i,o)=>(s.openBlock(),s.createBlock(k2,{variant:i.variant,icon:i.icon,text:i.withoutText?void 0:i.text||s.unref(n)("deleteBtn"),size:"s",align:"left",color:"danger",onClick:o[0]||(o[0]=l=>r())},null,8,["variant","icon","text"]))}}),CG=s.defineComponent({__name:"PgaEditButton",props:{withoutText:{type:Boolean},fullWidth:{type:Boolean}},setup(e){const t=T2("pgaButton");return(a,c)=>{const n=s.resolveDirective("tooltip");return s.withDirectives((s.openBlock(),s.createBlock(k2,{variant:"flat",color:"sky",icon:"square-pen",text:a.withoutText?void 0:s.unref(t)("editBtn"),size:"s",fullWidth:a.fullWidth,align:"left"},null,8,["text","fullWidth"])),[[n,a.withoutText?s.unref(t)("editBtn"):""]])}}}),mf2=["href","target"],vf2=s.defineComponent({__name:"PgaLink",props:{text:{},href:{},target:{default:"_blank"}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("a",{class:"pga-hyperlink",href:t.href,target:t.target},[s.createVNode(me,{text:t.text,withUnderlineOnHover:""},null,8,["text"])],8,mf2))}});const gK=Q1(vf2,[["__scopeId","data-v-252767c4"]]),yf2=s.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:t}){const a=t,c=T2("pgaButton");return(n,r)=>(s.openBlock(),s.createBlock(k2,{icon:"log-out",text:s.unref(c)("logoutBtn"),color:"danger",onClick:r[0]||(r[0]=i=>a("click",i))},null,8,["text"]))}}),gf2=s.defineComponent({__name:"PgaRouterLink",props:{name:{},params:{},query:{},color:{default:"var(--pga-color-first)"},noFitContent:{type:Boolean},underline:{type:Boolean},noUnderlineOnHover:{type:Boolean}},setup(e){s.useCssVars(n=>({"040e9024":a.value,"75a55a4c":c.value}));const t=e,a=s.computed(()=>`var(--pga-color-${t.color})`),c=s.computed(()=>`var(--pga-color-${t.color}-09)`);return(n,r)=>{const i=s.resolveComponent("RouterLink");return s.openBlock(),s.createBlock(i,{class:s.normalizeClass(["pga-router-link",{"pga-router-link--fit-content":!n.noFitContent,"pga-router-link--underline":n.underline,"pga-router-link--underline-on-hover":!n.noUnderlineOnHover}]),to:{name:n.name,params:n.params,query:n.query},onClick:r[0]||(r[0]=o=>s.unref($i)(!0))},{default:s.withCtx(()=>[s.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["class","to"])}}});const $s=Q1(gf2,[["__scopeId","data-v-6046ce2c"]]),Kr1=s.defineComponent({__name:"PgaRouterLinkButton",props:{name:{},params:{},query:{},type:{},icon:{},text:{},variant:{},size:{},align:{},color:{},heightAndWidth:{},borderRadius:{},rounded:{type:Boolean},disabled:{type:Boolean},isLoading:{type:Boolean},numberToDisplay:{},noFitContent:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createBlock($s,{name:t.name,params:t.params,query:t.query,noFitContent:t.noFitContent,noUnderlineOnHover:""},{default:s.withCtx(()=>[t.$slots.default?s.renderSlot(t.$slots,"default",{key:0}):(s.openBlock(),s.createBlock(k2,{key:1,type:t.type,icon:t.icon,text:t.text,variant:t.variant,size:t.size,align:t.align,color:t.color,fullWidth:!t.heightAndWidth,heightAndWidth:t.heightAndWidth,borderRadius:t.borderRadius,rounded:t.rounded,disabled:t.disabled,isLoading:t.isLoading,numberToDisplay:t.numberToDisplay},null,8,["type","icon","text","variant","size","align","color","fullWidth","heightAndWidth","borderRadius","rounded","disabled","isLoading","numberToDisplay"]))]),_:3},8,["name","params","query","noFitContent"]))}}),Qr1=s.defineComponent({__name:"PgaNavigateToButton",props:{id:{},toName:{},withoutText:{type:Boolean},noFitContent:{type:Boolean}},setup(e){const t=T2("pgaButton");return(a,c)=>a.toName?(s.openBlock(),s.createBlock(Kr1,{key:0,name:a.toName,params:{id:a.id},icon:"external-link",text:a.withoutText?void 0:s.unref(t)("navigateToBtn"),variant:"flat",size:"s",align:"left",color:"link",noFitContent:a.noFitContent},null,8,["name","params","text","noFitContent"])):s.createCommentVNode("",!0)}}),Mf2=s.defineComponent({__name:"PgaRemoveButton",props:{size:{default:"s"},disabled:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createBlock(k2,{variant:"flat",icon:"x",size:t.size,color:"danger",disabled:t.disabled},null,8,["size","disabled"]))}}),kf2=s.defineComponent({__name:"PgaSeeDetailsButton",props:{withoutText:{type:Boolean}},setup(e){const t=T2("pgaButton");return(a,c)=>(s.openBlock(),s.createBlock(k2,{variant:"flat",color:"grey",icon:"eye",text:a.withoutText?void 0:s.unref(t)("seeDetailsBtn"),size:"s",align:"left"},null,8,["text"]))}}),xf2=s.defineComponent({__name:"PgaToggleButton",props:s.mergeModels({text:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:s.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=t,n=s.computed(()=>a.value?"outlined":"flat"),r=s.computed(()=>a.value?"primary":"grey");return s.watch(a,i=>c("change",i)),(i,o)=>(s.openBlock(),s.createBlock(k2,{variant:n.value,color:r.value,icon:"circle-check",text:i.text,size:"s",borderRadius:"1rem",onClick:o[0]||(o[0]=l=>a.value=!a.value)},null,8,["variant","color","text"]))}});var bf2=Object.defineProperty,zf2=(e,t,a)=>t in e?bf2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Kt=(e,t,a)=>zf2(e,typeof t!="symbol"?t+"":t,a);const Cf2=(e,t,a)=>{const c=e[t];return c?typeof c=="function"?c():Promise.resolve(c):new Promise((n,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==a?". Note that variables only represent file names one level deep.":""))))})};let d9,j31,U31,x0,h9={},ho={};class _f2{constructor(t,a=!1){Kt(this,"texts",{}),Kt(this,"dateToMinutes",c=>c.getHours()*60+c.getMinutes()),x0=this,this._texts=t,!a&&Date&&!Date.prototype.addDays&&this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(t){return x0.addDays(this,t)},Date.prototype.subtractDays=function(t){return x0.subtractDays(this,t)},Date.prototype.addHours=function(t){return x0.addHours(this,t)},Date.prototype.subtractHours=function(t){return x0.subtractHours(this,t)},Date.prototype.addMinutes=function(t){return x0.addMinutes(this,t)},Date.prototype.subtractMinutes=function(t){return x0.subtractMinutes(this,t)},Date.prototype.getWeek=function(){return x0.getWeek(this)},Date.prototype.isToday=function(){return x0.isToday(this)},Date.prototype.isLeapYear=function(){return x0.isLeapYear(this)},Date.prototype.format=function(t="YYYY-MM-DD"){return x0.formatDate(this,t)},Date.prototype.formatTime=function(t="HH:mm"){return x0.formatTime(this,t)}}removePrototypes(){delete Date.prototype.addDays,delete Date.prototype.subtractDays,delete Date.prototype.addHours,delete Date.prototype.subtractHours,delete Date.prototype.addMinutes,delete Date.prototype.subtractMinutes,delete Date.prototype.getWeek,delete Date.prototype.isToday,delete Date.prototype.isLeapYear,delete Date.prototype.format,delete Date.prototype.formatTime}updateTexts(t){this._texts=t}_todayFormatted(){return j31!==new Date().getDate()&&(d9=new Date,j31=d9.getDate(),U31=`${d9.getFullYear()}-${d9.getMonth()}-${d9.getDate()}`),U31}addDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()+a),c}subtractDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()-a),c}addHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()+a),c}subtractHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()-a),c}addMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()+a),c}subtractMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()-a),c}getWeek(t){const a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),c=a.getUTCDay()||7;a.setUTCDate(a.getUTCDate()+4-c);const n=new Date(Date.UTC(a.getUTCFullYear(),0,1));return Math.ceil(((a-n)/864e5+1)/7)}isToday(t){return`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`===this._todayFormatted()}isLeapYear(t){const a=t.getFullYear();return!(a%400)||a%100&&!(a%4)}getPreviousFirstDayOfWeek(t=null,a){const c=t&&new Date(t.valueOf())||new Date,n=a?7:6;return c.setDate(c.getDate()-(c.getDay()+n)%7),c}stringToDate(t){return t instanceof Date?t:(t.length===10&&(t+=" 00:00"),new Date(t.replace(/-/g,"/")))}countDays(t,a){typeof t=="string"&&(t=t.replace(/-/g,"/")),typeof a=="string"&&(a=a.replace(/-/g,"/")),t=new Date(t).setHours(0,0,0,0),a=new Date(a).setHours(0,0,1,0);const c=(new Date(a).getTimezoneOffset()-new Date(t).getTimezoneOffset())*60*1e3;return Math.ceil((a-t-c)/(24*3600*1e3))}datesInSameTimeStep(t,a,c){return Math.abs(t.getTime()-a.getTime())<=c*60*1e3}formatDate(t,a="YYYY-MM-DD",c=null){if(c||(c=this._texts),a||(a="YYYY-MM-DD"),a==="YYYY-MM-DD")return this.formatDateLite(t);h9={},ho={};const n={YYYY:()=>this._hydrateDateObject(t,c).YYYY,YY:()=>this._hydrateDateObject(t,c).YY(),M:()=>this._hydrateDateObject(t,c).M,MM:()=>this._hydrateDateObject(t,c).MM(),MMM:()=>this._hydrateDateObject(t,c).MMM(),MMMM:()=>this._hydrateDateObject(t,c).MMMM(),MMMMG:()=>this._hydrateDateObject(t,c).MMMMG(),D:()=>this._hydrateDateObject(t,c).D,DD:()=>this._hydrateDateObject(t,c).DD(),S:()=>this._hydrateDateObject(t,c).S(),d:()=>this._hydrateDateObject(t,c).d,dd:()=>this._hydrateDateObject(t,c).dd(),ddd:()=>this._hydrateDateObject(t,c).ddd(),dddd:()=>this._hydrateDateObject(t,c).dddd(),HH:()=>this._hydrateTimeObject(t,c).HH,H:()=>this._hydrateTimeObject(t,c).H,hh:()=>this._hydrateTimeObject(t,c).hh,h:()=>this._hydrateTimeObject(t,c).h,am:()=>this._hydrateTimeObject(t,c).am,AM:()=>this._hydrateTimeObject(t,c).AM,mm:()=>this._hydrateTimeObject(t,c).mm,m:()=>this._hydrateTimeObject(t,c).m};return a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(r,i)=>{const o=n[i.replace(/\{|\}/g,"")];return o!==void 0?o():i})}formatDateLite(t){const a=t.getMonth()+1,c=t.getDate();return`${t.getFullYear()}-${a<10?"0":""}${a}-${c<10?"0":""}${c}`}formatTime(t,a="HH:mm",c=null,n=!1){let r=!1;if(n){const[l,f,u]=[t.getHours(),t.getMinutes(),t.getSeconds()];l+f+u===23+59+59&&(r=!0)}if(t instanceof Date&&a==="HH:mm")return r?"24:00":this.formatTimeLite(t);ho={},c||(c=this._texts);const i=this._hydrateTimeObject(t,c),o=a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(l,f)=>{const u=i[f.replace(/\{|\}/g,"")];return u!==void 0?u:f});return r?o.replace("23:59","24:00"):o}formatTimeLite(t){const a=t.getHours(),c=t.getMinutes();return`${(a<10?"0":"")+a}:${(c<10?"0":"")+c}`}_nth(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}_hydrateDateObject(t,a){if(h9.D)return h9;const c=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),o=(t.getDay()-1+7)%7;return h9={YYYY:c,YY:()=>c.toString().substring(2),M:n,MM:()=>(n<10?"0":"")+n,MMM:()=>a.months[n-1].substring(0,3),MMMM:()=>a.months[n-1],MMMMG:()=>(a.monthsGenitive||a.months)[n-1],D:r,DD:()=>(r<10?"0":"")+r,S:()=>this._nth(r),d:o+1,dd:()=>a.weekDays[o][0],ddd:()=>a.weekDays[o].substr(0,3),dddd:()=>a.weekDays[o]},h9}_hydrateTimeObject(t,a){if(ho.am)return ho;let c,n;t instanceof Date?(c=t.getHours(),n=t.getMinutes()):(c=Math.floor(t/60),n=Math.floor(t%60));const r=c%12?c%12:12,i=(a||{am:"am",pm:"pm"})[c===24||c<12?"am":"pm"];return ho={H:c,h:r,HH:(c<10?"0":"")+c,hh:(r<10?"0":"")+r,am:i,AM:i.toUpperCase(),m:n,mm:(n<10?"0":"")+n},ho}}const wf2=24*60;class Hf2{constructor(t){Kt(this,"_vuecal",null),Kt(this,"selectCell",(a=!1,c,n)=>{this._vuecal.$emit("cell-click",n?{date:c,split:n}:c),this._vuecal.clickToNavigate||a?this._vuecal.switchToNarrowerView():this._vuecal.dblclickToNavigate&&"ontouchstart"in window&&(this._vuecal.domEvents.dblTapACell.taps++,setTimeout(()=>this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.domEvents.dblTapACell.timeout),this._vuecal.domEvents.dblTapACell.taps>=2&&(this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.switchToNarrowerView(),this._vuecal.$emit("cell-dblclick",n?{date:c,split:n}:c)))}),Kt(this,"keyPressEnterCell",(a,c)=>{this._vuecal.$emit("cell-keypress-enter",c?{date:a,split:c}:a),this._vuecal.switchToNarrowerView()}),Kt(this,"getPosition",a=>{const{left:c,top:n}=this._vuecal.cellsEl.getBoundingClientRect(),{clientX:r,clientY:i}="ontouchstart"in window&&a.touches?a.touches[0]:a;return{x:r-c,y:i-n}}),Kt(this,"minutesAtCursor",a=>{let c=0,n={x:0,y:0};const{timeStep:r,timeCellHeight:i,timeFrom:o}=this._vuecal.$props;return typeof a=="number"?c=a:typeof a=="object"&&(n=this.getPosition(a),c=Math.round(n.y*r/parseInt(i)+o)),{minutes:Math.max(Math.min(c,wf2),0),cursorCoords:n}}),this._vuecal=t}}const Lf2=2,ZU=24*60;let Ye,Ge,XU;class Vf2{constructor(t,a){Kt(this,"_vuecal",null),Kt(this,"eventDefaults",{_eid:null,start:"",startTimeMinutes:0,end:"",endTimeMinutes:0,title:"",content:"",background:!1,allDay:!1,segments:null,repeat:null,daysCount:1,deletable:!0,deleting:!1,titleEditable:!0,resizable:!0,resizing:!1,draggable:!0,dragging:!1,draggingStatic:!1,focused:!1,class:""}),this._vuecal=t,Ye=a}createAnEvent(t,a,c){if(typeof t=="string"&&(t=Ye.stringToDate(t)),!(t instanceof Date))return!1;const n=Ye.dateToMinutes(t);a=a*1||Lf2*60;const r=n+a,i=Ye.addMinutes(new Date(t),a);c.end&&(typeof c.end=="string"&&(c.end=Ye.stringToDate(c.end)),c.endTimeMinutes=Ye.dateToMinutes(c.end));const o={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:t,startTimeMinutes:n,end:i,endTimeMinutes:r,segments:null,...c};if(!(typeof this._vuecal.onEventCreate=="function"&&!this._vuecal.onEventCreate(o,()=>this.deleteAnEvent(o))))return o.startDateF!==o.endDateF&&(o.daysCount=Ye.countDays(o.start,o.end)),this._vuecal.mutableEvents.push(o),this._vuecal.addEventsToView([o]),this._vuecal.emitWithEvent("event-create",o),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(o),originalEvent:null}),o}addEventSegment(t){t.segments||(t.segments={},t.segments[Ye.formatDateLite(t.start)]={start:t.start,startTimeMinutes:t.startTimeMinutes,endTimeMinutes:ZU,isFirstDay:!0,isLastDay:!1});const a=t.segments[Ye.formatDateLite(t.end)];a&&(a.isLastDay=!1,a.endTimeMinutes=ZU);const c=Ye.addDays(t.end,1),n=Ye.formatDateLite(c);return c.setHours(0,0,0,0),t.segments[n]={start:c,startTimeMinutes:0,endTimeMinutes:t.endTimeMinutes,isFirstDay:!1,isLastDay:!0},t.end=Ye.addMinutes(c,t.endTimeMinutes),t.daysCount=Object.keys(t.segments).length,n}removeEventSegment(t){let a=Object.keys(t.segments).length;if(a<=1)return Ye.formatDateLite(t.end);delete t.segments[Ye.formatDateLite(t.end)],a--;const c=Ye.subtractDays(t.end,1),n=Ye.formatDateLite(c),r=t.segments[n];return a?r&&(r.isLastDay=!0,r.endTimeMinutes=t.endTimeMinutes):t.segments=null,t.daysCount=a||1,t.end=c,n}createEventSegments(t,a,c){const n=a.getTime(),r=c.getTime();let i=t.start.getTime(),o=t.end.getTime(),l=!1,f,u,d;for(!t.end.getHours()&&!t.end.getMinutes()&&(o-=1e3),t.segments={},t.repeat?(f=n,u=Math.min(r,t.repeat.until?Ye.stringToDate(t.repeat.until).getTime():r)):(f=Math.max(n,i),u=Math.min(r,o));f<=u;){let h=!1;const p=Ye.addDays(new Date(f),1).setHours(0,0,0,0);let v,m,y,g;if(t.repeat){const M=new Date(f),x=Ye.formatDateLite(M);(l||t.occurrences&&t.occurrences[x])&&(l||(i=t.occurrences[x].start,d=new Date(i).setHours(0,0,0,0),o=t.occurrences[x].end),l=!0,h=!0),v=f===d,m=x===Ye.formatDateLite(new Date(o)),y=new Date(v?i:f),g=Ye.formatDateLite(y),m&&(l=!1)}else h=!0,v=f===i,m=u===o&&p>u,y=v?t.start:new Date(f),g=Ye.formatDateLite(v?t.start:y);h&&(t.segments[g]={start:y,startTimeMinutes:v?t.startTimeMinutes:0,endTimeMinutes:m?t.endTimeMinutes:ZU,isFirstDay:v,isLastDay:m}),f=p}return t}deleteAnEvent(t){this._vuecal.emitWithEvent("event-delete",t),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter(a=>a._eid!==t._eid),this._vuecal.view.events=this._vuecal.view.events.filter(a=>a._eid!==t._eid)}checkCellOverlappingEvents(t,a){XU=t.slice(0),Ge={},t.forEach(n=>{XU.shift(),Ge[n._eid]||(Ge[n._eid]={overlaps:[],start:n.start,position:0}),Ge[n._eid].position=0,XU.forEach(r=>{Ge[r._eid]||(Ge[r._eid]={overlaps:[],start:r.start,position:0});const i=this.eventInRange(r,n.start,n.end),o=a.overlapsPerTimeStep?Ye.datesInSameTimeStep(n.start,r.start,a.timeStep):1;if(!n.background&&!n.allDay&&!r.background&&!r.allDay&&i&&o)Ge[n._eid].overlaps.push(r._eid),Ge[n._eid].overlaps=[...new Set(Ge[n._eid].overlaps)],Ge[r._eid].overlaps.push(n._eid),Ge[r._eid].overlaps=[...new Set(Ge[r._eid].overlaps)],Ge[r._eid].position++;else{let l,f;(l=(Ge[n._eid]||{overlaps:[]}).overlaps.indexOf(r._eid))>-1&&Ge[n._eid].overlaps.splice(l,1),(f=(Ge[r._eid]||{overlaps:[]}).overlaps.indexOf(n._eid))>-1&&Ge[r._eid].overlaps.splice(f,1),Ge[r._eid].position--}})});let c=0;for(const n in Ge){const r=Ge[n],i=r.overlaps.map(o=>({id:o,start:Ge[o].start}));i.push({id:n,start:r.start}),i.sort((o,l)=>o.start<l.start?-1:o.start>l.start?1:o.id>l.id?-1:1),r.position=i.findIndex(o=>o.id===n),c=Math.max(this.getOverlapsStreak(r,Ge),c)}return[Ge,c]}getOverlapsStreak(t,a={}){let c=t.overlaps.length+1,n=[];return t.overlaps.forEach(r=>{n.includes(r)||t.overlaps.filter(o=>o!==r).forEach(o=>{a[o].overlaps.includes(r)||n.push(o)})}),n=[...new Set(n)],c-=n.length,c}eventInRange(t,a,c){if(t.allDay||!this._vuecal.time){const i=new Date(t.start).setHours(0,0,0,0);return new Date(t.end).setHours(23,59,0,0)>=new Date(a).setHours(0,0,0,0)&&i<=new Date(c).setHours(0,0,0,0)}const n=t.start.getTime(),r=t.end.getTime();return n<c.getTime()&&r>a.getTime()}}const Sf2={class:"vuecal__flex vuecal__weekdays-headings"},Nf2=["onClick"],Af2={class:"vuecal__flex weekday-label",grow:""},Tf2={class:"full"},Ef2={class:"small"},Df2={class:"xsmall"},Pf2={key:0},Of2={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""};function If2(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("div",Sf2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.headings,(i,o)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:o},[i.hide?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["vuecal__flex vuecal__heading",{today:i.today,clickable:r.cellHeadingsClickable}]),style:s.normalizeStyle(r.weekdayCellStyles),onClick:l=>r.view.id==="week"&&r.selectCell(i.date,l),onDblclick:t[0]||(t[0]=l=>r.view.id==="week"&&r.vuecal.dblclickToNavigate&&a.switchToNarrowerView())},[s.createVNode(s.Transition,{name:`slide-fade--${a.transitionDirection}`,appear:r.vuecal.transitions},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex",column:"",key:r.vuecal.transitions?`${o}-${i.dayOfMonth}`:!1},[s.createElementVNode("div",Af2,[s.renderSlot(e.$slots,"weekday-heading",{heading:r.cleanupHeading(i),view:r.view},()=>[s.createElementVNode("span",Tf2,s.toDisplayString(i.full),1),s.createElementVNode("span",Ef2,s.toDisplayString(i.small),1),s.createElementVNode("span",Df2,s.toDisplayString(i.xsmall),1),i.dayOfMonth?(s.openBlock(),s.createElementBlock("span",Pf2," "+s.toDisplayString(i.dayOfMonth),1)):s.createCommentVNode("",!0)])]),r.vuecal.hasSplits&&r.vuecal.stickySplitLabels?(s.openBlock(),s.createElementBlock("div",Of2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.vuecal.daySplits,(l,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",l.class||!1]),key:f},[s.renderSlot(e.$slots,"split-label",{split:l,view:r.view},()=>[s.createTextVNode(s.toDisplayString(l.label),1)])],2))),128))])):s.createCommentVNode("",!0)]))]),_:2},1032,["name","appear"])],46,Nf2))],64))),128))])}const qs=(e,t)=>{const a=e.__vccOpts||e;for(const[c,n]of t)a[c]=n;return a},Bf2={inject:["vuecal","utils","view"],props:{transitionDirection:{type:String,default:"right"},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},methods:{selectCell(e,t){e.getTime()!==this.view.selectedDate.getTime()&&(this.view.selectedDate=e),this.utils.cell.selectCell(!1,e,t)},cleanupHeading:e=>({label:e.full,date:e.date,...e.today?{today:e.today}:{}})},computed:{headings(){if(!["month","week"].includes(this.view.id))return[];let e=!1;return this.weekDays.map((a,c)=>{const n=this.utils.date.addDays(this.view.startDate,this.vuecal.startWeekOnSunday&&this.vuecal.hideWeekends?c-1:c);return{hide:a.hide,full:a.label,small:a.short||a.label.substr(0,3),xsmall:a.short||a.label.substr(0,1),...this.view.id==="week"?{dayOfMonth:n.getDate(),date:n,today:!e&&this.utils.date.isToday(n)&&!e++}:{}}})},cellWidth(){return 100/(7-this.weekDays.reduce((e,t)=>e+t.hide,0))},weekdayCellStyles(){return{...this.vuecal.hideWeekdays.length?{width:`${this.cellWidth}%`}:{}}},cellHeadingsClickable(){return this.view.id==="week"&&(this.vuecal.clickToNavigate||this.vuecal.dblclickToNavigate)}}},Jr1=qs(Bf2,[["render",If2]]),Rf2={class:"vuecal__header"},Ff2={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},$f2=["onDragenter","onDragleave","onClick","aria-label"],qf2={key:1,class:"vuecal__title-bar"},jf2=["aria-label"],Uf2={class:"vuecal__flex vuecal__title",grow:""},Wf2=["aria-label"],Yf2={key:0,class:"vuecal__flex vuecal__split-days-headers"};function Gf2(e,t,a,c,n,r){const i=s.resolveComponent("weekdays-headings");return s.openBlock(),s.createElementBlock("div",Rf2,[a.options.hideViewSelector?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Ff2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.viewProps.views,(o,l)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:l},[o.enabled?(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["vuecal__view-btn",{"vuecal__view-btn--active":r.view.id===l,"vuecal__view-btn--highlighted":e.highlightedControl===l}]),type:"button",onDragenter:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(f,l,e.$data),onDragleave:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(f,l,e.$data),onClick:f=>r.switchView(l,null,!0),"aria-label":`${o.label} view`},s.toDisplayString(o.label),43,$f2)):s.createCommentVNode("",!0)],64))),128))])),a.options.hideTitleBar?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",qf2,[s.createElementVNode("button",{class:s.normalizeClass(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":e.highlightedControl==="previous"}]),type:"button",onClick:t[0]||(t[0]=(...o)=>r.previous&&r.previous(...o)),onDragenter:t[1]||(t[1]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"previous",e.$data)),onDragleave:t[2]||(t[2]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"previous",e.$data)),"aria-label":`Previous ${r.view.id}`},[s.renderSlot(e.$slots,"arrow-prev")],42,jf2),s.createElementVNode("div",Uf2,[s.createVNode(s.Transition,{name:a.options.transitions?`slide-fade--${r.transitionDirection}`:""},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.broaderView?"button":"span"),{type:!!r.broaderView&&"button",key:`${r.view.id}${r.view.startDate.toString()}`,onClick:t[3]||(t[3]=o=>!!r.broaderView&&r.switchToBroaderView()),"aria-label":!!r.broaderView&&`Go to ${r.broaderView} view`},{default:s.withCtx(()=>[s.renderSlot(e.$slots,"title")]),_:3},8,["type","aria-label"]))]),_:3},8,["name"])]),a.options.todayButton?(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["vuecal__today-btn",{"vuecal__today-btn--highlighted":e.highlightedControl==="today"}]),type:"button",onClick:t[4]||(t[4]=(...o)=>r.goToToday&&r.goToToday(...o)),onDragenter:t[5]||(t[5]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"today",e.$data)),onDragleave:t[6]||(t[6]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"today",e.$data)),"aria-label":"Today"},[s.renderSlot(e.$slots,"today-button")],34)):s.createCommentVNode("",!0),s.createElementVNode("button",{class:s.normalizeClass(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":e.highlightedControl==="next"}]),type:"button",onClick:t[7]||(t[7]=(...o)=>r.next&&r.next(...o)),onDragenter:t[8]||(t[8]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"next",e.$data)),onDragleave:t[9]||(t[9]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"next",e.$data)),"aria-label":`Next ${r.view.id}`},[s.renderSlot(e.$slots,"arrow-next")],42,Wf2)])),a.viewProps.weekDaysInHeader?(s.openBlock(),s.createBlock(i,{key:2,"week-days":a.weekDays,"transition-direction":r.transitionDirection,"switch-to-narrower-view":a.switchToNarrowerView},s.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:o,view:l})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:o,view:l})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:o})=>[s.renderSlot(e.$slots,"split-label",{split:o,view:r.view})]),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:`slide-fade--${r.transitionDirection}`},{default:s.withCtx(()=>[r.showDaySplits?(s.openBlock(),s.createElementBlock("div",Yf2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.daySplits,(o,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",o.class||!1]),key:l},[s.renderSlot(e.$slots,"split-label",{split:o,view:r.view.id},()=>[s.createTextVNode(s.toDisplayString(o.label),1)])],2))),128))])):s.createCommentVNode("",!0)]),_:3},8,["name"])])}const Zf2={inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:Jr1},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},hasSplits:{type:[Boolean,Number],default:!1},daySplits:{type:Array,default:()=>[]},viewProps:{type:Object,default:()=>({})},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},data:()=>({highlightedControl:null}),methods:{goToToday(){this.updateSelectedDate(new Date(new Date().setHours(0,0,0,0)))},switchToBroaderView(){this.transitionDirection="left",this.broaderView&&this.switchView(this.broaderView)}},computed:{transitionDirection:{get(){return this.vuecal.transitionDirection},set(e){this.vuecal.transitionDirection=e}},broaderView(){const{enabledViews:e}=this.vuecal;return e[e.indexOf(this.view.id)-1]},showDaySplits(){return this.view.id==="day"&&this.hasSplits&&this.options.stickySplitLabels&&!this.options.minSplitWidth},dnd(){return this.modules.dnd}}},Xf2=qs(Zf2,[["render",Gf2]]),Kf2=["draggable"];function Qf2(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__event",r.eventClasses]),style:s.normalizeStyle(r.eventStyles),tabindex:"0",onFocus:t[4]||(t[4]=(...i)=>r.focusEvent&&r.focusEvent(...i)),onKeypress:t[5]||(t[5]=s.withKeys(s.withModifiers((...i)=>r.onEnterKeypress&&r.onEnterKeypress(...i),["stop"]),["enter"])),onMouseenter:t[6]||(t[6]=(...i)=>r.onMouseEnter&&r.onMouseEnter(...i)),onMouseleave:t[7]||(t[7]=(...i)=>r.onMouseLeave&&r.onMouseLeave(...i)),onTouchstart:t[8]||(t[8]=s.withModifiers((...i)=>r.onTouchStart&&r.onTouchStart(...i),["stop"])),onMousedown:t[9]||(t[9]=i=>r.onMouseDown(i)),onMouseup:t[10]||(t[10]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchend:t[11]||(t[11]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchmove:t[12]||(t[12]=(...i)=>r.onTouchMove&&r.onTouchMove(...i)),onDblclick:t[13]||(t[13]=(...i)=>r.onDblClick&&r.onDblClick(...i)),draggable:r.draggable,onDragstart:t[14]||(t[14]=i=>r.draggable&&r.onDragStart(i)),onDragend:t[15]||(t[15]=i=>r.draggable&&r.onDragEnd())},[r.vuecal.editEvents.delete&&a.event.deletable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-delete",onClick:t[0]||(t[0]=s.withModifiers((...i)=>r.deleteEvent&&r.deleteEvent(...i),["stop"])),onTouchstart:t[1]||(t[1]=s.withModifiers((...i)=>r.touchDeleteEvent&&r.touchDeleteEvent(...i),["stop"]))},s.toDisplayString(r.vuecal.texts.deleteEvent),33)):s.createCommentVNode("",!0),s.renderSlot(e.$slots,"event",{event:a.event,view:r.view.id}),r.resizable?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:t[2]||(t[2]=s.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"])),onTouchstart:t[3]||(t[3]=s.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"]))},null,32)):s.createCommentVNode("",!0)],46,Kf2)}const Jf2={inject:["vuecal","utils","modules","view","domEvents","editEvents"],props:{cellFormattedDate:{type:String,default:""},event:{type:Object,default:()=>({})},cellEvents:{type:Array,default:()=>[]},overlaps:{type:Array,default:()=>[]},eventPosition:{type:Number,default:0},overlapsStreak:{type:Number,default:0},allDay:{type:Boolean,default:!1}},data:()=>({touch:{dragThreshold:30,startX:0,startY:0,dragged:!1}}),methods:{onMouseDown(e,t=!1){if("ontouchstart"in window&&!t)return!1;const{clickHoldAnEvent:a,focusAnEvent:c,resizeAnEvent:n,dragAnEvent:r}=this.domEvents;if(c._eid===this.event._eid&&a._eid===this.event._eid)return!0;this.focusEvent(),a._eid=null,this.vuecal.editEvents.delete&&this.event.deletable&&(a.timeoutId=setTimeout(()=>{!n._eid&&!r._eid&&(a._eid=this.event._eid,this.event.deleting=!0)},a.timeout))},onMouseUp(e){this.domEvents.focusAnEvent._eid===this.event._eid&&!this.touch.dragged&&(this.domEvents.focusAnEvent.mousedUp=!0),this.touch.dragged=!1},onMouseEnter(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-enter",this.event)},onMouseLeave(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-leave",this.event)},onTouchMove(e){if(typeof this.vuecal.onEventClick!="function")return;const{clientX:t,clientY:a}=e.touches[0],{startX:c,startY:n,dragThreshold:r}=this.touch;(Math.abs(t-c)>r||Math.abs(a-n)>r)&&(this.touch.dragged=!0)},onTouchStart(e){this.touch.startX=e.touches[0].clientX,this.touch.startY=e.touches[0].clientY,this.onMouseDown(e,!0)},onEnterKeypress(e){if(typeof this.vuecal.onEventClick=="function")return this.vuecal.onEventClick(this.event,e)},onDblClick(e){if(typeof this.vuecal.onEventDblclick=="function")return this.vuecal.onEventDblclick(this.event,e)},onDragStart(e){this.dnd&&this.dnd.eventDragStart(e,this.event)},onDragEnd(){this.dnd&&this.dnd.eventDragEnd(this.event)},onResizeHandleMouseDown(){this.focusEvent(),this.domEvents.dragAnEvent._eid=null,this.domEvents.resizeAnEvent=Object.assign(this.domEvents.resizeAnEvent,{_eid:this.event._eid,start:(this.segment||this.event).start,split:this.event.split||null,segment:!!this.segment&&this.utils.date.formatDateLite(this.segment.start),originalEnd:new Date((this.segment||this.event).end),originalEndTimeMinutes:this.event.endTimeMinutes}),this.event.resizing=!0},deleteEvent(e=!1){if("ontouchstart"in window&&!e)return!1;this.utils.event.deleteAnEvent(this.event)},touchDeleteEvent(e){this.deleteEvent(!0)},cancelDeleteEvent(){this.event.deleting=!1},focusEvent(){const{focusAnEvent:e}=this.domEvents,t=e._eid;if(t!==this.event._eid){if(t){const a=this.view.events.find(c=>c._eid===t);a&&(a.focused=!1)}this.vuecal.cancelDelete(),this.vuecal.emitWithEvent("event-focus",this.event),e._eid=this.event._eid,this.event.focused=!0}}},computed:{eventDimensions(){const{startTimeMinutes:e,endTimeMinutes:t}=this.segment||this.event;let a=e-this.vuecal.timeFrom;const c=Math.max(Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),0);a=Math.min(t,this.vuecal.timeTo)-this.vuecal.timeFrom;const n=Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),r=Math.max(n-c,5);return{top:c,height:r}},eventStyles(){if(this.event.allDay||!this.vuecal.time||!this.event.endTimeMinutes||this.view.id==="month"||this.allDay)return{};let e=100/Math.min(this.overlaps.length+1,this.overlapsStreak),t=100/(this.overlaps.length+1)*this.eventPosition;this.vuecal.minEventWidth&&e<this.vuecal.minEventWidth&&(e=this.vuecal.minEventWidth,t=(100-this.vuecal.minEventWidth)/this.overlaps.length*this.eventPosition);const{top:a,height:c}=this.eventDimensions;return{top:`${a}px`,height:`${c}px`,width:`${e}%`,left:this.event.left&&`${this.event.left}px`||`${t}%`}},eventClasses(){const{isFirstDay:e,isLastDay:t}=this.segment||{};return{[this.event.class]:!!this.event.class,"vuecal__event--focus":this.event.focused,"vuecal__event--resizing":this.event.resizing,"vuecal__event--background":this.event.background,"vuecal__event--deletable":this.event.deleting,"vuecal__event--all-day":this.event.allDay,"vuecal__event--dragging":!this.event.draggingStatic&&this.event.dragging,"vuecal__event--static":this.event.dragging&&this.event.draggingStatic,"vuecal__event--multiple-days":!!this.segment,"event-start":this.segment&&e&&!t,"event-middle":this.segment&&!e&&!t,"event-end":this.segment&&t&&!e}},segment(){return this.event.segments&&this.event.segments[this.cellFormattedDate]||null},draggable(){const{draggable:e,background:t,daysCount:a}=this.event;return this.vuecal.editEvents.drag&&e&&!t&&a===1},resizable(){const{editEvents:e,time:t}=this.vuecal;return e.resize&&this.event.resizable&&t&&!this.allDay&&(!this.segment||this.segment&&this.segment.isLastDay)&&this.view.id!=="month"},dnd(){return this.modules.dnd}}},eu2=qs(Jf2,[["render",Qf2]]),tu2=["data-split","aria-label","onTouchstart","onMousedown","onDragover","onDrop"],au2={key:0,class:"cell-time-labels"},cu2=["innerHTML"],nu2={key:2,class:"vuecal__cell-events"},ru2=["title"];function iu2(e,t,a,c,n,r){const i=s.resolveComponent("event");return s.openBlock(),s.createBlock(s.TransitionGroup,{class:s.normalizeClass(["vuecal__cell",r.cellClasses]),name:`slide-fade--${r.transitionDirection}`,tag:"div",appear:a.options.transitions,style:s.normalizeStyle(r.cellStyles)},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.splitsCount?r.splits:1,(o,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__flex vuecal__cell-content",r.splitsCount&&r.splitClasses(o)]),key:a.options.transitions?`${r.view.id}-${a.data.content}-${l}`:l,"data-split":r.splitsCount?o.id:!1,column:"",tabindex:"0","aria-label":a.data.content,onFocus:t[0]||(t[0]=f=>r.onCellFocus(f)),onKeypress:t[1]||(t[1]=s.withKeys(f=>r.onCellkeyPressEnter(f),["enter"])),onTouchstart:f=>!r.isDisabled&&r.onCellTouchStart(f,r.splitsCount?o.id:null),onMousedown:f=>!r.isDisabled&&r.onCellMouseDown(f,r.splitsCount?o.id:null),onClick:t[2]||(t[2]=f=>!r.isDisabled&&r.onCellClick(f)),onDblclick:t[3]||(t[3]=f=>!r.isDisabled&&r.onCellDblClick(f)),onContextmenu:t[4]||(t[4]=f=>!r.isDisabled&&a.options.cellContextmenu&&r.onCellContextMenu(f)),onDragenter:t[5]||(t[5]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragEnter(f,e.$data,a.data.startDate)),onDragover:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragOver(f,e.$data,a.data.startDate,r.splitsCount?o.id:null),onDragleave:t[6]||(t[6]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragLeave(f,e.$data,a.data.startDate)),onDrop:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragDrop(f,e.$data,a.data.startDate,r.splitsCount?o.id:null)},[a.options.showTimeInCells&&a.options.time&&r.isWeekOrDayView&&!a.allDay?(s.openBlock(),s.createElementBlock("div",au2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.vuecal.timeCells,(f,u)=>(s.openBlock(),s.createElementBlock("span",{class:"cell-time-label",key:u},s.toDisplayString(f.label),1))),128))])):s.createCommentVNode("",!0),r.isWeekOrDayView&&!a.allDay&&r.specialHours.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.specialHours,(f,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__special-hours",`vuecal__special-hours--day${f.day} ${f.class}`]),style:s.normalizeStyle(`height: ${f.height}px;top: ${f.top}px`)},[f.label?(s.openBlock(),s.createElementBlock("div",{key:0,class:"special-hours-label",innerHTML:f.label},null,8,cu2)):s.createCommentVNode("",!0)],6))),256)):s.createCommentVNode("",!0),s.renderSlot(e.$slots,"cell-content",{events:r.events,selectCell:f=>r.selectCell(f,!0),split:r.splitsCount?o:!1}),r.eventsCount&&(r.isWeekOrDayView||r.view.id==="month"&&a.options.eventsOnMonthView)?(s.openBlock(),s.createElementBlock("div",nu2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.splitsCount?o.events:r.events,(f,u)=>(s.openBlock(),s.createBlock(i,{key:u,"cell-formatted-date":a.data.formattedDate,event:f,"all-day":a.allDay,"cell-events":r.splitsCount?o.events:r.events,overlaps:((r.splitsCount?o.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).overlaps,"event-position":((r.splitsCount?o.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).position,"overlaps-streak":r.splitsCount?o.overlapsStreak:e.cellOverlapsStreak},{event:s.withCtx(({event:d,view:h})=>[s.renderSlot(e.$slots,"event",{view:h,event:d})]),_:2},1032,["cell-formatted-date","event","all-day","cell-events","overlaps","event-position","overlaps-streak"]))),128))])):s.createCommentVNode("",!0)],42,tu2))),128)),r.timelineVisible?(s.openBlock(),s.createElementBlock("div",{class:"vuecal__now-line",style:s.normalizeStyle(`top: ${r.todaysTimePosition}px`),key:a.options.transitions?`${r.view.id}-now-line`:"now-line",title:r.utils.date.formatTime(r.vuecal.now)},null,12,ru2)):s.createCommentVNode("",!0)]),_:3},8,["class","name","appear","style"])}const ou2={inject:["vuecal","utils","modules","view","domEvents"],components:{Event:eu2},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},data:{type:Object,required:!0},cellSplits:{type:Array,default:()=>[]},minTimestamp:{type:[Number,null],default:null},maxTimestamp:{type:[Number,null],default:null},cellWidth:{type:[Number,Boolean],default:!1},allDay:{type:Boolean,default:!1}},data:()=>({cellOverlaps:{},cellOverlapsStreak:1,timeAtCursor:null,highlighted:!1,highlightedSplit:null}),methods:{getSplitAtCursor({target:e}){let a=e.classList.contains("vuecal__cell-split")?e:this.vuecal.findAncestor(e,"vuecal__cell-split");return a&&(a=a.attributes["data-split"].value,parseInt(a).toString()===a.toString()&&(a=parseInt(a))),a||null},splitClasses(e){return{"vuecal__cell-split":!0,"vuecal__cell-split--highlighted":this.highlightedSplit===e.id,[e.class]:!!e.class}},checkCellOverlappingEvents(){this.options.time&&this.eventsCount&&!this.splitsCount&&(this.eventsCount===1?(this.cellOverlaps=[],this.cellOverlapsStreak=1):[this.cellOverlaps,this.cellOverlapsStreak]=this.utils.event.checkCellOverlappingEvents(this.events,this.options))},isDOMElementAnEvent(e){return this.vuecal.isDOMElementAnEvent(e)},selectCell(e,t=!1){const a=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.selectCell(t,this.timeAtCursor,a),this.timeAtCursor=null},onCellkeyPressEnter(e){this.isSelected||this.onCellFocus(e);const t=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.keyPressEnterCell(this.timeAtCursor,t),this.timeAtCursor=null},onCellFocus(e){if(!this.isSelected&&!this.isDisabled){this.isSelected=this.data.startDate;const t=this.splitsCount?this.getSplitAtCursor(e):null,a=this.timeAtCursor||this.data.startDate;this.vuecal.$emit("cell-focus",t?{date:a,split:t}:a)}},onCellMouseDown(e,t=null,a=!1){if("ontouchstart"in window&&!a)return!1;this.isSelected||this.onCellFocus(e);const{clickHoldACell:c,focusAnEvent:n}=this.domEvents;this.domEvents.cancelClickEventCreation=!1,c.eventCreated=!1,this.timeAtCursor=new Date(this.data.startDate);const{minutes:r,cursorCoords:{y:i}}=this.vuecal.minutesAtCursor(e);this.timeAtCursor.setMinutes(r);const o=this.isDOMElementAnEvent(e.target);!o&&n._eid&&((this.view.events.find(l=>l._eid===n._eid)||{}).focused=!1),this.editEvents.create&&!o&&this.setUpEventCreation(e,i)},setUpEventCreation(e,t){if(this.options.dragToCreateEvent&&["week","day"].includes(this.view.id)){const{dragCreateAnEvent:a}=this.domEvents;if(a.startCursorY=t,a.split=this.splitsCount?this.getSplitAtCursor(e):null,a.start=this.timeAtCursor,this.options.snapToTime){let c=this.timeAtCursor.getHours()*60+this.timeAtCursor.getMinutes();const n=c+this.options.snapToTime/2;c=n-n%this.options.snapToTime,a.start.setHours(0,c,0,0)}}else this.options.cellClickHold&&["month","week","day"].includes(this.view.id)&&this.setUpCellHoldTimer(e)},setUpCellHoldTimer(e){const{clickHoldACell:t}=this.domEvents;t.cellId=`${this.vuecal._.uid}_${this.data.formattedDate}`,t.split=this.splitsCount?this.getSplitAtCursor(e):null,t.timeoutId=setTimeout(()=>{if(t.cellId&&!this.domEvents.cancelClickEventCreation){const{_eid:a}=this.utils.event.createAnEvent(this.timeAtCursor,null,t.split?{split:t.split}:{});t.eventCreated=a}},t.timeout)},onCellTouchStart(e,t=null){this.onCellMouseDown(e,t,!0)},onCellClick(e){this.isDOMElementAnEvent(e.target)||this.selectCell(e)},onCellDblClick(e){const t=new Date(this.data.startDate);t.setMinutes(this.vuecal.minutesAtCursor(e).minutes);const a=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-dblclick",a?{date:t,split:a}:t),this.options.dblclickToNavigate&&this.vuecal.switchToNarrowerView()},onCellContextMenu(e){e.stopPropagation(),e.preventDefault();const t=new Date(this.data.startDate),{cursorCoords:a,minutes:c}=this.vuecal.minutesAtCursor(e);t.setMinutes(c);const n=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-contextmenu",{date:t,...a,...n||{},e})}},computed:{dnd(){return this.modules.dnd},nowInMinutes(){return this.utils.date.dateToMinutes(this.vuecal.now)},isBeforeMinDate(){return this.minTimestamp!==null&&this.minTimestamp>this.data.endDate.getTime()},isAfterMaxDate(){return this.maxTimestamp&&this.maxTimestamp<this.data.startDate.getTime()},isDisabled(){const{disableDays:e}=this.options,{isYearsOrYearView:t}=this.vuecal;return e.length&&e.includes(this.data.formattedDate)&&!t?!0:this.isBeforeMinDate||this.isAfterMaxDate},isSelected:{get(){let e=!1;const{selectedDate:t}=this.view;return this.view.id==="years"?e=t.getFullYear()===this.data.startDate.getFullYear():this.view.id==="year"?e=t.getFullYear()===this.data.startDate.getFullYear()&&t.getMonth()===this.data.startDate.getMonth():e=t.getTime()===this.data.startDate.getTime(),e},set(e){this.view.selectedDate=e,this.vuecal.$emit("update:selected-date",this.view.selectedDate)}},isWeekOrDayView(){return["week","day"].includes(this.view.id)},transitionDirection(){return this.vuecal.transitionDirection},specialHours(){return this.data.specialHours.map(e=>{let{from:t,to:a}=e;return t=Math.max(t,this.options.timeFrom),a=Math.min(a,this.options.timeTo),{...e,height:(a-t)*this.timeScale,top:(t-this.options.timeFrom)*this.timeScale}})},events(){const{startDate:e,endDate:t}=this.data;let a=[];if(!(["years","year"].includes(this.view.id)&&!this.options.eventsCountOnYearView)){if(a=this.view.events.slice(0),this.view.id==="month"&&a.push(...this.view.outOfScopeEvents),a=a.filter(c=>this.utils.event.eventInRange(c,e,t)),this.options.showAllDayEvents&&this.view.id!=="month"&&(a=a.filter(c=>!!c.allDay===this.allDay)),this.options.time&&this.isWeekOrDayView&&!this.allDay){const{timeFrom:c,timeTo:n}=this.options;a=a.filter(r=>{const i=r.daysCount>1&&r.segments[this.data.formattedDate]||{},o=r.daysCount===1&&r.startTimeMinutes<n&&r.endTimeMinutes>c,l=r.daysCount>1&&i.startTimeMinutes<n&&i.endTimeMinutes>c,f=!1;return r.allDay||o||l||f})}this.options.time&&this.isWeekOrDayView&&!(this.options.showAllDayEvents&&this.allDay)&&a.sort((c,n)=>c.start<n.start?-1:1),this.cellSplits.length||this.$nextTick(this.checkCellOverlappingEvents)}return a},eventsCount(){return this.events.length},splits(){return this.cellSplits.map((e,t)=>{const a=this.events.filter(r=>r.split===e.id),[c,n]=this.utils.event.checkCellOverlappingEvents(a.filter(r=>!r.background&&!r.allDay),this.options);return{...e,overlaps:c,overlapsStreak:n,events:a}})},splitsCount(){return this.splits.length},cellClasses(){return{[this.data.class]:!!this.data.class,"vuecal__cell--current":this.data.current,"vuecal__cell--today":this.data.today,"vuecal__cell--out-of-scope":this.data.outOfScope,"vuecal__cell--before-min":this.isDisabled&&this.isBeforeMinDate,"vuecal__cell--after-max":this.isDisabled&&this.isAfterMaxDate,"vuecal__cell--disabled":this.isDisabled,"vuecal__cell--selected":this.isSelected,"vuecal__cell--highlighted":this.highlighted,"vuecal__cell--has-splits":this.splitsCount,"vuecal__cell--has-events":this.eventsCount}},cellStyles(){return{...this.cellWidth?{width:`${this.cellWidth}%`}:{}}},timelineVisible(){const{time:e,timeTo:t}=this.options;return this.data.today&&this.isWeekOrDayView&&e&&!this.allDay&&this.nowInMinutes<=t},todaysTimePosition(){if(!this.data.today||!this.options.time)return;const e=this.nowInMinutes-this.options.timeFrom;return Math.round(e*this.timeScale)},timeScale(){return this.options.timeCellHeight/this.options.timeStep}}},e71=qs(ou2,[["render",iu2]]),su2={key:0,class:"vuecal__all-day-text",style:{width:"3em"}};function lu2(e,t,a,c,n,r){const i=s.resolveComponent("vuecal-cell");return s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex vuecal__all-day",style:s.normalizeStyle(a.cellOrSplitMinWidth&&{height:a.height})},[a.cellOrSplitMinWidth?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",su2,[s.createElementVNode("span",null,s.toDisplayString(a.label),1)])),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__flex vuecal__cells",`${r.view.id}-view`]),grow:"",style:s.normalizeStyle(a.cellOrSplitMinWidth?`min-width: ${a.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.cells,(o,l)=>(s.openBlock(),s.createBlock(i,{key:l,options:a.options,"edit-events":r.editEvents,data:o,"all-day":!0,"cell-width":a.options.hideWeekdays.length&&(r.vuecal.isWeekView||r.vuecal.isMonthView)&&r.vuecal.cellWidth,"min-timestamp":a.options.minTimestamp,"max-timestamp":a.options.maxTimestamp,"cell-splits":a.daySplits},{event:s.withCtx(({event:f,view:u})=>[s.renderSlot(e.$slots,"event",{view:u,event:f})]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],6)],4)}const fu2={inject:["vuecal","view","editEvents"],components:{"vuecal-cell":e71},props:{options:{type:Object,required:!0},cells:{type:Array,required:!0},label:{type:String,required:!0},daySplits:{type:Array,default:()=>[]},shortEvents:{type:Boolean,default:!0},height:{type:String,default:""},cellOrSplitMinWidth:{type:Number,default:null}},computed:{hasCellOrSplitWidth(){return!!(this.options.minCellWidth||this.daySplits.length&&this.options.minSplitWidth)}}},uu2=qs(fu2,[["render",lu2]]),du2=["lang"],hu2={class:"default"},pu2={key:0,class:"vuecal__flex vuecal__body",grow:""},mu2=["onBlur","innerHTML"],vu2=["innerHTML"],yu2=["innerHTML"],gu2={class:"vuecal__flex",row:"",grow:""},Mu2={key:0,class:"vuecal__time-column"},ku2={class:"vuecal__time-cell-label"},xu2={key:1,class:"vuecal__flex vuecal__week-numbers",column:""},bu2=["wrap","column"],zu2=["onBlur","innerHTML"],Cu2=["innerHTML"],_u2=["innerHTML"],wu2=["wrap"],Hu2=["innerHTML"],Lu2=["innerHTML"],Vu2={key:2,class:"vuecal__cell-events-count"},Su2={key:3,class:"vuecal__no-event"},Nu2=["onBlur","innerHTML"],Au2=["innerHTML"],Tu2={key:2,class:"vuecal__event-time"},Eu2={key:0},Du2={key:1,class:"days-to-end"},Pu2=["innerHTML"],Ou2={key:0,class:"vuecal__scrollbar-check"};function Iu2(e,t,a,c,n,r){const i=s.resolveComponent("vuecal-header"),o=s.resolveComponent("all-day-bar"),l=s.resolveComponent("weekdays-headings"),f=s.resolveComponent("vuecal-cell");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__flex vuecal",r.cssClasses]),column:"",ref:"vuecal",lang:a.locale},[s.createVNode(i,{options:e.$props,"edit-events":r.editEvents,"view-props":{views:r.views,weekDaysInHeader:r.weekDaysInHeader},"week-days":r.weekDays,"has-splits":r.hasSplits,"day-splits":r.daySplits,"switch-to-narrower-view":r.switchToNarrowerView},s.createSlots({"arrow-prev":s.withCtx(()=>[s.renderSlot(e.$slots,"arrow-prev",{},()=>[t[0]||(t[0]=s.createTextVNode(" ")),t[1]||(t[1]=s.createElementVNode("i",{class:"angle"},null,-1)),t[2]||(t[2]=s.createTextVNode(" "))])]),"arrow-next":s.withCtx(()=>[s.renderSlot(e.$slots,"arrow-next",{},()=>[t[3]||(t[3]=s.createTextVNode(" ")),t[4]||(t[4]=s.createElementVNode("i",{class:"angle"},null,-1)),t[5]||(t[5]=s.createTextVNode(" "))])]),"today-button":s.withCtx(()=>[s.renderSlot(e.$slots,"today-button",{},()=>[s.createElementVNode("span",hu2,s.toDisplayString(n.texts.today),1)])]),title:s.withCtx(()=>[s.renderSlot(e.$slots,"title",{title:r.viewTitle,view:n.view},()=>[s.createTextVNode(s.toDisplayString(r.viewTitle),1)])]),_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:u,view:d})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:u,view:d})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:u})=>[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["options","edit-events","view-props","week-days","has-splits","day-splits","switch-to-narrower-view"]),a.hideBody?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",pu2,[s.createVNode(s.Transition,{name:`slide-fade--${n.transitionDirection}`,appear:a.transitions},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex",style:{"min-width":"100%"},key:a.transitions?n.view.id:!1,column:""},[a.showAllDayEvents&&r.hasTimeColumn&&(!r.cellOrSplitMinWidth||r.isDayView&&!a.minSplitWidth)?(s.openBlock(),s.createBlock(o,s.normalizeProps(s.mergeProps({key:0},r.allDayBar)),{event:s.withCtx(({event:u,view:d})=>[s.renderSlot(e.$slots,"event",{view:d,event:u},()=>[r.editEvents.title&&u.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>r.onEventTitleBlur(h,u),innerHTML:u.title},null,40,mu2)):u.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,vu2)):s.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,yu2)):s.createCommentVNode("",!0)])]),_:3},16)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__bg",{vuecal__flex:!r.hasTimeColumn}]),column:""},[s.createElementVNode("div",gu2,[r.hasTimeColumn?(s.openBlock(),s.createElementBlock("div",Mu2,[a.showAllDayEvents&&r.cellOrSplitMinWidth&&!(r.isDayView&&!a.minSplitWidth)?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__all-day-text",style:s.normalizeStyle({height:r.allDayBar.height})},[s.createElementVNode("span",null,s.toDisplayString(n.texts.allDay),1)],4)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.timeCells,(u,d)=>(s.openBlock(),s.createElementBlock("div",{class:"vuecal__time-cell",key:d,style:s.normalizeStyle(`height: ${a.timeCellHeight}px`)},[s.renderSlot(e.$slots,"time-cell",{hours:u.hours,minutes:u.minutes},()=>[t[6]||(t[6]=s.createElementVNode("span",{class:"vuecal__time-cell-line"},null,-1)),s.createElementVNode("span",ku2,s.toDisplayString(u.label),1)])],4))),128))])):s.createCommentVNode("",!0),a.showWeekNumbers&&r.isMonthView?(s.openBlock(),s.createElementBlock("div",xu2,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(6,u=>s.createElementVNode("div",{class:"vuecal__flex vuecal__week-number-cell",key:u,grow:""},[s.renderSlot(e.$slots,"week-number-cell",{week:r.getWeekNumber(u-1)},()=>[s.createTextVNode(s.toDisplayString(r.getWeekNumber(u-1)),1)])])),64))])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__flex vuecal__cells",`${n.view.id}-view`]),grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,column:!!r.cellOrSplitMinWidth},[r.cellOrSplitMinWidth&&r.isWeekView?(s.openBlock(),s.createBlock(l,{key:0,"transition-direction":n.transitionDirection,"week-days":r.weekDays,"switch-to-narrower-view":r.switchToNarrowerView,style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},s.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:u,view:d})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:u,view:d})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:u})=>[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["transition-direction","week-days","switch-to-narrower-view","style"])):r.hasSplits&&a.stickySplitLabels&&a.minSplitWidth?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.daySplits,(u,d)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",u.class||!1]),key:d},[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id},()=>[s.createTextVNode(s.toDisplayString(u.label),1)])],2))),128))],4)):s.createCommentVNode("",!0),a.showAllDayEvents&&r.hasTimeColumn&&(r.isWeekView&&r.cellOrSplitMinWidth||r.isDayView&&r.hasSplits&&a.minSplitWidth)?(s.openBlock(),s.createBlock(o,s.normalizeProps(s.mergeProps({key:2},r.allDayBar)),{event:s.withCtx(({event:u,view:d})=>[s.renderSlot(e.$slots,"event",{view:d,event:u},()=>[r.editEvents.title&&u.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>r.onEventTitleBlur(h,u),innerHTML:u.title},null,40,zu2)):u.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,Cu2)):s.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,_u2)):s.createCommentVNode("",!0)])]),_:3},16)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"vuecal__flex",ref:u=>n.cellsEl=u,grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.viewCells,(u,d)=>(s.openBlock(),s.createBlock(f,{key:d,options:e.$props,"edit-events":r.editEvents,data:u,"cell-width":a.hideWeekdays.length&&(r.isWeekView||r.isMonthView)&&r.cellWidth,"min-timestamp":r.minTimestamp,"max-timestamp":r.maxTimestamp,"cell-splits":r.hasSplits&&r.daySplits||[]},{"cell-content":s.withCtx(({events:h,split:p,selectCell:v})=>[s.renderSlot(e.$slots,"cell-content",{cell:u,view:n.view,goNarrower:v,events:h},()=>[p&&!a.stickySplitLabels?(s.openBlock(),s.createElementBlock("div",{key:0,class:"split-label",innerHTML:p.label},null,8,Hu2)):s.createCommentVNode("",!0),u.content?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__cell-date",innerHTML:u.content},null,8,Lu2)):s.createCommentVNode("",!0),(r.isMonthView&&!a.eventsOnMonthView||r.isYearsOrYearView&&a.eventsCountOnYearView)&&h.length?(s.openBlock(),s.createElementBlock("div",Vu2,[s.renderSlot(e.$slots,"events-count",{view:n.view,events:h},()=>[s.createTextVNode(s.toDisplayString(h.length),1)])])):s.createCommentVNode("",!0),!r.cellOrSplitHasEvents(h,p)&&r.isWeekOrDayView?(s.openBlock(),s.createElementBlock("div",Su2,[s.renderSlot(e.$slots,"no-event",{},()=>[s.createTextVNode(s.toDisplayString(n.texts.noEvent),1)])])):s.createCommentVNode("",!0)])]),event:s.withCtx(({event:h,view:p})=>[s.renderSlot(e.$slots,"event",{view:p,event:h},()=>[r.editEvents.title&&h.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:v=>r.onEventTitleBlur(v,h),innerHTML:h.title},null,40,Nu2)):h.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:h.title},null,8,Au2)):s.createCommentVNode("",!0),a.time&&!h.allDay&&!(r.isMonthView&&(h.allDay||a.showAllDayEvents==="short"))&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",Tu2,[s.createTextVNode(s.toDisplayString(n.utils.date.formatTime(h.start,r.TimeFormat)),1),h.endTimeMinutes?(s.openBlock(),s.createElementBlock("span",Eu2," - "+s.toDisplayString(n.utils.date.formatTime(h.end,r.TimeFormat,null,!0)),1)):s.createCommentVNode("",!0),h.daysCount>1&&(h.segments[u.formattedDate]||{}).isFirstDay?(s.openBlock(),s.createElementBlock("small",Du2," +"+s.toDisplayString(h.daysCount-1)+s.toDisplayString((n.texts.day[0]||"").toLowerCase()),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),h.content&&!(r.isMonthView&&h.allDay&&a.showAllDayEvents==="short")&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:3,class:"vuecal__event-content",innerHTML:h.content},null,8,Pu2)):s.createCommentVNode("",!0)])]),"no-event":s.withCtx(()=>[s.renderSlot(e.$slots,"no-event",{},()=>[s.createTextVNode(s.toDisplayString(n.texts.noEvent),1)])]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],12,wu2)],10,bu2)])],2)]))]),_:3},8,["name","appear"]),n.ready?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Ou2,t[7]||(t[7]=[s.createElementVNode("div",null,null,-1)])))]))],10,du2)}const p9=24*60,cF={weekDays:Array(7).fill(""),weekDaysShort:[],months:Array(12).fill(""),years:"",year:"",month:"",week:"",day:"",today:"",noEvent:"",allDay:"",deleteEvent:"",createEvent:"",dateFormat:"dddd MMMM D, YYYY",am:"am",pm:"pm"},W31=["years","year","month","week","day"],Y31=new _f2(cF),Bu2={name:"vue-cal",components:{"vuecal-cell":e71,"vuecal-header":Xf2,WeekdaysHeadings:Jr1,AllDayBar:uu2},provide(){return{vuecal:this,utils:this.utils,modules:this.modules,previous:this.previous,next:this.next,switchView:this.switchView,updateSelectedDate:this.updateSelectedDate,editEvents:this.editEvents,view:this.view,domEvents:this.domEvents}},props:{activeView:{type:String,default:"week"},allDayBarHeight:{type:[String,Number],default:"25px"},cellClickHold:{type:Boolean,default:!0},cellContextmenu:{type:Boolean,default:!1},clickToNavigate:{type:Boolean,default:!1},dblclickToNavigate:{type:Boolean,default:!0},disableDatePrototypes:{type:Boolean,default:!1},disableDays:{type:Array,default:()=>[]},disableViews:{type:Array,default:()=>[]},dragToCreateEvent:{type:Boolean,default:!0},dragToCreateThreshold:{type:Number,default:15},editableEvents:{type:[Boolean,Object],default:!1},events:{type:Array,default:()=>[]},eventsCountOnYearView:{type:Boolean,default:!1},eventsOnMonthView:{type:[Boolean,String],default:!1},hideBody:{type:Boolean,default:!1},hideTitleBar:{type:Boolean,default:!1},hideViewSelector:{type:Boolean,default:!1},hideWeekdays:{type:Array,default:()=>[]},hideWeekends:{type:Boolean,default:!1},locale:{type:[String,Object],default:"en"},maxDate:{type:[String,Date],default:""},minCellWidth:{type:Number,default:0},minDate:{type:[String,Date],default:""},minEventWidth:{type:Number,default:0},minSplitWidth:{type:Number,default:0},onEventClick:{type:[Function,null],default:null},onEventCreate:{type:[Function,null],default:null},onEventDblclick:{type:[Function,null],default:null},overlapsPerTimeStep:{type:Boolean,default:!1},resizeX:{type:Boolean,default:!1},selectedDate:{type:[String,Date],default:""},showAllDayEvents:{type:[Boolean,String],default:!1},showTimeInCells:{type:Boolean,default:!1},showWeekNumbers:{type:[Boolean,String],default:!1},snapToTime:{type:Number,default:0},small:{type:Boolean,default:!1},specialHours:{type:Object,default:()=>({})},splitDays:{type:Array,default:()=>[]},startWeekOnSunday:{type:Boolean,default:!1},stickySplitLabels:{type:Boolean,default:!1},time:{type:Boolean,default:!0},timeCellHeight:{type:Number,default:40},timeFormat:{type:String,default:""},timeFrom:{type:Number,default:0},timeStep:{type:Number,default:60},timeTo:{type:Number,default:p9},todayButton:{type:Boolean,default:!1},transitions:{type:Boolean,default:!0},twelveHour:{type:Boolean,default:!1},watchRealTime:{type:Boolean,default:!1},xsmall:{type:Boolean,default:!1}},data(){return{ready:!1,texts:{...cF},utils:{date:(this.disableDatePrototypes?Y31.removePrototypes():!1)||Y31,cell:null,event:null},modules:{dnd:null},cellsEl:null,view:{id:"",title:"",startDate:null,endDate:null,firstCellDate:null,lastCellDate:null,selectedDate:null,events:[]},eventIdIncrement:1,now:new Date,timeTickerIds:[null,null],domEvents:{resizeAnEvent:{_eid:null,start:null,split:null,segment:null,originalEndTimeMinutes:0,originalEnd:null,end:null,startCell:null,endCell:null},dragAnEvent:{_eid:null},dragCreateAnEvent:{startCursorY:null,start:null,split:null,event:null},focusAnEvent:{_eid:null,mousedUp:!1},clickHoldAnEvent:{_eid:null,timeout:1200,timeoutId:null},dblTapACell:{taps:0,timeout:500},clickHoldACell:{cellId:null,split:null,timeout:1200,timeoutId:null,eventCreated:!1},cancelClickEventCreation:!1},mutableEvents:[],transitionDirection:"right"}},methods:{async loadLocale(e){if(typeof this.locale=="object"){this.texts=Object.assign({},cF,e),this.utils.date.updateTexts(this.texts);return}const t=await Cf2(Object.assign({"./i18n/ar.json":()=>Promise.resolve().then(()=>require("./ar.es-490d67d4.cjs")),"./i18n/bg.json":()=>Promise.resolve().then(()=>require("./bg.es-bedb7f61.cjs")),"./i18n/bn.json":()=>Promise.resolve().then(()=>require("./bn.es-ae104b8b.cjs")),"./i18n/bs.json":()=>Promise.resolve().then(()=>require("./bs.es-a97484a8.cjs")),"./i18n/ca.json":()=>Promise.resolve().then(()=>require("./ca.es-b69e2d93.cjs")),"./i18n/cs.json":()=>Promise.resolve().then(()=>require("./cs.es-8ab45a8b.cjs")),"./i18n/da.json":()=>Promise.resolve().then(()=>require("./da.es-20dd8f16.cjs")),"./i18n/de.json":()=>Promise.resolve().then(()=>require("./de.es-ce7009ce.cjs")),"./i18n/el.json":()=>Promise.resolve().then(()=>require("./el.es-81fc2434.cjs")),"./i18n/en.json":()=>Promise.resolve().then(()=>require("./en.es-4459b8a4.cjs")),"./i18n/es.json":()=>Promise.resolve().then(()=>require("./es.es-647dceed.cjs")),"./i18n/et.json":()=>Promise.resolve().then(()=>require("./et.es-482e868f.cjs")),"./i18n/fa.json":()=>Promise.resolve().then(()=>require("./fa.es-2c02433c.cjs")),"./i18n/fi.json":()=>Promise.resolve().then(()=>require("./fi.es-ef678961.cjs")),"./i18n/fr.json":()=>Promise.resolve().then(()=>require("./fr.es-5a023084.cjs")),"./i18n/he.json":()=>Promise.resolve().then(()=>require("./he.es-be02cfd4.cjs")),"./i18n/hr.json":()=>Promise.resolve().then(()=>require("./hr.es-5c9e8373.cjs")),"./i18n/hu.json":()=>Promise.resolve().then(()=>require("./hu.es-642f7e7a.cjs")),"./i18n/id.json":()=>Promise.resolve().then(()=>require("./id.es-ebe22526.cjs")),"./i18n/is.json":()=>Promise.resolve().then(()=>require("./is.es-960071df.cjs")),"./i18n/it.json":()=>Promise.resolve().then(()=>require("./it.es-f0d29f01.cjs")),"./i18n/ja.json":()=>Promise.resolve().then(()=>require("./ja.es-25a3e4cf.cjs")),"./i18n/ka.json":()=>Promise.resolve().then(()=>require("./ka.es-92c6a6ae.cjs")),"./i18n/ko.json":()=>Promise.resolve().then(()=>require("./ko.es-204ba1aa.cjs")),"./i18n/lt.json":()=>Promise.resolve().then(()=>require("./lt.es-afedf093.cjs")),"./i18n/mn.json":()=>Promise.resolve().then(()=>require("./mn.es-ced8667c.cjs")),"./i18n/nl.json":()=>Promise.resolve().then(()=>require("./nl.es-cd172132.cjs")),"./i18n/no.json":()=>Promise.resolve().then(()=>require("./no.es-d5134e5f.cjs")),"./i18n/pl.json":()=>Promise.resolve().then(()=>require("./pl.es-9f065e71.cjs")),"./i18n/pt-br.json":()=>Promise.resolve().then(()=>require("./pt-br.es-e0a38ecf.cjs")),"./i18n/pt-pt.json":()=>Promise.resolve().then(()=>require("./pt-pt.es-e1c57c62.cjs")),"./i18n/ro.json":()=>Promise.resolve().then(()=>require("./ro.es-a7e3858d.cjs")),"./i18n/ru.json":()=>Promise.resolve().then(()=>require("./ru.es-d26a8889.cjs")),"./i18n/sk.json":()=>Promise.resolve().then(()=>require("./sk.es-bfa34829.cjs")),"./i18n/sl.json":()=>Promise.resolve().then(()=>require("./sl.es-c79ab9b5.cjs")),"./i18n/sq.json":()=>Promise.resolve().then(()=>require("./sq.es-a902c2a8.cjs")),"./i18n/sr.json":()=>Promise.resolve().then(()=>require("./sr.es-2e429690.cjs")),"./i18n/sv.json":()=>Promise.resolve().then(()=>require("./sv.es-59b30e12.cjs")),"./i18n/tr.json":()=>Promise.resolve().then(()=>require("./tr.es-11b49d30.cjs")),"./i18n/uk.json":()=>Promise.resolve().then(()=>require("./uk.es-cfb0b466.cjs")),"./i18n/vi.json":()=>Promise.resolve().then(()=>require("./vi.es-daedaaa5.cjs")),"./i18n/zh-cn.json":()=>Promise.resolve().then(()=>require("./zh-cn.es-efbc1299.cjs")),"./i18n/zh-hk.json":()=>Promise.resolve().then(()=>require("./zh-hk.es-b6a4db4a.cjs"))}),`./i18n/${e}.json`,3);this.texts=Object.assign({},cF,t),this.utils.date.updateTexts(this.texts)},loadDragAndDrop(){Promise.resolve().then(()=>require("./drag-and-drop.es-cdb95efc.cjs")).then(e=>{const{DragAndDrop:t}=e;this.modules.dnd=new t(this)}).catch(()=>console.warn("Vue Cal: Missing drag & drop module."))},validateView(e){return W31.includes(e)||(console.error(`Vue Cal: invalid active-view parameter provided: "${e}".
|
|
8631
|
+
`)}return p1}function t1(o1,p1){var b1={},v1=o1.style||{};return v1.fontStyle&&U(o1).fontStyle==="italic"&&(b1.italic=!0),v1.fontWeight&&(U(o1).fontWeight.startsWith("bold")||parseInt(U(o1).fontWeight)>=700)&&(b1.bold=!0),Object.keys(b1).length>0&&(p1=S(p1,b1)),parseFloat(v1.textIndent||0)>0&&(p1=new d.default().insert(" ").concat(p1)),p1}function u1(o1,p1){var b1=o1.data;if(o1.parentNode.tagName==="O:P")return p1.insert(b1.trim());if(b1.trim().length===0&&o1.parentNode.classList.contains("ql-clipboard"))return p1;if(!U(o1.parentNode).whiteSpace.startsWith("pre")){var v1=function(D1,R1){return R1=R1.replace(/[^\u00a0]/g,""),R1.length<1&&D1?" ":R1};b1=b1.replace(/\r\n/g," ").replace(/\n/g," "),b1=b1.replace(/\s\s+/g,v1.bind(v1,!0)),(o1.previousSibling==null&&A(o1.parentNode)||o1.previousSibling!=null&&A(o1.previousSibling))&&(b1=b1.replace(/^\s+/,v1.bind(v1,!1))),(o1.nextSibling==null&&A(o1.parentNode)||o1.nextSibling!=null&&A(o1.nextSibling))&&(b1=b1.replace(/\s+$/,v1.bind(v1,!1)))}return p1.insert(b1)}c.default=E,c.matchAttributor=c1,c.matchBlot=K,c.matchNewline=k1,c.matchSpacing=f1,c.matchText=u1},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(6),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,[{key:"optimize",value:function(g){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,g),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(l.default);p.blotName="bold",p.tagName=["STRONG","B"],c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.addControls=c.default=void 0;var r=function(){function L(w,P){var j=[],T=!0,R=!1,Y=void 0;try{for(var e1=w[Symbol.iterator](),Z;!(T=(Z=e1.next()).done)&&(j.push(Z.value),!(P&&j.length===P));T=!0);}catch(W){R=!0,Y=W}finally{try{!T&&e1.return&&e1.return()}finally{if(R)throw Y}}return j}return function(w,P){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return L(w,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function L(w,P){for(var j=0;j<P.length;j++){var T=P[j];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(w,T.key,T)}}return function(w,P,j){return P&&L(w.prototype,P),j&&L(w,j),w}}(),o=n(2),l=g(o),f=n(0),u=g(f),d=n(5),h=g(d),p=n(10),v=g(p),m=n(9),y=g(m);function g(L){return L&&L.__esModule?L:{default:L}}function M(L,w,P){return w in L?Object.defineProperty(L,w,{value:P,enumerable:!0,configurable:!0,writable:!0}):L[w]=P,L}function x(L,w){if(!(L instanceof w))throw new TypeError("Cannot call a class as a function")}function k(L,w){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:L}function b(L,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);L.prototype=Object.create(w&&w.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(L,w):L.__proto__=w)}var _=(0,v.default)("quill:toolbar"),C=function(L){b(w,L);function w(P,j){x(this,w);var T=k(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,P,j));if(Array.isArray(T.options.container)){var R=document.createElement("div");V(R,T.options.container),P.container.parentNode.insertBefore(R,P.container),T.container=R}else typeof T.options.container=="string"?T.container=document.querySelector(T.options.container):T.container=T.options.container;if(!(T.container instanceof HTMLElement)){var Y;return Y=_.error("Container required for toolbar",T.options),k(T,Y)}return T.container.classList.add("ql-toolbar"),T.controls=[],T.handlers={},Object.keys(T.options.handlers).forEach(function(e1){T.addHandler(e1,T.options.handlers[e1])}),[].forEach.call(T.container.querySelectorAll("button, select"),function(e1){T.attach(e1)}),T.quill.on(h.default.events.EDITOR_CHANGE,function(e1,Z){e1===h.default.events.SELECTION_CHANGE&&T.update(Z)}),T.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){var e1=T.quill.selection.getRange(),Z=r(e1,1),W=Z[0];T.update(W)}),T}return i(w,[{key:"addHandler",value:function(j,T){this.handlers[j]=T}},{key:"attach",value:function(j){var T=this,R=[].find.call(j.classList,function(e1){return e1.indexOf("ql-")===0});if(R){if(R=R.slice(3),j.tagName==="BUTTON"&&j.setAttribute("type","button"),this.handlers[R]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[R]==null){_.warn("ignoring attaching to disabled format",R,j);return}if(u.default.query(R)==null){_.warn("ignoring attaching to nonexistent format",R,j);return}}var Y=j.tagName==="SELECT"?"change":"click";j.addEventListener(Y,function(e1){var Z=void 0;if(j.tagName==="SELECT"){if(j.selectedIndex<0)return;var W=j.options[j.selectedIndex];W.hasAttribute("selected")?Z=!1:Z=W.value||!1}else j.classList.contains("ql-active")?Z=!1:Z=j.value||!j.hasAttribute("value"),e1.preventDefault();T.quill.focus();var I=T.quill.selection.getRange(),E=r(I,1),S=E[0];if(T.handlers[R]!=null)T.handlers[R].call(T,Z);else if(u.default.query(R).prototype instanceof u.default.Embed){if(Z=prompt("Enter "+R),!Z)return;T.quill.updateContents(new l.default().retain(S.index).delete(S.length).insert(M({},R,Z)),h.default.sources.USER)}else T.quill.format(R,Z,h.default.sources.USER);T.update(S)}),this.controls.push([R,j])}}},{key:"update",value:function(j){var T=j==null?{}:this.quill.getFormat(j);this.controls.forEach(function(R){var Y=r(R,2),e1=Y[0],Z=Y[1];if(Z.tagName==="SELECT"){var W=void 0;if(j==null)W=null;else if(T[e1]==null)W=Z.querySelector("option[selected]");else if(!Array.isArray(T[e1])){var I=T[e1];typeof I=="string"&&(I=I.replace(/\"/g,'\\"')),W=Z.querySelector('option[value="'+I+'"]')}W==null?(Z.value="",Z.selectedIndex=-1):W.selected=!0}else if(j==null)Z.classList.remove("ql-active");else if(Z.hasAttribute("value")){var E=T[e1]===Z.getAttribute("value")||T[e1]!=null&&T[e1].toString()===Z.getAttribute("value")||T[e1]==null&&!Z.getAttribute("value");Z.classList.toggle("ql-active",E)}else Z.classList.toggle("ql-active",T[e1]!=null)})}}]),w}(y.default);C.DEFAULTS={};function H(L,w,P){var j=document.createElement("button");j.setAttribute("type","button"),j.classList.add("ql-"+w),P!=null&&(j.value=P),L.appendChild(j)}function V(L,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(P){var j=document.createElement("span");j.classList.add("ql-formats"),P.forEach(function(T){if(typeof T=="string")H(j,T);else{var R=Object.keys(T)[0],Y=T[R];Array.isArray(Y)?N(j,R,Y):H(j,R,Y)}}),L.appendChild(j)})}function N(L,w,P){var j=document.createElement("select");j.classList.add("ql-"+w),P.forEach(function(T){var R=document.createElement("option");T!==!1?R.setAttribute("value",T):R.setAttribute("selected","selected"),j.appendChild(R)}),L.appendChild(j)}C.DEFAULTS={container:null,handlers:{clean:function(){var w=this,P=this.quill.getSelection();if(P!=null)if(P.length==0){var j=this.quill.getFormat();Object.keys(j).forEach(function(T){u.default.query(T,u.default.Scope.INLINE)!=null&&w.quill.format(T,!1)})}else this.quill.removeFormat(P,h.default.sources.USER)},direction:function(w){var P=this.quill.getFormat().align;w==="rtl"&&P==null?this.quill.format("align","right",h.default.sources.USER):!w&&P==="right"&&this.quill.format("align",!1,h.default.sources.USER),this.quill.format("direction",w,h.default.sources.USER)},indent:function(w){var P=this.quill.getSelection(),j=this.quill.getFormat(P),T=parseInt(j.indent||0);if(w==="+1"||w==="-1"){var R=w==="+1"?1:-1;j.direction==="rtl"&&(R*=-1),this.quill.format("indent",T+R,h.default.sources.USER)}},link:function(w){w===!0&&(w=prompt("Enter link URL:")),this.quill.format("link",w,h.default.sources.USER)},list:function(w){var P=this.quill.getSelection(),j=this.quill.getFormat(P);w==="check"?j.list==="checked"||j.list==="unchecked"?this.quill.format("list",!1,h.default.sources.USER):this.quill.format("list","unchecked",h.default.sources.USER):this.quill.format("list",w,h.default.sources.USER)}}},c.default=C,c.addControls=V},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(28),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(y,g){u(this,m);var M=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return M.label.innerHTML=g,M.container.classList.add("ql-color-picker"),[].slice.call(M.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),M}return r(m,[{key:"buildItem",value:function(g){var M=i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,g);return M.style.backgroundColor=g.getAttribute("value")||"",M}},{key:"selectItem",value:function(g,M){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,g,M);var x=this.label.querySelector(".ql-color-label"),k=g&&g.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=k:x.style.fill=k)}}]),m}(l.default);c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(28),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(y,g){u(this,m);var M=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return M.container.classList.add("ql-icon-picker"),[].forEach.call(M.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=g[x.getAttribute("data-value")||""]}),M.defaultItem=M.container.querySelector(".ql-selected"),M.selectItem(M.defaultItem),M}return r(m,[{key:"selectItem",value:function(g,M){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,g,M),g=g||this.defaultItem,this.label.innerHTML=g.innerHTML}}]),m}(l.default);c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function l(f,u){for(var d=0;d<u.length;d++){var h=u[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,u,d){return u&&l(f.prototype,u),d&&l(f,d),f}}();function i(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}var o=function(){function l(f,u){var d=this;i(this,l),this.quill=f,this.boundsContainer=u||document.body,this.root=f.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){d.root.style.marginTop=-1*d.quill.root.scrollTop+"px"}),this.hide()}return r(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var d=u.left+u.width/2-this.root.offsetWidth/2,h=u.bottom+this.quill.root.scrollTop;this.root.style.left=d+"px",this.root.style.top=h+"px",this.root.classList.remove("ql-flip");var p=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),m=0;if(v.right>p.right&&(m=p.right-v.right,this.root.style.left=d+m+"px"),v.left<p.left&&(m=p.left-v.left,this.root.style.left=d+m+"px"),v.bottom>p.bottom){var y=v.bottom-v.top,g=u.bottom-u.top+y;this.root.style.top=h-g+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();c.default=o},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function N(L,w){var P=[],j=!0,T=!1,R=void 0;try{for(var Y=L[Symbol.iterator](),e1;!(j=(e1=Y.next()).done)&&(P.push(e1.value),!(w&&P.length===w));j=!0);}catch(Z){T=!0,R=Z}finally{try{!j&&Y.return&&Y.return()}finally{if(T)throw R}}return P}return function(L,w){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return N(L,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function N(L,w,P){L===null&&(L=Function.prototype);var j=Object.getOwnPropertyDescriptor(L,w);if(j===void 0){var T=Object.getPrototypeOf(L);return T===null?void 0:N(T,w,P)}else{if("value"in j)return j.value;var R=j.get;return R===void 0?void 0:R.call(P)}},o=function(){function N(L,w){for(var P=0;P<w.length;P++){var j=w[P];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(L,j.key,j)}}return function(L,w,P){return w&&N(L.prototype,w),P&&N(L,P),L}}(),l=n(3),f=x(l),u=n(8),d=x(u),h=n(43),p=x(h),v=n(27),m=x(v),y=n(15),g=n(41),M=x(g);function x(N){return N&&N.__esModule?N:{default:N}}function k(N,L){if(!(N instanceof L))throw new TypeError("Cannot call a class as a function")}function b(N,L){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:N}function _(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);N.prototype=Object.create(L&&L.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(N,L):N.__proto__=L)}var C=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],H=function(N){_(L,N);function L(w,P){k(this,L),P.modules.toolbar!=null&&P.modules.toolbar.container==null&&(P.modules.toolbar.container=C);var j=b(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,w,P));return j.quill.container.classList.add("ql-snow"),j}return o(L,[{key:"extendToolbar",value:function(P){P.container.classList.add("ql-snow"),this.buildButtons([].slice.call(P.container.querySelectorAll("button")),M.default),this.buildPickers([].slice.call(P.container.querySelectorAll("select")),M.default),this.tooltip=new V(this.quill,this.options.bounds),P.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(j,T){P.handlers.link.call(P,!T.format.link)})}}]),L}(p.default);H.DEFAULTS=(0,f.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(L){if(L){var w=this.quill.getSelection();if(w==null||w.length==0)return;var P=this.quill.getText(w);/^\S+@\S+\.\S+$/.test(P)&&P.indexOf("mailto:")!==0&&(P="mailto:"+P);var j=this.quill.theme.tooltip;j.edit("link",P)}else this.quill.format("link",!1)}}}}});var V=function(N){_(L,N);function L(w,P){k(this,L);var j=b(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,w,P));return j.preview=j.root.querySelector("a.ql-preview"),j}return o(L,[{key:"listen",value:function(){var P=this;i(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(j){P.root.classList.contains("ql-editing")?P.save():P.edit("link",P.preview.textContent),j.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(j){if(P.linkRange!=null){var T=P.linkRange;P.restoreFocus(),P.quill.formatText(T,"link",!1,d.default.sources.USER),delete P.linkRange}j.preventDefault(),P.hide()}),this.quill.on(d.default.events.SELECTION_CHANGE,function(j,T,R){if(j!=null){if(j.length===0&&R===d.default.sources.USER){var Y=P.quill.scroll.descendant(m.default,j.index),e1=r(Y,2),Z=e1[0],W=e1[1];if(Z!=null){P.linkRange=new y.Range(j.index-W,Z.length());var I=m.default.formats(Z.domNode);P.preview.textContent=I,P.preview.setAttribute("href",I),P.show(),P.position(P.quill.getBounds(P.linkRange));return}}else delete P.linkRange;P.hide()}})}},{key:"show",value:function(){i(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),L}(h.BaseTooltip);V.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),c.default=H},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(29),i=C1(r),o=n(36),l=n(38),f=n(64),u=n(65),d=C1(u),h=n(66),p=C1(h),v=n(67),m=C1(v),y=n(37),g=n(26),M=n(39),x=n(40),k=n(56),b=C1(k),_=n(68),C=C1(_),H=n(27),V=C1(H),N=n(69),L=C1(N),w=n(70),P=C1(w),j=n(71),T=C1(j),R=n(72),Y=C1(R),e1=n(73),Z=C1(e1),W=n(13),I=C1(W),E=n(74),S=C1(E),U=n(75),G=C1(U),A=n(57),B=C1(A),Q=n(41),c1=C1(Q),K=n(28),a1=C1(K),F=n(59),l1=C1(F),k1=n(60),f1=C1(k1),t1=n(61),u1=C1(t1),o1=n(108),p1=C1(o1),b1=n(62),v1=C1(b1);function C1(D1){return D1&&D1.__esModule?D1:{default:D1}}i.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":M.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":M.FontStyle,"attributors/style/size":x.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":f.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":M.FontClass,"formats/size":x.SizeClass,"formats/blockquote":d.default,"formats/code-block":I.default,"formats/header":p.default,"formats/list":m.default,"formats/bold":b.default,"formats/code":W.Code,"formats/italic":C.default,"formats/link":V.default,"formats/script":L.default,"formats/strike":P.default,"formats/underline":T.default,"formats/image":Y.default,"formats/video":Z.default,"formats/list/item":v.ListItem,"modules/formula":S.default,"modules/syntax":G.default,"modules/toolbar":B.default,"themes/bubble":p1.default,"themes/snow":v1.default,"ui/icons":c1.default,"ui/picker":a1.default,"ui/icon-picker":f1.default,"ui/color-picker":l1.default,"ui/tooltip":u1.default},!0),c.default=i.default},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.IndentClass=void 0;var r=function(){function m(y,g){for(var M=0;M<g.length;M++){var x=g[M];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,g,M){return g&&m(y.prototype,g),M&&m(y,M),y}}(),i=function m(y,g,M){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,g);if(x===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:m(k,g,M)}else{if("value"in x)return x.value;var b=x.get;return b===void 0?void 0:b.call(M)}},o=n(0),l=f(o);function f(m){return m&&m.__esModule?m:{default:m}}function u(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function d(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function h(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var p=function(m){h(y,m);function y(){return u(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"add",value:function(M,x){if(x==="+1"||x==="-1"){var k=this.value(M)||0;x=x==="+1"?k+1:k-1}return x===0?(this.remove(M),!0):i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"add",this).call(this,M,x)}},{key:"canAdd",value:function(M,x){return i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,M,x)||i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,M,parseInt(x))}},{key:"value",value:function(M){return parseInt(i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,M))||void 0}}]),y}(l.default.Attributor.Class),v=new p("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});c.IndentClass=v},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(4),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="blockquote",d.tagName="blockquote",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function p(v,m){for(var y=0;y<m.length;y++){var g=m[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(v,g.key,g)}}return function(v,m,y){return m&&p(v.prototype,m),y&&p(v,y),v}}(),i=n(4),o=l(i);function l(p){return p&&p.__esModule?p:{default:p}}function f(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function u(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function d(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var h=function(p){d(v,p);function v(){return f(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return r(v,null,[{key:"formats",value:function(y){return this.tagName.indexOf(y.tagName)+1}}]),v}(o.default);h.blotName="header",h.tagName=["H1","H2","H3","H4","H5","H6"],c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.ListItem=void 0;var r=function(){function k(b,_){for(var C=0;C<_.length;C++){var H=_[C];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(b,H.key,H)}}return function(b,_,C){return _&&k(b.prototype,_),C&&k(b,C),b}}(),i=function k(b,_,C){b===null&&(b=Function.prototype);var H=Object.getOwnPropertyDescriptor(b,_);if(H===void 0){var V=Object.getPrototypeOf(b);return V===null?void 0:k(V,_,C)}else{if("value"in H)return H.value;var N=H.get;return N===void 0?void 0:N.call(C)}},o=n(0),l=p(o),f=n(4),u=p(f),d=n(25),h=p(d);function p(k){return k&&k.__esModule?k:{default:k}}function v(k,b,_){return b in k?Object.defineProperty(k,b,{value:_,enumerable:!0,configurable:!0,writable:!0}):k[b]=_,k}function m(k,b){if(!(k instanceof b))throw new TypeError("Cannot call a class as a function")}function y(k,b){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:k}function g(k,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);k.prototype=Object.create(b&&b.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(k,b):k.__proto__=b)}var M=function(k){g(b,k);function b(){return m(this,b),y(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return r(b,[{key:"format",value:function(C,H){C===x.blotName&&!H?this.replaceWith(l.default.create(this.statics.scope)):i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,C,H)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(C,H){return this.parent.isolate(this.offset(this.parent),this.length()),C===this.parent.statics.blotName?(this.parent.replaceWith(C,H),this):(this.parent.unwrap(),i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replaceWith",this).call(this,C,H))}}],[{key:"formats",value:function(C){return C.tagName===this.tagName?void 0:i(b.__proto__||Object.getPrototypeOf(b),"formats",this).call(this,C)}}]),b}(u.default);M.blotName="list-item",M.tagName="LI";var x=function(k){g(b,k),r(b,null,[{key:"create",value:function(C){var H=C==="ordered"?"OL":"UL",V=i(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,H);return(C==="checked"||C==="unchecked")&&V.setAttribute("data-checked",C==="checked"),V}},{key:"formats",value:function(C){if(C.tagName==="OL")return"ordered";if(C.tagName==="UL")return C.hasAttribute("data-checked")?C.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function b(_){m(this,b);var C=y(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,_)),H=function(N){if(N.target.parentNode===_){var L=C.statics.formats(_),w=l.default.find(N.target);L==="checked"?w.format("list","unchecked"):L==="unchecked"&&w.format("list","checked")}};return _.addEventListener("touchstart",H),_.addEventListener("mousedown",H),C}return r(b,[{key:"format",value:function(C,H){this.children.length>0&&this.children.tail.format(C,H)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(C,H){if(C instanceof M)i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertBefore",this).call(this,C,H);else{var V=H==null?this.length():H.offset(this),N=this.split(V);N.parent.insertBefore(C,N)}}},{key:"optimize",value:function(C){i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,C);var H=this.next;H!=null&&H.prev===this&&H.statics.blotName===this.statics.blotName&&H.domNode.tagName===this.domNode.tagName&&H.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(H.moveChildren(this),H.remove())}},{key:"replace",value:function(C){if(C.statics.blotName!==this.statics.blotName){var H=l.default.create(this.statics.defaultChild);C.moveChildren(H),this.appendChild(H)}i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replace",this).call(this,C)}}]),b}(h.default);x.blotName="list",x.scope=l.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[M],c.ListItem=M,c.default=x},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(56),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="italic",d.tagName=["EM","I"],c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(6),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,null,[{key:"create",value:function(g){return g==="super"?document.createElement("sup"):g==="sub"?document.createElement("sub"):i(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,g)}},{key:"formats",value:function(g){if(g.tagName==="SUB")return"sub";if(g.tagName==="SUP")return"super"}}]),m}(l.default);p.blotName="script",p.tagName=["SUB","SUP"],c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="strike",d.tagName="S",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="underline",d.tagName="U",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function y(g,M){for(var x=0;x<M.length;x++){var k=M[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,M,x){return M&&y(g.prototype,M),x&&y(g,x),g}}(),i=function y(g,M,x){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,M);if(k===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:y(b,M,x)}else{if("value"in k)return k.value;var _=k.get;return _===void 0?void 0:_.call(x)}},o=n(0),l=u(o),f=n(27);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var v=["alt","height","width"],m=function(y){p(g,y);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(x,k){v.indexOf(x)>-1?k?this.domNode.setAttribute(x,k):this.domNode.removeAttribute(x):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,k)}}],[{key:"create",value:function(x){var k=i(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return typeof x=="string"&&k.setAttribute("src",this.sanitize(x)),k}},{key:"formats",value:function(x){return v.reduce(function(k,b){return x.hasAttribute(b)&&(k[b]=x.getAttribute(b)),k},{})}},{key:"match",value:function(x){return/\.(jpe?g|gif|png)$/.test(x)||/^data:image\/.+;base64/.test(x)}},{key:"sanitize",value:function(x){return(0,f.sanitize)(x,["http","https","data"])?x:"//:0"}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g}(l.default.Embed);m.blotName="image",m.tagName="IMG",c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function y(g,M){for(var x=0;x<M.length;x++){var k=M[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,M,x){return M&&y(g.prototype,M),x&&y(g,x),g}}(),i=function y(g,M,x){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,M);if(k===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:y(b,M,x)}else{if("value"in k)return k.value;var _=k.get;return _===void 0?void 0:_.call(x)}},o=n(4),l=n(27),f=u(l);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var v=["height","width"],m=function(y){p(g,y);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(x,k){v.indexOf(x)>-1?k?this.domNode.setAttribute(x,k):this.domNode.removeAttribute(x):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,k)}}],[{key:"create",value:function(x){var k=i(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return k.setAttribute("frameborder","0"),k.setAttribute("allowfullscreen",!0),k.setAttribute("src",this.sanitize(x)),k}},{key:"formats",value:function(x){return v.reduce(function(k,b){return x.hasAttribute(b)&&(k[b]=x.getAttribute(b)),k},{})}},{key:"sanitize",value:function(x){return f.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g}(o.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.FormulaBlot=void 0;var r=function(){function x(k,b){for(var _=0;_<b.length;_++){var C=b[_];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(k,C.key,C)}}return function(k,b,_){return b&&x(k.prototype,b),_&&x(k,_),k}}(),i=function x(k,b,_){k===null&&(k=Function.prototype);var C=Object.getOwnPropertyDescriptor(k,b);if(C===void 0){var H=Object.getPrototypeOf(k);return H===null?void 0:x(H,b,_)}else{if("value"in C)return C.value;var V=C.get;return V===void 0?void 0:V.call(_)}},o=n(35),l=p(o),f=n(5),u=p(f),d=n(9),h=p(d);function p(x){return x&&x.__esModule?x:{default:x}}function v(x,k){if(!(x instanceof k))throw new TypeError("Cannot call a class as a function")}function m(x,k){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:x}function y(x,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);x.prototype=Object.create(k&&k.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(x,k):x.__proto__=k)}var g=function(x){y(k,x);function k(){return v(this,k),m(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return r(k,null,[{key:"create",value:function(_){var C=i(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,_);return typeof _=="string"&&(window.katex.render(_,C,{throwOnError:!1,errorColor:"#f00"}),C.setAttribute("data-value",_)),C}},{key:"value",value:function(_){return _.getAttribute("data-value")}}]),k}(l.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var M=function(x){y(k,x),r(k,null,[{key:"register",value:function(){u.default.register(g,!0)}}]);function k(){v(this,k);var b=m(this,(k.__proto__||Object.getPrototypeOf(k)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return b}return k}(h.default);c.FormulaBlot=g,c.default=M},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.CodeToken=c.CodeBlock=void 0;var r=function(){function _(C,H){for(var V=0;V<H.length;V++){var N=H[V];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(C,N.key,N)}}return function(C,H,V){return H&&_(C.prototype,H),V&&_(C,V),C}}(),i=function _(C,H,V){C===null&&(C=Function.prototype);var N=Object.getOwnPropertyDescriptor(C,H);if(N===void 0){var L=Object.getPrototypeOf(C);return L===null?void 0:_(L,H,V)}else{if("value"in N)return N.value;var w=N.get;return w===void 0?void 0:w.call(V)}},o=n(0),l=m(o),f=n(5),u=m(f),d=n(9),h=m(d),p=n(13),v=m(p);function m(_){return _&&_.__esModule?_:{default:_}}function y(_,C){if(!(_ instanceof C))throw new TypeError("Cannot call a class as a function")}function g(_,C){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:_}function M(_,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);_.prototype=Object.create(C&&C.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(_,C):_.__proto__=C)}var x=function(_){M(C,_);function C(){return y(this,C),g(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return r(C,[{key:"replaceWith",value:function(V){this.domNode.textContent=this.domNode.textContent,this.attach(),i(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replaceWith",this).call(this,V)}},{key:"highlight",value:function(V){var N=this.domNode.textContent;this.cachedText!==N&&((N.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=V(N),this.domNode.normalize(),this.attach()),this.cachedText=N)}}]),C}(v.default);x.className="ql-syntax";var k=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),b=function(_){M(C,_),r(C,null,[{key:"register",value:function(){u.default.register(k,!0),u.default.register(x,!0)}}]);function C(H,V){y(this,C);var N=g(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,H,V));if(typeof N.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var L=null;return N.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(L),L=setTimeout(function(){N.highlight(),L=null},N.options.interval)}),N.highlight(),N}return r(C,[{key:"highlight",value:function(){var V=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var N=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(L){L.highlight(V.options.highlight)}),this.quill.update(u.default.sources.SILENT),N!=null&&this.quill.setSelection(N,u.default.sources.SILENT)}}}]),C}(h.default);b.DEFAULTS={highlight:function(){return window.hljs==null?null:function(_){var C=window.hljs.highlightAuto(_);return C.value}}(),interval:1e3},c.CodeBlock=x,c.CodeToken=k,c.default=b},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.BubbleTooltip=void 0;var r=function C(H,V,N){H===null&&(H=Function.prototype);var L=Object.getOwnPropertyDescriptor(H,V);if(L===void 0){var w=Object.getPrototypeOf(H);return w===null?void 0:C(w,V,N)}else{if("value"in L)return L.value;var P=L.get;return P===void 0?void 0:P.call(N)}},i=function(){function C(H,V){for(var N=0;N<V.length;N++){var L=V[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(H,L.key,L)}}return function(H,V,N){return V&&C(H.prototype,V),N&&C(H,N),H}}(),o=n(3),l=y(o),f=n(8),u=y(f),d=n(43),h=y(d),p=n(15),v=n(41),m=y(v);function y(C){return C&&C.__esModule?C:{default:C}}function g(C,H){if(!(C instanceof H))throw new TypeError("Cannot call a class as a function")}function M(C,H){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H&&(typeof H=="object"||typeof H=="function")?H:C}function x(C,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof H);C.prototype=Object.create(H&&H.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),H&&(Object.setPrototypeOf?Object.setPrototypeOf(C,H):C.__proto__=H)}var k=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(C){x(H,C);function H(V,N){g(this,H),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=k);var L=M(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,V,N));return L.quill.container.classList.add("ql-bubble"),L}return i(H,[{key:"extendToolbar",value:function(N){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(N.container),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),m.default)}}]),H}(h.default);b.DEFAULTS=(0,l.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(H){H?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(C){x(H,C);function H(V,N){g(this,H);var L=M(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,V,N));return L.quill.on(u.default.events.EDITOR_CHANGE,function(w,P,j,T){if(w===u.default.events.SELECTION_CHANGE)if(P!=null&&P.length>0&&T===u.default.sources.USER){L.show(),L.root.style.left="0px",L.root.style.width="",L.root.style.width=L.root.offsetWidth+"px";var R=L.quill.getLines(P.index,P.length);if(R.length===1)L.position(L.quill.getBounds(P));else{var Y=R[R.length-1],e1=L.quill.getIndex(Y),Z=Math.min(Y.length()-1,P.index+P.length-e1),W=L.quill.getBounds(new p.Range(e1,Z));L.position(W)}}else document.activeElement!==L.textbox&&L.quill.hasFocus()&&L.hide()}),L}return i(H,[{key:"listen",value:function(){var N=this;r(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){N.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!N.root.classList.contains("ql-hidden")){var L=N.quill.getSelection();L!=null&&N.position(N.quill.getBounds(L))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(N){var L=r(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"position",this).call(this,N),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",L===0)return L;w.style.marginLeft=-1*L-w.offsetWidth/2+"px"}}]),H}(d.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),c.BubbleTooltip=_,c.default=b},function(a,c,n){a.exports=n(63)}]).default})})(Gr1);var Ml2=Gr1.exports;const kl2=fA1(Ml2);const xl2={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert content here ...",readOnly:!1},bl2={name:"quill-editor",props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:()=>({})}},emits:["ready","change","input","blur","focus","update:value"],setup(e,t){const a={editorOption:{},quill:null};let c="";s.watch(()=>e.value,o=>{a.quill&&(o&&o!==c?(c=o,a.quill.pasteHTML(o)):o||a.quill.setText(""))}),s.watch(()=>e.content,o=>{a.quill&&(o&&o!==c?(c=o,a.quill.pasteHTML(o)):o||a.quill.setText(""))}),s.watch(()=>e.disabled,o=>{a.quill&&a.quill.enable(!o)});const n=s.ref(null),r=(o,l)=>{for(const f in l)!o[f]||f!=="modules"?o[f]=l[f]:r(o[f],l[f]);return o},i=()=>{n.value&&(a.editorOption=r(xl2,e.options),a.editorOption.readOnly=!!e.disabled,a.quill=new kl2(n.value,a.editorOption),e.value&&a.quill.pasteHTML(e.value),a.quill.on("selection-change",o=>{o?t.emit("focus",a.quill):t.emit("blur",a.quill)}),a.quill.on("text-change",()=>{e.disabled&&a.quill.enable(!1);let o=n.value.children[0].innerHTML;const l=a.quill,f=a.quill.getText();o==="<p><br></p>"&&(o=""),c=o,t.emit("update:value",c),t.emit("change",{html:o,text:f,quill:l})}),t.emit("ready",a.quill))};return s.onBeforeUnmount(()=>{const o=n.value.previousSibling;o&&o.nodeType===1&&o.className.indexOf("ql-toolbar")>-1&&o.parentNode.removeChild(o)}),s.onMounted(()=>{i()}),s.onUnmounted(()=>{a.quill=null}),{editor:n}}},zl2={ref:"editor"};function Cl2(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("section",zl2,null,512)}const aF=Q1(bl2,[["render",Cl2]]);aF.install=function(e){e.component(aF.name,aF)};const _l2=s.defineComponent({__name:"PgaMaxLength",props:{content:{},maxLength:{}},setup(e){const t=e,a=s.computed(()=>{var n;return((n=t.content)==null?void 0:n.length)||0}),c=s.computed(()=>a.value>t.maxLength);return(n,r)=>(s.openBlock(),s.createElementBlock("span",{class:s.normalizeClass(["pga-max-length",{"pga-max-length--error":c.value}])},s.toDisplayString(`${a.value} / ${n.maxLength}`),3))}});const yK=Q1(_l2,[["__scopeId","data-v-e4fba1ee"]]),wl2={class:"editor__container"},Hl2={class:"editor__footer"},Ll2={class:"editor__actions"},Vl2={class:"editor__status"},Sl2=s.defineComponent({__name:"PgaEditor",props:s.mergeModels({saveFn:{type:Function},maxContentLength:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=T2("pgaEditor"),n={placeholder:"",modules:{toolbar:[[{header:[!1,1,2,3,4,5,6]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["blockquote"],[{list:"ordered"},{list:"bullet"}],[{color:[]},{background:[]}],["link"],["clean"]]}},r=s.ref(t.value),i=s.ref(!1);let o;const l=s.ref(!1),f=s.ref(!1),u=s.computed(()=>on1(t.value)),d=s.computed(()=>u.value.length),h=s.computed(()=>d.value>a.maxContentLength),p=s.computed(()=>r.value!==t.value);function v(){l.value=!1,f.value=!1,clearTimeout(o),o=setTimeout(()=>y(),1e3*5)}function m(){clearTimeout(o),y()}async function y(){if(r.value!==t.value){if(h.value){f.value=!0;return}try{i.value=!0,r.value=await a.saveFn(t.value),l.value=!0,setTimeout(()=>l.value=!1,1e3*3)}finally{i.value=!1}}}return(g,M)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-editor",{"pga-editor--loading":i.value}])},[s.createElementVNode("div",wl2,[s.createVNode(s.unref(aF),{value:t.value,"onUpdate:value":M[0]||(M[0]=x=>t.value=x),options:n,onChange:M[1]||(M[1]=x=>v())},null,8,["value"])]),s.createElementVNode("div",Hl2,[s.createVNode(yK,{content:u.value,maxLength:g.maxContentLength},null,8,["content","maxLength"]),s.createElementVNode("div",Ll2,[s.createVNode(k2,{icon:"save",text:s.unref(c)("saveBtn"),variant:"outlined",size:"s",disabled:!p.value,isLoading:i.value,onClick:M[2]||(M[2]=x=>m())},null,8,["text","disabled","isLoading"]),s.createElementVNode("div",Vl2,[l.value?(s.openBlock(),s.createBlock(me,{key:0,icon:"save",text:s.unref(c)("savedMsg"),color:"success"},null,8,["text"])):f.value?(s.openBlock(),s.createBlock(me,{key:1,icon:"circle-x",text:s.unref(c)("saveErrorMsg"),color:"danger"},null,8,["text"])):s.createCommentVNode("",!0)])])])],2))}});const Nl2=Q1(Sl2,[["__scopeId","data-v-8eb25e3c"]]),Al2={class:"pga-info-card"},Tl2={key:1,class:"info-card__content"},El2=s.defineComponent({__name:"PgaInfoCard",props:{type:{default:"success"},title:{},description:{},isLoading:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",Al2,[t.isLoading?(s.openBlock(),s.createBlock(Ja,{key:0})):(s.openBlock(),s.createElementBlock("div",Tl2,[s.createVNode(ge,{icon:t.type==="success"?"circle-check":"circle-x",color:t.type,size:"1.9rem"},null,8,["icon","color"]),s.createVNode(me,{class:"info-card__title",text:t.title},null,8,["text"]),t.description?(s.openBlock(),s.createBlock(me,{key:0,class:"info-card__description",text:t.description},null,8,["text"])):s.createCommentVNode("",!0),s.renderSlot(t.$slots,"default",{},void 0,!0)]))]))}});const Dl2=Q1(El2,[["__scopeId","data-v-16fcf446"]]),Iq=s.defineComponent({__name:"PgaInfoTooltip",props:{info:{},size:{default:"0.9rem"}},setup(e){const t=e,a=s.computed(()=>Ne(t.info));return(c,n)=>{const r=s.resolveDirective("tooltip");return a.value?s.withDirectives((s.openBlock(),s.createBlock(ge,{key:0,icon:"circle-help",size:c.size},null,8,["size"])),[[r,{content:a.value,html:!0}]]):s.createCommentVNode("",!0)}}}),Pl2=s.defineComponent({__name:"PgaIsEnabled",props:{isEnabled:{type:Boolean}},setup(e){const t=e;return(a,c)=>(s.openBlock(),s.createBlock(ge,{icon:t.isEnabled?"circle-check":"circle-x",color:t.isEnabled?"success":"danger"},null,8,["icon","color"]))}}),Ol2=s.defineComponent({__name:"PgaItemSelected",props:s.mergeModels({items:{},item:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const a=s.useModel(e,"modelValue"),c=e;t({toggleItemSelected:r});const n=s.computed({get(){if(c.item)return!!a.value.find(o=>o.id===c.item.id);for(const i of c.items)if(!a.value.find(l=>l.id===i.id))return!1;return!0},set(i){c.item?i?a.value.push(c.item):a.value=a.value.filter(o=>o.id!==c.item.id):i?a.value=[...c.items]:a.value=[]}});function r(){n.value=!n.value}return(i,o)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-item-selected",{"pga-item-selected--selected":n.value}]),onClick:o[0]||(o[0]=l=>r())},[n.value?(s.openBlock(),s.createBlock(ge,{key:0,class:"item-selected__check-icon",icon:"check"})):s.createCommentVNode("",!0)],2))}});const zG=Q1(Ol2,[["__scopeId","data-v-4b2dba1d"]]),Il2={class:"modal__header"},Bl2=["textContent"],Rl2={class:"modal__body"},Fl2={key:0,class:"modal__footer"},$l2=s.defineComponent({__name:"PgaModal",props:s.mergeModels({title:{},confirmButtons:{type:Boolean},isLoading:{type:Boolean},width:{default:"auto"},acceptText:{},cancelText:{},acceptIcon:{default:"save"}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:s.mergeModels(["accept"],["update:modelValue"]),setup(e,{emit:t}){s.useCssVars(r=>({"7702f77a":r.width}));const a=s.useModel(e,"modelValue"),c=t,n=T2("pgaModal");return s.watch(a,r=>$i(!r)),(r,i)=>a.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"pga-modal",onMousedown:i[4]||(i[4]=o=>a.value=!1)},[s.createElementVNode("div",{class:"modal__content",onMousedown:i[3]||(i[3]=s.withModifiers(()=>{},["stop"]))},[s.createElementVNode("div",Il2,[s.createElementVNode("span",{class:"modal__title",textContent:s.toDisplayString(r.title)},null,8,Bl2),s.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=o=>a.value=!1)},[s.createVNode(ge,{icon:"x"})])]),s.createElementVNode("div",Rl2,[s.renderSlot(r.$slots,"default",{},void 0,!0)]),r.confirmButtons?(s.openBlock(),s.createElementBlock("div",Fl2,[r.isLoading?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(k2,{key:0,text:r.cancelText||s.unref(n)("cancelBtn"),color:"danger",variant:"flat",onClick:i[1]||(i[1]=o=>a.value=!1)},null,8,["text"])),s.createVNode(k2,{icon:r.acceptIcon,text:r.acceptText||s.unref(n)("acceptBtn"),color:"success",variant:"filled",isLoading:r.isLoading,onClick:i[2]||(i[2]=o=>c("accept"))},null,8,["icon","text","isLoading"])])):s.createCommentVNode("",!0)],32)],32)):s.createCommentVNode("",!0)}});const ql2=Q1($l2,[["__scopeId","data-v-d8376e6e"]]),jl2={class:"pga-flex-row"},Ul2=s.defineComponent({__name:"PgaMonthSelector",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=s.computed({get(){return{year:t.value.datetimeFrom.getFullYear(),month:t.value.datetimeFrom.getMonth()}},set(r){const i=new Date(r.year,r.month,1);t.value={datetimeFrom:i,datetimeTo:c4.getNextMonthStartDate(i)}}});function c(){t.value={datetimeFrom:c4.getPreviousMonthStartDate(t.value.datetimeFrom),datetimeTo:c4.getPreviousMonthStartDate(t.value.datetimeTo)}}function n(){t.value={datetimeFrom:c4.getNextMonthStartDate(t.value.datetimeFrom),datetimeTo:c4.getNextMonthStartDate(t.value.datetimeTo)}}return(r,i)=>{const o=s.resolveComponent("PgaButton"),l=s.resolveComponent("PgaMonthPicker");return s.openBlock(),s.createElementBlock("div",jl2,[s.createVNode(o,{icon:"chevron-left",variant:"flat",color:"first",onClick:i[0]||(i[0]=f=>c())}),s.createVNode(l,{modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=f=>a.value=f),notClearable:""},null,8,["modelValue"]),s.createVNode(o,{icon:"chevron-right",variant:"flat",color:"first",onClick:i[2]||(i[2]=f=>n())})])}}}),Wl2=s.defineComponent({__name:"PgaSeparator",props:{vertical:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-separator",{"pga-separator--vertical":t.vertical}])},null,2))}});const Yl2=Q1(Wl2,[["__scopeId","data-v-ede6004e"]]),Gl2={class:"pga-tabs"},Zl2={class:"tabs__nav",role:"tablist"},Xl2=["aria-selected","onClick"],Kl2=s.defineComponent({__name:"PgaTabs",props:{tabs:{}},setup(e){const t=s.ref(0);return(a,c)=>{const n=s.resolveComponent("PgaIcon"),r=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createElementBlock("div",Gl2,[s.createElementVNode("nav",Zl2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.tabs,(i,o)=>(s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass(["tabs__card",{"tabs__card--active":t.value===o}]),key:`tab-${o}`,role:"tab","aria-selected":t.value===o,onClick:l=>t.value=o},[i.icon?(s.openBlock(),s.createBlock(n,{key:0,class:"tabs__icon",icon:i.icon},null,8,["icon"])):s.createCommentVNode("",!0),s.createVNode(r,{class:"tabs__label",text:i.label},null,8,["text"])],10,Xl2))),128))]),s.createVNode(s.Transition,{name:"tabs-fade",mode:"out-in"},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("section",{key:t.value,class:"tabs__panel",role:"tabpanel"},[s.renderSlot(a.$slots,`panel${t.value+1}`,{},void 0,!0)]))]),_:3})])}}});const Ql2=Q1(Kl2,[["__scopeId","data-v-02af7f0a"]]),Jl2=["accept","multiple","disabled"],ef2={class:"input-file__label-container"},tf2=s.defineComponent({__name:"PgaInputFile",props:{type:{},multiple:{type:Boolean},label:{},disabled:{type:Boolean},isLoading:{type:Boolean}},emits:["newFile","newFiles"],setup(e,{expose:t,emit:a}){s.useCssVars(b=>({"13af3e9c":s.unref(r).input.borderColor,"309935ba":s.unref(r).input.borderRadius,"404a4b70":s.unref(r).input.backgroundColor,"1cb633ac":s.unref(r).input.backgroundColorHover,"54c07a0c":s.unref(r).input.backgroundColorDisabled}));const c=e,n=a;t({click:M,resetInput:x});const{form:r}=C4(),i=T2("pgaForm"),o=(()=>c.type==="image"?["jpeg","jpg","png","webp","gif","svg","bmp","tiff","heic"]:c.type==="video"?["mp4","mov","avi","webm","mkv"]:["xls","xlsx"])(),l=o.map(b=>`.${b}`).join(","),f=s.ref(),u=s.ref([]),d=s.ref(!1),h=s.ref(!1),p=s.computed(()=>c.disabled||c.isLoading),v=s.computed(()=>!!u.value.length),m=s.computed(()=>{for(const b of u.value){const _=b.name.split(".").pop();if(!o.includes(_))return!1}return!0}),y=s.computed(()=>{const b={icon:"upload"};return!v.value||d.value&&!h.value&&!p.value?b:m.value?{icon:"circle-check",color:"success"}:{icon:"circle-x",color:"danger"}}),g=s.computed(()=>v.value?u.value.map(b=>b.name).join(", "):c.label?c.label:c.multiple?i("selectFilesLabel"):i("selectFileLabel"));function M(){var b;(b=f.value)==null||b.click()}function x(){u.value=[],f.value&&(f.value.value="")}function k(b){d.value=!1;const C=b.target.files;if(C.length){if(u.value=[...C],!m.value){W4.Add("danger",()=>i("newFileError"));return}n("newFile",C[0]),n("newFiles",[...C])}}return(b,_)=>(s.openBlock(),s.createElementBlock("label",{class:s.normalizeClass(["pga-input-file",{"pga-input-file--disabled":p.value}]),onMouseenter:_[4]||(_[4]=C=>d.value=!0),onMouseleave:_[5]||(_[5]=C=>d.value=!1)},[b.isLoading?(s.openBlock(),s.createBlock(Ja,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("input",{ref_key:"inputRef",ref:f,class:"input-file__input",type:"file",accept:s.unref(l),multiple:b.multiple,disabled:p.value,onChange:_[0]||(_[0]=C=>k(C))},null,40,Jl2),s.createVNode(ge,{class:"input-file__icon",icon:y.value.icon,color:y.value.color},null,8,["icon","color"]),s.createElementVNode("div",ef2,[s.createVNode(me,{text:g.value},null,8,["text"])]),v.value?(s.openBlock(),s.createBlock(k2,{key:0,text:s.unref(i)("removeBtn"),variant:"flat",color:"danger",size:"s",disabled:p.value,onMouseenter:_[1]||(_[1]=C=>h.value=!0),onMouseleave:_[2]||(_[2]=C=>h.value=!1),onClick:_[3]||(_[3]=s.withModifiers(C=>x(),["prevent"]))},null,8,["text","disabled"])):s.createCommentVNode("",!0)],64))],34))}});const vu=Q1(tf2,[["__scopeId","data-v-0a46f5a2"]]),af2={class:"pga-videos"},cf2={class:"videos"},nf2=["src"],rf2={key:0,class:"videos__input-container"},if2=s.defineComponent({__name:"PgaVideos",props:s.mergeModels({maxVideosQuantity:{},uploadFn:{type:Function},deleteFn:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=T2("pgaFile"),n=s.ref(),r=s.ref(!1),i=s.ref(-1),o=s.computed(()=>t.value.length),l=s.computed(()=>t.value.map(d=>typeof d=="string"?d:URL.createObjectURL(d)));async function f(d){var h;if((h=n.value)==null||h.resetInput(),o.value+d.length>a.maxVideosQuantity&&(d=d.slice(0,a.maxVideosQuantity-o.value),W4.Add("warning",()=>c("maxVideosQuantityAlert",{maxQuantity:a.maxVideosQuantity}))),!a.uploadFn){t.value.push(...d);return}try{r.value=!0,t.value=await a.uploadFn({file:d})}finally{r.value=!1}}async function u(d){if(a.deleteFn)try{i.value=d,await a.deleteFn({index:d})}finally{i.value=-1}t.value.splice(d,1)}return(d,h)=>{const p=s.resolveComponent("PgaDeleteButton");return s.openBlock(),s.createElementBlock("div",af2,[s.createElementVNode("div",cf2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(v,m)=>(s.openBlock(),s.createElementBlock("div",{key:v,class:"videos__video-container"},[s.createElementVNode("video",{class:"videos__video",src:v,controls:""},null,8,nf2),s.createVNode(p,{class:"videos__delete-btn",variant:"filled",withoutText:"",withoutConfirm:"",isLoading:i.value===m,onDeleteConfirmed:y=>u(m)},null,8,["isLoading","onDeleteConfirmed"])]))),128)),o.value<d.maxVideosQuantity?(s.openBlock(),s.createElementBlock("div",rf2,[s.createVNode(vu,{ref_key:"inputFileRef",ref:n,class:"videos__input",type:"video",multiple:"",label:s.unref(c)("selectVideos"),isLoading:r.value,onNewFiles:h[0]||(h[0]=v=>f(v))},null,8,["label","isLoading"])])):s.createCommentVNode("",!0)]),s.createElementVNode("span",null,s.toDisplayString(`${o.value} / ${d.maxVideosQuantity}`),1)])}}});const of2=Q1(if2,[["__scopeId","data-v-f02c9cd7"]]),sf2=s.defineComponent({__name:"PgaBackButton",setup(e){const t=T2("pgaButton");return(a,c)=>(s.openBlock(),s.createBlock(k2,{text:s.unref(t)("backBtn"),icon:"chevron-left",color:"first",size:"s"},null,8,["text"]))}}),lf2={class:"pga-button-link",type:"button"},ff2=s.defineComponent({__name:"PgaButtonLink",props:{text:{},icon:{},size:{default:"inherit"},color:{default:"link"},noUnderline:{type:Boolean}},setup(e){s.useCssVars(n=>({"4c5e64be":n.size,"48cda4c0":a.value,"55e62c5c":c.value}));const t=e,a=s.computed(()=>`var(--pga-color-${t.color})`),c=s.computed(()=>`var(--pga-color-${t.color}-08)`);return(n,r)=>(s.openBlock(),s.createElementBlock("button",lf2,[n.text?(s.openBlock(),s.createBlock(me,{key:0,class:s.normalizeClass(["button-link__text",{"button-link__text--with-underline":!n.noUnderline}]),text:n.text,icon:n.icon},null,8,["class","text","icon"])):s.renderSlot(n.$slots,"default",{key:1},void 0,!0)]))}});const Zr1=Q1(ff2,[["__scopeId","data-v-e0ff11ed"]]),uf2={class:"pga-copy"},df2=s.defineComponent({__name:"PgaCopy",props:{text:{}},setup(e){const t=e,a=T2("pgaButton"),c=s.ref(!1),n=s.computed(()=>Ne(t.text));async function r(){await navigator.clipboard.writeText(n.value),c.value=!0,setTimeout(()=>c.value=!1,3e3)}return(i,o)=>{const l=s.resolveDirective("tooltip");return s.openBlock(),s.createElementBlock("div",uf2,[s.createElementVNode("span",null,s.toDisplayString(n.value),1),c.value?(s.openBlock(),s.createBlock(ge,{key:1,icon:"circle-check",color:"success"})):s.withDirectives((s.openBlock(),s.createBlock(k2,{key:0,color:"first",icon:"copy",size:"s",onClick:o[0]||(o[0]=f=>r())},null,512)),[[l,s.unref(a)("copyBtn")]])])}}});const hf2=Q1(df2,[["__scopeId","data-v-64962c4d"]]),pf2=s.defineComponent({__name:"PgaCopyButton",props:{text:{},label:{}},setup(e){const t=e,a=T2("pgaButton"),c=s.computed(()=>Ne(t.text)),n=s.computed(()=>t.label||a("copyBtn"));async function r(){await navigator.clipboard.writeText(c.value),W4.Add("success",()=>a("textCopied"))}return(i,o)=>{const l=s.resolveDirective("tooltip");return s.withDirectives((s.openBlock(),s.createBlock(k2,{color:"first",icon:"copy",text:n.value,onClick:o[0]||(o[0]=f=>r())},null,8,["text"])),[[l,c.value]])}}});class Xr1{static Show(t,a){pG.value=t,rr1.value=a,Lo.value=!0}}const Bq=s.defineComponent({__name:"PgaDeleteButton",props:{variant:{default:"flat"},icon:{default:"trash-2"},text:{},withoutText:{type:Boolean},withoutConfirm:{type:Boolean},confirmDeleteText:{}},emits:["deleteConfirmed"],setup(e,{emit:t}){const a=e,c=t,n=T2("pgaButton");function r(){if(a.withoutConfirm){c("deleteConfirmed");return}const i=a.confirmDeleteText||n("confirmDeleteText");Xr1.Show(i,()=>c("deleteConfirmed"))}return(i,o)=>(s.openBlock(),s.createBlock(k2,{variant:i.variant,icon:i.icon,text:i.withoutText?void 0:i.text||s.unref(n)("deleteBtn"),size:"s",align:"left",color:"danger",onClick:o[0]||(o[0]=l=>r())},null,8,["variant","icon","text"]))}}),CG=s.defineComponent({__name:"PgaEditButton",props:{withoutText:{type:Boolean},fullWidth:{type:Boolean}},setup(e){const t=T2("pgaButton");return(a,c)=>{const n=s.resolveDirective("tooltip");return s.withDirectives((s.openBlock(),s.createBlock(k2,{variant:"flat",color:"sky",icon:"square-pen",text:a.withoutText?void 0:s.unref(t)("editBtn"),size:"s",fullWidth:a.fullWidth,align:"left"},null,8,["text","fullWidth"])),[[n,a.withoutText?s.unref(t)("editBtn"):""]])}}}),mf2=["href","target"],vf2=s.defineComponent({__name:"PgaLink",props:{text:{},href:{},target:{default:"_blank"}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("a",{class:"pga-hyperlink",href:t.href,target:t.target},[s.createVNode(me,{text:t.text,withUnderlineOnHover:""},null,8,["text"])],8,mf2))}});const gK=Q1(vf2,[["__scopeId","data-v-252767c4"]]),yf2=s.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:t}){const a=t,c=T2("pgaButton");return(n,r)=>(s.openBlock(),s.createBlock(k2,{icon:"log-out",text:s.unref(c)("logoutBtn"),color:"danger",onClick:r[0]||(r[0]=i=>a("click",i))},null,8,["text"]))}}),gf2=s.defineComponent({__name:"PgaRouterLink",props:{name:{},params:{},query:{},color:{default:"var(--pga-color-first)"},noFitContent:{type:Boolean},underline:{type:Boolean},noUnderlineOnHover:{type:Boolean}},setup(e){s.useCssVars(n=>({"040e9024":a.value,"75a55a4c":c.value}));const t=e,a=s.computed(()=>`var(--pga-color-${t.color})`),c=s.computed(()=>`var(--pga-color-${t.color}-09)`);return(n,r)=>{const i=s.resolveComponent("RouterLink");return s.openBlock(),s.createBlock(i,{class:s.normalizeClass(["pga-router-link",{"pga-router-link--fit-content":!n.noFitContent,"pga-router-link--underline":n.underline,"pga-router-link--underline-on-hover":!n.noUnderlineOnHover}]),to:{name:n.name,params:n.params,query:n.query},onClick:r[0]||(r[0]=o=>s.unref($i)(!0))},{default:s.withCtx(()=>[s.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["class","to"])}}});const $s=Q1(gf2,[["__scopeId","data-v-6046ce2c"]]),Kr1=s.defineComponent({__name:"PgaRouterLinkButton",props:{name:{},params:{},query:{},type:{},icon:{},text:{},variant:{},size:{},align:{},color:{},heightAndWidth:{},borderRadius:{},rounded:{type:Boolean},disabled:{type:Boolean},isLoading:{type:Boolean},numberToDisplay:{},noFitContent:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createBlock($s,{name:t.name,params:t.params,query:t.query,noFitContent:t.noFitContent,noUnderlineOnHover:""},{default:s.withCtx(()=>[t.$slots.default?s.renderSlot(t.$slots,"default",{key:0}):(s.openBlock(),s.createBlock(k2,{key:1,type:t.type,icon:t.icon,text:t.text,variant:t.variant,size:t.size,align:t.align,color:t.color,fullWidth:!t.heightAndWidth,heightAndWidth:t.heightAndWidth,borderRadius:t.borderRadius,rounded:t.rounded,disabled:t.disabled,isLoading:t.isLoading,numberToDisplay:t.numberToDisplay},null,8,["type","icon","text","variant","size","align","color","fullWidth","heightAndWidth","borderRadius","rounded","disabled","isLoading","numberToDisplay"]))]),_:3},8,["name","params","query","noFitContent"]))}}),Qr1=s.defineComponent({__name:"PgaNavigateToButton",props:{id:{},toName:{},withoutText:{type:Boolean},noFitContent:{type:Boolean}},setup(e){const t=T2("pgaButton");return(a,c)=>a.toName?(s.openBlock(),s.createBlock(Kr1,{key:0,name:a.toName,params:{id:a.id},icon:"external-link",text:a.withoutText?void 0:s.unref(t)("navigateToBtn"),variant:"flat",size:"s",align:"left",color:"link",noFitContent:a.noFitContent},null,8,["name","params","text","noFitContent"])):s.createCommentVNode("",!0)}}),Mf2=s.defineComponent({__name:"PgaRemoveButton",props:{size:{default:"s"},disabled:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createBlock(k2,{variant:"flat",icon:"x",size:t.size,color:"danger",disabled:t.disabled},null,8,["size","disabled"]))}}),kf2=s.defineComponent({__name:"PgaSeeDetailsButton",props:{withoutText:{type:Boolean}},setup(e){const t=T2("pgaButton");return(a,c)=>(s.openBlock(),s.createBlock(k2,{variant:"flat",color:"grey",icon:"eye",text:a.withoutText?void 0:s.unref(t)("seeDetailsBtn"),size:"s",align:"left"},null,8,["text"]))}}),xf2=s.defineComponent({__name:"PgaToggleButton",props:s.mergeModels({text:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:s.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=t,n=s.computed(()=>a.value?"outlined":"flat"),r=s.computed(()=>a.value?"primary":"grey");return s.watch(a,i=>c("change",i)),(i,o)=>(s.openBlock(),s.createBlock(k2,{variant:n.value,color:r.value,icon:"circle-check",text:i.text,size:"s",borderRadius:"1rem",onClick:o[0]||(o[0]=l=>a.value=!a.value)},null,8,["variant","color","text"]))}});var bf2=Object.defineProperty,zf2=(e,t,a)=>t in e?bf2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Kt=(e,t,a)=>zf2(e,typeof t!="symbol"?t+"":t,a);const Cf2=(e,t,a)=>{const c=e[t];return c?typeof c=="function"?c():Promise.resolve(c):new Promise((n,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==a?". Note that variables only represent file names one level deep.":""))))})};let d9,j31,U31,x0,h9={},ho={};class _f2{constructor(t,a=!1){Kt(this,"texts",{}),Kt(this,"dateToMinutes",c=>c.getHours()*60+c.getMinutes()),x0=this,this._texts=t,!a&&Date&&!Date.prototype.addDays&&this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(t){return x0.addDays(this,t)},Date.prototype.subtractDays=function(t){return x0.subtractDays(this,t)},Date.prototype.addHours=function(t){return x0.addHours(this,t)},Date.prototype.subtractHours=function(t){return x0.subtractHours(this,t)},Date.prototype.addMinutes=function(t){return x0.addMinutes(this,t)},Date.prototype.subtractMinutes=function(t){return x0.subtractMinutes(this,t)},Date.prototype.getWeek=function(){return x0.getWeek(this)},Date.prototype.isToday=function(){return x0.isToday(this)},Date.prototype.isLeapYear=function(){return x0.isLeapYear(this)},Date.prototype.format=function(t="YYYY-MM-DD"){return x0.formatDate(this,t)},Date.prototype.formatTime=function(t="HH:mm"){return x0.formatTime(this,t)}}removePrototypes(){delete Date.prototype.addDays,delete Date.prototype.subtractDays,delete Date.prototype.addHours,delete Date.prototype.subtractHours,delete Date.prototype.addMinutes,delete Date.prototype.subtractMinutes,delete Date.prototype.getWeek,delete Date.prototype.isToday,delete Date.prototype.isLeapYear,delete Date.prototype.format,delete Date.prototype.formatTime}updateTexts(t){this._texts=t}_todayFormatted(){return j31!==new Date().getDate()&&(d9=new Date,j31=d9.getDate(),U31=`${d9.getFullYear()}-${d9.getMonth()}-${d9.getDate()}`),U31}addDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()+a),c}subtractDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()-a),c}addHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()+a),c}subtractHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()-a),c}addMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()+a),c}subtractMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()-a),c}getWeek(t){const a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),c=a.getUTCDay()||7;a.setUTCDate(a.getUTCDate()+4-c);const n=new Date(Date.UTC(a.getUTCFullYear(),0,1));return Math.ceil(((a-n)/864e5+1)/7)}isToday(t){return`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`===this._todayFormatted()}isLeapYear(t){const a=t.getFullYear();return!(a%400)||a%100&&!(a%4)}getPreviousFirstDayOfWeek(t=null,a){const c=t&&new Date(t.valueOf())||new Date,n=a?7:6;return c.setDate(c.getDate()-(c.getDay()+n)%7),c}stringToDate(t){return t instanceof Date?t:(t.length===10&&(t+=" 00:00"),new Date(t.replace(/-/g,"/")))}countDays(t,a){typeof t=="string"&&(t=t.replace(/-/g,"/")),typeof a=="string"&&(a=a.replace(/-/g,"/")),t=new Date(t).setHours(0,0,0,0),a=new Date(a).setHours(0,0,1,0);const c=(new Date(a).getTimezoneOffset()-new Date(t).getTimezoneOffset())*60*1e3;return Math.ceil((a-t-c)/(24*3600*1e3))}datesInSameTimeStep(t,a,c){return Math.abs(t.getTime()-a.getTime())<=c*60*1e3}formatDate(t,a="YYYY-MM-DD",c=null){if(c||(c=this._texts),a||(a="YYYY-MM-DD"),a==="YYYY-MM-DD")return this.formatDateLite(t);h9={},ho={};const n={YYYY:()=>this._hydrateDateObject(t,c).YYYY,YY:()=>this._hydrateDateObject(t,c).YY(),M:()=>this._hydrateDateObject(t,c).M,MM:()=>this._hydrateDateObject(t,c).MM(),MMM:()=>this._hydrateDateObject(t,c).MMM(),MMMM:()=>this._hydrateDateObject(t,c).MMMM(),MMMMG:()=>this._hydrateDateObject(t,c).MMMMG(),D:()=>this._hydrateDateObject(t,c).D,DD:()=>this._hydrateDateObject(t,c).DD(),S:()=>this._hydrateDateObject(t,c).S(),d:()=>this._hydrateDateObject(t,c).d,dd:()=>this._hydrateDateObject(t,c).dd(),ddd:()=>this._hydrateDateObject(t,c).ddd(),dddd:()=>this._hydrateDateObject(t,c).dddd(),HH:()=>this._hydrateTimeObject(t,c).HH,H:()=>this._hydrateTimeObject(t,c).H,hh:()=>this._hydrateTimeObject(t,c).hh,h:()=>this._hydrateTimeObject(t,c).h,am:()=>this._hydrateTimeObject(t,c).am,AM:()=>this._hydrateTimeObject(t,c).AM,mm:()=>this._hydrateTimeObject(t,c).mm,m:()=>this._hydrateTimeObject(t,c).m};return a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(r,i)=>{const o=n[i.replace(/\{|\}/g,"")];return o!==void 0?o():i})}formatDateLite(t){const a=t.getMonth()+1,c=t.getDate();return`${t.getFullYear()}-${a<10?"0":""}${a}-${c<10?"0":""}${c}`}formatTime(t,a="HH:mm",c=null,n=!1){let r=!1;if(n){const[l,f,u]=[t.getHours(),t.getMinutes(),t.getSeconds()];l+f+u===23+59+59&&(r=!0)}if(t instanceof Date&&a==="HH:mm")return r?"24:00":this.formatTimeLite(t);ho={},c||(c=this._texts);const i=this._hydrateTimeObject(t,c),o=a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(l,f)=>{const u=i[f.replace(/\{|\}/g,"")];return u!==void 0?u:f});return r?o.replace("23:59","24:00"):o}formatTimeLite(t){const a=t.getHours(),c=t.getMinutes();return`${(a<10?"0":"")+a}:${(c<10?"0":"")+c}`}_nth(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}_hydrateDateObject(t,a){if(h9.D)return h9;const c=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),o=(t.getDay()-1+7)%7;return h9={YYYY:c,YY:()=>c.toString().substring(2),M:n,MM:()=>(n<10?"0":"")+n,MMM:()=>a.months[n-1].substring(0,3),MMMM:()=>a.months[n-1],MMMMG:()=>(a.monthsGenitive||a.months)[n-1],D:r,DD:()=>(r<10?"0":"")+r,S:()=>this._nth(r),d:o+1,dd:()=>a.weekDays[o][0],ddd:()=>a.weekDays[o].substr(0,3),dddd:()=>a.weekDays[o]},h9}_hydrateTimeObject(t,a){if(ho.am)return ho;let c,n;t instanceof Date?(c=t.getHours(),n=t.getMinutes()):(c=Math.floor(t/60),n=Math.floor(t%60));const r=c%12?c%12:12,i=(a||{am:"am",pm:"pm"})[c===24||c<12?"am":"pm"];return ho={H:c,h:r,HH:(c<10?"0":"")+c,hh:(r<10?"0":"")+r,am:i,AM:i.toUpperCase(),m:n,mm:(n<10?"0":"")+n},ho}}const wf2=24*60;class Hf2{constructor(t){Kt(this,"_vuecal",null),Kt(this,"selectCell",(a=!1,c,n)=>{this._vuecal.$emit("cell-click",n?{date:c,split:n}:c),this._vuecal.clickToNavigate||a?this._vuecal.switchToNarrowerView():this._vuecal.dblclickToNavigate&&"ontouchstart"in window&&(this._vuecal.domEvents.dblTapACell.taps++,setTimeout(()=>this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.domEvents.dblTapACell.timeout),this._vuecal.domEvents.dblTapACell.taps>=2&&(this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.switchToNarrowerView(),this._vuecal.$emit("cell-dblclick",n?{date:c,split:n}:c)))}),Kt(this,"keyPressEnterCell",(a,c)=>{this._vuecal.$emit("cell-keypress-enter",c?{date:a,split:c}:a),this._vuecal.switchToNarrowerView()}),Kt(this,"getPosition",a=>{const{left:c,top:n}=this._vuecal.cellsEl.getBoundingClientRect(),{clientX:r,clientY:i}="ontouchstart"in window&&a.touches?a.touches[0]:a;return{x:r-c,y:i-n}}),Kt(this,"minutesAtCursor",a=>{let c=0,n={x:0,y:0};const{timeStep:r,timeCellHeight:i,timeFrom:o}=this._vuecal.$props;return typeof a=="number"?c=a:typeof a=="object"&&(n=this.getPosition(a),c=Math.round(n.y*r/parseInt(i)+o)),{minutes:Math.max(Math.min(c,wf2),0),cursorCoords:n}}),this._vuecal=t}}const Lf2=2,ZU=24*60;let Ye,Ge,XU;class Vf2{constructor(t,a){Kt(this,"_vuecal",null),Kt(this,"eventDefaults",{_eid:null,start:"",startTimeMinutes:0,end:"",endTimeMinutes:0,title:"",content:"",background:!1,allDay:!1,segments:null,repeat:null,daysCount:1,deletable:!0,deleting:!1,titleEditable:!0,resizable:!0,resizing:!1,draggable:!0,dragging:!1,draggingStatic:!1,focused:!1,class:""}),this._vuecal=t,Ye=a}createAnEvent(t,a,c){if(typeof t=="string"&&(t=Ye.stringToDate(t)),!(t instanceof Date))return!1;const n=Ye.dateToMinutes(t);a=a*1||Lf2*60;const r=n+a,i=Ye.addMinutes(new Date(t),a);c.end&&(typeof c.end=="string"&&(c.end=Ye.stringToDate(c.end)),c.endTimeMinutes=Ye.dateToMinutes(c.end));const o={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:t,startTimeMinutes:n,end:i,endTimeMinutes:r,segments:null,...c};if(!(typeof this._vuecal.onEventCreate=="function"&&!this._vuecal.onEventCreate(o,()=>this.deleteAnEvent(o))))return o.startDateF!==o.endDateF&&(o.daysCount=Ye.countDays(o.start,o.end)),this._vuecal.mutableEvents.push(o),this._vuecal.addEventsToView([o]),this._vuecal.emitWithEvent("event-create",o),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(o),originalEvent:null}),o}addEventSegment(t){t.segments||(t.segments={},t.segments[Ye.formatDateLite(t.start)]={start:t.start,startTimeMinutes:t.startTimeMinutes,endTimeMinutes:ZU,isFirstDay:!0,isLastDay:!1});const a=t.segments[Ye.formatDateLite(t.end)];a&&(a.isLastDay=!1,a.endTimeMinutes=ZU);const c=Ye.addDays(t.end,1),n=Ye.formatDateLite(c);return c.setHours(0,0,0,0),t.segments[n]={start:c,startTimeMinutes:0,endTimeMinutes:t.endTimeMinutes,isFirstDay:!1,isLastDay:!0},t.end=Ye.addMinutes(c,t.endTimeMinutes),t.daysCount=Object.keys(t.segments).length,n}removeEventSegment(t){let a=Object.keys(t.segments).length;if(a<=1)return Ye.formatDateLite(t.end);delete t.segments[Ye.formatDateLite(t.end)],a--;const c=Ye.subtractDays(t.end,1),n=Ye.formatDateLite(c),r=t.segments[n];return a?r&&(r.isLastDay=!0,r.endTimeMinutes=t.endTimeMinutes):t.segments=null,t.daysCount=a||1,t.end=c,n}createEventSegments(t,a,c){const n=a.getTime(),r=c.getTime();let i=t.start.getTime(),o=t.end.getTime(),l=!1,f,u,d;for(!t.end.getHours()&&!t.end.getMinutes()&&(o-=1e3),t.segments={},t.repeat?(f=n,u=Math.min(r,t.repeat.until?Ye.stringToDate(t.repeat.until).getTime():r)):(f=Math.max(n,i),u=Math.min(r,o));f<=u;){let h=!1;const p=Ye.addDays(new Date(f),1).setHours(0,0,0,0);let v,m,y,g;if(t.repeat){const M=new Date(f),x=Ye.formatDateLite(M);(l||t.occurrences&&t.occurrences[x])&&(l||(i=t.occurrences[x].start,d=new Date(i).setHours(0,0,0,0),o=t.occurrences[x].end),l=!0,h=!0),v=f===d,m=x===Ye.formatDateLite(new Date(o)),y=new Date(v?i:f),g=Ye.formatDateLite(y),m&&(l=!1)}else h=!0,v=f===i,m=u===o&&p>u,y=v?t.start:new Date(f),g=Ye.formatDateLite(v?t.start:y);h&&(t.segments[g]={start:y,startTimeMinutes:v?t.startTimeMinutes:0,endTimeMinutes:m?t.endTimeMinutes:ZU,isFirstDay:v,isLastDay:m}),f=p}return t}deleteAnEvent(t){this._vuecal.emitWithEvent("event-delete",t),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter(a=>a._eid!==t._eid),this._vuecal.view.events=this._vuecal.view.events.filter(a=>a._eid!==t._eid)}checkCellOverlappingEvents(t,a){XU=t.slice(0),Ge={},t.forEach(n=>{XU.shift(),Ge[n._eid]||(Ge[n._eid]={overlaps:[],start:n.start,position:0}),Ge[n._eid].position=0,XU.forEach(r=>{Ge[r._eid]||(Ge[r._eid]={overlaps:[],start:r.start,position:0});const i=this.eventInRange(r,n.start,n.end),o=a.overlapsPerTimeStep?Ye.datesInSameTimeStep(n.start,r.start,a.timeStep):1;if(!n.background&&!n.allDay&&!r.background&&!r.allDay&&i&&o)Ge[n._eid].overlaps.push(r._eid),Ge[n._eid].overlaps=[...new Set(Ge[n._eid].overlaps)],Ge[r._eid].overlaps.push(n._eid),Ge[r._eid].overlaps=[...new Set(Ge[r._eid].overlaps)],Ge[r._eid].position++;else{let l,f;(l=(Ge[n._eid]||{overlaps:[]}).overlaps.indexOf(r._eid))>-1&&Ge[n._eid].overlaps.splice(l,1),(f=(Ge[r._eid]||{overlaps:[]}).overlaps.indexOf(n._eid))>-1&&Ge[r._eid].overlaps.splice(f,1),Ge[r._eid].position--}})});let c=0;for(const n in Ge){const r=Ge[n],i=r.overlaps.map(o=>({id:o,start:Ge[o].start}));i.push({id:n,start:r.start}),i.sort((o,l)=>o.start<l.start?-1:o.start>l.start?1:o.id>l.id?-1:1),r.position=i.findIndex(o=>o.id===n),c=Math.max(this.getOverlapsStreak(r,Ge),c)}return[Ge,c]}getOverlapsStreak(t,a={}){let c=t.overlaps.length+1,n=[];return t.overlaps.forEach(r=>{n.includes(r)||t.overlaps.filter(o=>o!==r).forEach(o=>{a[o].overlaps.includes(r)||n.push(o)})}),n=[...new Set(n)],c-=n.length,c}eventInRange(t,a,c){if(t.allDay||!this._vuecal.time){const i=new Date(t.start).setHours(0,0,0,0);return new Date(t.end).setHours(23,59,0,0)>=new Date(a).setHours(0,0,0,0)&&i<=new Date(c).setHours(0,0,0,0)}const n=t.start.getTime(),r=t.end.getTime();return n<c.getTime()&&r>a.getTime()}}const Sf2={class:"vuecal__flex vuecal__weekdays-headings"},Nf2=["onClick"],Af2={class:"vuecal__flex weekday-label",grow:""},Tf2={class:"full"},Ef2={class:"small"},Df2={class:"xsmall"},Pf2={key:0},Of2={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""};function If2(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("div",Sf2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.headings,(i,o)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:o},[i.hide?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["vuecal__flex vuecal__heading",{today:i.today,clickable:r.cellHeadingsClickable}]),style:s.normalizeStyle(r.weekdayCellStyles),onClick:l=>r.view.id==="week"&&r.selectCell(i.date,l),onDblclick:t[0]||(t[0]=l=>r.view.id==="week"&&r.vuecal.dblclickToNavigate&&a.switchToNarrowerView())},[s.createVNode(s.Transition,{name:`slide-fade--${a.transitionDirection}`,appear:r.vuecal.transitions},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex",column:"",key:r.vuecal.transitions?`${o}-${i.dayOfMonth}`:!1},[s.createElementVNode("div",Af2,[s.renderSlot(e.$slots,"weekday-heading",{heading:r.cleanupHeading(i),view:r.view},()=>[s.createElementVNode("span",Tf2,s.toDisplayString(i.full),1),s.createElementVNode("span",Ef2,s.toDisplayString(i.small),1),s.createElementVNode("span",Df2,s.toDisplayString(i.xsmall),1),i.dayOfMonth?(s.openBlock(),s.createElementBlock("span",Pf2," "+s.toDisplayString(i.dayOfMonth),1)):s.createCommentVNode("",!0)])]),r.vuecal.hasSplits&&r.vuecal.stickySplitLabels?(s.openBlock(),s.createElementBlock("div",Of2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.vuecal.daySplits,(l,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",l.class||!1]),key:f},[s.renderSlot(e.$slots,"split-label",{split:l,view:r.view},()=>[s.createTextVNode(s.toDisplayString(l.label),1)])],2))),128))])):s.createCommentVNode("",!0)]))]),_:2},1032,["name","appear"])],46,Nf2))],64))),128))])}const qs=(e,t)=>{const a=e.__vccOpts||e;for(const[c,n]of t)a[c]=n;return a},Bf2={inject:["vuecal","utils","view"],props:{transitionDirection:{type:String,default:"right"},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},methods:{selectCell(e,t){e.getTime()!==this.view.selectedDate.getTime()&&(this.view.selectedDate=e),this.utils.cell.selectCell(!1,e,t)},cleanupHeading:e=>({label:e.full,date:e.date,...e.today?{today:e.today}:{}})},computed:{headings(){if(!["month","week"].includes(this.view.id))return[];let e=!1;return this.weekDays.map((a,c)=>{const n=this.utils.date.addDays(this.view.startDate,this.vuecal.startWeekOnSunday&&this.vuecal.hideWeekends?c-1:c);return{hide:a.hide,full:a.label,small:a.short||a.label.substr(0,3),xsmall:a.short||a.label.substr(0,1),...this.view.id==="week"?{dayOfMonth:n.getDate(),date:n,today:!e&&this.utils.date.isToday(n)&&!e++}:{}}})},cellWidth(){return 100/(7-this.weekDays.reduce((e,t)=>e+t.hide,0))},weekdayCellStyles(){return{...this.vuecal.hideWeekdays.length?{width:`${this.cellWidth}%`}:{}}},cellHeadingsClickable(){return this.view.id==="week"&&(this.vuecal.clickToNavigate||this.vuecal.dblclickToNavigate)}}},Jr1=qs(Bf2,[["render",If2]]),Rf2={class:"vuecal__header"},Ff2={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},$f2=["onDragenter","onDragleave","onClick","aria-label"],qf2={key:1,class:"vuecal__title-bar"},jf2=["aria-label"],Uf2={class:"vuecal__flex vuecal__title",grow:""},Wf2=["aria-label"],Yf2={key:0,class:"vuecal__flex vuecal__split-days-headers"};function Gf2(e,t,a,c,n,r){const i=s.resolveComponent("weekdays-headings");return s.openBlock(),s.createElementBlock("div",Rf2,[a.options.hideViewSelector?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Ff2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.viewProps.views,(o,l)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:l},[o.enabled?(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["vuecal__view-btn",{"vuecal__view-btn--active":r.view.id===l,"vuecal__view-btn--highlighted":e.highlightedControl===l}]),type:"button",onDragenter:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(f,l,e.$data),onDragleave:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(f,l,e.$data),onClick:f=>r.switchView(l,null,!0),"aria-label":`${o.label} view`},s.toDisplayString(o.label),43,$f2)):s.createCommentVNode("",!0)],64))),128))])),a.options.hideTitleBar?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",qf2,[s.createElementVNode("button",{class:s.normalizeClass(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":e.highlightedControl==="previous"}]),type:"button",onClick:t[0]||(t[0]=(...o)=>r.previous&&r.previous(...o)),onDragenter:t[1]||(t[1]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"previous",e.$data)),onDragleave:t[2]||(t[2]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"previous",e.$data)),"aria-label":`Previous ${r.view.id}`},[s.renderSlot(e.$slots,"arrow-prev")],42,jf2),s.createElementVNode("div",Uf2,[s.createVNode(s.Transition,{name:a.options.transitions?`slide-fade--${r.transitionDirection}`:""},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.broaderView?"button":"span"),{type:!!r.broaderView&&"button",key:`${r.view.id}${r.view.startDate.toString()}`,onClick:t[3]||(t[3]=o=>!!r.broaderView&&r.switchToBroaderView()),"aria-label":!!r.broaderView&&`Go to ${r.broaderView} view`},{default:s.withCtx(()=>[s.renderSlot(e.$slots,"title")]),_:3},8,["type","aria-label"]))]),_:3},8,["name"])]),a.options.todayButton?(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["vuecal__today-btn",{"vuecal__today-btn--highlighted":e.highlightedControl==="today"}]),type:"button",onClick:t[4]||(t[4]=(...o)=>r.goToToday&&r.goToToday(...o)),onDragenter:t[5]||(t[5]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"today",e.$data)),onDragleave:t[6]||(t[6]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"today",e.$data)),"aria-label":"Today"},[s.renderSlot(e.$slots,"today-button")],34)):s.createCommentVNode("",!0),s.createElementVNode("button",{class:s.normalizeClass(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":e.highlightedControl==="next"}]),type:"button",onClick:t[7]||(t[7]=(...o)=>r.next&&r.next(...o)),onDragenter:t[8]||(t[8]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"next",e.$data)),onDragleave:t[9]||(t[9]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"next",e.$data)),"aria-label":`Next ${r.view.id}`},[s.renderSlot(e.$slots,"arrow-next")],42,Wf2)])),a.viewProps.weekDaysInHeader?(s.openBlock(),s.createBlock(i,{key:2,"week-days":a.weekDays,"transition-direction":r.transitionDirection,"switch-to-narrower-view":a.switchToNarrowerView},s.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:o,view:l})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:o,view:l})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:o})=>[s.renderSlot(e.$slots,"split-label",{split:o,view:r.view})]),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:`slide-fade--${r.transitionDirection}`},{default:s.withCtx(()=>[r.showDaySplits?(s.openBlock(),s.createElementBlock("div",Yf2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.daySplits,(o,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",o.class||!1]),key:l},[s.renderSlot(e.$slots,"split-label",{split:o,view:r.view.id},()=>[s.createTextVNode(s.toDisplayString(o.label),1)])],2))),128))])):s.createCommentVNode("",!0)]),_:3},8,["name"])])}const Zf2={inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:Jr1},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},hasSplits:{type:[Boolean,Number],default:!1},daySplits:{type:Array,default:()=>[]},viewProps:{type:Object,default:()=>({})},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},data:()=>({highlightedControl:null}),methods:{goToToday(){this.updateSelectedDate(new Date(new Date().setHours(0,0,0,0)))},switchToBroaderView(){this.transitionDirection="left",this.broaderView&&this.switchView(this.broaderView)}},computed:{transitionDirection:{get(){return this.vuecal.transitionDirection},set(e){this.vuecal.transitionDirection=e}},broaderView(){const{enabledViews:e}=this.vuecal;return e[e.indexOf(this.view.id)-1]},showDaySplits(){return this.view.id==="day"&&this.hasSplits&&this.options.stickySplitLabels&&!this.options.minSplitWidth},dnd(){return this.modules.dnd}}},Xf2=qs(Zf2,[["render",Gf2]]),Kf2=["draggable"];function Qf2(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__event",r.eventClasses]),style:s.normalizeStyle(r.eventStyles),tabindex:"0",onFocus:t[4]||(t[4]=(...i)=>r.focusEvent&&r.focusEvent(...i)),onKeypress:t[5]||(t[5]=s.withKeys(s.withModifiers((...i)=>r.onEnterKeypress&&r.onEnterKeypress(...i),["stop"]),["enter"])),onMouseenter:t[6]||(t[6]=(...i)=>r.onMouseEnter&&r.onMouseEnter(...i)),onMouseleave:t[7]||(t[7]=(...i)=>r.onMouseLeave&&r.onMouseLeave(...i)),onTouchstart:t[8]||(t[8]=s.withModifiers((...i)=>r.onTouchStart&&r.onTouchStart(...i),["stop"])),onMousedown:t[9]||(t[9]=i=>r.onMouseDown(i)),onMouseup:t[10]||(t[10]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchend:t[11]||(t[11]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchmove:t[12]||(t[12]=(...i)=>r.onTouchMove&&r.onTouchMove(...i)),onDblclick:t[13]||(t[13]=(...i)=>r.onDblClick&&r.onDblClick(...i)),draggable:r.draggable,onDragstart:t[14]||(t[14]=i=>r.draggable&&r.onDragStart(i)),onDragend:t[15]||(t[15]=i=>r.draggable&&r.onDragEnd())},[r.vuecal.editEvents.delete&&a.event.deletable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-delete",onClick:t[0]||(t[0]=s.withModifiers((...i)=>r.deleteEvent&&r.deleteEvent(...i),["stop"])),onTouchstart:t[1]||(t[1]=s.withModifiers((...i)=>r.touchDeleteEvent&&r.touchDeleteEvent(...i),["stop"]))},s.toDisplayString(r.vuecal.texts.deleteEvent),33)):s.createCommentVNode("",!0),s.renderSlot(e.$slots,"event",{event:a.event,view:r.view.id}),r.resizable?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:t[2]||(t[2]=s.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"])),onTouchstart:t[3]||(t[3]=s.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"]))},null,32)):s.createCommentVNode("",!0)],46,Kf2)}const Jf2={inject:["vuecal","utils","modules","view","domEvents","editEvents"],props:{cellFormattedDate:{type:String,default:""},event:{type:Object,default:()=>({})},cellEvents:{type:Array,default:()=>[]},overlaps:{type:Array,default:()=>[]},eventPosition:{type:Number,default:0},overlapsStreak:{type:Number,default:0},allDay:{type:Boolean,default:!1}},data:()=>({touch:{dragThreshold:30,startX:0,startY:0,dragged:!1}}),methods:{onMouseDown(e,t=!1){if("ontouchstart"in window&&!t)return!1;const{clickHoldAnEvent:a,focusAnEvent:c,resizeAnEvent:n,dragAnEvent:r}=this.domEvents;if(c._eid===this.event._eid&&a._eid===this.event._eid)return!0;this.focusEvent(),a._eid=null,this.vuecal.editEvents.delete&&this.event.deletable&&(a.timeoutId=setTimeout(()=>{!n._eid&&!r._eid&&(a._eid=this.event._eid,this.event.deleting=!0)},a.timeout))},onMouseUp(e){this.domEvents.focusAnEvent._eid===this.event._eid&&!this.touch.dragged&&(this.domEvents.focusAnEvent.mousedUp=!0),this.touch.dragged=!1},onMouseEnter(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-enter",this.event)},onMouseLeave(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-leave",this.event)},onTouchMove(e){if(typeof this.vuecal.onEventClick!="function")return;const{clientX:t,clientY:a}=e.touches[0],{startX:c,startY:n,dragThreshold:r}=this.touch;(Math.abs(t-c)>r||Math.abs(a-n)>r)&&(this.touch.dragged=!0)},onTouchStart(e){this.touch.startX=e.touches[0].clientX,this.touch.startY=e.touches[0].clientY,this.onMouseDown(e,!0)},onEnterKeypress(e){if(typeof this.vuecal.onEventClick=="function")return this.vuecal.onEventClick(this.event,e)},onDblClick(e){if(typeof this.vuecal.onEventDblclick=="function")return this.vuecal.onEventDblclick(this.event,e)},onDragStart(e){this.dnd&&this.dnd.eventDragStart(e,this.event)},onDragEnd(){this.dnd&&this.dnd.eventDragEnd(this.event)},onResizeHandleMouseDown(){this.focusEvent(),this.domEvents.dragAnEvent._eid=null,this.domEvents.resizeAnEvent=Object.assign(this.domEvents.resizeAnEvent,{_eid:this.event._eid,start:(this.segment||this.event).start,split:this.event.split||null,segment:!!this.segment&&this.utils.date.formatDateLite(this.segment.start),originalEnd:new Date((this.segment||this.event).end),originalEndTimeMinutes:this.event.endTimeMinutes}),this.event.resizing=!0},deleteEvent(e=!1){if("ontouchstart"in window&&!e)return!1;this.utils.event.deleteAnEvent(this.event)},touchDeleteEvent(e){this.deleteEvent(!0)},cancelDeleteEvent(){this.event.deleting=!1},focusEvent(){const{focusAnEvent:e}=this.domEvents,t=e._eid;if(t!==this.event._eid){if(t){const a=this.view.events.find(c=>c._eid===t);a&&(a.focused=!1)}this.vuecal.cancelDelete(),this.vuecal.emitWithEvent("event-focus",this.event),e._eid=this.event._eid,this.event.focused=!0}}},computed:{eventDimensions(){const{startTimeMinutes:e,endTimeMinutes:t}=this.segment||this.event;let a=e-this.vuecal.timeFrom;const c=Math.max(Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),0);a=Math.min(t,this.vuecal.timeTo)-this.vuecal.timeFrom;const n=Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),r=Math.max(n-c,5);return{top:c,height:r}},eventStyles(){if(this.event.allDay||!this.vuecal.time||!this.event.endTimeMinutes||this.view.id==="month"||this.allDay)return{};let e=100/Math.min(this.overlaps.length+1,this.overlapsStreak),t=100/(this.overlaps.length+1)*this.eventPosition;this.vuecal.minEventWidth&&e<this.vuecal.minEventWidth&&(e=this.vuecal.minEventWidth,t=(100-this.vuecal.minEventWidth)/this.overlaps.length*this.eventPosition);const{top:a,height:c}=this.eventDimensions;return{top:`${a}px`,height:`${c}px`,width:`${e}%`,left:this.event.left&&`${this.event.left}px`||`${t}%`}},eventClasses(){const{isFirstDay:e,isLastDay:t}=this.segment||{};return{[this.event.class]:!!this.event.class,"vuecal__event--focus":this.event.focused,"vuecal__event--resizing":this.event.resizing,"vuecal__event--background":this.event.background,"vuecal__event--deletable":this.event.deleting,"vuecal__event--all-day":this.event.allDay,"vuecal__event--dragging":!this.event.draggingStatic&&this.event.dragging,"vuecal__event--static":this.event.dragging&&this.event.draggingStatic,"vuecal__event--multiple-days":!!this.segment,"event-start":this.segment&&e&&!t,"event-middle":this.segment&&!e&&!t,"event-end":this.segment&&t&&!e}},segment(){return this.event.segments&&this.event.segments[this.cellFormattedDate]||null},draggable(){const{draggable:e,background:t,daysCount:a}=this.event;return this.vuecal.editEvents.drag&&e&&!t&&a===1},resizable(){const{editEvents:e,time:t}=this.vuecal;return e.resize&&this.event.resizable&&t&&!this.allDay&&(!this.segment||this.segment&&this.segment.isLastDay)&&this.view.id!=="month"},dnd(){return this.modules.dnd}}},eu2=qs(Jf2,[["render",Qf2]]),tu2=["data-split","aria-label","onTouchstart","onMousedown","onDragover","onDrop"],au2={key:0,class:"cell-time-labels"},cu2=["innerHTML"],nu2={key:2,class:"vuecal__cell-events"},ru2=["title"];function iu2(e,t,a,c,n,r){const i=s.resolveComponent("event");return s.openBlock(),s.createBlock(s.TransitionGroup,{class:s.normalizeClass(["vuecal__cell",r.cellClasses]),name:`slide-fade--${r.transitionDirection}`,tag:"div",appear:a.options.transitions,style:s.normalizeStyle(r.cellStyles)},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.splitsCount?r.splits:1,(o,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__flex vuecal__cell-content",r.splitsCount&&r.splitClasses(o)]),key:a.options.transitions?`${r.view.id}-${a.data.content}-${l}`:l,"data-split":r.splitsCount?o.id:!1,column:"",tabindex:"0","aria-label":a.data.content,onFocus:t[0]||(t[0]=f=>r.onCellFocus(f)),onKeypress:t[1]||(t[1]=s.withKeys(f=>r.onCellkeyPressEnter(f),["enter"])),onTouchstart:f=>!r.isDisabled&&r.onCellTouchStart(f,r.splitsCount?o.id:null),onMousedown:f=>!r.isDisabled&&r.onCellMouseDown(f,r.splitsCount?o.id:null),onClick:t[2]||(t[2]=f=>!r.isDisabled&&r.onCellClick(f)),onDblclick:t[3]||(t[3]=f=>!r.isDisabled&&r.onCellDblClick(f)),onContextmenu:t[4]||(t[4]=f=>!r.isDisabled&&a.options.cellContextmenu&&r.onCellContextMenu(f)),onDragenter:t[5]||(t[5]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragEnter(f,e.$data,a.data.startDate)),onDragover:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragOver(f,e.$data,a.data.startDate,r.splitsCount?o.id:null),onDragleave:t[6]||(t[6]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragLeave(f,e.$data,a.data.startDate)),onDrop:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragDrop(f,e.$data,a.data.startDate,r.splitsCount?o.id:null)},[a.options.showTimeInCells&&a.options.time&&r.isWeekOrDayView&&!a.allDay?(s.openBlock(),s.createElementBlock("div",au2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.vuecal.timeCells,(f,u)=>(s.openBlock(),s.createElementBlock("span",{class:"cell-time-label",key:u},s.toDisplayString(f.label),1))),128))])):s.createCommentVNode("",!0),r.isWeekOrDayView&&!a.allDay&&r.specialHours.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.specialHours,(f,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__special-hours",`vuecal__special-hours--day${f.day} ${f.class}`]),style:s.normalizeStyle(`height: ${f.height}px;top: ${f.top}px`)},[f.label?(s.openBlock(),s.createElementBlock("div",{key:0,class:"special-hours-label",innerHTML:f.label},null,8,cu2)):s.createCommentVNode("",!0)],6))),256)):s.createCommentVNode("",!0),s.renderSlot(e.$slots,"cell-content",{events:r.events,selectCell:f=>r.selectCell(f,!0),split:r.splitsCount?o:!1}),r.eventsCount&&(r.isWeekOrDayView||r.view.id==="month"&&a.options.eventsOnMonthView)?(s.openBlock(),s.createElementBlock("div",nu2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.splitsCount?o.events:r.events,(f,u)=>(s.openBlock(),s.createBlock(i,{key:u,"cell-formatted-date":a.data.formattedDate,event:f,"all-day":a.allDay,"cell-events":r.splitsCount?o.events:r.events,overlaps:((r.splitsCount?o.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).overlaps,"event-position":((r.splitsCount?o.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).position,"overlaps-streak":r.splitsCount?o.overlapsStreak:e.cellOverlapsStreak},{event:s.withCtx(({event:d,view:h})=>[s.renderSlot(e.$slots,"event",{view:h,event:d})]),_:2},1032,["cell-formatted-date","event","all-day","cell-events","overlaps","event-position","overlaps-streak"]))),128))])):s.createCommentVNode("",!0)],42,tu2))),128)),r.timelineVisible?(s.openBlock(),s.createElementBlock("div",{class:"vuecal__now-line",style:s.normalizeStyle(`top: ${r.todaysTimePosition}px`),key:a.options.transitions?`${r.view.id}-now-line`:"now-line",title:r.utils.date.formatTime(r.vuecal.now)},null,12,ru2)):s.createCommentVNode("",!0)]),_:3},8,["class","name","appear","style"])}const ou2={inject:["vuecal","utils","modules","view","domEvents"],components:{Event:eu2},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},data:{type:Object,required:!0},cellSplits:{type:Array,default:()=>[]},minTimestamp:{type:[Number,null],default:null},maxTimestamp:{type:[Number,null],default:null},cellWidth:{type:[Number,Boolean],default:!1},allDay:{type:Boolean,default:!1}},data:()=>({cellOverlaps:{},cellOverlapsStreak:1,timeAtCursor:null,highlighted:!1,highlightedSplit:null}),methods:{getSplitAtCursor({target:e}){let a=e.classList.contains("vuecal__cell-split")?e:this.vuecal.findAncestor(e,"vuecal__cell-split");return a&&(a=a.attributes["data-split"].value,parseInt(a).toString()===a.toString()&&(a=parseInt(a))),a||null},splitClasses(e){return{"vuecal__cell-split":!0,"vuecal__cell-split--highlighted":this.highlightedSplit===e.id,[e.class]:!!e.class}},checkCellOverlappingEvents(){this.options.time&&this.eventsCount&&!this.splitsCount&&(this.eventsCount===1?(this.cellOverlaps=[],this.cellOverlapsStreak=1):[this.cellOverlaps,this.cellOverlapsStreak]=this.utils.event.checkCellOverlappingEvents(this.events,this.options))},isDOMElementAnEvent(e){return this.vuecal.isDOMElementAnEvent(e)},selectCell(e,t=!1){const a=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.selectCell(t,this.timeAtCursor,a),this.timeAtCursor=null},onCellkeyPressEnter(e){this.isSelected||this.onCellFocus(e);const t=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.keyPressEnterCell(this.timeAtCursor,t),this.timeAtCursor=null},onCellFocus(e){if(!this.isSelected&&!this.isDisabled){this.isSelected=this.data.startDate;const t=this.splitsCount?this.getSplitAtCursor(e):null,a=this.timeAtCursor||this.data.startDate;this.vuecal.$emit("cell-focus",t?{date:a,split:t}:a)}},onCellMouseDown(e,t=null,a=!1){if("ontouchstart"in window&&!a)return!1;this.isSelected||this.onCellFocus(e);const{clickHoldACell:c,focusAnEvent:n}=this.domEvents;this.domEvents.cancelClickEventCreation=!1,c.eventCreated=!1,this.timeAtCursor=new Date(this.data.startDate);const{minutes:r,cursorCoords:{y:i}}=this.vuecal.minutesAtCursor(e);this.timeAtCursor.setMinutes(r);const o=this.isDOMElementAnEvent(e.target);!o&&n._eid&&((this.view.events.find(l=>l._eid===n._eid)||{}).focused=!1),this.editEvents.create&&!o&&this.setUpEventCreation(e,i)},setUpEventCreation(e,t){if(this.options.dragToCreateEvent&&["week","day"].includes(this.view.id)){const{dragCreateAnEvent:a}=this.domEvents;if(a.startCursorY=t,a.split=this.splitsCount?this.getSplitAtCursor(e):null,a.start=this.timeAtCursor,this.options.snapToTime){let c=this.timeAtCursor.getHours()*60+this.timeAtCursor.getMinutes();const n=c+this.options.snapToTime/2;c=n-n%this.options.snapToTime,a.start.setHours(0,c,0,0)}}else this.options.cellClickHold&&["month","week","day"].includes(this.view.id)&&this.setUpCellHoldTimer(e)},setUpCellHoldTimer(e){const{clickHoldACell:t}=this.domEvents;t.cellId=`${this.vuecal._.uid}_${this.data.formattedDate}`,t.split=this.splitsCount?this.getSplitAtCursor(e):null,t.timeoutId=setTimeout(()=>{if(t.cellId&&!this.domEvents.cancelClickEventCreation){const{_eid:a}=this.utils.event.createAnEvent(this.timeAtCursor,null,t.split?{split:t.split}:{});t.eventCreated=a}},t.timeout)},onCellTouchStart(e,t=null){this.onCellMouseDown(e,t,!0)},onCellClick(e){this.isDOMElementAnEvent(e.target)||this.selectCell(e)},onCellDblClick(e){const t=new Date(this.data.startDate);t.setMinutes(this.vuecal.minutesAtCursor(e).minutes);const a=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-dblclick",a?{date:t,split:a}:t),this.options.dblclickToNavigate&&this.vuecal.switchToNarrowerView()},onCellContextMenu(e){e.stopPropagation(),e.preventDefault();const t=new Date(this.data.startDate),{cursorCoords:a,minutes:c}=this.vuecal.minutesAtCursor(e);t.setMinutes(c);const n=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-contextmenu",{date:t,...a,...n||{},e})}},computed:{dnd(){return this.modules.dnd},nowInMinutes(){return this.utils.date.dateToMinutes(this.vuecal.now)},isBeforeMinDate(){return this.minTimestamp!==null&&this.minTimestamp>this.data.endDate.getTime()},isAfterMaxDate(){return this.maxTimestamp&&this.maxTimestamp<this.data.startDate.getTime()},isDisabled(){const{disableDays:e}=this.options,{isYearsOrYearView:t}=this.vuecal;return e.length&&e.includes(this.data.formattedDate)&&!t?!0:this.isBeforeMinDate||this.isAfterMaxDate},isSelected:{get(){let e=!1;const{selectedDate:t}=this.view;return this.view.id==="years"?e=t.getFullYear()===this.data.startDate.getFullYear():this.view.id==="year"?e=t.getFullYear()===this.data.startDate.getFullYear()&&t.getMonth()===this.data.startDate.getMonth():e=t.getTime()===this.data.startDate.getTime(),e},set(e){this.view.selectedDate=e,this.vuecal.$emit("update:selected-date",this.view.selectedDate)}},isWeekOrDayView(){return["week","day"].includes(this.view.id)},transitionDirection(){return this.vuecal.transitionDirection},specialHours(){return this.data.specialHours.map(e=>{let{from:t,to:a}=e;return t=Math.max(t,this.options.timeFrom),a=Math.min(a,this.options.timeTo),{...e,height:(a-t)*this.timeScale,top:(t-this.options.timeFrom)*this.timeScale}})},events(){const{startDate:e,endDate:t}=this.data;let a=[];if(!(["years","year"].includes(this.view.id)&&!this.options.eventsCountOnYearView)){if(a=this.view.events.slice(0),this.view.id==="month"&&a.push(...this.view.outOfScopeEvents),a=a.filter(c=>this.utils.event.eventInRange(c,e,t)),this.options.showAllDayEvents&&this.view.id!=="month"&&(a=a.filter(c=>!!c.allDay===this.allDay)),this.options.time&&this.isWeekOrDayView&&!this.allDay){const{timeFrom:c,timeTo:n}=this.options;a=a.filter(r=>{const i=r.daysCount>1&&r.segments[this.data.formattedDate]||{},o=r.daysCount===1&&r.startTimeMinutes<n&&r.endTimeMinutes>c,l=r.daysCount>1&&i.startTimeMinutes<n&&i.endTimeMinutes>c,f=!1;return r.allDay||o||l||f})}this.options.time&&this.isWeekOrDayView&&!(this.options.showAllDayEvents&&this.allDay)&&a.sort((c,n)=>c.start<n.start?-1:1),this.cellSplits.length||this.$nextTick(this.checkCellOverlappingEvents)}return a},eventsCount(){return this.events.length},splits(){return this.cellSplits.map((e,t)=>{const a=this.events.filter(r=>r.split===e.id),[c,n]=this.utils.event.checkCellOverlappingEvents(a.filter(r=>!r.background&&!r.allDay),this.options);return{...e,overlaps:c,overlapsStreak:n,events:a}})},splitsCount(){return this.splits.length},cellClasses(){return{[this.data.class]:!!this.data.class,"vuecal__cell--current":this.data.current,"vuecal__cell--today":this.data.today,"vuecal__cell--out-of-scope":this.data.outOfScope,"vuecal__cell--before-min":this.isDisabled&&this.isBeforeMinDate,"vuecal__cell--after-max":this.isDisabled&&this.isAfterMaxDate,"vuecal__cell--disabled":this.isDisabled,"vuecal__cell--selected":this.isSelected,"vuecal__cell--highlighted":this.highlighted,"vuecal__cell--has-splits":this.splitsCount,"vuecal__cell--has-events":this.eventsCount}},cellStyles(){return{...this.cellWidth?{width:`${this.cellWidth}%`}:{}}},timelineVisible(){const{time:e,timeTo:t}=this.options;return this.data.today&&this.isWeekOrDayView&&e&&!this.allDay&&this.nowInMinutes<=t},todaysTimePosition(){if(!this.data.today||!this.options.time)return;const e=this.nowInMinutes-this.options.timeFrom;return Math.round(e*this.timeScale)},timeScale(){return this.options.timeCellHeight/this.options.timeStep}}},e71=qs(ou2,[["render",iu2]]),su2={key:0,class:"vuecal__all-day-text",style:{width:"3em"}};function lu2(e,t,a,c,n,r){const i=s.resolveComponent("vuecal-cell");return s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex vuecal__all-day",style:s.normalizeStyle(a.cellOrSplitMinWidth&&{height:a.height})},[a.cellOrSplitMinWidth?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",su2,[s.createElementVNode("span",null,s.toDisplayString(a.label),1)])),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__flex vuecal__cells",`${r.view.id}-view`]),grow:"",style:s.normalizeStyle(a.cellOrSplitMinWidth?`min-width: ${a.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.cells,(o,l)=>(s.openBlock(),s.createBlock(i,{key:l,options:a.options,"edit-events":r.editEvents,data:o,"all-day":!0,"cell-width":a.options.hideWeekdays.length&&(r.vuecal.isWeekView||r.vuecal.isMonthView)&&r.vuecal.cellWidth,"min-timestamp":a.options.minTimestamp,"max-timestamp":a.options.maxTimestamp,"cell-splits":a.daySplits},{event:s.withCtx(({event:f,view:u})=>[s.renderSlot(e.$slots,"event",{view:u,event:f})]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],6)],4)}const fu2={inject:["vuecal","view","editEvents"],components:{"vuecal-cell":e71},props:{options:{type:Object,required:!0},cells:{type:Array,required:!0},label:{type:String,required:!0},daySplits:{type:Array,default:()=>[]},shortEvents:{type:Boolean,default:!0},height:{type:String,default:""},cellOrSplitMinWidth:{type:Number,default:null}},computed:{hasCellOrSplitWidth(){return!!(this.options.minCellWidth||this.daySplits.length&&this.options.minSplitWidth)}}},uu2=qs(fu2,[["render",lu2]]),du2=["lang"],hu2={class:"default"},pu2={key:0,class:"vuecal__flex vuecal__body",grow:""},mu2=["onBlur","innerHTML"],vu2=["innerHTML"],yu2=["innerHTML"],gu2={class:"vuecal__flex",row:"",grow:""},Mu2={key:0,class:"vuecal__time-column"},ku2={class:"vuecal__time-cell-label"},xu2={key:1,class:"vuecal__flex vuecal__week-numbers",column:""},bu2=["wrap","column"],zu2=["onBlur","innerHTML"],Cu2=["innerHTML"],_u2=["innerHTML"],wu2=["wrap"],Hu2=["innerHTML"],Lu2=["innerHTML"],Vu2={key:2,class:"vuecal__cell-events-count"},Su2={key:3,class:"vuecal__no-event"},Nu2=["onBlur","innerHTML"],Au2=["innerHTML"],Tu2={key:2,class:"vuecal__event-time"},Eu2={key:0},Du2={key:1,class:"days-to-end"},Pu2=["innerHTML"],Ou2={key:0,class:"vuecal__scrollbar-check"};function Iu2(e,t,a,c,n,r){const i=s.resolveComponent("vuecal-header"),o=s.resolveComponent("all-day-bar"),l=s.resolveComponent("weekdays-headings"),f=s.resolveComponent("vuecal-cell");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__flex vuecal",r.cssClasses]),column:"",ref:"vuecal",lang:a.locale},[s.createVNode(i,{options:e.$props,"edit-events":r.editEvents,"view-props":{views:r.views,weekDaysInHeader:r.weekDaysInHeader},"week-days":r.weekDays,"has-splits":r.hasSplits,"day-splits":r.daySplits,"switch-to-narrower-view":r.switchToNarrowerView},s.createSlots({"arrow-prev":s.withCtx(()=>[s.renderSlot(e.$slots,"arrow-prev",{},()=>[t[0]||(t[0]=s.createTextVNode(" ")),t[1]||(t[1]=s.createElementVNode("i",{class:"angle"},null,-1)),t[2]||(t[2]=s.createTextVNode(" "))])]),"arrow-next":s.withCtx(()=>[s.renderSlot(e.$slots,"arrow-next",{},()=>[t[3]||(t[3]=s.createTextVNode(" ")),t[4]||(t[4]=s.createElementVNode("i",{class:"angle"},null,-1)),t[5]||(t[5]=s.createTextVNode(" "))])]),"today-button":s.withCtx(()=>[s.renderSlot(e.$slots,"today-button",{},()=>[s.createElementVNode("span",hu2,s.toDisplayString(n.texts.today),1)])]),title:s.withCtx(()=>[s.renderSlot(e.$slots,"title",{title:r.viewTitle,view:n.view},()=>[s.createTextVNode(s.toDisplayString(r.viewTitle),1)])]),_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:u,view:d})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:u,view:d})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:u})=>[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["options","edit-events","view-props","week-days","has-splits","day-splits","switch-to-narrower-view"]),a.hideBody?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",pu2,[s.createVNode(s.Transition,{name:`slide-fade--${n.transitionDirection}`,appear:a.transitions},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex",style:{"min-width":"100%"},key:a.transitions?n.view.id:!1,column:""},[a.showAllDayEvents&&r.hasTimeColumn&&(!r.cellOrSplitMinWidth||r.isDayView&&!a.minSplitWidth)?(s.openBlock(),s.createBlock(o,s.normalizeProps(s.mergeProps({key:0},r.allDayBar)),{event:s.withCtx(({event:u,view:d})=>[s.renderSlot(e.$slots,"event",{view:d,event:u},()=>[r.editEvents.title&&u.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>r.onEventTitleBlur(h,u),innerHTML:u.title},null,40,mu2)):u.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,vu2)):s.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,yu2)):s.createCommentVNode("",!0)])]),_:3},16)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__bg",{vuecal__flex:!r.hasTimeColumn}]),column:""},[s.createElementVNode("div",gu2,[r.hasTimeColumn?(s.openBlock(),s.createElementBlock("div",Mu2,[a.showAllDayEvents&&r.cellOrSplitMinWidth&&!(r.isDayView&&!a.minSplitWidth)?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__all-day-text",style:s.normalizeStyle({height:r.allDayBar.height})},[s.createElementVNode("span",null,s.toDisplayString(n.texts.allDay),1)],4)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.timeCells,(u,d)=>(s.openBlock(),s.createElementBlock("div",{class:"vuecal__time-cell",key:d,style:s.normalizeStyle(`height: ${a.timeCellHeight}px`)},[s.renderSlot(e.$slots,"time-cell",{hours:u.hours,minutes:u.minutes},()=>[t[6]||(t[6]=s.createElementVNode("span",{class:"vuecal__time-cell-line"},null,-1)),s.createElementVNode("span",ku2,s.toDisplayString(u.label),1)])],4))),128))])):s.createCommentVNode("",!0),a.showWeekNumbers&&r.isMonthView?(s.openBlock(),s.createElementBlock("div",xu2,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(6,u=>s.createElementVNode("div",{class:"vuecal__flex vuecal__week-number-cell",key:u,grow:""},[s.renderSlot(e.$slots,"week-number-cell",{week:r.getWeekNumber(u-1)},()=>[s.createTextVNode(s.toDisplayString(r.getWeekNumber(u-1)),1)])])),64))])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__flex vuecal__cells",`${n.view.id}-view`]),grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,column:!!r.cellOrSplitMinWidth},[r.cellOrSplitMinWidth&&r.isWeekView?(s.openBlock(),s.createBlock(l,{key:0,"transition-direction":n.transitionDirection,"week-days":r.weekDays,"switch-to-narrower-view":r.switchToNarrowerView,style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},s.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:u,view:d})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:u,view:d})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:u})=>[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["transition-direction","week-days","switch-to-narrower-view","style"])):r.hasSplits&&a.stickySplitLabels&&a.minSplitWidth?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.daySplits,(u,d)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",u.class||!1]),key:d},[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id},()=>[s.createTextVNode(s.toDisplayString(u.label),1)])],2))),128))],4)):s.createCommentVNode("",!0),a.showAllDayEvents&&r.hasTimeColumn&&(r.isWeekView&&r.cellOrSplitMinWidth||r.isDayView&&r.hasSplits&&a.minSplitWidth)?(s.openBlock(),s.createBlock(o,s.normalizeProps(s.mergeProps({key:2},r.allDayBar)),{event:s.withCtx(({event:u,view:d})=>[s.renderSlot(e.$slots,"event",{view:d,event:u},()=>[r.editEvents.title&&u.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>r.onEventTitleBlur(h,u),innerHTML:u.title},null,40,zu2)):u.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,Cu2)):s.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,_u2)):s.createCommentVNode("",!0)])]),_:3},16)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"vuecal__flex",ref:u=>n.cellsEl=u,grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.viewCells,(u,d)=>(s.openBlock(),s.createBlock(f,{key:d,options:e.$props,"edit-events":r.editEvents,data:u,"cell-width":a.hideWeekdays.length&&(r.isWeekView||r.isMonthView)&&r.cellWidth,"min-timestamp":r.minTimestamp,"max-timestamp":r.maxTimestamp,"cell-splits":r.hasSplits&&r.daySplits||[]},{"cell-content":s.withCtx(({events:h,split:p,selectCell:v})=>[s.renderSlot(e.$slots,"cell-content",{cell:u,view:n.view,goNarrower:v,events:h},()=>[p&&!a.stickySplitLabels?(s.openBlock(),s.createElementBlock("div",{key:0,class:"split-label",innerHTML:p.label},null,8,Hu2)):s.createCommentVNode("",!0),u.content?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__cell-date",innerHTML:u.content},null,8,Lu2)):s.createCommentVNode("",!0),(r.isMonthView&&!a.eventsOnMonthView||r.isYearsOrYearView&&a.eventsCountOnYearView)&&h.length?(s.openBlock(),s.createElementBlock("div",Vu2,[s.renderSlot(e.$slots,"events-count",{view:n.view,events:h},()=>[s.createTextVNode(s.toDisplayString(h.length),1)])])):s.createCommentVNode("",!0),!r.cellOrSplitHasEvents(h,p)&&r.isWeekOrDayView?(s.openBlock(),s.createElementBlock("div",Su2,[s.renderSlot(e.$slots,"no-event",{},()=>[s.createTextVNode(s.toDisplayString(n.texts.noEvent),1)])])):s.createCommentVNode("",!0)])]),event:s.withCtx(({event:h,view:p})=>[s.renderSlot(e.$slots,"event",{view:p,event:h},()=>[r.editEvents.title&&h.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:v=>r.onEventTitleBlur(v,h),innerHTML:h.title},null,40,Nu2)):h.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:h.title},null,8,Au2)):s.createCommentVNode("",!0),a.time&&!h.allDay&&!(r.isMonthView&&(h.allDay||a.showAllDayEvents==="short"))&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",Tu2,[s.createTextVNode(s.toDisplayString(n.utils.date.formatTime(h.start,r.TimeFormat)),1),h.endTimeMinutes?(s.openBlock(),s.createElementBlock("span",Eu2," - "+s.toDisplayString(n.utils.date.formatTime(h.end,r.TimeFormat,null,!0)),1)):s.createCommentVNode("",!0),h.daysCount>1&&(h.segments[u.formattedDate]||{}).isFirstDay?(s.openBlock(),s.createElementBlock("small",Du2," +"+s.toDisplayString(h.daysCount-1)+s.toDisplayString((n.texts.day[0]||"").toLowerCase()),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),h.content&&!(r.isMonthView&&h.allDay&&a.showAllDayEvents==="short")&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:3,class:"vuecal__event-content",innerHTML:h.content},null,8,Pu2)):s.createCommentVNode("",!0)])]),"no-event":s.withCtx(()=>[s.renderSlot(e.$slots,"no-event",{},()=>[s.createTextVNode(s.toDisplayString(n.texts.noEvent),1)])]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],12,wu2)],10,bu2)])],2)]))]),_:3},8,["name","appear"]),n.ready?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Ou2,t[7]||(t[7]=[s.createElementVNode("div",null,null,-1)])))]))],10,du2)}const p9=24*60,cF={weekDays:Array(7).fill(""),weekDaysShort:[],months:Array(12).fill(""),years:"",year:"",month:"",week:"",day:"",today:"",noEvent:"",allDay:"",deleteEvent:"",createEvent:"",dateFormat:"dddd MMMM D, YYYY",am:"am",pm:"pm"},W31=["years","year","month","week","day"],Y31=new _f2(cF),Bu2={name:"vue-cal",components:{"vuecal-cell":e71,"vuecal-header":Xf2,WeekdaysHeadings:Jr1,AllDayBar:uu2},provide(){return{vuecal:this,utils:this.utils,modules:this.modules,previous:this.previous,next:this.next,switchView:this.switchView,updateSelectedDate:this.updateSelectedDate,editEvents:this.editEvents,view:this.view,domEvents:this.domEvents}},props:{activeView:{type:String,default:"week"},allDayBarHeight:{type:[String,Number],default:"25px"},cellClickHold:{type:Boolean,default:!0},cellContextmenu:{type:Boolean,default:!1},clickToNavigate:{type:Boolean,default:!1},dblclickToNavigate:{type:Boolean,default:!0},disableDatePrototypes:{type:Boolean,default:!1},disableDays:{type:Array,default:()=>[]},disableViews:{type:Array,default:()=>[]},dragToCreateEvent:{type:Boolean,default:!0},dragToCreateThreshold:{type:Number,default:15},editableEvents:{type:[Boolean,Object],default:!1},events:{type:Array,default:()=>[]},eventsCountOnYearView:{type:Boolean,default:!1},eventsOnMonthView:{type:[Boolean,String],default:!1},hideBody:{type:Boolean,default:!1},hideTitleBar:{type:Boolean,default:!1},hideViewSelector:{type:Boolean,default:!1},hideWeekdays:{type:Array,default:()=>[]},hideWeekends:{type:Boolean,default:!1},locale:{type:[String,Object],default:"en"},maxDate:{type:[String,Date],default:""},minCellWidth:{type:Number,default:0},minDate:{type:[String,Date],default:""},minEventWidth:{type:Number,default:0},minSplitWidth:{type:Number,default:0},onEventClick:{type:[Function,null],default:null},onEventCreate:{type:[Function,null],default:null},onEventDblclick:{type:[Function,null],default:null},overlapsPerTimeStep:{type:Boolean,default:!1},resizeX:{type:Boolean,default:!1},selectedDate:{type:[String,Date],default:""},showAllDayEvents:{type:[Boolean,String],default:!1},showTimeInCells:{type:Boolean,default:!1},showWeekNumbers:{type:[Boolean,String],default:!1},snapToTime:{type:Number,default:0},small:{type:Boolean,default:!1},specialHours:{type:Object,default:()=>({})},splitDays:{type:Array,default:()=>[]},startWeekOnSunday:{type:Boolean,default:!1},stickySplitLabels:{type:Boolean,default:!1},time:{type:Boolean,default:!0},timeCellHeight:{type:Number,default:40},timeFormat:{type:String,default:""},timeFrom:{type:Number,default:0},timeStep:{type:Number,default:60},timeTo:{type:Number,default:p9},todayButton:{type:Boolean,default:!1},transitions:{type:Boolean,default:!0},twelveHour:{type:Boolean,default:!1},watchRealTime:{type:Boolean,default:!1},xsmall:{type:Boolean,default:!1}},data(){return{ready:!1,texts:{...cF},utils:{date:(this.disableDatePrototypes?Y31.removePrototypes():!1)||Y31,cell:null,event:null},modules:{dnd:null},cellsEl:null,view:{id:"",title:"",startDate:null,endDate:null,firstCellDate:null,lastCellDate:null,selectedDate:null,events:[]},eventIdIncrement:1,now:new Date,timeTickerIds:[null,null],domEvents:{resizeAnEvent:{_eid:null,start:null,split:null,segment:null,originalEndTimeMinutes:0,originalEnd:null,end:null,startCell:null,endCell:null},dragAnEvent:{_eid:null},dragCreateAnEvent:{startCursorY:null,start:null,split:null,event:null},focusAnEvent:{_eid:null,mousedUp:!1},clickHoldAnEvent:{_eid:null,timeout:1200,timeoutId:null},dblTapACell:{taps:0,timeout:500},clickHoldACell:{cellId:null,split:null,timeout:1200,timeoutId:null,eventCreated:!1},cancelClickEventCreation:!1},mutableEvents:[],transitionDirection:"right"}},methods:{async loadLocale(e){if(typeof this.locale=="object"){this.texts=Object.assign({},cF,e),this.utils.date.updateTexts(this.texts);return}const t=await Cf2(Object.assign({"./i18n/ar.json":()=>Promise.resolve().then(()=>require("./ar.es-490d67d4.cjs")),"./i18n/bg.json":()=>Promise.resolve().then(()=>require("./bg.es-bedb7f61.cjs")),"./i18n/bn.json":()=>Promise.resolve().then(()=>require("./bn.es-ae104b8b.cjs")),"./i18n/bs.json":()=>Promise.resolve().then(()=>require("./bs.es-a97484a8.cjs")),"./i18n/ca.json":()=>Promise.resolve().then(()=>require("./ca.es-b69e2d93.cjs")),"./i18n/cs.json":()=>Promise.resolve().then(()=>require("./cs.es-8ab45a8b.cjs")),"./i18n/da.json":()=>Promise.resolve().then(()=>require("./da.es-20dd8f16.cjs")),"./i18n/de.json":()=>Promise.resolve().then(()=>require("./de.es-ce7009ce.cjs")),"./i18n/el.json":()=>Promise.resolve().then(()=>require("./el.es-81fc2434.cjs")),"./i18n/en.json":()=>Promise.resolve().then(()=>require("./en.es-4459b8a4.cjs")),"./i18n/es.json":()=>Promise.resolve().then(()=>require("./es.es-647dceed.cjs")),"./i18n/et.json":()=>Promise.resolve().then(()=>require("./et.es-482e868f.cjs")),"./i18n/fa.json":()=>Promise.resolve().then(()=>require("./fa.es-2c02433c.cjs")),"./i18n/fi.json":()=>Promise.resolve().then(()=>require("./fi.es-ef678961.cjs")),"./i18n/fr.json":()=>Promise.resolve().then(()=>require("./fr.es-5a023084.cjs")),"./i18n/he.json":()=>Promise.resolve().then(()=>require("./he.es-be02cfd4.cjs")),"./i18n/hr.json":()=>Promise.resolve().then(()=>require("./hr.es-5c9e8373.cjs")),"./i18n/hu.json":()=>Promise.resolve().then(()=>require("./hu.es-642f7e7a.cjs")),"./i18n/id.json":()=>Promise.resolve().then(()=>require("./id.es-ebe22526.cjs")),"./i18n/is.json":()=>Promise.resolve().then(()=>require("./is.es-960071df.cjs")),"./i18n/it.json":()=>Promise.resolve().then(()=>require("./it.es-f0d29f01.cjs")),"./i18n/ja.json":()=>Promise.resolve().then(()=>require("./ja.es-25a3e4cf.cjs")),"./i18n/ka.json":()=>Promise.resolve().then(()=>require("./ka.es-92c6a6ae.cjs")),"./i18n/ko.json":()=>Promise.resolve().then(()=>require("./ko.es-204ba1aa.cjs")),"./i18n/lt.json":()=>Promise.resolve().then(()=>require("./lt.es-afedf093.cjs")),"./i18n/mn.json":()=>Promise.resolve().then(()=>require("./mn.es-ced8667c.cjs")),"./i18n/nl.json":()=>Promise.resolve().then(()=>require("./nl.es-cd172132.cjs")),"./i18n/no.json":()=>Promise.resolve().then(()=>require("./no.es-d5134e5f.cjs")),"./i18n/pl.json":()=>Promise.resolve().then(()=>require("./pl.es-9f065e71.cjs")),"./i18n/pt-br.json":()=>Promise.resolve().then(()=>require("./pt-br.es-e0a38ecf.cjs")),"./i18n/pt-pt.json":()=>Promise.resolve().then(()=>require("./pt-pt.es-e1c57c62.cjs")),"./i18n/ro.json":()=>Promise.resolve().then(()=>require("./ro.es-a7e3858d.cjs")),"./i18n/ru.json":()=>Promise.resolve().then(()=>require("./ru.es-d26a8889.cjs")),"./i18n/sk.json":()=>Promise.resolve().then(()=>require("./sk.es-bfa34829.cjs")),"./i18n/sl.json":()=>Promise.resolve().then(()=>require("./sl.es-c79ab9b5.cjs")),"./i18n/sq.json":()=>Promise.resolve().then(()=>require("./sq.es-a902c2a8.cjs")),"./i18n/sr.json":()=>Promise.resolve().then(()=>require("./sr.es-2e429690.cjs")),"./i18n/sv.json":()=>Promise.resolve().then(()=>require("./sv.es-59b30e12.cjs")),"./i18n/tr.json":()=>Promise.resolve().then(()=>require("./tr.es-11b49d30.cjs")),"./i18n/uk.json":()=>Promise.resolve().then(()=>require("./uk.es-cfb0b466.cjs")),"./i18n/vi.json":()=>Promise.resolve().then(()=>require("./vi.es-daedaaa5.cjs")),"./i18n/zh-cn.json":()=>Promise.resolve().then(()=>require("./zh-cn.es-efbc1299.cjs")),"./i18n/zh-hk.json":()=>Promise.resolve().then(()=>require("./zh-hk.es-b6a4db4a.cjs"))}),`./i18n/${e}.json`,3);this.texts=Object.assign({},cF,t),this.utils.date.updateTexts(this.texts)},loadDragAndDrop(){Promise.resolve().then(()=>require("./drag-and-drop.es-cdb95efc.cjs")).then(e=>{const{DragAndDrop:t}=e;this.modules.dnd=new t(this)}).catch(()=>console.warn("Vue Cal: Missing drag & drop module."))},validateView(e){return W31.includes(e)||(console.error(`Vue Cal: invalid active-view parameter provided: "${e}".
|
|
8632
8632
|
A valid view must be one of: ${W31.join(", ")}.`),e="week"),this.enabledViews.includes(e)||(console.warn(`Vue Cal: the provided active-view "${e}" is disabled. Using the "${this.enabledViews[0]}" view instead.`),e=this.enabledViews[0]),e},switchToNarrowerView(e=null){this.transitionDirection="right";const t=this.enabledViews[this.enabledViews.indexOf(this.view.id)+1];t&&this.switchView(t,e)},switchView(e,t=null,a=!1){e=this.validateView(e);const c=this.utils.date,n=this.view.startDate&&this.view.startDate.getTime();if(this.transitions&&a){if(this.view.id===e)return;const o=this.enabledViews;this.transitionDirection=o.indexOf(this.view.id)>o.indexOf(e)?"left":"right"}const r=this.view.id;switch(this.view.events=[],this.view.id=e,this.view.firstCellDate=null,this.view.lastCellDate=null,t||(t=this.view.selectedDate||this.view.startDate),e){case"years":{this.view.startDate=new Date(Math.floor(t.getFullYear()/25)*25||2e3,0,1),this.view.endDate=new Date(this.view.startDate.getFullYear()+25,0,1),this.view.endDate.setSeconds(-1);break}case"year":{this.view.startDate=new Date(t.getFullYear(),0,1),this.view.endDate=new Date(t.getFullYear()+1,0,1),this.view.endDate.setSeconds(-1);break}case"month":{this.view.startDate=new Date(t.getFullYear(),t.getMonth(),1),this.view.endDate=new Date(t.getFullYear(),t.getMonth()+1,1),this.view.endDate.setSeconds(-1);let o=new Date(this.view.startDate);if(o.getDay()!==(this.startWeekOnSunday?0:1)&&(o=c.getPreviousFirstDayOfWeek(o,this.startWeekOnSunday)),this.view.firstCellDate=o,this.view.lastCellDate=c.addDays(o,41),this.view.lastCellDate.setHours(23,59,59,0),this.hideWeekends){if([0,6].includes(this.view.firstCellDate.getDay())){const l=this.view.firstCellDate.getDay()===6&&!this.startWeekOnSunday?2:1;this.view.firstCellDate=c.addDays(this.view.firstCellDate,l)}if([0,6].includes(this.view.startDate.getDay())){const l=this.view.startDate.getDay()===6?2:1;this.view.startDate=c.addDays(this.view.startDate,l)}if([0,6].includes(this.view.lastCellDate.getDay())){const l=this.view.lastCellDate.getDay()===0&&!this.startWeekOnSunday?2:1;this.view.lastCellDate=c.subtractDays(this.view.lastCellDate,l)}if([0,6].includes(this.view.endDate.getDay())){const l=this.view.endDate.getDay()===0?2:1;this.view.endDate=c.subtractDays(this.view.endDate,l)}}break}case"week":{t=c.getPreviousFirstDayOfWeek(t,this.startWeekOnSunday);const o=this.hideWeekends?5:7;this.view.startDate=this.hideWeekends&&this.startWeekOnSunday?c.addDays(t,1):t,this.view.startDate.setHours(0,0,0,0),this.view.endDate=c.addDays(t,o),this.view.endDate.setSeconds(-1);break}case"day":{this.view.startDate=t,this.view.startDate.setHours(0,0,0,0),this.view.endDate=new Date(t),this.view.endDate.setHours(23,59,59,0);break}}this.addEventsToView();const i=this.view.startDate&&this.view.startDate.getTime();if(!(r===e&&i===n)&&(this.$emit("update:activeView",e),this.ready)){const o=this.view.startDate,l={view:e,startDate:o,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate,outOfScopeEvents:this.view.outOfScopeEvents.map(this.cleanupEvent)}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:c.getWeek(this.startWeekOnSunday?c.addDays(o,1):o)}:{}};this.$emit("view-change",l)}},previous(){this.previousNext(!1)},next(){this.previousNext()},previousNext(e=!0){const t=this.utils.date;this.transitionDirection=e?"right":"left";const a=e?1:-1;let c=null;const{startDate:n,id:r}=this.view;switch(r){case"years":c=new Date(n.getFullYear()+25*a,0,1);break;case"year":c=new Date(n.getFullYear()+1*a,1,1);break;case"month":c=new Date(n.getFullYear(),n.getMonth()+1*a,1);break;case"week":c=t[e?"addDays":"subtractDays"](t.getPreviousFirstDayOfWeek(n,this.startWeekOnSunday),7);break;case"day":c=t[e?"addDays":"subtractDays"](n,1);const i=c.getDay(),o=this.startWeekOnSunday?i:(i||7)-1;if(this.weekDays[o].hide){const f=this.weekDays.map((d,h)=>({...d,i:h}));let u=0;e?([...f.slice(o),...f].find(d=>(u++,!d.hide)).i,u--):[...f,...f.slice(0,o)].reverse().find(d=>(u++,!d.hide)).i,c=t[e?"addDays":"subtractDays"](c,u)}break}c&&this.switchView(r,c)},addEventsToView(e=[]){const t=this.utils.event,{startDate:a,endDate:c,firstCellDate:n,lastCellDate:r}=this.view;if(e.length||(this.view.events=[]),e=e.length?e:[...this.mutableEvents],!e||this.isYearsOrYearView&&!this.eventsCountOnYearView)return;let i=e.filter(o=>t.eventInRange(o,a,c));!this.isYearsOrYearView&&!(this.isMonthView&&!this.eventsOnMonthView)&&(i=i.map(o=>o.daysCount>1?t.createEventSegments(o,n||a,r||c):o)),this.view.events.push(...i),this.isMonthView&&(this.view.outOfScopeEvents=[],e.forEach(o=>{(t.eventInRange(o,n,a)||t.eventInRange(o,c,r))&&(this.view.events.some(l=>l._eid===o._eid)||this.view.outOfScopeEvents.push(o))}))},findAncestor(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e},isDOMElementAnEvent(e){return e.classList.contains("vuecal__event")||this.findAncestor(e,"vuecal__event")},onMouseMove(e){const{resizeAnEvent:t,dragAnEvent:a,dragCreateAnEvent:c}=this.domEvents;t._eid===null&&a._eid===null&&!c.start||(e.preventDefault(),t._eid?this.eventResizing(e):this.dragToCreateEvent&&c.start&&this.eventDragCreation(e))},onMouseUp(e){const{focusAnEvent:t,resizeAnEvent:a,clickHoldAnEvent:c,clickHoldACell:n,dragCreateAnEvent:r}=this.domEvents,{_eid:i}=c,{_eid:o}=a;let l=!1;const{event:f,start:u}=r,d=this.isDOMElementAnEvent(e.target),h=t.mousedUp;if(t.mousedUp=!1,d&&(this.domEvents.cancelClickEventCreation=!0),n.eventCreated)return;if(o){const{originalEnd:v,originalEndTimeMinutes:m,endTimeMinutes:y}=a,g=this.view.events.find(M=>M._eid===a._eid);if(l=y&&y!==m,g&&g.end.getTime()!==v.getTime()){const M=this.mutableEvents.find(b=>b._eid===a._eid);M.endTimeMinutes=g.endTimeMinutes,M.end=g.end;const x=this.cleanupEvent(g),k={...this.cleanupEvent(g),end:v,endTimeMinutes:g.originalEndTimeMinutes};this.$emit("event-duration-change",{event:x,oldDate:a.originalEnd,originalEvent:k}),this.$emit("event-change",{event:x,originalEvent:k})}g&&(g.resizing=!1),a._eid=null,a.start=null,a.split=null,a.segment=null,a.originalEndTimeMinutes=null,a.originalEnd=null,a.endTimeMinutes=null,a.startCell=null,a.endCell=null}else u&&(f&&(this.emitWithEvent("event-drag-create",f),r.event.resizing=!1),r.start=null,r.split=null,r.event=null);!d&&!o&&this.unfocusEvent(),c.timeoutId&&!i&&(clearTimeout(c.timeoutId),c.timeoutId=null),n.timeoutId&&(clearTimeout(n.timeoutId),n.timeoutId=null);const p=typeof this.onEventClick=="function";if(h&&!l&&!i&&!f&&p){let v=this.view.events.find(m=>m._eid===t._eid);return!v&&this.isMonthView&&(v=this.view.outOfScopeEvents.find(m=>m._eid===t._eid)),v&&this.onEventClick(v,e)}},onKeyUp(e){e.keyCode===27&&this.cancelDelete()},eventResizing(e){const{resizeAnEvent:t}=this.domEvents,a=this.view.events.find(f=>f._eid===t._eid)||{segments:{}},{minutes:c,cursorCoords:n}=this.minutesAtCursor(e),r=a.segments&&a.segments[t.segment],{date:i,event:o}=this.utils,l=Math.max(c,this.timeFrom+1,(r||a).startTimeMinutes+1);if(a.endTimeMinutes=t.endTimeMinutes=l,this.snapToTime){const f=a.endTimeMinutes+this.snapToTime/2;a.endTimeMinutes=f-f%this.snapToTime}if(r&&(r.endTimeMinutes=a.endTimeMinutes),a.end.setHours(0,a.endTimeMinutes,a.endTimeMinutes===p9?-1:0,0),this.resizeX&&this.isWeekView){a.daysCount=i.countDays(a.start,a.end);const f=this.cellsEl,u=f.offsetWidth/f.childElementCount,d=Math.floor(n.x/u);if(t.startCell===null&&(t.startCell=d-(a.daysCount-1)),t.endCell!==d){t.endCell=d;const h=i.addDays(a.start,d-t.startCell),p=Math.max(i.countDays(a.start,h),1);if(p!==a.daysCount){let v=null;p>a.daysCount?v=o.addEventSegment(a):v=o.removeEventSegment(a),t.segment=v,a.endTimeMinutes+=.001}}}this.$emit("event-resizing",{_eid:a._eid,end:a.end,endTimeMinutes:a.endTimeMinutes})},eventDragCreation(e){const{dragCreateAnEvent:t}=this.domEvents,{start:a,startCursorY:c,split:n}=t,r=new Date(a),{minutes:i,cursorCoords:{y:o}}=this.minutesAtCursor(e);if(!(!t.event&&Math.abs(c-o)<this.dragToCreateThreshold))if(t.event){if(r.setHours(0,i,i===p9?-1:0,0),this.snapToTime){let u=r.getHours()*60+r.getMinutes();const d=u+this.snapToTime/2;u=d-d%this.snapToTime,r.setHours(0,u,0,0)}const l=a<r,{event:f}=t;f.start=l?a:r,f.end=l?r:a,f.startTimeMinutes=f.start.getHours()*60+f.start.getMinutes(),f.endTimeMinutes=f.end.getHours()*60+f.end.getMinutes()}else{if(t.event=this.utils.event.createAnEvent(a,1,{split:n}),!t.event){t.start=null,t.split=null,t.event=null;return}t.event.resizing=!0}},unfocusEvent(){const{focusAnEvent:e,clickHoldAnEvent:t}=this.domEvents,a=this.view.events.find(c=>c._eid===(e._eid||t._eid));e._eid=null,t._eid=null,a&&(a.focused=!1,a.deleting=!1)},cancelDelete(){const{clickHoldAnEvent:e}=this.domEvents;if(e._eid){const t=this.view.events.find(a=>a._eid===e._eid);t&&(t.deleting=!1),e._eid=null,e.timeoutId=null}},onEventTitleBlur(e,t){if(t.title===e.target.innerHTML)return;const a=t.title;t.title=e.target.innerHTML;const c=this.cleanupEvent(t);this.$emit("event-title-change",{event:c,oldTitle:a}),this.$emit("event-change",{event:c,originalEvent:{...c,title:a}})},updateMutableEvents(){const e=this.utils.date;this.mutableEvents=[],this.events.forEach(t=>{const a=typeof t.start=="string"?e.stringToDate(t.start):t.start,c=e.formatDateLite(a),n=e.dateToMinutes(a);let r=null;typeof t.end=="string"&&t.end.includes("24:00")?(r=new Date(t.end.replace(" 24:00","")),r.setHours(23,59,59,0)):r=typeof t.end=="string"?e.stringToDate(t.end):t.end;let i=e.formatDateLite(r),o=e.dateToMinutes(r);(!o||o===p9)&&(!this.time||typeof t.end=="string"&&t.end.length===10?r.setHours(23,59,59,0):r.setSeconds(r.getSeconds()-1),i=e.formatDateLite(r),o=p9);const l=c!==i;t=Object.assign({...this.utils.event.eventDefaults},t,{_eid:`${this._.uid}_${this.eventIdIncrement++}`,segments:l?{}:null,start:a,startTimeMinutes:n,end:r,endTimeMinutes:o,daysCount:l?e.countDays(a,r):1,class:t.class}),this.mutableEvents.push(t)})},minutesAtCursor(e){return this.utils.cell.minutesAtCursor(e)},createEvent(e,t,a={}){return this.utils.event.createAnEvent(e,t,a)},cleanupEvent(e){return e={...e},["segments","deletable","deleting","titleEditable","resizable","resizing","draggable","dragging","draggingStatic","focused"].forEach(a=>{a in e&&delete e[a]}),e.repeat||delete e.repeat,e},emitWithEvent(e,t){this.$emit(e,this.cleanupEvent(t))},updateSelectedDate(e){if(e&&typeof e=="string"?e=this.utils.date.stringToDate(e):e=new Date(e),e&&e instanceof Date){const{selectedDate:t}=this.view;t&&(this.transitionDirection=t.getTime()>e.getTime()?"left":"right"),e.setHours(0,0,0,0),(!t||t.getTime()!==e.getTime())&&(this.view.selectedDate=e),this.switchView(this.view.id)}this.$emit("update:selected-date",this.view.selectedDate)},getWeekNumber(e){const t=this.utils.date,c=this.firstCellDateWeekNumber+e,n=this.startWeekOnSunday?1:0;return c>52?t.getWeek(t.addDays(this.view.firstCellDate,7*e+n)):c},timeTick(){this.now=new Date,this.timeTickerIds[1]=setTimeout(this.timeTick,60*1e3)},updateDateTexts(){this.utils.date.updateTexts(this.texts)},alignWithScrollbar(){if(document.getElementById("vuecal-align-with-scrollbar"))return;const e=this.$refs.vuecal.getElementsByClassName("vuecal__scrollbar-check")[0],t=e.offsetWidth-e.children[0].offsetWidth;if(t){const a=document.createElement("style");a.id="vuecal-align-with-scrollbar",a.type="text/css",a.innerHTML=`.vuecal--view-with-time .vuecal__weekdays-headings,.vuecal--view-with-time .vuecal__all-day {padding-right: ${t}px}`,document.head.appendChild(a)}},cellOrSplitHasEvents(e,t=null){return e.length&&(!t&&e.length||t&&e.some(a=>a.split===t.id))}},created(){this.utils.cell=new Hf2(this),this.utils.event=new Vf2(this,this.utils.date),this.loadLocale(this.locale),this.editEvents.drag&&this.loadDragAndDrop(),this.updateMutableEvents(this.events),this.view.id=this.currentView,this.selectedDate?this.updateSelectedDate(this.selectedDate):(this.view.selectedDate=new Date,this.switchView(this.currentView)),this.time&&this.watchRealTime&&(this.timeTickerIds[0]=setTimeout(this.timeTick,(60-this.now.getSeconds())*1e3))},mounted(){const e=this.utils.date,t="ontouchstart"in window,{resize:a,drag:c,create:n,delete:r,title:i}=this.editEvents,o=this.onEventClick&&typeof this.onEventClick=="function";(a||c||n||r||i||o)&&window.addEventListener(t?"touchend":"mouseup",this.onMouseUp),(a||c||n&&this.dragToCreateEvent)&&window.addEventListener(t?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),i&&window.addEventListener("keyup",this.onKeyUp),t&&(this.$refs.vuecal.oncontextmenu=function(u){u.preventDefault(),u.stopPropagation()}),this.hideBody||this.alignWithScrollbar();const l=this.view.startDate,f={view:this.view.id,startDate:l,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:e.getWeek(this.startWeekOnSunday?e.addDays(l,1):l)}:{}};this.$emit("ready",f),this.ready=!0},beforeUnmount(){const e="ontouchstart"in window;window.removeEventListener(e?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),window.removeEventListener(e?"touchend":"mouseup",this.onMouseUp),window.removeEventListener("keyup",this.onKeyUp),this.timeTickerIds[0]&&clearTimeout(this.timeTickerIds[0]),this.timeTickerIds[1]&&clearTimeout(this.timeTickerIds[1]),this.timeTickerIds=[null,null]},computed:{editEvents(){return this.editableEvents&&typeof this.editableEvents=="object"?{title:!!this.editableEvents.title,drag:!!this.editableEvents.drag,resize:!!this.editableEvents.resize,create:!!this.editableEvents.create,delete:!!this.editableEvents.delete}:{title:!!this.editableEvents,drag:!!this.editableEvents,resize:!!this.editableEvents,create:!!this.editableEvents,delete:!!this.editableEvents}},views(){return{years:{label:this.texts.years,enabled:!this.disableViews.includes("years")},year:{label:this.texts.year,enabled:!this.disableViews.includes("year")},month:{label:this.texts.month,enabled:!this.disableViews.includes("month")},week:{label:this.texts.week,enabled:!this.disableViews.includes("week")},day:{label:this.texts.day,enabled:!this.disableViews.includes("day")}}},currentView(){return this.validateView(this.activeView)},enabledViews(){return Object.keys(this.views).filter(e=>this.views[e].enabled)},hasTimeColumn(){return this.time&&this.isWeekOrDayView},isShortMonthView(){return this.isMonthView&&this.eventsOnMonthView==="short"},firstCellDateWeekNumber(){const e=this.utils.date,t=this.view.firstCellDate;return e.getWeek(this.startWeekOnSunday?e.addDays(t,1):t)},timeCells(){const e=[];for(let t=this.timeFrom,a=this.timeTo;t<a;t+=this.timeStep)e.push({hours:Math.floor(t/60),minutes:t%60,label:this.utils.date.formatTime(t,this.TimeFormat),value:t});return e},TimeFormat(){return this.timeFormat||(this.twelveHour?"h:mm{am}":"HH:mm")},daySplits(){return(this.splitDays.filter(e=>!e.hide)||[]).map((e,t)=>({...e,id:e.id||t+1}))},hasSplits(){return this.daySplits.length&&this.isWeekOrDayView},hasShortEvents(){return this.showAllDayEvents==="short"},cellOrSplitMinWidth(){let e=null;return this.hasSplits&&this.minSplitWidth?e=this.visibleDaysCount*this.minSplitWidth*this.daySplits.length:this.minCellWidth&&this.isWeekView&&(e=this.visibleDaysCount*this.minCellWidth),e},allDayBar(){let e=this.allDayBarHeight||null;return e&&!isNaN(e)&&(e+="px"),{cells:this.viewCells,options:this.$props,label:this.texts.allDay,shortEvents:this.hasShortEvents,daySplits:this.hasSplits&&this.daySplits||[],cellOrSplitMinWidth:this.cellOrSplitMinWidth,height:e}},minTimestamp(){let e=null;return this.minDate&&typeof this.minDate=="string"?e=this.utils.date.stringToDate(this.minDate):this.minDate&&this.minDate instanceof Date&&(e=this.minDate),e?e.getTime():null},maxTimestamp(){let e=null;return this.maxDate&&typeof this.maxDate=="string"?e=this.utils.date.stringToDate(this.maxDate):this.maxDate&&this.maxDate instanceof Date&&(e=this.maxDate),e?e.getTime():null},weekDays(){let{weekDays:e,weekDaysShort:t=[]}=this.texts;return e=e.slice(0).map((a,c)=>({label:a,...t.length?{short:t[c]}:{},hide:this.hideWeekends&&c>=5||this.hideWeekdays.length&&this.hideWeekdays.includes(c+1)})),this.startWeekOnSunday&&e.unshift(e.pop()),e},weekDaysInHeader(){return this.isMonthView||this.isWeekView&&!this.minCellWidth&&!(this.hasSplits&&this.minSplitWidth)},months(){return this.texts.months.map(e=>({label:e}))},specialDayHours(){return!this.specialHours||!Object.keys(this.specialHours).length?{}:Array(7).fill("").map((e,t)=>{let a=this.specialHours[t+1]||[];return Array.isArray(a)||(a=[a]),e=[],a.forEach(({from:c,to:n,class:r,label:i},o)=>{e[o]={day:t+1,from:[null,void 0].includes(c)?null:c*1,to:[null,void 0].includes(n)?null:n*1,class:r||"",label:i||""}}),e})},viewTitle(){const e=this.utils.date;let t="";const a=this.view.startDate,c=a.getFullYear(),n=a.getMonth();switch(this.view.id){case"years":{t=this.texts.years;break}case"year":{t=c;break}case"month":{t=`${this.months[n].label} ${c}`;break}case"week":{const r=this.view.endDate,i=a.getFullYear();let o=this.texts.months[a.getMonth()];this.xsmall&&(o=o.substring(0,3));let l=`${o} ${i}`;if(r.getMonth()!==a.getMonth()){const f=r.getFullYear();let u=this.texts.months[r.getMonth()];this.xsmall&&(u=u.substring(0,3)),i===f?l=`${o} - ${u} ${i}`:this.small?l=`${o.substring(0,3)} ${i} - ${u.substring(0,3)} ${f}`:l=`${o} ${i} - ${u} ${f}`}t=`${this.texts.week} ${e.getWeek(this.startWeekOnSunday?e.addDays(a,1):a)} (${l})`;break}case"day":{t=this.utils.date.formatDate(a,this.texts.dateFormat,this.texts);break}}return t},viewCells(){const e=this.utils.date;let t=[],a=null,c=!1;this.watchRealTime||(this.now=new Date);const n=this.now;switch(this.view.id){case"years":{a=this.view.startDate.getFullYear(),t=Array.apply(null,Array(25)).map((r,i)=>{const o=new Date(a+i,0,1),l=new Date(a+i+1,0,1);return l.setSeconds(-1),{startDate:o,formattedDate:e.formatDateLite(o),endDate:l,content:a+i,current:a+i===n.getFullYear()}});break}case"year":{a=this.view.startDate.getFullYear(),t=Array.apply(null,Array(12)).map((r,i)=>{const o=new Date(a,i,1),l=new Date(a,i+1,1);return l.setSeconds(-1),{startDate:o,formattedDate:e.formatDateLite(o),endDate:l,content:this.xsmall?this.months[i].label.substr(0,3):this.months[i].label,current:i===n.getMonth()&&a===n.getFullYear()}});break}case"month":{const r=this.view.startDate.getMonth(),i=new Date(this.view.firstCellDate);c=!1,t=Array.apply(null,Array(42)).map((o,l)=>{const f=e.addDays(i,l),u=new Date(f);u.setHours(23,59,59,0);const d=!c&&e.isToday(f)&&!c++;return{startDate:f,formattedDate:e.formatDateLite(f),endDate:u,content:f.getDate(),today:d,outOfScope:f.getMonth()!==r,class:`vuecal__cell--day${f.getDay()||7}`}}),(this.hideWeekends||this.hideWeekdays.length)&&(t=t.filter(o=>{const l=o.startDate.getDay()||7;return!(this.hideWeekends&&l>=6||this.hideWeekdays.length&&this.hideWeekdays.includes(l))}));break}case"week":{c=!1;const r=this.view.startDate,i=this.weekDays;t=i.map((o,l)=>{const f=e.addDays(r,this.startWeekOnSunday&&this.hideWeekends?l-1:l),u=new Date(f);u.setHours(23,59,59,0);const d=(f.getDay()||7)-1;return{startDate:f,formattedDate:e.formatDateLite(f),endDate:u,today:!c&&e.isToday(f)&&!c++,specialHours:this.specialDayHours[d]||[]}}).filter((o,l)=>!i[l].hide);break}case"day":{const r=this.view.startDate,i=new Date(this.view.startDate);i.setHours(23,59,59,0);const o=(r.getDay()||7)-1;t=[{startDate:r,formattedDate:e.formatDateLite(r),endDate:i,today:e.isToday(r),specialHours:this.specialDayHours[o]||[]}];break}}return t},visibleDaysCount(){return this.isDayView?1:7-this.weekDays.reduce((e,t)=>e+t.hide,0)},cellWidth(){return 100/this.visibleDaysCount},cssClasses(){const{resizeAnEvent:e,dragAnEvent:t,dragCreateAnEvent:a}=this.domEvents;return{[`vuecal--${this.view.id}-view`]:!0,[`vuecal--${this.locale}`]:this.locale,"vuecal--no-time":!this.time,"vuecal--view-with-time":this.hasTimeColumn,"vuecal--week-numbers":this.showWeekNumbers&&this.isMonthView,"vuecal--twelve-hour":this.twelveHour,"vuecal--click-to-navigate":this.clickToNavigate,"vuecal--hide-weekends":this.hideWeekends,"vuecal--split-days":this.hasSplits,"vuecal--sticky-split-labels":this.hasSplits&&this.stickySplitLabels,"vuecal--overflow-x":this.minCellWidth&&this.isWeekView||this.hasSplits&&this.minSplitWidth,"vuecal--small":this.small,"vuecal--xsmall":this.xsmall,"vuecal--resizing-event":e._eid,"vuecal--drag-creating-event":a.event,"vuecal--dragging-event":t._eid,"vuecal--events-on-month-view":this.eventsOnMonthView,"vuecal--short-events":this.isMonthView&&this.eventsOnMonthView==="short","vuecal--has-touch":typeof window<"u"&&"ontouchstart"in window}},isYearsOrYearView(){return["years","year"].includes(this.view.id)},isYearsView(){return this.view.id==="years"},isYearView(){return this.view.id==="year"},isMonthView(){return this.view.id==="month"},isWeekOrDayView(){return["week","day"].includes(this.view.id)},isWeekView(){return this.view.id==="week"},isDayView(){return this.view.id==="day"}},watch:{events:{handler(e,t){this.updateMutableEvents(e),this.addEventsToView()},deep:!0},locale(e){this.loadLocale(e)},selectedDate(e){this.updateSelectedDate(e)},activeView(e){this.switchView(e)}}},Ru2=qs(Bu2,[["render",Iu2]]);function G31(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,c)}return a}function ea(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?G31(Object(a),!0).forEach(function(c){Fu2(e,c,a[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):G31(Object(a)).forEach(function(c){Object.defineProperty(e,c,Object.getOwnPropertyDescriptor(a,c))})}return e}function Fu2(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Z31(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((a,c)=>(t.includes(c)||(a[c]=s.unref(e[c])),a),{})}function XF(e){return typeof e=="function"}function $u2(e){return s.isReactive(e)||s.isReadonly(e)}function t71(e,t,a){let c=e;const n=t.split(".");for(let r=0;r<n.length;r++){if(!c[n[r]])return a;c=c[n[r]]}return c}function KU(e,t,a){return s.computed(()=>e.some(c=>t71(t,c,{[a]:!1})[a]))}function X31(e,t,a){return s.computed(()=>e.reduce((c,n)=>{const r=t71(t,n,{[a]:!1})[a]||[];return c.concat(r)},[]))}function a71(e,t,a,c){return e.call(c,s.unref(t),s.unref(a),c)}function c71(e){return e.$valid!==void 0?!e.$valid:!e}function qu2(e,t,a,c,n,r,i){let{$lazy:o,$rewardEarly:l}=n,f=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],u=arguments.length>8?arguments[8]:void 0,d=arguments.length>9?arguments[9]:void 0,h=arguments.length>10?arguments[10]:void 0;const p=s.ref(!!c.value),v=s.ref(0);a.value=!1;const m=s.watch([t,c].concat(f,h),()=>{if(o&&!c.value||l&&!d.value&&!a.value)return;let y;try{y=a71(e,t,u,i)}catch(g){y=Promise.reject(g)}v.value++,a.value=!!v.value,p.value=!1,Promise.resolve(y).then(g=>{v.value--,a.value=!!v.value,r.value=g,p.value=c71(g)}).catch(g=>{v.value--,a.value=!!v.value,r.value=g,p.value=!0})},{immediate:!0,deep:typeof t=="object"});return{$invalid:p,$unwatch:m}}function ju2(e,t,a,c,n,r,i,o){let{$lazy:l,$rewardEarly:f}=c;const u=()=>({}),d=s.computed(()=>{if(l&&!a.value||f&&!o.value)return!1;let h=!0;try{const p=a71(e,t,i,r);n.value=p,h=c71(p)}catch(p){n.value=p}return h});return{$unwatch:u,$invalid:d}}function Uu2(e,t,a,c,n,r,i,o,l,f,u){const d=s.ref(!1),h=e.$params||{},p=s.ref(null);let v,m;e.$async?{$invalid:v,$unwatch:m}=qu2(e.$validator,t,d,a,c,p,n,e.$watchTargets,l,f,u):{$invalid:v,$unwatch:m}=ju2(e.$validator,t,a,c,p,n,l,f);const y=e.$message;return{$message:XF(y)?s.computed(()=>y(Z31({$pending:d,$invalid:v,$params:Z31(h),$model:t,$response:p,$validator:r,$propertyPath:o,$property:i}))):y||"",$params:h,$pending:d,$invalid:v,$response:p,$unwatch:m}}function Wu2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=s.unref(e),a=Object.keys(t),c={},n={},r={};let i=null;return a.forEach(o=>{const l=t[o];switch(!0){case XF(l.$validator):c[o]=l;break;case XF(l):c[o]={$validator:l};break;case o==="$validationGroups":i=l;break;case o.startsWith("$"):r[o]=l;break;default:n[o]=l}}),{rules:c,nestedValidators:n,config:r,validationGroups:i}}const Yu2="__root";function Gu2(e,t,a,c,n,r,i,o,l){const f=Object.keys(e),u=c.get(n,e),d=s.ref(!1),h=s.ref(!1),p=s.ref(0);if(u){if(!u.$partial)return u;u.$unwatch(),d.value=u.$dirty.value}const v={$dirty:d,$path:n,$touch:()=>{d.value||(d.value=!0)},$reset:()=>{d.value&&(d.value=!1)},$commit:()=>{}};return f.length?(f.forEach(m=>{v[m]=Uu2(e[m],t,v.$dirty,r,i,m,a,n,l,h,p)}),v.$externalResults=s.computed(()=>o.value?[].concat(o.value).map((m,y)=>({$propertyPath:n,$property:a,$validator:"$externalResults",$uid:`${n}-externalResult-${y}`,$message:m,$params:{},$response:null,$pending:!1})):[]),v.$invalid=s.computed(()=>{const m=f.some(y=>s.unref(v[y].$invalid));return h.value=m,!!v.$externalResults.value.length||m}),v.$pending=s.computed(()=>f.some(m=>s.unref(v[m].$pending))),v.$error=s.computed(()=>v.$dirty.value?v.$pending.value||v.$invalid.value:!1),v.$silentErrors=s.computed(()=>f.filter(m=>s.unref(v[m].$invalid)).map(m=>{const y=v[m];return s.reactive({$propertyPath:n,$property:a,$validator:m,$uid:`${n}-${m}`,$message:y.$message,$params:y.$params,$response:y.$response,$pending:y.$pending})}).concat(v.$externalResults.value)),v.$errors=s.computed(()=>v.$dirty.value?v.$silentErrors.value:[]),v.$unwatch=()=>f.forEach(m=>{v[m].$unwatch()}),v.$commit=()=>{h.value=!0,p.value=Date.now()},c.set(n,e,v),v):(u&&c.set(n,e,v),v)}function Zu2(e,t,a,c,n,r,i){const o=Object.keys(e);return o.length?o.reduce((l,f)=>(l[f]=_G({validations:e[f],state:t,key:f,parentKey:a,resultsCache:c,globalConfig:n,instance:r,externalResults:i}),l),{}):{}}function Xu2(e,t,a){const c=s.computed(()=>[t,a].filter(v=>v).reduce((v,m)=>v.concat(Object.values(s.unref(m))),[])),n=s.computed({get(){return e.$dirty.value||(c.value.length?c.value.every(v=>v.$dirty):!1)},set(v){e.$dirty.value=v}}),r=s.computed(()=>{const v=s.unref(e.$silentErrors)||[],m=c.value.filter(y=>(s.unref(y).$silentErrors||[]).length).reduce((y,g)=>y.concat(...g.$silentErrors),[]);return v.concat(m)}),i=s.computed(()=>{const v=s.unref(e.$errors)||[],m=c.value.filter(y=>(s.unref(y).$errors||[]).length).reduce((y,g)=>y.concat(...g.$errors),[]);return v.concat(m)}),o=s.computed(()=>c.value.some(v=>v.$invalid)||s.unref(e.$invalid)||!1),l=s.computed(()=>c.value.some(v=>s.unref(v.$pending))||s.unref(e.$pending)||!1),f=s.computed(()=>c.value.some(v=>v.$dirty)||c.value.some(v=>v.$anyDirty)||n.value),u=s.computed(()=>n.value?l.value||o.value:!1),d=()=>{e.$touch(),c.value.forEach(v=>{v.$touch()})},h=()=>{e.$commit(),c.value.forEach(v=>{v.$commit()})},p=()=>{e.$reset(),c.value.forEach(v=>{v.$reset()})};return c.value.length&&c.value.every(v=>v.$dirty)&&d(),{$dirty:n,$errors:i,$invalid:o,$anyDirty:f,$error:u,$pending:l,$touch:d,$reset:p,$silentErrors:r,$commit:h}}function _G(e){let{validations:t,state:a,key:c,parentKey:n,childResults:r,resultsCache:i,globalConfig:o={},instance:l,externalResults:f}=e;const u=n?`${n}.${c}`:c,{rules:d,nestedValidators:h,config:p,validationGroups:v}=Wu2(t),m=ea(ea({},o),p),y=c?s.computed(()=>{const W=s.unref(a);return W?s.unref(W[c]):void 0}):a,g=ea({},s.unref(f)||{}),M=s.computed(()=>{const W=s.unref(f);return c?W?s.unref(W[c]):void 0:W}),x=Gu2(d,y,c,i,u,m,l,M,a),k=Zu2(h,y,u,i,m,l,M),b={};v&&Object.entries(v).forEach(W=>{let[I,E]=W;b[I]={$invalid:KU(E,k,"$invalid"),$error:KU(E,k,"$error"),$pending:KU(E,k,"$pending"),$errors:X31(E,k,"$errors"),$silentErrors:X31(E,k,"$silentErrors")}});const{$dirty:_,$errors:C,$invalid:H,$anyDirty:V,$error:N,$pending:L,$touch:w,$reset:P,$silentErrors:j,$commit:T}=Xu2(x,k,r),R=c?s.computed({get:()=>s.unref(y),set:W=>{_.value=!0;const I=s.unref(a),E=s.unref(f);E&&(E[c]=g[c]),s.isRef(I[c])?I[c].value=W:I[c]=W}}):null;c&&m.$autoDirty&&s.watch(y,()=>{_.value||w();const W=s.unref(f);W&&(W[c]=g[c])},{flush:"sync"});async function Y(){return w(),m.$rewardEarly&&(T(),await s.nextTick()),await s.nextTick(),new Promise(W=>{if(!L.value)return W(!H.value);const I=s.watch(L,()=>{W(!H.value),I()})})}function e1(W){return(r.value||{})[W]}function Z(){s.isRef(f)?f.value=g:Object.keys(g).length===0?Object.keys(f).forEach(W=>{delete f[W]}):Object.assign(f,g)}return s.reactive(ea(ea(ea({},x),{},{$model:R,$dirty:_,$error:N,$errors:C,$invalid:H,$anyDirty:V,$pending:L,$touch:w,$reset:P,$path:u||Yu2,$silentErrors:j,$validate:Y,$commit:T},r&&{$getResultsForChild:e1,$clearExternalResults:Z,$validationGroups:b}),k))}class Ku2{constructor(){this.storage=new Map}set(t,a,c){this.storage.set(t,{rules:a,result:c})}checkRulesValidity(t,a,c){const n=Object.keys(c),r=Object.keys(a);return r.length!==n.length||!r.every(o=>n.includes(o))?!1:r.every(o=>a[o].$params?Object.keys(a[o].$params).every(l=>s.unref(c[o].$params[l])===s.unref(a[o].$params[l])):!0)}get(t,a){const c=this.storage.get(t);if(!c)return;const{rules:n,result:r}=c,i=this.checkRulesValidity(t,a,n),o=r.$unwatch?r.$unwatch:()=>({});return i?r:{$dirty:r.$dirty,$partial:!0,$unwatch:o}}}const nF={COLLECT_ALL:!0,COLLECT_NONE:!1},K31=Symbol("vuelidate#injectChildResults"),Q31=Symbol("vuelidate#removeChildResults");function Qu2(e){let{$scope:t,instance:a}=e;const c={},n=s.ref([]),r=s.computed(()=>n.value.reduce((u,d)=>(u[d]=s.unref(c[d]),u),{}));function i(u,d){let{$registerAs:h,$scope:p,$stopPropagation:v}=d;v||t===nF.COLLECT_NONE||p===nF.COLLECT_NONE||t!==nF.COLLECT_ALL&&t!==p||(c[h]=u,n.value.push(h))}a.__vuelidateInjectInstances=[].concat(a.__vuelidateInjectInstances||[],i);function o(u){n.value=n.value.filter(d=>d!==u),delete c[u]}a.__vuelidateRemoveInstances=[].concat(a.__vuelidateRemoveInstances||[],o);const l=s.inject(K31,[]);s.provide(K31,a.__vuelidateInjectInstances);const f=s.inject(Q31,[]);return s.provide(Q31,a.__vuelidateRemoveInstances),{childResults:r,sendValidationResultsToParent:l,removeValidationResultsFromParent:f}}function n71(e){return new Proxy(e,{get(t,a){return typeof t[a]=="object"?n71(t[a]):s.computed(()=>t[a])}})}let J31=0;function r71(e,t){var a;let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(c=e,e=void 0,t=void 0);let{$registerAs:n,$scope:r=nF.COLLECT_ALL,$stopPropagation:i,$externalResults:o,currentVueInstance:l}=c;const f=l||((a=s.getCurrentInstance())===null||a===void 0?void 0:a.proxy),u=f?f.$options:{};n||(J31+=1,n=`_vuelidate_${J31}`);const d=s.ref({}),h=new Ku2,{childResults:p,sendValidationResultsToParent:v,removeValidationResultsFromParent:m}=f?Qu2({$scope:r,instance:f}):{childResults:s.ref({})};if(!e&&u.validations){const y=u.validations;t=s.ref({}),s.onBeforeMount(()=>{t.value=f,s.watch(()=>XF(y)?y.call(t.value,new n71(t.value)):y,g=>{d.value=_G({validations:g,state:t,childResults:p,resultsCache:h,globalConfig:c,instance:f,externalResults:o||f.vuelidateExternalResults})},{immediate:!0})}),c=u.validationsConfig||c}else{const y=s.isRef(e)||$u2(e)?e:s.reactive(e||{});s.watch(y,g=>{d.value=_G({validations:g,state:t,childResults:p,resultsCache:h,globalConfig:c,instance:f??{},externalResults:o})},{immediate:!0})}return f&&(v.forEach(y=>y(d,{$registerAs:n,$scope:r,$stopPropagation:i})),s.onBeforeUnmount(()=>m.forEach(y=>y(n)))),s.computed(()=>ea(ea({},s.unref(d.value)),p.value))}var Ju2=Object.defineProperty,ed2=(e,t,a)=>t in e?Ju2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,A1=(e,t,a)=>(ed2(e,typeof t!="symbol"?t+"":t,a),a);const td2={first:{light:"#2a2a2a",dark:"#f5f5f5",contrast:{light:"#fcfcfc",dark:"#202020"}},second:{light:"#363636",dark:"#dfe0df",contrast:{light:"#f4f4f4",dark:"#2b2b2b"}},third:{light:"#484848",dark:"#cfcfcf",contrast:{light:"#e8e8e8",dark:"#262626"}},primary:{light:"#218c5a",dark:"#218c5a",contrast:{light:"#ffffff",dark:"#ffffff"}},secondary:{light:"#218c5a",dark:"#218c5a",contrast:{light:"#ffffff",dark:"#ffffff"}},success:{light:"#4caf50",dark:"#6bbf55",contrast:{light:"#ffffff",dark:"#ffffff"}},warning:{light:"#ff9800",dark:"#ff8f1f",contrast:{light:"#ffffff",dark:"#ffffff"}},danger:{light:"#f44336",dark:"#ff5e50",contrast:{light:"#ffffff",dark:"#ffffff"}},grey:{light:"#6d6d6d",dark:"#a3a3a3",contrast:{light:"#ffffff",dark:"#ffffff"}},red:{light:"#e91e63",dark:"#e64a77",contrast:{light:"#ffffff",dark:"#ffffff"}},purple:{light:"#9c27b0",dark:"#8e24aa",contrast:{light:"#ffffff",dark:"#ffffff"}},sky:{light:"#00acc1",dark:"#40c4ff",contrast:{light:"#ffffff",dark:"#ffffff"}},aqua:{light:"#00bcd4",dark:"#4db6ac",contrast:{light:"#ffffff",dark:"#ffffff"}},beige:{light:"#f4e1a1",dark:"#ffd54f",contrast:{light:"#ffffff",dark:"#ffffff"}},info:{light:"#039be5",dark:"#29b6f6",contrast:{light:"#ffffff",dark:"#ffffff"}},link:{light:"#1976d2",dark:"#2196f3",contrast:{light:"#ffffff",dark:"#ffffff"}},error:{light:"#d32f2f",dark:"#f44336",contrast:{light:"#ffffff",dark:"#ffffff"}},overlay:{light:"#00000080",dark:"#00000055",contrast:{light:"#ffffff",dark:"#ffffff"}}};var ad2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cd2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i71={exports:{}};(function(e,t){(function(a,c){e.exports=c()})(self,()=>(()=>{var a={423:(r,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.removeDuplicateItems=void 0,i.removeDuplicateItems=function(o,l="id"){return o.filter((f,u,d)=>u===d.findIndex(h=>h[l]===f[l]))}},621:function(r,i,o){var l=this&&this.__awaiter||function(d,h,p,v){return new(p||(p=Promise))(function(m,y){function g(k){try{x(v.next(k))}catch(b){y(b)}}function M(k){try{x(v.throw(k))}catch(b){y(b)}}function x(k){var b;k.done?m(k.value):(b=k.value,b instanceof p?b:new p(function(_){_(b)})).then(g,M)}x((v=v.apply(d,h||[])).next())})},f=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(i,"__esModule",{value:!0}),i.getCoinValueInUsd=void 0;const u=f(o(425));i.getCoinValueInUsd=function(d){return l(this,void 0,void 0,function*(){try{return d==="ARS"?1/(yield u.default.get("https://dolarapi.com/v1/dolares/blue")).data.venta:["BTC","ETH","LTC","USDT"].includes(d)?(yield u.default.get("https://api.coincap.io/v2/assets")).data.data.find(h=>h.symbol===d).priceUsd:1/(yield u.default.get("https://v6.exchangerate-api.com/v6/65057543fdcbb1629e21c3a2/latest/USD")).data.conversion_rates[d]}catch{throw new Error(`Unable to get the value of ${d} at this time. Try again later.`)}})}},985:(r,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.getNextDayStartDate=i.getPreviousDayStartDate=i.getCurrentDayStartDate=i.getNextMonthStartDate=i.getPreviousMonthStartDate=i.getCurrentMonthStartDate=i.getNextYearStartDate=i.getPreviousYearStartDate=i.getCurrentYearStartDate=i.getIsoTime=i.getIsoDate=void 0,i.getIsoDate=function(o){return(o||new Date).toISOString().split("T")[0]},i.getIsoTime=function(o){return(o||new Date).toISOString().split("T")[1]},i.getCurrentYearStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),0,1)},i.getPreviousYearStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear()-1,0,1)},i.getNextYearStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear()+1,0,1)},i.getCurrentMonthStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth(),1)},i.getPreviousMonthStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth()-1,1)},i.getNextMonthStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth()+1,1)},i.getCurrentDayStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate())},i.getPreviousDayStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate()-1)},i.getNextDayStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate()+1)}},905:(r,i)=>{function o(l,f,u="round"){return Math[u](l/f)*f}Object.defineProperty(i,"__esModule",{value:!0}),i.roundDecimals=i.roundNumber=i.multiplyWithUnits=i.sumWithUnits=void 0,i.sumWithUnits=function(l,...f){var u;const d=((u=l.match(/[a-zA-Z%]+/))===null||u===void 0?void 0:u[0])||"";return`${[l,...f].reduce((h,p)=>h+parseFloat(p),0)}${d}`},i.multiplyWithUnits=function(l,f){var u;const d=((u=l.match(/[a-zA-Z%]+/))===null||u===void 0?void 0:u[0])||"";return`${parseFloat(l)*f}${d}`},i.roundNumber=o,i.roundDecimals=function(l,f=0,u="round"){return o(l,1/Math.pow(10,f),u)}},563:(r,i)=>{function o(u){return JSON.parse(JSON.stringify(u))}function l(u){return!(!u||typeof u!="object"||Array.isArray(u))}function f(u,d){for(const h in d)l(d[h])?(u[h]||(u[h]={}),f(u[h],d[h])):u[h]=d[h]}Object.defineProperty(i,"__esModule",{value:!0}),i.filterKeysDeep=i.filterKeys=i.mergeDeep=i.merge=i.isObject=i.removeProps=i.copyAvailableFields=i.cloneObjectProperties=void 0,i.cloneObjectProperties=o,i.copyAvailableFields=function u(d,h){if(d&&h)for(const p in h)h.hasOwnProperty(p)&&d.hasOwnProperty(p)&&(typeof h[p]=="object"&&h[p]!==null?u(d[p],h[p]):d[p]=h[p])},i.removeProps=function(u,d){const h=o(u);return(Array.isArray(d)?d:[d]).forEach(p=>delete h[p]),h},i.isObject=l,i.merge=f,i.mergeDeep=function(u,d){const h={};return f(h,u),f(h,d),h},i.filterKeys=function(u,d){const h={},p=Object.keys(u);for(const v of p)h[v]=d[v];return h},i.filterKeysDeep=function u(d,h){const p={},v=Object.keys(d);for(const m of v)l(d[m])&&l(h[m])?p[m]=u(d[m],h[m]):p[m]=h[m];return p}},849:(r,i)=>{function o(l){return l.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()}Object.defineProperty(i,"__esModule",{value:!0}),i.accentMap=i.generateCode=i.normalizeText=i.camelToKebab=i.camelToUpperSnake=i.camelToSnake=i.getFirstChartInUppercase=i.getFirstChartInLowercase=void 0,i.getFirstChartInLowercase=function(l){return`${l.charAt(0).toLowerCase()}${l.slice(1)}`},i.getFirstChartInUppercase=function(l){return`${l.charAt(0).toUpperCase()}${l.slice(1)}`},i.camelToSnake=o,i.camelToUpperSnake=function(l){return o(l).toUpperCase()},i.camelToKebab=function(l){return l.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").replace(/([A-Z])/g,"-$1").replace(/^-/,"").replace(/-+/g,"-").toLowerCase()},i.normalizeText=function(l){return l.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()},i.generateCode=function(l){const f=Math.pow(10,l-1),u=Math.pow(10,l)-1;return Math.floor(f+Math.random()*(u-f)).toString()},i.accentMap={a:"[aáàäâãå]",á:"[aáàäâãå]",à:"[aáàäâãå]",ä:"[aáàäâãå]",â:"[aáàäâãå]",ã:"[aáàäâãå]",å:"[aáàäâãå]",e:"[eéèëê]",é:"[eéèëê]",è:"[eéèëê]",ë:"[eéèëê]",ê:"[eéèëê]",i:"[iíìïî]",í:"[iíìïî]",ì:"[iíìïî]",ï:"[iíìïî]",î:"[iíìïî]",o:"[oóòöôõ]",ó:"[oóòöôõ]",ò:"[oóòöôõ]",ö:"[oóòöôõ]",ô:"[oóòöôõ]",õ:"[oóòöôõ]",u:"[uúùüû]",ú:"[uúùüû]",ù:"[uúùüû]",ü:"[uúùüû]",û:"[uúùüû]",n:"[nñ]",ñ:"[nñ]",c:"[cç]",ç:"[cç]"}},927:function(r,i,o){var l=this&&this.__createBinding||(Object.create?function(u,d,h,p){p===void 0&&(p=h);var v=Object.getOwnPropertyDescriptor(d,h);v&&!("get"in v?!d.__esModule:v.writable||v.configurable)||(v={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(u,p,v)}:function(u,d,h,p){p===void 0&&(p=h),u[p]=d[h]}),f=this&&this.__exportStar||function(u,d){for(var h in u)h==="default"||Object.prototype.hasOwnProperty.call(d,h)||l(d,u,h)};Object.defineProperty(i,"__esModule",{value:!0}),f(o(423),i),f(o(621),i),f(o(985),i),f(o(905),i),f(o(563),i),f(o(849),i),f(o(574),i)},574:(r,i)=>{Object.defineProperty(i,"__esModule",{value:!0})},425:(r,i,o)=>{function l(O,D){return function(){return O.apply(D,arguments)}}const{toString:f}=Object.prototype,{getPrototypeOf:u}=Object,d=(h=Object.create(null),O=>{const D=f.call(O);return h[D]||(h[D]=D.slice(8,-1).toLowerCase())});var h;const p=O=>(O=O.toLowerCase(),D=>d(D)===O),v=O=>D=>typeof D===O,{isArray:m}=Array,y=v("undefined"),g=p("ArrayBuffer"),M=v("string"),x=v("function"),k=v("number"),b=O=>O!==null&&typeof O=="object",_=O=>{if(d(O)!=="object")return!1;const D=u(O);return!(D!==null&&D!==Object.prototype&&Object.getPrototypeOf(D)!==null||Symbol.toStringTag in O||Symbol.iterator in O)},C=p("Date"),H=p("File"),V=p("Blob"),N=p("FileList"),L=p("URLSearchParams");function w(O,D,{allOwnKeys:q=!1}={}){if(O==null)return;let X,J;if(typeof O!="object"&&(O=[O]),m(O))for(X=0,J=O.length;X<J;X++)D.call(null,O[X],X,O);else{const r1=q?Object.getOwnPropertyNames(O):Object.keys(O),n1=r1.length;let z1;for(X=0;X<n1;X++)z1=r1[X],D.call(null,O[z1],z1,O)}}function P(O,D){D=D.toLowerCase();const q=Object.keys(O);let X,J=q.length;for(;J-- >0;)if(X=q[J],D===X.toLowerCase())return X;return null}const j=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:o.g,T=O=>!y(O)&&O!==j,R=(Y=typeof Uint8Array<"u"&&u(Uint8Array),O=>Y&&O instanceof Y);var Y;const e1=p("HTMLFormElement"),Z=(({hasOwnProperty:O})=>(D,q)=>O.call(D,q))(Object.prototype),W=p("RegExp"),I=(O,D)=>{const q=Object.getOwnPropertyDescriptors(O),X={};w(q,(J,r1)=>{let n1;(n1=D(J,r1,O))!==!1&&(X[r1]=n1||J)}),Object.defineProperties(O,X)},E="abcdefghijklmnopqrstuvwxyz",S="0123456789",U={DIGIT:S,ALPHA:E,ALPHA_DIGIT:E+E.toUpperCase()+S},G=p("AsyncFunction");var A={isArray:m,isArrayBuffer:g,isBuffer:function(O){return O!==null&&!y(O)&&O.constructor!==null&&!y(O.constructor)&&x(O.constructor.isBuffer)&&O.constructor.isBuffer(O)},isFormData:O=>{let D;return O&&(typeof FormData=="function"&&O instanceof FormData||x(O.append)&&((D=d(O))==="formdata"||D==="object"&&x(O.toString)&&O.toString()==="[object FormData]"))},isArrayBufferView:function(O){let D;return D=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(O):O&&O.buffer&&g(O.buffer),D},isString:M,isNumber:k,isBoolean:O=>O===!0||O===!1,isObject:b,isPlainObject:_,isUndefined:y,isDate:C,isFile:H,isBlob:V,isRegExp:W,isFunction:x,isStream:O=>b(O)&&x(O.pipe),isURLSearchParams:L,isTypedArray:R,isFileList:N,forEach:w,merge:function O(){const{caseless:D}=T(this)&&this||{},q={},X=(J,r1)=>{const n1=D&&P(q,r1)||r1;_(q[n1])&&_(J)?q[n1]=O(q[n1],J):_(J)?q[n1]=O({},J):m(J)?q[n1]=J.slice():q[n1]=J};for(let J=0,r1=arguments.length;J<r1;J++)arguments[J]&&w(arguments[J],X);return q},extend:(O,D,q,{allOwnKeys:X}={})=>(w(D,(J,r1)=>{q&&x(J)?O[r1]=l(J,q):O[r1]=J},{allOwnKeys:X}),O),trim:O=>O.trim?O.trim():O.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:O=>(O.charCodeAt(0)===65279&&(O=O.slice(1)),O),inherits:(O,D,q,X)=>{O.prototype=Object.create(D.prototype,X),O.prototype.constructor=O,Object.defineProperty(O,"super",{value:D.prototype}),q&&Object.assign(O.prototype,q)},toFlatObject:(O,D,q,X)=>{let J,r1,n1;const z1={};if(D=D||{},O==null)return D;do{for(J=Object.getOwnPropertyNames(O),r1=J.length;r1-- >0;)n1=J[r1],X&&!X(n1,O,D)||z1[n1]||(D[n1]=O[n1],z1[n1]=!0);O=q!==!1&&u(O)}while(O&&(!q||q(O,D))&&O!==Object.prototype);return D},kindOf:d,kindOfTest:p,endsWith:(O,D,q)=>{O=String(O),(q===void 0||q>O.length)&&(q=O.length),q-=D.length;const X=O.indexOf(D,q);return X!==-1&&X===q},toArray:O=>{if(!O)return null;if(m(O))return O;let D=O.length;if(!k(D))return null;const q=new Array(D);for(;D-- >0;)q[D]=O[D];return q},forEachEntry:(O,D)=>{const q=(O&&O[Symbol.iterator]).call(O);let X;for(;(X=q.next())&&!X.done;){const J=X.value;D.call(O,J[0],J[1])}},matchAll:(O,D)=>{let q;const X=[];for(;(q=O.exec(D))!==null;)X.push(q);return X},isHTMLForm:e1,hasOwnProperty:Z,hasOwnProp:Z,reduceDescriptors:I,freezeMethods:O=>{I(O,(D,q)=>{if(x(O)&&["arguments","caller","callee"].indexOf(q)!==-1)return!1;const X=O[q];x(X)&&(D.enumerable=!1,"writable"in D?D.writable=!1:D.set||(D.set=()=>{throw Error("Can not rewrite read-only method '"+q+"'")}))})},toObjectSet:(O,D)=>{const q={},X=J=>{J.forEach(r1=>{q[r1]=!0})};return m(O)?X(O):X(String(O).split(D)),q},toCamelCase:O=>O.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(D,q,X){return q.toUpperCase()+X}),noop:()=>{},toFiniteNumber:(O,D)=>(O=+O,Number.isFinite(O)?O:D),findKey:P,global:j,isContextDefined:T,ALPHABET:U,generateString:(O=16,D=U.ALPHA_DIGIT)=>{let q="";const{length:X}=D;for(;O--;)q+=D[Math.random()*X|0];return q},isSpecCompliantForm:function(O){return!!(O&&x(O.append)&&O[Symbol.toStringTag]==="FormData"&&O[Symbol.iterator])},toJSONObject:O=>{const D=new Array(10),q=(X,J)=>{if(b(X)){if(D.indexOf(X)>=0)return;if(!("toJSON"in X)){D[J]=X;const r1=m(X)?[]:{};return w(X,(n1,z1)=>{const w1=q(n1,J+1);!y(w1)&&(r1[z1]=w1)}),D[J]=void 0,r1}}return X};return q(O,0)},isAsyncFn:G,isThenable:O=>O&&(b(O)||x(O))&&x(O.then)&&x(O.catch)};function B(O,D,q,X,J){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=O,this.name="AxiosError",D&&(this.code=D),q&&(this.config=q),X&&(this.request=X),J&&(this.response=J)}A.inherits(B,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Q=B.prototype,c1={};function K(O){return A.isPlainObject(O)||A.isArray(O)}function a1(O){return A.endsWith(O,"[]")?O.slice(0,-2):O}function F(O,D,q){return O?O.concat(D).map(function(X,J){return X=a1(X),!q&&J?"["+X+"]":X}).join(q?".":""):D}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(O=>{c1[O]={value:O}}),Object.defineProperties(B,c1),Object.defineProperty(Q,"isAxiosError",{value:!0}),B.from=(O,D,q,X,J,r1)=>{const n1=Object.create(Q);return A.toFlatObject(O,n1,function(z1){return z1!==Error.prototype},z1=>z1!=="isAxiosError"),B.call(n1,O.message,D,q,X,J),n1.cause=O,n1.name=O.name,r1&&Object.assign(n1,r1),n1};const l1=A.toFlatObject(A,{},null,function(O){return/^is[A-Z]/.test(O)});function k1(O,D,q){if(!A.isObject(O))throw new TypeError("target must be an object");D=D||new FormData;const X=(q=A.toFlatObject(q,{metaTokens:!0,dots:!1,indexes:!1},!1,function(P1,Z1){return!A.isUndefined(Z1[P1])})).metaTokens,J=q.visitor||H1,r1=q.dots,n1=q.indexes,z1=(q.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(D);if(!A.isFunction(J))throw new TypeError("visitor must be a function");function w1(P1){if(P1===null)return"";if(A.isDate(P1))return P1.toISOString();if(!z1&&A.isBlob(P1))throw new B("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(P1)||A.isTypedArray(P1)?z1&&typeof Blob=="function"?new Blob([P1]):Buffer.from(P1):P1}function H1(P1,Z1,I1){let J1=P1;if(P1&&!I1&&typeof P1=="object"){if(A.endsWith(Z1,"{}"))Z1=X?Z1:Z1.slice(0,-2),P1=JSON.stringify(P1);else if(A.isArray(P1)&&function(v2){return A.isArray(v2)&&!v2.some(K)}(P1)||(A.isFileList(P1)||A.endsWith(Z1,"[]"))&&(J1=A.toArray(P1)))return Z1=a1(Z1),J1.forEach(function(v2,X2){!A.isUndefined(v2)&&v2!==null&&D.append(n1===!0?F([Z1],X2,r1):n1===null?Z1:Z1+"[]",w1(v2))}),!1}return!!K(P1)||(D.append(F(I1,Z1,r1),w1(P1)),!1)}const x1=[],O1=Object.assign(l1,{defaultVisitor:H1,convertValue:w1,isVisitable:K});if(!A.isObject(O))throw new TypeError("data must be an object");return function P1(Z1,I1){if(!A.isUndefined(Z1)){if(x1.indexOf(Z1)!==-1)throw Error("Circular reference detected in "+I1.join("."));x1.push(Z1),A.forEach(Z1,function(J1,v2){(!(A.isUndefined(J1)||J1===null)&&J.call(D,J1,A.isString(v2)?v2.trim():v2,I1,O1))===!0&&P1(J1,I1?I1.concat(v2):[v2])}),x1.pop()}}(O),D}function f1(O){const D={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(O).replace(/[!'()~]|%20|%00/g,function(q){return D[q]})}function t1(O,D){this._pairs=[],O&&k1(O,this,D)}const u1=t1.prototype;function o1(O){return encodeURIComponent(O).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function p1(O,D,q){if(!D)return O;const X=q&&q.encode||o1,J=q&&q.serialize;let r1;if(r1=J?J(D,q):A.isURLSearchParams(D)?D.toString():new t1(D,q).toString(X),r1){const n1=O.indexOf("#");n1!==-1&&(O=O.slice(0,n1)),O+=(O.indexOf("?")===-1?"?":"&")+r1}return O}u1.append=function(O,D){this._pairs.push([O,D])},u1.toString=function(O){const D=O?function(q){return O.call(this,q,f1)}:f1;return this._pairs.map(function(q){return D(q[0])+"="+D(q[1])},"").join("&")};var b1=class{constructor(){this.handlers=[]}use(O,D,q){return this.handlers.push({fulfilled:O,rejected:D,synchronous:!!q&&q.synchronous,runWhen:q?q.runWhen:null}),this.handlers.length-1}eject(O){this.handlers[O]&&(this.handlers[O]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(O){A.forEach(this.handlers,function(D){D!==null&&O(D)})}},v1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},C1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:t1,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]};const D1=typeof window<"u"&&typeof document<"u",R1=(B1=typeof navigator<"u"&&navigator.product,D1&&["ReactNative","NativeScript","NS"].indexOf(B1)<0);var B1;const Y1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var G1={...Object.freeze({__proto__:null,hasBrowserEnv:D1,hasStandardBrowserWebWorkerEnv:Y1,hasStandardBrowserEnv:R1}),...C1};function n2(O){function D(q,X,J,r1){let n1=q[r1++];if(n1==="__proto__")return!0;const z1=Number.isFinite(+n1),w1=r1>=q.length;return n1=!n1&&A.isArray(J)?J.length:n1,w1?(A.hasOwnProp(J,n1)?J[n1]=[J[n1],X]:J[n1]=X,!z1):(J[n1]&&A.isObject(J[n1])||(J[n1]=[]),D(q,X,J[n1],r1)&&A.isArray(J[n1])&&(J[n1]=function(H1){const x1={},O1=Object.keys(H1);let P1;const Z1=O1.length;let I1;for(P1=0;P1<Z1;P1++)I1=O1[P1],x1[I1]=H1[I1];return x1}(J[n1])),!z1)}if(A.isFormData(O)&&A.isFunction(O.entries)){const q={};return A.forEachEntry(O,(X,J)=>{D(function(r1){return A.matchAll(/\w+|\[(\w*)]/g,r1).map(n1=>n1[0]==="[]"?"":n1[1]||n1[0])}(X),J,q,0)}),q}return null}const o2={transitional:v1,adapter:["xhr","http"],transformRequest:[function(O,D){const q=D.getContentType()||"",X=q.indexOf("application/json")>-1,J=A.isObject(O);if(J&&A.isHTMLForm(O)&&(O=new FormData(O)),A.isFormData(O))return X?JSON.stringify(n2(O)):O;if(A.isArrayBuffer(O)||A.isBuffer(O)||A.isStream(O)||A.isFile(O)||A.isBlob(O))return O;if(A.isArrayBufferView(O))return O.buffer;if(A.isURLSearchParams(O))return D.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),O.toString();let r1;if(J){if(q.indexOf("application/x-www-form-urlencoded")>-1)return function(n1,z1){return k1(n1,new G1.classes.URLSearchParams,Object.assign({visitor:function(w1,H1,x1,O1){return G1.isNode&&A.isBuffer(w1)?(this.append(H1,w1.toString("base64")),!1):O1.defaultVisitor.apply(this,arguments)}},z1))}(O,this.formSerializer).toString();if((r1=A.isFileList(O))||q.indexOf("multipart/form-data")>-1){const n1=this.env&&this.env.FormData;return k1(r1?{"files[]":O}:O,n1&&new n1,this.formSerializer)}}return J||X?(D.setContentType("application/json",!1),function(n1,z1,w1){if(A.isString(n1))try{return(0,JSON.parse)(n1),A.trim(n1)}catch(H1){if(H1.name!=="SyntaxError")throw H1}return(0,JSON.stringify)(n1)}(O)):O}],transformResponse:[function(O){const D=this.transitional||o2.transitional,q=D&&D.forcedJSONParsing,X=this.responseType==="json";if(O&&A.isString(O)&&(q&&!this.responseType||X)){const J=!(D&&D.silentJSONParsing)&&X;try{return JSON.parse(O)}catch(r1){if(J)throw r1.name==="SyntaxError"?B.from(r1,B.ERR_BAD_RESPONSE,this,null,this.response):r1}}return O}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:G1.classes.FormData,Blob:G1.classes.Blob},validateStatus:function(O){return O>=200&&O<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],O=>{o2.headers[O]={}});var q1=o2;const p2=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),E2=Symbol("internals");function h2(O){return O&&String(O).trim().toLowerCase()}function y2(O){return O===!1||O==null?O:A.isArray(O)?O.map(y2):String(O)}function ee(O,D,q,X,J){return A.isFunction(X)?X.call(this,D,q):(J&&(D=q),A.isString(D)?A.isString(X)?D.indexOf(X)!==-1:A.isRegExp(X)?X.test(D):void 0:void 0)}class d1{constructor(D){D&&this.set(D)}set(D,q,X){const J=this;function r1(z1,w1,H1){const x1=h2(w1);if(!x1)throw new Error("header name must be a non-empty string");const O1=A.findKey(J,x1);(!O1||J[O1]===void 0||H1===!0||H1===void 0&&J[O1]!==!1)&&(J[O1||w1]=y2(z1))}const n1=(z1,w1)=>A.forEach(z1,(H1,x1)=>r1(H1,x1,w1));return A.isPlainObject(D)||D instanceof this.constructor?n1(D,q):A.isString(D)&&(D=D.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(D.trim())?n1((z1=>{const w1={};let H1,x1,O1;return z1&&z1.split(`
|
|
8633
8633
|
`).forEach(function(P1){O1=P1.indexOf(":"),H1=P1.substring(0,O1).trim().toLowerCase(),x1=P1.substring(O1+1).trim(),!H1||w1[H1]&&p2[H1]||(H1==="set-cookie"?w1[H1]?w1[H1].push(x1):w1[H1]=[x1]:w1[H1]=w1[H1]?w1[H1]+", "+x1:x1)}),w1})(D),q):D!=null&&r1(q,D,X),this}get(D,q){if(D=h2(D)){const X=A.findKey(this,D);if(X){const J=this[X];if(!q)return J;if(q===!0)return function(r1){const n1=Object.create(null),z1=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let w1;for(;w1=z1.exec(r1);)n1[w1[1]]=w1[2];return n1}(J);if(A.isFunction(q))return q.call(this,J,X);if(A.isRegExp(q))return q.exec(J);throw new TypeError("parser must be boolean|regexp|function")}}}has(D,q){if(D=h2(D)){const X=A.findKey(this,D);return!(!X||this[X]===void 0||q&&!ee(0,this[X],X,q))}return!1}delete(D,q){const X=this;let J=!1;function r1(n1){if(n1=h2(n1)){const z1=A.findKey(X,n1);!z1||q&&!ee(0,X[z1],z1,q)||(delete X[z1],J=!0)}}return A.isArray(D)?D.forEach(r1):r1(D),J}clear(D){const q=Object.keys(this);let X=q.length,J=!1;for(;X--;){const r1=q[X];D&&!ee(0,this[r1],r1,D,!0)||(delete this[r1],J=!0)}return J}normalize(D){const q=this,X={};return A.forEach(this,(J,r1)=>{const n1=A.findKey(X,r1);if(n1)return q[n1]=y2(J),void delete q[r1];const z1=D?function(w1){return w1.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(H1,x1,O1)=>x1.toUpperCase()+O1)}(r1):String(r1).trim();z1!==r1&&delete q[r1],q[z1]=y2(J),X[z1]=!0}),this}concat(...D){return this.constructor.concat(this,...D)}toJSON(D){const q=Object.create(null);return A.forEach(this,(X,J)=>{X!=null&&X!==!1&&(q[J]=D&&A.isArray(X)?X.join(", "):X)}),q}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([D,q])=>D+": "+q).join(`
|
|
8634
8634
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(D){return D instanceof this?D:new this(D)}static concat(D,...q){const X=new this(D);return q.forEach(J=>X.set(J)),X}static accessor(D){const q=(this[E2]=this[E2]={accessors:{}}).accessors,X=this.prototype;function J(r1){const n1=h2(r1);q[n1]||(function(z1,w1){const H1=A.toCamelCase(" "+w1);["get","set","has"].forEach(x1=>{Object.defineProperty(z1,x1+H1,{value:function(O1,P1,Z1){return this[x1].call(this,w1,O1,P1,Z1)},configurable:!0})})}(X,r1),q[n1]=!0)}return A.isArray(D)?D.forEach(J):J(D),this}}d1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors(d1.prototype,({value:O},D)=>{let q=D[0].toUpperCase()+D.slice(1);return{get:()=>O,set(X){this[q]=X}}}),A.freezeMethods(d1);var s1=d1;function _1(O,D){const q=this||q1,X=D||q,J=s1.from(X.headers);let r1=X.data;return A.forEach(O,function(n1){r1=n1.call(q,r1,J.normalize(),D?D.status:void 0)}),J.normalize(),r1}function L1(O){return!(!O||!O.__CANCEL__)}function W1(O,D,q){B.call(this,O??"canceled",B.ERR_CANCELED,D,q),this.name="CanceledError"}A.inherits(W1,B,{__CANCEL__:!0});var g2=G1.hasStandardBrowserEnv?{write(O,D,q,X,J,r1){const n1=[O+"="+encodeURIComponent(D)];A.isNumber(q)&&n1.push("expires="+new Date(q).toGMTString()),A.isString(X)&&n1.push("path="+X),A.isString(J)&&n1.push("domain="+J),r1===!0&&n1.push("secure"),document.cookie=n1.join("; ")},read(O){const D=document.cookie.match(new RegExp("(^|;\\s*)("+O+")=([^;]*)"));return D?decodeURIComponent(D[3]):null},remove(O){this.write(O,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function S2(O,D){return O&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(D)?function(q,X){return X?q.replace(/\/?\/$/,"")+"/"+X.replace(/^\/+/,""):q}(O,D):D}var Fe=G1.hasStandardBrowserEnv?function(){const O=/(msie|trident)/i.test(navigator.userAgent),D=document.createElement("a");let q;function X(J){let r1=J;return O&&(D.setAttribute("href",r1),r1=D.href),D.setAttribute("href",r1),{href:D.href,protocol:D.protocol?D.protocol.replace(/:$/,""):"",host:D.host,search:D.search?D.search.replace(/^\?/,""):"",hash:D.hash?D.hash.replace(/^#/,""):"",hostname:D.hostname,port:D.port,pathname:D.pathname.charAt(0)==="/"?D.pathname:"/"+D.pathname}}return q=X(window.location.href),function(J){const r1=A.isString(J)?X(J):J;return r1.protocol===q.protocol&&r1.host===q.host}}():function(){return!0};function h3(O,D){let q=0;const X=function(J,r1){J=J||10;const n1=new Array(J),z1=new Array(J);let w1,H1=0,x1=0;return r1=r1!==void 0?r1:1e3,function(O1){const P1=Date.now(),Z1=z1[x1];w1||(w1=P1),n1[H1]=O1,z1[H1]=P1;let I1=x1,J1=0;for(;I1!==H1;)J1+=n1[I1++],I1%=J;if(H1=(H1+1)%J,H1===x1&&(x1=(x1+1)%J),P1-w1<r1)return;const v2=Z1&&P1-Z1;return v2?Math.round(1e3*J1/v2):void 0}}(50,250);return J=>{const r1=J.loaded,n1=J.lengthComputable?J.total:void 0,z1=r1-q,w1=X(z1);q=r1;const H1={loaded:r1,total:n1,progress:n1?r1/n1:void 0,bytes:z1,rate:w1||void 0,estimated:w1&&n1&&r1<=n1?(n1-r1)/w1:void 0,event:J};H1[D?"download":"upload"]=!0,O(H1)}}const s2={http:null,xhr:typeof XMLHttpRequest<"u"&&function(O){return new Promise(function(D,q){let X=O.data;const J=s1.from(O.headers).normalize();let r1,n1,{responseType:z1,withXSRFToken:w1}=O;function H1(){O.cancelToken&&O.cancelToken.unsubscribe(r1),O.signal&&O.signal.removeEventListener("abort",r1)}if(A.isFormData(X)){if(G1.hasStandardBrowserEnv||G1.hasStandardBrowserWebWorkerEnv)J.setContentType(!1);else if((n1=J.getContentType())!==!1){const[I1,...J1]=n1?n1.split(";").map(v2=>v2.trim()).filter(Boolean):[];J.setContentType([I1||"multipart/form-data",...J1].join("; "))}}let x1=new XMLHttpRequest;if(O.auth){const I1=O.auth.username||"",J1=O.auth.password?unescape(encodeURIComponent(O.auth.password)):"";J.set("Authorization","Basic "+btoa(I1+":"+J1))}const O1=S2(O.baseURL,O.url);function P1(){if(!x1)return;const I1=s1.from("getAllResponseHeaders"in x1&&x1.getAllResponseHeaders());(function(J1,v2,X2){const a9=X2.config.validateStatus;X2.status&&a9&&!a9(X2.status)?v2(new B("Request failed with status code "+X2.status,[B.ERR_BAD_REQUEST,B.ERR_BAD_RESPONSE][Math.floor(X2.status/100)-4],X2.config,X2.request,X2)):J1(X2)})(function(J1){D(J1),H1()},function(J1){q(J1),H1()},{data:z1&&z1!=="text"&&z1!=="json"?x1.response:x1.responseText,status:x1.status,statusText:x1.statusText,headers:I1,config:O,request:x1}),x1=null}if(x1.open(O.method.toUpperCase(),p1(O1,O.params,O.paramsSerializer),!0),x1.timeout=O.timeout,"onloadend"in x1?x1.onloadend=P1:x1.onreadystatechange=function(){x1&&x1.readyState===4&&(x1.status!==0||x1.responseURL&&x1.responseURL.indexOf("file:")===0)&&setTimeout(P1)},x1.onabort=function(){x1&&(q(new B("Request aborted",B.ECONNABORTED,O,x1)),x1=null)},x1.onerror=function(){q(new B("Network Error",B.ERR_NETWORK,O,x1)),x1=null},x1.ontimeout=function(){let I1=O.timeout?"timeout of "+O.timeout+"ms exceeded":"timeout exceeded";const J1=O.transitional||v1;O.timeoutErrorMessage&&(I1=O.timeoutErrorMessage),q(new B(I1,J1.clarifyTimeoutError?B.ETIMEDOUT:B.ECONNABORTED,O,x1)),x1=null},G1.hasStandardBrowserEnv&&(w1&&A.isFunction(w1)&&(w1=w1(O)),w1||w1!==!1&&Fe(O1))){const I1=O.xsrfHeaderName&&O.xsrfCookieName&&g2.read(O.xsrfCookieName);I1&&J.set(O.xsrfHeaderName,I1)}X===void 0&&J.setContentType(null),"setRequestHeader"in x1&&A.forEach(J.toJSON(),function(I1,J1){x1.setRequestHeader(J1,I1)}),A.isUndefined(O.withCredentials)||(x1.withCredentials=!!O.withCredentials),z1&&z1!=="json"&&(x1.responseType=O.responseType),typeof O.onDownloadProgress=="function"&&x1.addEventListener("progress",h3(O.onDownloadProgress,!0)),typeof O.onUploadProgress=="function"&&x1.upload&&x1.upload.addEventListener("progress",h3(O.onUploadProgress)),(O.cancelToken||O.signal)&&(r1=I1=>{x1&&(q(!I1||I1.type?new W1(null,O,x1):I1),x1.abort(),x1=null)},O.cancelToken&&O.cancelToken.subscribe(r1),O.signal&&(O.signal.aborted?r1():O.signal.addEventListener("abort",r1)));const Z1=function(I1){const J1=/^([-+\w]{1,25})(:?\/\/|:)/.exec(I1);return J1&&J1[1]||""}(O1);Z1&&G1.protocols.indexOf(Z1)===-1?q(new B("Unsupported protocol "+Z1+":",B.ERR_BAD_REQUEST,O)):x1.send(X||null)})}};A.forEach(s2,(O,D)=>{if(O){try{Object.defineProperty(O,"name",{value:D})}catch{}Object.defineProperty(O,"adapterName",{value:D})}});const V2=O=>`- ${O}`,Q3=O=>A.isFunction(O)||O===null||O===!1;var J3=O=>{O=A.isArray(O)?O:[O];const{length:D}=O;let q,X;const J={};for(let r1=0;r1<D;r1++){let n1;if(q=O[r1],X=q,!Q3(q)&&(X=s2[(n1=String(q)).toLowerCase()],X===void 0))throw new B(`Unknown adapter '${n1}'`);if(X)break;J[n1||"#"+r1]=X}if(!X){const r1=Object.entries(J).map(([n1,z1])=>`adapter ${n1} `+(z1===!1?"is not supported by the environment":"is not available in the build"));throw new B("There is no suitable adapter to dispatch the request "+(D?r1.length>1?`since :
|
|
@@ -9485,7 +9485,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9485
9485
|
* Released under the MIT License
|
|
9486
9486
|
*/class zde{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,a,c,n){const r=a.listeners[n],i=a.duration;r.forEach(o=>o({chart:t,initial:a.initial,numSteps:i,currentStep:Math.min(c-a.start,i)}))}_refresh(){this._request||(this._running=!0,this._request=hg1.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let a=0;this._charts.forEach((c,n)=>{if(!c.running||!c.items.length)return;const r=c.items;let i=r.length-1,o=!1,l;for(;i>=0;--i)l=r[i],l._active?(l._total>c.duration&&(c.duration=l._total),l.tick(t),o=!0):(r[i]=r[r.length-1],r.pop());o&&(n.draw(),this._notify(n,c,t,"progress")),r.length||(c.running=!1,this._notify(n,c,t,"complete"),c.initial=!1),a+=r.length}),this._lastDate=t,a===0&&(this._running=!1)}_getAnims(t){const a=this._charts;let c=a.get(t);return c||(c={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},a.set(t,c)),c}listen(t,a,c){this._getAnims(t).listeners[a].push(c)}add(t,a){!a||!a.length||this._getAnims(t).items.push(...a)}has(t){return this._getAnims(t).items.length>0}start(t){const a=this._charts.get(t);a&&(a.running=!0,a.start=Date.now(),a.duration=a.items.reduce((c,n)=>Math.max(c,n._duration),0),this._refresh())}running(t){if(!this._running)return!1;const a=this._charts.get(t);return!(!a||!a.running||!a.items.length)}stop(t){const a=this._charts.get(t);if(!a||!a.items.length)return;const c=a.items;let n=c.length-1;for(;n>=0;--n)c[n].cancel();a.items=[],this._notify(t,a,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var qt=new zde;const t81="transparent",Cde={boolean(e,t,a){return a>.5?t:e},color(e,t,a){const c=Ut1(e||t81),n=c.valid&&Ut1(t||t81);return n&&n.valid?n.mix(c,a).hexString():t},number(e,t,a){return e+(t-e)*a}};class _de{constructor(t,a,c,n){const r=a[c];n=Q9([t.to,n,r,t.from]);const i=Q9([t.from,r,n]);this._active=!0,this._fn=t.fn||Cde[t.type||typeof i],this._easing=Nl[t.easing]||Nl.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=a,this._prop=c,this._from=i,this._to=n,this._promises=void 0}active(){return this._active}update(t,a,c){if(this._active){this._notify(!1);const n=this._target[this._prop],r=c-this._start,i=this._duration-r;this._start=c,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=Q9([t.to,a,n,t.from]),this._from=Q9([t.from,n,a])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const a=t-this._start,c=this._duration,n=this._prop,r=this._from,i=this._loop,o=this._to;let l;if(this._active=r!==o&&(i||a<c),!this._active){this._target[n]=o,this._notify(!0);return}if(a<0){this._target[n]=r;return}l=a/c%2,l=i&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(r,o,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((a,c)=>{t.push({res:a,rej:c})})}_notify(t){const a=t?"res":"rej",c=this._promises||[];for(let n=0;n<c.length;n++)c[n][a]()}}class Ng1{constructor(t,a){this._chart=t,this._properties=new Map,this.configure(a)}configure(t){if(!F2(t))return;const a=Object.keys(We.animation),c=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const r=t[n];if(!F2(r))return;const i={};for(const o of a)i[o]=r[o];(Ae(r.properties)&&r.properties||[n]).forEach(o=>{(o===n||!c.has(o))&&c.set(o,i)})})}_animateOptions(t,a){const c=a.options,n=Hde(t,c);if(!n)return[];const r=this._createAnimations(n,c);return c.$shared&&wde(t.options.$animations,c).then(()=>{t.options=c},()=>{}),r}_createAnimations(t,a){const c=this._properties,n=[],r=t.$animations||(t.$animations={}),i=Object.keys(a),o=Date.now();let l;for(l=i.length-1;l>=0;--l){const f=i[l];if(f.charAt(0)==="$")continue;if(f==="options"){n.push(...this._animateOptions(t,a));continue}const u=a[f];let d=r[f];const h=c.get(f);if(d)if(h&&d.active()){d.update(h,u,o);continue}else d.cancel();if(!h||!h.duration){t[f]=u;continue}r[f]=d=new _de(h,t,f,u),n.push(d)}return n}update(t,a){if(this._properties.size===0){Object.assign(t,a);return}const c=this._createAnimations(t,a);if(c.length)return qt.add(this._chart,c),!0}}function wde(e,t){const a=[],c=Object.keys(t);for(let n=0;n<c.length;n++){const r=e[c[n]];r&&r.active()&&a.push(r.wait())}return Promise.all(a)}function Hde(e,t){if(!t)return;let a=e.options;if(!a){e.options=t;return}return a.$shared&&(e.options=a=Object.assign({},a,{$shared:!1,$animations:{}})),a}function a81(e,t){const a=e&&e.options||{},c=a.reverse,n=a.min===void 0?t:0,r=a.max===void 0?t:0;return{start:c?r:n,end:c?n:r}}function Lde(e,t,a){if(a===!1)return!1;const c=a81(e,a),n=a81(t,a);return{top:n.end,right:c.end,bottom:n.start,left:c.start}}function Vde(e){let t,a,c,n;return F2(e)?(t=e.top,a=e.right,c=e.bottom,n=e.left):t=a=c=n=e,{top:t,right:a,bottom:c,left:n,disabled:e===!1}}function Ag1(e,t){const a=[],c=e._getSortedDatasetMetas(t);let n,r;for(n=0,r=c.length;n<r;++n)a.push(c[n].index);return a}function c81(e,t,a,c={}){const n=e.keys,r=c.mode==="single";let i,o,l,f;if(t===null)return;let u=!1;for(i=0,o=n.length;i<o;++i){if(l=+n[i],l===a){if(u=!0,c.all)continue;break}f=e.values[l],l3(f)&&(r||t===0||kt(t)===kt(f))&&(t+=f)}return!u&&!c.all?0:t}function Sde(e,t){const{iScale:a,vScale:c}=t,n=a.axis==="x"?"x":"y",r=c.axis==="x"?"x":"y",i=Object.keys(e),o=new Array(i.length);let l,f,u;for(l=0,f=i.length;l<f;++l)u=i[l],o[l]={[n]:u,[r]:e[u]};return o}function oY(e,t){const a=e&&e.options.stacked;return a||a===void 0&&t.stack!==void 0}function Nde(e,t,a){return`${e.id}.${t.id}.${a.stack||a.type}`}function Ade(e){const{min:t,max:a,minDefined:c,maxDefined:n}=e.getUserBounds();return{min:c?t:Number.NEGATIVE_INFINITY,max:n?a:Number.POSITIVE_INFINITY}}function Tde(e,t,a){const c=e[t]||(e[t]={});return c[a]||(c[a]={})}function n81(e,t,a,c){for(const n of t.getMatchingVisibleMetas(c).reverse()){const r=e[n.index];if(a&&r>0||!a&&r<0)return n.index}return null}function r81(e,t){const{chart:a,_cachedMeta:c}=e,n=a._stacks||(a._stacks={}),{iScale:r,vScale:i,index:o}=c,l=r.axis,f=i.axis,u=Nde(r,i,c),d=t.length;let h;for(let p=0;p<d;++p){const v=t[p],{[l]:m,[f]:y}=v,g=v._stacks||(v._stacks={});h=g[f]=Tde(n,u,m),h[o]=y,h._top=n81(h,i,!0,c.type),h._bottom=n81(h,i,!1,c.type);const M=h._visualValues||(h._visualValues={});M[o]=y}}function sY(e,t){const a=e.scales;return Object.keys(a).filter(c=>a[c].axis===t).shift()}function Ede(e,t){return i5(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function Dde(e,t,a){return i5(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:a,index:t,mode:"default",type:"data"})}function D9(e,t){const a=e.controller.index,c=e.vScale&&e.vScale.axis;if(c){t=t||e._parsed;for(const n of t){const r=n._stacks;if(!r||r[c]===void 0||r[c][a]===void 0)return;delete r[c][a],r[c]._visualValues!==void 0&&r[c]._visualValues[a]!==void 0&&delete r[c]._visualValues[a]}}}const lY=e=>e==="reset"||e==="none",i81=(e,t)=>t?e:Object.assign({},e),Pde=(e,t,a)=>e&&!t.hidden&&t._stacked&&{keys:Ag1(a,!0),values:null};class g6{constructor(t,a){this.chart=t,this._ctx=t.ctx,this.index=a,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=oY(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&D9(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,a=this._cachedMeta,c=this.getDataset(),n=(d,h,p,v)=>d==="x"?h:d==="r"?v:p,r=a.xAxisID=C2(c.xAxisID,sY(t,"x")),i=a.yAxisID=C2(c.yAxisID,sY(t,"y")),o=a.rAxisID=C2(c.rAxisID,sY(t,"r")),l=a.indexAxis,f=a.iAxisID=n(l,r,i,o),u=a.vAxisID=n(l,i,r,o);a.xScale=this.getScaleForId(r),a.yScale=this.getScaleForId(i),a.rScale=this.getScaleForId(o),a.iScale=this.getScaleForId(f),a.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const a=this._cachedMeta;return t===a.iScale?a.vScale:a.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&$t1(this._data,this),t._stacked&&D9(t)}_dataCheck(){const t=this.getDataset(),a=t.data||(t.data=[]),c=this._data;if(F2(a)){const n=this._cachedMeta;this._data=Sde(a,n)}else if(c!==a){if(c){$t1(c,this);const n=this._cachedMeta;D9(n),n._parsed=[]}a&&Object.isExtensible(a)&&xue(a,this),this._syncList=[],this._data=a}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const a=this._cachedMeta,c=this.getDataset();let n=!1;this._dataCheck();const r=a._stacked;a._stacked=oY(a.vScale,a),a.stack!==c.stack&&(n=!0,D9(a),a.stack=c.stack),this._resyncElements(t),(n||r!==a._stacked)&&(r81(this,a._parsed),a._stacked=oY(a.vScale,a))}configure(){const t=this.chart.config,a=t.datasetScopeKeys(this._type),c=t.getOptionScopes(this.getDataset(),a,!0);this.options=t.createResolver(c,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,a){const{_cachedMeta:c,_data:n}=this,{iScale:r,_stacked:i}=c,o=r.axis;let l=t===0&&a===n.length?!0:c._sorted,f=t>0&&c._parsed[t-1],u,d,h;if(this._parsing===!1)c._parsed=n,c._sorted=!0,h=n;else{Ae(n[t])?h=this.parseArrayData(c,n,t,a):F2(n[t])?h=this.parseObjectData(c,n,t,a):h=this.parsePrimitiveData(c,n,t,a);const p=()=>d[o]===null||f&&d[o]<f[o];for(u=0;u<a;++u)c._parsed[u+t]=d=h[u],l&&(p()&&(l=!1),f=d);c._sorted=l}i&&r81(this,h)}parsePrimitiveData(t,a,c,n){const{iScale:r,vScale:i}=t,o=r.axis,l=i.axis,f=r.getLabels(),u=r===i,d=new Array(n);let h,p,v;for(h=0,p=n;h<p;++h)v=h+c,d[h]={[o]:u||r.parse(f[v],v),[l]:i.parse(a[v],v)};return d}parseArrayData(t,a,c,n){const{xScale:r,yScale:i}=t,o=new Array(n);let l,f,u,d;for(l=0,f=n;l<f;++l)u=l+c,d=a[u],o[l]={x:r.parse(d[0],u),y:i.parse(d[1],u)};return o}parseObjectData(t,a,c,n){const{xScale:r,yScale:i}=t,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,f=new Array(n);let u,d,h,p;for(u=0,d=n;u<d;++u)h=u+c,p=a[h],f[u]={x:r.parse(ja(p,o),h),y:i.parse(ja(p,l),h)};return f}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,a,c){const n=this.chart,r=this._cachedMeta,i=a[t.axis],o={keys:Ag1(n,!0),values:a._stacks[t.axis]._visualValues};return c81(o,i,r.index,{mode:c})}updateRangeFromParsed(t,a,c,n){const r=c[a.axis];let i=r===null?NaN:r;const o=n&&c._stacks[a.axis];n&&o&&(n.values=o,i=c81(n,r,this._cachedMeta.index)),t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}getMinMax(t,a){const c=this._cachedMeta,n=c._parsed,r=c._sorted&&t===c.iScale,i=n.length,o=this._getOtherScale(t),l=Pde(a,c,this.chart),f={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=Ade(o);let h,p;function v(){p=n[h];const m=p[o.axis];return!l3(p[t.axis])||u>m||d<m}for(h=0;h<i&&!(!v()&&(this.updateRangeFromParsed(f,t,p,l),r));++h);if(r){for(h=i-1;h>=0;--h)if(!v()){this.updateRangeFromParsed(f,t,p,l);break}}return f}getAllParsedValues(t){const a=this._cachedMeta._parsed,c=[];let n,r,i;for(n=0,r=a.length;n<r;++n)i=a[n][t.axis],l3(i)&&c.push(i);return c}getMaxOverflow(){return!1}getLabelAndValue(t){const a=this._cachedMeta,c=a.iScale,n=a.vScale,r=this.getParsed(t);return{label:c?""+c.getLabelForValue(r[c.axis]):"",value:n?""+n.getLabelForValue(r[n.axis]):""}}_update(t){const a=this._cachedMeta;this.update(t||"default"),a._clip=Vde(C2(this.options.clip,Lde(a.xScale,a.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,a=this.chart,c=this._cachedMeta,n=c.data||[],r=a.chartArea,i=[],o=this._drawStart||0,l=this._drawCount||n.length-o,f=this.options.drawActiveElementsOnTop;let u;for(c.dataset&&c.dataset.draw(t,r,o,l),u=o;u<o+l;++u){const d=n[u];d.hidden||(d.active&&f?i.push(d):d.draw(t,r))}for(u=0;u<i.length;++u)i[u].draw(t,r)}getStyle(t,a){const c=a?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(c):this.resolveDataElementOptions(t||0,c)}getContext(t,a,c){const n=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const i=this._cachedMeta.data[t];r=i.$context||(i.$context=Dde(this.getContext(),t,i)),r.parsed=this.getParsed(t),r.raw=n.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=Ede(this.chart.getContext(),this.index)),r.dataset=n,r.index=r.datasetIndex=this.index;return r.active=!!a,r.mode=c,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,a){return this._resolveElementOptions(this.dataElementType.id,a,t)}_resolveElementOptions(t,a="default",c){const n=a==="active",r=this._cachedDataOpts,i=t+"-"+a,o=r[i],l=this.enableOptionSharing&&Tf(c);if(o)return i81(o,l);const f=this.chart.config,u=f.datasetElementScopeKeys(this._type,t),d=n?[`${t}Hover`,"hover",t,""]:[t,""],h=f.getOptionScopes(this.getDataset(),u),p=Object.keys(We.elements[t]),v=()=>this.getContext(c,n,a),m=f.resolveNamedOptions(h,p,v,d);return m.$shared&&(m.$shared=l,r[i]=Object.freeze(i81(m,l))),m}_resolveAnimations(t,a,c){const n=this.chart,r=this._cachedDataOpts,i=`animation-${a}`,o=r[i];if(o)return o;let l;if(n.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,a),h=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(h,this.getContext(t,c,a))}const f=new Ng1(n,l&&l.animations);return l&&l._cacheable&&(r[i]=Object.freeze(f)),f}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,a){return!a||lY(t)||this.chart._animationsDisabled}_getSharedOptions(t,a){const c=this.resolveDataElementOptions(t,a),n=this._sharedOptions,r=this.getSharedOptions(c),i=this.includeOptions(a,r)||r!==n;return this.updateSharedOptions(r,a,c),{sharedOptions:r,includeOptions:i}}updateElement(t,a,c,n){lY(n)?Object.assign(t,c):this._resolveAnimations(a,n).update(t,c)}updateSharedOptions(t,a,c){t&&!lY(a)&&this._resolveAnimations(void 0,a).update(t,c)}_setStyle(t,a,c,n){t.active=n;const r=this.getStyle(a,n);this._resolveAnimations(a,c,n).update(t,{options:!n&&this.getSharedOptions(r)||r})}removeHoverStyle(t,a,c){this._setStyle(t,c,"active",!1)}setHoverStyle(t,a,c){this._setStyle(t,c,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const a=this._data,c=this._cachedMeta.data;for(const[o,l,f]of this._syncList)this[o](l,f);this._syncList=[];const n=c.length,r=a.length,i=Math.min(r,n);i&&this.parse(0,i),r>n?this._insertElements(n,r-n,t):r<n&&this._removeElements(r,n-r)}_insertElements(t,a,c=!0){const n=this._cachedMeta,r=n.data,i=t+a;let o;const l=f=>{for(f.length+=a,o=f.length-1;o>=i;o--)f[o]=f[o-a]};for(l(r),o=t;o<i;++o)r[o]=new this.dataElementType;this._parsing&&l(n._parsed),this.parse(t,a),c&&this.updateElements(r,t,a,"reset")}updateElements(t,a,c,n){}_removeElements(t,a){const c=this._cachedMeta;if(this._parsing){const n=c._parsed.splice(t,a);c._stacked&&D9(c,n)}c.data.splice(t,a)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[a,c,n]=t;this[a](c,n)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,a){a&&this._sync(["_removeElements",t,a]);const c=arguments.length-2;c&&this._sync(["_insertElements",t,c])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}S1(g6,"defaults",{}),S1(g6,"datasetElementType",null),S1(g6,"dataElementType",null);function Ode(e,t){if(!e._cache.$bar){const a=e.getMatchingVisibleMetas(t);let c=[];for(let n=0,r=a.length;n<r;n++)c=c.concat(a[n].controller.getAllParsedValues(e));e._cache.$bar=dg1(c.sort((n,r)=>n-r))}return e._cache.$bar}function Ide(e){const t=e.iScale,a=Ode(t,e.type);let c=t._length,n,r,i,o;const l=()=>{i===32767||i===-32768||(Tf(o)&&(c=Math.min(c,Math.abs(i-o)||c)),o=i)};for(n=0,r=a.length;n<r;++n)i=t.getPixelForValue(a[n]),l();for(o=void 0,n=0,r=t.ticks.length;n<r;++n)i=t.getPixelForTick(n),l();return c}function Bde(e,t,a,c){const n=a.barThickness;let r,i;return Q2(n)?(r=t.min*a.categoryPercentage,i=a.barPercentage):(r=n*c,i=1),{chunk:r/c,ratio:i,start:t.pixels[e]-r/2}}function Rde(e,t,a,c){const n=t.pixels,r=n[e];let i=e>0?n[e-1]:null,o=e<n.length-1?n[e+1]:null;const l=a.categoryPercentage;i===null&&(i=r-(o===null?t.end-t.start:o-r)),o===null&&(o=r+r-i);const f=r-(r-Math.min(i,o))/2*l;return{chunk:Math.abs(o-i)/2*l/c,ratio:a.barPercentage,start:f}}function Fde(e,t,a,c){const n=a.parse(e[0],c),r=a.parse(e[1],c),i=Math.min(n,r),o=Math.max(n,r);let l=i,f=o;Math.abs(i)>Math.abs(o)&&(l=o,f=i),t[a.axis]=f,t._custom={barStart:l,barEnd:f,start:n,end:r,min:i,max:o}}function Tg1(e,t,a,c){return Ae(e)?Fde(e,t,a,c):t[a.axis]=a.parse(e,c),t}function o81(e,t,a,c){const n=e.iScale,r=e.vScale,i=n.getLabels(),o=n===r,l=[];let f,u,d,h;for(f=a,u=a+c;f<u;++f)h=t[f],d={},d[n.axis]=o||n.parse(i[f],f),l.push(Tg1(h,d,r,f));return l}function fY(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function $de(e,t,a){return e!==0?kt(e):(t.isHorizontal()?1:-1)*(t.min>=a?1:-1)}function qde(e){let t,a,c,n,r;return e.horizontal?(t=e.base>e.x,a="left",c="right"):(t=e.base<e.y,a="bottom",c="top"),t?(n="end",r="start"):(n="start",r="end"),{start:a,end:c,reverse:t,top:n,bottom:r}}function jde(e,t,a,c){let n=t.borderSkipped;const r={};if(!n){e.borderSkipped=r;return}if(n===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:i,end:o,reverse:l,top:f,bottom:u}=qde(e);n==="middle"&&a&&(e.enableBorderRadius=!0,(a._top||0)===c?n=f:(a._bottom||0)===c?n=u:(r[s81(u,i,o,l)]=!0,n=f)),r[s81(n,i,o,l)]=!0,e.borderSkipped=r}function s81(e,t,a,c){return c?(e=Ude(e,t,a),e=l81(e,a,t)):e=l81(e,t,a),e}function Ude(e,t,a){return e===t?a:e===a?t:e}function l81(e,t,a){return e==="start"?t:e==="end"?a:e}function Wde(e,{inflateAmount:t},a){e.inflateAmount=t==="auto"?a===1?.33:0:t}class MF extends g6{parsePrimitiveData(t,a,c,n){return o81(t,a,c,n)}parseArrayData(t,a,c,n){return o81(t,a,c,n)}parseObjectData(t,a,c,n){const{iScale:r,vScale:i}=t,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,f=r.axis==="x"?o:l,u=i.axis==="x"?o:l,d=[];let h,p,v,m;for(h=c,p=c+n;h<p;++h)m=a[h],v={},v[r.axis]=r.parse(ja(m,f),h),d.push(Tg1(ja(m,u),v,i,h));return d}updateRangeFromParsed(t,a,c,n){super.updateRangeFromParsed(t,a,c,n);const r=c._custom;r&&a===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const a=this._cachedMeta,{iScale:c,vScale:n}=a,r=this.getParsed(t),i=r._custom,o=fY(i)?"["+i.start+", "+i.end+"]":""+n.getLabelForValue(r[n.axis]);return{label:""+c.getLabelForValue(r[c.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const a=this._cachedMeta;this.updateElements(a.data,0,a.data.length,t)}updateElements(t,a,c,n){const r=n==="reset",{index:i,_cachedMeta:{vScale:o}}=this,l=o.getBasePixel(),f=o.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(a,n);for(let p=a;p<a+c;p++){const v=this.getParsed(p),m=r||Q2(v[o.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),y=this._calculateBarIndexPixels(p,u),g=(v._stacks||{})[o.axis],M={horizontal:f,base:m.base,enableBorderRadius:!g||fY(v._custom)||i===g._top||i===g._bottom,x:f?m.head:y.center,y:f?y.center:m.head,height:f?y.size:Math.abs(m.size),width:f?Math.abs(m.size):y.size};h&&(M.options=d||this.resolveDataElementOptions(p,t[p].active?"active":n));const x=M.options||t[p].options;jde(M,x,g,i),Wde(M,x,u.ratio),this.updateElement(t[p],p,M,n)}}_getStacks(t,a){const{iScale:c}=this._cachedMeta,n=c.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),r=c.options.stacked,i=[],o=this._cachedMeta.controller.getParsed(a),l=o&&o[c.axis],f=u=>{const d=u._parsed.find(p=>p[c.axis]===l),h=d&&d[u.vScale.axis];if(Q2(h)||isNaN(h))return!0};for(const u of n)if(!(a!==void 0&&f(u))&&((r===!1||i.indexOf(u.stack)===-1||r===void 0&&u.stack===void 0)&&i.push(u.stack),u.index===t))break;return i.length||i.push(void 0),i}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,a,c){const n=this._getStacks(t,c),r=a!==void 0?n.indexOf(a):-1;return r===-1?n.length-1:r}_getRuler(){const t=this.options,a=this._cachedMeta,c=a.iScale,n=[];let r,i;for(r=0,i=a.data.length;r<i;++r)n.push(c.getPixelForValue(this.getParsed(r)[c.axis],r));const o=t.barThickness;return{min:o||Ide(a),pixels:n,start:c._startPixel,end:c._endPixel,stackCount:this._getStackCount(),scale:c,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:a,_stacked:c,index:n},options:{base:r,minBarLength:i}}=this,o=r||0,l=this.getParsed(t),f=l._custom,u=fY(f);let d=l[a.axis],h=0,p=c?this.applyStack(a,l,c):d,v,m;p!==d&&(h=p-d,p=d),u&&(d=f.barStart,p=f.barEnd-f.barStart,d!==0&&kt(d)!==kt(f.barEnd)&&(h=0),h+=d);const y=!Q2(r)&&!u?r:h;let g=a.getPixelForValue(y);if(this.chart.getDataVisibility(t)?v=a.getPixelForValue(h+p):v=g,m=v-g,Math.abs(m)<i){m=$de(m,a,o)*i,d===o&&(g-=m/2);const M=a.getPixelForDecimal(0),x=a.getPixelForDecimal(1),k=Math.min(M,x),b=Math.max(M,x);g=Math.max(Math.min(g,b),k),v=g+m,c&&!u&&(l._stacks[a.axis]._visualValues[n]=a.getValueForPixel(v)-a.getValueForPixel(g))}if(g===a.getPixelForValue(o)){const M=kt(m)*a.getLineWidthForValue(o)/2;g+=M,m-=M}return{size:m,base:g,head:v,center:v+m/2}}_calculateBarIndexPixels(t,a){const c=a.scale,n=this.options,r=n.skipNull,i=C2(n.maxBarThickness,1/0);let o,l;if(a.grouped){const f=r?this._getStackCount(t):a.stackCount,u=n.barThickness==="flex"?Rde(t,a,n,f):Bde(t,a,n,f),d=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0);o=u.start+u.chunk*d+u.chunk/2,l=Math.min(i,u.chunk*u.ratio)}else o=c.getPixelForValue(this.getParsed(t)[c.axis],t),l=Math.min(i,a.min*a.ratio);return{base:o-l/2,head:o+l/2,center:o,size:l}}draw(){const t=this._cachedMeta,a=t.vScale,c=t.data,n=c.length;let r=0;for(;r<n;++r)this.getParsed(r)[a.axis]!==null&&!c[r].hidden&&c[r].draw(this._ctx)}}S1(MF,"id","bar"),S1(MF,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),S1(MF,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class kF extends g6{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,a,c,n){const r=super.parsePrimitiveData(t,a,c,n);for(let i=0;i<r.length;i++)r[i]._custom=this.resolveDataElementOptions(i+c).radius;return r}parseArrayData(t,a,c,n){const r=super.parseArrayData(t,a,c,n);for(let i=0;i<r.length;i++){const o=a[c+i];r[i]._custom=C2(o[2],this.resolveDataElementOptions(i+c).radius)}return r}parseObjectData(t,a,c,n){const r=super.parseObjectData(t,a,c,n);for(let i=0;i<r.length;i++){const o=a[c+i];r[i]._custom=C2(o&&o.r&&+o.r,this.resolveDataElementOptions(i+c).radius)}return r}getMaxOverflow(){const t=this._cachedMeta.data;let a=0;for(let c=t.length-1;c>=0;--c)a=Math.max(a,t[c].size(this.resolveDataElementOptions(c))/2);return a>0&&a}getLabelAndValue(t){const a=this._cachedMeta,c=this.chart.data.labels||[],{xScale:n,yScale:r}=a,i=this.getParsed(t),o=n.getLabelForValue(i.x),l=r.getLabelForValue(i.y),f=i._custom;return{label:c[t]||"",value:"("+o+", "+l+(f?", "+f:"")+")"}}update(t){const a=this._cachedMeta.data;this.updateElements(a,0,a.length,t)}updateElements(t,a,c,n){const r=n==="reset",{iScale:i,vScale:o}=this._cachedMeta,{sharedOptions:l,includeOptions:f}=this._getSharedOptions(a,n),u=i.axis,d=o.axis;for(let h=a;h<a+c;h++){const p=t[h],v=!r&&this.getParsed(h),m={},y=m[u]=r?i.getPixelForDecimal(.5):i.getPixelForValue(v[u]),g=m[d]=r?o.getBasePixel():o.getPixelForValue(v[d]);m.skip=isNaN(y)||isNaN(g),f&&(m.options=l||this.resolveDataElementOptions(h,p.active?"active":n),r&&(m.options.radius=0)),this.updateElement(p,h,m,n)}}resolveDataElementOptions(t,a){const c=this.getParsed(t);let n=super.resolveDataElementOptions(t,a);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const r=n.radius;return a!=="active"&&(n.radius=0),n.radius+=C2(c&&c._custom,r),n}}S1(kF,"id","bubble"),S1(kF,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),S1(kF,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function Yde(e,t,a){let c=1,n=1,r=0,i=0;if(t<Ee){const o=e,l=o+t,f=Math.cos(o),u=Math.sin(o),d=Math.cos(l),h=Math.sin(l),p=(x,k,b)=>Ef(x,o,l,!0)?1:Math.max(k,k*a,b,b*a),v=(x,k,b)=>Ef(x,o,l,!0)?-1:Math.min(k,k*a,b,b*a),m=p(0,f,d),y=p(w3,u,h),g=v(Pe,f,d),M=v(Pe+w3,u,h);c=(m-g)/2,n=(y-M)/2,r=-(m+g)/2,i=-(y+M)/2}return{ratioX:c,ratioY:n,offsetX:r,offsetY:i}}class ai extends g6{constructor(t,a){super(t,a),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,a){const c=this.getDataset().data,n=this._cachedMeta;if(this._parsing===!1)n._parsed=c;else{let r=l=>+c[l];if(F2(c[t])){const{key:l="value"}=this._parsing;r=f=>+ja(c[f],l)}let i,o;for(i=t,o=t+a;i<o;++i)n._parsed[i]=r(i)}}_getRotation(){return o6(this.options.rotation-90)}_getCircumference(){return o6(this.options.circumference)}_getRotationExtents(){let t=Ee,a=-Ee;for(let c=0;c<this.chart.data.datasets.length;++c)if(this.chart.isDatasetVisible(c)&&this.chart.getDatasetMeta(c).type===this._type){const n=this.chart.getDatasetMeta(c).controller,r=n._getRotation(),i=n._getCircumference();t=Math.min(t,r),a=Math.max(a,r+i)}return{rotation:t,circumference:a-t}}update(t){const a=this.chart,{chartArea:c}=a,n=this._cachedMeta,r=n.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,o=Math.max((Math.min(c.width,c.height)-i)/2,0),l=Math.min(oue(this.options.cutout,o),1),f=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:p,offsetX:v,offsetY:m}=Yde(d,u,l),y=(c.width-i)/h,g=(c.height-i)/p,M=Math.max(Math.min(y,g)/2,0),x=og1(this.options.radius,M),k=Math.max(x*l,0),b=(x-k)/this._getVisibleDatasetWeightTotal();this.offsetX=v*x,this.offsetY=m*x,n.total=this.calculateTotal(),this.outerRadius=x-b*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-b*f,0),this.updateElements(r,0,r.length,t)}_circumference(t,a){const c=this.options,n=this._cachedMeta,r=this._getCircumference();return a&&c.animation.animateRotate||!this.chart.getDataVisibility(t)||n._parsed[t]===null||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*r/Ee)}updateElements(t,a,c,n){const r=n==="reset",i=this.chart,o=i.chartArea,f=i.options.animation,u=(o.left+o.right)/2,d=(o.top+o.bottom)/2,h=r&&f.animateScale,p=h?0:this.innerRadius,v=h?0:this.outerRadius,{sharedOptions:m,includeOptions:y}=this._getSharedOptions(a,n);let g=this._getRotation(),M;for(M=0;M<a;++M)g+=this._circumference(M,r);for(M=a;M<a+c;++M){const x=this._circumference(M,r),k=t[M],b={x:u+this.offsetX,y:d+this.offsetY,startAngle:g,endAngle:g+x,circumference:x,outerRadius:v,innerRadius:p};y&&(b.options=m||this.resolveDataElementOptions(M,k.active?"active":n)),g+=x,this.updateElement(k,M,b,n)}}calculateTotal(){const t=this._cachedMeta,a=t.data;let c=0,n;for(n=0;n<a.length;n++){const r=t._parsed[n];r!==null&&!isNaN(r)&&this.chart.getDataVisibility(n)&&!a[n].hidden&&(c+=Math.abs(r))}return c}calculateCircumference(t){const a=this._cachedMeta.total;return a>0&&!isNaN(t)?Ee*(Math.abs(t)/a):0}getLabelAndValue(t){const a=this._cachedMeta,c=this.chart,n=c.data.labels||[],r=Bu(a._parsed[t],c.options.locale);return{label:n[t]||"",value:r}}getMaxBorderWidth(t){let a=0;const c=this.chart;let n,r,i,o,l;if(!t){for(n=0,r=c.data.datasets.length;n<r;++n)if(c.isDatasetVisible(n)){i=c.getDatasetMeta(n),t=i.data,o=i.controller;break}}if(!t)return 0;for(n=0,r=t.length;n<r;++n)l=o.resolveDataElementOptions(n),l.borderAlign!=="inner"&&(a=Math.max(a,l.borderWidth||0,l.hoverBorderWidth||0));return a}getMaxOffset(t){let a=0;for(let c=0,n=t.length;c<n;++c){const r=this.resolveDataElementOptions(c);a=Math.max(a,r.offset||0,r.hoverOffset||0)}return a}_getRingWeightOffset(t){let a=0;for(let c=0;c<t;++c)this.chart.isDatasetVisible(c)&&(a+=this._getRingWeight(c));return a}_getRingWeight(t){return Math.max(C2(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}S1(ai,"id","doughnut"),S1(ai,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),S1(ai,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),S1(ai,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const a=t.data;if(a.labels.length&&a.datasets.length){const{labels:{pointStyle:c,color:n}}=t.legend.options;return a.labels.map((r,i)=>{const l=t.getDatasetMeta(0).controller.getStyle(i);return{text:r,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:n,lineWidth:l.borderWidth,pointStyle:c,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,a,c){c.chart.toggleDataVisibility(a.index),c.chart.update()}}}});class xF extends g6{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const a=this._cachedMeta,{dataset:c,data:n=[],_dataset:r}=a,i=this.chart._animationsDisabled;let{start:o,count:l}=mg1(a,n,i);this._drawStart=o,this._drawCount=l,vg1(a)&&(o=0,l=n.length),c._chart=this.chart,c._datasetIndex=this.index,c._decimated=!!r._decimated,c.points=n;const f=this.resolveDatasetElementOptions(t);this.options.showLine||(f.borderWidth=0),f.segment=this.options.segment,this.updateElement(c,void 0,{animated:!i,options:f},t),this.updateElements(n,o,l,t)}updateElements(t,a,c,n){const r=n==="reset",{iScale:i,vScale:o,_stacked:l,_dataset:f}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(a,n),h=i.axis,p=o.axis,{spanGaps:v,segment:m}=this.options,y=bs(v)?v:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||r||n==="none",M=a+c,x=t.length;let k=a>0&&this.getParsed(a-1);for(let b=0;b<x;++b){const _=t[b],C=g?_:{};if(b<a||b>=M){C.skip=!0;continue}const H=this.getParsed(b),V=Q2(H[p]),N=C[h]=i.getPixelForValue(H[h],b),L=C[p]=r||V?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,H,l):H[p],b);C.skip=isNaN(N)||isNaN(L)||V,C.stop=b>0&&Math.abs(H[h]-k[h])>y,m&&(C.parsed=H,C.raw=f.data[b]),d&&(C.options=u||this.resolveDataElementOptions(b,_.active?"active":n)),g||this.updateElement(_,b,C,n),k=H}}getMaxOverflow(){const t=this._cachedMeta,a=t.dataset,c=a.options&&a.options.borderWidth||0,n=t.data||[];if(!n.length)return c;const r=n[0].size(this.resolveDataElementOptions(0)),i=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(c,r,i)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}S1(xF,"id","line"),S1(xF,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),S1(xF,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Tl extends g6{constructor(t,a){super(t,a),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const a=this._cachedMeta,c=this.chart,n=c.data.labels||[],r=Bu(a._parsed[t].r,c.options.locale);return{label:n[t]||"",value:r}}parseObjectData(t,a,c,n){return Cg1.bind(this)(t,a,c,n)}update(t){const a=this._cachedMeta.data;this._updateRadius(),this.updateElements(a,0,a.length,t)}getMinMax(){const t=this._cachedMeta,a={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((c,n)=>{const r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(r<a.min&&(a.min=r),r>a.max&&(a.max=r))}),a}_updateRadius(){const t=this.chart,a=t.chartArea,c=t.options,n=Math.min(a.right-a.left,a.bottom-a.top),r=Math.max(n/2,0),i=Math.max(c.cutoutPercentage?r/100*c.cutoutPercentage:1,0),o=(r-i)/t.getVisibleDatasetCount();this.outerRadius=r-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,a,c,n){const r=n==="reset",i=this.chart,l=i.options.animation,f=this._cachedMeta.rScale,u=f.xCenter,d=f.yCenter,h=f.getIndexAngle(0)-.5*Pe;let p=h,v;const m=360/this.countVisibleElements();for(v=0;v<a;++v)p+=this._computeAngle(v,n,m);for(v=a;v<a+c;v++){const y=t[v];let g=p,M=p+this._computeAngle(v,n,m),x=i.getDataVisibility(v)?f.getDistanceFromCenterForValue(this.getParsed(v).r):0;p=M,r&&(l.animateScale&&(x=0),l.animateRotate&&(g=M=h));const k={x:u,y:d,innerRadius:0,outerRadius:x,startAngle:g,endAngle:M,options:this.resolveDataElementOptions(v,y.active?"active":n)};this.updateElement(y,v,k,n)}}countVisibleElements(){const t=this._cachedMeta;let a=0;return t.data.forEach((c,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&a++}),a}_computeAngle(t,a,c){return this.chart.getDataVisibility(t)?o6(this.resolveDataElementOptions(t,a).angle||c):0}}S1(Tl,"id","polarArea"),S1(Tl,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),S1(Tl,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const a=t.data;if(a.labels.length&&a.datasets.length){const{labels:{pointStyle:c,color:n}}=t.legend.options;return a.labels.map((r,i)=>{const l=t.getDatasetMeta(0).controller.getStyle(i);return{text:r,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:n,lineWidth:l.borderWidth,pointStyle:c,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,a,c){c.chart.toggleDataVisibility(a.index),c.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class VZ extends ai{}S1(VZ,"id","pie"),S1(VZ,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class bF extends g6{getLabelAndValue(t){const a=this._cachedMeta.vScale,c=this.getParsed(t);return{label:a.getLabels()[t],value:""+a.getLabelForValue(c[a.axis])}}parseObjectData(t,a,c,n){return Cg1.bind(this)(t,a,c,n)}update(t){const a=this._cachedMeta,c=a.dataset,n=a.data||[],r=a.iScale.getLabels();if(c.points=n,t!=="resize"){const i=this.resolveDatasetElementOptions(t);this.options.showLine||(i.borderWidth=0);const o={_loop:!0,_fullLoop:r.length===n.length,options:i};this.updateElement(c,void 0,o,t)}this.updateElements(n,0,n.length,t)}updateElements(t,a,c,n){const r=this._cachedMeta.rScale,i=n==="reset";for(let o=a;o<a+c;o++){const l=t[o],f=this.resolveDataElementOptions(o,l.active?"active":n),u=r.getPointPositionForValue(o,this.getParsed(o).r),d=i?r.xCenter:u.x,h=i?r.yCenter:u.y,p={x:d,y:h,angle:u.angle,skip:isNaN(d)||isNaN(h),options:f};this.updateElement(l,o,p,n)}}}S1(bF,"id","radar"),S1(bF,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),S1(bF,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class zF extends g6{getLabelAndValue(t){const a=this._cachedMeta,c=this.chart.data.labels||[],{xScale:n,yScale:r}=a,i=this.getParsed(t),o=n.getLabelForValue(i.x),l=r.getLabelForValue(i.y);return{label:c[t]||"",value:"("+o+", "+l+")"}}update(t){const a=this._cachedMeta,{data:c=[]}=a,n=this.chart._animationsDisabled;let{start:r,count:i}=mg1(a,c,n);if(this._drawStart=r,this._drawCount=i,vg1(a)&&(r=0,i=c.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:o,_dataset:l}=a;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!l._decimated,o.points=c;const f=this.resolveDatasetElementOptions(t);f.segment=this.options.segment,this.updateElement(o,void 0,{animated:!n,options:f},t)}else this.datasetElementType&&(delete a.dataset,this.datasetElementType=!1);this.updateElements(c,r,i,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,a,c,n){const r=n==="reset",{iScale:i,vScale:o,_stacked:l,_dataset:f}=this._cachedMeta,u=this.resolveDataElementOptions(a,n),d=this.getSharedOptions(u),h=this.includeOptions(n,d),p=i.axis,v=o.axis,{spanGaps:m,segment:y}=this.options,g=bs(m)?m:Number.POSITIVE_INFINITY,M=this.chart._animationsDisabled||r||n==="none";let x=a>0&&this.getParsed(a-1);for(let k=a;k<a+c;++k){const b=t[k],_=this.getParsed(k),C=M?b:{},H=Q2(_[v]),V=C[p]=i.getPixelForValue(_[p],k),N=C[v]=r||H?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,_,l):_[v],k);C.skip=isNaN(V)||isNaN(N)||H,C.stop=k>0&&Math.abs(_[p]-x[p])>g,y&&(C.parsed=_,C.raw=f.data[k]),h&&(C.options=d||this.resolveDataElementOptions(k,b.active?"active":n)),M||this.updateElement(b,k,C,n),x=_}this.updateSharedOptions(d,n,u)}getMaxOverflow(){const t=this._cachedMeta,a=t.data||[];if(!this.options.showLine){let o=0;for(let l=a.length-1;l>=0;--l)o=Math.max(o,a[l].size(this.resolveDataElementOptions(l))/2);return o>0&&o}const c=t.dataset,n=c.options&&c.options.borderWidth||0;if(!a.length)return n;const r=a[0].size(this.resolveDataElementOptions(0)),i=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(n,r,i)/2}}S1(zF,"id","scatter"),S1(zF,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),S1(zF,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var Gde=Object.freeze({__proto__:null,BarController:MF,BubbleController:kF,DoughnutController:ai,LineController:xF,PieController:VZ,PolarAreaController:Tl,RadarController:bF,ScatterController:zF});function z5(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class m11{constructor(t){S1(this,"options");this.options=t||{}}static override(t){Object.assign(m11.prototype,t)}init(){}formats(){return z5()}parse(){return z5()}format(){return z5()}add(){return z5()}diff(){return z5()}startOf(){return z5()}endOf(){return z5()}}var Zde={_date:m11};function Xde(e,t,a,c){const{controller:n,data:r,_sorted:i}=e,o=n._cachedMeta.iScale;if(o&&t===o.axis&&t!=="r"&&i&&r.length){const l=o._reversePixels?Mue:i8;if(c){if(n._sharedOptions){const f=r[0],u=typeof f.getRange=="function"&&f.getRange(t);if(u){const d=l(r,t,a-u),h=l(r,t,a+u);return{lo:d.lo,hi:h.hi}}}}else return l(r,t,a)}return{lo:0,hi:r.length-1}}function Ru(e,t,a,c,n){const r=e.getSortedVisibleDatasetMetas(),i=a[t];for(let o=0,l=r.length;o<l;++o){const{index:f,data:u}=r[o],{lo:d,hi:h}=Xde(r[o],t,i,n);for(let p=d;p<=h;++p){const v=u[p];v.skip||c(v,f,p)}}}function Kde(e){const t=e.indexOf("x")!==-1,a=e.indexOf("y")!==-1;return function(c,n){const r=t?Math.abs(c.x-n.x):0,i=a?Math.abs(c.y-n.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}}function uY(e,t,a,c,n){const r=[];return!n&&!e.isPointInArea(t)||Ru(e,a,t,function(o,l,f){!n&&!o8(o,e.chartArea,0)||o.inRange(t.x,t.y,c)&&r.push({element:o,datasetIndex:l,index:f})},!0),r}function Qde(e,t,a,c){let n=[];function r(i,o,l){const{startAngle:f,endAngle:u}=i.getProps(["startAngle","endAngle"],c),{angle:d}=fg1(i,{x:t.x,y:t.y});Ef(d,f,u)&&n.push({element:i,datasetIndex:o,index:l})}return Ru(e,a,t,r),n}function Jde(e,t,a,c,n,r){let i=[];const o=Kde(a);let l=Number.POSITIVE_INFINITY;function f(u,d,h){const p=u.inRange(t.x,t.y,n);if(c&&!p)return;const v=u.getCenterPoint(n);if(!(!!r||e.isPointInArea(v))&&!p)return;const y=o(t,v);y<l?(i=[{element:u,datasetIndex:d,index:h}],l=y):y===l&&i.push({element:u,datasetIndex:d,index:h})}return Ru(e,a,t,f),i}function dY(e,t,a,c,n,r){return!r&&!e.isPointInArea(t)?[]:a==="r"&&!c?Qde(e,t,a,n):Jde(e,t,a,c,n,r)}function f81(e,t,a,c,n){const r=[],i=a==="x"?"inXRange":"inYRange";let o=!1;return Ru(e,a,t,(l,f,u)=>{l[i]&&l[i](t[a],n)&&(r.push({element:l,datasetIndex:f,index:u}),o=o||l.inRange(t.x,t.y,n))}),c&&!o?[]:r}var ehe={evaluateInteractionItems:Ru,modes:{index(e,t,a,c){const n=q7(t,e),r=a.axis||"x",i=a.includeInvisible||!1,o=a.intersect?uY(e,n,r,c,i):dY(e,n,r,!1,c,i),l=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach(f=>{const u=o[0].index,d=f.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:f.index,index:u})}),l):[]},dataset(e,t,a,c){const n=q7(t,e),r=a.axis||"xy",i=a.includeInvisible||!1;let o=a.intersect?uY(e,n,r,c,i):dY(e,n,r,!1,c,i);if(o.length>0){const l=o[0].datasetIndex,f=e.getDatasetMeta(l).data;o=[];for(let u=0;u<f.length;++u)o.push({element:f[u],datasetIndex:l,index:u})}return o},point(e,t,a,c){const n=q7(t,e),r=a.axis||"xy",i=a.includeInvisible||!1;return uY(e,n,r,c,i)},nearest(e,t,a,c){const n=q7(t,e),r=a.axis||"xy",i=a.includeInvisible||!1;return dY(e,n,r,a.intersect,c,i)},x(e,t,a,c){const n=q7(t,e);return f81(e,n,"x",a.intersect,c)},y(e,t,a,c){const n=q7(t,e);return f81(e,n,"y",a.intersect,c)}}};const Eg1=["left","top","right","bottom"];function P9(e,t){return e.filter(a=>a.pos===t)}function u81(e,t){return e.filter(a=>Eg1.indexOf(a.pos)===-1&&a.box.axis===t)}function O9(e,t){return e.sort((a,c)=>{const n=t?c:a,r=t?a:c;return n.weight===r.weight?n.index-r.index:n.weight-r.weight})}function the(e){const t=[];let a,c,n,r,i,o;for(a=0,c=(e||[]).length;a<c;++a)n=e[a],{position:r,options:{stack:i,stackWeight:o=1}}=n,t.push({index:a,box:n,pos:r,horizontal:n.isHorizontal(),weight:n.weight,stack:i&&r+i,stackWeight:o});return t}function ahe(e){const t={};for(const a of e){const{stack:c,pos:n,stackWeight:r}=a;if(!c||!Eg1.includes(n))continue;const i=t[c]||(t[c]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=r}return t}function che(e,t){const a=ahe(e),{vBoxMaxWidth:c,hBoxMaxHeight:n}=t;let r,i,o;for(r=0,i=e.length;r<i;++r){o=e[r];const{fullSize:l}=o.box,f=a[o.stack],u=f&&o.stackWeight/f.weight;o.horizontal?(o.width=u?u*c:l&&t.availableWidth,o.height=n):(o.width=c,o.height=u?u*n:l&&t.availableHeight)}return a}function nhe(e){const t=the(e),a=O9(t.filter(f=>f.box.fullSize),!0),c=O9(P9(t,"left"),!0),n=O9(P9(t,"right")),r=O9(P9(t,"top"),!0),i=O9(P9(t,"bottom")),o=u81(t,"x"),l=u81(t,"y");return{fullSize:a,leftAndTop:c.concat(r),rightAndBottom:n.concat(l).concat(i).concat(o),chartArea:P9(t,"chartArea"),vertical:c.concat(n).concat(l),horizontal:r.concat(i).concat(o)}}function d81(e,t,a,c){return Math.max(e[a],t[a])+Math.max(e[c],t[c])}function Dg1(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function rhe(e,t,a,c){const{pos:n,box:r}=a,i=e.maxPadding;if(!F2(n)){a.size&&(e[n]-=a.size);const d=c[a.stack]||{size:0,count:1};d.size=Math.max(d.size,a.horizontal?r.height:r.width),a.size=d.size/d.count,e[n]+=a.size}r.getPadding&&Dg1(i,r.getPadding());const o=Math.max(0,t.outerWidth-d81(i,e,"left","right")),l=Math.max(0,t.outerHeight-d81(i,e,"top","bottom")),f=o!==e.w,u=l!==e.h;return e.w=o,e.h=l,a.horizontal?{same:f,other:u}:{same:u,other:f}}function ihe(e){const t=e.maxPadding;function a(c){const n=Math.max(t[c]-e[c],0);return e[c]+=n,n}e.y+=a("top"),e.x+=a("left"),a("right"),a("bottom")}function ohe(e,t){const a=t.maxPadding;function c(n){const r={left:0,top:0,right:0,bottom:0};return n.forEach(i=>{r[i]=Math.max(t[i],a[i])}),r}return c(e?["left","right"]:["top","bottom"])}function J9(e,t,a,c){const n=[];let r,i,o,l,f,u;for(r=0,i=e.length,f=0;r<i;++r){o=e[r],l=o.box,l.update(o.width||t.w,o.height||t.h,ohe(o.horizontal,t));const{same:d,other:h}=rhe(t,a,o,c);f|=d&&n.length,u=u||h,l.fullSize||n.push(o)}return f&&J9(n,t,a,c)||u}function nh(e,t,a,c,n){e.top=a,e.left=t,e.right=t+c,e.bottom=a+n,e.width=c,e.height=n}function h81(e,t,a,c){const n=a.padding;let{x:r,y:i}=t;for(const o of e){const l=o.box,f=c[o.stack]||{count:1,placed:0,weight:1},u=o.stackWeight/f.weight||1;if(o.horizontal){const d=t.w*u,h=f.size||l.height;Tf(f.start)&&(i=f.start),l.fullSize?nh(l,n.left,i,a.outerWidth-n.right-n.left,h):nh(l,t.left+f.placed,i,d,h),f.start=i,f.placed+=d,i=l.bottom}else{const d=t.h*u,h=f.size||l.width;Tf(f.start)&&(r=f.start),l.fullSize?nh(l,r,n.top,h,a.outerHeight-n.bottom-n.top):nh(l,r,t.top+f.placed,h,d),f.start=r,f.placed+=d,r=l.right}}t.x=r,t.y=i}var y4={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(a){t.draw(a)}}]},e.boxes.push(t)},removeBox(e,t){const a=e.boxes?e.boxes.indexOf(t):-1;a!==-1&&e.boxes.splice(a,1)},configure(e,t,a){t.fullSize=a.fullSize,t.position=a.position,t.weight=a.weight},update(e,t,a,c){if(!e)return;const n=b4(e.options.layout.padding),r=Math.max(t-n.width,0),i=Math.max(a-n.height,0),o=nhe(e.boxes),l=o.vertical,f=o.horizontal;he(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=l.reduce((m,y)=>y.box.options&&y.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:a,padding:n,availableWidth:r,availableHeight:i,vBoxMaxWidth:r/2/u,hBoxMaxHeight:i/2}),h=Object.assign({},n);Dg1(h,b4(c));const p=Object.assign({maxPadding:h,w:r,h:i,x:n.left,y:n.top},n),v=che(l.concat(f),d);J9(o.fullSize,p,d,v),J9(l,p,d,v),J9(f,p,d,v)&&J9(l,p,d,v),ihe(p),h81(o.leftAndTop,p,d,v),p.x+=p.w,p.y+=p.h,h81(o.rightAndBottom,p,d,v),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},he(o.chartArea,m=>{const y=m.box;Object.assign(y,e.chartArea),y.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Pg1{acquireContext(t,a){}releaseContext(t){return!1}addEventListener(t,a,c){}removeEventListener(t,a,c){}getDevicePixelRatio(){return 1}getMaximumSize(t,a,c,n){return a=Math.max(0,a||t.width),c=c||t.height,{width:a,height:Math.max(0,n?Math.floor(a/n):c)}}isAttached(t){return!0}updateConfig(t){}}class she extends Pg1{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const CF="$chartjs",lhe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},p81=e=>e===null||e==="";function fhe(e,t){const a=e.style,c=e.getAttribute("height"),n=e.getAttribute("width");if(e[CF]={initial:{height:c,width:n,style:{display:a.display,height:a.height,width:a.width}}},a.display=a.display||"block",a.boxSizing=a.boxSizing||"border-box",p81(n)){const r=Kt1(e,"width");r!==void 0&&(e.width=r)}if(p81(c))if(e.style.height==="")e.height=e.width/(t||2);else{const r=Kt1(e,"height");r!==void 0&&(e.height=r)}return e}const Og1=dde?{passive:!0}:!1;function uhe(e,t,a){e&&e.addEventListener(t,a,Og1)}function dhe(e,t,a){e&&e.canvas&&e.canvas.removeEventListener(t,a,Og1)}function hhe(e,t){const a=lhe[e.type]||e.type,{x:c,y:n}=q7(e,t);return{type:a,chart:t,native:e,x:c!==void 0?c:null,y:n!==void 0?n:null}}function I$(e,t){for(const a of e)if(a===t||a.contains(t))return!0}function phe(e,t,a){const c=e.canvas,n=new MutationObserver(r=>{let i=!1;for(const o of r)i=i||I$(o.addedNodes,c),i=i&&!I$(o.removedNodes,c);i&&a()});return n.observe(document,{childList:!0,subtree:!0}),n}function mhe(e,t,a){const c=e.canvas,n=new MutationObserver(r=>{let i=!1;for(const o of r)i=i||I$(o.removedNodes,c),i=i&&!I$(o.addedNodes,c);i&&a()});return n.observe(document,{childList:!0,subtree:!0}),n}const Pf=new Map;let m81=0;function Ig1(){const e=window.devicePixelRatio;e!==m81&&(m81=e,Pf.forEach((t,a)=>{a.currentDevicePixelRatio!==e&&t()}))}function vhe(e,t){Pf.size||window.addEventListener("resize",Ig1),Pf.set(e,t)}function yhe(e){Pf.delete(e),Pf.size||window.removeEventListener("resize",Ig1)}function ghe(e,t,a){const c=e.canvas,n=c&&p11(c);if(!n)return;const r=pg1((o,l)=>{const f=n.clientWidth;a(o,l),f<n.clientWidth&&a()},window),i=new ResizeObserver(o=>{const l=o[0],f=l.contentRect.width,u=l.contentRect.height;f===0&&u===0||r(f,u)});return i.observe(n),vhe(e,r),i}function hY(e,t,a){a&&a.disconnect(),t==="resize"&&yhe(e)}function Mhe(e,t,a){const c=e.canvas,n=pg1(r=>{e.ctx!==null&&a(hhe(r,e))},e);return uhe(c,t,n),n}class khe extends Pg1{acquireContext(t,a){const c=t&&t.getContext&&t.getContext("2d");return c&&c.canvas===t?(fhe(t,a),c):null}releaseContext(t){const a=t.canvas;if(!a[CF])return!1;const c=a[CF].initial;["height","width"].forEach(r=>{const i=c[r];Q2(i)?a.removeAttribute(r):a.setAttribute(r,i)});const n=c.style||{};return Object.keys(n).forEach(r=>{a.style[r]=n[r]}),a.width=a.width,delete a[CF],!0}addEventListener(t,a,c){this.removeEventListener(t,a);const n=t.$proxies||(t.$proxies={}),i={attach:phe,detach:mhe,resize:ghe}[a]||Mhe;n[a]=i(t,a,c)}removeEventListener(t,a){const c=t.$proxies||(t.$proxies={}),n=c[a];if(!n)return;({attach:hY,detach:hY,resize:hY}[a]||dhe)(t,a,n),c[a]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,a,c,n){return ude(t,a,c,n)}isAttached(t){const a=t&&p11(t);return!!(a&&a.isConnected)}}function xhe(e){return!h11()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?she:khe}var Dh;let O8=(Dh=class{constructor(){S1(this,"x");S1(this,"y");S1(this,"active",!1);S1(this,"options");S1(this,"$animations")}tooltipPosition(t){const{x:a,y:c}=this.getProps(["x","y"],t);return{x:a,y:c}}hasValue(){return bs(this.x)&&bs(this.y)}getProps(t,a){const c=this.$animations;if(!a||!c)return this;const n={};return t.forEach(r=>{n[r]=c[r]&&c[r].active()?c[r]._to:this[r]}),n}},S1(Dh,"defaults",{}),S1(Dh,"defaultRoutes"),Dh);function bhe(e,t){const a=e.options.ticks,c=zhe(e),n=Math.min(a.maxTicksLimit||c,c),r=a.major.enabled?_he(t):[],i=r.length,o=r[0],l=r[i-1],f=[];if(i>n)return whe(t,f,r,i/n),f;const u=Che(r,t,n);if(i>0){let d,h;const p=i>1?Math.round((l-o)/(i-1)):null;for(rh(t,f,u,Q2(p)?0:o-p,o),d=0,h=i-1;d<h;d++)rh(t,f,u,r[d],r[d+1]);return rh(t,f,u,l,Q2(p)?t.length:l+p),f}return rh(t,f,u),f}function zhe(e){const t=e.options.offset,a=e._tickSize(),c=e._length/a+(t?0:1),n=e._maxLength/a;return Math.floor(Math.min(c,n))}function Che(e,t,a){const c=Hhe(e),n=t.length/a;if(!c)return Math.max(n,1);const r=mue(c);for(let i=0,o=r.length-1;i<o;i++){const l=r[i];if(l>n)return l}return Math.max(n,1)}function _he(e){const t=[];let a,c;for(a=0,c=e.length;a<c;a++)e[a].major&&t.push(a);return t}function whe(e,t,a,c){let n=0,r=a[0],i;for(c=Math.ceil(c),i=0;i<e.length;i++)i===r&&(t.push(e[i]),n++,r=a[n*c])}function rh(e,t,a,c,n){const r=C2(c,0),i=Math.min(C2(n,e.length),e.length);let o=0,l,f,u;for(a=Math.ceil(a),n&&(l=n-c,a=l/Math.floor(l/a)),u=r;u<0;)o++,u=Math.round(r+o*a);for(f=Math.max(r,0);f<i;f++)f===u&&(t.push(e[f]),o++,u=Math.round(r+o*a))}function Hhe(e){const t=e.length;let a,c;if(t<2)return!1;for(c=e[0],a=1;a<t;++a)if(e[a]-e[a-1]!==c)return!1;return c}const Lhe=e=>e==="left"?"right":e==="right"?"left":e,v81=(e,t,a)=>t==="top"||t==="left"?e[t]+a:e[t]-a,y81=(e,t)=>Math.min(t||e,e);function g81(e,t){const a=[],c=e.length/t,n=e.length;let r=0;for(;r<n;r+=c)a.push(e[Math.floor(r)]);return a}function Vhe(e,t,a){const c=e.ticks.length,n=Math.min(t,c-1),r=e._startPixel,i=e._endPixel,o=1e-6;let l=e.getPixelForTick(n),f;if(!(a&&(c===1?f=Math.max(l-r,i-l):t===0?f=(e.getPixelForTick(1)-l)/2:f=(l-e.getPixelForTick(n-1))/2,l+=n<t?f:-f,l<r-o||l>i+o)))return l}function She(e,t){he(e,a=>{const c=a.gc,n=c.length/2;let r;if(n>t){for(r=0;r<n;++r)delete a.data[c[r]];c.splice(0,n)}})}function I9(e){return e.drawTicks?e.tickLength:0}function M81(e,t){if(!e.display)return 0;const a=I3(e.font,t),c=b4(e.padding);return(Ae(e.text)?e.text.length:1)*a.lineHeight+c.height}function Nhe(e,t){return i5(e,{scale:t,type:"scale"})}function Ahe(e,t,a){return i5(e,{tick:a,index:t,type:"tick"})}function The(e,t,a){let c=o11(e);return(a&&t!=="right"||!a&&t==="right")&&(c=Lhe(c)),c}function Ehe(e,t,a,c){const{top:n,left:r,bottom:i,right:o,chart:l}=e,{chartArea:f,scales:u}=l;let d=0,h,p,v;const m=i-n,y=o-r;if(e.isHorizontal()){if(p=l4(c,r,o),F2(a)){const g=Object.keys(a)[0],M=a[g];v=u[g].getPixelForValue(M)+m-t}else a==="center"?v=(f.bottom+f.top)/2+m-t:v=v81(e,a,t);h=o-r}else{if(F2(a)){const g=Object.keys(a)[0],M=a[g];p=u[g].getPixelForValue(M)-y+t}else a==="center"?p=(f.left+f.right)/2-y+t:p=v81(e,a,t);v=l4(c,i,n),d=a==="left"?-w3:w3}return{titleX:p,titleY:v,maxWidth:h,rotation:d}}class Ji extends O8{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,a){return t}getUserBounds(){let{_userMin:t,_userMax:a,_suggestedMin:c,_suggestedMax:n}=this;return t=e0(t,Number.POSITIVE_INFINITY),a=e0(a,Number.NEGATIVE_INFINITY),c=e0(c,Number.POSITIVE_INFINITY),n=e0(n,Number.NEGATIVE_INFINITY),{min:e0(t,c),max:e0(a,n),minDefined:l3(t),maxDefined:l3(a)}}getMinMax(t){let{min:a,max:c,minDefined:n,maxDefined:r}=this.getUserBounds(),i;if(n&&r)return{min:a,max:c};const o=this.getMatchingVisibleMetas();for(let l=0,f=o.length;l<f;++l)i=o[l].controller.getMinMax(this,t),n||(a=Math.min(a,i.min)),r||(c=Math.max(c,i.max));return a=r&&a>c?c:a,c=n&&a>c?a:c,{min:e0(a,e0(c,a)),max:e0(c,e0(a,c))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){xe(this.options.beforeUpdate,[this])}update(t,a,c){const{beginAtZero:n,grace:r,ticks:i}=this.options,o=i.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=a,this._margins=c=Object.assign({left:0,right:0,top:0,bottom:0},c),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+c.left+c.right:this.height+c.top+c.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=que(this,r,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=o<this.ticks.length;this._convertTicksToLabels(l?g81(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||i.source==="auto")&&(this.ticks=bhe(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,a,c;this.isHorizontal()?(a=this.left,c=this.right):(a=this.top,c=this.bottom,t=!t),this._startPixel=a,this._endPixel=c,this._reversePixels=t,this._length=c-a,this._alignToPixels=this.options.alignToPixels}afterUpdate(){xe(this.options.afterUpdate,[this])}beforeSetDimensions(){xe(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){xe(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),xe(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){xe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const a=this.options.ticks;let c,n,r;for(c=0,n=t.length;c<n;c++)r=t[c],r.label=xe(a.callback,[r.value,c,t],this)}afterTickToLabelConversion(){xe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){xe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,a=t.ticks,c=y81(this.ticks.length,t.ticks.maxTicksLimit),n=a.minRotation||0,r=a.maxRotation;let i=n,o,l,f;if(!this._isVisible()||!a.display||n>=r||c<=1||!this.isHorizontal()){this.labelRotation=n;return}const u=this._getLabelSizes(),d=u.widest.width,h=u.highest.height,p=X3(this.chart.width-d,0,this.maxWidth);o=t.offset?this.maxWidth/c:p/(c-1),d+6>o&&(o=p/(c-(t.offset?.5:1)),l=this.maxHeight-I9(t.grid)-a.padding-M81(t.title,this.chart.options.font),f=Math.sqrt(d*d+h*h),i=r11(Math.min(Math.asin(X3((u.highest.height+6)/o,-1,1)),Math.asin(X3(l/f,-1,1))-Math.asin(X3(h/f,-1,1)))),i=Math.max(n,Math.min(r,i))),this.labelRotation=i}afterCalculateLabelRotation(){xe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){xe(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:a,options:{ticks:c,title:n,grid:r}}=this,i=this._isVisible(),o=this.isHorizontal();if(i){const l=M81(n,a.options.font);if(o?(t.width=this.maxWidth,t.height=I9(r)+l):(t.height=this.maxHeight,t.width=I9(r)+l),c.display&&this.ticks.length){const{first:f,last:u,widest:d,highest:h}=this._getLabelSizes(),p=c.padding*2,v=o6(this.labelRotation),m=Math.cos(v),y=Math.sin(v);if(o){const g=c.mirror?0:y*d.width+m*h.height;t.height=Math.min(this.maxHeight,t.height+g+p)}else{const g=c.mirror?0:m*d.width+y*h.height;t.width=Math.min(this.maxWidth,t.width+g+p)}this._calculatePadding(f,u,y,m)}}this._handleMargins(),o?(this.width=this._length=a.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=a.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,a,c,n){const{ticks:{align:r,padding:i},position:o}=this.options,l=this.labelRotation!==0,f=o!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,p=0;l?f?(h=n*t.width,p=c*a.height):(h=c*t.height,p=n*a.width):r==="start"?p=a.width:r==="end"?h=t.width:r!=="inner"&&(h=t.width/2,p=a.width/2),this.paddingLeft=Math.max((h-u+i)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+i)*this.width/(this.width-d),0)}else{let u=a.height/2,d=t.height/2;r==="start"?(u=0,d=t.height):r==="end"&&(u=a.height,d=0),this.paddingTop=u+i,this.paddingBottom=d+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){xe(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:a}=this.options;return a==="top"||a==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let a,c;for(a=0,c=t.length;a<c;a++)Q2(t[a].label)&&(t.splice(a,1),c--,a--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const a=this.options.ticks.sampleSize;let c=this.ticks;a<c.length&&(c=g81(c,a)),this._labelSizes=t=this._computeLabelSizes(c,c.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,a,c){const{ctx:n,_longestTextCache:r}=this,i=[],o=[],l=Math.floor(a/y81(a,c));let f=0,u=0,d,h,p,v,m,y,g,M,x,k,b;for(d=0;d<a;d+=l){if(v=t[d].label,m=this._resolveTickFontOptions(d),n.font=y=m.string,g=r[y]=r[y]||{data:{},gc:[]},M=m.lineHeight,x=k=0,!Q2(v)&&!Ae(v))x=P$(n,g.data,g.gc,x,v),k=M;else if(Ae(v))for(h=0,p=v.length;h<p;++h)b=v[h],!Q2(b)&&!Ae(b)&&(x=P$(n,g.data,g.gc,x,b),k+=M);i.push(x),o.push(k),f=Math.max(x,f),u=Math.max(k,u)}She(r,a);const _=i.indexOf(f),C=o.indexOf(u),H=V=>({width:i[V]||0,height:o[V]||0});return{first:H(0),last:H(a-1),widest:H(_),highest:H(C),widths:i,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,a){return NaN}getValueForPixel(t){}getPixelForTick(t){const a=this.ticks;return t<0||t>a.length-1?null:this.getPixelForValue(a[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const a=this._startPixel+t*this._length;return gue(this._alignToPixels?b5(this.chart,a,0):a)}getDecimalForPixel(t){const a=(t-this._startPixel)/this._length;return this._reversePixels?1-a:a}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:a}=this;return t<0&&a<0?a:t>0&&a>0?t:0}getContext(t){const a=this.ticks||[];if(t>=0&&t<a.length){const c=a[t];return c.$context||(c.$context=Ahe(this.getContext(),t,c))}return this.$context||(this.$context=Nhe(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,a=o6(this.labelRotation),c=Math.abs(Math.cos(a)),n=Math.abs(Math.sin(a)),r=this._getLabelSizes(),i=t.autoSkipPadding||0,o=r?r.widest.width+i:0,l=r?r.highest.height+i:0;return this.isHorizontal()?l*c>o*n?o/c:l/n:l*n<o*c?l/c:o/n}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const a=this.axis,c=this.chart,n=this.options,{grid:r,position:i,border:o}=n,l=r.offset,f=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=I9(r),p=[],v=o.setContext(this.getContext()),m=v.display?v.width:0,y=m/2,g=function(R){return b5(c,R,m)};let M,x,k,b,_,C,H,V,N,L,w,P;if(i==="top")M=g(this.bottom),C=this.bottom-h,V=M-y,L=g(t.top)+y,P=t.bottom;else if(i==="bottom")M=g(this.top),L=t.top,P=g(t.bottom)-y,C=M+y,V=this.top+h;else if(i==="left")M=g(this.right),_=this.right-h,H=M-y,N=g(t.left)+y,w=t.right;else if(i==="right")M=g(this.left),N=t.left,w=g(t.right)-y,_=M+y,H=this.left+h;else if(a==="x"){if(i==="center")M=g((t.top+t.bottom)/2+.5);else if(F2(i)){const R=Object.keys(i)[0],Y=i[R];M=g(this.chart.scales[R].getPixelForValue(Y))}L=t.top,P=t.bottom,C=M+y,V=C+h}else if(a==="y"){if(i==="center")M=g((t.left+t.right)/2);else if(F2(i)){const R=Object.keys(i)[0],Y=i[R];M=g(this.chart.scales[R].getPixelForValue(Y))}_=M-y,H=_-h,N=t.left,w=t.right}const j=C2(n.ticks.maxTicksLimit,d),T=Math.max(1,Math.ceil(d/j));for(x=0;x<d;x+=T){const R=this.getContext(x),Y=r.setContext(R),e1=o.setContext(R),Z=Y.lineWidth,W=Y.color,I=e1.dash||[],E=e1.dashOffset,S=Y.tickWidth,U=Y.tickColor,G=Y.tickBorderDash||[],A=Y.tickBorderDashOffset;k=Vhe(this,x,l),k!==void 0&&(b=b5(c,k,Z),f?_=H=N=w=b:C=V=L=P=b,p.push({tx1:_,ty1:C,tx2:H,ty2:V,x1:N,y1:L,x2:w,y2:P,width:Z,color:W,borderDash:I,borderDashOffset:E,tickWidth:S,tickColor:U,tickBorderDash:G,tickBorderDashOffset:A}))}return this._ticksLength=d,this._borderValue=M,p}_computeLabelItems(t){const a=this.axis,c=this.options,{position:n,ticks:r}=c,i=this.isHorizontal(),o=this.ticks,{align:l,crossAlign:f,padding:u,mirror:d}=r,h=I9(c.grid),p=h+u,v=d?-u:p,m=-o6(this.labelRotation),y=[];let g,M,x,k,b,_,C,H,V,N,L,w,P="middle";if(n==="top")_=this.bottom-v,C=this._getXAxisLabelAlignment();else if(n==="bottom")_=this.top+v,C=this._getXAxisLabelAlignment();else if(n==="left"){const T=this._getYAxisLabelAlignment(h);C=T.textAlign,b=T.x}else if(n==="right"){const T=this._getYAxisLabelAlignment(h);C=T.textAlign,b=T.x}else if(a==="x"){if(n==="center")_=(t.top+t.bottom)/2+p;else if(F2(n)){const T=Object.keys(n)[0],R=n[T];_=this.chart.scales[T].getPixelForValue(R)+p}C=this._getXAxisLabelAlignment()}else if(a==="y"){if(n==="center")b=(t.left+t.right)/2-p;else if(F2(n)){const T=Object.keys(n)[0],R=n[T];b=this.chart.scales[T].getPixelForValue(R)}C=this._getYAxisLabelAlignment(h).textAlign}a==="y"&&(l==="start"?P="top":l==="end"&&(P="bottom"));const j=this._getLabelSizes();for(g=0,M=o.length;g<M;++g){x=o[g],k=x.label;const T=r.setContext(this.getContext(g));H=this.getPixelForTick(g)+r.labelOffset,V=this._resolveTickFontOptions(g),N=V.lineHeight,L=Ae(k)?k.length:1;const R=L/2,Y=T.color,e1=T.textStrokeColor,Z=T.textStrokeWidth;let W=C;i?(b=H,C==="inner"&&(g===M-1?W=this.options.reverse?"left":"right":g===0?W=this.options.reverse?"right":"left":W="center"),n==="top"?f==="near"||m!==0?w=-L*N+N/2:f==="center"?w=-j.highest.height/2-R*N+N:w=-j.highest.height+N/2:f==="near"||m!==0?w=N/2:f==="center"?w=j.highest.height/2-R*N:w=j.highest.height-L*N,d&&(w*=-1),m!==0&&!T.showLabelBackdrop&&(b+=N/2*Math.sin(m))):(_=H,w=(1-L)*N/2);let I;if(T.showLabelBackdrop){const E=b4(T.backdropPadding),S=j.heights[g],U=j.widths[g];let G=w-E.top,A=0-E.left;switch(P){case"middle":G-=S/2;break;case"bottom":G-=S;break}switch(C){case"center":A-=U/2;break;case"right":A-=U;break;case"inner":g===M-1?A-=U:g>0&&(A-=U/2);break}I={left:A,top:G,width:U+E.width,height:S+E.height,color:T.backdropColor}}y.push({label:k,font:V,textOffset:w,options:{rotation:m,color:Y,strokeColor:e1,strokeWidth:Z,textAlign:W,textBaseline:P,translation:[b,_],backdrop:I}})}return y}_getXAxisLabelAlignment(){const{position:t,ticks:a}=this.options;if(-o6(this.labelRotation))return t==="top"?"left":"right";let n="center";return a.align==="start"?n="left":a.align==="end"?n="right":a.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:a,ticks:{crossAlign:c,mirror:n,padding:r}}=this.options,i=this._getLabelSizes(),o=t+r,l=i.widest.width;let f,u;return a==="left"?n?(u=this.right+r,c==="near"?f="left":c==="center"?(f="center",u+=l/2):(f="right",u+=l)):(u=this.right-o,c==="near"?f="right":c==="center"?(f="center",u-=l/2):(f="left",u=this.left)):a==="right"?n?(u=this.left+r,c==="near"?f="right":c==="center"?(f="center",u-=l/2):(f="left",u-=l)):(u=this.left+o,c==="near"?f="left":c==="center"?(f="center",u+=l/2):(f="right",u=this.right)):f="right",{textAlign:f,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,a=this.options.position;if(a==="left"||a==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(a==="top"||a==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:a},left:c,top:n,width:r,height:i}=this;a&&(t.save(),t.fillStyle=a,t.fillRect(c,n,r,i),t.restore())}getLineWidthForValue(t){const a=this.options.grid;if(!this._isVisible()||!a.display)return 0;const n=this.ticks.findIndex(r=>r.value===t);return n>=0?a.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const a=this.options.grid,c=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,i;const o=(l,f,u)=>{!u.width||!u.color||(c.save(),c.lineWidth=u.width,c.strokeStyle=u.color,c.setLineDash(u.borderDash||[]),c.lineDashOffset=u.borderDashOffset,c.beginPath(),c.moveTo(l.x,l.y),c.lineTo(f.x,f.y),c.stroke(),c.restore())};if(a.display)for(r=0,i=n.length;r<i;++r){const l=n[r];a.drawOnChartArea&&o({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),a.drawTicks&&o({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:a,options:{border:c,grid:n}}=this,r=c.setContext(this.getContext()),i=c.display?r.width:0;if(!i)return;const o=n.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let f,u,d,h;this.isHorizontal()?(f=b5(t,this.left,i)-i/2,u=b5(t,this.right,o)+o/2,d=h=l):(d=b5(t,this.top,i)-i/2,h=b5(t,this.bottom,o)+o/2,f=u=l),a.save(),a.lineWidth=r.width,a.strokeStyle=r.color,a.beginPath(),a.moveTo(f,d),a.lineTo(u,h),a.stroke(),a.restore()}drawLabels(t){if(!this.options.ticks.display)return;const c=this.ctx,n=this._computeLabelArea();n&&qj(c,n);const r=this.getLabelItems(t);for(const i of r){const o=i.options,l=i.font,f=i.label,u=i.textOffset;Ai(c,f,0,u,l,o)}n&&jj(c)}drawTitle(){const{ctx:t,options:{position:a,title:c,reverse:n}}=this;if(!c.display)return;const r=I3(c.font),i=b4(c.padding),o=c.align;let l=r.lineHeight/2;a==="bottom"||a==="center"||F2(a)?(l+=i.bottom,Ae(c.text)&&(l+=r.lineHeight*(c.text.length-1))):l+=i.top;const{titleX:f,titleY:u,maxWidth:d,rotation:h}=Ehe(this,l,a,o);Ai(t,c.text,0,0,r,{color:c.color,maxWidth:d,rotation:h,textAlign:The(o,a,n),textBaseline:"middle",translation:[f,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,a=t.ticks&&t.ticks.z||0,c=C2(t.grid&&t.grid.z,-1),n=C2(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ji.prototype.draw?[{z:a,draw:r=>{this.draw(r)}}]:[{z:c,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:a,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(t){const a=this.chart.getSortedVisibleDatasetMetas(),c=this.axis+"AxisID",n=[];let r,i;for(r=0,i=a.length;r<i;++r){const o=a[r];o[c]===this.id&&(!t||o.type===t)&&n.push(o)}return n}_resolveTickFontOptions(t){const a=this.options.ticks.setContext(this.getContext(t));return I3(a.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class ih{constructor(t,a,c){this.type=t,this.scope=a,this.override=c,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const a=Object.getPrototypeOf(t);let c;Ohe(a)&&(c=this.register(a));const n=this.items,r=t.id,i=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in n||(n[r]=t,Dhe(t,i,c),this.override&&We.override(t.id,t.overrides)),i}get(t){return this.items[t]}unregister(t){const a=this.items,c=t.id,n=this.scope;c in a&&delete a[c],n&&c in We[n]&&(delete We[n][c],this.override&&delete Ni[c])}}function Dhe(e,t,a){const c=Af(Object.create(null),[a?We.get(a):{},We.get(t),e.defaults]);We.set(t,c),e.defaultRoutes&&Phe(t,e.defaultRoutes),e.descriptors&&We.describe(t,e.descriptors)}function Phe(e,t){Object.keys(t).forEach(a=>{const c=a.split("."),n=c.pop(),r=[e].concat(c).join("."),i=t[a].split("."),o=i.pop(),l=i.join(".");We.route(r,n,l,o)})}function Ohe(e){return"id"in e&&"defaults"in e}class Ihe{constructor(){this.controllers=new ih(g6,"datasets",!0),this.elements=new ih(O8,"elements"),this.plugins=new ih(Object,"plugins"),this.scales=new ih(Ji,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,a,c){[...a].forEach(n=>{const r=c||this._getRegistryForType(n);c||r.isForType(n)||r===this.plugins&&n.id?this._exec(t,r,n):he(n,i=>{const o=c||this._getRegistryForType(i);this._exec(t,o,i)})})}_exec(t,a,c){const n=n11(t);xe(c["before"+n],[],c),a[t](c),xe(c["after"+n],[],c)}_getRegistryForType(t){for(let a=0;a<this._typedRegistries.length;a++){const c=this._typedRegistries[a];if(c.isForType(t))return c}return this.plugins}_get(t,a,c){const n=a.get(t);if(n===void 0)throw new Error('"'+t+'" is not a registered '+c+".");return n}}var Q6=new Ihe;class Bhe{constructor(){this._init=[]}notify(t,a,c,n){a==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=n?this._descriptors(t).filter(n):this._descriptors(t),i=this._notify(r,t,a,c);return a==="afterDestroy"&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),i}_notify(t,a,c,n){n=n||{};for(const r of t){const i=r.plugin,o=i[c],l=[a,n,r.options];if(xe(o,l,i)===!1&&n.cancelable)return!1}return!0}invalidate(){Q2(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const a=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),a}_createDescriptors(t,a){const c=t&&t.config,n=C2(c.options&&c.options.plugins,{}),r=Rhe(c);return n===!1&&!a?[]:$he(t,r,n,a)}_notifyStateChanges(t){const a=this._oldCache||[],c=this._cache,n=(r,i)=>r.filter(o=>!i.some(l=>o.plugin.id===l.plugin.id));this._notify(n(a,c),t,"stop"),this._notify(n(c,a),t,"start")}}function Rhe(e){const t={},a=[],c=Object.keys(Q6.plugins.items);for(let r=0;r<c.length;r++)a.push(Q6.getPlugin(c[r]));const n=e.plugins||[];for(let r=0;r<n.length;r++){const i=n[r];a.indexOf(i)===-1&&(a.push(i),t[i.id]=!0)}return{plugins:a,localIds:t}}function Fhe(e,t){return!t&&e===!1?null:e===!0?{}:e}function $he(e,{plugins:t,localIds:a},c,n){const r=[],i=e.getContext();for(const o of t){const l=o.id,f=Fhe(c[l],n);f!==null&&r.push({plugin:o,options:qhe(e.config,{plugin:o,local:a[l]},f,i)})}return r}function qhe(e,{plugin:t,local:a},c,n){const r=e.pluginScopeKeys(t),i=e.getOptionScopes(c,r);return a&&t.defaults&&i.push(t.defaults),e.createResolver(i,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function SZ(e,t){const a=We.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||a.indexAxis||"x"}function jhe(e,t){let a=e;return e==="_index_"?a=t:e==="_value_"&&(a=t==="x"?"y":"x"),a}function Uhe(e,t){return e===t?"_index_":"_value_"}function k81(e){if(e==="x"||e==="y"||e==="r")return e}function Whe(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function NZ(e,...t){if(k81(e))return e;for(const a of t){const c=a.axis||Whe(a.position)||e.length>1&&k81(e[0].toLowerCase());if(c)return c}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function x81(e,t,a){if(a[t+"AxisID"]===e)return{axis:t}}function Yhe(e,t){if(t.data&&t.data.datasets){const a=t.data.datasets.filter(c=>c.xAxisID===e||c.yAxisID===e);if(a.length)return x81(e,"x",a[0])||x81(e,"y",a[0])}return{}}function Ghe(e,t){const a=Ni[e.type]||{scales:{}},c=t.scales||{},n=SZ(e.type,t),r=Object.create(null);return Object.keys(c).forEach(i=>{const o=c[i];if(!F2(o))return console.error(`Invalid scale configuration for scale: ${i}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${i}`);const l=NZ(i,o,Yhe(i,e),We.scales[o.type]),f=Uhe(l,n),u=a.scales||{};r[i]=Vl(Object.create(null),[{axis:l},o,u[l],u[f]])}),e.data.datasets.forEach(i=>{const o=i.type||e.type,l=i.indexAxis||SZ(o,t),u=(Ni[o]||{}).scales||{};Object.keys(u).forEach(d=>{const h=jhe(d,l),p=i[h+"AxisID"]||h;r[p]=r[p]||Object.create(null),Vl(r[p],[{axis:h},c[p],u[d]])})}),Object.keys(r).forEach(i=>{const o=r[i];Vl(o,[We.scales[o.type],We.scale])}),r}function Bg1(e){const t=e.options||(e.options={});t.plugins=C2(t.plugins,{}),t.scales=Ghe(e,t)}function Rg1(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Zhe(e){return e=e||{},e.data=Rg1(e.data),Bg1(e),e}const b81=new Map,Fg1=new Set;function oh(e,t){let a=b81.get(e);return a||(a=t(),b81.set(e,a),Fg1.add(a)),a}const B9=(e,t,a)=>{const c=ja(t,a);c!==void 0&&e.add(c)};class Xhe{constructor(t){this._config=Zhe(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Rg1(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Bg1(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return oh(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,a){return oh(`${t}.transition.${a}`,()=>[[`datasets.${t}.transitions.${a}`,`transitions.${a}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,a){return oh(`${t}-${a}`,()=>[[`datasets.${t}.elements.${a}`,`datasets.${t}`,`elements.${a}`,""]])}pluginScopeKeys(t){const a=t.id,c=this.type;return oh(`${c}-plugin-${a}`,()=>[[`plugins.${a}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,a){const c=this._scopeCache;let n=c.get(t);return(!n||a)&&(n=new Map,c.set(t,n)),n}getOptionScopes(t,a,c){const{options:n,type:r}=this,i=this._cachedScopes(t,c),o=i.get(a);if(o)return o;const l=new Set;a.forEach(u=>{t&&(l.add(t),u.forEach(d=>B9(l,t,d))),u.forEach(d=>B9(l,n,d)),u.forEach(d=>B9(l,Ni[r]||{},d)),u.forEach(d=>B9(l,We,d)),u.forEach(d=>B9(l,HZ,d))});const f=Array.from(l);return f.length===0&&f.push(Object.create(null)),Fg1.has(a)&&i.set(a,f),f}chartOptionScopes(){const{options:t,type:a}=this;return[t,Ni[a]||{},We.datasets[a]||{},{type:a},We,HZ]}resolveNamedOptions(t,a,c,n=[""]){const r={$shared:!0},{resolver:i,subPrefixes:o}=z81(this._resolverCache,t,n);let l=i;if(Qhe(i,a)){r.$shared=!1,c=Ua(c)?c():c;const f=this.createResolver(t,c,o);l=zs(i,c,f)}for(const f of a)r[f]=l[f];return r}createResolver(t,a,c=[""],n){const{resolver:r}=z81(this._resolverCache,t,c);return F2(a)?zs(r,a,void 0,n):r}}function z81(e,t,a){let c=e.get(t);c||(c=new Map,e.set(t,c));const n=a.join();let r=c.get(n);return r||(r={resolver:f11(t,a),subPrefixes:a.filter(o=>!o.toLowerCase().includes("hover"))},c.set(n,r)),r}const Khe=e=>F2(e)&&Object.getOwnPropertyNames(e).some(t=>Ua(e[t]));function Qhe(e,t){const{isScriptable:a,isIndexable:c}=kg1(e);for(const n of t){const r=a(n),i=c(n),o=(i||r)&&e[n];if(r&&(Ua(o)||Khe(o))||i&&Ae(o))return!0}return!1}var Jhe="4.4.6";const epe=["top","bottom","left","right","chartArea"];function C81(e,t){return e==="top"||e==="bottom"||epe.indexOf(e)===-1&&t==="x"}function _81(e,t){return function(a,c){return a[e]===c[e]?a[t]-c[t]:a[e]-c[e]}}function w81(e){const t=e.chart,a=t.options.animation;t.notifyPlugins("afterRender"),xe(a&&a.onComplete,[e],t)}function tpe(e){const t=e.chart,a=t.options.animation;xe(a&&a.onProgress,[e],t)}function $g1(e){return h11()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const _F={},H81=e=>{const t=$g1(e);return Object.values(_F).filter(a=>a.canvas===t).pop()};function ape(e,t,a){const c=Object.keys(e);for(const n of c){const r=+n;if(r>=t){const i=e[n];delete e[n],(a>0||r>t)&&(e[r+a]=i)}}}function cpe(e,t,a,c){return!a||e.type==="mouseout"?null:c?t:e}function sh(e,t,a){return e.options.clip?e[a]:t[a]}function npe(e,t){const{xScale:a,yScale:c}=e;return a&&c?{left:sh(a,t,"left"),right:sh(a,t,"right"),top:sh(c,t,"top"),bottom:sh(c,t,"bottom")}:t}class et{static register(...t){Q6.add(...t),L81()}static unregister(...t){Q6.remove(...t),L81()}constructor(t,a){const c=this.config=new Xhe(a),n=$g1(t),r=H81(n);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const i=c.createResolver(c.chartOptionScopes(),this.getContext());this.platform=new(c.platform||xhe(n)),this.platform.updateConfig(c);const o=this.platform.acquireContext(n,i.aspectRatio),l=o&&o.canvas,f=l&&l.height,u=l&&l.width;if(this.id=iue(),this.ctx=o,this.canvas=l,this.width=u,this.height=f,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Bhe,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=bue(d=>this.update(d),i.resizeDelay||0),this._dataChanges=[],_F[this.id]=this,!o||!l){console.error("Failed to create chart: can't acquire context from the given item");return}qt.listen(this,"complete",w81),qt.listen(this,"progress",tpe),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:a},width:c,height:n,_aspectRatio:r}=this;return Q2(t)?a&&r?r:n?c/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Q6}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Xt1(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Yt1(this.canvas,this.ctx),this}stop(){return qt.stop(this),this}resize(t,a){qt.running(this)?this._resizeBeforeDraw={width:t,height:a}:this._resize(t,a)}_resize(t,a){const c=this.options,n=this.canvas,r=c.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(n,t,a,r),o=c.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,Xt1(this,o,!0)&&(this.notifyPlugins("resize",{size:i}),xe(c.onResize,[this,i],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const a=this.options.scales||{};he(a,(c,n)=>{c.id=n})}buildOrUpdateScales(){const t=this.options,a=t.scales,c=this.scales,n=Object.keys(c).reduce((i,o)=>(i[o]=!1,i),{});let r=[];a&&(r=r.concat(Object.keys(a).map(i=>{const o=a[i],l=NZ(i,o),f=l==="r",u=l==="x";return{options:o,dposition:f?"chartArea":u?"bottom":"left",dtype:f?"radialLinear":u?"category":"linear"}}))),he(r,i=>{const o=i.options,l=o.id,f=NZ(l,o),u=C2(o.type,i.dtype);(o.position===void 0||C81(o.position,f)!==C81(i.dposition))&&(o.position=i.dposition),n[l]=!0;let d=null;if(l in c&&c[l].type===u)d=c[l];else{const h=Q6.getScale(u);d=new h({id:l,type:u,ctx:this.ctx,chart:this}),c[d.id]=d}d.init(o,t)}),he(n,(i,o)=>{i||delete c[o]}),he(c,i=>{y4.configure(this,i,i.options),y4.addBox(this,i)})}_updateMetasets(){const t=this._metasets,a=this.data.datasets.length,c=t.length;if(t.sort((n,r)=>n.index-r.index),c>a){for(let n=a;n<c;++n)this._destroyDatasetMeta(n);t.splice(a,c-a)}this._sortedMetasets=t.slice(0).sort(_81("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:a}}=this;t.length>a.length&&delete this._stacks,t.forEach((c,n)=>{a.filter(r=>r===c._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],a=this.data.datasets;let c,n;for(this._removeUnreferencedMetasets(),c=0,n=a.length;c<n;c++){const r=a[c];let i=this.getDatasetMeta(c);const o=r.type||this.config.type;if(i.type&&i.type!==o&&(this._destroyDatasetMeta(c),i=this.getDatasetMeta(c)),i.type=o,i.indexAxis=r.indexAxis||SZ(o,this.options),i.order=r.order||0,i.index=c,i.label=""+r.label,i.visible=this.isDatasetVisible(c),i.controller)i.controller.updateIndex(c),i.controller.linkScales();else{const l=Q6.getController(o),{datasetElementType:f,dataElementType:u}=We.datasets[o];Object.assign(l,{dataElementType:Q6.getElement(u),datasetElementType:f&&Q6.getElement(f)}),i.controller=new l(this,c),t.push(i.controller)}}return this._updateMetasets(),t}_resetElements(){he(this.data.datasets,(t,a)=>{this.getDatasetMeta(a).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const a=this.config;a.update();const c=this._options=a.createResolver(a.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!c.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let f=0,u=this.data.datasets.length;f<u;f++){const{controller:d}=this.getDatasetMeta(f),h=!n&&r.indexOf(d)===-1;d.buildOrUpdateElements(h),i=Math.max(+d.getMaxOverflow(),i)}i=this._minPadding=c.layout.autoPadding?i:0,this._updateLayout(i),n||he(r,f=>{f.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(_81("z","_idx"));const{_active:o,_lastEvent:l}=this;l?this._eventHandler(l,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){he(this.scales,t=>{y4.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,a=new Set(Object.keys(this._listeners)),c=new Set(t.events);(!It1(a,c)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,a=this._getUniformDataChanges()||[];for(const{method:c,start:n,count:r}of a){const i=c==="_removeElements"?-r:r;ape(t,n,i)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const a=this.data.datasets.length,c=r=>new Set(t.filter(i=>i[0]===r).map((i,o)=>o+","+i.splice(1).join(","))),n=c(0);for(let r=1;r<a;r++)if(!It1(n,c(r)))return;return Array.from(n).map(r=>r.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;y4.update(this,this.width,this.height,t);const a=this.chartArea,c=a.width<=0||a.height<=0;this._layers=[],he(this.boxes,n=>{c&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,r)=>{n._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let a=0,c=this.data.datasets.length;a<c;++a)this.getDatasetMeta(a).controller.configure();for(let a=0,c=this.data.datasets.length;a<c;++a)this._updateDataset(a,Ua(t)?t({datasetIndex:a}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,a){const c=this.getDatasetMeta(t),n={meta:c,index:t,mode:a,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",n)!==!1&&(c.controller._update(a),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(qt.has(this)?this.attached&&!qt.running(this)&&qt.start(this):(this.draw(),w81({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:c,height:n}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(c,n)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const a=this._layers;for(t=0;t<a.length&&a[t].z<=0;++t)a[t].draw(this.chartArea);for(this._drawDatasets();t<a.length;++t)a[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const a=this._sortedMetasets,c=[];let n,r;for(n=0,r=a.length;n<r;++n){const i=a[n];(!t||i.visible)&&c.push(i)}return c}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let a=t.length-1;a>=0;--a)this._drawDataset(t[a]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const a=this.ctx,c=t._clip,n=!c.disabled,r=npe(t,this.chartArea),i={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",i)!==!1&&(n&&qj(a,{left:c.left===!1?0:r.left-c.left,right:c.right===!1?this.width:r.right+c.right,top:c.top===!1?0:r.top-c.top,bottom:c.bottom===!1?this.height:r.bottom+c.bottom}),t.controller.draw(),n&&jj(a),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return o8(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,a,c,n){const r=ehe.modes[a];return typeof r=="function"?r(this,t,c,n):[]}getDatasetMeta(t){const a=this.data.datasets[t],c=this._metasets;let n=c.filter(r=>r&&r._dataset===a).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:a&&a.order||0,index:t,_dataset:a,_parsed:[],_sorted:!1},c.push(n)),n}getContext(){return this.$context||(this.$context=i5(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const a=this.data.datasets[t];if(!a)return!1;const c=this.getDatasetMeta(t);return typeof c.hidden=="boolean"?!c.hidden:!a.hidden}setDatasetVisibility(t,a){const c=this.getDatasetMeta(t);c.hidden=!a}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,a,c){const n=c?"show":"hide",r=this.getDatasetMeta(t),i=r.controller._resolveAnimations(void 0,n);Tf(a)?(r.data[a].hidden=!c,this.update()):(this.setDatasetVisibility(t,c),i.update(r,{visible:c}),this.update(o=>o.datasetIndex===t?n:void 0))}hide(t,a){this._updateVisibility(t,a,!1)}show(t,a){this._updateVisibility(t,a,!0)}_destroyDatasetMeta(t){const a=this._metasets[t];a&&a.controller&&a.controller._destroy(),delete this._metasets[t]}_stop(){let t,a;for(this.stop(),qt.remove(this),t=0,a=this.data.datasets.length;t<a;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:a}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Yt1(t,a),this.platform.releaseContext(a),this.canvas=null,this.ctx=null),delete _F[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,a=this.platform,c=(r,i)=>{a.addEventListener(this,r,i),t[r]=i},n=(r,i,o)=>{r.offsetX=i,r.offsetY=o,this._eventHandler(r)};he(this.options.events,r=>c(r,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,a=this.platform,c=(l,f)=>{a.addEventListener(this,l,f),t[l]=f},n=(l,f)=>{t[l]&&(a.removeEventListener(this,l,f),delete t[l])},r=(l,f)=>{this.canvas&&this.resize(l,f)};let i;const o=()=>{n("attach",o),this.attached=!0,this.resize(),c("resize",r),c("detach",i)};i=()=>{this.attached=!1,n("resize",r),this._stop(),this._resize(0,0),c("attach",o)},a.isAttached(this.canvas)?o():i()}unbindEvents(){he(this._listeners,(t,a)=>{this.platform.removeEventListener(this,a,t)}),this._listeners={},he(this._responsiveListeners,(t,a)=>{this.platform.removeEventListener(this,a,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,a,c){const n=c?"set":"remove";let r,i,o,l;for(a==="dataset"&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+n+"DatasetHoverStyle"]()),o=0,l=t.length;o<l;++o){i=t[o];const f=i&&this.getDatasetMeta(i.datasetIndex).controller;f&&f[n+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const a=this._active||[],c=t.map(({datasetIndex:r,index:i})=>{const o=this.getDatasetMeta(r);if(!o)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:o.data[i],index:i}});!T$(c,a)&&(this._active=c,this._lastEvent=null,this._updateHoverStyles(c,a))}notifyPlugins(t,a,c){return this._plugins.notify(this,t,a,c)}isPluginEnabled(t){return this._plugins._cache.filter(a=>a.plugin.id===t).length===1}_updateHoverStyles(t,a,c){const n=this.options.hover,r=(l,f)=>l.filter(u=>!f.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),i=r(a,t),o=c?t:r(t,a);i.length&&this.updateHoverStyle(i,n.mode,!1),o.length&&n.mode&&this.updateHoverStyle(o,n.mode,!0)}_eventHandler(t,a){const c={event:t,replay:a,cancelable:!0,inChartArea:this.isPointInArea(t)},n=i=>(i.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",c,n)===!1)return;const r=this._handleEvent(t,a,c.inChartArea);return c.cancelable=!1,this.notifyPlugins("afterEvent",c,n),(r||c.changed)&&this.render(),this}_handleEvent(t,a,c){const{_active:n=[],options:r}=this,i=a,o=this._getActiveElements(t,n,c,i),l=due(t),f=cpe(t,this._lastEvent,c,l);c&&(this._lastEvent=null,xe(r.onHover,[t,o,this],this),l&&xe(r.onClick,[t,o,this],this));const u=!T$(o,n);return(u||a)&&(this._active=o,this._updateHoverStyles(o,n,a)),this._lastEvent=f,u}_getActiveElements(t,a,c,n){if(t.type==="mouseout")return[];if(!c)return a;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,n)}}S1(et,"defaults",We),S1(et,"instances",_F),S1(et,"overrides",Ni),S1(et,"registry",Q6),S1(et,"version",Jhe),S1(et,"getChart",H81);function L81(){return he(et.instances,e=>e._plugins.invalidate())}function rpe(e,t,a){const{startAngle:c,pixelMargin:n,x:r,y:i,outerRadius:o,innerRadius:l}=t;let f=n/o;e.beginPath(),e.arc(r,i,o,c-f,a+f),l>n?(f=n/l,e.arc(r,i,l,a+f,c-f,!0)):e.arc(r,i,n,a+w3,c-w3),e.closePath(),e.clip()}function ipe(e){return l11(e,["outerStart","outerEnd","innerStart","innerEnd"])}function ope(e,t,a,c){const n=ipe(e.options.borderRadius),r=(a-t)/2,i=Math.min(r,c*t/2),o=l=>{const f=(a-Math.min(r,l))*c/2;return X3(l,0,Math.min(r,f))};return{outerStart:o(n.outerStart),outerEnd:o(n.outerEnd),innerStart:X3(n.innerStart,0,i),innerEnd:X3(n.innerEnd,0,i)}}function xo(e,t,a,c){return{x:a+e*Math.cos(t),y:c+e*Math.sin(t)}}function B$(e,t,a,c,n,r){const{x:i,y:o,startAngle:l,pixelMargin:f,innerRadius:u}=t,d=Math.max(t.outerRadius+c+a-f,0),h=u>0?u+c+a+f:0;let p=0;const v=n-l;if(c){const T=u>0?u-c:0,R=d>0?d-c:0,Y=(T+R)/2,e1=Y!==0?v*Y/(Y+c):v;p=(v-e1)/2}const m=Math.max(.001,v*d-a/Pe)/d,y=(v-m)/2,g=l+y+p,M=n-y-p,{outerStart:x,outerEnd:k,innerStart:b,innerEnd:_}=ope(t,h,d,M-g),C=d-x,H=d-k,V=g+x/C,N=M-k/H,L=h+b,w=h+_,P=g+b/L,j=M-_/w;if(e.beginPath(),r){const T=(V+N)/2;if(e.arc(i,o,d,V,T),e.arc(i,o,d,T,N),k>0){const Z=xo(H,N,i,o);e.arc(Z.x,Z.y,k,N,M+w3)}const R=xo(w,M,i,o);if(e.lineTo(R.x,R.y),_>0){const Z=xo(w,j,i,o);e.arc(Z.x,Z.y,_,M+w3,j+Math.PI)}const Y=(M-_/h+(g+b/h))/2;if(e.arc(i,o,h,M-_/h,Y,!0),e.arc(i,o,h,Y,g+b/h,!0),b>0){const Z=xo(L,P,i,o);e.arc(Z.x,Z.y,b,P+Math.PI,g-w3)}const e1=xo(C,g,i,o);if(e.lineTo(e1.x,e1.y),x>0){const Z=xo(C,V,i,o);e.arc(Z.x,Z.y,x,g-w3,V)}}else{e.moveTo(i,o);const T=Math.cos(V)*d+i,R=Math.sin(V)*d+o;e.lineTo(T,R);const Y=Math.cos(N)*d+i,e1=Math.sin(N)*d+o;e.lineTo(Y,e1)}e.closePath()}function spe(e,t,a,c,n){const{fullCircles:r,startAngle:i,circumference:o}=t;let l=t.endAngle;if(r){B$(e,t,a,c,l,n);for(let f=0;f<r;++f)e.fill();isNaN(o)||(l=i+(o%Ee||Ee))}return B$(e,t,a,c,l,n),e.fill(),l}function lpe(e,t,a,c,n){const{fullCircles:r,startAngle:i,circumference:o,options:l}=t,{borderWidth:f,borderJoinStyle:u,borderDash:d,borderDashOffset:h}=l,p=l.borderAlign==="inner";if(!f)return;e.setLineDash(d||[]),e.lineDashOffset=h,p?(e.lineWidth=f*2,e.lineJoin=u||"round"):(e.lineWidth=f,e.lineJoin=u||"bevel");let v=t.endAngle;if(r){B$(e,t,a,c,v,n);for(let m=0;m<r;++m)e.stroke();isNaN(o)||(v=i+(o%Ee||Ee))}p&&rpe(e,t,v),r||(B$(e,t,a,c,v,n),e.stroke())}class el extends O8{constructor(a){super();S1(this,"circumference");S1(this,"endAngle");S1(this,"fullCircles");S1(this,"innerRadius");S1(this,"outerRadius");S1(this,"pixelMargin");S1(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,a&&Object.assign(this,a)}inRange(a,c,n){const r=this.getProps(["x","y"],n),{angle:i,distance:o}=fg1(r,{x:a,y:c}),{startAngle:l,endAngle:f,innerRadius:u,outerRadius:d,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),p=(this.options.spacing+this.options.borderWidth)/2,v=C2(h,f-l),m=Ef(i,l,f)&&l!==f,y=v>=Ee||m,g=r8(o,u+p,d+p);return y&&g}getCenterPoint(a){const{x:c,y:n,startAngle:r,endAngle:i,innerRadius:o,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],a),{offset:f,spacing:u}=this.options,d=(r+i)/2,h=(o+l+u+f)/2;return{x:c+Math.cos(d)*h,y:n+Math.sin(d)*h}}tooltipPosition(a){return this.getCenterPoint(a)}draw(a){const{options:c,circumference:n}=this,r=(c.offset||0)/4,i=(c.spacing||0)/2,o=c.circular;if(this.pixelMargin=c.borderAlign==="inner"?.33:0,this.fullCircles=n>Ee?Math.floor(n/Ee):0,n===0||this.innerRadius<0||this.outerRadius<0)return;a.save();const l=(this.startAngle+this.endAngle)/2;a.translate(Math.cos(l)*r,Math.sin(l)*r);const f=1-Math.sin(Math.min(Pe,n||0)),u=r*f;a.fillStyle=c.backgroundColor,a.strokeStyle=c.borderColor,spe(a,this,u,i,o),lpe(a,this,u,i,o),a.restore()}}S1(el,"id","arc"),S1(el,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),S1(el,"defaultRoutes",{backgroundColor:"backgroundColor"}),S1(el,"descriptors",{_scriptable:!0,_indexable:a=>a!=="borderDash"});function qg1(e,t,a=t){e.lineCap=C2(a.borderCapStyle,t.borderCapStyle),e.setLineDash(C2(a.borderDash,t.borderDash)),e.lineDashOffset=C2(a.borderDashOffset,t.borderDashOffset),e.lineJoin=C2(a.borderJoinStyle,t.borderJoinStyle),e.lineWidth=C2(a.borderWidth,t.borderWidth),e.strokeStyle=C2(a.borderColor,t.borderColor)}function fpe(e,t,a){e.lineTo(a.x,a.y)}function upe(e){return e.stepped?Eue:e.tension||e.cubicInterpolationMode==="monotone"?Due:fpe}function jg1(e,t,a={}){const c=e.length,{start:n=0,end:r=c-1}=a,{start:i,end:o}=t,l=Math.max(n,i),f=Math.min(r,o),u=n<i&&r<i||n>o&&r>o;return{count:c,start:l,loop:t.loop,ilen:f<l&&!u?c+f-l:f-l}}function dpe(e,t,a,c){const{points:n,options:r}=t,{count:i,start:o,loop:l,ilen:f}=jg1(n,a,c),u=upe(r);let{move:d=!0,reverse:h}=c||{},p,v,m;for(p=0;p<=f;++p)v=n[(o+(h?f-p:p))%i],!v.skip&&(d?(e.moveTo(v.x,v.y),d=!1):u(e,m,v,h,r.stepped),m=v);return l&&(v=n[(o+(h?f:0))%i],u(e,m,v,h,r.stepped)),!!l}function hpe(e,t,a,c){const n=t.points,{count:r,start:i,ilen:o}=jg1(n,a,c),{move:l=!0,reverse:f}=c||{};let u=0,d=0,h,p,v,m,y,g;const M=k=>(i+(f?o-k:k))%r,x=()=>{m!==y&&(e.lineTo(u,y),e.lineTo(u,m),e.lineTo(u,g))};for(l&&(p=n[M(0)],e.moveTo(p.x,p.y)),h=0;h<=o;++h){if(p=n[M(h)],p.skip)continue;const k=p.x,b=p.y,_=k|0;_===v?(b<m?m=b:b>y&&(y=b),u=(d*u+k)/++d):(x(),e.lineTo(k,b),v=_,d=0,m=y=b),g=b}x()}function AZ(e){const t=e.options,a=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!a?hpe:dpe}function ppe(e){return e.stepped?hde:e.tension||e.cubicInterpolationMode==="monotone"?pde:j7}function mpe(e,t,a,c){let n=t._path;n||(n=t._path=new Path2D,t.path(n,a,c)&&n.closePath()),qg1(e,t.options),e.stroke(n)}function vpe(e,t,a,c){const{segments:n,options:r}=t,i=AZ(t);for(const o of n)qg1(e,r,o.style),e.beginPath(),i(e,t,o,{start:a,end:a+c-1})&&e.closePath(),e.stroke()}const ype=typeof Path2D=="function";function gpe(e,t,a,c){ype&&!t.options.segment?mpe(e,t,a,c):vpe(e,t,a,c)}class pa extends O8{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,a){const c=this.options;if((c.tension||c.cubicInterpolationMode==="monotone")&&!c.stepped&&!this._pointsUpdated){const n=c.spanGaps?this._loop:this._fullLoop;rde(this._points,c,t,n,a),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=kde(this,this.options.segment))}first(){const t=this.segments,a=this.points;return t.length&&a[t[0].start]}last(){const t=this.segments,a=this.points,c=t.length;return c&&a[t[c-1].end]}interpolate(t,a){const c=this.options,n=t[a],r=this.points,i=Sg1(this,{property:a,start:n,end:n});if(!i.length)return;const o=[],l=ppe(c);let f,u;for(f=0,u=i.length;f<u;++f){const{start:d,end:h}=i[f],p=r[d],v=r[h];if(p===v){o.push(p);continue}const m=Math.abs((n-p[a])/(v[a]-p[a])),y=l(p,v,m,c.stepped);y[a]=t[a],o.push(y)}return o.length===1?o[0]:o}pathSegment(t,a,c){return AZ(this)(t,this,a,c)}path(t,a,c){const n=this.segments,r=AZ(this);let i=this._loop;a=a||0,c=c||this.points.length-a;for(const o of n)i&=r(t,this,o,{start:a,end:a+c-1});return!!i}draw(t,a,c,n){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),gpe(t,this,c,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}S1(pa,"id","line"),S1(pa,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),S1(pa,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),S1(pa,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function V81(e,t,a,c){const n=e.options,{[a]:r}=e.getProps([a],c);return Math.abs(t-r)<n.radius+n.hitRadius}class wF extends O8{constructor(a){super();S1(this,"parsed");S1(this,"skip");S1(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,a&&Object.assign(this,a)}inRange(a,c,n){const r=this.options,{x:i,y:o}=this.getProps(["x","y"],n);return Math.pow(a-i,2)+Math.pow(c-o,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(a,c){return V81(this,a,"x",c)}inYRange(a,c){return V81(this,a,"y",c)}getCenterPoint(a){const{x:c,y:n}=this.getProps(["x","y"],a);return{x:c,y:n}}size(a){a=a||this.options||{};let c=a.radius||0;c=Math.max(c,c&&a.hoverRadius||0);const n=c&&a.borderWidth||0;return(c+n)*2}draw(a,c){const n=this.options;this.skip||n.radius<.1||!o8(this,c,this.size(n)/2)||(a.strokeStyle=n.borderColor,a.lineWidth=n.borderWidth,a.fillStyle=n.backgroundColor,LZ(a,n,this.x,this.y))}getRange(){const a=this.options||{};return a.radius+a.hitRadius}}S1(wF,"id","point"),S1(wF,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),S1(wF,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Ug1(e,t){const{x:a,y:c,base:n,width:r,height:i}=e.getProps(["x","y","base","width","height"],t);let o,l,f,u,d;return e.horizontal?(d=i/2,o=Math.min(a,n),l=Math.max(a,n),f=c-d,u=c+d):(d=r/2,o=a-d,l=a+d,f=Math.min(c,n),u=Math.max(c,n)),{left:o,top:f,right:l,bottom:u}}function ma(e,t,a,c){return e?0:X3(t,a,c)}function Mpe(e,t,a){const c=e.options.borderWidth,n=e.borderSkipped,r=Mg1(c);return{t:ma(n.top,r.top,0,a),r:ma(n.right,r.right,0,t),b:ma(n.bottom,r.bottom,0,a),l:ma(n.left,r.left,0,t)}}function kpe(e,t,a){const{enableBorderRadius:c}=e.getProps(["enableBorderRadius"]),n=e.options.borderRadius,r=pi(n),i=Math.min(t,a),o=e.borderSkipped,l=c||F2(n);return{topLeft:ma(!l||o.top||o.left,r.topLeft,0,i),topRight:ma(!l||o.top||o.right,r.topRight,0,i),bottomLeft:ma(!l||o.bottom||o.left,r.bottomLeft,0,i),bottomRight:ma(!l||o.bottom||o.right,r.bottomRight,0,i)}}function xpe(e){const t=Ug1(e),a=t.right-t.left,c=t.bottom-t.top,n=Mpe(e,a/2,c/2),r=kpe(e,a/2,c/2);return{outer:{x:t.left,y:t.top,w:a,h:c,radius:r},inner:{x:t.left+n.l,y:t.top+n.t,w:a-n.l-n.r,h:c-n.t-n.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,r.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(n.b,n.r))}}}}function pY(e,t,a,c){const n=t===null,r=a===null,o=e&&!(n&&r)&&Ug1(e,c);return o&&(n||r8(t,o.left,o.right))&&(r||r8(a,o.top,o.bottom))}function bpe(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function zpe(e,t){e.rect(t.x,t.y,t.w,t.h)}function mY(e,t,a={}){const c=e.x!==a.x?-t:0,n=e.y!==a.y?-t:0,r=(e.x+e.w!==a.x+a.w?t:0)-c,i=(e.y+e.h!==a.y+a.h?t:0)-n;return{x:e.x+c,y:e.y+n,w:e.w+r,h:e.h+i,radius:e.radius}}class HF extends O8{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:a,options:{borderColor:c,backgroundColor:n}}=this,{inner:r,outer:i}=xpe(this),o=bpe(i.radius)?Df:zpe;t.save(),(i.w!==r.w||i.h!==r.h)&&(t.beginPath(),o(t,mY(i,a,r)),t.clip(),o(t,mY(r,-a,i)),t.fillStyle=c,t.fill("evenodd")),t.beginPath(),o(t,mY(r,a)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,a,c){return pY(this,t,a,c)}inXRange(t,a){return pY(this,t,null,a)}inYRange(t,a){return pY(this,null,t,a)}getCenterPoint(t){const{x:a,y:c,base:n,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(a+n)/2:a,y:r?c:(c+n)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}S1(HF,"id","bar"),S1(HF,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),S1(HF,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var Cpe=Object.freeze({__proto__:null,ArcElement:el,BarElement:HF,LineElement:pa,PointElement:wF});const TZ=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],S81=TZ.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function Wg1(e){return TZ[e%TZ.length]}function Yg1(e){return S81[e%S81.length]}function _pe(e,t){return e.borderColor=Wg1(t),e.backgroundColor=Yg1(t),++t}function wpe(e,t){return e.backgroundColor=e.data.map(()=>Wg1(t++)),t}function Hpe(e,t){return e.backgroundColor=e.data.map(()=>Yg1(t++)),t}function Lpe(e){let t=0;return(a,c)=>{const n=e.getDatasetMeta(c).controller;n instanceof ai?t=wpe(a,t):n instanceof Tl?t=Hpe(a,t):n&&(t=_pe(a,t))}}function N81(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function Vpe(e){return e&&(e.borderColor||e.backgroundColor)}function Spe(){return We.borderColor!=="rgba(0,0,0,0.1)"||We.backgroundColor!=="rgba(0,0,0,0.1)"}var Npe={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,a){if(!a.enabled)return;const{data:{datasets:c},options:n}=e.config,{elements:r}=n,i=N81(c)||Vpe(n)||r&&N81(r)||Spe();if(!a.forceOverride&&i)return;const o=Lpe(e);c.forEach(o)}};function Ape(e,t,a,c,n){const r=n.samples||c;if(r>=a)return e.slice(t,t+a);const i=[],o=(a-2)/(r-2);let l=0;const f=t+a-1;let u=t,d,h,p,v,m;for(i[l++]=e[u],d=0;d<r-2;d++){let y=0,g=0,M;const x=Math.floor((d+1)*o)+1+t,k=Math.min(Math.floor((d+2)*o)+1,a)+t,b=k-x;for(M=x;M<k;M++)y+=e[M].x,g+=e[M].y;y/=b,g/=b;const _=Math.floor(d*o)+1+t,C=Math.min(Math.floor((d+1)*o)+1,a)+t,{x:H,y:V}=e[u];for(p=v=-1,M=_;M<C;M++)v=.5*Math.abs((H-y)*(e[M].y-V)-(H-e[M].x)*(g-V)),v>p&&(p=v,h=e[M],m=M);i[l++]=h,u=m}return i[l++]=e[f],i}function Tpe(e,t,a,c){let n=0,r=0,i,o,l,f,u,d,h,p,v,m;const y=[],g=t+a-1,M=e[t].x,k=e[g].x-M;for(i=t;i<t+a;++i){o=e[i],l=(o.x-M)/k*c,f=o.y;const b=l|0;if(b===u)f<v?(v=f,d=i):f>m&&(m=f,h=i),n=(r*n+o.x)/++r;else{const _=i-1;if(!Q2(d)&&!Q2(h)){const C=Math.min(d,h),H=Math.max(d,h);C!==p&&C!==_&&y.push({...e[C],x:n}),H!==p&&H!==_&&y.push({...e[H],x:n})}i>0&&_!==p&&y.push(e[_]),y.push(o),u=b,r=0,v=m=f,d=h=p=i}}return y}function Gg1(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function A81(e){e.data.datasets.forEach(t=>{Gg1(t)})}function Epe(e,t){const a=t.length;let c=0,n;const{iScale:r}=e,{min:i,max:o,minDefined:l,maxDefined:f}=r.getUserBounds();return l&&(c=X3(i8(t,r.axis,i).lo,0,a-1)),f?n=X3(i8(t,r.axis,o).hi+1,c,a)-c:n=a-c,{start:c,count:n}}var Dpe={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,a)=>{if(!a.enabled){A81(e);return}const c=e.width;e.data.datasets.forEach((n,r)=>{const{_data:i,indexAxis:o}=n,l=e.getDatasetMeta(r),f=i||n.data;if(Q9([o,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:h}=Epe(l,f);const p=a.threshold||4*c;if(h<=p){Gg1(n);return}Q2(i)&&(n._data=f,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(m){this._data=m}}));let v;switch(a.algorithm){case"lttb":v=Ape(f,d,h,c,a);break;case"min-max":v=Tpe(f,d,h,c);break;default:throw new Error(`Unsupported decimation algorithm '${a.algorithm}'`)}n._decimated=v})},destroy(e){A81(e)}};function Ppe(e,t,a){const c=e.segments,n=e.points,r=t.points,i=[];for(const o of c){let{start:l,end:f}=o;f=v11(l,f,n);const u=EZ(a,n[l],n[f],o.loop);if(!t.segments){i.push({source:o,target:u,start:n[l],end:n[f]});continue}const d=Sg1(t,u);for(const h of d){const p=EZ(a,r[h.start],r[h.end],h.loop),v=Vg1(o,n,p);for(const m of v)i.push({source:m,target:h,start:{[a]:T81(u,p,"start",Math.max)},end:{[a]:T81(u,p,"end",Math.min)}})}}return i}function EZ(e,t,a,c){if(c)return;let n=t[e],r=a[e];return e==="angle"&&(n=t0(n),r=t0(r)),{property:e,start:n,end:r}}function Ope(e,t){const{x:a=null,y:c=null}=e||{},n=t.points,r=[];return t.segments.forEach(({start:i,end:o})=>{o=v11(i,o,n);const l=n[i],f=n[o];c!==null?(r.push({x:l.x,y:c}),r.push({x:f.x,y:c})):a!==null&&(r.push({x:a,y:l.y}),r.push({x:a,y:f.y}))}),r}function v11(e,t,a){for(;t>e;t--){const c=a[t];if(!isNaN(c.x)&&!isNaN(c.y))break}return t}function T81(e,t,a,c){return e&&t?c(e[a],t[a]):e?e[a]:t?t[a]:0}function Zg1(e,t){let a=[],c=!1;return Ae(e)?(c=!0,a=e):a=Ope(e,t),a.length?new pa({points:a,options:{tension:0},_loop:c,_fullLoop:c}):null}function E81(e){return e&&e.fill!==!1}function Ipe(e,t,a){let n=e[t].fill;const r=[t];let i;if(!a)return n;for(;n!==!1&&r.indexOf(n)===-1;){if(!l3(n))return n;if(i=e[n],!i)return!1;if(i.visible)return n;r.push(n),n=i.fill}return!1}function Bpe(e,t,a){const c=qpe(e);if(F2(c))return isNaN(c.value)?!1:c;let n=parseFloat(c);return l3(n)&&Math.floor(n)===n?Rpe(c[0],t,n,a):["origin","start","end","stack","shape"].indexOf(c)>=0&&c}function Rpe(e,t,a,c){return(e==="-"||e==="+")&&(a=t+a),a===t||a<0||a>=c?!1:a}function Fpe(e,t){let a=null;return e==="start"?a=t.bottom:e==="end"?a=t.top:F2(e)?a=t.getPixelForValue(e.value):t.getBasePixel&&(a=t.getBasePixel()),a}function $pe(e,t,a){let c;return e==="start"?c=a:e==="end"?c=t.options.reverse?t.min:t.max:F2(e)?c=e.value:c=t.getBaseValue(),c}function qpe(e){const t=e.options,a=t.fill;let c=C2(a&&a.target,a);return c===void 0&&(c=!!t.backgroundColor),c===!1||c===null?!1:c===!0?"origin":c}function jpe(e){const{scale:t,index:a,line:c}=e,n=[],r=c.segments,i=c.points,o=Upe(t,a);o.push(Zg1({x:null,y:t.bottom},c));for(let l=0;l<r.length;l++){const f=r[l];for(let u=f.start;u<=f.end;u++)Wpe(n,i[u],o)}return new pa({points:n,options:{}})}function Upe(e,t){const a=[],c=e.getMatchingVisibleMetas("line");for(let n=0;n<c.length;n++){const r=c[n];if(r.index===t)break;r.hidden||a.unshift(r.dataset)}return a}function Wpe(e,t,a){const c=[];for(let n=0;n<a.length;n++){const r=a[n],{first:i,last:o,point:l}=Ype(r,t,"x");if(!(!l||i&&o)){if(i)c.unshift(l);else if(e.push(l),!o)break}}e.push(...c)}function Ype(e,t,a){const c=e.interpolate(t,a);if(!c)return{};const n=c[a],r=e.segments,i=e.points;let o=!1,l=!1;for(let f=0;f<r.length;f++){const u=r[f],d=i[u.start][a],h=i[u.end][a];if(r8(n,d,h)){o=n===d,l=n===h;break}}return{first:o,last:l,point:c}}class Xg1{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,a,c){const{x:n,y:r,radius:i}=this;return a=a||{start:0,end:Ee},t.arc(n,r,i,a.end,a.start,!0),!c.bounds}interpolate(t){const{x:a,y:c,radius:n}=this,r=t.angle;return{x:a+Math.cos(r)*n,y:c+Math.sin(r)*n,angle:r}}}function Gpe(e){const{chart:t,fill:a,line:c}=e;if(l3(a))return Zpe(t,a);if(a==="stack")return jpe(e);if(a==="shape")return!0;const n=Xpe(e);return n instanceof Xg1?n:Zg1(n,c)}function Zpe(e,t){const a=e.getDatasetMeta(t);return a&&e.isDatasetVisible(t)?a.dataset:null}function Xpe(e){return(e.scale||{}).getPointPositionForValue?Qpe(e):Kpe(e)}function Kpe(e){const{scale:t={},fill:a}=e,c=Fpe(a,t);if(l3(c)){const n=t.isHorizontal();return{x:n?c:null,y:n?null:c}}return null}function Qpe(e){const{scale:t,fill:a}=e,c=t.options,n=t.getLabels().length,r=c.reverse?t.max:t.min,i=$pe(a,t,r),o=[];if(c.grid.circular){const l=t.getPointPositionForValue(0,r);return new Xg1({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(i)})}for(let l=0;l<n;++l)o.push(t.getPointPositionForValue(l,i));return o}function vY(e,t,a){const c=Gpe(t),{line:n,scale:r,axis:i}=t,o=n.options,l=o.fill,f=o.backgroundColor,{above:u=f,below:d=f}=l||{};c&&n.points.length&&(qj(e,a),Jpe(e,{line:n,target:c,above:u,below:d,area:a,scale:r,axis:i}),jj(e))}function Jpe(e,t){const{line:a,target:c,above:n,below:r,area:i,scale:o}=t,l=a._loop?"angle":t.axis;e.save(),l==="x"&&r!==n&&(D81(e,c,i.top),P81(e,{line:a,target:c,color:n,scale:o,property:l}),e.restore(),e.save(),D81(e,c,i.bottom)),P81(e,{line:a,target:c,color:r,scale:o,property:l}),e.restore()}function D81(e,t,a){const{segments:c,points:n}=t;let r=!0,i=!1;e.beginPath();for(const o of c){const{start:l,end:f}=o,u=n[l],d=n[v11(l,f,n)];r?(e.moveTo(u.x,u.y),r=!1):(e.lineTo(u.x,a),e.lineTo(u.x,u.y)),i=!!t.pathSegment(e,o,{move:i}),i?e.closePath():e.lineTo(d.x,a)}e.lineTo(t.first().x,a),e.closePath(),e.clip()}function P81(e,t){const{line:a,target:c,property:n,color:r,scale:i}=t,o=Ppe(a,c,n);for(const{source:l,target:f,start:u,end:d}of o){const{style:{backgroundColor:h=r}={}}=l,p=c!==!0;e.save(),e.fillStyle=h,eme(e,i,p&&EZ(n,u,d)),e.beginPath();const v=!!a.pathSegment(e,l);let m;if(p){v?e.closePath():O81(e,c,d,n);const y=!!c.pathSegment(e,f,{move:v,reverse:!0});m=v&&y,m||O81(e,c,u,n)}e.closePath(),e.fill(m?"evenodd":"nonzero"),e.restore()}}function eme(e,t,a){const{top:c,bottom:n}=t.chart.chartArea,{property:r,start:i,end:o}=a||{};r==="x"&&(e.beginPath(),e.rect(i,c,o-i,n-c),e.clip())}function O81(e,t,a,c){const n=t.interpolate(a,c);n&&e.lineTo(n.x,n.y)}var tme={id:"filler",afterDatasetsUpdate(e,t,a){const c=(e.data.datasets||[]).length,n=[];let r,i,o,l;for(i=0;i<c;++i)r=e.getDatasetMeta(i),o=r.dataset,l=null,o&&o.options&&o instanceof pa&&(l={visible:e.isDatasetVisible(i),index:i,fill:Bpe(o,i,c),chart:e,axis:r.controller.options.indexAxis,scale:r.vScale,line:o}),r.$filler=l,n.push(l);for(i=0;i<c;++i)l=n[i],!(!l||l.fill===!1)&&(l.fill=Ipe(n,i,a.propagate))},beforeDraw(e,t,a){const c=a.drawTime==="beforeDraw",n=e.getSortedVisibleDatasetMetas(),r=e.chartArea;for(let i=n.length-1;i>=0;--i){const o=n[i].$filler;o&&(o.line.updateControlPoints(r,o.axis),c&&o.fill&&vY(e.ctx,o,r))}},beforeDatasetsDraw(e,t,a){if(a.drawTime!=="beforeDatasetsDraw")return;const c=e.getSortedVisibleDatasetMetas();for(let n=c.length-1;n>=0;--n){const r=c[n].$filler;E81(r)&&vY(e.ctx,r,e.chartArea)}},beforeDatasetDraw(e,t,a){const c=t.meta.$filler;!E81(c)||a.drawTime!=="beforeDatasetDraw"||vY(e.ctx,c,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const I81=(e,t)=>{let{boxHeight:a=t,boxWidth:c=t}=e;return e.usePointStyle&&(a=Math.min(a,t),c=e.pointStyleWidth||Math.min(c,t)),{boxWidth:c,boxHeight:a,itemHeight:Math.max(t,a)}},ame=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class B81 extends O8{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,a,c){this.maxWidth=t,this.maxHeight=a,this._margins=c,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let a=xe(t.generateLabels,[this.chart],this)||[];t.filter&&(a=a.filter(c=>t.filter(c,this.chart.data))),t.sort&&(a=a.sort((c,n)=>t.sort(c,n,this.chart.data))),this.options.reverse&&a.reverse(),this.legendItems=a}fit(){const{options:t,ctx:a}=this;if(!t.display){this.width=this.height=0;return}const c=t.labels,n=I3(c.font),r=n.size,i=this._computeTitleHeight(),{boxWidth:o,itemHeight:l}=I81(c,r);let f,u;a.font=n.string,this.isHorizontal()?(f=this.maxWidth,u=this._fitRows(i,r,o,l)+10):(u=this.maxHeight,f=this._fitCols(i,n,o,l)+10),this.width=Math.min(f,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,a,c,n){const{ctx:r,maxWidth:i,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],f=this.lineWidths=[0],u=n+o;let d=t;r.textAlign="left",r.textBaseline="middle";let h=-1,p=-u;return this.legendItems.forEach((v,m)=>{const y=c+a/2+r.measureText(v.text).width;(m===0||f[f.length-1]+y+2*o>i)&&(d+=u,f[f.length-(m>0?0:1)]=0,p+=u,h++),l[m]={left:0,top:p,row:h,width:y,height:n},f[f.length-1]+=y+o}),d}_fitCols(t,a,c,n){const{ctx:r,maxHeight:i,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],f=this.columnSizes=[],u=i-t;let d=o,h=0,p=0,v=0,m=0;return this.legendItems.forEach((y,g)=>{const{itemWidth:M,itemHeight:x}=cme(c,a,r,y,n);g>0&&p+x+2*o>u&&(d+=h+o,f.push({width:h,height:p}),v+=h+o,m++,h=p=0),l[g]={left:v,top:p,col:m,width:M,height:x},h=Math.max(h,M),p+=x+o}),d+=h,f.push({width:h,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:a,options:{align:c,labels:{padding:n},rtl:r}}=this,i=es(r,this.left,this.width);if(this.isHorizontal()){let o=0,l=l4(c,this.left+n,this.right-this.lineWidths[o]);for(const f of a)o!==f.row&&(o=f.row,l=l4(c,this.left+n,this.right-this.lineWidths[o])),f.top+=this.top+t+n,f.left=i.leftForLtr(i.x(l),f.width),l+=f.width+n}else{let o=0,l=l4(c,this.top+t+n,this.bottom-this.columnSizes[o].height);for(const f of a)f.col!==o&&(o=f.col,l=l4(c,this.top+t+n,this.bottom-this.columnSizes[o].height)),f.top=l,f.left+=this.left+n,f.left=i.leftForLtr(i.x(f.left),f.width),l+=f.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;qj(t,this),this._draw(),jj(t)}}_draw(){const{options:t,columnSizes:a,lineWidths:c,ctx:n}=this,{align:r,labels:i}=t,o=We.color,l=es(t.rtl,this.left,this.width),f=I3(i.font),{padding:u}=i,d=f.size,h=d/2;let p;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=f.string;const{boxWidth:v,boxHeight:m,itemHeight:y}=I81(i,d),g=function(_,C,H){if(isNaN(v)||v<=0||isNaN(m)||m<0)return;n.save();const V=C2(H.lineWidth,1);if(n.fillStyle=C2(H.fillStyle,o),n.lineCap=C2(H.lineCap,"butt"),n.lineDashOffset=C2(H.lineDashOffset,0),n.lineJoin=C2(H.lineJoin,"miter"),n.lineWidth=V,n.strokeStyle=C2(H.strokeStyle,o),n.setLineDash(C2(H.lineDash,[])),i.usePointStyle){const N={radius:m*Math.SQRT2/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:V},L=l.xPlus(_,v/2),w=C+h;gg1(n,N,L,w,i.pointStyleWidth&&v)}else{const N=C+Math.max((d-m)/2,0),L=l.leftForLtr(_,v),w=pi(H.borderRadius);n.beginPath(),Object.values(w).some(P=>P!==0)?Df(n,{x:L,y:N,w:v,h:m,radius:w}):n.rect(L,N,v,m),n.fill(),V!==0&&n.stroke()}n.restore()},M=function(_,C,H){Ai(n,H.text,_,C+y/2,f,{strikethrough:H.hidden,textAlign:l.textAlign(H.textAlign)})},x=this.isHorizontal(),k=this._computeTitleHeight();x?p={x:l4(r,this.left+u,this.right-c[0]),y:this.top+u+k,line:0}:p={x:this.left+u,y:l4(r,this.top+k+u,this.bottom-a[0].height),line:0},wg1(this.ctx,t.textDirection);const b=y+u;this.legendItems.forEach((_,C)=>{n.strokeStyle=_.fontColor,n.fillStyle=_.fontColor;const H=n.measureText(_.text).width,V=l.textAlign(_.textAlign||(_.textAlign=i.textAlign)),N=v+h+H;let L=p.x,w=p.y;l.setWidth(this.width),x?C>0&&L+N+u>this.right&&(w=p.y+=b,p.line++,L=p.x=l4(r,this.left+u,this.right-c[p.line])):C>0&&w+b>this.bottom&&(L=p.x=L+a[p.line].width+u,p.line++,w=p.y=l4(r,this.top+k+u,this.bottom-a[p.line].height));const P=l.x(L);if(g(P,w,_),L=zue(V,L+v+h,x?L+N:this.right,t.rtl),M(l.x(L),w,_),x)p.x+=N+u;else if(typeof _.text!="string"){const j=f.lineHeight;p.y+=Kg1(_,j)+u}else p.y+=b}),Hg1(this.ctx,t.textDirection)}drawTitle(){const t=this.options,a=t.title,c=I3(a.font),n=b4(a.padding);if(!a.display)return;const r=es(t.rtl,this.left,this.width),i=this.ctx,o=a.position,l=c.size/2,f=n.top+l;let u,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+f,d=l4(t.align,d,this.right-h);else{const v=this.columnSizes.reduce((m,y)=>Math.max(m,y.height),0);u=f+l4(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const p=l4(o,d,d+h);i.textAlign=r.textAlign(o11(o)),i.textBaseline="middle",i.strokeStyle=a.color,i.fillStyle=a.color,i.font=c.string,Ai(i,a.text,p,u,c)}_computeTitleHeight(){const t=this.options.title,a=I3(t.font),c=b4(t.padding);return t.display?a.lineHeight+c.height:0}_getLegendItemAt(t,a){let c,n,r;if(r8(t,this.left,this.right)&&r8(a,this.top,this.bottom)){for(r=this.legendHitBoxes,c=0;c<r.length;++c)if(n=r[c],r8(t,n.left,n.left+n.width)&&r8(a,n.top,n.top+n.height))return this.legendItems[c]}return null}handleEvent(t){const a=this.options;if(!ime(t.type,a))return;const c=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const n=this._hoveredItem,r=ame(n,c);n&&!r&&xe(a.onLeave,[t,n,this],this),this._hoveredItem=c,c&&!r&&xe(a.onHover,[t,c,this],this)}else c&&xe(a.onClick,[t,c,this],this)}}function cme(e,t,a,c,n){const r=nme(c,e,t,a),i=rme(n,c,t.lineHeight);return{itemWidth:r,itemHeight:i}}function nme(e,t,a,c){let n=e.text;return n&&typeof n!="string"&&(n=n.reduce((r,i)=>r.length>i.length?r:i)),t+a.size/2+c.measureText(n).width}function rme(e,t,a){let c=e;return typeof t.text!="string"&&(c=Kg1(t,a)),c}function Kg1(e,t){const a=e.text?e.text.length:0;return t*a}function ime(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var ome={id:"legend",_element:B81,start(e,t,a){const c=e.legend=new B81({ctx:e.ctx,options:a,chart:e});y4.configure(e,c,a),y4.addBox(e,c)},stop(e){y4.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,a){const c=e.legend;y4.configure(e,c,a),c.options=a},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,a){const c=t.datasetIndex,n=a.chart;n.isDatasetVisible(c)?(n.hide(c),t.hidden=!0):(n.show(c),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:a,pointStyle:c,textAlign:n,color:r,useBorderRadius:i,borderRadius:o}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const f=l.controller.getStyle(a?0:void 0),u=b4(f.borderWidth);return{text:t[l.index].label,fillStyle:f.backgroundColor,fontColor:r,hidden:!l.visible,lineCap:f.borderCapStyle,lineDash:f.borderDash,lineDashOffset:f.borderDashOffset,lineJoin:f.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:f.borderColor,pointStyle:c||f.pointStyle,rotation:f.rotation,textAlign:n||f.textAlign,borderRadius:i&&(o||f.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class y11 extends O8{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,a){const c=this.options;if(this.left=0,this.top=0,!c.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=a;const n=Ae(c.text)?c.text.length:1;this._padding=b4(c.padding);const r=n*I3(c.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:a,left:c,bottom:n,right:r,options:i}=this,o=i.align;let l=0,f,u,d;return this.isHorizontal()?(u=l4(o,c,r),d=a+t,f=r-c):(i.position==="left"?(u=c+t,d=l4(o,n,a),l=Pe*-.5):(u=r-t,d=l4(o,a,n),l=Pe*.5),f=n-a),{titleX:u,titleY:d,maxWidth:f,rotation:l}}draw(){const t=this.ctx,a=this.options;if(!a.display)return;const c=I3(a.font),r=c.lineHeight/2+this._padding.top,{titleX:i,titleY:o,maxWidth:l,rotation:f}=this._drawArgs(r);Ai(t,a.text,0,0,c,{color:a.color,maxWidth:l,rotation:f,textAlign:o11(a.align),textBaseline:"middle",translation:[i,o]})}}function sme(e,t){const a=new y11({ctx:e.ctx,options:t,chart:e});y4.configure(e,a,t),y4.addBox(e,a),e.titleBlock=a}var lme={id:"title",_element:y11,start(e,t,a){sme(e,a)},stop(e){const t=e.titleBlock;y4.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,a){const c=e.titleBlock;y4.configure(e,c,a),c.options=a},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const lh=new WeakMap;var fme={id:"subtitle",start(e,t,a){const c=new y11({ctx:e.ctx,options:a,chart:e});y4.configure(e,c,a),y4.addBox(e,c),lh.set(e,c)},stop(e){y4.removeBox(e,lh.get(e)),lh.delete(e)},beforeUpdate(e,t,a){const c=lh.get(e);y4.configure(e,c,a),c.options=a},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const tl={average(e){if(!e.length)return!1;let t,a,c=new Set,n=0,r=0;for(t=0,a=e.length;t<a;++t){const o=e[t].element;if(o&&o.hasValue()){const l=o.tooltipPosition();c.add(l.x),n+=l.y,++r}}return r===0||c.size===0?!1:{x:[...c].reduce((o,l)=>o+l)/c.size,y:n/r}},nearest(e,t){if(!e.length)return!1;let a=t.x,c=t.y,n=Number.POSITIVE_INFINITY,r,i,o;for(r=0,i=e.length;r<i;++r){const l=e[r].element;if(l&&l.hasValue()){const f=l.getCenterPoint(),u=wZ(t,f);u<n&&(n=u,o=l)}}if(o){const l=o.tooltipPosition();a=l.x,c=l.y}return{x:a,y:c}}};function X6(e,t){return t&&(Ae(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function jt(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
9487
9487
|
`)>-1?e.split(`
|
|
9488
|
-
`):e}function ume(e,t){const{element:a,datasetIndex:c,index:n}=t,r=e.getDatasetMeta(c).controller,{label:i,value:o}=r.getLabelAndValue(n);return{chart:e,label:i,parsed:r.getParsed(n),raw:e.data.datasets[c].data[n],formattedValue:o,dataset:r.getDataset(),dataIndex:n,datasetIndex:c,element:a}}function R81(e,t){const a=e.chart.ctx,{body:c,footer:n,title:r}=e,{boxWidth:i,boxHeight:o}=t,l=I3(t.bodyFont),f=I3(t.titleFont),u=I3(t.footerFont),d=r.length,h=n.length,p=c.length,v=b4(t.padding);let m=v.height,y=0,g=c.reduce((k,b)=>k+b.before.length+b.lines.length+b.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*f.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),g){const k=t.displayColors?Math.max(o,l.lineHeight):l.lineHeight;m+=p*k+(g-p)*l.lineHeight+(g-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let M=0;const x=function(k){y=Math.max(y,a.measureText(k).width+M)};return a.save(),a.font=f.string,he(e.title,x),a.font=l.string,he(e.beforeBody.concat(e.afterBody),x),M=t.displayColors?i+2+t.boxPadding:0,he(c,k=>{he(k.before,x),he(k.lines,x),he(k.after,x)}),M=0,a.font=u.string,he(e.footer,x),a.restore(),y+=v.width,{width:y,height:m}}function dme(e,t){const{y:a,height:c}=t;return a<c/2?"top":a>e.height-c/2?"bottom":"center"}function hme(e,t,a,c){const{x:n,width:r}=c,i=a.caretSize+a.caretPadding;if(e==="left"&&n+r+i>t.width||e==="right"&&n-r-i<0)return!0}function pme(e,t,a,c){const{x:n,width:r}=a,{width:i,chartArea:{left:o,right:l}}=e;let f="center";return c==="center"?f=n<=(o+l)/2?"left":"right":n<=r/2?f="left":n>=i-r/2&&(f="right"),hme(f,e,t,a)&&(f="center"),f}function F81(e,t,a){const c=a.yAlign||t.yAlign||dme(e,a);return{xAlign:a.xAlign||t.xAlign||pme(e,t,a,c),yAlign:c}}function mme(e,t){let{x:a,width:c}=e;return t==="right"?a-=c:t==="center"&&(a-=c/2),a}function vme(e,t,a){let{y:c,height:n}=e;return t==="top"?c+=a:t==="bottom"?c-=n+a:c-=n/2,c}function $81(e,t,a,c){const{caretSize:n,caretPadding:r,cornerRadius:i}=e,{xAlign:o,yAlign:l}=a,f=n+r,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=pi(i);let v=mme(t,o);const m=vme(t,l,f);return l==="center"?o==="left"?v+=f:o==="right"&&(v-=f):o==="left"?v-=Math.max(u,h)+n:o==="right"&&(v+=Math.max(d,p)+n),{x:X3(v,0,c.width-t.width),y:X3(m,0,c.height-t.height)}}function fh(e,t,a){const c=b4(a.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-c.right:e.x+c.left}function q81(e){return X6([],jt(e))}function yme(e,t,a){return i5(e,{tooltip:t,tooltipItems:a,type:"tooltip"})}function j81(e,t){const a=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return a?e.override(a):e}const Qg1={beforeTitle:Rt,title(e){if(e.length>0){const t=e[0],a=t.chart.data.labels,c=a?a.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(c>0&&t.dataIndex<c)return a[t.dataIndex]}return""},afterTitle:Rt,beforeBody:Rt,beforeLabel:Rt,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const a=e.formattedValue;return Q2(a)||(t+=a),t},labelColor(e){const a=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:a.borderColor,backgroundColor:a.backgroundColor,borderWidth:a.borderWidth,borderDash:a.borderDash,borderDashOffset:a.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const a=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:a.pointStyle,rotation:a.rotation}},afterLabel:Rt,afterBody:Rt,beforeFooter:Rt,footer:Rt,afterFooter:Rt};function B4(e,t,a,c){const n=e[t].call(a,c);return typeof n>"u"?Qg1[t].call(a,c):n}class DZ extends O8{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const a=this.chart,c=this.options.setContext(this.getContext()),n=c.enabled&&a.options.animation&&c.animations,r=new Ng1(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=yme(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,a){const{callbacks:c}=a,n=B4(c,"beforeTitle",this,t),r=B4(c,"title",this,t),i=B4(c,"afterTitle",this,t);let o=[];return o=X6(o,jt(n)),o=X6(o,jt(r)),o=X6(o,jt(i)),o}getBeforeBody(t,a){return q81(B4(a.callbacks,"beforeBody",this,t))}getBody(t,a){const{callbacks:c}=a,n=[];return he(t,r=>{const i={before:[],lines:[],after:[]},o=j81(c,r);X6(i.before,jt(B4(o,"beforeLabel",this,r))),X6(i.lines,B4(o,"label",this,r)),X6(i.after,jt(B4(o,"afterLabel",this,r))),n.push(i)}),n}getAfterBody(t,a){return q81(B4(a.callbacks,"afterBody",this,t))}getFooter(t,a){const{callbacks:c}=a,n=B4(c,"beforeFooter",this,t),r=B4(c,"footer",this,t),i=B4(c,"afterFooter",this,t);let o=[];return o=X6(o,jt(n)),o=X6(o,jt(r)),o=X6(o,jt(i)),o}_createItems(t){const a=this._active,c=this.chart.data,n=[],r=[],i=[];let o=[],l,f;for(l=0,f=a.length;l<f;++l)o.push(ume(this.chart,a[l]));return t.filter&&(o=o.filter((u,d,h)=>t.filter(u,d,h,c))),t.itemSort&&(o=o.sort((u,d)=>t.itemSort(u,d,c))),he(o,u=>{const d=j81(t.callbacks,u);n.push(B4(d,"labelColor",this,u)),r.push(B4(d,"labelPointStyle",this,u)),i.push(B4(d,"labelTextColor",this,u))}),this.labelColors=n,this.labelPointStyles=r,this.labelTextColors=i,this.dataPoints=o,o}update(t,a){const c=this.options.setContext(this.getContext()),n=this._active;let r,i=[];if(!n.length)this.opacity!==0&&(r={opacity:0});else{const o=tl[c.position].call(this,n,this._eventPosition);i=this._createItems(c),this.title=this.getTitle(i,c),this.beforeBody=this.getBeforeBody(i,c),this.body=this.getBody(i,c),this.afterBody=this.getAfterBody(i,c),this.footer=this.getFooter(i,c);const l=this._size=R81(this,c),f=Object.assign({},o,l),u=F81(this.chart,c,f),d=$81(c,f,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,r={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:o.x,caretY:o.y}}this._tooltipItems=i,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&c.external&&c.external.call(this,{chart:this.chart,tooltip:this,replay:a})}drawCaret(t,a,c,n){const r=this.getCaretPosition(t,c,n);a.lineTo(r.x1,r.y1),a.lineTo(r.x2,r.y2),a.lineTo(r.x3,r.y3)}getCaretPosition(t,a,c){const{xAlign:n,yAlign:r}=this,{caretSize:i,cornerRadius:o}=c,{topLeft:l,topRight:f,bottomLeft:u,bottomRight:d}=pi(o),{x:h,y:p}=t,{width:v,height:m}=a;let y,g,M,x,k,b;return r==="center"?(k=p+m/2,n==="left"?(y=h,g=y-i,x=k+i,b=k-i):(y=h+v,g=y+i,x=k-i,b=k+i),M=y):(n==="left"?g=h+Math.max(l,u)+i:n==="right"?g=h+v-Math.max(f,d)-i:g=this.caretX,r==="top"?(x=p,k=x-i,y=g-i,M=g+i):(x=p+m,k=x+i,y=g+i,M=g-i),b=x),{x1:y,x2:g,x3:M,y1:x,y2:k,y3:b}}drawTitle(t,a,c){const n=this.title,r=n.length;let i,o,l;if(r){const f=es(c.rtl,this.x,this.width);for(t.x=fh(this,c.titleAlign,c),a.textAlign=f.textAlign(c.titleAlign),a.textBaseline="middle",i=I3(c.titleFont),o=c.titleSpacing,a.fillStyle=c.titleColor,a.font=i.string,l=0;l<r;++l)a.fillText(n[l],f.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+o,l+1===r&&(t.y+=c.titleMarginBottom-o)}}_drawColorBox(t,a,c,n,r){const i=this.labelColors[c],o=this.labelPointStyles[c],{boxHeight:l,boxWidth:f}=r,u=I3(r.bodyFont),d=fh(this,"left",r),h=n.x(d),p=l<u.lineHeight?(u.lineHeight-l)/2:0,v=a.y+p;if(r.usePointStyle){const m={radius:Math.min(f,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},y=n.leftForLtr(h,f)+f/2,g=v+l/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,LZ(t,m,y,g),t.strokeStyle=i.borderColor,t.fillStyle=i.backgroundColor,LZ(t,m,y,g)}else{t.lineWidth=F2(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,t.strokeStyle=i.borderColor,t.setLineDash(i.borderDash||[]),t.lineDashOffset=i.borderDashOffset||0;const m=n.leftForLtr(h,f),y=n.leftForLtr(n.xPlus(h,1),f-2),g=pi(i.borderRadius);Object.values(g).some(M=>M!==0)?(t.beginPath(),t.fillStyle=r.multiKeyBackground,Df(t,{x:m,y:v,w:f,h:l,radius:g}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),Df(t,{x:y,y:v+1,w:f-2,h:l-2,radius:g}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(m,v,f,l),t.strokeRect(m,v,f,l),t.fillStyle=i.backgroundColor,t.fillRect(y,v+1,f-2,l-2))}t.fillStyle=this.labelTextColors[c]}drawBody(t,a,c){const{body:n}=this,{bodySpacing:r,bodyAlign:i,displayColors:o,boxHeight:l,boxWidth:f,boxPadding:u}=c,d=I3(c.bodyFont);let h=d.lineHeight,p=0;const v=es(c.rtl,this.x,this.width),m=function(H){a.fillText(H,v.x(t.x+p),t.y+h/2),t.y+=h+r},y=v.textAlign(i);let g,M,x,k,b,_,C;for(a.textAlign=i,a.textBaseline="middle",a.font=d.string,t.x=fh(this,y,c),a.fillStyle=c.bodyColor,he(this.beforeBody,m),p=o&&y!=="right"?i==="center"?f/2+u:f+2+u:0,k=0,_=n.length;k<_;++k){for(g=n[k],M=this.labelTextColors[k],a.fillStyle=M,he(g.before,m),x=g.lines,o&&x.length&&(this._drawColorBox(a,t,k,v,c),h=Math.max(d.lineHeight,l)),b=0,C=x.length;b<C;++b)m(x[b]),h=d.lineHeight;he(g.after,m)}p=0,h=d.lineHeight,he(this.afterBody,m),t.y-=r}drawFooter(t,a,c){const n=this.footer,r=n.length;let i,o;if(r){const l=es(c.rtl,this.x,this.width);for(t.x=fh(this,c.footerAlign,c),t.y+=c.footerMarginTop,a.textAlign=l.textAlign(c.footerAlign),a.textBaseline="middle",i=I3(c.footerFont),a.fillStyle=c.footerColor,a.font=i.string,o=0;o<r;++o)a.fillText(n[o],l.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+c.footerSpacing}}drawBackground(t,a,c,n){const{xAlign:r,yAlign:i}=this,{x:o,y:l}=t,{width:f,height:u}=c,{topLeft:d,topRight:h,bottomLeft:p,bottomRight:v}=pi(n.cornerRadius);a.fillStyle=n.backgroundColor,a.strokeStyle=n.borderColor,a.lineWidth=n.borderWidth,a.beginPath(),a.moveTo(o+d,l),i==="top"&&this.drawCaret(t,a,c,n),a.lineTo(o+f-h,l),a.quadraticCurveTo(o+f,l,o+f,l+h),i==="center"&&r==="right"&&this.drawCaret(t,a,c,n),a.lineTo(o+f,l+u-v),a.quadraticCurveTo(o+f,l+u,o+f-v,l+u),i==="bottom"&&this.drawCaret(t,a,c,n),a.lineTo(o+p,l+u),a.quadraticCurveTo(o,l+u,o,l+u-p),i==="center"&&r==="left"&&this.drawCaret(t,a,c,n),a.lineTo(o,l+d),a.quadraticCurveTo(o,l,o+d,l),a.closePath(),a.fill(),n.borderWidth>0&&a.stroke()}_updateAnimationTarget(t){const a=this.chart,c=this.$animations,n=c&&c.x,r=c&&c.y;if(n||r){const i=tl[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=R81(this,t),l=Object.assign({},i,this._size),f=F81(a,t,l),u=$81(t,l,f,a);(n._to!==u.x||r._to!==u.y)&&(this.xAlign=f.xAlign,this.yAlign=f.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const a=this.options.setContext(this.getContext());let c=this.opacity;if(!c)return;this._updateAnimationTarget(a);const n={width:this.width,height:this.height},r={x:this.x,y:this.y};c=Math.abs(c)<.001?0:c;const i=b4(a.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;a.enabled&&o&&(t.save(),t.globalAlpha=c,this.drawBackground(r,t,n,a),wg1(t,a.textDirection),r.y+=i.top,this.drawTitle(r,t,a),this.drawBody(r,t,a),this.drawFooter(r,t,a),Hg1(t,a.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,a){const c=this._active,n=t.map(({datasetIndex:o,index:l})=>{const f=this.chart.getDatasetMeta(o);if(!f)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:f.data[l],index:l}}),r=!T$(c,n),i=this._positionChanged(n,a);(r||i)&&(this._active=n,this._eventPosition=a,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,a,c=!0){if(a&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,r=this._active||[],i=this._getActiveElements(t,r,a,c),o=this._positionChanged(i,t),l=a||!T$(i,r)||o;return l&&(this._active=i,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,a))),l}_getActiveElements(t,a,c,n){const r=this.options;if(t.type==="mouseout")return[];if(!n)return a.filter(o=>this.chart.data.datasets[o.datasetIndex]&&this.chart.getDatasetMeta(o.datasetIndex).controller.getParsed(o.index)!==void 0);const i=this.chart.getElementsAtEventForMode(t,r.mode,r,c);return r.reverse&&i.reverse(),i}_positionChanged(t,a){const{caretX:c,caretY:n,options:r}=this,i=tl[r.position].call(this,t,a);return i!==!1&&(c!==i.x||n!==i.y)}}S1(DZ,"positioners",tl);var gme={id:"tooltip",_element:DZ,positioners:tl,afterInit(e,t,a){a&&(e.tooltip=new DZ({chart:e,options:a}))},beforeUpdate(e,t,a){e.tooltip&&e.tooltip.initialize(a)},reset(e,t,a){e.tooltip&&e.tooltip.initialize(a)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const a={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...a,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",a)}},afterEvent(e,t){if(e.tooltip){const a=t.replay;e.tooltip.handleEvent(t.event,a,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Qg1},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Mme=Object.freeze({__proto__:null,Colors:Npe,Decimation:Dpe,Filler:tme,Legend:ome,SubTitle:fme,Title:lme,Tooltip:gme});const kme=(e,t,a,c)=>(typeof t=="string"?(a=e.push(t)-1,c.unshift({index:a,label:t})):isNaN(t)&&(a=null),a);function xme(e,t,a,c){const n=e.indexOf(t);if(n===-1)return kme(e,t,a,c);const r=e.lastIndexOf(t);return n!==r?a:n}const bme=(e,t)=>e===null?null:X3(Math.round(e),0,t);function U81(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class PZ extends Ji{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const a=this._addedLabels;if(a.length){const c=this.getLabels();for(const{index:n,label:r}of a)c[n]===r&&c.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,a){if(Q2(t))return null;const c=this.getLabels();return a=isFinite(a)&&c[a]===t?a:xme(c,t,C2(a,t),this._addedLabels),bme(a,c.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:a}=this.getUserBounds();let{min:c,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(c=0),a||(n=this.getLabels().length-1)),this.min=c,this.max=n}buildTicks(){const t=this.min,a=this.max,c=this.options.offset,n=[];let r=this.getLabels();r=t===0&&a===r.length-1?r:r.slice(t,a+1),this._valueRange=Math.max(r.length-(c?0:1),1),this._startValue=this.min-(c?.5:0);for(let i=t;i<=a;i++)n.push({value:i});return n}getLabelForValue(t){return U81.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const a=this.ticks;return t<0||t>a.length-1?null:this.getPixelForValue(a[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}S1(PZ,"id","category"),S1(PZ,"defaults",{ticks:{callback:U81}});function zme(e,t){const a=[],{bounds:n,step:r,min:i,max:o,precision:l,count:f,maxTicks:u,maxDigits:d,includeBounds:h}=e,p=r||1,v=u-1,{min:m,max:y}=t,g=!Q2(i),M=!Q2(o),x=!Q2(f),k=(y-m)/(d+1);let b=Rt1((y-m)/v/p)*p,_,C,H,V;if(b<1e-14&&!g&&!M)return[{value:m},{value:y}];V=Math.ceil(y/b)-Math.floor(m/b),V>v&&(b=Rt1(V*b/v/p)*p),Q2(l)||(_=Math.pow(10,l),b=Math.ceil(b*_)/_),n==="ticks"?(C=Math.floor(m/b)*b,H=Math.ceil(y/b)*b):(C=m,H=y),g&&M&&r&&vue((o-i)/r,b/1e3)?(V=Math.round(Math.min((o-i)/b,u)),b=(o-i)/V,C=i,H=o):x?(C=g?i:C,H=M?o:H,V=f-1,b=(H-C)/V):(V=(H-C)/b,Sl(V,Math.round(V),b/1e3)?V=Math.round(V):V=Math.ceil(V));const N=Math.max(Ft1(b),Ft1(C));_=Math.pow(10,Q2(l)?N:l),C=Math.round(C*_)/_,H=Math.round(H*_)/_;let L=0;for(g&&(h&&C!==i?(a.push({value:i}),C<i&&L++,Sl(Math.round((C+L*b)*_)/_,i,W81(i,k,e))&&L++):C<i&&L++);L<V;++L){const w=Math.round((C+L*b)*_)/_;if(M&&w>o)break;a.push({value:w})}return M&&h&&H!==o?a.length&&Sl(a[a.length-1].value,o,W81(o,k,e))?a[a.length-1].value=o:a.push({value:o}):(!M||H===o)&&a.push({value:H}),a}function W81(e,t,{horizontal:a,minRotation:c}){const n=o6(c),r=(a?Math.sin(n):Math.cos(n))||.001,i=.75*t*(""+e).length;return Math.min(t/r,i)}class R$ extends Ji{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,a){return Q2(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:a,maxDefined:c}=this.getUserBounds();let{min:n,max:r}=this;const i=l=>n=a?n:l,o=l=>r=c?r:l;if(t){const l=kt(n),f=kt(r);l<0&&f<0?o(0):l>0&&f>0&&i(0)}if(n===r){let l=r===0?1:Math.abs(r*.05);o(r+l),t||i(n-l)}this.min=n,this.max=r}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:a,stepSize:c}=t,n;return c?(n=Math.ceil(this.max/c)-Math.floor(this.min/c)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${c} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),a=a||11),a&&(n=Math.min(a,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,a=t.ticks;let c=this.getTickLimit();c=Math.max(2,c);const n={maxTicks:c,bounds:t.bounds,min:t.min,max:t.max,precision:a.precision,step:a.stepSize,count:a.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:a.minRotation||0,includeBounds:a.includeBounds!==!1},r=this._range||this,i=zme(n,r);return t.bounds==="ticks"&&lg1(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let a=this.min,c=this.max;if(super.configure(),this.options.offset&&t.length){const n=(c-a)/Math.max(t.length-1,1)/2;a-=n,c+=n}this._startValue=a,this._endValue=c,this._valueRange=c-a}getLabelForValue(t){return Bu(t,this.chart.options.locale,this.options.ticks.format)}}class OZ extends R${determineDataLimits(){const{min:t,max:a}=this.getMinMax(!0);this.min=l3(t)?t:0,this.max=l3(a)?a:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),a=t?this.width:this.height,c=o6(this.options.ticks.minRotation),n=(t?Math.sin(c):Math.cos(c))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(a/Math.min(40,r.lineHeight/n))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}S1(OZ,"id","linear"),S1(OZ,"defaults",{ticks:{callback:$j.formatters.numeric}});const Of=e=>Math.floor(ha(e)),C5=(e,t)=>Math.pow(10,Of(e)+t);function Y81(e){return e/Math.pow(10,Of(e))===1}function G81(e,t,a){const c=Math.pow(10,a),n=Math.floor(e/c);return Math.ceil(t/c)-n}function Cme(e,t){const a=t-e;let c=Of(a);for(;G81(e,t,c)>10;)c++;for(;G81(e,t,c)<10;)c--;return Math.min(c,Of(e))}function _me(e,{min:t,max:a}){t=e0(e.min,t);const c=[],n=Of(t);let r=Cme(t,a),i=r<0?Math.pow(10,Math.abs(r)):1;const o=Math.pow(10,r),l=n>r?Math.pow(10,n):0,f=Math.round((t-l)*i)/i,u=Math.floor((t-l)/o/10)*o*10;let d=Math.floor((f-u)/Math.pow(10,r)),h=e0(e.min,Math.round((l+u+d*Math.pow(10,r))*i)/i);for(;h<a;)c.push({value:h,major:Y81(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(r++,d=2,i=r>=0?1:i),h=Math.round((l+u+d*Math.pow(10,r))*i)/i;const p=e0(e.max,h);return c.push({value:p,major:Y81(p),significand:d}),c}class IZ extends Ji{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,a){const c=R$.prototype.parse.apply(this,[t,a]);if(c===0){this._zero=!0;return}return l3(c)&&c>0?c:null}determineDataLimits(){const{min:t,max:a}=this.getMinMax(!0);this.min=l3(t)?Math.max(0,t):null,this.max=l3(a)?Math.max(0,a):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!l3(this._userMin)&&(this.min=t===C5(this.min,0)?C5(this.min,-1):C5(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:a}=this.getUserBounds();let c=this.min,n=this.max;const r=o=>c=t?c:o,i=o=>n=a?n:o;c===n&&(c<=0?(r(1),i(10)):(r(C5(c,-1)),i(C5(n,1)))),c<=0&&r(C5(n,-1)),n<=0&&i(C5(c,1)),this.min=c,this.max=n}buildTicks(){const t=this.options,a={min:this._userMin,max:this._userMax},c=_me(a,this);return t.bounds==="ticks"&&lg1(c,this,"value"),t.reverse?(c.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),c}getLabelForValue(t){return t===void 0?"0":Bu(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=ha(t),this._valueRange=ha(this.max)-ha(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(ha(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const a=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+a*this._valueRange)}}S1(IZ,"id","logarithmic"),S1(IZ,"defaults",{ticks:{callback:$j.formatters.logarithmic,major:{enabled:!0}}});function BZ(e){const t=e.ticks;if(t.display&&e.display){const a=b4(t.backdropPadding);return C2(t.font&&t.font.size,We.font.size)+a.height}return 0}function wme(e,t,a){return a=Ae(a)?a:[a],{w:Tue(e,t.string,a),h:a.length*t.lineHeight}}function Z81(e,t,a,c,n){return e===c||e===n?{start:t-a/2,end:t+a/2}:e<c||e>n?{start:t-a,end:t}:{start:t,end:t+a}}function Hme(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},a=Object.assign({},t),c=[],n=[],r=e._pointLabels.length,i=e.options.pointLabels,o=i.centerPointLabels?Pe/r:0;for(let l=0;l<r;l++){const f=i.setContext(e.getPointLabelContext(l));n[l]=f.padding;const u=e.getPointPosition(l,e.drawingArea+n[l],o),d=I3(f.font),h=wme(e.ctx,d,e._pointLabels[l]);c[l]=h;const p=t0(e.getIndexAngle(l)+o),v=Math.round(r11(p)),m=Z81(v,u.x,h.w,0,180),y=Z81(v,u.y,h.h,90,270);Lme(a,t,p,m,y)}e.setCenterPoint(t.l-a.l,a.r-t.r,t.t-a.t,a.b-t.b),e._pointLabelItems=Nme(e,c,n)}function Lme(e,t,a,c,n){const r=Math.abs(Math.sin(a)),i=Math.abs(Math.cos(a));let o=0,l=0;c.start<t.l?(o=(t.l-c.start)/r,e.l=Math.min(e.l,t.l-o)):c.end>t.r&&(o=(c.end-t.r)/r,e.r=Math.max(e.r,t.r+o)),n.start<t.t?(l=(t.t-n.start)/i,e.t=Math.min(e.t,t.t-l)):n.end>t.b&&(l=(n.end-t.b)/i,e.b=Math.max(e.b,t.b+l))}function Vme(e,t,a){const c=e.drawingArea,{extra:n,additionalAngle:r,padding:i,size:o}=a,l=e.getPointPosition(t,c+n+i,r),f=Math.round(r11(t0(l.angle+w3))),u=Eme(l.y,o.h,f),d=Ame(f),h=Tme(l.x,o.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+o.w,bottom:u+o.h}}function Sme(e,t){if(!t)return!0;const{left:a,top:c,right:n,bottom:r}=e;return!(o8({x:a,y:c},t)||o8({x:a,y:r},t)||o8({x:n,y:c},t)||o8({x:n,y:r},t))}function Nme(e,t,a){const c=[],n=e._pointLabels.length,r=e.options,{centerPointLabels:i,display:o}=r.pointLabels,l={extra:BZ(r)/2,additionalAngle:i?Pe/n:0};let f;for(let u=0;u<n;u++){l.padding=a[u],l.size=t[u];const d=Vme(e,u,l);c.push(d),o==="auto"&&(d.visible=Sme(d,f),d.visible&&(f=d))}return c}function Ame(e){return e===0||e===180?"center":e<180?"left":"right"}function Tme(e,t,a){return a==="right"?e-=t:a==="center"&&(e-=t/2),e}function Eme(e,t,a){return a===90||a===270?e-=t/2:(a>270||a<90)&&(e-=t),e}function Dme(e,t,a){const{left:c,top:n,right:r,bottom:i}=a,{backdropColor:o}=t;if(!Q2(o)){const l=pi(t.borderRadius),f=b4(t.backdropPadding);e.fillStyle=o;const u=c-f.left,d=n-f.top,h=r-c+f.width,p=i-n+f.height;Object.values(l).some(v=>v!==0)?(e.beginPath(),Df(e,{x:u,y:d,w:h,h:p,radius:l}),e.fill()):e.fillRect(u,d,h,p)}}function Pme(e,t){const{ctx:a,options:{pointLabels:c}}=e;for(let n=t-1;n>=0;n--){const r=e._pointLabelItems[n];if(!r.visible)continue;const i=c.setContext(e.getPointLabelContext(n));Dme(a,i,r);const o=I3(i.font),{x:l,y:f,textAlign:u}=r;Ai(a,e._pointLabels[n],l,f+o.lineHeight/2,o,{color:i.color,textAlign:u,textBaseline:"middle"})}}function Jg1(e,t,a,c){const{ctx:n}=e;if(a)n.arc(e.xCenter,e.yCenter,t,0,Ee);else{let r=e.getPointPosition(0,t);n.moveTo(r.x,r.y);for(let i=1;i<c;i++)r=e.getPointPosition(i,t),n.lineTo(r.x,r.y)}}function Ome(e,t,a,c,n){const r=e.ctx,i=t.circular,{color:o,lineWidth:l}=t;!i&&!c||!o||!l||a<0||(r.save(),r.strokeStyle=o,r.lineWidth=l,r.setLineDash(n.dash||[]),r.lineDashOffset=n.dashOffset,r.beginPath(),Jg1(e,a,i,c),r.closePath(),r.stroke(),r.restore())}function Ime(e,t,a){return i5(e,{label:a,index:t,type:"pointLabel"})}class al extends R${constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=b4(BZ(this.options)/2),a=this.width=this.maxWidth-t.width,c=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+a/2+t.left),this.yCenter=Math.floor(this.top+c/2+t.top),this.drawingArea=Math.floor(Math.min(a,c)/2)}determineDataLimits(){const{min:t,max:a}=this.getMinMax(!1);this.min=l3(t)&&!isNaN(t)?t:0,this.max=l3(a)&&!isNaN(a)?a:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/BZ(this.options))}generateTickLabels(t){R$.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((a,c)=>{const n=xe(this.options.pointLabels.callback,[a,c],this);return n||n===0?n:""}).filter((a,c)=>this.chart.getDataVisibility(c))}fit(){const t=this.options;t.display&&t.pointLabels.display?Hme(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,a,c,n){this.xCenter+=Math.floor((t-a)/2),this.yCenter+=Math.floor((c-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,a,c,n))}getIndexAngle(t){const a=Ee/(this._pointLabels.length||1),c=this.options.startAngle||0;return t0(t*a+o6(c))}getDistanceFromCenterForValue(t){if(Q2(t))return NaN;const a=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*a:(t-this.min)*a}getValueForDistanceFromCenter(t){if(Q2(t))return NaN;const a=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-a:this.min+a}getPointLabelContext(t){const a=this._pointLabels||[];if(t>=0&&t<a.length){const c=a[t];return Ime(this.getContext(),t,c)}}getPointPosition(t,a,c=0){const n=this.getIndexAngle(t)-w3+c;return{x:Math.cos(n)*a+this.xCenter,y:Math.sin(n)*a+this.yCenter,angle:n}}getPointPositionForValue(t,a){return this.getPointPosition(t,this.getDistanceFromCenterForValue(a))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:a,top:c,right:n,bottom:r}=this._pointLabelItems[t];return{left:a,top:c,right:n,bottom:r}}drawBackground(){const{backgroundColor:t,grid:{circular:a}}=this.options;if(t){const c=this.ctx;c.save(),c.beginPath(),Jg1(this,this.getDistanceFromCenterForValue(this._endValue),a,this._pointLabels.length),c.closePath(),c.fillStyle=t,c.fill(),c.restore()}}drawGrid(){const t=this.ctx,a=this.options,{angleLines:c,grid:n,border:r}=a,i=this._pointLabels.length;let o,l,f;if(a.pointLabels.display&&Pme(this,i),n.display&&this.ticks.forEach((u,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(d),p=n.setContext(h),v=r.setContext(h);Ome(this,p,l,i,v)}}),c.display){for(t.save(),o=i-1;o>=0;o--){const u=c.setContext(this.getPointLabelContext(o)),{color:d,lineWidth:h}=u;!h||!d||(t.lineWidth=h,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(a.reverse?this.min:this.max),f=this.getPointPosition(o,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(f.x,f.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,a=this.options,c=a.ticks;if(!c.display)return;const n=this.getIndexAngle(0);let r,i;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((o,l)=>{if(l===0&&this.min>=0&&!a.reverse)return;const f=c.setContext(this.getContext(l)),u=I3(f.font);if(r=this.getDistanceFromCenterForValue(this.ticks[l].value),f.showLabelBackdrop){t.font=u.string,i=t.measureText(o.label).width,t.fillStyle=f.backdropColor;const d=b4(f.backdropPadding);t.fillRect(-i/2-d.left,-r-u.size/2-d.top,i+d.width,u.size+d.height)}Ai(t,o.label,0,-r,u,{color:f.color,strokeColor:f.textStrokeColor,strokeWidth:f.textStrokeWidth})}),t.restore()}drawTitle(){}}S1(al,"id","radialLinear"),S1(al,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:$j.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),S1(al,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),S1(al,"descriptors",{angleLines:{_fallback:"grid"}});const Wj={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},U4=Object.keys(Wj);function X81(e,t){return e-t}function K81(e,t){if(Q2(t))return null;const a=e._adapter,{parser:c,round:n,isoWeekday:r}=e._parseOpts;let i=t;return typeof c=="function"&&(i=c(i)),l3(i)||(i=typeof c=="string"?a.parse(i,c):a.parse(i)),i===null?null:(n&&(i=n==="week"&&(bs(r)||r===!0)?a.startOf(i,"isoWeek",r):a.startOf(i,n)),+i)}function Q81(e,t,a,c){const n=U4.length;for(let r=U4.indexOf(e);r<n-1;++r){const i=Wj[U4[r]],o=i.steps?i.steps:Number.MAX_SAFE_INTEGER;if(i.common&&Math.ceil((a-t)/(o*i.size))<=c)return U4[r]}return U4[n-1]}function Bme(e,t,a,c,n){for(let r=U4.length-1;r>=U4.indexOf(a);r--){const i=U4[r];if(Wj[i].common&&e._adapter.diff(n,c,i)>=t-1)return i}return U4[a?U4.indexOf(a):0]}function Rme(e){for(let t=U4.indexOf(e)+1,a=U4.length;t<a;++t)if(Wj[U4[t]].common)return U4[t]}function J81(e,t,a){if(!a)e[t]=!0;else if(a.length){const{lo:c,hi:n}=i11(a,t),r=a[c]>=t?a[c]:a[n];e[r]=!0}}function Fme(e,t,a,c){const n=e._adapter,r=+n.startOf(t[0].value,c),i=t[t.length-1].value;let o,l;for(o=r;o<=i;o=+n.add(o,1,c))l=a[o],l>=0&&(t[l].major=!0);return t}function ea1(e,t,a){const c=[],n={},r=t.length;let i,o;for(i=0;i<r;++i)o=t[i],n[o]=i,c.push({value:o,major:!1});return r===0||!a?c:Fme(e,c,n,a)}class If extends Ji{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,a={}){const c=t.time||(t.time={}),n=this._adapter=new Zde._date(t.adapters.date);n.init(a),Vl(c.displayFormats,n.formats()),this._parseOpts={parser:c.parser,round:c.round,isoWeekday:c.isoWeekday},super.init(t),this._normalized=a.normalized}parse(t,a){return t===void 0?null:K81(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,a=this._adapter,c=t.time.unit||"day";let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds();function l(f){!i&&!isNaN(f.min)&&(n=Math.min(n,f.min)),!o&&!isNaN(f.max)&&(r=Math.max(r,f.max))}(!i||!o)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),n=l3(n)&&!isNaN(n)?n:+a.startOf(Date.now(),c),r=l3(r)&&!isNaN(r)?r:+a.endOf(Date.now(),c)+1,this.min=Math.min(n,r-1),this.max=Math.max(n+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let a=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY;return t.length&&(a=t[0],c=t[t.length-1]),{min:a,max:c}}buildTicks(){const t=this.options,a=t.time,c=t.ticks,n=c.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const r=this.min,i=this.max,o=kue(n,r,i);return this._unit=a.unit||(c.autoSkip?Q81(a.minUnit,this.min,this.max,this._getLabelCapacity(r)):Bme(this,o.length,a.minUnit,this.min,this.max)),this._majorUnit=!c.major.enabled||this._unit==="year"?void 0:Rme(this._unit),this.initOffsets(n),t.reverse&&o.reverse(),ea1(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let a=0,c=0,n,r;this.options.offset&&t.length&&(n=this.getDecimalForValue(t[0]),t.length===1?a=1-n:a=(this.getDecimalForValue(t[1])-n)/2,r=this.getDecimalForValue(t[t.length-1]),t.length===1?c=r:c=(r-this.getDecimalForValue(t[t.length-2]))/2);const i=t.length<3?.5:.25;a=X3(a,0,i),c=X3(c,0,i),this._offsets={start:a,end:c,factor:1/(a+1+c)}}_generate(){const t=this._adapter,a=this.min,c=this.max,n=this.options,r=n.time,i=r.unit||Q81(r.minUnit,a,c,this._getLabelCapacity(a)),o=C2(n.ticks.stepSize,1),l=i==="week"?r.isoWeekday:!1,f=bs(l)||l===!0,u={};let d=a,h,p;if(f&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,f?"day":i),t.diff(c,a,i)>1e5*o)throw new Error(a+" and "+c+" are too far apart with stepSize of "+o+" "+i);const v=n.ticks.source==="data"&&this.getDataTimestamps();for(h=d,p=0;h<c;h=+t.add(h,o,i),p++)J81(u,h,v);return(h===c||n.bounds==="ticks"||p===1)&&J81(u,h,v),Object.keys(u).sort(X81).map(m=>+m)}getLabelForValue(t){const a=this._adapter,c=this.options.time;return c.tooltipFormat?a.format(t,c.tooltipFormat):a.format(t,c.displayFormats.datetime)}format(t,a){const n=this.options.time.displayFormats,r=this._unit,i=a||n[r];return this._adapter.format(t,i)}_tickFormatFunction(t,a,c,n){const r=this.options,i=r.ticks.callback;if(i)return xe(i,[t,a,c],this);const o=r.time.displayFormats,l=this._unit,f=this._majorUnit,u=l&&o[l],d=f&&o[f],h=c[a],p=f&&d&&h&&h.major;return this._adapter.format(t,n||(p?d:u))}generateTickLabels(t){let a,c,n;for(a=0,c=t.length;a<c;++a)n=t[a],n.label=this._tickFormatFunction(n.value,a,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const a=this._offsets,c=this.getDecimalForValue(t);return this.getPixelForDecimal((a.start+c)*a.factor)}getValueForPixel(t){const a=this._offsets,c=this.getDecimalForPixel(t)/a.factor-a.end;return this.min+c*(this.max-this.min)}_getLabelSize(t){const a=this.options.ticks,c=this.ctx.measureText(t).width,n=o6(this.isHorizontal()?a.maxRotation:a.minRotation),r=Math.cos(n),i=Math.sin(n),o=this._resolveTickFontOptions(0).size;return{w:c*r+o*i,h:c*i+o*r}}_getLabelCapacity(t){const a=this.options.time,c=a.displayFormats,n=c[a.unit]||c.millisecond,r=this._tickFormatFunction(t,0,ea1(this,[t],this._majorUnit),n),i=this._getLabelSize(r),o=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return o>0?o:1}getDataTimestamps(){let t=this._cache.data||[],a,c;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(a=0,c=n.length;a<c;++a)t=t.concat(n[a].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let a,c;if(t.length)return t;const n=this.getLabels();for(a=0,c=n.length;a<c;++a)t.push(K81(this,n[a]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return dg1(t.sort(X81))}}S1(If,"id","time"),S1(If,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function uh(e,t,a){let c=0,n=e.length-1,r,i,o,l;a?(t>=e[c].pos&&t<=e[n].pos&&({lo:c,hi:n}=i8(e,"pos",t)),{pos:r,time:o}=e[c],{pos:i,time:l}=e[n]):(t>=e[c].time&&t<=e[n].time&&({lo:c,hi:n}=i8(e,"time",t)),{time:r,pos:o}=e[c],{time:i,pos:l}=e[n]);const f=i-r;return f?o+(l-o)*(t-r)/f:o}class RZ extends If{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),a=this._table=this.buildLookupTable(t);this._minPos=uh(a,this.min),this._tableRange=uh(a,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:a,max:c}=this,n=[],r=[];let i,o,l,f,u;for(i=0,o=t.length;i<o;++i)f=t[i],f>=a&&f<=c&&n.push(f);if(n.length<2)return[{time:a,pos:0},{time:c,pos:1}];for(i=0,o=n.length;i<o;++i)u=n[i+1],l=n[i-1],f=n[i],Math.round((u+l)/2)!==f&&r.push({time:f,pos:i/(o-1)});return r}_generate(){const t=this.min,a=this.max;let c=super.getDataTimestamps();return(!c.includes(t)||!c.length)&&c.splice(0,0,t),(!c.includes(a)||c.length===1)&&c.push(a),c.sort((n,r)=>n-r)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const a=this.getDataTimestamps(),c=this.getLabelTimestamps();return a.length&&c.length?t=this.normalize(a.concat(c)):t=a.length?a:c,t=this._cache.all=t,t}getDecimalForValue(t){return(uh(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const a=this._offsets,c=this.getDecimalForPixel(t)/a.factor-a.end;return uh(this._table,c*this._tableRange+this._minPos,!0)}}S1(RZ,"id","timeseries"),S1(RZ,"defaults",If.defaults);var $me=Object.freeze({__proto__:null,CategoryScale:PZ,LinearScale:OZ,LogarithmicScale:IZ,RadialLinearScale:al,TimeScale:If,TimeSeriesScale:RZ});const eM1=[Gde,Cpe,Mme,$me];var qme=typeof global=="object"&&global&&global.Object===Object&&global;const tM1=qme;var jme=typeof self=="object"&&self&&self.Object===Object&&self,Ume=tM1||jme||Function("return this")();const Et=Ume;var Wme=Et.Symbol;const Wa=Wme;var aM1=Object.prototype,Yme=aM1.hasOwnProperty,Gme=aM1.toString,R9=Wa?Wa.toStringTag:void 0;function Zme(e){var t=Yme.call(e,R9),a=e[R9];try{e[R9]=void 0;var c=!0}catch{}var n=Gme.call(e);return c&&(t?e[R9]=a:delete e[R9]),n}var Xme=Object.prototype,Kme=Xme.toString;function Qme(e){return Kme.call(e)}var Jme="[object Null]",eve="[object Undefined]",ta1=Wa?Wa.toStringTag:void 0;function Fu(e){return e==null?e===void 0?eve:Jme:ta1&&ta1 in Object(e)?Zme(e):Qme(e)}function Ti(e){return e!=null&&typeof e=="object"}var tve=Array.isArray;const _s=tve;function $u(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ave="[object AsyncFunction]",cve="[object Function]",nve="[object GeneratorFunction]",rve="[object Proxy]";function cM1(e){if(!$u(e))return!1;var t=Fu(e);return t==cve||t==nve||t==ave||t==rve}var ive=Et["__core-js_shared__"];const yY=ive;var aa1=function(){var e=/[^.]+$/.exec(yY&&yY.keys&&yY.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ove(e){return!!aa1&&aa1 in e}var sve=Function.prototype,lve=sve.toString;function eo(e){if(e!=null){try{return lve.call(e)}catch{}try{return e+""}catch{}}return""}var fve=/[\\^$.*+?()[\]{}|]/g,uve=/^\[object .+?Constructor\]$/,dve=Function.prototype,hve=Object.prototype,pve=dve.toString,mve=hve.hasOwnProperty,vve=RegExp("^"+pve.call(mve).replace(fve,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yve(e){if(!$u(e)||ove(e))return!1;var t=cM1(e)?vve:uve;return t.test(eo(e))}function gve(e,t){return e==null?void 0:e[t]}function to(e,t){var a=gve(e,t);return yve(a)?a:void 0}var Mve=to(Et,"WeakMap");const FZ=Mve;var ca1=Object.create,kve=function(){function e(){}return function(t){if(!$u(t))return{};if(ca1)return ca1(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();const xve=kve;function bve(e,t){var a=-1,c=e.length;for(t||(t=Array(c));++a<c;)t[a]=e[a];return t}var zve=function(){try{var e=to(Object,"defineProperty");return e({},"",{}),e}catch{}}();const na1=zve;function Cve(e,t){for(var a=-1,c=e==null?0:e.length;++a<c&&t(e[a],a,e)!==!1;);return e}var _ve=9007199254740991,wve=/^(?:0|[1-9]\d*)$/;function Hve(e,t){var a=typeof e;return t=t??_ve,!!t&&(a=="number"||a!="symbol"&&wve.test(e))&&e>-1&&e%1==0&&e<t}function nM1(e,t,a){t=="__proto__"&&na1?na1(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}function g11(e,t){return e===t||e!==e&&t!==t}var Lve=Object.prototype,Vve=Lve.hasOwnProperty;function rM1(e,t,a){var c=e[t];(!(Vve.call(e,t)&&g11(c,a))||a===void 0&&!(t in e))&&nM1(e,t,a)}function Yj(e,t,a,c){var n=!a;a||(a={});for(var r=-1,i=t.length;++r<i;){var o=t[r],l=c?c(a[o],e[o],o,a,e):void 0;l===void 0&&(l=e[o]),n?nM1(a,o,l):rM1(a,o,l)}return a}var Sve=9007199254740991;function iM1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Sve}function M11(e){return e!=null&&iM1(e.length)&&!cM1(e)}var Nve=Object.prototype;function Gj(e){var t=e&&e.constructor,a=typeof t=="function"&&t.prototype||Nve;return e===a}function Ave(e,t){for(var a=-1,c=Array(e);++a<e;)c[a]=t(a);return c}var Tve="[object Arguments]";function ra1(e){return Ti(e)&&Fu(e)==Tve}var oM1=Object.prototype,Eve=oM1.hasOwnProperty,Dve=oM1.propertyIsEnumerable,Pve=ra1(function(){return arguments}())?ra1:function(e){return Ti(e)&&Eve.call(e,"callee")&&!Dve.call(e,"callee")};const sM1=Pve;function Ove(){return!1}var lM1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ia1=lM1&&typeof module=="object"&&module&&!module.nodeType&&module,Ive=ia1&&ia1.exports===lM1,oa1=Ive?Et.Buffer:void 0,Bve=oa1?oa1.isBuffer:void 0,Rve=Bve||Ove;const Bf=Rve;var Fve="[object Arguments]",$ve="[object Array]",qve="[object Boolean]",jve="[object Date]",Uve="[object Error]",Wve="[object Function]",Yve="[object Map]",Gve="[object Number]",Zve="[object Object]",Xve="[object RegExp]",Kve="[object Set]",Qve="[object String]",Jve="[object WeakMap]",eye="[object ArrayBuffer]",tye="[object DataView]",aye="[object Float32Array]",cye="[object Float64Array]",nye="[object Int8Array]",rye="[object Int16Array]",iye="[object Int32Array]",oye="[object Uint8Array]",sye="[object Uint8ClampedArray]",lye="[object Uint16Array]",fye="[object Uint32Array]",Le={};Le[aye]=Le[cye]=Le[nye]=Le[rye]=Le[iye]=Le[oye]=Le[sye]=Le[lye]=Le[fye]=!0;Le[Fve]=Le[$ve]=Le[eye]=Le[qve]=Le[tye]=Le[jve]=Le[Uve]=Le[Wve]=Le[Yve]=Le[Gve]=Le[Zve]=Le[Xve]=Le[Kve]=Le[Qve]=Le[Jve]=!1;function uye(e){return Ti(e)&&iM1(e.length)&&!!Le[Fu(e)]}function k11(e){return function(t){return e(t)}}var fM1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,El=fM1&&typeof module=="object"&&module&&!module.nodeType&&module,dye=El&&El.exports===fM1,gY=dye&&tM1.process,hye=function(){try{var e=El&&El.require&&El.require("util").types;return e||gY&&gY.binding&&gY.binding("util")}catch{}}();const ws=hye;var sa1=ws&&ws.isTypedArray,pye=sa1?k11(sa1):uye;const x11=pye;var mye=Object.prototype,vye=mye.hasOwnProperty;function uM1(e,t){var a=_s(e),c=!a&&sM1(e),n=!a&&!c&&Bf(e),r=!a&&!c&&!n&&x11(e),i=a||c||n||r,o=i?Ave(e.length,String):[],l=o.length;for(var f in e)(t||vye.call(e,f))&&!(i&&(f=="length"||n&&(f=="offset"||f=="parent")||r&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Hve(f,l)))&&o.push(f);return o}function dM1(e,t){return function(a){return e(t(a))}}var yye=dM1(Object.keys,Object);const gye=yye;var Mye=Object.prototype,kye=Mye.hasOwnProperty;function hM1(e){if(!Gj(e))return gye(e);var t=[];for(var a in Object(e))kye.call(e,a)&&a!="constructor"&&t.push(a);return t}function b11(e){return M11(e)?uM1(e):hM1(e)}function xye(e){var t=[];if(e!=null)for(var a in Object(e))t.push(a);return t}var bye=Object.prototype,zye=bye.hasOwnProperty;function Cye(e){if(!$u(e))return xye(e);var t=Gj(e),a=[];for(var c in e)c=="constructor"&&(t||!zye.call(e,c))||a.push(c);return a}function z11(e){return M11(e)?uM1(e,!0):Cye(e)}var _ye=to(Object,"create");const Rf=_ye;function wye(){this.__data__=Rf?Rf(null):{},this.size=0}function Hye(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Lye="__lodash_hash_undefined__",Vye=Object.prototype,Sye=Vye.hasOwnProperty;function Nye(e){var t=this.__data__;if(Rf){var a=t[e];return a===Lye?void 0:a}return Sye.call(t,e)?t[e]:void 0}var Aye=Object.prototype,Tye=Aye.hasOwnProperty;function Eye(e){var t=this.__data__;return Rf?t[e]!==void 0:Tye.call(t,e)}var Dye="__lodash_hash_undefined__";function Pye(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=Rf&&t===void 0?Dye:t,this}function Ei(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var c=e[t];this.set(c[0],c[1])}}Ei.prototype.clear=wye;Ei.prototype.delete=Hye;Ei.prototype.get=Nye;Ei.prototype.has=Eye;Ei.prototype.set=Pye;function Oye(){this.__data__=[],this.size=0}function Zj(e,t){for(var a=e.length;a--;)if(g11(e[a][0],t))return a;return-1}var Iye=Array.prototype,Bye=Iye.splice;function Rye(e){var t=this.__data__,a=Zj(t,e);if(a<0)return!1;var c=t.length-1;return a==c?t.pop():Bye.call(t,a,1),--this.size,!0}function Fye(e){var t=this.__data__,a=Zj(t,e);return a<0?void 0:t[a][1]}function $ye(e){return Zj(this.__data__,e)>-1}function qye(e,t){var a=this.__data__,c=Zj(a,e);return c<0?(++this.size,a.push([e,t])):a[c][1]=t,this}function I8(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var c=e[t];this.set(c[0],c[1])}}I8.prototype.clear=Oye;I8.prototype.delete=Rye;I8.prototype.get=Fye;I8.prototype.has=$ye;I8.prototype.set=qye;var jye=to(Et,"Map");const Ff=jye;function Uye(){this.size=0,this.__data__={hash:new Ei,map:new(Ff||I8),string:new Ei}}function Wye(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Xj(e,t){var a=e.__data__;return Wye(t)?a[typeof t=="string"?"string":"hash"]:a.map}function Yye(e){var t=Xj(this,e).delete(e);return this.size-=t?1:0,t}function Gye(e){return Xj(this,e).get(e)}function Zye(e){return Xj(this,e).has(e)}function Xye(e,t){var a=Xj(this,e),c=a.size;return a.set(e,t),this.size+=a.size==c?0:1,this}function ao(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var c=e[t];this.set(c[0],c[1])}}ao.prototype.clear=Uye;ao.prototype.delete=Yye;ao.prototype.get=Gye;ao.prototype.has=Zye;ao.prototype.set=Xye;function pM1(e,t){for(var a=-1,c=t.length,n=e.length;++a<c;)e[n+a]=t[a];return e}var Kye=dM1(Object.getPrototypeOf,Object);const mM1=Kye;function Qye(){this.__data__=new I8,this.size=0}function Jye(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}function ege(e){return this.__data__.get(e)}function tge(e){return this.__data__.has(e)}var age=200;function cge(e,t){var a=this.__data__;if(a instanceof I8){var c=a.__data__;if(!Ff||c.length<age-1)return c.push([e,t]),this.size=++a.size,this;a=this.__data__=new ao(c)}return a.set(e,t),this.size=a.size,this}function m8(e){var t=this.__data__=new I8(e);this.size=t.size}m8.prototype.clear=Qye;m8.prototype.delete=Jye;m8.prototype.get=ege;m8.prototype.has=tge;m8.prototype.set=cge;function nge(e,t){return e&&Yj(t,b11(t),e)}function rge(e,t){return e&&Yj(t,z11(t),e)}var vM1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,la1=vM1&&typeof module=="object"&&module&&!module.nodeType&&module,ige=la1&&la1.exports===vM1,fa1=ige?Et.Buffer:void 0,ua1=fa1?fa1.allocUnsafe:void 0;function oge(e,t){if(t)return e.slice();var a=e.length,c=ua1?ua1(a):new e.constructor(a);return e.copy(c),c}function sge(e,t){for(var a=-1,c=e==null?0:e.length,n=0,r=[];++a<c;){var i=e[a];t(i,a,e)&&(r[n++]=i)}return r}function yM1(){return[]}var lge=Object.prototype,fge=lge.propertyIsEnumerable,da1=Object.getOwnPropertySymbols,uge=da1?function(e){return e==null?[]:(e=Object(e),sge(da1(e),function(t){return fge.call(e,t)}))}:yM1;const C11=uge;function dge(e,t){return Yj(e,C11(e),t)}var hge=Object.getOwnPropertySymbols,pge=hge?function(e){for(var t=[];e;)pM1(t,C11(e)),e=mM1(e);return t}:yM1;const gM1=pge;function mge(e,t){return Yj(e,gM1(e),t)}function MM1(e,t,a){var c=t(e);return _s(e)?c:pM1(c,a(e))}function $Z(e){return MM1(e,b11,C11)}function vge(e){return MM1(e,z11,gM1)}var yge=to(Et,"DataView");const qZ=yge;var gge=to(Et,"Promise");const jZ=gge;var Mge=to(Et,"Set");const UZ=Mge;var ha1="[object Map]",kge="[object Object]",pa1="[object Promise]",ma1="[object Set]",va1="[object WeakMap]",ya1="[object DataView]",xge=eo(qZ),bge=eo(Ff),zge=eo(jZ),Cge=eo(UZ),_ge=eo(FZ),U7=Fu;(qZ&&U7(new qZ(new ArrayBuffer(1)))!=ya1||Ff&&U7(new Ff)!=ha1||jZ&&U7(jZ.resolve())!=pa1||UZ&&U7(new UZ)!=ma1||FZ&&U7(new FZ)!=va1)&&(U7=function(e){var t=Fu(e),a=t==kge?e.constructor:void 0,c=a?eo(a):"";if(c)switch(c){case xge:return ya1;case bge:return ha1;case zge:return pa1;case Cge:return ma1;case _ge:return va1}return t});const Hs=U7;var wge=Object.prototype,Hge=wge.hasOwnProperty;function Lge(e){var t=e.length,a=new e.constructor(t);return t&&typeof e[0]=="string"&&Hge.call(e,"index")&&(a.index=e.index,a.input=e.input),a}var Vge=Et.Uint8Array;const F$=Vge;function _11(e){var t=new e.constructor(e.byteLength);return new F$(t).set(new F$(e)),t}function Sge(e,t){var a=t?_11(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}var Nge=/\w*$/;function Age(e){var t=new e.constructor(e.source,Nge.exec(e));return t.lastIndex=e.lastIndex,t}var ga1=Wa?Wa.prototype:void 0,Ma1=ga1?ga1.valueOf:void 0;function Tge(e){return Ma1?Object(Ma1.call(e)):{}}function Ege(e,t){var a=t?_11(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}var Dge="[object Boolean]",Pge="[object Date]",Oge="[object Map]",Ige="[object Number]",Bge="[object RegExp]",Rge="[object Set]",Fge="[object String]",$ge="[object Symbol]",qge="[object ArrayBuffer]",jge="[object DataView]",Uge="[object Float32Array]",Wge="[object Float64Array]",Yge="[object Int8Array]",Gge="[object Int16Array]",Zge="[object Int32Array]",Xge="[object Uint8Array]",Kge="[object Uint8ClampedArray]",Qge="[object Uint16Array]",Jge="[object Uint32Array]";function eMe(e,t,a){var c=e.constructor;switch(t){case qge:return _11(e);case Dge:case Pge:return new c(+e);case jge:return Sge(e,a);case Uge:case Wge:case Yge:case Gge:case Zge:case Xge:case Kge:case Qge:case Jge:return Ege(e,a);case Oge:return new c;case Ige:case Fge:return new c(e);case Bge:return Age(e);case Rge:return new c;case $ge:return Tge(e)}}function tMe(e){return typeof e.constructor=="function"&&!Gj(e)?xve(mM1(e)):{}}var aMe="[object Map]";function cMe(e){return Ti(e)&&Hs(e)==aMe}var ka1=ws&&ws.isMap,nMe=ka1?k11(ka1):cMe;const rMe=nMe;var iMe="[object Set]";function oMe(e){return Ti(e)&&Hs(e)==iMe}var xa1=ws&&ws.isSet,sMe=xa1?k11(xa1):oMe;const lMe=sMe;var fMe=1,uMe=2,dMe=4,kM1="[object Arguments]",hMe="[object Array]",pMe="[object Boolean]",mMe="[object Date]",vMe="[object Error]",xM1="[object Function]",yMe="[object GeneratorFunction]",gMe="[object Map]",MMe="[object Number]",bM1="[object Object]",kMe="[object RegExp]",xMe="[object Set]",bMe="[object String]",zMe="[object Symbol]",CMe="[object WeakMap]",_Me="[object ArrayBuffer]",wMe="[object DataView]",HMe="[object Float32Array]",LMe="[object Float64Array]",VMe="[object Int8Array]",SMe="[object Int16Array]",NMe="[object Int32Array]",AMe="[object Uint8Array]",TMe="[object Uint8ClampedArray]",EMe="[object Uint16Array]",DMe="[object Uint32Array]",ke={};ke[kM1]=ke[hMe]=ke[_Me]=ke[wMe]=ke[pMe]=ke[mMe]=ke[HMe]=ke[LMe]=ke[VMe]=ke[SMe]=ke[NMe]=ke[gMe]=ke[MMe]=ke[bM1]=ke[kMe]=ke[xMe]=ke[bMe]=ke[zMe]=ke[AMe]=ke[TMe]=ke[EMe]=ke[DMe]=!0;ke[vMe]=ke[xM1]=ke[CMe]=!1;function LF(e,t,a,c,n,r){var i,o=t&fMe,l=t&uMe,f=t&dMe;if(a&&(i=n?a(e,c,n,r):a(e)),i!==void 0)return i;if(!$u(e))return e;var u=_s(e);if(u){if(i=Lge(e),!o)return bve(e,i)}else{var d=Hs(e),h=d==xM1||d==yMe;if(Bf(e))return oge(e,o);if(d==bM1||d==kM1||h&&!n){if(i=l||h?{}:tMe(e),!o)return l?mge(e,rge(i,e)):dge(e,nge(i,e))}else{if(!ke[d])return n?e:{};i=eMe(e,d,o)}}r||(r=new m8);var p=r.get(e);if(p)return p;r.set(e,i),lMe(e)?e.forEach(function(y){i.add(LF(y,t,a,y,e,r))}):rMe(e)&&e.forEach(function(y,g){i.set(g,LF(y,t,a,g,e,r))});var v=f?l?vge:$Z:l?z11:b11,m=u?void 0:v(e);return Cve(m||e,function(y,g){m&&(g=y,y=e[g]),rM1(i,g,LF(y,t,a,g,e,r))}),i}var PMe=1,OMe=4;function F9(e){return LF(e,PMe|OMe)}var IMe="__lodash_hash_undefined__";function BMe(e){return this.__data__.set(e,IMe),this}function RMe(e){return this.__data__.has(e)}function $$(e){var t=-1,a=e==null?0:e.length;for(this.__data__=new ao;++t<a;)this.add(e[t])}$$.prototype.add=$$.prototype.push=BMe;$$.prototype.has=RMe;function FMe(e,t){for(var a=-1,c=e==null?0:e.length;++a<c;)if(t(e[a],a,e))return!0;return!1}function $Me(e,t){return e.has(t)}var qMe=1,jMe=2;function zM1(e,t,a,c,n,r){var i=a&qMe,o=e.length,l=t.length;if(o!=l&&!(i&&l>o))return!1;var f=r.get(e),u=r.get(t);if(f&&u)return f==t&&u==e;var d=-1,h=!0,p=a&jMe?new $$:void 0;for(r.set(e,t),r.set(t,e);++d<o;){var v=e[d],m=t[d];if(c)var y=i?c(m,v,d,t,e,r):c(v,m,d,e,t,r);if(y!==void 0){if(y)continue;h=!1;break}if(p){if(!FMe(t,function(g,M){if(!$Me(p,M)&&(v===g||n(v,g,a,c,r)))return p.push(M)})){h=!1;break}}else if(!(v===m||n(v,m,a,c,r))){h=!1;break}}return r.delete(e),r.delete(t),h}function UMe(e){var t=-1,a=Array(e.size);return e.forEach(function(c,n){a[++t]=[n,c]}),a}function WMe(e){var t=-1,a=Array(e.size);return e.forEach(function(c){a[++t]=c}),a}var YMe=1,GMe=2,ZMe="[object Boolean]",XMe="[object Date]",KMe="[object Error]",QMe="[object Map]",JMe="[object Number]",eke="[object RegExp]",tke="[object Set]",ake="[object String]",cke="[object Symbol]",nke="[object ArrayBuffer]",rke="[object DataView]",ba1=Wa?Wa.prototype:void 0,MY=ba1?ba1.valueOf:void 0;function ike(e,t,a,c,n,r,i){switch(a){case rke:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case nke:return!(e.byteLength!=t.byteLength||!r(new F$(e),new F$(t)));case ZMe:case XMe:case JMe:return g11(+e,+t);case KMe:return e.name==t.name&&e.message==t.message;case eke:case ake:return e==t+"";case QMe:var o=UMe;case tke:var l=c&YMe;if(o||(o=WMe),e.size!=t.size&&!l)return!1;var f=i.get(e);if(f)return f==t;c|=GMe,i.set(e,t);var u=zM1(o(e),o(t),c,n,r,i);return i.delete(e),u;case cke:if(MY)return MY.call(e)==MY.call(t)}return!1}var oke=1,ske=Object.prototype,lke=ske.hasOwnProperty;function fke(e,t,a,c,n,r){var i=a&oke,o=$Z(e),l=o.length,f=$Z(t),u=f.length;if(l!=u&&!i)return!1;for(var d=l;d--;){var h=o[d];if(!(i?h in t:lke.call(t,h)))return!1}var p=r.get(e),v=r.get(t);if(p&&v)return p==t&&v==e;var m=!0;r.set(e,t),r.set(t,e);for(var y=i;++d<l;){h=o[d];var g=e[h],M=t[h];if(c)var x=i?c(M,g,h,t,e,r):c(g,M,h,e,t,r);if(!(x===void 0?g===M||n(g,M,a,c,r):x)){m=!1;break}y||(y=h=="constructor")}if(m&&!y){var k=e.constructor,b=t.constructor;k!=b&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof b=="function"&&b instanceof b)&&(m=!1)}return r.delete(e),r.delete(t),m}var uke=1,za1="[object Arguments]",Ca1="[object Array]",dh="[object Object]",dke=Object.prototype,_a1=dke.hasOwnProperty;function hke(e,t,a,c,n,r){var i=_s(e),o=_s(t),l=i?Ca1:Hs(e),f=o?Ca1:Hs(t);l=l==za1?dh:l,f=f==za1?dh:f;var u=l==dh,d=f==dh,h=l==f;if(h&&Bf(e)){if(!Bf(t))return!1;i=!0,u=!1}if(h&&!u)return r||(r=new m8),i||x11(e)?zM1(e,t,a,c,n,r):ike(e,t,l,a,c,n,r);if(!(a&uke)){var p=u&&_a1.call(e,"__wrapped__"),v=d&&_a1.call(t,"__wrapped__");if(p||v){var m=p?e.value():e,y=v?t.value():t;return r||(r=new m8),n(m,y,a,c,r)}}return h?(r||(r=new m8),fke(e,t,a,c,n,r)):!1}function CM1(e,t,a,c,n){return e===t?!0:e==null||t==null||!Ti(e)&&!Ti(t)?e!==e&&t!==t:hke(e,t,a,c,CM1,n)}var pke="[object Map]",mke="[object Set]",vke=Object.prototype,yke=vke.hasOwnProperty;function gke(e){if(e==null)return!0;if(M11(e)&&(_s(e)||typeof e=="string"||typeof e.splice=="function"||Bf(e)||x11(e)||sM1(e)))return!e.length;var t=Hs(e);if(t==pke||t==mke)return!e.size;if(Gj(e))return!hM1(e).length;for(var a in e)if(yke.call(e,a))return!1;return!0}function wa1(e,t){return CM1(e,t)}var Mke=Object.defineProperty,kke=Object.defineProperties,xke=Object.getOwnPropertyDescriptors,Ha1=Object.getOwnPropertySymbols,bke=Object.prototype.hasOwnProperty,zke=Object.prototype.propertyIsEnumerable,La1=(e,t,a)=>t in e?Mke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Cke=(e,t)=>{for(var a in t||(t={}))bke.call(t,a)&&La1(e,a,t[a]);if(Ha1)for(var a of Ha1(t))zke.call(t,a)&&La1(e,a,t[a]);return e},_ke=(e,t)=>kke(e,xke(t));function wke(e){return(e.match(/[a-zA-Z0-9]+/g)||[]).map(t=>`${t.charAt(0).toUpperCase()}${t.slice(1)}`).join("")}var o5=(e,t)=>{const a={chartData:{type:Object,required:!0},options:{type:Object,required:!1},chartId:{default:e,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:()=>[]},onLabelsUpdate:{type:Function},onChartUpdate:{type:Function},onChartDestroy:{type:Function},onChartRender:{type:Function}},c=wke(e);return s.defineComponent({name:c,props:a,emits:{"labels:update":()=>!0,"chart:update":n=>!0,"chart:destroy":()=>!0,"chart:render":n=>!0},setup(n,{emit:r,expose:i}){const o=s.ref(null),l=`${n.chartId}`;let f=s.shallowRef(null);s.watch(()=>n.chartData,u,{deep:!0}),s.watch(()=>n.options,y=>{f.value&&y&&(f.value.options=F9(y),v())},{deep:!0});function u(y){if(f.value){let g=f.value;wa1(y.labels,f.value.data.labels)||(g.data.labels=y.labels,h()),wa1(y.datasets,f.value.data.datasets)||y.datasets.forEach((M,x)=>{var k,b;if(gke(M))g.data.datasets=[];else{const _=F9(g.data),C=Object.keys((b=(k=_.datasets)==null?void 0:k[x])!=null?b:{}),H=Object.keys(M);C.filter(N=>N!=="_meta"&&H.indexOf(N)===-1).forEach(N=>{g.data.datasets[x]&&delete g.data.datasets[x][N]});for(const N in M){const L=F9(M[N]);g.data.datasets[x]||(g.data.datasets[x]={}),M.hasOwnProperty(N)&&L!=null&&g&&(g.data.datasets[x][N]=L)}}}),v()}else f.value&&m(),d()}function d(){o.value?(f.value=new et(o.value,{data:F9(n.chartData),type:t,options:F9(n.options),plugins:n.plugins}),p()):console.error(`Error on component ${c}, canvas cannot be rendered. Check if the render appends server-side`)}function h(){r("labels:update"),n.onLabelsUpdate&&n.onLabelsUpdate()}function p(){f.value&&(r("chart:render",f.value),n.onChartRender&&n.onChartRender(f.value))}function v(){f.value&&(f.value.update(),r("chart:update",f.value),n.onChartUpdate&&n.onChartUpdate(f.value))}function m(){f.value&&f.value.destroy(),r("chart:destroy"),n.onChartDestroy&&n.onChartDestroy()}return s.onMounted(d),s.onBeforeUnmount(()=>{f.value&&f.value.destroy()}),i({canvasRef:o,renderChart:d,chartInstance:f,canvasId:l,update:v}),()=>s.h("div",{style:_ke(Cke({maxWidth:"100%"},n.styles),{position:"relative"}),class:n.cssClasses},[s.h("canvas",{style:{maxWidth:"100%",maxHeight:"100%"},id:l,width:n.width,height:n.height,ref:o})])}})},Hke=o5("bar-chart","bar"),Lke=o5("doughnut-chart","doughnut");o5("line-chart","line");o5("pie-chart","pie");o5("polar-chart","polarArea");o5("radar-chart","radar");o5("bubble-chart","bubble");o5("scatter-chart","scatter");const Vke=s.defineComponent({__name:"PgaBarChart",props:{data:{},options:{}},setup(e){et.register(...eM1);const t={responsive:!0};return(a,c)=>(s.openBlock(),s.createBlock(s.unref(Hke),{chartData:a.data,options:a.options||t},null,8,["chartData","options"]))}}),Ske=s.defineComponent({__name:"PgaDoughnutChart",props:{data:{},options:{}},setup(e){et.register(...eM1);const t={responsive:!0};return(a,c)=>(s.openBlock(),s.createBlock(s.unref(Lke),{chartData:a.data,options:a.options||t},null,8,["chartData","options"]))}}),Nke={class:"pga-display-barcodes"},Ake={key:0},Tke={class:"barcodes-container"},Eke=s.defineComponent({__name:"PgaDisplayBarcodes",props:{barcodes:{}},setup(e){const t=e,a=s.ref(!1),c=s.computed(()=>a.value?t.barcodes:t.barcodes.slice(0,2));return(n,r)=>(s.openBlock(),s.createElementBlock("div",Nke,[n.barcodes.length?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",Tke,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.value,(i,o)=>(s.openBlock(),s.createElementBlock("span",{class:"barcode",key:o},[s.createVNode(ge,{icon:"barcode"}),s.createTextVNode(" "+s.toDisplayString(i),1)]))),128))]),n.barcodes.length>2?(s.openBlock(),s.createBlock(oK,{key:0,modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=i=>a.value=i)},null,8,["modelValue"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock("span",Ake,"-"))]))}});const Dke=Q1(Eke,[["__scopeId","data-v-333a4131"]]),Pke={class:"pga-display-content"},Oke=s.defineComponent({__name:"PgaDisplayContent",props:{label:{}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",Pke,[s.createVNode(me,{class:"item__label",text:t.label},null,8,["text"]),s.renderSlot(t.$slots,"default",{},void 0,!0)]))}});const Ike=Q1(Oke,[["__scopeId","data-v-59f9da0e"]]),Bke={key:0},Rke=s.defineComponent({__name:"PgaDisplayDatetime",props:{datetime:{},format:{default:"short"},noIcon:{type:Boolean},withBackground:{type:Boolean}},setup(e){const t=e,a=s.computed(()=>t.datetime instanceof Date),c=s.computed(()=>{if(a.value)return x6(t.datetime,{format:t.format,withTime:!1})}),n=s.computed(()=>t.noIcon?void 0:"calendar-days"),r=s.computed(()=>a.value?x6(t.datetime,{justTime:!0}):"");return(i,o)=>{const l=s.resolveDirective("tooltip");return a.value?s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["pga-datetime",{"pga-datetime--with-background":i.withBackground}])},[s.createVNode(me,{text:c.value,icon:n.value,nowrap:""},null,8,["text","icon"])],2)),[[l,r.value]]):(s.openBlock(),s.createElementBlock("span",Bke,"-"))}}});const Fke=Q1(Rke,[["__scopeId","data-v-0c465868"]]),$ke={class:"pga-info-card"},qke={class:"info-card__icon-container"},jke={class:"info-card__content-container"},Uke={class:"info-card__content"},Wke=s.defineComponent({__name:"PgaDisplayInfo",props:{type:{default:"info"},info:{}},setup(e){s.useCssVars(o=>({"84042e68":i.value,"31b6fc9d":r.value,"4d085aee":n.value}));const t=e,a=s.computed(()=>t.type==="info"?"info":t.type==="success"?"circle-check":t.type==="error"?"circle-x":t.type==="warning"?"circle-alert":"info"),c=s.computed(()=>{if(t.type==="info")return"aqua";if(t.type==="success")return"success";if(t.type==="error")return"danger";if(t.type==="warning")return"warning"}),n=s.computed(()=>`var(--pga-color-${c.value})`),r=s.computed(()=>`var(--pga-color-${c.value}-01)`),i=s.computed(()=>`var(--pga-color-${c.value}-025)`);return(o,l)=>(s.openBlock(),s.createElementBlock("div",$ke,[s.createElementVNode("div",qke,[s.createVNode(ge,{class:"info-card__icon",icon:a.value},null,8,["icon"])]),s.createElementVNode("div",jke,[s.createElementVNode("div",Uke,[s.createVNode(me,{text:o.info},null,8,["text"])])])]))}});const Yke=Q1(Wke,[["__scopeId","data-v-2d43dfd3"]]),Gke={key:0,class:"pga-display-no-items"},Zke={key:1,class:"no-items__content"},Xke={key:0,class:"no-items__illustration"},Kke=s.createStaticVNode('<svg viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-c6e0b167><circle cx="50" cy="50" r="40" fill="var(--pga-color-primary)" opacity="0.05" data-v-c6e0b167></circle><path d="M25 35H40L45 42H75A5 5 0 0 1 80 47V70A5 5 0 0 1 75 75H25A5 5 0 0 1 20 70V40A5 5 0 0 1 25 35Z" stroke="var(--pga-color-second)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" opacity="0.4" data-v-c6e0b167></path><path d="M20 50L80 50" stroke="var(--pga-color-second)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" opacity="0.4" data-v-c6e0b167></path><circle cx="55" cy="55" r="14" fill="var(--pga-color-second-contrast)" stroke="currentColor" stroke-width="4" data-v-c6e0b167></circle><path d="M65 65L76 76" stroke="currentColor" stroke-width="5" stroke-linecap="round" data-v-c6e0b167></path></svg>',1),Qke=[Kke],Jke={class:"no-items__text"},exe={class:"no-items__title"},txe={class:"no-items__description"},axe=s.defineComponent({__name:"PgaDisplayNoItems",props:{items:{},label:{},noDisplayIcon:{type:Boolean},isLoading:{type:Boolean}},setup(e){const t=e,a=T2("pgaDisplay"),c=s.computed(()=>!(t.items&&t.items.length)),n=s.computed(()=>t.label?Ne(t.label):a("noItemsText")),r=s.computed(()=>a("noItemsDescriptionText"));return(i,o)=>c.value?(s.openBlock(),s.createElementBlock("div",Gke,[i.isLoading?(s.openBlock(),s.createBlock(Ja,{key:0})):(s.openBlock(),s.createElementBlock("div",Zke,[i.noDisplayIcon?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Xke,Qke)),s.createElementVNode("div",Jke,[s.createElementVNode("h3",exe,s.toDisplayString(n.value),1),s.createElementVNode("p",txe,s.toDisplayString(r.value),1)])]))])):s.createCommentVNode("",!0)}});const _M1=Q1(axe,[["__scopeId","data-v-c6e0b167"]]),cxe={key:0},nxe={key:0,class:"price__sign"},rxe=["textContent"],ixe=s.defineComponent({__name:"PgaDisplayPrice",props:{price:{},tooltipPrice:{},maxDecimals:{},prefix:{},suffix:{},size:{default:"m"},fontSize:{},color:{default:"first"},noSign:{type:Boolean},noBackground:{type:Boolean},withBackground:{type:Boolean}},setup(e){s.useCssVars(d=>({f457cbc6:f.value,"54a30d56":u.value}));const t=e,{display:a}=C4(),c=s.computed(()=>t.noSign?!1:a.price.withSign),n=s.computed(()=>t.noBackground?!1:t.withBackground?!0:a.price.withBackground),r=s.computed(()=>t.price!==null&&t.price!==void 0),i={maxDecimals:t.maxDecimals,prefix:t.prefix,suffix:t.suffix},o=s.computed(()=>{if(r.value)return typeof t.price=="string"?t.price:iG(t.price,i)}),l=s.computed(()=>t.tooltipPrice===void 0?"":typeof t.tooltipPrice=="string"?t.tooltipPrice:iG(t.tooltipPrice,{...i,prefix:i.prefix||"$"})),f=s.computed(()=>{if(t.fontSize)return t.fontSize;if(t.size==="s")return"0.9rem";if(t.size==="m")return"1rem";if(t.size==="l")return"1.2rem"}),u=s.computed(()=>ru(t.color)?`var(--pga-color-${t.color})`:t.color);return(d,h)=>{const p=s.resolveDirective("tooltip");return r.value?s.withDirectives((s.openBlock(),s.createElementBlock("span",{key:1,class:s.normalizeClass(["pga-price",{"pga-price--with-background":n.value}])},[c.value?(s.openBlock(),s.createElementBlock("span",nxe,"$")):s.createCommentVNode("",!0),s.createElementVNode("span",{class:"price__value",textContent:s.toDisplayString(o.value)},null,8,rxe)],2)),[[p,l.value]]):(s.openBlock(),s.createElementBlock("span",cxe,"-"))}}});const oxe=Q1(ixe,[["__scopeId","data-v-64af07ea"]]),sxe=s.defineComponent({__name:"PgaDisplayTime",props:{datetime:{}},setup(e){return(t,a)=>{const c=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createBlock(c,{icon:"clock",text:s.unref(Sc1)(t.datetime)},null,8,["text"])}}}),lxe=s.defineComponent({__name:"PgaForm",props:{withSubmitButton:{type:Boolean},submitBtnText:{},submitBtnIcon:{},isLoading:{type:Boolean},width:{default:"100%"}},emits:["submit"],setup(e,{emit:t}){s.useCssVars(n=>({"00e32ca6":n.width}));const a=t,c=T2("pgaForm");return(n,r)=>(s.openBlock(),s.createElementBlock("form",{class:"pga-form",onSubmit:r[1]||(r[1]=s.withModifiers(()=>{},["prevent"]))},[s.renderSlot(n.$slots,"default",{},void 0,!0),n.withSubmitButton||n.submitBtnText?(s.openBlock(),s.createBlock(k2,{key:0,class:"form__submit-btn",type:"submit",text:n.submitBtnText||s.unref(c)("submitBtn"),icon:n.submitBtnIcon||"save",variant:"filled",isLoading:n.isLoading,onClick:r[0]||(r[0]=i=>a("submit"))},null,8,["text","icon","isLoading"])):s.createCommentVNode("",!0)],32))}});const wM1=Q1(lxe,[["__scopeId","data-v-c6108693"]]),fxe=s.defineComponent({__name:"PgaFormRow",props:{breakRow:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-form-row",{"pga-form-row--break-row":t.breakRow}])},[s.renderSlot(t.$slots,"default")],2))}});const uxe=s.defineComponent({__name:"PgaFormSubtitle",props:{title:{}},setup(e){return(t,a)=>{const c=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createBlock(c,{class:"pga-form-subtitle",text:t.title},null,8,["text"])}}});const dxe=Q1(uxe,[["__scopeId","data-v-b4a5ce65"]]),hxe=s.defineComponent({__name:"PgaFormTitle",props:{title:{}},setup(e){return(t,a)=>{const c=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createBlock(c,{class:"pga-form-title",text:t.title},null,8,["text"])}}});const pxe=Q1(hxe,[["__scopeId","data-v-f760c219"]]),mxe={key:0,class:"input-group__header"},vxe=["for"],yxe={key:1,class:"header__required-label"},gxe={key:2,class:"header__optional-label"},Mxe={key:1,class:"input-group__description"},kxe=["innerHTML"],xxe={key:1,class:"description__right"},bxe={key:2,class:"input-group__errors"},zxe=["textContent"],Cxe=s.defineComponent({__name:"PgaInputGroup",props:{label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},fitContent:{type:Boolean},grow:{},inputId:{}},setup(e){s.useCssVars(l=>({"04e57a41":l.grow}));const t=e,a=T2("pgaForm"),c=s.computed(()=>Ne(t.label)),n=s.computed(()=>Ne(t.info)),r=s.computed(()=>Ne(t.description)),i=s.computed(()=>c.value||t.withLabelSpace),o=s.computed(()=>c.value||" ");return(l,f)=>{const u=s.resolveComponent("PgaIcon");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-input-group",{"pga-input-group--fit-content":l.fitContent,"pga-input-group--with-flex-grow":l.grow!==void 0}])},[i.value||n.value||l.withRequiredLabel||l.withOptionalLabel?(s.openBlock(),s.createElementBlock("div",mxe,[i.value?(s.openBlock(),s.createElementBlock("label",{key:0,for:l.inputId,class:"header__label"},s.toDisplayString(o.value),9,vxe)):s.createCommentVNode("",!0),s.createVNode(Iq,{info:n.value,size:"1rem"},null,8,["info"]),l.withRequiredLabel?(s.openBlock(),s.createElementBlock("span",yxe,s.toDisplayString(s.unref(a)("requiredLabel")),1)):s.createCommentVNode("",!0),l.withOptionalLabel?(s.openBlock(),s.createElementBlock("span",gxe,s.toDisplayString(s.unref(a)("optionalLabel")),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),s.renderSlot(l.$slots,"default",{},void 0,!0),r.value||l.$slots.descriptionRight?(s.openBlock(),s.createElementBlock("div",Mxe,[r.value?(s.openBlock(),s.createElementBlock("span",{key:0,class:"description__text",innerHTML:r.value},null,8,kxe)):s.createCommentVNode("",!0),l.$slots.descriptionRight?(s.openBlock(),s.createElementBlock("div",xxe,[s.renderSlot(l.$slots,"descriptionRight",{},void 0,!0)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),l.errors?(s.openBlock(),s.createElementBlock("div",bxe,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.errors,(d,h)=>(s.openBlock(),s.createElementBlock("div",{key:h,class:"errors__error"},[s.createVNode(u,{class:"error__icon",icon:"triangle-alert"}),s.createElementVNode("span",{class:"error__message",textContent:s.toDisplayString(d.$message)},null,8,zxe)]))),128))])):s.createCommentVNode("",!0)],2)}}});const M0=Q1(Cxe,[["__scopeId","data-v-21081909"]]);function Va1(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,c)}return a}function $f(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Va1(Object(a),!0).forEach(function(c){_xe(e,c,a[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Va1(Object(a)).forEach(function(c){Object.defineProperty(e,c,Object.getOwnPropertyDescriptor(a,c))})}return e}function _xe(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function q$(e){return typeof e=="function"}function WZ(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Kj(e){return q$(e.$validator)?$f({},e):{$validator:e}}function HM1(e){return typeof e=="object"?e.$valid:e}function LM1(e){return e.$validator||e}function wxe(e,t){if(!WZ(e))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!WZ(t)&&!q$(t))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const a=Kj(t);return a.$params=$f($f({},a.$params||{}),e),a}function Hxe(e,t){if(!q$(e)&&typeof s.unref(e)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);if(!WZ(t)&&!q$(t))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const a=Kj(t);return a.$message=e,a}function Lxe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const a=Kj(e);return $f($f({},a),{},{$async:!0,$watchTargets:t})}function Vxe(e){return{$validator(t){for(var a=arguments.length,c=new Array(a>1?a-1:0),n=1;n<a;n++)c[n-1]=arguments[n];return s.unref(t).reduce((r,i,o)=>{const l=Object.entries(i).reduce((f,u)=>{let[d,h]=u;const p=e[d]||{},v=Object.entries(p).reduce((m,y)=>{let[g,M]=y;const k=LM1(M).call(this,h,i,o,...c),b=HM1(k);if(m.$data[g]=k,m.$data.$invalid=!b||!!m.$data.$invalid,m.$data.$error=m.$data.$invalid,!b){let _=M.$message||"";const C=M.$params||{};typeof _=="function"&&(_=_({$pending:!1,$invalid:!b,$params:C,$model:h,$response:k})),m.$errors.push({$property:d,$message:_,$params:C,$response:k,$model:h,$pending:!1,$validator:g})}return{$valid:m.$valid&&b,$data:m.$data,$errors:m.$errors}},{$valid:!0,$data:{},$errors:[]});return f.$data[d]=v.$data,f.$errors[d]=v.$errors,{$valid:f.$valid&&v.$valid,$data:f.$data,$errors:f.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:r.$valid&&l.$valid,$data:r.$data.concat(l.$data),$errors:r.$errors.concat(l.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:t=>{let{$response:a}=t;return a?a.$errors.map(c=>Object.values(c).map(n=>n.map(r=>r.$message)).reduce((n,r)=>n.concat(r),[])):[]}}}const qu=e=>{if(e=s.unref(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let t in e)return!0;return!1}return!!String(e).length},w11=e=>(e=s.unref(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function s5(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return c=>(c=s.unref(c),!qu(c)||t.every(n=>(n.lastIndex=0,n.test(c))))}var Di=Object.freeze({__proto__:null,forEach:Vxe,len:w11,normalizeValidatorObject:Kj,regex:s5,req:qu,unwrap:s.unref,unwrapNormalizedValidator:LM1,unwrapValidatorResponse:HM1,withAsync:Lxe,withMessage:Hxe,withParams:wxe});s5(/^[a-zA-Z]*$/);s5(/^[a-zA-Z0-9]*$/);s5(/^\d*(\.\d+)?$/);const Sxe=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;s5(Sxe);function Nxe(e){return t=>!qu(t)||w11(t)<=s.unref(e)}function Axe(e){return{$validator:Nxe(e),$message:t=>{let{$params:a}=t;return`The maximum length allowed is ${a.max}`},$params:{max:e,type:"maxLength"}}}function Txe(e){return t=>!qu(t)||w11(t)>=s.unref(e)}function Exe(e){return{$validator:Txe(e),$message:t=>{let{$params:a}=t;return`This field should be at least ${a.min} characters long`},$params:{min:e,type:"minLength"}}}function Dxe(e){return typeof e=="string"&&(e=e.trim()),qu(e)}var Pxe={$validator:Dxe,$message:"Value is required",$params:{type:"required"}};const Oxe=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;s5(Oxe);var Ixe=s5(/(^[0-9]*$)|(^-[0-9]+$)/),Bxe={$validator:Ixe,$message:"Value is not an integer",$params:{type:"integer"}};s5(/^[-]?\d*(\.\d+)?$/);const ju=T2("validations"),YZ=Di.withMessage(()=>ju("requiredRuleError"),Pxe),Rxe=Di.withMessage(()=>ju("requiredRuleError"),Di.withParams({},e=>typeof e!="number"?!1:e>0)),GZ=e=>VM1("minLength",e),ZZ=e=>VM1("maxLength",e),Fxe=Di.withMessage(()=>ju("integerRuleError"),Bxe),$xe=e=>Qj("greaterEqual",e),qxe=e=>Qj("greaterThan",e),jxe=e=>Qj("lessEqual",e),Uxe=e=>Qj("lessThan",e);function VM1(e,t){const a={minLength:Exe,maxLength:Axe};return Di.withMessage(()=>ju(`${e}RuleError`,{length:t}),a[e](t))}function Qj(e,t){const a={lessEqual:c=>c<=t,greaterEqual:c=>c>=t,lessThan:c=>c<t,greaterThan:c=>c>t};return Di.withMessage(()=>ju(`${e}RuleError`,{number:t}),Di.withParams({},c=>typeof c!="number"?!0:a[e](c)))}const Wxe=s.defineComponent({__name:"PgaInputRightButton",props:{icon:{},withBackground:{type:Boolean}},setup(e){s.useCssVars(a=>({58067568:s.unref(t).input.height,"411a0288":s.unref(t).input.iconWidth,"337ec043":s.unref(t).input.borderRadius,"4967fa68":s.unref(t).input.backgroundColorFocus,"49846ecc":s.unref(t).input.backgroundColorHover}));const{form:t}=C4();return(a,c)=>(s.openBlock(),s.createBlock(k2,{class:s.normalizeClass(["pga-input-right-button",{"pga-input-right-button--with-background":a.withBackground}]),variant:"flat",icon:a.icon,tabindex:"-1"},null,8,["class","icon"]))}});const j$=Q1(Wxe,[["__scopeId","data-v-3e54e5a3"]]),Yxe={class:"pga-input-container"},Gxe={class:"input-content"},Zxe=["type","placeholder","autofocus","disabled"],kY="",Xxe=s.defineComponent({__name:"PgaInput",props:s.mergeModels({type:{default:"text"},integer:{type:Boolean},placeholder:{},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},autofocus:{type:Boolean},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["change","enter","valueCleared"],["update:modelValue"]),setup(e,{expose:t,emit:a}){s.useCssVars(b=>({"39f5837b":s.unref(i).input.height,b65cd786:s.unref(i).input.padding,"17e20c88":s.unref(i).input.paddingWithIcon,fc122e7a:s.unref(i).input.borderColor,"5494419c":s.unref(i).input.borderRadius,"9af739fe":s.unref(i).input.backgroundColor,67100389:s.unref(i).input.colorFocus,"0db6709d":s.unref(i).input.backgroundColorDisabled,"147579f8":s.unref(i).input.placeholderColor}));const c=s.useModel(e,"modelValue"),n=e,r=a;t({focus:p});const{form:i}=C4(),o=`pga-input-${Math.random().toString(36).slice(2,11)}`,l=s.ref(),f=s.ref(kY),u=s.ref(!1),d=s.computed(()=>n.type==="password"),h=s.computed(()=>d.value?!1:!n.disabled&&f.value);s.watch(c,b=>x(b),{immediate:!0});function p(){var b;(b=l.value)==null||b.focus()}function v(){n.type==="number"&&!f.value&&(f.value=kY)}function m(){n.type==="number"&&!f.value&&(f.value=M())}function y(){k(kY),r("valueCleared")}function g(b){return b===""?null:n.type==="number"&&n.integer&&typeof b=="number"?Math.round(b):b}function M(b){const _=typeof b>"u"?c.value:b;return _===null?"":_}function x(b){const _=g(b);return c.value=_,f.value=M(_),_}function k(b){const _=x(b);r("change",_)}return(b,_)=>(s.openBlock(),s.createBlock(M0,{label:b.label,withRequiredLabel:b.withRequiredLabel,withOptionalLabel:b.withOptionalLabel,withLabelSpace:b.withLabelSpace,info:b.info,description:b.description,errors:b.errors,grow:b.grow,inputId:o},{default:s.withCtx(()=>[s.createElementVNode("div",Yxe,[s.createElementVNode("div",Gxe,[s.withDirectives(s.createElementVNode("input",{id:o,ref_key:"inputRef",ref:l,"onUpdate:modelValue":_[0]||(_[0]=C=>f.value=C),class:s.normalizeClass(["input",{"input--disabled":b.disabled}]),type:u.value?"text":b.type,placeholder:s.unref(Ne)(b.placeholder),autofocus:b.autofocus,disabled:b.disabled,onInput:_[1]||(_[1]=C=>k(f.value)),onKeyup:_[2]||(_[2]=s.withKeys(C=>r("enter"),["enter"])),onFocus:_[3]||(_[3]=C=>v()),onBlur:_[4]||(_[4]=C=>m())},null,42,Zxe),[[s.vModelDynamic,f.value]]),d.value?(s.openBlock(),s.createBlock(j$,{key:0,icon:u.value?"eye-off":"eye",withBackground:"",onClick:_[5]||(_[5]=C=>u.value=!u.value)},null,8,["icon"])):h.value?(s.openBlock(),s.createBlock(j$,{key:1,icon:"x",onClick:_[6]||(_[6]=C=>y())})):s.createCommentVNode("",!0)]),s.renderSlot(b.$slots,"labelRight",{},void 0,!0)])]),_:3},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const U$=Q1(Xxe,[["__scopeId","data-v-b302973f"]]),Kxe={class:"pga-login-form-container"},Qxe={class:"user-icon-container"},Jxe=s.defineComponent({__name:"PgaLoginForm",setup(e){class t{constructor(){S1(this,"username","");S1(this,"password","")}}const a=U3.getConfig(),c=T2("pgaForm"),n=Aa.useRoute(),r={username:{requiredRule:YZ,minLengthRule:GZ(8),maxLengthRule:ZZ(a.stringLengths.short)},password:{requiredRule:YZ,minLengthRule:GZ(8),maxLengthRule:ZZ(a.stringLengths.short)}},i=s.ref(new t),o=r71(r,i),l=s.ref(!1);async function f(){if(!await o.value.$validate())return;const u={isLoading:l,redirectToName:n.query.redirectTo};wc1(I0().routeType,i.value,u)}return(u,d)=>(s.openBlock(),s.createElementBlock("div",Kxe,[s.createVNode(wM1,{class:"login-form",submitBtnText:s.unref(c)("loginBtn"),submitBtnIcon:"log-in",isLoading:l.value,onSubmit:d[2]||(d[2]=h=>f())},{default:s.withCtx(()=>[s.createElementVNode("div",Qxe,[s.createVNode(ge,{class:"user-icon",icon:"circle-user"})]),s.createVNode(U$,{modelValue:i.value.username,"onUpdate:modelValue":d[0]||(d[0]=h=>i.value.username=h),label:s.unref(c)("usernameLabel"),errors:s.unref(o).username.$errors,disabled:l.value},null,8,["modelValue","label","errors","disabled"]),s.createVNode(U$,{modelValue:i.value.password,"onUpdate:modelValue":d[1]||(d[1]=h=>i.value.password=h),type:"password",label:s.unref(c)("passwordLabel"),errors:s.unref(o).password.$errors,disabled:l.value},null,8,["modelValue","label","errors","disabled"])]),_:1},8,["submitBtnText","isLoading"])]))}});const ebe=Q1(Jxe,[["__scopeId","data-v-725b8d32"]]),tbe={class:"pga-checkbox"},abe=["textContent"],cbe=s.defineComponent({__name:"PgaCheckbox",props:s.mergeModels({label:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=s.computed(()=>Ne(a.label));return(n,r)=>(s.openBlock(),s.createElementBlock("label",tbe,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":r[0]||(r[0]=i=>t.value=i),type:"checkbox"},null,512),[[s.vModelCheckbox,t.value]]),n.label?(s.openBlock(),s.createElementBlock("span",{key:0,textContent:s.toDisplayString(c.value)},null,8,abe)):s.createCommentVNode("",!0)]))}});const SM1=Q1(cbe,[["__scopeId","data-v-1b277279"]]),nbe={class:"pga-color-selector"},rbe=["onClick"],ibe=s.defineComponent({__name:"PgaColorSelector",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(n=>({"1f316326":s.unref(a).input.borderColor,"406a9da2":s.unref(a).input.borderRadius}));const t=s.useModel(e,"modelValue"),{form:a}=C4();function c(n){var r;return((r=t.value)==null?void 0:r.toLowerCase())===n.toLowerCase()}return(n,r)=>(s.openBlock(),s.createBlock(M0,{label:n.label,withRequiredLabel:n.withRequiredLabel,withOptionalLabel:n.withOptionalLabel,withLabelSpace:n.withLabelSpace,info:n.info,description:n.description,errors:n.errors,grow:n.grow},{default:s.withCtx(()=>[s.createElementVNode("div",nbe,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(LX),(i,o)=>(s.openBlock(),s.createElementBlock("div",{key:o,class:s.normalizeClass(["color-selector__item",{"color-selector__item--selected":c(i),"color-selector__item--disabled":n.disabled}]),style:s.normalizeStyle({"background-color":i}),onClick:l=>!n.disabled&&(t.value=i)},[c(i)?(s.openBlock(),s.createBlock(ge,{key:0,icon:"check",color:"#ffffff",size:"0.85rem"})):s.createCommentVNode("",!0)],14,rbe))),128))])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const obe=Q1(ibe,[["__scopeId","data-v-ff3a72fd"]]);function d2(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function ie(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function e6(e,t){const a=d2(e);return isNaN(t)?ie(e,NaN):(t&&a.setDate(a.getDate()+t),a)}function M6(e,t){const a=d2(e);if(isNaN(t))return ie(e,NaN);if(!t)return a;const c=a.getDate(),n=ie(e,a.getTime());n.setMonth(a.getMonth()+t+1,0);const r=n.getDate();return c>=r?n:(a.setFullYear(n.getFullYear(),n.getMonth(),c),a)}function NM1(e,t){const{years:a=0,months:c=0,weeks:n=0,days:r=0,hours:i=0,minutes:o=0,seconds:l=0}=t,f=d2(e),u=c||a?M6(f,c+a*12):f,d=r||n?e6(u,r+n*7):u,h=o+i*60,v=(l+h*60)*1e3;return ie(e,d.getTime()+v)}function sbe(e,t){const a=+d2(e);return ie(e,a+t)}const AM1=6048e5,lbe=864e5,fbe=6e4,TM1=36e5,ube=1e3;function dbe(e,t){return sbe(e,t*TM1)}let hbe={};function co(){return hbe}function S6(e,t){var o,l,f,u;const a=co(),c=(t==null?void 0:t.weekStartsOn)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??a.weekStartsOn??((u=(f=a.locale)==null?void 0:f.options)==null?void 0:u.weekStartsOn)??0,n=d2(e),r=n.getDay(),i=(r<c?7:0)+r-c;return n.setDate(n.getDate()-i),n.setHours(0,0,0,0),n}function Ls(e){return S6(e,{weekStartsOn:1})}function EM1(e){const t=d2(e),a=t.getFullYear(),c=ie(e,0);c.setFullYear(a+1,0,4),c.setHours(0,0,0,0);const n=Ls(c),r=ie(e,0);r.setFullYear(a,0,4),r.setHours(0,0,0,0);const i=Ls(r);return t.getTime()>=n.getTime()?a+1:t.getTime()>=i.getTime()?a:a-1}function Sa1(e){const t=d2(e);return t.setHours(0,0,0,0),t}function W$(e){const t=d2(e),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),+e-+a}function DM1(e,t){const a=Sa1(e),c=Sa1(t),n=+a-W$(a),r=+c-W$(c);return Math.round((n-r)/lbe)}function pbe(e){const t=EM1(e),a=ie(e,0);return a.setFullYear(t,0,4),a.setHours(0,0,0,0),Ls(a)}function mbe(e,t){const a=t*3;return M6(e,a)}function H11(e,t){return M6(e,t*12)}function PM1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Dl(e){if(!PM1(e)&&typeof e!="number")return!1;const t=d2(e);return!isNaN(Number(t))}function Na1(e){const t=d2(e);return Math.trunc(t.getMonth()/3)+1}function OM1(e,t){const a=d2(e.start),c=d2(e.end);let n=+a>+c;const r=n?+a:+c,i=n?c:a;i.setHours(0,0,0,0);let o=(t==null?void 0:t.step)??1;if(!o)return[];o<0&&(o=-o,n=!n);const l=[];for(;+i<=r;)l.push(d2(i)),i.setDate(i.getDate()+o),i.setHours(0,0,0,0);return n?l.reverse():l}function ci(e){const t=d2(e),a=t.getMonth(),c=a-a%3;return t.setMonth(c,1),t.setHours(0,0,0,0),t}function vbe(e,t){const a=d2(e.start),c=d2(e.end);let n=+a>+c;const r=n?+ci(a):+ci(c);let i=ci(n?c:a),o=(t==null?void 0:t.step)??1;if(!o)return[];o<0&&(o=-o,n=!n);const l=[];for(;+i<=r;)l.push(d2(i)),i=mbe(i,o);return n?l.reverse():l}function IM1(e){const t=d2(e),a=t.getFullYear();return t.setFullYear(a+1,0,0),t.setHours(23,59,59,999),t}function L11(e){const t=d2(e),a=ie(e,0);return a.setFullYear(t.getFullYear(),0,1),a.setHours(0,0,0,0),a}function BM1(e,t){var o,l,f,u;const a=co(),c=(t==null?void 0:t.weekStartsOn)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??a.weekStartsOn??((u=(f=a.locale)==null?void 0:f.options)==null?void 0:u.weekStartsOn)??0,n=d2(e),r=n.getDay(),i=(r<c?-7:0)+6-(r-c);return n.setDate(n.getDate()+i),n.setHours(23,59,59,999),n}function Aa1(e){const t=d2(e),a=t.getMonth(),c=a-a%3+3;return t.setMonth(c,0),t.setHours(23,59,59,999),t}const ybe={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"}},gbe=(e,t,a)=>{let c;const n=ybe[e];return typeof n=="string"?c=n:t===1?c=n.one:c=n.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+c:c+" ago":c};function xY(e){return(t={})=>{const a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}const Mbe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},kbe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},xbe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},bbe={date:xY({formats:Mbe,defaultWidth:"full"}),time:xY({formats:kbe,defaultWidth:"full"}),dateTime:xY({formats:xbe,defaultWidth:"full"})},zbe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Cbe=(e,t,a,c)=>zbe[e];function $9(e){return(t,a)=>{const c=a!=null&&a.context?String(a.context):"standalone";let n;if(c==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,o=a!=null&&a.width?String(a.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{const i=e.defaultWidth,o=a!=null&&a.width?String(a.width):e.defaultWidth;n=e.values[o]||e.values[i]}const r=e.argumentCallback?e.argumentCallback(t):t;return n[r]}}const _be={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},wbe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Hbe={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"]},Lbe={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"]},Vbe={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"}},Sbe={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"}},Nbe=(e,t)=>{const a=Number(e),c=a%100;if(c>20||c<10)switch(c%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Abe={ordinalNumber:Nbe,era:$9({values:_be,defaultWidth:"wide"}),quarter:$9({values:wbe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$9({values:Hbe,defaultWidth:"wide"}),day:$9({values:Lbe,defaultWidth:"wide"}),dayPeriod:$9({values:Vbe,defaultWidth:"wide",formattingValues:Sbe,defaultFormattingWidth:"wide"})};function q9(e){return(t,a={})=>{const c=a.width,n=c&&e.matchPatterns[c]||e.matchPatterns[e.defaultMatchWidth],r=t.match(n);if(!r)return null;const i=r[0],o=c&&e.parsePatterns[c]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?Ebe(o,d=>d.test(i)):Tbe(o,d=>d.test(i));let f;f=e.valueCallback?e.valueCallback(l):l,f=a.valueCallback?a.valueCallback(f):f;const u=t.slice(i.length);return{value:f,rest:u}}}function Tbe(e,t){for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}function Ebe(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}function Dbe(e){return(t,a={})=>{const c=t.match(e.matchPattern);if(!c)return null;const n=c[0],r=t.match(e.parsePattern);if(!r)return null;let i=e.valueCallback?e.valueCallback(r[0]):r[0];i=a.valueCallback?a.valueCallback(i):i;const o=t.slice(n.length);return{value:i,rest:o}}}const Pbe=/^(\d+)(th|st|nd|rd)?/i,Obe=/\d+/i,Ibe={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},Bbe={any:[/^b/i,/^(a|c)/i]},Rbe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Fbe={any:[/1/i,/2/i,/3/i,/4/i]},$be={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},qbe={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]},jbe={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},Ube={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]},Wbe={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},Ybe={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}},Gbe={ordinalNumber:Dbe({matchPattern:Pbe,parsePattern:Obe,valueCallback:e=>parseInt(e,10)}),era:q9({matchPatterns:Ibe,defaultMatchWidth:"wide",parsePatterns:Bbe,defaultParseWidth:"any"}),quarter:q9({matchPatterns:Rbe,defaultMatchWidth:"wide",parsePatterns:Fbe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:q9({matchPatterns:$be,defaultMatchWidth:"wide",parsePatterns:qbe,defaultParseWidth:"any"}),day:q9({matchPatterns:jbe,defaultMatchWidth:"wide",parsePatterns:Ube,defaultParseWidth:"any"}),dayPeriod:q9({matchPatterns:Wbe,defaultMatchWidth:"any",parsePatterns:Ybe,defaultParseWidth:"any"})},RM1={code:"en-US",formatDistance:gbe,formatLong:bbe,formatRelative:Cbe,localize:Abe,match:Gbe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Zbe(e){const t=d2(e);return DM1(t,L11(t))+1}function V11(e){const t=d2(e),a=+Ls(t)-+pbe(t);return Math.round(a/AM1)+1}function S11(e,t){var u,d,h,p;const a=d2(e),c=a.getFullYear(),n=co(),r=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((p=(h=n.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,i=ie(e,0);i.setFullYear(c+1,0,r),i.setHours(0,0,0,0);const o=S6(i,t),l=ie(e,0);l.setFullYear(c,0,r),l.setHours(0,0,0,0);const f=S6(l,t);return a.getTime()>=o.getTime()?c+1:a.getTime()>=f.getTime()?c:c-1}function Xbe(e,t){var o,l,f,u;const a=co(),c=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??a.firstWeekContainsDate??((u=(f=a.locale)==null?void 0:f.options)==null?void 0:u.firstWeekContainsDate)??1,n=S11(e,t),r=ie(e,0);return r.setFullYear(n,0,c),r.setHours(0,0,0,0),S6(r,t)}function N11(e,t){const a=d2(e),c=+S6(a,t)-+Xbe(a,t);return Math.round(c/AM1)+1}function ue(e,t){const a=e<0?"-":"",c=Math.abs(e).toString().padStart(t,"0");return a+c}const U8={y(e,t){const a=e.getFullYear(),c=a>0?a:1-a;return ue(t==="yy"?c%100:c,t.length)},M(e,t){const a=e.getMonth();return t==="M"?String(a+1):ue(a+1,2)},d(e,t){return ue(e.getDate(),t.length)},a(e,t){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(e,t){return ue(e.getHours()%12||12,t.length)},H(e,t){return ue(e.getHours(),t.length)},m(e,t){return ue(e.getMinutes(),t.length)},s(e,t){return ue(e.getSeconds(),t.length)},S(e,t){const a=t.length,c=e.getMilliseconds(),n=Math.trunc(c*Math.pow(10,a-3));return ue(n,t.length)}},bo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ta1={G:function(e,t,a){const c=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(c,{width:"abbreviated"});case"GGGGG":return a.era(c,{width:"narrow"});case"GGGG":default:return a.era(c,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){const c=e.getFullYear(),n=c>0?c:1-c;return a.ordinalNumber(n,{unit:"year"})}return U8.y(e,t)},Y:function(e,t,a,c){const n=S11(e,c),r=n>0?n:1-n;if(t==="YY"){const i=r%100;return ue(i,2)}return t==="Yo"?a.ordinalNumber(r,{unit:"year"}):ue(r,t.length)},R:function(e,t){const a=EM1(e);return ue(a,t.length)},u:function(e,t){const a=e.getFullYear();return ue(a,t.length)},Q:function(e,t,a){const c=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(c);case"QQ":return ue(c,2);case"Qo":return a.ordinalNumber(c,{unit:"quarter"});case"QQQ":return a.quarter(c,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(c,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(c,{width:"wide",context:"formatting"})}},q:function(e,t,a){const c=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(c);case"qq":return ue(c,2);case"qo":return a.ordinalNumber(c,{unit:"quarter"});case"qqq":return a.quarter(c,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(c,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(c,{width:"wide",context:"standalone"})}},M:function(e,t,a){const c=e.getMonth();switch(t){case"M":case"MM":return U8.M(e,t);case"Mo":return a.ordinalNumber(c+1,{unit:"month"});case"MMM":return a.month(c,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(c,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(c,{width:"wide",context:"formatting"})}},L:function(e,t,a){const c=e.getMonth();switch(t){case"L":return String(c+1);case"LL":return ue(c+1,2);case"Lo":return a.ordinalNumber(c+1,{unit:"month"});case"LLL":return a.month(c,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(c,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(c,{width:"wide",context:"standalone"})}},w:function(e,t,a,c){const n=N11(e,c);return t==="wo"?a.ordinalNumber(n,{unit:"week"}):ue(n,t.length)},I:function(e,t,a){const c=V11(e);return t==="Io"?a.ordinalNumber(c,{unit:"week"}):ue(c,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getDate(),{unit:"date"}):U8.d(e,t)},D:function(e,t,a){const c=Zbe(e);return t==="Do"?a.ordinalNumber(c,{unit:"dayOfYear"}):ue(c,t.length)},E:function(e,t,a){const c=e.getDay();switch(t){case"E":case"EE":case"EEE":return a.day(c,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(c,{width:"short",context:"formatting"});case"EEEE":default:return a.day(c,{width:"wide",context:"formatting"})}},e:function(e,t,a,c){const n=e.getDay(),r=(n-c.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return ue(r,2);case"eo":return a.ordinalNumber(r,{unit:"day"});case"eee":return a.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(n,{width:"short",context:"formatting"});case"eeee":default:return a.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,a,c){const n=e.getDay(),r=(n-c.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return ue(r,t.length);case"co":return a.ordinalNumber(r,{unit:"day"});case"ccc":return a.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(n,{width:"narrow",context:"standalone"});case"cccccc":return a.day(n,{width:"short",context:"standalone"});case"cccc":default:return a.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,a){const c=e.getDay(),n=c===0?7:c;switch(t){case"i":return String(n);case"ii":return ue(n,t.length);case"io":return a.ordinalNumber(n,{unit:"day"});case"iii":return a.day(c,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(c,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(c,{width:"short",context:"formatting"});case"iiii":default:return a.day(c,{width:"wide",context:"formatting"})}},a:function(e,t,a){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,a){const c=e.getHours();let n;switch(c===12?n=bo.noon:c===0?n=bo.midnight:n=c/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,a){const c=e.getHours();let n;switch(c>=17?n=bo.evening:c>=12?n=bo.afternoon:c>=4?n=bo.morning:n=bo.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){let c=e.getHours()%12;return c===0&&(c=12),a.ordinalNumber(c,{unit:"hour"})}return U8.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getHours(),{unit:"hour"}):U8.H(e,t)},K:function(e,t,a){const c=e.getHours()%12;return t==="Ko"?a.ordinalNumber(c,{unit:"hour"}):ue(c,t.length)},k:function(e,t,a){let c=e.getHours();return c===0&&(c=24),t==="ko"?a.ordinalNumber(c,{unit:"hour"}):ue(c,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getMinutes(),{unit:"minute"}):U8.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getSeconds(),{unit:"second"}):U8.s(e,t)},S:function(e,t){return U8.S(e,t)},X:function(e,t,a){const c=e.getTimezoneOffset();if(c===0)return"Z";switch(t){case"X":return Da1(c);case"XXXX":case"XX":return W7(c);case"XXXXX":case"XXX":default:return W7(c,":")}},x:function(e,t,a){const c=e.getTimezoneOffset();switch(t){case"x":return Da1(c);case"xxxx":case"xx":return W7(c);case"xxxxx":case"xxx":default:return W7(c,":")}},O:function(e,t,a){const c=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ea1(c,":");case"OOOO":default:return"GMT"+W7(c,":")}},z:function(e,t,a){const c=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ea1(c,":");case"zzzz":default:return"GMT"+W7(c,":")}},t:function(e,t,a){const c=Math.trunc(e.getTime()/1e3);return ue(c,t.length)},T:function(e,t,a){const c=e.getTime();return ue(c,t.length)}};function Ea1(e,t=""){const a=e>0?"-":"+",c=Math.abs(e),n=Math.trunc(c/60),r=c%60;return r===0?a+String(n):a+String(n)+t+ue(r,2)}function Da1(e,t){return e%60===0?(e>0?"-":"+")+ue(Math.abs(e)/60,2):W7(e,t)}function W7(e,t=""){const a=e>0?"-":"+",c=Math.abs(e),n=ue(Math.trunc(c/60),2),r=ue(c%60,2);return a+n+t+r}const Pa1=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},FM1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Kbe=(e,t)=>{const a=e.match(/(P+)(p+)?/)||[],c=a[1],n=a[2];if(!n)return Pa1(e,t);let r;switch(c){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;case"PPPP":default:r=t.dateTime({width:"full"});break}return r.replace("{{date}}",Pa1(c,t)).replace("{{time}}",FM1(n,t))},XZ={p:FM1,P:Kbe},Qbe=/^D+$/,Jbe=/^Y+$/,eze=["D","DD","YY","YYYY"];function $M1(e){return Qbe.test(e)}function qM1(e){return Jbe.test(e)}function KZ(e,t,a){const c=tze(e,t,a);if(console.warn(c),eze.includes(e))throw new RangeError(c)}function tze(e,t,a){const c=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${c} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const aze=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cze=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nze=/^'([^]*?)'?$/,rze=/''/g,ize=/[a-zA-Z]/;function xt(e,t,a){var u,d,h,p,v,m,y,g;const c=co(),n=(a==null?void 0:a.locale)??c.locale??RM1,r=(a==null?void 0:a.firstWeekContainsDate)??((d=(u=a==null?void 0:a.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??c.firstWeekContainsDate??((p=(h=c.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,i=(a==null?void 0:a.weekStartsOn)??((m=(v=a==null?void 0:a.locale)==null?void 0:v.options)==null?void 0:m.weekStartsOn)??c.weekStartsOn??((g=(y=c.locale)==null?void 0:y.options)==null?void 0:g.weekStartsOn)??0,o=d2(e);if(!Dl(o))throw new RangeError("Invalid time value");let l=t.match(cze).map(M=>{const x=M[0];if(x==="p"||x==="P"){const k=XZ[x];return k(M,n.formatLong)}return M}).join("").match(aze).map(M=>{if(M==="''")return{isToken:!1,value:"'"};const x=M[0];if(x==="'")return{isToken:!1,value:oze(M)};if(Ta1[x])return{isToken:!0,value:M};if(x.match(ize))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:M}});n.localize.preprocessor&&(l=n.localize.preprocessor(o,l));const f={firstWeekContainsDate:r,weekStartsOn:i,locale:n};return l.map(M=>{if(!M.isToken)return M.value;const x=M.value;(!(a!=null&&a.useAdditionalWeekYearTokens)&&qM1(x)||!(a!=null&&a.useAdditionalDayOfYearTokens)&&$M1(x))&&KZ(x,t,String(e));const k=Ta1[x[0]];return k(o,x,n.localize,f)}).join("")}function oze(e){const t=e.match(nze);return t?t[1].replace(rze,"'"):e}function sze(e){return d2(e).getDay()}function lze(e){const t=d2(e),a=t.getFullYear(),c=t.getMonth(),n=ie(e,0);return n.setFullYear(a,c+1,0),n.setHours(0,0,0,0),n.getDate()}function fze(){return Object.assign({},co())}function _8(e){return d2(e).getHours()}function uze(e){let a=d2(e).getDay();return a===0&&(a=7),a}function Ya(e){return d2(e).getMinutes()}function P2(e){return d2(e).getMonth()}function Vs(e){return d2(e).getSeconds()}function L2(e){return d2(e).getFullYear()}function Ss(e,t){const a=d2(e),c=d2(t);return a.getTime()>c.getTime()}function qf(e,t){const a=d2(e),c=d2(t);return+a<+c}function Io(e,t){const a=d2(e),c=d2(t);return+a==+c}function dze(e,t){const a=t instanceof Date?ie(t,0):new t(0);return a.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),a.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),a}const hze=10;class jM1{constructor(){S1(this,"subPriority",0)}validate(t,a){return!0}}class pze extends jM1{constructor(t,a,c,n,r){super(),this.value=t,this.validateValue=a,this.setValue=c,this.priority=n,r&&(this.subPriority=r)}validate(t,a){return this.validateValue(t,this.value,a)}set(t,a,c){return this.setValue(t,a,this.value,c)}}class mze extends jM1{constructor(){super(...arguments);S1(this,"priority",hze);S1(this,"subPriority",-1)}set(a,c){return c.timestampIsSet?a:ie(a,dze(a,Date))}}class se{run(t,a,c,n){const r=this.parse(t,a,c,n);return r?{setter:new pze(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(t,a,c){return!0}}class vze extends se{constructor(){super(...arguments);S1(this,"priority",140);S1(this,"incompatibleTokens",["R","u","t","T"])}parse(a,c,n){switch(c){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})||n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"})}}set(a,c,n){return c.era=n,a.setFullYear(n,0,1),a.setHours(0,0,0,0),a}}const H3={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}/},rt={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 L3(e,t){return e&&{value:t(e.value),rest:e.rest}}function Je(e,t){const a=t.match(e);return a?{value:parseInt(a[0],10),rest:t.slice(a[0].length)}:null}function it(e,t){const a=t.match(e);if(!a)return null;if(a[0]==="Z")return{value:0,rest:t.slice(1)};const c=a[1]==="+"?1:-1,n=a[2]?parseInt(a[2],10):0,r=a[3]?parseInt(a[3],10):0,i=a[5]?parseInt(a[5],10):0;return{value:c*(n*TM1+r*fbe+i*ube),rest:t.slice(a[0].length)}}function UM1(e){return Je(H3.anyDigitsSigned,e)}function u3(e,t){switch(e){case 1:return Je(H3.singleDigit,t);case 2:return Je(H3.twoDigits,t);case 3:return Je(H3.threeDigits,t);case 4:return Je(H3.fourDigits,t);default:return Je(new RegExp("^\\d{1,"+e+"}"),t)}}function Y$(e,t){switch(e){case 1:return Je(H3.singleDigitSigned,t);case 2:return Je(H3.twoDigitsSigned,t);case 3:return Je(H3.threeDigitsSigned,t);case 4:return Je(H3.fourDigitsSigned,t);default:return Je(new RegExp("^-?\\d{1,"+e+"}"),t)}}function A11(e){switch(e){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 WM1(e,t){const a=t>0,c=a?t:1-t;let n;if(c<=50)n=e||100;else{const r=c+50,i=Math.trunc(r/100)*100,o=e>=r%100;n=e+i-(o?100:0)}return a?n:1-n}function YM1(e){return e%400===0||e%4===0&&e%100!==0}class yze extends se{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(a,c,n){const r=i=>({year:i,isTwoDigitYear:c==="yy"});switch(c){case"y":return L3(u3(4,a),r);case"yo":return L3(n.ordinalNumber(a,{unit:"year"}),r);default:return L3(u3(c.length,a),r)}}validate(a,c){return c.isTwoDigitYear||c.year>0}set(a,c,n){const r=a.getFullYear();if(n.isTwoDigitYear){const o=WM1(n.year,r);return a.setFullYear(o,0,1),a.setHours(0,0,0,0),a}const i=!("era"in c)||c.era===1?n.year:1-n.year;return a.setFullYear(i,0,1),a.setHours(0,0,0,0),a}}class gze extends se{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(a,c,n){const r=i=>({year:i,isTwoDigitYear:c==="YY"});switch(c){case"Y":return L3(u3(4,a),r);case"Yo":return L3(n.ordinalNumber(a,{unit:"year"}),r);default:return L3(u3(c.length,a),r)}}validate(a,c){return c.isTwoDigitYear||c.year>0}set(a,c,n,r){const i=S11(a,r);if(n.isTwoDigitYear){const l=WM1(n.year,i);return a.setFullYear(l,0,r.firstWeekContainsDate),a.setHours(0,0,0,0),S6(a,r)}const o=!("era"in c)||c.era===1?n.year:1-n.year;return a.setFullYear(o,0,r.firstWeekContainsDate),a.setHours(0,0,0,0),S6(a,r)}}class Mze extends se{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(a,c){return Y$(c==="R"?4:c.length,a)}set(a,c,n){const r=ie(a,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ls(r)}}class kze extends se{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(a,c){return Y$(c==="u"?4:c.length,a)}set(a,c,n){return a.setFullYear(n,0,1),a.setHours(0,0,0,0),a}}class xze extends se{constructor(){super(...arguments);S1(this,"priority",120);S1(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"Q":case"QQ":return u3(c.length,a);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})||n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=1&&c<=4}set(a,c,n){return a.setMonth((n-1)*3,1),a.setHours(0,0,0,0),a}}class bze extends se{constructor(){super(...arguments);S1(this,"priority",120);S1(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"q":case"qq":return u3(c.length,a);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})||n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"})}}validate(a,c){return c>=1&&c<=4}set(a,c,n){return a.setMonth((n-1)*3,1),a.setHours(0,0,0,0),a}}class zze extends se{constructor(){super(...arguments);S1(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);S1(this,"priority",110)}parse(a,c,n){const r=i=>i-1;switch(c){case"M":return L3(Je(H3.month,a),r);case"MM":return L3(u3(2,a),r);case"Mo":return L3(n.ordinalNumber(a,{unit:"month"}),r);case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})||n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=0&&c<=11}set(a,c,n){return a.setMonth(n,1),a.setHours(0,0,0,0),a}}class Cze extends se{constructor(){super(...arguments);S1(this,"priority",110);S1(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(a,c,n){const r=i=>i-1;switch(c){case"L":return L3(Je(H3.month,a),r);case"LL":return L3(u3(2,a),r);case"Lo":return L3(n.ordinalNumber(a,{unit:"month"}),r);case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})||n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"})}}validate(a,c){return c>=0&&c<=11}set(a,c,n){return a.setMonth(n,1),a.setHours(0,0,0,0),a}}function _ze(e,t,a){const c=d2(e),n=N11(c,a)-t;return c.setDate(c.getDate()-n*7),c}class wze extends se{constructor(){super(...arguments);S1(this,"priority",100);S1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(a,c,n){switch(c){case"w":return Je(H3.week,a);case"wo":return n.ordinalNumber(a,{unit:"week"});default:return u3(c.length,a)}}validate(a,c){return c>=1&&c<=53}set(a,c,n,r){return S6(_ze(a,n,r),r)}}function Hze(e,t){const a=d2(e),c=V11(a)-t;return a.setDate(a.getDate()-c*7),a}class Lze extends se{constructor(){super(...arguments);S1(this,"priority",100);S1(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(a,c,n){switch(c){case"I":return Je(H3.week,a);case"Io":return n.ordinalNumber(a,{unit:"week"});default:return u3(c.length,a)}}validate(a,c){return c>=1&&c<=53}set(a,c,n){return Ls(Hze(a,n))}}const Vze=[31,28,31,30,31,30,31,31,30,31,30,31],Sze=[31,29,31,30,31,30,31,31,30,31,30,31];class Nze extends se{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"subPriority",1);S1(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"d":return Je(H3.date,a);case"do":return n.ordinalNumber(a,{unit:"date"});default:return u3(c.length,a)}}validate(a,c){const n=a.getFullYear(),r=YM1(n),i=a.getMonth();return r?c>=1&&c<=Sze[i]:c>=1&&c<=Vze[i]}set(a,c,n){return a.setDate(n),a.setHours(0,0,0,0),a}}class Aze extends se{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"subpriority",1);S1(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(a,c,n){switch(c){case"D":case"DD":return Je(H3.dayOfYear,a);case"Do":return n.ordinalNumber(a,{unit:"date"});default:return u3(c.length,a)}}validate(a,c){const n=a.getFullYear();return YM1(n)?c>=1&&c<=366:c>=1&&c<=365}set(a,c,n){return a.setMonth(0,n),a.setHours(0,0,0,0),a}}function T11(e,t,a){var d,h,p,v;const c=co(),n=(a==null?void 0:a.weekStartsOn)??((h=(d=a==null?void 0:a.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??c.weekStartsOn??((v=(p=c.locale)==null?void 0:p.options)==null?void 0:v.weekStartsOn)??0,r=d2(e),i=r.getDay(),l=(t%7+7)%7,f=7-n,u=t<0||t>6?t-(i+f)%7:(l+f)%7-(i+f)%7;return e6(r,u)}class Tze extends se{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=0&&c<=6}set(a,c,n,r){return a=T11(a,n,r),a.setHours(0,0,0,0),a}}class Eze extends se{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(a,c,n,r){const i=o=>{const l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(c){case"e":case"ee":return L3(u3(c.length,a),i);case"eo":return L3(n.ordinalNumber(a,{unit:"day"}),i);case"eee":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=0&&c<=6}set(a,c,n,r){return a=T11(a,n,r),a.setHours(0,0,0,0),a}}class Dze extends se{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(a,c,n,r){const i=o=>{const l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(c){case"c":case"cc":return L3(u3(c.length,a),i);case"co":return L3(n.ordinalNumber(a,{unit:"day"}),i);case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})||n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"})}}validate(a,c){return c>=0&&c<=6}set(a,c,n,r){return a=T11(a,n,r),a.setHours(0,0,0,0),a}}function Pze(e,t){const a=d2(e),c=uze(a),n=t-c;return e6(a,n)}class Oze extends se{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(a,c,n){const r=i=>i===0?7:i;switch(c){case"i":case"ii":return u3(c.length,a);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return L3(n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),r);case"iiiii":return L3(n.day(a,{width:"narrow",context:"formatting"}),r);case"iiiiii":return L3(n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),r);case"iiii":default:return L3(n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),r)}}validate(a,c){return c>=1&&c<=7}set(a,c,n){return a=Pze(a,n),a.setHours(0,0,0,0),a}}class Ize extends se{constructor(){super(...arguments);S1(this,"priority",80);S1(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(a,c,n){switch(c){case"a":case"aa":case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,c,n){return a.setHours(A11(n),0,0,0),a}}class Bze extends se{constructor(){super(...arguments);S1(this,"priority",80);S1(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(a,c,n){switch(c){case"b":case"bb":case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,c,n){return a.setHours(A11(n),0,0,0),a}}class Rze extends se{constructor(){super(...arguments);S1(this,"priority",80);S1(this,"incompatibleTokens",["a","b","t","T"])}parse(a,c,n){switch(c){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,c,n){return a.setHours(A11(n),0,0,0),a}}class Fze extends se{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["H","K","k","t","T"])}parse(a,c,n){switch(c){case"h":return Je(H3.hour12h,a);case"ho":return n.ordinalNumber(a,{unit:"hour"});default:return u3(c.length,a)}}validate(a,c){return c>=1&&c<=12}set(a,c,n){const r=a.getHours()>=12;return r&&n<12?a.setHours(n+12,0,0,0):!r&&n===12?a.setHours(0,0,0,0):a.setHours(n,0,0,0),a}}class $ze extends se{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(a,c,n){switch(c){case"H":return Je(H3.hour23h,a);case"Ho":return n.ordinalNumber(a,{unit:"hour"});default:return u3(c.length,a)}}validate(a,c){return c>=0&&c<=23}set(a,c,n){return a.setHours(n,0,0,0),a}}class qze extends se{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["h","H","k","t","T"])}parse(a,c,n){switch(c){case"K":return Je(H3.hour11h,a);case"Ko":return n.ordinalNumber(a,{unit:"hour"});default:return u3(c.length,a)}}validate(a,c){return c>=0&&c<=11}set(a,c,n){return a.getHours()>=12&&n<12?a.setHours(n+12,0,0,0):a.setHours(n,0,0,0),a}}class jze extends se{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(a,c,n){switch(c){case"k":return Je(H3.hour24h,a);case"ko":return n.ordinalNumber(a,{unit:"hour"});default:return u3(c.length,a)}}validate(a,c){return c>=1&&c<=24}set(a,c,n){const r=n<=24?n%24:n;return a.setHours(r,0,0,0),a}}class Uze extends se{constructor(){super(...arguments);S1(this,"priority",60);S1(this,"incompatibleTokens",["t","T"])}parse(a,c,n){switch(c){case"m":return Je(H3.minute,a);case"mo":return n.ordinalNumber(a,{unit:"minute"});default:return u3(c.length,a)}}validate(a,c){return c>=0&&c<=59}set(a,c,n){return a.setMinutes(n,0,0),a}}class Wze extends se{constructor(){super(...arguments);S1(this,"priority",50);S1(this,"incompatibleTokens",["t","T"])}parse(a,c,n){switch(c){case"s":return Je(H3.second,a);case"so":return n.ordinalNumber(a,{unit:"second"});default:return u3(c.length,a)}}validate(a,c){return c>=0&&c<=59}set(a,c,n){return a.setSeconds(n,0),a}}class Yze extends se{constructor(){super(...arguments);S1(this,"priority",30);S1(this,"incompatibleTokens",["t","T"])}parse(a,c){const n=r=>Math.trunc(r*Math.pow(10,-c.length+3));return L3(u3(c.length,a),n)}set(a,c,n){return a.setMilliseconds(n),a}}class Gze extends se{constructor(){super(...arguments);S1(this,"priority",10);S1(this,"incompatibleTokens",["t","T","x"])}parse(a,c){switch(c){case"X":return it(rt.basicOptionalMinutes,a);case"XX":return it(rt.basic,a);case"XXXX":return it(rt.basicOptionalSeconds,a);case"XXXXX":return it(rt.extendedOptionalSeconds,a);case"XXX":default:return it(rt.extended,a)}}set(a,c,n){return c.timestampIsSet?a:ie(a,a.getTime()-W$(a)-n)}}class Zze extends se{constructor(){super(...arguments);S1(this,"priority",10);S1(this,"incompatibleTokens",["t","T","X"])}parse(a,c){switch(c){case"x":return it(rt.basicOptionalMinutes,a);case"xx":return it(rt.basic,a);case"xxxx":return it(rt.basicOptionalSeconds,a);case"xxxxx":return it(rt.extendedOptionalSeconds,a);case"xxx":default:return it(rt.extended,a)}}set(a,c,n){return c.timestampIsSet?a:ie(a,a.getTime()-W$(a)-n)}}class Xze extends se{constructor(){super(...arguments);S1(this,"priority",40);S1(this,"incompatibleTokens","*")}parse(a){return UM1(a)}set(a,c,n){return[ie(a,n*1e3),{timestampIsSet:!0}]}}class Kze extends se{constructor(){super(...arguments);S1(this,"priority",20);S1(this,"incompatibleTokens","*")}parse(a){return UM1(a)}set(a,c,n){return[ie(a,n),{timestampIsSet:!0}]}}const Qze={G:new vze,y:new yze,Y:new gze,R:new Mze,u:new kze,Q:new xze,q:new bze,M:new zze,L:new Cze,w:new wze,I:new Lze,d:new Nze,D:new Aze,E:new Tze,e:new Eze,c:new Dze,i:new Oze,a:new Ize,b:new Bze,B:new Rze,h:new Fze,H:new $ze,K:new qze,k:new jze,m:new Uze,s:new Wze,S:new Yze,X:new Gze,x:new Zze,t:new Xze,T:new Kze},Jze=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tCe=/^'([^]*?)'?$/,aCe=/''/g,cCe=/\S/,nCe=/[a-zA-Z]/;function QZ(e,t,a,c){var m,y,g,M,x,k,b,_;const n=fze(),r=(c==null?void 0:c.locale)??n.locale??RM1,i=(c==null?void 0:c.firstWeekContainsDate)??((y=(m=c==null?void 0:c.locale)==null?void 0:m.options)==null?void 0:y.firstWeekContainsDate)??n.firstWeekContainsDate??((M=(g=n.locale)==null?void 0:g.options)==null?void 0:M.firstWeekContainsDate)??1,o=(c==null?void 0:c.weekStartsOn)??((k=(x=c==null?void 0:c.locale)==null?void 0:x.options)==null?void 0:k.weekStartsOn)??n.weekStartsOn??((_=(b=n.locale)==null?void 0:b.options)==null?void 0:_.weekStartsOn)??0;if(t==="")return e===""?d2(a):ie(a,NaN);const l={firstWeekContainsDate:i,weekStartsOn:o,locale:r},f=[new mze],u=t.match(eCe).map(C=>{const H=C[0];if(H in XZ){const V=XZ[H];return V(C,r.formatLong)}return C}).join("").match(Jze),d=[];for(let C of u){!(c!=null&&c.useAdditionalWeekYearTokens)&&qM1(C)&&KZ(C,t,e),!(c!=null&&c.useAdditionalDayOfYearTokens)&&$M1(C)&&KZ(C,t,e);const H=C[0],V=Qze[H];if(V){const{incompatibleTokens:N}=V;if(Array.isArray(N)){const w=d.find(P=>N.includes(P.token)||P.token===H);if(w)throw new RangeError(`The format string mustn't contain \`${w.fullToken}\` and \`${C}\` at the same time`)}else if(V.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);d.push({token:H,fullToken:C});const L=V.run(e,C,r.match,l);if(!L)return ie(a,NaN);f.push(L.setter),e=L.rest}else{if(H.match(nCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+H+"`");if(C==="''"?C="'":H==="'"&&(C=rCe(C)),e.indexOf(C)===0)e=e.slice(C.length);else return ie(a,NaN)}}if(e.length>0&&cCe.test(e))return ie(a,NaN);const h=f.map(C=>C.priority).sort((C,H)=>H-C).filter((C,H,V)=>V.indexOf(C)===H).map(C=>f.filter(H=>H.priority===C).sort((H,V)=>V.subPriority-H.subPriority)).map(C=>C[0]);let p=d2(a);if(isNaN(p.getTime()))return ie(a,NaN);const v={};for(const C of h){if(!C.validate(p,l))return ie(a,NaN);const H=C.set(p,v,l);Array.isArray(H)?(p=H[0],Object.assign(v,H[1])):p=H}return ie(a,p)}function rCe(e){return e.match(tCe)[1].replace(aCe,"'")}function Oa1(e,t){const a=ci(e),c=ci(t);return+a==+c}function iCe(e,t){return e6(e,-t)}function GM1(e,t){const a=d2(e),c=a.getFullYear(),n=a.getDate(),r=ie(e,0);r.setFullYear(c,t,15),r.setHours(0,0,0,0);const i=lze(r);return a.setMonth(t,Math.min(n,i)),a}function ze(e,t){let a=d2(e);return isNaN(+a)?ie(e,NaN):(t.year!=null&&a.setFullYear(t.year),t.month!=null&&(a=GM1(a,t.month)),t.date!=null&&a.setDate(t.date),t.hours!=null&&a.setHours(t.hours),t.minutes!=null&&a.setMinutes(t.minutes),t.seconds!=null&&a.setSeconds(t.seconds),t.milliseconds!=null&&a.setMilliseconds(t.milliseconds),a)}function ZM1(e,t){const a=d2(e);return a.setHours(t),a}function E11(e,t){const a=d2(e);return a.setMilliseconds(t),a}function XM1(e,t){const a=d2(e);return a.setMinutes(t),a}function D11(e,t){const a=d2(e);return a.setSeconds(t),a}function ft(e,t){const a=d2(e);return isNaN(+a)?ie(e,NaN):(a.setFullYear(t),a)}function Ns(e,t){return M6(e,-t)}function oCe(e,t){const{years:a=0,months:c=0,weeks:n=0,days:r=0,hours:i=0,minutes:o=0,seconds:l=0}=t,f=Ns(e,c+a*12),u=iCe(f,r+n*7),d=o+i*60,p=(l+d*60)*1e3;return ie(e,u.getTime()-p)}function KM1(e,t){return H11(e,-t)}function Ks(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),s.createElementVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),s.createElementVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),s.createElementVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}Ks.compatConfig={MODE:3};function QM1(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),s.createElementVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}QM1.compatConfig={MODE:3};function P11(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}P11.compatConfig={MODE:3};function O11(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}O11.compatConfig={MODE:3};function I11(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),s.createElementVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}I11.compatConfig={MODE:3};function B11(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}B11.compatConfig={MODE:3};function R11(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}R11.compatConfig={MODE:3};const bt=(e,t)=>t?new Date(e.toLocaleString("en-US",{timeZone:t})):new Date(e),JM1=(e,t)=>JZ(e,t)||$1(),sCe=(e,t)=>t.dateInTz?bt(new Date(e),t.dateInTz):$1(e),JZ=(e,t)=>{if(!e)return null;if(!t)return $1(e);const a=$1(e);return t.exactMatch?sCe(e,t):bt(a,t.timezone)},lCe=e=>{if(!e)return 0;const t=new Date,a=new Date(t.toLocaleString("en-US",{timeZone:"UTC"})),c=new Date(t.toLocaleString("en-US",{timeZone:e})),n=c.getTimezoneOffset()/60;return(+a-+c)/(1e3*60*60)-n};var U0=(e=>(e.month="month",e.year="year",e))(U0||{}),Y7=(e=>(e.top="top",e.bottom="bottom",e))(Y7||{}),vi=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(vi||{}),u4=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(u4||{});const fCe=["timestamp","date","iso"];var S4=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(S4||{}),Xe=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(Xe||{});function Ia1(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)}function uCe(e){return t=>xt(new Date(`2017-01-0${t}T00:00:00+00:00`),"EEEEEE",{locale:e})}const dCe=(e,t,a)=>{const c=[1,2,3,4,5,6,7];let n;if(e!==null)try{n=c.map(uCe(e))}catch{n=c.map(Ia1(t))}else n=c.map(Ia1(t));const r=n.slice(0,a),i=n.slice(a+1,n.length);return[n[a]].concat(...i).concat(...r)},F11=(e,t,a)=>{const c=[];for(let n=+e[0];n<=+e[1];n++)c.push({value:+n,text:ck1(n,t)});return a?c.reverse():c},ek1=(e,t,a)=>{const c=[1,2,3,4,5,6,7,8,9,10,11,12].map(r=>{const i=r<10?`0${r}`:r;return new Date(`2017-${i}-01T00:00:00+00:00`)});if(e!==null)try{const r=a==="long"?"MMMM":"MMM";return c.map((i,o)=>{const l=xt(bt(i,"UTC"),r,{locale:e});return{text:l.charAt(0).toUpperCase()+l.substring(1),value:o}})}catch{}const n=new Intl.DateTimeFormat(t,{month:a,timeZone:"UTC"});return c.map((r,i)=>{const o=n.format(r);return{text:o.charAt(0).toUpperCase()+o.substring(1),value:i}})},hCe=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],D3=e=>{const t=s.unref(e);return t!=null&&t.$el?t==null?void 0:t.$el:t},pCe=e=>({type:"dot",...e??{}}),tk1=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,$11={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},Y3=e=>e,Ba1=e=>e===0?e:!e||isNaN(+e)?null:+e,Ra1=e=>e===null,ak1=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},mCe=e=>{const t=[],a=c=>c.filter(n=>n);for(let c=0;c<e.length;c+=3){const n=[e[c],e[c+1],e[c+2]];t.push(a(n))}return t},jf=(e,t,a)=>{const c=a!=null,n=t!=null;if(!c&&!n)return!1;const r=+a,i=+t;return c&&n?+e>r||+e<i:c?+e>r:n?+e<i:!1},As=(e,t)=>mCe(e).map(a=>a.map(c=>{const{active:n,disabled:r,isBetween:i,highlighted:o}=t(c);return{...c,active:n,disabled:r,className:{dp__overlay_cell_active:n,dp__overlay_cell:!n,dp__overlay_cell_disabled:r,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:r&&n,dp__cell_in_between:i,"dp--highlighted":o}}})),Va=(e,t,a=!1)=>{e&&t.allowStopPropagation&&(a&&e.stopImmediatePropagation(),e.stopPropagation())},vCe=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function yCe(e,t){let a=[...document.querySelectorAll(vCe())];a=a.filter(n=>!e.contains(n)||n.hasAttribute("data-datepicker-instance"));const c=a.indexOf(e);if(c>=0&&(t?c-1>=0:c+1<=a.length))return a[c+(t?-1:1)]}const gCe=(e,t)=>e==null?void 0:e.querySelector(`[data-dp-element="${t}"]`),ck1=(e,t)=>new Intl.NumberFormat(t,{useGrouping:!1,style:"decimal"}).format(e),q11=e=>xt(e,"dd-MM-yyyy"),bY=e=>Array.isArray(e),G$=(e,t)=>t.get(q11(e)),MCe=(e,t)=>e?t?t instanceof Map?!!G$(e,t):t($1(e)):!1:!0,G4=(e,t,a=!1)=>{if(e.key===Xe.enter||e.key===Xe.space)return a&&e.preventDefault(),t()},Fa1=(e,t,a,c,n,r)=>{const i=QZ(e,t.slice(0,e.length),new Date,{locale:r});return Dl(i)&&PM1(i)?c||n?i:ze(i,{hours:+a.hours,minutes:+(a==null?void 0:a.minutes),seconds:+(a==null?void 0:a.seconds),milliseconds:0}):null},kCe=(e,t,a,c,n,r)=>{const i=Array.isArray(a)?a[0]:a;if(typeof t=="string")return Fa1(e,t,i,c,n,r);if(Array.isArray(t)){let o=null;for(const l of t)if(o=Fa1(e,l,i,c,n,r),o)break;return o}return typeof t=="function"?t(e):null},$1=e=>e?new Date(e):new Date,xCe=(e,t,a)=>{if(t){const n=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),i=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),l=a?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${n}-${r}T${i}:${o}:${l}.000Z`}const c=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(c).toISOString()},p0=e=>{let t=$1(JSON.parse(JSON.stringify(e)));return t=ZM1(t,0),t=XM1(t,0),t=D11(t,0),t=E11(t,0),t},Sa=(e,t,a,c)=>{let n=e?$1(e):$1();return(t||t===0)&&(n=ZM1(n,+t)),(a||a===0)&&(n=XM1(n,+a)),(c||c===0)&&(n=D11(n,+c)),E11(n,0)},r3=(e,t)=>!e||!t?!1:qf(p0(e),p0(t)),I2=(e,t)=>!e||!t?!1:Io(p0(e),p0(t)),x3=(e,t)=>!e||!t?!1:Ss(p0(e),p0(t)),Jj=(e,t,a)=>e!=null&&e[0]&&e!=null&&e[1]?x3(a,e[0])&&r3(a,e[1]):e!=null&&e[0]&&t?x3(a,e[0])&&r3(a,t)||r3(a,e[0])&&x3(a,t):!1,t6=e=>{const t=ze(new Date(e),{date:1});return p0(t)},zY=(e,t,a)=>t&&(a||a===0)?Object.fromEntries(["hours","minutes","seconds"].map(c=>c===t?[c,a]:[c,isNaN(+e[c])?void 0:+e[c]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},yi=e=>({hours:_8(e),minutes:Ya(e),seconds:Vs(e)}),nk1=(e,t)=>{if(t){const a=L2($1(t));if(a>e)return 12;if(a===e)return P2($1(t))}},rk1=(e,t)=>{if(t){const a=L2($1(t));return a<e?-1:a===e?P2($1(t)):void 0}},Ts=e=>{if(e)return L2($1(e))},ik1=(e,t)=>{const a=x3(e,t)?t:e,c=x3(t,e)?t:e;return OM1({start:a,end:c})},bCe=e=>{const t=M6(e,1);return{month:P2(t),year:L2(t)}},Xt=(e,t)=>{const a=S6(e,{weekStartsOn:+t}),c=BM1(e,{weekStartsOn:+t});return[a,c]},ok1=(e,t)=>{const a={hours:_8($1()),minutes:Ya($1()),seconds:t?Vs($1()):0};return Object.assign(a,e)},va=(e,t,a)=>[ze($1(e),{date:1}),ze($1(),{month:t,year:a,date:1})],s8=(e,t,a)=>{let c=e?$1(e):$1();return(t||t===0)&&(c=GM1(c,t)),a&&(c=ft(c,a)),c},sk1=(e,t,a,c,n)=>{if(!c||n&&!t||!n&&!a)return!1;const r=n?M6(e,1):Ns(e,1),i=[P2(r),L2(r)];return n?!CCe(...i,t):!zCe(...i,a)},zCe=(e,t,a)=>r3(...va(a,e,t))||I2(...va(a,e,t)),CCe=(e,t,a)=>x3(...va(a,e,t))||I2(...va(a,e,t)),lk1=(e,t,a,c,n,r,i)=>{if(typeof t=="function"&&!i)return t(e);const o=a?{locale:a}:void 0;return Array.isArray(e)?`${xt(e[0],r,o)}${n&&!e[1]?"":c}${e[1]?xt(e[1],r,o):""}`:xt(e,r,o)},zo=e=>{if(e)return null;throw new Error($11.prop("partial-range"))},hh=(e,t)=>{if(t)return e();throw new Error($11.prop("range"))},eX=e=>Array.isArray(e)?Dl(e[0])&&(e[1]?Dl(e[1]):!0):e?Dl(e):!1,_Ce=(e,t)=>ze(t??$1(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),CY=(e,t,a,c)=>{if(!e)return!0;if(c){const n=a==="max"?qf(e,t):Ss(e,t),r={seconds:0,milliseconds:0};return n||Io(ze(e,r),ze(t,r))}return a==="max"?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},_Y=(e,t,a)=>e?_Ce(e,t):$1(a??t),$a1=(e,t,a,c,n)=>{if(Array.isArray(c)){const i=_Y(e,c[0],t),o=_Y(e,c[1],t);return CY(c[0],i,a,!!t)&&CY(c[1],o,a,!!t)&&n}const r=_Y(e,c,t);return CY(c,r,a,!!t)&&n},wY=e=>ze($1(),yi(e)),wCe=(e,t)=>e instanceof Map?Array.from(e.values()).filter(a=>L2($1(a))===t).map(a=>P2(a)):[],fk1=(e,t,a)=>typeof e=="function"?e({month:t,year:a}):!!e.months.find(c=>c.month===t&&c.year===a),j11=(e,t)=>typeof e=="function"?e(t):e.years.includes(t),j9=s.reactive({menuFocused:!1,shiftKeyInMenu:!1}),uk1=()=>{const e=a=>{j9.menuFocused=a},t=a=>{j9.shiftKeyInMenu!==a&&(j9.shiftKeyInMenu=a)};return{control:s.computed(()=>({shiftKeyInMenu:j9.shiftKeyInMenu,menuFocused:j9.menuFocused})),setMenuFocused:e,setShiftKey:t}},we=s.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),HY=s.ref(null),ph=s.ref(!1),LY=s.ref(!1),VY=s.ref(!1),SY=s.ref(!1),o4=s.ref(0),v3=s.ref(0),l5=()=>{const e=s.computed(()=>ph.value?[...we.selectionGrid,we.actionRow].filter(d=>d.length):LY.value?[...we.timePicker[0],...we.timePicker[1],SY.value?[]:[HY.value],we.actionRow].filter(d=>d.length):VY.value?[...we.monthPicker,we.actionRow]:[we.monthYear,...we.calendar,we.time,we.actionRow].filter(d=>d.length)),t=d=>{o4.value=d?o4.value+1:o4.value-1;let h=null;e.value[v3.value]&&(h=e.value[v3.value][o4.value]),!h&&e.value[v3.value+(d?1:-1)]?(v3.value=v3.value+(d?1:-1),o4.value=d?0:e.value[v3.value].length-1):h||(o4.value=d?o4.value-1:o4.value+1)},a=d=>{v3.value===0&&!d||v3.value===e.value.length&&d||(v3.value=d?v3.value+1:v3.value-1,e.value[v3.value]?e.value[v3.value]&&!e.value[v3.value][o4.value]&&o4.value!==0&&(o4.value=e.value[v3.value].length-1):v3.value=d?v3.value-1:v3.value+1)},c=d=>{let h=null;e.value[v3.value]&&(h=e.value[v3.value][o4.value]),h?h.focus({preventScroll:!ph.value}):o4.value=d?o4.value-1:o4.value+1},n=()=>{t(!0),c(!0)},r=()=>{t(!1),c(!1)},i=()=>{a(!1),c(!0)},o=()=>{a(!0),c(!0)},l=(d,h)=>{we[h]=d},f=(d,h)=>{we[h]=d},u=()=>{o4.value=0,v3.value=0};return{buildMatrix:l,buildMultiLevelMatrix:f,setTimePickerBackRef:d=>{HY.value=d},setSelectionGrid:d=>{ph.value=d,u(),d||(we.selectionGrid=[])},setTimePicker:(d,h=!1)=>{LY.value=d,SY.value=h,u(),d||(we.timePicker[0]=[],we.timePicker[1]=[])},setTimePickerElements:(d,h=0)=>{we.timePicker[h]=d},arrowRight:n,arrowLeft:r,arrowUp:i,arrowDown:o,clearArrowNav:()=>{we.monthYear=[],we.calendar=[],we.time=[],we.actionRow=[],we.selectionGrid=[],we.timePicker[0]=[],we.timePicker[1]=[],ph.value=!1,LY.value=!1,SY.value=!1,VY.value=!1,u(),HY.value=null},setMonthPicker:d=>{VY.value=d,u()},refSets:we}},qa1=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),HCe=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,...e??{}}),ja1=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,LCe=e=>{const t=typeof e=="object"&&e,a={static:!0,solo:!1};if(!e)return{...a,count:ja1(!1)};const c=t?e:{},n=t?c.count??!0:e,r=ja1(n);return Object.assign(a,c,{count:r})},VCe=(e,t,a)=>e||(typeof a=="string"?a:t),SCe=e=>typeof e=="boolean"?e?qa1({}):!1:qa1(e),NCe=e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:!0,selectOnFocus:!1,rangeSeparator:" - "};return typeof e=="object"?{...t,...e??{},enabled:!0}:{...t,enabled:e}},ACe=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),TCe=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),ECe=e=>{const t={input:!1};return typeof e=="object"?{...t,...e??{},enabled:!0}:{enabled:e,...t}},DCe=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,...e??{}}),PCe=e=>{const t={dates:Array.isArray(e)?e.map(a=>$1(a)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...t,...e??{}}},OCe=e=>typeof e=="object"?{type:(e==null?void 0:e.type)??"local",hideOnOffsetDates:(e==null?void 0:e.hideOnOffsetDates)??!1}:{type:e,hideOnOffsetDates:!1},ICe=(e,t)=>typeof e=="object"?{enabled:!0,...{noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1},...e}:{enabled:e,noDisabledRange:t.noDisabledRange,showLastInRange:t.showLastInRange,minMaxRawRange:t.minMaxRawRange,partialRange:t.partialRange,disableTimeRangeValidation:t.disableTimeRangeValidation,maxRange:t.maxRange,minRange:t.minRange,autoRange:t.autoRange,fixedStart:t.fixedStart,fixedEnd:t.fixedEnd},BCe=(e,t)=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:t,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:t??e.emitTimezone,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:t},NY=(e,t)=>new Map(e.map(a=>{const c=JM1(a,t);return[q11(c),c]})),RCe=(e,t)=>e.length?new Map(e.map(a=>{const c=JM1(a.date,t);return[q11(c),a]})):null,FCe=(e,t,a,c,n,r,i)=>({minDate:JZ(e,i),maxDate:JZ(t,i),disabledDates:bY(a)?NY(a,i):a,allowedDates:bY(c)?NY(c,i):null,highlight:typeof n=="object"&&bY(n==null?void 0:n.dates)?NY(n.dates,i):n,markers:RCe(r,i)}),$Ce=(e,t)=>typeof e=="boolean"?{enabled:e,dragSelect:!0,limit:+t}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0},a3=e=>{const t=()=>{const b=e.enableSeconds?":ss":"",_=e.enableMinutes?":mm":"";return e.is24?`HH${_}${b}`:`hh${_}${b} aa`},a=()=>{var b;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?`${((b=y.value)==null?void 0:b.type)==="iso"?"RR":"ww"}-yyyy`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy"},c=b=>ok1(b,e.enableSeconds),n=()=>k.value.enabled?e.startTime&&Array.isArray(e.startTime)?[c(e.startTime[0]),c(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?c(e.startTime):null,r=s.computed(()=>LCe(e.multiCalendars)),i=s.computed(()=>n()),o=s.computed(()=>HCe(e.ariaLabels)),l=s.computed(()=>ACe(e.filters)),f=s.computed(()=>SCe(e.transitions)),u=s.computed(()=>TCe(e.actionRow)),d=s.computed(()=>VCe(e.previewFormat,e.format,a())),h=s.computed(()=>NCe(e.textInput)),p=s.computed(()=>ECe(e.inline)),v=s.computed(()=>DCe(e.config)),m=s.computed(()=>PCe(e.highlight)),y=s.computed(()=>OCe(e.weekNumbers)),g=s.computed(()=>BCe(e.timezone,e.emitTimezone)),M=s.computed(()=>$Ce(e.multiDates,e.multiDatesLimit)),x=s.computed(()=>FCe(e.minDate,e.maxDate,e.disabledDates,e.allowedDates,m.value,e.markers,g.value)),k=s.computed(()=>ICe(e.range,{minMaxRawRange:!1,maxRange:e.maxRange,minRange:e.minRange,noDisabledRange:e.noDisabledRange,showLastInRange:e.showLastInRange,partialRange:e.partialRange,disableTimeRangeValidation:e.disableTimeRangeValidation,autoRange:e.autoRange,fixedStart:e.fixedStart,fixedEnd:e.fixedEnd}));return{defaultedTransitions:f,defaultedMultiCalendars:r,defaultedStartTime:i,defaultedAriaLabels:o,defaultedFilters:l,defaultedActionRow:u,defaultedPreviewFormat:d,defaultedTextInput:h,defaultedInline:p,defaultedConfig:v,defaultedHighlight:m,defaultedWeekNumbers:y,defaultedRange:k,propDates:x,defaultedTz:g,defaultedMultiDates:M,getDefaultPattern:a,getDefaultStartTime:n}},qCe=(e,t,a)=>{const c=s.ref(),{defaultedTextInput:n,defaultedRange:r,defaultedTz:i,defaultedMultiDates:o,getDefaultPattern:l}=a3(t),f=s.ref(""),u=s.toRef(t,"format"),d=s.toRef(t,"formatLocale");s.watch(c,()=>{typeof t.onInternalModelChange=="function"&&e("internal-model-change",c.value,A(!0))},{deep:!0}),s.watch(r,(B,Q)=>{B.enabled!==Q.enabled&&(c.value=null)}),s.watch(u,()=>{e1()});const h=B=>i.value.timezone&&i.value.convertModel?bt(B,i.value.timezone):B,p=B=>{if(i.value.timezone&&i.value.convertModel){const Q=lCe(i.value.timezone);return dbe(B,Q)}return B},v=(B,Q,c1=!1)=>lk1(B,t.format,t.formatLocale,n.value.rangeSeparator,t.modelAuto,Q??l(),c1),m=B=>B?t.modelType?W(B):{hours:_8(B),minutes:Ya(B),seconds:t.enableSeconds?Vs(B):0}:null,y=B=>t.modelType?W(B):{month:P2(B),year:L2(B)},g=B=>Array.isArray(B)?o.value.enabled?B.map(Q=>M(Q,ft($1(),Q))):hh(()=>[ft($1(),B[0]),B[1]?ft($1(),B[1]):zo(r.value.partialRange)],r.value.enabled):ft($1(),+B),M=(B,Q)=>(typeof B=="string"||typeof B=="number")&&t.modelType?Z(B):Q,x=B=>Array.isArray(B)?[M(B[0],Sa(null,+B[0].hours,+B[0].minutes,B[0].seconds)),M(B[1],Sa(null,+B[1].hours,+B[1].minutes,B[1].seconds))]:M(B,Sa(null,B.hours,B.minutes,B.seconds)),k=B=>{const Q=ze($1(),{date:1});return Array.isArray(B)?o.value.enabled?B.map(c1=>M(c1,s8(Q,+c1.month,+c1.year))):hh(()=>[M(B[0],s8(Q,+B[0].month,+B[0].year)),M(B[1],B[1]?s8(Q,+B[1].month,+B[1].year):zo(r.value.partialRange))],r.value.enabled):M(B,s8(Q,+B.month,+B.year))},b=B=>{if(Array.isArray(B))return B.map(Q=>Z(Q));throw new Error($11.dateArr("multi-dates"))},_=B=>{if(Array.isArray(B)&&r.value.enabled){const Q=B[0],c1=B[1];return[$1(Array.isArray(Q)?Q[0]:null),$1(Array.isArray(c1)?c1[0]:null)]}return $1(B[0])},C=B=>t.modelAuto?Array.isArray(B)?[Z(B[0]),Z(B[1])]:t.autoApply?[Z(B)]:[Z(B),null]:Array.isArray(B)?hh(()=>B[1]?[Z(B[0]),B[1]?Z(B[1]):zo(r.value.partialRange)]:[Z(B[0])],r.value.enabled):Z(B),H=()=>{Array.isArray(c.value)&&r.value.enabled&&c.value.length===1&&c.value.push(zo(r.value.partialRange))},V=()=>{const B=c.value;return[W(B[0]),B[1]?W(B[1]):zo(r.value.partialRange)]},N=()=>c.value[1]?V():W(Y3(c.value[0])),L=()=>(c.value||[]).map(B=>W(B)),w=(B=!1)=>(B||H(),t.modelAuto?N():o.value.enabled?L():Array.isArray(c.value)?hh(()=>V(),r.value.enabled):W(Y3(c.value))),P=B=>!B||Array.isArray(B)&&!B.length?null:t.timePicker?x(Y3(B)):t.monthPicker?k(Y3(B)):t.yearPicker?g(Y3(B)):o.value.enabled?b(Y3(B)):t.weekPicker?_(Y3(B)):C(Y3(B)),j=B=>{const Q=P(B);eX(Y3(Q))?(c.value=Y3(Q),e1()):(c.value=null,f.value="")},T=()=>{const B=Q=>xt(Q,n.value.format);return`${B(c.value[0])} ${n.value.rangeSeparator} ${c.value[1]?B(c.value[1]):""}`},R=()=>a.value&&c.value?Array.isArray(c.value)?T():xt(c.value,n.value.format):v(c.value),Y=()=>c.value?o.value.enabled?c.value.map(B=>v(B)).join("; "):n.value.enabled&&typeof n.value.format=="string"?R():v(c.value):"",e1=()=>{!t.format||typeof t.format=="string"||n.value.enabled&&typeof n.value.format=="string"?f.value=Y():f.value=t.format(c.value)},Z=B=>{if(t.utc){const Q=new Date(B);return t.utc==="preserve"?new Date(Q.getTime()+Q.getTimezoneOffset()*6e4):Q}return t.modelType?fCe.includes(t.modelType)?h(new Date(B)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?h(QZ(B,l(),new Date,{locale:d.value})):h(QZ(B,t.modelType,new Date,{locale:d.value})):h(new Date(B))},W=B=>B?t.utc?xCe(B,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+p(B):t.modelType==="iso"?p(B).toISOString():t.modelType==="format"&&(typeof t.format=="string"||!t.format)?v(p(B)):v(p(B),t.modelType,!0):p(B):"",I=(B,Q=!1,c1=!1)=>{if(c1)return B;if(e("update:model-value",B),i.value.emitTimezone&&Q){const K=Array.isArray(B)?B.map(a1=>bt(Y3(a1),i.value.emitTimezone)):bt(Y3(B),i.value.emitTimezone);e("update:model-timezone-value",K)}},E=B=>Array.isArray(c.value)?o.value.enabled?c.value.map(Q=>B(Q)):[B(c.value[0]),c.value[1]?B(c.value[1]):zo(r.value.partialRange)]:B(Y3(c.value)),S=()=>{if(Array.isArray(c.value)){const B=Xt(c.value[0],t.weekStart),Q=c.value[1]?Xt(c.value[1],t.weekStart):[];return[B.map(c1=>$1(c1)),Q.map(c1=>$1(c1))]}return Xt(c.value,t.weekStart).map(B=>$1(B))},U=(B,Q)=>I(Y3(E(B)),!1,Q),G=B=>{const Q=S();return B?Q:e("update:model-value",S())},A=(B=!1)=>(B||e1(),t.monthPicker?U(y,B):t.timePicker?U(m,B):t.yearPicker?U(L2,B):t.weekPicker?G(B):I(w(B),!0,B));return{inputValue:f,internalModelValue:c,checkBeforeEmit:()=>c.value?r.value.enabled?r.value.partialRange?c.value.length>=1:c.value.length===2:!!c.value:!1,parseExternalModelValue:j,formatInputValue:e1,emitModelValue:A}},jCe=(e,t)=>{const{defaultedFilters:a,propDates:c}=a3(e),{validateMonthYearInRange:n}=f5(e),r=(u,d)=>{let h=u;return a.value.months.includes(P2(h))?(h=d?M6(u,1):Ns(u,1),r(h,d)):h},i=(u,d)=>{let h=u;return a.value.years.includes(L2(h))?(h=d?H11(u,1):KM1(u,1),i(h,d)):h},o=(u,d=!1)=>{const h=ze($1(),{month:e.month,year:e.year});let p=u?M6(h,1):Ns(h,1);e.disableYearSelect&&(p=ft(p,e.year));let v=P2(p),m=L2(p);a.value.months.includes(v)&&(p=r(p,u),v=P2(p),m=L2(p)),a.value.years.includes(m)&&(p=i(p,u),m=L2(p)),n(v,m,u,e.preventMinMaxNavigation)&&l(v,m,d)},l=(u,d,h)=>{t("update-month-year",{month:u,year:d,fromNav:h})},f=s.computed(()=>u=>sk1(ze($1(),{month:e.month,year:e.year}),c.value.maxDate,c.value.minDate,e.preventMinMaxNavigation,u));return{handleMonthYearChange:o,isDisabled:f,updateMonthYear:l}};var No=(e=>(e.center="center",e.left="left",e.right="right",e))(No||{});const UCe=({menuRef:e,menuRefInner:t,inputRef:a,pickerWrapperRef:c,inline:n,emit:r,props:i,slots:o})=>{const l=s.ref({}),f=s.ref(!1),u=s.ref({top:"0",left:"0"}),d=s.ref(!1),h=s.toRef(i,"teleportCenter");s.watch(h,()=>{u.value=JSON.parse(JSON.stringify({})),k()});const p=T=>{if(i.teleport){const R=T.getBoundingClientRect();return{left:R.left+window.scrollX,top:R.top+window.scrollY}}return{top:0,left:0}},v=(T,R)=>{u.value.left=`${T+R-l.value.width}px`},m=T=>{u.value.left=`${T}px`},y=(T,R)=>{i.position===No.left&&m(T),i.position===No.right&&v(T,R),i.position===No.center&&(u.value.left=`${T+R/2-l.value.width/2}px`)},g=T=>{const{width:R,height:Y}=T.getBoundingClientRect(),{top:e1,left:Z}=i.altPosition?i.altPosition(T):p(T);return{top:+e1,left:+Z,width:R,height:Y}},M=()=>{u.value.left="50%",u.value.top="50%",u.value.transform="translate(-50%, -50%)",u.value.position="fixed",delete u.value.opacity},x=()=>{const T=D3(a),{top:R,left:Y,transform:e1}=i.altPosition(T);u.value={top:`${R}px`,left:`${Y}px`,transform:e1??""}},k=(T=!0)=>{var R;if(!n.value.enabled){if(h.value)return M();if(i.altPosition!==null)return x();if(T){const Y=i.teleport?(R=t.value)==null?void 0:R.$el:e.value;Y&&(l.value=Y.getBoundingClientRect()),r("recalculate-position")}return L()}},b=({inputEl:T,left:R,width:Y})=>{window.screen.width>768&&!f.value&&y(R,Y),H(T)},_=T=>{const{top:R,left:Y,height:e1,width:Z}=g(T);u.value.top=`${e1+R+ +i.offset}px`,d.value=!1,f.value||(u.value.left=`${Y+Z/2-l.value.width/2}px`),b({inputEl:T,left:Y,width:Z})},C=T=>{const{top:R,left:Y,width:e1}=g(T);u.value.top=`${R-+i.offset-l.value.height}px`,d.value=!0,b({inputEl:T,left:Y,width:e1})},H=T=>{if(i.autoPosition){const{left:R,width:Y}=g(T),{left:e1,right:Z}=l.value;if(!f.value){if(Math.abs(e1)!==Math.abs(Z)){if(e1<=0)return f.value=!0,m(R);if(Z>=document.documentElement.clientWidth)return f.value=!0,v(R,Y)}return y(R,Y)}}},V=()=>{const T=D3(a);if(T){const{height:R}=l.value,{top:Y,height:e1}=T.getBoundingClientRect(),Z=window.innerHeight-Y-e1,W=Y;return R<=Z?Y7.bottom:R>Z&&R<=W?Y7.top:Z>=W?Y7.bottom:Y7.top}return Y7.bottom},N=T=>V()===Y7.bottom?_(T):C(T),L=()=>{const T=D3(a);if(T)return i.autoPosition?N(T):_(T)},w=function(T){if(T){const R=T.scrollHeight>T.clientHeight,Y=window.getComputedStyle(T).overflowY.indexOf("hidden")!==-1;return R&&!Y}return!0},P=function(T){return!T||T===document.body||T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:w(T)?T:P(T.assignedSlot?T.assignedSlot.parentNode:T.parentNode)},j=T=>{if(T)switch(i.position){case No.left:return{left:0,transform:"translateX(0)"};case No.right:return{left:`${T.width}px`,transform:"translateX(-100%)"};default:return{left:`${T.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:d,menuStyle:u,xCorrect:f,setMenuPosition:k,getScrollableParent:P,shadowRender:(T,R)=>{var Y,e1,Z;const W=document.createElement("div"),I=(Y=D3(a))==null?void 0:Y.getBoundingClientRect();W.setAttribute("id","dp--temp-container");const E=(e1=c.value)!=null&&e1.clientWidth?c.value:document.body;E.append(W);const S=j(I),U=s.h(T,{...R,shadow:!0,style:{opacity:0,position:"absolute",...S}},Object.fromEntries(Object.keys(o).filter(G=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(G)).map(G=>[G,o[G]])));s.render(U,W),l.value=(Z=U.el)==null?void 0:Z.getBoundingClientRect(),s.render(null,W),E.removeChild(W)}}},W8=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]}],WCe=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],YCe={all:()=>W8,monthYear:()=>W8.filter(e=>e.use.includes("month-year")),input:()=>WCe,timePicker:()=>W8.filter(e=>e.use.includes("time")),action:()=>W8.filter(e=>e.use.includes("action")),calendar:()=>W8.filter(e=>e.use.includes("calendar")),menu:()=>W8.filter(e=>e.use.includes("menu")),shared:()=>W8.filter(e=>e.use.includes("shared")),yearMode:()=>W8.filter(e=>e.use.includes("year-mode"))},o0=(e,t,a)=>{const c=[];return YCe[t]().forEach(n=>{e[n.name]&&c.push(n.name)}),a!=null&&a.length&&a.forEach(n=>{n.slot&&c.push(n.slot)}),c},Uu=e=>{const t=s.computed(()=>c=>e.value?c?e.value.open:e.value.close:""),a=s.computed(()=>c=>e.value?c?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:a}},Wu=(e,t)=>{const{defaultedRange:a,defaultedTz:c}=a3(e),n=$1(bt($1(),c.value.timezone)),r=s.ref([{month:P2(n),year:L2(n)}]),i=d=>{const h={hours:_8(n),minutes:Ya(n),seconds:0};return a.value.enabled?[h[d],h[d]]:h[d]},o=s.reactive({hours:i("hours"),minutes:i("minutes"),seconds:i("seconds")});s.watch(a,(d,h)=>{d.enabled!==h.enabled&&(o.hours=i("hours"),o.minutes=i("minutes"),o.seconds=i("seconds"))},{deep:!0});const l=s.computed({get:()=>e.internalModelValue,set:d=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",d)}}),f=s.computed(()=>d=>r.value[d]?r.value[d].month:0),u=s.computed(()=>d=>r.value[d]?r.value[d].year:0);return{calendars:r,time:o,modelValue:l,month:f,year:u,today:n}},GCe=(e,t)=>{const{defaultedMultiCalendars:a,defaultedMultiDates:c,defaultedHighlight:n,defaultedTz:r,propDates:i,defaultedRange:o}=a3(t),{isDisabled:l}=f5(t),f=s.ref(null),u=s.ref(bt(new Date,r.value.timezone)),d=S=>{!S.current&&t.hideOffsetDates||(f.value=S.value)},h=()=>{f.value=null},p=S=>Array.isArray(e.value)&&o.value.enabled&&e.value[0]&&f.value?S?x3(f.value,e.value[0]):r3(f.value,e.value[0]):!0,v=(S,U)=>{const G=()=>e.value?U?e.value[0]||null:e.value[1]:null,A=e.value&&Array.isArray(e.value)?G():null;return I2($1(S.value),A)},m=S=>{const U=Array.isArray(e.value)?e.value[0]:null;return S?!r3(f.value??null,U):!0},y=(S,U=!0)=>(o.value.enabled||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!S.current?!1:I2($1(S.value),e.value[U?0:1]):o.value.enabled?v(S,U)&&m(U)||I2(S.value,Array.isArray(e.value)?e.value[0]:null)&&p(U):!1,g=(S,U)=>{if(Array.isArray(e.value)&&e.value[0]&&e.value.length===1){const G=I2(S.value,f.value);return U?x3(e.value[0],S.value)&&G:r3(e.value[0],S.value)&&G}return!1},M=S=>!e.value||t.hideOffsetDates&&!S.current?!1:o.value.enabled?t.modelAuto&&Array.isArray(e.value)?I2(S.value,e.value[0]?e.value[0]:u.value):!1:c.value.enabled&&Array.isArray(e.value)?e.value.some(U=>I2(U,S.value)):I2(S.value,e.value?e.value:u.value),x=S=>{if(o.value.autoRange||t.weekPicker){if(f.value){if(t.hideOffsetDates&&!S.current)return!1;const U=e6(f.value,+o.value.autoRange),G=Xt($1(f.value),t.weekStart);return t.weekPicker?I2(G[1],$1(S.value)):I2(U,$1(S.value))}return!1}return!1},k=S=>{if(o.value.autoRange||t.weekPicker){if(f.value){const U=e6(f.value,+o.value.autoRange);if(t.hideOffsetDates&&!S.current)return!1;const G=Xt($1(f.value),t.weekStart);return t.weekPicker?x3(S.value,G[0])&&r3(S.value,G[1]):x3(S.value,f.value)&&r3(S.value,U)}return!1}return!1},b=S=>{if(o.value.autoRange||t.weekPicker){if(f.value){if(t.hideOffsetDates&&!S.current)return!1;const U=Xt($1(f.value),t.weekStart);return t.weekPicker?I2(U[0],S.value):I2(f.value,S.value)}return!1}return!1},_=S=>Jj(e.value,f.value,S.value),C=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,H=()=>t.modelAuto?tk1(t.internalModelValue):!0,V=S=>{if(t.weekPicker)return!1;const U=o.value.enabled?!y(S)&&!y(S,!1):!0;return!l(S.value)&&!M(S)&&!(!S.current&&t.hideOffsetDates)&&U},N=S=>o.value.enabled?t.modelAuto?C()&&M(S):!1:M(S),L=S=>n.value?MCe(S.value,i.value.highlight):!1,w=S=>{const U=l(S.value);return U&&(typeof n.value=="function"?!n.value(S.value,U):!n.value.options.highlightDisabled)},P=S=>{var U;return typeof n.value=="function"?n.value(S.value):(U=n.value.weekdays)==null?void 0:U.includes(S.value.getDay())},j=S=>(o.value.enabled||t.weekPicker)&&(!(a.value.count>0)||S.current)&&H()&&!(!S.current&&t.hideOffsetDates)&&!M(S)?_(S):!1,T=S=>{const{isRangeStart:U,isRangeEnd:G}=Z(S),A=o.value.enabled?U||G:!1;return{dp__cell_offset:!S.current,dp__pointer:!t.disabled&&!(!S.current&&t.hideOffsetDates)&&!l(S.value),dp__cell_disabled:l(S.value),dp__cell_highlight:!w(S)&&(L(S)||P(S))&&!N(S)&&!A&&!b(S)&&!(j(S)&&t.weekPicker)&&!G,dp__cell_highlight_active:!w(S)&&(L(S)||P(S))&&N(S),dp__today:!t.noToday&&I2(S.value,u.value)&&S.current,"dp--past":r3(S.value,u.value),"dp--future":x3(S.value,u.value)}},R=S=>({dp__active_date:N(S),dp__date_hover:V(S)}),Y=S=>{if(e.value&&!Array.isArray(e.value)){const U=Xt(e.value,t.weekStart);return{...I(S),dp__range_start:I2(U[0],S.value),dp__range_end:I2(U[1],S.value),dp__range_between_week:x3(S.value,U[0])&&r3(S.value,U[1])}}return{...I(S)}},e1=S=>{if(e.value&&Array.isArray(e.value)){const U=Xt(e.value[0],t.weekStart),G=e.value[1]?Xt(e.value[1],t.weekStart):[];return{...I(S),dp__range_start:I2(U[0],S.value)||I2(G[0],S.value),dp__range_end:I2(U[1],S.value)||I2(G[1],S.value),dp__range_between_week:x3(S.value,U[0])&&r3(S.value,U[1])||x3(S.value,G[0])&&r3(S.value,G[1]),dp__range_between:x3(S.value,U[1])&&r3(S.value,G[0])}}return{...I(S)}},Z=S=>{const U=a.value.count>0?S.current&&y(S)&&H():y(S)&&H(),G=a.value.count>0?S.current&&y(S,!1)&&H():y(S,!1)&&H();return{isRangeStart:U,isRangeEnd:G}},W=S=>{const{isRangeStart:U,isRangeEnd:G}=Z(S);return{dp__range_start:U,dp__range_end:G,dp__range_between:j(S),dp__date_hover:I2(S.value,f.value)&&!U&&!G&&!t.weekPicker,dp__date_hover_start:g(S,!0),dp__date_hover_end:g(S,!1)}},I=S=>({...W(S),dp__cell_auto_range:k(S),dp__cell_auto_range_start:b(S),dp__cell_auto_range_end:x(S)}),E=S=>o.value.enabled?o.value.autoRange?I(S):t.modelAuto?{...R(S),...W(S)}:t.weekPicker?e1(S):W(S):t.weekPicker?Y(S):R(S);return{setHoverDate:d,clearHoverDate:h,getDayClassData:S=>t.hideOffsetDates&&!S.current?{}:{...T(S),...E(S),[t.dayClass?t.dayClass(S.value):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName}}},f5=e=>{const{defaultedFilters:t,defaultedRange:a,propDates:c,defaultedMultiDates:n}=a3(e),r=w=>c.value.disabledDates?typeof c.value.disabledDates=="function"?c.value.disabledDates($1(w)):!!G$(w,c.value.disabledDates):!1,i=w=>{const P=c.value.maxDate?x3(w,c.value.maxDate):!1,j=c.value.minDate?r3(w,c.value.minDate):!1,T=r(w),R=t.value.months.map(I=>+I).includes(P2(w)),Y=e.disabledWeekDays.length?e.disabledWeekDays.some(I=>+I===sze(w)):!1,e1=d(w),Z=L2(w),W=Z<+e.yearRange[0]||Z>+e.yearRange[1];return!(P||j||T||R||W||Y||e1)},o=(w,P)=>r3(...va(c.value.minDate,w,P))||I2(...va(c.value.minDate,w,P)),l=(w,P)=>x3(...va(c.value.maxDate,w,P))||I2(...va(c.value.maxDate,w,P)),f=(w,P,j)=>{let T=!1;return c.value.maxDate&&j&&l(w,P)&&(T=!0),c.value.minDate&&!j&&o(w,P)&&(T=!0),T},u=(w,P,j,T)=>{let R=!1;return T?c.value.minDate&&c.value.maxDate?R=f(w,P,j):(c.value.minDate&&o(w,P)||c.value.maxDate&&l(w,P))&&(R=!0):R=!0,R},d=w=>Array.isArray(c.value.allowedDates)&&!c.value.allowedDates.length?!0:c.value.allowedDates?!G$(w,c.value.allowedDates):!1,h=w=>!i(w),p=w=>a.value.noDisabledRange?!OM1({start:w[0],end:w[1]}).some(P=>h(P)):!0,v=w=>{if(w){const P=L2(w);return P>=+e.yearRange[0]&&P<=e.yearRange[1]}return!0},m=(w,P)=>!!(Array.isArray(w)&&w[P]&&(a.value.maxRange||a.value.minRange)&&v(w[P])),y=(w,P,j=0)=>{if(m(P,j)&&v(w)){const T=DM1(w,P[j]),R=ik1(P[j],w),Y=R.length===1?0:R.filter(Z=>h(Z)).length,e1=Math.abs(T)-(a.value.minMaxRawRange?0:Y);if(a.value.minRange&&a.value.maxRange)return e1>=+a.value.minRange&&e1<=+a.value.maxRange;if(a.value.minRange)return e1>=+a.value.minRange;if(a.value.maxRange)return e1<=+a.value.maxRange}return!0},g=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,M=w=>Array.isArray(w)?[w[0]?wY(w[0]):null,w[1]?wY(w[1]):null]:wY(w),x=(w,P,j)=>w.find(T=>+T.hours===_8(P)&&T.minutes==="*"?!0:+T.minutes===Ya(P)&&+T.hours===_8(P))&&j,k=(w,P,j)=>{const[T,R]=w,[Y,e1]=P;return!x(T,Y,j)&&!x(R,e1,j)&&j},b=(w,P)=>{const j=Array.isArray(P)?P:[P];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?k(e.disabledTimes,j,w):!j.some(T=>x(e.disabledTimes,T,w)):w},_=(w,P)=>{const j=Array.isArray(P)?[yi(P[0]),P[1]?yi(P[1]):void 0]:yi(P),T=!e.disabledTimes(j);return w&&T},C=(w,P)=>e.disabledTimes?Array.isArray(e.disabledTimes)?b(P,w):_(P,w):P,H=w=>{let P=!0;if(!w||g())return!0;const j=!c.value.minDate&&!c.value.maxDate?M(w):w;return(e.maxTime||c.value.maxDate)&&(P=$a1(e.maxTime,c.value.maxDate,"max",Y3(j),P)),(e.minTime||c.value.minDate)&&(P=$a1(e.minTime,c.value.minDate,"min",Y3(j),P)),C(w,P)},V=w=>{if(!e.monthPicker)return!0;let P=!0;const j=$1(t6(w));if(c.value.minDate&&c.value.maxDate){const T=$1(t6(c.value.minDate)),R=$1(t6(c.value.maxDate));return x3(j,T)&&r3(j,R)||I2(j,T)||I2(j,R)}if(c.value.minDate){const T=$1(t6(c.value.minDate));P=x3(j,T)||I2(j,T)}if(c.value.maxDate){const T=$1(t6(c.value.maxDate));P=r3(j,T)||I2(j,T)}return P},N=s.computed(()=>w=>!e.enableTimePicker||e.ignoreTimeValidation?!0:H(w)),L=s.computed(()=>w=>e.monthPicker?Array.isArray(w)&&(a.value.enabled||n.value.enabled)?!w.filter(P=>!V(P)).length:V(w):!0);return{isDisabled:h,validateDate:i,validateMonthYearInRange:u,isDateRangeAllowed:p,checkMinMaxRange:y,isValidTime:H,isTimeValid:N,isMonthValid:L}},eU=()=>{const e=s.computed(()=>(c,n)=>c==null?void 0:c.includes(n)),t=s.computed(()=>(c,n)=>c.count?c.solo?!0:n===0:!0),a=s.computed(()=>(c,n)=>c.count?c.solo?!0:n===c.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:t,showRightIcon:a}},ZCe=(e,t,a)=>{const c=s.ref(0),n=s.reactive({[vi.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[vi.calendar]:!1,[vi.header]:!1}),r=s.computed(()=>e.monthPicker||e.timePicker),i=d=>{var h;if((h=e.flow)!=null&&h.length){if(!d&&r.value)return u();n[d]=!0,Object.keys(n).filter(p=>!n[p]).length||u()}},o=()=>{var d;(d=e.flow)!=null&&d.length&&c.value!==-1&&(c.value+=1,t("flow-step",c.value),u())},l=()=>{c.value=-1},f=(d,h,...p)=>{var v,m;e.flow[c.value]===d&&a.value&&((m=(v=a.value)[h])==null||m.call(v,...p))},u=()=>{f(u4.month,"toggleMonthPicker",!0),f(u4.year,"toggleYearPicker",!0),f(u4.calendar,"toggleTimePicker",!1,!0),f(u4.time,"toggleTimePicker",!0,!0);const d=e.flow[c.value];(d===u4.hours||d===u4.minutes||d===u4.seconds)&&f(d,"toggleTimePicker",!0,!0,d)};return{childMount:i,updateFlowStep:o,resetFlow:l,flowStep:c}},tU={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},emitTimezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},calendarClassName:{type:String,default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0}},P6={...tU,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})}},XCe={key:1,class:"dp__input_wrap"},KCe=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],QCe={key:2,class:"dp__clear_icon"},JCe=s.defineComponent({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...tU},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:a}){const c=a,n=e,{defaultedTextInput:r,defaultedAriaLabels:i,defaultedInline:o,defaultedConfig:l,defaultedRange:f,defaultedMultiDates:u,getDefaultPattern:d,getDefaultStartTime:h}=a3(n),{checkMinMaxRange:p}=f5(n),v=s.ref(),m=s.ref(null),y=s.ref(!1),g=s.ref(!1),M=s.computed(()=>({dp__pointer:!n.disabled&&!n.readonly&&!r.value.enabled,dp__disabled:n.disabled,dp__input_readonly:!r.value.enabled,dp__input:!0,dp__input_icon_pad:!n.hideInputIcon,dp__input_valid:!!n.state,dp__input_invalid:n.state===!1,dp__input_focus:y.value||n.isMenuOpen,dp__input_reg:!r.value.enabled,[n.inputClassName]:!!n.inputClassName})),x=()=>{c("set-input-date",null),n.clearable&&n.autoApply&&(c("set-empty-date"),v.value=null)},k=R=>{const Y=h();return kCe(R,r.value.format??d(),Y??ok1({},n.enableSeconds),n.inputValue,g.value,n.formatLocale)},b=R=>{const{rangeSeparator:Y}=r.value,[e1,Z]=R.split(`${Y}`);if(e1){const W=k(e1.trim()),I=Z?k(Z.trim()):null;if(Ss(W,I))return;const E=W&&I?[W,I]:[W];p(I,E,0)&&(v.value=W?E:null)}},_=()=>{g.value=!0},C=R=>{if(f.value.enabled)b(R);else if(u.value.enabled){const Y=R.split(";");v.value=Y.map(e1=>k(e1.trim())).filter(e1=>e1)}else v.value=k(R)},H=R=>{var Y;const e1=typeof R=="string"?R:(Y=R.target)==null?void 0:Y.value;e1!==""?(r.value.openMenu&&!n.isMenuOpen&&c("open"),C(e1),c("set-input-date",v.value)):x(),g.value=!1,c("update:input-value",e1)},V=R=>{r.value.enabled?(C(R.target.value),r.value.enterSubmit&&eX(v.value)&&n.inputValue!==""?(c("set-input-date",v.value,!0),v.value=null):r.value.enterSubmit&&n.inputValue===""&&(v.value=null,c("clear"))):w(R)},N=R=>{r.value.enabled&&r.value.tabSubmit&&C(R.target.value),r.value.tabSubmit&&eX(v.value)&&n.inputValue!==""?(c("set-input-date",v.value,!0,!0),v.value=null):r.value.tabSubmit&&n.inputValue===""&&(v.value=null,c("clear",!0))},L=()=>{y.value=!0,c("focus"),s.nextTick().then(()=>{var R;r.value.enabled&&r.value.selectOnFocus&&((R=m.value)==null||R.select())})},w=R=>{R.preventDefault(),Va(R,l.value,!0),r.value.enabled&&r.value.openMenu&&!o.value.input&&!n.isMenuOpen?c("open"):r.value.enabled||c("toggle")},P=()=>{c("real-blur"),y.value=!1,(!n.isMenuOpen||o.value.enabled&&o.value.input)&&c("blur"),n.autoApply&&r.value.enabled&&v.value&&!n.isMenuOpen&&(c("set-input-date",v.value),c("select-date"),v.value=null)},j=R=>{Va(R,l.value,!0),c("clear")},T=R=>{if(R.key==="Tab"&&N(R),R.key==="Enter"&&V(R),!r.value.enabled){if(R.code==="Tab")return;R.preventDefault()}};return t({focusInput:()=>{var R;(R=m.value)==null||R.focus({preventScroll:!0})},setParsedDate:R=>{v.value=R}}),(R,Y)=>{var e1;return s.openBlock(),s.createElementBlock("div",{onClick:w},[R.$slots.trigger&&!R.$slots["dp-input"]&&!s.unref(o).enabled?s.renderSlot(R.$slots,"trigger",{key:0}):s.createCommentVNode("",!0),!R.$slots.trigger&&(!s.unref(o).enabled||s.unref(o).input)?(s.openBlock(),s.createElementBlock("div",XCe,[R.$slots["dp-input"]&&!R.$slots.trigger&&(!s.unref(o).enabled||s.unref(o).enabled&&s.unref(o).input)?s.renderSlot(R.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:H,onEnter:V,onTab:N,onClear:j,onBlur:P,onKeypress:T,onPaste:_,openMenu:()=>R.$emit("open"),closeMenu:()=>R.$emit("close"),toggleMenu:()=>R.$emit("toggle")}):s.createCommentVNode("",!0),R.$slots["dp-input"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("input",{key:1,id:R.uid?`dp-input-${R.uid}`:void 0,ref_key:"inputRef",ref:m,"data-test":"dp-input",name:R.name,class:s.normalizeClass(M.value),inputmode:s.unref(r).enabled?"text":"none",placeholder:R.placeholder,disabled:R.disabled,readonly:R.readonly,required:R.required,value:e.inputValue,autocomplete:R.autocomplete,"aria-label":(e1=s.unref(i))==null?void 0:e1.input,"aria-disabled":R.disabled||void 0,"aria-invalid":R.state===!1?!0:void 0,onInput:H,onBlur:P,onFocus:L,onKeypress:T,onKeydown:T,onPaste:_},null,42,KCe)),s.createElementVNode("div",{onClick:Y[2]||(Y[2]=Z=>c("toggle"))},[R.$slots["input-icon"]&&!R.hideInputIcon?(s.openBlock(),s.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:Y[0]||(Y[0]=Z=>c("toggle"))},[s.renderSlot(R.$slots,"input-icon")])):s.createCommentVNode("",!0),!R.$slots["input-icon"]&&!R.hideInputIcon&&!R.$slots["dp-input"]?(s.openBlock(),s.createBlock(s.unref(Ks),{key:1,class:"dp__input_icon dp__input_icons",onClick:Y[1]||(Y[1]=Z=>c("toggle"))})):s.createCommentVNode("",!0)]),R.$slots["clear-icon"]&&e.inputValue&&R.clearable&&!R.disabled&&!R.readonly?(s.openBlock(),s.createElementBlock("span",QCe,[s.renderSlot(R.$slots,"clear-icon",{clear:j})])):s.createCommentVNode("",!0),R.clearable&&!R.$slots["clear-icon"]&&e.inputValue&&!R.disabled&&!R.readonly?(s.openBlock(),s.createBlock(s.unref(QM1),{key:3,class:"dp__clear_icon dp__input_icons","data-test":"clear-icon",onClick:Y[3]||(Y[3]=s.withModifiers(Z=>j(Z),["prevent"]))})):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])}}}),e_e=["title"],t_e=["disabled"],a_e=s.defineComponent({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...P6},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const a=t,c=e,{defaultedActionRow:n,defaultedPreviewFormat:r,defaultedMultiCalendars:i,defaultedTextInput:o,defaultedInline:l,defaultedRange:f,defaultedMultiDates:u,getDefaultPattern:d}=a3(c),{isTimeValid:h,isMonthValid:p}=f5(c),{buildMatrix:v}=l5(),m=s.ref(null),y=s.ref(null),g=s.ref(!1),M=s.ref({}),x=s.ref(null),k=s.ref(null);s.onMounted(()=>{c.arrowNavigation&&v([D3(m),D3(y)],"actionRow"),b(),window.addEventListener("resize",b)}),s.onUnmounted(()=>{window.removeEventListener("resize",b)});const b=()=>{g.value=!1,setTimeout(()=>{var T,R;const Y=(T=x.value)==null?void 0:T.getBoundingClientRect(),e1=(R=k.value)==null?void 0:R.getBoundingClientRect();Y&&e1&&(M.value.maxWidth=`${e1.width-Y.width-20}px`),g.value=!0},0)},_=s.computed(()=>f.value.enabled&&!f.value.partialRange&&c.internalModelValue?c.internalModelValue.length===2:!0),C=s.computed(()=>!h.value(c.internalModelValue)||!p.value(c.internalModelValue)||!_.value),H=()=>{const T=r.value;return c.timePicker||c.monthPicker,T(Y3(c.internalModelValue))},V=()=>{const T=c.internalModelValue;return i.value.count>0?`${N(T[0])} - ${N(T[1])}`:[N(T[0]),N(T[1])]},N=T=>lk1(T,r.value,c.formatLocale,o.value.rangeSeparator,c.modelAuto,d()),L=s.computed(()=>!c.internalModelValue||!c.menuMount?"":typeof r.value=="string"?Array.isArray(c.internalModelValue)?c.internalModelValue.length===2&&c.internalModelValue[1]?V():u.value.enabled?c.internalModelValue.map(T=>`${N(T)}`):c.modelAuto?`${N(c.internalModelValue[0])}`:`${N(c.internalModelValue[0])} -`:N(c.internalModelValue):H()),w=()=>u.value.enabled?"; ":" - ",P=s.computed(()=>Array.isArray(L.value)?L.value.join(w()):L.value),j=()=>{h.value(c.internalModelValue)&&p.value(c.internalModelValue)&&_.value?a("select-date"):a("invalid-select")};return(T,R)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"actionRowRef",ref:k,class:"dp__action_row"},[T.$slots["action-row"]?s.renderSlot(T.$slots,"action-row",s.normalizeProps(s.mergeProps({key:0},{internalModelValue:T.internalModelValue,disabled:C.value,selectDate:()=>T.$emit("select-date"),closePicker:()=>T.$emit("close-picker")}))):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.unref(n).showPreview?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__selection_preview",title:P.value,style:s.normalizeStyle(M.value)},[T.$slots["action-preview"]&&g.value?s.renderSlot(T.$slots,"action-preview",{key:0,value:T.internalModelValue}):s.createCommentVNode("",!0),!T.$slots["action-preview"]&&g.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(P.value),1)],64)):s.createCommentVNode("",!0)],12,e_e)):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"actionBtnContainer",ref:x,class:"dp__action_buttons","data-dp-element":"action-row"},[T.$slots["action-buttons"]?s.renderSlot(T.$slots,"action-buttons",{key:0,value:T.internalModelValue}):s.createCommentVNode("",!0),T.$slots["action-buttons"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!s.unref(l).enabled&&s.unref(n).showCancel?(s.openBlock(),s.createElementBlock("button",{key:0,ref_key:"cancelButtonRef",ref:m,type:"button",class:"dp__action_button dp__action_cancel",onClick:R[0]||(R[0]=Y=>T.$emit("close-picker")),onKeydown:R[1]||(R[1]=Y=>s.unref(G4)(Y,()=>T.$emit("close-picker")))},s.toDisplayString(T.cancelText),545)):s.createCommentVNode("",!0),s.unref(n).showNow?(s.openBlock(),s.createElementBlock("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:R[2]||(R[2]=Y=>T.$emit("select-now")),onKeydown:R[3]||(R[3]=Y=>s.unref(G4)(Y,()=>T.$emit("select-now")))},s.toDisplayString(T.nowButtonLabel),33)):s.createCommentVNode("",!0),s.unref(n).showSelect?(s.openBlock(),s.createElementBlock("button",{key:2,ref_key:"selectButtonRef",ref:y,type:"button",class:"dp__action_button dp__action_select",disabled:C.value,"data-test":"select-button",onKeydown:R[4]||(R[4]=Y=>s.unref(G4)(Y,()=>j())),onClick:j},s.toDisplayString(T.selectText),41,t_e)):s.createCommentVNode("",!0)],64))],512)],64))],512))}}),c_e={class:"dp__selection_grid_header"},n_e=["aria-selected","aria-disabled","data-test","onClick","onKeydown","onMouseover"],r_e=["aria-label"],Yu=s.defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:a}){const{setSelectionGrid:c,buildMultiLevelMatrix:n,setMonthPicker:r}=l5(),i=a,o=e,{defaultedAriaLabels:l,defaultedTextInput:f,defaultedConfig:u}=a3(o),{hideNavigationButtons:d}=eU(),h=s.ref(!1),p=s.ref(null),v=s.ref(null),m=s.ref([]),y=s.ref(),g=s.ref(null),M=s.ref(0),x=s.ref(null);s.onBeforeUpdate(()=>{p.value=null}),s.onMounted(()=>{s.nextTick().then(()=>L()),o.noOverlayFocus||b(),k(!0)}),s.onUnmounted(()=>k(!1));const k=E=>{var S;o.arrowNavigation&&((S=o.headerRefs)!=null&&S.length?r(E):c(E))},b=()=>{var E;const S=D3(v);S&&(f.value.enabled||(p.value?(E=p.value)==null||E.focus({preventScroll:!0}):S.focus({preventScroll:!0})),h.value=S.clientHeight<S.scrollHeight)},_=s.computed(()=>({dp__overlay:!0,"dp--overlay-absolute":!o.useRelative,"dp--overlay-relative":o.useRelative})),C=s.computed(()=>o.useRelative?{height:`${o.height}px`,width:"260px"}:void 0),H=s.computed(()=>({dp__overlay_col:!0})),V=s.computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:h.value,dp__button_bottom:o.isLast})),N=s.computed(()=>{var E,S;return{dp__overlay_container:!0,dp__container_flex:((E=o.items)==null?void 0:E.length)<=6,dp__container_block:((S=o.items)==null?void 0:S.length)>6}});s.watch(()=>o.items,()=>L(!1),{deep:!0});const L=(E=!0)=>{s.nextTick().then(()=>{const S=D3(p),U=D3(v),G=D3(g),A=D3(x),B=G?G.getBoundingClientRect().height:0;U&&(U.getBoundingClientRect().height?M.value=U.getBoundingClientRect().height-B:M.value=u.value.modeHeight-B),S&&A&&E&&(A.scrollTop=S.offsetTop-A.offsetTop-(M.value/2-S.getBoundingClientRect().height)-B)})},w=E=>{E.disabled||i("selected",E.value)},P=()=>{i("toggle"),i("reset-flow")},j=()=>{o.escClose&&P()},T=(E,S,U,G)=>{E&&((S.active||S.value===o.focusValue)&&(p.value=E),o.arrowNavigation&&(Array.isArray(m.value[U])?m.value[U][G]=E:m.value[U]=[E],R()))},R=()=>{var E,S;const U=(E=o.headerRefs)!=null&&E.length?[o.headerRefs].concat(m.value):m.value.concat([o.skipButtonRef?[]:[g.value]]);n(Y3(U),(S=o.headerRefs)!=null&&S.length?"monthPicker":"selectionGrid")},Y=E=>{o.arrowNavigation||Va(E,u.value,!0)},e1=E=>{y.value=E,i("hover-value",E)},Z=()=>{if(P(),!o.isLast){const E=gCe(o.menuWrapRef??null,"action-row");if(E){const S=ak1(E);S==null||S.focus()}}},W=E=>{switch(E.key){case Xe.esc:return j();case Xe.arrowLeft:return Y(E);case Xe.arrowRight:return Y(E);case Xe.arrowUp:return Y(E);case Xe.arrowDown:return Y(E);default:return}},I=E=>{if(E.key===Xe.enter)return P();if(E.key===Xe.tab)return Z()};return t({focusGrid:b}),(E,S)=>{var U;return s.openBlock(),s.createElementBlock("div",{ref_key:"gridWrapRef",ref:v,class:s.normalizeClass(_.value),style:s.normalizeStyle(C.value),role:"dialog",tabindex:"0",onKeydown:W},[s.createElementVNode("div",{ref_key:"containerRef",ref:x,class:s.normalizeClass(N.value),role:"grid",style:s.normalizeStyle({"--dp-overlay-height":`${M.value}px`})},[s.createElementVNode("div",c_e,[s.renderSlot(E.$slots,"header")]),E.$slots.overlay?s.renderSlot(E.$slots,"overlay",{key:0}):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(E.items,(G,A)=>(s.openBlock(),s.createElementBlock("div",{key:A,class:s.normalizeClass(["dp__overlay_row",{dp__flex_row:E.items.length>=3}]),role:"row"},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(G,(B,Q)=>(s.openBlock(),s.createElementBlock("div",{key:B.value,ref_for:!0,ref:c1=>T(c1,B,A,Q),role:"gridcell",class:s.normalizeClass(H.value),"aria-selected":B.active||void 0,"aria-disabled":B.disabled||void 0,tabindex:"0","data-test":B.text,onClick:c1=>w(B),onKeydown:c1=>s.unref(G4)(c1,()=>w(B),!0),onMouseover:c1=>e1(B.value)},[s.createElementVNode("div",{class:s.normalizeClass(B.className)},[E.$slots.item?s.renderSlot(E.$slots,"item",{key:0,item:B}):s.createCommentVNode("",!0),E.$slots.item?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(B.text),1)],64))],2)],42,n_e))),128))],2))),128))],6),E.$slots["button-icon"]?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:0,ref_key:"toggleButton",ref:g,type:"button","aria-label":(U=s.unref(l))==null?void 0:U.toggleOverlay,class:s.normalizeClass(V.value),tabindex:"0",onClick:P,onKeydown:I},[s.renderSlot(E.$slots,"button-icon")],42,r_e)),[[s.vShow,!s.unref(d)(E.hideNavigation,E.type)]]):s.createCommentVNode("",!0)],38)}}}),aU=s.defineComponent({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean}},setup(e){const t=e,a=s.computed(()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0]),c=s.computed(()=>({dp__instance_calendar:t.multiCalendars>0}));return(n,r)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({dp__menu_inner:!n.stretch,"dp--menu--inner-stretched":n.stretch,dp__flex_display:n.multiCalendars>0,"dp--flex-display-collapsed":n.collapse})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.value,(i,o)=>(s.openBlock(),s.createElementBlock("div",{key:i,class:s.normalizeClass(c.value)},[s.renderSlot(n.$slots,"default",{instance:i,index:o})],2))),128))],2))}}),i_e=["aria-label","aria-disabled"],Pl=s.defineComponent({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const a=t,c=s.ref(null);return s.onMounted(()=>a("set-ref",c)),(n,r)=>(s.openBlock(),s.createElementBlock("button",{ref_key:"elRef",ref:c,type:"button",class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":n.ariaLabel,"aria-disabled":n.disabled||void 0,onClick:r[0]||(r[0]=i=>n.$emit("activate")),onKeydown:r[1]||(r[1]=i=>s.unref(G4)(i,()=>n.$emit("activate"),!0))},[s.createElementVNode("span",{class:s.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:n.disabled}])},[s.renderSlot(n.$slots,"default")],2)],40,i_e))}}),o_e={class:"dp--year-mode-picker"},s_e=["aria-label","data-test"],dk1=s.defineComponent({__name:"YearModePicker",props:{...P6,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:t}){const a=t,c=e,{showRightIcon:n,showLeftIcon:r}=eU(),{defaultedConfig:i,defaultedMultiCalendars:o,defaultedAriaLabels:l,defaultedTransitions:f}=a3(c),{showTransition:u,transitionName:d}=Uu(f),h=(m=!1,y)=>{a("toggle-year-picker",{flow:m,show:y})},p=m=>{a("year-select",m)},v=(m=!1)=>{a("handle-year",m)};return(m,y)=>{var g,M,x;return s.openBlock(),s.createElementBlock("div",o_e,[s.unref(r)(s.unref(o),e.instance)?(s.openBlock(),s.createBlock(Pl,{key:0,ref:"mpPrevIconRef","aria-label":(g=s.unref(l))==null?void 0:g.prevYear,disabled:e.isDisabled(!1),onActivate:y[0]||(y[0]=k=>v(!1))},{default:s.withCtx(()=>[m.$slots["arrow-left"]?s.renderSlot(m.$slots,"arrow-left",{key:0}):s.createCommentVNode("",!0),m.$slots["arrow-left"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(P11),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.createElementVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":(M=s.unref(l))==null?void 0:M.openYearsOverlay,"data-test":`year-mode-btn-${e.instance}`,onClick:y[1]||(y[1]=()=>h(!1)),onKeydown:y[2]||(y[2]=s.withKeys(()=>h(!1),["enter"]))},[m.$slots.year?s.renderSlot(m.$slots,"year",{key:0,year:e.year}):s.createCommentVNode("",!0),m.$slots.year?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(e.year),1)],64))],40,s_e),s.unref(n)(s.unref(o),e.instance)?(s.openBlock(),s.createBlock(Pl,{key:1,ref:"mpNextIconRef","aria-label":(x=s.unref(l))==null?void 0:x.nextYear,disabled:e.isDisabled(!0),onActivate:y[3]||(y[3]=k=>v(!0))},{default:s.withCtx(()=>[m.$slots["arrow-right"]?s.renderSlot(m.$slots,"arrow-right",{key:0}):s.createCommentVNode("",!0),m.$slots["arrow-right"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(O11),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:s.unref(d)(e.showYearPicker),css:s.unref(u)},{default:s.withCtx(()=>[e.showYearPicker?(s.openBlock(),s.createBlock(Yu,{key:0,items:e.items,"text-input":m.textInput,"esc-close":m.escClose,config:m.config,"is-last":m.autoApply&&!s.unref(i).keepActionRow,"hide-navigation":m.hideNavigation,"aria-labels":m.ariaLabels,type:"year",onToggle:h,onSelected:y[4]||(y[4]=k=>p(k))},s.createSlots({"button-icon":s.withCtx(()=>[m.$slots["calendar-icon"]?s.renderSlot(m.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),m.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(Ks),{key:1}))]),_:2},[m.$slots["year-overlay-value"]?{name:"item",fn:s.withCtx(({item:k})=>[s.renderSlot(m.$slots,"year-overlay-value",{text:k.text,value:k.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels"])):s.createCommentVNode("",!0)]),_:3},8,["name","css"])])}}}),U11=(e,t,a)=>{if(t.value&&Array.isArray(t.value))if(t.value.some(c=>I2(e,c))){const c=t.value.filter(n=>!I2(n,e));t.value=c.length?c:null}else(a&&+a>t.value.length||!a)&&t.value.push(e);else t.value=[e]},W11=(e,t,a)=>{let c=e.value?e.value.slice():[];return c.length===2&&c[1]!==null&&(c=[]),c.length?r3(t,c[0])?(c.unshift(t),a("range-start",c[0]),a("range-start",c[1])):(c[1]=t,a("range-end",t)):(c=[t],a("range-start",t)),c},cU=(e,t,a,c)=>{e&&(e[0]&&e[1]&&a&&t("auto-apply"),e[0]&&!e[1]&&c&&a&&t("auto-apply"))},hk1=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(t=>bt($1(t),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=bt($1(e.value),e.timezone))},pk1=(e,t,a,c)=>Array.isArray(t.value)&&(t.value.length===2||t.value.length===1&&c.value.partialRange)?c.value.fixedStart&&(x3(e,t.value[0])||I2(e,t.value[0]))?[t.value[0],e]:c.value.fixedEnd&&(r3(e,t.value[1])||I2(e,t.value[1]))?[e,t.value[1]]:(a("invalid-fixed-range",e),t.value):[],mk1=({multiCalendars:e,highlight:t,propDates:a,calendars:c,modelValue:n,props:r,filters:i,year:o,month:l,emit:f})=>{const u=s.computed(()=>F11(r.yearRange,r.locale,r.reverseYears)),d=s.ref([!1]),h=s.computed(()=>(_,C)=>{const H=ze(t6(new Date),{month:l.value(_),year:o.value(_)}),V=C?IM1(H):L11(H);return sk1(V,a.value.maxDate,a.value.minDate,r.preventMinMaxNavigation,C)}),p=()=>{for(let _=0;_<e.value.count;_++)if(_===0)c.value[_]=c.value[0];else{const C=ze($1(),c.value[_-1]);c.value[_]={month:P2(C),year:L2(H11(C,1))}}},v=_=>{if(!_)return p();const C=ze($1(),c.value[_]);return c.value[0].year=L2(KM1(C,e.value.count-1)),p()},m=_=>r.focusStartDate?_[0]:_[1]?_[1]:_[0],y=()=>{if(n.value){const _=Array.isArray(n.value)?m(n.value):n.value;c.value[0]={month:P2(_),year:L2(_)}}};s.onMounted(()=>{y(),e.value.count&&p()});const g=(_,C)=>{c.value[C].year=_,f("update-month-year",{instance:C,year:_,month:c.value[C].month}),e.value.count&&!e.value.solo&&v(C)},M=s.computed(()=>_=>As(u.value,C=>{var H;const V=o.value(_)===C.value,N=jf(C.value,Ts(a.value.minDate),Ts(a.value.maxDate))||((H=i.value.years)==null?void 0:H.includes(o.value(_))),L=j11(t.value,C.value);return{active:V,disabled:N,highlighted:L}})),x=(_,C)=>{g(_,C),b(C)},k=(_,C=!1)=>{if(!h.value(_,C)){const H=C?o.value(_)+1:o.value(_)-1;g(H,_)}},b=(_,C=!1,H)=>{C||f("reset-flow"),H!==void 0?d.value[_]=H:d.value[_]=!d.value[_],d.value[_]?f("overlay-toggle",{open:!0,overlay:u4.year}):(f("overlay-closed"),f("overlay-toggle",{open:!1,overlay:u4.year}))};return{isDisabled:h,groupedYears:M,showYearPicker:d,selectYear:g,toggleYearPicker:b,handleYearSelect:x,handleYear:k}},l_e=(e,t)=>{const{defaultedMultiCalendars:a,defaultedAriaLabels:c,defaultedTransitions:n,defaultedConfig:r,defaultedRange:i,defaultedHighlight:o,propDates:l,defaultedTz:f,defaultedFilters:u,defaultedMultiDates:d}=a3(e),{modelValue:h,year:p,month:v,calendars:m}=Wu(e,t),y=s.computed(()=>ek1(e.formatLocale,e.locale,e.monthNameFormat)),g=s.ref(null),{checkMinMaxRange:M}=f5(e),{selectYear:x,groupedYears:k,showYearPicker:b,toggleYearPicker:_,handleYearSelect:C,handleYear:H,isDisabled:V}=mk1({modelValue:h,multiCalendars:a,highlight:o,calendars:m,year:p,propDates:l,month:v,filters:u,props:e,emit:t});s.onMounted(()=>{e.startDate&&(h.value&&e.focusStartDate||!h.value)&&x(L2($1(e.startDate)),0)});const N=S=>S?{month:P2(S),year:L2(S)}:{month:null,year:null},L=()=>h.value?Array.isArray(h.value)?h.value.map(S=>N(S)):N(h.value):N(),w=(S,U)=>{const G=m.value[S],A=L();return Array.isArray(A)?A.some(B=>B.year===(G==null?void 0:G.year)&&B.month===U):(G==null?void 0:G.year)===A.year&&U===A.month},P=(S,U,G)=>{var A,B;const Q=L();return Array.isArray(Q)?p.value(U)===((A=Q[G])==null?void 0:A.year)&&S===((B=Q[G])==null?void 0:B.month):!1},j=(S,U)=>{if(i.value.enabled){const G=L();if(Array.isArray(h.value)&&Array.isArray(G)){const A=P(S,U,0)||P(S,U,1),B=s8(t6($1()),S,p.value(U));return Jj(h.value,g.value,B)&&!A}return!1}return!1},T=s.computed(()=>S=>As(y.value,U=>{var G;const A=w(S,U.value),B=jf(U.value,nk1(p.value(S),l.value.minDate),rk1(p.value(S),l.value.maxDate))||wCe(l.value.disabledDates,p.value(S)).includes(U.value)||((G=u.value.months)==null?void 0:G.includes(U.value)),Q=j(U.value,S),c1=fk1(o.value,U.value,p.value(S));return{active:A,disabled:B,isBetween:Q,highlighted:c1}})),R=(S,U)=>s8(t6($1()),S,p.value(U)),Y=(S,U)=>{const G=h.value?h.value:t6(new Date);h.value=s8(G,S,p.value(U)),t("auto-apply"),t("update-flow-step")},e1=(S,U)=>{const G=R(S,U);i.value.fixedEnd||i.value.fixedStart?h.value=pk1(G,h,t,i):h.value?M(G,h.value)&&(h.value=W11(h,R(S,U),t)):h.value=[R(S,U)],s.nextTick().then(()=>{cU(h.value,t,e.autoApply,e.modelAuto)})},Z=(S,U)=>{U11(R(S,U),h,d.value.limit),t("auto-apply",!0)},W=(S,U)=>(m.value[U].month=S,E(U,m.value[U].year,S),d.value.enabled?Z(S,U):i.value.enabled?e1(S,U):Y(S,U)),I=(S,U)=>{x(S,U),E(U,S,null)},E=(S,U,G)=>{let A=G;if(!A&&A!==0){const B=L();A=Array.isArray(B)?B[S].month:B.month}t("update-month-year",{instance:S,year:U,month:A})};return{groupedMonths:T,groupedYears:k,year:p,isDisabled:V,defaultedMultiCalendars:a,defaultedAriaLabels:c,defaultedTransitions:n,defaultedConfig:r,showYearPicker:b,modelValue:h,presetDate:(S,U)=>{hk1({value:S,modelValue:h,range:i.value.enabled,timezone:U?void 0:f.value.timezone}),t("auto-apply")},setHoverDate:(S,U)=>{g.value=R(S,U)},selectMonth:W,selectYear:I,toggleYearPicker:_,handleYearSelect:C,handleYear:H,getModelMonthYear:L}},f_e=s.defineComponent({compatConfig:{MODE:3},__name:"MonthPicker",props:{...P6},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=s.useSlots(),r=o0(n,"yearMode"),i=e;s.onMounted(()=>{i.shadow||c("mount",null)});const{groupedMonths:o,groupedYears:l,year:f,isDisabled:u,defaultedMultiCalendars:d,defaultedConfig:h,showYearPicker:p,modelValue:v,presetDate:m,setHoverDate:y,selectMonth:g,selectYear:M,toggleYearPicker:x,handleYearSelect:k,handleYear:b,getModelMonthYear:_}=l_e(i,c);return t({getSidebarProps:()=>({modelValue:v,year:f,getModelMonthYear:_,selectMonth:g,selectYear:M,handleYear:b}),presetDate:m,toggleYearPicker:C=>x(0,C)}),(C,H)=>(s.openBlock(),s.createBlock(aU,{"multi-calendars":s.unref(d).count,collapse:C.collapse,stretch:""},{default:s.withCtx(({instance:V})=>[C.$slots["top-extra"]?s.renderSlot(C.$slots,"top-extra",{key:0,value:C.internalModelValue}):s.createCommentVNode("",!0),C.$slots["month-year"]?s.renderSlot(C.$slots,"month-year",s.normalizeProps(s.mergeProps({key:1},{year:s.unref(f),months:s.unref(o)(V),years:s.unref(l)(V),selectMonth:s.unref(g),selectYear:s.unref(M),instance:V}))):(s.openBlock(),s.createBlock(Yu,{key:2,items:s.unref(o)(V),"arrow-navigation":C.arrowNavigation,"is-last":C.autoApply&&!s.unref(h).keepActionRow,"esc-close":C.escClose,height:s.unref(h).modeHeight,config:C.config,"no-overlay-focus":!!(C.noOverlayFocus||C.textInput),"use-relative":"",type:"month",onSelected:N=>s.unref(g)(N,V),onHoverValue:N=>s.unref(y)(N,V)},s.createSlots({header:s.withCtx(()=>[s.createVNode(dk1,s.mergeProps(C.$props,{items:s.unref(l)(V),instance:V,"show-year-picker":s.unref(p)[V],year:s.unref(f)(V),"is-disabled":N=>s.unref(u)(V,N),onHandleYear:N=>s.unref(b)(V,N),onYearSelect:N=>s.unref(k)(N,V),onToggleYearPicker:N=>s.unref(x)(V,N==null?void 0:N.flow,N==null?void 0:N.show)}),s.createSlots({_:2},[s.renderList(s.unref(r),(N,L)=>({name:N,fn:s.withCtx(w=>[s.renderSlot(C.$slots,N,s.normalizeProps(s.guardReactiveProps(w)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[C.$slots["month-overlay-value"]?{name:"item",fn:s.withCtx(({item:N})=>[s.renderSlot(C.$slots,"month-overlay-value",{text:N.text,value:N.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse"]))}}),u_e=(e,t)=>{const{modelValue:a}=Wu(e,t),c=s.ref(null),{defaultedHighlight:n,defaultedMultiDates:r,defaultedFilters:i,defaultedRange:o,propDates:l}=a3(e),f=s.ref();s.onMounted(()=>{e.startDate&&(a.value&&e.focusStartDate||!a.value)&&(f.value=L2($1(e.startDate)))});const u=v=>Array.isArray(a.value)?a.value.some(m=>L2(m)===v):a.value?L2(a.value)===v:!1,d=v=>o.value.enabled&&Array.isArray(a.value)?Jj(a.value,c.value,p(v)):!1,h=s.computed(()=>As(F11(e.yearRange,e.locale,e.reverseYears),v=>{const m=u(v.value),y=jf(v.value,Ts(l.value.minDate),Ts(l.value.maxDate))||i.value.years.includes(v.value),g=d(v.value)&&!m,M=j11(n.value,v.value);return{active:m,disabled:y,isBetween:g,highlighted:M}})),p=v=>ft(t6(new Date),v);return{groupedYears:h,modelValue:a,focusYear:f,setHoverValue:v=>{c.value=ft(t6(new Date),v)},selectYear:v=>{var m;if(t("update-month-year",{instance:0,year:v}),r.value.enabled)return a.value?Array.isArray(a.value)&&(((m=a.value)==null?void 0:m.map(y=>L2(y))).includes(v)?a.value=a.value.filter(y=>L2(y)!==v):a.value.push(ft(p0($1()),v))):a.value=[ft(p0($1()),v)],t("auto-apply",!0);o.value.enabled?(a.value=W11(a,p(v),t),s.nextTick().then(()=>{cU(a.value,t,e.autoApply,e.modelAuto)})):(a.value=p(v),t("auto-apply"))}}},d_e=s.defineComponent({compatConfig:{MODE:3},__name:"YearPicker",props:{...P6},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:t,emit:a}){const c=a,n=e,{groupedYears:r,modelValue:i,focusYear:o,selectYear:l,setHoverValue:f}=u_e(n,c),{defaultedConfig:u}=a3(n);return t({getSidebarProps:()=>({modelValue:i,selectYear:l})}),(d,h)=>(s.openBlock(),s.createElementBlock("div",null,[d.$slots["top-extra"]?s.renderSlot(d.$slots,"top-extra",{key:0,value:d.internalModelValue}):s.createCommentVNode("",!0),d.$slots["month-year"]?s.renderSlot(d.$slots,"month-year",s.normalizeProps(s.mergeProps({key:1},{years:s.unref(r),selectYear:s.unref(l)}))):(s.openBlock(),s.createBlock(Yu,{key:2,items:s.unref(r),"is-last":d.autoApply&&!s.unref(u).keepActionRow,height:s.unref(u).modeHeight,config:d.config,"no-overlay-focus":!!(d.noOverlayFocus||d.textInput),"focus-value":s.unref(o),type:"year","use-relative":"",onSelected:s.unref(l),onHoverValue:s.unref(f)},s.createSlots({_:2},[d.$slots["year-overlay-value"]?{name:"item",fn:s.withCtx(({item:p})=>[s.renderSlot(d.$slots,"year-overlay-value",{text:p.text,value:p.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),h_e={key:0,class:"dp__time_input"},p_e=["data-test","aria-label","onKeydown","onClick","onMousedown"],m_e=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),v_e=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),y_e=["aria-label","disabled","data-test","onKeydown","onClick"],g_e=["data-test","aria-label","onKeydown","onClick","onMousedown"],M_e=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),k_e=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),x_e={key:0},b_e=["aria-label"],z_e=s.defineComponent({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...P6},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:t,emit:a}){const c=a,n=e,{setTimePickerElements:r,setTimePickerBackRef:i}=l5(),{defaultedAriaLabels:o,defaultedTransitions:l,defaultedFilters:f,defaultedConfig:u,defaultedRange:d}=a3(n),{transitionName:h,showTransition:p}=Uu(l),v=s.reactive({hours:!1,minutes:!1,seconds:!1}),m=s.ref("AM"),y=s.ref(null),g=s.ref([]),M=s.ref();s.onMounted(()=>{c("mounted")});const x=F=>ze(new Date,{hours:F.hours,minutes:F.minutes,seconds:n.enableSeconds?F.seconds:0,milliseconds:0}),k=s.computed(()=>F=>R(F,n[F])||_(F,n[F])),b=s.computed(()=>({hours:n.hours,minutes:n.minutes,seconds:n.seconds})),_=(F,l1)=>d.value.enabled&&!d.value.disableTimeRangeValidation?!n.validateTime(F,l1):!1,C=(F,l1)=>{if(d.value.enabled&&!d.value.disableTimeRangeValidation){const k1=l1?+n[`${F}Increment`]:-+n[`${F}Increment`],f1=n[F]+k1;return!n.validateTime(F,f1)}return!1},H=s.computed(()=>F=>!I(+n[F]+ +n[`${F}Increment`],F)||C(F,!0)),V=s.computed(()=>F=>!I(+n[F]-+n[`${F}Increment`],F)||C(F,!1)),N=(F,l1)=>NM1(ze($1(),F),l1),L=(F,l1)=>oCe(ze($1(),F),l1),w=s.computed(()=>({dp__time_col:!0,dp__time_col_block:!n.timePickerInline,dp__time_col_reg_block:!n.enableSeconds&&n.is24&&!n.timePickerInline,dp__time_col_reg_inline:!n.enableSeconds&&n.is24&&n.timePickerInline,dp__time_col_reg_with_button:!n.enableSeconds&&!n.is24,dp__time_col_sec:n.enableSeconds&&n.is24,dp__time_col_sec_with_button:n.enableSeconds&&!n.is24})),P=s.computed(()=>{const F=[{type:"hours"}];return n.enableMinutes&&F.push({type:"",separator:!0},{type:"minutes"}),n.enableSeconds&&F.push({type:"",separator:!0},{type:"seconds"}),F}),j=s.computed(()=>P.value.filter(F=>!F.separator)),T=s.computed(()=>F=>{if(F==="hours"){const l1=B(+n.hours);return{text:l1<10?`0${l1}`:`${l1}`,value:l1}}return{text:n[F]<10?`0${n[F]}`:`${n[F]}`,value:n[F]}}),R=(F,l1)=>{var k1;if(!n.disabledTimesConfig)return!1;const f1=n.disabledTimesConfig(n.order,F==="hours"?l1:void 0);return f1[F]?!!((k1=f1[F])!=null&&k1.includes(l1)):!0},Y=(F,l1)=>l1!=="hours"||m.value==="AM"?F:F+12,e1=F=>{const l1=n.is24?24:12,k1=F==="hours"?l1:60,f1=+n[`${F}GridIncrement`],t1=F==="hours"&&!n.is24?f1:0,u1=[];for(let o1=t1;o1<k1;o1+=f1)u1.push({value:n.is24?o1:Y(o1,F),text:o1<10?`0${o1}`:`${o1}`});return F==="hours"&&!n.is24&&u1.unshift({value:m.value==="PM"?12:0,text:"12"}),As(u1,o1=>({active:!1,disabled:f.value.times[F].includes(o1.value)||!I(o1.value,F)||R(F,o1.value)||_(F,o1.value)}))},Z=F=>F>=0?F:59,W=F=>F>=0?F:23,I=(F,l1)=>{const k1=n.minTime?x(zY(n.minTime)):null,f1=n.maxTime?x(zY(n.maxTime)):null,t1=x(zY(b.value,l1,l1==="minutes"||l1==="seconds"?Z(F):W(F)));return k1&&f1?(qf(t1,f1)||Io(t1,f1))&&(Ss(t1,k1)||Io(t1,k1)):k1?Ss(t1,k1)||Io(t1,k1):f1?qf(t1,f1)||Io(t1,f1):!0},E=F=>n[`no${F[0].toUpperCase()+F.slice(1)}Overlay`],S=F=>{E(F)||(v[F]=!v[F],v[F]?c("overlay-opened",F):c("overlay-closed",F))},U=F=>F==="hours"?_8:F==="minutes"?Ya:Vs,G=()=>{M.value&&clearTimeout(M.value)},A=(F,l1=!0,k1)=>{const f1=l1?N:L,t1=l1?+n[`${F}Increment`]:-+n[`${F}Increment`];I(+n[F]+t1,F)&&c(`update:${F}`,U(F)(f1({[F]:+n[F]},{[F]:+n[`${F}Increment`]}))),!(k1!=null&&k1.keyboard)&&u.value.timeArrowHoldThreshold&&(M.value=setTimeout(()=>{A(F,l1)},u.value.timeArrowHoldThreshold))},B=F=>n.is24?F:(F>=12?m.value="PM":m.value="AM",hCe(F)),Q=()=>{m.value==="PM"?(m.value="AM",c("update:hours",n.hours-12)):(m.value="PM",c("update:hours",n.hours+12)),c("am-pm-change",m.value)},c1=F=>{v[F]=!0},K=(F,l1,k1)=>{if(F&&n.arrowNavigation){Array.isArray(g.value[l1])?g.value[l1][k1]=F:g.value[l1]=[F];const f1=g.value.reduce((t1,u1)=>u1.map((o1,p1)=>[...t1[p1]||[],u1[p1]]),[]);i(n.closeTimePickerBtn),y.value&&(f1[1]=f1[1].concat(y.value)),r(f1,n.order)}},a1=(F,l1)=>(S(F),c(`update:${F}`,l1));return t({openChildCmp:c1}),(F,l1)=>{var k1;return F.disabled?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",h_e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(P.value,(f1,t1)=>{var u1,o1,p1;return s.openBlock(),s.createElementBlock("div",{key:t1,class:s.normalizeClass(w.value)},[f1.separator?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(" : ")],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("button",{ref_for:!0,ref:b1=>K(b1,t1,0),type:"button",class:s.normalizeClass({dp__btn:!0,dp__inc_dec_button:!F.timePickerInline,dp__inc_dec_button_inline:F.timePickerInline,dp__tp_inline_btn_top:F.timePickerInline,dp__inc_dec_button_disabled:H.value(f1.type)}),"data-test":`${f1.type}-time-inc-btn-${n.order}`,"aria-label":(u1=s.unref(o))==null?void 0:u1.incrementValue(f1.type),tabindex:"0",onKeydown:b1=>s.unref(G4)(b1,()=>A(f1.type,!0,{keyboard:!0}),!0),onClick:b1=>s.unref(u).timeArrowHoldThreshold?void 0:A(f1.type,!0),onMousedown:b1=>s.unref(u).timeArrowHoldThreshold?A(f1.type,!0):void 0,onMouseup:G},[n.timePickerInline?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[m_e,v_e],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[F.$slots["arrow-up"]?s.renderSlot(F.$slots,"arrow-up",{key:0}):s.createCommentVNode("",!0),F.$slots["arrow-up"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(B11),{key:1}))],64))],42,p_e),s.createElementVNode("button",{ref_for:!0,ref:b1=>K(b1,t1,1),type:"button","aria-label":(o1=s.unref(o))==null?void 0:o1.openTpOverlay(f1.type),class:s.normalizeClass({dp__time_display:!0,dp__time_display_block:!F.timePickerInline,dp__time_display_inline:F.timePickerInline,"dp--time-invalid":k.value(f1.type),"dp--time-overlay-btn":!k.value(f1.type)}),disabled:E(f1.type),tabindex:"0","data-test":`${f1.type}-toggle-overlay-btn-${n.order}`,onKeydown:b1=>s.unref(G4)(b1,()=>S(f1.type),!0),onClick:b1=>S(f1.type)},[F.$slots[f1.type]?s.renderSlot(F.$slots,f1.type,{key:0,text:T.value(f1.type).text,value:T.value(f1.type).value}):s.createCommentVNode("",!0),F.$slots[f1.type]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(T.value(f1.type).text),1)],64))],42,y_e),s.createElementVNode("button",{ref_for:!0,ref:b1=>K(b1,t1,2),type:"button",class:s.normalizeClass({dp__btn:!0,dp__inc_dec_button:!F.timePickerInline,dp__inc_dec_button_inline:F.timePickerInline,dp__tp_inline_btn_bottom:F.timePickerInline,dp__inc_dec_button_disabled:V.value(f1.type)}),"data-test":`${f1.type}-time-dec-btn-${n.order}`,"aria-label":(p1=s.unref(o))==null?void 0:p1.decrementValue(f1.type),tabindex:"0",onKeydown:b1=>s.unref(G4)(b1,()=>A(f1.type,!1,{keyboard:!0}),!0),onClick:b1=>s.unref(u).timeArrowHoldThreshold?void 0:A(f1.type,!1),onMousedown:b1=>s.unref(u).timeArrowHoldThreshold?A(f1.type,!1):void 0,onMouseup:G},[n.timePickerInline?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[M_e,k_e],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[F.$slots["arrow-down"]?s.renderSlot(F.$slots,"arrow-down",{key:0}):s.createCommentVNode("",!0),F.$slots["arrow-down"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(R11),{key:1}))],64))],42,g_e)],64))],2)}),128)),F.is24?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",x_e,[F.$slots["am-pm-button"]?s.renderSlot(F.$slots,"am-pm-button",{key:0,toggle:Q,value:m.value}):s.createCommentVNode("",!0),F.$slots["am-pm-button"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:y,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(k1=s.unref(o))==null?void 0:k1.amPmButton,tabindex:"0",onClick:Q,onKeydown:l1[0]||(l1[0]=f1=>s.unref(G4)(f1,()=>Q(),!0))},s.toDisplayString(m.value),41,b_e))])),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(j.value,(f1,t1)=>(s.openBlock(),s.createBlock(s.Transition,{key:t1,name:s.unref(h)(v[f1.type]),css:s.unref(p)},{default:s.withCtx(()=>[v[f1.type]?(s.openBlock(),s.createBlock(Yu,{key:0,items:e1(f1.type),"is-last":F.autoApply&&!s.unref(u).keepActionRow,"esc-close":F.escClose,type:f1.type,"text-input":F.textInput,config:F.config,"arrow-navigation":F.arrowNavigation,"aria-labels":F.ariaLabels,onSelected:u1=>a1(f1.type,u1),onToggle:u1=>S(f1.type),onResetFlow:l1[1]||(l1[1]=u1=>F.$emit("reset-flow"))},s.createSlots({"button-icon":s.withCtx(()=>[F.$slots["clock-icon"]?s.renderSlot(F.$slots,"clock-icon",{key:0}):s.createCommentVNode("",!0),F.$slots["clock-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(F.timePickerInline?s.unref(Ks):s.unref(I11)),{key:1}))]),_:2},[F.$slots[`${f1.type}-overlay-value`]?{name:"item",fn:s.withCtx(({item:u1})=>[s.renderSlot(F.$slots,`${f1.type}-overlay-value`,{text:u1.text,value:u1.value})]),key:"0"}:void 0,F.$slots[`${f1.type}-overlay-header`]?{name:"header",fn:s.withCtx(()=>[s.renderSlot(F.$slots,`${f1.type}-overlay-header`,{toggle:()=>S(f1.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","onSelected","onToggle"])):s.createCommentVNode("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),C_e={class:"dp--tp-wrap"},__e=["aria-label","tabindex"],w_e=["tabindex"],H_e=["aria-label"],vk1=s.defineComponent({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...P6},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:a}){const c=a,n=e,{buildMatrix:r,setTimePicker:i}=l5(),o=s.useSlots(),{defaultedTransitions:l,defaultedAriaLabels:f,defaultedTextInput:u,defaultedConfig:d,defaultedRange:h}=a3(n),{transitionName:p,showTransition:v}=Uu(l),{hideNavigationButtons:m}=eU(),y=s.ref(null),g=s.ref(null),M=s.ref([]),x=s.ref(null);s.onMounted(()=>{c("mount"),!n.timePicker&&n.arrowNavigation?r([D3(y.value)],"time"):i(!0,n.timePicker)});const k=s.computed(()=>h.value.enabled&&n.modelAuto?tk1(n.internalModelValue):!0),b=s.ref(!1),_=Y=>({hours:Array.isArray(n.hours)?n.hours[Y]:n.hours,minutes:Array.isArray(n.minutes)?n.minutes[Y]:n.minutes,seconds:Array.isArray(n.seconds)?n.seconds[Y]:n.seconds}),C=s.computed(()=>{const Y=[];if(h.value.enabled)for(let e1=0;e1<2;e1++)Y.push(_(e1));else Y.push(_(0));return Y}),H=(Y,e1=!1,Z="")=>{e1||c("reset-flow"),b.value=Y,c(Y?"overlay-opened":"overlay-closed",u4.time),n.arrowNavigation&&i(Y),s.nextTick(()=>{Z!==""&&M.value[0]&&M.value[0].openChildCmp(Z)})},V=s.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:n.autoApply&&!d.value.keepActionRow})),N=o0(o,"timePicker"),L=(Y,e1,Z)=>h.value.enabled?e1===0?[Y,C.value[1][Z]]:[C.value[0][Z],Y]:Y,w=Y=>{c("update:hours",Y)},P=Y=>{c("update:minutes",Y)},j=Y=>{c("update:seconds",Y)},T=()=>{if(x.value&&!u.value.enabled&&!n.noOverlayFocus){const Y=ak1(x.value);Y&&Y.focus({preventScroll:!0})}},R=Y=>{c("overlay-closed",Y)};return t({toggleTimePicker:H}),(Y,e1)=>{var Z;return s.openBlock(),s.createElementBlock("div",C_e,[!Y.timePicker&&!Y.timePickerInline?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:0,ref_key:"openTimePickerBtn",ref:y,type:"button",class:s.normalizeClass(V.value),"aria-label":(Z=s.unref(f))==null?void 0:Z.openTimePicker,tabindex:Y.noOverlayFocus?void 0:0,"data-test":"open-time-picker-btn",onKeydown:e1[0]||(e1[0]=W=>s.unref(G4)(W,()=>H(!0))),onClick:e1[1]||(e1[1]=W=>H(!0))},[Y.$slots["clock-icon"]?s.renderSlot(Y.$slots,"clock-icon",{key:0}):s.createCommentVNode("",!0),Y.$slots["clock-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(I11),{key:1}))],42,__e)),[[s.vShow,!s.unref(m)(Y.hideNavigation,"time")]]):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:s.unref(p)(b.value),css:s.unref(v)&&!Y.timePickerInline},{default:s.withCtx(()=>{var W;return[b.value||Y.timePicker||Y.timePickerInline?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"overlayRef",ref:x,class:s.normalizeClass({dp__overlay:!Y.timePickerInline,"dp--overlay-absolute":!n.timePicker&&!Y.timePickerInline,"dp--overlay-relative":n.timePicker}),style:s.normalizeStyle(Y.timePicker?{height:`${s.unref(d).modeHeight}px`}:void 0),tabindex:Y.timePickerInline?void 0:0},[s.createElementVNode("div",{class:s.normalizeClass(Y.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[Y.$slots["time-picker-overlay"]?s.renderSlot(Y.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:w,setMinutes:P,setSeconds:j}):s.createCommentVNode("",!0),Y.$slots["time-picker-overlay"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(Y.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.value,(I,E)=>s.withDirectives((s.openBlock(),s.createBlock(z_e,s.mergeProps({key:E,ref_for:!0},{...Y.$props,order:E,hours:I.hours,minutes:I.minutes,seconds:I.seconds,closeTimePickerBtn:g.value,disabledTimesConfig:e.disabledTimesConfig,disabled:E===0?Y.fixedStart:Y.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:M,"validate-time":(S,U)=>e.validateTime(S,L(U,E,S)),"onUpdate:hours":S=>w(L(S,E,"hours")),"onUpdate:minutes":S=>P(L(S,E,"minutes")),"onUpdate:seconds":S=>j(L(S,E,"seconds")),onMounted:T,onOverlayClosed:R,onOverlayOpened:e1[2]||(e1[2]=S=>Y.$emit("overlay-opened",S)),onAmPmChange:e1[3]||(e1[3]=S=>Y.$emit("am-pm-change",S))}),s.createSlots({_:2},[s.renderList(s.unref(N),(S,U)=>({name:S,fn:s.withCtx(G=>[s.renderSlot(Y.$slots,S,s.mergeProps({ref_for:!0},G))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[s.vShow,E===0?!0:k.value]])),128))],2)),!Y.timePicker&&!Y.timePickerInline?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:2,ref_key:"closeTimePickerBtn",ref:g,type:"button",class:s.normalizeClass(V.value),"aria-label":(W=s.unref(f))==null?void 0:W.closeTimePicker,tabindex:"0",onKeydown:e1[4]||(e1[4]=I=>s.unref(G4)(I,()=>H(!1))),onClick:e1[5]||(e1[5]=I=>H(!1))},[Y.$slots["calendar-icon"]?s.renderSlot(Y.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),Y.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(Ks),{key:1}))],42,H_e)),[[s.vShow,!s.unref(m)(Y.hideNavigation,"time")]]):s.createCommentVNode("",!0)],2)],14,w_e)):s.createCommentVNode("",!0)]}),_:3},8,["name","css"])])}}}),yk1=(e,t,a,c)=>{const{defaultedRange:n}=a3(e),r=(x,k)=>Array.isArray(t[x])?t[x][k]:t[x],i=x=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[x]:t.seconds:0,o=(x,k)=>x?k!==void 0?Sa(x,r("hours",k),r("minutes",k),i(k)):Sa(x,t.hours,t.minutes,i()):D11($1(),i(k)),l=(x,k)=>{t[x]=k},f=s.computed(()=>e.modelAuto&&n.value.enabled?Array.isArray(a.value)?a.value.length>1:!1:n.value.enabled),u=(x,k)=>{const b=Object.fromEntries(Object.keys(t).map(_=>_===x?[_,k]:[_,t[_]].slice()));if(f.value&&!n.value.disableTimeRangeValidation){const _=H=>a.value?Sa(a.value[H],b.hours[H],b.minutes[H],b.seconds[H]):null,C=H=>E11(a.value[H],0);return!(I2(_(0),_(1))&&(Ss(_(0),C(1))||qf(_(1),C(0))))}return!0},d=(x,k)=>{u(x,k)&&(l(x,k),c&&c())},h=x=>{d("hours",x)},p=x=>{d("minutes",x)},v=x=>{d("seconds",x)},m=(x,k,b,_)=>{k&&h(x),!k&&!b&&p(x),b&&v(x),a.value&&_(a.value)},y=x=>{if(x){const k=Array.isArray(x),b=k?[+x[0].hours,+x[1].hours]:+x.hours,_=k?[+x[0].minutes,+x[1].minutes]:+x.minutes,C=k?[+x[0].seconds,+x[1].seconds]:+x.seconds;l("hours",b),l("minutes",_),e.enableSeconds&&l("seconds",C)}},g=(x,k)=>{const b={hours:Array.isArray(t.hours)?t.hours[x]:t.hours,disabledArr:[]};return(k||k===0)&&(b.hours=k),Array.isArray(e.disabledTimes)&&(b.disabledArr=n.value.enabled&&Array.isArray(e.disabledTimes[x])?e.disabledTimes[x]:e.disabledTimes),b},M=s.computed(()=>(x,k)=>{var b;if(Array.isArray(e.disabledTimes)){const{disabledArr:_,hours:C}=g(x,k),H=_.filter(V=>+V.hours===C);return((b=H[0])==null?void 0:b.minutes)==="*"?{hours:[C],minutes:void 0,seconds:void 0}:{hours:[],minutes:(H==null?void 0:H.map(V=>+V.minutes))??[],seconds:(H==null?void 0:H.map(V=>V.seconds?+V.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:l,updateHours:h,updateMinutes:p,updateSeconds:v,getSetDateTime:o,updateTimeValues:m,getSecondsValue:i,assignStartTime:y,validateTime:u,disabledTimesConfig:M}},L_e=(e,t)=>{const{modelValue:a,time:c}=Wu(e,t),{defaultedStartTime:n,defaultedRange:r}=a3(e),{updateTimeValues:i,getSetDateTime:o,setTime:l,assignStartTime:f,disabledTimesConfig:u,validateTime:d}=yk1(e,c,a,h);function h(){t("update-flow-step")}const p=k=>{const{hours:b,minutes:_,seconds:C}=k;return{hours:+b,minutes:+_,seconds:C?+C:0}},v=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const b=p(e.startTime[0]),_=p(e.startTime[1]);return[ze($1(),b),ze($1(),_)]}const k=p(e.startTime);return ze($1(),k)}return r.value.enabled?[null,null]:null},m=()=>{if(r.value.enabled){const[k,b]=v();a.value=[o(k,0),o(b,1)]}else a.value=o(v())},y=k=>Array.isArray(k)?[yi($1(k[0])),yi($1(k[1]))]:[yi(k??$1())],g=(k,b,_)=>{l("hours",k),l("minutes",b),l("seconds",e.enableSeconds?_:0)},M=()=>{const[k,b]=y(a.value);return r.value.enabled?g([k.hours,b.hours],[k.minutes,b.minutes],[k.seconds,b.seconds]):g(k.hours,k.minutes,k.seconds)};s.onMounted(()=>{if(!e.shadow)return f(n.value),a.value?M():m()});const x=()=>{Array.isArray(a.value)?a.value=a.value.map((k,b)=>k&&o(k,b)):a.value=o(a.value),t("time-update")};return{modelValue:a,time:c,disabledTimesConfig:u,updateTime:(k,b=!0,_=!1)=>{i(k,b,_,x)},validateTime:d}},V_e=s.defineComponent({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...P6},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.useSlots(),i=o0(r,"timePicker"),o=s.ref(null),{time:l,modelValue:f,disabledTimesConfig:u,updateTime:d,validateTime:h}=L_e(n,c);return s.onMounted(()=>{n.shadow||c("mount",null)}),t({getSidebarProps:()=>({modelValue:f,time:l,updateTime:d}),toggleTimePicker:(p,v=!1,m="")=>{var y;(y=o.value)==null||y.toggleTimePicker(p,v,m)}}),(p,v)=>(s.openBlock(),s.createBlock(aU,{"multi-calendars":0,stretch:""},{default:s.withCtx(()=>[s.createVNode(vk1,s.mergeProps({ref_key:"tpRef",ref:o},p.$props,{hours:s.unref(l).hours,minutes:s.unref(l).minutes,seconds:s.unref(l).seconds,"internal-model-value":p.internalModelValue,"disabled-times-config":s.unref(u),"validate-time":s.unref(h),"onUpdate:hours":v[0]||(v[0]=m=>s.unref(d)(m)),"onUpdate:minutes":v[1]||(v[1]=m=>s.unref(d)(m,!1)),"onUpdate:seconds":v[2]||(v[2]=m=>s.unref(d)(m,!1,!0)),onAmPmChange:v[3]||(v[3]=m=>p.$emit("am-pm-change",m)),onResetFlow:v[4]||(v[4]=m=>p.$emit("reset-flow")),onOverlayClosed:v[5]||(v[5]=m=>p.$emit("overlay-toggle",{open:!1,overlay:m})),onOverlayOpened:v[6]||(v[6]=m=>p.$emit("overlay-toggle",{open:!0,overlay:m}))}),s.createSlots({_:2},[s.renderList(s.unref(i),(m,y)=>({name:m,fn:s.withCtx(g=>[s.renderSlot(p.$slots,m,s.normalizeProps(s.guardReactiveProps(g)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3}))}}),S_e={class:"dp--header-wrap"},N_e={key:0,class:"dp__month_year_wrap"},A_e={key:0},T_e={class:"dp__month_year_wrap"},E_e=["aria-label","data-test","onClick","onKeydown"],D_e=s.defineComponent({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...P6},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:t,emit:a}){const c=a,n=e,{defaultedTransitions:r,defaultedAriaLabels:i,defaultedMultiCalendars:o,defaultedFilters:l,defaultedConfig:f,defaultedHighlight:u,propDates:d}=a3(n),{transitionName:h,showTransition:p}=Uu(r),{buildMatrix:v}=l5(),{handleMonthYearChange:m,isDisabled:y,updateMonthYear:g}=jCe(n,c),{showLeftIcon:M,showRightIcon:x}=eU(),k=s.ref(!1),b=s.ref(!1),_=s.ref([null,null,null,null]);s.onMounted(()=>{c("mount")});const C=I=>({get:()=>n[I],set:E=>{const S=I===U0.month?U0.year:U0.month;c("update-month-year",{[I]:E,[S]:n[S]}),I===U0.month?T(!0):R(!0)}}),H=s.computed(C(U0.month)),V=s.computed(C(U0.year)),N=s.computed(()=>I=>({month:n.month,year:n.year,items:I===U0.month?n.months:n.years,instance:n.instance,updateMonthYear:g,toggle:I===U0.month?T:R})),L=s.computed(()=>n.months.find(E=>E.value===n.month)||{text:"",value:0}),w=s.computed(()=>As(n.months,I=>{const E=n.month===I.value,S=jf(I.value,nk1(n.year,d.value.minDate),rk1(n.year,d.value.maxDate))||l.value.months.includes(I.value),U=fk1(u.value,I.value,n.year);return{active:E,disabled:S,highlighted:U}})),P=s.computed(()=>As(n.years,I=>{const E=n.year===I.value,S=jf(I.value,Ts(d.value.minDate),Ts(d.value.maxDate))||l.value.years.includes(I.value),U=j11(u.value,I.value);return{active:E,disabled:S,highlighted:U}})),j=(I,E,S)=>{S!==void 0?I.value=S:I.value=!I.value,I.value?c("overlay-opened",E):c("overlay-closed",E)},T=(I=!1,E)=>{Y(I),j(k,u4.month,E)},R=(I=!1,E)=>{Y(I),j(b,u4.year,E)},Y=I=>{I||c("reset-flow")},e1=(I,E)=>{n.arrowNavigation&&(_.value[E]=D3(I),v(_.value,"monthYear"))},Z=s.computed(()=>{var I,E;return[{type:U0.month,index:1,toggle:T,modelValue:H.value,updateModelValue:S=>H.value=S,text:L.value.text,showSelectionGrid:k.value,items:w.value,ariaLabel:(I=i.value)==null?void 0:I.openMonthsOverlay},{type:U0.year,index:2,toggle:R,modelValue:V.value,updateModelValue:S=>V.value=S,text:ck1(n.year,n.locale),showSelectionGrid:b.value,items:P.value,ariaLabel:(E=i.value)==null?void 0:E.openYearsOverlay}]}),W=s.computed(()=>n.disableYearSelect?[Z.value[0]]:n.yearFirst?[...Z.value].reverse():Z.value);return t({toggleMonthPicker:T,toggleYearPicker:R,handleMonthYearChange:m}),(I,E)=>{var S,U,G;return s.openBlock(),s.createElementBlock("div",S_e,[I.$slots["month-year"]?(s.openBlock(),s.createElementBlock("div",N_e,[s.renderSlot(I.$slots,"month-year",s.normalizeProps(s.guardReactiveProps({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:s.unref(g),handleMonthYearChange:s.unref(m),instance:e.instance})))])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[I.$slots["top-extra"]?(s.openBlock(),s.createElementBlock("div",A_e,[s.renderSlot(I.$slots,"top-extra",{value:I.internalModelValue})])):s.createCommentVNode("",!0),s.createElementVNode("div",T_e,[s.unref(M)(s.unref(o),e.instance)&&!I.vertical?(s.openBlock(),s.createBlock(Pl,{key:0,"aria-label":(S=s.unref(i))==null?void 0:S.prevMonth,disabled:s.unref(y)(!1),onActivate:E[0]||(E[0]=A=>s.unref(m)(!1,!0)),onSetRef:E[1]||(E[1]=A=>e1(A,0))},{default:s.withCtx(()=>[I.$slots["arrow-left"]?s.renderSlot(I.$slots,"arrow-left",{key:0}):s.createCommentVNode("",!0),I.$slots["arrow-left"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(P11),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:I.disableYearSelect}])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(W.value,(A,B)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:A.type},[s.createElementVNode("button",{ref_for:!0,ref:Q=>e1(Q,B+1),type:"button",class:"dp__btn dp__month_year_select",tabindex:"0","aria-label":A.ariaLabel,"data-test":`${A.type}-toggle-overlay-${e.instance}`,onClick:A.toggle,onKeydown:Q=>s.unref(G4)(Q,()=>A.toggle(),!0)},[I.$slots[A.type]?s.renderSlot(I.$slots,A.type,{key:0,text:A.text,value:n[A.type]}):s.createCommentVNode("",!0),I.$slots[A.type]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(A.text),1)],64))],40,E_e),s.createVNode(s.Transition,{name:s.unref(h)(A.showSelectionGrid),css:s.unref(p)},{default:s.withCtx(()=>[A.showSelectionGrid?(s.openBlock(),s.createBlock(Yu,{key:0,items:A.items,"arrow-navigation":I.arrowNavigation,"hide-navigation":I.hideNavigation,"is-last":I.autoApply&&!s.unref(f).keepActionRow,"skip-button-ref":!1,config:I.config,type:A.type,"header-refs":[],"esc-close":I.escClose,"menu-wrap-ref":I.menuWrapRef,"text-input":I.textInput,"aria-labels":I.ariaLabels,onSelected:A.updateModelValue,onToggle:A.toggle},s.createSlots({"button-icon":s.withCtx(()=>[I.$slots["calendar-icon"]?s.renderSlot(I.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),I.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(Ks),{key:1}))]),_:2},[I.$slots[`${A.type}-overlay-value`]?{name:"item",fn:s.withCtx(({item:Q})=>[s.renderSlot(I.$slots,`${A.type}-overlay-value`,{text:Q.text,value:Q.value})]),key:"0"}:void 0,I.$slots[`${A.type}-overlay`]?{name:"overlay",fn:s.withCtx(()=>[s.renderSlot(I.$slots,`${A.type}-overlay`,s.mergeProps({ref_for:!0},N.value(A.type)))]),key:"1"}:void 0,I.$slots[`${A.type}-overlay-header`]?{name:"header",fn:s.withCtx(()=>[s.renderSlot(I.$slots,`${A.type}-overlay-header`,{toggle:A.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","onSelected","onToggle"])):s.createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),s.unref(M)(s.unref(o),e.instance)&&I.vertical?(s.openBlock(),s.createBlock(Pl,{key:1,"aria-label":(U=s.unref(i))==null?void 0:U.prevMonth,disabled:s.unref(y)(!1),onActivate:E[2]||(E[2]=A=>s.unref(m)(!1,!0))},{default:s.withCtx(()=>[I.$slots["arrow-up"]?s.renderSlot(I.$slots,"arrow-up",{key:0}):s.createCommentVNode("",!0),I.$slots["arrow-up"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(B11),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.unref(x)(s.unref(o),e.instance)?(s.openBlock(),s.createBlock(Pl,{key:2,ref:"rightIcon",disabled:s.unref(y)(!0),"aria-label":(G=s.unref(i))==null?void 0:G.nextMonth,onActivate:E[3]||(E[3]=A=>s.unref(m)(!0,!0)),onSetRef:E[4]||(E[4]=A=>e1(A,I.disableYearSelect?2:3))},{default:s.withCtx(()=>[I.$slots[I.vertical?"arrow-down":"arrow-right"]?s.renderSlot(I.$slots,I.vertical?"arrow-down":"arrow-right",{key:0}):s.createCommentVNode("",!0),I.$slots[I.vertical?"arrow-down":"arrow-right"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(I.vertical?s.unref(R11):s.unref(O11)),{key:1}))]),_:3},8,["disabled","aria-label"])):s.createCommentVNode("",!0)])],64))])}}}),P_e=["aria-label"],O_e={class:"dp__calendar_header",role:"row"},I_e={key:0,class:"dp__calendar_header_item",role:"gridcell"},B_e=["aria-label"],R_e=s.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1),F_e=["aria-label"],$_e={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},q_e={class:"dp__cell_inner"},j_e=["id","aria-selected","aria-disabled","aria-label","data-test","onClick","onKeydown","onMouseenter","onMouseleave","onMousedown"],U_e=s.defineComponent({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...P6},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:a}){const c=a,n=e,{buildMultiLevelMatrix:r}=l5(),{defaultedTransitions:i,defaultedConfig:o,defaultedAriaLabels:l,defaultedMultiCalendars:f,defaultedWeekNumbers:u,defaultedMultiDates:d}=a3(n),h=s.ref(null),p=s.ref({bottom:"",left:"",transform:""}),v=s.ref([]),m=s.ref(null),y=s.ref(!0),g=s.ref(""),M=s.ref({startX:0,endX:0,startY:0,endY:0}),x=s.ref([]),k=s.ref({left:"50%"}),b=s.ref(!1),_=s.computed(()=>n.calendar?n.calendar(n.mappedDates):n.mappedDates),C=s.computed(()=>n.dayNames?Array.isArray(n.dayNames)?n.dayNames:n.dayNames(n.locale,+n.weekStart):dCe(n.formatLocale,n.locale,+n.weekStart));s.onMounted(()=>{c("mount",{cmp:"calendar",refs:v}),o.value.noSwipe||m.value&&(m.value.addEventListener("touchstart",Z,{passive:!1}),m.value.addEventListener("touchend",W,{passive:!1}),m.value.addEventListener("touchmove",I,{passive:!1})),n.monthChangeOnScroll&&m.value&&m.value.addEventListener("wheel",U,{passive:!1})});const H=K=>K?n.vertical?"vNext":"next":n.vertical?"vPrevious":"previous",V=(K,a1)=>{if(n.transitions){const F=p0(s8($1(),n.month,n.year));g.value=x3(p0(s8($1(),K,a1)),F)?i.value[H(!0)]:i.value[H(!1)],y.value=!1,s.nextTick(()=>{y.value=!0})}},N=s.computed(()=>({[n.calendarClassName]:!!n.calendarClassName})),L=s.computed(()=>K=>{const a1=pCe(K);return{dp__marker_dot:a1.type==="dot",dp__marker_line:a1.type==="line"}}),w=s.computed(()=>K=>I2(K,h.value)),P=s.computed(()=>({dp__calendar:!0,dp__calendar_next:f.value.count>0&&n.instance!==0})),j=s.computed(()=>K=>n.hideOffsetDates?K.current:!0),T=K=>xt(K,"yyyy-MM-dd"),R=async(K,a1,F)=>{const l1=D3(v.value[a1][F]);if(l1){const{width:k1,height:f1}=l1.getBoundingClientRect();h.value=K.value;let t1={left:`${k1/2}px`},u1=-50;if(await s.nextTick(),x.value[0]){const{left:o1,width:p1}=x.value[0].getBoundingClientRect();o1<0&&(t1={left:"0"},u1=0,k.value.left=`${k1/2}px`),window.innerWidth<o1+p1&&(t1={right:"0"},u1=0,k.value.left=`${p1-k1/2}px`)}p.value={bottom:`${f1}px`,...t1,transform:`translateX(${u1}%)`},c("tooltip-open",K.marker)}},Y=async(K,a1,F)=>{var l1,k1;if(b.value&&d.value.enabled&&d.value.dragSelect)return c("select-date",K);c("set-hover-date",K),(k1=(l1=K.marker)==null?void 0:l1.tooltip)!=null&&k1.length&&await R(K,a1,F)},e1=K=>{h.value&&(h.value=null,p.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),c("tooltip-close",K.marker))},Z=K=>{M.value.startX=K.changedTouches[0].screenX,M.value.startY=K.changedTouches[0].screenY},W=K=>{M.value.endX=K.changedTouches[0].screenX,M.value.endY=K.changedTouches[0].screenY,E()},I=K=>{n.vertical&&!n.inline&&K.preventDefault()},E=()=>{const K=n.vertical?"Y":"X";Math.abs(M.value[`start${K}`]-M.value[`end${K}`])>10&&c("handle-swipe",M.value[`start${K}`]>M.value[`end${K}`]?"right":"left")},S=(K,a1,F)=>{K&&(Array.isArray(v.value[a1])?v.value[a1][F]=K:v.value[a1]=[K]),n.arrowNavigation&&r(v.value,"calendar")},U=K=>{n.monthChangeOnScroll&&(K.preventDefault(),c("handle-scroll",K))},G=K=>u.value.type==="local"?N11(K.value,{weekStartsOn:+n.weekStart}):u.value.type==="iso"?V11(K.value):typeof u.value.type=="function"?u.value.type(K.value):"",A=K=>{const a1=K[0];return u.value.hideOnOffsetDates?K.some(F=>F.current)?G(a1):"":G(a1)},B=(K,a1)=>{d.value.enabled||(Va(K,o.value),c("select-date",a1))},Q=K=>{Va(K,o.value)},c1=K=>{d.value.enabled&&d.value.dragSelect?(b.value=!0,c("select-date",K)):d.value.enabled&&c("select-date",K)};return t({triggerTransition:V}),(K,a1)=>{var F;return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(P.value)},[s.createElementVNode("div",{ref_key:"calendarWrapRef",ref:m,role:"grid",class:s.normalizeClass(N.value),"aria-label":(F=s.unref(l))==null?void 0:F.calendarWrap},[s.createElementVNode("div",O_e,[K.weekNumbers?(s.openBlock(),s.createElementBlock("div",I_e,s.toDisplayString(K.weekNumName),1)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.value,(l1,k1)=>{var f1,t1;return s.openBlock(),s.createElementBlock("div",{key:k1,class:"dp__calendar_header_item",role:"gridcell","data-test":"calendar-header","aria-label":(t1=(f1=s.unref(l))==null?void 0:f1.weekDay)==null?void 0:t1.call(f1,k1)},[K.$slots["calendar-header"]?s.renderSlot(K.$slots,"calendar-header",{key:0,day:l1,index:k1}):s.createCommentVNode("",!0),K.$slots["calendar-header"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(l1),1)],64))],8,B_e)}),128))]),R_e,s.createVNode(s.Transition,{name:g.value,css:!!K.transitions},{default:s.withCtx(()=>{var l1;return[y.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup","aria-label":((l1=s.unref(l))==null?void 0:l1.calendarDays)||void 0,onMouseleave:a1[1]||(a1[1]=k1=>b.value=!1)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(_.value,(k1,f1)=>(s.openBlock(),s.createElementBlock("div",{key:f1,class:"dp__calendar_row",role:"row"},[K.weekNumbers?(s.openBlock(),s.createElementBlock("div",$_e,[s.createElementVNode("div",q_e,s.toDisplayString(A(k1.days)),1)])):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(k1.days,(t1,u1)=>{var o1,p1,b1;return s.openBlock(),s.createElementBlock("div",{id:T(t1.value),ref_for:!0,ref:v1=>S(v1,f1,u1),key:u1+f1,role:"gridcell",class:"dp__calendar_item","aria-selected":(t1.classData.dp__active_date||t1.classData.dp__range_start||t1.classData.dp__range_start)??void 0,"aria-disabled":t1.classData.dp__cell_disabled||void 0,"aria-label":(p1=(o1=s.unref(l))==null?void 0:o1.day)==null?void 0:p1.call(o1,t1),tabindex:"0","data-test":t1.value,onClick:s.withModifiers(v1=>B(v1,t1),["prevent"]),onKeydown:v1=>s.unref(G4)(v1,()=>K.$emit("select-date",t1)),onMouseenter:v1=>Y(t1,f1,u1),onMouseleave:v1=>e1(t1),onMousedown:v1=>c1(t1),onMouseup:a1[0]||(a1[0]=v1=>b.value=!1)},[s.createElementVNode("div",{class:s.normalizeClass(["dp__cell_inner",t1.classData])},[K.$slots.day&&j.value(t1)?s.renderSlot(K.$slots,"day",{key:0,day:+t1.text,date:t1.value}):s.createCommentVNode("",!0),K.$slots.day?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(t1.text),1)],64)),t1.marker&&j.value(t1)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[K.$slots.marker?s.renderSlot(K.$slots,"marker",{key:0,marker:t1.marker,day:+t1.text,date:t1.value}):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(L.value(t1.marker)),style:s.normalizeStyle(t1.marker.color?{backgroundColor:t1.marker.color}:{})},null,6))],64)):s.createCommentVNode("",!0),w.value(t1.value)?(s.openBlock(),s.createElementBlock("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:x,class:"dp__marker_tooltip",style:s.normalizeStyle(p.value)},[(b1=t1.marker)!=null&&b1.tooltip?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:Q},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t1.marker.tooltip,(v1,C1)=>(s.openBlock(),s.createElementBlock("div",{key:C1,class:"dp__tooltip_text"},[K.$slots["marker-tooltip"]?s.renderSlot(K.$slots,"marker-tooltip",{key:0,tooltip:v1,day:t1.value}):s.createCommentVNode("",!0),K.$slots["marker-tooltip"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",{class:"dp__tooltip_mark",style:s.normalizeStyle(v1.color?{backgroundColor:v1.color}:{})},null,4),s.createElementVNode("div",null,s.toDisplayString(v1.text),1)],64))]))),128)),s.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:s.normalizeStyle(k.value)},null,4)])):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0)],2)],40,j_e)}),128))]))),128))],40,F_e)):s.createCommentVNode("",!0)]}),_:3},8,["name","css"])],10,P_e)],2)}}}),Ua1=e=>Array.isArray(e),W_e=(e,t,a,c)=>{const n=s.ref([]),r=s.ref(new Date),i=s.ref(),{modelValue:o,calendars:l,time:f,today:u}=Wu(e,t),{defaultedMultiCalendars:d,defaultedStartTime:h,defaultedRange:p,defaultedConfig:v,defaultedTz:m,propDates:y,defaultedMultiDates:g}=a3(e),{validateMonthYearInRange:M,isDisabled:x,isDateRangeAllowed:k,checkMinMaxRange:b}=f5(e),{updateTimeValues:_,getSetDateTime:C,setTime:H,assignStartTime:V,validateTime:N,disabledTimesConfig:L}=yk1(e,f,o,c),w=s.computed(()=>d1=>l.value[d1]?l.value[d1].month:0),P=s.computed(()=>d1=>l.value[d1]?l.value[d1].year:0),j=d1=>!v.value.keepViewOnOffsetClick||d1?!0:!i.value,T=(d1,s1,_1,L1=!1)=>{var W1,g2;j(L1)&&(l.value[d1]||(l.value[d1]={month:0,year:0}),l.value[d1].month=Ra1(s1)?(W1=l.value[d1])==null?void 0:W1.month:s1,l.value[d1].year=Ra1(_1)?(g2=l.value[d1])==null?void 0:g2.year:_1)},R=()=>{e.autoApply&&t("select-date")};s.watch(o,(d1,s1)=>{JSON.stringify(d1)!==JSON.stringify(s1)&&Z()},{deep:!0}),s.onMounted(()=>{e.shadow||(o.value||(K(),h.value&&V(h.value)),Z(!0),e.focusStartDate&&e.startDate&&K())});const Y=s.computed(()=>{var d1;return(d1=e.flow)!=null&&d1.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),e1=()=>{e.autoApply&&Y.value&&t("auto-apply")},Z=(d1=!1)=>{if(o.value)return Array.isArray(o.value)?(n.value=o.value,A(d1)):E(o.value,d1);if(d.value.count&&d1&&!e.startDate)return I($1(),d1)},W=()=>Array.isArray(o.value)&&p.value.enabled?P2(o.value[0])===P2(o.value[1]??o.value[0]):!1,I=(d1,s1=!1)=>{if((!d.value.count||!d.value.static||s1)&&T(0,P2(d1),L2(d1)),d.value.count&&(!d.value.solo||!o.value||W()))for(let _1=1;_1<d.value.count;_1++){const L1=ze($1(),{month:w.value(_1-1),year:P.value(_1-1)}),W1=NM1(L1,{months:1});l.value[_1]={month:P2(W1),year:L2(W1)}}},E=(d1,s1)=>{I(d1),H("hours",_8(d1)),H("minutes",Ya(d1)),H("seconds",Vs(d1)),d.value.count&&s1&&c1()},S=d1=>{if(d.value.count){if(d.value.solo)return 0;const s1=P2(d1[0]),_1=P2(d1[1]);return Math.abs(_1-s1)<d.value.count?0:1}return 1},U=(d1,s1)=>{d1[1]&&p.value.showLastInRange?I(d1[S(d1)],s1):I(d1[0],s1);const _1=(L1,W1)=>[L1(d1[0]),d1[1]?L1(d1[1]):f[W1][1]];H("hours",_1(_8,"hours")),H("minutes",_1(Ya,"minutes")),H("seconds",_1(Vs,"seconds"))},G=(d1,s1)=>{if((p.value.enabled||e.weekPicker)&&!g.value.enabled)return U(d1,s1);if(g.value.enabled&&s1){const _1=d1[d1.length-1];return E(_1,s1)}},A=d1=>{const s1=o.value;G(s1,d1),d.value.count&&d.value.solo&&c1()},B=(d1,s1)=>{const _1=ze($1(),{month:w.value(s1),year:P.value(s1)}),L1=d1<0?M6(_1,1):Ns(_1,1);M(P2(L1),L2(L1),d1<0,e.preventMinMaxNavigation)&&(T(s1,P2(L1),L2(L1)),t("update-month-year",{instance:s1,month:P2(L1),year:L2(L1)}),d.value.count&&!d.value.solo&&Q(s1),a())},Q=d1=>{for(let s1=d1-1;s1>=0;s1--){const _1=Ns(ze($1(),{month:w.value(s1+1),year:P.value(s1+1)}),1);T(s1,P2(_1),L2(_1))}for(let s1=d1+1;s1<=d.value.count-1;s1++){const _1=M6(ze($1(),{month:w.value(s1-1),year:P.value(s1-1)}),1);T(s1,P2(_1),L2(_1))}},c1=()=>{if(Array.isArray(o.value)&&o.value.length===2){const d1=$1($1(o.value[1]?o.value[1]:M6(o.value[0],1))),[s1,_1]=[P2(o.value[0]),L2(o.value[0])],[L1,W1]=[P2(o.value[1]),L2(o.value[1])];(s1!==L1||s1===L1&&_1!==W1)&&d.value.solo&&T(1,P2(d1),L2(d1))}else o.value&&!Array.isArray(o.value)&&(T(0,P2(o.value),L2(o.value)),I($1()))},K=()=>{e.startDate&&(T(0,P2($1(e.startDate)),L2($1(e.startDate))),d.value.count&&Q(0))},a1=(d1,s1)=>{if(e.monthChangeOnScroll){const _1=new Date().getTime()-r.value.getTime(),L1=Math.abs(d1.deltaY);let W1=500;L1>1&&(W1=100),L1>100&&(W1=0),_1>W1&&(r.value=new Date,B(e.monthChangeOnScroll!=="inverse"?-d1.deltaY:d1.deltaY,s1))}},F=(d1,s1,_1=!1)=>{e.monthChangeOnArrows&&e.vertical===_1&&l1(d1,s1)},l1=(d1,s1)=>{B(d1==="right"?-1:1,s1)},k1=d1=>{if(y.value.markers)return G$(d1.value,y.value.markers)},f1=(d1,s1)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[d1==0,!0];case"fair":return[d1==0||s1>d1,!0];case"append":return[!1,!1];default:return[!1,!1]}},t1=(d1,s1,_1,L1)=>{if(e.sixWeeks&&d1.length<6){const W1=6-d1.length,g2=(s1.getDay()+7-L1)%7,S2=6-(_1.getDay()+7-L1)%7,[Fe,h3]=f1(g2,S2);for(let s2=1;s2<=W1;s2++)if(h3?!!(s2%2)==Fe:Fe){const V2=d1[0].days[0],Q3=u1(e6(V2.value,-7),P2(s1));d1.unshift({days:Q3})}else{const V2=d1[d1.length-1],Q3=V2.days[V2.days.length-1],J3=u1(e6(Q3.value,1),P2(s1));d1.push({days:J3})}}return d1},u1=(d1,s1)=>{const _1=$1(d1),L1=[];for(let W1=0;W1<7;W1++){const g2=e6(_1,W1),S2=P2(g2)!==s1;L1.push({text:e.hideOffsetDates&&S2?"":g2.getDate(),value:g2,current:!S2,classData:{}})}return L1},o1=(d1,s1)=>{const _1=[],L1=new Date(s1,d1),W1=new Date(s1,d1+1,0),g2=e.weekStart,S2=S6(L1,{weekStartsOn:g2}),Fe=h3=>{const s2=u1(h3,d1);if(_1.push({days:s2}),!_1[_1.length-1].days.some(V2=>I2(p0(V2.value),p0(W1)))){const V2=e6(h3,7);Fe(V2)}};return Fe(S2),t1(_1,L1,W1,g2)},p1=d1=>{const s1=Sa($1(d1.value),f.hours,f.minutes,Y1());t("date-update",s1),g.value.enabled?U11(s1,o,g.value.limit):o.value=s1,c(),s.nextTick().then(()=>{e1()})},b1=d1=>p.value.noDisabledRange?ik1(n.value[0],d1).some(s1=>x(s1)):!1,v1=()=>{n.value=o.value?o.value.slice():[],n.value.length===2&&!(p.value.fixedStart||p.value.fixedEnd)&&(n.value=[])},C1=(d1,s1)=>{const _1=[$1(d1.value),e6($1(d1.value),+p.value.autoRange)];k(_1)?(s1&&D1(d1.value),n.value=_1):t("invalid-date",d1.value)},D1=d1=>{const s1=P2($1(d1)),_1=L2($1(d1));if(T(0,s1,_1),d.value.count>0)for(let L1=1;L1<d.value.count;L1++){const W1=bCe(ze($1(d1),{year:w.value(L1-1),month:P.value(L1-1)}));T(L1,W1.month,W1.year)}},R1=d1=>{if(b1(d1.value)||!b(d1.value,o.value,p.value.fixedStart?0:1))return t("invalid-date",d1.value);n.value=pk1($1(d1.value),o,t,p)},B1=(d1,s1)=>{if(v1(),p.value.autoRange)return C1(d1,s1);if(p.value.fixedStart||p.value.fixedEnd)return R1(d1);n.value[0]?b($1(d1.value),o.value)&&!b1(d1.value)?r3($1(d1.value),$1(n.value[0]))?(n.value.unshift($1(d1.value)),t("range-end",n.value[0])):(n.value[1]=$1(d1.value),t("range-end",n.value[1])):(e.autoApply&&t("auto-apply-invalid",d1.value),t("invalid-date",d1.value)):(n.value[0]=$1(d1.value),t("range-start",n.value[0]))},Y1=(d1=!0)=>e.enableSeconds?Array.isArray(f.seconds)?d1?f.seconds[0]:f.seconds[1]:f.seconds:0,G1=d1=>{n.value[d1]=Sa(n.value[d1],f.hours[d1],f.minutes[d1],Y1(d1!==1))},n2=()=>{var d1,s1;n.value[0]&&n.value[1]&&+((d1=n.value)==null?void 0:d1[0])>+((s1=n.value)==null?void 0:s1[1])&&(n.value.reverse(),t("range-start",n.value[0]),t("range-end",n.value[1]))},o2=()=>{n.value.length&&(n.value[0]&&!n.value[1]?G1(0):(G1(0),G1(1),c()),n2(),o.value=n.value.slice(),cU(n.value,t,e.autoApply,e.modelAuto))},q1=(d1,s1=!1)=>{if(x(d1.value)||!d1.current&&e.hideOffsetDates)return t("invalid-date",d1.value);if(i.value=JSON.parse(JSON.stringify(d1)),!p.value.enabled)return p1(d1);Ua1(f.hours)&&Ua1(f.minutes)&&!g.value.enabled&&(B1(d1,s1),o2())},p2=(d1,s1)=>{var _1;T(d1,s1.month,s1.year,!0),d.value.count&&!d.value.solo&&Q(d1),t("update-month-year",{instance:d1,month:s1.month,year:s1.year}),a(d.value.solo?d1:void 0);const L1=(_1=e.flow)!=null&&_1.length?e.flow[e.flowStep]:void 0;!s1.fromNav&&(L1===u4.month||L1===u4.year)&&c()},E2=(d1,s1)=>{hk1({value:d1,modelValue:o,range:p.value.enabled,timezone:s1?void 0:m.value.timezone}),R(),e.multiCalendars&&s.nextTick().then(()=>Z(!0))},h2=()=>{p.value.enabled?o.value&&Array.isArray(o.value)&&o.value[0]?o.value=r3($1(),o.value[0])?[$1(),o.value[0]]:[o.value[0],$1()]:o.value=[$1()]:o.value=$1(),R()},y2=()=>{if(Array.isArray(o.value))if(g.value.enabled){const d1=ee();o.value[o.value.length-1]=C(d1)}else o.value=o.value.map((d1,s1)=>d1&&C(d1,s1));else o.value=C(o.value);t("time-update")},ee=()=>Array.isArray(o.value)&&o.value.length?o.value[o.value.length-1]:null;return{calendars:l,modelValue:o,month:w,year:P,time:f,disabledTimesConfig:L,today:u,validateTime:N,getCalendarDays:o1,getMarker:k1,handleScroll:a1,handleSwipe:l1,handleArrow:F,selectDate:q1,updateMonthYear:p2,presetDate:E2,selectCurrentDate:h2,updateTime:(d1,s1=!0,_1=!1)=>{_(d1,s1,_1,y2)}}},Y_e={key:0},G_e=s.defineComponent({__name:"DatePicker",props:{...P6},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,{calendars:r,month:i,year:o,modelValue:l,time:f,disabledTimesConfig:u,today:d,validateTime:h,getCalendarDays:p,getMarker:v,handleArrow:m,handleScroll:y,handleSwipe:g,selectDate:M,updateMonthYear:x,presetDate:k,selectCurrentDate:b,updateTime:_}=W_e(n,c,W,I),C=s.useSlots(),{setHoverDate:H,getDayClassData:V,clearHoverDate:N}=GCe(l,n),{defaultedMultiCalendars:L}=a3(n),w=s.ref([]),P=s.ref([]),j=s.ref(null),T=o0(C,"calendar"),R=o0(C,"monthYear"),Y=o0(C,"timePicker"),e1=a1=>{n.shadow||c("mount",a1)};s.watch(r,()=>{n.shadow||setTimeout(()=>{c("recalculate-position")},0)},{deep:!0});const Z=s.computed(()=>a1=>p(i.value(a1),o.value(a1)).map(F=>({...F,days:F.days.map(l1=>(l1.marker=v(l1),l1.classData=V(l1),l1))})));function W(a1){var F;a1||a1===0?(F=P.value[a1])==null||F.triggerTransition(i.value(a1),o.value(a1)):P.value.forEach((l1,k1)=>l1.triggerTransition(i.value(k1),o.value(k1)))}function I(){c("update-flow-step")}const E=(a1,F=!1)=>{M(a1,F),n.spaceConfirm&&c("select-date")},S=(a1,F,l1=0)=>{var k1;(k1=w.value[l1])==null||k1.toggleMonthPicker(a1,F)},U=(a1,F,l1=0)=>{var k1;(k1=w.value[l1])==null||k1.toggleYearPicker(a1,F)},G=(a1,F,l1)=>{var k1;(k1=j.value)==null||k1.toggleTimePicker(a1,F,l1)},A=a1=>{if(!n.range){const F=l.value?l.value:d,l1=a1?S6(F,{weekStartsOn:1}):BM1(F,{weekStartsOn:1});M({value:l1,current:P2(F)===i.value(0),text:"",classData:{}})}},B=a1=>{var F;(F=w.value[0])==null||F.handleMonthYearChange(a1,!0)},Q=a1=>{x(0,{month:i.value(0),year:o.value(0)+(a1?1:-1),fromNav:!0})},c1=(a1,F)=>{a1===u4.time&&c(`time-picker-${F?"open":"close"}`),c("overlay-toggle",{open:F,overlay:a1})},K=a1=>{c("overlay-toggle",{open:!1,overlay:a1}),c("focus-menu")};return t({clearHoverDate:N,presetDate:k,selectCurrentDate:b,toggleMonthPicker:S,toggleYearPicker:U,toggleTimePicker:G,handleArrow:m,updateMonthYear:x,getSidebarProps:()=>({modelValue:l,month:i,year:o,time:f,updateTime:_,updateMonthYear:x,selectDate:M,presetDate:k}),changeMonth:B,changeYear:Q,selectWeekDate:A}),(a1,F)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(aU,{"multi-calendars":s.unref(L).count,collapse:a1.collapse},{default:s.withCtx(({instance:l1,index:k1})=>[a1.disableMonthYearSelect?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(D_e,s.mergeProps({key:0,ref:f1=>{f1&&(w.value[k1]=f1)},months:s.unref(ek1)(a1.formatLocale,a1.locale,a1.monthNameFormat),years:s.unref(F11)(a1.yearRange,a1.locale,a1.reverseYears),month:s.unref(i)(l1),year:s.unref(o)(l1),instance:l1},a1.$props,{onMount:F[0]||(F[0]=f1=>e1(s.unref(vi).header)),onResetFlow:F[1]||(F[1]=f1=>a1.$emit("reset-flow")),onUpdateMonthYear:f1=>s.unref(x)(l1,f1),onOverlayClosed:K,onOverlayOpened:F[2]||(F[2]=f1=>a1.$emit("overlay-toggle",{open:!0,overlay:f1}))}),s.createSlots({_:2},[s.renderList(s.unref(R),(f1,t1)=>({name:f1,fn:s.withCtx(u1=>[s.renderSlot(a1.$slots,f1,s.normalizeProps(s.guardReactiveProps(u1)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),s.createVNode(U_e,s.mergeProps({ref:f1=>{f1&&(P.value[k1]=f1)},"mapped-dates":Z.value(l1),month:s.unref(i)(l1),year:s.unref(o)(l1),instance:l1},a1.$props,{onSelectDate:f1=>s.unref(M)(f1,l1!==1),onHandleSpace:f1=>E(f1,l1!==1),onSetHoverDate:F[3]||(F[3]=f1=>s.unref(H)(f1)),onHandleScroll:f1=>s.unref(y)(f1,l1),onHandleSwipe:f1=>s.unref(g)(f1,l1),onMount:F[4]||(F[4]=f1=>e1(s.unref(vi).calendar)),onResetFlow:F[5]||(F[5]=f1=>a1.$emit("reset-flow")),onTooltipOpen:F[6]||(F[6]=f1=>a1.$emit("tooltip-open",f1)),onTooltipClose:F[7]||(F[7]=f1=>a1.$emit("tooltip-close",f1))}),s.createSlots({_:2},[s.renderList(s.unref(T),(f1,t1)=>({name:f1,fn:s.withCtx(u1=>[s.renderSlot(a1.$slots,f1,s.normalizeProps(s.guardReactiveProps({...u1})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse"]),a1.enableTimePicker?(s.openBlock(),s.createElementBlock("div",Y_e,[a1.$slots["time-picker"]?s.renderSlot(a1.$slots,"time-picker",s.normalizeProps(s.mergeProps({key:0},{time:s.unref(f),updateTime:s.unref(_)}))):(s.openBlock(),s.createBlock(vk1,s.mergeProps({key:1,ref_key:"timePickerRef",ref:j},a1.$props,{hours:s.unref(f).hours,minutes:s.unref(f).minutes,seconds:s.unref(f).seconds,"internal-model-value":a1.internalModelValue,"disabled-times-config":s.unref(u),"validate-time":s.unref(h),onMount:F[8]||(F[8]=l1=>e1(s.unref(vi).timePicker)),"onUpdate:hours":F[9]||(F[9]=l1=>s.unref(_)(l1)),"onUpdate:minutes":F[10]||(F[10]=l1=>s.unref(_)(l1,!1)),"onUpdate:seconds":F[11]||(F[11]=l1=>s.unref(_)(l1,!1,!0)),onResetFlow:F[12]||(F[12]=l1=>a1.$emit("reset-flow")),onOverlayClosed:F[13]||(F[13]=l1=>c1(l1,!1)),onOverlayOpened:F[14]||(F[14]=l1=>c1(l1,!0)),onAmPmChange:F[15]||(F[15]=l1=>a1.$emit("am-pm-change",l1))}),s.createSlots({_:2},[s.renderList(s.unref(Y),(l1,k1)=>({name:l1,fn:s.withCtx(f1=>[s.renderSlot(a1.$slots,l1,s.normalizeProps(s.guardReactiveProps(f1)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):s.createCommentVNode("",!0)],64))}}),Z_e=(e,t)=>{const a=s.ref(),{defaultedMultiCalendars:c,defaultedConfig:n,defaultedHighlight:r,defaultedRange:i,propDates:o,defaultedFilters:l,defaultedMultiDates:f}=a3(e),{modelValue:u,year:d,month:h,calendars:p}=Wu(e,t),{isDisabled:v}=f5(e),{selectYear:m,groupedYears:y,showYearPicker:g,isDisabled:M,toggleYearPicker:x,handleYearSelect:k,handleYear:b}=mk1({modelValue:u,multiCalendars:c,highlight:r,calendars:p,propDates:o,month:h,year:d,filters:l,props:e,emit:t}),_=(T,R)=>[T,R].map(Y=>xt(Y,"MMMM",{locale:e.formatLocale})).join("-"),C=s.computed(()=>T=>u.value?Array.isArray(u.value)?u.value.some(R=>Oa1(T,R)):Oa1(u.value,T):!1),H=T=>{if(i.value.enabled){if(Array.isArray(u.value)){const R=I2(T,u.value[0])||I2(T,u.value[1]);return Jj(u.value,a.value,T)&&!R}return!1}return!1},V=(T,R)=>T.quarter===Na1(R)&&T.year===L2(R),N=T=>typeof r.value=="function"?r.value({quarter:Na1(T),year:L2(T)}):!!r.value.quarters.find(R=>V(R,T)),L=s.computed(()=>T=>{const R=ze(new Date,{year:d.value(T)});return vbe({start:L11(R),end:IM1(R)}).map(Y=>{const e1=ci(Y),Z=Aa1(Y),W=v(Y),I=H(e1),E=N(e1);return{text:_(e1,Z),value:e1,active:C.value(e1),highlighted:E,disabled:W,isBetween:I}})}),w=T=>{U11(T,u,f.value.limit),t("auto-apply",!0)},P=T=>{u.value=W11(u,T,t),cU(u.value,t,e.autoApply,e.modelAuto)},j=T=>{u.value=T,t("auto-apply")};return{defaultedConfig:n,defaultedMultiCalendars:c,groupedYears:y,year:d,isDisabled:M,quarters:L,showYearPicker:g,modelValue:u,setHoverDate:T=>{a.value=T},selectYear:m,selectQuarter:(T,R,Y)=>{if(!Y)return p.value[R].month=P2(Aa1(T)),f.value.enabled?w(T):i.value.enabled?P(T):j(T)},toggleYearPicker:x,handleYearSelect:k,handleYear:b}},X_e={class:"dp--quarter-items"},K_e=["data-test","disabled","onClick","onMouseover"],Q_e=s.defineComponent({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...P6},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.useSlots(),i=o0(r,"yearMode"),{defaultedMultiCalendars:o,defaultedConfig:l,groupedYears:f,year:u,isDisabled:d,quarters:h,modelValue:p,showYearPicker:v,setHoverDate:m,selectQuarter:y,toggleYearPicker:g,handleYearSelect:M,handleYear:x}=Z_e(n,c);return t({getSidebarProps:()=>({modelValue:p,year:u,selectQuarter:y,handleYearSelect:M,handleYear:x})}),(k,b)=>(s.openBlock(),s.createBlock(aU,{"multi-calendars":s.unref(o).count,collapse:k.collapse,stretch:""},{default:s.withCtx(({instance:_})=>[s.createElementVNode("div",{class:"dp-quarter-picker-wrap",style:s.normalizeStyle({minHeight:`${s.unref(l).modeHeight}px`})},[k.$slots["top-extra"]?s.renderSlot(k.$slots,"top-extra",{key:0,value:k.internalModelValue}):s.createCommentVNode("",!0),s.createElementVNode("div",null,[s.createVNode(dk1,s.mergeProps(k.$props,{items:s.unref(f)(_),instance:_,"show-year-picker":s.unref(v)[_],year:s.unref(u)(_),"is-disabled":C=>s.unref(d)(_,C),onHandleYear:C=>s.unref(x)(_,C),onYearSelect:C=>s.unref(M)(C,_),onToggleYearPicker:C=>s.unref(g)(_,C==null?void 0:C.flow,C==null?void 0:C.show)}),s.createSlots({_:2},[s.renderList(s.unref(i),(C,H)=>({name:C,fn:s.withCtx(V=>[s.renderSlot(k.$slots,C,s.normalizeProps(s.guardReactiveProps(V)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),s.createElementVNode("div",X_e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(h)(_),(C,H)=>(s.openBlock(),s.createElementBlock("div",{key:H},[s.createElementVNode("button",{type:"button",class:s.normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":C.active,"dp--qr-btn-between":C.isBetween,"dp--qr-btn-disabled":C.disabled,"dp--highlighted":C.highlighted}]),"data-test":C.value,disabled:C.disabled,onClick:V=>s.unref(y)(C.value,_,C.disabled),onMouseover:V=>s.unref(m)(C.value)},[k.$slots.quarter?s.renderSlot(k.$slots,"quarter",{key:0,value:C.value,text:C.text}):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(C.text),1)],64))],42,K_e)]))),128))])],4)]),_:3},8,["multi-calendars","collapse"]))}}),J_e=["id","aria-label"],ewe={key:0,class:"dp--menu-load-container"},twe=s.createElementVNode("span",{class:"dp--menu-loader"},null,-1),awe=[twe],cwe={key:0,class:"dp__sidebar_left"},nwe=["data-test","onClick","onKeydown"],rwe={key:2,class:"dp__sidebar_right"},iwe={key:3,class:"dp__action_extra"},Wa1=s.defineComponent({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...tU,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.ref(null),i=s.computed(()=>{const{openOnTop:t1,...u1}=n;return{...u1,flowStep:H.value,collapse:n.collapse,noOverlayFocus:n.noOverlayFocus,menuWrapRef:r.value}}),{setMenuFocused:o,setShiftKey:l,control:f}=uk1(),u=s.useSlots(),{defaultedTextInput:d,defaultedInline:h,defaultedConfig:p}=a3(n),v=s.ref(null),m=s.ref(0),y=s.ref(null),g=s.ref(!1),M=s.ref(null);s.onMounted(()=>{if(!n.shadow){g.value=!0,x(),window.addEventListener("resize",x);const t1=D3(r);if(t1&&!d.value.enabled&&!h.value.enabled&&(o(!0),j()),t1){const u1=o1=>{p.value.allowPreventDefault&&o1.preventDefault(),Va(o1,p.value,!0)};t1.addEventListener("pointerdown",u1),t1.addEventListener("mousedown",u1)}}}),s.onUnmounted(()=>{window.removeEventListener("resize",x)});const x=()=>{const t1=D3(y);t1&&(m.value=t1.getBoundingClientRect().width)},{arrowRight:k,arrowLeft:b,arrowDown:_,arrowUp:C}=l5(),{flowStep:H,updateFlowStep:V,childMount:N,resetFlow:L}=ZCe(n,c,M),w=s.computed(()=>n.monthPicker?f_e:n.yearPicker?d_e:n.timePicker?V_e:n.quarterPicker?Q_e:G_e),P=s.computed(()=>{var t1;if(p.value.arrowLeft)return p.value.arrowLeft;const u1=(t1=r.value)==null?void 0:t1.getBoundingClientRect(),o1=n.getInputRect();return o1.width<m.value&&o1.left<=((u1==null?void 0:u1.left)??0)?`${o1.width/2}px`:"50%"}),j=()=>{const t1=D3(r);t1&&t1.focus({preventScroll:!0})},T=s.computed(()=>{var t1;return((t1=M.value)==null?void 0:t1.getSidebarProps())||{}}),R=()=>{n.openOnTop&&c("recalculate-position")},Y=o0(u,"action"),e1=s.computed(()=>n.monthPicker||n.yearPicker?o0(u,"monthYear"):n.timePicker?o0(u,"timePicker"):o0(u,"shared")),Z=s.computed(()=>n.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),W=s.computed(()=>({dp__menu_disabled:n.disabled,dp__menu_readonly:n.readonly,"dp-menu-loading":n.loading})),I=s.computed(()=>({dp__menu:!0,dp__menu_index:!h.value.enabled,dp__relative:h.value.enabled,[n.menuClassName]:!!n.menuClassName})),E=t1=>{Va(t1,p.value,!0)},S=()=>{n.escClose&&c("close-picker")},U=t1=>{if(n.arrowNavigation){if(t1===S4.up)return C();if(t1===S4.down)return _();if(t1===S4.left)return b();if(t1===S4.right)return k()}else t1===S4.right||t1===S4.up?c1("handleArrow",S4.left,0,t1===S4.up):c1("handleArrow",S4.right,0,t1===S4.down)},G=t1=>{l(t1.shiftKey),!n.disableMonthYearSelect&&t1.code===Xe.tab&&t1.target.classList.contains("dp__menu")&&f.value.shiftKeyInMenu&&(t1.preventDefault(),Va(t1,p.value,!0),c("close-picker"))},A=()=>{j(),c("time-picker-close")},B=t1=>{var u1,o1,p1;(u1=M.value)==null||u1.toggleTimePicker(!1,!1),(o1=M.value)==null||o1.toggleMonthPicker(!1,!1,t1),(p1=M.value)==null||p1.toggleYearPicker(!1,!1,t1)},Q=(t1,u1=0)=>{var o1,p1,b1;return t1==="month"?(o1=M.value)==null?void 0:o1.toggleMonthPicker(!1,!0,u1):t1==="year"?(p1=M.value)==null?void 0:p1.toggleYearPicker(!1,!0,u1):t1==="time"?(b1=M.value)==null?void 0:b1.toggleTimePicker(!0,!1):B(u1)},c1=(t1,...u1)=>{var o1,p1;(o1=M.value)!=null&&o1[t1]&&((p1=M.value)==null||p1[t1](...u1))},K=()=>{c1("selectCurrentDate")},a1=(t1,u1)=>{c1("presetDate",t1,u1)},F=()=>{c1("clearHoverDate")},l1=(t1,u1)=>{c1("updateMonthYear",t1,u1)},k1=(t1,u1)=>{t1.preventDefault(),U(u1)},f1=t1=>{if(G(t1),t1.key===Xe.home||t1.key===Xe.end)return c1("selectWeekDate",t1.key===Xe.home);if(t1.key===Xe.pageUp||t1.key===Xe.pageDown)return t1.shiftKey?c1("changeYear",t1.key===Xe.pageUp):c1("changeMonth",t1.key===Xe.pageUp);switch(t1.key){case Xe.esc:return S();case Xe.arrowLeft:return k1(t1,S4.left);case Xe.arrowRight:return k1(t1,S4.right);case Xe.arrowUp:return k1(t1,S4.up);case Xe.arrowDown:return k1(t1,S4.down);default:return}};return t({updateMonthYear:l1,switchView:Q}),(t1,u1)=>{var o1,p1,b1;return s.openBlock(),s.createElementBlock("div",{id:t1.uid?`dp-menu-${t1.uid}`:void 0,ref_key:"dpMenuRef",ref:r,tabindex:"0",role:"dialog","aria-label":(o1=t1.ariaLabels)==null?void 0:o1.menu,class:s.normalizeClass(I.value),style:s.normalizeStyle({"--dp-arrow-left":P.value}),onMouseleave:F,onClick:E,onKeydown:f1},[(t1.disabled||t1.readonly)&&s.unref(h).enabled||t1.loading?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(W.value)},[t1.loading?(s.openBlock(),s.createElementBlock("div",ewe,awe)):s.createCommentVNode("",!0)],2)):s.createCommentVNode("",!0),!s.unref(h).enabled&&!t1.teleportCenter?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(Z.value)},null,2)):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"innerMenuRef",ref:y,class:s.normalizeClass({dp__menu_content_wrapper:((p1=t1.presetDates)==null?void 0:p1.length)||!!t1.$slots["left-sidebar"]||!!t1.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&(((b1=t1.presetDates)==null?void 0:b1.length)||!!t1.$slots["left-sidebar"]||!!t1.$slots["right-sidebar"])}),style:s.normalizeStyle({"--dp-menu-width":`${m.value}px`})},[t1.$slots["left-sidebar"]?(s.openBlock(),s.createElementBlock("div",cwe,[s.renderSlot(t1.$slots,"left-sidebar",s.normalizeProps(s.guardReactiveProps(T.value)))])):s.createCommentVNode("",!0),t1.presetDates.length?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t1.presetDates,(v1,C1)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:C1},[v1.slot?s.renderSlot(t1.$slots,v1.slot,{key:0,presetDate:a1,label:v1.label,value:v1.value}):(s.openBlock(),s.createElementBlock("button",{key:1,type:"button",style:s.normalizeStyle(v1.style||{}),class:s.normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test":v1.testId??void 0,onClick:s.withModifiers(D1=>a1(v1.value,v1.noTz),["prevent"]),onKeydown:D1=>s.unref(G4)(D1,()=>a1(v1.value,v1.noTz),!0)},s.toDisplayString(v1.label),47,nwe))],64))),128))],2)):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"calendarWrapperRef",ref:v,class:"dp__instance_calendar",role:"document"},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(w.value),s.mergeProps({ref_key:"dynCmpRef",ref:M},i.value,{"flow-step":s.unref(H),onMount:s.unref(N),onUpdateFlowStep:s.unref(V),onResetFlow:s.unref(L),onFocusMenu:j,onSelectDate:u1[0]||(u1[0]=v1=>t1.$emit("select-date")),onDateUpdate:u1[1]||(u1[1]=v1=>t1.$emit("date-update",v1)),onTooltipOpen:u1[2]||(u1[2]=v1=>t1.$emit("tooltip-open",v1)),onTooltipClose:u1[3]||(u1[3]=v1=>t1.$emit("tooltip-close",v1)),onAutoApply:u1[4]||(u1[4]=v1=>t1.$emit("auto-apply",v1)),onRangeStart:u1[5]||(u1[5]=v1=>t1.$emit("range-start",v1)),onRangeEnd:u1[6]||(u1[6]=v1=>t1.$emit("range-end",v1)),onInvalidFixedRange:u1[7]||(u1[7]=v1=>t1.$emit("invalid-fixed-range",v1)),onTimeUpdate:u1[8]||(u1[8]=v1=>t1.$emit("time-update")),onAmPmChange:u1[9]||(u1[9]=v1=>t1.$emit("am-pm-change",v1)),onTimePickerOpen:u1[10]||(u1[10]=v1=>t1.$emit("time-picker-open",v1)),onTimePickerClose:A,onRecalculatePosition:R,onUpdateMonthYear:u1[11]||(u1[11]=v1=>t1.$emit("update-month-year",v1)),onAutoApplyInvalid:u1[12]||(u1[12]=v1=>t1.$emit("auto-apply-invalid",v1)),onInvalidDate:u1[13]||(u1[13]=v1=>t1.$emit("invalid-date",v1)),onOverlayToggle:u1[14]||(u1[14]=v1=>t1.$emit("overlay-toggle",v1)),"onUpdate:internalModelValue":u1[15]||(u1[15]=v1=>t1.$emit("update:internal-model-value",v1))}),s.createSlots({_:2},[s.renderList(e1.value,(v1,C1)=>({name:v1,fn:s.withCtx(D1=>[s.renderSlot(t1.$slots,v1,s.normalizeProps(s.guardReactiveProps({...D1})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),t1.$slots["right-sidebar"]?(s.openBlock(),s.createElementBlock("div",rwe,[s.renderSlot(t1.$slots,"right-sidebar",s.normalizeProps(s.guardReactiveProps(T.value)))])):s.createCommentVNode("",!0),t1.$slots["action-extra"]?(s.openBlock(),s.createElementBlock("div",iwe,[t1.$slots["action-extra"]?s.renderSlot(t1.$slots,"action-extra",{key:0,selectCurrentDate:K}):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],6),!t1.autoApply||s.unref(p).keepActionRow?(s.openBlock(),s.createBlock(a_e,s.mergeProps({key:2,"menu-mount":g.value},i.value,{"calendar-width":m.value,onClosePicker:u1[16]||(u1[16]=v1=>t1.$emit("close-picker")),onSelectDate:u1[17]||(u1[17]=v1=>t1.$emit("select-date")),onInvalidSelect:u1[18]||(u1[18]=v1=>t1.$emit("invalid-select")),onSelectNow:K}),s.createSlots({_:2},[s.renderList(s.unref(Y),(v1,C1)=>({name:v1,fn:s.withCtx(D1=>[s.renderSlot(t1.$slots,v1,s.normalizeProps(s.guardReactiveProps({...D1})))])}))]),1040,["menu-mount","calendar-width"])):s.createCommentVNode("",!0)],46,J_e)}}}),owe=typeof window<"u"?window:void 0,AY=()=>{},swe=e=>s.getCurrentScope()?(s.onScopeDispose(e),!0):!1,lwe=(e,t,a,c)=>{if(!e)return AY;let n=AY;const r=s.watch(()=>s.unref(e),o=>{n(),o&&(o.addEventListener(t,a,c),n=()=>{o.removeEventListener(t,a,c),n=AY})},{immediate:!0,flush:"post"}),i=()=>{r(),n()};return swe(i),i},fwe=(e,t,a,c={})=>{const{window:n=owe,event:r="pointerdown"}=c;return n?lwe(n,r,i=>{const o=D3(e),l=D3(t);!o||!l||o===i.target||i.composedPath().includes(o)||i.composedPath().includes(l)||a(i)},{passive:!0}):void 0},uwe=s.defineComponent({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...tU},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.useSlots(),i=s.ref(!1),o=s.toRef(n,"modelValue"),l=s.toRef(n,"timezone"),f=s.ref(null),u=s.ref(null),d=s.ref(null),h=s.ref(!1),p=s.ref(null),v=s.ref(!1),m=s.ref(!1),y=s.ref(!1),{setMenuFocused:g,setShiftKey:M}=uk1(),{clearArrowNav:x}=l5(),{validateDate:k,isValidTime:b}=f5(n),{defaultedTransitions:_,defaultedTextInput:C,defaultedInline:H,defaultedConfig:V,defaultedRange:N,defaultedMultiDates:L}=a3(n),{menuTransition:w,showTransition:P}=Uu(_);s.onMounted(()=>{U(n.modelValue),s.nextTick().then(()=>{if(!H.value.enabled){const s1=W(p.value);s1==null||s1.addEventListener("scroll",k1),window==null||window.addEventListener("resize",f1)}}),H.value.enabled&&(i.value=!0),window==null||window.addEventListener("keyup",t1),window==null||window.addEventListener("keydown",u1)}),s.onUnmounted(()=>{if(!H.value.enabled){const s1=W(p.value);s1==null||s1.removeEventListener("scroll",k1),window==null||window.removeEventListener("resize",f1)}window==null||window.removeEventListener("keyup",t1),window==null||window.removeEventListener("keydown",u1)});const j=o0(r,"all",n.presetDates),T=o0(r,"input");s.watch([o,l],()=>{U(o.value)},{deep:!0});const{openOnTop:R,menuStyle:Y,xCorrect:e1,setMenuPosition:Z,getScrollableParent:W,shadowRender:I}=UCe({menuRef:f,menuRefInner:u,inputRef:d,pickerWrapperRef:p,inline:H,emit:c,props:n,slots:r}),{inputValue:E,internalModelValue:S,parseExternalModelValue:U,emitModelValue:G,formatInputValue:A,checkBeforeEmit:B}=qCe(c,n,h),Q=s.computed(()=>({dp__main:!0,dp__theme_dark:n.dark,dp__theme_light:!n.dark,dp__flex_display:H.value.enabled,"dp--flex-display-collapsed":y.value,dp__flex_display_with_input:H.value.input})),c1=s.computed(()=>n.dark?"dp__theme_dark":"dp__theme_light"),K=s.computed(()=>n.teleport?{to:typeof n.teleport=="boolean"?"body":n.teleport,disabled:!n.teleport||H.value.enabled}:{}),a1=s.computed(()=>({class:"dp__outer_menu_wrap"})),F=s.computed(()=>H.value.enabled&&(n.timePicker||n.monthPicker||n.yearPicker||n.quarterPicker)),l1=()=>{var s1,_1;return(_1=(s1=d.value)==null?void 0:s1.$el)==null?void 0:_1.getBoundingClientRect()},k1=()=>{i.value&&(V.value.closeOnScroll?Y1():Z())},f1=()=>{var s1;i.value&&Z();const _1=(s1=u.value)==null?void 0:s1.$el.getBoundingClientRect().width;y.value=document.body.offsetWidth<=_1},t1=s1=>{s1.key==="Tab"&&!H.value.enabled&&!n.teleport&&V.value.tabOutClosesMenu&&(p.value.contains(document.activeElement)||Y1()),m.value=s1.shiftKey},u1=s1=>{m.value=s1.shiftKey},o1=()=>{!n.disabled&&!n.readonly&&(I(Wa1,n),Z(!1),i.value=!0,i.value&&c("open"),i.value||B1(),U(n.modelValue))},p1=()=>{var s1;E.value="",B1(),(s1=d.value)==null||s1.setParsedDate(null),c("update:model-value",null),c("update:model-timezone-value",null),c("cleared"),V.value.closeOnClearValue&&Y1()},b1=()=>{const s1=S.value;return!s1||!Array.isArray(s1)&&k(s1)?!0:Array.isArray(s1)?L.value.enabled||s1.length===2&&k(s1[0])&&k(s1[1])?!0:N.value.partialRange&&!n.timePicker?k(s1[0]):!1:!1},v1=()=>{B()&&b1()?(G(),Y1()):c("invalid-select",S.value)},C1=s1=>{D1(),G(),V.value.closeOnAutoApply&&!s1&&Y1()},D1=()=>{d.value&&C.value.enabled&&d.value.setParsedDate(S.value)},R1=(s1=!1)=>{n.autoApply&&b(S.value)&&b1()&&(N.value.enabled&&Array.isArray(S.value)?(N.value.partialRange||S.value.length===2)&&C1(s1):C1(s1))},B1=()=>{C.value.enabled||(S.value=null)},Y1=()=>{H.value.enabled||(i.value&&(i.value=!1,e1.value=!1,g(!1),M(!1),x(),c("closed"),E.value&&U(o.value)),B1(),c("blur"))},G1=(s1,_1,L1=!1)=>{if(!s1){S.value=null;return}const W1=Array.isArray(s1)?!s1.some(S2=>!k(S2)):k(s1),g2=b(s1);W1&&g2&&(S.value=s1,_1&&(v.value=L1,v1(),c("text-submit")))},n2=()=>{n.autoApply&&b(S.value)&&G(),D1()},o2=()=>i.value?Y1():o1(),q1=s1=>{S.value=s1},p2=()=>{C.value.enabled&&(h.value=!0,A()),c("focus")},E2=()=>{if(C.value.enabled&&(h.value=!1,U(n.modelValue),v.value)){const s1=yCe(p.value,m.value);s1==null||s1.focus()}c("blur")},h2=s1=>{u.value&&u.value.updateMonthYear(0,{month:Ba1(s1.month),year:Ba1(s1.year)})},y2=s1=>{U(s1??n.modelValue)},ee=(s1,_1)=>{var L1;(L1=u.value)==null||L1.switchView(s1,_1)},d1=s1=>V.value.onClickOutside?V.value.onClickOutside(s1):Y1();return fwe(f,d,()=>d1(b1)),t({closeMenu:Y1,selectDate:v1,clearValue:p1,openMenu:o1,onScroll:k1,formatInputValue:A,updateInternalModelValue:q1,setMonthYear:h2,parseModel:y2,switchView:ee,toggleMenu:o2}),(s1,_1)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"pickerWrapperRef",ref:p,class:s.normalizeClass(Q.value),"data-datepicker-instance":""},[s.createVNode(JCe,s.mergeProps({ref_key:"inputRef",ref:d,"input-value":s.unref(E),"onUpdate:inputValue":_1[0]||(_1[0]=L1=>s.isRef(E)?E.value=L1:null),"is-menu-open":i.value},s1.$props,{onClear:p1,onOpen:o1,onSetInputDate:G1,onSetEmptyDate:s.unref(G),onSelectDate:v1,onToggle:o2,onClose:Y1,onFocus:p2,onBlur:E2,onRealBlur:_1[1]||(_1[1]=L1=>h.value=!1)}),s.createSlots({_:2},[s.renderList(s.unref(T),(L1,W1)=>({name:L1,fn:s.withCtx(g2=>[s.renderSlot(s1.$slots,L1,s.normalizeProps(s.guardReactiveProps(g2)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s1.teleport?s.Teleport:"div"),s.normalizeProps(s.guardReactiveProps(K.value)),{default:s.withCtx(()=>[s.createVNode(s.Transition,{name:s.unref(w)(s.unref(R)),css:s.unref(P)&&!s.unref(H).enabled},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,ref_key:"dpWrapMenuRef",ref:f},a1.value,{class:{"dp--menu-wrapper":!s.unref(H).enabled},style:s.unref(H).enabled?void 0:s.unref(Y)}),[s.createVNode(Wa1,s.mergeProps({ref_key:"dpMenuRef",ref:u},s1.$props,{"internal-model-value":s.unref(S),"onUpdate:internalModelValue":_1[2]||(_1[2]=L1=>s.isRef(S)?S.value=L1:null),class:{[c1.value]:!0,"dp--menu-wrapper":s1.teleport},"open-on-top":s.unref(R),"no-overlay-focus":F.value,collapse:y.value,"get-input-rect":l1,onClosePicker:Y1,onSelectDate:v1,onAutoApply:R1,onTimeUpdate:n2,onFlowStep:_1[3]||(_1[3]=L1=>s1.$emit("flow-step",L1)),onUpdateMonthYear:_1[4]||(_1[4]=L1=>s1.$emit("update-month-year",L1)),onInvalidSelect:_1[5]||(_1[5]=L1=>s1.$emit("invalid-select",s.unref(S))),onAutoApplyInvalid:_1[6]||(_1[6]=L1=>s1.$emit("invalid-select",L1)),onInvalidFixedRange:_1[7]||(_1[7]=L1=>s1.$emit("invalid-fixed-range",L1)),onRecalculatePosition:s.unref(Z),onTooltipOpen:_1[8]||(_1[8]=L1=>s1.$emit("tooltip-open",L1)),onTooltipClose:_1[9]||(_1[9]=L1=>s1.$emit("tooltip-close",L1)),onTimePickerOpen:_1[10]||(_1[10]=L1=>s1.$emit("time-picker-open",L1)),onTimePickerClose:_1[11]||(_1[11]=L1=>s1.$emit("time-picker-close",L1)),onAmPmChange:_1[12]||(_1[12]=L1=>s1.$emit("am-pm-change",L1)),onRangeStart:_1[13]||(_1[13]=L1=>s1.$emit("range-start",L1)),onRangeEnd:_1[14]||(_1[14]=L1=>s1.$emit("range-end",L1)),onDateUpdate:_1[15]||(_1[15]=L1=>s1.$emit("date-update",L1)),onInvalidDate:_1[16]||(_1[16]=L1=>s1.$emit("invalid-date",L1)),onOverlayToggle:_1[17]||(_1[17]=L1=>s1.$emit("overlay-toggle",L1))}),s.createSlots({_:2},[s.renderList(s.unref(j),(L1,W1)=>({name:L1,fn:s.withCtx(g2=>[s.renderSlot(s1.$slots,L1,s.normalizeProps(s.guardReactiveProps({...g2})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","onRecalculatePosition"])],16)):s.createCommentVNode("",!0)]),_:3},8,["name","css"])]),_:3},16))],2))}}),Y11=(()=>{const e=uwe;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),dwe=Object.freeze(Object.defineProperty({__proto__:null,default:Y11},Symbol.toStringTag,{value:"Module"}));Object.entries(dwe).forEach(([e,t])=>{e!=="default"&&(Y11[e]=t)});const hwe=s.defineComponent({__name:"PgaVueDatePicker",props:s.mergeModels({yearPicker:{type:Boolean},monthPicker:{type:Boolean},range:{type:Boolean},enableTimePicker:{type:Boolean},notClearable:{type:Boolean},disabled:{type:Boolean},format:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(n=>({"7d54712b":s.unref(a).input.height,42390913:s.unref(a).input.borderColor,"1db7c8e2":s.unref(a).input.borderRadius,"491ddb51":s.unref(a).input.backgroundColor,"64ba98ed":s.unref(a).input.backgroundColorDisabled,"3e3ecd8e":s.unref(a).input.colorFocus}));const t=s.useModel(e,"modelValue"),{form:a}=C4(),c=s.ref(!1);return(n,r)=>(s.openBlock(),s.createBlock(s.unref(Y11),{class:s.normalizeClass(["pga-date-picker",{"pga-date-picker--disabled":n.disabled,"pga-date-picker--open":c.value}]),modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=i=>t.value=i),disabled:n.disabled,clearable:!n.notClearable,yearPicker:n.yearPicker,monthPicker:n.monthPicker,range:n.range,enableTimePicker:n.enableTimePicker,timePickerInline:"",is24:"",autoApply:"",teleport:!0,locale:s.unref(C6)().language,format:n.format,previewFormat:n.format,onOpen:r[1]||(r[1]=i=>c.value=!0),onBlur:r[2]||(r[2]=i=>c.value=!1)},null,8,["class","modelValue","disabled","clearable","yearPicker","monthPicker","range","enableTimePicker","locale","format","previewFormat"]))}});const Gu=Q1(hwe,[["__scopeId","data-v-6340cbfb"]]),pwe=s.defineComponent({__name:"PgaDatePicker",props:s.mergeModels({isDateModel:{type:Boolean},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{},notClearable:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=s.computed({get(){const r=t.value;if(!r)return null;if(r instanceof Date)return r;const[i,o,l]=r.split("-").map(Number);return new Date(i,o-1,l)},set(r){if(!r){t.value=null;return}if(a.isDateModel){t.value=r;return}t.value=r.toISOString().split("T")[0]}});function n(r){return x6(r,{format:"numeric",withTime:!1})}return(r,i)=>(s.openBlock(),s.createBlock(M0,{label:r.label,withRequiredLabel:r.withRequiredLabel,withOptionalLabel:r.withOptionalLabel,withLabelSpace:r.withLabelSpace,info:r.info,description:r.description,errors:r.errors,grow:r.grow},{default:s.withCtx(()=>[s.createVNode(Gu,{modelValue:c.value,"onUpdate:modelValue":i[0]||(i[0]=o=>c.value=o),disabled:r.disabled,notClearable:r.notClearable,format:n},null,8,["modelValue","disabled","notClearable"])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}}),mwe=s.defineComponent({__name:"PgaDatetimePicker",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{},notClearable:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue");function a(c){return x6(c,{format:"short",withTime:!0})}return(c,n)=>(s.openBlock(),s.createBlock(M0,{label:c.label,withRequiredLabel:c.withRequiredLabel,withOptionalLabel:c.withOptionalLabel,withLabelSpace:c.withLabelSpace,info:c.info,description:c.description,errors:c.errors,grow:c.grow},{default:s.withCtx(()=>[s.createVNode(Gu,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=r=>t.value=r),enableTimePicker:"",disabled:c.disabled,notClearable:c.notClearable,format:a},null,8,["modelValue","disabled","notClearable"])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}}),vwe={class:"pga-icon-selector"},ywe=["onClick"],gwe=s.defineComponent({__name:"PgaIconSelector",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(n=>({"3be7db1d":s.unref(a).input.borderColor,"59e33818":s.unref(a).input.borderRadius}));const t=s.useModel(e,"modelValue"),{form:a}=C4(),c=["star","heart","mail","plus","minus","pen","square-pen","check","trash","file","clipboard","bell","calendar","clock","banknote","gift","percent","hand-coins","house","warehouse","car","store","gamepad","smartphone","school","shirt","stethoscope","smile","frown","cog","lock","bug","camera","code","headphones","wifi","user","search","arrow-left-right","circle"];return(n,r)=>(s.openBlock(),s.createBlock(M0,{label:n.label,withRequiredLabel:n.withRequiredLabel,withOptionalLabel:n.withOptionalLabel,withLabelSpace:n.withLabelSpace,info:n.info,description:n.description,errors:n.errors,grow:n.grow},{default:s.withCtx(()=>[s.createElementVNode("div",vwe,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(c,i=>s.createElementVNode("div",{key:i,class:s.normalizeClass(["icon-selector__item",{"icon-selector__item--selected":t.value===i,"icon-selector__item--disabled":n.disabled}]),onClick:o=>!n.disabled&&(t.value=i)},[s.createVNode(ge,{icon:i,color:t.value===i?"#ffffff":"first",size:"1.1rem"},null,8,["icon","color"])],10,ywe)),64))])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const Mwe=Q1(gwe,[["__scopeId","data-v-147025ed"]]);/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var gk1=1252,kwe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],G11={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Z11=function(e){kwe.indexOf(e)!=-1&&(gk1=G11[0]=e)};function xwe(){Z11(1252)}var s6=function(e){Z11(e)};function Mk1(){s6(1200),xwe()}function Ya1(e){for(var t=[],a=0,c=e.length;a<c;++a)t[a]=e.charCodeAt(a);return t}function bwe(e){for(var t=[],a=0;a<e.length>>1;++a)t[a]=String.fromCharCode(e.charCodeAt(2*a)+(e.charCodeAt(2*a+1)<<8));return t.join("")}function kk1(e){for(var t=[],a=0;a<e.length>>1;++a)t[a]=String.fromCharCode(e.charCodeAt(2*a+1)+(e.charCodeAt(2*a)<<8));return t.join("")}var cl=function(e){var t=e.charCodeAt(0),a=e.charCodeAt(1);return t==255&&a==254?bwe(e.slice(2)):t==254&&a==255?kk1(e.slice(2)):t==65279?e.slice(1):e},mh=function(t){return String.fromCharCode(t)},Ga1=function(t){return String.fromCharCode(t)},aa,ya="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Za1(e){for(var t="",a=0,c=0,n=0,r=0,i=0,o=0,l=0,f=0;f<e.length;)a=e.charCodeAt(f++),r=a>>2,c=e.charCodeAt(f++),i=(a&3)<<4|c>>4,n=e.charCodeAt(f++),o=(c&15)<<2|n>>6,l=n&63,isNaN(c)?o=l=64:isNaN(n)&&(l=64),t+=ya.charAt(r)+ya.charAt(i)+ya.charAt(o)+ya.charAt(l);return t}function m0(e){var t="",a=0,c=0,n=0,r=0,i=0,o=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var f=0;f<e.length;)r=ya.indexOf(e.charAt(f++)),i=ya.indexOf(e.charAt(f++)),a=r<<2|i>>4,t+=String.fromCharCode(a),o=ya.indexOf(e.charAt(f++)),c=(i&15)<<4|o>>2,o!==64&&(t+=String.fromCharCode(c)),l=ya.indexOf(e.charAt(f++)),n=(o&3)<<6|l,l!==64&&(t+=String.fromCharCode(n));return t}var $2=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),no=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,a){return a?new Buffer(t,a):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Ga(e){return $2?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Xa1(e){return $2?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var a6=function(t){return $2?no(t,"binary"):t.split("").map(function(a){return a.charCodeAt(0)&255})};function ro(e){if(Array.isArray(e))return e.map(function(c){return String.fromCharCode(c)}).join("");for(var t=[],a=0;a<e.length;++a)t[a]=String.fromCharCode(e[a]);return t.join("")}function X11(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return X11(new Uint8Array(e));for(var t=new Array(e.length),a=0;a<e.length;++a)t[a]=e[a];return t}var ca=$2?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:no(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,a=0;for(t=0;t<e.length;++t)a+=e[t].length;var c=new Uint8Array(a),n=0;for(t=0,a=0;t<e.length;a+=n,++t)if(n=e[t].length,e[t]instanceof Uint8Array)c.set(e[t],a);else{if(typeof e[t]=="string")throw"wtf";c.set(new Uint8Array(e[t]),a)}return c}return[].concat.apply([],e.map(function(r){return Array.isArray(r)?r:[].slice.call(r)}))};function zwe(e){for(var t=[],a=0,c=e.length+250,n=Ga(e.length+255),r=0;r<e.length;++r){var i=e.charCodeAt(r);if(i<128)n[a++]=i;else if(i<2048)n[a++]=192|i>>6&31,n[a++]=128|i&63;else if(i>=55296&&i<57344){i=(i&1023)+64;var o=e.charCodeAt(++r)&1023;n[a++]=240|i>>8&7,n[a++]=128|i>>2&63,n[a++]=128|o>>6&15|(i&3)<<4,n[a++]=128|o&63}else n[a++]=224|i>>12&15,n[a++]=128|i>>6&63,n[a++]=128|i&63;a>c&&(t.push(n.slice(0,a)),a=0,n=Ga(65535),c=65530)}return t.push(n.slice(0,a)),ca(t)}var E4=/\u0000/g,nl=/[\u0001-\u0006]/g;function ts(e){for(var t="",a=e.length-1;a>=0;)t+=e.charAt(a--);return t}function l6(e,t){var a=""+e;return a.length>=t?a:i3("0",t-a.length)+a}function K11(e,t){var a=""+e;return a.length>=t?a:i3(" ",t-a.length)+a}function Z$(e,t){var a=""+e;return a.length>=t?a:a+i3(" ",t-a.length)}function Cwe(e,t){var a=""+Math.round(e);return a.length>=t?a:i3("0",t-a.length)+a}function _we(e,t){var a=""+e;return a.length>=t?a:i3("0",t-a.length)+a}var Ka1=Math.pow(2,32);function Co(e,t){if(e>Ka1||e<-Ka1)return Cwe(e,t);var a=Math.round(e);return _we(a,t)}function X$(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var Qa1=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],TY=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function wwe(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var x2={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Ja1={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Hwe={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function K$(e,t,a){for(var c=e<0?-1:1,n=e*c,r=0,i=1,o=0,l=1,f=0,u=0,d=Math.floor(n);f<t&&(d=Math.floor(n),o=d*i+r,u=d*f+l,!(n-d<5e-8));)n=1/(n-d),r=i,i=o,l=f,f=u;if(u>t&&(f>t?(u=l,o=r):(u=f,o=i)),!a)return[0,c*o,u];var h=Math.floor(c*o/u);return[h,c*o-h*u,u]}function ni(e,t,a){if(e>2958465||e<0)return null;var c=e|0,n=Math.floor(86400*(e-c)),r=0,i=[],o={D:c,T:n,u:86400*(e-c)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(c+=1462),o.u>.9999&&(o.u=0,++n==86400&&(o.T=n=0,++c,++o.D)),c===60)i=a?[1317,10,29]:[1900,2,29],r=3;else if(c===0)i=a?[1317,8,29]:[1900,1,0],r=6;else{c>60&&--c;var l=new Date(1900,0,1);l.setDate(l.getDate()+c-1),i=[l.getFullYear(),l.getMonth()+1,l.getDate()],r=l.getDay(),c<60&&(r=(r+6)%7),a&&(r=Twe(l,i))}return o.y=i[0],o.m=i[1],o.d=i[2],o.S=n%60,n=Math.floor(n/60),o.M=n%60,n=Math.floor(n/60),o.H=n,o.q=r,o}var xk1=new Date(1899,11,31,0,0,0),Lwe=xk1.getTime(),Vwe=new Date(1900,2,1,0,0,0);function bk1(e,t){var a=e.getTime();return t?a-=1461*24*60*60*1e3:e>=Vwe&&(a+=24*60*60*1e3),(a-(Lwe+(e.getTimezoneOffset()-xk1.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function Q11(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Swe(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Nwe(e){var t=e<0?12:11,a=Q11(e.toFixed(12));return a.length<=t||(a=e.toPrecision(10),a.length<=t)?a:e.toExponential(5)}function Awe(e){var t=Q11(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function Uf(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),a;return t>=-4&&t<=-1?a=e.toPrecision(10+t):Math.abs(t)<=9?a=Nwe(e):t===10?a=e.toFixed(10).substr(0,12):a=Awe(e),Q11(Swe(a.toUpperCase()))}function Pi(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Uf(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return D0(14,bk1(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Twe(e,t){t[0]-=581;var a=e.getDay();return e<60&&(a=(a+6)%7),a}function Ewe(e,t,a,c){var n="",r=0,i=0,o=a.y,l,f=0;switch(e){case 98:o=a.y+543;case 121:switch(t.length){case 1:case 2:l=o%100,f=2;break;default:l=o%1e4,f=4;break}break;case 109:switch(t.length){case 1:case 2:l=a.m,f=t.length;break;case 3:return TY[a.m-1][1];case 5:return TY[a.m-1][0];default:return TY[a.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=a.d,f=t.length;break;case 3:return Qa1[a.q][0];default:return Qa1[a.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(a.H+11)%12,f=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=a.H,f=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=a.M,f=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return a.u===0&&(t=="s"||t=="ss")?l6(a.S,t.length):(c>=2?i=c===3?1e3:100:i=c===1?10:1,r=Math.round(i*(a.S+a.u)),r>=60*i&&(r=0),t==="s"?r===0?"0":""+r/i:(n=l6(r,2+c),t==="ss"?n.substr(0,2):"."+n.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=a.D*24+a.H;break;case"[m]":case"[mm]":l=(a.D*24+a.H)*60+a.M;break;case"[s]":case"[ss]":l=((a.D*24+a.H)*60+a.M)*60+Math.round(a.S+a.u);break;default:throw"bad abstime format: "+t}f=t.length===3?1:2;break;case 101:l=o,f=1;break}var u=f>0?l6(l,f):"";return u}function ga(e){var t=3;if(e.length<=t)return e;for(var a=e.length%t,c=e.substr(0,a);a!=e.length;a+=t)c+=(c.length>0?",":"")+e.substr(a,t);return c}var zk1=/%/g;function Dwe(e,t,a){var c=t.replace(zk1,""),n=t.length-c.length;return v8(e,c,a*Math.pow(10,2*n))+i3("%",n)}function Pwe(e,t,a){for(var c=t.length-1;t.charCodeAt(c-1)===44;)--c;return v8(e,t.substr(0,c),a/Math.pow(10,3*(t.length-c)))}function Ck1(e,t){var a,c=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+Ck1(e,-t);var n=e.indexOf(".");n===-1&&(n=e.indexOf("E"));var r=Math.floor(Math.log(t)*Math.LOG10E)%n;if(r<0&&(r+=n),a=(t/Math.pow(10,r)).toPrecision(c+1+(n+r)%n),a.indexOf("e")===-1){var i=Math.floor(Math.log(t)*Math.LOG10E);for(a.indexOf(".")===-1?a=a.charAt(0)+"."+a.substr(1)+"E+"+(i-a.length+r):a+="E+"+(i-r);a.substr(0,2)==="0.";)a=a.charAt(0)+a.substr(2,n)+"."+a.substr(2+n),a=a.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");a=a.replace(/\+-/,"-")}a=a.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,f,u){return l+f+u.substr(0,(n+r)%n)+"."+u.substr(r)+"E"})}else a=t.toExponential(c);return e.match(/E\+00$/)&&a.match(/e[+-]\d$/)&&(a=a.substr(0,a.length-1)+"0"+a.charAt(a.length-1)),e.match(/E\-/)&&a.match(/e\+/)&&(a=a.replace(/e\+/,"e")),a.replace("e","E")}var _k1=/# (\?+)( ?)\/( ?)(\d+)/;function Owe(e,t,a){var c=parseInt(e[4],10),n=Math.round(t*c),r=Math.floor(n/c),i=n-r*c,o=c;return a+(r===0?"":""+r)+" "+(i===0?i3(" ",e[1].length+1+e[4].length):K11(i,e[1].length)+e[2]+"/"+e[3]+l6(o,e[4].length))}function Iwe(e,t,a){return a+(t===0?"":""+t)+i3(" ",e[1].length+2+e[4].length)}var wk1=/^#*0*\.([0#]+)/,Hk1=/\).*[0#]/,Lk1=/\(###\) ###\\?-####/;function N4(e){for(var t="",a,c=0;c!=e.length;++c)switch(a=e.charCodeAt(c)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(a)}return t}function e51(e,t){var a=Math.pow(10,t);return""+Math.round(e*a)/a}function t51(e,t){var a=e-Math.floor(e),c=Math.pow(10,t);return t<(""+Math.round(a*c)).length?0:Math.round(a*c)}function Bwe(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function Rwe(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function w0(e,t,a){if(e.charCodeAt(0)===40&&!t.match(Hk1)){var c=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return a>=0?w0("n",c,a):"("+w0("n",c,-a)+")"}if(t.charCodeAt(t.length-1)===44)return Pwe(e,t,a);if(t.indexOf("%")!==-1)return Dwe(e,t,a);if(t.indexOf("E")!==-1)return Ck1(t,a);if(t.charCodeAt(0)===36)return"$"+w0(e,t.substr(t.charAt(1)==" "?2:1),a);var n,r,i,o,l=Math.abs(a),f=a<0?"-":"";if(t.match(/^00+$/))return f+Co(l,t.length);if(t.match(/^[#?]+$/))return n=Co(a,0),n==="0"&&(n=""),n.length>t.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(_k1))return Owe(r,l,f);if(t.match(/^#+0+$/))return f+Co(l,t.length-t.indexOf("0"));if(r=t.match(wk1))return n=e51(a,r[1].length).replace(/^([^\.]+)$/,"$1."+N4(r[1])).replace(/\.$/,"."+N4(r[1])).replace(/\.(\d*)$/,function(v,m){return"."+m+i3("0",N4(r[1]).length-m.length)}),t.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),r=t.match(/^(0*)\.(#*)$/))return f+e51(l,r[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,r[1].length?"0.":".");if(r=t.match(/^#{1,3},##0(\.?)$/))return f+ga(Co(l,0));if(r=t.match(/^#,##0\.([#0]*0)$/))return a<0?"-"+w0(e,t,-a):ga(""+(Math.floor(a)+Bwe(a,r[1].length)))+"."+l6(t51(a,r[1].length),r[1].length);if(r=t.match(/^#,#*,#0/))return w0(e,t.replace(/^#,#*,/,""),a);if(r=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=ts(w0(e,t.replace(/[\\-]/g,""),a)),i=0,ts(ts(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return i<n.length?n.charAt(i++):v==="0"?"0":""}));if(t.match(Lk1))return n=w0(e,"##########",a),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var u="";if(r=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(r[4].length,7),o=K$(l,Math.pow(10,i)-1,!1),n=""+f,u=v8("n",r[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),n+=u+r[2]+"/"+r[3],u=Z$(o[2],i),u.length<r[4].length&&(u=N4(r[4].substr(r[4].length-u.length))+u),n+=u,n;if(r=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(Math.max(r[1].length,r[4].length),7),o=K$(l,Math.pow(10,i)-1,!0),f+(o[0]||(o[1]?"":"0"))+" "+(o[1]?K11(o[1],i)+r[2]+"/"+r[3]+Z$(o[2],i):i3(" ",2*i+1+r[2].length+r[3].length));if(r=t.match(/^[#0?]+$/))return n=Co(a,0),t.length<=n.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(/^([#0?]+)\.([#0]+)$/)){n=""+a.toFixed(Math.min(r[2].length,10)).replace(/([^0])0+$/,"$1"),i=n.indexOf(".");var d=t.indexOf(".")-i,h=t.length-n.length-d;return N4(t.substr(0,d)+n+t.substr(t.length-h))}if(r=t.match(/^00,000\.([#0]*0)$/))return i=t51(a,r[1].length),a<0?"-"+w0(e,t,-a):ga(Rwe(a)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?l6(0,3-v.length):"")+v})+"."+l6(i,r[1].length);switch(t){case"###,##0.00":return w0(e,"#,##0.00",a);case"###,###":case"##,###":case"#,###":var p=ga(Co(l,0));return p!=="0"?f+p:"";case"###,###.00":return w0(e,"###,##0.00",a).replace(/^0\./,".");case"#,###.00":return w0(e,"#,##0.00",a).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function Fwe(e,t,a){for(var c=t.length-1;t.charCodeAt(c-1)===44;)--c;return v8(e,t.substr(0,c),a/Math.pow(10,3*(t.length-c)))}function $we(e,t,a){var c=t.replace(zk1,""),n=t.length-c.length;return v8(e,c,a*Math.pow(10,2*n))+i3("%",n)}function Vk1(e,t){var a,c=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+Vk1(e,-t);var n=e.indexOf(".");n===-1&&(n=e.indexOf("E"));var r=Math.floor(Math.log(t)*Math.LOG10E)%n;if(r<0&&(r+=n),a=(t/Math.pow(10,r)).toPrecision(c+1+(n+r)%n),!a.match(/[Ee]/)){var i=Math.floor(Math.log(t)*Math.LOG10E);a.indexOf(".")===-1?a=a.charAt(0)+"."+a.substr(1)+"E+"+(i-a.length+r):a+="E+"+(i-r),a=a.replace(/\+-/,"-")}a=a.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,f,u){return l+f+u.substr(0,(n+r)%n)+"."+u.substr(r)+"E"})}else a=t.toExponential(c);return e.match(/E\+00$/)&&a.match(/e[+-]\d$/)&&(a=a.substr(0,a.length-1)+"0"+a.charAt(a.length-1)),e.match(/E\-/)&&a.match(/e\+/)&&(a=a.replace(/e\+/,"e")),a.replace("e","E")}function K6(e,t,a){if(e.charCodeAt(0)===40&&!t.match(Hk1)){var c=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return a>=0?K6("n",c,a):"("+K6("n",c,-a)+")"}if(t.charCodeAt(t.length-1)===44)return Fwe(e,t,a);if(t.indexOf("%")!==-1)return $we(e,t,a);if(t.indexOf("E")!==-1)return Vk1(t,a);if(t.charCodeAt(0)===36)return"$"+K6(e,t.substr(t.charAt(1)==" "?2:1),a);var n,r,i,o,l=Math.abs(a),f=a<0?"-":"";if(t.match(/^00+$/))return f+l6(l,t.length);if(t.match(/^[#?]+$/))return n=""+a,a===0&&(n=""),n.length>t.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(_k1))return Iwe(r,l,f);if(t.match(/^#+0+$/))return f+l6(l,t.length-t.indexOf("0"));if(r=t.match(wk1))return n=(""+a).replace(/^([^\.]+)$/,"$1."+N4(r[1])).replace(/\.$/,"."+N4(r[1])),n=n.replace(/\.(\d*)$/,function(v,m){return"."+m+i3("0",N4(r[1]).length-m.length)}),t.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),r=t.match(/^(0*)\.(#*)$/))return f+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,r[1].length?"0.":".");if(r=t.match(/^#{1,3},##0(\.?)$/))return f+ga(""+l);if(r=t.match(/^#,##0\.([#0]*0)$/))return a<0?"-"+K6(e,t,-a):ga(""+a)+"."+i3("0",r[1].length);if(r=t.match(/^#,#*,#0/))return K6(e,t.replace(/^#,#*,/,""),a);if(r=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=ts(K6(e,t.replace(/[\\-]/g,""),a)),i=0,ts(ts(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return i<n.length?n.charAt(i++):v==="0"?"0":""}));if(t.match(Lk1))return n=K6(e,"##########",a),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var u="";if(r=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(r[4].length,7),o=K$(l,Math.pow(10,i)-1,!1),n=""+f,u=v8("n",r[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),n+=u+r[2]+"/"+r[3],u=Z$(o[2],i),u.length<r[4].length&&(u=N4(r[4].substr(r[4].length-u.length))+u),n+=u,n;if(r=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(Math.max(r[1].length,r[4].length),7),o=K$(l,Math.pow(10,i)-1,!0),f+(o[0]||(o[1]?"":"0"))+" "+(o[1]?K11(o[1],i)+r[2]+"/"+r[3]+Z$(o[2],i):i3(" ",2*i+1+r[2].length+r[3].length));if(r=t.match(/^[#0?]+$/))return n=""+a,t.length<=n.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(/^([#0]+)\.([#0]+)$/)){n=""+a.toFixed(Math.min(r[2].length,10)).replace(/([^0])0+$/,"$1"),i=n.indexOf(".");var d=t.indexOf(".")-i,h=t.length-n.length-d;return N4(t.substr(0,d)+n+t.substr(t.length-h))}if(r=t.match(/^00,000\.([#0]*0)$/))return a<0?"-"+K6(e,t,-a):ga(""+a).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?l6(0,3-v.length):"")+v})+"."+l6(0,r[1].length);switch(t){case"###,###":case"##,###":case"#,###":var p=ga(""+l);return p!=="0"?f+p:"";default:if(t.match(/\.[0#?]*$/))return K6(e,t.slice(0,t.lastIndexOf(".")),a)+N4(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function v8(e,t,a){return(a|0)===a?K6(e,t,a):w0(e,t,a)}function qwe(e){for(var t=[],a=!1,c=0,n=0;c<e.length;++c)switch(e.charCodeAt(c)){case 34:a=!a;break;case 95:case 42:case 92:++c;break;case 59:t[t.length]=e.substr(n,c-n),n=c+1}if(t[t.length]=e.substr(n),a===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var Sk1=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Qs(e){for(var t=0,a="",c="";t<e.length;)switch(a=e.charAt(t)){case"G":X$(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(c=a;e.charAt(t++)!=="]"&&t<e.length;)c+=e.charAt(t);if(c.match(Sk1))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(a=e.charAt(++t))>-1||a=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===a;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function jwe(e,t,a,c){for(var n=[],r="",i=0,o="",l="t",f,u,d,h="H";i<e.length;)switch(o=e.charAt(i)){case"G":if(!X$(e,i))throw new Error("unrecognized character "+o+" in "+e);n[n.length]={t:"G",v:"General"},i+=7;break;case'"':for(r="";(d=e.charCodeAt(++i))!==34&&i<e.length;)r+=String.fromCharCode(d);n[n.length]={t:"t",v:r},++i;break;case"\\":var p=e.charAt(++i),v=p==="("||p===")"?p:"t";n[n.length]={t:v,v:p},++i;break;case"_":n[n.length]={t:"t",v:" "},i+=2;break;case"@":n[n.length]={t:"T",v:t},++i;break;case"B":case"b":if(e.charAt(i+1)==="1"||e.charAt(i+1)==="2"){if(f==null&&(f=ni(t,a,e.charAt(i+1)==="2"),f==null))return"";n[n.length]={t:"X",v:e.substr(i,2)},l=o,i+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":o=o.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||f==null&&(f=ni(t,a),f==null))return"";for(r=o;++i<e.length&&e.charAt(i).toLowerCase()===o;)r+=o;o==="m"&&l.toLowerCase()==="h"&&(o="M"),o==="h"&&(o=h),n[n.length]={t:o,v:r},l=o;break;case"A":case"a":case"上":var m={t:o,v:o};if(f==null&&(f=ni(t,a)),e.substr(i,3).toUpperCase()==="A/P"?(f!=null&&(m.v=f.H>=12?"P":"A"),m.t="T",h="h",i+=3):e.substr(i,5).toUpperCase()==="AM/PM"?(f!=null&&(m.v=f.H>=12?"PM":"AM"),m.t="T",i+=5,h="h"):e.substr(i,5).toUpperCase()==="上午/下午"?(f!=null&&(m.v=f.H>=12?"下午":"上午"),m.t="T",i+=5,h="h"):(m.t="t",++i),f==null&&m.t==="T")return"";n[n.length]=m,l=o;break;case"[":for(r=o;e.charAt(i++)!=="]"&&i<e.length;)r+=e.charAt(i);if(r.slice(-1)!=="]")throw'unterminated "[" block: |'+r+"|";if(r.match(Sk1)){if(f==null&&(f=ni(t,a),f==null))return"";n[n.length]={t:"Z",v:r.toLowerCase()},l=r.charAt(1)}else r.indexOf("$")>-1&&(r=(r.match(/\$([^-\[\]]*)/)||[])[1]||"$",Qs(e)||(n[n.length]={t:"t",v:r}));break;case".":if(f!=null){for(r=o;++i<e.length&&(o=e.charAt(i))==="0";)r+=o;n[n.length]={t:"s",v:r};break}case"0":case"#":for(r=o;++i<e.length&&"0#?.,E+-%".indexOf(o=e.charAt(i))>-1;)r+=o;n[n.length]={t:"n",v:r};break;case"?":for(r=o;e.charAt(++i)===o;)r+=o;n[n.length]={t:o,v:r},l=o;break;case"*":++i,(e.charAt(i)==" "||e.charAt(i)=="*")&&++i;break;case"(":case")":n[n.length]={t:c===1?"t":o,v:o},++i;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(r=o;i<e.length&&"0123456789".indexOf(e.charAt(++i))>-1;)r+=e.charAt(i);n[n.length]={t:"D",v:r};break;case" ":n[n.length]={t:o,v:o},++i;break;case"$":n[n.length]={t:"t",v:"$"},++i;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+e);n[n.length]={t:"t",v:o},++i;break}var y=0,g=0,M;for(i=n.length-1,l="t";i>=0;--i)switch(n[i].t){case"h":case"H":n[i].t=h,l="h",y<1&&(y=1);break;case"s":(M=n[i].v.match(/\.0+$/))&&(g=Math.max(g,M[0].length-1)),y<3&&(y=3);case"d":case"y":case"M":case"e":l=n[i].t;break;case"m":l==="s"&&(n[i].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&n[i].v.match(/[Hh]/)&&(y=1),y<2&&n[i].v.match(/[Mm]/)&&(y=2),y<3&&n[i].v.match(/[Ss]/)&&(y=3)}switch(y){case 0:break;case 1:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M),f.M>=60&&(f.M=0,++f.H);break;case 2:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M);break}var x="",k;for(i=0;i<n.length;++i)switch(n[i].t){case"t":case"T":case" ":case"D":break;case"X":n[i].v="",n[i].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":n[i].v=Ewe(n[i].t.charCodeAt(0),n[i].v,f,g),n[i].t="t";break;case"n":case"?":for(k=i+1;n[k]!=null&&((o=n[k].t)==="?"||o==="D"||(o===" "||o==="t")&&n[k+1]!=null&&(n[k+1].t==="?"||n[k+1].t==="t"&&n[k+1].v==="/")||n[i].t==="("&&(o===" "||o==="n"||o===")")||o==="t"&&(n[k].v==="/"||n[k].v===" "&&n[k+1]!=null&&n[k+1].t=="?"));)n[i].v+=n[k].v,n[k]={v:"",t:";"},++k;x+=n[i].v,i=k-1;break;case"G":n[i].t="t",n[i].v=Pi(t,a);break}var b="",_,C;if(x.length>0){x.charCodeAt(0)==40?(_=t<0&&x.charCodeAt(0)===45?-t:t,C=v8("n",x,_)):(_=t<0&&c>1?-t:t,C=v8("n",x,_),_<0&&n[0]&&n[0].t=="t"&&(C=C.substr(1),n[0].v="-"+n[0].v)),k=C.length-1;var H=n.length;for(i=0;i<n.length;++i)if(n[i]!=null&&n[i].t!="t"&&n[i].v.indexOf(".")>-1){H=i;break}var V=n.length;if(H===n.length&&C.indexOf("E")===-1){for(i=n.length-1;i>=0;--i)n[i]==null||"n?".indexOf(n[i].t)===-1||(k>=n[i].v.length-1?(k-=n[i].v.length,n[i].v=C.substr(k+1,n[i].v.length)):k<0?n[i].v="":(n[i].v=C.substr(0,k+1),k=-1),n[i].t="t",V=i);k>=0&&V<n.length&&(n[V].v=C.substr(0,k+1)+n[V].v)}else if(H!==n.length&&C.indexOf("E")===-1){for(k=C.indexOf(".")-1,i=H;i>=0;--i)if(!(n[i]==null||"n?".indexOf(n[i].t)===-1)){for(u=n[i].v.indexOf(".")>-1&&i===H?n[i].v.indexOf(".")-1:n[i].v.length-1,b=n[i].v.substr(u+1);u>=0;--u)k>=0&&(n[i].v.charAt(u)==="0"||n[i].v.charAt(u)==="#")&&(b=C.charAt(k--)+b);n[i].v=b,n[i].t="t",V=i}for(k>=0&&V<n.length&&(n[V].v=C.substr(0,k+1)+n[V].v),k=C.indexOf(".")+1,i=H;i<n.length;++i)if(!(n[i]==null||"n?(".indexOf(n[i].t)===-1&&i!==H)){for(u=n[i].v.indexOf(".")>-1&&i===H?n[i].v.indexOf(".")+1:0,b=n[i].v.substr(0,u);u<n[i].v.length;++u)k<C.length&&(b+=C.charAt(k++));n[i].v=b,n[i].t="t",V=i}}}for(i=0;i<n.length;++i)n[i]!=null&&"n?".indexOf(n[i].t)>-1&&(_=c>1&&t<0&&i>0&&n[i-1].v==="-"?-t:t,n[i].v=v8(n[i].t,n[i].v,_),n[i].t="t");var N="";for(i=0;i!==n.length;++i)n[i]!=null&&(N+=n[i].v);return N}var a51=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function c51(e,t){if(t==null)return!1;var a=parseFloat(t[2]);switch(t[1]){case"=":if(e==a)return!0;break;case">":if(e>a)return!0;break;case"<":if(e<a)return!0;break;case"<>":if(e!=a)return!0;break;case">=":if(e>=a)return!0;break;case"<=":if(e<=a)return!0;break}return!1}function Uwe(e,t){var a=qwe(e),c=a.length,n=a[c-1].indexOf("@");if(c<4&&n>-1&&--c,a.length>4)throw new Error("cannot find right format for |"+a.join("|")+"|");if(typeof t!="number")return[4,a.length===4||n>-1?a[a.length-1]:"@"];switch(a.length){case 1:a=n>-1?["General","General","General",a[0]]:[a[0],a[0],a[0],"@"];break;case 2:a=n>-1?[a[0],a[0],a[0],a[1]]:[a[0],a[1],a[0],"@"];break;case 3:a=n>-1?[a[0],a[1],a[0],a[2]]:[a[0],a[1],a[2],"@"];break}var r=t>0?a[0]:t<0?a[1]:a[2];if(a[0].indexOf("[")===-1&&a[1].indexOf("[")===-1)return[c,r];if(a[0].match(/\[[=<>]/)!=null||a[1].match(/\[[=<>]/)!=null){var i=a[0].match(a51),o=a[1].match(a51);return c51(t,i)?[c,a[0]]:c51(t,o)?[c,a[1]]:[c,a[i!=null&&o!=null?2:1]]}return[c,r]}function D0(e,t,a){a==null&&(a={});var c="";switch(typeof e){case"string":e=="m/d/yy"&&a.dateNF?c=a.dateNF:c=e;break;case"number":e==14&&a.dateNF?c=a.dateNF:c=(a.table!=null?a.table:x2)[e],c==null&&(c=a.table&&a.table[Ja1[e]]||x2[Ja1[e]]),c==null&&(c=Hwe[e]||"General");break}if(X$(c,0))return Pi(t,a);t instanceof Date&&(t=bk1(t,a.date1904));var n=Uwe(c,t);if(X$(n[1]))return Pi(t,a);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return jwe(n[1],t,a,n[0])}function gi(e,t){if(typeof t!="number"){t=+t||-1;for(var a=0;a<392;++a){if(x2[a]==null){t<0&&(t=a);continue}if(x2[a]==e){t=a;break}}t<0&&(t=391)}return x2[t]=e,t}function Nk1(){x2=wwe()}var Wwe={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Ak1=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Ywe(e){var t=typeof e=="number"?x2[e]:e;return t=t.replace(Ak1,"(\\d+)"),new RegExp("^"+t+"$")}function Gwe(e,t,a){var c=-1,n=-1,r=-1,i=-1,o=-1,l=-1;(t.match(Ak1)||[]).forEach(function(d,h){var p=parseInt(a[h+1],10);switch(d.toLowerCase().charAt(0)){case"y":c=p;break;case"d":r=p;break;case"h":i=p;break;case"s":l=p;break;case"m":i>=0?o=p:n=p;break}}),l>=0&&o==-1&&n>=0&&(o=n,n=-1);var f=(""+(c>=0?c:new Date().getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(r>=1?r:1)).slice(-2);f.length==7&&(f="0"+f),f.length==8&&(f="20"+f);var u=("00"+(i>=0?i:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return i==-1&&o==-1&&l==-1?f:c==-1&&n==-1&&r==-1?u:f+"T"+u}var Zwe=function(){var e={};e.version="1.2.0";function t(){for(var C=0,H=new Array(256),V=0;V!=256;++V)C=V,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,H[V]=C;return typeof Int32Array<"u"?new Int32Array(H):H}var a=t();function c(C){var H=0,V=0,N=0,L=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(N=0;N!=256;++N)L[N]=C[N];for(N=0;N!=256;++N)for(V=C[N],H=256+N;H<4096;H+=256)V=L[H]=V>>>8^C[V&255];var w=[];for(N=1;N!=16;++N)w[N-1]=typeof Int32Array<"u"?L.subarray(N*256,N*256+256):L.slice(N*256,N*256+256);return w}var n=c(a),r=n[0],i=n[1],o=n[2],l=n[3],f=n[4],u=n[5],d=n[6],h=n[7],p=n[8],v=n[9],m=n[10],y=n[11],g=n[12],M=n[13],x=n[14];function k(C,H){for(var V=H^-1,N=0,L=C.length;N<L;)V=V>>>8^a[(V^C.charCodeAt(N++))&255];return~V}function b(C,H){for(var V=H^-1,N=C.length-15,L=0;L<N;)V=x[C[L++]^V&255]^M[C[L++]^V>>8&255]^g[C[L++]^V>>16&255]^y[C[L++]^V>>>24]^m[C[L++]]^v[C[L++]]^p[C[L++]]^h[C[L++]]^d[C[L++]]^u[C[L++]]^f[C[L++]]^l[C[L++]]^o[C[L++]]^i[C[L++]]^r[C[L++]]^a[C[L++]];for(N+=15;L<N;)V=V>>>8^a[(V^C[L++])&255];return~V}function _(C,H){for(var V=H^-1,N=0,L=C.length,w=0,P=0;N<L;)w=C.charCodeAt(N++),w<128?V=V>>>8^a[(V^w)&255]:w<2048?(V=V>>>8^a[(V^(192|w>>6&31))&255],V=V>>>8^a[(V^(128|w&63))&255]):w>=55296&&w<57344?(w=(w&1023)+64,P=C.charCodeAt(N++)&1023,V=V>>>8^a[(V^(240|w>>8&7))&255],V=V>>>8^a[(V^(128|w>>2&63))&255],V=V>>>8^a[(V^(128|P>>6&15|(w&3)<<4))&255],V=V>>>8^a[(V^(128|P&63))&255]):(V=V>>>8^a[(V^(224|w>>12&15))&255],V=V>>>8^a[(V^(128|w>>6&63))&255],V=V>>>8^a[(V^(128|w&63))&255]);return~V}return e.table=a,e.bstr=k,e.buf=b,e.str=_,e}(),U2=function(){var t={};t.version="1.2.1";function a(i1,y1){for(var h1=i1.split("/"),m1=y1.split("/"),g1=0,M1=0,N1=Math.min(h1.length,m1.length);g1<N1;++g1){if(M1=h1[g1].length-m1[g1].length)return M1;if(h1[g1]!=m1[g1])return h1[g1]<m1[g1]?-1:1}return h1.length-m1.length}function c(i1){if(i1.charAt(i1.length-1)=="/")return i1.slice(0,-1).indexOf("/")===-1?i1:c(i1.slice(0,-1));var y1=i1.lastIndexOf("/");return y1===-1?i1:i1.slice(0,y1+1)}function n(i1){if(i1.charAt(i1.length-1)=="/")return n(i1.slice(0,-1));var y1=i1.lastIndexOf("/");return y1===-1?i1:i1.slice(y1+1)}function r(i1,y1){typeof y1=="string"&&(y1=new Date(y1));var h1=y1.getHours();h1=h1<<6|y1.getMinutes(),h1=h1<<5|y1.getSeconds()>>>1,i1.write_shift(2,h1);var m1=y1.getFullYear()-1980;m1=m1<<4|y1.getMonth()+1,m1=m1<<5|y1.getDate(),i1.write_shift(2,m1)}function i(i1){var y1=i1.read_shift(2)&65535,h1=i1.read_shift(2)&65535,m1=new Date,g1=h1&31;h1>>>=5;var M1=h1&15;h1>>>=4,m1.setMilliseconds(0),m1.setFullYear(h1+1980),m1.setMonth(M1-1),m1.setDate(g1);var N1=y1&31;y1>>>=5;var V1=y1&63;return y1>>>=6,m1.setHours(y1),m1.setMinutes(V1),m1.setSeconds(N1<<1),m1}function o(i1){a4(i1,0);for(var y1={},h1=0;i1.l<=i1.length-4;){var m1=i1.read_shift(2),g1=i1.read_shift(2),M1=i1.l+g1,N1={};switch(m1){case 21589:h1=i1.read_shift(1),h1&1&&(N1.mtime=i1.read_shift(4)),g1>5&&(h1&2&&(N1.atime=i1.read_shift(4)),h1&4&&(N1.ctime=i1.read_shift(4))),N1.mtime&&(N1.mt=new Date(N1.mtime*1e3));break}i1.l=M1,y1[m1]=N1}return y1}var l;function f(){return l||(l={})}function u(i1,y1){if(i1[0]==80&&i1[1]==75)return W1(i1,y1);if((i1[0]|32)==109&&(i1[1]|32)==105)return e4(i1,y1);if(i1.length<512)throw new Error("CFB file size "+i1.length+" < 512");var h1=3,m1=512,g1=0,M1=0,N1=0,V1=0,O=0,D=[],q=i1.slice(0,512);a4(q,0);var X=d(q);switch(h1=X[0],h1){case 3:m1=512;break;case 4:m1=4096;break;case 0:if(X[1]==0)return W1(i1,y1);default:throw new Error("Major Version: Expected 3 or 4 saw "+h1)}m1!==512&&(q=i1.slice(0,m1),a4(q,28));var J=i1.slice(0,m1);h(q,h1);var r1=q.read_shift(4,"i");if(h1===3&&r1!==0)throw new Error("# Directory Sectors: Expected 0 saw "+r1);q.l+=4,N1=q.read_shift(4,"i"),q.l+=4,q.chk("00100000","Mini Stream Cutoff Size: "),V1=q.read_shift(4,"i"),g1=q.read_shift(4,"i"),O=q.read_shift(4,"i"),M1=q.read_shift(4,"i");for(var n1=-1,z1=0;z1<109&&(n1=q.read_shift(4,"i"),!(n1<0));++z1)D[z1]=n1;var w1=p(i1,m1);y(O,M1,w1,m1,D);var H1=M(w1,N1,D,m1);H1[N1].name="!Directory",g1>0&&V1!==P&&(H1[V1].name="!MiniFAT"),H1[D[0]].name="!FAT",H1.fat_addrs=D,H1.ssz=m1;var x1={},O1=[],P1=[],Z1=[];x(N1,H1,w1,O1,g1,x1,P1,V1),v(P1,Z1,O1),O1.shift();var I1={FileIndex:P1,FullPaths:Z1};return y1&&y1.raw&&(I1.raw={header:J,sectors:w1}),I1}function d(i1){if(i1[i1.l]==80&&i1[i1.l+1]==75)return[0,0];i1.chk(j,"Header Signature: "),i1.l+=16;var y1=i1.read_shift(2,"u");return[i1.read_shift(2,"u"),y1]}function h(i1,y1){var h1=9;switch(i1.l+=2,h1=i1.read_shift(2)){case 9:if(y1!=3)throw new Error("Sector Shift: Expected 9 saw "+h1);break;case 12:if(y1!=4)throw new Error("Sector Shift: Expected 12 saw "+h1);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+h1)}i1.chk("0600","Mini Sector Shift: "),i1.chk("000000000000","Reserved: ")}function p(i1,y1){for(var h1=Math.ceil(i1.length/y1)-1,m1=[],g1=1;g1<h1;++g1)m1[g1-1]=i1.slice(g1*y1,(g1+1)*y1);return m1[h1-1]=i1.slice(h1*y1),m1}function v(i1,y1,h1){for(var m1=0,g1=0,M1=0,N1=0,V1=0,O=h1.length,D=[],q=[];m1<O;++m1)D[m1]=q[m1]=m1,y1[m1]=h1[m1];for(;V1<q.length;++V1)m1=q[V1],g1=i1[m1].L,M1=i1[m1].R,N1=i1[m1].C,D[m1]===m1&&(g1!==-1&&D[g1]!==g1&&(D[m1]=D[g1]),M1!==-1&&D[M1]!==M1&&(D[m1]=D[M1])),N1!==-1&&(D[N1]=m1),g1!==-1&&m1!=D[m1]&&(D[g1]=D[m1],q.lastIndexOf(g1)<V1&&q.push(g1)),M1!==-1&&m1!=D[m1]&&(D[M1]=D[m1],q.lastIndexOf(M1)<V1&&q.push(M1));for(m1=1;m1<O;++m1)D[m1]===m1&&(M1!==-1&&D[M1]!==M1?D[m1]=D[M1]:g1!==-1&&D[g1]!==g1&&(D[m1]=D[g1]));for(m1=1;m1<O;++m1)if(i1[m1].type!==0){if(V1=m1,V1!=D[V1])do V1=D[V1],y1[m1]=y1[V1]+"/"+y1[m1];while(V1!==0&&D[V1]!==-1&&V1!=D[V1]);D[m1]=-1}for(y1[0]+="/",m1=1;m1<O;++m1)i1[m1].type!==2&&(y1[m1]+="/")}function m(i1,y1,h1){for(var m1=i1.start,g1=i1.size,M1=[],N1=m1;h1&&g1>0&&N1>=0;)M1.push(y1.slice(N1*w,N1*w+w)),g1-=w,N1=G7(h1,N1*4);return M1.length===0?T3(0):ca(M1).slice(0,i1.size)}function y(i1,y1,h1,m1,g1){var M1=P;if(i1===P){if(y1!==0)throw new Error("DIFAT chain shorter than expected")}else if(i1!==-1){var N1=h1[i1],V1=(m1>>>2)-1;if(!N1)return;for(var O=0;O<V1&&(M1=G7(N1,O*4))!==P;++O)g1.push(M1);y(G7(N1,m1-4),y1-1,h1,m1,g1)}}function g(i1,y1,h1,m1,g1){var M1=[],N1=[];g1||(g1=[]);var V1=m1-1,O=0,D=0;for(O=y1;O>=0;){g1[O]=!0,M1[M1.length]=O,N1.push(i1[O]);var q=h1[Math.floor(O*4/m1)];if(D=O*4&V1,m1<4+D)throw new Error("FAT boundary crossed: "+O+" 4 "+m1);if(!i1[q])break;O=G7(i1[q],D)}return{nodes:M1,data:h51([N1])}}function M(i1,y1,h1,m1){var g1=i1.length,M1=[],N1=[],V1=[],O=[],D=m1-1,q=0,X=0,J=0,r1=0;for(q=0;q<g1;++q)if(V1=[],J=q+y1,J>=g1&&(J-=g1),!N1[J]){O=[];var n1=[];for(X=J;X>=0;){n1[X]=!0,N1[X]=!0,V1[V1.length]=X,O.push(i1[X]);var z1=h1[Math.floor(X*4/m1)];if(r1=X*4&D,m1<4+r1)throw new Error("FAT boundary crossed: "+X+" 4 "+m1);if(!i1[z1]||(X=G7(i1[z1],r1),n1[X]))break}M1[J]={nodes:V1,data:h51([O])}}return M1}function x(i1,y1,h1,m1,g1,M1,N1,V1){for(var O=0,D=m1.length?2:0,q=y1[i1].data,X=0,J=0,r1;X<q.length;X+=128){var n1=q.slice(X,X+128);a4(n1,64),J=n1.read_shift(2),r1=c21(n1,0,J-D),m1.push(r1);var z1={name:r1,type:n1.read_shift(1),color:n1.read_shift(1),L:n1.read_shift(4,"i"),R:n1.read_shift(4,"i"),C:n1.read_shift(4,"i"),clsid:n1.read_shift(16),state:n1.read_shift(4,"i"),start:0,size:0},w1=n1.read_shift(2)+n1.read_shift(2)+n1.read_shift(2)+n1.read_shift(2);w1!==0&&(z1.ct=k(n1,n1.l-8));var H1=n1.read_shift(2)+n1.read_shift(2)+n1.read_shift(2)+n1.read_shift(2);H1!==0&&(z1.mt=k(n1,n1.l-8)),z1.start=n1.read_shift(4,"i"),z1.size=n1.read_shift(4,"i"),z1.size<0&&z1.start<0&&(z1.size=z1.type=0,z1.start=P,z1.name=""),z1.type===5?(O=z1.start,g1>0&&O!==P&&(y1[O].name="!StreamData")):z1.size>=4096?(z1.storage="fat",y1[z1.start]===void 0&&(y1[z1.start]=g(h1,z1.start,y1.fat_addrs,y1.ssz)),y1[z1.start].name=z1.name,z1.content=y1[z1.start].data.slice(0,z1.size)):(z1.storage="minifat",z1.size<0?z1.size=0:O!==P&&z1.start!==P&&y1[O]&&(z1.content=m(z1,y1[O].data,(y1[V1]||{}).data))),z1.content&&a4(z1.content,0),M1[r1]=z1,N1.push(z1)}}function k(i1,y1){return new Date((c0(i1,y1+4)/1e7*Math.pow(2,32)+c0(i1,y1)/1e7-11644473600)*1e3)}function b(i1,y1){return f(),u(l.readFileSync(i1),y1)}function _(i1,y1){var h1=y1&&y1.type;switch(h1||$2&&Buffer.isBuffer(i1)&&(h1="buffer"),h1||"base64"){case"file":return b(i1,y1);case"base64":return u(a6(m0(i1)),y1);case"binary":return u(a6(i1),y1)}return u(i1,y1)}function C(i1,y1){var h1=y1||{},m1=h1.root||"Root Entry";if(i1.FullPaths||(i1.FullPaths=[]),i1.FileIndex||(i1.FileIndex=[]),i1.FullPaths.length!==i1.FileIndex.length)throw new Error("inconsistent CFB structure");i1.FullPaths.length===0&&(i1.FullPaths[0]=m1+"/",i1.FileIndex[0]={name:m1,type:5}),h1.CLSID&&(i1.FileIndex[0].clsid=h1.CLSID),H(i1)}function H(i1){var y1="Sh33tJ5";if(!U2.find(i1,"/"+y1)){var h1=T3(4);h1[0]=55,h1[1]=h1[3]=50,h1[2]=54,i1.FileIndex.push({name:y1,type:2,content:h1,size:4,L:69,R:69,C:69}),i1.FullPaths.push(i1.FullPaths[0]+y1),V(i1)}}function V(i1,y1){C(i1);for(var h1=!1,m1=!1,g1=i1.FullPaths.length-1;g1>=0;--g1){var M1=i1.FileIndex[g1];switch(M1.type){case 0:m1?h1=!0:(i1.FileIndex.pop(),i1.FullPaths.pop());break;case 1:case 2:case 5:m1=!0,isNaN(M1.R*M1.L*M1.C)&&(h1=!0),M1.R>-1&&M1.L>-1&&M1.R==M1.L&&(h1=!0);break;default:h1=!0;break}}if(!(!h1&&!y1)){var N1=new Date(1987,1,19),V1=0,O=Object.create?Object.create(null):{},D=[];for(g1=0;g1<i1.FullPaths.length;++g1)O[i1.FullPaths[g1]]=!0,i1.FileIndex[g1].type!==0&&D.push([i1.FullPaths[g1],i1.FileIndex[g1]]);for(g1=0;g1<D.length;++g1){var q=c(D[g1][0]);m1=O[q],m1||(D.push([q,{name:n(q).replace("/",""),type:1,clsid:R,ct:N1,mt:N1,content:null}]),O[q]=!0)}for(D.sort(function(r1,n1){return a(r1[0],n1[0])}),i1.FullPaths=[],i1.FileIndex=[],g1=0;g1<D.length;++g1)i1.FullPaths[g1]=D[g1][0],i1.FileIndex[g1]=D[g1][1];for(g1=0;g1<D.length;++g1){var X=i1.FileIndex[g1],J=i1.FullPaths[g1];if(X.name=n(J).replace("/",""),X.L=X.R=X.C=-(X.color=1),X.size=X.content?X.content.length:0,X.start=0,X.clsid=X.clsid||R,g1===0)X.C=D.length>1?1:-1,X.size=0,X.type=5;else if(J.slice(-1)=="/"){for(V1=g1+1;V1<D.length&&c(i1.FullPaths[V1])!=J;++V1);for(X.C=V1>=D.length?-1:V1,V1=g1+1;V1<D.length&&c(i1.FullPaths[V1])!=c(J);++V1);X.R=V1>=D.length?-1:V1,X.type=1}else c(i1.FullPaths[g1+1]||"")==c(J)&&(X.R=g1+1),X.type=2}}}function N(i1,y1){var h1=y1||{};if(h1.fileType=="mad")return X4(i1,h1);switch(V(i1),h1.fileType){case"zip":return S2(i1,h1)}var m1=function(r1){for(var n1=0,z1=0,w1=0;w1<r1.FileIndex.length;++w1){var H1=r1.FileIndex[w1];if(H1.content){var x1=H1.content.length;x1>0&&(x1<4096?n1+=x1+63>>6:z1+=x1+511>>9)}}for(var O1=r1.FullPaths.length+3>>2,P1=n1+7>>3,Z1=n1+127>>7,I1=P1+z1+O1+Z1,J1=I1+127>>7,v2=J1<=109?0:Math.ceil((J1-109)/127);I1+J1+v2+127>>7>J1;)v2=++J1<=109?0:Math.ceil((J1-109)/127);var X2=[1,v2,J1,Z1,O1,z1,n1,0];return r1.FileIndex[0].size=n1<<6,X2[7]=(r1.FileIndex[0].start=X2[0]+X2[1]+X2[2]+X2[3]+X2[4]+X2[5])+(X2[6]+7>>3),X2}(i1),g1=T3(m1[7]<<9),M1=0,N1=0;{for(M1=0;M1<8;++M1)g1.write_shift(1,T[M1]);for(M1=0;M1<8;++M1)g1.write_shift(2,0);for(g1.write_shift(2,62),g1.write_shift(2,3),g1.write_shift(2,65534),g1.write_shift(2,9),g1.write_shift(2,6),M1=0;M1<3;++M1)g1.write_shift(2,0);for(g1.write_shift(4,0),g1.write_shift(4,m1[2]),g1.write_shift(4,m1[0]+m1[1]+m1[2]+m1[3]-1),g1.write_shift(4,0),g1.write_shift(4,4096),g1.write_shift(4,m1[3]?m1[0]+m1[1]+m1[2]-1:P),g1.write_shift(4,m1[3]),g1.write_shift(-4,m1[1]?m1[0]-1:P),g1.write_shift(4,m1[1]),M1=0;M1<109;++M1)g1.write_shift(-4,M1<m1[2]?m1[1]+M1:-1)}if(m1[1])for(N1=0;N1<m1[1];++N1){for(;M1<236+N1*127;++M1)g1.write_shift(-4,M1<m1[2]?m1[1]+M1:-1);g1.write_shift(-4,N1===m1[1]-1?P:N1+1)}var V1=function(r1){for(N1+=r1;M1<N1-1;++M1)g1.write_shift(-4,M1+1);r1&&(++M1,g1.write_shift(-4,P))};for(N1=M1=0,N1+=m1[1];M1<N1;++M1)g1.write_shift(-4,Y.DIFSECT);for(N1+=m1[2];M1<N1;++M1)g1.write_shift(-4,Y.FATSECT);V1(m1[3]),V1(m1[4]);for(var O=0,D=0,q=i1.FileIndex[0];O<i1.FileIndex.length;++O)q=i1.FileIndex[O],q.content&&(D=q.content.length,!(D<4096)&&(q.start=N1,V1(D+511>>9)));for(V1(m1[6]+7>>3);g1.l&511;)g1.write_shift(-4,Y.ENDOFCHAIN);for(N1=M1=0,O=0;O<i1.FileIndex.length;++O)q=i1.FileIndex[O],q.content&&(D=q.content.length,!(!D||D>=4096)&&(q.start=N1,V1(D+63>>6)));for(;g1.l&511;)g1.write_shift(-4,Y.ENDOFCHAIN);for(M1=0;M1<m1[4]<<2;++M1){var X=i1.FullPaths[M1];if(!X||X.length===0){for(O=0;O<17;++O)g1.write_shift(4,0);for(O=0;O<3;++O)g1.write_shift(4,-1);for(O=0;O<12;++O)g1.write_shift(4,0);continue}q=i1.FileIndex[M1],M1===0&&(q.start=q.size?q.start-1:P);var J=M1===0&&h1.root||q.name;if(D=2*(J.length+1),g1.write_shift(64,J,"utf16le"),g1.write_shift(2,D),g1.write_shift(1,q.type),g1.write_shift(1,q.color),g1.write_shift(-4,q.L),g1.write_shift(-4,q.R),g1.write_shift(-4,q.C),q.clsid)g1.write_shift(16,q.clsid,"hex");else for(O=0;O<4;++O)g1.write_shift(4,0);g1.write_shift(4,q.state||0),g1.write_shift(4,0),g1.write_shift(4,0),g1.write_shift(4,0),g1.write_shift(4,0),g1.write_shift(4,q.start),g1.write_shift(4,q.size),g1.write_shift(4,0)}for(M1=1;M1<i1.FileIndex.length;++M1)if(q=i1.FileIndex[M1],q.size>=4096)if(g1.l=q.start+1<<9,$2&&Buffer.isBuffer(q.content))q.content.copy(g1,g1.l,0,q.size),g1.l+=q.size+511&-512;else{for(O=0;O<q.size;++O)g1.write_shift(1,q.content[O]);for(;O&511;++O)g1.write_shift(1,0)}for(M1=1;M1<i1.FileIndex.length;++M1)if(q=i1.FileIndex[M1],q.size>0&&q.size<4096)if($2&&Buffer.isBuffer(q.content))q.content.copy(g1,g1.l,0,q.size),g1.l+=q.size+63&-64;else{for(O=0;O<q.size;++O)g1.write_shift(1,q.content[O]);for(;O&63;++O)g1.write_shift(1,0)}if($2)g1.l=g1.length;else for(;g1.l<g1.length;)g1.write_shift(1,0);return g1}function L(i1,y1){var h1=i1.FullPaths.map(function(O){return O.toUpperCase()}),m1=h1.map(function(O){var D=O.split("/");return D[D.length-(O.slice(-1)=="/"?2:1)]}),g1=!1;y1.charCodeAt(0)===47?(g1=!0,y1=h1[0].slice(0,-1)+y1):g1=y1.indexOf("/")!==-1;var M1=y1.toUpperCase(),N1=g1===!0?h1.indexOf(M1):m1.indexOf(M1);if(N1!==-1)return i1.FileIndex[N1];var V1=!M1.match(nl);for(M1=M1.replace(E4,""),V1&&(M1=M1.replace(nl,"!")),N1=0;N1<h1.length;++N1)if((V1?h1[N1].replace(nl,"!"):h1[N1]).replace(E4,"")==M1||(V1?m1[N1].replace(nl,"!"):m1[N1]).replace(E4,"")==M1)return i1.FileIndex[N1];return null}var w=64,P=-2,j="d0cf11e0a1b11ae1",T=[208,207,17,224,161,177,26,225],R="00000000000000000000000000000000",Y={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:P,FREESECT:-1,HEADER_SIGNATURE:j,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:R,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function e1(i1,y1,h1){f();var m1=N(i1,h1);l.writeFileSync(y1,m1)}function Z(i1){for(var y1=new Array(i1.length),h1=0;h1<i1.length;++h1)y1[h1]=String.fromCharCode(i1[h1]);return y1.join("")}function W(i1,y1){var h1=N(i1,y1);switch(y1&&y1.type||"buffer"){case"file":return f(),l.writeFileSync(y1.filename,h1),h1;case"binary":return typeof h1=="string"?h1:Z(h1);case"base64":return Za1(typeof h1=="string"?h1:Z(h1));case"buffer":if($2)return Buffer.isBuffer(h1)?h1:no(h1);case"array":return typeof h1=="string"?a6(h1):h1}return h1}var I;function E(i1){try{var y1=i1.InflateRaw,h1=new y1;if(h1._processChunk(new Uint8Array([3,0]),h1._finishFlushFlag),h1.bytesRead)I=i1;else throw new Error("zlib does not expose bytesRead")}catch(m1){console.error("cannot use native zlib: "+(m1.message||m1))}}function S(i1,y1){if(!I)return _1(i1,y1);var h1=I.InflateRaw,m1=new h1,g1=m1._processChunk(i1.slice(i1.l),m1._finishFlushFlag);return i1.l+=m1.bytesRead,g1}function U(i1){return I?I.deflateRawSync(i1):q1(i1)}var G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],B=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function Q(i1){var y1=(i1<<1|i1<<11)&139536|(i1<<5|i1<<15)&558144;return(y1>>16|y1>>8|y1)&255}for(var c1=typeof Uint8Array<"u",K=c1?new Uint8Array(256):[],a1=0;a1<256;++a1)K[a1]=Q(a1);function F(i1,y1){var h1=K[i1&255];return y1<=8?h1>>>8-y1:(h1=h1<<8|K[i1>>8&255],y1<=16?h1>>>16-y1:(h1=h1<<8|K[i1>>16&255],h1>>>24-y1))}function l1(i1,y1){var h1=y1&7,m1=y1>>>3;return(i1[m1]|(h1<=6?0:i1[m1+1]<<8))>>>h1&3}function k1(i1,y1){var h1=y1&7,m1=y1>>>3;return(i1[m1]|(h1<=5?0:i1[m1+1]<<8))>>>h1&7}function f1(i1,y1){var h1=y1&7,m1=y1>>>3;return(i1[m1]|(h1<=4?0:i1[m1+1]<<8))>>>h1&15}function t1(i1,y1){var h1=y1&7,m1=y1>>>3;return(i1[m1]|(h1<=3?0:i1[m1+1]<<8))>>>h1&31}function u1(i1,y1){var h1=y1&7,m1=y1>>>3;return(i1[m1]|(h1<=1?0:i1[m1+1]<<8))>>>h1&127}function o1(i1,y1,h1){var m1=y1&7,g1=y1>>>3,M1=(1<<h1)-1,N1=i1[g1]>>>m1;return h1<8-m1||(N1|=i1[g1+1]<<8-m1,h1<16-m1)||(N1|=i1[g1+2]<<16-m1,h1<24-m1)||(N1|=i1[g1+3]<<24-m1),N1&M1}function p1(i1,y1,h1){var m1=y1&7,g1=y1>>>3;return m1<=5?i1[g1]|=(h1&7)<<m1:(i1[g1]|=h1<<m1&255,i1[g1+1]=(h1&7)>>8-m1),y1+3}function b1(i1,y1,h1){var m1=y1&7,g1=y1>>>3;return h1=(h1&1)<<m1,i1[g1]|=h1,y1+1}function v1(i1,y1,h1){var m1=y1&7,g1=y1>>>3;return h1<<=m1,i1[g1]|=h1&255,h1>>>=8,i1[g1+1]=h1,y1+8}function C1(i1,y1,h1){var m1=y1&7,g1=y1>>>3;return h1<<=m1,i1[g1]|=h1&255,h1>>>=8,i1[g1+1]=h1&255,i1[g1+2]=h1>>>8,y1+16}function D1(i1,y1){var h1=i1.length,m1=2*h1>y1?2*h1:y1+5,g1=0;if(h1>=y1)return i1;if($2){var M1=Xa1(m1);if(i1.copy)i1.copy(M1);else for(;g1<i1.length;++g1)M1[g1]=i1[g1];return M1}else if(c1){var N1=new Uint8Array(m1);if(N1.set)N1.set(i1);else for(;g1<h1;++g1)N1[g1]=i1[g1];return N1}return i1.length=m1,i1}function R1(i1){for(var y1=new Array(i1),h1=0;h1<i1;++h1)y1[h1]=0;return y1}function B1(i1,y1,h1){var m1=1,g1=0,M1=0,N1=0,V1=0,O=i1.length,D=c1?new Uint16Array(32):R1(32);for(M1=0;M1<32;++M1)D[M1]=0;for(M1=O;M1<h1;++M1)i1[M1]=0;O=i1.length;var q=c1?new Uint16Array(O):R1(O);for(M1=0;M1<O;++M1)D[g1=i1[M1]]++,m1<g1&&(m1=g1),q[M1]=0;for(D[0]=0,M1=1;M1<=m1;++M1)D[M1+16]=V1=V1+D[M1-1]<<1;for(M1=0;M1<O;++M1)V1=i1[M1],V1!=0&&(q[M1]=D[V1+16]++);var X=0;for(M1=0;M1<O;++M1)if(X=i1[M1],X!=0)for(V1=F(q[M1],m1)>>m1-X,N1=(1<<m1+4-X)-1;N1>=0;--N1)y1[V1|N1<<X]=X&15|M1<<4;return m1}var Y1=c1?new Uint16Array(512):R1(512),G1=c1?new Uint16Array(32):R1(32);if(!c1){for(var n2=0;n2<512;++n2)Y1[n2]=0;for(n2=0;n2<32;++n2)G1[n2]=0}(function(){for(var i1=[],y1=0;y1<32;y1++)i1.push(5);B1(i1,G1,32);var h1=[];for(y1=0;y1<=143;y1++)h1.push(8);for(;y1<=255;y1++)h1.push(9);for(;y1<=279;y1++)h1.push(7);for(;y1<=287;y1++)h1.push(8);B1(h1,Y1,288)})();var o2=function(){for(var y1=c1?new Uint8Array(32768):[],h1=0,m1=0;h1<B.length-1;++h1)for(;m1<B[h1+1];++m1)y1[m1]=h1;for(;m1<32768;++m1)y1[m1]=29;var g1=c1?new Uint8Array(259):[];for(h1=0,m1=0;h1<A.length-1;++h1)for(;m1<A[h1+1];++m1)g1[m1]=h1;function M1(V1,O){for(var D=0;D<V1.length;){var q=Math.min(65535,V1.length-D),X=D+q==V1.length;for(O.write_shift(1,+X),O.write_shift(2,q),O.write_shift(2,~q&65535);q-- >0;)O[O.l++]=V1[D++]}return O.l}function N1(V1,O){for(var D=0,q=0,X=c1?new Uint16Array(32768):[];q<V1.length;){var J=Math.min(65535,V1.length-q);if(J<10){for(D=p1(O,D,+(q+J==V1.length)),D&7&&(D+=8-(D&7)),O.l=D/8|0,O.write_shift(2,J),O.write_shift(2,~J&65535);J-- >0;)O[O.l++]=V1[q++];D=O.l*8;continue}D=p1(O,D,+(q+J==V1.length)+2);for(var r1=0;J-- >0;){var n1=V1[q];r1=(r1<<5^n1)&32767;var z1=-1,w1=0;if((z1=X[r1])&&(z1|=q&-32768,z1>q&&(z1-=32768),z1<q))for(;V1[z1+w1]==V1[q+w1]&&w1<250;)++w1;if(w1>2){n1=g1[w1],n1<=22?D=v1(O,D,K[n1+1]>>1)-1:(v1(O,D,3),D+=5,v1(O,D,K[n1-23]>>5),D+=3);var H1=n1<8?0:n1-4>>2;H1>0&&(C1(O,D,w1-A[n1]),D+=H1),n1=y1[q-z1],D=v1(O,D,K[n1]>>3),D-=3;var x1=n1<4?0:n1-2>>1;x1>0&&(C1(O,D,q-z1-B[n1]),D+=x1);for(var O1=0;O1<w1;++O1)X[r1]=q&32767,r1=(r1<<5^V1[q])&32767,++q;J-=w1-1}else n1<=143?n1=n1+48:D=b1(O,D,1),D=v1(O,D,K[n1]),X[r1]=q&32767,++q}D=v1(O,D,0)-1}return O.l=(D+7)/8|0,O.l}return function(O,D){return O.length<8?M1(O,D):N1(O,D)}}();function q1(i1){var y1=T3(50+Math.floor(i1.length*1.1)),h1=o2(i1,y1);return y1.slice(0,h1)}var p2=c1?new Uint16Array(32768):R1(32768),E2=c1?new Uint16Array(32768):R1(32768),h2=c1?new Uint16Array(128):R1(128),y2=1,ee=1;function d1(i1,y1){var h1=t1(i1,y1)+257;y1+=5;var m1=t1(i1,y1)+1;y1+=5;var g1=f1(i1,y1)+4;y1+=4;for(var M1=0,N1=c1?new Uint8Array(19):R1(19),V1=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],O=1,D=c1?new Uint8Array(8):R1(8),q=c1?new Uint8Array(8):R1(8),X=N1.length,J=0;J<g1;++J)N1[G[J]]=M1=k1(i1,y1),O<M1&&(O=M1),D[M1]++,y1+=3;var r1=0;for(D[0]=0,J=1;J<=O;++J)q[J]=r1=r1+D[J-1]<<1;for(J=0;J<X;++J)(r1=N1[J])!=0&&(V1[J]=q[r1]++);var n1=0;for(J=0;J<X;++J)if(n1=N1[J],n1!=0){r1=K[V1[J]]>>8-n1;for(var z1=(1<<7-n1)-1;z1>=0;--z1)h2[r1|z1<<n1]=n1&7|J<<3}var w1=[];for(O=1;w1.length<h1+m1;)switch(r1=h2[u1(i1,y1)],y1+=r1&7,r1>>>=3){case 16:for(M1=3+l1(i1,y1),y1+=2,r1=w1[w1.length-1];M1-- >0;)w1.push(r1);break;case 17:for(M1=3+k1(i1,y1),y1+=3;M1-- >0;)w1.push(0);break;case 18:for(M1=11+u1(i1,y1),y1+=7;M1-- >0;)w1.push(0);break;default:w1.push(r1),O<r1&&(O=r1);break}var H1=w1.slice(0,h1),x1=w1.slice(h1);for(J=h1;J<286;++J)H1[J]=0;for(J=m1;J<30;++J)x1[J]=0;return y2=B1(H1,p2,286),ee=B1(x1,E2,30),y1}function s1(i1,y1){if(i1[0]==3&&!(i1[1]&3))return[Ga(y1),2];for(var h1=0,m1=0,g1=Xa1(y1||1<<18),M1=0,N1=g1.length>>>0,V1=0,O=0;!(m1&1);){if(m1=k1(i1,h1),h1+=3,m1>>>1)m1>>1==1?(V1=9,O=5):(h1=d1(i1,h1),V1=y2,O=ee);else{h1&7&&(h1+=8-(h1&7));var D=i1[h1>>>3]|i1[(h1>>>3)+1]<<8;if(h1+=32,D>0)for(!y1&&N1<M1+D&&(g1=D1(g1,M1+D),N1=g1.length);D-- >0;)g1[M1++]=i1[h1>>>3],h1+=8;continue}for(;;){!y1&&N1<M1+32767&&(g1=D1(g1,M1+32767),N1=g1.length);var q=o1(i1,h1,V1),X=m1>>>1==1?Y1[q]:p2[q];if(h1+=X&15,X>>>=4,!(X>>>8&255))g1[M1++]=X;else{if(X==256)break;X-=257;var J=X<8?0:X-4>>2;J>5&&(J=0);var r1=M1+A[X];J>0&&(r1+=o1(i1,h1,J),h1+=J),q=o1(i1,h1,O),X=m1>>>1==1?G1[q]:E2[q],h1+=X&15,X>>>=4;var n1=X<4?0:X-2>>1,z1=B[X];for(n1>0&&(z1+=o1(i1,h1,n1),h1+=n1),!y1&&N1<r1&&(g1=D1(g1,r1+100),N1=g1.length);M1<r1;)g1[M1]=g1[M1-z1],++M1}}}return y1?[g1,h1+7>>>3]:[g1.slice(0,M1),h1+7>>>3]}function _1(i1,y1){var h1=i1.slice(i1.l||0),m1=s1(h1,y1);return i1.l+=m1[1],m1[0]}function L1(i1,y1){if(i1)typeof console<"u"&&console.error(y1);else throw new Error(y1)}function W1(i1,y1){var h1=i1;a4(h1,0);var m1=[],g1=[],M1={FileIndex:m1,FullPaths:g1};C(M1,{root:y1.root});for(var N1=h1.length-4;(h1[N1]!=80||h1[N1+1]!=75||h1[N1+2]!=5||h1[N1+3]!=6)&&N1>=0;)--N1;h1.l=N1+4,h1.l+=4;var V1=h1.read_shift(2);h1.l+=6;var O=h1.read_shift(4);for(h1.l=O,N1=0;N1<V1;++N1){h1.l+=20;var D=h1.read_shift(4),q=h1.read_shift(4),X=h1.read_shift(2),J=h1.read_shift(2),r1=h1.read_shift(2);h1.l+=8;var n1=h1.read_shift(4),z1=o(h1.slice(h1.l+X,h1.l+X+J));h1.l+=X+J+r1;var w1=h1.l;h1.l=n1+4,g2(h1,D,q,M1,z1),h1.l=w1}return M1}function g2(i1,y1,h1,m1,g1){i1.l+=2;var M1=i1.read_shift(2),N1=i1.read_shift(2),V1=i(i1);if(M1&8257)throw new Error("Unsupported ZIP encryption");for(var O=i1.read_shift(4),D=i1.read_shift(4),q=i1.read_shift(4),X=i1.read_shift(2),J=i1.read_shift(2),r1="",n1=0;n1<X;++n1)r1+=String.fromCharCode(i1[i1.l++]);if(J){var z1=o(i1.slice(i1.l,i1.l+J));(z1[21589]||{}).mt&&(V1=z1[21589].mt),((g1||{})[21589]||{}).mt&&(V1=g1[21589].mt)}i1.l+=J;var w1=i1.slice(i1.l,i1.l+D);switch(N1){case 8:w1=S(i1,q);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+N1)}var H1=!1;M1&8&&(O=i1.read_shift(4),O==134695760&&(O=i1.read_shift(4),H1=!0),D=i1.read_shift(4),q=i1.read_shift(4)),D!=y1&&L1(H1,"Bad compressed size: "+y1+" != "+D),q!=h1&&L1(H1,"Bad uncompressed size: "+h1+" != "+q),p3(m1,r1,w1,{unsafe:!0,mt:V1})}function S2(i1,y1){var h1=y1||{},m1=[],g1=[],M1=T3(1),N1=h1.compression?8:0,V1=0,O=0,D=0,q=0,X=0,J=i1.FullPaths[0],r1=J,n1=i1.FileIndex[0],z1=[],w1=0;for(O=1;O<i1.FullPaths.length;++O)if(r1=i1.FullPaths[O].slice(J.length),n1=i1.FileIndex[O],!(!n1.size||!n1.content||r1=="Sh33tJ5")){var H1=q,x1=T3(r1.length);for(D=0;D<r1.length;++D)x1.write_shift(1,r1.charCodeAt(D)&127);x1=x1.slice(0,x1.l),z1[X]=Zwe.buf(n1.content,0);var O1=n1.content;N1==8&&(O1=U(O1)),M1=T3(30),M1.write_shift(4,67324752),M1.write_shift(2,20),M1.write_shift(2,V1),M1.write_shift(2,N1),n1.mt?r(M1,n1.mt):M1.write_shift(4,0),M1.write_shift(-4,z1[X]),M1.write_shift(4,O1.length),M1.write_shift(4,n1.content.length),M1.write_shift(2,x1.length),M1.write_shift(2,0),q+=M1.length,m1.push(M1),q+=x1.length,m1.push(x1),q+=O1.length,m1.push(O1),M1=T3(46),M1.write_shift(4,33639248),M1.write_shift(2,0),M1.write_shift(2,20),M1.write_shift(2,V1),M1.write_shift(2,N1),M1.write_shift(4,0),M1.write_shift(-4,z1[X]),M1.write_shift(4,O1.length),M1.write_shift(4,n1.content.length),M1.write_shift(2,x1.length),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(4,0),M1.write_shift(4,H1),w1+=M1.l,g1.push(M1),w1+=x1.length,g1.push(x1),++X}return M1=T3(22),M1.write_shift(4,101010256),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(2,X),M1.write_shift(2,X),M1.write_shift(4,w1),M1.write_shift(4,q),M1.write_shift(2,0),ca([ca(m1),ca(g1),M1])}var Fe={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function h3(i1,y1){if(i1.ctype)return i1.ctype;var h1=i1.name||"",m1=h1.match(/\.([^\.]+)$/);return m1&&Fe[m1[1]]||y1&&(m1=(h1=y1).match(/[\.\\]([^\.\\])+$/),m1&&Fe[m1[1]])?Fe[m1[1]]:"application/octet-stream"}function s2(i1){for(var y1=Za1(i1),h1=[],m1=0;m1<y1.length;m1+=76)h1.push(y1.slice(m1,m1+76));return h1.join(`\r
|
|
9488
|
+
`):e}function ume(e,t){const{element:a,datasetIndex:c,index:n}=t,r=e.getDatasetMeta(c).controller,{label:i,value:o}=r.getLabelAndValue(n);return{chart:e,label:i,parsed:r.getParsed(n),raw:e.data.datasets[c].data[n],formattedValue:o,dataset:r.getDataset(),dataIndex:n,datasetIndex:c,element:a}}function R81(e,t){const a=e.chart.ctx,{body:c,footer:n,title:r}=e,{boxWidth:i,boxHeight:o}=t,l=I3(t.bodyFont),f=I3(t.titleFont),u=I3(t.footerFont),d=r.length,h=n.length,p=c.length,v=b4(t.padding);let m=v.height,y=0,g=c.reduce((k,b)=>k+b.before.length+b.lines.length+b.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*f.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),g){const k=t.displayColors?Math.max(o,l.lineHeight):l.lineHeight;m+=p*k+(g-p)*l.lineHeight+(g-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let M=0;const x=function(k){y=Math.max(y,a.measureText(k).width+M)};return a.save(),a.font=f.string,he(e.title,x),a.font=l.string,he(e.beforeBody.concat(e.afterBody),x),M=t.displayColors?i+2+t.boxPadding:0,he(c,k=>{he(k.before,x),he(k.lines,x),he(k.after,x)}),M=0,a.font=u.string,he(e.footer,x),a.restore(),y+=v.width,{width:y,height:m}}function dme(e,t){const{y:a,height:c}=t;return a<c/2?"top":a>e.height-c/2?"bottom":"center"}function hme(e,t,a,c){const{x:n,width:r}=c,i=a.caretSize+a.caretPadding;if(e==="left"&&n+r+i>t.width||e==="right"&&n-r-i<0)return!0}function pme(e,t,a,c){const{x:n,width:r}=a,{width:i,chartArea:{left:o,right:l}}=e;let f="center";return c==="center"?f=n<=(o+l)/2?"left":"right":n<=r/2?f="left":n>=i-r/2&&(f="right"),hme(f,e,t,a)&&(f="center"),f}function F81(e,t,a){const c=a.yAlign||t.yAlign||dme(e,a);return{xAlign:a.xAlign||t.xAlign||pme(e,t,a,c),yAlign:c}}function mme(e,t){let{x:a,width:c}=e;return t==="right"?a-=c:t==="center"&&(a-=c/2),a}function vme(e,t,a){let{y:c,height:n}=e;return t==="top"?c+=a:t==="bottom"?c-=n+a:c-=n/2,c}function $81(e,t,a,c){const{caretSize:n,caretPadding:r,cornerRadius:i}=e,{xAlign:o,yAlign:l}=a,f=n+r,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=pi(i);let v=mme(t,o);const m=vme(t,l,f);return l==="center"?o==="left"?v+=f:o==="right"&&(v-=f):o==="left"?v-=Math.max(u,h)+n:o==="right"&&(v+=Math.max(d,p)+n),{x:X3(v,0,c.width-t.width),y:X3(m,0,c.height-t.height)}}function fh(e,t,a){const c=b4(a.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-c.right:e.x+c.left}function q81(e){return X6([],jt(e))}function yme(e,t,a){return i5(e,{tooltip:t,tooltipItems:a,type:"tooltip"})}function j81(e,t){const a=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return a?e.override(a):e}const Qg1={beforeTitle:Rt,title(e){if(e.length>0){const t=e[0],a=t.chart.data.labels,c=a?a.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(c>0&&t.dataIndex<c)return a[t.dataIndex]}return""},afterTitle:Rt,beforeBody:Rt,beforeLabel:Rt,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const a=e.formattedValue;return Q2(a)||(t+=a),t},labelColor(e){const a=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:a.borderColor,backgroundColor:a.backgroundColor,borderWidth:a.borderWidth,borderDash:a.borderDash,borderDashOffset:a.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const a=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:a.pointStyle,rotation:a.rotation}},afterLabel:Rt,afterBody:Rt,beforeFooter:Rt,footer:Rt,afterFooter:Rt};function B4(e,t,a,c){const n=e[t].call(a,c);return typeof n>"u"?Qg1[t].call(a,c):n}class DZ extends O8{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const a=this.chart,c=this.options.setContext(this.getContext()),n=c.enabled&&a.options.animation&&c.animations,r=new Ng1(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=yme(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,a){const{callbacks:c}=a,n=B4(c,"beforeTitle",this,t),r=B4(c,"title",this,t),i=B4(c,"afterTitle",this,t);let o=[];return o=X6(o,jt(n)),o=X6(o,jt(r)),o=X6(o,jt(i)),o}getBeforeBody(t,a){return q81(B4(a.callbacks,"beforeBody",this,t))}getBody(t,a){const{callbacks:c}=a,n=[];return he(t,r=>{const i={before:[],lines:[],after:[]},o=j81(c,r);X6(i.before,jt(B4(o,"beforeLabel",this,r))),X6(i.lines,B4(o,"label",this,r)),X6(i.after,jt(B4(o,"afterLabel",this,r))),n.push(i)}),n}getAfterBody(t,a){return q81(B4(a.callbacks,"afterBody",this,t))}getFooter(t,a){const{callbacks:c}=a,n=B4(c,"beforeFooter",this,t),r=B4(c,"footer",this,t),i=B4(c,"afterFooter",this,t);let o=[];return o=X6(o,jt(n)),o=X6(o,jt(r)),o=X6(o,jt(i)),o}_createItems(t){const a=this._active,c=this.chart.data,n=[],r=[],i=[];let o=[],l,f;for(l=0,f=a.length;l<f;++l)o.push(ume(this.chart,a[l]));return t.filter&&(o=o.filter((u,d,h)=>t.filter(u,d,h,c))),t.itemSort&&(o=o.sort((u,d)=>t.itemSort(u,d,c))),he(o,u=>{const d=j81(t.callbacks,u);n.push(B4(d,"labelColor",this,u)),r.push(B4(d,"labelPointStyle",this,u)),i.push(B4(d,"labelTextColor",this,u))}),this.labelColors=n,this.labelPointStyles=r,this.labelTextColors=i,this.dataPoints=o,o}update(t,a){const c=this.options.setContext(this.getContext()),n=this._active;let r,i=[];if(!n.length)this.opacity!==0&&(r={opacity:0});else{const o=tl[c.position].call(this,n,this._eventPosition);i=this._createItems(c),this.title=this.getTitle(i,c),this.beforeBody=this.getBeforeBody(i,c),this.body=this.getBody(i,c),this.afterBody=this.getAfterBody(i,c),this.footer=this.getFooter(i,c);const l=this._size=R81(this,c),f=Object.assign({},o,l),u=F81(this.chart,c,f),d=$81(c,f,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,r={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:o.x,caretY:o.y}}this._tooltipItems=i,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&c.external&&c.external.call(this,{chart:this.chart,tooltip:this,replay:a})}drawCaret(t,a,c,n){const r=this.getCaretPosition(t,c,n);a.lineTo(r.x1,r.y1),a.lineTo(r.x2,r.y2),a.lineTo(r.x3,r.y3)}getCaretPosition(t,a,c){const{xAlign:n,yAlign:r}=this,{caretSize:i,cornerRadius:o}=c,{topLeft:l,topRight:f,bottomLeft:u,bottomRight:d}=pi(o),{x:h,y:p}=t,{width:v,height:m}=a;let y,g,M,x,k,b;return r==="center"?(k=p+m/2,n==="left"?(y=h,g=y-i,x=k+i,b=k-i):(y=h+v,g=y+i,x=k-i,b=k+i),M=y):(n==="left"?g=h+Math.max(l,u)+i:n==="right"?g=h+v-Math.max(f,d)-i:g=this.caretX,r==="top"?(x=p,k=x-i,y=g-i,M=g+i):(x=p+m,k=x+i,y=g+i,M=g-i),b=x),{x1:y,x2:g,x3:M,y1:x,y2:k,y3:b}}drawTitle(t,a,c){const n=this.title,r=n.length;let i,o,l;if(r){const f=es(c.rtl,this.x,this.width);for(t.x=fh(this,c.titleAlign,c),a.textAlign=f.textAlign(c.titleAlign),a.textBaseline="middle",i=I3(c.titleFont),o=c.titleSpacing,a.fillStyle=c.titleColor,a.font=i.string,l=0;l<r;++l)a.fillText(n[l],f.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+o,l+1===r&&(t.y+=c.titleMarginBottom-o)}}_drawColorBox(t,a,c,n,r){const i=this.labelColors[c],o=this.labelPointStyles[c],{boxHeight:l,boxWidth:f}=r,u=I3(r.bodyFont),d=fh(this,"left",r),h=n.x(d),p=l<u.lineHeight?(u.lineHeight-l)/2:0,v=a.y+p;if(r.usePointStyle){const m={radius:Math.min(f,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},y=n.leftForLtr(h,f)+f/2,g=v+l/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,LZ(t,m,y,g),t.strokeStyle=i.borderColor,t.fillStyle=i.backgroundColor,LZ(t,m,y,g)}else{t.lineWidth=F2(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,t.strokeStyle=i.borderColor,t.setLineDash(i.borderDash||[]),t.lineDashOffset=i.borderDashOffset||0;const m=n.leftForLtr(h,f),y=n.leftForLtr(n.xPlus(h,1),f-2),g=pi(i.borderRadius);Object.values(g).some(M=>M!==0)?(t.beginPath(),t.fillStyle=r.multiKeyBackground,Df(t,{x:m,y:v,w:f,h:l,radius:g}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),Df(t,{x:y,y:v+1,w:f-2,h:l-2,radius:g}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(m,v,f,l),t.strokeRect(m,v,f,l),t.fillStyle=i.backgroundColor,t.fillRect(y,v+1,f-2,l-2))}t.fillStyle=this.labelTextColors[c]}drawBody(t,a,c){const{body:n}=this,{bodySpacing:r,bodyAlign:i,displayColors:o,boxHeight:l,boxWidth:f,boxPadding:u}=c,d=I3(c.bodyFont);let h=d.lineHeight,p=0;const v=es(c.rtl,this.x,this.width),m=function(H){a.fillText(H,v.x(t.x+p),t.y+h/2),t.y+=h+r},y=v.textAlign(i);let g,M,x,k,b,_,C;for(a.textAlign=i,a.textBaseline="middle",a.font=d.string,t.x=fh(this,y,c),a.fillStyle=c.bodyColor,he(this.beforeBody,m),p=o&&y!=="right"?i==="center"?f/2+u:f+2+u:0,k=0,_=n.length;k<_;++k){for(g=n[k],M=this.labelTextColors[k],a.fillStyle=M,he(g.before,m),x=g.lines,o&&x.length&&(this._drawColorBox(a,t,k,v,c),h=Math.max(d.lineHeight,l)),b=0,C=x.length;b<C;++b)m(x[b]),h=d.lineHeight;he(g.after,m)}p=0,h=d.lineHeight,he(this.afterBody,m),t.y-=r}drawFooter(t,a,c){const n=this.footer,r=n.length;let i,o;if(r){const l=es(c.rtl,this.x,this.width);for(t.x=fh(this,c.footerAlign,c),t.y+=c.footerMarginTop,a.textAlign=l.textAlign(c.footerAlign),a.textBaseline="middle",i=I3(c.footerFont),a.fillStyle=c.footerColor,a.font=i.string,o=0;o<r;++o)a.fillText(n[o],l.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+c.footerSpacing}}drawBackground(t,a,c,n){const{xAlign:r,yAlign:i}=this,{x:o,y:l}=t,{width:f,height:u}=c,{topLeft:d,topRight:h,bottomLeft:p,bottomRight:v}=pi(n.cornerRadius);a.fillStyle=n.backgroundColor,a.strokeStyle=n.borderColor,a.lineWidth=n.borderWidth,a.beginPath(),a.moveTo(o+d,l),i==="top"&&this.drawCaret(t,a,c,n),a.lineTo(o+f-h,l),a.quadraticCurveTo(o+f,l,o+f,l+h),i==="center"&&r==="right"&&this.drawCaret(t,a,c,n),a.lineTo(o+f,l+u-v),a.quadraticCurveTo(o+f,l+u,o+f-v,l+u),i==="bottom"&&this.drawCaret(t,a,c,n),a.lineTo(o+p,l+u),a.quadraticCurveTo(o,l+u,o,l+u-p),i==="center"&&r==="left"&&this.drawCaret(t,a,c,n),a.lineTo(o,l+d),a.quadraticCurveTo(o,l,o+d,l),a.closePath(),a.fill(),n.borderWidth>0&&a.stroke()}_updateAnimationTarget(t){const a=this.chart,c=this.$animations,n=c&&c.x,r=c&&c.y;if(n||r){const i=tl[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=R81(this,t),l=Object.assign({},i,this._size),f=F81(a,t,l),u=$81(t,l,f,a);(n._to!==u.x||r._to!==u.y)&&(this.xAlign=f.xAlign,this.yAlign=f.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const a=this.options.setContext(this.getContext());let c=this.opacity;if(!c)return;this._updateAnimationTarget(a);const n={width:this.width,height:this.height},r={x:this.x,y:this.y};c=Math.abs(c)<.001?0:c;const i=b4(a.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;a.enabled&&o&&(t.save(),t.globalAlpha=c,this.drawBackground(r,t,n,a),wg1(t,a.textDirection),r.y+=i.top,this.drawTitle(r,t,a),this.drawBody(r,t,a),this.drawFooter(r,t,a),Hg1(t,a.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,a){const c=this._active,n=t.map(({datasetIndex:o,index:l})=>{const f=this.chart.getDatasetMeta(o);if(!f)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:f.data[l],index:l}}),r=!T$(c,n),i=this._positionChanged(n,a);(r||i)&&(this._active=n,this._eventPosition=a,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,a,c=!0){if(a&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,r=this._active||[],i=this._getActiveElements(t,r,a,c),o=this._positionChanged(i,t),l=a||!T$(i,r)||o;return l&&(this._active=i,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,a))),l}_getActiveElements(t,a,c,n){const r=this.options;if(t.type==="mouseout")return[];if(!n)return a.filter(o=>this.chart.data.datasets[o.datasetIndex]&&this.chart.getDatasetMeta(o.datasetIndex).controller.getParsed(o.index)!==void 0);const i=this.chart.getElementsAtEventForMode(t,r.mode,r,c);return r.reverse&&i.reverse(),i}_positionChanged(t,a){const{caretX:c,caretY:n,options:r}=this,i=tl[r.position].call(this,t,a);return i!==!1&&(c!==i.x||n!==i.y)}}S1(DZ,"positioners",tl);var gme={id:"tooltip",_element:DZ,positioners:tl,afterInit(e,t,a){a&&(e.tooltip=new DZ({chart:e,options:a}))},beforeUpdate(e,t,a){e.tooltip&&e.tooltip.initialize(a)},reset(e,t,a){e.tooltip&&e.tooltip.initialize(a)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const a={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...a,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",a)}},afterEvent(e,t){if(e.tooltip){const a=t.replay;e.tooltip.handleEvent(t.event,a,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Qg1},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Mme=Object.freeze({__proto__:null,Colors:Npe,Decimation:Dpe,Filler:tme,Legend:ome,SubTitle:fme,Title:lme,Tooltip:gme});const kme=(e,t,a,c)=>(typeof t=="string"?(a=e.push(t)-1,c.unshift({index:a,label:t})):isNaN(t)&&(a=null),a);function xme(e,t,a,c){const n=e.indexOf(t);if(n===-1)return kme(e,t,a,c);const r=e.lastIndexOf(t);return n!==r?a:n}const bme=(e,t)=>e===null?null:X3(Math.round(e),0,t);function U81(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class PZ extends Ji{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const a=this._addedLabels;if(a.length){const c=this.getLabels();for(const{index:n,label:r}of a)c[n]===r&&c.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,a){if(Q2(t))return null;const c=this.getLabels();return a=isFinite(a)&&c[a]===t?a:xme(c,t,C2(a,t),this._addedLabels),bme(a,c.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:a}=this.getUserBounds();let{min:c,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(c=0),a||(n=this.getLabels().length-1)),this.min=c,this.max=n}buildTicks(){const t=this.min,a=this.max,c=this.options.offset,n=[];let r=this.getLabels();r=t===0&&a===r.length-1?r:r.slice(t,a+1),this._valueRange=Math.max(r.length-(c?0:1),1),this._startValue=this.min-(c?.5:0);for(let i=t;i<=a;i++)n.push({value:i});return n}getLabelForValue(t){return U81.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const a=this.ticks;return t<0||t>a.length-1?null:this.getPixelForValue(a[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}S1(PZ,"id","category"),S1(PZ,"defaults",{ticks:{callback:U81}});function zme(e,t){const a=[],{bounds:n,step:r,min:i,max:o,precision:l,count:f,maxTicks:u,maxDigits:d,includeBounds:h}=e,p=r||1,v=u-1,{min:m,max:y}=t,g=!Q2(i),M=!Q2(o),x=!Q2(f),k=(y-m)/(d+1);let b=Rt1((y-m)/v/p)*p,_,C,H,V;if(b<1e-14&&!g&&!M)return[{value:m},{value:y}];V=Math.ceil(y/b)-Math.floor(m/b),V>v&&(b=Rt1(V*b/v/p)*p),Q2(l)||(_=Math.pow(10,l),b=Math.ceil(b*_)/_),n==="ticks"?(C=Math.floor(m/b)*b,H=Math.ceil(y/b)*b):(C=m,H=y),g&&M&&r&&vue((o-i)/r,b/1e3)?(V=Math.round(Math.min((o-i)/b,u)),b=(o-i)/V,C=i,H=o):x?(C=g?i:C,H=M?o:H,V=f-1,b=(H-C)/V):(V=(H-C)/b,Sl(V,Math.round(V),b/1e3)?V=Math.round(V):V=Math.ceil(V));const N=Math.max(Ft1(b),Ft1(C));_=Math.pow(10,Q2(l)?N:l),C=Math.round(C*_)/_,H=Math.round(H*_)/_;let L=0;for(g&&(h&&C!==i?(a.push({value:i}),C<i&&L++,Sl(Math.round((C+L*b)*_)/_,i,W81(i,k,e))&&L++):C<i&&L++);L<V;++L){const w=Math.round((C+L*b)*_)/_;if(M&&w>o)break;a.push({value:w})}return M&&h&&H!==o?a.length&&Sl(a[a.length-1].value,o,W81(o,k,e))?a[a.length-1].value=o:a.push({value:o}):(!M||H===o)&&a.push({value:H}),a}function W81(e,t,{horizontal:a,minRotation:c}){const n=o6(c),r=(a?Math.sin(n):Math.cos(n))||.001,i=.75*t*(""+e).length;return Math.min(t/r,i)}class R$ extends Ji{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,a){return Q2(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:a,maxDefined:c}=this.getUserBounds();let{min:n,max:r}=this;const i=l=>n=a?n:l,o=l=>r=c?r:l;if(t){const l=kt(n),f=kt(r);l<0&&f<0?o(0):l>0&&f>0&&i(0)}if(n===r){let l=r===0?1:Math.abs(r*.05);o(r+l),t||i(n-l)}this.min=n,this.max=r}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:a,stepSize:c}=t,n;return c?(n=Math.ceil(this.max/c)-Math.floor(this.min/c)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${c} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),a=a||11),a&&(n=Math.min(a,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,a=t.ticks;let c=this.getTickLimit();c=Math.max(2,c);const n={maxTicks:c,bounds:t.bounds,min:t.min,max:t.max,precision:a.precision,step:a.stepSize,count:a.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:a.minRotation||0,includeBounds:a.includeBounds!==!1},r=this._range||this,i=zme(n,r);return t.bounds==="ticks"&&lg1(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let a=this.min,c=this.max;if(super.configure(),this.options.offset&&t.length){const n=(c-a)/Math.max(t.length-1,1)/2;a-=n,c+=n}this._startValue=a,this._endValue=c,this._valueRange=c-a}getLabelForValue(t){return Bu(t,this.chart.options.locale,this.options.ticks.format)}}class OZ extends R${determineDataLimits(){const{min:t,max:a}=this.getMinMax(!0);this.min=l3(t)?t:0,this.max=l3(a)?a:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),a=t?this.width:this.height,c=o6(this.options.ticks.minRotation),n=(t?Math.sin(c):Math.cos(c))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(a/Math.min(40,r.lineHeight/n))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}S1(OZ,"id","linear"),S1(OZ,"defaults",{ticks:{callback:$j.formatters.numeric}});const Of=e=>Math.floor(ha(e)),C5=(e,t)=>Math.pow(10,Of(e)+t);function Y81(e){return e/Math.pow(10,Of(e))===1}function G81(e,t,a){const c=Math.pow(10,a),n=Math.floor(e/c);return Math.ceil(t/c)-n}function Cme(e,t){const a=t-e;let c=Of(a);for(;G81(e,t,c)>10;)c++;for(;G81(e,t,c)<10;)c--;return Math.min(c,Of(e))}function _me(e,{min:t,max:a}){t=e0(e.min,t);const c=[],n=Of(t);let r=Cme(t,a),i=r<0?Math.pow(10,Math.abs(r)):1;const o=Math.pow(10,r),l=n>r?Math.pow(10,n):0,f=Math.round((t-l)*i)/i,u=Math.floor((t-l)/o/10)*o*10;let d=Math.floor((f-u)/Math.pow(10,r)),h=e0(e.min,Math.round((l+u+d*Math.pow(10,r))*i)/i);for(;h<a;)c.push({value:h,major:Y81(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(r++,d=2,i=r>=0?1:i),h=Math.round((l+u+d*Math.pow(10,r))*i)/i;const p=e0(e.max,h);return c.push({value:p,major:Y81(p),significand:d}),c}class IZ extends Ji{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,a){const c=R$.prototype.parse.apply(this,[t,a]);if(c===0){this._zero=!0;return}return l3(c)&&c>0?c:null}determineDataLimits(){const{min:t,max:a}=this.getMinMax(!0);this.min=l3(t)?Math.max(0,t):null,this.max=l3(a)?Math.max(0,a):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!l3(this._userMin)&&(this.min=t===C5(this.min,0)?C5(this.min,-1):C5(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:a}=this.getUserBounds();let c=this.min,n=this.max;const r=o=>c=t?c:o,i=o=>n=a?n:o;c===n&&(c<=0?(r(1),i(10)):(r(C5(c,-1)),i(C5(n,1)))),c<=0&&r(C5(n,-1)),n<=0&&i(C5(c,1)),this.min=c,this.max=n}buildTicks(){const t=this.options,a={min:this._userMin,max:this._userMax},c=_me(a,this);return t.bounds==="ticks"&&lg1(c,this,"value"),t.reverse?(c.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),c}getLabelForValue(t){return t===void 0?"0":Bu(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=ha(t),this._valueRange=ha(this.max)-ha(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(ha(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const a=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+a*this._valueRange)}}S1(IZ,"id","logarithmic"),S1(IZ,"defaults",{ticks:{callback:$j.formatters.logarithmic,major:{enabled:!0}}});function BZ(e){const t=e.ticks;if(t.display&&e.display){const a=b4(t.backdropPadding);return C2(t.font&&t.font.size,We.font.size)+a.height}return 0}function wme(e,t,a){return a=Ae(a)?a:[a],{w:Tue(e,t.string,a),h:a.length*t.lineHeight}}function Z81(e,t,a,c,n){return e===c||e===n?{start:t-a/2,end:t+a/2}:e<c||e>n?{start:t-a,end:t}:{start:t,end:t+a}}function Hme(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},a=Object.assign({},t),c=[],n=[],r=e._pointLabels.length,i=e.options.pointLabels,o=i.centerPointLabels?Pe/r:0;for(let l=0;l<r;l++){const f=i.setContext(e.getPointLabelContext(l));n[l]=f.padding;const u=e.getPointPosition(l,e.drawingArea+n[l],o),d=I3(f.font),h=wme(e.ctx,d,e._pointLabels[l]);c[l]=h;const p=t0(e.getIndexAngle(l)+o),v=Math.round(r11(p)),m=Z81(v,u.x,h.w,0,180),y=Z81(v,u.y,h.h,90,270);Lme(a,t,p,m,y)}e.setCenterPoint(t.l-a.l,a.r-t.r,t.t-a.t,a.b-t.b),e._pointLabelItems=Nme(e,c,n)}function Lme(e,t,a,c,n){const r=Math.abs(Math.sin(a)),i=Math.abs(Math.cos(a));let o=0,l=0;c.start<t.l?(o=(t.l-c.start)/r,e.l=Math.min(e.l,t.l-o)):c.end>t.r&&(o=(c.end-t.r)/r,e.r=Math.max(e.r,t.r+o)),n.start<t.t?(l=(t.t-n.start)/i,e.t=Math.min(e.t,t.t-l)):n.end>t.b&&(l=(n.end-t.b)/i,e.b=Math.max(e.b,t.b+l))}function Vme(e,t,a){const c=e.drawingArea,{extra:n,additionalAngle:r,padding:i,size:o}=a,l=e.getPointPosition(t,c+n+i,r),f=Math.round(r11(t0(l.angle+w3))),u=Eme(l.y,o.h,f),d=Ame(f),h=Tme(l.x,o.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+o.w,bottom:u+o.h}}function Sme(e,t){if(!t)return!0;const{left:a,top:c,right:n,bottom:r}=e;return!(o8({x:a,y:c},t)||o8({x:a,y:r},t)||o8({x:n,y:c},t)||o8({x:n,y:r},t))}function Nme(e,t,a){const c=[],n=e._pointLabels.length,r=e.options,{centerPointLabels:i,display:o}=r.pointLabels,l={extra:BZ(r)/2,additionalAngle:i?Pe/n:0};let f;for(let u=0;u<n;u++){l.padding=a[u],l.size=t[u];const d=Vme(e,u,l);c.push(d),o==="auto"&&(d.visible=Sme(d,f),d.visible&&(f=d))}return c}function Ame(e){return e===0||e===180?"center":e<180?"left":"right"}function Tme(e,t,a){return a==="right"?e-=t:a==="center"&&(e-=t/2),e}function Eme(e,t,a){return a===90||a===270?e-=t/2:(a>270||a<90)&&(e-=t),e}function Dme(e,t,a){const{left:c,top:n,right:r,bottom:i}=a,{backdropColor:o}=t;if(!Q2(o)){const l=pi(t.borderRadius),f=b4(t.backdropPadding);e.fillStyle=o;const u=c-f.left,d=n-f.top,h=r-c+f.width,p=i-n+f.height;Object.values(l).some(v=>v!==0)?(e.beginPath(),Df(e,{x:u,y:d,w:h,h:p,radius:l}),e.fill()):e.fillRect(u,d,h,p)}}function Pme(e,t){const{ctx:a,options:{pointLabels:c}}=e;for(let n=t-1;n>=0;n--){const r=e._pointLabelItems[n];if(!r.visible)continue;const i=c.setContext(e.getPointLabelContext(n));Dme(a,i,r);const o=I3(i.font),{x:l,y:f,textAlign:u}=r;Ai(a,e._pointLabels[n],l,f+o.lineHeight/2,o,{color:i.color,textAlign:u,textBaseline:"middle"})}}function Jg1(e,t,a,c){const{ctx:n}=e;if(a)n.arc(e.xCenter,e.yCenter,t,0,Ee);else{let r=e.getPointPosition(0,t);n.moveTo(r.x,r.y);for(let i=1;i<c;i++)r=e.getPointPosition(i,t),n.lineTo(r.x,r.y)}}function Ome(e,t,a,c,n){const r=e.ctx,i=t.circular,{color:o,lineWidth:l}=t;!i&&!c||!o||!l||a<0||(r.save(),r.strokeStyle=o,r.lineWidth=l,r.setLineDash(n.dash||[]),r.lineDashOffset=n.dashOffset,r.beginPath(),Jg1(e,a,i,c),r.closePath(),r.stroke(),r.restore())}function Ime(e,t,a){return i5(e,{label:a,index:t,type:"pointLabel"})}class al extends R${constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=b4(BZ(this.options)/2),a=this.width=this.maxWidth-t.width,c=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+a/2+t.left),this.yCenter=Math.floor(this.top+c/2+t.top),this.drawingArea=Math.floor(Math.min(a,c)/2)}determineDataLimits(){const{min:t,max:a}=this.getMinMax(!1);this.min=l3(t)&&!isNaN(t)?t:0,this.max=l3(a)&&!isNaN(a)?a:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/BZ(this.options))}generateTickLabels(t){R$.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((a,c)=>{const n=xe(this.options.pointLabels.callback,[a,c],this);return n||n===0?n:""}).filter((a,c)=>this.chart.getDataVisibility(c))}fit(){const t=this.options;t.display&&t.pointLabels.display?Hme(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,a,c,n){this.xCenter+=Math.floor((t-a)/2),this.yCenter+=Math.floor((c-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,a,c,n))}getIndexAngle(t){const a=Ee/(this._pointLabels.length||1),c=this.options.startAngle||0;return t0(t*a+o6(c))}getDistanceFromCenterForValue(t){if(Q2(t))return NaN;const a=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*a:(t-this.min)*a}getValueForDistanceFromCenter(t){if(Q2(t))return NaN;const a=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-a:this.min+a}getPointLabelContext(t){const a=this._pointLabels||[];if(t>=0&&t<a.length){const c=a[t];return Ime(this.getContext(),t,c)}}getPointPosition(t,a,c=0){const n=this.getIndexAngle(t)-w3+c;return{x:Math.cos(n)*a+this.xCenter,y:Math.sin(n)*a+this.yCenter,angle:n}}getPointPositionForValue(t,a){return this.getPointPosition(t,this.getDistanceFromCenterForValue(a))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:a,top:c,right:n,bottom:r}=this._pointLabelItems[t];return{left:a,top:c,right:n,bottom:r}}drawBackground(){const{backgroundColor:t,grid:{circular:a}}=this.options;if(t){const c=this.ctx;c.save(),c.beginPath(),Jg1(this,this.getDistanceFromCenterForValue(this._endValue),a,this._pointLabels.length),c.closePath(),c.fillStyle=t,c.fill(),c.restore()}}drawGrid(){const t=this.ctx,a=this.options,{angleLines:c,grid:n,border:r}=a,i=this._pointLabels.length;let o,l,f;if(a.pointLabels.display&&Pme(this,i),n.display&&this.ticks.forEach((u,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(d),p=n.setContext(h),v=r.setContext(h);Ome(this,p,l,i,v)}}),c.display){for(t.save(),o=i-1;o>=0;o--){const u=c.setContext(this.getPointLabelContext(o)),{color:d,lineWidth:h}=u;!h||!d||(t.lineWidth=h,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(a.reverse?this.min:this.max),f=this.getPointPosition(o,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(f.x,f.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,a=this.options,c=a.ticks;if(!c.display)return;const n=this.getIndexAngle(0);let r,i;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((o,l)=>{if(l===0&&this.min>=0&&!a.reverse)return;const f=c.setContext(this.getContext(l)),u=I3(f.font);if(r=this.getDistanceFromCenterForValue(this.ticks[l].value),f.showLabelBackdrop){t.font=u.string,i=t.measureText(o.label).width,t.fillStyle=f.backdropColor;const d=b4(f.backdropPadding);t.fillRect(-i/2-d.left,-r-u.size/2-d.top,i+d.width,u.size+d.height)}Ai(t,o.label,0,-r,u,{color:f.color,strokeColor:f.textStrokeColor,strokeWidth:f.textStrokeWidth})}),t.restore()}drawTitle(){}}S1(al,"id","radialLinear"),S1(al,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:$j.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),S1(al,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),S1(al,"descriptors",{angleLines:{_fallback:"grid"}});const Wj={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},U4=Object.keys(Wj);function X81(e,t){return e-t}function K81(e,t){if(Q2(t))return null;const a=e._adapter,{parser:c,round:n,isoWeekday:r}=e._parseOpts;let i=t;return typeof c=="function"&&(i=c(i)),l3(i)||(i=typeof c=="string"?a.parse(i,c):a.parse(i)),i===null?null:(n&&(i=n==="week"&&(bs(r)||r===!0)?a.startOf(i,"isoWeek",r):a.startOf(i,n)),+i)}function Q81(e,t,a,c){const n=U4.length;for(let r=U4.indexOf(e);r<n-1;++r){const i=Wj[U4[r]],o=i.steps?i.steps:Number.MAX_SAFE_INTEGER;if(i.common&&Math.ceil((a-t)/(o*i.size))<=c)return U4[r]}return U4[n-1]}function Bme(e,t,a,c,n){for(let r=U4.length-1;r>=U4.indexOf(a);r--){const i=U4[r];if(Wj[i].common&&e._adapter.diff(n,c,i)>=t-1)return i}return U4[a?U4.indexOf(a):0]}function Rme(e){for(let t=U4.indexOf(e)+1,a=U4.length;t<a;++t)if(Wj[U4[t]].common)return U4[t]}function J81(e,t,a){if(!a)e[t]=!0;else if(a.length){const{lo:c,hi:n}=i11(a,t),r=a[c]>=t?a[c]:a[n];e[r]=!0}}function Fme(e,t,a,c){const n=e._adapter,r=+n.startOf(t[0].value,c),i=t[t.length-1].value;let o,l;for(o=r;o<=i;o=+n.add(o,1,c))l=a[o],l>=0&&(t[l].major=!0);return t}function ea1(e,t,a){const c=[],n={},r=t.length;let i,o;for(i=0;i<r;++i)o=t[i],n[o]=i,c.push({value:o,major:!1});return r===0||!a?c:Fme(e,c,n,a)}class If extends Ji{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,a={}){const c=t.time||(t.time={}),n=this._adapter=new Zde._date(t.adapters.date);n.init(a),Vl(c.displayFormats,n.formats()),this._parseOpts={parser:c.parser,round:c.round,isoWeekday:c.isoWeekday},super.init(t),this._normalized=a.normalized}parse(t,a){return t===void 0?null:K81(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,a=this._adapter,c=t.time.unit||"day";let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds();function l(f){!i&&!isNaN(f.min)&&(n=Math.min(n,f.min)),!o&&!isNaN(f.max)&&(r=Math.max(r,f.max))}(!i||!o)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),n=l3(n)&&!isNaN(n)?n:+a.startOf(Date.now(),c),r=l3(r)&&!isNaN(r)?r:+a.endOf(Date.now(),c)+1,this.min=Math.min(n,r-1),this.max=Math.max(n+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let a=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY;return t.length&&(a=t[0],c=t[t.length-1]),{min:a,max:c}}buildTicks(){const t=this.options,a=t.time,c=t.ticks,n=c.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const r=this.min,i=this.max,o=kue(n,r,i);return this._unit=a.unit||(c.autoSkip?Q81(a.minUnit,this.min,this.max,this._getLabelCapacity(r)):Bme(this,o.length,a.minUnit,this.min,this.max)),this._majorUnit=!c.major.enabled||this._unit==="year"?void 0:Rme(this._unit),this.initOffsets(n),t.reverse&&o.reverse(),ea1(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let a=0,c=0,n,r;this.options.offset&&t.length&&(n=this.getDecimalForValue(t[0]),t.length===1?a=1-n:a=(this.getDecimalForValue(t[1])-n)/2,r=this.getDecimalForValue(t[t.length-1]),t.length===1?c=r:c=(r-this.getDecimalForValue(t[t.length-2]))/2);const i=t.length<3?.5:.25;a=X3(a,0,i),c=X3(c,0,i),this._offsets={start:a,end:c,factor:1/(a+1+c)}}_generate(){const t=this._adapter,a=this.min,c=this.max,n=this.options,r=n.time,i=r.unit||Q81(r.minUnit,a,c,this._getLabelCapacity(a)),o=C2(n.ticks.stepSize,1),l=i==="week"?r.isoWeekday:!1,f=bs(l)||l===!0,u={};let d=a,h,p;if(f&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,f?"day":i),t.diff(c,a,i)>1e5*o)throw new Error(a+" and "+c+" are too far apart with stepSize of "+o+" "+i);const v=n.ticks.source==="data"&&this.getDataTimestamps();for(h=d,p=0;h<c;h=+t.add(h,o,i),p++)J81(u,h,v);return(h===c||n.bounds==="ticks"||p===1)&&J81(u,h,v),Object.keys(u).sort(X81).map(m=>+m)}getLabelForValue(t){const a=this._adapter,c=this.options.time;return c.tooltipFormat?a.format(t,c.tooltipFormat):a.format(t,c.displayFormats.datetime)}format(t,a){const n=this.options.time.displayFormats,r=this._unit,i=a||n[r];return this._adapter.format(t,i)}_tickFormatFunction(t,a,c,n){const r=this.options,i=r.ticks.callback;if(i)return xe(i,[t,a,c],this);const o=r.time.displayFormats,l=this._unit,f=this._majorUnit,u=l&&o[l],d=f&&o[f],h=c[a],p=f&&d&&h&&h.major;return this._adapter.format(t,n||(p?d:u))}generateTickLabels(t){let a,c,n;for(a=0,c=t.length;a<c;++a)n=t[a],n.label=this._tickFormatFunction(n.value,a,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const a=this._offsets,c=this.getDecimalForValue(t);return this.getPixelForDecimal((a.start+c)*a.factor)}getValueForPixel(t){const a=this._offsets,c=this.getDecimalForPixel(t)/a.factor-a.end;return this.min+c*(this.max-this.min)}_getLabelSize(t){const a=this.options.ticks,c=this.ctx.measureText(t).width,n=o6(this.isHorizontal()?a.maxRotation:a.minRotation),r=Math.cos(n),i=Math.sin(n),o=this._resolveTickFontOptions(0).size;return{w:c*r+o*i,h:c*i+o*r}}_getLabelCapacity(t){const a=this.options.time,c=a.displayFormats,n=c[a.unit]||c.millisecond,r=this._tickFormatFunction(t,0,ea1(this,[t],this._majorUnit),n),i=this._getLabelSize(r),o=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return o>0?o:1}getDataTimestamps(){let t=this._cache.data||[],a,c;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(a=0,c=n.length;a<c;++a)t=t.concat(n[a].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let a,c;if(t.length)return t;const n=this.getLabels();for(a=0,c=n.length;a<c;++a)t.push(K81(this,n[a]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return dg1(t.sort(X81))}}S1(If,"id","time"),S1(If,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function uh(e,t,a){let c=0,n=e.length-1,r,i,o,l;a?(t>=e[c].pos&&t<=e[n].pos&&({lo:c,hi:n}=i8(e,"pos",t)),{pos:r,time:o}=e[c],{pos:i,time:l}=e[n]):(t>=e[c].time&&t<=e[n].time&&({lo:c,hi:n}=i8(e,"time",t)),{time:r,pos:o}=e[c],{time:i,pos:l}=e[n]);const f=i-r;return f?o+(l-o)*(t-r)/f:o}class RZ extends If{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),a=this._table=this.buildLookupTable(t);this._minPos=uh(a,this.min),this._tableRange=uh(a,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:a,max:c}=this,n=[],r=[];let i,o,l,f,u;for(i=0,o=t.length;i<o;++i)f=t[i],f>=a&&f<=c&&n.push(f);if(n.length<2)return[{time:a,pos:0},{time:c,pos:1}];for(i=0,o=n.length;i<o;++i)u=n[i+1],l=n[i-1],f=n[i],Math.round((u+l)/2)!==f&&r.push({time:f,pos:i/(o-1)});return r}_generate(){const t=this.min,a=this.max;let c=super.getDataTimestamps();return(!c.includes(t)||!c.length)&&c.splice(0,0,t),(!c.includes(a)||c.length===1)&&c.push(a),c.sort((n,r)=>n-r)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const a=this.getDataTimestamps(),c=this.getLabelTimestamps();return a.length&&c.length?t=this.normalize(a.concat(c)):t=a.length?a:c,t=this._cache.all=t,t}getDecimalForValue(t){return(uh(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const a=this._offsets,c=this.getDecimalForPixel(t)/a.factor-a.end;return uh(this._table,c*this._tableRange+this._minPos,!0)}}S1(RZ,"id","timeseries"),S1(RZ,"defaults",If.defaults);var $me=Object.freeze({__proto__:null,CategoryScale:PZ,LinearScale:OZ,LogarithmicScale:IZ,RadialLinearScale:al,TimeScale:If,TimeSeriesScale:RZ});const eM1=[Gde,Cpe,Mme,$me];var qme=typeof global=="object"&&global&&global.Object===Object&&global;const tM1=qme;var jme=typeof self=="object"&&self&&self.Object===Object&&self,Ume=tM1||jme||Function("return this")();const Et=Ume;var Wme=Et.Symbol;const Wa=Wme;var aM1=Object.prototype,Yme=aM1.hasOwnProperty,Gme=aM1.toString,R9=Wa?Wa.toStringTag:void 0;function Zme(e){var t=Yme.call(e,R9),a=e[R9];try{e[R9]=void 0;var c=!0}catch{}var n=Gme.call(e);return c&&(t?e[R9]=a:delete e[R9]),n}var Xme=Object.prototype,Kme=Xme.toString;function Qme(e){return Kme.call(e)}var Jme="[object Null]",eve="[object Undefined]",ta1=Wa?Wa.toStringTag:void 0;function Fu(e){return e==null?e===void 0?eve:Jme:ta1&&ta1 in Object(e)?Zme(e):Qme(e)}function Ti(e){return e!=null&&typeof e=="object"}var tve=Array.isArray;const _s=tve;function $u(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ave="[object AsyncFunction]",cve="[object Function]",nve="[object GeneratorFunction]",rve="[object Proxy]";function cM1(e){if(!$u(e))return!1;var t=Fu(e);return t==cve||t==nve||t==ave||t==rve}var ive=Et["__core-js_shared__"];const yY=ive;var aa1=function(){var e=/[^.]+$/.exec(yY&&yY.keys&&yY.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ove(e){return!!aa1&&aa1 in e}var sve=Function.prototype,lve=sve.toString;function eo(e){if(e!=null){try{return lve.call(e)}catch{}try{return e+""}catch{}}return""}var fve=/[\\^$.*+?()[\]{}|]/g,uve=/^\[object .+?Constructor\]$/,dve=Function.prototype,hve=Object.prototype,pve=dve.toString,mve=hve.hasOwnProperty,vve=RegExp("^"+pve.call(mve).replace(fve,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yve(e){if(!$u(e)||ove(e))return!1;var t=cM1(e)?vve:uve;return t.test(eo(e))}function gve(e,t){return e==null?void 0:e[t]}function to(e,t){var a=gve(e,t);return yve(a)?a:void 0}var Mve=to(Et,"WeakMap");const FZ=Mve;var ca1=Object.create,kve=function(){function e(){}return function(t){if(!$u(t))return{};if(ca1)return ca1(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();const xve=kve;function bve(e,t){var a=-1,c=e.length;for(t||(t=Array(c));++a<c;)t[a]=e[a];return t}var zve=function(){try{var e=to(Object,"defineProperty");return e({},"",{}),e}catch{}}();const na1=zve;function Cve(e,t){for(var a=-1,c=e==null?0:e.length;++a<c&&t(e[a],a,e)!==!1;);return e}var _ve=9007199254740991,wve=/^(?:0|[1-9]\d*)$/;function Hve(e,t){var a=typeof e;return t=t??_ve,!!t&&(a=="number"||a!="symbol"&&wve.test(e))&&e>-1&&e%1==0&&e<t}function nM1(e,t,a){t=="__proto__"&&na1?na1(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}function g11(e,t){return e===t||e!==e&&t!==t}var Lve=Object.prototype,Vve=Lve.hasOwnProperty;function rM1(e,t,a){var c=e[t];(!(Vve.call(e,t)&&g11(c,a))||a===void 0&&!(t in e))&&nM1(e,t,a)}function Yj(e,t,a,c){var n=!a;a||(a={});for(var r=-1,i=t.length;++r<i;){var o=t[r],l=c?c(a[o],e[o],o,a,e):void 0;l===void 0&&(l=e[o]),n?nM1(a,o,l):rM1(a,o,l)}return a}var Sve=9007199254740991;function iM1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Sve}function M11(e){return e!=null&&iM1(e.length)&&!cM1(e)}var Nve=Object.prototype;function Gj(e){var t=e&&e.constructor,a=typeof t=="function"&&t.prototype||Nve;return e===a}function Ave(e,t){for(var a=-1,c=Array(e);++a<e;)c[a]=t(a);return c}var Tve="[object Arguments]";function ra1(e){return Ti(e)&&Fu(e)==Tve}var oM1=Object.prototype,Eve=oM1.hasOwnProperty,Dve=oM1.propertyIsEnumerable,Pve=ra1(function(){return arguments}())?ra1:function(e){return Ti(e)&&Eve.call(e,"callee")&&!Dve.call(e,"callee")};const sM1=Pve;function Ove(){return!1}var lM1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ia1=lM1&&typeof module=="object"&&module&&!module.nodeType&&module,Ive=ia1&&ia1.exports===lM1,oa1=Ive?Et.Buffer:void 0,Bve=oa1?oa1.isBuffer:void 0,Rve=Bve||Ove;const Bf=Rve;var Fve="[object Arguments]",$ve="[object Array]",qve="[object Boolean]",jve="[object Date]",Uve="[object Error]",Wve="[object Function]",Yve="[object Map]",Gve="[object Number]",Zve="[object Object]",Xve="[object RegExp]",Kve="[object Set]",Qve="[object String]",Jve="[object WeakMap]",eye="[object ArrayBuffer]",tye="[object DataView]",aye="[object Float32Array]",cye="[object Float64Array]",nye="[object Int8Array]",rye="[object Int16Array]",iye="[object Int32Array]",oye="[object Uint8Array]",sye="[object Uint8ClampedArray]",lye="[object Uint16Array]",fye="[object Uint32Array]",Le={};Le[aye]=Le[cye]=Le[nye]=Le[rye]=Le[iye]=Le[oye]=Le[sye]=Le[lye]=Le[fye]=!0;Le[Fve]=Le[$ve]=Le[eye]=Le[qve]=Le[tye]=Le[jve]=Le[Uve]=Le[Wve]=Le[Yve]=Le[Gve]=Le[Zve]=Le[Xve]=Le[Kve]=Le[Qve]=Le[Jve]=!1;function uye(e){return Ti(e)&&iM1(e.length)&&!!Le[Fu(e)]}function k11(e){return function(t){return e(t)}}var fM1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,El=fM1&&typeof module=="object"&&module&&!module.nodeType&&module,dye=El&&El.exports===fM1,gY=dye&&tM1.process,hye=function(){try{var e=El&&El.require&&El.require("util").types;return e||gY&&gY.binding&&gY.binding("util")}catch{}}();const ws=hye;var sa1=ws&&ws.isTypedArray,pye=sa1?k11(sa1):uye;const x11=pye;var mye=Object.prototype,vye=mye.hasOwnProperty;function uM1(e,t){var a=_s(e),c=!a&&sM1(e),n=!a&&!c&&Bf(e),r=!a&&!c&&!n&&x11(e),i=a||c||n||r,o=i?Ave(e.length,String):[],l=o.length;for(var f in e)(t||vye.call(e,f))&&!(i&&(f=="length"||n&&(f=="offset"||f=="parent")||r&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Hve(f,l)))&&o.push(f);return o}function dM1(e,t){return function(a){return e(t(a))}}var yye=dM1(Object.keys,Object);const gye=yye;var Mye=Object.prototype,kye=Mye.hasOwnProperty;function hM1(e){if(!Gj(e))return gye(e);var t=[];for(var a in Object(e))kye.call(e,a)&&a!="constructor"&&t.push(a);return t}function b11(e){return M11(e)?uM1(e):hM1(e)}function xye(e){var t=[];if(e!=null)for(var a in Object(e))t.push(a);return t}var bye=Object.prototype,zye=bye.hasOwnProperty;function Cye(e){if(!$u(e))return xye(e);var t=Gj(e),a=[];for(var c in e)c=="constructor"&&(t||!zye.call(e,c))||a.push(c);return a}function z11(e){return M11(e)?uM1(e,!0):Cye(e)}var _ye=to(Object,"create");const Rf=_ye;function wye(){this.__data__=Rf?Rf(null):{},this.size=0}function Hye(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Lye="__lodash_hash_undefined__",Vye=Object.prototype,Sye=Vye.hasOwnProperty;function Nye(e){var t=this.__data__;if(Rf){var a=t[e];return a===Lye?void 0:a}return Sye.call(t,e)?t[e]:void 0}var Aye=Object.prototype,Tye=Aye.hasOwnProperty;function Eye(e){var t=this.__data__;return Rf?t[e]!==void 0:Tye.call(t,e)}var Dye="__lodash_hash_undefined__";function Pye(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=Rf&&t===void 0?Dye:t,this}function Ei(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var c=e[t];this.set(c[0],c[1])}}Ei.prototype.clear=wye;Ei.prototype.delete=Hye;Ei.prototype.get=Nye;Ei.prototype.has=Eye;Ei.prototype.set=Pye;function Oye(){this.__data__=[],this.size=0}function Zj(e,t){for(var a=e.length;a--;)if(g11(e[a][0],t))return a;return-1}var Iye=Array.prototype,Bye=Iye.splice;function Rye(e){var t=this.__data__,a=Zj(t,e);if(a<0)return!1;var c=t.length-1;return a==c?t.pop():Bye.call(t,a,1),--this.size,!0}function Fye(e){var t=this.__data__,a=Zj(t,e);return a<0?void 0:t[a][1]}function $ye(e){return Zj(this.__data__,e)>-1}function qye(e,t){var a=this.__data__,c=Zj(a,e);return c<0?(++this.size,a.push([e,t])):a[c][1]=t,this}function I8(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var c=e[t];this.set(c[0],c[1])}}I8.prototype.clear=Oye;I8.prototype.delete=Rye;I8.prototype.get=Fye;I8.prototype.has=$ye;I8.prototype.set=qye;var jye=to(Et,"Map");const Ff=jye;function Uye(){this.size=0,this.__data__={hash:new Ei,map:new(Ff||I8),string:new Ei}}function Wye(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Xj(e,t){var a=e.__data__;return Wye(t)?a[typeof t=="string"?"string":"hash"]:a.map}function Yye(e){var t=Xj(this,e).delete(e);return this.size-=t?1:0,t}function Gye(e){return Xj(this,e).get(e)}function Zye(e){return Xj(this,e).has(e)}function Xye(e,t){var a=Xj(this,e),c=a.size;return a.set(e,t),this.size+=a.size==c?0:1,this}function ao(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var c=e[t];this.set(c[0],c[1])}}ao.prototype.clear=Uye;ao.prototype.delete=Yye;ao.prototype.get=Gye;ao.prototype.has=Zye;ao.prototype.set=Xye;function pM1(e,t){for(var a=-1,c=t.length,n=e.length;++a<c;)e[n+a]=t[a];return e}var Kye=dM1(Object.getPrototypeOf,Object);const mM1=Kye;function Qye(){this.__data__=new I8,this.size=0}function Jye(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}function ege(e){return this.__data__.get(e)}function tge(e){return this.__data__.has(e)}var age=200;function cge(e,t){var a=this.__data__;if(a instanceof I8){var c=a.__data__;if(!Ff||c.length<age-1)return c.push([e,t]),this.size=++a.size,this;a=this.__data__=new ao(c)}return a.set(e,t),this.size=a.size,this}function m8(e){var t=this.__data__=new I8(e);this.size=t.size}m8.prototype.clear=Qye;m8.prototype.delete=Jye;m8.prototype.get=ege;m8.prototype.has=tge;m8.prototype.set=cge;function nge(e,t){return e&&Yj(t,b11(t),e)}function rge(e,t){return e&&Yj(t,z11(t),e)}var vM1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,la1=vM1&&typeof module=="object"&&module&&!module.nodeType&&module,ige=la1&&la1.exports===vM1,fa1=ige?Et.Buffer:void 0,ua1=fa1?fa1.allocUnsafe:void 0;function oge(e,t){if(t)return e.slice();var a=e.length,c=ua1?ua1(a):new e.constructor(a);return e.copy(c),c}function sge(e,t){for(var a=-1,c=e==null?0:e.length,n=0,r=[];++a<c;){var i=e[a];t(i,a,e)&&(r[n++]=i)}return r}function yM1(){return[]}var lge=Object.prototype,fge=lge.propertyIsEnumerable,da1=Object.getOwnPropertySymbols,uge=da1?function(e){return e==null?[]:(e=Object(e),sge(da1(e),function(t){return fge.call(e,t)}))}:yM1;const C11=uge;function dge(e,t){return Yj(e,C11(e),t)}var hge=Object.getOwnPropertySymbols,pge=hge?function(e){for(var t=[];e;)pM1(t,C11(e)),e=mM1(e);return t}:yM1;const gM1=pge;function mge(e,t){return Yj(e,gM1(e),t)}function MM1(e,t,a){var c=t(e);return _s(e)?c:pM1(c,a(e))}function $Z(e){return MM1(e,b11,C11)}function vge(e){return MM1(e,z11,gM1)}var yge=to(Et,"DataView");const qZ=yge;var gge=to(Et,"Promise");const jZ=gge;var Mge=to(Et,"Set");const UZ=Mge;var ha1="[object Map]",kge="[object Object]",pa1="[object Promise]",ma1="[object Set]",va1="[object WeakMap]",ya1="[object DataView]",xge=eo(qZ),bge=eo(Ff),zge=eo(jZ),Cge=eo(UZ),_ge=eo(FZ),U7=Fu;(qZ&&U7(new qZ(new ArrayBuffer(1)))!=ya1||Ff&&U7(new Ff)!=ha1||jZ&&U7(jZ.resolve())!=pa1||UZ&&U7(new UZ)!=ma1||FZ&&U7(new FZ)!=va1)&&(U7=function(e){var t=Fu(e),a=t==kge?e.constructor:void 0,c=a?eo(a):"";if(c)switch(c){case xge:return ya1;case bge:return ha1;case zge:return pa1;case Cge:return ma1;case _ge:return va1}return t});const Hs=U7;var wge=Object.prototype,Hge=wge.hasOwnProperty;function Lge(e){var t=e.length,a=new e.constructor(t);return t&&typeof e[0]=="string"&&Hge.call(e,"index")&&(a.index=e.index,a.input=e.input),a}var Vge=Et.Uint8Array;const F$=Vge;function _11(e){var t=new e.constructor(e.byteLength);return new F$(t).set(new F$(e)),t}function Sge(e,t){var a=t?_11(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}var Nge=/\w*$/;function Age(e){var t=new e.constructor(e.source,Nge.exec(e));return t.lastIndex=e.lastIndex,t}var ga1=Wa?Wa.prototype:void 0,Ma1=ga1?ga1.valueOf:void 0;function Tge(e){return Ma1?Object(Ma1.call(e)):{}}function Ege(e,t){var a=t?_11(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}var Dge="[object Boolean]",Pge="[object Date]",Oge="[object Map]",Ige="[object Number]",Bge="[object RegExp]",Rge="[object Set]",Fge="[object String]",$ge="[object Symbol]",qge="[object ArrayBuffer]",jge="[object DataView]",Uge="[object Float32Array]",Wge="[object Float64Array]",Yge="[object Int8Array]",Gge="[object Int16Array]",Zge="[object Int32Array]",Xge="[object Uint8Array]",Kge="[object Uint8ClampedArray]",Qge="[object Uint16Array]",Jge="[object Uint32Array]";function eMe(e,t,a){var c=e.constructor;switch(t){case qge:return _11(e);case Dge:case Pge:return new c(+e);case jge:return Sge(e,a);case Uge:case Wge:case Yge:case Gge:case Zge:case Xge:case Kge:case Qge:case Jge:return Ege(e,a);case Oge:return new c;case Ige:case Fge:return new c(e);case Bge:return Age(e);case Rge:return new c;case $ge:return Tge(e)}}function tMe(e){return typeof e.constructor=="function"&&!Gj(e)?xve(mM1(e)):{}}var aMe="[object Map]";function cMe(e){return Ti(e)&&Hs(e)==aMe}var ka1=ws&&ws.isMap,nMe=ka1?k11(ka1):cMe;const rMe=nMe;var iMe="[object Set]";function oMe(e){return Ti(e)&&Hs(e)==iMe}var xa1=ws&&ws.isSet,sMe=xa1?k11(xa1):oMe;const lMe=sMe;var fMe=1,uMe=2,dMe=4,kM1="[object Arguments]",hMe="[object Array]",pMe="[object Boolean]",mMe="[object Date]",vMe="[object Error]",xM1="[object Function]",yMe="[object GeneratorFunction]",gMe="[object Map]",MMe="[object Number]",bM1="[object Object]",kMe="[object RegExp]",xMe="[object Set]",bMe="[object String]",zMe="[object Symbol]",CMe="[object WeakMap]",_Me="[object ArrayBuffer]",wMe="[object DataView]",HMe="[object Float32Array]",LMe="[object Float64Array]",VMe="[object Int8Array]",SMe="[object Int16Array]",NMe="[object Int32Array]",AMe="[object Uint8Array]",TMe="[object Uint8ClampedArray]",EMe="[object Uint16Array]",DMe="[object Uint32Array]",ke={};ke[kM1]=ke[hMe]=ke[_Me]=ke[wMe]=ke[pMe]=ke[mMe]=ke[HMe]=ke[LMe]=ke[VMe]=ke[SMe]=ke[NMe]=ke[gMe]=ke[MMe]=ke[bM1]=ke[kMe]=ke[xMe]=ke[bMe]=ke[zMe]=ke[AMe]=ke[TMe]=ke[EMe]=ke[DMe]=!0;ke[vMe]=ke[xM1]=ke[CMe]=!1;function LF(e,t,a,c,n,r){var i,o=t&fMe,l=t&uMe,f=t&dMe;if(a&&(i=n?a(e,c,n,r):a(e)),i!==void 0)return i;if(!$u(e))return e;var u=_s(e);if(u){if(i=Lge(e),!o)return bve(e,i)}else{var d=Hs(e),h=d==xM1||d==yMe;if(Bf(e))return oge(e,o);if(d==bM1||d==kM1||h&&!n){if(i=l||h?{}:tMe(e),!o)return l?mge(e,rge(i,e)):dge(e,nge(i,e))}else{if(!ke[d])return n?e:{};i=eMe(e,d,o)}}r||(r=new m8);var p=r.get(e);if(p)return p;r.set(e,i),lMe(e)?e.forEach(function(y){i.add(LF(y,t,a,y,e,r))}):rMe(e)&&e.forEach(function(y,g){i.set(g,LF(y,t,a,g,e,r))});var v=f?l?vge:$Z:l?z11:b11,m=u?void 0:v(e);return Cve(m||e,function(y,g){m&&(g=y,y=e[g]),rM1(i,g,LF(y,t,a,g,e,r))}),i}var PMe=1,OMe=4;function F9(e){return LF(e,PMe|OMe)}var IMe="__lodash_hash_undefined__";function BMe(e){return this.__data__.set(e,IMe),this}function RMe(e){return this.__data__.has(e)}function $$(e){var t=-1,a=e==null?0:e.length;for(this.__data__=new ao;++t<a;)this.add(e[t])}$$.prototype.add=$$.prototype.push=BMe;$$.prototype.has=RMe;function FMe(e,t){for(var a=-1,c=e==null?0:e.length;++a<c;)if(t(e[a],a,e))return!0;return!1}function $Me(e,t){return e.has(t)}var qMe=1,jMe=2;function zM1(e,t,a,c,n,r){var i=a&qMe,o=e.length,l=t.length;if(o!=l&&!(i&&l>o))return!1;var f=r.get(e),u=r.get(t);if(f&&u)return f==t&&u==e;var d=-1,h=!0,p=a&jMe?new $$:void 0;for(r.set(e,t),r.set(t,e);++d<o;){var v=e[d],m=t[d];if(c)var y=i?c(m,v,d,t,e,r):c(v,m,d,e,t,r);if(y!==void 0){if(y)continue;h=!1;break}if(p){if(!FMe(t,function(g,M){if(!$Me(p,M)&&(v===g||n(v,g,a,c,r)))return p.push(M)})){h=!1;break}}else if(!(v===m||n(v,m,a,c,r))){h=!1;break}}return r.delete(e),r.delete(t),h}function UMe(e){var t=-1,a=Array(e.size);return e.forEach(function(c,n){a[++t]=[n,c]}),a}function WMe(e){var t=-1,a=Array(e.size);return e.forEach(function(c){a[++t]=c}),a}var YMe=1,GMe=2,ZMe="[object Boolean]",XMe="[object Date]",KMe="[object Error]",QMe="[object Map]",JMe="[object Number]",eke="[object RegExp]",tke="[object Set]",ake="[object String]",cke="[object Symbol]",nke="[object ArrayBuffer]",rke="[object DataView]",ba1=Wa?Wa.prototype:void 0,MY=ba1?ba1.valueOf:void 0;function ike(e,t,a,c,n,r,i){switch(a){case rke:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case nke:return!(e.byteLength!=t.byteLength||!r(new F$(e),new F$(t)));case ZMe:case XMe:case JMe:return g11(+e,+t);case KMe:return e.name==t.name&&e.message==t.message;case eke:case ake:return e==t+"";case QMe:var o=UMe;case tke:var l=c&YMe;if(o||(o=WMe),e.size!=t.size&&!l)return!1;var f=i.get(e);if(f)return f==t;c|=GMe,i.set(e,t);var u=zM1(o(e),o(t),c,n,r,i);return i.delete(e),u;case cke:if(MY)return MY.call(e)==MY.call(t)}return!1}var oke=1,ske=Object.prototype,lke=ske.hasOwnProperty;function fke(e,t,a,c,n,r){var i=a&oke,o=$Z(e),l=o.length,f=$Z(t),u=f.length;if(l!=u&&!i)return!1;for(var d=l;d--;){var h=o[d];if(!(i?h in t:lke.call(t,h)))return!1}var p=r.get(e),v=r.get(t);if(p&&v)return p==t&&v==e;var m=!0;r.set(e,t),r.set(t,e);for(var y=i;++d<l;){h=o[d];var g=e[h],M=t[h];if(c)var x=i?c(M,g,h,t,e,r):c(g,M,h,e,t,r);if(!(x===void 0?g===M||n(g,M,a,c,r):x)){m=!1;break}y||(y=h=="constructor")}if(m&&!y){var k=e.constructor,b=t.constructor;k!=b&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof b=="function"&&b instanceof b)&&(m=!1)}return r.delete(e),r.delete(t),m}var uke=1,za1="[object Arguments]",Ca1="[object Array]",dh="[object Object]",dke=Object.prototype,_a1=dke.hasOwnProperty;function hke(e,t,a,c,n,r){var i=_s(e),o=_s(t),l=i?Ca1:Hs(e),f=o?Ca1:Hs(t);l=l==za1?dh:l,f=f==za1?dh:f;var u=l==dh,d=f==dh,h=l==f;if(h&&Bf(e)){if(!Bf(t))return!1;i=!0,u=!1}if(h&&!u)return r||(r=new m8),i||x11(e)?zM1(e,t,a,c,n,r):ike(e,t,l,a,c,n,r);if(!(a&uke)){var p=u&&_a1.call(e,"__wrapped__"),v=d&&_a1.call(t,"__wrapped__");if(p||v){var m=p?e.value():e,y=v?t.value():t;return r||(r=new m8),n(m,y,a,c,r)}}return h?(r||(r=new m8),fke(e,t,a,c,n,r)):!1}function CM1(e,t,a,c,n){return e===t?!0:e==null||t==null||!Ti(e)&&!Ti(t)?e!==e&&t!==t:hke(e,t,a,c,CM1,n)}var pke="[object Map]",mke="[object Set]",vke=Object.prototype,yke=vke.hasOwnProperty;function gke(e){if(e==null)return!0;if(M11(e)&&(_s(e)||typeof e=="string"||typeof e.splice=="function"||Bf(e)||x11(e)||sM1(e)))return!e.length;var t=Hs(e);if(t==pke||t==mke)return!e.size;if(Gj(e))return!hM1(e).length;for(var a in e)if(yke.call(e,a))return!1;return!0}function wa1(e,t){return CM1(e,t)}var Mke=Object.defineProperty,kke=Object.defineProperties,xke=Object.getOwnPropertyDescriptors,Ha1=Object.getOwnPropertySymbols,bke=Object.prototype.hasOwnProperty,zke=Object.prototype.propertyIsEnumerable,La1=(e,t,a)=>t in e?Mke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Cke=(e,t)=>{for(var a in t||(t={}))bke.call(t,a)&&La1(e,a,t[a]);if(Ha1)for(var a of Ha1(t))zke.call(t,a)&&La1(e,a,t[a]);return e},_ke=(e,t)=>kke(e,xke(t));function wke(e){return(e.match(/[a-zA-Z0-9]+/g)||[]).map(t=>`${t.charAt(0).toUpperCase()}${t.slice(1)}`).join("")}var o5=(e,t)=>{const a={chartData:{type:Object,required:!0},options:{type:Object,required:!1},chartId:{default:e,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:()=>[]},onLabelsUpdate:{type:Function},onChartUpdate:{type:Function},onChartDestroy:{type:Function},onChartRender:{type:Function}},c=wke(e);return s.defineComponent({name:c,props:a,emits:{"labels:update":()=>!0,"chart:update":n=>!0,"chart:destroy":()=>!0,"chart:render":n=>!0},setup(n,{emit:r,expose:i}){const o=s.ref(null),l=`${n.chartId}`;let f=s.shallowRef(null);s.watch(()=>n.chartData,u,{deep:!0}),s.watch(()=>n.options,y=>{f.value&&y&&(f.value.options=F9(y),v())},{deep:!0});function u(y){if(f.value){let g=f.value;wa1(y.labels,f.value.data.labels)||(g.data.labels=y.labels,h()),wa1(y.datasets,f.value.data.datasets)||y.datasets.forEach((M,x)=>{var k,b;if(gke(M))g.data.datasets=[];else{const _=F9(g.data),C=Object.keys((b=(k=_.datasets)==null?void 0:k[x])!=null?b:{}),H=Object.keys(M);C.filter(N=>N!=="_meta"&&H.indexOf(N)===-1).forEach(N=>{g.data.datasets[x]&&delete g.data.datasets[x][N]});for(const N in M){const L=F9(M[N]);g.data.datasets[x]||(g.data.datasets[x]={}),M.hasOwnProperty(N)&&L!=null&&g&&(g.data.datasets[x][N]=L)}}}),v()}else f.value&&m(),d()}function d(){o.value?(f.value=new et(o.value,{data:F9(n.chartData),type:t,options:F9(n.options),plugins:n.plugins}),p()):console.error(`Error on component ${c}, canvas cannot be rendered. Check if the render appends server-side`)}function h(){r("labels:update"),n.onLabelsUpdate&&n.onLabelsUpdate()}function p(){f.value&&(r("chart:render",f.value),n.onChartRender&&n.onChartRender(f.value))}function v(){f.value&&(f.value.update(),r("chart:update",f.value),n.onChartUpdate&&n.onChartUpdate(f.value))}function m(){f.value&&f.value.destroy(),r("chart:destroy"),n.onChartDestroy&&n.onChartDestroy()}return s.onMounted(d),s.onBeforeUnmount(()=>{f.value&&f.value.destroy()}),i({canvasRef:o,renderChart:d,chartInstance:f,canvasId:l,update:v}),()=>s.h("div",{style:_ke(Cke({maxWidth:"100%"},n.styles),{position:"relative"}),class:n.cssClasses},[s.h("canvas",{style:{maxWidth:"100%",maxHeight:"100%"},id:l,width:n.width,height:n.height,ref:o})])}})},Hke=o5("bar-chart","bar"),Lke=o5("doughnut-chart","doughnut");o5("line-chart","line");o5("pie-chart","pie");o5("polar-chart","polarArea");o5("radar-chart","radar");o5("bubble-chart","bubble");o5("scatter-chart","scatter");const Vke=s.defineComponent({__name:"PgaBarChart",props:{data:{},options:{}},setup(e){et.register(...eM1);const t={responsive:!0};return(a,c)=>(s.openBlock(),s.createBlock(s.unref(Hke),{chartData:a.data,options:a.options||t},null,8,["chartData","options"]))}}),Ske=s.defineComponent({__name:"PgaDoughnutChart",props:{data:{},options:{}},setup(e){et.register(...eM1);const t={responsive:!0};return(a,c)=>(s.openBlock(),s.createBlock(s.unref(Lke),{chartData:a.data,options:a.options||t},null,8,["chartData","options"]))}}),Nke={class:"pga-display-barcodes"},Ake={key:0},Tke={class:"barcodes-container"},Eke=s.defineComponent({__name:"PgaDisplayBarcodes",props:{barcodes:{}},setup(e){const t=e,a=s.ref(!1),c=s.computed(()=>a.value?t.barcodes:t.barcodes.slice(0,2));return(n,r)=>(s.openBlock(),s.createElementBlock("div",Nke,[n.barcodes.length?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",Tke,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.value,(i,o)=>(s.openBlock(),s.createElementBlock("span",{class:"barcode",key:o},[s.createVNode(ge,{icon:"barcode"}),s.createTextVNode(" "+s.toDisplayString(i),1)]))),128))]),n.barcodes.length>2?(s.openBlock(),s.createBlock(oK,{key:0,modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=i=>a.value=i)},null,8,["modelValue"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock("span",Ake,"-"))]))}});const Dke=Q1(Eke,[["__scopeId","data-v-333a4131"]]),Pke={class:"pga-display-content"},Oke=s.defineComponent({__name:"PgaDisplayContent",props:{label:{}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",Pke,[s.createVNode(me,{class:"item__label",text:t.label},null,8,["text"]),s.renderSlot(t.$slots,"default",{},void 0,!0)]))}});const Ike=Q1(Oke,[["__scopeId","data-v-59f9da0e"]]),Bke={key:0},Rke=s.defineComponent({__name:"PgaDisplayDatetime",props:{datetime:{},format:{default:"short"},noIcon:{type:Boolean},withBackground:{type:Boolean}},setup(e){const t=e,a=s.computed(()=>t.datetime instanceof Date),c=s.computed(()=>{if(a.value)return x6(t.datetime,{format:t.format,withTime:!1})}),n=s.computed(()=>t.noIcon?void 0:"calendar-days"),r=s.computed(()=>a.value?x6(t.datetime,{justTime:!0}):"");return(i,o)=>{const l=s.resolveDirective("tooltip");return a.value?s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["pga-datetime",{"pga-datetime--with-background":i.withBackground}])},[s.createVNode(me,{text:c.value,icon:n.value,nowrap:""},null,8,["text","icon"])],2)),[[l,r.value]]):(s.openBlock(),s.createElementBlock("span",Bke,"-"))}}});const Fke=Q1(Rke,[["__scopeId","data-v-0c465868"]]),$ke={class:"pga-info-card"},qke={class:"info-card__icon-container"},jke={class:"info-card__content-container"},Uke={class:"info-card__content"},Wke=s.defineComponent({__name:"PgaDisplayInfo",props:{type:{default:"info"},info:{}},setup(e){s.useCssVars(o=>({"84042e68":i.value,"31b6fc9d":r.value,"4d085aee":n.value}));const t=e,a=s.computed(()=>t.type==="info"?"info":t.type==="success"?"circle-check":t.type==="error"?"circle-x":t.type==="warning"?"circle-alert":"info"),c=s.computed(()=>{if(t.type==="info")return"aqua";if(t.type==="success")return"success";if(t.type==="error")return"danger";if(t.type==="warning")return"warning"}),n=s.computed(()=>`var(--pga-color-${c.value})`),r=s.computed(()=>`var(--pga-color-${c.value}-01)`),i=s.computed(()=>`var(--pga-color-${c.value}-025)`);return(o,l)=>(s.openBlock(),s.createElementBlock("div",$ke,[s.createElementVNode("div",qke,[s.createVNode(ge,{class:"info-card__icon",icon:a.value},null,8,["icon"])]),s.createElementVNode("div",jke,[s.createElementVNode("div",Uke,[s.createVNode(me,{text:o.info},null,8,["text"])])])]))}});const Yke=Q1(Wke,[["__scopeId","data-v-2d43dfd3"]]),Gke={key:0,class:"pga-display-no-items"},Zke={key:1,class:"no-items__content"},Xke={key:0,class:"no-items__illustration"},Kke=s.createStaticVNode('<svg viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-c6e0b167><circle cx="50" cy="50" r="40" fill="var(--pga-color-primary)" opacity="0.05" data-v-c6e0b167></circle><path d="M25 35H40L45 42H75A5 5 0 0 1 80 47V70A5 5 0 0 1 75 75H25A5 5 0 0 1 20 70V40A5 5 0 0 1 25 35Z" stroke="var(--pga-color-second)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" opacity="0.4" data-v-c6e0b167></path><path d="M20 50L80 50" stroke="var(--pga-color-second)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" opacity="0.4" data-v-c6e0b167></path><circle cx="55" cy="55" r="14" fill="var(--pga-color-second-contrast)" stroke="currentColor" stroke-width="4" data-v-c6e0b167></circle><path d="M65 65L76 76" stroke="currentColor" stroke-width="5" stroke-linecap="round" data-v-c6e0b167></path></svg>',1),Qke=[Kke],Jke={class:"no-items__text"},exe={class:"no-items__title"},txe={class:"no-items__description"},axe=s.defineComponent({__name:"PgaDisplayNoItems",props:{items:{},label:{},noDisplayIcon:{type:Boolean},isLoading:{type:Boolean}},setup(e){const t=e,a=T2("pgaDisplay"),c=s.computed(()=>!(t.items&&t.items.length)),n=s.computed(()=>t.label?Ne(t.label):a("noItemsText")),r=s.computed(()=>a("noItemsDescriptionText"));return(i,o)=>c.value?(s.openBlock(),s.createElementBlock("div",Gke,[i.isLoading?(s.openBlock(),s.createBlock(Ja,{key:0})):(s.openBlock(),s.createElementBlock("div",Zke,[i.noDisplayIcon?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Xke,Qke)),s.createElementVNode("div",Jke,[s.createElementVNode("h3",exe,s.toDisplayString(n.value),1),s.createElementVNode("p",txe,s.toDisplayString(r.value),1)])]))])):s.createCommentVNode("",!0)}});const _M1=Q1(axe,[["__scopeId","data-v-c6e0b167"]]),cxe={key:0},nxe={key:0,class:"price__sign"},rxe=["textContent"],ixe=s.defineComponent({__name:"PgaDisplayPrice",props:{price:{},tooltipPrice:{},maxDecimals:{},prefix:{},suffix:{},size:{default:"m"},fontSize:{},color:{default:"first"},noSign:{type:Boolean},noBackground:{type:Boolean},withBackground:{type:Boolean}},setup(e){s.useCssVars(d=>({f457cbc6:f.value,"54a30d56":u.value}));const t=e,{display:a}=C4(),c=s.computed(()=>t.noSign?!1:a.price.withSign),n=s.computed(()=>t.noBackground?!1:t.withBackground?!0:a.price.withBackground),r=s.computed(()=>t.price!==null&&t.price!==void 0),i={maxDecimals:t.maxDecimals,prefix:t.prefix,suffix:t.suffix},o=s.computed(()=>{if(r.value)return typeof t.price=="string"?t.price:iG(t.price,i)}),l=s.computed(()=>t.tooltipPrice===void 0?"":typeof t.tooltipPrice=="string"?t.tooltipPrice:iG(t.tooltipPrice,{...i,prefix:i.prefix||"$"})),f=s.computed(()=>{if(t.fontSize)return t.fontSize;if(t.size==="s")return"0.9rem";if(t.size==="m")return"1rem";if(t.size==="l")return"1.2rem"}),u=s.computed(()=>ru(t.color)?`var(--pga-color-${t.color})`:t.color);return(d,h)=>{const p=s.resolveDirective("tooltip");return r.value?s.withDirectives((s.openBlock(),s.createElementBlock("span",{key:1,class:s.normalizeClass(["pga-price",{"pga-price--with-background":n.value}])},[c.value?(s.openBlock(),s.createElementBlock("span",nxe,"$")):s.createCommentVNode("",!0),s.createElementVNode("span",{class:"price__value",textContent:s.toDisplayString(o.value)},null,8,rxe)],2)),[[p,l.value]]):(s.openBlock(),s.createElementBlock("span",cxe,"-"))}}});const oxe=Q1(ixe,[["__scopeId","data-v-64af07ea"]]),sxe=s.defineComponent({__name:"PgaDisplayTime",props:{datetime:{}},setup(e){return(t,a)=>{const c=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createBlock(c,{icon:"clock",text:s.unref(Sc1)(t.datetime)},null,8,["text"])}}}),lxe=s.defineComponent({__name:"PgaForm",props:{withSubmitButton:{type:Boolean},submitBtnText:{},submitBtnIcon:{},isLoading:{type:Boolean},width:{default:"100%"}},emits:["submit"],setup(e,{emit:t}){s.useCssVars(n=>({"00e32ca6":n.width}));const a=t,c=T2("pgaForm");return(n,r)=>(s.openBlock(),s.createElementBlock("form",{class:"pga-form",onSubmit:r[1]||(r[1]=s.withModifiers(()=>{},["prevent"]))},[s.renderSlot(n.$slots,"default",{},void 0,!0),n.withSubmitButton||n.submitBtnText?(s.openBlock(),s.createBlock(k2,{key:0,class:"form__submit-btn",type:"submit",text:n.submitBtnText||s.unref(c)("submitBtn"),icon:n.submitBtnIcon||"save",variant:"filled",isLoading:n.isLoading,onClick:r[0]||(r[0]=i=>a("submit"))},null,8,["text","icon","isLoading"])):s.createCommentVNode("",!0)],32))}});const wM1=Q1(lxe,[["__scopeId","data-v-c6108693"]]),fxe=s.defineComponent({__name:"PgaFormRow",props:{breakRow:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-form-row",{"pga-form-row--break-row":t.breakRow}])},[s.renderSlot(t.$slots,"default")],2))}});const uxe=s.defineComponent({__name:"PgaFormSubtitle",props:{title:{}},setup(e){return(t,a)=>{const c=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createBlock(c,{class:"pga-form-subtitle",text:t.title},null,8,["text"])}}});const dxe=Q1(uxe,[["__scopeId","data-v-b4a5ce65"]]),hxe=s.defineComponent({__name:"PgaFormTitle",props:{title:{}},setup(e){return(t,a)=>{const c=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createBlock(c,{class:"pga-form-title",text:t.title},null,8,["text"])}}});const pxe=Q1(hxe,[["__scopeId","data-v-f760c219"]]),mxe={key:0,class:"input-group__header"},vxe=["for"],yxe={key:1,class:"header__required-label"},gxe={key:2,class:"header__optional-label"},Mxe={key:1,class:"input-group__description"},kxe=["innerHTML"],xxe={key:1,class:"description__right"},bxe={key:2,class:"input-group__errors"},zxe=["textContent"],Cxe=s.defineComponent({__name:"PgaInputGroup",props:{label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},fitContent:{type:Boolean},grow:{},inputId:{}},setup(e){s.useCssVars(l=>({"1663743e":l.grow}));const t=e,a=T2("pgaForm"),c=s.computed(()=>Ne(t.label)),n=s.computed(()=>Ne(t.info)),r=s.computed(()=>Ne(t.description)),i=s.computed(()=>c.value||t.withLabelSpace),o=s.computed(()=>c.value||" ");return(l,f)=>{const u=s.resolveComponent("PgaIcon");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-input-group",{"pga-input-group--fit-content":l.fitContent,"pga-input-group--with-flex-grow":l.grow!==void 0}])},[i.value||n.value||l.withRequiredLabel||l.withOptionalLabel?(s.openBlock(),s.createElementBlock("div",mxe,[i.value?(s.openBlock(),s.createElementBlock("label",{key:0,for:l.inputId,class:"header__label"},s.toDisplayString(o.value),9,vxe)):s.createCommentVNode("",!0),s.createVNode(Iq,{info:n.value,size:"1rem"},null,8,["info"]),l.withRequiredLabel?(s.openBlock(),s.createElementBlock("span",yxe,s.toDisplayString(s.unref(a)("requiredLabel")),1)):s.createCommentVNode("",!0),l.withOptionalLabel?(s.openBlock(),s.createElementBlock("span",gxe,s.toDisplayString(s.unref(a)("optionalLabel")),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),s.renderSlot(l.$slots,"default",{},void 0,!0),r.value||l.$slots.descriptionRight?(s.openBlock(),s.createElementBlock("div",Mxe,[r.value?(s.openBlock(),s.createElementBlock("span",{key:0,class:"description__text",innerHTML:r.value},null,8,kxe)):s.createCommentVNode("",!0),l.$slots.descriptionRight?(s.openBlock(),s.createElementBlock("div",xxe,[s.renderSlot(l.$slots,"descriptionRight",{},void 0,!0)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),l.errors?(s.openBlock(),s.createElementBlock("div",bxe,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.errors,(d,h)=>(s.openBlock(),s.createElementBlock("div",{key:h,class:"errors__error"},[s.createVNode(u,{class:"error__icon",icon:"triangle-alert"}),s.createElementVNode("span",{class:"error__message",textContent:s.toDisplayString(d.$message)},null,8,zxe)]))),128))])):s.createCommentVNode("",!0)],2)}}});const M0=Q1(Cxe,[["__scopeId","data-v-5333e28e"]]);function Va1(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,c)}return a}function $f(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Va1(Object(a),!0).forEach(function(c){_xe(e,c,a[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Va1(Object(a)).forEach(function(c){Object.defineProperty(e,c,Object.getOwnPropertyDescriptor(a,c))})}return e}function _xe(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function q$(e){return typeof e=="function"}function WZ(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Kj(e){return q$(e.$validator)?$f({},e):{$validator:e}}function HM1(e){return typeof e=="object"?e.$valid:e}function LM1(e){return e.$validator||e}function wxe(e,t){if(!WZ(e))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!WZ(t)&&!q$(t))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const a=Kj(t);return a.$params=$f($f({},a.$params||{}),e),a}function Hxe(e,t){if(!q$(e)&&typeof s.unref(e)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);if(!WZ(t)&&!q$(t))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const a=Kj(t);return a.$message=e,a}function Lxe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const a=Kj(e);return $f($f({},a),{},{$async:!0,$watchTargets:t})}function Vxe(e){return{$validator(t){for(var a=arguments.length,c=new Array(a>1?a-1:0),n=1;n<a;n++)c[n-1]=arguments[n];return s.unref(t).reduce((r,i,o)=>{const l=Object.entries(i).reduce((f,u)=>{let[d,h]=u;const p=e[d]||{},v=Object.entries(p).reduce((m,y)=>{let[g,M]=y;const k=LM1(M).call(this,h,i,o,...c),b=HM1(k);if(m.$data[g]=k,m.$data.$invalid=!b||!!m.$data.$invalid,m.$data.$error=m.$data.$invalid,!b){let _=M.$message||"";const C=M.$params||{};typeof _=="function"&&(_=_({$pending:!1,$invalid:!b,$params:C,$model:h,$response:k})),m.$errors.push({$property:d,$message:_,$params:C,$response:k,$model:h,$pending:!1,$validator:g})}return{$valid:m.$valid&&b,$data:m.$data,$errors:m.$errors}},{$valid:!0,$data:{},$errors:[]});return f.$data[d]=v.$data,f.$errors[d]=v.$errors,{$valid:f.$valid&&v.$valid,$data:f.$data,$errors:f.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:r.$valid&&l.$valid,$data:r.$data.concat(l.$data),$errors:r.$errors.concat(l.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:t=>{let{$response:a}=t;return a?a.$errors.map(c=>Object.values(c).map(n=>n.map(r=>r.$message)).reduce((n,r)=>n.concat(r),[])):[]}}}const qu=e=>{if(e=s.unref(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let t in e)return!0;return!1}return!!String(e).length},w11=e=>(e=s.unref(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function s5(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return c=>(c=s.unref(c),!qu(c)||t.every(n=>(n.lastIndex=0,n.test(c))))}var Di=Object.freeze({__proto__:null,forEach:Vxe,len:w11,normalizeValidatorObject:Kj,regex:s5,req:qu,unwrap:s.unref,unwrapNormalizedValidator:LM1,unwrapValidatorResponse:HM1,withAsync:Lxe,withMessage:Hxe,withParams:wxe});s5(/^[a-zA-Z]*$/);s5(/^[a-zA-Z0-9]*$/);s5(/^\d*(\.\d+)?$/);const Sxe=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;s5(Sxe);function Nxe(e){return t=>!qu(t)||w11(t)<=s.unref(e)}function Axe(e){return{$validator:Nxe(e),$message:t=>{let{$params:a}=t;return`The maximum length allowed is ${a.max}`},$params:{max:e,type:"maxLength"}}}function Txe(e){return t=>!qu(t)||w11(t)>=s.unref(e)}function Exe(e){return{$validator:Txe(e),$message:t=>{let{$params:a}=t;return`This field should be at least ${a.min} characters long`},$params:{min:e,type:"minLength"}}}function Dxe(e){return typeof e=="string"&&(e=e.trim()),qu(e)}var Pxe={$validator:Dxe,$message:"Value is required",$params:{type:"required"}};const Oxe=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;s5(Oxe);var Ixe=s5(/(^[0-9]*$)|(^-[0-9]+$)/),Bxe={$validator:Ixe,$message:"Value is not an integer",$params:{type:"integer"}};s5(/^[-]?\d*(\.\d+)?$/);const ju=T2("validations"),YZ=Di.withMessage(()=>ju("requiredRuleError"),Pxe),Rxe=Di.withMessage(()=>ju("requiredRuleError"),Di.withParams({},e=>typeof e!="number"?!1:e>0)),GZ=e=>VM1("minLength",e),ZZ=e=>VM1("maxLength",e),Fxe=Di.withMessage(()=>ju("integerRuleError"),Bxe),$xe=e=>Qj("greaterEqual",e),qxe=e=>Qj("greaterThan",e),jxe=e=>Qj("lessEqual",e),Uxe=e=>Qj("lessThan",e);function VM1(e,t){const a={minLength:Exe,maxLength:Axe};return Di.withMessage(()=>ju(`${e}RuleError`,{length:t}),a[e](t))}function Qj(e,t){const a={lessEqual:c=>c<=t,greaterEqual:c=>c>=t,lessThan:c=>c<t,greaterThan:c=>c>t};return Di.withMessage(()=>ju(`${e}RuleError`,{number:t}),Di.withParams({},c=>typeof c!="number"?!0:a[e](c)))}const Wxe=s.defineComponent({__name:"PgaInputRightButton",props:{icon:{},withBackground:{type:Boolean}},setup(e){s.useCssVars(a=>({58067568:s.unref(t).input.height,"411a0288":s.unref(t).input.iconWidth,"337ec043":s.unref(t).input.borderRadius,"4967fa68":s.unref(t).input.backgroundColorFocus,"49846ecc":s.unref(t).input.backgroundColorHover}));const{form:t}=C4();return(a,c)=>(s.openBlock(),s.createBlock(k2,{class:s.normalizeClass(["pga-input-right-button",{"pga-input-right-button--with-background":a.withBackground}]),variant:"flat",icon:a.icon,tabindex:"-1"},null,8,["class","icon"]))}});const j$=Q1(Wxe,[["__scopeId","data-v-3e54e5a3"]]),Yxe={class:"pga-input-container"},Gxe={class:"input-content"},Zxe=["type","placeholder","autofocus","disabled"],kY="",Xxe=s.defineComponent({__name:"PgaInput",props:s.mergeModels({type:{default:"text"},integer:{type:Boolean},placeholder:{},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},autofocus:{type:Boolean},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["change","enter","valueCleared"],["update:modelValue"]),setup(e,{expose:t,emit:a}){s.useCssVars(b=>({"39f5837b":s.unref(i).input.height,b65cd786:s.unref(i).input.padding,"17e20c88":s.unref(i).input.paddingWithIcon,fc122e7a:s.unref(i).input.borderColor,"5494419c":s.unref(i).input.borderRadius,"9af739fe":s.unref(i).input.backgroundColor,67100389:s.unref(i).input.colorFocus,"0db6709d":s.unref(i).input.backgroundColorDisabled,"147579f8":s.unref(i).input.placeholderColor}));const c=s.useModel(e,"modelValue"),n=e,r=a;t({focus:p});const{form:i}=C4(),o=`pga-input-${Math.random().toString(36).slice(2,11)}`,l=s.ref(),f=s.ref(kY),u=s.ref(!1),d=s.computed(()=>n.type==="password"),h=s.computed(()=>d.value?!1:!n.disabled&&f.value);s.watch(c,b=>x(b),{immediate:!0});function p(){var b;(b=l.value)==null||b.focus()}function v(){n.type==="number"&&!f.value&&(f.value=kY)}function m(){n.type==="number"&&!f.value&&(f.value=M())}function y(){k(kY),r("valueCleared")}function g(b){return b===""?null:n.type==="number"&&n.integer&&typeof b=="number"?Math.round(b):b}function M(b){const _=typeof b>"u"?c.value:b;return _===null?"":_}function x(b){const _=g(b);return c.value=_,f.value=M(_),_}function k(b){const _=x(b);r("change",_)}return(b,_)=>(s.openBlock(),s.createBlock(M0,{label:b.label,withRequiredLabel:b.withRequiredLabel,withOptionalLabel:b.withOptionalLabel,withLabelSpace:b.withLabelSpace,info:b.info,description:b.description,errors:b.errors,grow:b.grow,inputId:o},{default:s.withCtx(()=>[s.createElementVNode("div",Yxe,[s.createElementVNode("div",Gxe,[s.withDirectives(s.createElementVNode("input",{id:o,ref_key:"inputRef",ref:l,"onUpdate:modelValue":_[0]||(_[0]=C=>f.value=C),class:s.normalizeClass(["input",{"input--disabled":b.disabled}]),type:u.value?"text":b.type,placeholder:s.unref(Ne)(b.placeholder),autofocus:b.autofocus,disabled:b.disabled,onInput:_[1]||(_[1]=C=>k(f.value)),onKeyup:_[2]||(_[2]=s.withKeys(C=>r("enter"),["enter"])),onFocus:_[3]||(_[3]=C=>v()),onBlur:_[4]||(_[4]=C=>m())},null,42,Zxe),[[s.vModelDynamic,f.value]]),d.value?(s.openBlock(),s.createBlock(j$,{key:0,icon:u.value?"eye-off":"eye",withBackground:"",onClick:_[5]||(_[5]=C=>u.value=!u.value)},null,8,["icon"])):h.value?(s.openBlock(),s.createBlock(j$,{key:1,icon:"x",onClick:_[6]||(_[6]=C=>y())})):s.createCommentVNode("",!0)]),s.renderSlot(b.$slots,"labelRight",{},void 0,!0)])]),_:3},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const U$=Q1(Xxe,[["__scopeId","data-v-b302973f"]]),Kxe={class:"pga-login-form-container"},Qxe={class:"user-icon-container"},Jxe=s.defineComponent({__name:"PgaLoginForm",setup(e){class t{constructor(){S1(this,"username","");S1(this,"password","")}}const a=U3.getConfig(),c=T2("pgaForm"),n=Aa.useRoute(),r={username:{requiredRule:YZ,minLengthRule:GZ(8),maxLengthRule:ZZ(a.stringLengths.short)},password:{requiredRule:YZ,minLengthRule:GZ(8),maxLengthRule:ZZ(a.stringLengths.short)}},i=s.ref(new t),o=r71(r,i),l=s.ref(!1);async function f(){if(!await o.value.$validate())return;const u={isLoading:l,redirectToName:n.query.redirectTo};wc1(I0().routeType,i.value,u)}return(u,d)=>(s.openBlock(),s.createElementBlock("div",Kxe,[s.createVNode(wM1,{class:"login-form",submitBtnText:s.unref(c)("loginBtn"),submitBtnIcon:"log-in",isLoading:l.value,onSubmit:d[2]||(d[2]=h=>f())},{default:s.withCtx(()=>[s.createElementVNode("div",Qxe,[s.createVNode(ge,{class:"user-icon",icon:"circle-user"})]),s.createVNode(U$,{modelValue:i.value.username,"onUpdate:modelValue":d[0]||(d[0]=h=>i.value.username=h),label:s.unref(c)("usernameLabel"),errors:s.unref(o).username.$errors,disabled:l.value},null,8,["modelValue","label","errors","disabled"]),s.createVNode(U$,{modelValue:i.value.password,"onUpdate:modelValue":d[1]||(d[1]=h=>i.value.password=h),type:"password",label:s.unref(c)("passwordLabel"),errors:s.unref(o).password.$errors,disabled:l.value},null,8,["modelValue","label","errors","disabled"])]),_:1},8,["submitBtnText","isLoading"])]))}});const ebe=Q1(Jxe,[["__scopeId","data-v-725b8d32"]]),tbe={class:"pga-checkbox"},abe=["textContent"],cbe=s.defineComponent({__name:"PgaCheckbox",props:s.mergeModels({label:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=s.computed(()=>Ne(a.label));return(n,r)=>(s.openBlock(),s.createElementBlock("label",tbe,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":r[0]||(r[0]=i=>t.value=i),type:"checkbox"},null,512),[[s.vModelCheckbox,t.value]]),n.label?(s.openBlock(),s.createElementBlock("span",{key:0,textContent:s.toDisplayString(c.value)},null,8,abe)):s.createCommentVNode("",!0)]))}});const SM1=Q1(cbe,[["__scopeId","data-v-1b277279"]]),nbe={class:"pga-color-selector"},rbe=["onClick"],ibe=s.defineComponent({__name:"PgaColorSelector",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(n=>({"1f316326":s.unref(a).input.borderColor,"406a9da2":s.unref(a).input.borderRadius}));const t=s.useModel(e,"modelValue"),{form:a}=C4();function c(n){var r;return((r=t.value)==null?void 0:r.toLowerCase())===n.toLowerCase()}return(n,r)=>(s.openBlock(),s.createBlock(M0,{label:n.label,withRequiredLabel:n.withRequiredLabel,withOptionalLabel:n.withOptionalLabel,withLabelSpace:n.withLabelSpace,info:n.info,description:n.description,errors:n.errors,grow:n.grow},{default:s.withCtx(()=>[s.createElementVNode("div",nbe,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(LX),(i,o)=>(s.openBlock(),s.createElementBlock("div",{key:o,class:s.normalizeClass(["color-selector__item",{"color-selector__item--selected":c(i),"color-selector__item--disabled":n.disabled}]),style:s.normalizeStyle({"background-color":i}),onClick:l=>!n.disabled&&(t.value=i)},[c(i)?(s.openBlock(),s.createBlock(ge,{key:0,icon:"check",color:"#ffffff",size:"0.85rem"})):s.createCommentVNode("",!0)],14,rbe))),128))])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const obe=Q1(ibe,[["__scopeId","data-v-ff3a72fd"]]);function d2(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function ie(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function e6(e,t){const a=d2(e);return isNaN(t)?ie(e,NaN):(t&&a.setDate(a.getDate()+t),a)}function M6(e,t){const a=d2(e);if(isNaN(t))return ie(e,NaN);if(!t)return a;const c=a.getDate(),n=ie(e,a.getTime());n.setMonth(a.getMonth()+t+1,0);const r=n.getDate();return c>=r?n:(a.setFullYear(n.getFullYear(),n.getMonth(),c),a)}function NM1(e,t){const{years:a=0,months:c=0,weeks:n=0,days:r=0,hours:i=0,minutes:o=0,seconds:l=0}=t,f=d2(e),u=c||a?M6(f,c+a*12):f,d=r||n?e6(u,r+n*7):u,h=o+i*60,v=(l+h*60)*1e3;return ie(e,d.getTime()+v)}function sbe(e,t){const a=+d2(e);return ie(e,a+t)}const AM1=6048e5,lbe=864e5,fbe=6e4,TM1=36e5,ube=1e3;function dbe(e,t){return sbe(e,t*TM1)}let hbe={};function co(){return hbe}function S6(e,t){var o,l,f,u;const a=co(),c=(t==null?void 0:t.weekStartsOn)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??a.weekStartsOn??((u=(f=a.locale)==null?void 0:f.options)==null?void 0:u.weekStartsOn)??0,n=d2(e),r=n.getDay(),i=(r<c?7:0)+r-c;return n.setDate(n.getDate()-i),n.setHours(0,0,0,0),n}function Ls(e){return S6(e,{weekStartsOn:1})}function EM1(e){const t=d2(e),a=t.getFullYear(),c=ie(e,0);c.setFullYear(a+1,0,4),c.setHours(0,0,0,0);const n=Ls(c),r=ie(e,0);r.setFullYear(a,0,4),r.setHours(0,0,0,0);const i=Ls(r);return t.getTime()>=n.getTime()?a+1:t.getTime()>=i.getTime()?a:a-1}function Sa1(e){const t=d2(e);return t.setHours(0,0,0,0),t}function W$(e){const t=d2(e),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),+e-+a}function DM1(e,t){const a=Sa1(e),c=Sa1(t),n=+a-W$(a),r=+c-W$(c);return Math.round((n-r)/lbe)}function pbe(e){const t=EM1(e),a=ie(e,0);return a.setFullYear(t,0,4),a.setHours(0,0,0,0),Ls(a)}function mbe(e,t){const a=t*3;return M6(e,a)}function H11(e,t){return M6(e,t*12)}function PM1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Dl(e){if(!PM1(e)&&typeof e!="number")return!1;const t=d2(e);return!isNaN(Number(t))}function Na1(e){const t=d2(e);return Math.trunc(t.getMonth()/3)+1}function OM1(e,t){const a=d2(e.start),c=d2(e.end);let n=+a>+c;const r=n?+a:+c,i=n?c:a;i.setHours(0,0,0,0);let o=(t==null?void 0:t.step)??1;if(!o)return[];o<0&&(o=-o,n=!n);const l=[];for(;+i<=r;)l.push(d2(i)),i.setDate(i.getDate()+o),i.setHours(0,0,0,0);return n?l.reverse():l}function ci(e){const t=d2(e),a=t.getMonth(),c=a-a%3;return t.setMonth(c,1),t.setHours(0,0,0,0),t}function vbe(e,t){const a=d2(e.start),c=d2(e.end);let n=+a>+c;const r=n?+ci(a):+ci(c);let i=ci(n?c:a),o=(t==null?void 0:t.step)??1;if(!o)return[];o<0&&(o=-o,n=!n);const l=[];for(;+i<=r;)l.push(d2(i)),i=mbe(i,o);return n?l.reverse():l}function IM1(e){const t=d2(e),a=t.getFullYear();return t.setFullYear(a+1,0,0),t.setHours(23,59,59,999),t}function L11(e){const t=d2(e),a=ie(e,0);return a.setFullYear(t.getFullYear(),0,1),a.setHours(0,0,0,0),a}function BM1(e,t){var o,l,f,u;const a=co(),c=(t==null?void 0:t.weekStartsOn)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??a.weekStartsOn??((u=(f=a.locale)==null?void 0:f.options)==null?void 0:u.weekStartsOn)??0,n=d2(e),r=n.getDay(),i=(r<c?-7:0)+6-(r-c);return n.setDate(n.getDate()+i),n.setHours(23,59,59,999),n}function Aa1(e){const t=d2(e),a=t.getMonth(),c=a-a%3+3;return t.setMonth(c,0),t.setHours(23,59,59,999),t}const ybe={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"}},gbe=(e,t,a)=>{let c;const n=ybe[e];return typeof n=="string"?c=n:t===1?c=n.one:c=n.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+c:c+" ago":c};function xY(e){return(t={})=>{const a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}const Mbe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},kbe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},xbe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},bbe={date:xY({formats:Mbe,defaultWidth:"full"}),time:xY({formats:kbe,defaultWidth:"full"}),dateTime:xY({formats:xbe,defaultWidth:"full"})},zbe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Cbe=(e,t,a,c)=>zbe[e];function $9(e){return(t,a)=>{const c=a!=null&&a.context?String(a.context):"standalone";let n;if(c==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,o=a!=null&&a.width?String(a.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{const i=e.defaultWidth,o=a!=null&&a.width?String(a.width):e.defaultWidth;n=e.values[o]||e.values[i]}const r=e.argumentCallback?e.argumentCallback(t):t;return n[r]}}const _be={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},wbe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Hbe={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"]},Lbe={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"]},Vbe={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"}},Sbe={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"}},Nbe=(e,t)=>{const a=Number(e),c=a%100;if(c>20||c<10)switch(c%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Abe={ordinalNumber:Nbe,era:$9({values:_be,defaultWidth:"wide"}),quarter:$9({values:wbe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$9({values:Hbe,defaultWidth:"wide"}),day:$9({values:Lbe,defaultWidth:"wide"}),dayPeriod:$9({values:Vbe,defaultWidth:"wide",formattingValues:Sbe,defaultFormattingWidth:"wide"})};function q9(e){return(t,a={})=>{const c=a.width,n=c&&e.matchPatterns[c]||e.matchPatterns[e.defaultMatchWidth],r=t.match(n);if(!r)return null;const i=r[0],o=c&&e.parsePatterns[c]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?Ebe(o,d=>d.test(i)):Tbe(o,d=>d.test(i));let f;f=e.valueCallback?e.valueCallback(l):l,f=a.valueCallback?a.valueCallback(f):f;const u=t.slice(i.length);return{value:f,rest:u}}}function Tbe(e,t){for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}function Ebe(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}function Dbe(e){return(t,a={})=>{const c=t.match(e.matchPattern);if(!c)return null;const n=c[0],r=t.match(e.parsePattern);if(!r)return null;let i=e.valueCallback?e.valueCallback(r[0]):r[0];i=a.valueCallback?a.valueCallback(i):i;const o=t.slice(n.length);return{value:i,rest:o}}}const Pbe=/^(\d+)(th|st|nd|rd)?/i,Obe=/\d+/i,Ibe={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},Bbe={any:[/^b/i,/^(a|c)/i]},Rbe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Fbe={any:[/1/i,/2/i,/3/i,/4/i]},$be={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},qbe={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]},jbe={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},Ube={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]},Wbe={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},Ybe={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}},Gbe={ordinalNumber:Dbe({matchPattern:Pbe,parsePattern:Obe,valueCallback:e=>parseInt(e,10)}),era:q9({matchPatterns:Ibe,defaultMatchWidth:"wide",parsePatterns:Bbe,defaultParseWidth:"any"}),quarter:q9({matchPatterns:Rbe,defaultMatchWidth:"wide",parsePatterns:Fbe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:q9({matchPatterns:$be,defaultMatchWidth:"wide",parsePatterns:qbe,defaultParseWidth:"any"}),day:q9({matchPatterns:jbe,defaultMatchWidth:"wide",parsePatterns:Ube,defaultParseWidth:"any"}),dayPeriod:q9({matchPatterns:Wbe,defaultMatchWidth:"any",parsePatterns:Ybe,defaultParseWidth:"any"})},RM1={code:"en-US",formatDistance:gbe,formatLong:bbe,formatRelative:Cbe,localize:Abe,match:Gbe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Zbe(e){const t=d2(e);return DM1(t,L11(t))+1}function V11(e){const t=d2(e),a=+Ls(t)-+pbe(t);return Math.round(a/AM1)+1}function S11(e,t){var u,d,h,p;const a=d2(e),c=a.getFullYear(),n=co(),r=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((p=(h=n.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,i=ie(e,0);i.setFullYear(c+1,0,r),i.setHours(0,0,0,0);const o=S6(i,t),l=ie(e,0);l.setFullYear(c,0,r),l.setHours(0,0,0,0);const f=S6(l,t);return a.getTime()>=o.getTime()?c+1:a.getTime()>=f.getTime()?c:c-1}function Xbe(e,t){var o,l,f,u;const a=co(),c=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??a.firstWeekContainsDate??((u=(f=a.locale)==null?void 0:f.options)==null?void 0:u.firstWeekContainsDate)??1,n=S11(e,t),r=ie(e,0);return r.setFullYear(n,0,c),r.setHours(0,0,0,0),S6(r,t)}function N11(e,t){const a=d2(e),c=+S6(a,t)-+Xbe(a,t);return Math.round(c/AM1)+1}function ue(e,t){const a=e<0?"-":"",c=Math.abs(e).toString().padStart(t,"0");return a+c}const U8={y(e,t){const a=e.getFullYear(),c=a>0?a:1-a;return ue(t==="yy"?c%100:c,t.length)},M(e,t){const a=e.getMonth();return t==="M"?String(a+1):ue(a+1,2)},d(e,t){return ue(e.getDate(),t.length)},a(e,t){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(e,t){return ue(e.getHours()%12||12,t.length)},H(e,t){return ue(e.getHours(),t.length)},m(e,t){return ue(e.getMinutes(),t.length)},s(e,t){return ue(e.getSeconds(),t.length)},S(e,t){const a=t.length,c=e.getMilliseconds(),n=Math.trunc(c*Math.pow(10,a-3));return ue(n,t.length)}},bo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ta1={G:function(e,t,a){const c=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(c,{width:"abbreviated"});case"GGGGG":return a.era(c,{width:"narrow"});case"GGGG":default:return a.era(c,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){const c=e.getFullYear(),n=c>0?c:1-c;return a.ordinalNumber(n,{unit:"year"})}return U8.y(e,t)},Y:function(e,t,a,c){const n=S11(e,c),r=n>0?n:1-n;if(t==="YY"){const i=r%100;return ue(i,2)}return t==="Yo"?a.ordinalNumber(r,{unit:"year"}):ue(r,t.length)},R:function(e,t){const a=EM1(e);return ue(a,t.length)},u:function(e,t){const a=e.getFullYear();return ue(a,t.length)},Q:function(e,t,a){const c=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(c);case"QQ":return ue(c,2);case"Qo":return a.ordinalNumber(c,{unit:"quarter"});case"QQQ":return a.quarter(c,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(c,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(c,{width:"wide",context:"formatting"})}},q:function(e,t,a){const c=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(c);case"qq":return ue(c,2);case"qo":return a.ordinalNumber(c,{unit:"quarter"});case"qqq":return a.quarter(c,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(c,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(c,{width:"wide",context:"standalone"})}},M:function(e,t,a){const c=e.getMonth();switch(t){case"M":case"MM":return U8.M(e,t);case"Mo":return a.ordinalNumber(c+1,{unit:"month"});case"MMM":return a.month(c,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(c,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(c,{width:"wide",context:"formatting"})}},L:function(e,t,a){const c=e.getMonth();switch(t){case"L":return String(c+1);case"LL":return ue(c+1,2);case"Lo":return a.ordinalNumber(c+1,{unit:"month"});case"LLL":return a.month(c,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(c,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(c,{width:"wide",context:"standalone"})}},w:function(e,t,a,c){const n=N11(e,c);return t==="wo"?a.ordinalNumber(n,{unit:"week"}):ue(n,t.length)},I:function(e,t,a){const c=V11(e);return t==="Io"?a.ordinalNumber(c,{unit:"week"}):ue(c,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getDate(),{unit:"date"}):U8.d(e,t)},D:function(e,t,a){const c=Zbe(e);return t==="Do"?a.ordinalNumber(c,{unit:"dayOfYear"}):ue(c,t.length)},E:function(e,t,a){const c=e.getDay();switch(t){case"E":case"EE":case"EEE":return a.day(c,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(c,{width:"short",context:"formatting"});case"EEEE":default:return a.day(c,{width:"wide",context:"formatting"})}},e:function(e,t,a,c){const n=e.getDay(),r=(n-c.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return ue(r,2);case"eo":return a.ordinalNumber(r,{unit:"day"});case"eee":return a.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(n,{width:"short",context:"formatting"});case"eeee":default:return a.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,a,c){const n=e.getDay(),r=(n-c.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return ue(r,t.length);case"co":return a.ordinalNumber(r,{unit:"day"});case"ccc":return a.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(n,{width:"narrow",context:"standalone"});case"cccccc":return a.day(n,{width:"short",context:"standalone"});case"cccc":default:return a.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,a){const c=e.getDay(),n=c===0?7:c;switch(t){case"i":return String(n);case"ii":return ue(n,t.length);case"io":return a.ordinalNumber(n,{unit:"day"});case"iii":return a.day(c,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(c,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(c,{width:"short",context:"formatting"});case"iiii":default:return a.day(c,{width:"wide",context:"formatting"})}},a:function(e,t,a){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,a){const c=e.getHours();let n;switch(c===12?n=bo.noon:c===0?n=bo.midnight:n=c/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,a){const c=e.getHours();let n;switch(c>=17?n=bo.evening:c>=12?n=bo.afternoon:c>=4?n=bo.morning:n=bo.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){let c=e.getHours()%12;return c===0&&(c=12),a.ordinalNumber(c,{unit:"hour"})}return U8.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getHours(),{unit:"hour"}):U8.H(e,t)},K:function(e,t,a){const c=e.getHours()%12;return t==="Ko"?a.ordinalNumber(c,{unit:"hour"}):ue(c,t.length)},k:function(e,t,a){let c=e.getHours();return c===0&&(c=24),t==="ko"?a.ordinalNumber(c,{unit:"hour"}):ue(c,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getMinutes(),{unit:"minute"}):U8.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getSeconds(),{unit:"second"}):U8.s(e,t)},S:function(e,t){return U8.S(e,t)},X:function(e,t,a){const c=e.getTimezoneOffset();if(c===0)return"Z";switch(t){case"X":return Da1(c);case"XXXX":case"XX":return W7(c);case"XXXXX":case"XXX":default:return W7(c,":")}},x:function(e,t,a){const c=e.getTimezoneOffset();switch(t){case"x":return Da1(c);case"xxxx":case"xx":return W7(c);case"xxxxx":case"xxx":default:return W7(c,":")}},O:function(e,t,a){const c=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ea1(c,":");case"OOOO":default:return"GMT"+W7(c,":")}},z:function(e,t,a){const c=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ea1(c,":");case"zzzz":default:return"GMT"+W7(c,":")}},t:function(e,t,a){const c=Math.trunc(e.getTime()/1e3);return ue(c,t.length)},T:function(e,t,a){const c=e.getTime();return ue(c,t.length)}};function Ea1(e,t=""){const a=e>0?"-":"+",c=Math.abs(e),n=Math.trunc(c/60),r=c%60;return r===0?a+String(n):a+String(n)+t+ue(r,2)}function Da1(e,t){return e%60===0?(e>0?"-":"+")+ue(Math.abs(e)/60,2):W7(e,t)}function W7(e,t=""){const a=e>0?"-":"+",c=Math.abs(e),n=ue(Math.trunc(c/60),2),r=ue(c%60,2);return a+n+t+r}const Pa1=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},FM1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Kbe=(e,t)=>{const a=e.match(/(P+)(p+)?/)||[],c=a[1],n=a[2];if(!n)return Pa1(e,t);let r;switch(c){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;case"PPPP":default:r=t.dateTime({width:"full"});break}return r.replace("{{date}}",Pa1(c,t)).replace("{{time}}",FM1(n,t))},XZ={p:FM1,P:Kbe},Qbe=/^D+$/,Jbe=/^Y+$/,eze=["D","DD","YY","YYYY"];function $M1(e){return Qbe.test(e)}function qM1(e){return Jbe.test(e)}function KZ(e,t,a){const c=tze(e,t,a);if(console.warn(c),eze.includes(e))throw new RangeError(c)}function tze(e,t,a){const c=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${c} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const aze=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cze=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nze=/^'([^]*?)'?$/,rze=/''/g,ize=/[a-zA-Z]/;function xt(e,t,a){var u,d,h,p,v,m,y,g;const c=co(),n=(a==null?void 0:a.locale)??c.locale??RM1,r=(a==null?void 0:a.firstWeekContainsDate)??((d=(u=a==null?void 0:a.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??c.firstWeekContainsDate??((p=(h=c.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,i=(a==null?void 0:a.weekStartsOn)??((m=(v=a==null?void 0:a.locale)==null?void 0:v.options)==null?void 0:m.weekStartsOn)??c.weekStartsOn??((g=(y=c.locale)==null?void 0:y.options)==null?void 0:g.weekStartsOn)??0,o=d2(e);if(!Dl(o))throw new RangeError("Invalid time value");let l=t.match(cze).map(M=>{const x=M[0];if(x==="p"||x==="P"){const k=XZ[x];return k(M,n.formatLong)}return M}).join("").match(aze).map(M=>{if(M==="''")return{isToken:!1,value:"'"};const x=M[0];if(x==="'")return{isToken:!1,value:oze(M)};if(Ta1[x])return{isToken:!0,value:M};if(x.match(ize))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:M}});n.localize.preprocessor&&(l=n.localize.preprocessor(o,l));const f={firstWeekContainsDate:r,weekStartsOn:i,locale:n};return l.map(M=>{if(!M.isToken)return M.value;const x=M.value;(!(a!=null&&a.useAdditionalWeekYearTokens)&&qM1(x)||!(a!=null&&a.useAdditionalDayOfYearTokens)&&$M1(x))&&KZ(x,t,String(e));const k=Ta1[x[0]];return k(o,x,n.localize,f)}).join("")}function oze(e){const t=e.match(nze);return t?t[1].replace(rze,"'"):e}function sze(e){return d2(e).getDay()}function lze(e){const t=d2(e),a=t.getFullYear(),c=t.getMonth(),n=ie(e,0);return n.setFullYear(a,c+1,0),n.setHours(0,0,0,0),n.getDate()}function fze(){return Object.assign({},co())}function _8(e){return d2(e).getHours()}function uze(e){let a=d2(e).getDay();return a===0&&(a=7),a}function Ya(e){return d2(e).getMinutes()}function P2(e){return d2(e).getMonth()}function Vs(e){return d2(e).getSeconds()}function L2(e){return d2(e).getFullYear()}function Ss(e,t){const a=d2(e),c=d2(t);return a.getTime()>c.getTime()}function qf(e,t){const a=d2(e),c=d2(t);return+a<+c}function Io(e,t){const a=d2(e),c=d2(t);return+a==+c}function dze(e,t){const a=t instanceof Date?ie(t,0):new t(0);return a.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),a.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),a}const hze=10;class jM1{constructor(){S1(this,"subPriority",0)}validate(t,a){return!0}}class pze extends jM1{constructor(t,a,c,n,r){super(),this.value=t,this.validateValue=a,this.setValue=c,this.priority=n,r&&(this.subPriority=r)}validate(t,a){return this.validateValue(t,this.value,a)}set(t,a,c){return this.setValue(t,a,this.value,c)}}class mze extends jM1{constructor(){super(...arguments);S1(this,"priority",hze);S1(this,"subPriority",-1)}set(a,c){return c.timestampIsSet?a:ie(a,dze(a,Date))}}class se{run(t,a,c,n){const r=this.parse(t,a,c,n);return r?{setter:new pze(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(t,a,c){return!0}}class vze extends se{constructor(){super(...arguments);S1(this,"priority",140);S1(this,"incompatibleTokens",["R","u","t","T"])}parse(a,c,n){switch(c){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})||n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"})}}set(a,c,n){return c.era=n,a.setFullYear(n,0,1),a.setHours(0,0,0,0),a}}const H3={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}/},rt={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 L3(e,t){return e&&{value:t(e.value),rest:e.rest}}function Je(e,t){const a=t.match(e);return a?{value:parseInt(a[0],10),rest:t.slice(a[0].length)}:null}function it(e,t){const a=t.match(e);if(!a)return null;if(a[0]==="Z")return{value:0,rest:t.slice(1)};const c=a[1]==="+"?1:-1,n=a[2]?parseInt(a[2],10):0,r=a[3]?parseInt(a[3],10):0,i=a[5]?parseInt(a[5],10):0;return{value:c*(n*TM1+r*fbe+i*ube),rest:t.slice(a[0].length)}}function UM1(e){return Je(H3.anyDigitsSigned,e)}function u3(e,t){switch(e){case 1:return Je(H3.singleDigit,t);case 2:return Je(H3.twoDigits,t);case 3:return Je(H3.threeDigits,t);case 4:return Je(H3.fourDigits,t);default:return Je(new RegExp("^\\d{1,"+e+"}"),t)}}function Y$(e,t){switch(e){case 1:return Je(H3.singleDigitSigned,t);case 2:return Je(H3.twoDigitsSigned,t);case 3:return Je(H3.threeDigitsSigned,t);case 4:return Je(H3.fourDigitsSigned,t);default:return Je(new RegExp("^-?\\d{1,"+e+"}"),t)}}function A11(e){switch(e){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 WM1(e,t){const a=t>0,c=a?t:1-t;let n;if(c<=50)n=e||100;else{const r=c+50,i=Math.trunc(r/100)*100,o=e>=r%100;n=e+i-(o?100:0)}return a?n:1-n}function YM1(e){return e%400===0||e%4===0&&e%100!==0}class yze extends se{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(a,c,n){const r=i=>({year:i,isTwoDigitYear:c==="yy"});switch(c){case"y":return L3(u3(4,a),r);case"yo":return L3(n.ordinalNumber(a,{unit:"year"}),r);default:return L3(u3(c.length,a),r)}}validate(a,c){return c.isTwoDigitYear||c.year>0}set(a,c,n){const r=a.getFullYear();if(n.isTwoDigitYear){const o=WM1(n.year,r);return a.setFullYear(o,0,1),a.setHours(0,0,0,0),a}const i=!("era"in c)||c.era===1?n.year:1-n.year;return a.setFullYear(i,0,1),a.setHours(0,0,0,0),a}}class gze extends se{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(a,c,n){const r=i=>({year:i,isTwoDigitYear:c==="YY"});switch(c){case"Y":return L3(u3(4,a),r);case"Yo":return L3(n.ordinalNumber(a,{unit:"year"}),r);default:return L3(u3(c.length,a),r)}}validate(a,c){return c.isTwoDigitYear||c.year>0}set(a,c,n,r){const i=S11(a,r);if(n.isTwoDigitYear){const l=WM1(n.year,i);return a.setFullYear(l,0,r.firstWeekContainsDate),a.setHours(0,0,0,0),S6(a,r)}const o=!("era"in c)||c.era===1?n.year:1-n.year;return a.setFullYear(o,0,r.firstWeekContainsDate),a.setHours(0,0,0,0),S6(a,r)}}class Mze extends se{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(a,c){return Y$(c==="R"?4:c.length,a)}set(a,c,n){const r=ie(a,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ls(r)}}class kze extends se{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(a,c){return Y$(c==="u"?4:c.length,a)}set(a,c,n){return a.setFullYear(n,0,1),a.setHours(0,0,0,0),a}}class xze extends se{constructor(){super(...arguments);S1(this,"priority",120);S1(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"Q":case"QQ":return u3(c.length,a);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})||n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=1&&c<=4}set(a,c,n){return a.setMonth((n-1)*3,1),a.setHours(0,0,0,0),a}}class bze extends se{constructor(){super(...arguments);S1(this,"priority",120);S1(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"q":case"qq":return u3(c.length,a);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})||n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"})}}validate(a,c){return c>=1&&c<=4}set(a,c,n){return a.setMonth((n-1)*3,1),a.setHours(0,0,0,0),a}}class zze extends se{constructor(){super(...arguments);S1(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);S1(this,"priority",110)}parse(a,c,n){const r=i=>i-1;switch(c){case"M":return L3(Je(H3.month,a),r);case"MM":return L3(u3(2,a),r);case"Mo":return L3(n.ordinalNumber(a,{unit:"month"}),r);case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})||n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=0&&c<=11}set(a,c,n){return a.setMonth(n,1),a.setHours(0,0,0,0),a}}class Cze extends se{constructor(){super(...arguments);S1(this,"priority",110);S1(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(a,c,n){const r=i=>i-1;switch(c){case"L":return L3(Je(H3.month,a),r);case"LL":return L3(u3(2,a),r);case"Lo":return L3(n.ordinalNumber(a,{unit:"month"}),r);case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})||n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"})}}validate(a,c){return c>=0&&c<=11}set(a,c,n){return a.setMonth(n,1),a.setHours(0,0,0,0),a}}function _ze(e,t,a){const c=d2(e),n=N11(c,a)-t;return c.setDate(c.getDate()-n*7),c}class wze extends se{constructor(){super(...arguments);S1(this,"priority",100);S1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(a,c,n){switch(c){case"w":return Je(H3.week,a);case"wo":return n.ordinalNumber(a,{unit:"week"});default:return u3(c.length,a)}}validate(a,c){return c>=1&&c<=53}set(a,c,n,r){return S6(_ze(a,n,r),r)}}function Hze(e,t){const a=d2(e),c=V11(a)-t;return a.setDate(a.getDate()-c*7),a}class Lze extends se{constructor(){super(...arguments);S1(this,"priority",100);S1(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(a,c,n){switch(c){case"I":return Je(H3.week,a);case"Io":return n.ordinalNumber(a,{unit:"week"});default:return u3(c.length,a)}}validate(a,c){return c>=1&&c<=53}set(a,c,n){return Ls(Hze(a,n))}}const Vze=[31,28,31,30,31,30,31,31,30,31,30,31],Sze=[31,29,31,30,31,30,31,31,30,31,30,31];class Nze extends se{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"subPriority",1);S1(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"d":return Je(H3.date,a);case"do":return n.ordinalNumber(a,{unit:"date"});default:return u3(c.length,a)}}validate(a,c){const n=a.getFullYear(),r=YM1(n),i=a.getMonth();return r?c>=1&&c<=Sze[i]:c>=1&&c<=Vze[i]}set(a,c,n){return a.setDate(n),a.setHours(0,0,0,0),a}}class Aze extends se{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"subpriority",1);S1(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(a,c,n){switch(c){case"D":case"DD":return Je(H3.dayOfYear,a);case"Do":return n.ordinalNumber(a,{unit:"date"});default:return u3(c.length,a)}}validate(a,c){const n=a.getFullYear();return YM1(n)?c>=1&&c<=366:c>=1&&c<=365}set(a,c,n){return a.setMonth(0,n),a.setHours(0,0,0,0),a}}function T11(e,t,a){var d,h,p,v;const c=co(),n=(a==null?void 0:a.weekStartsOn)??((h=(d=a==null?void 0:a.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??c.weekStartsOn??((v=(p=c.locale)==null?void 0:p.options)==null?void 0:v.weekStartsOn)??0,r=d2(e),i=r.getDay(),l=(t%7+7)%7,f=7-n,u=t<0||t>6?t-(i+f)%7:(l+f)%7-(i+f)%7;return e6(r,u)}class Tze extends se{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=0&&c<=6}set(a,c,n,r){return a=T11(a,n,r),a.setHours(0,0,0,0),a}}class Eze extends se{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(a,c,n,r){const i=o=>{const l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(c){case"e":case"ee":return L3(u3(c.length,a),i);case"eo":return L3(n.ordinalNumber(a,{unit:"day"}),i);case"eee":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=0&&c<=6}set(a,c,n,r){return a=T11(a,n,r),a.setHours(0,0,0,0),a}}class Dze extends se{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(a,c,n,r){const i=o=>{const l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(c){case"c":case"cc":return L3(u3(c.length,a),i);case"co":return L3(n.ordinalNumber(a,{unit:"day"}),i);case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})||n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"})}}validate(a,c){return c>=0&&c<=6}set(a,c,n,r){return a=T11(a,n,r),a.setHours(0,0,0,0),a}}function Pze(e,t){const a=d2(e),c=uze(a),n=t-c;return e6(a,n)}class Oze extends se{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(a,c,n){const r=i=>i===0?7:i;switch(c){case"i":case"ii":return u3(c.length,a);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return L3(n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),r);case"iiiii":return L3(n.day(a,{width:"narrow",context:"formatting"}),r);case"iiiiii":return L3(n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),r);case"iiii":default:return L3(n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),r)}}validate(a,c){return c>=1&&c<=7}set(a,c,n){return a=Pze(a,n),a.setHours(0,0,0,0),a}}class Ize extends se{constructor(){super(...arguments);S1(this,"priority",80);S1(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(a,c,n){switch(c){case"a":case"aa":case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,c,n){return a.setHours(A11(n),0,0,0),a}}class Bze extends se{constructor(){super(...arguments);S1(this,"priority",80);S1(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(a,c,n){switch(c){case"b":case"bb":case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,c,n){return a.setHours(A11(n),0,0,0),a}}class Rze extends se{constructor(){super(...arguments);S1(this,"priority",80);S1(this,"incompatibleTokens",["a","b","t","T"])}parse(a,c,n){switch(c){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,c,n){return a.setHours(A11(n),0,0,0),a}}class Fze extends se{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["H","K","k","t","T"])}parse(a,c,n){switch(c){case"h":return Je(H3.hour12h,a);case"ho":return n.ordinalNumber(a,{unit:"hour"});default:return u3(c.length,a)}}validate(a,c){return c>=1&&c<=12}set(a,c,n){const r=a.getHours()>=12;return r&&n<12?a.setHours(n+12,0,0,0):!r&&n===12?a.setHours(0,0,0,0):a.setHours(n,0,0,0),a}}class $ze extends se{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(a,c,n){switch(c){case"H":return Je(H3.hour23h,a);case"Ho":return n.ordinalNumber(a,{unit:"hour"});default:return u3(c.length,a)}}validate(a,c){return c>=0&&c<=23}set(a,c,n){return a.setHours(n,0,0,0),a}}class qze extends se{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["h","H","k","t","T"])}parse(a,c,n){switch(c){case"K":return Je(H3.hour11h,a);case"Ko":return n.ordinalNumber(a,{unit:"hour"});default:return u3(c.length,a)}}validate(a,c){return c>=0&&c<=11}set(a,c,n){return a.getHours()>=12&&n<12?a.setHours(n+12,0,0,0):a.setHours(n,0,0,0),a}}class jze extends se{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(a,c,n){switch(c){case"k":return Je(H3.hour24h,a);case"ko":return n.ordinalNumber(a,{unit:"hour"});default:return u3(c.length,a)}}validate(a,c){return c>=1&&c<=24}set(a,c,n){const r=n<=24?n%24:n;return a.setHours(r,0,0,0),a}}class Uze extends se{constructor(){super(...arguments);S1(this,"priority",60);S1(this,"incompatibleTokens",["t","T"])}parse(a,c,n){switch(c){case"m":return Je(H3.minute,a);case"mo":return n.ordinalNumber(a,{unit:"minute"});default:return u3(c.length,a)}}validate(a,c){return c>=0&&c<=59}set(a,c,n){return a.setMinutes(n,0,0),a}}class Wze extends se{constructor(){super(...arguments);S1(this,"priority",50);S1(this,"incompatibleTokens",["t","T"])}parse(a,c,n){switch(c){case"s":return Je(H3.second,a);case"so":return n.ordinalNumber(a,{unit:"second"});default:return u3(c.length,a)}}validate(a,c){return c>=0&&c<=59}set(a,c,n){return a.setSeconds(n,0),a}}class Yze extends se{constructor(){super(...arguments);S1(this,"priority",30);S1(this,"incompatibleTokens",["t","T"])}parse(a,c){const n=r=>Math.trunc(r*Math.pow(10,-c.length+3));return L3(u3(c.length,a),n)}set(a,c,n){return a.setMilliseconds(n),a}}class Gze extends se{constructor(){super(...arguments);S1(this,"priority",10);S1(this,"incompatibleTokens",["t","T","x"])}parse(a,c){switch(c){case"X":return it(rt.basicOptionalMinutes,a);case"XX":return it(rt.basic,a);case"XXXX":return it(rt.basicOptionalSeconds,a);case"XXXXX":return it(rt.extendedOptionalSeconds,a);case"XXX":default:return it(rt.extended,a)}}set(a,c,n){return c.timestampIsSet?a:ie(a,a.getTime()-W$(a)-n)}}class Zze extends se{constructor(){super(...arguments);S1(this,"priority",10);S1(this,"incompatibleTokens",["t","T","X"])}parse(a,c){switch(c){case"x":return it(rt.basicOptionalMinutes,a);case"xx":return it(rt.basic,a);case"xxxx":return it(rt.basicOptionalSeconds,a);case"xxxxx":return it(rt.extendedOptionalSeconds,a);case"xxx":default:return it(rt.extended,a)}}set(a,c,n){return c.timestampIsSet?a:ie(a,a.getTime()-W$(a)-n)}}class Xze extends se{constructor(){super(...arguments);S1(this,"priority",40);S1(this,"incompatibleTokens","*")}parse(a){return UM1(a)}set(a,c,n){return[ie(a,n*1e3),{timestampIsSet:!0}]}}class Kze extends se{constructor(){super(...arguments);S1(this,"priority",20);S1(this,"incompatibleTokens","*")}parse(a){return UM1(a)}set(a,c,n){return[ie(a,n),{timestampIsSet:!0}]}}const Qze={G:new vze,y:new yze,Y:new gze,R:new Mze,u:new kze,Q:new xze,q:new bze,M:new zze,L:new Cze,w:new wze,I:new Lze,d:new Nze,D:new Aze,E:new Tze,e:new Eze,c:new Dze,i:new Oze,a:new Ize,b:new Bze,B:new Rze,h:new Fze,H:new $ze,K:new qze,k:new jze,m:new Uze,s:new Wze,S:new Yze,X:new Gze,x:new Zze,t:new Xze,T:new Kze},Jze=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tCe=/^'([^]*?)'?$/,aCe=/''/g,cCe=/\S/,nCe=/[a-zA-Z]/;function QZ(e,t,a,c){var m,y,g,M,x,k,b,_;const n=fze(),r=(c==null?void 0:c.locale)??n.locale??RM1,i=(c==null?void 0:c.firstWeekContainsDate)??((y=(m=c==null?void 0:c.locale)==null?void 0:m.options)==null?void 0:y.firstWeekContainsDate)??n.firstWeekContainsDate??((M=(g=n.locale)==null?void 0:g.options)==null?void 0:M.firstWeekContainsDate)??1,o=(c==null?void 0:c.weekStartsOn)??((k=(x=c==null?void 0:c.locale)==null?void 0:x.options)==null?void 0:k.weekStartsOn)??n.weekStartsOn??((_=(b=n.locale)==null?void 0:b.options)==null?void 0:_.weekStartsOn)??0;if(t==="")return e===""?d2(a):ie(a,NaN);const l={firstWeekContainsDate:i,weekStartsOn:o,locale:r},f=[new mze],u=t.match(eCe).map(C=>{const H=C[0];if(H in XZ){const V=XZ[H];return V(C,r.formatLong)}return C}).join("").match(Jze),d=[];for(let C of u){!(c!=null&&c.useAdditionalWeekYearTokens)&&qM1(C)&&KZ(C,t,e),!(c!=null&&c.useAdditionalDayOfYearTokens)&&$M1(C)&&KZ(C,t,e);const H=C[0],V=Qze[H];if(V){const{incompatibleTokens:N}=V;if(Array.isArray(N)){const w=d.find(P=>N.includes(P.token)||P.token===H);if(w)throw new RangeError(`The format string mustn't contain \`${w.fullToken}\` and \`${C}\` at the same time`)}else if(V.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);d.push({token:H,fullToken:C});const L=V.run(e,C,r.match,l);if(!L)return ie(a,NaN);f.push(L.setter),e=L.rest}else{if(H.match(nCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+H+"`");if(C==="''"?C="'":H==="'"&&(C=rCe(C)),e.indexOf(C)===0)e=e.slice(C.length);else return ie(a,NaN)}}if(e.length>0&&cCe.test(e))return ie(a,NaN);const h=f.map(C=>C.priority).sort((C,H)=>H-C).filter((C,H,V)=>V.indexOf(C)===H).map(C=>f.filter(H=>H.priority===C).sort((H,V)=>V.subPriority-H.subPriority)).map(C=>C[0]);let p=d2(a);if(isNaN(p.getTime()))return ie(a,NaN);const v={};for(const C of h){if(!C.validate(p,l))return ie(a,NaN);const H=C.set(p,v,l);Array.isArray(H)?(p=H[0],Object.assign(v,H[1])):p=H}return ie(a,p)}function rCe(e){return e.match(tCe)[1].replace(aCe,"'")}function Oa1(e,t){const a=ci(e),c=ci(t);return+a==+c}function iCe(e,t){return e6(e,-t)}function GM1(e,t){const a=d2(e),c=a.getFullYear(),n=a.getDate(),r=ie(e,0);r.setFullYear(c,t,15),r.setHours(0,0,0,0);const i=lze(r);return a.setMonth(t,Math.min(n,i)),a}function ze(e,t){let a=d2(e);return isNaN(+a)?ie(e,NaN):(t.year!=null&&a.setFullYear(t.year),t.month!=null&&(a=GM1(a,t.month)),t.date!=null&&a.setDate(t.date),t.hours!=null&&a.setHours(t.hours),t.minutes!=null&&a.setMinutes(t.minutes),t.seconds!=null&&a.setSeconds(t.seconds),t.milliseconds!=null&&a.setMilliseconds(t.milliseconds),a)}function ZM1(e,t){const a=d2(e);return a.setHours(t),a}function E11(e,t){const a=d2(e);return a.setMilliseconds(t),a}function XM1(e,t){const a=d2(e);return a.setMinutes(t),a}function D11(e,t){const a=d2(e);return a.setSeconds(t),a}function ft(e,t){const a=d2(e);return isNaN(+a)?ie(e,NaN):(a.setFullYear(t),a)}function Ns(e,t){return M6(e,-t)}function oCe(e,t){const{years:a=0,months:c=0,weeks:n=0,days:r=0,hours:i=0,minutes:o=0,seconds:l=0}=t,f=Ns(e,c+a*12),u=iCe(f,r+n*7),d=o+i*60,p=(l+d*60)*1e3;return ie(e,u.getTime()-p)}function KM1(e,t){return H11(e,-t)}function Ks(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),s.createElementVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),s.createElementVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),s.createElementVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}Ks.compatConfig={MODE:3};function QM1(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),s.createElementVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}QM1.compatConfig={MODE:3};function P11(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}P11.compatConfig={MODE:3};function O11(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}O11.compatConfig={MODE:3};function I11(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),s.createElementVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}I11.compatConfig={MODE:3};function B11(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}B11.compatConfig={MODE:3};function R11(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}R11.compatConfig={MODE:3};const bt=(e,t)=>t?new Date(e.toLocaleString("en-US",{timeZone:t})):new Date(e),JM1=(e,t)=>JZ(e,t)||$1(),sCe=(e,t)=>t.dateInTz?bt(new Date(e),t.dateInTz):$1(e),JZ=(e,t)=>{if(!e)return null;if(!t)return $1(e);const a=$1(e);return t.exactMatch?sCe(e,t):bt(a,t.timezone)},lCe=e=>{if(!e)return 0;const t=new Date,a=new Date(t.toLocaleString("en-US",{timeZone:"UTC"})),c=new Date(t.toLocaleString("en-US",{timeZone:e})),n=c.getTimezoneOffset()/60;return(+a-+c)/(1e3*60*60)-n};var U0=(e=>(e.month="month",e.year="year",e))(U0||{}),Y7=(e=>(e.top="top",e.bottom="bottom",e))(Y7||{}),vi=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(vi||{}),u4=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(u4||{});const fCe=["timestamp","date","iso"];var S4=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(S4||{}),Xe=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(Xe||{});function Ia1(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)}function uCe(e){return t=>xt(new Date(`2017-01-0${t}T00:00:00+00:00`),"EEEEEE",{locale:e})}const dCe=(e,t,a)=>{const c=[1,2,3,4,5,6,7];let n;if(e!==null)try{n=c.map(uCe(e))}catch{n=c.map(Ia1(t))}else n=c.map(Ia1(t));const r=n.slice(0,a),i=n.slice(a+1,n.length);return[n[a]].concat(...i).concat(...r)},F11=(e,t,a)=>{const c=[];for(let n=+e[0];n<=+e[1];n++)c.push({value:+n,text:ck1(n,t)});return a?c.reverse():c},ek1=(e,t,a)=>{const c=[1,2,3,4,5,6,7,8,9,10,11,12].map(r=>{const i=r<10?`0${r}`:r;return new Date(`2017-${i}-01T00:00:00+00:00`)});if(e!==null)try{const r=a==="long"?"MMMM":"MMM";return c.map((i,o)=>{const l=xt(bt(i,"UTC"),r,{locale:e});return{text:l.charAt(0).toUpperCase()+l.substring(1),value:o}})}catch{}const n=new Intl.DateTimeFormat(t,{month:a,timeZone:"UTC"});return c.map((r,i)=>{const o=n.format(r);return{text:o.charAt(0).toUpperCase()+o.substring(1),value:i}})},hCe=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],D3=e=>{const t=s.unref(e);return t!=null&&t.$el?t==null?void 0:t.$el:t},pCe=e=>({type:"dot",...e??{}}),tk1=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,$11={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},Y3=e=>e,Ba1=e=>e===0?e:!e||isNaN(+e)?null:+e,Ra1=e=>e===null,ak1=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},mCe=e=>{const t=[],a=c=>c.filter(n=>n);for(let c=0;c<e.length;c+=3){const n=[e[c],e[c+1],e[c+2]];t.push(a(n))}return t},jf=(e,t,a)=>{const c=a!=null,n=t!=null;if(!c&&!n)return!1;const r=+a,i=+t;return c&&n?+e>r||+e<i:c?+e>r:n?+e<i:!1},As=(e,t)=>mCe(e).map(a=>a.map(c=>{const{active:n,disabled:r,isBetween:i,highlighted:o}=t(c);return{...c,active:n,disabled:r,className:{dp__overlay_cell_active:n,dp__overlay_cell:!n,dp__overlay_cell_disabled:r,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:r&&n,dp__cell_in_between:i,"dp--highlighted":o}}})),Va=(e,t,a=!1)=>{e&&t.allowStopPropagation&&(a&&e.stopImmediatePropagation(),e.stopPropagation())},vCe=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function yCe(e,t){let a=[...document.querySelectorAll(vCe())];a=a.filter(n=>!e.contains(n)||n.hasAttribute("data-datepicker-instance"));const c=a.indexOf(e);if(c>=0&&(t?c-1>=0:c+1<=a.length))return a[c+(t?-1:1)]}const gCe=(e,t)=>e==null?void 0:e.querySelector(`[data-dp-element="${t}"]`),ck1=(e,t)=>new Intl.NumberFormat(t,{useGrouping:!1,style:"decimal"}).format(e),q11=e=>xt(e,"dd-MM-yyyy"),bY=e=>Array.isArray(e),G$=(e,t)=>t.get(q11(e)),MCe=(e,t)=>e?t?t instanceof Map?!!G$(e,t):t($1(e)):!1:!0,G4=(e,t,a=!1)=>{if(e.key===Xe.enter||e.key===Xe.space)return a&&e.preventDefault(),t()},Fa1=(e,t,a,c,n,r)=>{const i=QZ(e,t.slice(0,e.length),new Date,{locale:r});return Dl(i)&&PM1(i)?c||n?i:ze(i,{hours:+a.hours,minutes:+(a==null?void 0:a.minutes),seconds:+(a==null?void 0:a.seconds),milliseconds:0}):null},kCe=(e,t,a,c,n,r)=>{const i=Array.isArray(a)?a[0]:a;if(typeof t=="string")return Fa1(e,t,i,c,n,r);if(Array.isArray(t)){let o=null;for(const l of t)if(o=Fa1(e,l,i,c,n,r),o)break;return o}return typeof t=="function"?t(e):null},$1=e=>e?new Date(e):new Date,xCe=(e,t,a)=>{if(t){const n=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),i=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),l=a?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${n}-${r}T${i}:${o}:${l}.000Z`}const c=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(c).toISOString()},p0=e=>{let t=$1(JSON.parse(JSON.stringify(e)));return t=ZM1(t,0),t=XM1(t,0),t=D11(t,0),t=E11(t,0),t},Sa=(e,t,a,c)=>{let n=e?$1(e):$1();return(t||t===0)&&(n=ZM1(n,+t)),(a||a===0)&&(n=XM1(n,+a)),(c||c===0)&&(n=D11(n,+c)),E11(n,0)},r3=(e,t)=>!e||!t?!1:qf(p0(e),p0(t)),I2=(e,t)=>!e||!t?!1:Io(p0(e),p0(t)),x3=(e,t)=>!e||!t?!1:Ss(p0(e),p0(t)),Jj=(e,t,a)=>e!=null&&e[0]&&e!=null&&e[1]?x3(a,e[0])&&r3(a,e[1]):e!=null&&e[0]&&t?x3(a,e[0])&&r3(a,t)||r3(a,e[0])&&x3(a,t):!1,t6=e=>{const t=ze(new Date(e),{date:1});return p0(t)},zY=(e,t,a)=>t&&(a||a===0)?Object.fromEntries(["hours","minutes","seconds"].map(c=>c===t?[c,a]:[c,isNaN(+e[c])?void 0:+e[c]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},yi=e=>({hours:_8(e),minutes:Ya(e),seconds:Vs(e)}),nk1=(e,t)=>{if(t){const a=L2($1(t));if(a>e)return 12;if(a===e)return P2($1(t))}},rk1=(e,t)=>{if(t){const a=L2($1(t));return a<e?-1:a===e?P2($1(t)):void 0}},Ts=e=>{if(e)return L2($1(e))},ik1=(e,t)=>{const a=x3(e,t)?t:e,c=x3(t,e)?t:e;return OM1({start:a,end:c})},bCe=e=>{const t=M6(e,1);return{month:P2(t),year:L2(t)}},Xt=(e,t)=>{const a=S6(e,{weekStartsOn:+t}),c=BM1(e,{weekStartsOn:+t});return[a,c]},ok1=(e,t)=>{const a={hours:_8($1()),minutes:Ya($1()),seconds:t?Vs($1()):0};return Object.assign(a,e)},va=(e,t,a)=>[ze($1(e),{date:1}),ze($1(),{month:t,year:a,date:1})],s8=(e,t,a)=>{let c=e?$1(e):$1();return(t||t===0)&&(c=GM1(c,t)),a&&(c=ft(c,a)),c},sk1=(e,t,a,c,n)=>{if(!c||n&&!t||!n&&!a)return!1;const r=n?M6(e,1):Ns(e,1),i=[P2(r),L2(r)];return n?!CCe(...i,t):!zCe(...i,a)},zCe=(e,t,a)=>r3(...va(a,e,t))||I2(...va(a,e,t)),CCe=(e,t,a)=>x3(...va(a,e,t))||I2(...va(a,e,t)),lk1=(e,t,a,c,n,r,i)=>{if(typeof t=="function"&&!i)return t(e);const o=a?{locale:a}:void 0;return Array.isArray(e)?`${xt(e[0],r,o)}${n&&!e[1]?"":c}${e[1]?xt(e[1],r,o):""}`:xt(e,r,o)},zo=e=>{if(e)return null;throw new Error($11.prop("partial-range"))},hh=(e,t)=>{if(t)return e();throw new Error($11.prop("range"))},eX=e=>Array.isArray(e)?Dl(e[0])&&(e[1]?Dl(e[1]):!0):e?Dl(e):!1,_Ce=(e,t)=>ze(t??$1(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),CY=(e,t,a,c)=>{if(!e)return!0;if(c){const n=a==="max"?qf(e,t):Ss(e,t),r={seconds:0,milliseconds:0};return n||Io(ze(e,r),ze(t,r))}return a==="max"?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},_Y=(e,t,a)=>e?_Ce(e,t):$1(a??t),$a1=(e,t,a,c,n)=>{if(Array.isArray(c)){const i=_Y(e,c[0],t),o=_Y(e,c[1],t);return CY(c[0],i,a,!!t)&&CY(c[1],o,a,!!t)&&n}const r=_Y(e,c,t);return CY(c,r,a,!!t)&&n},wY=e=>ze($1(),yi(e)),wCe=(e,t)=>e instanceof Map?Array.from(e.values()).filter(a=>L2($1(a))===t).map(a=>P2(a)):[],fk1=(e,t,a)=>typeof e=="function"?e({month:t,year:a}):!!e.months.find(c=>c.month===t&&c.year===a),j11=(e,t)=>typeof e=="function"?e(t):e.years.includes(t),j9=s.reactive({menuFocused:!1,shiftKeyInMenu:!1}),uk1=()=>{const e=a=>{j9.menuFocused=a},t=a=>{j9.shiftKeyInMenu!==a&&(j9.shiftKeyInMenu=a)};return{control:s.computed(()=>({shiftKeyInMenu:j9.shiftKeyInMenu,menuFocused:j9.menuFocused})),setMenuFocused:e,setShiftKey:t}},we=s.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),HY=s.ref(null),ph=s.ref(!1),LY=s.ref(!1),VY=s.ref(!1),SY=s.ref(!1),o4=s.ref(0),v3=s.ref(0),l5=()=>{const e=s.computed(()=>ph.value?[...we.selectionGrid,we.actionRow].filter(d=>d.length):LY.value?[...we.timePicker[0],...we.timePicker[1],SY.value?[]:[HY.value],we.actionRow].filter(d=>d.length):VY.value?[...we.monthPicker,we.actionRow]:[we.monthYear,...we.calendar,we.time,we.actionRow].filter(d=>d.length)),t=d=>{o4.value=d?o4.value+1:o4.value-1;let h=null;e.value[v3.value]&&(h=e.value[v3.value][o4.value]),!h&&e.value[v3.value+(d?1:-1)]?(v3.value=v3.value+(d?1:-1),o4.value=d?0:e.value[v3.value].length-1):h||(o4.value=d?o4.value-1:o4.value+1)},a=d=>{v3.value===0&&!d||v3.value===e.value.length&&d||(v3.value=d?v3.value+1:v3.value-1,e.value[v3.value]?e.value[v3.value]&&!e.value[v3.value][o4.value]&&o4.value!==0&&(o4.value=e.value[v3.value].length-1):v3.value=d?v3.value-1:v3.value+1)},c=d=>{let h=null;e.value[v3.value]&&(h=e.value[v3.value][o4.value]),h?h.focus({preventScroll:!ph.value}):o4.value=d?o4.value-1:o4.value+1},n=()=>{t(!0),c(!0)},r=()=>{t(!1),c(!1)},i=()=>{a(!1),c(!0)},o=()=>{a(!0),c(!0)},l=(d,h)=>{we[h]=d},f=(d,h)=>{we[h]=d},u=()=>{o4.value=0,v3.value=0};return{buildMatrix:l,buildMultiLevelMatrix:f,setTimePickerBackRef:d=>{HY.value=d},setSelectionGrid:d=>{ph.value=d,u(),d||(we.selectionGrid=[])},setTimePicker:(d,h=!1)=>{LY.value=d,SY.value=h,u(),d||(we.timePicker[0]=[],we.timePicker[1]=[])},setTimePickerElements:(d,h=0)=>{we.timePicker[h]=d},arrowRight:n,arrowLeft:r,arrowUp:i,arrowDown:o,clearArrowNav:()=>{we.monthYear=[],we.calendar=[],we.time=[],we.actionRow=[],we.selectionGrid=[],we.timePicker[0]=[],we.timePicker[1]=[],ph.value=!1,LY.value=!1,SY.value=!1,VY.value=!1,u(),HY.value=null},setMonthPicker:d=>{VY.value=d,u()},refSets:we}},qa1=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),HCe=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,...e??{}}),ja1=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,LCe=e=>{const t=typeof e=="object"&&e,a={static:!0,solo:!1};if(!e)return{...a,count:ja1(!1)};const c=t?e:{},n=t?c.count??!0:e,r=ja1(n);return Object.assign(a,c,{count:r})},VCe=(e,t,a)=>e||(typeof a=="string"?a:t),SCe=e=>typeof e=="boolean"?e?qa1({}):!1:qa1(e),NCe=e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:!0,selectOnFocus:!1,rangeSeparator:" - "};return typeof e=="object"?{...t,...e??{},enabled:!0}:{...t,enabled:e}},ACe=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),TCe=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),ECe=e=>{const t={input:!1};return typeof e=="object"?{...t,...e??{},enabled:!0}:{enabled:e,...t}},DCe=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,...e??{}}),PCe=e=>{const t={dates:Array.isArray(e)?e.map(a=>$1(a)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...t,...e??{}}},OCe=e=>typeof e=="object"?{type:(e==null?void 0:e.type)??"local",hideOnOffsetDates:(e==null?void 0:e.hideOnOffsetDates)??!1}:{type:e,hideOnOffsetDates:!1},ICe=(e,t)=>typeof e=="object"?{enabled:!0,...{noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1},...e}:{enabled:e,noDisabledRange:t.noDisabledRange,showLastInRange:t.showLastInRange,minMaxRawRange:t.minMaxRawRange,partialRange:t.partialRange,disableTimeRangeValidation:t.disableTimeRangeValidation,maxRange:t.maxRange,minRange:t.minRange,autoRange:t.autoRange,fixedStart:t.fixedStart,fixedEnd:t.fixedEnd},BCe=(e,t)=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:t,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:t??e.emitTimezone,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:t},NY=(e,t)=>new Map(e.map(a=>{const c=JM1(a,t);return[q11(c),c]})),RCe=(e,t)=>e.length?new Map(e.map(a=>{const c=JM1(a.date,t);return[q11(c),a]})):null,FCe=(e,t,a,c,n,r,i)=>({minDate:JZ(e,i),maxDate:JZ(t,i),disabledDates:bY(a)?NY(a,i):a,allowedDates:bY(c)?NY(c,i):null,highlight:typeof n=="object"&&bY(n==null?void 0:n.dates)?NY(n.dates,i):n,markers:RCe(r,i)}),$Ce=(e,t)=>typeof e=="boolean"?{enabled:e,dragSelect:!0,limit:+t}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0},a3=e=>{const t=()=>{const b=e.enableSeconds?":ss":"",_=e.enableMinutes?":mm":"";return e.is24?`HH${_}${b}`:`hh${_}${b} aa`},a=()=>{var b;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?`${((b=y.value)==null?void 0:b.type)==="iso"?"RR":"ww"}-yyyy`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy"},c=b=>ok1(b,e.enableSeconds),n=()=>k.value.enabled?e.startTime&&Array.isArray(e.startTime)?[c(e.startTime[0]),c(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?c(e.startTime):null,r=s.computed(()=>LCe(e.multiCalendars)),i=s.computed(()=>n()),o=s.computed(()=>HCe(e.ariaLabels)),l=s.computed(()=>ACe(e.filters)),f=s.computed(()=>SCe(e.transitions)),u=s.computed(()=>TCe(e.actionRow)),d=s.computed(()=>VCe(e.previewFormat,e.format,a())),h=s.computed(()=>NCe(e.textInput)),p=s.computed(()=>ECe(e.inline)),v=s.computed(()=>DCe(e.config)),m=s.computed(()=>PCe(e.highlight)),y=s.computed(()=>OCe(e.weekNumbers)),g=s.computed(()=>BCe(e.timezone,e.emitTimezone)),M=s.computed(()=>$Ce(e.multiDates,e.multiDatesLimit)),x=s.computed(()=>FCe(e.minDate,e.maxDate,e.disabledDates,e.allowedDates,m.value,e.markers,g.value)),k=s.computed(()=>ICe(e.range,{minMaxRawRange:!1,maxRange:e.maxRange,minRange:e.minRange,noDisabledRange:e.noDisabledRange,showLastInRange:e.showLastInRange,partialRange:e.partialRange,disableTimeRangeValidation:e.disableTimeRangeValidation,autoRange:e.autoRange,fixedStart:e.fixedStart,fixedEnd:e.fixedEnd}));return{defaultedTransitions:f,defaultedMultiCalendars:r,defaultedStartTime:i,defaultedAriaLabels:o,defaultedFilters:l,defaultedActionRow:u,defaultedPreviewFormat:d,defaultedTextInput:h,defaultedInline:p,defaultedConfig:v,defaultedHighlight:m,defaultedWeekNumbers:y,defaultedRange:k,propDates:x,defaultedTz:g,defaultedMultiDates:M,getDefaultPattern:a,getDefaultStartTime:n}},qCe=(e,t,a)=>{const c=s.ref(),{defaultedTextInput:n,defaultedRange:r,defaultedTz:i,defaultedMultiDates:o,getDefaultPattern:l}=a3(t),f=s.ref(""),u=s.toRef(t,"format"),d=s.toRef(t,"formatLocale");s.watch(c,()=>{typeof t.onInternalModelChange=="function"&&e("internal-model-change",c.value,A(!0))},{deep:!0}),s.watch(r,(B,Q)=>{B.enabled!==Q.enabled&&(c.value=null)}),s.watch(u,()=>{e1()});const h=B=>i.value.timezone&&i.value.convertModel?bt(B,i.value.timezone):B,p=B=>{if(i.value.timezone&&i.value.convertModel){const Q=lCe(i.value.timezone);return dbe(B,Q)}return B},v=(B,Q,c1=!1)=>lk1(B,t.format,t.formatLocale,n.value.rangeSeparator,t.modelAuto,Q??l(),c1),m=B=>B?t.modelType?W(B):{hours:_8(B),minutes:Ya(B),seconds:t.enableSeconds?Vs(B):0}:null,y=B=>t.modelType?W(B):{month:P2(B),year:L2(B)},g=B=>Array.isArray(B)?o.value.enabled?B.map(Q=>M(Q,ft($1(),Q))):hh(()=>[ft($1(),B[0]),B[1]?ft($1(),B[1]):zo(r.value.partialRange)],r.value.enabled):ft($1(),+B),M=(B,Q)=>(typeof B=="string"||typeof B=="number")&&t.modelType?Z(B):Q,x=B=>Array.isArray(B)?[M(B[0],Sa(null,+B[0].hours,+B[0].minutes,B[0].seconds)),M(B[1],Sa(null,+B[1].hours,+B[1].minutes,B[1].seconds))]:M(B,Sa(null,B.hours,B.minutes,B.seconds)),k=B=>{const Q=ze($1(),{date:1});return Array.isArray(B)?o.value.enabled?B.map(c1=>M(c1,s8(Q,+c1.month,+c1.year))):hh(()=>[M(B[0],s8(Q,+B[0].month,+B[0].year)),M(B[1],B[1]?s8(Q,+B[1].month,+B[1].year):zo(r.value.partialRange))],r.value.enabled):M(B,s8(Q,+B.month,+B.year))},b=B=>{if(Array.isArray(B))return B.map(Q=>Z(Q));throw new Error($11.dateArr("multi-dates"))},_=B=>{if(Array.isArray(B)&&r.value.enabled){const Q=B[0],c1=B[1];return[$1(Array.isArray(Q)?Q[0]:null),$1(Array.isArray(c1)?c1[0]:null)]}return $1(B[0])},C=B=>t.modelAuto?Array.isArray(B)?[Z(B[0]),Z(B[1])]:t.autoApply?[Z(B)]:[Z(B),null]:Array.isArray(B)?hh(()=>B[1]?[Z(B[0]),B[1]?Z(B[1]):zo(r.value.partialRange)]:[Z(B[0])],r.value.enabled):Z(B),H=()=>{Array.isArray(c.value)&&r.value.enabled&&c.value.length===1&&c.value.push(zo(r.value.partialRange))},V=()=>{const B=c.value;return[W(B[0]),B[1]?W(B[1]):zo(r.value.partialRange)]},N=()=>c.value[1]?V():W(Y3(c.value[0])),L=()=>(c.value||[]).map(B=>W(B)),w=(B=!1)=>(B||H(),t.modelAuto?N():o.value.enabled?L():Array.isArray(c.value)?hh(()=>V(),r.value.enabled):W(Y3(c.value))),P=B=>!B||Array.isArray(B)&&!B.length?null:t.timePicker?x(Y3(B)):t.monthPicker?k(Y3(B)):t.yearPicker?g(Y3(B)):o.value.enabled?b(Y3(B)):t.weekPicker?_(Y3(B)):C(Y3(B)),j=B=>{const Q=P(B);eX(Y3(Q))?(c.value=Y3(Q),e1()):(c.value=null,f.value="")},T=()=>{const B=Q=>xt(Q,n.value.format);return`${B(c.value[0])} ${n.value.rangeSeparator} ${c.value[1]?B(c.value[1]):""}`},R=()=>a.value&&c.value?Array.isArray(c.value)?T():xt(c.value,n.value.format):v(c.value),Y=()=>c.value?o.value.enabled?c.value.map(B=>v(B)).join("; "):n.value.enabled&&typeof n.value.format=="string"?R():v(c.value):"",e1=()=>{!t.format||typeof t.format=="string"||n.value.enabled&&typeof n.value.format=="string"?f.value=Y():f.value=t.format(c.value)},Z=B=>{if(t.utc){const Q=new Date(B);return t.utc==="preserve"?new Date(Q.getTime()+Q.getTimezoneOffset()*6e4):Q}return t.modelType?fCe.includes(t.modelType)?h(new Date(B)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?h(QZ(B,l(),new Date,{locale:d.value})):h(QZ(B,t.modelType,new Date,{locale:d.value})):h(new Date(B))},W=B=>B?t.utc?xCe(B,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+p(B):t.modelType==="iso"?p(B).toISOString():t.modelType==="format"&&(typeof t.format=="string"||!t.format)?v(p(B)):v(p(B),t.modelType,!0):p(B):"",I=(B,Q=!1,c1=!1)=>{if(c1)return B;if(e("update:model-value",B),i.value.emitTimezone&&Q){const K=Array.isArray(B)?B.map(a1=>bt(Y3(a1),i.value.emitTimezone)):bt(Y3(B),i.value.emitTimezone);e("update:model-timezone-value",K)}},E=B=>Array.isArray(c.value)?o.value.enabled?c.value.map(Q=>B(Q)):[B(c.value[0]),c.value[1]?B(c.value[1]):zo(r.value.partialRange)]:B(Y3(c.value)),S=()=>{if(Array.isArray(c.value)){const B=Xt(c.value[0],t.weekStart),Q=c.value[1]?Xt(c.value[1],t.weekStart):[];return[B.map(c1=>$1(c1)),Q.map(c1=>$1(c1))]}return Xt(c.value,t.weekStart).map(B=>$1(B))},U=(B,Q)=>I(Y3(E(B)),!1,Q),G=B=>{const Q=S();return B?Q:e("update:model-value",S())},A=(B=!1)=>(B||e1(),t.monthPicker?U(y,B):t.timePicker?U(m,B):t.yearPicker?U(L2,B):t.weekPicker?G(B):I(w(B),!0,B));return{inputValue:f,internalModelValue:c,checkBeforeEmit:()=>c.value?r.value.enabled?r.value.partialRange?c.value.length>=1:c.value.length===2:!!c.value:!1,parseExternalModelValue:j,formatInputValue:e1,emitModelValue:A}},jCe=(e,t)=>{const{defaultedFilters:a,propDates:c}=a3(e),{validateMonthYearInRange:n}=f5(e),r=(u,d)=>{let h=u;return a.value.months.includes(P2(h))?(h=d?M6(u,1):Ns(u,1),r(h,d)):h},i=(u,d)=>{let h=u;return a.value.years.includes(L2(h))?(h=d?H11(u,1):KM1(u,1),i(h,d)):h},o=(u,d=!1)=>{const h=ze($1(),{month:e.month,year:e.year});let p=u?M6(h,1):Ns(h,1);e.disableYearSelect&&(p=ft(p,e.year));let v=P2(p),m=L2(p);a.value.months.includes(v)&&(p=r(p,u),v=P2(p),m=L2(p)),a.value.years.includes(m)&&(p=i(p,u),m=L2(p)),n(v,m,u,e.preventMinMaxNavigation)&&l(v,m,d)},l=(u,d,h)=>{t("update-month-year",{month:u,year:d,fromNav:h})},f=s.computed(()=>u=>sk1(ze($1(),{month:e.month,year:e.year}),c.value.maxDate,c.value.minDate,e.preventMinMaxNavigation,u));return{handleMonthYearChange:o,isDisabled:f,updateMonthYear:l}};var No=(e=>(e.center="center",e.left="left",e.right="right",e))(No||{});const UCe=({menuRef:e,menuRefInner:t,inputRef:a,pickerWrapperRef:c,inline:n,emit:r,props:i,slots:o})=>{const l=s.ref({}),f=s.ref(!1),u=s.ref({top:"0",left:"0"}),d=s.ref(!1),h=s.toRef(i,"teleportCenter");s.watch(h,()=>{u.value=JSON.parse(JSON.stringify({})),k()});const p=T=>{if(i.teleport){const R=T.getBoundingClientRect();return{left:R.left+window.scrollX,top:R.top+window.scrollY}}return{top:0,left:0}},v=(T,R)=>{u.value.left=`${T+R-l.value.width}px`},m=T=>{u.value.left=`${T}px`},y=(T,R)=>{i.position===No.left&&m(T),i.position===No.right&&v(T,R),i.position===No.center&&(u.value.left=`${T+R/2-l.value.width/2}px`)},g=T=>{const{width:R,height:Y}=T.getBoundingClientRect(),{top:e1,left:Z}=i.altPosition?i.altPosition(T):p(T);return{top:+e1,left:+Z,width:R,height:Y}},M=()=>{u.value.left="50%",u.value.top="50%",u.value.transform="translate(-50%, -50%)",u.value.position="fixed",delete u.value.opacity},x=()=>{const T=D3(a),{top:R,left:Y,transform:e1}=i.altPosition(T);u.value={top:`${R}px`,left:`${Y}px`,transform:e1??""}},k=(T=!0)=>{var R;if(!n.value.enabled){if(h.value)return M();if(i.altPosition!==null)return x();if(T){const Y=i.teleport?(R=t.value)==null?void 0:R.$el:e.value;Y&&(l.value=Y.getBoundingClientRect()),r("recalculate-position")}return L()}},b=({inputEl:T,left:R,width:Y})=>{window.screen.width>768&&!f.value&&y(R,Y),H(T)},_=T=>{const{top:R,left:Y,height:e1,width:Z}=g(T);u.value.top=`${e1+R+ +i.offset}px`,d.value=!1,f.value||(u.value.left=`${Y+Z/2-l.value.width/2}px`),b({inputEl:T,left:Y,width:Z})},C=T=>{const{top:R,left:Y,width:e1}=g(T);u.value.top=`${R-+i.offset-l.value.height}px`,d.value=!0,b({inputEl:T,left:Y,width:e1})},H=T=>{if(i.autoPosition){const{left:R,width:Y}=g(T),{left:e1,right:Z}=l.value;if(!f.value){if(Math.abs(e1)!==Math.abs(Z)){if(e1<=0)return f.value=!0,m(R);if(Z>=document.documentElement.clientWidth)return f.value=!0,v(R,Y)}return y(R,Y)}}},V=()=>{const T=D3(a);if(T){const{height:R}=l.value,{top:Y,height:e1}=T.getBoundingClientRect(),Z=window.innerHeight-Y-e1,W=Y;return R<=Z?Y7.bottom:R>Z&&R<=W?Y7.top:Z>=W?Y7.bottom:Y7.top}return Y7.bottom},N=T=>V()===Y7.bottom?_(T):C(T),L=()=>{const T=D3(a);if(T)return i.autoPosition?N(T):_(T)},w=function(T){if(T){const R=T.scrollHeight>T.clientHeight,Y=window.getComputedStyle(T).overflowY.indexOf("hidden")!==-1;return R&&!Y}return!0},P=function(T){return!T||T===document.body||T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:w(T)?T:P(T.assignedSlot?T.assignedSlot.parentNode:T.parentNode)},j=T=>{if(T)switch(i.position){case No.left:return{left:0,transform:"translateX(0)"};case No.right:return{left:`${T.width}px`,transform:"translateX(-100%)"};default:return{left:`${T.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:d,menuStyle:u,xCorrect:f,setMenuPosition:k,getScrollableParent:P,shadowRender:(T,R)=>{var Y,e1,Z;const W=document.createElement("div"),I=(Y=D3(a))==null?void 0:Y.getBoundingClientRect();W.setAttribute("id","dp--temp-container");const E=(e1=c.value)!=null&&e1.clientWidth?c.value:document.body;E.append(W);const S=j(I),U=s.h(T,{...R,shadow:!0,style:{opacity:0,position:"absolute",...S}},Object.fromEntries(Object.keys(o).filter(G=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(G)).map(G=>[G,o[G]])));s.render(U,W),l.value=(Z=U.el)==null?void 0:Z.getBoundingClientRect(),s.render(null,W),E.removeChild(W)}}},W8=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]}],WCe=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],YCe={all:()=>W8,monthYear:()=>W8.filter(e=>e.use.includes("month-year")),input:()=>WCe,timePicker:()=>W8.filter(e=>e.use.includes("time")),action:()=>W8.filter(e=>e.use.includes("action")),calendar:()=>W8.filter(e=>e.use.includes("calendar")),menu:()=>W8.filter(e=>e.use.includes("menu")),shared:()=>W8.filter(e=>e.use.includes("shared")),yearMode:()=>W8.filter(e=>e.use.includes("year-mode"))},o0=(e,t,a)=>{const c=[];return YCe[t]().forEach(n=>{e[n.name]&&c.push(n.name)}),a!=null&&a.length&&a.forEach(n=>{n.slot&&c.push(n.slot)}),c},Uu=e=>{const t=s.computed(()=>c=>e.value?c?e.value.open:e.value.close:""),a=s.computed(()=>c=>e.value?c?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:a}},Wu=(e,t)=>{const{defaultedRange:a,defaultedTz:c}=a3(e),n=$1(bt($1(),c.value.timezone)),r=s.ref([{month:P2(n),year:L2(n)}]),i=d=>{const h={hours:_8(n),minutes:Ya(n),seconds:0};return a.value.enabled?[h[d],h[d]]:h[d]},o=s.reactive({hours:i("hours"),minutes:i("minutes"),seconds:i("seconds")});s.watch(a,(d,h)=>{d.enabled!==h.enabled&&(o.hours=i("hours"),o.minutes=i("minutes"),o.seconds=i("seconds"))},{deep:!0});const l=s.computed({get:()=>e.internalModelValue,set:d=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",d)}}),f=s.computed(()=>d=>r.value[d]?r.value[d].month:0),u=s.computed(()=>d=>r.value[d]?r.value[d].year:0);return{calendars:r,time:o,modelValue:l,month:f,year:u,today:n}},GCe=(e,t)=>{const{defaultedMultiCalendars:a,defaultedMultiDates:c,defaultedHighlight:n,defaultedTz:r,propDates:i,defaultedRange:o}=a3(t),{isDisabled:l}=f5(t),f=s.ref(null),u=s.ref(bt(new Date,r.value.timezone)),d=S=>{!S.current&&t.hideOffsetDates||(f.value=S.value)},h=()=>{f.value=null},p=S=>Array.isArray(e.value)&&o.value.enabled&&e.value[0]&&f.value?S?x3(f.value,e.value[0]):r3(f.value,e.value[0]):!0,v=(S,U)=>{const G=()=>e.value?U?e.value[0]||null:e.value[1]:null,A=e.value&&Array.isArray(e.value)?G():null;return I2($1(S.value),A)},m=S=>{const U=Array.isArray(e.value)?e.value[0]:null;return S?!r3(f.value??null,U):!0},y=(S,U=!0)=>(o.value.enabled||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!S.current?!1:I2($1(S.value),e.value[U?0:1]):o.value.enabled?v(S,U)&&m(U)||I2(S.value,Array.isArray(e.value)?e.value[0]:null)&&p(U):!1,g=(S,U)=>{if(Array.isArray(e.value)&&e.value[0]&&e.value.length===1){const G=I2(S.value,f.value);return U?x3(e.value[0],S.value)&&G:r3(e.value[0],S.value)&&G}return!1},M=S=>!e.value||t.hideOffsetDates&&!S.current?!1:o.value.enabled?t.modelAuto&&Array.isArray(e.value)?I2(S.value,e.value[0]?e.value[0]:u.value):!1:c.value.enabled&&Array.isArray(e.value)?e.value.some(U=>I2(U,S.value)):I2(S.value,e.value?e.value:u.value),x=S=>{if(o.value.autoRange||t.weekPicker){if(f.value){if(t.hideOffsetDates&&!S.current)return!1;const U=e6(f.value,+o.value.autoRange),G=Xt($1(f.value),t.weekStart);return t.weekPicker?I2(G[1],$1(S.value)):I2(U,$1(S.value))}return!1}return!1},k=S=>{if(o.value.autoRange||t.weekPicker){if(f.value){const U=e6(f.value,+o.value.autoRange);if(t.hideOffsetDates&&!S.current)return!1;const G=Xt($1(f.value),t.weekStart);return t.weekPicker?x3(S.value,G[0])&&r3(S.value,G[1]):x3(S.value,f.value)&&r3(S.value,U)}return!1}return!1},b=S=>{if(o.value.autoRange||t.weekPicker){if(f.value){if(t.hideOffsetDates&&!S.current)return!1;const U=Xt($1(f.value),t.weekStart);return t.weekPicker?I2(U[0],S.value):I2(f.value,S.value)}return!1}return!1},_=S=>Jj(e.value,f.value,S.value),C=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,H=()=>t.modelAuto?tk1(t.internalModelValue):!0,V=S=>{if(t.weekPicker)return!1;const U=o.value.enabled?!y(S)&&!y(S,!1):!0;return!l(S.value)&&!M(S)&&!(!S.current&&t.hideOffsetDates)&&U},N=S=>o.value.enabled?t.modelAuto?C()&&M(S):!1:M(S),L=S=>n.value?MCe(S.value,i.value.highlight):!1,w=S=>{const U=l(S.value);return U&&(typeof n.value=="function"?!n.value(S.value,U):!n.value.options.highlightDisabled)},P=S=>{var U;return typeof n.value=="function"?n.value(S.value):(U=n.value.weekdays)==null?void 0:U.includes(S.value.getDay())},j=S=>(o.value.enabled||t.weekPicker)&&(!(a.value.count>0)||S.current)&&H()&&!(!S.current&&t.hideOffsetDates)&&!M(S)?_(S):!1,T=S=>{const{isRangeStart:U,isRangeEnd:G}=Z(S),A=o.value.enabled?U||G:!1;return{dp__cell_offset:!S.current,dp__pointer:!t.disabled&&!(!S.current&&t.hideOffsetDates)&&!l(S.value),dp__cell_disabled:l(S.value),dp__cell_highlight:!w(S)&&(L(S)||P(S))&&!N(S)&&!A&&!b(S)&&!(j(S)&&t.weekPicker)&&!G,dp__cell_highlight_active:!w(S)&&(L(S)||P(S))&&N(S),dp__today:!t.noToday&&I2(S.value,u.value)&&S.current,"dp--past":r3(S.value,u.value),"dp--future":x3(S.value,u.value)}},R=S=>({dp__active_date:N(S),dp__date_hover:V(S)}),Y=S=>{if(e.value&&!Array.isArray(e.value)){const U=Xt(e.value,t.weekStart);return{...I(S),dp__range_start:I2(U[0],S.value),dp__range_end:I2(U[1],S.value),dp__range_between_week:x3(S.value,U[0])&&r3(S.value,U[1])}}return{...I(S)}},e1=S=>{if(e.value&&Array.isArray(e.value)){const U=Xt(e.value[0],t.weekStart),G=e.value[1]?Xt(e.value[1],t.weekStart):[];return{...I(S),dp__range_start:I2(U[0],S.value)||I2(G[0],S.value),dp__range_end:I2(U[1],S.value)||I2(G[1],S.value),dp__range_between_week:x3(S.value,U[0])&&r3(S.value,U[1])||x3(S.value,G[0])&&r3(S.value,G[1]),dp__range_between:x3(S.value,U[1])&&r3(S.value,G[0])}}return{...I(S)}},Z=S=>{const U=a.value.count>0?S.current&&y(S)&&H():y(S)&&H(),G=a.value.count>0?S.current&&y(S,!1)&&H():y(S,!1)&&H();return{isRangeStart:U,isRangeEnd:G}},W=S=>{const{isRangeStart:U,isRangeEnd:G}=Z(S);return{dp__range_start:U,dp__range_end:G,dp__range_between:j(S),dp__date_hover:I2(S.value,f.value)&&!U&&!G&&!t.weekPicker,dp__date_hover_start:g(S,!0),dp__date_hover_end:g(S,!1)}},I=S=>({...W(S),dp__cell_auto_range:k(S),dp__cell_auto_range_start:b(S),dp__cell_auto_range_end:x(S)}),E=S=>o.value.enabled?o.value.autoRange?I(S):t.modelAuto?{...R(S),...W(S)}:t.weekPicker?e1(S):W(S):t.weekPicker?Y(S):R(S);return{setHoverDate:d,clearHoverDate:h,getDayClassData:S=>t.hideOffsetDates&&!S.current?{}:{...T(S),...E(S),[t.dayClass?t.dayClass(S.value):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName}}},f5=e=>{const{defaultedFilters:t,defaultedRange:a,propDates:c,defaultedMultiDates:n}=a3(e),r=w=>c.value.disabledDates?typeof c.value.disabledDates=="function"?c.value.disabledDates($1(w)):!!G$(w,c.value.disabledDates):!1,i=w=>{const P=c.value.maxDate?x3(w,c.value.maxDate):!1,j=c.value.minDate?r3(w,c.value.minDate):!1,T=r(w),R=t.value.months.map(I=>+I).includes(P2(w)),Y=e.disabledWeekDays.length?e.disabledWeekDays.some(I=>+I===sze(w)):!1,e1=d(w),Z=L2(w),W=Z<+e.yearRange[0]||Z>+e.yearRange[1];return!(P||j||T||R||W||Y||e1)},o=(w,P)=>r3(...va(c.value.minDate,w,P))||I2(...va(c.value.minDate,w,P)),l=(w,P)=>x3(...va(c.value.maxDate,w,P))||I2(...va(c.value.maxDate,w,P)),f=(w,P,j)=>{let T=!1;return c.value.maxDate&&j&&l(w,P)&&(T=!0),c.value.minDate&&!j&&o(w,P)&&(T=!0),T},u=(w,P,j,T)=>{let R=!1;return T?c.value.minDate&&c.value.maxDate?R=f(w,P,j):(c.value.minDate&&o(w,P)||c.value.maxDate&&l(w,P))&&(R=!0):R=!0,R},d=w=>Array.isArray(c.value.allowedDates)&&!c.value.allowedDates.length?!0:c.value.allowedDates?!G$(w,c.value.allowedDates):!1,h=w=>!i(w),p=w=>a.value.noDisabledRange?!OM1({start:w[0],end:w[1]}).some(P=>h(P)):!0,v=w=>{if(w){const P=L2(w);return P>=+e.yearRange[0]&&P<=e.yearRange[1]}return!0},m=(w,P)=>!!(Array.isArray(w)&&w[P]&&(a.value.maxRange||a.value.minRange)&&v(w[P])),y=(w,P,j=0)=>{if(m(P,j)&&v(w)){const T=DM1(w,P[j]),R=ik1(P[j],w),Y=R.length===1?0:R.filter(Z=>h(Z)).length,e1=Math.abs(T)-(a.value.minMaxRawRange?0:Y);if(a.value.minRange&&a.value.maxRange)return e1>=+a.value.minRange&&e1<=+a.value.maxRange;if(a.value.minRange)return e1>=+a.value.minRange;if(a.value.maxRange)return e1<=+a.value.maxRange}return!0},g=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,M=w=>Array.isArray(w)?[w[0]?wY(w[0]):null,w[1]?wY(w[1]):null]:wY(w),x=(w,P,j)=>w.find(T=>+T.hours===_8(P)&&T.minutes==="*"?!0:+T.minutes===Ya(P)&&+T.hours===_8(P))&&j,k=(w,P,j)=>{const[T,R]=w,[Y,e1]=P;return!x(T,Y,j)&&!x(R,e1,j)&&j},b=(w,P)=>{const j=Array.isArray(P)?P:[P];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?k(e.disabledTimes,j,w):!j.some(T=>x(e.disabledTimes,T,w)):w},_=(w,P)=>{const j=Array.isArray(P)?[yi(P[0]),P[1]?yi(P[1]):void 0]:yi(P),T=!e.disabledTimes(j);return w&&T},C=(w,P)=>e.disabledTimes?Array.isArray(e.disabledTimes)?b(P,w):_(P,w):P,H=w=>{let P=!0;if(!w||g())return!0;const j=!c.value.minDate&&!c.value.maxDate?M(w):w;return(e.maxTime||c.value.maxDate)&&(P=$a1(e.maxTime,c.value.maxDate,"max",Y3(j),P)),(e.minTime||c.value.minDate)&&(P=$a1(e.minTime,c.value.minDate,"min",Y3(j),P)),C(w,P)},V=w=>{if(!e.monthPicker)return!0;let P=!0;const j=$1(t6(w));if(c.value.minDate&&c.value.maxDate){const T=$1(t6(c.value.minDate)),R=$1(t6(c.value.maxDate));return x3(j,T)&&r3(j,R)||I2(j,T)||I2(j,R)}if(c.value.minDate){const T=$1(t6(c.value.minDate));P=x3(j,T)||I2(j,T)}if(c.value.maxDate){const T=$1(t6(c.value.maxDate));P=r3(j,T)||I2(j,T)}return P},N=s.computed(()=>w=>!e.enableTimePicker||e.ignoreTimeValidation?!0:H(w)),L=s.computed(()=>w=>e.monthPicker?Array.isArray(w)&&(a.value.enabled||n.value.enabled)?!w.filter(P=>!V(P)).length:V(w):!0);return{isDisabled:h,validateDate:i,validateMonthYearInRange:u,isDateRangeAllowed:p,checkMinMaxRange:y,isValidTime:H,isTimeValid:N,isMonthValid:L}},eU=()=>{const e=s.computed(()=>(c,n)=>c==null?void 0:c.includes(n)),t=s.computed(()=>(c,n)=>c.count?c.solo?!0:n===0:!0),a=s.computed(()=>(c,n)=>c.count?c.solo?!0:n===c.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:t,showRightIcon:a}},ZCe=(e,t,a)=>{const c=s.ref(0),n=s.reactive({[vi.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[vi.calendar]:!1,[vi.header]:!1}),r=s.computed(()=>e.monthPicker||e.timePicker),i=d=>{var h;if((h=e.flow)!=null&&h.length){if(!d&&r.value)return u();n[d]=!0,Object.keys(n).filter(p=>!n[p]).length||u()}},o=()=>{var d;(d=e.flow)!=null&&d.length&&c.value!==-1&&(c.value+=1,t("flow-step",c.value),u())},l=()=>{c.value=-1},f=(d,h,...p)=>{var v,m;e.flow[c.value]===d&&a.value&&((m=(v=a.value)[h])==null||m.call(v,...p))},u=()=>{f(u4.month,"toggleMonthPicker",!0),f(u4.year,"toggleYearPicker",!0),f(u4.calendar,"toggleTimePicker",!1,!0),f(u4.time,"toggleTimePicker",!0,!0);const d=e.flow[c.value];(d===u4.hours||d===u4.minutes||d===u4.seconds)&&f(d,"toggleTimePicker",!0,!0,d)};return{childMount:i,updateFlowStep:o,resetFlow:l,flowStep:c}},tU={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},emitTimezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},calendarClassName:{type:String,default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0}},P6={...tU,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})}},XCe={key:1,class:"dp__input_wrap"},KCe=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],QCe={key:2,class:"dp__clear_icon"},JCe=s.defineComponent({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...tU},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:a}){const c=a,n=e,{defaultedTextInput:r,defaultedAriaLabels:i,defaultedInline:o,defaultedConfig:l,defaultedRange:f,defaultedMultiDates:u,getDefaultPattern:d,getDefaultStartTime:h}=a3(n),{checkMinMaxRange:p}=f5(n),v=s.ref(),m=s.ref(null),y=s.ref(!1),g=s.ref(!1),M=s.computed(()=>({dp__pointer:!n.disabled&&!n.readonly&&!r.value.enabled,dp__disabled:n.disabled,dp__input_readonly:!r.value.enabled,dp__input:!0,dp__input_icon_pad:!n.hideInputIcon,dp__input_valid:!!n.state,dp__input_invalid:n.state===!1,dp__input_focus:y.value||n.isMenuOpen,dp__input_reg:!r.value.enabled,[n.inputClassName]:!!n.inputClassName})),x=()=>{c("set-input-date",null),n.clearable&&n.autoApply&&(c("set-empty-date"),v.value=null)},k=R=>{const Y=h();return kCe(R,r.value.format??d(),Y??ok1({},n.enableSeconds),n.inputValue,g.value,n.formatLocale)},b=R=>{const{rangeSeparator:Y}=r.value,[e1,Z]=R.split(`${Y}`);if(e1){const W=k(e1.trim()),I=Z?k(Z.trim()):null;if(Ss(W,I))return;const E=W&&I?[W,I]:[W];p(I,E,0)&&(v.value=W?E:null)}},_=()=>{g.value=!0},C=R=>{if(f.value.enabled)b(R);else if(u.value.enabled){const Y=R.split(";");v.value=Y.map(e1=>k(e1.trim())).filter(e1=>e1)}else v.value=k(R)},H=R=>{var Y;const e1=typeof R=="string"?R:(Y=R.target)==null?void 0:Y.value;e1!==""?(r.value.openMenu&&!n.isMenuOpen&&c("open"),C(e1),c("set-input-date",v.value)):x(),g.value=!1,c("update:input-value",e1)},V=R=>{r.value.enabled?(C(R.target.value),r.value.enterSubmit&&eX(v.value)&&n.inputValue!==""?(c("set-input-date",v.value,!0),v.value=null):r.value.enterSubmit&&n.inputValue===""&&(v.value=null,c("clear"))):w(R)},N=R=>{r.value.enabled&&r.value.tabSubmit&&C(R.target.value),r.value.tabSubmit&&eX(v.value)&&n.inputValue!==""?(c("set-input-date",v.value,!0,!0),v.value=null):r.value.tabSubmit&&n.inputValue===""&&(v.value=null,c("clear",!0))},L=()=>{y.value=!0,c("focus"),s.nextTick().then(()=>{var R;r.value.enabled&&r.value.selectOnFocus&&((R=m.value)==null||R.select())})},w=R=>{R.preventDefault(),Va(R,l.value,!0),r.value.enabled&&r.value.openMenu&&!o.value.input&&!n.isMenuOpen?c("open"):r.value.enabled||c("toggle")},P=()=>{c("real-blur"),y.value=!1,(!n.isMenuOpen||o.value.enabled&&o.value.input)&&c("blur"),n.autoApply&&r.value.enabled&&v.value&&!n.isMenuOpen&&(c("set-input-date",v.value),c("select-date"),v.value=null)},j=R=>{Va(R,l.value,!0),c("clear")},T=R=>{if(R.key==="Tab"&&N(R),R.key==="Enter"&&V(R),!r.value.enabled){if(R.code==="Tab")return;R.preventDefault()}};return t({focusInput:()=>{var R;(R=m.value)==null||R.focus({preventScroll:!0})},setParsedDate:R=>{v.value=R}}),(R,Y)=>{var e1;return s.openBlock(),s.createElementBlock("div",{onClick:w},[R.$slots.trigger&&!R.$slots["dp-input"]&&!s.unref(o).enabled?s.renderSlot(R.$slots,"trigger",{key:0}):s.createCommentVNode("",!0),!R.$slots.trigger&&(!s.unref(o).enabled||s.unref(o).input)?(s.openBlock(),s.createElementBlock("div",XCe,[R.$slots["dp-input"]&&!R.$slots.trigger&&(!s.unref(o).enabled||s.unref(o).enabled&&s.unref(o).input)?s.renderSlot(R.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:H,onEnter:V,onTab:N,onClear:j,onBlur:P,onKeypress:T,onPaste:_,openMenu:()=>R.$emit("open"),closeMenu:()=>R.$emit("close"),toggleMenu:()=>R.$emit("toggle")}):s.createCommentVNode("",!0),R.$slots["dp-input"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("input",{key:1,id:R.uid?`dp-input-${R.uid}`:void 0,ref_key:"inputRef",ref:m,"data-test":"dp-input",name:R.name,class:s.normalizeClass(M.value),inputmode:s.unref(r).enabled?"text":"none",placeholder:R.placeholder,disabled:R.disabled,readonly:R.readonly,required:R.required,value:e.inputValue,autocomplete:R.autocomplete,"aria-label":(e1=s.unref(i))==null?void 0:e1.input,"aria-disabled":R.disabled||void 0,"aria-invalid":R.state===!1?!0:void 0,onInput:H,onBlur:P,onFocus:L,onKeypress:T,onKeydown:T,onPaste:_},null,42,KCe)),s.createElementVNode("div",{onClick:Y[2]||(Y[2]=Z=>c("toggle"))},[R.$slots["input-icon"]&&!R.hideInputIcon?(s.openBlock(),s.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:Y[0]||(Y[0]=Z=>c("toggle"))},[s.renderSlot(R.$slots,"input-icon")])):s.createCommentVNode("",!0),!R.$slots["input-icon"]&&!R.hideInputIcon&&!R.$slots["dp-input"]?(s.openBlock(),s.createBlock(s.unref(Ks),{key:1,class:"dp__input_icon dp__input_icons",onClick:Y[1]||(Y[1]=Z=>c("toggle"))})):s.createCommentVNode("",!0)]),R.$slots["clear-icon"]&&e.inputValue&&R.clearable&&!R.disabled&&!R.readonly?(s.openBlock(),s.createElementBlock("span",QCe,[s.renderSlot(R.$slots,"clear-icon",{clear:j})])):s.createCommentVNode("",!0),R.clearable&&!R.$slots["clear-icon"]&&e.inputValue&&!R.disabled&&!R.readonly?(s.openBlock(),s.createBlock(s.unref(QM1),{key:3,class:"dp__clear_icon dp__input_icons","data-test":"clear-icon",onClick:Y[3]||(Y[3]=s.withModifiers(Z=>j(Z),["prevent"]))})):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])}}}),e_e=["title"],t_e=["disabled"],a_e=s.defineComponent({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...P6},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const a=t,c=e,{defaultedActionRow:n,defaultedPreviewFormat:r,defaultedMultiCalendars:i,defaultedTextInput:o,defaultedInline:l,defaultedRange:f,defaultedMultiDates:u,getDefaultPattern:d}=a3(c),{isTimeValid:h,isMonthValid:p}=f5(c),{buildMatrix:v}=l5(),m=s.ref(null),y=s.ref(null),g=s.ref(!1),M=s.ref({}),x=s.ref(null),k=s.ref(null);s.onMounted(()=>{c.arrowNavigation&&v([D3(m),D3(y)],"actionRow"),b(),window.addEventListener("resize",b)}),s.onUnmounted(()=>{window.removeEventListener("resize",b)});const b=()=>{g.value=!1,setTimeout(()=>{var T,R;const Y=(T=x.value)==null?void 0:T.getBoundingClientRect(),e1=(R=k.value)==null?void 0:R.getBoundingClientRect();Y&&e1&&(M.value.maxWidth=`${e1.width-Y.width-20}px`),g.value=!0},0)},_=s.computed(()=>f.value.enabled&&!f.value.partialRange&&c.internalModelValue?c.internalModelValue.length===2:!0),C=s.computed(()=>!h.value(c.internalModelValue)||!p.value(c.internalModelValue)||!_.value),H=()=>{const T=r.value;return c.timePicker||c.monthPicker,T(Y3(c.internalModelValue))},V=()=>{const T=c.internalModelValue;return i.value.count>0?`${N(T[0])} - ${N(T[1])}`:[N(T[0]),N(T[1])]},N=T=>lk1(T,r.value,c.formatLocale,o.value.rangeSeparator,c.modelAuto,d()),L=s.computed(()=>!c.internalModelValue||!c.menuMount?"":typeof r.value=="string"?Array.isArray(c.internalModelValue)?c.internalModelValue.length===2&&c.internalModelValue[1]?V():u.value.enabled?c.internalModelValue.map(T=>`${N(T)}`):c.modelAuto?`${N(c.internalModelValue[0])}`:`${N(c.internalModelValue[0])} -`:N(c.internalModelValue):H()),w=()=>u.value.enabled?"; ":" - ",P=s.computed(()=>Array.isArray(L.value)?L.value.join(w()):L.value),j=()=>{h.value(c.internalModelValue)&&p.value(c.internalModelValue)&&_.value?a("select-date"):a("invalid-select")};return(T,R)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"actionRowRef",ref:k,class:"dp__action_row"},[T.$slots["action-row"]?s.renderSlot(T.$slots,"action-row",s.normalizeProps(s.mergeProps({key:0},{internalModelValue:T.internalModelValue,disabled:C.value,selectDate:()=>T.$emit("select-date"),closePicker:()=>T.$emit("close-picker")}))):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.unref(n).showPreview?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__selection_preview",title:P.value,style:s.normalizeStyle(M.value)},[T.$slots["action-preview"]&&g.value?s.renderSlot(T.$slots,"action-preview",{key:0,value:T.internalModelValue}):s.createCommentVNode("",!0),!T.$slots["action-preview"]&&g.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(P.value),1)],64)):s.createCommentVNode("",!0)],12,e_e)):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"actionBtnContainer",ref:x,class:"dp__action_buttons","data-dp-element":"action-row"},[T.$slots["action-buttons"]?s.renderSlot(T.$slots,"action-buttons",{key:0,value:T.internalModelValue}):s.createCommentVNode("",!0),T.$slots["action-buttons"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!s.unref(l).enabled&&s.unref(n).showCancel?(s.openBlock(),s.createElementBlock("button",{key:0,ref_key:"cancelButtonRef",ref:m,type:"button",class:"dp__action_button dp__action_cancel",onClick:R[0]||(R[0]=Y=>T.$emit("close-picker")),onKeydown:R[1]||(R[1]=Y=>s.unref(G4)(Y,()=>T.$emit("close-picker")))},s.toDisplayString(T.cancelText),545)):s.createCommentVNode("",!0),s.unref(n).showNow?(s.openBlock(),s.createElementBlock("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:R[2]||(R[2]=Y=>T.$emit("select-now")),onKeydown:R[3]||(R[3]=Y=>s.unref(G4)(Y,()=>T.$emit("select-now")))},s.toDisplayString(T.nowButtonLabel),33)):s.createCommentVNode("",!0),s.unref(n).showSelect?(s.openBlock(),s.createElementBlock("button",{key:2,ref_key:"selectButtonRef",ref:y,type:"button",class:"dp__action_button dp__action_select",disabled:C.value,"data-test":"select-button",onKeydown:R[4]||(R[4]=Y=>s.unref(G4)(Y,()=>j())),onClick:j},s.toDisplayString(T.selectText),41,t_e)):s.createCommentVNode("",!0)],64))],512)],64))],512))}}),c_e={class:"dp__selection_grid_header"},n_e=["aria-selected","aria-disabled","data-test","onClick","onKeydown","onMouseover"],r_e=["aria-label"],Yu=s.defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:a}){const{setSelectionGrid:c,buildMultiLevelMatrix:n,setMonthPicker:r}=l5(),i=a,o=e,{defaultedAriaLabels:l,defaultedTextInput:f,defaultedConfig:u}=a3(o),{hideNavigationButtons:d}=eU(),h=s.ref(!1),p=s.ref(null),v=s.ref(null),m=s.ref([]),y=s.ref(),g=s.ref(null),M=s.ref(0),x=s.ref(null);s.onBeforeUpdate(()=>{p.value=null}),s.onMounted(()=>{s.nextTick().then(()=>L()),o.noOverlayFocus||b(),k(!0)}),s.onUnmounted(()=>k(!1));const k=E=>{var S;o.arrowNavigation&&((S=o.headerRefs)!=null&&S.length?r(E):c(E))},b=()=>{var E;const S=D3(v);S&&(f.value.enabled||(p.value?(E=p.value)==null||E.focus({preventScroll:!0}):S.focus({preventScroll:!0})),h.value=S.clientHeight<S.scrollHeight)},_=s.computed(()=>({dp__overlay:!0,"dp--overlay-absolute":!o.useRelative,"dp--overlay-relative":o.useRelative})),C=s.computed(()=>o.useRelative?{height:`${o.height}px`,width:"260px"}:void 0),H=s.computed(()=>({dp__overlay_col:!0})),V=s.computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:h.value,dp__button_bottom:o.isLast})),N=s.computed(()=>{var E,S;return{dp__overlay_container:!0,dp__container_flex:((E=o.items)==null?void 0:E.length)<=6,dp__container_block:((S=o.items)==null?void 0:S.length)>6}});s.watch(()=>o.items,()=>L(!1),{deep:!0});const L=(E=!0)=>{s.nextTick().then(()=>{const S=D3(p),U=D3(v),G=D3(g),A=D3(x),B=G?G.getBoundingClientRect().height:0;U&&(U.getBoundingClientRect().height?M.value=U.getBoundingClientRect().height-B:M.value=u.value.modeHeight-B),S&&A&&E&&(A.scrollTop=S.offsetTop-A.offsetTop-(M.value/2-S.getBoundingClientRect().height)-B)})},w=E=>{E.disabled||i("selected",E.value)},P=()=>{i("toggle"),i("reset-flow")},j=()=>{o.escClose&&P()},T=(E,S,U,G)=>{E&&((S.active||S.value===o.focusValue)&&(p.value=E),o.arrowNavigation&&(Array.isArray(m.value[U])?m.value[U][G]=E:m.value[U]=[E],R()))},R=()=>{var E,S;const U=(E=o.headerRefs)!=null&&E.length?[o.headerRefs].concat(m.value):m.value.concat([o.skipButtonRef?[]:[g.value]]);n(Y3(U),(S=o.headerRefs)!=null&&S.length?"monthPicker":"selectionGrid")},Y=E=>{o.arrowNavigation||Va(E,u.value,!0)},e1=E=>{y.value=E,i("hover-value",E)},Z=()=>{if(P(),!o.isLast){const E=gCe(o.menuWrapRef??null,"action-row");if(E){const S=ak1(E);S==null||S.focus()}}},W=E=>{switch(E.key){case Xe.esc:return j();case Xe.arrowLeft:return Y(E);case Xe.arrowRight:return Y(E);case Xe.arrowUp:return Y(E);case Xe.arrowDown:return Y(E);default:return}},I=E=>{if(E.key===Xe.enter)return P();if(E.key===Xe.tab)return Z()};return t({focusGrid:b}),(E,S)=>{var U;return s.openBlock(),s.createElementBlock("div",{ref_key:"gridWrapRef",ref:v,class:s.normalizeClass(_.value),style:s.normalizeStyle(C.value),role:"dialog",tabindex:"0",onKeydown:W},[s.createElementVNode("div",{ref_key:"containerRef",ref:x,class:s.normalizeClass(N.value),role:"grid",style:s.normalizeStyle({"--dp-overlay-height":`${M.value}px`})},[s.createElementVNode("div",c_e,[s.renderSlot(E.$slots,"header")]),E.$slots.overlay?s.renderSlot(E.$slots,"overlay",{key:0}):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(E.items,(G,A)=>(s.openBlock(),s.createElementBlock("div",{key:A,class:s.normalizeClass(["dp__overlay_row",{dp__flex_row:E.items.length>=3}]),role:"row"},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(G,(B,Q)=>(s.openBlock(),s.createElementBlock("div",{key:B.value,ref_for:!0,ref:c1=>T(c1,B,A,Q),role:"gridcell",class:s.normalizeClass(H.value),"aria-selected":B.active||void 0,"aria-disabled":B.disabled||void 0,tabindex:"0","data-test":B.text,onClick:c1=>w(B),onKeydown:c1=>s.unref(G4)(c1,()=>w(B),!0),onMouseover:c1=>e1(B.value)},[s.createElementVNode("div",{class:s.normalizeClass(B.className)},[E.$slots.item?s.renderSlot(E.$slots,"item",{key:0,item:B}):s.createCommentVNode("",!0),E.$slots.item?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(B.text),1)],64))],2)],42,n_e))),128))],2))),128))],6),E.$slots["button-icon"]?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:0,ref_key:"toggleButton",ref:g,type:"button","aria-label":(U=s.unref(l))==null?void 0:U.toggleOverlay,class:s.normalizeClass(V.value),tabindex:"0",onClick:P,onKeydown:I},[s.renderSlot(E.$slots,"button-icon")],42,r_e)),[[s.vShow,!s.unref(d)(E.hideNavigation,E.type)]]):s.createCommentVNode("",!0)],38)}}}),aU=s.defineComponent({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean}},setup(e){const t=e,a=s.computed(()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0]),c=s.computed(()=>({dp__instance_calendar:t.multiCalendars>0}));return(n,r)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({dp__menu_inner:!n.stretch,"dp--menu--inner-stretched":n.stretch,dp__flex_display:n.multiCalendars>0,"dp--flex-display-collapsed":n.collapse})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.value,(i,o)=>(s.openBlock(),s.createElementBlock("div",{key:i,class:s.normalizeClass(c.value)},[s.renderSlot(n.$slots,"default",{instance:i,index:o})],2))),128))],2))}}),i_e=["aria-label","aria-disabled"],Pl=s.defineComponent({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const a=t,c=s.ref(null);return s.onMounted(()=>a("set-ref",c)),(n,r)=>(s.openBlock(),s.createElementBlock("button",{ref_key:"elRef",ref:c,type:"button",class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":n.ariaLabel,"aria-disabled":n.disabled||void 0,onClick:r[0]||(r[0]=i=>n.$emit("activate")),onKeydown:r[1]||(r[1]=i=>s.unref(G4)(i,()=>n.$emit("activate"),!0))},[s.createElementVNode("span",{class:s.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:n.disabled}])},[s.renderSlot(n.$slots,"default")],2)],40,i_e))}}),o_e={class:"dp--year-mode-picker"},s_e=["aria-label","data-test"],dk1=s.defineComponent({__name:"YearModePicker",props:{...P6,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:t}){const a=t,c=e,{showRightIcon:n,showLeftIcon:r}=eU(),{defaultedConfig:i,defaultedMultiCalendars:o,defaultedAriaLabels:l,defaultedTransitions:f}=a3(c),{showTransition:u,transitionName:d}=Uu(f),h=(m=!1,y)=>{a("toggle-year-picker",{flow:m,show:y})},p=m=>{a("year-select",m)},v=(m=!1)=>{a("handle-year",m)};return(m,y)=>{var g,M,x;return s.openBlock(),s.createElementBlock("div",o_e,[s.unref(r)(s.unref(o),e.instance)?(s.openBlock(),s.createBlock(Pl,{key:0,ref:"mpPrevIconRef","aria-label":(g=s.unref(l))==null?void 0:g.prevYear,disabled:e.isDisabled(!1),onActivate:y[0]||(y[0]=k=>v(!1))},{default:s.withCtx(()=>[m.$slots["arrow-left"]?s.renderSlot(m.$slots,"arrow-left",{key:0}):s.createCommentVNode("",!0),m.$slots["arrow-left"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(P11),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.createElementVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":(M=s.unref(l))==null?void 0:M.openYearsOverlay,"data-test":`year-mode-btn-${e.instance}`,onClick:y[1]||(y[1]=()=>h(!1)),onKeydown:y[2]||(y[2]=s.withKeys(()=>h(!1),["enter"]))},[m.$slots.year?s.renderSlot(m.$slots,"year",{key:0,year:e.year}):s.createCommentVNode("",!0),m.$slots.year?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(e.year),1)],64))],40,s_e),s.unref(n)(s.unref(o),e.instance)?(s.openBlock(),s.createBlock(Pl,{key:1,ref:"mpNextIconRef","aria-label":(x=s.unref(l))==null?void 0:x.nextYear,disabled:e.isDisabled(!0),onActivate:y[3]||(y[3]=k=>v(!0))},{default:s.withCtx(()=>[m.$slots["arrow-right"]?s.renderSlot(m.$slots,"arrow-right",{key:0}):s.createCommentVNode("",!0),m.$slots["arrow-right"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(O11),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:s.unref(d)(e.showYearPicker),css:s.unref(u)},{default:s.withCtx(()=>[e.showYearPicker?(s.openBlock(),s.createBlock(Yu,{key:0,items:e.items,"text-input":m.textInput,"esc-close":m.escClose,config:m.config,"is-last":m.autoApply&&!s.unref(i).keepActionRow,"hide-navigation":m.hideNavigation,"aria-labels":m.ariaLabels,type:"year",onToggle:h,onSelected:y[4]||(y[4]=k=>p(k))},s.createSlots({"button-icon":s.withCtx(()=>[m.$slots["calendar-icon"]?s.renderSlot(m.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),m.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(Ks),{key:1}))]),_:2},[m.$slots["year-overlay-value"]?{name:"item",fn:s.withCtx(({item:k})=>[s.renderSlot(m.$slots,"year-overlay-value",{text:k.text,value:k.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels"])):s.createCommentVNode("",!0)]),_:3},8,["name","css"])])}}}),U11=(e,t,a)=>{if(t.value&&Array.isArray(t.value))if(t.value.some(c=>I2(e,c))){const c=t.value.filter(n=>!I2(n,e));t.value=c.length?c:null}else(a&&+a>t.value.length||!a)&&t.value.push(e);else t.value=[e]},W11=(e,t,a)=>{let c=e.value?e.value.slice():[];return c.length===2&&c[1]!==null&&(c=[]),c.length?r3(t,c[0])?(c.unshift(t),a("range-start",c[0]),a("range-start",c[1])):(c[1]=t,a("range-end",t)):(c=[t],a("range-start",t)),c},cU=(e,t,a,c)=>{e&&(e[0]&&e[1]&&a&&t("auto-apply"),e[0]&&!e[1]&&c&&a&&t("auto-apply"))},hk1=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(t=>bt($1(t),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=bt($1(e.value),e.timezone))},pk1=(e,t,a,c)=>Array.isArray(t.value)&&(t.value.length===2||t.value.length===1&&c.value.partialRange)?c.value.fixedStart&&(x3(e,t.value[0])||I2(e,t.value[0]))?[t.value[0],e]:c.value.fixedEnd&&(r3(e,t.value[1])||I2(e,t.value[1]))?[e,t.value[1]]:(a("invalid-fixed-range",e),t.value):[],mk1=({multiCalendars:e,highlight:t,propDates:a,calendars:c,modelValue:n,props:r,filters:i,year:o,month:l,emit:f})=>{const u=s.computed(()=>F11(r.yearRange,r.locale,r.reverseYears)),d=s.ref([!1]),h=s.computed(()=>(_,C)=>{const H=ze(t6(new Date),{month:l.value(_),year:o.value(_)}),V=C?IM1(H):L11(H);return sk1(V,a.value.maxDate,a.value.minDate,r.preventMinMaxNavigation,C)}),p=()=>{for(let _=0;_<e.value.count;_++)if(_===0)c.value[_]=c.value[0];else{const C=ze($1(),c.value[_-1]);c.value[_]={month:P2(C),year:L2(H11(C,1))}}},v=_=>{if(!_)return p();const C=ze($1(),c.value[_]);return c.value[0].year=L2(KM1(C,e.value.count-1)),p()},m=_=>r.focusStartDate?_[0]:_[1]?_[1]:_[0],y=()=>{if(n.value){const _=Array.isArray(n.value)?m(n.value):n.value;c.value[0]={month:P2(_),year:L2(_)}}};s.onMounted(()=>{y(),e.value.count&&p()});const g=(_,C)=>{c.value[C].year=_,f("update-month-year",{instance:C,year:_,month:c.value[C].month}),e.value.count&&!e.value.solo&&v(C)},M=s.computed(()=>_=>As(u.value,C=>{var H;const V=o.value(_)===C.value,N=jf(C.value,Ts(a.value.minDate),Ts(a.value.maxDate))||((H=i.value.years)==null?void 0:H.includes(o.value(_))),L=j11(t.value,C.value);return{active:V,disabled:N,highlighted:L}})),x=(_,C)=>{g(_,C),b(C)},k=(_,C=!1)=>{if(!h.value(_,C)){const H=C?o.value(_)+1:o.value(_)-1;g(H,_)}},b=(_,C=!1,H)=>{C||f("reset-flow"),H!==void 0?d.value[_]=H:d.value[_]=!d.value[_],d.value[_]?f("overlay-toggle",{open:!0,overlay:u4.year}):(f("overlay-closed"),f("overlay-toggle",{open:!1,overlay:u4.year}))};return{isDisabled:h,groupedYears:M,showYearPicker:d,selectYear:g,toggleYearPicker:b,handleYearSelect:x,handleYear:k}},l_e=(e,t)=>{const{defaultedMultiCalendars:a,defaultedAriaLabels:c,defaultedTransitions:n,defaultedConfig:r,defaultedRange:i,defaultedHighlight:o,propDates:l,defaultedTz:f,defaultedFilters:u,defaultedMultiDates:d}=a3(e),{modelValue:h,year:p,month:v,calendars:m}=Wu(e,t),y=s.computed(()=>ek1(e.formatLocale,e.locale,e.monthNameFormat)),g=s.ref(null),{checkMinMaxRange:M}=f5(e),{selectYear:x,groupedYears:k,showYearPicker:b,toggleYearPicker:_,handleYearSelect:C,handleYear:H,isDisabled:V}=mk1({modelValue:h,multiCalendars:a,highlight:o,calendars:m,year:p,propDates:l,month:v,filters:u,props:e,emit:t});s.onMounted(()=>{e.startDate&&(h.value&&e.focusStartDate||!h.value)&&x(L2($1(e.startDate)),0)});const N=S=>S?{month:P2(S),year:L2(S)}:{month:null,year:null},L=()=>h.value?Array.isArray(h.value)?h.value.map(S=>N(S)):N(h.value):N(),w=(S,U)=>{const G=m.value[S],A=L();return Array.isArray(A)?A.some(B=>B.year===(G==null?void 0:G.year)&&B.month===U):(G==null?void 0:G.year)===A.year&&U===A.month},P=(S,U,G)=>{var A,B;const Q=L();return Array.isArray(Q)?p.value(U)===((A=Q[G])==null?void 0:A.year)&&S===((B=Q[G])==null?void 0:B.month):!1},j=(S,U)=>{if(i.value.enabled){const G=L();if(Array.isArray(h.value)&&Array.isArray(G)){const A=P(S,U,0)||P(S,U,1),B=s8(t6($1()),S,p.value(U));return Jj(h.value,g.value,B)&&!A}return!1}return!1},T=s.computed(()=>S=>As(y.value,U=>{var G;const A=w(S,U.value),B=jf(U.value,nk1(p.value(S),l.value.minDate),rk1(p.value(S),l.value.maxDate))||wCe(l.value.disabledDates,p.value(S)).includes(U.value)||((G=u.value.months)==null?void 0:G.includes(U.value)),Q=j(U.value,S),c1=fk1(o.value,U.value,p.value(S));return{active:A,disabled:B,isBetween:Q,highlighted:c1}})),R=(S,U)=>s8(t6($1()),S,p.value(U)),Y=(S,U)=>{const G=h.value?h.value:t6(new Date);h.value=s8(G,S,p.value(U)),t("auto-apply"),t("update-flow-step")},e1=(S,U)=>{const G=R(S,U);i.value.fixedEnd||i.value.fixedStart?h.value=pk1(G,h,t,i):h.value?M(G,h.value)&&(h.value=W11(h,R(S,U),t)):h.value=[R(S,U)],s.nextTick().then(()=>{cU(h.value,t,e.autoApply,e.modelAuto)})},Z=(S,U)=>{U11(R(S,U),h,d.value.limit),t("auto-apply",!0)},W=(S,U)=>(m.value[U].month=S,E(U,m.value[U].year,S),d.value.enabled?Z(S,U):i.value.enabled?e1(S,U):Y(S,U)),I=(S,U)=>{x(S,U),E(U,S,null)},E=(S,U,G)=>{let A=G;if(!A&&A!==0){const B=L();A=Array.isArray(B)?B[S].month:B.month}t("update-month-year",{instance:S,year:U,month:A})};return{groupedMonths:T,groupedYears:k,year:p,isDisabled:V,defaultedMultiCalendars:a,defaultedAriaLabels:c,defaultedTransitions:n,defaultedConfig:r,showYearPicker:b,modelValue:h,presetDate:(S,U)=>{hk1({value:S,modelValue:h,range:i.value.enabled,timezone:U?void 0:f.value.timezone}),t("auto-apply")},setHoverDate:(S,U)=>{g.value=R(S,U)},selectMonth:W,selectYear:I,toggleYearPicker:_,handleYearSelect:C,handleYear:H,getModelMonthYear:L}},f_e=s.defineComponent({compatConfig:{MODE:3},__name:"MonthPicker",props:{...P6},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=s.useSlots(),r=o0(n,"yearMode"),i=e;s.onMounted(()=>{i.shadow||c("mount",null)});const{groupedMonths:o,groupedYears:l,year:f,isDisabled:u,defaultedMultiCalendars:d,defaultedConfig:h,showYearPicker:p,modelValue:v,presetDate:m,setHoverDate:y,selectMonth:g,selectYear:M,toggleYearPicker:x,handleYearSelect:k,handleYear:b,getModelMonthYear:_}=l_e(i,c);return t({getSidebarProps:()=>({modelValue:v,year:f,getModelMonthYear:_,selectMonth:g,selectYear:M,handleYear:b}),presetDate:m,toggleYearPicker:C=>x(0,C)}),(C,H)=>(s.openBlock(),s.createBlock(aU,{"multi-calendars":s.unref(d).count,collapse:C.collapse,stretch:""},{default:s.withCtx(({instance:V})=>[C.$slots["top-extra"]?s.renderSlot(C.$slots,"top-extra",{key:0,value:C.internalModelValue}):s.createCommentVNode("",!0),C.$slots["month-year"]?s.renderSlot(C.$slots,"month-year",s.normalizeProps(s.mergeProps({key:1},{year:s.unref(f),months:s.unref(o)(V),years:s.unref(l)(V),selectMonth:s.unref(g),selectYear:s.unref(M),instance:V}))):(s.openBlock(),s.createBlock(Yu,{key:2,items:s.unref(o)(V),"arrow-navigation":C.arrowNavigation,"is-last":C.autoApply&&!s.unref(h).keepActionRow,"esc-close":C.escClose,height:s.unref(h).modeHeight,config:C.config,"no-overlay-focus":!!(C.noOverlayFocus||C.textInput),"use-relative":"",type:"month",onSelected:N=>s.unref(g)(N,V),onHoverValue:N=>s.unref(y)(N,V)},s.createSlots({header:s.withCtx(()=>[s.createVNode(dk1,s.mergeProps(C.$props,{items:s.unref(l)(V),instance:V,"show-year-picker":s.unref(p)[V],year:s.unref(f)(V),"is-disabled":N=>s.unref(u)(V,N),onHandleYear:N=>s.unref(b)(V,N),onYearSelect:N=>s.unref(k)(N,V),onToggleYearPicker:N=>s.unref(x)(V,N==null?void 0:N.flow,N==null?void 0:N.show)}),s.createSlots({_:2},[s.renderList(s.unref(r),(N,L)=>({name:N,fn:s.withCtx(w=>[s.renderSlot(C.$slots,N,s.normalizeProps(s.guardReactiveProps(w)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[C.$slots["month-overlay-value"]?{name:"item",fn:s.withCtx(({item:N})=>[s.renderSlot(C.$slots,"month-overlay-value",{text:N.text,value:N.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse"]))}}),u_e=(e,t)=>{const{modelValue:a}=Wu(e,t),c=s.ref(null),{defaultedHighlight:n,defaultedMultiDates:r,defaultedFilters:i,defaultedRange:o,propDates:l}=a3(e),f=s.ref();s.onMounted(()=>{e.startDate&&(a.value&&e.focusStartDate||!a.value)&&(f.value=L2($1(e.startDate)))});const u=v=>Array.isArray(a.value)?a.value.some(m=>L2(m)===v):a.value?L2(a.value)===v:!1,d=v=>o.value.enabled&&Array.isArray(a.value)?Jj(a.value,c.value,p(v)):!1,h=s.computed(()=>As(F11(e.yearRange,e.locale,e.reverseYears),v=>{const m=u(v.value),y=jf(v.value,Ts(l.value.minDate),Ts(l.value.maxDate))||i.value.years.includes(v.value),g=d(v.value)&&!m,M=j11(n.value,v.value);return{active:m,disabled:y,isBetween:g,highlighted:M}})),p=v=>ft(t6(new Date),v);return{groupedYears:h,modelValue:a,focusYear:f,setHoverValue:v=>{c.value=ft(t6(new Date),v)},selectYear:v=>{var m;if(t("update-month-year",{instance:0,year:v}),r.value.enabled)return a.value?Array.isArray(a.value)&&(((m=a.value)==null?void 0:m.map(y=>L2(y))).includes(v)?a.value=a.value.filter(y=>L2(y)!==v):a.value.push(ft(p0($1()),v))):a.value=[ft(p0($1()),v)],t("auto-apply",!0);o.value.enabled?(a.value=W11(a,p(v),t),s.nextTick().then(()=>{cU(a.value,t,e.autoApply,e.modelAuto)})):(a.value=p(v),t("auto-apply"))}}},d_e=s.defineComponent({compatConfig:{MODE:3},__name:"YearPicker",props:{...P6},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:t,emit:a}){const c=a,n=e,{groupedYears:r,modelValue:i,focusYear:o,selectYear:l,setHoverValue:f}=u_e(n,c),{defaultedConfig:u}=a3(n);return t({getSidebarProps:()=>({modelValue:i,selectYear:l})}),(d,h)=>(s.openBlock(),s.createElementBlock("div",null,[d.$slots["top-extra"]?s.renderSlot(d.$slots,"top-extra",{key:0,value:d.internalModelValue}):s.createCommentVNode("",!0),d.$slots["month-year"]?s.renderSlot(d.$slots,"month-year",s.normalizeProps(s.mergeProps({key:1},{years:s.unref(r),selectYear:s.unref(l)}))):(s.openBlock(),s.createBlock(Yu,{key:2,items:s.unref(r),"is-last":d.autoApply&&!s.unref(u).keepActionRow,height:s.unref(u).modeHeight,config:d.config,"no-overlay-focus":!!(d.noOverlayFocus||d.textInput),"focus-value":s.unref(o),type:"year","use-relative":"",onSelected:s.unref(l),onHoverValue:s.unref(f)},s.createSlots({_:2},[d.$slots["year-overlay-value"]?{name:"item",fn:s.withCtx(({item:p})=>[s.renderSlot(d.$slots,"year-overlay-value",{text:p.text,value:p.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),h_e={key:0,class:"dp__time_input"},p_e=["data-test","aria-label","onKeydown","onClick","onMousedown"],m_e=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),v_e=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),y_e=["aria-label","disabled","data-test","onKeydown","onClick"],g_e=["data-test","aria-label","onKeydown","onClick","onMousedown"],M_e=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),k_e=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),x_e={key:0},b_e=["aria-label"],z_e=s.defineComponent({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...P6},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:t,emit:a}){const c=a,n=e,{setTimePickerElements:r,setTimePickerBackRef:i}=l5(),{defaultedAriaLabels:o,defaultedTransitions:l,defaultedFilters:f,defaultedConfig:u,defaultedRange:d}=a3(n),{transitionName:h,showTransition:p}=Uu(l),v=s.reactive({hours:!1,minutes:!1,seconds:!1}),m=s.ref("AM"),y=s.ref(null),g=s.ref([]),M=s.ref();s.onMounted(()=>{c("mounted")});const x=F=>ze(new Date,{hours:F.hours,minutes:F.minutes,seconds:n.enableSeconds?F.seconds:0,milliseconds:0}),k=s.computed(()=>F=>R(F,n[F])||_(F,n[F])),b=s.computed(()=>({hours:n.hours,minutes:n.minutes,seconds:n.seconds})),_=(F,l1)=>d.value.enabled&&!d.value.disableTimeRangeValidation?!n.validateTime(F,l1):!1,C=(F,l1)=>{if(d.value.enabled&&!d.value.disableTimeRangeValidation){const k1=l1?+n[`${F}Increment`]:-+n[`${F}Increment`],f1=n[F]+k1;return!n.validateTime(F,f1)}return!1},H=s.computed(()=>F=>!I(+n[F]+ +n[`${F}Increment`],F)||C(F,!0)),V=s.computed(()=>F=>!I(+n[F]-+n[`${F}Increment`],F)||C(F,!1)),N=(F,l1)=>NM1(ze($1(),F),l1),L=(F,l1)=>oCe(ze($1(),F),l1),w=s.computed(()=>({dp__time_col:!0,dp__time_col_block:!n.timePickerInline,dp__time_col_reg_block:!n.enableSeconds&&n.is24&&!n.timePickerInline,dp__time_col_reg_inline:!n.enableSeconds&&n.is24&&n.timePickerInline,dp__time_col_reg_with_button:!n.enableSeconds&&!n.is24,dp__time_col_sec:n.enableSeconds&&n.is24,dp__time_col_sec_with_button:n.enableSeconds&&!n.is24})),P=s.computed(()=>{const F=[{type:"hours"}];return n.enableMinutes&&F.push({type:"",separator:!0},{type:"minutes"}),n.enableSeconds&&F.push({type:"",separator:!0},{type:"seconds"}),F}),j=s.computed(()=>P.value.filter(F=>!F.separator)),T=s.computed(()=>F=>{if(F==="hours"){const l1=B(+n.hours);return{text:l1<10?`0${l1}`:`${l1}`,value:l1}}return{text:n[F]<10?`0${n[F]}`:`${n[F]}`,value:n[F]}}),R=(F,l1)=>{var k1;if(!n.disabledTimesConfig)return!1;const f1=n.disabledTimesConfig(n.order,F==="hours"?l1:void 0);return f1[F]?!!((k1=f1[F])!=null&&k1.includes(l1)):!0},Y=(F,l1)=>l1!=="hours"||m.value==="AM"?F:F+12,e1=F=>{const l1=n.is24?24:12,k1=F==="hours"?l1:60,f1=+n[`${F}GridIncrement`],t1=F==="hours"&&!n.is24?f1:0,u1=[];for(let o1=t1;o1<k1;o1+=f1)u1.push({value:n.is24?o1:Y(o1,F),text:o1<10?`0${o1}`:`${o1}`});return F==="hours"&&!n.is24&&u1.unshift({value:m.value==="PM"?12:0,text:"12"}),As(u1,o1=>({active:!1,disabled:f.value.times[F].includes(o1.value)||!I(o1.value,F)||R(F,o1.value)||_(F,o1.value)}))},Z=F=>F>=0?F:59,W=F=>F>=0?F:23,I=(F,l1)=>{const k1=n.minTime?x(zY(n.minTime)):null,f1=n.maxTime?x(zY(n.maxTime)):null,t1=x(zY(b.value,l1,l1==="minutes"||l1==="seconds"?Z(F):W(F)));return k1&&f1?(qf(t1,f1)||Io(t1,f1))&&(Ss(t1,k1)||Io(t1,k1)):k1?Ss(t1,k1)||Io(t1,k1):f1?qf(t1,f1)||Io(t1,f1):!0},E=F=>n[`no${F[0].toUpperCase()+F.slice(1)}Overlay`],S=F=>{E(F)||(v[F]=!v[F],v[F]?c("overlay-opened",F):c("overlay-closed",F))},U=F=>F==="hours"?_8:F==="minutes"?Ya:Vs,G=()=>{M.value&&clearTimeout(M.value)},A=(F,l1=!0,k1)=>{const f1=l1?N:L,t1=l1?+n[`${F}Increment`]:-+n[`${F}Increment`];I(+n[F]+t1,F)&&c(`update:${F}`,U(F)(f1({[F]:+n[F]},{[F]:+n[`${F}Increment`]}))),!(k1!=null&&k1.keyboard)&&u.value.timeArrowHoldThreshold&&(M.value=setTimeout(()=>{A(F,l1)},u.value.timeArrowHoldThreshold))},B=F=>n.is24?F:(F>=12?m.value="PM":m.value="AM",hCe(F)),Q=()=>{m.value==="PM"?(m.value="AM",c("update:hours",n.hours-12)):(m.value="PM",c("update:hours",n.hours+12)),c("am-pm-change",m.value)},c1=F=>{v[F]=!0},K=(F,l1,k1)=>{if(F&&n.arrowNavigation){Array.isArray(g.value[l1])?g.value[l1][k1]=F:g.value[l1]=[F];const f1=g.value.reduce((t1,u1)=>u1.map((o1,p1)=>[...t1[p1]||[],u1[p1]]),[]);i(n.closeTimePickerBtn),y.value&&(f1[1]=f1[1].concat(y.value)),r(f1,n.order)}},a1=(F,l1)=>(S(F),c(`update:${F}`,l1));return t({openChildCmp:c1}),(F,l1)=>{var k1;return F.disabled?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",h_e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(P.value,(f1,t1)=>{var u1,o1,p1;return s.openBlock(),s.createElementBlock("div",{key:t1,class:s.normalizeClass(w.value)},[f1.separator?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(" : ")],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("button",{ref_for:!0,ref:b1=>K(b1,t1,0),type:"button",class:s.normalizeClass({dp__btn:!0,dp__inc_dec_button:!F.timePickerInline,dp__inc_dec_button_inline:F.timePickerInline,dp__tp_inline_btn_top:F.timePickerInline,dp__inc_dec_button_disabled:H.value(f1.type)}),"data-test":`${f1.type}-time-inc-btn-${n.order}`,"aria-label":(u1=s.unref(o))==null?void 0:u1.incrementValue(f1.type),tabindex:"0",onKeydown:b1=>s.unref(G4)(b1,()=>A(f1.type,!0,{keyboard:!0}),!0),onClick:b1=>s.unref(u).timeArrowHoldThreshold?void 0:A(f1.type,!0),onMousedown:b1=>s.unref(u).timeArrowHoldThreshold?A(f1.type,!0):void 0,onMouseup:G},[n.timePickerInline?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[m_e,v_e],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[F.$slots["arrow-up"]?s.renderSlot(F.$slots,"arrow-up",{key:0}):s.createCommentVNode("",!0),F.$slots["arrow-up"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(B11),{key:1}))],64))],42,p_e),s.createElementVNode("button",{ref_for:!0,ref:b1=>K(b1,t1,1),type:"button","aria-label":(o1=s.unref(o))==null?void 0:o1.openTpOverlay(f1.type),class:s.normalizeClass({dp__time_display:!0,dp__time_display_block:!F.timePickerInline,dp__time_display_inline:F.timePickerInline,"dp--time-invalid":k.value(f1.type),"dp--time-overlay-btn":!k.value(f1.type)}),disabled:E(f1.type),tabindex:"0","data-test":`${f1.type}-toggle-overlay-btn-${n.order}`,onKeydown:b1=>s.unref(G4)(b1,()=>S(f1.type),!0),onClick:b1=>S(f1.type)},[F.$slots[f1.type]?s.renderSlot(F.$slots,f1.type,{key:0,text:T.value(f1.type).text,value:T.value(f1.type).value}):s.createCommentVNode("",!0),F.$slots[f1.type]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(T.value(f1.type).text),1)],64))],42,y_e),s.createElementVNode("button",{ref_for:!0,ref:b1=>K(b1,t1,2),type:"button",class:s.normalizeClass({dp__btn:!0,dp__inc_dec_button:!F.timePickerInline,dp__inc_dec_button_inline:F.timePickerInline,dp__tp_inline_btn_bottom:F.timePickerInline,dp__inc_dec_button_disabled:V.value(f1.type)}),"data-test":`${f1.type}-time-dec-btn-${n.order}`,"aria-label":(p1=s.unref(o))==null?void 0:p1.decrementValue(f1.type),tabindex:"0",onKeydown:b1=>s.unref(G4)(b1,()=>A(f1.type,!1,{keyboard:!0}),!0),onClick:b1=>s.unref(u).timeArrowHoldThreshold?void 0:A(f1.type,!1),onMousedown:b1=>s.unref(u).timeArrowHoldThreshold?A(f1.type,!1):void 0,onMouseup:G},[n.timePickerInline?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[M_e,k_e],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[F.$slots["arrow-down"]?s.renderSlot(F.$slots,"arrow-down",{key:0}):s.createCommentVNode("",!0),F.$slots["arrow-down"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(R11),{key:1}))],64))],42,g_e)],64))],2)}),128)),F.is24?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",x_e,[F.$slots["am-pm-button"]?s.renderSlot(F.$slots,"am-pm-button",{key:0,toggle:Q,value:m.value}):s.createCommentVNode("",!0),F.$slots["am-pm-button"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:y,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(k1=s.unref(o))==null?void 0:k1.amPmButton,tabindex:"0",onClick:Q,onKeydown:l1[0]||(l1[0]=f1=>s.unref(G4)(f1,()=>Q(),!0))},s.toDisplayString(m.value),41,b_e))])),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(j.value,(f1,t1)=>(s.openBlock(),s.createBlock(s.Transition,{key:t1,name:s.unref(h)(v[f1.type]),css:s.unref(p)},{default:s.withCtx(()=>[v[f1.type]?(s.openBlock(),s.createBlock(Yu,{key:0,items:e1(f1.type),"is-last":F.autoApply&&!s.unref(u).keepActionRow,"esc-close":F.escClose,type:f1.type,"text-input":F.textInput,config:F.config,"arrow-navigation":F.arrowNavigation,"aria-labels":F.ariaLabels,onSelected:u1=>a1(f1.type,u1),onToggle:u1=>S(f1.type),onResetFlow:l1[1]||(l1[1]=u1=>F.$emit("reset-flow"))},s.createSlots({"button-icon":s.withCtx(()=>[F.$slots["clock-icon"]?s.renderSlot(F.$slots,"clock-icon",{key:0}):s.createCommentVNode("",!0),F.$slots["clock-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(F.timePickerInline?s.unref(Ks):s.unref(I11)),{key:1}))]),_:2},[F.$slots[`${f1.type}-overlay-value`]?{name:"item",fn:s.withCtx(({item:u1})=>[s.renderSlot(F.$slots,`${f1.type}-overlay-value`,{text:u1.text,value:u1.value})]),key:"0"}:void 0,F.$slots[`${f1.type}-overlay-header`]?{name:"header",fn:s.withCtx(()=>[s.renderSlot(F.$slots,`${f1.type}-overlay-header`,{toggle:()=>S(f1.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","onSelected","onToggle"])):s.createCommentVNode("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),C_e={class:"dp--tp-wrap"},__e=["aria-label","tabindex"],w_e=["tabindex"],H_e=["aria-label"],vk1=s.defineComponent({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...P6},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:a}){const c=a,n=e,{buildMatrix:r,setTimePicker:i}=l5(),o=s.useSlots(),{defaultedTransitions:l,defaultedAriaLabels:f,defaultedTextInput:u,defaultedConfig:d,defaultedRange:h}=a3(n),{transitionName:p,showTransition:v}=Uu(l),{hideNavigationButtons:m}=eU(),y=s.ref(null),g=s.ref(null),M=s.ref([]),x=s.ref(null);s.onMounted(()=>{c("mount"),!n.timePicker&&n.arrowNavigation?r([D3(y.value)],"time"):i(!0,n.timePicker)});const k=s.computed(()=>h.value.enabled&&n.modelAuto?tk1(n.internalModelValue):!0),b=s.ref(!1),_=Y=>({hours:Array.isArray(n.hours)?n.hours[Y]:n.hours,minutes:Array.isArray(n.minutes)?n.minutes[Y]:n.minutes,seconds:Array.isArray(n.seconds)?n.seconds[Y]:n.seconds}),C=s.computed(()=>{const Y=[];if(h.value.enabled)for(let e1=0;e1<2;e1++)Y.push(_(e1));else Y.push(_(0));return Y}),H=(Y,e1=!1,Z="")=>{e1||c("reset-flow"),b.value=Y,c(Y?"overlay-opened":"overlay-closed",u4.time),n.arrowNavigation&&i(Y),s.nextTick(()=>{Z!==""&&M.value[0]&&M.value[0].openChildCmp(Z)})},V=s.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:n.autoApply&&!d.value.keepActionRow})),N=o0(o,"timePicker"),L=(Y,e1,Z)=>h.value.enabled?e1===0?[Y,C.value[1][Z]]:[C.value[0][Z],Y]:Y,w=Y=>{c("update:hours",Y)},P=Y=>{c("update:minutes",Y)},j=Y=>{c("update:seconds",Y)},T=()=>{if(x.value&&!u.value.enabled&&!n.noOverlayFocus){const Y=ak1(x.value);Y&&Y.focus({preventScroll:!0})}},R=Y=>{c("overlay-closed",Y)};return t({toggleTimePicker:H}),(Y,e1)=>{var Z;return s.openBlock(),s.createElementBlock("div",C_e,[!Y.timePicker&&!Y.timePickerInline?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:0,ref_key:"openTimePickerBtn",ref:y,type:"button",class:s.normalizeClass(V.value),"aria-label":(Z=s.unref(f))==null?void 0:Z.openTimePicker,tabindex:Y.noOverlayFocus?void 0:0,"data-test":"open-time-picker-btn",onKeydown:e1[0]||(e1[0]=W=>s.unref(G4)(W,()=>H(!0))),onClick:e1[1]||(e1[1]=W=>H(!0))},[Y.$slots["clock-icon"]?s.renderSlot(Y.$slots,"clock-icon",{key:0}):s.createCommentVNode("",!0),Y.$slots["clock-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(I11),{key:1}))],42,__e)),[[s.vShow,!s.unref(m)(Y.hideNavigation,"time")]]):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:s.unref(p)(b.value),css:s.unref(v)&&!Y.timePickerInline},{default:s.withCtx(()=>{var W;return[b.value||Y.timePicker||Y.timePickerInline?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"overlayRef",ref:x,class:s.normalizeClass({dp__overlay:!Y.timePickerInline,"dp--overlay-absolute":!n.timePicker&&!Y.timePickerInline,"dp--overlay-relative":n.timePicker}),style:s.normalizeStyle(Y.timePicker?{height:`${s.unref(d).modeHeight}px`}:void 0),tabindex:Y.timePickerInline?void 0:0},[s.createElementVNode("div",{class:s.normalizeClass(Y.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[Y.$slots["time-picker-overlay"]?s.renderSlot(Y.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:w,setMinutes:P,setSeconds:j}):s.createCommentVNode("",!0),Y.$slots["time-picker-overlay"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(Y.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.value,(I,E)=>s.withDirectives((s.openBlock(),s.createBlock(z_e,s.mergeProps({key:E,ref_for:!0},{...Y.$props,order:E,hours:I.hours,minutes:I.minutes,seconds:I.seconds,closeTimePickerBtn:g.value,disabledTimesConfig:e.disabledTimesConfig,disabled:E===0?Y.fixedStart:Y.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:M,"validate-time":(S,U)=>e.validateTime(S,L(U,E,S)),"onUpdate:hours":S=>w(L(S,E,"hours")),"onUpdate:minutes":S=>P(L(S,E,"minutes")),"onUpdate:seconds":S=>j(L(S,E,"seconds")),onMounted:T,onOverlayClosed:R,onOverlayOpened:e1[2]||(e1[2]=S=>Y.$emit("overlay-opened",S)),onAmPmChange:e1[3]||(e1[3]=S=>Y.$emit("am-pm-change",S))}),s.createSlots({_:2},[s.renderList(s.unref(N),(S,U)=>({name:S,fn:s.withCtx(G=>[s.renderSlot(Y.$slots,S,s.mergeProps({ref_for:!0},G))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[s.vShow,E===0?!0:k.value]])),128))],2)),!Y.timePicker&&!Y.timePickerInline?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:2,ref_key:"closeTimePickerBtn",ref:g,type:"button",class:s.normalizeClass(V.value),"aria-label":(W=s.unref(f))==null?void 0:W.closeTimePicker,tabindex:"0",onKeydown:e1[4]||(e1[4]=I=>s.unref(G4)(I,()=>H(!1))),onClick:e1[5]||(e1[5]=I=>H(!1))},[Y.$slots["calendar-icon"]?s.renderSlot(Y.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),Y.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(Ks),{key:1}))],42,H_e)),[[s.vShow,!s.unref(m)(Y.hideNavigation,"time")]]):s.createCommentVNode("",!0)],2)],14,w_e)):s.createCommentVNode("",!0)]}),_:3},8,["name","css"])])}}}),yk1=(e,t,a,c)=>{const{defaultedRange:n}=a3(e),r=(x,k)=>Array.isArray(t[x])?t[x][k]:t[x],i=x=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[x]:t.seconds:0,o=(x,k)=>x?k!==void 0?Sa(x,r("hours",k),r("minutes",k),i(k)):Sa(x,t.hours,t.minutes,i()):D11($1(),i(k)),l=(x,k)=>{t[x]=k},f=s.computed(()=>e.modelAuto&&n.value.enabled?Array.isArray(a.value)?a.value.length>1:!1:n.value.enabled),u=(x,k)=>{const b=Object.fromEntries(Object.keys(t).map(_=>_===x?[_,k]:[_,t[_]].slice()));if(f.value&&!n.value.disableTimeRangeValidation){const _=H=>a.value?Sa(a.value[H],b.hours[H],b.minutes[H],b.seconds[H]):null,C=H=>E11(a.value[H],0);return!(I2(_(0),_(1))&&(Ss(_(0),C(1))||qf(_(1),C(0))))}return!0},d=(x,k)=>{u(x,k)&&(l(x,k),c&&c())},h=x=>{d("hours",x)},p=x=>{d("minutes",x)},v=x=>{d("seconds",x)},m=(x,k,b,_)=>{k&&h(x),!k&&!b&&p(x),b&&v(x),a.value&&_(a.value)},y=x=>{if(x){const k=Array.isArray(x),b=k?[+x[0].hours,+x[1].hours]:+x.hours,_=k?[+x[0].minutes,+x[1].minutes]:+x.minutes,C=k?[+x[0].seconds,+x[1].seconds]:+x.seconds;l("hours",b),l("minutes",_),e.enableSeconds&&l("seconds",C)}},g=(x,k)=>{const b={hours:Array.isArray(t.hours)?t.hours[x]:t.hours,disabledArr:[]};return(k||k===0)&&(b.hours=k),Array.isArray(e.disabledTimes)&&(b.disabledArr=n.value.enabled&&Array.isArray(e.disabledTimes[x])?e.disabledTimes[x]:e.disabledTimes),b},M=s.computed(()=>(x,k)=>{var b;if(Array.isArray(e.disabledTimes)){const{disabledArr:_,hours:C}=g(x,k),H=_.filter(V=>+V.hours===C);return((b=H[0])==null?void 0:b.minutes)==="*"?{hours:[C],minutes:void 0,seconds:void 0}:{hours:[],minutes:(H==null?void 0:H.map(V=>+V.minutes))??[],seconds:(H==null?void 0:H.map(V=>V.seconds?+V.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:l,updateHours:h,updateMinutes:p,updateSeconds:v,getSetDateTime:o,updateTimeValues:m,getSecondsValue:i,assignStartTime:y,validateTime:u,disabledTimesConfig:M}},L_e=(e,t)=>{const{modelValue:a,time:c}=Wu(e,t),{defaultedStartTime:n,defaultedRange:r}=a3(e),{updateTimeValues:i,getSetDateTime:o,setTime:l,assignStartTime:f,disabledTimesConfig:u,validateTime:d}=yk1(e,c,a,h);function h(){t("update-flow-step")}const p=k=>{const{hours:b,minutes:_,seconds:C}=k;return{hours:+b,minutes:+_,seconds:C?+C:0}},v=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const b=p(e.startTime[0]),_=p(e.startTime[1]);return[ze($1(),b),ze($1(),_)]}const k=p(e.startTime);return ze($1(),k)}return r.value.enabled?[null,null]:null},m=()=>{if(r.value.enabled){const[k,b]=v();a.value=[o(k,0),o(b,1)]}else a.value=o(v())},y=k=>Array.isArray(k)?[yi($1(k[0])),yi($1(k[1]))]:[yi(k??$1())],g=(k,b,_)=>{l("hours",k),l("minutes",b),l("seconds",e.enableSeconds?_:0)},M=()=>{const[k,b]=y(a.value);return r.value.enabled?g([k.hours,b.hours],[k.minutes,b.minutes],[k.seconds,b.seconds]):g(k.hours,k.minutes,k.seconds)};s.onMounted(()=>{if(!e.shadow)return f(n.value),a.value?M():m()});const x=()=>{Array.isArray(a.value)?a.value=a.value.map((k,b)=>k&&o(k,b)):a.value=o(a.value),t("time-update")};return{modelValue:a,time:c,disabledTimesConfig:u,updateTime:(k,b=!0,_=!1)=>{i(k,b,_,x)},validateTime:d}},V_e=s.defineComponent({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...P6},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.useSlots(),i=o0(r,"timePicker"),o=s.ref(null),{time:l,modelValue:f,disabledTimesConfig:u,updateTime:d,validateTime:h}=L_e(n,c);return s.onMounted(()=>{n.shadow||c("mount",null)}),t({getSidebarProps:()=>({modelValue:f,time:l,updateTime:d}),toggleTimePicker:(p,v=!1,m="")=>{var y;(y=o.value)==null||y.toggleTimePicker(p,v,m)}}),(p,v)=>(s.openBlock(),s.createBlock(aU,{"multi-calendars":0,stretch:""},{default:s.withCtx(()=>[s.createVNode(vk1,s.mergeProps({ref_key:"tpRef",ref:o},p.$props,{hours:s.unref(l).hours,minutes:s.unref(l).minutes,seconds:s.unref(l).seconds,"internal-model-value":p.internalModelValue,"disabled-times-config":s.unref(u),"validate-time":s.unref(h),"onUpdate:hours":v[0]||(v[0]=m=>s.unref(d)(m)),"onUpdate:minutes":v[1]||(v[1]=m=>s.unref(d)(m,!1)),"onUpdate:seconds":v[2]||(v[2]=m=>s.unref(d)(m,!1,!0)),onAmPmChange:v[3]||(v[3]=m=>p.$emit("am-pm-change",m)),onResetFlow:v[4]||(v[4]=m=>p.$emit("reset-flow")),onOverlayClosed:v[5]||(v[5]=m=>p.$emit("overlay-toggle",{open:!1,overlay:m})),onOverlayOpened:v[6]||(v[6]=m=>p.$emit("overlay-toggle",{open:!0,overlay:m}))}),s.createSlots({_:2},[s.renderList(s.unref(i),(m,y)=>({name:m,fn:s.withCtx(g=>[s.renderSlot(p.$slots,m,s.normalizeProps(s.guardReactiveProps(g)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3}))}}),S_e={class:"dp--header-wrap"},N_e={key:0,class:"dp__month_year_wrap"},A_e={key:0},T_e={class:"dp__month_year_wrap"},E_e=["aria-label","data-test","onClick","onKeydown"],D_e=s.defineComponent({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...P6},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:t,emit:a}){const c=a,n=e,{defaultedTransitions:r,defaultedAriaLabels:i,defaultedMultiCalendars:o,defaultedFilters:l,defaultedConfig:f,defaultedHighlight:u,propDates:d}=a3(n),{transitionName:h,showTransition:p}=Uu(r),{buildMatrix:v}=l5(),{handleMonthYearChange:m,isDisabled:y,updateMonthYear:g}=jCe(n,c),{showLeftIcon:M,showRightIcon:x}=eU(),k=s.ref(!1),b=s.ref(!1),_=s.ref([null,null,null,null]);s.onMounted(()=>{c("mount")});const C=I=>({get:()=>n[I],set:E=>{const S=I===U0.month?U0.year:U0.month;c("update-month-year",{[I]:E,[S]:n[S]}),I===U0.month?T(!0):R(!0)}}),H=s.computed(C(U0.month)),V=s.computed(C(U0.year)),N=s.computed(()=>I=>({month:n.month,year:n.year,items:I===U0.month?n.months:n.years,instance:n.instance,updateMonthYear:g,toggle:I===U0.month?T:R})),L=s.computed(()=>n.months.find(E=>E.value===n.month)||{text:"",value:0}),w=s.computed(()=>As(n.months,I=>{const E=n.month===I.value,S=jf(I.value,nk1(n.year,d.value.minDate),rk1(n.year,d.value.maxDate))||l.value.months.includes(I.value),U=fk1(u.value,I.value,n.year);return{active:E,disabled:S,highlighted:U}})),P=s.computed(()=>As(n.years,I=>{const E=n.year===I.value,S=jf(I.value,Ts(d.value.minDate),Ts(d.value.maxDate))||l.value.years.includes(I.value),U=j11(u.value,I.value);return{active:E,disabled:S,highlighted:U}})),j=(I,E,S)=>{S!==void 0?I.value=S:I.value=!I.value,I.value?c("overlay-opened",E):c("overlay-closed",E)},T=(I=!1,E)=>{Y(I),j(k,u4.month,E)},R=(I=!1,E)=>{Y(I),j(b,u4.year,E)},Y=I=>{I||c("reset-flow")},e1=(I,E)=>{n.arrowNavigation&&(_.value[E]=D3(I),v(_.value,"monthYear"))},Z=s.computed(()=>{var I,E;return[{type:U0.month,index:1,toggle:T,modelValue:H.value,updateModelValue:S=>H.value=S,text:L.value.text,showSelectionGrid:k.value,items:w.value,ariaLabel:(I=i.value)==null?void 0:I.openMonthsOverlay},{type:U0.year,index:2,toggle:R,modelValue:V.value,updateModelValue:S=>V.value=S,text:ck1(n.year,n.locale),showSelectionGrid:b.value,items:P.value,ariaLabel:(E=i.value)==null?void 0:E.openYearsOverlay}]}),W=s.computed(()=>n.disableYearSelect?[Z.value[0]]:n.yearFirst?[...Z.value].reverse():Z.value);return t({toggleMonthPicker:T,toggleYearPicker:R,handleMonthYearChange:m}),(I,E)=>{var S,U,G;return s.openBlock(),s.createElementBlock("div",S_e,[I.$slots["month-year"]?(s.openBlock(),s.createElementBlock("div",N_e,[s.renderSlot(I.$slots,"month-year",s.normalizeProps(s.guardReactiveProps({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:s.unref(g),handleMonthYearChange:s.unref(m),instance:e.instance})))])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[I.$slots["top-extra"]?(s.openBlock(),s.createElementBlock("div",A_e,[s.renderSlot(I.$slots,"top-extra",{value:I.internalModelValue})])):s.createCommentVNode("",!0),s.createElementVNode("div",T_e,[s.unref(M)(s.unref(o),e.instance)&&!I.vertical?(s.openBlock(),s.createBlock(Pl,{key:0,"aria-label":(S=s.unref(i))==null?void 0:S.prevMonth,disabled:s.unref(y)(!1),onActivate:E[0]||(E[0]=A=>s.unref(m)(!1,!0)),onSetRef:E[1]||(E[1]=A=>e1(A,0))},{default:s.withCtx(()=>[I.$slots["arrow-left"]?s.renderSlot(I.$slots,"arrow-left",{key:0}):s.createCommentVNode("",!0),I.$slots["arrow-left"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(P11),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:I.disableYearSelect}])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(W.value,(A,B)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:A.type},[s.createElementVNode("button",{ref_for:!0,ref:Q=>e1(Q,B+1),type:"button",class:"dp__btn dp__month_year_select",tabindex:"0","aria-label":A.ariaLabel,"data-test":`${A.type}-toggle-overlay-${e.instance}`,onClick:A.toggle,onKeydown:Q=>s.unref(G4)(Q,()=>A.toggle(),!0)},[I.$slots[A.type]?s.renderSlot(I.$slots,A.type,{key:0,text:A.text,value:n[A.type]}):s.createCommentVNode("",!0),I.$slots[A.type]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(A.text),1)],64))],40,E_e),s.createVNode(s.Transition,{name:s.unref(h)(A.showSelectionGrid),css:s.unref(p)},{default:s.withCtx(()=>[A.showSelectionGrid?(s.openBlock(),s.createBlock(Yu,{key:0,items:A.items,"arrow-navigation":I.arrowNavigation,"hide-navigation":I.hideNavigation,"is-last":I.autoApply&&!s.unref(f).keepActionRow,"skip-button-ref":!1,config:I.config,type:A.type,"header-refs":[],"esc-close":I.escClose,"menu-wrap-ref":I.menuWrapRef,"text-input":I.textInput,"aria-labels":I.ariaLabels,onSelected:A.updateModelValue,onToggle:A.toggle},s.createSlots({"button-icon":s.withCtx(()=>[I.$slots["calendar-icon"]?s.renderSlot(I.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),I.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(Ks),{key:1}))]),_:2},[I.$slots[`${A.type}-overlay-value`]?{name:"item",fn:s.withCtx(({item:Q})=>[s.renderSlot(I.$slots,`${A.type}-overlay-value`,{text:Q.text,value:Q.value})]),key:"0"}:void 0,I.$slots[`${A.type}-overlay`]?{name:"overlay",fn:s.withCtx(()=>[s.renderSlot(I.$slots,`${A.type}-overlay`,s.mergeProps({ref_for:!0},N.value(A.type)))]),key:"1"}:void 0,I.$slots[`${A.type}-overlay-header`]?{name:"header",fn:s.withCtx(()=>[s.renderSlot(I.$slots,`${A.type}-overlay-header`,{toggle:A.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","onSelected","onToggle"])):s.createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),s.unref(M)(s.unref(o),e.instance)&&I.vertical?(s.openBlock(),s.createBlock(Pl,{key:1,"aria-label":(U=s.unref(i))==null?void 0:U.prevMonth,disabled:s.unref(y)(!1),onActivate:E[2]||(E[2]=A=>s.unref(m)(!1,!0))},{default:s.withCtx(()=>[I.$slots["arrow-up"]?s.renderSlot(I.$slots,"arrow-up",{key:0}):s.createCommentVNode("",!0),I.$slots["arrow-up"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(B11),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.unref(x)(s.unref(o),e.instance)?(s.openBlock(),s.createBlock(Pl,{key:2,ref:"rightIcon",disabled:s.unref(y)(!0),"aria-label":(G=s.unref(i))==null?void 0:G.nextMonth,onActivate:E[3]||(E[3]=A=>s.unref(m)(!0,!0)),onSetRef:E[4]||(E[4]=A=>e1(A,I.disableYearSelect?2:3))},{default:s.withCtx(()=>[I.$slots[I.vertical?"arrow-down":"arrow-right"]?s.renderSlot(I.$slots,I.vertical?"arrow-down":"arrow-right",{key:0}):s.createCommentVNode("",!0),I.$slots[I.vertical?"arrow-down":"arrow-right"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(I.vertical?s.unref(R11):s.unref(O11)),{key:1}))]),_:3},8,["disabled","aria-label"])):s.createCommentVNode("",!0)])],64))])}}}),P_e=["aria-label"],O_e={class:"dp__calendar_header",role:"row"},I_e={key:0,class:"dp__calendar_header_item",role:"gridcell"},B_e=["aria-label"],R_e=s.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1),F_e=["aria-label"],$_e={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},q_e={class:"dp__cell_inner"},j_e=["id","aria-selected","aria-disabled","aria-label","data-test","onClick","onKeydown","onMouseenter","onMouseleave","onMousedown"],U_e=s.defineComponent({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...P6},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:a}){const c=a,n=e,{buildMultiLevelMatrix:r}=l5(),{defaultedTransitions:i,defaultedConfig:o,defaultedAriaLabels:l,defaultedMultiCalendars:f,defaultedWeekNumbers:u,defaultedMultiDates:d}=a3(n),h=s.ref(null),p=s.ref({bottom:"",left:"",transform:""}),v=s.ref([]),m=s.ref(null),y=s.ref(!0),g=s.ref(""),M=s.ref({startX:0,endX:0,startY:0,endY:0}),x=s.ref([]),k=s.ref({left:"50%"}),b=s.ref(!1),_=s.computed(()=>n.calendar?n.calendar(n.mappedDates):n.mappedDates),C=s.computed(()=>n.dayNames?Array.isArray(n.dayNames)?n.dayNames:n.dayNames(n.locale,+n.weekStart):dCe(n.formatLocale,n.locale,+n.weekStart));s.onMounted(()=>{c("mount",{cmp:"calendar",refs:v}),o.value.noSwipe||m.value&&(m.value.addEventListener("touchstart",Z,{passive:!1}),m.value.addEventListener("touchend",W,{passive:!1}),m.value.addEventListener("touchmove",I,{passive:!1})),n.monthChangeOnScroll&&m.value&&m.value.addEventListener("wheel",U,{passive:!1})});const H=K=>K?n.vertical?"vNext":"next":n.vertical?"vPrevious":"previous",V=(K,a1)=>{if(n.transitions){const F=p0(s8($1(),n.month,n.year));g.value=x3(p0(s8($1(),K,a1)),F)?i.value[H(!0)]:i.value[H(!1)],y.value=!1,s.nextTick(()=>{y.value=!0})}},N=s.computed(()=>({[n.calendarClassName]:!!n.calendarClassName})),L=s.computed(()=>K=>{const a1=pCe(K);return{dp__marker_dot:a1.type==="dot",dp__marker_line:a1.type==="line"}}),w=s.computed(()=>K=>I2(K,h.value)),P=s.computed(()=>({dp__calendar:!0,dp__calendar_next:f.value.count>0&&n.instance!==0})),j=s.computed(()=>K=>n.hideOffsetDates?K.current:!0),T=K=>xt(K,"yyyy-MM-dd"),R=async(K,a1,F)=>{const l1=D3(v.value[a1][F]);if(l1){const{width:k1,height:f1}=l1.getBoundingClientRect();h.value=K.value;let t1={left:`${k1/2}px`},u1=-50;if(await s.nextTick(),x.value[0]){const{left:o1,width:p1}=x.value[0].getBoundingClientRect();o1<0&&(t1={left:"0"},u1=0,k.value.left=`${k1/2}px`),window.innerWidth<o1+p1&&(t1={right:"0"},u1=0,k.value.left=`${p1-k1/2}px`)}p.value={bottom:`${f1}px`,...t1,transform:`translateX(${u1}%)`},c("tooltip-open",K.marker)}},Y=async(K,a1,F)=>{var l1,k1;if(b.value&&d.value.enabled&&d.value.dragSelect)return c("select-date",K);c("set-hover-date",K),(k1=(l1=K.marker)==null?void 0:l1.tooltip)!=null&&k1.length&&await R(K,a1,F)},e1=K=>{h.value&&(h.value=null,p.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),c("tooltip-close",K.marker))},Z=K=>{M.value.startX=K.changedTouches[0].screenX,M.value.startY=K.changedTouches[0].screenY},W=K=>{M.value.endX=K.changedTouches[0].screenX,M.value.endY=K.changedTouches[0].screenY,E()},I=K=>{n.vertical&&!n.inline&&K.preventDefault()},E=()=>{const K=n.vertical?"Y":"X";Math.abs(M.value[`start${K}`]-M.value[`end${K}`])>10&&c("handle-swipe",M.value[`start${K}`]>M.value[`end${K}`]?"right":"left")},S=(K,a1,F)=>{K&&(Array.isArray(v.value[a1])?v.value[a1][F]=K:v.value[a1]=[K]),n.arrowNavigation&&r(v.value,"calendar")},U=K=>{n.monthChangeOnScroll&&(K.preventDefault(),c("handle-scroll",K))},G=K=>u.value.type==="local"?N11(K.value,{weekStartsOn:+n.weekStart}):u.value.type==="iso"?V11(K.value):typeof u.value.type=="function"?u.value.type(K.value):"",A=K=>{const a1=K[0];return u.value.hideOnOffsetDates?K.some(F=>F.current)?G(a1):"":G(a1)},B=(K,a1)=>{d.value.enabled||(Va(K,o.value),c("select-date",a1))},Q=K=>{Va(K,o.value)},c1=K=>{d.value.enabled&&d.value.dragSelect?(b.value=!0,c("select-date",K)):d.value.enabled&&c("select-date",K)};return t({triggerTransition:V}),(K,a1)=>{var F;return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(P.value)},[s.createElementVNode("div",{ref_key:"calendarWrapRef",ref:m,role:"grid",class:s.normalizeClass(N.value),"aria-label":(F=s.unref(l))==null?void 0:F.calendarWrap},[s.createElementVNode("div",O_e,[K.weekNumbers?(s.openBlock(),s.createElementBlock("div",I_e,s.toDisplayString(K.weekNumName),1)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.value,(l1,k1)=>{var f1,t1;return s.openBlock(),s.createElementBlock("div",{key:k1,class:"dp__calendar_header_item",role:"gridcell","data-test":"calendar-header","aria-label":(t1=(f1=s.unref(l))==null?void 0:f1.weekDay)==null?void 0:t1.call(f1,k1)},[K.$slots["calendar-header"]?s.renderSlot(K.$slots,"calendar-header",{key:0,day:l1,index:k1}):s.createCommentVNode("",!0),K.$slots["calendar-header"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(l1),1)],64))],8,B_e)}),128))]),R_e,s.createVNode(s.Transition,{name:g.value,css:!!K.transitions},{default:s.withCtx(()=>{var l1;return[y.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup","aria-label":((l1=s.unref(l))==null?void 0:l1.calendarDays)||void 0,onMouseleave:a1[1]||(a1[1]=k1=>b.value=!1)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(_.value,(k1,f1)=>(s.openBlock(),s.createElementBlock("div",{key:f1,class:"dp__calendar_row",role:"row"},[K.weekNumbers?(s.openBlock(),s.createElementBlock("div",$_e,[s.createElementVNode("div",q_e,s.toDisplayString(A(k1.days)),1)])):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(k1.days,(t1,u1)=>{var o1,p1,b1;return s.openBlock(),s.createElementBlock("div",{id:T(t1.value),ref_for:!0,ref:v1=>S(v1,f1,u1),key:u1+f1,role:"gridcell",class:"dp__calendar_item","aria-selected":(t1.classData.dp__active_date||t1.classData.dp__range_start||t1.classData.dp__range_start)??void 0,"aria-disabled":t1.classData.dp__cell_disabled||void 0,"aria-label":(p1=(o1=s.unref(l))==null?void 0:o1.day)==null?void 0:p1.call(o1,t1),tabindex:"0","data-test":t1.value,onClick:s.withModifiers(v1=>B(v1,t1),["prevent"]),onKeydown:v1=>s.unref(G4)(v1,()=>K.$emit("select-date",t1)),onMouseenter:v1=>Y(t1,f1,u1),onMouseleave:v1=>e1(t1),onMousedown:v1=>c1(t1),onMouseup:a1[0]||(a1[0]=v1=>b.value=!1)},[s.createElementVNode("div",{class:s.normalizeClass(["dp__cell_inner",t1.classData])},[K.$slots.day&&j.value(t1)?s.renderSlot(K.$slots,"day",{key:0,day:+t1.text,date:t1.value}):s.createCommentVNode("",!0),K.$slots.day?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(t1.text),1)],64)),t1.marker&&j.value(t1)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[K.$slots.marker?s.renderSlot(K.$slots,"marker",{key:0,marker:t1.marker,day:+t1.text,date:t1.value}):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(L.value(t1.marker)),style:s.normalizeStyle(t1.marker.color?{backgroundColor:t1.marker.color}:{})},null,6))],64)):s.createCommentVNode("",!0),w.value(t1.value)?(s.openBlock(),s.createElementBlock("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:x,class:"dp__marker_tooltip",style:s.normalizeStyle(p.value)},[(b1=t1.marker)!=null&&b1.tooltip?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:Q},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t1.marker.tooltip,(v1,C1)=>(s.openBlock(),s.createElementBlock("div",{key:C1,class:"dp__tooltip_text"},[K.$slots["marker-tooltip"]?s.renderSlot(K.$slots,"marker-tooltip",{key:0,tooltip:v1,day:t1.value}):s.createCommentVNode("",!0),K.$slots["marker-tooltip"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",{class:"dp__tooltip_mark",style:s.normalizeStyle(v1.color?{backgroundColor:v1.color}:{})},null,4),s.createElementVNode("div",null,s.toDisplayString(v1.text),1)],64))]))),128)),s.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:s.normalizeStyle(k.value)},null,4)])):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0)],2)],40,j_e)}),128))]))),128))],40,F_e)):s.createCommentVNode("",!0)]}),_:3},8,["name","css"])],10,P_e)],2)}}}),Ua1=e=>Array.isArray(e),W_e=(e,t,a,c)=>{const n=s.ref([]),r=s.ref(new Date),i=s.ref(),{modelValue:o,calendars:l,time:f,today:u}=Wu(e,t),{defaultedMultiCalendars:d,defaultedStartTime:h,defaultedRange:p,defaultedConfig:v,defaultedTz:m,propDates:y,defaultedMultiDates:g}=a3(e),{validateMonthYearInRange:M,isDisabled:x,isDateRangeAllowed:k,checkMinMaxRange:b}=f5(e),{updateTimeValues:_,getSetDateTime:C,setTime:H,assignStartTime:V,validateTime:N,disabledTimesConfig:L}=yk1(e,f,o,c),w=s.computed(()=>d1=>l.value[d1]?l.value[d1].month:0),P=s.computed(()=>d1=>l.value[d1]?l.value[d1].year:0),j=d1=>!v.value.keepViewOnOffsetClick||d1?!0:!i.value,T=(d1,s1,_1,L1=!1)=>{var W1,g2;j(L1)&&(l.value[d1]||(l.value[d1]={month:0,year:0}),l.value[d1].month=Ra1(s1)?(W1=l.value[d1])==null?void 0:W1.month:s1,l.value[d1].year=Ra1(_1)?(g2=l.value[d1])==null?void 0:g2.year:_1)},R=()=>{e.autoApply&&t("select-date")};s.watch(o,(d1,s1)=>{JSON.stringify(d1)!==JSON.stringify(s1)&&Z()},{deep:!0}),s.onMounted(()=>{e.shadow||(o.value||(K(),h.value&&V(h.value)),Z(!0),e.focusStartDate&&e.startDate&&K())});const Y=s.computed(()=>{var d1;return(d1=e.flow)!=null&&d1.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),e1=()=>{e.autoApply&&Y.value&&t("auto-apply")},Z=(d1=!1)=>{if(o.value)return Array.isArray(o.value)?(n.value=o.value,A(d1)):E(o.value,d1);if(d.value.count&&d1&&!e.startDate)return I($1(),d1)},W=()=>Array.isArray(o.value)&&p.value.enabled?P2(o.value[0])===P2(o.value[1]??o.value[0]):!1,I=(d1,s1=!1)=>{if((!d.value.count||!d.value.static||s1)&&T(0,P2(d1),L2(d1)),d.value.count&&(!d.value.solo||!o.value||W()))for(let _1=1;_1<d.value.count;_1++){const L1=ze($1(),{month:w.value(_1-1),year:P.value(_1-1)}),W1=NM1(L1,{months:1});l.value[_1]={month:P2(W1),year:L2(W1)}}},E=(d1,s1)=>{I(d1),H("hours",_8(d1)),H("minutes",Ya(d1)),H("seconds",Vs(d1)),d.value.count&&s1&&c1()},S=d1=>{if(d.value.count){if(d.value.solo)return 0;const s1=P2(d1[0]),_1=P2(d1[1]);return Math.abs(_1-s1)<d.value.count?0:1}return 1},U=(d1,s1)=>{d1[1]&&p.value.showLastInRange?I(d1[S(d1)],s1):I(d1[0],s1);const _1=(L1,W1)=>[L1(d1[0]),d1[1]?L1(d1[1]):f[W1][1]];H("hours",_1(_8,"hours")),H("minutes",_1(Ya,"minutes")),H("seconds",_1(Vs,"seconds"))},G=(d1,s1)=>{if((p.value.enabled||e.weekPicker)&&!g.value.enabled)return U(d1,s1);if(g.value.enabled&&s1){const _1=d1[d1.length-1];return E(_1,s1)}},A=d1=>{const s1=o.value;G(s1,d1),d.value.count&&d.value.solo&&c1()},B=(d1,s1)=>{const _1=ze($1(),{month:w.value(s1),year:P.value(s1)}),L1=d1<0?M6(_1,1):Ns(_1,1);M(P2(L1),L2(L1),d1<0,e.preventMinMaxNavigation)&&(T(s1,P2(L1),L2(L1)),t("update-month-year",{instance:s1,month:P2(L1),year:L2(L1)}),d.value.count&&!d.value.solo&&Q(s1),a())},Q=d1=>{for(let s1=d1-1;s1>=0;s1--){const _1=Ns(ze($1(),{month:w.value(s1+1),year:P.value(s1+1)}),1);T(s1,P2(_1),L2(_1))}for(let s1=d1+1;s1<=d.value.count-1;s1++){const _1=M6(ze($1(),{month:w.value(s1-1),year:P.value(s1-1)}),1);T(s1,P2(_1),L2(_1))}},c1=()=>{if(Array.isArray(o.value)&&o.value.length===2){const d1=$1($1(o.value[1]?o.value[1]:M6(o.value[0],1))),[s1,_1]=[P2(o.value[0]),L2(o.value[0])],[L1,W1]=[P2(o.value[1]),L2(o.value[1])];(s1!==L1||s1===L1&&_1!==W1)&&d.value.solo&&T(1,P2(d1),L2(d1))}else o.value&&!Array.isArray(o.value)&&(T(0,P2(o.value),L2(o.value)),I($1()))},K=()=>{e.startDate&&(T(0,P2($1(e.startDate)),L2($1(e.startDate))),d.value.count&&Q(0))},a1=(d1,s1)=>{if(e.monthChangeOnScroll){const _1=new Date().getTime()-r.value.getTime(),L1=Math.abs(d1.deltaY);let W1=500;L1>1&&(W1=100),L1>100&&(W1=0),_1>W1&&(r.value=new Date,B(e.monthChangeOnScroll!=="inverse"?-d1.deltaY:d1.deltaY,s1))}},F=(d1,s1,_1=!1)=>{e.monthChangeOnArrows&&e.vertical===_1&&l1(d1,s1)},l1=(d1,s1)=>{B(d1==="right"?-1:1,s1)},k1=d1=>{if(y.value.markers)return G$(d1.value,y.value.markers)},f1=(d1,s1)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[d1==0,!0];case"fair":return[d1==0||s1>d1,!0];case"append":return[!1,!1];default:return[!1,!1]}},t1=(d1,s1,_1,L1)=>{if(e.sixWeeks&&d1.length<6){const W1=6-d1.length,g2=(s1.getDay()+7-L1)%7,S2=6-(_1.getDay()+7-L1)%7,[Fe,h3]=f1(g2,S2);for(let s2=1;s2<=W1;s2++)if(h3?!!(s2%2)==Fe:Fe){const V2=d1[0].days[0],Q3=u1(e6(V2.value,-7),P2(s1));d1.unshift({days:Q3})}else{const V2=d1[d1.length-1],Q3=V2.days[V2.days.length-1],J3=u1(e6(Q3.value,1),P2(s1));d1.push({days:J3})}}return d1},u1=(d1,s1)=>{const _1=$1(d1),L1=[];for(let W1=0;W1<7;W1++){const g2=e6(_1,W1),S2=P2(g2)!==s1;L1.push({text:e.hideOffsetDates&&S2?"":g2.getDate(),value:g2,current:!S2,classData:{}})}return L1},o1=(d1,s1)=>{const _1=[],L1=new Date(s1,d1),W1=new Date(s1,d1+1,0),g2=e.weekStart,S2=S6(L1,{weekStartsOn:g2}),Fe=h3=>{const s2=u1(h3,d1);if(_1.push({days:s2}),!_1[_1.length-1].days.some(V2=>I2(p0(V2.value),p0(W1)))){const V2=e6(h3,7);Fe(V2)}};return Fe(S2),t1(_1,L1,W1,g2)},p1=d1=>{const s1=Sa($1(d1.value),f.hours,f.minutes,Y1());t("date-update",s1),g.value.enabled?U11(s1,o,g.value.limit):o.value=s1,c(),s.nextTick().then(()=>{e1()})},b1=d1=>p.value.noDisabledRange?ik1(n.value[0],d1).some(s1=>x(s1)):!1,v1=()=>{n.value=o.value?o.value.slice():[],n.value.length===2&&!(p.value.fixedStart||p.value.fixedEnd)&&(n.value=[])},C1=(d1,s1)=>{const _1=[$1(d1.value),e6($1(d1.value),+p.value.autoRange)];k(_1)?(s1&&D1(d1.value),n.value=_1):t("invalid-date",d1.value)},D1=d1=>{const s1=P2($1(d1)),_1=L2($1(d1));if(T(0,s1,_1),d.value.count>0)for(let L1=1;L1<d.value.count;L1++){const W1=bCe(ze($1(d1),{year:w.value(L1-1),month:P.value(L1-1)}));T(L1,W1.month,W1.year)}},R1=d1=>{if(b1(d1.value)||!b(d1.value,o.value,p.value.fixedStart?0:1))return t("invalid-date",d1.value);n.value=pk1($1(d1.value),o,t,p)},B1=(d1,s1)=>{if(v1(),p.value.autoRange)return C1(d1,s1);if(p.value.fixedStart||p.value.fixedEnd)return R1(d1);n.value[0]?b($1(d1.value),o.value)&&!b1(d1.value)?r3($1(d1.value),$1(n.value[0]))?(n.value.unshift($1(d1.value)),t("range-end",n.value[0])):(n.value[1]=$1(d1.value),t("range-end",n.value[1])):(e.autoApply&&t("auto-apply-invalid",d1.value),t("invalid-date",d1.value)):(n.value[0]=$1(d1.value),t("range-start",n.value[0]))},Y1=(d1=!0)=>e.enableSeconds?Array.isArray(f.seconds)?d1?f.seconds[0]:f.seconds[1]:f.seconds:0,G1=d1=>{n.value[d1]=Sa(n.value[d1],f.hours[d1],f.minutes[d1],Y1(d1!==1))},n2=()=>{var d1,s1;n.value[0]&&n.value[1]&&+((d1=n.value)==null?void 0:d1[0])>+((s1=n.value)==null?void 0:s1[1])&&(n.value.reverse(),t("range-start",n.value[0]),t("range-end",n.value[1]))},o2=()=>{n.value.length&&(n.value[0]&&!n.value[1]?G1(0):(G1(0),G1(1),c()),n2(),o.value=n.value.slice(),cU(n.value,t,e.autoApply,e.modelAuto))},q1=(d1,s1=!1)=>{if(x(d1.value)||!d1.current&&e.hideOffsetDates)return t("invalid-date",d1.value);if(i.value=JSON.parse(JSON.stringify(d1)),!p.value.enabled)return p1(d1);Ua1(f.hours)&&Ua1(f.minutes)&&!g.value.enabled&&(B1(d1,s1),o2())},p2=(d1,s1)=>{var _1;T(d1,s1.month,s1.year,!0),d.value.count&&!d.value.solo&&Q(d1),t("update-month-year",{instance:d1,month:s1.month,year:s1.year}),a(d.value.solo?d1:void 0);const L1=(_1=e.flow)!=null&&_1.length?e.flow[e.flowStep]:void 0;!s1.fromNav&&(L1===u4.month||L1===u4.year)&&c()},E2=(d1,s1)=>{hk1({value:d1,modelValue:o,range:p.value.enabled,timezone:s1?void 0:m.value.timezone}),R(),e.multiCalendars&&s.nextTick().then(()=>Z(!0))},h2=()=>{p.value.enabled?o.value&&Array.isArray(o.value)&&o.value[0]?o.value=r3($1(),o.value[0])?[$1(),o.value[0]]:[o.value[0],$1()]:o.value=[$1()]:o.value=$1(),R()},y2=()=>{if(Array.isArray(o.value))if(g.value.enabled){const d1=ee();o.value[o.value.length-1]=C(d1)}else o.value=o.value.map((d1,s1)=>d1&&C(d1,s1));else o.value=C(o.value);t("time-update")},ee=()=>Array.isArray(o.value)&&o.value.length?o.value[o.value.length-1]:null;return{calendars:l,modelValue:o,month:w,year:P,time:f,disabledTimesConfig:L,today:u,validateTime:N,getCalendarDays:o1,getMarker:k1,handleScroll:a1,handleSwipe:l1,handleArrow:F,selectDate:q1,updateMonthYear:p2,presetDate:E2,selectCurrentDate:h2,updateTime:(d1,s1=!0,_1=!1)=>{_(d1,s1,_1,y2)}}},Y_e={key:0},G_e=s.defineComponent({__name:"DatePicker",props:{...P6},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,{calendars:r,month:i,year:o,modelValue:l,time:f,disabledTimesConfig:u,today:d,validateTime:h,getCalendarDays:p,getMarker:v,handleArrow:m,handleScroll:y,handleSwipe:g,selectDate:M,updateMonthYear:x,presetDate:k,selectCurrentDate:b,updateTime:_}=W_e(n,c,W,I),C=s.useSlots(),{setHoverDate:H,getDayClassData:V,clearHoverDate:N}=GCe(l,n),{defaultedMultiCalendars:L}=a3(n),w=s.ref([]),P=s.ref([]),j=s.ref(null),T=o0(C,"calendar"),R=o0(C,"monthYear"),Y=o0(C,"timePicker"),e1=a1=>{n.shadow||c("mount",a1)};s.watch(r,()=>{n.shadow||setTimeout(()=>{c("recalculate-position")},0)},{deep:!0});const Z=s.computed(()=>a1=>p(i.value(a1),o.value(a1)).map(F=>({...F,days:F.days.map(l1=>(l1.marker=v(l1),l1.classData=V(l1),l1))})));function W(a1){var F;a1||a1===0?(F=P.value[a1])==null||F.triggerTransition(i.value(a1),o.value(a1)):P.value.forEach((l1,k1)=>l1.triggerTransition(i.value(k1),o.value(k1)))}function I(){c("update-flow-step")}const E=(a1,F=!1)=>{M(a1,F),n.spaceConfirm&&c("select-date")},S=(a1,F,l1=0)=>{var k1;(k1=w.value[l1])==null||k1.toggleMonthPicker(a1,F)},U=(a1,F,l1=0)=>{var k1;(k1=w.value[l1])==null||k1.toggleYearPicker(a1,F)},G=(a1,F,l1)=>{var k1;(k1=j.value)==null||k1.toggleTimePicker(a1,F,l1)},A=a1=>{if(!n.range){const F=l.value?l.value:d,l1=a1?S6(F,{weekStartsOn:1}):BM1(F,{weekStartsOn:1});M({value:l1,current:P2(F)===i.value(0),text:"",classData:{}})}},B=a1=>{var F;(F=w.value[0])==null||F.handleMonthYearChange(a1,!0)},Q=a1=>{x(0,{month:i.value(0),year:o.value(0)+(a1?1:-1),fromNav:!0})},c1=(a1,F)=>{a1===u4.time&&c(`time-picker-${F?"open":"close"}`),c("overlay-toggle",{open:F,overlay:a1})},K=a1=>{c("overlay-toggle",{open:!1,overlay:a1}),c("focus-menu")};return t({clearHoverDate:N,presetDate:k,selectCurrentDate:b,toggleMonthPicker:S,toggleYearPicker:U,toggleTimePicker:G,handleArrow:m,updateMonthYear:x,getSidebarProps:()=>({modelValue:l,month:i,year:o,time:f,updateTime:_,updateMonthYear:x,selectDate:M,presetDate:k}),changeMonth:B,changeYear:Q,selectWeekDate:A}),(a1,F)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(aU,{"multi-calendars":s.unref(L).count,collapse:a1.collapse},{default:s.withCtx(({instance:l1,index:k1})=>[a1.disableMonthYearSelect?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(D_e,s.mergeProps({key:0,ref:f1=>{f1&&(w.value[k1]=f1)},months:s.unref(ek1)(a1.formatLocale,a1.locale,a1.monthNameFormat),years:s.unref(F11)(a1.yearRange,a1.locale,a1.reverseYears),month:s.unref(i)(l1),year:s.unref(o)(l1),instance:l1},a1.$props,{onMount:F[0]||(F[0]=f1=>e1(s.unref(vi).header)),onResetFlow:F[1]||(F[1]=f1=>a1.$emit("reset-flow")),onUpdateMonthYear:f1=>s.unref(x)(l1,f1),onOverlayClosed:K,onOverlayOpened:F[2]||(F[2]=f1=>a1.$emit("overlay-toggle",{open:!0,overlay:f1}))}),s.createSlots({_:2},[s.renderList(s.unref(R),(f1,t1)=>({name:f1,fn:s.withCtx(u1=>[s.renderSlot(a1.$slots,f1,s.normalizeProps(s.guardReactiveProps(u1)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),s.createVNode(U_e,s.mergeProps({ref:f1=>{f1&&(P.value[k1]=f1)},"mapped-dates":Z.value(l1),month:s.unref(i)(l1),year:s.unref(o)(l1),instance:l1},a1.$props,{onSelectDate:f1=>s.unref(M)(f1,l1!==1),onHandleSpace:f1=>E(f1,l1!==1),onSetHoverDate:F[3]||(F[3]=f1=>s.unref(H)(f1)),onHandleScroll:f1=>s.unref(y)(f1,l1),onHandleSwipe:f1=>s.unref(g)(f1,l1),onMount:F[4]||(F[4]=f1=>e1(s.unref(vi).calendar)),onResetFlow:F[5]||(F[5]=f1=>a1.$emit("reset-flow")),onTooltipOpen:F[6]||(F[6]=f1=>a1.$emit("tooltip-open",f1)),onTooltipClose:F[7]||(F[7]=f1=>a1.$emit("tooltip-close",f1))}),s.createSlots({_:2},[s.renderList(s.unref(T),(f1,t1)=>({name:f1,fn:s.withCtx(u1=>[s.renderSlot(a1.$slots,f1,s.normalizeProps(s.guardReactiveProps({...u1})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse"]),a1.enableTimePicker?(s.openBlock(),s.createElementBlock("div",Y_e,[a1.$slots["time-picker"]?s.renderSlot(a1.$slots,"time-picker",s.normalizeProps(s.mergeProps({key:0},{time:s.unref(f),updateTime:s.unref(_)}))):(s.openBlock(),s.createBlock(vk1,s.mergeProps({key:1,ref_key:"timePickerRef",ref:j},a1.$props,{hours:s.unref(f).hours,minutes:s.unref(f).minutes,seconds:s.unref(f).seconds,"internal-model-value":a1.internalModelValue,"disabled-times-config":s.unref(u),"validate-time":s.unref(h),onMount:F[8]||(F[8]=l1=>e1(s.unref(vi).timePicker)),"onUpdate:hours":F[9]||(F[9]=l1=>s.unref(_)(l1)),"onUpdate:minutes":F[10]||(F[10]=l1=>s.unref(_)(l1,!1)),"onUpdate:seconds":F[11]||(F[11]=l1=>s.unref(_)(l1,!1,!0)),onResetFlow:F[12]||(F[12]=l1=>a1.$emit("reset-flow")),onOverlayClosed:F[13]||(F[13]=l1=>c1(l1,!1)),onOverlayOpened:F[14]||(F[14]=l1=>c1(l1,!0)),onAmPmChange:F[15]||(F[15]=l1=>a1.$emit("am-pm-change",l1))}),s.createSlots({_:2},[s.renderList(s.unref(Y),(l1,k1)=>({name:l1,fn:s.withCtx(f1=>[s.renderSlot(a1.$slots,l1,s.normalizeProps(s.guardReactiveProps(f1)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):s.createCommentVNode("",!0)],64))}}),Z_e=(e,t)=>{const a=s.ref(),{defaultedMultiCalendars:c,defaultedConfig:n,defaultedHighlight:r,defaultedRange:i,propDates:o,defaultedFilters:l,defaultedMultiDates:f}=a3(e),{modelValue:u,year:d,month:h,calendars:p}=Wu(e,t),{isDisabled:v}=f5(e),{selectYear:m,groupedYears:y,showYearPicker:g,isDisabled:M,toggleYearPicker:x,handleYearSelect:k,handleYear:b}=mk1({modelValue:u,multiCalendars:c,highlight:r,calendars:p,propDates:o,month:h,year:d,filters:l,props:e,emit:t}),_=(T,R)=>[T,R].map(Y=>xt(Y,"MMMM",{locale:e.formatLocale})).join("-"),C=s.computed(()=>T=>u.value?Array.isArray(u.value)?u.value.some(R=>Oa1(T,R)):Oa1(u.value,T):!1),H=T=>{if(i.value.enabled){if(Array.isArray(u.value)){const R=I2(T,u.value[0])||I2(T,u.value[1]);return Jj(u.value,a.value,T)&&!R}return!1}return!1},V=(T,R)=>T.quarter===Na1(R)&&T.year===L2(R),N=T=>typeof r.value=="function"?r.value({quarter:Na1(T),year:L2(T)}):!!r.value.quarters.find(R=>V(R,T)),L=s.computed(()=>T=>{const R=ze(new Date,{year:d.value(T)});return vbe({start:L11(R),end:IM1(R)}).map(Y=>{const e1=ci(Y),Z=Aa1(Y),W=v(Y),I=H(e1),E=N(e1);return{text:_(e1,Z),value:e1,active:C.value(e1),highlighted:E,disabled:W,isBetween:I}})}),w=T=>{U11(T,u,f.value.limit),t("auto-apply",!0)},P=T=>{u.value=W11(u,T,t),cU(u.value,t,e.autoApply,e.modelAuto)},j=T=>{u.value=T,t("auto-apply")};return{defaultedConfig:n,defaultedMultiCalendars:c,groupedYears:y,year:d,isDisabled:M,quarters:L,showYearPicker:g,modelValue:u,setHoverDate:T=>{a.value=T},selectYear:m,selectQuarter:(T,R,Y)=>{if(!Y)return p.value[R].month=P2(Aa1(T)),f.value.enabled?w(T):i.value.enabled?P(T):j(T)},toggleYearPicker:x,handleYearSelect:k,handleYear:b}},X_e={class:"dp--quarter-items"},K_e=["data-test","disabled","onClick","onMouseover"],Q_e=s.defineComponent({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...P6},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.useSlots(),i=o0(r,"yearMode"),{defaultedMultiCalendars:o,defaultedConfig:l,groupedYears:f,year:u,isDisabled:d,quarters:h,modelValue:p,showYearPicker:v,setHoverDate:m,selectQuarter:y,toggleYearPicker:g,handleYearSelect:M,handleYear:x}=Z_e(n,c);return t({getSidebarProps:()=>({modelValue:p,year:u,selectQuarter:y,handleYearSelect:M,handleYear:x})}),(k,b)=>(s.openBlock(),s.createBlock(aU,{"multi-calendars":s.unref(o).count,collapse:k.collapse,stretch:""},{default:s.withCtx(({instance:_})=>[s.createElementVNode("div",{class:"dp-quarter-picker-wrap",style:s.normalizeStyle({minHeight:`${s.unref(l).modeHeight}px`})},[k.$slots["top-extra"]?s.renderSlot(k.$slots,"top-extra",{key:0,value:k.internalModelValue}):s.createCommentVNode("",!0),s.createElementVNode("div",null,[s.createVNode(dk1,s.mergeProps(k.$props,{items:s.unref(f)(_),instance:_,"show-year-picker":s.unref(v)[_],year:s.unref(u)(_),"is-disabled":C=>s.unref(d)(_,C),onHandleYear:C=>s.unref(x)(_,C),onYearSelect:C=>s.unref(M)(C,_),onToggleYearPicker:C=>s.unref(g)(_,C==null?void 0:C.flow,C==null?void 0:C.show)}),s.createSlots({_:2},[s.renderList(s.unref(i),(C,H)=>({name:C,fn:s.withCtx(V=>[s.renderSlot(k.$slots,C,s.normalizeProps(s.guardReactiveProps(V)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),s.createElementVNode("div",X_e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(h)(_),(C,H)=>(s.openBlock(),s.createElementBlock("div",{key:H},[s.createElementVNode("button",{type:"button",class:s.normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":C.active,"dp--qr-btn-between":C.isBetween,"dp--qr-btn-disabled":C.disabled,"dp--highlighted":C.highlighted}]),"data-test":C.value,disabled:C.disabled,onClick:V=>s.unref(y)(C.value,_,C.disabled),onMouseover:V=>s.unref(m)(C.value)},[k.$slots.quarter?s.renderSlot(k.$slots,"quarter",{key:0,value:C.value,text:C.text}):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(C.text),1)],64))],42,K_e)]))),128))])],4)]),_:3},8,["multi-calendars","collapse"]))}}),J_e=["id","aria-label"],ewe={key:0,class:"dp--menu-load-container"},twe=s.createElementVNode("span",{class:"dp--menu-loader"},null,-1),awe=[twe],cwe={key:0,class:"dp__sidebar_left"},nwe=["data-test","onClick","onKeydown"],rwe={key:2,class:"dp__sidebar_right"},iwe={key:3,class:"dp__action_extra"},Wa1=s.defineComponent({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...tU,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.ref(null),i=s.computed(()=>{const{openOnTop:t1,...u1}=n;return{...u1,flowStep:H.value,collapse:n.collapse,noOverlayFocus:n.noOverlayFocus,menuWrapRef:r.value}}),{setMenuFocused:o,setShiftKey:l,control:f}=uk1(),u=s.useSlots(),{defaultedTextInput:d,defaultedInline:h,defaultedConfig:p}=a3(n),v=s.ref(null),m=s.ref(0),y=s.ref(null),g=s.ref(!1),M=s.ref(null);s.onMounted(()=>{if(!n.shadow){g.value=!0,x(),window.addEventListener("resize",x);const t1=D3(r);if(t1&&!d.value.enabled&&!h.value.enabled&&(o(!0),j()),t1){const u1=o1=>{p.value.allowPreventDefault&&o1.preventDefault(),Va(o1,p.value,!0)};t1.addEventListener("pointerdown",u1),t1.addEventListener("mousedown",u1)}}}),s.onUnmounted(()=>{window.removeEventListener("resize",x)});const x=()=>{const t1=D3(y);t1&&(m.value=t1.getBoundingClientRect().width)},{arrowRight:k,arrowLeft:b,arrowDown:_,arrowUp:C}=l5(),{flowStep:H,updateFlowStep:V,childMount:N,resetFlow:L}=ZCe(n,c,M),w=s.computed(()=>n.monthPicker?f_e:n.yearPicker?d_e:n.timePicker?V_e:n.quarterPicker?Q_e:G_e),P=s.computed(()=>{var t1;if(p.value.arrowLeft)return p.value.arrowLeft;const u1=(t1=r.value)==null?void 0:t1.getBoundingClientRect(),o1=n.getInputRect();return o1.width<m.value&&o1.left<=((u1==null?void 0:u1.left)??0)?`${o1.width/2}px`:"50%"}),j=()=>{const t1=D3(r);t1&&t1.focus({preventScroll:!0})},T=s.computed(()=>{var t1;return((t1=M.value)==null?void 0:t1.getSidebarProps())||{}}),R=()=>{n.openOnTop&&c("recalculate-position")},Y=o0(u,"action"),e1=s.computed(()=>n.monthPicker||n.yearPicker?o0(u,"monthYear"):n.timePicker?o0(u,"timePicker"):o0(u,"shared")),Z=s.computed(()=>n.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),W=s.computed(()=>({dp__menu_disabled:n.disabled,dp__menu_readonly:n.readonly,"dp-menu-loading":n.loading})),I=s.computed(()=>({dp__menu:!0,dp__menu_index:!h.value.enabled,dp__relative:h.value.enabled,[n.menuClassName]:!!n.menuClassName})),E=t1=>{Va(t1,p.value,!0)},S=()=>{n.escClose&&c("close-picker")},U=t1=>{if(n.arrowNavigation){if(t1===S4.up)return C();if(t1===S4.down)return _();if(t1===S4.left)return b();if(t1===S4.right)return k()}else t1===S4.right||t1===S4.up?c1("handleArrow",S4.left,0,t1===S4.up):c1("handleArrow",S4.right,0,t1===S4.down)},G=t1=>{l(t1.shiftKey),!n.disableMonthYearSelect&&t1.code===Xe.tab&&t1.target.classList.contains("dp__menu")&&f.value.shiftKeyInMenu&&(t1.preventDefault(),Va(t1,p.value,!0),c("close-picker"))},A=()=>{j(),c("time-picker-close")},B=t1=>{var u1,o1,p1;(u1=M.value)==null||u1.toggleTimePicker(!1,!1),(o1=M.value)==null||o1.toggleMonthPicker(!1,!1,t1),(p1=M.value)==null||p1.toggleYearPicker(!1,!1,t1)},Q=(t1,u1=0)=>{var o1,p1,b1;return t1==="month"?(o1=M.value)==null?void 0:o1.toggleMonthPicker(!1,!0,u1):t1==="year"?(p1=M.value)==null?void 0:p1.toggleYearPicker(!1,!0,u1):t1==="time"?(b1=M.value)==null?void 0:b1.toggleTimePicker(!0,!1):B(u1)},c1=(t1,...u1)=>{var o1,p1;(o1=M.value)!=null&&o1[t1]&&((p1=M.value)==null||p1[t1](...u1))},K=()=>{c1("selectCurrentDate")},a1=(t1,u1)=>{c1("presetDate",t1,u1)},F=()=>{c1("clearHoverDate")},l1=(t1,u1)=>{c1("updateMonthYear",t1,u1)},k1=(t1,u1)=>{t1.preventDefault(),U(u1)},f1=t1=>{if(G(t1),t1.key===Xe.home||t1.key===Xe.end)return c1("selectWeekDate",t1.key===Xe.home);if(t1.key===Xe.pageUp||t1.key===Xe.pageDown)return t1.shiftKey?c1("changeYear",t1.key===Xe.pageUp):c1("changeMonth",t1.key===Xe.pageUp);switch(t1.key){case Xe.esc:return S();case Xe.arrowLeft:return k1(t1,S4.left);case Xe.arrowRight:return k1(t1,S4.right);case Xe.arrowUp:return k1(t1,S4.up);case Xe.arrowDown:return k1(t1,S4.down);default:return}};return t({updateMonthYear:l1,switchView:Q}),(t1,u1)=>{var o1,p1,b1;return s.openBlock(),s.createElementBlock("div",{id:t1.uid?`dp-menu-${t1.uid}`:void 0,ref_key:"dpMenuRef",ref:r,tabindex:"0",role:"dialog","aria-label":(o1=t1.ariaLabels)==null?void 0:o1.menu,class:s.normalizeClass(I.value),style:s.normalizeStyle({"--dp-arrow-left":P.value}),onMouseleave:F,onClick:E,onKeydown:f1},[(t1.disabled||t1.readonly)&&s.unref(h).enabled||t1.loading?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(W.value)},[t1.loading?(s.openBlock(),s.createElementBlock("div",ewe,awe)):s.createCommentVNode("",!0)],2)):s.createCommentVNode("",!0),!s.unref(h).enabled&&!t1.teleportCenter?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(Z.value)},null,2)):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"innerMenuRef",ref:y,class:s.normalizeClass({dp__menu_content_wrapper:((p1=t1.presetDates)==null?void 0:p1.length)||!!t1.$slots["left-sidebar"]||!!t1.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&(((b1=t1.presetDates)==null?void 0:b1.length)||!!t1.$slots["left-sidebar"]||!!t1.$slots["right-sidebar"])}),style:s.normalizeStyle({"--dp-menu-width":`${m.value}px`})},[t1.$slots["left-sidebar"]?(s.openBlock(),s.createElementBlock("div",cwe,[s.renderSlot(t1.$slots,"left-sidebar",s.normalizeProps(s.guardReactiveProps(T.value)))])):s.createCommentVNode("",!0),t1.presetDates.length?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t1.presetDates,(v1,C1)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:C1},[v1.slot?s.renderSlot(t1.$slots,v1.slot,{key:0,presetDate:a1,label:v1.label,value:v1.value}):(s.openBlock(),s.createElementBlock("button",{key:1,type:"button",style:s.normalizeStyle(v1.style||{}),class:s.normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test":v1.testId??void 0,onClick:s.withModifiers(D1=>a1(v1.value,v1.noTz),["prevent"]),onKeydown:D1=>s.unref(G4)(D1,()=>a1(v1.value,v1.noTz),!0)},s.toDisplayString(v1.label),47,nwe))],64))),128))],2)):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"calendarWrapperRef",ref:v,class:"dp__instance_calendar",role:"document"},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(w.value),s.mergeProps({ref_key:"dynCmpRef",ref:M},i.value,{"flow-step":s.unref(H),onMount:s.unref(N),onUpdateFlowStep:s.unref(V),onResetFlow:s.unref(L),onFocusMenu:j,onSelectDate:u1[0]||(u1[0]=v1=>t1.$emit("select-date")),onDateUpdate:u1[1]||(u1[1]=v1=>t1.$emit("date-update",v1)),onTooltipOpen:u1[2]||(u1[2]=v1=>t1.$emit("tooltip-open",v1)),onTooltipClose:u1[3]||(u1[3]=v1=>t1.$emit("tooltip-close",v1)),onAutoApply:u1[4]||(u1[4]=v1=>t1.$emit("auto-apply",v1)),onRangeStart:u1[5]||(u1[5]=v1=>t1.$emit("range-start",v1)),onRangeEnd:u1[6]||(u1[6]=v1=>t1.$emit("range-end",v1)),onInvalidFixedRange:u1[7]||(u1[7]=v1=>t1.$emit("invalid-fixed-range",v1)),onTimeUpdate:u1[8]||(u1[8]=v1=>t1.$emit("time-update")),onAmPmChange:u1[9]||(u1[9]=v1=>t1.$emit("am-pm-change",v1)),onTimePickerOpen:u1[10]||(u1[10]=v1=>t1.$emit("time-picker-open",v1)),onTimePickerClose:A,onRecalculatePosition:R,onUpdateMonthYear:u1[11]||(u1[11]=v1=>t1.$emit("update-month-year",v1)),onAutoApplyInvalid:u1[12]||(u1[12]=v1=>t1.$emit("auto-apply-invalid",v1)),onInvalidDate:u1[13]||(u1[13]=v1=>t1.$emit("invalid-date",v1)),onOverlayToggle:u1[14]||(u1[14]=v1=>t1.$emit("overlay-toggle",v1)),"onUpdate:internalModelValue":u1[15]||(u1[15]=v1=>t1.$emit("update:internal-model-value",v1))}),s.createSlots({_:2},[s.renderList(e1.value,(v1,C1)=>({name:v1,fn:s.withCtx(D1=>[s.renderSlot(t1.$slots,v1,s.normalizeProps(s.guardReactiveProps({...D1})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),t1.$slots["right-sidebar"]?(s.openBlock(),s.createElementBlock("div",rwe,[s.renderSlot(t1.$slots,"right-sidebar",s.normalizeProps(s.guardReactiveProps(T.value)))])):s.createCommentVNode("",!0),t1.$slots["action-extra"]?(s.openBlock(),s.createElementBlock("div",iwe,[t1.$slots["action-extra"]?s.renderSlot(t1.$slots,"action-extra",{key:0,selectCurrentDate:K}):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],6),!t1.autoApply||s.unref(p).keepActionRow?(s.openBlock(),s.createBlock(a_e,s.mergeProps({key:2,"menu-mount":g.value},i.value,{"calendar-width":m.value,onClosePicker:u1[16]||(u1[16]=v1=>t1.$emit("close-picker")),onSelectDate:u1[17]||(u1[17]=v1=>t1.$emit("select-date")),onInvalidSelect:u1[18]||(u1[18]=v1=>t1.$emit("invalid-select")),onSelectNow:K}),s.createSlots({_:2},[s.renderList(s.unref(Y),(v1,C1)=>({name:v1,fn:s.withCtx(D1=>[s.renderSlot(t1.$slots,v1,s.normalizeProps(s.guardReactiveProps({...D1})))])}))]),1040,["menu-mount","calendar-width"])):s.createCommentVNode("",!0)],46,J_e)}}}),owe=typeof window<"u"?window:void 0,AY=()=>{},swe=e=>s.getCurrentScope()?(s.onScopeDispose(e),!0):!1,lwe=(e,t,a,c)=>{if(!e)return AY;let n=AY;const r=s.watch(()=>s.unref(e),o=>{n(),o&&(o.addEventListener(t,a,c),n=()=>{o.removeEventListener(t,a,c),n=AY})},{immediate:!0,flush:"post"}),i=()=>{r(),n()};return swe(i),i},fwe=(e,t,a,c={})=>{const{window:n=owe,event:r="pointerdown"}=c;return n?lwe(n,r,i=>{const o=D3(e),l=D3(t);!o||!l||o===i.target||i.composedPath().includes(o)||i.composedPath().includes(l)||a(i)},{passive:!0}):void 0},uwe=s.defineComponent({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...tU},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.useSlots(),i=s.ref(!1),o=s.toRef(n,"modelValue"),l=s.toRef(n,"timezone"),f=s.ref(null),u=s.ref(null),d=s.ref(null),h=s.ref(!1),p=s.ref(null),v=s.ref(!1),m=s.ref(!1),y=s.ref(!1),{setMenuFocused:g,setShiftKey:M}=uk1(),{clearArrowNav:x}=l5(),{validateDate:k,isValidTime:b}=f5(n),{defaultedTransitions:_,defaultedTextInput:C,defaultedInline:H,defaultedConfig:V,defaultedRange:N,defaultedMultiDates:L}=a3(n),{menuTransition:w,showTransition:P}=Uu(_);s.onMounted(()=>{U(n.modelValue),s.nextTick().then(()=>{if(!H.value.enabled){const s1=W(p.value);s1==null||s1.addEventListener("scroll",k1),window==null||window.addEventListener("resize",f1)}}),H.value.enabled&&(i.value=!0),window==null||window.addEventListener("keyup",t1),window==null||window.addEventListener("keydown",u1)}),s.onUnmounted(()=>{if(!H.value.enabled){const s1=W(p.value);s1==null||s1.removeEventListener("scroll",k1),window==null||window.removeEventListener("resize",f1)}window==null||window.removeEventListener("keyup",t1),window==null||window.removeEventListener("keydown",u1)});const j=o0(r,"all",n.presetDates),T=o0(r,"input");s.watch([o,l],()=>{U(o.value)},{deep:!0});const{openOnTop:R,menuStyle:Y,xCorrect:e1,setMenuPosition:Z,getScrollableParent:W,shadowRender:I}=UCe({menuRef:f,menuRefInner:u,inputRef:d,pickerWrapperRef:p,inline:H,emit:c,props:n,slots:r}),{inputValue:E,internalModelValue:S,parseExternalModelValue:U,emitModelValue:G,formatInputValue:A,checkBeforeEmit:B}=qCe(c,n,h),Q=s.computed(()=>({dp__main:!0,dp__theme_dark:n.dark,dp__theme_light:!n.dark,dp__flex_display:H.value.enabled,"dp--flex-display-collapsed":y.value,dp__flex_display_with_input:H.value.input})),c1=s.computed(()=>n.dark?"dp__theme_dark":"dp__theme_light"),K=s.computed(()=>n.teleport?{to:typeof n.teleport=="boolean"?"body":n.teleport,disabled:!n.teleport||H.value.enabled}:{}),a1=s.computed(()=>({class:"dp__outer_menu_wrap"})),F=s.computed(()=>H.value.enabled&&(n.timePicker||n.monthPicker||n.yearPicker||n.quarterPicker)),l1=()=>{var s1,_1;return(_1=(s1=d.value)==null?void 0:s1.$el)==null?void 0:_1.getBoundingClientRect()},k1=()=>{i.value&&(V.value.closeOnScroll?Y1():Z())},f1=()=>{var s1;i.value&&Z();const _1=(s1=u.value)==null?void 0:s1.$el.getBoundingClientRect().width;y.value=document.body.offsetWidth<=_1},t1=s1=>{s1.key==="Tab"&&!H.value.enabled&&!n.teleport&&V.value.tabOutClosesMenu&&(p.value.contains(document.activeElement)||Y1()),m.value=s1.shiftKey},u1=s1=>{m.value=s1.shiftKey},o1=()=>{!n.disabled&&!n.readonly&&(I(Wa1,n),Z(!1),i.value=!0,i.value&&c("open"),i.value||B1(),U(n.modelValue))},p1=()=>{var s1;E.value="",B1(),(s1=d.value)==null||s1.setParsedDate(null),c("update:model-value",null),c("update:model-timezone-value",null),c("cleared"),V.value.closeOnClearValue&&Y1()},b1=()=>{const s1=S.value;return!s1||!Array.isArray(s1)&&k(s1)?!0:Array.isArray(s1)?L.value.enabled||s1.length===2&&k(s1[0])&&k(s1[1])?!0:N.value.partialRange&&!n.timePicker?k(s1[0]):!1:!1},v1=()=>{B()&&b1()?(G(),Y1()):c("invalid-select",S.value)},C1=s1=>{D1(),G(),V.value.closeOnAutoApply&&!s1&&Y1()},D1=()=>{d.value&&C.value.enabled&&d.value.setParsedDate(S.value)},R1=(s1=!1)=>{n.autoApply&&b(S.value)&&b1()&&(N.value.enabled&&Array.isArray(S.value)?(N.value.partialRange||S.value.length===2)&&C1(s1):C1(s1))},B1=()=>{C.value.enabled||(S.value=null)},Y1=()=>{H.value.enabled||(i.value&&(i.value=!1,e1.value=!1,g(!1),M(!1),x(),c("closed"),E.value&&U(o.value)),B1(),c("blur"))},G1=(s1,_1,L1=!1)=>{if(!s1){S.value=null;return}const W1=Array.isArray(s1)?!s1.some(S2=>!k(S2)):k(s1),g2=b(s1);W1&&g2&&(S.value=s1,_1&&(v.value=L1,v1(),c("text-submit")))},n2=()=>{n.autoApply&&b(S.value)&&G(),D1()},o2=()=>i.value?Y1():o1(),q1=s1=>{S.value=s1},p2=()=>{C.value.enabled&&(h.value=!0,A()),c("focus")},E2=()=>{if(C.value.enabled&&(h.value=!1,U(n.modelValue),v.value)){const s1=yCe(p.value,m.value);s1==null||s1.focus()}c("blur")},h2=s1=>{u.value&&u.value.updateMonthYear(0,{month:Ba1(s1.month),year:Ba1(s1.year)})},y2=s1=>{U(s1??n.modelValue)},ee=(s1,_1)=>{var L1;(L1=u.value)==null||L1.switchView(s1,_1)},d1=s1=>V.value.onClickOutside?V.value.onClickOutside(s1):Y1();return fwe(f,d,()=>d1(b1)),t({closeMenu:Y1,selectDate:v1,clearValue:p1,openMenu:o1,onScroll:k1,formatInputValue:A,updateInternalModelValue:q1,setMonthYear:h2,parseModel:y2,switchView:ee,toggleMenu:o2}),(s1,_1)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"pickerWrapperRef",ref:p,class:s.normalizeClass(Q.value),"data-datepicker-instance":""},[s.createVNode(JCe,s.mergeProps({ref_key:"inputRef",ref:d,"input-value":s.unref(E),"onUpdate:inputValue":_1[0]||(_1[0]=L1=>s.isRef(E)?E.value=L1:null),"is-menu-open":i.value},s1.$props,{onClear:p1,onOpen:o1,onSetInputDate:G1,onSetEmptyDate:s.unref(G),onSelectDate:v1,onToggle:o2,onClose:Y1,onFocus:p2,onBlur:E2,onRealBlur:_1[1]||(_1[1]=L1=>h.value=!1)}),s.createSlots({_:2},[s.renderList(s.unref(T),(L1,W1)=>({name:L1,fn:s.withCtx(g2=>[s.renderSlot(s1.$slots,L1,s.normalizeProps(s.guardReactiveProps(g2)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s1.teleport?s.Teleport:"div"),s.normalizeProps(s.guardReactiveProps(K.value)),{default:s.withCtx(()=>[s.createVNode(s.Transition,{name:s.unref(w)(s.unref(R)),css:s.unref(P)&&!s.unref(H).enabled},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,ref_key:"dpWrapMenuRef",ref:f},a1.value,{class:{"dp--menu-wrapper":!s.unref(H).enabled},style:s.unref(H).enabled?void 0:s.unref(Y)}),[s.createVNode(Wa1,s.mergeProps({ref_key:"dpMenuRef",ref:u},s1.$props,{"internal-model-value":s.unref(S),"onUpdate:internalModelValue":_1[2]||(_1[2]=L1=>s.isRef(S)?S.value=L1:null),class:{[c1.value]:!0,"dp--menu-wrapper":s1.teleport},"open-on-top":s.unref(R),"no-overlay-focus":F.value,collapse:y.value,"get-input-rect":l1,onClosePicker:Y1,onSelectDate:v1,onAutoApply:R1,onTimeUpdate:n2,onFlowStep:_1[3]||(_1[3]=L1=>s1.$emit("flow-step",L1)),onUpdateMonthYear:_1[4]||(_1[4]=L1=>s1.$emit("update-month-year",L1)),onInvalidSelect:_1[5]||(_1[5]=L1=>s1.$emit("invalid-select",s.unref(S))),onAutoApplyInvalid:_1[6]||(_1[6]=L1=>s1.$emit("invalid-select",L1)),onInvalidFixedRange:_1[7]||(_1[7]=L1=>s1.$emit("invalid-fixed-range",L1)),onRecalculatePosition:s.unref(Z),onTooltipOpen:_1[8]||(_1[8]=L1=>s1.$emit("tooltip-open",L1)),onTooltipClose:_1[9]||(_1[9]=L1=>s1.$emit("tooltip-close",L1)),onTimePickerOpen:_1[10]||(_1[10]=L1=>s1.$emit("time-picker-open",L1)),onTimePickerClose:_1[11]||(_1[11]=L1=>s1.$emit("time-picker-close",L1)),onAmPmChange:_1[12]||(_1[12]=L1=>s1.$emit("am-pm-change",L1)),onRangeStart:_1[13]||(_1[13]=L1=>s1.$emit("range-start",L1)),onRangeEnd:_1[14]||(_1[14]=L1=>s1.$emit("range-end",L1)),onDateUpdate:_1[15]||(_1[15]=L1=>s1.$emit("date-update",L1)),onInvalidDate:_1[16]||(_1[16]=L1=>s1.$emit("invalid-date",L1)),onOverlayToggle:_1[17]||(_1[17]=L1=>s1.$emit("overlay-toggle",L1))}),s.createSlots({_:2},[s.renderList(s.unref(j),(L1,W1)=>({name:L1,fn:s.withCtx(g2=>[s.renderSlot(s1.$slots,L1,s.normalizeProps(s.guardReactiveProps({...g2})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","onRecalculatePosition"])],16)):s.createCommentVNode("",!0)]),_:3},8,["name","css"])]),_:3},16))],2))}}),Y11=(()=>{const e=uwe;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),dwe=Object.freeze(Object.defineProperty({__proto__:null,default:Y11},Symbol.toStringTag,{value:"Module"}));Object.entries(dwe).forEach(([e,t])=>{e!=="default"&&(Y11[e]=t)});const hwe=s.defineComponent({__name:"PgaVueDatePicker",props:s.mergeModels({yearPicker:{type:Boolean},monthPicker:{type:Boolean},range:{type:Boolean},enableTimePicker:{type:Boolean},notClearable:{type:Boolean},disabled:{type:Boolean},format:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(n=>({"7d54712b":s.unref(a).input.height,42390913:s.unref(a).input.borderColor,"1db7c8e2":s.unref(a).input.borderRadius,"491ddb51":s.unref(a).input.backgroundColor,"64ba98ed":s.unref(a).input.backgroundColorDisabled,"3e3ecd8e":s.unref(a).input.colorFocus}));const t=s.useModel(e,"modelValue"),{form:a}=C4(),c=s.ref(!1);return(n,r)=>(s.openBlock(),s.createBlock(s.unref(Y11),{class:s.normalizeClass(["pga-date-picker",{"pga-date-picker--disabled":n.disabled,"pga-date-picker--open":c.value}]),modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=i=>t.value=i),disabled:n.disabled,clearable:!n.notClearable,yearPicker:n.yearPicker,monthPicker:n.monthPicker,range:n.range,enableTimePicker:n.enableTimePicker,timePickerInline:"",is24:"",autoApply:"",teleport:!0,locale:s.unref(C6)().language,format:n.format,previewFormat:n.format,onOpen:r[1]||(r[1]=i=>c.value=!0),onBlur:r[2]||(r[2]=i=>c.value=!1)},null,8,["class","modelValue","disabled","clearable","yearPicker","monthPicker","range","enableTimePicker","locale","format","previewFormat"]))}});const Gu=Q1(hwe,[["__scopeId","data-v-6340cbfb"]]),pwe=s.defineComponent({__name:"PgaDatePicker",props:s.mergeModels({isDateModel:{type:Boolean},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{},notClearable:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=s.computed({get(){const r=t.value;if(!r)return null;if(r instanceof Date)return r;const[i,o,l]=r.split("-").map(Number);return new Date(i,o-1,l)},set(r){if(!r){t.value=null;return}if(a.isDateModel){t.value=r;return}t.value=r.toISOString().split("T")[0]}});function n(r){return x6(r,{format:"numeric",withTime:!1})}return(r,i)=>(s.openBlock(),s.createBlock(M0,{label:r.label,withRequiredLabel:r.withRequiredLabel,withOptionalLabel:r.withOptionalLabel,withLabelSpace:r.withLabelSpace,info:r.info,description:r.description,errors:r.errors,grow:r.grow},{default:s.withCtx(()=>[s.createVNode(Gu,{modelValue:c.value,"onUpdate:modelValue":i[0]||(i[0]=o=>c.value=o),disabled:r.disabled,notClearable:r.notClearable,format:n},null,8,["modelValue","disabled","notClearable"])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}}),mwe=s.defineComponent({__name:"PgaDatetimePicker",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{},notClearable:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue");function a(c){return x6(c,{format:"short",withTime:!0})}return(c,n)=>(s.openBlock(),s.createBlock(M0,{label:c.label,withRequiredLabel:c.withRequiredLabel,withOptionalLabel:c.withOptionalLabel,withLabelSpace:c.withLabelSpace,info:c.info,description:c.description,errors:c.errors,grow:c.grow},{default:s.withCtx(()=>[s.createVNode(Gu,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=r=>t.value=r),enableTimePicker:"",disabled:c.disabled,notClearable:c.notClearable,format:a},null,8,["modelValue","disabled","notClearable"])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}}),vwe={class:"pga-icon-selector"},ywe=["onClick"],gwe=s.defineComponent({__name:"PgaIconSelector",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(n=>({"3be7db1d":s.unref(a).input.borderColor,"59e33818":s.unref(a).input.borderRadius}));const t=s.useModel(e,"modelValue"),{form:a}=C4(),c=["star","heart","mail","plus","minus","pen","square-pen","check","trash","file","clipboard","bell","calendar","clock","banknote","gift","percent","hand-coins","house","warehouse","car","store","gamepad","smartphone","school","shirt","stethoscope","smile","frown","cog","lock","bug","camera","code","headphones","wifi","user","search","arrow-left-right","circle"];return(n,r)=>(s.openBlock(),s.createBlock(M0,{label:n.label,withRequiredLabel:n.withRequiredLabel,withOptionalLabel:n.withOptionalLabel,withLabelSpace:n.withLabelSpace,info:n.info,description:n.description,errors:n.errors,grow:n.grow},{default:s.withCtx(()=>[s.createElementVNode("div",vwe,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(c,i=>s.createElementVNode("div",{key:i,class:s.normalizeClass(["icon-selector__item",{"icon-selector__item--selected":t.value===i,"icon-selector__item--disabled":n.disabled}]),onClick:o=>!n.disabled&&(t.value=i)},[s.createVNode(ge,{icon:i,color:t.value===i?"#ffffff":"first",size:"1.1rem"},null,8,["icon","color"])],10,ywe)),64))])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const Mwe=Q1(gwe,[["__scopeId","data-v-147025ed"]]);/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var gk1=1252,kwe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],G11={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Z11=function(e){kwe.indexOf(e)!=-1&&(gk1=G11[0]=e)};function xwe(){Z11(1252)}var s6=function(e){Z11(e)};function Mk1(){s6(1200),xwe()}function Ya1(e){for(var t=[],a=0,c=e.length;a<c;++a)t[a]=e.charCodeAt(a);return t}function bwe(e){for(var t=[],a=0;a<e.length>>1;++a)t[a]=String.fromCharCode(e.charCodeAt(2*a)+(e.charCodeAt(2*a+1)<<8));return t.join("")}function kk1(e){for(var t=[],a=0;a<e.length>>1;++a)t[a]=String.fromCharCode(e.charCodeAt(2*a+1)+(e.charCodeAt(2*a)<<8));return t.join("")}var cl=function(e){var t=e.charCodeAt(0),a=e.charCodeAt(1);return t==255&&a==254?bwe(e.slice(2)):t==254&&a==255?kk1(e.slice(2)):t==65279?e.slice(1):e},mh=function(t){return String.fromCharCode(t)},Ga1=function(t){return String.fromCharCode(t)},aa,ya="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Za1(e){for(var t="",a=0,c=0,n=0,r=0,i=0,o=0,l=0,f=0;f<e.length;)a=e.charCodeAt(f++),r=a>>2,c=e.charCodeAt(f++),i=(a&3)<<4|c>>4,n=e.charCodeAt(f++),o=(c&15)<<2|n>>6,l=n&63,isNaN(c)?o=l=64:isNaN(n)&&(l=64),t+=ya.charAt(r)+ya.charAt(i)+ya.charAt(o)+ya.charAt(l);return t}function m0(e){var t="",a=0,c=0,n=0,r=0,i=0,o=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var f=0;f<e.length;)r=ya.indexOf(e.charAt(f++)),i=ya.indexOf(e.charAt(f++)),a=r<<2|i>>4,t+=String.fromCharCode(a),o=ya.indexOf(e.charAt(f++)),c=(i&15)<<4|o>>2,o!==64&&(t+=String.fromCharCode(c)),l=ya.indexOf(e.charAt(f++)),n=(o&3)<<6|l,l!==64&&(t+=String.fromCharCode(n));return t}var $2=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),no=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,a){return a?new Buffer(t,a):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Ga(e){return $2?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Xa1(e){return $2?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var a6=function(t){return $2?no(t,"binary"):t.split("").map(function(a){return a.charCodeAt(0)&255})};function ro(e){if(Array.isArray(e))return e.map(function(c){return String.fromCharCode(c)}).join("");for(var t=[],a=0;a<e.length;++a)t[a]=String.fromCharCode(e[a]);return t.join("")}function X11(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return X11(new Uint8Array(e));for(var t=new Array(e.length),a=0;a<e.length;++a)t[a]=e[a];return t}var ca=$2?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:no(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,a=0;for(t=0;t<e.length;++t)a+=e[t].length;var c=new Uint8Array(a),n=0;for(t=0,a=0;t<e.length;a+=n,++t)if(n=e[t].length,e[t]instanceof Uint8Array)c.set(e[t],a);else{if(typeof e[t]=="string")throw"wtf";c.set(new Uint8Array(e[t]),a)}return c}return[].concat.apply([],e.map(function(r){return Array.isArray(r)?r:[].slice.call(r)}))};function zwe(e){for(var t=[],a=0,c=e.length+250,n=Ga(e.length+255),r=0;r<e.length;++r){var i=e.charCodeAt(r);if(i<128)n[a++]=i;else if(i<2048)n[a++]=192|i>>6&31,n[a++]=128|i&63;else if(i>=55296&&i<57344){i=(i&1023)+64;var o=e.charCodeAt(++r)&1023;n[a++]=240|i>>8&7,n[a++]=128|i>>2&63,n[a++]=128|o>>6&15|(i&3)<<4,n[a++]=128|o&63}else n[a++]=224|i>>12&15,n[a++]=128|i>>6&63,n[a++]=128|i&63;a>c&&(t.push(n.slice(0,a)),a=0,n=Ga(65535),c=65530)}return t.push(n.slice(0,a)),ca(t)}var E4=/\u0000/g,nl=/[\u0001-\u0006]/g;function ts(e){for(var t="",a=e.length-1;a>=0;)t+=e.charAt(a--);return t}function l6(e,t){var a=""+e;return a.length>=t?a:i3("0",t-a.length)+a}function K11(e,t){var a=""+e;return a.length>=t?a:i3(" ",t-a.length)+a}function Z$(e,t){var a=""+e;return a.length>=t?a:a+i3(" ",t-a.length)}function Cwe(e,t){var a=""+Math.round(e);return a.length>=t?a:i3("0",t-a.length)+a}function _we(e,t){var a=""+e;return a.length>=t?a:i3("0",t-a.length)+a}var Ka1=Math.pow(2,32);function Co(e,t){if(e>Ka1||e<-Ka1)return Cwe(e,t);var a=Math.round(e);return _we(a,t)}function X$(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var Qa1=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],TY=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function wwe(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var x2={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Ja1={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Hwe={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function K$(e,t,a){for(var c=e<0?-1:1,n=e*c,r=0,i=1,o=0,l=1,f=0,u=0,d=Math.floor(n);f<t&&(d=Math.floor(n),o=d*i+r,u=d*f+l,!(n-d<5e-8));)n=1/(n-d),r=i,i=o,l=f,f=u;if(u>t&&(f>t?(u=l,o=r):(u=f,o=i)),!a)return[0,c*o,u];var h=Math.floor(c*o/u);return[h,c*o-h*u,u]}function ni(e,t,a){if(e>2958465||e<0)return null;var c=e|0,n=Math.floor(86400*(e-c)),r=0,i=[],o={D:c,T:n,u:86400*(e-c)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(c+=1462),o.u>.9999&&(o.u=0,++n==86400&&(o.T=n=0,++c,++o.D)),c===60)i=a?[1317,10,29]:[1900,2,29],r=3;else if(c===0)i=a?[1317,8,29]:[1900,1,0],r=6;else{c>60&&--c;var l=new Date(1900,0,1);l.setDate(l.getDate()+c-1),i=[l.getFullYear(),l.getMonth()+1,l.getDate()],r=l.getDay(),c<60&&(r=(r+6)%7),a&&(r=Twe(l,i))}return o.y=i[0],o.m=i[1],o.d=i[2],o.S=n%60,n=Math.floor(n/60),o.M=n%60,n=Math.floor(n/60),o.H=n,o.q=r,o}var xk1=new Date(1899,11,31,0,0,0),Lwe=xk1.getTime(),Vwe=new Date(1900,2,1,0,0,0);function bk1(e,t){var a=e.getTime();return t?a-=1461*24*60*60*1e3:e>=Vwe&&(a+=24*60*60*1e3),(a-(Lwe+(e.getTimezoneOffset()-xk1.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function Q11(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Swe(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Nwe(e){var t=e<0?12:11,a=Q11(e.toFixed(12));return a.length<=t||(a=e.toPrecision(10),a.length<=t)?a:e.toExponential(5)}function Awe(e){var t=Q11(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function Uf(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),a;return t>=-4&&t<=-1?a=e.toPrecision(10+t):Math.abs(t)<=9?a=Nwe(e):t===10?a=e.toFixed(10).substr(0,12):a=Awe(e),Q11(Swe(a.toUpperCase()))}function Pi(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Uf(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return D0(14,bk1(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Twe(e,t){t[0]-=581;var a=e.getDay();return e<60&&(a=(a+6)%7),a}function Ewe(e,t,a,c){var n="",r=0,i=0,o=a.y,l,f=0;switch(e){case 98:o=a.y+543;case 121:switch(t.length){case 1:case 2:l=o%100,f=2;break;default:l=o%1e4,f=4;break}break;case 109:switch(t.length){case 1:case 2:l=a.m,f=t.length;break;case 3:return TY[a.m-1][1];case 5:return TY[a.m-1][0];default:return TY[a.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=a.d,f=t.length;break;case 3:return Qa1[a.q][0];default:return Qa1[a.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(a.H+11)%12,f=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=a.H,f=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=a.M,f=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return a.u===0&&(t=="s"||t=="ss")?l6(a.S,t.length):(c>=2?i=c===3?1e3:100:i=c===1?10:1,r=Math.round(i*(a.S+a.u)),r>=60*i&&(r=0),t==="s"?r===0?"0":""+r/i:(n=l6(r,2+c),t==="ss"?n.substr(0,2):"."+n.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=a.D*24+a.H;break;case"[m]":case"[mm]":l=(a.D*24+a.H)*60+a.M;break;case"[s]":case"[ss]":l=((a.D*24+a.H)*60+a.M)*60+Math.round(a.S+a.u);break;default:throw"bad abstime format: "+t}f=t.length===3?1:2;break;case 101:l=o,f=1;break}var u=f>0?l6(l,f):"";return u}function ga(e){var t=3;if(e.length<=t)return e;for(var a=e.length%t,c=e.substr(0,a);a!=e.length;a+=t)c+=(c.length>0?",":"")+e.substr(a,t);return c}var zk1=/%/g;function Dwe(e,t,a){var c=t.replace(zk1,""),n=t.length-c.length;return v8(e,c,a*Math.pow(10,2*n))+i3("%",n)}function Pwe(e,t,a){for(var c=t.length-1;t.charCodeAt(c-1)===44;)--c;return v8(e,t.substr(0,c),a/Math.pow(10,3*(t.length-c)))}function Ck1(e,t){var a,c=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+Ck1(e,-t);var n=e.indexOf(".");n===-1&&(n=e.indexOf("E"));var r=Math.floor(Math.log(t)*Math.LOG10E)%n;if(r<0&&(r+=n),a=(t/Math.pow(10,r)).toPrecision(c+1+(n+r)%n),a.indexOf("e")===-1){var i=Math.floor(Math.log(t)*Math.LOG10E);for(a.indexOf(".")===-1?a=a.charAt(0)+"."+a.substr(1)+"E+"+(i-a.length+r):a+="E+"+(i-r);a.substr(0,2)==="0.";)a=a.charAt(0)+a.substr(2,n)+"."+a.substr(2+n),a=a.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");a=a.replace(/\+-/,"-")}a=a.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,f,u){return l+f+u.substr(0,(n+r)%n)+"."+u.substr(r)+"E"})}else a=t.toExponential(c);return e.match(/E\+00$/)&&a.match(/e[+-]\d$/)&&(a=a.substr(0,a.length-1)+"0"+a.charAt(a.length-1)),e.match(/E\-/)&&a.match(/e\+/)&&(a=a.replace(/e\+/,"e")),a.replace("e","E")}var _k1=/# (\?+)( ?)\/( ?)(\d+)/;function Owe(e,t,a){var c=parseInt(e[4],10),n=Math.round(t*c),r=Math.floor(n/c),i=n-r*c,o=c;return a+(r===0?"":""+r)+" "+(i===0?i3(" ",e[1].length+1+e[4].length):K11(i,e[1].length)+e[2]+"/"+e[3]+l6(o,e[4].length))}function Iwe(e,t,a){return a+(t===0?"":""+t)+i3(" ",e[1].length+2+e[4].length)}var wk1=/^#*0*\.([0#]+)/,Hk1=/\).*[0#]/,Lk1=/\(###\) ###\\?-####/;function N4(e){for(var t="",a,c=0;c!=e.length;++c)switch(a=e.charCodeAt(c)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(a)}return t}function e51(e,t){var a=Math.pow(10,t);return""+Math.round(e*a)/a}function t51(e,t){var a=e-Math.floor(e),c=Math.pow(10,t);return t<(""+Math.round(a*c)).length?0:Math.round(a*c)}function Bwe(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function Rwe(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function w0(e,t,a){if(e.charCodeAt(0)===40&&!t.match(Hk1)){var c=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return a>=0?w0("n",c,a):"("+w0("n",c,-a)+")"}if(t.charCodeAt(t.length-1)===44)return Pwe(e,t,a);if(t.indexOf("%")!==-1)return Dwe(e,t,a);if(t.indexOf("E")!==-1)return Ck1(t,a);if(t.charCodeAt(0)===36)return"$"+w0(e,t.substr(t.charAt(1)==" "?2:1),a);var n,r,i,o,l=Math.abs(a),f=a<0?"-":"";if(t.match(/^00+$/))return f+Co(l,t.length);if(t.match(/^[#?]+$/))return n=Co(a,0),n==="0"&&(n=""),n.length>t.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(_k1))return Owe(r,l,f);if(t.match(/^#+0+$/))return f+Co(l,t.length-t.indexOf("0"));if(r=t.match(wk1))return n=e51(a,r[1].length).replace(/^([^\.]+)$/,"$1."+N4(r[1])).replace(/\.$/,"."+N4(r[1])).replace(/\.(\d*)$/,function(v,m){return"."+m+i3("0",N4(r[1]).length-m.length)}),t.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),r=t.match(/^(0*)\.(#*)$/))return f+e51(l,r[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,r[1].length?"0.":".");if(r=t.match(/^#{1,3},##0(\.?)$/))return f+ga(Co(l,0));if(r=t.match(/^#,##0\.([#0]*0)$/))return a<0?"-"+w0(e,t,-a):ga(""+(Math.floor(a)+Bwe(a,r[1].length)))+"."+l6(t51(a,r[1].length),r[1].length);if(r=t.match(/^#,#*,#0/))return w0(e,t.replace(/^#,#*,/,""),a);if(r=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=ts(w0(e,t.replace(/[\\-]/g,""),a)),i=0,ts(ts(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return i<n.length?n.charAt(i++):v==="0"?"0":""}));if(t.match(Lk1))return n=w0(e,"##########",a),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var u="";if(r=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(r[4].length,7),o=K$(l,Math.pow(10,i)-1,!1),n=""+f,u=v8("n",r[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),n+=u+r[2]+"/"+r[3],u=Z$(o[2],i),u.length<r[4].length&&(u=N4(r[4].substr(r[4].length-u.length))+u),n+=u,n;if(r=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(Math.max(r[1].length,r[4].length),7),o=K$(l,Math.pow(10,i)-1,!0),f+(o[0]||(o[1]?"":"0"))+" "+(o[1]?K11(o[1],i)+r[2]+"/"+r[3]+Z$(o[2],i):i3(" ",2*i+1+r[2].length+r[3].length));if(r=t.match(/^[#0?]+$/))return n=Co(a,0),t.length<=n.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(/^([#0?]+)\.([#0]+)$/)){n=""+a.toFixed(Math.min(r[2].length,10)).replace(/([^0])0+$/,"$1"),i=n.indexOf(".");var d=t.indexOf(".")-i,h=t.length-n.length-d;return N4(t.substr(0,d)+n+t.substr(t.length-h))}if(r=t.match(/^00,000\.([#0]*0)$/))return i=t51(a,r[1].length),a<0?"-"+w0(e,t,-a):ga(Rwe(a)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?l6(0,3-v.length):"")+v})+"."+l6(i,r[1].length);switch(t){case"###,##0.00":return w0(e,"#,##0.00",a);case"###,###":case"##,###":case"#,###":var p=ga(Co(l,0));return p!=="0"?f+p:"";case"###,###.00":return w0(e,"###,##0.00",a).replace(/^0\./,".");case"#,###.00":return w0(e,"#,##0.00",a).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function Fwe(e,t,a){for(var c=t.length-1;t.charCodeAt(c-1)===44;)--c;return v8(e,t.substr(0,c),a/Math.pow(10,3*(t.length-c)))}function $we(e,t,a){var c=t.replace(zk1,""),n=t.length-c.length;return v8(e,c,a*Math.pow(10,2*n))+i3("%",n)}function Vk1(e,t){var a,c=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+Vk1(e,-t);var n=e.indexOf(".");n===-1&&(n=e.indexOf("E"));var r=Math.floor(Math.log(t)*Math.LOG10E)%n;if(r<0&&(r+=n),a=(t/Math.pow(10,r)).toPrecision(c+1+(n+r)%n),!a.match(/[Ee]/)){var i=Math.floor(Math.log(t)*Math.LOG10E);a.indexOf(".")===-1?a=a.charAt(0)+"."+a.substr(1)+"E+"+(i-a.length+r):a+="E+"+(i-r),a=a.replace(/\+-/,"-")}a=a.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,f,u){return l+f+u.substr(0,(n+r)%n)+"."+u.substr(r)+"E"})}else a=t.toExponential(c);return e.match(/E\+00$/)&&a.match(/e[+-]\d$/)&&(a=a.substr(0,a.length-1)+"0"+a.charAt(a.length-1)),e.match(/E\-/)&&a.match(/e\+/)&&(a=a.replace(/e\+/,"e")),a.replace("e","E")}function K6(e,t,a){if(e.charCodeAt(0)===40&&!t.match(Hk1)){var c=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return a>=0?K6("n",c,a):"("+K6("n",c,-a)+")"}if(t.charCodeAt(t.length-1)===44)return Fwe(e,t,a);if(t.indexOf("%")!==-1)return $we(e,t,a);if(t.indexOf("E")!==-1)return Vk1(t,a);if(t.charCodeAt(0)===36)return"$"+K6(e,t.substr(t.charAt(1)==" "?2:1),a);var n,r,i,o,l=Math.abs(a),f=a<0?"-":"";if(t.match(/^00+$/))return f+l6(l,t.length);if(t.match(/^[#?]+$/))return n=""+a,a===0&&(n=""),n.length>t.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(_k1))return Iwe(r,l,f);if(t.match(/^#+0+$/))return f+l6(l,t.length-t.indexOf("0"));if(r=t.match(wk1))return n=(""+a).replace(/^([^\.]+)$/,"$1."+N4(r[1])).replace(/\.$/,"."+N4(r[1])),n=n.replace(/\.(\d*)$/,function(v,m){return"."+m+i3("0",N4(r[1]).length-m.length)}),t.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),r=t.match(/^(0*)\.(#*)$/))return f+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,r[1].length?"0.":".");if(r=t.match(/^#{1,3},##0(\.?)$/))return f+ga(""+l);if(r=t.match(/^#,##0\.([#0]*0)$/))return a<0?"-"+K6(e,t,-a):ga(""+a)+"."+i3("0",r[1].length);if(r=t.match(/^#,#*,#0/))return K6(e,t.replace(/^#,#*,/,""),a);if(r=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=ts(K6(e,t.replace(/[\\-]/g,""),a)),i=0,ts(ts(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return i<n.length?n.charAt(i++):v==="0"?"0":""}));if(t.match(Lk1))return n=K6(e,"##########",a),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var u="";if(r=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(r[4].length,7),o=K$(l,Math.pow(10,i)-1,!1),n=""+f,u=v8("n",r[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),n+=u+r[2]+"/"+r[3],u=Z$(o[2],i),u.length<r[4].length&&(u=N4(r[4].substr(r[4].length-u.length))+u),n+=u,n;if(r=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(Math.max(r[1].length,r[4].length),7),o=K$(l,Math.pow(10,i)-1,!0),f+(o[0]||(o[1]?"":"0"))+" "+(o[1]?K11(o[1],i)+r[2]+"/"+r[3]+Z$(o[2],i):i3(" ",2*i+1+r[2].length+r[3].length));if(r=t.match(/^[#0?]+$/))return n=""+a,t.length<=n.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(/^([#0]+)\.([#0]+)$/)){n=""+a.toFixed(Math.min(r[2].length,10)).replace(/([^0])0+$/,"$1"),i=n.indexOf(".");var d=t.indexOf(".")-i,h=t.length-n.length-d;return N4(t.substr(0,d)+n+t.substr(t.length-h))}if(r=t.match(/^00,000\.([#0]*0)$/))return a<0?"-"+K6(e,t,-a):ga(""+a).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?l6(0,3-v.length):"")+v})+"."+l6(0,r[1].length);switch(t){case"###,###":case"##,###":case"#,###":var p=ga(""+l);return p!=="0"?f+p:"";default:if(t.match(/\.[0#?]*$/))return K6(e,t.slice(0,t.lastIndexOf(".")),a)+N4(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function v8(e,t,a){return(a|0)===a?K6(e,t,a):w0(e,t,a)}function qwe(e){for(var t=[],a=!1,c=0,n=0;c<e.length;++c)switch(e.charCodeAt(c)){case 34:a=!a;break;case 95:case 42:case 92:++c;break;case 59:t[t.length]=e.substr(n,c-n),n=c+1}if(t[t.length]=e.substr(n),a===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var Sk1=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Qs(e){for(var t=0,a="",c="";t<e.length;)switch(a=e.charAt(t)){case"G":X$(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(c=a;e.charAt(t++)!=="]"&&t<e.length;)c+=e.charAt(t);if(c.match(Sk1))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(a=e.charAt(++t))>-1||a=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===a;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function jwe(e,t,a,c){for(var n=[],r="",i=0,o="",l="t",f,u,d,h="H";i<e.length;)switch(o=e.charAt(i)){case"G":if(!X$(e,i))throw new Error("unrecognized character "+o+" in "+e);n[n.length]={t:"G",v:"General"},i+=7;break;case'"':for(r="";(d=e.charCodeAt(++i))!==34&&i<e.length;)r+=String.fromCharCode(d);n[n.length]={t:"t",v:r},++i;break;case"\\":var p=e.charAt(++i),v=p==="("||p===")"?p:"t";n[n.length]={t:v,v:p},++i;break;case"_":n[n.length]={t:"t",v:" "},i+=2;break;case"@":n[n.length]={t:"T",v:t},++i;break;case"B":case"b":if(e.charAt(i+1)==="1"||e.charAt(i+1)==="2"){if(f==null&&(f=ni(t,a,e.charAt(i+1)==="2"),f==null))return"";n[n.length]={t:"X",v:e.substr(i,2)},l=o,i+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":o=o.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||f==null&&(f=ni(t,a),f==null))return"";for(r=o;++i<e.length&&e.charAt(i).toLowerCase()===o;)r+=o;o==="m"&&l.toLowerCase()==="h"&&(o="M"),o==="h"&&(o=h),n[n.length]={t:o,v:r},l=o;break;case"A":case"a":case"上":var m={t:o,v:o};if(f==null&&(f=ni(t,a)),e.substr(i,3).toUpperCase()==="A/P"?(f!=null&&(m.v=f.H>=12?"P":"A"),m.t="T",h="h",i+=3):e.substr(i,5).toUpperCase()==="AM/PM"?(f!=null&&(m.v=f.H>=12?"PM":"AM"),m.t="T",i+=5,h="h"):e.substr(i,5).toUpperCase()==="上午/下午"?(f!=null&&(m.v=f.H>=12?"下午":"上午"),m.t="T",i+=5,h="h"):(m.t="t",++i),f==null&&m.t==="T")return"";n[n.length]=m,l=o;break;case"[":for(r=o;e.charAt(i++)!=="]"&&i<e.length;)r+=e.charAt(i);if(r.slice(-1)!=="]")throw'unterminated "[" block: |'+r+"|";if(r.match(Sk1)){if(f==null&&(f=ni(t,a),f==null))return"";n[n.length]={t:"Z",v:r.toLowerCase()},l=r.charAt(1)}else r.indexOf("$")>-1&&(r=(r.match(/\$([^-\[\]]*)/)||[])[1]||"$",Qs(e)||(n[n.length]={t:"t",v:r}));break;case".":if(f!=null){for(r=o;++i<e.length&&(o=e.charAt(i))==="0";)r+=o;n[n.length]={t:"s",v:r};break}case"0":case"#":for(r=o;++i<e.length&&"0#?.,E+-%".indexOf(o=e.charAt(i))>-1;)r+=o;n[n.length]={t:"n",v:r};break;case"?":for(r=o;e.charAt(++i)===o;)r+=o;n[n.length]={t:o,v:r},l=o;break;case"*":++i,(e.charAt(i)==" "||e.charAt(i)=="*")&&++i;break;case"(":case")":n[n.length]={t:c===1?"t":o,v:o},++i;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(r=o;i<e.length&&"0123456789".indexOf(e.charAt(++i))>-1;)r+=e.charAt(i);n[n.length]={t:"D",v:r};break;case" ":n[n.length]={t:o,v:o},++i;break;case"$":n[n.length]={t:"t",v:"$"},++i;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+e);n[n.length]={t:"t",v:o},++i;break}var y=0,g=0,M;for(i=n.length-1,l="t";i>=0;--i)switch(n[i].t){case"h":case"H":n[i].t=h,l="h",y<1&&(y=1);break;case"s":(M=n[i].v.match(/\.0+$/))&&(g=Math.max(g,M[0].length-1)),y<3&&(y=3);case"d":case"y":case"M":case"e":l=n[i].t;break;case"m":l==="s"&&(n[i].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&n[i].v.match(/[Hh]/)&&(y=1),y<2&&n[i].v.match(/[Mm]/)&&(y=2),y<3&&n[i].v.match(/[Ss]/)&&(y=3)}switch(y){case 0:break;case 1:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M),f.M>=60&&(f.M=0,++f.H);break;case 2:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M);break}var x="",k;for(i=0;i<n.length;++i)switch(n[i].t){case"t":case"T":case" ":case"D":break;case"X":n[i].v="",n[i].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":n[i].v=Ewe(n[i].t.charCodeAt(0),n[i].v,f,g),n[i].t="t";break;case"n":case"?":for(k=i+1;n[k]!=null&&((o=n[k].t)==="?"||o==="D"||(o===" "||o==="t")&&n[k+1]!=null&&(n[k+1].t==="?"||n[k+1].t==="t"&&n[k+1].v==="/")||n[i].t==="("&&(o===" "||o==="n"||o===")")||o==="t"&&(n[k].v==="/"||n[k].v===" "&&n[k+1]!=null&&n[k+1].t=="?"));)n[i].v+=n[k].v,n[k]={v:"",t:";"},++k;x+=n[i].v,i=k-1;break;case"G":n[i].t="t",n[i].v=Pi(t,a);break}var b="",_,C;if(x.length>0){x.charCodeAt(0)==40?(_=t<0&&x.charCodeAt(0)===45?-t:t,C=v8("n",x,_)):(_=t<0&&c>1?-t:t,C=v8("n",x,_),_<0&&n[0]&&n[0].t=="t"&&(C=C.substr(1),n[0].v="-"+n[0].v)),k=C.length-1;var H=n.length;for(i=0;i<n.length;++i)if(n[i]!=null&&n[i].t!="t"&&n[i].v.indexOf(".")>-1){H=i;break}var V=n.length;if(H===n.length&&C.indexOf("E")===-1){for(i=n.length-1;i>=0;--i)n[i]==null||"n?".indexOf(n[i].t)===-1||(k>=n[i].v.length-1?(k-=n[i].v.length,n[i].v=C.substr(k+1,n[i].v.length)):k<0?n[i].v="":(n[i].v=C.substr(0,k+1),k=-1),n[i].t="t",V=i);k>=0&&V<n.length&&(n[V].v=C.substr(0,k+1)+n[V].v)}else if(H!==n.length&&C.indexOf("E")===-1){for(k=C.indexOf(".")-1,i=H;i>=0;--i)if(!(n[i]==null||"n?".indexOf(n[i].t)===-1)){for(u=n[i].v.indexOf(".")>-1&&i===H?n[i].v.indexOf(".")-1:n[i].v.length-1,b=n[i].v.substr(u+1);u>=0;--u)k>=0&&(n[i].v.charAt(u)==="0"||n[i].v.charAt(u)==="#")&&(b=C.charAt(k--)+b);n[i].v=b,n[i].t="t",V=i}for(k>=0&&V<n.length&&(n[V].v=C.substr(0,k+1)+n[V].v),k=C.indexOf(".")+1,i=H;i<n.length;++i)if(!(n[i]==null||"n?(".indexOf(n[i].t)===-1&&i!==H)){for(u=n[i].v.indexOf(".")>-1&&i===H?n[i].v.indexOf(".")+1:0,b=n[i].v.substr(0,u);u<n[i].v.length;++u)k<C.length&&(b+=C.charAt(k++));n[i].v=b,n[i].t="t",V=i}}}for(i=0;i<n.length;++i)n[i]!=null&&"n?".indexOf(n[i].t)>-1&&(_=c>1&&t<0&&i>0&&n[i-1].v==="-"?-t:t,n[i].v=v8(n[i].t,n[i].v,_),n[i].t="t");var N="";for(i=0;i!==n.length;++i)n[i]!=null&&(N+=n[i].v);return N}var a51=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function c51(e,t){if(t==null)return!1;var a=parseFloat(t[2]);switch(t[1]){case"=":if(e==a)return!0;break;case">":if(e>a)return!0;break;case"<":if(e<a)return!0;break;case"<>":if(e!=a)return!0;break;case">=":if(e>=a)return!0;break;case"<=":if(e<=a)return!0;break}return!1}function Uwe(e,t){var a=qwe(e),c=a.length,n=a[c-1].indexOf("@");if(c<4&&n>-1&&--c,a.length>4)throw new Error("cannot find right format for |"+a.join("|")+"|");if(typeof t!="number")return[4,a.length===4||n>-1?a[a.length-1]:"@"];switch(a.length){case 1:a=n>-1?["General","General","General",a[0]]:[a[0],a[0],a[0],"@"];break;case 2:a=n>-1?[a[0],a[0],a[0],a[1]]:[a[0],a[1],a[0],"@"];break;case 3:a=n>-1?[a[0],a[1],a[0],a[2]]:[a[0],a[1],a[2],"@"];break}var r=t>0?a[0]:t<0?a[1]:a[2];if(a[0].indexOf("[")===-1&&a[1].indexOf("[")===-1)return[c,r];if(a[0].match(/\[[=<>]/)!=null||a[1].match(/\[[=<>]/)!=null){var i=a[0].match(a51),o=a[1].match(a51);return c51(t,i)?[c,a[0]]:c51(t,o)?[c,a[1]]:[c,a[i!=null&&o!=null?2:1]]}return[c,r]}function D0(e,t,a){a==null&&(a={});var c="";switch(typeof e){case"string":e=="m/d/yy"&&a.dateNF?c=a.dateNF:c=e;break;case"number":e==14&&a.dateNF?c=a.dateNF:c=(a.table!=null?a.table:x2)[e],c==null&&(c=a.table&&a.table[Ja1[e]]||x2[Ja1[e]]),c==null&&(c=Hwe[e]||"General");break}if(X$(c,0))return Pi(t,a);t instanceof Date&&(t=bk1(t,a.date1904));var n=Uwe(c,t);if(X$(n[1]))return Pi(t,a);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return jwe(n[1],t,a,n[0])}function gi(e,t){if(typeof t!="number"){t=+t||-1;for(var a=0;a<392;++a){if(x2[a]==null){t<0&&(t=a);continue}if(x2[a]==e){t=a;break}}t<0&&(t=391)}return x2[t]=e,t}function Nk1(){x2=wwe()}var Wwe={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Ak1=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Ywe(e){var t=typeof e=="number"?x2[e]:e;return t=t.replace(Ak1,"(\\d+)"),new RegExp("^"+t+"$")}function Gwe(e,t,a){var c=-1,n=-1,r=-1,i=-1,o=-1,l=-1;(t.match(Ak1)||[]).forEach(function(d,h){var p=parseInt(a[h+1],10);switch(d.toLowerCase().charAt(0)){case"y":c=p;break;case"d":r=p;break;case"h":i=p;break;case"s":l=p;break;case"m":i>=0?o=p:n=p;break}}),l>=0&&o==-1&&n>=0&&(o=n,n=-1);var f=(""+(c>=0?c:new Date().getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(r>=1?r:1)).slice(-2);f.length==7&&(f="0"+f),f.length==8&&(f="20"+f);var u=("00"+(i>=0?i:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return i==-1&&o==-1&&l==-1?f:c==-1&&n==-1&&r==-1?u:f+"T"+u}var Zwe=function(){var e={};e.version="1.2.0";function t(){for(var C=0,H=new Array(256),V=0;V!=256;++V)C=V,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,H[V]=C;return typeof Int32Array<"u"?new Int32Array(H):H}var a=t();function c(C){var H=0,V=0,N=0,L=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(N=0;N!=256;++N)L[N]=C[N];for(N=0;N!=256;++N)for(V=C[N],H=256+N;H<4096;H+=256)V=L[H]=V>>>8^C[V&255];var w=[];for(N=1;N!=16;++N)w[N-1]=typeof Int32Array<"u"?L.subarray(N*256,N*256+256):L.slice(N*256,N*256+256);return w}var n=c(a),r=n[0],i=n[1],o=n[2],l=n[3],f=n[4],u=n[5],d=n[6],h=n[7],p=n[8],v=n[9],m=n[10],y=n[11],g=n[12],M=n[13],x=n[14];function k(C,H){for(var V=H^-1,N=0,L=C.length;N<L;)V=V>>>8^a[(V^C.charCodeAt(N++))&255];return~V}function b(C,H){for(var V=H^-1,N=C.length-15,L=0;L<N;)V=x[C[L++]^V&255]^M[C[L++]^V>>8&255]^g[C[L++]^V>>16&255]^y[C[L++]^V>>>24]^m[C[L++]]^v[C[L++]]^p[C[L++]]^h[C[L++]]^d[C[L++]]^u[C[L++]]^f[C[L++]]^l[C[L++]]^o[C[L++]]^i[C[L++]]^r[C[L++]]^a[C[L++]];for(N+=15;L<N;)V=V>>>8^a[(V^C[L++])&255];return~V}function _(C,H){for(var V=H^-1,N=0,L=C.length,w=0,P=0;N<L;)w=C.charCodeAt(N++),w<128?V=V>>>8^a[(V^w)&255]:w<2048?(V=V>>>8^a[(V^(192|w>>6&31))&255],V=V>>>8^a[(V^(128|w&63))&255]):w>=55296&&w<57344?(w=(w&1023)+64,P=C.charCodeAt(N++)&1023,V=V>>>8^a[(V^(240|w>>8&7))&255],V=V>>>8^a[(V^(128|w>>2&63))&255],V=V>>>8^a[(V^(128|P>>6&15|(w&3)<<4))&255],V=V>>>8^a[(V^(128|P&63))&255]):(V=V>>>8^a[(V^(224|w>>12&15))&255],V=V>>>8^a[(V^(128|w>>6&63))&255],V=V>>>8^a[(V^(128|w&63))&255]);return~V}return e.table=a,e.bstr=k,e.buf=b,e.str=_,e}(),U2=function(){var t={};t.version="1.2.1";function a(i1,y1){for(var h1=i1.split("/"),m1=y1.split("/"),g1=0,M1=0,N1=Math.min(h1.length,m1.length);g1<N1;++g1){if(M1=h1[g1].length-m1[g1].length)return M1;if(h1[g1]!=m1[g1])return h1[g1]<m1[g1]?-1:1}return h1.length-m1.length}function c(i1){if(i1.charAt(i1.length-1)=="/")return i1.slice(0,-1).indexOf("/")===-1?i1:c(i1.slice(0,-1));var y1=i1.lastIndexOf("/");return y1===-1?i1:i1.slice(0,y1+1)}function n(i1){if(i1.charAt(i1.length-1)=="/")return n(i1.slice(0,-1));var y1=i1.lastIndexOf("/");return y1===-1?i1:i1.slice(y1+1)}function r(i1,y1){typeof y1=="string"&&(y1=new Date(y1));var h1=y1.getHours();h1=h1<<6|y1.getMinutes(),h1=h1<<5|y1.getSeconds()>>>1,i1.write_shift(2,h1);var m1=y1.getFullYear()-1980;m1=m1<<4|y1.getMonth()+1,m1=m1<<5|y1.getDate(),i1.write_shift(2,m1)}function i(i1){var y1=i1.read_shift(2)&65535,h1=i1.read_shift(2)&65535,m1=new Date,g1=h1&31;h1>>>=5;var M1=h1&15;h1>>>=4,m1.setMilliseconds(0),m1.setFullYear(h1+1980),m1.setMonth(M1-1),m1.setDate(g1);var N1=y1&31;y1>>>=5;var V1=y1&63;return y1>>>=6,m1.setHours(y1),m1.setMinutes(V1),m1.setSeconds(N1<<1),m1}function o(i1){a4(i1,0);for(var y1={},h1=0;i1.l<=i1.length-4;){var m1=i1.read_shift(2),g1=i1.read_shift(2),M1=i1.l+g1,N1={};switch(m1){case 21589:h1=i1.read_shift(1),h1&1&&(N1.mtime=i1.read_shift(4)),g1>5&&(h1&2&&(N1.atime=i1.read_shift(4)),h1&4&&(N1.ctime=i1.read_shift(4))),N1.mtime&&(N1.mt=new Date(N1.mtime*1e3));break}i1.l=M1,y1[m1]=N1}return y1}var l;function f(){return l||(l={})}function u(i1,y1){if(i1[0]==80&&i1[1]==75)return W1(i1,y1);if((i1[0]|32)==109&&(i1[1]|32)==105)return e4(i1,y1);if(i1.length<512)throw new Error("CFB file size "+i1.length+" < 512");var h1=3,m1=512,g1=0,M1=0,N1=0,V1=0,O=0,D=[],q=i1.slice(0,512);a4(q,0);var X=d(q);switch(h1=X[0],h1){case 3:m1=512;break;case 4:m1=4096;break;case 0:if(X[1]==0)return W1(i1,y1);default:throw new Error("Major Version: Expected 3 or 4 saw "+h1)}m1!==512&&(q=i1.slice(0,m1),a4(q,28));var J=i1.slice(0,m1);h(q,h1);var r1=q.read_shift(4,"i");if(h1===3&&r1!==0)throw new Error("# Directory Sectors: Expected 0 saw "+r1);q.l+=4,N1=q.read_shift(4,"i"),q.l+=4,q.chk("00100000","Mini Stream Cutoff Size: "),V1=q.read_shift(4,"i"),g1=q.read_shift(4,"i"),O=q.read_shift(4,"i"),M1=q.read_shift(4,"i");for(var n1=-1,z1=0;z1<109&&(n1=q.read_shift(4,"i"),!(n1<0));++z1)D[z1]=n1;var w1=p(i1,m1);y(O,M1,w1,m1,D);var H1=M(w1,N1,D,m1);H1[N1].name="!Directory",g1>0&&V1!==P&&(H1[V1].name="!MiniFAT"),H1[D[0]].name="!FAT",H1.fat_addrs=D,H1.ssz=m1;var x1={},O1=[],P1=[],Z1=[];x(N1,H1,w1,O1,g1,x1,P1,V1),v(P1,Z1,O1),O1.shift();var I1={FileIndex:P1,FullPaths:Z1};return y1&&y1.raw&&(I1.raw={header:J,sectors:w1}),I1}function d(i1){if(i1[i1.l]==80&&i1[i1.l+1]==75)return[0,0];i1.chk(j,"Header Signature: "),i1.l+=16;var y1=i1.read_shift(2,"u");return[i1.read_shift(2,"u"),y1]}function h(i1,y1){var h1=9;switch(i1.l+=2,h1=i1.read_shift(2)){case 9:if(y1!=3)throw new Error("Sector Shift: Expected 9 saw "+h1);break;case 12:if(y1!=4)throw new Error("Sector Shift: Expected 12 saw "+h1);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+h1)}i1.chk("0600","Mini Sector Shift: "),i1.chk("000000000000","Reserved: ")}function p(i1,y1){for(var h1=Math.ceil(i1.length/y1)-1,m1=[],g1=1;g1<h1;++g1)m1[g1-1]=i1.slice(g1*y1,(g1+1)*y1);return m1[h1-1]=i1.slice(h1*y1),m1}function v(i1,y1,h1){for(var m1=0,g1=0,M1=0,N1=0,V1=0,O=h1.length,D=[],q=[];m1<O;++m1)D[m1]=q[m1]=m1,y1[m1]=h1[m1];for(;V1<q.length;++V1)m1=q[V1],g1=i1[m1].L,M1=i1[m1].R,N1=i1[m1].C,D[m1]===m1&&(g1!==-1&&D[g1]!==g1&&(D[m1]=D[g1]),M1!==-1&&D[M1]!==M1&&(D[m1]=D[M1])),N1!==-1&&(D[N1]=m1),g1!==-1&&m1!=D[m1]&&(D[g1]=D[m1],q.lastIndexOf(g1)<V1&&q.push(g1)),M1!==-1&&m1!=D[m1]&&(D[M1]=D[m1],q.lastIndexOf(M1)<V1&&q.push(M1));for(m1=1;m1<O;++m1)D[m1]===m1&&(M1!==-1&&D[M1]!==M1?D[m1]=D[M1]:g1!==-1&&D[g1]!==g1&&(D[m1]=D[g1]));for(m1=1;m1<O;++m1)if(i1[m1].type!==0){if(V1=m1,V1!=D[V1])do V1=D[V1],y1[m1]=y1[V1]+"/"+y1[m1];while(V1!==0&&D[V1]!==-1&&V1!=D[V1]);D[m1]=-1}for(y1[0]+="/",m1=1;m1<O;++m1)i1[m1].type!==2&&(y1[m1]+="/")}function m(i1,y1,h1){for(var m1=i1.start,g1=i1.size,M1=[],N1=m1;h1&&g1>0&&N1>=0;)M1.push(y1.slice(N1*w,N1*w+w)),g1-=w,N1=G7(h1,N1*4);return M1.length===0?T3(0):ca(M1).slice(0,i1.size)}function y(i1,y1,h1,m1,g1){var M1=P;if(i1===P){if(y1!==0)throw new Error("DIFAT chain shorter than expected")}else if(i1!==-1){var N1=h1[i1],V1=(m1>>>2)-1;if(!N1)return;for(var O=0;O<V1&&(M1=G7(N1,O*4))!==P;++O)g1.push(M1);y(G7(N1,m1-4),y1-1,h1,m1,g1)}}function g(i1,y1,h1,m1,g1){var M1=[],N1=[];g1||(g1=[]);var V1=m1-1,O=0,D=0;for(O=y1;O>=0;){g1[O]=!0,M1[M1.length]=O,N1.push(i1[O]);var q=h1[Math.floor(O*4/m1)];if(D=O*4&V1,m1<4+D)throw new Error("FAT boundary crossed: "+O+" 4 "+m1);if(!i1[q])break;O=G7(i1[q],D)}return{nodes:M1,data:h51([N1])}}function M(i1,y1,h1,m1){var g1=i1.length,M1=[],N1=[],V1=[],O=[],D=m1-1,q=0,X=0,J=0,r1=0;for(q=0;q<g1;++q)if(V1=[],J=q+y1,J>=g1&&(J-=g1),!N1[J]){O=[];var n1=[];for(X=J;X>=0;){n1[X]=!0,N1[X]=!0,V1[V1.length]=X,O.push(i1[X]);var z1=h1[Math.floor(X*4/m1)];if(r1=X*4&D,m1<4+r1)throw new Error("FAT boundary crossed: "+X+" 4 "+m1);if(!i1[z1]||(X=G7(i1[z1],r1),n1[X]))break}M1[J]={nodes:V1,data:h51([O])}}return M1}function x(i1,y1,h1,m1,g1,M1,N1,V1){for(var O=0,D=m1.length?2:0,q=y1[i1].data,X=0,J=0,r1;X<q.length;X+=128){var n1=q.slice(X,X+128);a4(n1,64),J=n1.read_shift(2),r1=c21(n1,0,J-D),m1.push(r1);var z1={name:r1,type:n1.read_shift(1),color:n1.read_shift(1),L:n1.read_shift(4,"i"),R:n1.read_shift(4,"i"),C:n1.read_shift(4,"i"),clsid:n1.read_shift(16),state:n1.read_shift(4,"i"),start:0,size:0},w1=n1.read_shift(2)+n1.read_shift(2)+n1.read_shift(2)+n1.read_shift(2);w1!==0&&(z1.ct=k(n1,n1.l-8));var H1=n1.read_shift(2)+n1.read_shift(2)+n1.read_shift(2)+n1.read_shift(2);H1!==0&&(z1.mt=k(n1,n1.l-8)),z1.start=n1.read_shift(4,"i"),z1.size=n1.read_shift(4,"i"),z1.size<0&&z1.start<0&&(z1.size=z1.type=0,z1.start=P,z1.name=""),z1.type===5?(O=z1.start,g1>0&&O!==P&&(y1[O].name="!StreamData")):z1.size>=4096?(z1.storage="fat",y1[z1.start]===void 0&&(y1[z1.start]=g(h1,z1.start,y1.fat_addrs,y1.ssz)),y1[z1.start].name=z1.name,z1.content=y1[z1.start].data.slice(0,z1.size)):(z1.storage="minifat",z1.size<0?z1.size=0:O!==P&&z1.start!==P&&y1[O]&&(z1.content=m(z1,y1[O].data,(y1[V1]||{}).data))),z1.content&&a4(z1.content,0),M1[r1]=z1,N1.push(z1)}}function k(i1,y1){return new Date((c0(i1,y1+4)/1e7*Math.pow(2,32)+c0(i1,y1)/1e7-11644473600)*1e3)}function b(i1,y1){return f(),u(l.readFileSync(i1),y1)}function _(i1,y1){var h1=y1&&y1.type;switch(h1||$2&&Buffer.isBuffer(i1)&&(h1="buffer"),h1||"base64"){case"file":return b(i1,y1);case"base64":return u(a6(m0(i1)),y1);case"binary":return u(a6(i1),y1)}return u(i1,y1)}function C(i1,y1){var h1=y1||{},m1=h1.root||"Root Entry";if(i1.FullPaths||(i1.FullPaths=[]),i1.FileIndex||(i1.FileIndex=[]),i1.FullPaths.length!==i1.FileIndex.length)throw new Error("inconsistent CFB structure");i1.FullPaths.length===0&&(i1.FullPaths[0]=m1+"/",i1.FileIndex[0]={name:m1,type:5}),h1.CLSID&&(i1.FileIndex[0].clsid=h1.CLSID),H(i1)}function H(i1){var y1="Sh33tJ5";if(!U2.find(i1,"/"+y1)){var h1=T3(4);h1[0]=55,h1[1]=h1[3]=50,h1[2]=54,i1.FileIndex.push({name:y1,type:2,content:h1,size:4,L:69,R:69,C:69}),i1.FullPaths.push(i1.FullPaths[0]+y1),V(i1)}}function V(i1,y1){C(i1);for(var h1=!1,m1=!1,g1=i1.FullPaths.length-1;g1>=0;--g1){var M1=i1.FileIndex[g1];switch(M1.type){case 0:m1?h1=!0:(i1.FileIndex.pop(),i1.FullPaths.pop());break;case 1:case 2:case 5:m1=!0,isNaN(M1.R*M1.L*M1.C)&&(h1=!0),M1.R>-1&&M1.L>-1&&M1.R==M1.L&&(h1=!0);break;default:h1=!0;break}}if(!(!h1&&!y1)){var N1=new Date(1987,1,19),V1=0,O=Object.create?Object.create(null):{},D=[];for(g1=0;g1<i1.FullPaths.length;++g1)O[i1.FullPaths[g1]]=!0,i1.FileIndex[g1].type!==0&&D.push([i1.FullPaths[g1],i1.FileIndex[g1]]);for(g1=0;g1<D.length;++g1){var q=c(D[g1][0]);m1=O[q],m1||(D.push([q,{name:n(q).replace("/",""),type:1,clsid:R,ct:N1,mt:N1,content:null}]),O[q]=!0)}for(D.sort(function(r1,n1){return a(r1[0],n1[0])}),i1.FullPaths=[],i1.FileIndex=[],g1=0;g1<D.length;++g1)i1.FullPaths[g1]=D[g1][0],i1.FileIndex[g1]=D[g1][1];for(g1=0;g1<D.length;++g1){var X=i1.FileIndex[g1],J=i1.FullPaths[g1];if(X.name=n(J).replace("/",""),X.L=X.R=X.C=-(X.color=1),X.size=X.content?X.content.length:0,X.start=0,X.clsid=X.clsid||R,g1===0)X.C=D.length>1?1:-1,X.size=0,X.type=5;else if(J.slice(-1)=="/"){for(V1=g1+1;V1<D.length&&c(i1.FullPaths[V1])!=J;++V1);for(X.C=V1>=D.length?-1:V1,V1=g1+1;V1<D.length&&c(i1.FullPaths[V1])!=c(J);++V1);X.R=V1>=D.length?-1:V1,X.type=1}else c(i1.FullPaths[g1+1]||"")==c(J)&&(X.R=g1+1),X.type=2}}}function N(i1,y1){var h1=y1||{};if(h1.fileType=="mad")return X4(i1,h1);switch(V(i1),h1.fileType){case"zip":return S2(i1,h1)}var m1=function(r1){for(var n1=0,z1=0,w1=0;w1<r1.FileIndex.length;++w1){var H1=r1.FileIndex[w1];if(H1.content){var x1=H1.content.length;x1>0&&(x1<4096?n1+=x1+63>>6:z1+=x1+511>>9)}}for(var O1=r1.FullPaths.length+3>>2,P1=n1+7>>3,Z1=n1+127>>7,I1=P1+z1+O1+Z1,J1=I1+127>>7,v2=J1<=109?0:Math.ceil((J1-109)/127);I1+J1+v2+127>>7>J1;)v2=++J1<=109?0:Math.ceil((J1-109)/127);var X2=[1,v2,J1,Z1,O1,z1,n1,0];return r1.FileIndex[0].size=n1<<6,X2[7]=(r1.FileIndex[0].start=X2[0]+X2[1]+X2[2]+X2[3]+X2[4]+X2[5])+(X2[6]+7>>3),X2}(i1),g1=T3(m1[7]<<9),M1=0,N1=0;{for(M1=0;M1<8;++M1)g1.write_shift(1,T[M1]);for(M1=0;M1<8;++M1)g1.write_shift(2,0);for(g1.write_shift(2,62),g1.write_shift(2,3),g1.write_shift(2,65534),g1.write_shift(2,9),g1.write_shift(2,6),M1=0;M1<3;++M1)g1.write_shift(2,0);for(g1.write_shift(4,0),g1.write_shift(4,m1[2]),g1.write_shift(4,m1[0]+m1[1]+m1[2]+m1[3]-1),g1.write_shift(4,0),g1.write_shift(4,4096),g1.write_shift(4,m1[3]?m1[0]+m1[1]+m1[2]-1:P),g1.write_shift(4,m1[3]),g1.write_shift(-4,m1[1]?m1[0]-1:P),g1.write_shift(4,m1[1]),M1=0;M1<109;++M1)g1.write_shift(-4,M1<m1[2]?m1[1]+M1:-1)}if(m1[1])for(N1=0;N1<m1[1];++N1){for(;M1<236+N1*127;++M1)g1.write_shift(-4,M1<m1[2]?m1[1]+M1:-1);g1.write_shift(-4,N1===m1[1]-1?P:N1+1)}var V1=function(r1){for(N1+=r1;M1<N1-1;++M1)g1.write_shift(-4,M1+1);r1&&(++M1,g1.write_shift(-4,P))};for(N1=M1=0,N1+=m1[1];M1<N1;++M1)g1.write_shift(-4,Y.DIFSECT);for(N1+=m1[2];M1<N1;++M1)g1.write_shift(-4,Y.FATSECT);V1(m1[3]),V1(m1[4]);for(var O=0,D=0,q=i1.FileIndex[0];O<i1.FileIndex.length;++O)q=i1.FileIndex[O],q.content&&(D=q.content.length,!(D<4096)&&(q.start=N1,V1(D+511>>9)));for(V1(m1[6]+7>>3);g1.l&511;)g1.write_shift(-4,Y.ENDOFCHAIN);for(N1=M1=0,O=0;O<i1.FileIndex.length;++O)q=i1.FileIndex[O],q.content&&(D=q.content.length,!(!D||D>=4096)&&(q.start=N1,V1(D+63>>6)));for(;g1.l&511;)g1.write_shift(-4,Y.ENDOFCHAIN);for(M1=0;M1<m1[4]<<2;++M1){var X=i1.FullPaths[M1];if(!X||X.length===0){for(O=0;O<17;++O)g1.write_shift(4,0);for(O=0;O<3;++O)g1.write_shift(4,-1);for(O=0;O<12;++O)g1.write_shift(4,0);continue}q=i1.FileIndex[M1],M1===0&&(q.start=q.size?q.start-1:P);var J=M1===0&&h1.root||q.name;if(D=2*(J.length+1),g1.write_shift(64,J,"utf16le"),g1.write_shift(2,D),g1.write_shift(1,q.type),g1.write_shift(1,q.color),g1.write_shift(-4,q.L),g1.write_shift(-4,q.R),g1.write_shift(-4,q.C),q.clsid)g1.write_shift(16,q.clsid,"hex");else for(O=0;O<4;++O)g1.write_shift(4,0);g1.write_shift(4,q.state||0),g1.write_shift(4,0),g1.write_shift(4,0),g1.write_shift(4,0),g1.write_shift(4,0),g1.write_shift(4,q.start),g1.write_shift(4,q.size),g1.write_shift(4,0)}for(M1=1;M1<i1.FileIndex.length;++M1)if(q=i1.FileIndex[M1],q.size>=4096)if(g1.l=q.start+1<<9,$2&&Buffer.isBuffer(q.content))q.content.copy(g1,g1.l,0,q.size),g1.l+=q.size+511&-512;else{for(O=0;O<q.size;++O)g1.write_shift(1,q.content[O]);for(;O&511;++O)g1.write_shift(1,0)}for(M1=1;M1<i1.FileIndex.length;++M1)if(q=i1.FileIndex[M1],q.size>0&&q.size<4096)if($2&&Buffer.isBuffer(q.content))q.content.copy(g1,g1.l,0,q.size),g1.l+=q.size+63&-64;else{for(O=0;O<q.size;++O)g1.write_shift(1,q.content[O]);for(;O&63;++O)g1.write_shift(1,0)}if($2)g1.l=g1.length;else for(;g1.l<g1.length;)g1.write_shift(1,0);return g1}function L(i1,y1){var h1=i1.FullPaths.map(function(O){return O.toUpperCase()}),m1=h1.map(function(O){var D=O.split("/");return D[D.length-(O.slice(-1)=="/"?2:1)]}),g1=!1;y1.charCodeAt(0)===47?(g1=!0,y1=h1[0].slice(0,-1)+y1):g1=y1.indexOf("/")!==-1;var M1=y1.toUpperCase(),N1=g1===!0?h1.indexOf(M1):m1.indexOf(M1);if(N1!==-1)return i1.FileIndex[N1];var V1=!M1.match(nl);for(M1=M1.replace(E4,""),V1&&(M1=M1.replace(nl,"!")),N1=0;N1<h1.length;++N1)if((V1?h1[N1].replace(nl,"!"):h1[N1]).replace(E4,"")==M1||(V1?m1[N1].replace(nl,"!"):m1[N1]).replace(E4,"")==M1)return i1.FileIndex[N1];return null}var w=64,P=-2,j="d0cf11e0a1b11ae1",T=[208,207,17,224,161,177,26,225],R="00000000000000000000000000000000",Y={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:P,FREESECT:-1,HEADER_SIGNATURE:j,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:R,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function e1(i1,y1,h1){f();var m1=N(i1,h1);l.writeFileSync(y1,m1)}function Z(i1){for(var y1=new Array(i1.length),h1=0;h1<i1.length;++h1)y1[h1]=String.fromCharCode(i1[h1]);return y1.join("")}function W(i1,y1){var h1=N(i1,y1);switch(y1&&y1.type||"buffer"){case"file":return f(),l.writeFileSync(y1.filename,h1),h1;case"binary":return typeof h1=="string"?h1:Z(h1);case"base64":return Za1(typeof h1=="string"?h1:Z(h1));case"buffer":if($2)return Buffer.isBuffer(h1)?h1:no(h1);case"array":return typeof h1=="string"?a6(h1):h1}return h1}var I;function E(i1){try{var y1=i1.InflateRaw,h1=new y1;if(h1._processChunk(new Uint8Array([3,0]),h1._finishFlushFlag),h1.bytesRead)I=i1;else throw new Error("zlib does not expose bytesRead")}catch(m1){console.error("cannot use native zlib: "+(m1.message||m1))}}function S(i1,y1){if(!I)return _1(i1,y1);var h1=I.InflateRaw,m1=new h1,g1=m1._processChunk(i1.slice(i1.l),m1._finishFlushFlag);return i1.l+=m1.bytesRead,g1}function U(i1){return I?I.deflateRawSync(i1):q1(i1)}var G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],B=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function Q(i1){var y1=(i1<<1|i1<<11)&139536|(i1<<5|i1<<15)&558144;return(y1>>16|y1>>8|y1)&255}for(var c1=typeof Uint8Array<"u",K=c1?new Uint8Array(256):[],a1=0;a1<256;++a1)K[a1]=Q(a1);function F(i1,y1){var h1=K[i1&255];return y1<=8?h1>>>8-y1:(h1=h1<<8|K[i1>>8&255],y1<=16?h1>>>16-y1:(h1=h1<<8|K[i1>>16&255],h1>>>24-y1))}function l1(i1,y1){var h1=y1&7,m1=y1>>>3;return(i1[m1]|(h1<=6?0:i1[m1+1]<<8))>>>h1&3}function k1(i1,y1){var h1=y1&7,m1=y1>>>3;return(i1[m1]|(h1<=5?0:i1[m1+1]<<8))>>>h1&7}function f1(i1,y1){var h1=y1&7,m1=y1>>>3;return(i1[m1]|(h1<=4?0:i1[m1+1]<<8))>>>h1&15}function t1(i1,y1){var h1=y1&7,m1=y1>>>3;return(i1[m1]|(h1<=3?0:i1[m1+1]<<8))>>>h1&31}function u1(i1,y1){var h1=y1&7,m1=y1>>>3;return(i1[m1]|(h1<=1?0:i1[m1+1]<<8))>>>h1&127}function o1(i1,y1,h1){var m1=y1&7,g1=y1>>>3,M1=(1<<h1)-1,N1=i1[g1]>>>m1;return h1<8-m1||(N1|=i1[g1+1]<<8-m1,h1<16-m1)||(N1|=i1[g1+2]<<16-m1,h1<24-m1)||(N1|=i1[g1+3]<<24-m1),N1&M1}function p1(i1,y1,h1){var m1=y1&7,g1=y1>>>3;return m1<=5?i1[g1]|=(h1&7)<<m1:(i1[g1]|=h1<<m1&255,i1[g1+1]=(h1&7)>>8-m1),y1+3}function b1(i1,y1,h1){var m1=y1&7,g1=y1>>>3;return h1=(h1&1)<<m1,i1[g1]|=h1,y1+1}function v1(i1,y1,h1){var m1=y1&7,g1=y1>>>3;return h1<<=m1,i1[g1]|=h1&255,h1>>>=8,i1[g1+1]=h1,y1+8}function C1(i1,y1,h1){var m1=y1&7,g1=y1>>>3;return h1<<=m1,i1[g1]|=h1&255,h1>>>=8,i1[g1+1]=h1&255,i1[g1+2]=h1>>>8,y1+16}function D1(i1,y1){var h1=i1.length,m1=2*h1>y1?2*h1:y1+5,g1=0;if(h1>=y1)return i1;if($2){var M1=Xa1(m1);if(i1.copy)i1.copy(M1);else for(;g1<i1.length;++g1)M1[g1]=i1[g1];return M1}else if(c1){var N1=new Uint8Array(m1);if(N1.set)N1.set(i1);else for(;g1<h1;++g1)N1[g1]=i1[g1];return N1}return i1.length=m1,i1}function R1(i1){for(var y1=new Array(i1),h1=0;h1<i1;++h1)y1[h1]=0;return y1}function B1(i1,y1,h1){var m1=1,g1=0,M1=0,N1=0,V1=0,O=i1.length,D=c1?new Uint16Array(32):R1(32);for(M1=0;M1<32;++M1)D[M1]=0;for(M1=O;M1<h1;++M1)i1[M1]=0;O=i1.length;var q=c1?new Uint16Array(O):R1(O);for(M1=0;M1<O;++M1)D[g1=i1[M1]]++,m1<g1&&(m1=g1),q[M1]=0;for(D[0]=0,M1=1;M1<=m1;++M1)D[M1+16]=V1=V1+D[M1-1]<<1;for(M1=0;M1<O;++M1)V1=i1[M1],V1!=0&&(q[M1]=D[V1+16]++);var X=0;for(M1=0;M1<O;++M1)if(X=i1[M1],X!=0)for(V1=F(q[M1],m1)>>m1-X,N1=(1<<m1+4-X)-1;N1>=0;--N1)y1[V1|N1<<X]=X&15|M1<<4;return m1}var Y1=c1?new Uint16Array(512):R1(512),G1=c1?new Uint16Array(32):R1(32);if(!c1){for(var n2=0;n2<512;++n2)Y1[n2]=0;for(n2=0;n2<32;++n2)G1[n2]=0}(function(){for(var i1=[],y1=0;y1<32;y1++)i1.push(5);B1(i1,G1,32);var h1=[];for(y1=0;y1<=143;y1++)h1.push(8);for(;y1<=255;y1++)h1.push(9);for(;y1<=279;y1++)h1.push(7);for(;y1<=287;y1++)h1.push(8);B1(h1,Y1,288)})();var o2=function(){for(var y1=c1?new Uint8Array(32768):[],h1=0,m1=0;h1<B.length-1;++h1)for(;m1<B[h1+1];++m1)y1[m1]=h1;for(;m1<32768;++m1)y1[m1]=29;var g1=c1?new Uint8Array(259):[];for(h1=0,m1=0;h1<A.length-1;++h1)for(;m1<A[h1+1];++m1)g1[m1]=h1;function M1(V1,O){for(var D=0;D<V1.length;){var q=Math.min(65535,V1.length-D),X=D+q==V1.length;for(O.write_shift(1,+X),O.write_shift(2,q),O.write_shift(2,~q&65535);q-- >0;)O[O.l++]=V1[D++]}return O.l}function N1(V1,O){for(var D=0,q=0,X=c1?new Uint16Array(32768):[];q<V1.length;){var J=Math.min(65535,V1.length-q);if(J<10){for(D=p1(O,D,+(q+J==V1.length)),D&7&&(D+=8-(D&7)),O.l=D/8|0,O.write_shift(2,J),O.write_shift(2,~J&65535);J-- >0;)O[O.l++]=V1[q++];D=O.l*8;continue}D=p1(O,D,+(q+J==V1.length)+2);for(var r1=0;J-- >0;){var n1=V1[q];r1=(r1<<5^n1)&32767;var z1=-1,w1=0;if((z1=X[r1])&&(z1|=q&-32768,z1>q&&(z1-=32768),z1<q))for(;V1[z1+w1]==V1[q+w1]&&w1<250;)++w1;if(w1>2){n1=g1[w1],n1<=22?D=v1(O,D,K[n1+1]>>1)-1:(v1(O,D,3),D+=5,v1(O,D,K[n1-23]>>5),D+=3);var H1=n1<8?0:n1-4>>2;H1>0&&(C1(O,D,w1-A[n1]),D+=H1),n1=y1[q-z1],D=v1(O,D,K[n1]>>3),D-=3;var x1=n1<4?0:n1-2>>1;x1>0&&(C1(O,D,q-z1-B[n1]),D+=x1);for(var O1=0;O1<w1;++O1)X[r1]=q&32767,r1=(r1<<5^V1[q])&32767,++q;J-=w1-1}else n1<=143?n1=n1+48:D=b1(O,D,1),D=v1(O,D,K[n1]),X[r1]=q&32767,++q}D=v1(O,D,0)-1}return O.l=(D+7)/8|0,O.l}return function(O,D){return O.length<8?M1(O,D):N1(O,D)}}();function q1(i1){var y1=T3(50+Math.floor(i1.length*1.1)),h1=o2(i1,y1);return y1.slice(0,h1)}var p2=c1?new Uint16Array(32768):R1(32768),E2=c1?new Uint16Array(32768):R1(32768),h2=c1?new Uint16Array(128):R1(128),y2=1,ee=1;function d1(i1,y1){var h1=t1(i1,y1)+257;y1+=5;var m1=t1(i1,y1)+1;y1+=5;var g1=f1(i1,y1)+4;y1+=4;for(var M1=0,N1=c1?new Uint8Array(19):R1(19),V1=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],O=1,D=c1?new Uint8Array(8):R1(8),q=c1?new Uint8Array(8):R1(8),X=N1.length,J=0;J<g1;++J)N1[G[J]]=M1=k1(i1,y1),O<M1&&(O=M1),D[M1]++,y1+=3;var r1=0;for(D[0]=0,J=1;J<=O;++J)q[J]=r1=r1+D[J-1]<<1;for(J=0;J<X;++J)(r1=N1[J])!=0&&(V1[J]=q[r1]++);var n1=0;for(J=0;J<X;++J)if(n1=N1[J],n1!=0){r1=K[V1[J]]>>8-n1;for(var z1=(1<<7-n1)-1;z1>=0;--z1)h2[r1|z1<<n1]=n1&7|J<<3}var w1=[];for(O=1;w1.length<h1+m1;)switch(r1=h2[u1(i1,y1)],y1+=r1&7,r1>>>=3){case 16:for(M1=3+l1(i1,y1),y1+=2,r1=w1[w1.length-1];M1-- >0;)w1.push(r1);break;case 17:for(M1=3+k1(i1,y1),y1+=3;M1-- >0;)w1.push(0);break;case 18:for(M1=11+u1(i1,y1),y1+=7;M1-- >0;)w1.push(0);break;default:w1.push(r1),O<r1&&(O=r1);break}var H1=w1.slice(0,h1),x1=w1.slice(h1);for(J=h1;J<286;++J)H1[J]=0;for(J=m1;J<30;++J)x1[J]=0;return y2=B1(H1,p2,286),ee=B1(x1,E2,30),y1}function s1(i1,y1){if(i1[0]==3&&!(i1[1]&3))return[Ga(y1),2];for(var h1=0,m1=0,g1=Xa1(y1||1<<18),M1=0,N1=g1.length>>>0,V1=0,O=0;!(m1&1);){if(m1=k1(i1,h1),h1+=3,m1>>>1)m1>>1==1?(V1=9,O=5):(h1=d1(i1,h1),V1=y2,O=ee);else{h1&7&&(h1+=8-(h1&7));var D=i1[h1>>>3]|i1[(h1>>>3)+1]<<8;if(h1+=32,D>0)for(!y1&&N1<M1+D&&(g1=D1(g1,M1+D),N1=g1.length);D-- >0;)g1[M1++]=i1[h1>>>3],h1+=8;continue}for(;;){!y1&&N1<M1+32767&&(g1=D1(g1,M1+32767),N1=g1.length);var q=o1(i1,h1,V1),X=m1>>>1==1?Y1[q]:p2[q];if(h1+=X&15,X>>>=4,!(X>>>8&255))g1[M1++]=X;else{if(X==256)break;X-=257;var J=X<8?0:X-4>>2;J>5&&(J=0);var r1=M1+A[X];J>0&&(r1+=o1(i1,h1,J),h1+=J),q=o1(i1,h1,O),X=m1>>>1==1?G1[q]:E2[q],h1+=X&15,X>>>=4;var n1=X<4?0:X-2>>1,z1=B[X];for(n1>0&&(z1+=o1(i1,h1,n1),h1+=n1),!y1&&N1<r1&&(g1=D1(g1,r1+100),N1=g1.length);M1<r1;)g1[M1]=g1[M1-z1],++M1}}}return y1?[g1,h1+7>>>3]:[g1.slice(0,M1),h1+7>>>3]}function _1(i1,y1){var h1=i1.slice(i1.l||0),m1=s1(h1,y1);return i1.l+=m1[1],m1[0]}function L1(i1,y1){if(i1)typeof console<"u"&&console.error(y1);else throw new Error(y1)}function W1(i1,y1){var h1=i1;a4(h1,0);var m1=[],g1=[],M1={FileIndex:m1,FullPaths:g1};C(M1,{root:y1.root});for(var N1=h1.length-4;(h1[N1]!=80||h1[N1+1]!=75||h1[N1+2]!=5||h1[N1+3]!=6)&&N1>=0;)--N1;h1.l=N1+4,h1.l+=4;var V1=h1.read_shift(2);h1.l+=6;var O=h1.read_shift(4);for(h1.l=O,N1=0;N1<V1;++N1){h1.l+=20;var D=h1.read_shift(4),q=h1.read_shift(4),X=h1.read_shift(2),J=h1.read_shift(2),r1=h1.read_shift(2);h1.l+=8;var n1=h1.read_shift(4),z1=o(h1.slice(h1.l+X,h1.l+X+J));h1.l+=X+J+r1;var w1=h1.l;h1.l=n1+4,g2(h1,D,q,M1,z1),h1.l=w1}return M1}function g2(i1,y1,h1,m1,g1){i1.l+=2;var M1=i1.read_shift(2),N1=i1.read_shift(2),V1=i(i1);if(M1&8257)throw new Error("Unsupported ZIP encryption");for(var O=i1.read_shift(4),D=i1.read_shift(4),q=i1.read_shift(4),X=i1.read_shift(2),J=i1.read_shift(2),r1="",n1=0;n1<X;++n1)r1+=String.fromCharCode(i1[i1.l++]);if(J){var z1=o(i1.slice(i1.l,i1.l+J));(z1[21589]||{}).mt&&(V1=z1[21589].mt),((g1||{})[21589]||{}).mt&&(V1=g1[21589].mt)}i1.l+=J;var w1=i1.slice(i1.l,i1.l+D);switch(N1){case 8:w1=S(i1,q);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+N1)}var H1=!1;M1&8&&(O=i1.read_shift(4),O==134695760&&(O=i1.read_shift(4),H1=!0),D=i1.read_shift(4),q=i1.read_shift(4)),D!=y1&&L1(H1,"Bad compressed size: "+y1+" != "+D),q!=h1&&L1(H1,"Bad uncompressed size: "+h1+" != "+q),p3(m1,r1,w1,{unsafe:!0,mt:V1})}function S2(i1,y1){var h1=y1||{},m1=[],g1=[],M1=T3(1),N1=h1.compression?8:0,V1=0,O=0,D=0,q=0,X=0,J=i1.FullPaths[0],r1=J,n1=i1.FileIndex[0],z1=[],w1=0;for(O=1;O<i1.FullPaths.length;++O)if(r1=i1.FullPaths[O].slice(J.length),n1=i1.FileIndex[O],!(!n1.size||!n1.content||r1=="Sh33tJ5")){var H1=q,x1=T3(r1.length);for(D=0;D<r1.length;++D)x1.write_shift(1,r1.charCodeAt(D)&127);x1=x1.slice(0,x1.l),z1[X]=Zwe.buf(n1.content,0);var O1=n1.content;N1==8&&(O1=U(O1)),M1=T3(30),M1.write_shift(4,67324752),M1.write_shift(2,20),M1.write_shift(2,V1),M1.write_shift(2,N1),n1.mt?r(M1,n1.mt):M1.write_shift(4,0),M1.write_shift(-4,z1[X]),M1.write_shift(4,O1.length),M1.write_shift(4,n1.content.length),M1.write_shift(2,x1.length),M1.write_shift(2,0),q+=M1.length,m1.push(M1),q+=x1.length,m1.push(x1),q+=O1.length,m1.push(O1),M1=T3(46),M1.write_shift(4,33639248),M1.write_shift(2,0),M1.write_shift(2,20),M1.write_shift(2,V1),M1.write_shift(2,N1),M1.write_shift(4,0),M1.write_shift(-4,z1[X]),M1.write_shift(4,O1.length),M1.write_shift(4,n1.content.length),M1.write_shift(2,x1.length),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(4,0),M1.write_shift(4,H1),w1+=M1.l,g1.push(M1),w1+=x1.length,g1.push(x1),++X}return M1=T3(22),M1.write_shift(4,101010256),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(2,X),M1.write_shift(2,X),M1.write_shift(4,w1),M1.write_shift(4,q),M1.write_shift(2,0),ca([ca(m1),ca(g1),M1])}var Fe={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function h3(i1,y1){if(i1.ctype)return i1.ctype;var h1=i1.name||"",m1=h1.match(/\.([^\.]+)$/);return m1&&Fe[m1[1]]||y1&&(m1=(h1=y1).match(/[\.\\]([^\.\\])+$/),m1&&Fe[m1[1]])?Fe[m1[1]]:"application/octet-stream"}function s2(i1){for(var y1=Za1(i1),h1=[],m1=0;m1<y1.length;m1+=76)h1.push(y1.slice(m1,m1+76));return h1.join(`\r
|
|
9489
9489
|
`)+`\r
|
|
9490
9490
|
`}function V2(i1){var y1=i1.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(D){var q=D.charCodeAt(0).toString(16).toUpperCase();return"="+(q.length==1?"0"+q:q)});y1=y1.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),y1.charAt(0)==`
|
|
9491
9491
|
`&&(y1="=0D"+y1.slice(1)),y1=y1.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
|