var e="top",t="bottom",n="right",i="left",r="auto",o=[e,t,n,i],a="start",s="end",l="clippingParents",c="viewport",u="popper",d="reference",h=o.reduce((function(e,t){return e.concat([t+"-"+a,t+"-"+s])}),[]),f=[].concat(o,[r]).reduce((function(e,t){return e.concat([t,t+"-"+a,t+"-"+s])}),[]),p="beforeRead",m="read",g="afterRead",v="beforeMain",y="main",b="afterMain",_="beforeWrite",w="write",x="afterWrite",k=[p,m,g,v,y,b,_,w,x];function S(e){return e?(e.nodeName||"").toLowerCase():null}function T(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function C(e){return e instanceof T(e).Element||e instanceof Element}function M(e){return e instanceof T(e).HTMLElement||e instanceof HTMLElement}function D(e){return"undefined"!=typeof ShadowRoot&&(e instanceof T(e).ShadowRoot||e instanceof ShadowRoot)}const A={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];M(r)&&S(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});M(i)&&S(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};function O(e){return e.split("-")[0]}var E=Math.max,P=Math.min,N=Math.round;function R(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function L(){return!/^((?!chrome|android).)*safari/i.test(R())}function I(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,o=1;t&&M(e)&&(r=e.offsetWidth>0&&N(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&N(i.height)/e.offsetHeight||1);var a=(C(e)?T(e):window).visualViewport,s=!L()&&n,l=(i.left+(s&&a?a.offsetLeft:0))/r,c=(i.top+(s&&a?a.offsetTop:0))/o,u=i.width/r,d=i.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function F(e){var t=I(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Y(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&D(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function B(e){return T(e).getComputedStyle(e)}function U(e){return["table","td","th"].indexOf(S(e))>=0}function j(e){return((C(e)?e.ownerDocument:e.document)||window.document).documentElement}function H(e){return"html"===S(e)?e:e.assignedSlot||e.parentNode||(D(e)?e.host:null)||j(e)}function $(e){return M(e)&&"fixed"!==B(e).position?e.offsetParent:null}function V(e){for(var t=T(e),n=$(e);n&&U(n)&&"static"===B(n).position;)n=$(n);return n&&("html"===S(n)||"body"===S(n)&&"static"===B(n).position)?t:n||function(e){var t=/firefox/i.test(R());if(/Trident/i.test(R())&&M(e)&&"fixed"===B(e).position)return null;var n=H(e);for(D(n)&&(n=n.host);M(n)&&["html","body"].indexOf(S(n))<0;){var i=B(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function W(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function z(e,t,n){return E(e,P(t,n))}function q(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function X(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const G={name:"arrow",enabled:!0,phase:"main",fn:function(r){var a,s=r.state,l=r.name,c=r.options,u=s.elements.arrow,d=s.modifiersData.popperOffsets,h=O(s.placement),f=W(h),p=[i,n].indexOf(h)>=0?"height":"width";if(u&&d){var m=function(e,t){return q("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:X(e,o))}(c.padding,s),g=F(u),v="y"===f?e:i,y="y"===f?t:n,b=s.rects.reference[p]+s.rects.reference[f]-d[f]-s.rects.popper[p],_=d[f]-s.rects.reference[f],w=V(u),x=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0,k=b/2-_/2,S=m[v],T=x-g[p]-m[y],C=x/2-g[p]/2+k,M=z(S,C,T),D=f;s.modifiersData[l]=((a={})[D]=M,a.centerOffset=M-C,a)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Y(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function K(e){return e.split("-")[1]}var J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z(r){var o,a=r.popper,l=r.popperRect,c=r.placement,u=r.variation,d=r.offsets,h=r.position,f=r.gpuAcceleration,p=r.adaptive,m=r.roundOffsets,g=r.isFixed,v=d.x,y=void 0===v?0:v,b=d.y,_=void 0===b?0:b,w="function"==typeof m?m({x:y,y:_}):{x:y,y:_};y=w.x,_=w.y;var x=d.hasOwnProperty("x"),k=d.hasOwnProperty("y"),S=i,C=e,M=window;if(p){var D=V(a),A="clientHeight",O="clientWidth";if(D===T(a)&&"static"!==B(D=j(a)).position&&"absolute"===h&&(A="scrollHeight",O="scrollWidth"),c===e||(c===i||c===n)&&u===s)C=t,_-=(g&&D===M&&M.visualViewport?M.visualViewport.height:D[A])-l.height,_*=f?1:-1;if(c===i||(c===e||c===t)&&u===s)S=n,y-=(g&&D===M&&M.visualViewport?M.visualViewport.width:D[O])-l.width,y*=f?1:-1}var E,P=Object.assign({position:h},p&&J),R=!0===m?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:N(n*r)/r||0,y:N(i*r)/r||0}}({x:y,y:_},T(a)):{x:y,y:_};return y=R.x,_=R.y,f?Object.assign({},P,((E={})[C]=k?"0":"",E[S]=x?"0":"",E.transform=(M.devicePixelRatio||1)<=1?"translate("+y+"px, "+_+"px)":"translate3d("+y+"px, "+_+"px, 0)",E)):Object.assign({},P,((o={})[C]=k?_+"px":"",o[S]=x?y+"px":"",o.transform="",o))}const Q={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:O(t.placement),variation:K(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Z(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Z(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ee={passive:!0};const te={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=void 0===r||r,a=i.resize,s=void 0===a||a,l=T(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,ee)})),s&&l.addEventListener("resize",n.update,ee),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ee)})),s&&l.removeEventListener("resize",n.update,ee)}},data:{}};var ne={left:"right",right:"left",bottom:"top",top:"bottom"};function ie(e){return e.replace(/left|right|bottom|top/g,(function(e){return ne[e]}))}var re={start:"end",end:"start"};function oe(e){return e.replace(/start|end/g,(function(e){return re[e]}))}function ae(e){var t=T(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function se(e){return I(j(e)).left+ae(e).scrollLeft}function le(e){var t=B(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function ce(e){return["html","body","#document"].indexOf(S(e))>=0?e.ownerDocument.body:M(e)&&le(e)?e:ce(H(e))}function ue(e,t){var n;void 0===t&&(t=[]);var i=ce(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),o=T(i),a=r?[o].concat(o.visualViewport||[],le(i)?i:[]):i,s=t.concat(a);return r?s:s.concat(ue(H(a)))}function de(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function he(e,t,n){return t===c?de(function(e,t){var n=T(e),i=j(e),r=n.visualViewport,o=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){o=r.width,a=r.height;var c=L();(c||!c&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:o,height:a,x:s+se(e),y:l}}(e,n)):C(t)?function(e,t){var n=I(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):de(function(e){var t,n=j(e),i=ae(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=E(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=E(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+se(e),l=-i.scrollTop;return"rtl"===B(r||n).direction&&(s+=E(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(j(e)))}function fe(e,t,n,i){var r="clippingParents"===t?function(e){var t=ue(H(e)),n=["absolute","fixed"].indexOf(B(e).position)>=0&&M(e)?V(e):e;return C(n)?t.filter((function(e){return C(e)&&Y(e,n)&&"body"!==S(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o[0],s=o.reduce((function(t,n){var r=he(e,n,i);return t.top=E(r.top,t.top),t.right=P(r.right,t.right),t.bottom=P(r.bottom,t.bottom),t.left=E(r.left,t.left),t}),he(e,a,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function pe(r){var o,l=r.reference,c=r.element,u=r.placement,d=u?O(u):null,h=u?K(u):null,f=l.x+l.width/2-c.width/2,p=l.y+l.height/2-c.height/2;switch(d){case e:o={x:f,y:l.y-c.height};break;case t:o={x:f,y:l.y+l.height};break;case n:o={x:l.x+l.width,y:p};break;case i:o={x:l.x-c.width,y:p};break;default:o={x:l.x,y:l.y}}var m=d?W(d):null;if(null!=m){var g="y"===m?"height":"width";switch(h){case a:o[m]=o[m]-(l[g]/2-c[g]/2);break;case s:o[m]=o[m]+(l[g]/2-c[g]/2)}}return o}function me(i,r){void 0===r&&(r={});var a=r,s=a.placement,h=void 0===s?i.placement:s,f=a.strategy,p=void 0===f?i.strategy:f,m=a.boundary,g=void 0===m?l:m,v=a.rootBoundary,y=void 0===v?c:v,b=a.elementContext,_=void 0===b?u:b,w=a.altBoundary,x=void 0!==w&&w,k=a.padding,S=void 0===k?0:k,T=q("number"!=typeof S?S:X(S,o)),M=_===u?d:u,D=i.rects.popper,A=i.elements[x?M:_],O=fe(C(A)?A:A.contextElement||j(i.elements.popper),g,y,p),E=I(i.elements.reference),P=pe({reference:E,element:D,strategy:"absolute",placement:h}),N=de(Object.assign({},D,P)),R=_===u?N:E,L={top:O.top-R.top+T.top,bottom:R.bottom-O.bottom+T.bottom,left:O.left-R.left+T.left,right:R.right-O.right+T.right},F=i.modifiersData.offset;if(_===u&&F){var Y=F[h];Object.keys(L).forEach((function(i){var r=[n,t].indexOf(i)>=0?1:-1,o=[e,t].indexOf(i)>=0?"y":"x";L[i]+=Y[o]*r}))}return L}const ge={name:"flip",enabled:!0,phase:"main",fn:function(s){var l=s.state,c=s.options,u=s.name;if(!l.modifiersData[u]._skip){for(var d=c.mainAxis,p=void 0===d||d,m=c.altAxis,g=void 0===m||m,v=c.fallbackPlacements,y=c.padding,b=c.boundary,_=c.rootBoundary,w=c.altBoundary,x=c.flipVariations,k=void 0===x||x,S=c.allowedAutoPlacements,T=l.options.placement,C=O(T),M=v||(C===T||!k?[ie(T)]:function(e){if(O(e)===r)return[];var t=ie(e);return[oe(e),t,oe(t)]}(T)),D=[T].concat(M).reduce((function(e,t){return e.concat(O(t)===r?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?f:c,d=K(i),p=d?l?h:h.filter((function(e){return K(e)===d})):o,m=p.filter((function(e){return u.indexOf(e)>=0}));0===m.length&&(m=p);var g=m.reduce((function(t,n){return t[n]=me(e,{placement:n,boundary:r,rootBoundary:a,padding:s})[O(n)],t}),{});return Object.keys(g).sort((function(e,t){return g[e]-g[t]}))}(l,{placement:t,boundary:b,rootBoundary:_,padding:y,flipVariations:k,allowedAutoPlacements:S}):t)}),[]),A=l.rects.reference,E=l.rects.popper,P=new Map,N=!0,R=D[0],L=0;L=0,U=B?"width":"height",j=me(l,{placement:I,boundary:b,rootBoundary:_,altBoundary:w,padding:y}),H=B?Y?n:i:Y?t:e;A[U]>E[U]&&(H=ie(H));var $=ie(H),V=[];if(p&&V.push(j[F]<=0),g&&V.push(j[H]<=0,j[$]<=0),V.every((function(e){return e}))){R=I,N=!1;break}P.set(I,V)}if(N)for(var W=function(e){var t=D.find((function(t){var n=P.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return R=t,"break"},z=k?3:1;z>0;z--){if("break"===W(z))break}l.placement!==R&&(l.modifiersData[u]._skip=!0,l.placement=R,l.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ve(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ye(r){return[e,n,t,i].some((function(e){return r[e]>=0}))}const be={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,a=me(t,{elementContext:"reference"}),s=me(t,{altBoundary:!0}),l=ve(a,i),c=ve(s,r,o),u=ye(l),d=ye(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};const _e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var r=t.state,o=t.options,a=t.name,s=o.offset,l=void 0===s?[0,0]:s,c=f.reduce((function(t,o){return t[o]=function(t,r,o){var a=O(t),s=[i,e].indexOf(a)>=0?-1:1,l="function"==typeof o?o(Object.assign({},r,{placement:t})):o,c=l[0],u=l[1];return c=c||0,u=(u||0)*s,[i,n].indexOf(a)>=0?{x:u,y:c}:{x:c,y:u}}(o,r.rects,l),t}),{}),u=c[r.placement],d=u.x,h=u.y;null!=r.modifiersData.popperOffsets&&(r.modifiersData.popperOffsets.x+=d,r.modifiersData.popperOffsets.y+=h),r.modifiersData[a]=c}};const we={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=pe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const xe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(r){var o=r.state,s=r.options,l=r.name,c=s.mainAxis,u=void 0===c||c,d=s.altAxis,h=void 0!==d&&d,f=s.boundary,p=s.rootBoundary,m=s.altBoundary,g=s.padding,v=s.tether,y=void 0===v||v,b=s.tetherOffset,_=void 0===b?0:b,w=me(o,{boundary:f,rootBoundary:p,padding:g,altBoundary:m}),x=O(o.placement),k=K(o.placement),S=!k,T=W(x),C="x"===T?"y":"x",M=o.modifiersData.popperOffsets,D=o.rects.reference,A=o.rects.popper,N="function"==typeof _?_(Object.assign({},o.rects,{placement:o.placement})):_,R="number"==typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),L=o.modifiersData.offset?o.modifiersData.offset[o.placement]:null,I={x:0,y:0};if(M){if(u){var Y,B="y"===T?e:i,U="y"===T?t:n,j="y"===T?"height":"width",H=M[T],$=H+w[B],q=H-w[U],X=y?-A[j]/2:0,G=k===a?D[j]:A[j],J=k===a?-A[j]:-D[j],Z=o.elements.arrow,Q=y&&Z?F(Z):{width:0,height:0},ee=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[B],ne=ee[U],ie=z(0,D[j],Q[j]),re=S?D[j]/2-X-ie-te-R.mainAxis:G-ie-te-R.mainAxis,oe=S?-D[j]/2+X+ie+ne+R.mainAxis:J+ie+ne+R.mainAxis,ae=o.elements.arrow&&V(o.elements.arrow),se=ae?"y"===T?ae.clientTop||0:ae.clientLeft||0:0,le=null!=(Y=null==L?void 0:L[T])?Y:0,ce=H+oe-le,ue=z(y?P($,H+re-le-se):$,H,y?E(q,ce):q);M[T]=ue,I[T]=ue-H}if(h){var de,he="x"===T?e:i,fe="x"===T?t:n,pe=M[C],ge="y"===C?"height":"width",ve=pe+w[he],ye=pe-w[fe],be=-1!==[e,i].indexOf(x),_e=null!=(de=null==L?void 0:L[C])?de:0,we=be?ve:pe-D[ge]-A[ge]-_e+R.altAxis,xe=be?pe+D[ge]+A[ge]-_e-R.altAxis:ye,ke=y&&be?function(e,t,n){var i=z(e,t,n);return i>n?n:i}(we,pe,xe):z(y?we:ve,pe,y?xe:ye);M[C]=ke,I[C]=ke-pe}o.modifiersData[l]=I}},requiresIfExists:["offset"]};function ke(e,t,n){void 0===n&&(n=!1);var i,r,o=M(t),a=M(t)&&function(e){var t=e.getBoundingClientRect(),n=N(t.width)/e.offsetWidth||1,i=N(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),s=j(t),l=I(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==S(t)||le(s))&&(c=(i=t)!==T(i)&&M(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:ae(i)),M(t)?((u=I(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=se(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Se(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}var Te={placement:"bottom",modifiers:[],strategy:"absolute"};function Ce(){for(var e=arguments.length,t=new Array(e),n=0;nPe.has(e)&&Pe.get(e).get(t)||null,remove(e,t){if(!Pe.has(e))return;const n=Pe.get(e);n.delete(t),0===n.size&&Pe.delete(e)}},Re="transitionend",Le=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>"#".concat(CSS.escape(t))))),e),Ie=e=>{e.dispatchEvent(new Event(Re))},Fe=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Ye=e=>Fe(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(Le(e)):null,Be=e=>{if(!Fe(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},Ue=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),je=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?je(e.parentNode):null},He=()=>{},$e=e=>{e.offsetHeight},Ve=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,We=[],ze=()=>"rtl"===document.documentElement.dir,qe=e=>{var t;t=()=>{const t=Ve();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}},"loading"===document.readyState?(We.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of We)e()})),We.push(t)):t()},Xe=(e,t=[],n=e)=>"function"==typeof e?e(...t):n,Ge=(e,t,n=!0)=>{if(!n)return void Xe(e);const i=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),r=Number.parseFloat(n);return i||r?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let r=!1;const o=({target:n})=>{n===t&&(r=!0,t.removeEventListener(Re,o),Xe(e))};t.addEventListener(Re,o),setTimeout((()=>{r||Ie(t)}),i)},Ke=(e,t,n,i)=>{const r=e.length;let o=e.indexOf(t);return-1===o?!n&&i?e[r-1]:e[0]:(o+=n?1:-1,i&&(o=(o+r)%r),e[Math.max(0,Math.min(o,r-1))])},Je=/[^.]*(?=\..*)\.|.*/,Ze=/\..*/,Qe=/::\d+$/,et={}; /*! * Bootstrap v5.3.2 (https://getbootstrap.com/) * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */let tt=1;const nt={mouseenter:"mouseover",mouseleave:"mouseout"},it=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function rt(e,t){return t&&"".concat(t,"::").concat(tt++)||e.uidEvent||tt++}function ot(e){const t=rt(e);return e.uidEvent=t,et[t]=et[t]||{},et[t]}function at(e,t,n=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===n))}function st(e,t,n){const i="string"==typeof t,r=i?n:t||n;let o=dt(e);return it.has(o)||(o=e),[i,r,o]}function lt(e,t,n,i,r){if("string"!=typeof t||!e)return;let[o,a,s]=st(t,n,i);if(t in nt){a=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(a)}const l=ot(e),c=l[s]||(l[s]={}),u=at(c,a,o?n:null);if(u)return void(u.oneOff=u.oneOff&&r);const d=rt(a,t.replace(Je,"")),h=o?function(e,t,n){return function i(r){const o=e.querySelectorAll(t);for(let{target:a}=r;a&&a!==this;a=a.parentNode)for(const s of o)if(s===a)return ft(r,{delegateTarget:a}),i.oneOff&&ht.off(e,r.type,t,n),n.apply(a,[r])}}(e,n,a):function(e,t){return function n(i){return ft(i,{delegateTarget:e}),n.oneOff&&ht.off(e,i.type,t),t.apply(e,[i])}}(e,a);h.delegationSelector=o?n:null,h.callable=a,h.oneOff=r,h.uidEvent=d,c[d]=h,e.addEventListener(s,h,o)}function ct(e,t,n,i,r){const o=at(t[n],i,r);o&&(e.removeEventListener(n,o,Boolean(r)),delete t[n][o.uidEvent])}function ut(e,t,n,i){const r=t[n]||{};for(const[o,a]of Object.entries(r))o.includes(i)&&ct(e,t,n,a.callable,a.delegationSelector)}function dt(e){return e=e.replace(Ze,""),nt[e]||e}const ht={on(e,t,n,i){lt(e,t,n,i,!1)},one(e,t,n,i){lt(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const[r,o,a]=st(t,n,i),s=a!==t,l=ot(e),c=l[a]||{},u=t.startsWith(".");if(void 0===o){if(u)for(const n of Object.keys(l))ut(e,l,n,t.slice(1));for(const[n,i]of Object.entries(c)){const r=n.replace(Qe,"");s&&!t.includes(r)||ct(e,l,a,i.callable,i.delegationSelector)}}else{if(!Object.keys(c).length)return;ct(e,l,a,o,r?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=Ve();let r=null,o=!0,a=!0,s=!1;t!==dt(t)&&i&&(r=i.Event(t,n),i(e).trigger(r),o=!r.isPropagationStopped(),a=!r.isImmediatePropagationStopped(),s=r.isDefaultPrevented());const l=ft(new Event(t,{bubbles:o,cancelable:!0}),n);return s&&l.preventDefault(),a&&e.dispatchEvent(l),l.defaultPrevented&&r&&r.preventDefault(),l}};function ft(e,t={}){for(const[i,r]of Object.entries(t))try{e[i]=r}catch(n){Object.defineProperty(e,i,{configurable:!0,get:()=>r})}return e}function pt(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function mt(e){return e.replace(/[A-Z]/g,(e=>"-".concat(e.toLowerCase())))}const gt={setDataAttribute(e,t,n){e.setAttribute("data-bs-".concat(mt(t)),n)},removeDataAttribute(e,t){e.removeAttribute("data-bs-".concat(mt(t)))},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=pt(e.dataset[i])}return t},getDataAttribute:(e,t)=>pt(e.getAttribute("data-bs-".concat(mt(t))))};let vt=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=Fe(t)?gt.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...Fe(t)?gt.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[i,r]of Object.entries(t)){const t=e[i],o=Fe(t)?"element":null==(n=t)?"".concat(n):Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(o))throw new TypeError("".concat(this.constructor.NAME.toUpperCase(),': Option "').concat(i,'" provided type "').concat(o,'" but expected type "').concat(r,'".'))}var n}};class yt extends vt{constructor(e,t){super(),(e=Ye(e))&&(this._element=e,this._config=this._getConfig(t),Ne.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ne.remove(this._element,this.constructor.DATA_KEY),ht.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){Ge(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Ne.get(Ye(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.2"}static get DATA_KEY(){return"bs.".concat(this.NAME)}static get EVENT_KEY(){return".".concat(this.DATA_KEY)}static eventName(e){return"".concat(e).concat(this.EVENT_KEY)}}const bt=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#".concat(n.split("#")[1])),t=n&&"#"!==n?Le(n.trim()):null}return t},_t={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>"".concat(e,':not([tabindex^="-"])'))).join(",");return this.find(t,e).filter((e=>!Ue(e)&&Be(e)))},getSelectorFromElement(e){const t=bt(e);return t&&_t.findOne(t)?t:null},getElementFromSelector(e){const t=bt(e);return t?_t.findOne(t):null},getMultipleElementsFromSelector(e){const t=bt(e);return t?_t.find(t):[]}},wt=(e,t="hide")=>{const n="click.dismiss".concat(e.EVENT_KEY),i=e.NAME;ht.on(document,n,'[data-bs-dismiss="'.concat(i,'"]'),(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Ue(this))return;const r=_t.getElementFromSelector(this)||this.closest(".".concat(i));e.getOrCreateInstance(r)[t]()}))},xt=".".concat("bs.alert"),kt="close".concat(xt),St="closed".concat(xt);class Tt extends yt{static get NAME(){return"alert"}close(){if(ht.trigger(this._element,kt).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),ht.trigger(this._element,St),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=Tt.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}wt(Tt,"close"),qe(Tt);const Ct=".".concat("bs.button"),Mt='[data-bs-toggle="button"]',Dt="click".concat(Ct).concat(".data-api");class At extends yt{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=At.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}ht.on(document,Dt,Mt,(e=>{e.preventDefault();const t=e.target.closest(Mt);At.getOrCreateInstance(t).toggle()})),qe(At);const Ot=".bs.swipe",Et="touchstart".concat(Ot),Pt="touchmove".concat(Ot),Nt="touchend".concat(Ot),Rt="pointerdown".concat(Ot),Lt="pointerup".concat(Ot),It={endCallback:null,leftCallback:null,rightCallback:null},Ft={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Yt extends vt{constructor(e,t){super(),this._element=e,e&&Yt.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return It}static get DefaultType(){return Ft}static get NAME(){return"swipe"}dispose(){ht.off(this._element,Ot)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Xe(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&Xe(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ht.on(this._element,Rt,(e=>this._start(e))),ht.on(this._element,Lt,(e=>this._end(e))),this._element.classList.add("pointer-event")):(ht.on(this._element,Et,(e=>this._start(e))),ht.on(this._element,Pt,(e=>this._move(e))),ht.on(this._element,Nt,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Bt=".".concat("bs.carousel"),Ut=".data-api",jt="next",Ht="prev",$t="left",Vt="right",Wt="slide".concat(Bt),zt="slid".concat(Bt),qt="keydown".concat(Bt),Xt="mouseenter".concat(Bt),Gt="mouseleave".concat(Bt),Kt="dragstart".concat(Bt),Jt="load".concat(Bt).concat(Ut),Zt="click".concat(Bt).concat(Ut),Qt="carousel",en="active",tn=".active",nn=".carousel-item",rn=tn+nn,on={ArrowLeft:Vt,ArrowRight:$t},an={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},sn={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ln extends yt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=_t.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Qt&&this.cycle()}static get Default(){return an}static get DefaultType(){return sn}static get NAME(){return"carousel"}next(){this._slide(jt)}nextWhenVisible(){!document.hidden&&Be(this._element)&&this.next()}prev(){this._slide(Ht)}pause(){this._isSliding&&Ie(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?ht.one(this._element,zt,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void ht.one(this._element,zt,(()=>this.to(e)));const n=this._getItemIndex(this._getActive());if(n===e)return;const i=e>n?jt:Ht;this._slide(i,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&ht.on(this._element,qt,(e=>this._keydown(e))),"hover"===this._config.pause&&(ht.on(this._element,Xt,(()=>this.pause())),ht.on(this._element,Gt,(()=>this._maybeEnableCycle()))),this._config.touch&&Yt.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of _t.find(".carousel-item img",this._element))ht.on(t,Kt,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder($t)),rightCallback:()=>this._slide(this._directionToOrder(Vt)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new Yt(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=on[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=_t.findOne(tn,this._indicatorsElement);t.classList.remove(en),t.removeAttribute("aria-current");const n=_t.findOne('[data-bs-slide-to="'.concat(e,'"]'),this._indicatorsElement);n&&(n.classList.add(en),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),i=e===jt,r=t||Ke(this._getItems(),n,i,this._config.wrap);if(r===n)return;const o=this._getItemIndex(r),a=t=>ht.trigger(this._element,t,{relatedTarget:r,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:o});if(a(Wt).defaultPrevented)return;if(!n||!r)return;const s=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=r;const l=i?"carousel-item-start":"carousel-item-end",c=i?"carousel-item-next":"carousel-item-prev";r.classList.add(c),$e(r),n.classList.add(l),r.classList.add(l);this._queueCallback((()=>{r.classList.remove(l,c),r.classList.add(en),n.classList.remove(en,c,l),this._isSliding=!1,a(zt)}),n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return _t.findOne(rn,this._element)}_getItems(){return _t.find(nn,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return ze()?e===$t?Ht:jt:e===$t?jt:Ht}_orderToDirection(e){return ze()?e===Ht?$t:Vt:e===Ht?Vt:$t}static jQueryInterface(e){return this.each((function(){const t=ln.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}else t.to(e)}))}}ht.on(document,Zt,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=_t.getElementFromSelector(this);if(!t||!t.classList.contains(Qt))return;e.preventDefault();const n=ln.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===gt.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),ht.on(window,Jt,(()=>{const e=_t.find('[data-bs-ride="carousel"]');for(const t of e)ln.getOrCreateInstance(t)})),qe(ln);const cn=".".concat("bs.collapse"),un="show".concat(cn),dn="shown".concat(cn),hn="hide".concat(cn),fn="hidden".concat(cn),pn="click".concat(cn).concat(".data-api"),mn="show",gn="collapse",vn="collapsing",yn=":scope .".concat(gn," .").concat(gn),bn='[data-bs-toggle="collapse"]',_n={parent:null,toggle:!0},wn={parent:"(null|element)",toggle:"boolean"};class xn extends yt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=_t.find(bn);for(const i of n){const e=_t.getSelectorFromElement(i),t=_t.find(e).filter((e=>e===this._element));null!==e&&t.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return _n}static get DefaultType(){return wn}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>xn.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(ht.trigger(this._element,un).defaultPrevented)return;for(const r of e)r.hide();const t=this._getDimension();this._element.classList.remove(gn),this._element.classList.add(vn),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=t[0].toUpperCase()+t.slice(1),i="scroll".concat(n);this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(vn),this._element.classList.add(gn,mn),this._element.style[t]="",ht.trigger(this._element,dn)}),this._element,!0),this._element.style[t]="".concat(this._element[i],"px")}hide(){if(this._isTransitioning||!this._isShown())return;if(ht.trigger(this._element,hn).defaultPrevented)return;const e=this._getDimension();this._element.style[e]="".concat(this._element.getBoundingClientRect()[e],"px"),$e(this._element),this._element.classList.add(vn),this._element.classList.remove(gn,mn);for(const t of this._triggerArray){const e=_t.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(vn),this._element.classList.add(gn),ht.trigger(this._element,fn)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(mn)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Ye(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(bn);for(const t of e){const e=_t.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=_t.find(yn,this._config.parent);return _t.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const n=xn.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e]()}}))}}ht.on(document,pn,bn,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const t of _t.getMultipleElementsFromSelector(this))xn.getOrCreateInstance(t,{toggle:!1}).toggle()})),qe(xn);const kn="dropdown",Sn=".".concat("bs.dropdown"),Tn=".data-api",Cn="ArrowUp",Mn="ArrowDown",Dn="hide".concat(Sn),An="hidden".concat(Sn),On="show".concat(Sn),En="shown".concat(Sn),Pn="click".concat(Sn).concat(Tn),Nn="keydown".concat(Sn).concat(Tn),Rn="keyup".concat(Sn).concat(Tn),Ln="show",In='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Fn="".concat(In,".").concat(Ln),Yn=".dropdown-menu",Bn=ze()?"top-end":"top-start",Un=ze()?"top-start":"top-end",jn=ze()?"bottom-end":"bottom-start",Hn=ze()?"bottom-start":"bottom-end",$n=ze()?"left-start":"right-start",Vn=ze()?"right-start":"left-start",Wn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},zn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class qn extends yt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=_t.next(this._element,Yn)[0]||_t.prev(this._element,Yn)[0]||_t.findOne(Yn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Wn}static get DefaultType(){return zn}static get NAME(){return kn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ue(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ht.trigger(this._element,On,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))ht.on(e,"mouseover",He);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ln),this._element.classList.add(Ln),ht.trigger(this._element,En,e)}}hide(){if(Ue(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!ht.trigger(this._element,Dn,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))ht.off(e,"mouseover",He);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ln),this._element.classList.remove(Ln),this._element.setAttribute("aria-expanded","false"),gt.removeDataAttribute(this._menu,"popper"),ht.trigger(this._element,An,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Fe(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError("".concat(kn.toUpperCase(),': Option "reference" provided type "object" without a required "getBoundingClientRect" method.'));return e}_createPopper(){if(void 0===Ee)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:Fe(this._config.reference)?e=Ye(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Oe(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Ln)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return $n;if(e.classList.contains("dropstart"))return Vn;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Un:Bn:t?Hn:jn}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(gt.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Xe(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const n=_t.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>Be(e)));n.length&&Ke(n,t,e===Mn,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=qn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=_t.find(Fn);for(const n of t){const t=qn.getInstance(n);if(!t||!1===t._config.autoClose)continue;const i=e.composedPath(),r=i.includes(t._menu);if(i.includes(t._element)||"inside"===t._config.autoClose&&!r||"outside"===t._config.autoClose&&r)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,i=[Cn,Mn].includes(e.key);if(!i&&!n)return;if(t&&!n)return;e.preventDefault();const r=this.matches(In)?this:_t.prev(this,In)[0]||_t.next(this,In)[0]||_t.findOne(In,e.delegateTarget.parentNode),o=qn.getOrCreateInstance(r);if(i)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),r.focus())}}ht.on(document,Nn,In,qn.dataApiKeydownHandler),ht.on(document,Nn,Yn,qn.dataApiKeydownHandler),ht.on(document,Pn,qn.clearMenus),ht.on(document,Rn,qn.clearMenus),ht.on(document,Pn,In,(function(e){e.preventDefault(),qn.getOrCreateInstance(this).toggle()})),qe(qn);const Xn="backdrop",Gn="show",Kn="mousedown.bs.".concat(Xn),Jn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Zn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Qn extends vt{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Jn}static get DefaultType(){return Zn}static get NAME(){return Xn}show(e){if(!this._config.isVisible)return void Xe(e);this._append();const t=this._getElement();this._config.isAnimated&&$e(t),t.classList.add(Gn),this._emulateAnimation((()=>{Xe(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Gn),this._emulateAnimation((()=>{this.dispose(),Xe(e)}))):Xe(e)}dispose(){this._isAppended&&(ht.off(this._element,Kn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Ye(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ht.on(e,Kn,(()=>{Xe(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){Ge(e,this._getElement(),this._config.isAnimated)}}const ei=".".concat("bs.focustrap"),ti="focusin".concat(ei),ni="keydown.tab".concat(ei),ii="backward",ri={autofocus:!0,trapElement:null},oi={autofocus:"boolean",trapElement:"element"};class ai extends vt{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ri}static get DefaultType(){return oi}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ht.off(document,ei),ht.on(document,ti,(e=>this._handleFocusin(e))),ht.on(document,ni,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ht.off(document,ei))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=_t.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===ii?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?ii:"forward")}}const si=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",li=".sticky-top",ci="padding-right",ui="margin-right";class di{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ci,(t=>t+e)),this._setElementAttributes(si,ci,(t=>t+e)),this._setElementAttributes(li,ui,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ci),this._resetElementAttributes(si,ci),this._resetElementAttributes(li,ui)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const r=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,"".concat(n(Number.parseFloat(r)),"px"))}))}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&>.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const n=gt.getDataAttribute(e,t);null!==n?(gt.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(Fe(e))t(e);else for(const n of _t.find(e,this._element))t(n)}}const hi=".".concat("bs.modal"),fi="hide".concat(hi),pi="hidePrevented".concat(hi),mi="hidden".concat(hi),gi="show".concat(hi),vi="shown".concat(hi),yi="resize".concat(hi),bi="click.dismiss".concat(hi),_i="mousedown.dismiss".concat(hi),wi="keydown.dismiss".concat(hi),xi="click".concat(hi).concat(".data-api"),ki="modal-open",Si="show",Ti="modal-static",Ci={backdrop:!0,focus:!0,keyboard:!0},Mi={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Di extends yt{constructor(e,t){super(e,t),this._dialog=_t.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new di,this._addEventListeners()}static get Default(){return Ci}static get DefaultType(){return Mi}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;ht.trigger(this._element,gi,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ki),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;ht.trigger(this._element,fi).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Si),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){ht.off(window,hi),ht.off(this._dialog,hi),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Qn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ai({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=_t.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),$e(this._element),this._element.classList.add(Si);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ht.trigger(this._element,vi,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){ht.on(this._element,wi,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),ht.on(window,yi,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),ht.on(this._element,_i,(e=>{ht.one(this._element,bi,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(ki),this._resetAdjustments(),this._scrollBar.reset(),ht.trigger(this._element,mi)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(ht.trigger(this._element,pi).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Ti)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Ti),this._queueCallback((()=>{this._element.classList.remove(Ti),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const e=ze()?"paddingLeft":"paddingRight";this._element.style[e]="".concat(t,"px")}if(!n&&e){const e=ze()?"paddingRight":"paddingLeft";this._element.style[e]="".concat(t,"px")}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const n=Di.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e](t)}}))}}ht.on(document,xi,'[data-bs-toggle="modal"]',(function(e){const t=_t.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),ht.one(t,gi,(e=>{e.defaultPrevented||ht.one(t,mi,(()=>{Be(this)&&this.focus()}))}));const n=_t.findOne(".modal.show");n&&Di.getInstance(n).hide();Di.getOrCreateInstance(t).toggle(this)})),wt(Di),qe(Di);const Ai=".".concat("bs.offcanvas"),Oi=".data-api",Ei="load".concat(Ai).concat(Oi),Pi="show",Ni="showing",Ri="hiding",Li=".offcanvas.show",Ii="show".concat(Ai),Fi="shown".concat(Ai),Yi="hide".concat(Ai),Bi="hidePrevented".concat(Ai),Ui="hidden".concat(Ai),ji="resize".concat(Ai),Hi="click".concat(Ai).concat(Oi),$i="keydown.dismiss".concat(Ai),Vi={backdrop:!0,keyboard:!0,scroll:!1},Wi={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class zi extends yt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Vi}static get DefaultType(){return Wi}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(ht.trigger(this._element,Ii,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new di).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ni);this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Pi),this._element.classList.remove(Ni),ht.trigger(this._element,Fi,{relatedTarget:e})}),this._element,!0)}hide(){if(!this._isShown)return;if(ht.trigger(this._element,Yi).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ri),this._backdrop.hide();this._queueCallback((()=>{this._element.classList.remove(Pi,Ri),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new di).reset(),ht.trigger(this._element,Ui)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Qn({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():ht.trigger(this._element,Bi)}:null})}_initializeFocusTrap(){return new ai({trapElement:this._element})}_addEventListeners(){ht.on(this._element,$i,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():ht.trigger(this._element,Bi))}))}static jQueryInterface(e){return this.each((function(){const t=zi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}ht.on(document,Hi,'[data-bs-toggle="offcanvas"]',(function(e){const t=_t.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Ue(this))return;ht.one(t,Ui,(()=>{Be(this)&&this.focus()}));const n=_t.findOne(Li);n&&n!==t&&zi.getInstance(n).hide();zi.getOrCreateInstance(t).toggle(this)})),ht.on(window,Ei,(()=>{for(const e of _t.find(Li))zi.getOrCreateInstance(e).show()})),ht.on(window,ji,(()=>{for(const e of _t.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&zi.getOrCreateInstance(e).hide()})),wt(zi),qe(zi);const qi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Xi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Gi=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Ki=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!Xi.has(n)||Boolean(Gi.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(n)))};const Ji={allowList:qi,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Zi={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Qi={entry:"(string|element|function|null)",selector:"(string|element)"};class er extends vt{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Ji}static get DefaultType(){return Zi}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[i,r]of Object.entries(this._config.content))this._setContent(e,r,i);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Qi)}_setContent(e,t,n){const i=_t.findOne(n,e);i&&((t=this._resolvePossibleFunction(t))?Fe(t)?this._putElementInTemplate(Ye(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const i=(new window.DOMParser).parseFromString(e,"text/html"),r=[].concat(...i.body.querySelectorAll("*"));for(const o of r){const e=o.nodeName.toLowerCase();if(!Object.keys(t).includes(e)){o.remove();continue}const n=[].concat(...o.attributes),i=[].concat(t["*"]||[],t[e]||[]);for(const t of n)Ki(t,i)||o.removeAttribute(t.nodeName)}return i.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Xe(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const tr=new Set(["sanitize","allowList","sanitizeFn"]),nr="fade",ir="show",rr=".".concat("modal"),or="hide.bs.modal",ar="hover",sr="focus",lr={AUTO:"auto",TOP:"top",RIGHT:ze()?"left":"right",BOTTOM:"bottom",LEFT:ze()?"right":"left"},cr={allowList:qi,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},ur={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let dr=class e extends yt{constructor(e,t){if(void 0===Ee)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return cr}static get DefaultType(){return ur}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),ht.off(this._element.closest(rr),or,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=ht.trigger(this._element,this.constructor.eventName("show")),t=(je(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),ht.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(ir),"ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ht.on(r,"mouseover",He);this._queueCallback((()=>{ht.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(ht.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(ir),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))ht.off(e,"mouseover",He);this._activeTrigger.click=!1,this._activeTrigger[sr]=!1,this._activeTrigger[ar]=!1,this._isHovered=null;this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ht.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(nr,ir),t.classList.add("bs-".concat(this.constructor.NAME,"-auto"));const n=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(nr),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new er({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(nr)}_isShown(){return this.tip&&this.tip.classList.contains(ir)}_createPopper(e){const t=Xe(this._config.placement,[this,e,this._element]),n=lr[t.toUpperCase()];return Oe(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Xe(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:".".concat(this.constructor.NAME,"-arrow")}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...Xe(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)ht.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===ar?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===ar?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");ht.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?sr:ar]=!0,t._enter()})),ht.on(this._element,n,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?sr:ar]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},ht.on(this._element.closest(rr),or,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=gt.getDataAttributes(this._element);for(const n of Object.keys(t))tr.has(n)&&delete t[n];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:Ye(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const n=e.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'.concat(t,'"'));n[t]()}}))}};qe(dr);const hr={...dr.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},fr={...dr.DefaultType,content:"(null|string|element|function)"};class pr extends dr{static get Default(){return hr}static get DefaultType(){return fr}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=pr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}qe(pr);const mr=".".concat("bs.scrollspy"),gr="activate".concat(mr),vr="click".concat(mr),yr="load".concat(mr).concat(".data-api"),br="active",_r="[href]",wr=".nav-link",xr="".concat(wr,", ").concat(".nav-item"," > ").concat(wr,", ").concat(".list-group-item"),kr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Sr={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Tr extends yt{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return kr}static get DefaultType(){return Sr}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Ye(e.target)||document.body,e.rootMargin=e.offset?"".concat(e.offset,"px 0px -30%"):e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ht.off(this._config.target,vr),ht.on(this._config.target,vr,_r,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,i=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get("#".concat(e.target.id)),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},i=(this._rootElement||document.documentElement).scrollTop,r=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(o));continue}const e=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&e){if(n(o),!i)return}else r||e||n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=_t.find(_r,this._config.target);for(const t of e){if(!t.hash||Ue(t))continue;const e=_t.findOne(decodeURI(t.hash),this._element);Be(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(br),this._activateParents(e),ht.trigger(this._element,gr,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))_t.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(br);else for(const t of _t.parents(e,".nav, .list-group"))for(const e of _t.prev(t,xr))e.classList.add(br)}_clearActiveClass(e){e.classList.remove(br);const t=_t.find("".concat(_r,".").concat(br),e);for(const n of t)n.classList.remove(br)}static jQueryInterface(e){return this.each((function(){const t=Tr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}ht.on(window,yr,(()=>{for(const e of _t.find('[data-bs-spy="scroll"]'))Tr.getOrCreateInstance(e)})),qe(Tr);const Cr=".".concat("bs.tab"),Mr="hide".concat(Cr),Dr="hidden".concat(Cr),Ar="show".concat(Cr),Or="shown".concat(Cr),Er="click".concat(Cr),Pr="keydown".concat(Cr),Nr="load".concat(Cr),Rr="ArrowLeft",Lr="ArrowRight",Ir="ArrowUp",Fr="ArrowDown",Yr="Home",Br="End",Ur="active",jr="fade",Hr="show",$r=".dropdown-toggle",Vr=":not(".concat($r,")"),Wr=".nav-link".concat(Vr,", .list-group-item").concat(Vr,', [role="tab"]').concat(Vr),zr='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',qr="".concat(Wr,", ").concat(zr),Xr=".".concat(Ur,'[data-bs-toggle="tab"], .').concat(Ur,'[data-bs-toggle="pill"], .').concat(Ur,'[data-bs-toggle="list"]');class Gr extends yt{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ht.on(this._element,Pr,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?ht.trigger(t,Mr,{relatedTarget:e}):null;ht.trigger(e,Ar,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(Ur),this._activate(_t.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ht.trigger(e,Or,{relatedTarget:t})):e.classList.add(Hr)}),e,e.classList.contains(jr))}_deactivate(e,t){if(!e)return;e.classList.remove(Ur),e.blur(),this._deactivate(_t.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ht.trigger(e,Dr,{relatedTarget:t})):e.classList.remove(Hr)}),e,e.classList.contains(jr))}_keydown(e){if(![Rr,Lr,Ir,Fr,Yr,Br].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!Ue(e)));let n;if([Yr,Br].includes(e.key))n=t[e.key===Yr?0:t.length-1];else{const i=[Lr,Fr].includes(e.key);n=Ke(t,e.target,i,!0)}n&&(n.focus({preventScroll:!0}),Gr.getOrCreateInstance(n).show())}_getChildren(){return _t.find(qr,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const n of t)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=_t.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby","".concat(e.id)))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const i=(e,i)=>{const r=_t.findOne(e,n);r&&r.classList.toggle(i,t)};i($r,Ur),i(".dropdown-menu",Hr),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Ur)}_getInnerElement(e){return e.matches(qr)?e:_t.findOne(qr,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=Gr.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}ht.on(document,Er,zr,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),Ue(this)||Gr.getOrCreateInstance(this).show()})),ht.on(window,Nr,(()=>{for(const e of _t.find(Xr))Gr.getOrCreateInstance(e)})),qe(Gr);const Kr=".".concat("bs.toast"),Jr="mouseover".concat(Kr),Zr="mouseout".concat(Kr),Qr="focusin".concat(Kr),eo="focusout".concat(Kr),to="hide".concat(Kr),no="hidden".concat(Kr),io="show".concat(Kr),ro="shown".concat(Kr),oo="hide",ao="show",so="showing",lo={animation:"boolean",autohide:"boolean",delay:"number"},co={animation:!0,autohide:!0,delay:5e3};class uo extends yt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return co}static get DefaultType(){return lo}static get NAME(){return"toast"}show(){if(ht.trigger(this._element,io).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(oo),$e(this._element),this._element.classList.add(ao,so),this._queueCallback((()=>{this._element.classList.remove(so),ht.trigger(this._element,ro),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if(ht.trigger(this._element,to).defaultPrevented)return;this._element.classList.add(so),this._queueCallback((()=>{this._element.classList.add(oo),this._element.classList.remove(so,ao),ht.trigger(this._element,no)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ao),super.dispose()}isShown(){return this._element.classList.contains(ao)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){ht.on(this._element,Jr,(e=>this._onInteraction(e,!0))),ht.on(this._element,Zr,(e=>this._onInteraction(e,!1))),ht.on(this._element,Qr,(e=>this._onInteraction(e,!0))),ht.on(this._element,eo,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=uo.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}function ho(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r!!n[e.toLowerCase()]:e=>!!n[e]}wt(uo),qe(uo);const fo={},po=[],mo=()=>{},go=()=>!1,vo=/^on[^a-z]/,yo=e=>vo.test(e),bo=e=>e.startsWith("onUpdate:"),_o=Object.assign,wo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},xo=Object.prototype.hasOwnProperty,ko=(e,t)=>xo.call(e,t),So=Array.isArray,To=e=>"[object Map]"===Ro(e),Co=e=>"[object Set]"===Ro(e),Mo=e=>"[object Date]"===Ro(e),Do=e=>"function"==typeof e,Ao=e=>"string"==typeof e,Oo=e=>"symbol"==typeof e,Eo=e=>null!==e&&"object"==typeof e,Po=e=>(Eo(e)||Do(e))&&Do(e.then)&&Do(e.catch),No=Object.prototype.toString,Ro=e=>No.call(e),Lo=e=>Ro(e).slice(8,-1),Io=e=>"[object Object]"===Ro(e),Fo=e=>Ao(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Yo=ho(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Uo=/-(\w)/g,jo=Bo((e=>e.replace(Uo,((e,t)=>t?t.toUpperCase():"")))),Ho=/\B([A-Z])/g,$o=Bo((e=>e.replace(Ho,"-$1").toLowerCase())),Vo=Bo((e=>e.charAt(0).toUpperCase()+e.slice(1))),Wo=Bo((e=>e?"on".concat(Vo(e)):"")),zo=(e,t)=>!Object.is(e,t),qo=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Go=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ko=e=>{const t=Ao(e)?Number(e):NaN;return isNaN(t)?e:t};let Jo;const Zo=()=>Jo||(Jo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),Qo=ho("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");function ea(e){if(So(e)){const t={};for(let n=0;n{if(e){const n=e.split(na);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function oa(e){let t="";if(Ao(e))t=e;else if(So(e))for(let n=0;nca(e,t)))}const da=e=>Ao(e)?e:null==e?"":So(e)||Eo(e)&&(e.toString===No||!Do(e.toString))?JSON.stringify(e,ha,2):String(e),ha=(e,t)=>t&&t.__v_isRef?ha(e,t.value):To(t)?{["Map(".concat(t.size,")")]:[...t.entries()].reduce(((e,[t,n])=>(e["".concat(t," =>")]=n,e)),{})}:Co(t)?{["Set(".concat(t.size,")")]:[...t.values()]}:!Eo(t)||So(t)||Io(t)?t:String(t);let fa;class pa{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=fa,!e&&fa&&(this.index=(fa.scopes||(fa.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=fa;try{return fa=this,e()}finally{fa=t}}}on(){fa=this}off(){fa=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},ba=e=>(e.w&ka)>0,_a=e=>(e.n&ka)>0,wa=new WeakMap;let xa=0,ka=1;const Sa=30;let Ta;const Ca=Symbol(""),Ma=Symbol("");class Da{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,ma(this,n)}run(){if(!this.active)return this.fn();let e=Ta,t=Oa;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Ta,Ta=this,Oa=!0,ka=1<<++xa,xa<=Sa?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{("length"===n||!Oo(n)&&n>=e)&&s.push(t)}))}else switch(void 0!==n&&s.push(a.get(n)),t){case"add":So(e)?Fo(n)&&s.push(a.get("length")):(s.push(a.get(Ca)),To(e)&&s.push(a.get(Ma)));break;case"delete":So(e)||(s.push(a.get(Ca)),To(e)&&s.push(a.get(Ma)));break;case"set":To(e)&&s.push(a.get(Ca))}if(1===s.length)s[0]&&Fa(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Fa(ya(e))}}function Fa(e,t){const n=So(e)?e:[...e];for(const i of n)i.computed&&Ya(i);for(const i of n)i.computed||Ya(i)}function Ya(e,t){(e!==Ta||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Ba=ho("__proto__,__v_isRef,__isVue"),Ua=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(Oo)),ja=Ha();function Ha(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Es(this);for(let t=0,r=this.length;t{e[t]=function(...e){Pa();const n=Es(this)[t].apply(this,e);return Na(),n}})),e}function $a(e){const t=Es(this);return Ra(t,0,e),t.hasOwnProperty(e)}class Va{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const i=this._isReadonly,r=this._shallow;if("__v_isReactive"===t)return!i;if("__v_isReadonly"===t)return i;if("__v_isShallow"===t)return r;if("__v_raw"===t&&n===(i?r?xs:ws:r?_s:bs).get(e))return e;const o=So(e);if(!i){if(o&&ko(ja,t))return Reflect.get(ja,t,n);if("hasOwnProperty"===t)return $a}const a=Reflect.get(e,t,n);return(Oo(t)?Ua.has(t):Ba(t))?a:(i||Ra(e,0,t),r?a:Fs(a)?o&&Fo(t)?a:a.value:Eo(a)?i?Ts(a):ks(a):a)}}class Wa extends Va{constructor(e=!1){super(!1,e)}set(e,t,n,i){let r=e[t];if(Ds(r)&&Fs(r)&&!Fs(n))return!1;if(!this._shallow&&(As(n)||Ds(n)||(r=Es(r),n=Es(n)),!So(e)&&Fs(r)&&!Fs(n)))return r.value=n,!0;const o=So(e)&&Fo(t)?Number(t)e,Za=e=>Reflect.getPrototypeOf(e);function Qa(e,t,n=!1,i=!1){const r=Es(e=e.__v_raw),o=Es(t);n||(zo(t,o)&&Ra(r,0,t),Ra(r,0,o));const{has:a}=Za(r),s=i?Ja:n?Rs:Ns;return a.call(r,t)?s(e.get(t)):a.call(r,o)?s(e.get(o)):void(e!==r&&e.get(t))}function es(e,t=!1){const n=this.__v_raw,i=Es(n),r=Es(e);return t||(zo(e,r)&&Ra(i,0,e),Ra(i,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function ts(e,t=!1){return e=e.__v_raw,!t&&Ra(Es(e),0,Ca),Reflect.get(e,"size",e)}function ns(e){e=Es(e);const t=Es(this);return Za(t).has.call(t,e)||(t.add(e),Ia(t,"add",e,e)),this}function is(e,t){t=Es(t);const n=Es(this),{has:i,get:r}=Za(n);let o=i.call(n,e);o||(e=Es(e),o=i.call(n,e));const a=r.call(n,e);return n.set(e,t),o?zo(t,a)&&Ia(n,"set",e,t):Ia(n,"add",e,t),this}function rs(e){const t=Es(this),{has:n,get:i}=Za(t);let r=n.call(t,e);r||(e=Es(e),r=n.call(t,e)),i&&i.call(t,e);const o=t.delete(e);return r&&Ia(t,"delete",e,void 0),o}function os(){const e=Es(this),t=0!==e.size,n=e.clear();return t&&Ia(e,"clear",void 0,void 0),n}function as(e,t){return function(n,i){const r=this,o=r.__v_raw,a=Es(o),s=t?Ja:e?Rs:Ns;return!e&&Ra(a,0,Ca),o.forEach(((e,t)=>n.call(i,s(e),s(t),r)))}}function ss(e,t,n){return function(...i){const r=this.__v_raw,o=Es(r),a=To(o),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=r[e](...i),u=n?Ja:t?Rs:Ns;return!t&&Ra(o,0,l?Ma:Ca),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ls(e){return function(...t){return"delete"!==e&&this}}function cs(){const e={get(e){return Qa(this,e)},get size(){return ts(this)},has:es,add:ns,set:is,delete:rs,clear:os,forEach:as(!1,!1)},t={get(e){return Qa(this,e,!1,!0)},get size(){return ts(this)},has:es,add:ns,set:is,delete:rs,clear:os,forEach:as(!1,!0)},n={get(e){return Qa(this,e,!0)},get size(){return ts(this,!0)},has(e){return es.call(this,e,!0)},add:ls("add"),set:ls("set"),delete:ls("delete"),clear:ls("clear"),forEach:as(!0,!1)},i={get(e){return Qa(this,e,!0,!0)},get size(){return ts(this,!0)},has(e){return es.call(this,e,!0)},add:ls("add"),set:ls("set"),delete:ls("delete"),clear:ls("clear"),forEach:as(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=ss(r,!1,!1),n[r]=ss(r,!0,!1),t[r]=ss(r,!1,!0),i[r]=ss(r,!0,!0)})),[e,n,t,i]}const[us,ds,hs,fs]=cs();function ps(e,t){const n=t?e?fs:hs:e?ds:us;return(t,i,r)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(ko(n,i)&&i in t?n:t,i,r)}const ms={get:ps(!1,!1)},gs={get:ps(!1,!0)},vs={get:ps(!0,!1)},ys={get:ps(!0,!0)},bs=new WeakMap,_s=new WeakMap,ws=new WeakMap,xs=new WeakMap;function ks(e){return Ds(e)?e:Cs(e,!1,qa,ms,bs)}function Ss(e){return Cs(e,!1,Ga,gs,_s)}function Ts(e){return Cs(e,!0,Xa,vs,ws)}function Cs(e,t,n,i,r){if(!Eo(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const a=(s=e).__v_skip||!Object.isExtensible(s)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Lo(s));var s;if(0===a)return e;const l=new Proxy(e,2===a?i:n);return r.set(e,l),l}function Ms(e){return Ds(e)?Ms(e.__v_raw):!(!e||!e.__v_isReactive)}function Ds(e){return!(!e||!e.__v_isReadonly)}function As(e){return!(!e||!e.__v_isShallow)}function Os(e){return Ms(e)||Ds(e)}function Es(e){const t=e&&e.__v_raw;return t?Es(t):e}function Ps(e){return Xo(e,"__v_skip",!0),e}const Ns=e=>Eo(e)?ks(e):e,Rs=e=>Eo(e)?Ts(e):e;function Ls(e){Oa&&Ta&&La((e=Es(e)).dep||(e.dep=ya()))}function Is(e,t){const n=(e=Es(e)).dep;n&&Fa(n)}function Fs(e){return!(!e||!0!==e.__v_isRef)}function Ys(e){return Us(e,!1)}function Bs(e){return Us(e,!0)}function Us(e,t){return Fs(e)?e:new js(e,t)}class js{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Es(e),this._value=t?e:Ns(e)}get value(){return Ls(this),this._value}set value(e){const t=this.__v_isShallow||As(e)||Ds(e);e=t?e:Es(e),zo(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Ns(e),Is(this))}}function Hs(e){return Fs(e)?e.value:e}const $s={get:(e,t,n)=>Hs(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Fs(r)&&!Fs(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function Vs(e){return Ms(e)?e:new Proxy(e,$s)}class Ws{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Ls(this)),(()=>Is(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}class zs{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Es(this._object),t=this._key,null==(n=wa.get(e))?void 0:n.get(t);var e,t,n}}class qs{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Xs(e,t,n){return Fs(e)?e:Do(e)?new qs(e):Eo(e)&&arguments.length>1?Gs(e,t,n):Ys(e)}function Gs(e,t,n){const i=e[t];return Fs(i)?i:new zs(e,t,n)}class Ks{constructor(e,t,n,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Da(e,(()=>{this._dirty||(this._dirty=!0,Is(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=Es(this);return Ls(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Js(e,t,n,i){let r;try{r=i?e(...i):e()}catch(o){Qs(o,t,n)}return r}function Zs(e,t,n,i){if(Do(e)){const r=Js(e,t,n,i);return r&&Po(r)&&r.catch((e=>{Qs(e,t,n)})),r}const r=[];for(let o=0;o>>1,r=nl[i],o=ml(r);oml(e)-ml(t))),al=0;alnull==e.id?1/0:e.id,gl=(e,t)=>{const n=ml(e)-ml(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function vl(e){tl=!1,el=!0,nl.sort(gl);try{for(il=0;ilAo(e)?e.trim():e))),t&&(r=n.map(Go))}let s,l=i[s=Wo(t)]||i[s=Wo(jo(t))];!l&&o&&(l=i[s=Wo($o(t))]),l&&Zs(l,e,6,r);const c=i[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,Zs(c,e,6,r)}}function wl(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(void 0!==r)return r;const o=e.emits;let a={},s=!1;if(!Do(e)){const i=e=>{const n=wl(e,t,!0);n&&(s=!0,_o(a,n))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return o||s?(So(o)?o.forEach((e=>a[e]=null)):_o(a,o),Eo(e)&&i.set(e,a),a):(Eo(e)&&i.set(e,null),null)}function xl(e,t){return!(!e||!yo(t))&&(t=t.slice(2).replace(/Once$/,""),ko(e,t[0].toLowerCase()+t.slice(1))||ko(e,$o(t))||ko(e,t))}let kl=null,Sl=null;function Tl(e){const t=kl;return kl=e,Sl=e&&e.type.__scopeId||null,t}function Cl(e){Sl=e}function Ml(){Sl=null}function Dl(e,t=kl,n){if(!t)return e;if(e._n)return e;const i=(...n)=>{i._d&&nd(-1);const r=Tl(t);let o;try{o=e(...n)}finally{Tl(r),i._d&&nd(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function Al(e){const{type:t,vnode:n,proxy:i,withProxy:r,props:o,propsOptions:[a],slots:s,attrs:l,emit:c,render:u,renderCache:d,data:h,setupState:f,ctx:p,inheritAttrs:m}=e;let g,v;const y=Tl(e);try{if(4&n.shapeFlag){const e=r||i;g=yd(u.call(e,e,d,o,f,h,p)),v=l}else{const e=t;0,g=yd(e.length>1?e(o,{attrs:l,slots:s,emit:c}):e(o,null)),v=t.props?l:Ol(l)}}catch(_){Ju.length=0,Qs(_,e,1),g=hd(Gu)}let b=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(a&&e.some(bo)&&(v=El(v,a)),b=pd(b,v))}return n.dirs&&(b=pd(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),g=b,Tl(y),g}const Ol=e=>{let t;for(const n in e)("class"===n||"style"===n||yo(n))&&((t||(t={}))[n]=e[n]);return t},El=(e,t)=>{const n={};for(const i in e)bo(i)&&i.slice(9)in t||(n[i]=e[i]);return n};function Pl(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense,jl={name:"Suspense",__isSuspense:!0,process(e,t,n,i,r,o,a,s,l,c){null==e?function(e,t,n,i,r,o,a,s,l){const{p:c,o:{createElement:u}}=l,d=u("div"),h=e.suspense=$l(e,r,i,t,d,n,o,a,s,l);c(null,h.pendingBranch=e.ssContent,d,null,i,h,o,a),h.deps>0?(Hl(e,"onPending"),Hl(e,"onFallback"),c(null,e.ssFallback,t,n,i,null,o,a),zl(h,e.ssFallback)):h.resolve(!1,!0)}(t,n,i,r,o,a,s,l,c):function(e,t,n,i,r,o,a,s,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const h=t.ssContent,f=t.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=h,sd(h,m)?(l(m,h,d.hiddenContainer,null,r,d,o,a,s),d.deps<=0?d.resolve():g&&(l(p,f,n,i,r,null,o,a,s),zl(d,f))):(d.pendingId++,v?(d.isHydrating=!1,d.activeBranch=m):c(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(l(null,h,d.hiddenContainer,null,r,d,o,a,s),d.deps<=0?d.resolve():(l(p,f,n,i,r,null,o,a,s),zl(d,f))):p&&sd(h,p)?(l(p,h,n,i,r,d,o,a,s),d.resolve(!0)):(l(null,h,d.hiddenContainer,null,r,d,o,a,s),d.deps<=0&&d.resolve()));else if(p&&sd(h,p))l(p,h,n,i,r,d,o,a,s),zl(d,h);else if(Hl(t,"onPending"),d.pendingBranch=h,d.pendingId++,l(null,h,d.hiddenContainer,null,r,d,o,a,s),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(f)}),e):0===e&&d.fallback(f)}}(e,t,n,i,r,a,s,l,c)},hydrate:function(e,t,n,i,r,o,a,s,l){const c=t.suspense=$l(t,i,n,e.parentNode,document.createElement("div"),null,r,o,a,s,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,a);0===c.deps&&c.resolve(!1,!0);return u},create:$l,normalize:function(e){const{shapeFlag:t,children:n}=e,i=32&t;e.ssContent=Vl(i?n.default:n),e.ssFallback=i?Vl(n.fallback):hd(Gu)}};function Hl(e,t){const n=e.props&&e.props[t];Do(n)&&n()}function $l(e,t,n,i,r,o,a,s,l,c,u=!1){const{p:d,m:h,um:f,n:p,o:{parentNode:m,remove:g}}=c;let v;const y=function(e){var t;return null!=(null==(t=e.props)?void 0:t.suspensible)&&!1!==e.props.suspensible}(e);y&&(null==t?void 0:t.pendingBranch)&&(v=t.pendingId,t.deps++);const b=e.props?Ko(e.props.timeout):void 0,_={vnode:e,parent:t,parentComponent:n,isSVG:a,container:i,hiddenContainer:r,anchor:o,deps:0,pendingId:0,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:i,activeBranch:r,pendingBranch:o,pendingId:a,effects:s,parentComponent:l,container:c}=_;let u=!1;if(_.isHydrating)_.isHydrating=!1;else if(!e){u=r&&o.transition&&"out-in"===o.transition.mode,u&&(r.transition.afterLeave=()=>{a===_.pendingId&&(h(o,c,e,0),hl(s))});let{anchor:e}=_;r&&(e=p(r),f(r,l,_,!0)),u||h(o,c,e,0)}zl(_,o),_.pendingBranch=null,_.isInFallback=!1;let d=_.parent,m=!1;for(;d;){if(d.pendingBranch){d.effects.push(...s),m=!0;break}d=d.parent}m||u||hl(s),_.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Hl(i,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:i,container:r,isSVG:o}=_;Hl(t,"onFallback");const a=p(n),c=()=>{_.isInFallback&&(d(null,e,r,a,i,null,o,s,l),zl(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),_.isInFallback=!0,f(n,i,null,!0),u||c()},move(e,t,n){_.activeBranch&&h(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&p(_.activeBranch),registerDep(e,t){const n=!!_.pendingBranch;n&&_.deps++;const i=e.vnode.el;e.asyncDep.catch((t=>{Qs(t,e,0)})).then((r=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:o}=e;Yd(e,r,!1),i&&(o.el=i);const s=!i&&e.subTree.el;t(e,o,m(i||e.subTree.el),i?null:p(e.subTree),_,a,l),s&&g(s),Nl(e,o.el),n&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&f(_.activeBranch,n,e,t),_.pendingBranch&&f(_.pendingBranch,n,e,t)}};return _}function Vl(e){let t;if(Do(e)){const n=td&&e._c;n&&(e._d=!1,Qu()),e=e(),n&&(e._d=!0,t=Zu,ed())}if(So(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function Wl(e,t){t&&t.pendingBranch?So(e)?t.effects.push(...e):t.effects.push(e):hl(e)}function zl(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e,r=n.el=t.el;i&&i.subTree===n&&(i.vnode.el=r,Nl(i,r))}function ql(e,t){return Kl(e,null,{flush:"post"})}const Xl={};function Gl(e,t,n){return Kl(e,t,n)}function Kl(e,t,{immediate:n,deep:i,flush:r,onTrack:o,onTrigger:a}=fo){var s;const l=ga()===(null==(s=Cd)?void 0:s.scope)?Cd:null;let c,u,d=!1,h=!1;if(Fs(e)?(c=()=>e.value,d=As(e)):Ms(e)?(c=()=>e,i=!0):So(e)?(h=!0,d=e.some((e=>Ms(e)||As(e))),c=()=>e.map((e=>Fs(e)?e.value:Ms(e)?Ql(e):Do(e)?Js(e,l,2):void 0))):c=Do(e)?t?()=>Js(e,l,2):()=>{if(!l||!l.isUnmounted)return u&&u(),Zs(e,l,3,[p])}:mo,t&&i){const e=c;c=()=>Ql(e())}let f,p=e=>{u=y.onStop=()=>{Js(e,l,4)}};if(Id){if(p=mo,t?n&&Zs(t,l,3,[c(),h?[]:void 0,p]):c(),"sync"!==r)return mo;{const e=zd();f=e.__watcherHandles||(e.__watcherHandles=[])}}let m=h?new Array(e.length).fill(Xl):Xl;const g=()=>{if(y.active)if(t){const e=y.run();(i||d||(h?e.some(((e,t)=>zo(e,m[t]))):zo(e,m)))&&(u&&u(),Zs(t,l,3,[e,m===Xl?void 0:h&&m[0]===Xl?[]:m,p]),m=e)}else y.run()};let v;g.allowRecurse=!!t,"sync"===r?v=g:"post"===r?v=()=>Ru(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),v=()=>ul(g));const y=new Da(c,v);t?n?g():m=y.run():"post"===r?Ru(y.run.bind(y),l&&l.suspense):y.run();const b=()=>{y.stop(),l&&l.scope&&wo(l.scope.effects,y)};return f&&f.push(b),b}function Jl(e,t,n){const i=this.proxy,r=Ao(e)?e.includes(".")?Zl(i,e):()=>i[e]:e.bind(i,i);let o;Do(t)?o=t:(o=t.handler,n=t);const a=Cd;Ed(this);const s=Kl(r,o.bind(i),n);return a?Ed(a):Pd(),s}function Zl(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Ql(e,t)}));else if(Io(e))for(const n in e)Ql(e[n],t);return e}function ec(e,t){const n=kl;if(null===n)return e;const i=jd(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0})),Nc((()=>{e.isUnmounting=!0})),e}const oc=[Function,Array],ac={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:oc,onEnter:oc,onAfterEnter:oc,onEnterCancelled:oc,onBeforeLeave:oc,onLeave:oc,onAfterLeave:oc,onLeaveCancelled:oc,onBeforeAppear:oc,onAppear:oc,onAfterAppear:oc,onAppearCancelled:oc},sc={name:"BaseTransition",props:ac,setup(e,{slots:t}){const n=Md(),i=rc();let r;return()=>{const o=t.default&&fc(t.default(),!0);if(!o||!o.length)return;let a=o[0];if(o.length>1)for(const e of o)if(e.type!==Gu){a=e;break}const s=Es(e),{mode:l}=s;if(i.isLeaving)return uc(a);const c=dc(a);if(!c)return uc(a);const u=cc(c,s,i,n);hc(c,u);const d=n.subTree,h=d&&dc(d);let f=!1;const{getTransitionKey:p}=c.type;if(p){const e=p();void 0===r?r=e:e!==r&&(r=e,f=!0)}if(h&&h.type!==Gu&&(!sd(c,h)||f)){const e=cc(h,s,i,n);if(hc(h,e),"out-in"===l)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,!1!==n.update.active&&n.update()},uc(a);"in-out"===l&&c.type!==Gu&&(e.delayLeave=(e,t,n)=>{lc(i,h)[String(h.key)]=h,e[nc]=()=>{t(),e[nc]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return a}}};function lc(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function cc(e,t,n,i){const{appear:r,mode:o,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:h,onAfterLeave:f,onLeaveCancelled:p,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),_=lc(n,e),w=(e,t)=>{e&&Zs(e,i,9,t)},x=(e,t)=>{const n=t[1];w(e,t),So(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},k={mode:o,persisted:a,beforeEnter(t){let i=s;if(!n.isMounted){if(!r)return;i=m||s}t[nc]&&t[nc](!0);const o=_[b];o&&sd(e,o)&&o.el[nc]&&o.el[nc](),w(i,[t])},enter(e){let t=l,i=c,o=u;if(!n.isMounted){if(!r)return;t=g||l,i=v||c,o=y||u}let a=!1;const s=e[ic]=t=>{a||(a=!0,w(t?o:i,[e]),k.delayedLeave&&k.delayedLeave(),e[ic]=void 0)};t?x(t,[e,s]):s()},leave(t,i){const r=String(e.key);if(t[ic]&&t[ic](!0),n.isUnmounting)return i();w(d,[t]);let o=!1;const a=t[nc]=n=>{o||(o=!0,i(),w(n?p:f,[t]),t[nc]=void 0,_[r]===e&&delete _[r])};_[r]=e,h?x(h,[t,a]):a()},clone:e=>cc(e,t,n,i)};return k}function uc(e){if(vc(e))return(e=pd(e)).children=null,e}function dc(e){return vc(e)?e.children?e.children[0]:void 0:e}function hc(e,t){6&e.shapeFlag&&e.component?hc(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fc(e,t=!1,n){let i=[],r=0;for(let o=0;o1)for(let o=0;o_o({name:e.name},t,{setup:e}))():e}const mc=e=>!!e.type.__asyncLoader /*! #__NO_SIDE_EFFECTS__ */;function gc(e,t){const{ref:n,props:i,children:r,ce:o}=t.vnode,a=hd(e,i,r);return a.ref=n,a.ce=o,delete t.vnode.ce,a}const vc=e=>e.type.__isKeepAlive,yc={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Md(),i=n.ctx;if(!i.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,o=new Set;let a=null;const s=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=i,h=d("div");function f(e){Tc(e),u(e,n,s,!0)}function p(e){r.forEach(((t,n)=>{const i=Hd(t.type);!i||e&&e(i)||m(n)}))}function m(e){const t=r.get(e);a&&sd(t,a)?a&&Tc(a):f(t),r.delete(e),o.delete(e)}i.activate=(e,t,n,i,r)=>{const o=e.component;c(e,t,n,0,s),l(o.vnode,e,t,n,o,s,i,e.slotScopeIds,r),Ru((()=>{o.isDeactivated=!1,o.a&&qo(o.a);const t=e.props&&e.props.onVnodeMounted;t&&xd(t,o.parent,e)}),s)},i.deactivate=e=>{const t=e.component;c(e,h,null,1,s),Ru((()=>{t.da&&qo(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&xd(n,t.parent,e),t.isDeactivated=!0}),s)},Gl((()=>[e.include,e.exclude]),(([e,t])=>{e&&p((t=>_c(e,t))),t&&p((e=>!_c(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&r.set(g,Cc(n.subTree))};return Oc(v),Pc(v),Nc((()=>{r.forEach((e=>{const{subTree:t,suspense:i}=n,r=Cc(t);if(e.type!==r.type||e.key!==r.key)f(e);else{Tc(r);const e=r.component.da;e&&Ru(e,i)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),i=n[0];if(n.length>1)return a=null,n;if(!(ad(i)&&(4&i.shapeFlag||128&i.shapeFlag)))return a=null,i;let s=Cc(i);const l=s.type,c=Hd(mc(s)?s.type.__asyncResolved||{}:l),{include:u,exclude:d,max:h}=e;if(u&&(!c||!_c(u,c))||d&&c&&_c(d,c))return a=s,i;const f=null==s.key?l:s.key,p=r.get(f);return s.el&&(s=pd(s),128&i.shapeFlag&&(i.ssContent=s)),g=f,p?(s.el=p.el,s.component=p.component,s.transition&&hc(s,s.transition),s.shapeFlag|=512,o.delete(f),o.add(f)):(o.add(f),h&&o.size>parseInt(h,10)&&m(o.values().next().value)),s.shapeFlag|=256,a=s,Ul(i.type)?i:s}}},bc=yc;function _c(e,t){return So(e)?e.some((e=>_c(e,t))):Ao(e)?e.split(",").includes(t):"[object RegExp]"===Ro(e)&&e.test(t)}function wc(e,t){kc(e,"a",t)}function xc(e,t){kc(e,"da",t)}function kc(e,t,n=Cd){const i=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Mc(t,i,n),n){let e=n.parent;for(;e&&e.parent;)vc(e.parent.vnode)&&Sc(i,t,n,e),e=e.parent}}function Sc(e,t,n,i){const r=Mc(t,e,i,!0);Rc((()=>{wo(i[t],r)}),n)}function Tc(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Cc(e){return 128&e.shapeFlag?e.ssContent:e}function Mc(e,t,n=Cd,i=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Pa(),Ed(n);const r=Zs(t,n,e,i);return Pd(),Na(),r});return i?r.unshift(o):r.push(o),o}}const Dc=e=>(t,n=Cd)=>(!Id||"sp"===e)&&Mc(e,((...e)=>t(...e)),n),Ac=Dc("bm"),Oc=Dc("m"),Ec=Dc("bu"),Pc=Dc("u"),Nc=Dc("bum"),Rc=Dc("um"),Lc=Dc("sp"),Ic=Dc("rtg"),Fc=Dc("rtc");function Yc(e,t=Cd){Mc("ec",e,t)}function Bc(e,t,n,i){let r;const o=n&&n[i];if(So(e)||Ao(e)){r=new Array(e.length);for(let n=0,i=e.length;nt(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let i=0,a=n.length;i{const t=i.fn(...e);return t&&(t.key=i.key),t}:i.fn)}return e}function jc(e,t,n={},i,r){if(kl.isCE||kl.parent&&mc(kl.parent)&&kl.parent.isCE)return"default"!==t&&(n.name=t),hd("slot",n,i&&i());let o=e[t];o&&o._c&&(o._d=!1),Qu();const a=o&&Hc(o(n)),s=od(qu,{key:n.key||a&&a.key||"_".concat(t)},a||(i?i():[]),a&&1===e._?64:-2);return!r&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function Hc(e){return e.some((e=>!ad(e)||e.type!==Gu&&!(e.type===qu&&!Hc(e.children))))?e:null}const $c=e=>e?Nd(e)?jd(e)||e.proxy:$c(e.parent):null,Vc=_o(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>$c(e.parent),$root:e=>$c(e.root),$emit:e=>e.emit,$options:e=>tu(e),$forceUpdate:e=>e.f||(e.f=()=>ul(e.update)),$nextTick:e=>e.n||(e.n=cl.bind(e.proxy)),$watch:e=>Jl.bind(e)}),Wc=(e,t)=>e!==fo&&!e.__isScriptSetup&&ko(e,t),zc={get({_:e},t){const{ctx:n,setupState:i,data:r,props:o,accessCache:a,type:s,appContext:l}=e;let c;if("$"!==t[0]){const s=a[t];if(void 0!==s)switch(s){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Wc(i,t))return a[t]=1,i[t];if(r!==fo&&ko(r,t))return a[t]=2,r[t];if((c=e.propsOptions[0])&&ko(c,t))return a[t]=3,o[t];if(n!==fo&&ko(n,t))return a[t]=4,n[t];Jc&&(a[t]=0)}}const u=Vc[t];let d,h;return u?("$attrs"===t&&Ra(e,0,t),u(e)):(d=s.__cssModules)&&(d=d[t])?d:n!==fo&&ko(n,t)?(a[t]=4,n[t]):(h=l.config.globalProperties,ko(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:i,setupState:r,ctx:o}=e;return Wc(r,t)?(r[t]=n,!0):i!==fo&&ko(i,t)?(i[t]=n,!0):!ko(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:o}},a){let s;return!!n[a]||e!==fo&&ko(e,a)||Wc(t,a)||(s=o[0])&&ko(s,a)||ko(i,a)||ko(Vc,a)||ko(r.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:ko(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},qc=_o({},zc,{get(e,t){if(t!==Symbol.unscopables)return zc.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Qo(t)});function Xc(){return Gc().slots}function Gc(){const e=Md();return e.setupContext||(e.setupContext=Ud(e))}function Kc(e){return So(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let Jc=!0;function Zc(e){const t=tu(e),n=e.proxy,i=e.ctx;Jc=!1,t.beforeCreate&&Qc(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:f,updated:p,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:_,render:w,renderTracked:x,renderTriggered:k,errorCaptured:S,serverPrefetch:T,expose:C,inheritAttrs:M,components:D,directives:A,filters:O}=t;if(c&&function(e,t,n=mo){So(e)&&(e=ou(e));for(const i in e){const n=e[i];let r;r=Eo(n)?"default"in n?pu(n.from||i,n.default,!0):pu(n.from||i):pu(n),Fs(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[i]=r}}(c,i,null),a)for(const P in a){const e=a[P];Do(e)&&(i[P]=e.bind(n))}if(r){const t=r.call(n,n);Eo(t)&&(e.data=ks(t))}if(Jc=!0,o)for(const P in o){const e=o[P],t=Do(e)?e.bind(n,n):Do(e.get)?e.get.bind(n,n):mo,r=!Do(e)&&Do(e.set)?e.set.bind(n):mo,a=$d({get:t,set:r});Object.defineProperty(i,P,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(s)for(const P in s)eu(s[P],i,n,P);if(l){const e=Do(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{fu(t,e[t])}))}function E(e,t){So(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&Qc(u,e,"c"),E(Ac,d),E(Oc,h),E(Ec,f),E(Pc,p),E(wc,m),E(xc,g),E(Yc,S),E(Fc,x),E(Ic,k),E(Nc,y),E(Rc,_),E(Lc,T),So(C))if(C.length){const t=e.exposed||(e.exposed={});C.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===mo&&(e.render=w),null!=M&&(e.inheritAttrs=M),D&&(e.components=D),A&&(e.directives=A)}function Qc(e,t,n){Zs(So(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function eu(e,t,n,i){const r=i.includes(".")?Zl(n,i):()=>n[i];if(Ao(e)){const n=t[e];Do(n)&&Gl(r,n)}else if(Do(e))Gl(r,e.bind(n));else if(Eo(e))if(So(e))e.forEach((e=>eu(e,t,n,i)));else{const i=Do(e.handler)?e.handler.bind(n):t[e.handler];Do(i)&&Gl(r,i,e)}}function tu(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:r.length||n||i?(l={},r.length&&r.forEach((e=>nu(l,e,a,!0))),nu(l,t,a)):l=t,Eo(t)&&o.set(t,l),l}function nu(e,t,n,i=!1){const{mixins:r,extends:o}=t;o&&nu(e,o,n,!0),r&&r.forEach((t=>nu(e,t,n,!0)));for(const a in t)if(i&&"expose"===a);else{const i=iu[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const iu={data:ru,props:lu,emits:lu,methods:su,computed:su,beforeCreate:au,created:au,beforeMount:au,mounted:au,beforeUpdate:au,updated:au,beforeDestroy:au,beforeUnmount:au,destroyed:au,unmounted:au,activated:au,deactivated:au,errorCaptured:au,serverPrefetch:au,components:su,directives:su,watch:function(e,t){if(!e)return t;if(!t)return e;const n=_o(Object.create(null),e);for(const i in t)n[i]=au(e[i],t[i]);return n},provide:ru,inject:function(e,t){return su(ou(e),ou(t))}};function ru(e,t){return t?e?function(){return _o(Do(e)?e.call(this,this):e,Do(t)?t.call(this,this):t)}:t:e}function ou(e){if(So(e)){const t={};for(let n=0;n(o.has(e)||(e&&Do(e.install)?(o.add(e),e.install(s,...t)):Do(e)&&(o.add(e),e(s,...t))),s),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),s),component:(e,t)=>t?(r.components[e]=t,s):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,s):r.directives[e],mount(o,l,c){if(!a){const u=hd(n,i);return u.appContext=r,l&&t?t(u,o):e(u,o,c),a=!0,s._container=o,o.__vue_app__=s,jd(u.component)||u.component.proxy}},unmount(){a&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,s),runWithContext(e){hu=s;try{return e()}finally{hu=null}}};return s}}let hu=null;function fu(e,t){if(Cd){let n=Cd.provides;const i=Cd.parent&&Cd.parent.provides;i===n&&(n=Cd.provides=Object.create(i)),n[e]=t}else;}function pu(e,t,n=!1){const i=Cd||kl;if(i||hu){const r=i?null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:hu._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Do(t)?t.call(i&&i.proxy):t}}function mu(e,t,n,i){const[r,o]=e.propsOptions;let a,s=!1;if(t)for(let l in t){if(Yo(l))continue;const c=t[l];let u;r&&ko(r,u=jo(l))?o&&o.includes(u)?(a||(a={}))[u]=c:n[u]=c:xl(e.emitsOptions,l)||l in i&&c===i[l]||(i[l]=c,s=!0)}if(o){const t=Es(n),i=a||fo;for(let a=0;a{l=!0;const[n,i]=vu(e,t,!0);_o(a,n),i&&s.push(...i)};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!o&&!l)return Eo(e)&&i.set(e,po),po;if(So(o))for(let u=0;u-1,n[1]=i<0||t-1||ko(n,"default"))&&s.push(e)}}}const c=[a,s];return Eo(e)&&i.set(e,c),c}function yu(e){return"$"!==e[0]}function bu(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function _u(e,t){return bu(e)===bu(t)}function wu(e,t){return So(t)?t.findIndex((t=>_u(t,e))):Do(t)&&_u(t,e)?0:-1}const xu=e=>"_"===e[0]||"$stable"===e,ku=e=>So(e)?e.map(yd):[yd(e)],Su=(e,t,n)=>{if(t._n)return t;const i=Dl(((...e)=>ku(t(...e))),n);return i._c=!1,i},Tu=(e,t,n)=>{const i=e._ctx;for(const r in e){if(xu(r))continue;const n=e[r];if(Do(n))t[r]=Su(0,n,i);else if(null!=n){const e=ku(n);t[r]=()=>e}}},Cu=(e,t)=>{const n=ku(t);e.slots.default=()=>n},Mu=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Es(t),Xo(t,"_",n)):Tu(t,e.slots={})}else e.slots={},t&&Cu(e,t);Xo(e.slots,ld,1)},Du=(e,t,n)=>{const{vnode:i,slots:r}=e;let o=!0,a=fo;if(32&i.shapeFlag){const e=t._;e?n&&1===e?o=!1:(_o(r,t),n||1!==e||delete r._):(o=!t.$stable,Tu(t,r)),a=t}else t&&(Cu(e,t),a={default:1});if(o)for(const s in r)xu(s)||null!=a[s]||delete r[s]};function Au(e,t,n,i,r=!1){if(So(e))return void e.forEach(((e,o)=>Au(e,t&&(So(t)?t[o]:t),n,i,r)));if(mc(i)&&!r)return;const o=4&i.shapeFlag?jd(i.component)||i.component.proxy:i.el,a=r?null:o,{i:s,r:l}=e,c=t&&t.r,u=s.refs===fo?s.refs={}:s.refs,d=s.setupState;if(null!=c&&c!==l&&(Ao(c)?(u[c]=null,ko(d,c)&&(d[c]=null)):Fs(c)&&(c.value=null)),Do(l))Js(l,s,12,[a,u]);else{const t=Ao(l),i=Fs(l);if(t||i){const s=()=>{if(e.f){const n=t?ko(d,l)?d[l]:u[l]:l.value;r?So(n)&&wo(n,o):So(n)?n.includes(o)||n.push(o):t?(u[l]=[o],ko(d,l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else t?(u[l]=a,ko(d,l)&&(d[l]=a)):i&&(l.value=a,e.k&&(u[e.k]=a))};a?(s.id=-1,Ru(s,n)):s()}}}let Ou=!1;const Eu=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,Pu=e=>8===e.nodeType;function Nu(e){const{mt:t,p:n,o:{patchProp:i,createText:r,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:c}}=e,u=(n,i,s,c,y,b=!1)=>{const _=Pu(n)&&"["===n.data,w=()=>p(n,i,s,c,y,_),{type:x,ref:k,shapeFlag:S,patchFlag:T}=i;let C=n.nodeType;i.el=n,-2===T&&(b=!1,i.dynamicChildren=null);let M=null;switch(x){case Xu:3!==C?""===i.children?(l(i.el=r(""),a(n),n),M=n):M=w():(n.data!==i.children&&(Ou=!0,n.data=i.children),M=o(n));break;case Gu:v(n)?(M=o(n),g(i.el=n.content.firstChild,n,s)):M=8!==C||_?w():o(n);break;case Ku:if(_&&(C=(n=o(n)).nodeType),1===C||3===C){M=n;const e=!i.children.length;for(let t=0;t{a=a||!!t.dynamicChildren;const{type:l,props:c,patchFlag:u,shapeFlag:d,dirs:f,transition:p}=t,m="input"===l&&f||"option"===l;if(m||-1!==u){if(f&&tc(t,null,n,"created"),c)if(m||!a||48&u)for(const t in c)(m&&t.endsWith("value")||yo(t)&&!Yo(t))&&i(e,t,null,c[t],!1,void 0,n);else c.onClick&&i(e,"onClick",null,c.onClick,!1,void 0,n);let l;(l=c&&c.onVnodeBeforeMount)&&xd(l,n,t);let y=!1;if(v(e)){y=Bu(r,p)&&n&&n.vnode.props&&n.vnode.props.appear;const i=e.content.firstChild;y&&p.beforeEnter(i),g(i,e,n),t.el=e=i}if(f&&tc(t,null,n,"beforeMount"),((l=c&&c.onVnodeMounted)||f||y)&&Wl((()=>{l&&xd(l,n,t),y&&p.enter(e),f&&tc(t,null,n,"mounted")}),r),16&d&&(!c||!c.innerHTML&&!c.textContent)){let i=h(e.firstChild,t,e,n,r,o,a);for(;i;){Ou=!0;const e=i;i=i.nextSibling,s(e)}}else 8&d&&e.textContent!==t.children&&(Ou=!0,e.textContent=t.children)}return e.nextSibling},h=(e,t,i,r,o,a,s)=>{s=s||!!t.dynamicChildren;const l=t.children,c=l.length;for(let d=0;d{const{slotScopeIds:u}=t;u&&(r=r?r.concat(u):u);const d=a(e),f=h(o(e),t,d,n,i,r,s);return f&&Pu(f)&&"]"===f.data?o(t.anchor=f):(Ou=!0,l(t.anchor=c("]"),d,f),f)},p=(e,t,i,r,l,c)=>{if(Ou=!0,t.el=null,c){const t=m(e);for(;;){const n=o(e);if(!n||n===t)break;s(n)}}const u=o(e),d=a(e);return s(e),n(null,t,d,u,i,r,Eu(d),l),u},m=(e,t="[",n="]")=>{let i=0;for(;e;)if((e=o(e))&&Pu(e)&&(e.data===t&&i++,e.data===n)){if(0===i)return o(e);i--}return e},g=(e,t,n)=>{const i=t.parentNode;i&&i.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},v=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),pl(),void(t._vnode=e);Ou=!1,u(t.firstChild,e,null,null,null),pl(),t._vnode=e,Ou&&console.error("Hydration completed but contains mismatches.")},u]}const Ru=Wl;function Lu(e){return Fu(e)}function Iu(e){return Fu(e,Nu)}function Fu(e,t){Zo().__VUE__=!0;const{insert:n,remove:i,patchProp:r,createElement:o,createText:a,createComment:s,setText:l,setElementText:c,parentNode:u,nextSibling:d,setScopeId:h=mo,insertStaticContent:f}=e,p=(e,t,n,i=null,r=null,o=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!sd(e,t)&&(i=U(e),L(e,r,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Xu:m(e,t,n,i);break;case Gu:g(e,t,n,i);break;case Ku:null==e&&v(t,n,i,a);break;case qu:T(e,t,n,i,r,o,a,s,l);break;default:1&d?y(e,t,n,i,r,o,a,s,l):6&d?C(e,t,n,i,r,o,a,s,l):(64&d||128&d)&&c.process(e,t,n,i,r,o,a,s,l,H)}null!=u&&r&&Au(u,e&&e.ref,o,t||e,!t)},m=(e,t,i,r)=>{if(null==e)n(t.el=a(t.children),i,r);else{const n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},g=(e,t,i,r)=>{null==e?n(t.el=s(t.children||""),i,r):t.el=e.el},v=(e,t,n,i)=>{[e.el,e.anchor]=f(e.children,t,n,i,e.el,e.anchor)},y=(e,t,n,i,r,o,a,s,l)=>{a=a||"svg"===t.type,null==e?b(t,n,i,r,o,a,s,l):x(e,t,r,o,a,s,l)},b=(e,t,i,a,s,l,u,d)=>{let h,f;const{type:p,props:m,shapeFlag:g,transition:v,dirs:y}=e;if(h=e.el=o(e.type,l,m&&m.is,m),8&g?c(h,e.children):16&g&&w(e.children,h,null,a,s,l&&"foreignObject"!==p,u,d),y&&tc(e,null,a,"created"),_(h,e,e.scopeId,u,a),m){for(const t in m)"value"===t||Yo(t)||r(h,t,null,m[t],l,e.children,a,s,B);"value"in m&&r(h,"value",null,m.value),(f=m.onVnodeBeforeMount)&&xd(f,a,e)}y&&tc(e,null,a,"beforeMount");const b=Bu(s,v);b&&v.beforeEnter(h),n(h,t,i),((f=m&&m.onVnodeMounted)||b||y)&&Ru((()=>{f&&xd(f,a,e),b&&v.enter(h),y&&tc(e,null,a,"mounted")}),s)},_=(e,t,n,i,r)=>{if(n&&h(e,n),i)for(let o=0;o{for(let c=l;c{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:h}=t;u|=16&e.patchFlag;const f=e.props||fo,p=t.props||fo;let m;n&&Yu(n,!1),(m=p.onVnodeBeforeUpdate)&&xd(m,n,t,e),h&&tc(t,e,n,"beforeUpdate"),n&&Yu(n,!0);const g=o&&"foreignObject"!==t.type;if(d?k(e.dynamicChildren,d,l,n,i,g,a):s||E(e,t,l,null,n,i,g,a,!1),u>0){if(16&u)S(l,t,f,p,n,i,o);else if(2&u&&f.class!==p.class&&r(l,"class",null,p.class,o),4&u&&r(l,"style",f.style,p.style,o),8&u){const a=t.dynamicProps;for(let t=0;t{m&&xd(m,n,t,e),h&&tc(t,e,n,"updated")}),i)},k=(e,t,n,i,r,o,a)=>{for(let s=0;s{if(n!==i){if(n!==fo)for(const l in n)Yo(l)||l in i||r(e,l,n[l],null,s,t.children,o,a,B);for(const l in i){if(Yo(l))continue;const c=i[l],u=n[l];c!==u&&"value"!==l&&r(e,l,u,c,s,t.children,o,a,B)}"value"in i&&r(e,"value",n.value,i.value)}},T=(e,t,i,r,o,s,l,c,u)=>{const d=t.el=e?e.el:a(""),h=t.anchor=e?e.anchor:a("");let{patchFlag:f,dynamicChildren:p,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,i,r),n(h,i,r),w(t.children,i,h,o,s,l,c,u)):f>0&&64&f&&p&&e.dynamicChildren?(k(e.dynamicChildren,p,i,o,s,l,c),(null!=t.key||o&&t===o.subTree)&&Uu(e,t,!0)):E(e,t,i,h,o,s,l,c,u)},C=(e,t,n,i,r,o,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,n,i,a,l):M(t,n,i,r,o,a,l):D(e,t,l)},M=(e,t,n,i,r,o,a)=>{const s=e.component=Td(e,i,r);if(vc(e)&&(s.ctx.renderer=H),Fd(s),s.asyncDep){if(r&&r.registerDep(s,A),!e.el){const e=s.subTree=hd(Gu);g(null,e,t,n)}}else A(s,e,t,n,r,o,a)},D=(e,t,n)=>{const i=t.component=e.component;if(function(e,t,n){const{props:i,children:r,component:o}=e,{props:a,children:s,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!s||s&&s.$stable)||i!==a&&(i?!a||Pl(i,a,c):!!a);if(1024&l)return!0;if(16&l)return i?Pl(i,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;til&&nl.splice(t,1)}(i.update),i.update()}else t.el=e.el,i.vnode=t},A=(e,t,n,i,r,o,a)=>{const s=e.effect=new Da((()=>{if(e.isMounted){let t,{next:n,bu:i,u:s,parent:l,vnode:c}=e,d=n;Yu(e,!1),n?(n.el=c.el,O(e,n,a)):n=c,i&&qo(i),(t=n.props&&n.props.onVnodeBeforeUpdate)&&xd(t,l,n,c),Yu(e,!0);const h=Al(e),f=e.subTree;e.subTree=h,p(f,h,u(f.el),U(f),e,r,o),n.el=h.el,null===d&&Nl(e,h.el),s&&Ru(s,r),(t=n.props&&n.props.onVnodeUpdated)&&Ru((()=>xd(t,l,n,c)),r)}else{let a;const{el:s,props:l}=t,{bm:c,m:u,parent:d}=e,h=mc(t);if(Yu(e,!1),c&&qo(c),!h&&(a=l&&l.onVnodeBeforeMount)&&xd(a,d,t),Yu(e,!0),s&&V){const n=()=>{e.subTree=Al(e),V(s,e.subTree,e,r,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const a=e.subTree=Al(e);p(null,a,n,i,e,r,o),t.el=a.el}if(u&&Ru(u,r),!h&&(a=l&&l.onVnodeMounted)){const e=t;Ru((()=>xd(a,d,e)),r)}(256&t.shapeFlag||d&&mc(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Ru(e.a,r),e.isMounted=!0,t=n=i=null}}),(()=>ul(l)),e.scope),l=e.update=()=>s.run();l.id=e.uid,Yu(e,!0),l()},O=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:r,attrs:o,vnode:{patchFlag:a}}=e,s=Es(r),[l]=e.propsOptions;let c=!1;if(!(i||a>0)||16&a){let i;mu(e,t,r,o)&&(c=!0);for(const o in s)t&&(ko(t,o)||(i=$o(o))!==o&&ko(t,i))||(l?!n||void 0===n[o]&&void 0===n[i]||(r[o]=gu(l,s,o,void 0,e,!0)):delete r[o]);if(o!==s)for(const e in o)t&&ko(t,e)||(delete o[e],c=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let i=0;i{const u=e&&e.children,d=e?e.shapeFlag:0,h=t.children,{patchFlag:f,shapeFlag:p}=t;if(f>0){if(128&f)return void N(u,h,n,i,r,o,a,s,l);if(256&f)return void P(u,h,n,i,r,o,a,s,l)}8&p?(16&d&&B(u,r,o),h!==u&&c(n,h)):16&d?16&p?N(u,h,n,i,r,o,a,s,l):B(u,r,o,!0):(8&d&&c(n,""),16&p&&w(h,n,i,r,o,a,s,l))},P=(e,t,n,i,r,o,a,s,l)=>{t=t||po;const c=(e=e||po).length,u=t.length,d=Math.min(c,u);let h;for(h=0;hu?B(e,r,o,!0,!1,d):w(t,n,i,r,o,a,s,l,d)},N=(e,t,n,i,r,o,a,s,l)=>{let c=0;const u=t.length;let d=e.length-1,h=u-1;for(;c<=d&&c<=h;){const i=e[c],u=t[c]=l?bd(t[c]):yd(t[c]);if(!sd(i,u))break;p(i,u,n,null,r,o,a,s,l),c++}for(;c<=d&&c<=h;){const i=e[d],c=t[h]=l?bd(t[h]):yd(t[h]);if(!sd(i,c))break;p(i,c,n,null,r,o,a,s,l),d--,h--}if(c>d){if(c<=h){const e=h+1,d=eh)for(;c<=d;)L(e[c],r,o,!0),c++;else{const f=c,m=c,g=new Map;for(c=m;c<=h;c++){const e=t[c]=l?bd(t[c]):yd(t[c]);null!=e.key&&g.set(e.key,c)}let v,y=0;const b=h-m+1;let _=!1,w=0;const x=new Array(b);for(c=0;c=b){L(i,r,o,!0);continue}let u;if(null!=i.key)u=g.get(i.key);else for(v=m;v<=h;v++)if(0===x[v-m]&&sd(i,t[v])){u=v;break}void 0===u?L(i,r,o,!0):(x[u-m]=c+1,u>=w?w=u:_=!0,p(i,t[u],n,null,r,o,a,s,l),y++)}const k=_?function(e){const t=e.slice(),n=[0];let i,r,o,a,s;const l=e.length;for(i=0;i>1,e[n[s]]0&&(t[i]=n[o-1]),n[o]=i)}}o=n.length,a=n[o-1];for(;o-- >0;)n[o]=a,a=t[a];return n}(x):po;for(v=k.length-1,c=b-1;c>=0;c--){const e=m+c,d=t[e],h=e+1{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void R(e.component.subTree,t,i,r);if(128&u)return void e.suspense.move(t,i,r);if(64&u)return void s.move(e,t,i,H);if(s===qu){n(a,t,i);for(let e=0;e{let o;for(;e&&e!==t;)o=d(e),n(e,i,r),e=o;n(t,i,r)})(e,t,i);if(2!==r&&1&u&&l)if(0===r)l.beforeEnter(a),n(a,t,i),Ru((()=>l.enter(a)),o);else{const{leave:e,delayLeave:r,afterLeave:o}=l,s=()=>n(a,t,i),c=()=>{e(a,(()=>{s(),o&&o()}))};r?r(a,s,c):c()}else n(a,t,i)},L=(e,t,n,i=!1,r=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:h}=e;if(null!=s&&Au(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const f=1&u&&h,p=!mc(e);let m;if(p&&(m=a&&a.onVnodeBeforeUnmount)&&xd(m,t,e),6&u)Y(e.component,n,i);else{if(128&u)return void e.suspense.unmount(n,i);f&&tc(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,H,i):c&&(o!==qu||d>0&&64&d)?B(c,t,n,!1,!0):(o===qu&&384&d||!r&&16&u)&&B(l,t,n),i&&I(e)}(p&&(m=a&&a.onVnodeUnmounted)||f)&&Ru((()=>{m&&xd(m,t,e),f&&tc(e,null,t,"unmounted")}),n)},I=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===qu)return void F(n,r);if(t===Ku)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=d(e),i(e),e=n;i(t)})(e);const a=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:i}=o,r=()=>t(n,a);i?i(e.el,a,r):r()}else a()},F=(e,t)=>{let n;for(;e!==t;)n=d(e),i(e),e=n;i(t)},Y=(e,t,n)=>{const{bum:i,scope:r,update:o,subTree:a,um:s}=e;i&&qo(i),r.stop(),o&&(o.active=!1,L(a,e,t,n)),s&&Ru(s,t),Ru((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},B=(e,t,n,i=!1,r=!1,o=0)=>{for(let a=o;a6&e.shapeFlag?U(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),j=(e,t,n)=>{null==e?t._vnode&&L(t._vnode,null,null,!0):p(t._vnode||null,e,t,null,null,null,n),fl(),pl(),t._vnode=e},H={p:p,um:L,m:R,r:I,mt:M,mc:w,pc:E,pbc:k,n:U,o:e};let $,V;return t&&([$,V]=t(H)),{render:j,hydrate:$,createApp:du(j,$)}}function Yu({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Bu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Uu(e,t,n=!1){const i=e.children,r=t.children;if(So(i)&&So(r))for(let o=0;oe&&(e.disabled||""===e.disabled),Hu=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,$u=(e,t)=>{const n=e&&e.to;if(Ao(n)){if(t){return t(n)}return null}return n};function Vu(e,t,n,{o:{insert:i},m:r},o=2){0===o&&i(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===o;if(d&&i(a,t,n),(!d||ju(u))&&16&l)for(let h=0;h{16&y&&u(b,e,t,r,o,a,s,l)};v?g(n,c):d&&g(d,h)}else{t.el=e.el;const i=t.anchor=e.anchor,u=t.target=e.target,f=t.targetAnchor=e.targetAnchor,m=ju(e.props),g=m?n:u,y=m?i:f;if(a=a||Hu(u),_?(h(e.dynamicChildren,_,g,r,o,a,s),Uu(e,t,!0)):l||d(e,t,g,y,r,o,a,s,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Vu(t,n,i,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=$u(t.props,p);e&&Vu(t,e,null,c,0)}else m&&Vu(t,u,f,c,1)}zu(t)},remove(e,t,n,i,{um:r,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:c,targetAnchor:u,target:d,props:h}=e;if(d&&o(u),a&&o(c),16&s){const e=a||!ju(h);for(let i=0;i0?Zu||po:null,ed(),td>0&&Zu&&Zu.push(e),e}function rd(e,t,n,i,r,o){return id(dd(e,t,n,i,r,o,!0))}function od(e,t,n,i,r){return id(hd(e,t,n,i,r,!0))}function ad(e){return!!e&&!0===e.__v_isVNode}function sd(e,t){return e.type===t.type&&e.key===t.key}const ld="__vInternal",cd=({key:e})=>null!=e?e:null,ud=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?Ao(e)||Fs(e)||Do(e)?{i:kl,r:e,k:t,f:!!n}:e:null);function dd(e,t=null,n=null,i=0,r=null,o=(e===qu?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cd(t),ref:t&&ud(t),scopeId:Sl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:kl};return s?(_d(l,n),128&o&&e.normalize(l)):n&&(l.shapeFlag|=Ao(n)?8:16),td>0&&!a&&Zu&&(l.patchFlag>0||6&o)&&32!==l.patchFlag&&Zu.push(l),l}const hd=function(e,t=null,n=null,i=0,r=null,o=!1){e&&e!==Il||(e=Gu);if(ad(e)){const i=pd(e,t,!0);return n&&_d(i,n),td>0&&!o&&Zu&&(6&i.shapeFlag?Zu[Zu.indexOf(e)]=i:Zu.push(i)),i.patchFlag|=-2,i}a=e,Do(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=fd(t);let{class:e,style:n}=t;e&&!Ao(e)&&(t.class=oa(e)),Eo(n)&&(Os(n)&&!So(n)&&(n=_o({},n)),t.style=ea(n))}const s=Ao(e)?1:Ul(e)?128:(e=>e.__isTeleport)(e)?64:Eo(e)?4:Do(e)?2:0;return dd(e,t,n,i,r,s,o,!0)};function fd(e){return e?Os(e)||ld in e?_o({},e):e:null}function pd(e,t,n=!1){const{props:i,ref:r,patchFlag:o,children:a}=e,s=t?wd(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&cd(s),ref:t&&t.ref?n&&r?So(r)?r.concat(ud(t)):[r,ud(t)]:ud(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==qu?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pd(e.ssContent),ssFallback:e.ssFallback&&pd(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function md(e=" ",t=0){return hd(Xu,null,e,t)}function gd(e,t){const n=hd(Ku,null,e);return n.staticCount=t,n}function vd(e="",t=!1){return t?(Qu(),od(Gu,null,e)):hd(Gu,null,e)}function yd(e){return null==e||"boolean"==typeof e?hd(Gu):So(e)?hd(qu,null,e.slice()):"object"==typeof e?bd(e):hd(Xu,null,String(e))}function bd(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:pd(e)}function _d(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if(So(t))n=16;else if("object"==typeof t){if(65&i){const n=t.default;return void(n&&(n._c&&(n._d=!1),_d(e,n()),n._c&&(n._d=!0)))}{n=32;const i=t._;i||ld in t?3===i&&kl&&(1===kl.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=kl}}else Do(t)?(t={default:t,_ctx:kl},n=32):(t=String(t),64&i?(n=16,t=[md(t)]):n=8);e.children=t,e.shapeFlag|=n}function wd(...e){const t={};for(let n=0;nCd||kl;let Dd,Ad,Od="__VUE_INSTANCE_SETTERS__";(Ad=Zo()[Od])||(Ad=Zo()[Od]=[]),Ad.push((e=>Cd=e)),Dd=e=>{Ad.length>1?Ad.forEach((t=>t(e))):Ad[0](e)};const Ed=e=>{Dd(e),e.scope.on()},Pd=()=>{Cd&&Cd.scope.off(),Dd(null)};function Nd(e){return 4&e.vnode.shapeFlag}let Rd,Ld,Id=!1;function Fd(e,t=!1){Id=t;const{props:n,children:i}=e.vnode,r=Nd(e);!function(e,t,n,i=!1){const r={},o={};Xo(o,ld,1),e.propsDefaults=Object.create(null),mu(e,t,r,o);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);n?e.props=i?r:Ss(r):e.type.props?e.props=r:e.props=o,e.attrs=o}(e,n,r,t),Mu(e,i);const o=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ps(new Proxy(e.ctx,zc));const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?Ud(e):null;Ed(e),Pa();const r=Js(i,e,0,[e.props,n]);if(Na(),Pd(),Po(r)){if(r.then(Pd,Pd),t)return r.then((n=>{Yd(e,n,t)})).catch((t=>{Qs(t,e,0)}));e.asyncDep=r}else Yd(e,r,t)}else Bd(e,t)}(e,t):void 0;return Id=!1,o}function Yd(e,t,n){Do(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Eo(t)&&(e.setupState=Vs(t)),Bd(e,n)}function Bd(e,t,n){const i=e.type;if(!e.render){if(!t&&Rd&&!i.render){const t=i.template||tu(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:o,compilerOptions:a}=i,s=_o(_o({isCustomElement:n,delimiters:o},r),a);i.render=Rd(t,s)}}e.render=i.render||mo,Ld&&Ld(e)}Ed(e),Pa();try{Zc(e)}finally{Na(),Pd()}}function Ud(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(Ra(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}function jd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Vs(Ps(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Vc?Vc[n](e):void 0,has:(e,t)=>t in e||t in Vc}))}function Hd(e,t=!0){return Do(e)?e.displayName||e.name:e.name||t&&e.__name}const $d=(e,t)=>function(e,t,n=!1){let i,r;const o=Do(e);return o?(i=e,r=mo):(i=e.get,r=e.set),new Ks(i,r,o||!r,n)}(e,0,Id);function Vd(e,t,n){const i=arguments.length;return 2===i?Eo(t)&&!So(t)?ad(t)?hd(e,null,[t]):hd(e,t):hd(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&ad(n)&&(n=[n]),hd(e,t,n))}const Wd=Symbol.for("v-scx"),zd=()=>pu(Wd);function qd(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let i=0;i0&&Zu&&Zu.push(e),!0}const Xd="3.3.8",Gd={createComponentInstance:Td,setupComponent:Fd,renderComponentRoot:Al,setCurrentRenderingInstance:Tl,isVNode:ad,normalizeVNode:yd},Kd="undefined"!=typeof document?document:null,Jd=Kd&&Kd.createElement("template"),Zd={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t?Kd.createElementNS("http://www.w3.org/2000/svg",e):Kd.createElement(e,n?{is:n}:void 0);return"select"===e&&i&&null!=i.multiple&&r.setAttribute("multiple",i.multiple),r},createText:e=>Kd.createTextNode(e),createComment:e=>Kd.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Kd.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,o){const a=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==o&&(r=r.nextSibling););else{Jd.innerHTML=i?"".concat(e,""):e;const r=Jd.content;if(i){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Qd="transition",eh="animation",th=Symbol("_vtc"),nh=(e,{slots:t})=>Vd(sc,sh(e),t);nh.displayName="Transition";const ih={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},rh=nh.props=_o({},ac,ih),oh=(e,t=[])=>{So(e)?e.forEach((e=>e(...t))):e&&e(...t)},ah=e=>!!e&&(So(e)?e.some((e=>e.length>1)):e.length>1);function sh(e){const t={};for(const D in e)D in ih||(t[D]=e[D]);if(!1===e.css)return t;const{name:n="v",type:i,duration:r,enterFromClass:o="".concat(n,"-enter-from"),enterActiveClass:a="".concat(n,"-enter-active"),enterToClass:s="".concat(n,"-enter-to"),appearFromClass:l=o,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d="".concat(n,"-leave-from"),leaveActiveClass:h="".concat(n,"-leave-active"),leaveToClass:f="".concat(n,"-leave-to")}=e,p=function(e){if(null==e)return null;if(Eo(e))return[lh(e.enter),lh(e.leave)];{const t=lh(e);return[t,t]}}(r),m=p&&p[0],g=p&&p[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:_,onLeaveCancelled:w,onBeforeAppear:x=v,onAppear:k=y,onAppearCancelled:S=b}=t,T=(e,t,n)=>{uh(e,t?u:s),uh(e,t?c:a),n&&n()},C=(e,t)=>{e._isLeaving=!1,uh(e,d),uh(e,f),uh(e,h),t&&t()},M=e=>(t,n)=>{const r=e?k:y,a=()=>T(t,e,n);oh(r,[t,a]),dh((()=>{uh(t,e?l:o),ch(t,e?u:s),ah(r)||fh(t,i,m,a)}))};return _o(t,{onBeforeEnter(e){oh(v,[e]),ch(e,o),ch(e,a)},onBeforeAppear(e){oh(x,[e]),ch(e,l),ch(e,c)},onEnter:M(!1),onAppear:M(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>C(e,t);ch(e,d),vh(),ch(e,h),dh((()=>{e._isLeaving&&(uh(e,d),ch(e,f),ah(_)||fh(e,i,g,n))})),oh(_,[e,n])},onEnterCancelled(e){T(e,!1),oh(b,[e])},onAppearCancelled(e){T(e,!0),oh(S,[e])},onLeaveCancelled(e){C(e),oh(w,[e])}})}function lh(e){return Ko(e)}function ch(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[th]||(e[th]=new Set)).add(t)}function uh(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[th];n&&(n.delete(t),n.size||(e[th]=void 0))}function dh(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let hh=0;function fh(e,t,n,i){const r=e._endId=++hh,o=()=>{r===e._endId&&i()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=ph(e,t);if(!a)return i();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,h),o()},h=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=i("".concat(Qd,"Delay")),o=i("".concat(Qd,"Duration")),a=mh(r,o),s=i("".concat(eh,"Delay")),l=i("".concat(eh,"Duration")),c=mh(s,l);let u=null,d=0,h=0;t===Qd?a>0&&(u=Qd,d=a,h=o.length):t===eh?c>0&&(u=eh,d=c,h=l.length):(d=Math.max(a,c),u=d>0?a>c?Qd:eh:null,h=u?u===Qd?o.length:l.length:0);return{type:u,timeout:d,propCount:h,hasTransform:u===Qd&&/\b(transform|all)(,|$)/.test(i("".concat(Qd,"Property")).toString())}}function mh(e,t){for(;e.lengthgh(t)+gh(e[n]))))}function gh(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function vh(){return document.body.offsetHeight}const yh=Symbol("_vod"),bh={beforeMount(e,{value:t},{transition:n}){e[yh]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):_h(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),_h(e,!0),i.enter(e)):i.leave(e,(()=>{_h(e,!1)})):_h(e,t))},beforeUnmount(e,{value:t}){_h(e,t)}};function _h(e,t){e.style.display=t?e[yh]:"none"}const wh=/\s*!important$/;function xh(e,t,n){if(So(n))n.forEach((n=>xh(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=function(e,t){const n=Sh[t];if(n)return n;let i=jo(t);if("filter"!==i&&i in e)return Sh[t]=i;i=Vo(i);for(let r=0;r{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Zs(function(e,t){if(So(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Ph(),n}(i,r);Ch(e,n,a,s)}else a&&(!function(e,t,n,i){e.removeEventListener(t,n,i)}(e,n,a,s),o[t]=void 0)}}const Ah=/(?:Once|Passive|Capture)$/;let Oh=0;const Eh=Promise.resolve(),Ph=()=>Oh||(Eh.then((()=>Oh=0)),Oh=Date.now());const Nh=/^on[a-z]/; /*! #__NO_SIDE_EFFECTS__ */ function Rh(e,t){const n=pc(e);class i extends Ih{constructor(e){super(n,e,t)}}return i.def=n,i} /*! #__NO_SIDE_EFFECTS__ */const Lh="undefined"!=typeof HTMLElement?HTMLElement:class{};class Ih extends Lh{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),cl((()=>{this._connected||(_f(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let n=0;n{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:i}=e;let r;if(n&&!So(n))for(const o in n){const e=n[o];(e===Number||e&&e.type===Number)&&(o in this._props&&(this._props[o]=Ko(this._props[o])),(r||(r=Object.create(null)))[jo(o)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(i),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=So(t)?t:Object.keys(t||{});for(const i of Object.keys(this))"_"!==i[0]&&n.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of n.map(jo))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(e){this._setProp(i,e)}})}_setAttr(e){let t=this.getAttribute(e);const n=jo(e);this._numberProps&&this._numberProps[n]&&(t=Ko(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,i=!0){t!==this._props[e]&&(this._props[e]=t,i&&this._instance&&this._update(),n&&(!0===t?this.setAttribute($o(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute($o(e),t+""):t||this.removeAttribute($o(e))))}_update(){_f(this._createVNode(),this.shadowRoot)}_createVNode(){const e=hd(this._def,_o({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),$o(e)!==e&&t($o(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Ih){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Fh(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Fh(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Yh(e.el,t);else if(e.type===qu)e.children.forEach((e=>Fh(e,t)));else if(e.type===Ku){let{el:n,anchor:i}=e;for(;n&&(Yh(n,t),n!==i);)n=n.nextSibling}}function Yh(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty("--".concat(e),t[e])}}const Bh=new WeakMap,Uh=new WeakMap,jh=Symbol("_moveCb"),Hh=Symbol("_enterCb"),$h={name:"TransitionGroup",props:_o({},rh,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Md(),i=rc();let r,o;return Pc((()=>{if(!r.length)return;const t=e.moveClass||"".concat(e.name||"v","-move");if(!function(e,t,n){const i=e.cloneNode(),r=e[th];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&i.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&i.classList.add(e))),i.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(i);const{hasTransform:a}=ph(i);return o.removeChild(i),a}(r[0].el,n.vnode.el,t))return;r.forEach(Wh),r.forEach(zh);const i=r.filter(qh);vh(),i.forEach((e=>{const n=e.el,i=n.style;ch(n,t),i.transform=i.webkitTransform=i.transitionDuration="";const r=n[jh]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[jh]=null,uh(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const a=Es(e),s=sh(a);let l=a.tag||qu;r=o,o=t.default?fc(t.default()):[];for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return So(t)?e=>qo(t,e):t};function Gh(e){e.target.composing=!0}function Kh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Jh=Symbol("_assign"),Zh={created(e,{modifiers:{lazy:t,trim:n,number:i}},r){e[Jh]=Xh(r);const o=i||r.props&&"number"===r.props.type;Ch(e,t?"change":"input",(t=>{if(t.target.composing)return;let i=e.value;n&&(i=i.trim()),o&&(i=Go(i)),e[Jh](i)})),n&&Ch(e,"change",(()=>{e.value=e.value.trim()})),t||(Ch(e,"compositionstart",Gh),Ch(e,"compositionend",Kh),Ch(e,"change",Kh))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:r}},o){if(e[Jh]=Xh(o),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(i&&e.value.trim()===t)return;if((r||"number"===e.type)&&Go(e.value)===t)return}const a=null==t?"":t;e.value!==a&&(e.value=a)}},Qh={deep:!0,created(e,t,n){e[Jh]=Xh(n),Ch(e,"change",(()=>{const t=e._modelValue,n=of(e),i=e.checked,r=e[Jh];if(So(t)){const e=ua(t,n),o=-1!==e;if(i&&!o)r(t.concat(n));else if(!i&&o){const n=[...t];n.splice(e,1),r(n)}}else if(Co(t)){const e=new Set(t);i?e.add(n):e.delete(n),r(e)}else r(af(e,i))}))},mounted:ef,beforeUpdate(e,t,n){e[Jh]=Xh(n),ef(e,t,n)}};function ef(e,{value:t,oldValue:n},i){e._modelValue=t,So(t)?e.checked=ua(t,i.props.value)>-1:Co(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=ca(t,af(e,!0)))}const tf={created(e,{value:t},n){e.checked=ca(t,n.props.value),e[Jh]=Xh(n),Ch(e,"change",(()=>{e[Jh](of(e))}))},beforeUpdate(e,{value:t,oldValue:n},i){e[Jh]=Xh(i),t!==n&&(e.checked=ca(t,i.props.value))}},nf={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const r=Co(t);Ch(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?Go(of(e)):of(e)));e[Jh](e.multiple?r?new Set(t):t:t[0])})),e[Jh]=Xh(i)},mounted(e,{value:t}){rf(e,t)},beforeUpdate(e,t,n){e[Jh]=Xh(n)},updated(e,{value:t}){rf(e,t)}};function rf(e,t){const n=e.multiple;if(!n||So(t)||Co(t)){for(let i=0,r=e.options.length;i-1:r.selected=t.has(o);else if(ca(of(r),t))return void(e.selectedIndex!==i&&(e.selectedIndex=i))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function of(e){return"_value"in e?e._value:e.value}function af(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const sf={created(e,t,n){cf(e,t,n,null,"created")},mounted(e,t,n){cf(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){cf(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){cf(e,t,n,i,"updated")}};function lf(e,t){switch(e){case"SELECT":return nf;case"TEXTAREA":return Zh;default:switch(t){case"checkbox":return Qh;case"radio":return tf;default:return Zh}}}function cf(e,t,n,i,r){const o=lf(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,i)}const uf=["ctrl","shift","alt","meta"],df={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>uf.some((n=>e["".concat(n,"Key")]&&!t.includes(n)))},hf=(e,t)=>(n,...i)=>{for(let e=0;en=>{if(!("key"in n))return;const i=$o(n.key);return t.some((e=>e===i||ff[e]===i))?e(n):void 0},mf=_o({patchProp:(e,t,n,i,r=!1,o,a,s,l)=>{"class"===t?function(e,t,n){const i=e[th];i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,r):"style"===t?function(e,t,n){const i=e.style,r=Ao(n);if(n&&!r){if(t&&!Ao(t))for(const e in t)null==n[e]&&xh(i,e,"");for(const e in n)xh(i,e,n[e])}else{const o=i.display;r?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),yh in e&&(i.display=o)}}(e,n,i):yo(t)?bo(t)||Dh(e,t,0,i,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,i){if(i)return"innerHTML"===t||"textContent"===t||!!(t in e&&Nh.test(t)&&Do(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Nh.test(t)&&Ao(n))return!1;return t in e}(e,t,i,r))?function(e,t,n,i,r,o,a){if("innerHTML"===t||"textContent"===t)return i&&a(i,r,o),void(e[t]=null==n?"":n);const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){e._value=n;const i=null==n?"":n;return("OPTION"===s?e.getAttribute("value"):e.value)!==i&&(e.value=i),void(null==n&&e.removeAttribute(t))}let l=!1;if(""===n||null==n){const i=typeof e[t];"boolean"===i?n=la(n):null==n&&"string"===i?(n="",l=!0):"number"===i&&(n=0,l=!0)}try{e[t]=n}catch(rN){}l&&e.removeAttribute(t)}(e,t,i,o,a,s,l):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),function(e,t,n,i,r){if(i&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Th,t.slice(6,t.length)):e.setAttributeNS(Th,t,n);else{const i=sa(t);null==n||i&&!la(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}(e,t,i,r))}},Zd);let gf,vf=!1;function yf(){return gf||(gf=Lu(mf))}function bf(){return gf=vf?gf:Iu(mf),vf=!0,gf}const _f=(...e)=>{yf().render(...e)},wf=(...e)=>{bf().hydrate(...e)},xf=(...e)=>{const t=yf().createApp(...e),{mount:n}=t;return t.mount=e=>{const i=kf(e);if(!i)return;const r=t._component;Do(r)||r.render||r.template||(r.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function kf(e){if(Ao(e)){return document.querySelector(e)}return e}let Sf=!1;const Tf=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:sc,BaseTransitionPropsValidators:ac,Comment:Gu,EffectScope:pa,Fragment:qu,KeepAlive:bc,ReactiveEffect:Da,Static:Ku,Suspense:jl,Teleport:Wu,Text:Xu,Transition:nh,TransitionGroup:Vh,VueElement:Ih,assertNumber:function(e,t){},callWithAsyncErrorHandling:Zs,callWithErrorHandling:Js,camelize:jo,capitalize:Vo,cloneVNode:pd,compatUtils:null,compile:()=>{},computed:$d,createApp:xf,createBlock:od,createCommentVNode:vd,createElementBlock:rd,createElementVNode:dd,createHydrationRenderer:Iu,createPropsRestProxy:function(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n},createRenderer:Lu,createSSRApp:(...e)=>{const t=bf().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=kf(e);if(t)return n(t,!0,t instanceof SVGElement)},t},createSlots:Uc,createStaticVNode:gd,createTextVNode:md,createVNode:hd,customRef:function(e){return new Ws(e)},defineAsyncComponent:function(e){Do(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:r=200,timeout:o,suspensible:a=!0,onError:s}=e;let l,c=null,u=0;const d=()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise(((t,n)=>{s(e,(()=>t((u++,c=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return pc({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const e=Cd;if(l)return()=>gc(l,e);const t=t=>{c=null,Qs(t,e,13,!i)};if(a&&e.suspense||Id)return d().then((t=>()=>gc(t,e))).catch((e=>(t(e),()=>i?hd(i,{error:e}):null)));const s=Ys(!1),u=Ys(),h=Ys(!!r);return r&&setTimeout((()=>{h.value=!1}),r),null!=o&&setTimeout((()=>{if(!s.value&&!u.value){const e=new Error("Async component timed out after ".concat(o,"ms."));t(e),u.value=e}}),o),d().then((()=>{s.value=!0,e.parent&&vc(e.parent.vnode)&&ul(e.parent.update)})).catch((e=>{t(e),u.value=e})),()=>s.value&&l?gc(l,e):u.value&&i?hd(i,{error:u.value}):n&&!h.value?hd(n):void 0}})},defineComponent:pc,defineCustomElement:Rh,defineEmits:function(){return null},defineExpose:function(e){},defineModel:function(){},defineOptions:function(e){},defineProps:function(){return null},defineSSRCustomElement:e=>Rh(e,wf),defineSlots:function(){return null},get devtools(){return yl},effect:function(e,t){e.effect instanceof Da&&(e=e.effect.fn);const n=new Da(e);t&&(_o(n,t),t.scope&&ma(n,t.scope)),t&&t.lazy||n.run();const i=n.run.bind(n);return i.effect=n,i},effectScope:function(e){return new pa(e)},getCurrentInstance:Md,getCurrentScope:ga,getTransitionRawChildren:fc,guardReactiveProps:fd,h:Vd,handleError:Qs,hasInjectionContext:function(){return!!(Cd||kl||hu)},hydrate:wf,initCustomFormatter:function(){},initDirectivesForSSR:()=>{Sf||(Sf=!0,Zh.getSSRProps=({value:e})=>({value:e}),tf.getSSRProps=({value:e},t)=>{if(t.props&&ca(t.props.value,e))return{checked:!0}},Qh.getSSRProps=({value:e},t)=>{if(So(e)){if(t.props&&ua(e,t.props.value)>-1)return{checked:!0}}else if(Co(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},sf.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=lf(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},bh.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},inject:pu,isMemoSame:qd,isProxy:Os,isReactive:Ms,isReadonly:Ds,isRef:Fs,isRuntimeOnly:()=>!Rd,isShallow:As,isVNode:ad,markRaw:Ps,mergeDefaults:function(e,t){const n=Kc(e);for(const i in t){if(i.startsWith("__skip"))continue;let e=n[i];e?So(e)||Do(e)?e=n[i]={type:e,default:t[i]}:e.default=t[i]:null===e&&(e=n[i]={default:t[i]}),e&&t["__skip_".concat(i)]&&(e.skipFactory=!0)}return n},mergeModels:function(e,t){return e&&t?So(e)&&So(t)?e.concat(t):_o({},Kc(e),Kc(t)):e||t},mergeProps:wd,nextTick:cl,normalizeClass:oa,normalizeProps:aa,normalizeStyle:ea,onActivated:wc,onBeforeMount:Ac,onBeforeUnmount:Nc,onBeforeUpdate:Ec,onDeactivated:xc,onErrorCaptured:Yc,onMounted:Oc,onRenderTracked:Fc,onRenderTriggered:Ic,onScopeDispose:va,onServerPrefetch:Lc,onUnmounted:Rc,onUpdated:Pc,openBlock:Qu,popScopeId:Ml,provide:fu,proxyRefs:Vs,pushScopeId:Cl,queuePostFlushCb:hl,reactive:ks,readonly:Ts,ref:Ys,registerRuntimeCompiler:function(e){Rd=e,Ld=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,qc))}},render:_f,renderList:Bc,renderSlot:jc,resolveComponent:Ll,resolveDirective:function(e){return Yl("directives",e)},resolveDynamicComponent:Fl,resolveFilter:null,resolveTransitionHooks:cc,setBlockTracking:nd,setDevtoolsHook:function e(t,n){var i,r;if(yl=t,yl)yl.enabled=!0,bl.forEach((({event:e,args:t})=>yl.emit(e,...t))),bl=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(i=window.navigator)?void 0:i.userAgent)?void 0:r.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{yl||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,bl=[])}),3e3)}else bl=[]},setTransitionHooks:hc,shallowReactive:Ss,shallowReadonly:function(e){return Cs(e,!0,Ka,ys,xs)},shallowRef:Bs,ssrContextKey:Wd,ssrUtils:Gd,stop:function(e){e.effect.stop()},toDisplayString:da,toHandlerKey:Wo,toHandlers:function(e,t){const n={};for(const i in e)n[t&&/[A-Z]/.test(i)?"on:".concat(i):Wo(i)]=e[i];return n},toRaw:Es,toRef:Xs,toRefs:function(e){const t=So(e)?new Array(e.length):{};for(const n in e)t[n]=Gs(e,n);return t},toValue:function(e){return Do(e)?e():Hs(e)},transformVNodeArgs:function(e){},triggerRef:function(e){Is(e)},unref:Hs,useAttrs:function(){return Gc().attrs},useCssModule:function(e="$style"){{const t=Md();if(!t)return fo;const n=t.type.__cssModules;if(!n)return fo;const i=n[e];return i||fo}},useCssVars:function(e){const t=Md();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll('[data-v-owner="'.concat(t.uid,'"]'))).forEach((e=>Yh(e,n)))},i=()=>{const i=e(t.proxy);Fh(t.subTree,i),n(i)};ql(i),Oc((()=>{const e=new MutationObserver(i);e.observe(t.subTree.el.parentNode,{childList:!0}),Rc((()=>e.disconnect()))}))},useModel:function(e,t,n){const i=Md();if(n&&n.local){const n=Ys(e[t]);return Gl((()=>e[t]),(e=>n.value=e)),Gl(n,(n=>{n!==e[t]&&i.emit("update:".concat(t),n)})),n}return{__v_isRef:!0,get value(){return e[t]},set value(e){i.emit("update:".concat(t),e)}}},useSSRContext:zd,useSlots:Xc,useTransitionState:rc,vModelCheckbox:Qh,vModelDynamic:sf,vModelRadio:tf,vModelSelect:nf,vModelText:Zh,vShow:bh,version:Xd,warn:function(e,...t){},watch:Gl,watchEffect:function(e,t){return Kl(e,null,t)},watchPostEffect:ql,watchSyncEffect:function(e,t){return Kl(e,null,{flush:"sync"})},withAsyncContext:function(e){const t=Md();let n=e();return Pd(),Po(n)&&(n=n.catch((e=>{throw Ed(t),e}))),[n,()=>Ed(t)]},withCtx:Dl,withDefaults:function(e,t){return null},withDirectives:ec,withKeys:pf,withMemo:function(e,t,n,i){const r=n[i];if(r&&qd(r,e))return r;const o=t();return o.memo=e.slice(),n[i]=o},withModifiers:hf,withScopeId:e=>Dl},Symbol.toStringTag,{value:"Module"})),Cf="undefined"!=typeof window;const Mf=Object.assign;function Df(e,t){const n={};for(const i in t){const r=t[i];n[i]=Of(r)?r.map(e):e(r)}return n}const Af=()=>{},Of=Array.isArray,Ef=/\/$/,Pf=e=>e.replace(Ef,"");function Nf(e,t,n="/"){let i,r={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(i=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),r=e(o)),s>-1&&(i=i||t.slice(0,s),a=t.slice(s,t.length)),i=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),r=i[i.length-1];".."!==r&&"."!==r||i.push("");let o,a,s=n.length-1;for(o=0;o1&&s--}return n.slice(0,s).join("/")+"/"+i.slice(o-(o===i.length?1:0)).join("/")}(null!=i?i:t,n),{fullPath:i+(o&&"?")+o+a,path:i,query:r,hash:a}}function Rf(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Lf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function If(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ff(e[n],t[n]))return!1;return!0}function Ff(e,t){return Of(e)?Yf(e,t):Of(t)?Yf(t,e):e===t}function Yf(e,t){return Of(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var Bf,Uf,jf,Hf;(Uf=Bf||(Bf={})).pop="pop",Uf.push="push",(Hf=jf||(jf={})).back="back",Hf.forward="forward",Hf.unknown="";const $f=/^[^#]+#/;function Vf(e,t){return e.replace($f,"#")+t}const Wf=()=>({left:window.pageXOffset,top:window.pageYOffset});function zf(e){let t;if("el"in e){const n=e.el,i="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function qf(e,t){return(history.state?history.state.position-t:-1)+e}const Xf=new Map;let Gf=()=>location.protocol+"//"+location.host;function Kf(e,t){const{pathname:n,search:i,hash:r}=t,o=e.indexOf("#");if(o>-1){let t=r.includes(e.slice(o))?e.slice(o).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Rf(n,"")}return Rf(n,e)+i+r}function Jf(e,t,n,i=!1,r=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:r?Wf():null}}function Zf(e){const t=function(e){const{history:t,location:n}=window,i={value:Kf(e,n)},r={value:t.state};function o(i,o,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+i:Gf()+e+i;try{t[a?"replaceState":"pushState"](o,"",l),r.value=o}catch(c){console.error(c),n[a?"replace":"assign"](l)}}return r.value||o(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:i,state:r,push:function(e,n){const a=Mf({},r.value,t.state,{forward:e,scroll:Wf()});o(a.current,a,!0),o(e,Mf({},Jf(i.value,e,null),{position:a.position+1},n),!1),i.value=e},replace:function(e,n){o(e,Mf({},t.state,Jf(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),i.value=e}}}(e=function(e){if(!e)if(Cf){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),Pf(e)}(e)),n=function(e,t,n,i){let r=[],o=[],a=null;const s=({state:o})=>{const s=Kf(e,location),l=n.value,c=t.value;let u=0;if(o){if(n.value=s,t.value=o,a&&a===l)return void(a=null);u=c?o.position-c.position:0}else i(s);r.forEach((e=>{e(n.value,l,{delta:u,type:Bf.pop,direction:u?u>0?jf.forward:jf.back:jf.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(Mf({},e.state,{scroll:Wf()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){a=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return o.push(t),t},destroy:function(){for(const e of o)e();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const i=Mf({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Vf.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function Qf(e){return"string"==typeof e||"symbol"==typeof e}const ep={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},tp=Symbol("");var np,ip;function rp(e,t){return Mf(new Error,{type:e,[tp]:!0},t)}function op(e,t){return e instanceof Error&&tp in e&&(null==t||!!(e.type&t))}(ip=np||(np={}))[ip.aborted=4]="aborted",ip[ip.cancelled=8]="cancelled",ip[ip.duplicated=16]="duplicated";const ap="[^/]+?",sp={sensitive:!1,strict:!1,start:!0,end:!0},lp=/[.+*?^${}()[\]/\\]/g;function cp(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function up(e,t){let n=0;const i=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const hp={type:0,value:""},fp=/[a-zA-Z0-9_]/;function pp(e,t,n){const i=function(e,t){const n=Mf({},sp,t),i=[];let r=n.start?"^":"";const o=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(r+="/");for(let t=0;t1&&("*"===s||"+"===s)&&t("A repeatable param (".concat(c,") must be alone in its segment. eg: '/:ids+.")),o.push({type:1,value:c,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),c="")}function h(){c+=s}for(;l{o(h)}:Af}function o(e){if(Qf(e)){const t=i.get(e);t&&(i.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&i.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function a(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!wp(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!yp(e)&&i.set(e.record.name,e)}return t=_p({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,o,a,s={};if("name"in e&&e.name){if(r=i.get(e.name),!r)throw rp(1,{location:e});a=r.record.name,s=Mf(gp(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&gp(e.params,r.keys.map((e=>e.name)))),o=r.stringify(s)}else if("path"in e)o=e.path,r=n.find((e=>e.re.test(o))),r&&(s=r.parse(o),a=r.record.name);else{if(r=t.name?i.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw rp(1,{location:e,currentLocation:t});a=r.record.name,s=Mf({},t.params,e.params),o=r.stringify(s)}const l=[];let c=r;for(;c;)l.unshift(c.record),c=c.parent;return{name:a,path:o,params:s,matched:l,meta:bp(l)}},removeRoute:o,getRoutes:function(){return n},getRecordMatcher:function(e){return i.get(e)}}}function gp(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function vp(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]="object"==typeof n?n[i]:n;return t}function yp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function bp(e){return e.reduce(((e,t)=>Mf(e,t.meta)),{})}function _p(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function wp(e,t){return t.children.some((t=>t===e||wp(e,t)))}const xp=/#/g,kp=/&/g,Sp=/\//g,Tp=/=/g,Cp=/\?/g,Mp=/\+/g,Dp=/%5B/g,Ap=/%5D/g,Op=/%5E/g,Ep=/%60/g,Pp=/%7B/g,Np=/%7C/g,Rp=/%7D/g,Lp=/%20/g;function Ip(e){return encodeURI(""+e).replace(Np,"|").replace(Dp,"[").replace(Ap,"]")}function Fp(e){return Ip(e).replace(Mp,"%2B").replace(Lp,"+").replace(xp,"%23").replace(kp,"%26").replace(Ep,"`").replace(Pp,"{").replace(Rp,"}").replace(Op,"^")}function Yp(e){return null==e?"":function(e){return Ip(e).replace(xp,"%23").replace(Cp,"%3F")}(e).replace(Sp,"%2F")}function Bp(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Up(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let i=0;ie&&Fp(e))):[i&&Fp(i)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Hp(e){const t={};for(const n in e){const i=e[n];void 0!==i&&(t[n]=Of(i)?i.map((e=>null==e?null:""+e)):null==i?i:""+i)}return t}const $p=Symbol(""),Vp=Symbol(""),Wp=Symbol(""),zp=Symbol(""),qp=Symbol("");function Xp(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Gp(e,t,n,i,r){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise(((a,s)=>{const l=e=>{var l;!1===e?s(rp(4,{from:n,to:t})):e instanceof Error?s(e):"string"==typeof(l=e)||l&&"object"==typeof l?s(rp(2,{from:t,to:e})):(o&&i.enterCallbacks[r]===o&&"function"==typeof e&&o.push(e),a())},c=e.call(i&&i.instances[r],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch((e=>s(e)))}))}function Kp(e,t,n,i){const r=[];for(const a of e)for(const e in a.components){let s=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if("object"==typeof(o=s)||"displayName"in o||"props"in o||"__vccOpts"in o){const o=(s.__vccOpts||s)[t];o&&r.push(Gp(o,n,i,a,e))}else{let o=s();r.push((()=>o.then((r=>{if(!r)return Promise.reject(new Error("Couldn't resolve component \"".concat(e,'" at "').concat(a.path,'"')));const o=(s=r).__esModule||"Module"===s[Symbol.toStringTag]?r.default:r;var s;a.components[e]=o;const l=(o.__vccOpts||o)[t];return l&&Gp(l,n,i,a,e)()}))))}}var o;return r}function Jp(e){const t=pu(Wp),n=pu(zp),i=$d((()=>t.resolve(Hs(e.to)))),r=$d((()=>{const{matched:e}=i.value,{length:t}=e,r=e[t-1],o=n.matched;if(!r||!o.length)return-1;const a=o.findIndex(Lf.bind(null,r));if(a>-1)return a;const s=Qp(e[t-2]);return t>1&&Qp(r)===s&&o[o.length-1].path!==s?o.findIndex(Lf.bind(null,e[t-2])):a})),o=$d((()=>r.value>-1&&function(e,t){for(const n in t){const i=t[n],r=e[n];if("string"==typeof i){if(i!==r)return!1}else if(!Of(r)||r.length!==i.length||i.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,i.value.params))),a=$d((()=>r.value>-1&&r.value===n.matched.length-1&&If(n.params,i.value.params)));return{route:i,href:$d((()=>i.value.href)),isActive:o,isExactActive:a,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[Hs(e.replace)?"replace":"push"](Hs(e.to)).catch(Af):Promise.resolve()}}}const Zp=pc({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Jp,setup(e,{slots:t}){const n=ks(Jp(e)),{options:i}=pu(Wp),r=$d((()=>({[em(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[em(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const i=t.default&&t.default(n);return e.custom?i:Vd("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}});function Qp(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const em=(e,t,n)=>null!=e?e:null!=t?t:n,tm=pc({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=pu(qp),r=$d((()=>e.route||i.value)),o=pu(Vp,0),a=$d((()=>{let e=Hs(o);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),s=$d((()=>r.value.matched[a.value]));fu(Vp,$d((()=>a.value+1))),fu($p,s),fu(qp,r);const l=Ys();return Gl((()=>[l.value,s.value,e.name]),(([e,t,n],[i,r,o])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===i&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Lf(t,r)&&i||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const i=r.value,o=e.name,a=s.value,c=a&&a.components[o];if(!c)return nm(n.default,{Component:c,route:i});const u=a.props[o],d=u?!0===u?i.params:"function"==typeof u?u(i):u:null,h=Vd(c,Mf({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[o]=null)},ref:l}));return nm(n.default,{Component:h,route:i})||h}}});function nm(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const im=tm;function rm(e){const t=mp(e.routes,e),n=e.parseQuery||Up,i=e.stringifyQuery||jp,r=e.history,o=Xp(),a=Xp(),s=Xp(),l=Bs(ep);let c=ep;Cf&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Df.bind(null,(e=>""+e)),d=Df.bind(null,Yp),h=Df.bind(null,Bp);function f(e,o){if(o=Mf({},o||l.value),"string"==typeof e){const i=Nf(n,e,o.path),a=t.resolve({path:i.path},o),s=r.createHref(i.fullPath);return Mf(i,a,{params:h(a.params),hash:Bp(i.hash),redirectedFrom:void 0,href:s})}let a;if("path"in e)a=Mf({},e,{path:Nf(n,e.path,o.path).path});else{const t=Mf({},e.params);for(const e in t)null==t[e]&&delete t[e];a=Mf({},e,{params:d(t)}),o.params=d(o.params)}const s=t.resolve(a,o),c=e.hash||"";s.params=u(h(s.params));const f=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(i,Mf({},e,{hash:(p=c,Ip(p).replace(Pp,"{").replace(Rp,"}").replace(Op,"^")),path:s.path}));var p;const m=r.createHref(f);return Mf({fullPath:f,hash:c,query:i===jp?Hp(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function p(e){return"string"==typeof e?Nf(n,e,l.value.path):Mf({},e)}function m(e,t){if(c!==e)return rp(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let i="function"==typeof n?n(e):n;return"string"==typeof i&&(i=i.includes("?")||i.includes("#")?i=p(i):{path:i},i.params={}),Mf({query:e.query,hash:e.hash,params:"path"in i?{}:e.params},i)}}function y(e,t){const n=c=f(e),r=l.value,o=e.state,a=e.force,s=!0===e.replace,u=v(n);if(u)return y(Mf(p(u),{state:"object"==typeof u?Mf({},o,u.state):o,force:a,replace:s}),t||n);const d=n;let h;return d.redirectedFrom=t,!a&&function(e,t,n){const i=t.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&Lf(t.matched[i],n.matched[r])&&If(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(i,r,n)&&(h=rp(16,{to:d,from:r}),E(r,r,!0,!1)),(h?Promise.resolve(h):w(d,r)).catch((e=>op(e)?op(e,2)?e:O(e):A(e,d,r))).then((e=>{if(e){if(op(e,2))return y(Mf({replace:s},p(e.to),{state:"object"==typeof e.to?Mf({},o,e.to.state):o,force:a}),t||d)}else e=k(d,r,!0,s,o);return x(d,r,e),e}))}function b(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e){const t=R.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[i,r,s]=function(e,t){const n=[],i=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;aLf(e,o)))?i.push(o):n.push(o));const s=e.matched[a];s&&(t.matched.find((e=>Lf(e,s)))||r.push(s))}return[n,i,r]}(e,t);n=Kp(i.reverse(),"beforeRouteLeave",e,t);for(const o of i)o.leaveGuards.forEach((i=>{n.push(Gp(i,e,t))}));const l=b.bind(null,e,t);return n.push(l),I(n).then((()=>{n=[];for(const i of o.list())n.push(Gp(i,e,t));return n.push(l),I(n)})).then((()=>{n=Kp(r,"beforeRouteUpdate",e,t);for(const i of r)i.updateGuards.forEach((i=>{n.push(Gp(i,e,t))}));return n.push(l),I(n)})).then((()=>{n=[];for(const i of s)if(i.beforeEnter)if(Of(i.beforeEnter))for(const r of i.beforeEnter)n.push(Gp(r,e,t));else n.push(Gp(i.beforeEnter,e,t));return n.push(l),I(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Kp(s,"beforeRouteEnter",e,t),n.push(l),I(n)))).then((()=>{n=[];for(const i of a.list())n.push(Gp(i,e,t));return n.push(l),I(n)})).catch((e=>op(e,8)?e:Promise.reject(e)))}function x(e,t,n){s.list().forEach((i=>_((()=>i(e,t,n)))))}function k(e,t,n,i,o){const a=m(e,t);if(a)return a;const s=t===ep,c=Cf?history.state:{};n&&(i||s?r.replace(e.fullPath,Mf({scroll:s&&c&&c.scroll},o)):r.push(e.fullPath,o)),l.value=e,E(e,t,n,s),O()}let S;function T(){S||(S=r.listen(((e,t,n)=>{if(!L.listening)return;const i=f(e),o=v(i);if(o)return void y(Mf(o,{replace:!0}),i).catch(Af);c=i;const a=l.value;var s,u;Cf&&(s=qf(a.fullPath,n.delta),u=Wf(),Xf.set(s,u)),w(i,a).catch((e=>op(e,12)?e:op(e,2)?(y(e.to,i).then((e=>{op(e,20)&&!n.delta&&n.type===Bf.pop&&r.go(-1,!1)})).catch(Af),Promise.reject()):(n.delta&&r.go(-n.delta,!1),A(e,i,a)))).then((e=>{(e=e||k(i,a,!1))&&(n.delta&&!op(e,8)?r.go(-n.delta,!1):n.type===Bf.pop&&op(e,20)&&r.go(-1,!1)),x(i,a,e)})).catch(Af)})))}let C,M=Xp(),D=Xp();function A(e,t,n){O(e);const i=D.list();return i.length?i.forEach((i=>i(e,t,n))):console.error(e),Promise.reject(e)}function O(e){return C||(C=!e,T(),M.list().forEach((([t,n])=>e?n(e):t())),M.reset()),e}function E(t,n,i,r){const{scrollBehavior:o}=e;if(!Cf||!o)return Promise.resolve();const a=!i&&function(e){const t=Xf.get(e);return Xf.delete(e),t}(qf(t.fullPath,0))||(r||!i)&&history.state&&history.state.scroll||null;return cl().then((()=>o(t,n,a))).then((e=>e&&zf(e))).catch((e=>A(e,t,n)))}const P=e=>r.go(e);let N;const R=new Set,L={currentRoute:l,listening:!0,addRoute:function(e,n){let i,r;return Qf(e)?(i=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,i)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:f,options:e,push:g,replace:function(e){return g(Mf(p(e),{replace:!0}))},go:P,back:()=>P(-1),forward:()=>P(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:D.add,isReady:function(){return C&&l.value!==ep?Promise.resolve():new Promise(((e,t)=>{M.add([e,t])}))},install(e){e.component("RouterLink",Zp),e.component("RouterView",im),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Hs(l)}),Cf&&!N&&l.value===ep&&(N=!0,g(r.location).catch((e=>{})));const t={};for(const i in ep)Object.defineProperty(t,i,{get:()=>l.value[i],enumerable:!0});e.provide(Wp,this),e.provide(zp,Ss(t)),e.provide(qp,l);const n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(c=ep,S&&S(),S=null,l.value=ep,N=!1,C=!1),n()}}};function I(e){return e.reduce(((e,t)=>e.then((()=>_(t)))),Promise.resolve())}return L}function om(){return pu(Wp)}function am(){return pu(zp)}function sm(e,t){return function(){return e.apply(t,arguments)}}const{toString:lm}=Object.prototype,{getPrototypeOf:cm}=Object,um=(dm=Object.create(null),e=>{const t=lm.call(e);return dm[t]||(dm[t]=t.slice(8,-1).toLowerCase())});var dm;const hm=e=>(e=e.toLowerCase(),t=>um(t)===e),fm=e=>t=>typeof t===e,{isArray:pm}=Array,mm=fm("undefined");const gm=hm("ArrayBuffer");const vm=fm("string"),ym=fm("function"),bm=fm("number"),_m=e=>null!==e&&"object"==typeof e,wm=e=>{if("object"!==um(e))return!1;const t=cm(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},xm=hm("Date"),km=hm("File"),Sm=hm("Blob"),Tm=hm("FileList"),Cm=hm("URLSearchParams");function Mm(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,r;if("object"!=typeof e&&(e=[e]),pm(e))for(i=0,r=e.length;i0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Am="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Om=e=>!mm(e)&&e!==Am;const Em=(Pm="undefined"!=typeof Uint8Array&&cm(Uint8Array),e=>Pm&&e instanceof Pm);var Pm;const Nm=hm("HTMLFormElement"),Rm=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Lm=hm("RegExp"),Im=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Mm(n,((n,r)=>{let o;!1!==(o=t(n,r,e))&&(i[r]=o||n)})),Object.defineProperties(e,i)},Fm="abcdefghijklmnopqrstuvwxyz",Ym="0123456789",Bm={DIGIT:Ym,ALPHA:Fm,ALPHA_DIGIT:Fm+Fm.toUpperCase()+Ym};const Um=hm("AsyncFunction"),jm={isArray:pm,isArrayBuffer:gm,isBuffer:function(e){return null!==e&&!mm(e)&&null!==e.constructor&&!mm(e.constructor)&&ym(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ym(e.append)&&("formdata"===(t=um(e))||"object"===t&&ym(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&gm(e.buffer),t},isString:vm,isNumber:bm,isBoolean:e=>!0===e||!1===e,isObject:_m,isPlainObject:wm,isUndefined:mm,isDate:xm,isFile:km,isBlob:Sm,isRegExp:Lm,isFunction:ym,isStream:e=>_m(e)&&ym(e.pipe),isURLSearchParams:Cm,isTypedArray:Em,isFileList:Tm,forEach:Mm,merge:function e(){const{caseless:t}=Om(this)&&this||{},n={},i=(i,r)=>{const o=t&&Dm(n,r)||r;wm(n[o])&&wm(i)?n[o]=e(n[o],i):wm(i)?n[o]=e({},i):pm(i)?n[o]=i.slice():n[o]=i};for(let r=0,o=arguments.length;r(Mm(t,((t,i)=>{n&&ym(t)?e[i]=sm(t,n):e[i]=t}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let r,o,a;const s={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)a=r[o],i&&!i(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&cm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:um,kindOfTest:hm,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if(pm(e))return e;let t=e.length;if(!bm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:Nm,hasOwnProperty:Rm,hasOwnProp:Rm,reduceDescriptors:Im,freezeMethods:e=>{Im(e,((t,n)=>{if(ym(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];ym(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return pm(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Dm,global:Am,isContextDefined:Om,ALPHABET:Bm,generateString:(e=16,t=Bm.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n},isSpecCompliantForm:function(e){return!!(e&&ym(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(_m(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const r=pm(e)?[]:{};return Mm(e,((e,t)=>{const o=n(e,i+1);!mm(o)&&(r[t]=o)})),t[i]=void 0,r}}return e};return n(e,0)},isAsyncFn:Um,isThenable:e=>e&&(_m(e)||ym(e))&&ym(e.then)&&ym(e.catch)};function Hm(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}jm.inherits(Hm,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:jm.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const $m=Hm.prototype,Vm={};["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((e=>{Vm[e]={value:e}})),Object.defineProperties(Hm,Vm),Object.defineProperty($m,"isAxiosError",{value:!0}),Hm.from=(e,t,n,i,r,o)=>{const a=Object.create($m);return jm.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Hm.call(a,e.message,t,n,i,r),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};function Wm(e){return jm.isPlainObject(e)||jm.isArray(e)}function zm(e){return jm.endsWith(e,"[]")?e.slice(0,-2):e}function qm(e,t,n){return e?e.concat(t).map((function(e,t){return e=zm(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Xm=jm.toFlatObject(jm,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Gm(e,t,n){if(!jm.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(n=jm.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!jm.isUndefined(t[e])}))).metaTokens,r=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&jm.isSpecCompliantForm(t);if(!jm.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(jm.isDate(e))return e.toISOString();if(!s&&jm.isBlob(e))throw new Hm("Blob is not supported. Use a Buffer instead.");return jm.isArrayBuffer(e)||jm.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let s=e;if(e&&!r&&"object"==typeof e)if(jm.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(jm.isArray(e)&&function(e){return jm.isArray(e)&&!e.some(Wm)}(e)||(jm.isFileList(e)||jm.endsWith(n,"[]"))&&(s=jm.toArray(e)))return n=zm(n),s.forEach((function(e,i){!jm.isUndefined(e)&&null!==e&&t.append(!0===a?qm([n],i,o):null===a?n:n+"[]",l(e))})),!1;return!!Wm(e)||(t.append(qm(r,n,o),l(e)),!1)}const u=[],d=Object.assign(Xm,{defaultVisitor:c,convertValue:l,isVisitable:Wm});if(!jm.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!jm.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+i.join("."));u.push(n),jm.forEach(n,(function(n,o){!0===(!(jm.isUndefined(n)||null===n)&&r.call(t,n,jm.isString(o)?o.trim():o,i,d))&&e(n,i?i.concat(o):[o])})),u.pop()}}(e),t}function Km(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Jm(e,t){this._pairs=[],e&&Gm(e,this,t)}const Zm=Jm.prototype;function Qm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function eg(e,t,n){if(!t)return e;const i=n&&n.encode||Qm,r=n&&n.serialize;let o;if(o=r?r(t,n):jm.isURLSearchParams(t)?t.toString():new Jm(t,n).toString(i),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Zm.append=function(e,t){this._pairs.push([e,t])},Zm.toString=function(e){const t=e?function(t){return e.call(this,t,Km)}:Km;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const tg=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){jm.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ng={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ig={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Jm,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},rg="undefined"!=typeof window&&"undefined"!=typeof document,og=(ag="undefined"!=typeof navigator&&navigator.product,rg&&["ReactNative","NativeScript","NS"].indexOf(ag)<0);var ag;const sg="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,lg={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rg,hasStandardBrowserEnv:og,hasStandardBrowserWebWorkerEnv:sg},Symbol.toStringTag,{value:"Module"})),...ig};function cg(e){function t(e,n,i,r){let o=e[r++];const a=Number.isFinite(+o),s=r>=e.length;if(o=!o&&jm.isArray(i)?i.length:o,s)return jm.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a;i[o]&&jm.isObject(i[o])||(i[o]=[]);return t(e,n,i[o],r)&&jm.isArray(i[o])&&(i[o]=function(e){const t={},n=Object.keys(e);let i;const r=n.length;let o;for(i=0;i{t(function(e){return jm.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),i,n,0)})),n}return null}const ug={transitional:ng,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=jm.isObject(e);r&&jm.isHTMLForm(e)&&(e=new FormData(e));if(jm.isFormData(e))return i&&i?JSON.stringify(cg(e)):e;if(jm.isArrayBuffer(e)||jm.isBuffer(e)||jm.isStream(e)||jm.isFile(e)||jm.isBlob(e))return e;if(jm.isArrayBufferView(e))return e.buffer;if(jm.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Gm(e,new lg.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return lg.isNode&&jm.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=jm.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Gm(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),function(e,t,n){if(jm.isString(e))try{return(t||JSON.parse)(e),jm.trim(e)}catch(rN){if("SyntaxError"!==rN.name)throw rN}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ug.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&jm.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(rN){if(n){if("SyntaxError"===rN.name)throw Hm.from(rN,Hm.ERR_BAD_RESPONSE,this,null,this.response);throw rN}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lg.classes.FormData,Blob:lg.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};jm.forEach(["delete","get","head","post","put","patch"],(e=>{ug.headers[e]={}}));const dg=ug,hg=jm.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"]),fg=Symbol("internals");function pg(e){return e&&String(e).trim().toLowerCase()}function mg(e){return!1===e||null==e?e:jm.isArray(e)?e.map(mg):String(e)}function gg(e,t,n,i,r){return jm.isFunction(i)?i.call(this,t,n):(r&&(t=n),jm.isString(t)?jm.isString(i)?-1!==t.indexOf(i):jm.isRegExp(i)?i.test(t):void 0:void 0)}class vg{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=pg(t);if(!r)throw new Error("header name must be a non-empty string");const o=jm.findKey(i,r);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||t]=mg(e))}const o=(e,t)=>jm.forEach(e,((e,n)=>r(e,n,t)));return jm.isPlainObject(e)||e instanceof this.constructor?o(e,t):jm.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let n,i,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim(),!n||t[n]&&hg[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=pg(e)){const n=jm.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(jm.isFunction(t))return t.call(this,e,n);if(jm.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=pg(e)){const n=jm.findKey(this,e);return!(!n||void 0===this[n]||t&&!gg(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=pg(e)){const r=jm.findKey(n,e);!r||t&&!gg(0,n[r],r,t)||(delete n[r],i=!0)}}return jm.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const r=t[n];e&&!gg(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return jm.forEach(this,((i,r)=>{const o=jm.findKey(n,r);if(o)return t[o]=mg(i),void delete t[r];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();a!==r&&delete t[r],t[a]=mg(i),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return jm.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&jm.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[fg]=this[fg]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=pg(e);t[i]||(!function(e,t){const n=jm.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[i]=!0)}return jm.isArray(e)?e.forEach(i):i(e),this}}vg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),jm.reduceDescriptors(vg.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),jm.freezeMethods(vg);const yg=vg;function bg(e,t){const n=this||dg,i=t||n,r=yg.from(i.headers);let o=i.data;return jm.forEach(e,(function(e){o=e.call(n,o,r.normalize(),t?t.status:void 0)})),r.normalize(),o}function _g(e){return!(!e||!e.__CANCEL__)}function wg(e,t,n){Hm.call(this,null==e?"canceled":e,Hm.ERR_CANCELED,t,n),this.name="CanceledError"}jm.inherits(wg,Hm,{__CANCEL__:!0});const xg=lg.hasStandardBrowserEnv?{write(e,t,n,i,r,o){const a=[e+"="+encodeURIComponent(t)];jm.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),jm.isString(i)&&a.push("path="+i),jm.isString(r)&&a.push("domain="+r),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function kg(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Sg=lg.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function i(n){let i=n;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(e){const t=jm.isString(e)?i(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Tg(e,t){let n=0;const i=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=i[a];r||(r=l),n[o]=s,i[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-r{const o=r.loaded,a=r.lengthComputable?r.total:void 0,s=o-n,l=i(s);n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:r};c[t?"download":"upload"]=!0,e(c)}}const Cg={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let i=e.data;const r=yg.from(e.headers).normalize();let o,a,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(jm.isFormData(i))if(lg.hasStandardBrowserEnv||lg.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if(!1!==(a=r.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(t+":"+n))}const d=kg(e.baseURL,e.url);function h(){if(!u)return;const i=yg.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new Hm("Request failed with status code "+n.status,[Hm.ERR_BAD_REQUEST,Hm.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:i,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),eg(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(h)},u.onabort=function(){u&&(n(new Hm("Request aborted",Hm.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Hm("Network Error",Hm.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const i=e.transitional||ng;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Hm(t,i.clarifyTimeoutError?Hm.ETIMEDOUT:Hm.ECONNABORTED,e,u)),u=null},lg.hasStandardBrowserEnv&&(l&&jm.isFunction(l)&&(l=l(e)),l||!1!==l&&Sg(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&xg.read(e.xsrfCookieName);t&&r.set(e.xsrfHeaderName,t)}void 0===i&&r.setContentType(null),"setRequestHeader"in u&&jm.forEach(r.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),jm.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",Tg(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Tg(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{u&&(n(!t||t.type?new wg(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);f&&-1===lg.protocols.indexOf(f)?n(new Hm("Unsupported protocol "+f+":",Hm.ERR_BAD_REQUEST,e)):u.send(i||null)}))}};jm.forEach(Cg,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(rN){}Object.defineProperty(e,"adapterName",{value:t})}}));const Mg=e=>"- ".concat(e),Dg=e=>jm.isFunction(e)||null===e||!1===e,Ag=e=>{e=jm.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let o=0;o"adapter ".concat(e," ")+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Hm("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Mg).join("\n"):" "+Mg(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function Og(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wg(null,e)}function Eg(e){Og(e),e.headers=yg.from(e.headers),e.data=bg.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ag(e.adapter||dg.adapter)(e).then((function(t){return Og(e),t.data=bg.call(e,e.transformResponse,t),t.headers=yg.from(t.headers),t}),(function(t){return _g(t)||(Og(e),t&&t.response&&(t.response.data=bg.call(e,e.transformResponse,t.response),t.response.headers=yg.from(t.response.headers))),Promise.reject(t)}))}const Pg=e=>e instanceof yg?e.toJSON():e;function Ng(e,t){t=t||{};const n={};function i(e,t,n){return jm.isPlainObject(e)&&jm.isPlainObject(t)?jm.merge.call({caseless:n},e,t):jm.isPlainObject(t)?jm.merge({},t):jm.isArray(t)?t.slice():t}function r(e,t,n){return jm.isUndefined(t)?jm.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function o(e,t){if(!jm.isUndefined(t))return i(void 0,t)}function a(e,t){return jm.isUndefined(t)?jm.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,r,o){return o in t?i(n,r):o in e?i(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>r(Pg(e),Pg(t),!0)};return jm.forEach(Object.keys(Object.assign({},e,t)),(function(i){const o=l[i]||r,a=o(e[i],t[i],i);jm.isUndefined(a)&&o!==s||(n[i]=a)})),n}const Rg="1.6.2",Lg={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Lg[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ig={};Lg.transitional=function(e,t,n){function i(e,t){return"[Axios v1.6.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,o)=>{if(!1===e)throw new Hm(i(r," has been removed"+(t?" in "+t:"")),Hm.ERR_DEPRECATED);return t&&!Ig[r]&&(Ig[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}};const Fg={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Hm("options must be an object",Hm.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const o=i[r],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new Hm("option "+o+" must be "+n,Hm.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Hm("Unknown option "+o,Hm.ERR_BAD_OPTION)}},validators:Lg},Yg=Fg.validators;class Bg{constructor(e){this.defaults=e,this.interceptors={request:new tg,response:new tg}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ng(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&Fg.assertOptions(n,{silentJSONParsing:Yg.transitional(Yg.boolean),forcedJSONParsing:Yg.transitional(Yg.boolean),clarifyTimeoutError:Yg.transitional(Yg.boolean)},!1),null!=i&&(jm.isFunction(i)?t.paramsSerializer={serialize:i}:Fg.assertOptions(i,{encode:Yg.function,serialize:Yg.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=r&&jm.merge(r.common,r[t.method]);r&&jm.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=yg.concat(o,r);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Eg.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,r){n.reason||(n.reason=new wg(e,i,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new jg((function(t){e=t})),cancel:e}}}const Hg=jg;const $g={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($g).forEach((([e,t])=>{$g[t]=e}));const Vg=$g;const Wg=function e(t){const n=new Ug(t),i=sm(Ug.prototype.request,n);return jm.extend(i,Ug.prototype,n,{allOwnKeys:!0}),jm.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(Ng(t,n))},i}(dg);Wg.Axios=Ug,Wg.CanceledError=wg,Wg.CancelToken=Hg,Wg.isCancel=_g,Wg.VERSION=Rg,Wg.toFormData=Gm,Wg.AxiosError=Hm,Wg.Cancel=Wg.CanceledError,Wg.all=function(e){return Promise.all(e)},Wg.spread=function(e){return function(t){return e.apply(null,t)}},Wg.isAxiosError=function(e){return jm.isObject(e)&&!0===e.isAxiosError},Wg.mergeConfig=Ng,Wg.AxiosHeaders=yg,Wg.formToJSON=e=>cg(jm.isHTMLForm(e)?new FormData(e):e),Wg.getAdapter=Ag,Wg.HttpStatusCode=Vg,Wg.default=Wg;const zg=Wg;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function qg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xg(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})})),n}var Gg,Kg={},Jg={};function Zg(){if(Gg)return Jg;Gg=1;var e=tv(),t=String.fromCharCode,n=Array.prototype.slice,i=Object.prototype.toString,r=Object.prototype.hasOwnProperty,o=Array.isArray,a=Object.keys;function s(e){return o?o(e):"[object Array]"===i.call(e)}function l(e){if(a)return a(e);var t=[];for(var n in e)r.call(e,n)&&(t[t.length]=n);return t}function c(t,n){if(e.HAS_TYPED)switch(t){case 8:return new Uint8Array(n);case 16:return new Uint16Array(n)}return new Array(n)}function u(n){if(e.CAN_CHARCODE_APPLY&&e.CAN_CHARCODE_APPLY_TYPED){var i=n&&n.length;if(ie.APPLY_BUFFER_SIZE&&(e.APPLY_BUFFER_SIZE_OK=!0),r}catch(rN){e.APPLY_BUFFER_SIZE_OK=!1}}return d(n)}function d(n){for(var i,r="",o=n&&n.length,a=0;ae.APPLY_BUFFER_SIZE&&(e.APPLY_BUFFER_SIZE_OK=!0);continue}catch(rN){e.APPLY_BUFFER_SIZE_OK=!1}return h(n)}r+=t.apply(null,i)}return r}function h(e){for(var n="",i=e&&e.length,r=0;r>2],t[t.length]=f[(3&r)<<4],t[t.length]=m,t[t.length]=m;break}if(o=e[n++],n==i){t[t.length]=f[r>>2],t[t.length]=f[(3&r)<<4|(240&o)>>4],t[t.length]=f[(15&o)<<2],t[t.length]=m;break}a=e[n++],t[t.length]=f[r>>2],t[t.length]=f[(3&r)<<4|(240&o)>>4],t[t.length]=f[(15&o)<<2|(192&a)>>6],t[t.length]=f[63&a]}return u(t)},Jg.base64decode=function(e){var t,n,i,r,o,a,s;for(a=e&&e.length,o=0,s=[];o>4;do{if(61==(i=255&e.charCodeAt(o++)))return s;i=p[i]}while(o>2;do{if(61==(r=255&e.charCodeAt(o++)))return s;r=p[r]}while(o95&&(t.JIS_TO_UTF8_TABLE[i]=0|n);for(t.JISX0212_TO_UTF8_TABLE={},a=(r=e.objectKeys(t.UTF8_TO_JISX0212_TABLE)).length,o=0;o255)return!1;if(t>=0&&t<=7||255===t)return!0}return!1},nv.isASCII=function(e){for(var t,n=0,i=e&&e.length;n255||t>=128&&t<=255||27===t)return!1;return!0},nv.isJIS=function(e){for(var t,n,i,r=0,o=e&&e.length;r255||t>=128&&t<=255)return!1;if(27===t){if(r+2>=o)return!1;if(n=e[r+1],i=e[r+2],36===n){if(40===i||64===i||66===i)return!0}else{if(38===n&&64===i)return!0;if(40===n&&(66===i||73===i||74===i))return!0}}}return!1},nv.isEUCJP=function(e){for(var t,n=0,i=e&&e.length;n255||t<142)return!1;if(142===t){if(n+1>=i)return!1;if((t=e[++n])<161||223=i)return!1;if((t=e[++n])<162||237=i)return!1;if((t=e[++n])<161||254128;)if(e[n++]>255)return!1;for(;n239||n+1>=i)return!1;if((t=e[++n])<64||127===t||t>252)return!1}return!0},nv.isUTF8=function(e){for(var t,n=0,i=e&&e.length;n255)return!1;if(!(9===t||10===t||13===t||t>=32&&t<=126))if(t>=194&&t<=223){if(n+1>=i||e[n+1]<128||e[n+1]>191)return!1;n++}else if(224===t){if(n+2>=i||e[n+1]<160||e[n+1]>191||e[n+2]<128||e[n+2]>191)return!1;n+=2}else if(t>=225&&t<=236||238===t||239===t){if(n+2>=i||e[n+1]<128||e[n+1]>191||e[n+2]<128||e[n+2]>191)return!1;n+=2}else if(237===t){if(n+2>=i||e[n+1]<128||e[n+1]>159||e[n+2]<128||e[n+2]>191)return!1;n+=2}else if(240===t){if(n+3>=i||e[n+1]<144||e[n+1]>191||e[n+2]<128||e[n+2]>191||e[n+3]<128||e[n+3]>191)return!1;n+=3}else if(t>=241&&t<=243){if(n+3>=i||e[n+1]<128||e[n+1]>191||e[n+2]<128||e[n+2]>191||e[n+3]<128||e[n+3]>191)return!1;n+=3}else{if(244!==t)return!1;if(n+3>=i||e[n+1]<128||e[n+1]>143||e[n+2]<128||e[n+2]>191||e[n+3]<128||e[n+3]>191)return!1;n+=3}}return!0},nv.isUTF16=function(e){var t,n,i,r,o=0,a=e&&e.length,s=null;if(a<2){if(e[0]>255)return!1}else{if(t=e[0],n=e[1],255===t&&254===n)return!0;if(254===t&&255===n)return!0;for(;o255)return!1}if(null===s)return!1;if(void 0!==(i=e[s+1])&&i>0&&i<128)return!0;if(void 0!==(r=e[s-1])&&r>0&&r<128)return!0}return!1},nv.isUTF16BE=function(e){var t,n,i=0,r=e&&e.length,o=null;if(r<2){if(e[0]>255)return!1}else{if(t=e[0],n=e[1],254===t&&255===n)return!0;for(;i255)return!1}if(null===o)return!1;if(o%2==0)return!0}return!1},nv.isUTF16LE=function(e){var t,n,i=0,r=e&&e.length,o=null;if(r<2){if(e[0]>255)return!1}else{if(t=e[0],n=e[1],255===t&&254===n)return!0;for(;i255)return!1}if(null===o)return!1;if(o%2!=0)return!0}return!1},nv.isUTF32=function(e){var t,n,i,r,o,a,s=0,l=e&&e.length,c=null;if(l<4){for(;s255)return!1}else{if(t=e[0],n=e[1],i=e[2],r=e[3],0===t&&0===n&&254===i&&255===r)return!0;if(255===t&&254===n&&0===i&&0===r)return!0;for(;s255)return!1}if(null===c)return!1;if(void 0!==(o=e[c+3])&&o>0&&o<=127)return 0===e[c+2]&&0===e[c+1];if(void 0!==(a=e[c-1])&&a>0&&a<=127)return 0===e[c+1]&&0===e[c+2]}return!1},nv.isUNICODE=function(e){for(var t,n=0,i=e&&e.length;n1114111)return!1;return!0};var iv={},rv=tv(),ov=Zg(),av=nv,sv=ev;function lv(e){rv.init_JIS_TO_UTF8_TABLE();for(var t,n,i,r,o,a,s,l=[],c=0,u=e&&e.length;c=161&&t<=223?(r=188|(i=t-64)>>6&3,o=128|63&i,l[l.length]=239,l[l.length]=255&r,l[l.length]=255&o):t>=128?(n=t<<1,(i=e[++c])<159?(n-=n<319?225:97,i-=i>126?32:31):(n-=n<319?224:96,i-=126),a=((n&=255)<<8)+i,void 0===(s=sv.JIS_TO_UTF8_TABLE[a])?l[l.length]=rv.FALLBACK_CHARACTER:s<65535?(l[l.length]=s>>8&255,l[l.length]=255&s):(l[l.length]=s>>16&255,l[l.length]=s>>8&255,l[l.length]=255&s)):l[l.length]=255&e[c];return l}function cv(e){rv.init_JIS_TO_UTF8_TABLE();for(var t,n,i,r,o,a,s=[],l=0,c=e&&e.length;l>6&3,r=128|63&n,s[s.length]=239,s[s.length]=255&i,s[s.length]=255&r):143===t?(o=(e[++l]-128<<8)+(e[++l]-128),void 0===(a=sv.JISX0212_TO_UTF8_TABLE[o])?s[s.length]=rv.FALLBACK_CHARACTER:a<65535?(s[s.length]=a>>8&255,s[s.length]=255&a):(s[s.length]=a>>16&255,s[s.length]=a>>8&255,s[s.length]=255&a)):t>=128?(o=(t-128<<8)+(e[++l]-128),void 0===(a=sv.JIS_TO_UTF8_TABLE[o])?s[s.length]=rv.FALLBACK_CHARACTER:a<65535?(s[s.length]=a>>8&255,s[s.length]=255&a):(s[s.length]=a>>16&255,s[s.length]=a>>8&255,s[s.length]=255&a)):s[s.length]=255&e[l];return s}function uv(e){rv.init_JIS_TO_UTF8_TABLE();for(var t,n,i,r,o,a=[],s=0,l=0,c=e&&e.length;l>8&255,a[a.length]=255&o):(a[a.length]=o>>16&255,a[a.length]=o>>8&255,a[a.length]=255&o)):2===s?(n=188|(t=e[l]+64)>>6&3,i=128|63&t,a[a.length]=239,a[a.length]=255&n,a[a.length]=255&i):3===s?(r=(e[l]<<8)+e[++l],void 0===(o=sv.JISX0212_TO_UTF8_TABLE[r])?a[a.length]=rv.FALLBACK_CHARACTER:o<65535?(a[a.length]=o>>8&255,a[a.length]=255&o):(a[a.length]=o>>16&255,a[a.length]=o>>8&255,a[a.length]=255&o)):a[a.length]=255&e[l]}return a}function dv(e,t){for(var n,i,r,o,a,s,l=[],c=0,u=e&&e.length,d=t&&t.fallback;c=128?(n<=223?(o=[n,e[c+1]],a=(n<<8)+e[++c]):n<=239?(o=[n,e[c+1],e[c+2]],a=(n<<16)+(e[++c]<<8)+(255&e[++c])):(o=[n,e[c+1],e[c+2],e[c+3]],a=(n<<24)+(e[++c]<<16)+(e[++c]<<8)+(255&e[++c])),null==(s=sv.UTF8_TO_JIS_TABLE[a])?d?Av(l,o,d):l[l.length]=rv.FALLBACK_CHARACTER:s<255?l[l.length]=s+128:(s>65536&&(s-=65536),r=255&s,1&(i=s>>8)?((i>>=1)<47?i+=113:i-=79,r+=r>95?32:31):((i>>=1)<=47?i+=112:i-=80,r+=126),l[l.length]=255&i,l[l.length]=255&r)):l[l.length]=255&e[c];return l}function hv(e,t){for(var n,i,r,o,a=[],s=0,l=e&&e.length,c=t&&t.fallback;s=128?(n<=223?(i=[n,e[s+1]],r=(n<<8)+e[++s]):n<=239?(i=[n,e[s+1],e[s+2]],r=(n<<16)+(e[++s]<<8)+(255&e[++s])):(i=[n,e[s+1],e[s+2],e[s+3]],r=(n<<24)+(e[++s]<<16)+(e[++s]<<8)+(255&e[++s])),null==(o=sv.UTF8_TO_JIS_TABLE[r])?null==(o=sv.UTF8_TO_JISX0212_TABLE[r])?c?Av(a,i,c):a[a.length]=rv.FALLBACK_CHARACTER:(a[a.length]=143,a[a.length]=(o>>8)-128&255,a[a.length]=(255&o)-128&255):(o>65536&&(o-=65536),o<255?(a[a.length]=142,a[a.length]=o-128&255):(a[a.length]=(o>>8)-128&255,a[a.length]=(255&o)-128&255))):a[a.length]=255&e[s];return a}function fv(e,t){for(var n,i,r,o,a=[],s=0,l=e&&e.length,c=0,u=t&&t.fallback,d=[27,40,66,27,36,66,27,40,73,27,36,40,68];c>8&255,a[a.length]=255&o):(o>65536&&(o-=65536),o<255?(2!==s&&(s=2,a[a.length]=d[6],a[a.length]=d[7],a[a.length]=d[8]),a[a.length]=255&o):(1!==s&&(s=1,a[a.length]=d[3],a[a.length]=d[4],a[a.length]=d[5]),a[a.length]=o>>8&255,a[a.length]=255&o)));return 0!==s&&(a[a.length]=d[0],a[a.length]=d[1],a[a.length]=d[2]),a}function pv(e){for(var t,n,i=[],r=0,o=e&&e.length;r=55296&&t<=56319&&r+1=56320&&n<=57343&&(t=1024*(t-55296)+n-56320+65536,r++),t<128?i[i.length]=t:t<2048?(i[i.length]=192|t>>6&31,i[i.length]=128|63&t):t<65536?(i[i.length]=224|t>>12&15,i[i.length]=128|t>>6&63,i[i.length]=128|63&t):t<2097152&&(i[i.length]=240|t>>18&15,i[i.length]=128|t>>12&63,i[i.length]=128|t>>6&63,i[i.length]=128|63&t);return i}function mv(e,t){for(var n,i,r,o=[],a=0,s=e&&e.length,l=t&&t.ignoreSurrogatePair;a>4)>=0&&n<=7?r=i:12===n||13===n?r=(31&i)<<6|63&e[a++]:14===n?r=(15&i)<<12|(63&e[a++])<<6|63&e[a++]:15===n&&(r=(7&i)<<18|(63&e[a++])<<12|(63&e[a++])<<6|63&e[a++]),r<=65535||l?o[o.length]=r:(r-=65536,o[o.length]=55296+(r>>10),o[o.length]=r%1024+56320);return o}function gv(e,t){var n;if(t&&t.bom){var i,r,o=t.bom;ov.isString(o)||(o="BE"),"B"===o.charAt(0).toUpperCase()?(i=[254,255],r=vv(e)):(i=[255,254],r=yv(e)),(n=[])[0]=i[0],n[1]=i[1];for(var a=0,s=r.length;a>8&255,n[n.length]=255&t);return n}function yv(e){for(var t,n=[],i=0,r=e&&e.length;i>8&255);return n}function bv(e){var t,n,i=[],r=0,o=e&&e.length;for(o>=2&&(254===e[0]&&255===e[1]||255===e[0]&&254===e[1])&&(r=2);r=2&&(254===e[0]&&255===e[1]||255===e[0]&&254===e[1])&&(r=2);r=2&&(254===e[0]&&255===e[1]||255===e[0]&&254===e[1])&&(r=2);r>=1)<47?t+=113:t-=79,n+=n>95?32:31):((t>>=1)<=47?t+=112:t-=80,n+=126),i[i.length]=255&t,i[i.length]=255&n):i[i.length]=2===r?e[o]+128&255:3===r?rv.FALLBACK_CHARACTER:255&e[o]}return i},iv.JISToEUCJP=function(e){for(var t=[],n=0,i=e&&e.length,r=0;r=161&&t<=223?(2!==r&&(r=2,i[i.length]=s[6],i[i.length]=s[7],i[i.length]=s[8]),i[i.length]=t-128&255):t>=128?(1!==r&&(r=1,i[i.length]=s[3],i[i.length]=s[4],i[i.length]=s[5]),t<<=1,(n=e[++a])<159?(t-=t<319?225:97,n-=n>126?32:31):(t-=t<319?224:96,n-=126),i[i.length]=255&t,i[i.length]=255&n):(0!==r&&(r=0,i[i.length]=s[0],i[i.length]=s[1],i[i.length]=s[2]),i[i.length]=255&t);return 0!==r&&(i[i.length]=s[0],i[i.length]=s[1],i[i.length]=s[2]),i},iv.SJISToEUCJP=function(e){for(var t,n,i=[],r=e&&e.length,o=0;o=161&&t<=223?(i[i.length]=142,i[i.length]=t):t>=129?(t<<=1,(n=e[++o])<159?(t-=t<319?97:225,n+=n>126?96:97):(t-=t<319?96:224,n+=2),i[i.length]=255&t,i[i.length]=255&n):i[i.length]=255&t;return i},iv.EUCJPToJIS=function(e){for(var t,n=[],i=0,r=e&&e.length,o=0,a=[27,40,66,27,36,66,27,40,73,27,36,40,68];o142?(1!==i&&(i=1,n[n.length]=a[3],n[n.length]=a[4],n[n.length]=a[5]),n[n.length]=t-128&255,n[n.length]=e[++o]-128&255):(0!==i&&(i=0,n[n.length]=a[0],n[n.length]=a[1],n[n.length]=a[2]),n[n.length]=255&t);return 0!==i&&(n[n.length]=a[0],n[n.length]=a[1],n[n.length]=a[2]),n},iv.EUCJPToSJIS=function(e){for(var t,n,i=[],r=e&&e.length,o=0;o142?(n=e[++o],1&t?(t>>=1,t+=t<111?49:113,n-=n>223?96:97):(t>>=1,t+=t<=111?48:112,n-=2),i[i.length]=255&t,i[i.length]=255&n):i[i.length]=142===t?255&e[++o]:255&t;return i},iv.SJISToUTF8=lv,iv.EUCJPToUTF8=cv,iv.JISToUTF8=uv,iv.UTF8ToSJIS=dv,iv.UTF8ToEUCJP=hv,iv.UTF8ToJIS=fv,iv.UNICODEToUTF8=pv,iv.UTF8ToUNICODE=mv,iv.UNICODEToUTF16=gv,iv.UNICODEToUTF16BE=vv,iv.UNICODEToUTF16LE=yv,iv.UTF16BEToUNICODE=bv,iv.UTF16LEToUNICODE=_v,iv.UTF16ToUNICODE=wv,iv.UTF16ToUTF16BE=function(e){for(var t,n,i=[],r=0,o=e&&e.length,a=!1,s=!0;r=2&&(254===e[0]&&255===e[1]||255===e[0]&&254===e[1])&&(c=2),n&&(s[0]=n[0],s[1]=n[1]);c=2&&(254===e[0]&&255===e[1]||255===e[0]&&254===e[1])&&(c=2),n&&(s[0]=n[0],s[1]=n[1]);c255)return encodeURIComponent(Nv.codeToString_fast(e));t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||33===t||t>=39&&t<=42||45===t||46===t||95===t||126===t?i[i.length]=t:(i[i.length]=37,t<16?(i[i.length]=48,i[i.length]=n[t]):(i[i.length]=n[t>>4&15],i[i.length]=n[15&t]))}return Nv.codeToString_fast(i)},urlDecode:function(e){for(var t,n=[],i=0,r=e&&e.length;i=65281&&n<=65374&&(n-=65248),i[i.length]=n;return t?Nv.codeToString_fast(i):i},toZenkakuCase:function(e){var t=!1;Nv.isString(e)&&(t=!0,e=Nv.stringToBuffer(e));for(var n,i=[],r=e&&e.length,o=0;o=33&&n<=126&&(n+=65248),i[i.length]=n;return t?Nv.codeToString_fast(i):i},toHiraganaCase:function(e){var t=!1;Nv.isString(e)&&(t=!0,e=Nv.stringToBuffer(e));for(var n,i=[],r=e&&e.length,o=0;o=12449&&n<=12534?n-=96:12535===n?(i[i.length]=12431,n=12443):12538===n&&(i[i.length]=12434,n=12443),i[i.length]=n;return t?Nv.codeToString_fast(i):i},toKatakanaCase:function(e){var t=!1;Nv.isString(e)&&(t=!0,e=Nv.stringToBuffer(e));for(var n,i=[],r=e&&e.length,o=0;o=12353&&n<=12438&&((12431===n||12434===n)&&o=12289&&n<=12540&&void 0!==(r=Iv.HANKANA_TABLE[n])?o[o.length]=r:12532===n||12535===n||12538===n?(o[o.length]=Iv.HANKANA_SONANTS[n],o[o.length]=65438):n>=12459&&n<=12489?(o[o.length]=Iv.HANKANA_TABLE[n-1],o[o.length]=65438):n>=12495&&n<=12509?(i=n%3,o[o.length]=Iv.HANKANA_TABLE[n-i],o[o.length]=Iv.HANKANA_MARKS[i-1]):o[o.length]=n;return t?Nv.codeToString_fast(o):o},toZenkanaCase:function(e){var t=!1;Nv.isString(e)&&(t=!0,e=Nv.stringToBuffer(e));var n,i,r,o=[],a=e&&e.length,s=0;for(s=0;s65376&&n<65440&&(i=Iv.ZENKANA_TABLE[n-65377],s+165397&&n<65413||n>65417&&n<65423)?(i++,s++):65439===r&&n>65417&&n<65423&&(i+=2,s++)),n=i),o[o.length]=n;return t?Nv.codeToString_fast(o):o},toHankakuSpace:function(e){if(Nv.isString(e))return e.replace(/\u3000/g," ");for(var t,n=[],i=e&&e.length,r=0;r(()=>{var t={657:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n}},976:t=>{t.exports=e}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{i.r(r),i.d(r,{Component:()=>x,LoadingPlugin:()=>S,default:()=>T,useLoading:()=>k});var e=i(976);const t="undefined"!=typeof window?window.HTMLElement:Object,n=["aria-busy"],o={class:"vl-icon"},a={mounted(){this.enforceFocus&&document.addEventListener("focusin",this.focusIn)},methods:{focusIn(e){if(!this.isActive)return;if(e.target===this.$el||this.$el.contains(e.target))return;let t=this.container?this.container:this.isFullPage?null:this.$el.parentElement;(this.isFullPage||t&&t.contains(e.target))&&(e.preventDefault(),this.$el.focus())}},beforeUnmount(){document.removeEventListener("focusin",this.focusIn)}},s=["width","height","stroke"],l=[(0,e.createStaticVNode)('',1)],c=(0,e.defineComponent)({name:"spinner",props:{color:{type:String,default:"#000"},height:{type:Number,default:64},width:{type:Number,default:64}}});var u=i(657);const d=(0,u.default)(c,[["render",function(t,n,i,r,o,a){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",{viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,stroke:t.color},l,8,s)}]]),h=["fill","width","height"],f=[(0,e.createStaticVNode)('',3)],p=(0,e.defineComponent)({name:"dots",props:{color:{type:String,default:"#000"},height:{type:Number,default:240},width:{type:Number,default:60}}}),m=(0,u.default)(p,[["render",function(t,n,i,r,o,a){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",{viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:t.color,width:t.width,height:t.height},f,8,h)}]]),g=["height","width","fill"],v=[(0,e.createStaticVNode)('',3)],y=(0,e.defineComponent)({name:"bars",props:{color:{type:String,default:"#000"},height:{type:Number,default:40},width:{type:Number,default:40}}}),b={Spinner:d,Dots:m,Bars:(0,u.default)(y,[["render",function(t,n,i,r,o,a){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",height:t.height,width:t.width,fill:t.color},v,8,g)}]])},_=(0,e.defineComponent)({name:"VueLoading",mixins:[a],props:{active:Boolean,programmatic:Boolean,container:[Object,Function,t],isFullPage:{type:Boolean,default:!0},enforceFocus:{type:Boolean,default:!0},lockScroll:Boolean,transition:{type:String,default:"fade"},canCancel:Boolean,onCancel:{type:Function,default:()=>{}},color:String,backgroundColor:String,opacity:Number,width:Number,height:Number,zIndex:Number,loader:{type:String,default:"spinner"}},components:b,emits:["hide","update:active"],data(){return{isActive:this.active}},mounted(){document.addEventListener("keyup",this.keyPress)},methods:{cancel(){this.canCancel&&this.isActive&&(this.hide(),this.onCancel.apply(null,arguments))},hide(){this.$emit("hide"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout((()=>{const t=this.$el.parentElement;var n,i;(0,e.render)(null,t),void 0!==(n=t).remove?n.remove():null==(i=n.parentNode)||i.removeChild(n)}),150))},disableScroll(){this.isFullPage&&this.lockScroll&&document.body.classList.add("vl-shown")},enableScroll(){this.isFullPage&&this.lockScroll&&document.body.classList.remove("vl-shown")},keyPress(e){27===e.keyCode&&this.cancel()}},watch:{active(e){this.isActive=e},isActive(e){e?this.disableScroll():this.enableScroll()}},computed:{bgStyle(){return{background:this.backgroundColor,opacity:this.opacity}}},beforeUnmount(){document.removeEventListener("keyup",this.keyPress)}}),w=(0,u.default)(_,[["render",function(t,i,r,a,s,l){return(0,e.openBlock)(),(0,e.createBlock)(e.Transition,{name:t.transition},{default:(0,e.withCtx)((()=>[(0,e.withDirectives)((0,e.createElementVNode)("div",{tabindex:"0",class:(0,e.normalizeClass)(["vl-overlay vl-active",{"vl-full-page":t.isFullPage}]),"aria-busy":t.isActive,"aria-label":"Loading",style:(0,e.normalizeStyle)({zIndex:t.zIndex})},[(0,e.createElementVNode)("div",{class:"vl-background",onClick:i[0]||(i[0]=(0,e.withModifiers)((function(){return t.cancel&&t.cancel(...arguments)}),["prevent"])),style:(0,e.normalizeStyle)(t.bgStyle)},null,4),(0,e.createElementVNode)("div",o,[(0,e.renderSlot)(t.$slots,"before"),(0,e.renderSlot)(t.$slots,"default",{},(()=>[((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(t.loader),{color:t.color,width:t.width,height:t.height},null,8,["color","width","height"]))])),(0,e.renderSlot)(t.$slots,"after")])],14,n),[[e.vShow,t.isActive]])])),_:3},8,["name"])}]]),x=w;function k(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{show(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const o={...t,...i,programmatic:!0,lockScroll:!0,isFullPage:!1,active:!0};let a=o.container;o.container||(a=document.body,o.isFullPage=!0);const s={...n,...r},l=function(t,n,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=(0,e.h)(t,n,r),a=document.createElement("div");return a.classList.add("vld-container"),i.appendChild(a),(0,e.render)(o,a),o.component}(x,o,a,s);return{hide:l.ctx.hide}}}}const S=function(e){const t=k(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});e.config.globalProperties.$loading=t,e.provide("$loading",t)},T=w})(),r})())(Xg(Tf));function Wv(){return Hv.apply(null,arguments)}function zv(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function qv(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function Xv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Gv(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(Xv(e,t))return!1;return!0}function Kv(e){return void 0===e}function Jv(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function Zv(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function Qv(e,t){var n,i=[],r=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var by=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,_y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,wy={},xy={};function ky(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(xy[e]=r),t&&(xy[t[0]]=function(){return yy(r.apply(this,arguments),t[1],t[2])}),n&&(xy[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function Sy(e,t){return e.isValid()?(t=Ty(t,e.localeData()),wy[t]=wy[t]||function(e){var t,n,i,r=e.match(by);for(t=0,n=r.length;t=0&&_y.test(e);)e=e.replace(_y,i),_y.lastIndex=0,n-=1;return e}var Cy={};function My(e,t){var n=e.toLowerCase();Cy[n]=Cy[n+"s"]=Cy[t]=e}function Dy(e){return"string"==typeof e?Cy[e]||Cy[e.toLowerCase()]:void 0}function Ay(e){var t,n,i={};for(n in e)Xv(e,n)&&(t=Dy(n))&&(i[t]=e[n]);return i}var Oy={};function Ey(e,t){Oy[e]=t}function Py(e){return e%4==0&&e%100!=0||e%400==0}function Ny(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ry(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Ny(t)),n}function Ly(e,t){return function(n){return null!=n?(Fy(this,e,n),Wv.updateOffset(this,t),this):Iy(this,e)}}function Iy(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Fy(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Py(e.year())&&1===e.month()&&29===e.date()?(n=Ry(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),yb(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Yy,By=/\d/,Uy=/\d\d/,jy=/\d{3}/,Hy=/\d{4}/,$y=/[+-]?\d{6}/,Vy=/\d\d?/,Wy=/\d\d\d\d?/,zy=/\d\d\d\d\d\d?/,qy=/\d{1,3}/,Xy=/\d{1,4}/,Gy=/[+-]?\d{1,6}/,Ky=/\d+/,Jy=/[+-]?\d+/,Zy=/Z|[+-]\d\d:?\d\d/gi,Qy=/Z|[+-]\d\d(?::?\d\d)?/gi,eb=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function tb(e,t,n){Yy[e]=my(t)?t:function(e,i){return e&&n?n:t}}function nb(e,t){return Xv(Yy,e)?Yy[e](t._strict,t._locale):new RegExp(ib(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r}))))}function ib(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Yy={};var rb={};function ob(e,t){var n,i,r=t;for("string"==typeof e&&(e=[e]),Jv(t)&&(r=function(e,n){n[t]=Ry(e)}),i=e.length,n=0;n68?1900:2e3)};var Ab=Ly("FullYear",!0);function Ob(e,t,n,i,r,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,o,a),s}function Eb(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Pb(e,t,n){var i=7+t-n;return-((7+Eb(e,0,i).getUTCDay()-t)%7)+i-1}function Nb(e,t,n,i,r){var o,a,s=1+7*(t-1)+(7+n-i)%7+Pb(e,i,r);return s<=0?a=Db(o=e-1)+s:s>Db(e)?(o=e+1,a=s-Db(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Rb(e,t,n){var i,r,o=Pb(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?i=a+Lb(r=e.year()-1,t,n):a>Lb(e.year(),t,n)?(i=a-Lb(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Lb(e,t,n){var i=Pb(e,t,n),r=Pb(e+1,t,n);return(Db(e)-i+r)/7}ky("w",["ww",2],"wo","week"),ky("W",["WW",2],"Wo","isoWeek"),My("week","w"),My("isoWeek","W"),Ey("week",5),Ey("isoWeek",5),tb("w",Vy),tb("ww",Vy,Uy),tb("W",Vy),tb("WW",Vy,Uy),ab(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=Ry(e)}));function Ib(e,t){return e.slice(t,7).concat(e.slice(0,t))}ky("d",0,"do","day"),ky("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),ky("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),ky("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),ky("e",0,0,"weekday"),ky("E",0,0,"isoWeekday"),My("day","d"),My("weekday","e"),My("isoWeekday","E"),Ey("day",11),Ey("weekday",11),Ey("isoWeekday",11),tb("d",Vy),tb("e",Vy),tb("E",Vy),tb("dd",(function(e,t){return t.weekdaysMinRegex(e)})),tb("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),tb("dddd",(function(e,t){return t.weekdaysRegex(e)})),ab(["dd","ddd","dddd"],(function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:ny(n).invalidWeekday=e})),ab(["d","e","E"],(function(e,t,n,i){t[i]=Ry(e)}));var Fb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Yb="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Bb="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ub=eb,jb=eb,Hb=eb;function $b(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=ty([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=lb.call(this._weekdaysParse,a))?r:null:"ddd"===t?-1!==(r=lb.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=lb.call(this._minWeekdaysParse,a))?r:null:"dddd"===t?-1!==(r=lb.call(this._weekdaysParse,a))||-1!==(r=lb.call(this._shortWeekdaysParse,a))||-1!==(r=lb.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=lb.call(this._shortWeekdaysParse,a))||-1!==(r=lb.call(this._weekdaysParse,a))||-1!==(r=lb.call(this._minWeekdaysParse,a))?r:null:-1!==(r=lb.call(this._minWeekdaysParse,a))||-1!==(r=lb.call(this._weekdaysParse,a))||-1!==(r=lb.call(this._shortWeekdaysParse,a))?r:null}function Vb(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=ty([2e3,1]).day(t),i=ib(this.weekdaysMin(n,"")),r=ib(this.weekdaysShort(n,"")),o=ib(this.weekdays(n,"")),a.push(i),s.push(r),l.push(o),c.push(i),c.push(r),c.push(o);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Wb(){return this.hours()%12||12}function zb(e,t){ky(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function qb(e,t){return t._meridiemParse}ky("H",["HH",2],0,"hour"),ky("h",["hh",2],0,Wb),ky("k",["kk",2],0,(function(){return this.hours()||24})),ky("hmm",0,0,(function(){return""+Wb.apply(this)+yy(this.minutes(),2)})),ky("hmmss",0,0,(function(){return""+Wb.apply(this)+yy(this.minutes(),2)+yy(this.seconds(),2)})),ky("Hmm",0,0,(function(){return""+this.hours()+yy(this.minutes(),2)})),ky("Hmmss",0,0,(function(){return""+this.hours()+yy(this.minutes(),2)+yy(this.seconds(),2)})),zb("a",!0),zb("A",!1),My("hour","h"),Ey("hour",13),tb("a",qb),tb("A",qb),tb("H",Vy),tb("h",Vy),tb("k",Vy),tb("HH",Vy,Uy),tb("hh",Vy,Uy),tb("kk",Vy,Uy),tb("hmm",Wy),tb("hmmss",zy),tb("Hmm",Wy),tb("Hmmss",zy),ob(["H","HH"],hb),ob(["k","kk"],(function(e,t,n){var i=Ry(e);t[hb]=24===i?0:i})),ob(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ob(["h","hh"],(function(e,t,n){t[hb]=Ry(e),ny(n).bigHour=!0})),ob("hmm",(function(e,t,n){var i=e.length-2;t[hb]=Ry(e.substr(0,i)),t[fb]=Ry(e.substr(i)),ny(n).bigHour=!0})),ob("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[hb]=Ry(e.substr(0,i)),t[fb]=Ry(e.substr(i,2)),t[pb]=Ry(e.substr(r)),ny(n).bigHour=!0})),ob("Hmm",(function(e,t,n){var i=e.length-2;t[hb]=Ry(e.substr(0,i)),t[fb]=Ry(e.substr(i))})),ob("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[hb]=Ry(e.substr(0,i)),t[fb]=Ry(e.substr(i,2)),t[pb]=Ry(e.substr(r))}));var Xb=Ly("Hours",!0);var Gb,Kb={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:bb,monthsShort:_b,week:{dow:0,doy:6},weekdays:Fb,weekdaysMin:Bb,weekdaysShort:Yb,meridiemParse:/[ap]\.?m?\.?/i},Jb={},Zb={};function Qb(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n0;){if(i=t_(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&Qb(r,n)>=t-1)break;t--}o++}return Gb}(e)}function o_(e){var t,n=e._a;return n&&-2===ny(e).overflow&&(t=n[ub]<0||n[ub]>11?ub:n[db]<1||n[db]>yb(n[cb],n[ub])?db:n[hb]<0||n[hb]>24||24===n[hb]&&(0!==n[fb]||0!==n[pb]||0!==n[mb])?hb:n[fb]<0||n[fb]>59?fb:n[pb]<0||n[pb]>59?pb:n[mb]<0||n[mb]>999?mb:-1,ny(e)._overflowDayOfYear&&(tdb)&&(t=db),ny(e)._overflowWeeks&&-1===t&&(t=gb),ny(e)._overflowWeekday&&-1===t&&(t=vb),ny(e).overflow=t),e}var a_=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,s_=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,l_=/Z|[+-]\d\d(?::?\d\d)?/,c_=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],u_=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],d_=/^\/?Date\((-?\d+)/i,h_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,f_={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function p_(e){var t,n,i,r,o,a,s=e._i,l=a_.exec(s)||s_.exec(s),c=c_.length,u=u_.length;if(l){for(ny(e).iso=!0,t=0,n=c;t7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=Rb(x_(),o,a),n=v_(t.gg,e._a[cb],c.year),i=v_(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o);i<1||i>Lb(n,o,a)?ny(e)._overflowWeeks=!0:null!=l?ny(e)._overflowWeekday=!0:(s=Nb(n,i,r,o,a),e._a[cb]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=v_(e._a[cb],i[cb]),(e._dayOfYear>Db(o)||0===e._dayOfYear)&&(ny(e)._overflowDayOfYear=!0),n=Eb(o,0,e._dayOfYear),e._a[ub]=n.getUTCMonth(),e._a[db]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[hb]&&0===e._a[fb]&&0===e._a[pb]&&0===e._a[mb]&&(e._nextDay=!0,e._a[hb]=0),e._d=(e._useUTC?Eb:Ob).apply(null,a),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[hb]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(ny(e).weekdayMismatch=!0)}}function b_(e){if(e._f!==Wv.ISO_8601)if(e._f!==Wv.RFC_2822){e._a=[],ny(e).empty=!0;var t,n,i,r,o,a,s,l=""+e._i,c=l.length,u=0;for(s=(i=Ty(e._f,e._locale).match(by)||[]).length,t=0;t0&&ny(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),u+=n.length),xy[r]?(n?ny(e).empty=!1:ny(e).unusedTokens.push(r),sb(r,n,e)):e._strict&&!n&&ny(e).unusedTokens.push(r);ny(e).charsLeftOver=c-u,l.length>0&&ny(e).unusedInput.push(l),e._a[hb]<=12&&!0===ny(e).bigHour&&e._a[hb]>0&&(ny(e).bigHour=void 0),ny(e).parsedDateParts=e._a.slice(0),ny(e).meridiem=e._meridiem,e._a[hb]=function(e,t,n){var i;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[hb],e._meridiem),null!==(a=ny(e).era)&&(e._a[cb]=e._locale.erasConvertYear(a,e._a[cb])),y_(e),o_(e)}else g_(e);else p_(e)}function __(e){var t=e._i,n=e._f;return e._locale=e._locale||r_(e._l),null===t||void 0===n&&""===t?ry({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),cy(t)?new ly(o_(t)):(Zv(t)?e._d=t:zv(n)?function(e){var t,n,i,r,o,a,s=!1,l=e._f.length;if(0===l)return ny(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis?this:e:ry()}));function T_(e,t){var n,i;if(1===t.length&&zv(t[0])&&(t=t[0]),!t.length)return x_();for(n=t[0],i=1;i=0?new Date(e+400,t,n)-ew:new Date(e,t,n).valueOf()}function iw(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ew:Date.UTC(e,t,n)}function rw(e,t){return t.erasAbbrRegex(e)}function ow(){var e,t,n=[],i=[],r=[],o=[],a=this.eras();for(e=0,t=a.length;e(o=Lb(e,i,r))&&(t=o),lw.call(this,e,t,n,i,r))}function lw(e,t,n,i,r){var o=Nb(e,t,n,i,r),a=Eb(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}ky("N",0,0,"eraAbbr"),ky("NN",0,0,"eraAbbr"),ky("NNN",0,0,"eraAbbr"),ky("NNNN",0,0,"eraName"),ky("NNNNN",0,0,"eraNarrow"),ky("y",["y",1],"yo","eraYear"),ky("y",["yy",2],0,"eraYear"),ky("y",["yyy",3],0,"eraYear"),ky("y",["yyyy",4],0,"eraYear"),tb("N",rw),tb("NN",rw),tb("NNN",rw),tb("NNNN",(function(e,t){return t.erasNameRegex(e)})),tb("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ob(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?ny(n).era=r:ny(n).invalidEra=e})),tb("y",Ky),tb("yy",Ky),tb("yyy",Ky),tb("yyyy",Ky),tb("yo",(function(e,t){return t._eraYearOrdinalRegex||Ky})),ob(["y","yy","yyy","yyyy"],cb),ob(["yo"],(function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[cb]=n._locale.eraYearOrdinalParse(e,r):t[cb]=parseInt(e,10)})),ky(0,["gg",2],0,(function(){return this.weekYear()%100})),ky(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),aw("gggg","weekYear"),aw("ggggg","weekYear"),aw("GGGG","isoWeekYear"),aw("GGGGG","isoWeekYear"),My("weekYear","gg"),My("isoWeekYear","GG"),Ey("weekYear",1),Ey("isoWeekYear",1),tb("G",Jy),tb("g",Jy),tb("GG",Vy,Uy),tb("gg",Vy,Uy),tb("GGGG",Xy,Hy),tb("gggg",Xy,Hy),tb("GGGGG",Gy,$y),tb("ggggg",Gy,$y),ab(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=Ry(e)})),ab(["gg","GG"],(function(e,t,n,i){t[i]=Wv.parseTwoDigitYear(e)})),ky("Q",0,"Qo","quarter"),My("quarter","Q"),Ey("quarter",7),tb("Q",By),ob("Q",(function(e,t){t[ub]=3*(Ry(e)-1)})),ky("D",["DD",2],"Do","date"),My("date","D"),Ey("date",9),tb("D",Vy),tb("DD",Vy,Uy),tb("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ob(["D","DD"],db),ob("Do",(function(e,t){t[db]=Ry(e.match(Vy)[0])}));var cw=Ly("Date",!0);ky("DDD",["DDDD",3],"DDDo","dayOfYear"),My("dayOfYear","DDD"),Ey("dayOfYear",4),tb("DDD",qy),tb("DDDD",jy),ob(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=Ry(e)})),ky("m",["mm",2],0,"minute"),My("minute","m"),Ey("minute",14),tb("m",Vy),tb("mm",Vy,Uy),ob(["m","mm"],fb);var uw=Ly("Minutes",!1);ky("s",["ss",2],0,"second"),My("second","s"),Ey("second",15),tb("s",Vy),tb("ss",Vy,Uy),ob(["s","ss"],pb);var dw,hw,fw=Ly("Seconds",!1);for(ky("S",0,0,(function(){return~~(this.millisecond()/100)})),ky(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),ky(0,["SSS",3],0,"millisecond"),ky(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),ky(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),ky(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),ky(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),ky(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),ky(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),My("millisecond","ms"),Ey("millisecond",16),tb("S",qy,By),tb("SS",qy,Uy),tb("SSS",qy,jy),dw="SSSS";dw.length<=9;dw+="S")tb(dw,Ky);function pw(e,t){t[mb]=Ry(1e3*("0."+e))}for(dw="S";dw.length<=9;dw+="S")ob(dw,pw);hw=Ly("Milliseconds",!1),ky("z",0,0,"zoneAbbr"),ky("zz",0,0,"zoneName");var mw=ly.prototype;function gw(e){return e}mw.add=$_,mw.calendar=function(e,t){1===arguments.length&&(arguments[0]?z_(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=qv(e)&&!Gv(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;tn.valueOf():n.valueOf()9999?Sy(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):my(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Sy(n,"Z")):Sy(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},mw.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(mw[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),mw.toJSON=function(){return this.isValid()?this.toISOString():null},mw.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},mw.unix=function(){return Math.floor(this.valueOf()/1e3)},mw.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},mw.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},mw.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mw.isLocal=function(){return!!this.isValid()&&!this._isUTC},mw.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},mw.isUtc=L_,mw.isUTC=L_,mw.zoneAbbr=function(){return this._isUTC?"UTC":""},mw.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},mw.dates=dy("dates accessor is deprecated. Use date instead.",cw),mw.months=dy("months accessor is deprecated. Use month instead",Cb),mw.years=dy("years accessor is deprecated. Use year instead",Ab),mw.zone=dy("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),mw.isDSTShifted=dy("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!Kv(this._isDSTShifted))return this._isDSTShifted;var e,t={};return sy(t,this),(t=__(t))._a?(e=t._isUTC?ty(t._a):x_(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(i=0;i0):this._isDSTShifted=!1,this._isDSTShifted}));var vw=vy.prototype;function yw(e,t,n,i){var r=r_(),o=ty().set(i,t);return r[n](o,e)}function bw(e,t,n){if(Jv(e)&&(t=e,e=void 0),e=e||"",null!=t)return yw(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=yw(e,i,n,"month");return r}function _w(e,t,n,i){"boolean"==typeof e?(Jv(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,Jv(t)&&(n=t,t=void 0),t=t||"");var r,o=r_(),a=e?o._week.dow:0,s=[];if(null!=n)return yw(t,(n+a)%7,i,"day");for(r=0;r<7;r++)s[r]=yw(t,(r+a)%7,i,"day");return s}vw.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return my(i)?i.call(t,n):i},vw.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(by).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},vw.invalidDate=function(){return this._invalidDate},vw.ordinal=function(e){return this._ordinal.replace("%d",e)},vw.preparse=gw,vw.postformat=gw,vw.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return my(r)?r(e,t,n,i):r.replace(/%d/i,e)},vw.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return my(n)?n(t):n.replace(/%s/i,t)},vw.set=function(e){var t,n;for(n in e)Xv(e,n)&&(my(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},vw.eras=function(e,t){var n,i,r,o=this._eras||r_("en")._eras;for(n=0,i=o.length;n=0)return l[i]},vw.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?Wv(e.since).year():Wv(e.since).year()+(t-e.offset)*n},vw.erasAbbrRegex=function(e){return Xv(this,"_erasAbbrRegex")||ow.call(this),e?this._erasAbbrRegex:this._erasRegex},vw.erasNameRegex=function(e){return Xv(this,"_erasNameRegex")||ow.call(this),e?this._erasNameRegex:this._erasRegex},vw.erasNarrowRegex=function(e){return Xv(this,"_erasNarrowRegex")||ow.call(this),e?this._erasNarrowRegex:this._erasRegex},vw.months=function(e,t){return e?zv(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||wb).test(t)?"format":"standalone"][e.month()]:zv(this._months)?this._months:this._months.standalone},vw.monthsShort=function(e,t){return e?zv(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[wb.test(t)?"format":"standalone"][e.month()]:zv(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},vw.monthsParse=function(e,t,n){var i,r,o;if(this._monthsParseExact)return Sb.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=ty([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},vw.monthsRegex=function(e){return this._monthsParseExact?(Xv(this,"_monthsRegex")||Mb.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Xv(this,"_monthsRegex")||(this._monthsRegex=kb),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},vw.monthsShortRegex=function(e){return this._monthsParseExact?(Xv(this,"_monthsRegex")||Mb.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Xv(this,"_monthsShortRegex")||(this._monthsShortRegex=xb),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},vw.week=function(e){return Rb(e,this._week.dow,this._week.doy).week},vw.firstDayOfYear=function(){return this._week.doy},vw.firstDayOfWeek=function(){return this._week.dow},vw.weekdays=function(e,t){var n=zv(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ib(n,this._week.dow):e?n[e.day()]:n},vw.weekdaysMin=function(e){return!0===e?Ib(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},vw.weekdaysShort=function(e){return!0===e?Ib(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},vw.weekdaysParse=function(e,t,n){var i,r,o;if(this._weekdaysParseExact)return $b.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=ty([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},vw.weekdaysRegex=function(e){return this._weekdaysParseExact?(Xv(this,"_weekdaysRegex")||Vb.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Xv(this,"_weekdaysRegex")||(this._weekdaysRegex=Ub),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},vw.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(Xv(this,"_weekdaysRegex")||Vb.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Xv(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=jb),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},vw.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(Xv(this,"_weekdaysRegex")||Vb.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Xv(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Hb),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},vw.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},vw.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},n_("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Ry(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),Wv.lang=dy("moment.lang is deprecated. Use moment.locale instead.",n_),Wv.langData=dy("moment.langData is deprecated. Use moment.localeData instead.",r_);var ww=Math.abs;function xw(e,t,n,i){var r=Y_(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function kw(e){return e<0?Math.floor(e):Math.ceil(e)}function Sw(e){return 4800*e/146097}function Tw(e){return 146097*e/4800}function Cw(e){return function(){return this.as(e)}}var Mw=Cw("ms"),Dw=Cw("s"),Aw=Cw("m"),Ow=Cw("h"),Ew=Cw("d"),Pw=Cw("w"),Nw=Cw("M"),Rw=Cw("Q"),Lw=Cw("y");function Iw(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fw=Iw("milliseconds"),Yw=Iw("seconds"),Bw=Iw("minutes"),Uw=Iw("hours"),jw=Iw("days"),Hw=Iw("months"),$w=Iw("years");var Vw=Math.round,Ww={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function zw(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var qw=Math.abs;function Xw(e){return(e>0)-(e<0)||+e}function Gw(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,o,a,s,l=qw(this._milliseconds)/1e3,c=qw(this._days),u=qw(this._months),d=this.asSeconds();return d?(e=Ny(l/60),t=Ny(e/60),l%=60,e%=60,n=Ny(u/12),u%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=Xw(this._months)!==Xw(d)?"-":"",a=Xw(this._days)!==Xw(d)?"-":"",s=Xw(this._milliseconds)!==Xw(d)?"-":"",r+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+i+"S":"")):"P0D"}var Kw=M_.prototype; /*! * Chart.js v3.9.1 * https://www.chartjs.org * (c) 2022 Chart.js Contributors * Released under the MIT License */ function Jw(){}Kw.isValid=function(){return this._isValid},Kw.abs=function(){var e=this._data;return this._milliseconds=ww(this._milliseconds),this._days=ww(this._days),this._months=ww(this._months),e.milliseconds=ww(e.milliseconds),e.seconds=ww(e.seconds),e.minutes=ww(e.minutes),e.hours=ww(e.hours),e.months=ww(e.months),e.years=ww(e.years),this},Kw.add=function(e,t){return xw(this,e,t,1)},Kw.subtract=function(e,t){return xw(this,e,t,-1)},Kw.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=Dy(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Sw(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Tw(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Kw.asMilliseconds=Mw,Kw.asSeconds=Dw,Kw.asMinutes=Aw,Kw.asHours=Ow,Kw.asDays=Ew,Kw.asWeeks=Pw,Kw.asMonths=Nw,Kw.asQuarters=Rw,Kw.asYears=Lw,Kw.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Ry(this._months/12):NaN},Kw._bubble=function(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*kw(Tw(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=Ny(o/1e3),l.seconds=e%60,t=Ny(e/60),l.minutes=t%60,n=Ny(t/60),l.hours=n%24,a+=Ny(n/24),s+=r=Ny(Sw(a)),a-=kw(Tw(r)),i=Ny(s/12),s%=12,l.days=a,l.months=s,l.years=i,this},Kw.clone=function(){return Y_(this)},Kw.get=function(e){return e=Dy(e),this.isValid()?this[e+"s"]():NaN},Kw.milliseconds=Fw,Kw.seconds=Yw,Kw.minutes=Bw,Kw.hours=Uw,Kw.days=jw,Kw.weeks=function(){return Ny(this.days()/7)},Kw.months=Hw,Kw.years=$w,Kw.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=Ww;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(o=Object.assign({},Ww,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),i=function(e,t,n,i){var r=Y_(e).abs(),o=Vw(r.as("s")),a=Vw(r.as("m")),s=Vw(r.as("h")),l=Vw(r.as("d")),c=Vw(r.as("M")),u=Vw(r.as("w")),d=Vw(r.as("y")),h=o<=n.ss&&["s",o]||o0,h[4]=i,zw.apply(null,h)}(this,!r,o,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},Kw.toISOString=Gw,Kw.toString=Gw,Kw.toJSON=Gw,Kw.locale=X_,Kw.localeData=K_,Kw.toIsoString=dy("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gw),Kw.lang=G_,ky("X",0,0,"unix"),ky("x",0,0,"valueOf"),tb("x",Jy),tb("X",/[+-]?\d+(\.\d{1,3})?/),ob("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ob("x",(function(e,t,n){n._d=new Date(Ry(e))})), //! moment.js Wv.version="2.29.4",Hv=x_,Wv.fn=mw,Wv.min=function(){return T_("isBefore",[].slice.call(arguments,0))},Wv.max=function(){return T_("isAfter",[].slice.call(arguments,0))},Wv.now=function(){return Date.now?Date.now():+new Date},Wv.utc=ty,Wv.unix=function(e){return x_(1e3*e)},Wv.months=function(e,t){return bw(e,t,"months")},Wv.isDate=Zv,Wv.locale=n_,Wv.invalid=ry,Wv.duration=Y_,Wv.isMoment=cy,Wv.weekdays=function(e,t,n){return _w(e,t,n,"weekdays")},Wv.parseZone=function(){return x_.apply(null,arguments).parseZone()},Wv.localeData=r_,Wv.isDuration=D_,Wv.monthsShort=function(e,t){return bw(e,t,"monthsShort")},Wv.weekdaysMin=function(e,t,n){return _w(e,t,n,"weekdaysMin")},Wv.defineLocale=i_,Wv.updateLocale=function(e,t){if(null!=t){var n,i,r=Kb;null!=Jb[e]&&null!=Jb[e].parentLocale?Jb[e].set(gy(Jb[e]._config,t)):(null!=(i=t_(e))&&(r=i._config),t=gy(r,t),null==i&&(t.abbr=e),(n=new vy(t)).parentLocale=Jb[e],Jb[e]=n),n_(e)}else null!=Jb[e]&&(null!=Jb[e].parentLocale?(Jb[e]=Jb[e].parentLocale,e===n_()&&n_(e)):null!=Jb[e]&&delete Jb[e]);return Jb[e]},Wv.locales=function(){return hy(Jb)},Wv.weekdaysShort=function(e,t,n){return _w(e,t,n,"weekdaysShort")},Wv.normalizeUnits=Dy,Wv.relativeTimeRounding=function(e){return void 0===e?Vw:"function"==typeof e&&(Vw=e,!0)},Wv.relativeTimeThreshold=function(e,t){return void 0!==Ww[e]&&(void 0===t?Ww[e]:(Ww[e]=t,"s"===e&&(Ww.ss=t-1),!0))},Wv.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},Wv.prototype=mw,Wv.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Zw=function(){let e=0;return function(){return e++}}();function Qw(e){return null==e}function ex(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function tx(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}const nx=e=>("number"==typeof e||e instanceof Number)&&isFinite(+e);function ix(e,t){return nx(e)?e:t}function rx(e,t){return void 0===e?t:e}const ox=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function ax(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function sx(e,t,n,i){let r,o,a;if(ex(e))if(o=e.length,i)for(r=o-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;re,x:e=>e.x,y:e=>e.y};function gx(e,t){const n=mx[t]||(mx[t]=function(e){const t=function(e){const t=e.split("."),n=[];let i="";for(const r of t)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function vx(e){return e.charAt(0).toUpperCase()+e.slice(1)}const yx=e=>void 0!==e,bx=e=>"function"==typeof e,_x=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const wx=Math.PI,xx=2*wx,kx=xx+wx,Sx=Number.POSITIVE_INFINITY,Tx=wx/180,Cx=wx/2,Mx=wx/4,Dx=2*wx/3,Ax=Math.log10,Ox=Math.sign;function Ex(e){const t=Math.round(e);e=Nx(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Ax(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function Px(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Nx(e,t,n){return Math.abs(e-t)l&&c=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function Wx(e,t,n){n=n||(n=>e[n]1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const zx=(e,t,n,i)=>Wx(e,n,i?i=>e[i][t]<=n:i=>e[i][t]Wx(e,n,(i=>e[i][t]>=n));const Xx=["push","pop","shift","splice","unshift"];function Gx(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(t);-1!==r&&i.splice(r,1),i.length>0||(Xx.forEach((t=>{delete e[t]})),delete e._chartjs)}function Kx(e){const t=new Set;let n,i;for(n=0,i=e.length;nArray.prototype.slice.call(e));let r=!1,o=[];return function(...n){o=i(n),r||(r=!0,Jx.call(window,(()=>{r=!1,e.apply(t,o)})))}}const Qx=e=>"start"===e?"left":"end"===e?"right":"center",ek=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;function tk(e,t,n){const i=t.length;let r=0,o=i;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:d,maxDefined:h}=a.getUserBounds();d&&(r=$x(Math.min(zx(s,a.axis,c).lo,n?i:zx(t,l,a.getPixelForValue(c)).lo),0,i-1)),o=h?$x(Math.max(zx(s,a.axis,u,!0).hi+1,n?0:zx(t,l,a.getPixelForValue(u),!0).hi+1),r,i)-r:i-r}return{start:r,count:o}}function nk(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=r,!0;const o=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),o}const ik=e=>0===e||1===e,rk=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*xx/n),ok=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*xx/n)+1,ak={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*Cx),easeOutSine:e=>Math.sin(e*Cx),easeInOutSine:e=>-.5*(Math.cos(wx*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>ik(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>ik(e)?e:rk(e,.075,.3),easeOutElastic:e=>ik(e)?e:ok(e,.075,.3),easeInOutElastic(e){const t=.1125;return ik(e)?e:e<.5?.5*rk(2*e,t,.45):.5+.5*ok(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-ak.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*ak.easeInBounce(2*e):.5*ak.easeOutBounce(2*e-1)+.5}; /*! * @kurkle/color v0.2.1 * https://github.com/kurkle/color#readme * (c) 2022 Jukka Kurkela * Released under the MIT License */ function sk(e){return e+.5|0}const lk=(e,t,n)=>Math.max(Math.min(e,n),t);function ck(e){return lk(sk(2.55*e),0,255)}function uk(e){return lk(sk(255*e),0,255)}function dk(e){return lk(sk(e/2.55)/100,0,1)}function hk(e){return lk(sk(100*e),0,100)}const fk={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},pk=[..."0123456789ABCDEF"],mk=e=>pk[15&e],gk=e=>pk[(240&e)>>4]+pk[15&e],vk=e=>(240&e)>>4==(15&e);function yk(e){var t=(e=>vk(e.r)&&vk(e.g)&&vk(e.b)&&vk(e.a))(e)?mk:gk;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const bk=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function _k(e,t,n){const i=t*Math.min(n,1-n),r=(t,r=(t+e/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function wk(e,t,n){const i=(i,r=(i+e/60)%6)=>n-n*t*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function xk(e,t,n){const i=_k(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function kk(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),o=Math.min(t,n,i),a=(r+o)/2;let s,l,c;return r!==o&&(c=r-o,l=a>.5?c/(2-r-o):c/(r+o),s=function(e,t,n,i,r){return e===r?(t-n)/i+(t>16&255,o>>8&255,255&o]}return e}(),Ok.transparent=[0,0,0,0]);const t=Ok[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const Pk=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Nk=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,Rk=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Lk(e,t,n){if(e){let i=kk(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,0===t?360:1)),i=Tk(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function Ik(e,t){return e?Object.assign(t||{},e):e}function Fk(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=uk(e[3]))):(t=Ik(e,{r:0,g:0,b:0,a:1})).a=uk(t.a),t}function Yk(e){return"r"===e.charAt(0)?function(e){const t=Pk.exec(e);let n,i,r,o=255;if(t){if(t[7]!==n){const e=+t[7];o=t[8]?ck(e):lk(255*e,0,255)}return n=+t[1],i=+t[3],r=+t[5],n=255&(t[2]?ck(n):lk(n,0,255)),i=255&(t[4]?ck(i):lk(i,0,255)),r=255&(t[6]?ck(r):lk(r,0,255)),{r:n,g:i,b:r,a:o}}}(e):Mk(e)}class Bk{constructor(e){if(e instanceof Bk)return e;const t=typeof e;let n;var i,r,o;"object"===t?n=Fk(e):"string"===t&&(o=(i=e).length,"#"===i[0]&&(4===o||5===o?r={r:255&17*fk[i[1]],g:255&17*fk[i[2]],b:255&17*fk[i[3]],a:5===o?17*fk[i[4]]:255}:7!==o&&9!==o||(r={r:fk[i[1]]<<4|fk[i[2]],g:fk[i[3]]<<4|fk[i[4]],b:fk[i[5]]<<4|fk[i[6]],a:9===o?fk[i[7]]<<4|fk[i[8]]:255})),n=r||Ek(e)||Yk(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=Ik(this._rgb);return e&&(e.a=dk(e.a)),e}set rgb(e){this._rgb=Fk(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(dk(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")")):void 0;var e}hexString(){return this._valid?yk(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=kk(e),n=t[0],i=hk(t[1]),r=hk(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(i,"%, ").concat(r,"%, ").concat(dk(e.a),")"):"hsl(".concat(n,", ").concat(i,"%, ").concat(r,"%)")}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,i=e.rgb;let r;const o=t===r?.5:t,a=2*o-1,s=n.a-i.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const i=Rk(dk(e.r)),r=Rk(dk(e.g)),o=Rk(dk(e.b));return{r:uk(Nk(i+n*(Rk(dk(t.r))-i))),g:uk(Nk(r+n*(Rk(dk(t.g))-r))),b:uk(Nk(o+n*(Rk(dk(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new Bk(this.rgb)}alpha(e){return this._rgb.a=uk(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=sk(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Lk(this._rgb,2,e),this}darken(e){return Lk(this._rgb,2,-e),this}saturate(e){return Lk(this._rgb,1,e),this}desaturate(e){return Lk(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=kk(e);n[0]=Ck(n[0]+t),n=Tk(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function Uk(e){return new Bk(e)}function jk(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function Hk(e){return jk(e)?e:Uk(e)}function $k(e){return jk(e)?e:Uk(e).saturate(.5).darken(.1).hexString()}const Vk=Object.create(null),Wk=Object.create(null);function zk(e,t){if(!t)return e;const n=t.split(".");for(let i=0,r=n.length;ie.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>$k(t.backgroundColor),this.hoverBorderColor=(e,t)=>$k(t.borderColor),this.hoverColor=(e,t)=>$k(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e)}set(e,t){return qk(this,e,t)}get(e){return zk(this,e)}describe(e,t){return qk(Wk,e,t)}override(e,t){return qk(Vk,e,t)}route(e,t,n,i){const r=zk(this,e),o=zk(this,n),a="_"+t;Object.defineProperties(r,{[a]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=o[i];return tx(e)?Object.assign({},t,e):rx(e,t)},set(e){this[a]=e}}})}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Gk(e,t,n,i,r){let o=t[r];return o||(o=t[r]=e.measureText(r).width,n.push(r)),o>i&&(i=o),i}function Kk(e,t,n,i){let r=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},o=i.garbageCollect=[],i.font=t),e.save(),e.font=t;let a=0;const s=n.length;let l,c,u,d,h;for(l=0;ln.length){for(l=0;l0&&e.stroke()}}function tS(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&""!==o.strokeColor;let l,c;for(e.save(),e.font=r.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]);Qw(t.rotation)||e.rotate(t.rotation);t.color&&(e.fillStyle=t.color);t.textAlign&&(e.textAlign=t.textAlign);t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,o),l=0;l+e||0;function fS(e,t){const n={},i=tx(t),r=i?Object.keys(t):t,o=tx(e)?i?n=>rx(e[n],e[t[n]]):t=>e[t]:()=>e;for(const a of r)n[a]=hS(o(a));return n}function pS(e){return fS(e,{top:"y",right:"x",bottom:"y",left:"x"})}function mS(e){return fS(e,["topLeft","topRight","bottomLeft","bottomRight"])}function gS(e){const t=pS(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function vS(e,t){e=e||{},t=t||Xk.font;let n=rx(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let i=rx(e.style,t.style);i&&!(""+i).match(uS)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const r={family:rx(e.family,t.family),lineHeight:dS(rx(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:rx(e.weight,t.weight),string:""};return r.string=function(e){return!e||Qw(e.size)||Qw(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r}function yS(e,t,n,i){let r,o,a,s=!0;for(r=0,o=e.length;re[0])){yx(i)||(i=ES("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:i,_getTarget:r,override:r=>_S([r,...e],t,n,i)};return new Proxy(o,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,i)=>TS(n,i,(()=>function(e,t,n,i){let r;for(const o of t)if(r=ES(kS(o,e),n),yx(r))return SS(e,r)?AS(n,i,e,r):r}(i,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>PS(e).includes(t),ownKeys:e=>PS(e),set(e,t,n){const i=e._storage||(e._storage=r());return e[t]=i[t]=n,delete e._keys,!0}})}function wS(e,t,n,i){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:xS(e,i),setContext:t=>wS(e,t,n,i),override:r=>wS(e.override(r),t,n,i)};return new Proxy(r,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>TS(e,t,(()=>function(e,t,n){const{_proxy:i,_context:r,_subProxy:o,_descriptors:a}=e;let s=i[t];bx(s)&&a.isScriptable(t)&&(s=function(e,t,n,i){const{_proxy:r,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e),t=t(o,a||i),s.delete(e),SS(e,t)&&(t=AS(r._scopes,r,e,t));return t}(t,s,e,n));ex(s)&&s.length&&(s=function(e,t,n,i){const{_proxy:r,_context:o,_subProxy:a,_descriptors:s}=n;if(yx(o.index)&&i(e))t=t[o.index%t.length];else if(tx(t[0])){const n=t,i=r._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=AS(i,r,e,l);t.push(wS(n,o,a&&a[e],s))}}return t}(t,s,e,a.isIndexable));SS(t,s)&&(s=wS(s,r,o&&o[t],a));return s}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,i)=>(e[n]=i,delete t[n],!0)})}function xS(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:i,isScriptable:bx(n)?n:()=>n,isIndexable:bx(i)?i:()=>i}}const kS=(e,t)=>e?e+vx(t):t,SS=(e,t)=>tx(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function TS(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const i=n();return e[t]=i,i}function CS(e,t,n){return bx(e)?e(t,n):e}const MS=(e,t)=>!0===e?t:"string"==typeof e?gx(t,e):void 0;function DS(e,t,n,i,r){for(const o of t){const t=MS(n,o);if(t){e.add(t);const o=CS(t._fallback,n,r);if(yx(o)&&o!==n&&o!==i)return o}else if(!1===t&&yx(i)&&n!==i)return null}return!1}function AS(e,t,n,i){const r=t._rootScopes,o=CS(t._fallback,n,i),a=[...e,...r],s=new Set;s.add(i);let l=OS(s,a,n,o||n,i);return null!==l&&((!yx(o)||o===n||(l=OS(s,a,o,l,i),null!==l))&&_S(Array.from(s),[""],r,o,(()=>function(e,t,n){const i=e._getTarget();t in i||(i[t]={});const r=i[t];if(ex(r)&&tx(n))return n;return r}(t,n,i))))}function OS(e,t,n,i,r){for(;n;)n=DS(e,t,n,i,r);return n}function ES(e,t){for(const n of t){if(!n)continue;const t=n[e];if(yx(t))return t}}function PS(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}function NS(e,t,n,i){const{iScale:r}=e,{key:o="r"}=this._parsing,a=new Array(i);let s,l,c,u;for(s=0,l=i;st"x"===e?"y":"x";function FS(e,t,n,i){const r=e.skip?t:e,o=t,a=n.skip?t:n,s=Bx(o,r),l=Bx(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=i*c,h=i*u;return{previous:{x:o.x-d*(a.x-r.x),y:o.y-d*(a.y-r.y)},next:{x:o.x+h*(a.x-r.x),y:o.y+h*(a.y-r.y)}}}function YS(e,t="x"){const n=IS(t),i=e.length,r=Array(i).fill(0),o=Array(i);let a,s,l,c=LS(e,0);for(a=0;a!e.skip))),"monotone"===t.cubicInterpolationMode)YS(e,r);else{let n=i?e[e.length-1]:e[0];for(o=0,a=e.length;owindow.getComputedStyle(e,null);const WS=["top","right","bottom","left"];function zS(e,t,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const o=WS[r];i[o]=parseFloat(e[t+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const qS=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function XS(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,r=VS(n),o="border-box"===r.boxSizing,a=zS(r,"padding"),s=zS(r,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:r,offsetY:o}=i;let a,s,l=!1;if(qS(r,o,e.target))a=r,s=o;else{const e=t.getBoundingClientRect();a=i.clientX-e.left,s=i.clientY-e.top,l=!0}return{x:a,y:s,box:l}}(e,n),d=a.left+(u&&s.left),h=a.top+(u&&s.top);let{width:f,height:p}=t;return o&&(f-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-d)/f*n.width/i),y:Math.round((c-h)/p*n.height/i)}}const GS=e=>Math.round(10*e)/10;function KS(e,t,n,i){const r=VS(e),o=zS(r,"margin"),a=$S(r.maxWidth,e,"clientWidth")||Sx,s=$S(r.maxHeight,e,"clientHeight")||Sx,l=function(e,t,n){let i,r;if(void 0===t||void 0===n){const o=HS(e);if(o){const e=o.getBoundingClientRect(),a=VS(o),s=zS(a,"border","width"),l=zS(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,i=$S(a.maxWidth,o,"clientWidth"),r=$S(a.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:i||Sx,maxHeight:r||Sx}}(e,t,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const e=zS(r,"border","width"),t=zS(r,"padding");c-=t.width+e.width,u-=t.height+e.height}return c=Math.max(0,c-o.width),u=Math.max(0,i?Math.floor(c/i):u-o.height),c=GS(Math.min(c,a,l.maxWidth)),u=GS(Math.min(u,s,l.maxHeight)),c&&!u&&(u=GS(c/2)),{width:c,height:u}}function JS(e,t,n){const i=t||1,r=Math.floor(e.height*i),o=Math.floor(e.width*i);e.height=r/i,e.width=o/i;const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height="".concat(e.height,"px"),a.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==i||a.height!==r||a.width!==o)&&(e.currentDevicePixelRatio=i,a.height=r,a.width=o,e.ctx.setTransform(i,0,0,i,0,0),!0)}const ZS=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(rN){}return e}();function QS(e,t){const n=function(e,t){return VS(e).getPropertyValue(t)}(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function eT(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function tT(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:"middle"===i?n<.5?e.y:t.y:"after"===i?n<1?e.y:t.y:n>0?t.y:e.y}}function nT(e,t,n,i){const r={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=eT(e,r,n),s=eT(r,o,n),l=eT(o,t,n),c=eT(a,s,n),u=eT(s,l,n);return eT(c,u,n)}const iT=new Map;function rT(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let i=iT.get(n);return i||(i=new Intl.NumberFormat(e,t),iT.set(n,i)),i}(t,n).format(e)}function oT(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function aT(e,t){let n,i;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function sT(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function lT(e){return"angle"===e?{between:Hx,compare:Ux,normalize:jx}:{between:Vx,compare:(e,t)=>e-t,normalize:e=>e}}function cT({start:e,end:t,count:n,loop:i,style:r}){return{start:e%n,end:t%n,loop:i&&(t-e+1)%n==0,style:r}}function uT(e,t,n){if(!n)return[e];const{property:i,start:r,end:o}=n,a=t.length,{compare:s,between:l,normalize:c}=lT(i),{start:u,end:d,loop:h,style:f}=function(e,t,n){const{property:i,start:r,end:o}=n,{between:a,normalize:s}=lT(i),l=t.length;let c,u,{start:d,end:h,loop:f}=e;if(f){for(d+=l,h+=l,c=0,u=l;cy||l(r,v,m)&&0!==s(r,v),w=()=>!y||0===s(o,m)||l(o,v,m);for(let x=u,k=u;x<=d;++x)g=t[x%a],g.skip||(m=c(g[i]),m!==v&&(y=l(m,r,o),null===b&&_()&&(b=0===s(m,r)?x:k),null!==b&&w()&&(p.push(cT({start:b,end:x,loop:h,count:a,style:f})),b=null),k=x,v=m));return null!==b&&p.push(cT({start:b,end:d,loop:h,count:a,style:f})),p}function dT(e,t){const n=[],i=e.segments;for(let r=0;ri({chart:e,initial:t.initial,numSteps:o,currentStep:Math.min(n-t.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=Jx.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let o,a=r.length-1,s=!1;for(;a>=0;--a)o=r[a],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(e),s=!0):(r[a]=r[r.length-1],r.pop());s&&(i.draw(),this._notify(i,n,e,"progress")),r.length||(n.running=!1,this._notify(i,n,e,"complete"),n.initial=!1),t+=r.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}};const gT="transparent",vT={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const i=Hk(e||gT),r=i.valid&&Hk(t||gT);return r&&r.valid?r.mix(i,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class yT{constructor(e,t,n,i){const r=t[n];i=yS([e.to,i,r,e.from]);const o=yS([e.from,r,i]);this._active=!0,this._fn=e.fn||vT[e.type||typeof o],this._easing=ak[e.easing]||ak.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const i=this._target[this._prop],r=n-this._start,o=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=yS([e.to,t,i,e.from]),this._from=yS([e.from,i,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,i=this._prop,r=this._from,o=this._loop,a=this._to;let s;if(this._active=r!==a&&(o||t1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[i]=this._fn(r,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let i=0;i"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),Xk.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Xk.describe("animations",{_fallback:"animation"}),Xk.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}});class _T{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!tx(e))return;const t=this._properties;Object.getOwnPropertyNames(e).forEach((n=>{const i=e[n];if(!tx(i))return;const r={};for(const e of bT)r[e]=i[e];(ex(i.properties)&&i.properties||[n]).forEach((e=>{e!==n&&t.has(e)||t.set(e,r)}))}))}_animateOptions(e,t){const n=t.options,i=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(e,t){const n=[],i=Object.keys(t);for(let r=0;r{e.options=n}),(()=>{})),r}_createAnimations(e,t){const n=this._properties,i=[],r=e.$animations||(e.$animations={}),o=Object.keys(t),a=Date.now();let s;for(s=o.length-1;s>=0;--s){const l=o[s];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(e,t));continue}const c=t[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,a);continue}u.cancel()}d&&d.duration?(r[l]=u=new yT(d,e,l,c),i.push(u)):e[l]=c}return i}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(mT.add(this._chart,n),!0):void 0}}function wT(e,t){const n=e&&e.options||{},i=n.reverse,r=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:i?o:r,end:i?r:o}}function xT(e,t){const n=[],i=e._getSortedDatasetMetas(t);let r,o;for(r=0,o=i.length;r0||!n&&t<0)return r.index}return null}function MT(e,t){const{chart:n,_cachedMeta:i}=e,r=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=i,l=o.axis,c=a.axis,u=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(o,a,i),d=t.length;let h;for(let f=0;fn[e].axis===t)).shift()}function AT(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[i]||void 0===t[i][n])return;delete t[i][n]}}}const OT=e=>"reset"===e||"none"===e,ET=(e,t)=>t?e:Object.assign({},e);class PT{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,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.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=ST(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&AT(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),i=(e,t,n,i)=>"x"===e?t:"r"===e?i:n,r=t.xAxisID=rx(n.xAxisID,DT(e,"x")),o=t.yAxisID=rx(n.yAxisID,DT(e,"y")),a=t.rAxisID=rx(n.rAxisID,DT(e,"r")),s=t.indexAxis,l=t.iAxisID=i(s,r,o,a),c=t.vAxisID=i(s,o,r,a);t.xScale=this.getScaleForId(r),t.yScale=this.getScaleForId(o),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Gx(this._data,this),e._stacked&&AT(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(tx(t))this._data=function(e){const t=Object.keys(e),n=new Array(t.length);let i,r,o;for(i=0,r=t.length;i{const t="_onData"+vx(e),n=i[e];Object.defineProperty(i,e,{configurable:!0,enumerable:!1,value(...e){const r=n.apply(this,e);return i._chartjs.listeners.forEach((n=>{"function"==typeof n[t]&&n[t](...e)})),r}})})))),this._syncList=[],this._data=t}var i,r}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=t._stacked;t._stacked=ST(t.vScale,t),t.stack!==n.stack&&(i=!0,AT(t),t.stack=n.stack),this._resyncElements(e),(i||r!==t._stacked)&&MT(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:i}=this,{iScale:r,_stacked:o}=n,a=r.axis;let s,l,c,u=0===e&&t===i.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=ex(i[e])?this.parseArrayData(n,i,e,t):tx(i[e])?this.parseObjectData(n,i,e,t):this.parsePrimitiveData(n,i,e,t);const r=()=>null===l[a]||d&&l[a]e&&!t.hidden&&t._stacked&&{keys:xT(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:i,maxDefined:r}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(a);let d,h;function f(){h=i[d];const t=h[a.axis];return!nx(h[e.axis])||c>t||u=0;--d)if(!f()){this.updateRangeFromParsed(l,e,h,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let i,r,o;for(i=0,r=t.length;i=0&&ethis.getContext(n,i)),u);return f.$shared&&(f.$shared=s,r[o]=Object.freeze(ET(f,s))),f}_resolveAnimations(e,t,n){const i=this.chart,r=this._cachedDataOpts,o="animation-".concat(t),a=r[o];if(a)return a;let s;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,t),o=i.getOptionScopes(this.getDataset(),r);s=i.createResolver(o,this.getContext(e,n,t))}const l=new _T(i,s&&s.animations);return s&&s._cacheable&&(r[o]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||OT(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),i=this._sharedOptions,r=this.getSharedOptions(n),o=this.includeOptions(t,r)||r!==i;return this.updateSharedOptions(r,t,n),{sharedOptions:r,includeOptions:o}}updateElement(e,t,n,i){OT(i)?Object.assign(e,n):this._resolveAnimations(t,i).update(e,n)}updateSharedOptions(e,t,n){e&&!OT(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,i){e.active=i;const r=this.getStyle(t,i);this._resolveAnimations(t,n,i).update(e,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[a,s,l]of this._syncList)this[a](s,l);this._syncList=[];const i=n.length,r=t.length,o=Math.min(r,i);o&&this.parse(0,o),r>i?this._insertElements(i,r-i,e):r{for(e.length+=t,a=e.length-1;a>=o;a--)e[a]=e[a-t]};for(s(r),a=e;ae-t)))}return e._cache.$bar}(t,e.type);let i,r,o,a,s=t._length;const l=()=>{32767!==o&&-32768!==o&&(yx(a)&&(s=Math.min(s,Math.abs(o-a)||s)),a=o)};for(i=0,r=n.length;iMath.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:r,end:o,min:a,max:s}}(e,t,n,i):t[n.axis]=n.parse(e,i),t}function LT(e,t,n,i){const r=e.iScale,o=e.vScale,a=r.getLabels(),s=r===o,l=[];let c,u,d,h;for(c=n,u=n+i;ce.x,n="left",i="right"):(t=e.basee.controller.options.grouped)),r=n.options.stacked,o=[],a=e=>{const n=e.controller.getParsed(t),i=n&&n[e.vScale.axis];if(Qw(i)||isNaN(i))return!0};for(const s of i)if((void 0===t||!a(s))&&((!1===r||-1===o.indexOf(s.stack)||void 0===r&&void 0===s.stack)&&o.push(s.stack),s.index===e))break;return o.length||o.push(void 0),o}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const i=this._getStacks(e,n),r=void 0!==t?i.indexOf(t):-1;return-1===r?i.length-1:r}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,i=[];let r,o;for(r=0,o=t.data.length;r=n?1:-1)}(u,t,o)*r,d===o&&(m-=u/2);const e=t.getPixelForDecimal(0),n=t.getPixelForDecimal(1),i=Math.min(e,n),a=Math.max(e,n);m=Math.max(Math.min(m,a),i),c=m+u}if(m===t.getPixelForValue(o)){const e=Ox(u)*t.getLineWidthForValue(o)/2;m+=e,u-=e}return{size:u,base:m,head:c,center:c+u/2}}_calculateBarIndexPixels(e,t){const n=t.scale,i=this.options,r=i.skipNull,o=rx(i.maxBarThickness,1/0);let a,s;if(t.grouped){const n=r?this._getStackCount(e):t.stackCount,l="flex"===i.barThickness?function(e,t,n,i){const r=t.pixels,o=r[e];let a=e>0?r[e-1]:null,s=e=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,{xScale:n,yScale:i}=t,r=this.getParsed(e),o=n.getLabelForValue(r.x),a=i.getLabelForValue(r.y),s=r._custom;return{label:t.label,value:"("+o+", "+a+(s?", "+s:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,i){const r="reset"===i,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(t,i),c=o.axis,u=a.axis;for(let d=t;d""}}}};class $T extends PT{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let r,o,a=e=>+n[e];if(tx(n[e])){const{key:e="value"}=this._parsing;a=t=>+gx(n[t],e)}for(r=e,o=e+t;rHx(e,s,l,!0)?1:Math.max(t,t*n,i,i*n),p=(e,t,i)=>Hx(e,s,l,!0)?-1:Math.min(t,t*n,i,i*n),m=f(0,c,d),g=f(Cx,u,h),v=p(wx,c,d),y=p(wx+Cx,u,h);i=(m-v)/2,r=(g-y)/2,o=-(m+v)/2,a=-(g+y)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:a}}(h,d,s),v=(n.width-o)/f,y=(n.height-o)/p,b=Math.max(Math.min(v,y)/2,0),_=ox(this.options.radius,b),w=(_-Math.max(_*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*_,this.offsetY=g*_,i.total=this.calculateTotal(),this.outerRadius=_-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(r,0,r.length,e)}_circumference(e,t){const n=this.options,i=this._cachedMeta,r=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===i._parsed[e]||i.data[e].hidden?0:this.calculateCircumference(i._parsed[e]*r/xx)}updateElements(e,t,n,i){const r="reset"===i,o=this.chart,a=o.chartArea,s=o.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=r&&s.animateScale,d=u?0:this.innerRadius,h=u?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(t,i);let m,g=this._getRotation();for(m=0;m0&&!isNaN(e)?xx*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=rT(t._parsed[e],n.options.locale);return{label:i[e]||"",value:r}}getMaxBorderWidth(e){let t=0;const n=this.chart;let i,r,o,a,s;if(!e)for(i=0,r=n.data.datasets.length;i"spacing"!==e,_indexable:e=>"spacing"!==e},$T.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map(((t,i)=>{const r=e.getDatasetMeta(0).controller.getStyle(i);return{text:t,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(e){let t=e.label;const n=": "+e.formattedValue;return ex(t)?(t=t.slice(),t[0]+=n):t+=n,t}}}}};class VT extends PT{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:i=[],_dataset:r}=t,o=this.chart._animationsDisabled;let{start:a,count:s}=tk(t,i,o);this._drawStart=a,this._drawCount=s,nk(t)&&(a=0,s=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=i;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:l},e),this.updateElements(i,a,s,e)}updateElements(e,t,n,i){const r="reset"===i,{iScale:o,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(t,i),d=o.axis,h=a.axis,{spanGaps:f,segment:p}=this.options,m=Px(f)?f:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||r||"none"===i;let v=t>0&&this.getParsed(t-1);for(let y=t;y0&&Math.abs(n[d]-v[d])>m,p&&(f.parsed=n,f.raw=l.data[y]),u&&(f.options=c||this.resolveDataElementOptions(y,t.active?"active":i)),g||this.updateElement(t,y,f,i),v=n}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,i=e.data||[];if(!i.length)return n;const r=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,r,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}VT.id="line",VT.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},VT.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class WT extends PT{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=rT(t._parsed[e].r,n.options.locale);return{label:i[e]||"",value:r}}parseObjectData(e,t,n,i){return NS.bind(this)(e,t,n,i)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach(((e,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(it.max&&(t.max=i))})),t}_updateRadius(){const e=this.chart,t=e.chartArea,n=e.options,i=Math.min(t.right-t.left,t.bottom-t.top),r=Math.max(i/2,0),o=(r-Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=r-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(e,t,n,i){const r="reset"===i,o=this.chart,a=o.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,u=s.getIndexAngle(0)-.5*wx;let d,h=u;const f=360/this.countVisibleElements();for(d=0;d{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++})),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?Lx(this.resolveDataElementOptions(e,t).angle||n):0}}WT.id="polarArea",WT.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},WT.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map(((t,i)=>{const r=e.getDatasetMeta(0).controller.getStyle(i);return{text:t,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:e=>e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class zT extends $T{}zT.id="pie",zT.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class qT extends PT{getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,i){return NS.bind(this)(e,t,n,i)}update(e){const t=this._cachedMeta,n=t.dataset,i=t.data||[],r=t.iScale.getLabels();if(n.points=i,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const o={_loop:!0,_fullLoop:r.length===i.length,options:t};this.updateElement(n,void 0,o,e)}this.updateElements(i,0,i.length,e)}updateElements(e,t,n,i){const r=this._cachedMeta.rScale,o="reset"===i;for(let a=t;a{i[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),i}};XT.defaults={},XT.defaultRoutes=void 0;const GT={values:e=>ex(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const i=this.chart.options.locale;let r,o=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(r="scientific"),o=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}const a=Ax(Math.abs(o)),s=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),rT(e,i,l)},logarithmic(e,t,n){if(0===e)return"0";const i=e/Math.pow(10,Math.floor(Ax(e)));return 1===i||2===i||5===i?GT.numeric.call(this,e,t,n):""}};var KT={formatters:GT};function JT(e,t){const n=e.options.ticks,i=n.maxTicksLimit||function(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(i,r))}(e),r=n.major.enabled?function(e){const t=[];let n,i;for(n=0,i=e.length;ni)return function(e,t,n,i){let r,o=0,a=n[0];for(i=Math.ceil(i),r=0;re-t)).pop(),t}(i);for(let a=0,s=o.length-1;ar)return e}return Math.max(r,1)}(r,t,i);if(o>0){let e,n;const i=o>1?Math.round((s-a)/(o-1)):null;for(ZT(t,l,c,Qw(i)?0:a-i,a),e=0,n=o-1;et.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:KT.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Xk.route("scale.ticks","color","","color"),Xk.route("scale.grid","color","","borderColor"),Xk.route("scale.grid","borderColor","","borderColor"),Xk.route("scale.title","color","","color"),Xk.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e}),Xk.describe("scales",{_fallback:"scale"}),Xk.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e});const QT=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n;function eC(e,t){const n=[],i=e.length/t,r=e.length;let o=0;for(;oa+s)))return c}function nC(e){return e.drawTicks?e.tickLength:0}function iC(e,t){if(!e.display)return 0;const n=vS(e.font,t),i=gS(e.padding);return(ex(e.text)?e.text.length:1)*n.lineHeight+i.height}function rC(e,t,n){let i=Qx(e);return(n&&"right"!==t||!n&&"right"===t)&&(i=(e=>"left"===e?"right":"right"===e?"left":e)(i)),i}class oC extends XT{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.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(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:i}=this;return e=ix(e,Number.POSITIVE_INFINITY),t=ix(t,Number.NEGATIVE_INFINITY),n=ix(n,Number.POSITIVE_INFINITY),i=ix(i,Number.NEGATIVE_INFINITY),{min:ix(e,n),max:ix(t,i),minDefined:nx(e),maxDefined:nx(t)}}getMinMax(e){let t,{min:n,max:i,minDefined:r,maxDefined:o}=this.getUserBounds();if(r&&o)return{min:n,max:i};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;si?i:n,i=r&&n>i?n:i,{min:ix(n,ix(i,n)),max:ix(i,ix(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ax(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:i,grace:r,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:i,max:r}=e,o=ox(t,(r-i)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(i,-Math.abs(o)),max:a(r,o)}}(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a=r||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=$x(this.chart.width-u,0,this.maxWidth);o=e.offset?this.maxWidth/n:h/(n-1),u+6>o&&(o=h/(n-(e.offset?.5:1)),a=this.maxHeight-nC(e.grid)-t.padding-iC(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=Ix(Math.min(Math.asin($x((c.highest.height+6)/o,-1,1)),Math.asin($x(a/s,-1,1))-Math.asin($x(d/s,-1,1)))),l=Math.max(i,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){ax(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ax(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:i,grid:r}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=iC(i,t.options.font);if(a?(e.width=this.maxWidth,e.height=nC(r)+o):(e.height=this.maxHeight,e.width=nC(r)+o),n.display&&this.ticks.length){const{first:t,last:i,widest:r,highest:o}=this._getLabelSizes(),s=2*n.padding,l=Lx(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const t=n.mirror?0:u*r.width+c*o.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*r.width+u*o.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,i,u,c)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,i){const{ticks:{align:r,padding:o},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=i*e.width,d=n*t.height):(u=n*e.height,d=i*t.width):"start"===r?d=t.width:"end"===r?u=e.width:"inner"!==r&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+o)*this.width/(this.width-c),0)}else{let n=t.height/2,i=e.height/2;"start"===r?(n=0,i=e.height):"end"===r&&(n=t.height,i=0),this.paddingTop=n+o,this.paddingBottom=i+o}}_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(){ax(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t{const n=e.gc,i=n.length/2;let r;if(i>t){for(r=0;r({width:r[e]||0,height:o[e]||0});return{first:w(0),last:w(t-1),widest:w(b),highest:w(_),widths:r,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return $x(this._alignToPixels?Jk(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&ea*i?a/n:s/i:s*i0}_computeGridLineItems(e){const t=this.axis,n=this.chart,i=this.options,{grid:r,position:o}=i,a=r.offset,s=this.isHorizontal(),l=this.ticks.length+(a?1:0),c=nC(r),u=[],d=r.setContext(this.getContext()),h=d.drawBorder?d.borderWidth:0,f=h/2,p=function(e){return Jk(n,e,h)};let m,g,v,y,b,_,w,x,k,S,T,C;if("top"===o)m=p(this.bottom),_=this.bottom-c,x=m-f,S=p(e.top)+f,C=e.bottom;else if("bottom"===o)m=p(this.top),S=e.top,C=p(e.bottom)-f,_=m+f,x=this.top+c;else if("left"===o)m=p(this.right),b=this.right-c,w=m-f,k=p(e.left)+f,T=e.right;else if("right"===o)m=p(this.left),k=e.left,T=p(e.right)-f,b=m+f,w=this.left+c;else if("x"===t){if("center"===o)m=p((e.top+e.bottom)/2+.5);else if(tx(o)){const e=Object.keys(o)[0],t=o[e];m=p(this.chart.scales[e].getPixelForValue(t))}S=e.top,C=e.bottom,_=m+f,x=_+c}else if("y"===t){if("center"===o)m=p((e.left+e.right)/2);else if(tx(o)){const e=Object.keys(o)[0],t=o[e];m=p(this.chart.scales[e].getPixelForValue(t))}b=m-f,w=b-c,k=e.left,T=e.right}const M=rx(i.ticks.maxTicksLimit,l),D=Math.max(1,Math.ceil(l/M));for(g=0;gt.value===e));if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,o;const a=(e,t,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(r=0,o=i.length;r{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,o;for(r=0,o=t.length;r{const i=n.split("."),r=i.pop(),o=[e].concat(i).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");Xk.route(o,r,l,s)}))}(t,e.defaultRoutes);e.descriptors&&Xk.describe(t,e.descriptors)}(e,o,n),this.override&&Xk.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,i=this.scope;n in t&&delete t[n],i&&n in Xk[i]&&(delete Xk[i][n],this.override&&delete Vk[n])}}var sC=new class{constructor(){this.controllers=new aC(PT,"datasets",!0),this.elements=new aC(XT,"elements"),this.plugins=new aC(Object,"plugins"),this.scales=new aC(oC,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const i=n||this._getRegistryForType(t);n||i.isForType(t)||i===this.plugins&&t.id?this._exec(e,i,t):sx(t,(t=>{const i=n||this._getRegistryForType(t);this._exec(e,i,t)}))}))}_exec(e,t,n){const i=vx(e);ax(n["before"+i],[],n),t[e](n),ax(n["after"+i],[],n)}_getRegistryForType(e){for(let t=0;t0&&this.getParsed(t-1);for(let b=t;b0&&Math.abs(n[h]-y[h])>g,m&&(c.parsed=n,c.raw=l.data[b]),d&&(c.options=u||this.resolveDataElementOptions(b,t.active?"active":i)),v||this.updateElement(t,b,c,i),y=n}this.updateSharedOptions(u,i,c)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}const n=e.dataset,i=n.options&&n.options.borderWidth||0;if(!t.length)return i;const r=t[0].size(this.resolveDataElementOptions(0)),o=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(i,r,o)/2}}lC.id="scatter",lC.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},lC.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:e=>"("+e.label+", "+e.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var cC=Object.freeze({__proto__:null,BarController:jT,BubbleController:HT,DoughnutController:$T,LineController:VT,PolarAreaController:WT,PieController:zT,RadarController:qT,ScatterController:lC});function uC(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class dC{constructor(e){this.options=e||{}}init(e){}formats(){return uC()}parse(e,t){return uC()}format(e,t){return uC()}add(e,t,n){return uC()}diff(e,t,n){return uC()}startOf(e,t,n){return uC()}endOf(e,t){return uC()}}dC.override=function(e){Object.assign(dC.prototype,e)};var hC={_date:dC};function fC(e,t,n,i){const{controller:r,data:o,_sorted:a}=e,s=r._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&a&&o.length){const e=s._reversePixels?qx:zx;if(!i)return e(o,t,n);if(r._sharedOptions){const i=o[0],r="function"==typeof i.getRange&&i.getRange(t);if(r){const i=e(o,t,n-r),a=e(o,t,n+r);return{lo:i.lo,hi:a.hi}}}}return{lo:0,hi:o.length-1}}function pC(e,t,n,i,r){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s{e[a](t[n],r)&&(o.push({element:e,datasetIndex:i,index:l}),s=s||e.inRange(t.x,t.y,r))})),i&&!s?[]:o}var bC={evaluateInteractionItems:pC,modes:{index(e,t,n,i){const r=XS(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?mC(e,r,o,i,a):vC(e,r,o,!1,i,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,i){const r=XS(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?mC(e,r,o,i,a):vC(e,r,o,!1,i,a);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;emC(e,XS(t,e),n.axis||"xy",i,n.includeInvisible||!1),nearest(e,t,n,i){const r=XS(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return vC(e,r,o,n.intersect,i,a)},x:(e,t,n,i)=>yC(e,XS(t,e),"x",n.intersect,i),y:(e,t,n,i)=>yC(e,XS(t,e),"y",n.intersect,i)}};const _C=["left","top","right","bottom"];function wC(e,t){return e.filter((e=>e.pos===t))}function xC(e,t){return e.filter((e=>-1===_C.indexOf(e.pos)&&e.box.axis===t))}function kC(e,t){return e.sort(((e,n)=>{const i=t?n:e,r=t?e:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function SC(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:i,stackWeight:r}=n;if(!e||!_C.includes(i))continue;const o=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return t}(e),{vBoxMaxWidth:i,hBoxMaxHeight:r}=t;let o,a,s;for(o=0,a=e.length;o{i[e]=Math.max(t[e],n[e])})),i}return i(e?["left","right"]:["top","bottom"])}function AC(e,t,n,i){const r=[];let o,a,s,l,c,u;for(o=0,a=e.length,c=0;oe.box.fullSize)),!0),i=kC(wC(t,"left"),!0),r=kC(wC(t,"right")),o=kC(wC(t,"top"),!0),a=kC(wC(t,"bottom")),s=xC(t,"x"),l=xC(t,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:wC(t,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;sx(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),h=Object.assign({},r);CC(h,gS(i));const f=Object.assign({maxPadding:h,w:o,h:a,x:r.left,y:r.top},r),p=SC(l.concat(c),d);AC(s.fullSize,f,d,p),AC(l,f,d,p),AC(c,f,d,p)&&AC(l,f,d,p),function(e){const t=e.maxPadding;function n(n){const i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(f),EC(s.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,EC(s.rightAndBottom,f,d,p),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},sx(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class NC{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,i){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,i?Math.floor(t/i):n)}}isAttached(e){return!0}updateConfig(e){}}class RC extends NC{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const LC="$chartjs",IC={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},FC=e=>null===e||""===e;const YC=!!ZS&&{passive:!0};function BC(e,t,n){e.canvas.removeEventListener(t,n,YC)}function UC(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function jC(e,t,n){const i=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||UC(n.addedNodes,i),t=t&&!UC(n.removedNodes,i);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function HC(e,t,n){const i=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||UC(n.removedNodes,i),t=t&&!UC(n.addedNodes,i);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const $C=new Map;let VC=0;function WC(){const e=window.devicePixelRatio;e!==VC&&(VC=e,$C.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function zC(e,t,n){const i=e.canvas,r=i&&HS(i);if(!r)return;const o=Zx(((e,t)=>{const i=r.clientWidth;n(e,t),i{const t=e[0],n=t.contentRect.width,i=t.contentRect.height;0===n&&0===i||o(n,i)}));return a.observe(r),function(e,t){$C.size||window.addEventListener("resize",WC),$C.set(e,t)}(e,o),a}function qC(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){$C.delete(e),$C.size||window.removeEventListener("resize",WC)}(e)}function XC(e,t,n){const i=e.canvas,r=Zx((t=>{null!==e.ctx&&n(function(e,t){const n=IC[e.type]||e.type,{x:i,y:r}=XS(e,t);return{type:n,chart:t,native:e,x:void 0!==i?i:null,y:void 0!==r?r:null}}(t,e))}),e,(e=>{const t=e[0];return[t,t.offsetX,t.offsetY]}));return function(e,t,n){e.addEventListener(t,n,YC)}(i,t,r),r}class GC extends NC{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[LC]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",FC(r)){const t=QS(e,"width");void 0!==t&&(e.width=t)}if(FC(i))if(""===e.style.height)e.height=e.width/(t||2);else{const t=QS(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[LC])return!1;const n=t[LC].initial;["height","width"].forEach((e=>{const i=n[e];Qw(i)?t.removeAttribute(e):t.setAttribute(e,i)}));const i=n.style||{};return Object.keys(i).forEach((e=>{t.style[e]=i[e]})),t.width=t.width,delete t[LC],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const i=e.$proxies||(e.$proxies={}),r={attach:jC,detach:HC,resize:zC}[t]||XC;i[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),i=n[t];if(!i)return;({attach:qC,detach:qC,resize:qC}[t]||BC)(e,t,i),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,i){return KS(e,t,n,i)}isAttached(e){const t=HS(e);return!(!t||!t.isConnected)}}class KC{constructor(){this._init=[]}notify(e,t,n,i){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=i?this._descriptors(e).filter(i):this._descriptors(e),o=this._notify(r,e,t,n);return"afterDestroy"===t&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,t,n,i){i=i||{};for(const r of e){const e=r.plugin;if(!1===ax(e[n],[t,i,r.options],e)&&i.cancelable)return!1}return!0}invalidate(){Qw(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,i=rx(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],i=Object.keys(sC.plugins.items);for(let o=0;oe.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(i(t,n),e,"stop"),this._notify(i(n,t),e,"start")}}function JC(e,t){return t||!1!==e?!0===e?{}:e:null}function ZC(e,{plugin:t,local:n},i,r){const o=e.pluginScopeKeys(t),a=e.getOptionScopes(i,o);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function QC(e,t){const n=Xk.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function eM(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(n=t.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.charAt(0).toLowerCase();var n}function tM(e){const t=e.options||(e.options={});t.plugins=rx(t.plugins,{}),t.scales=function(e,t){const n=Vk[e.type]||{scales:{}},i=t.scales||{},r=QC(e.type,t),o=Object.create(null),a=Object.create(null);return Object.keys(i).forEach((e=>{const t=i[e];if(!tx(t))return console.error("Invalid scale configuration for scale: ".concat(e));if(t._proxy)return console.warn("Ignoring resolver passed as options for scale: ".concat(e));const s=eM(e,t),l=function(e,t){return e===t?"_index_":"_value_"}(s,r),c=n.scales||{};o[s]=o[s]||e,a[e]=fx(Object.create(null),[{axis:s},t,c[s],c[l]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,s=n.indexAxis||QC(r,t),l=(Vk[r]||{}).scales||{};Object.keys(l).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,s),r=n[t+"AxisID"]||o[t]||t;a[r]=a[r]||Object.create(null),fx(a[r],[{axis:t},i[r],l[e]])}))})),Object.keys(a).forEach((e=>{const t=a[e];fx(t,[Xk.scales[t.type],Xk.scale])})),a}(e,t)}function nM(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const iM=new Map,rM=new Set;function oM(e,t){let n=iM.get(e);return n||(n=t(),iM.set(e,n),rM.add(n)),n}const aM=(e,t,n)=>{const i=gx(t,n);void 0!==i&&e.add(i)};class sM{constructor(e){this._config=function(e){return(e=e||{}).data=nM(e.data),tM(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=nM(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),tM(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return oM(e,(()=>[["datasets.".concat(e),""]]))}datasetAnimationScopeKeys(e,t){return oM("".concat(e,".transition.").concat(t),(()=>[["datasets.".concat(e,".transitions.").concat(t),"transitions.".concat(t)],["datasets.".concat(e),""]]))}datasetElementScopeKeys(e,t){return oM("".concat(e,"-").concat(t),(()=>[["datasets.".concat(e,".elements.").concat(t),"datasets.".concat(e),"elements.".concat(t),""]]))}pluginScopeKeys(e){const t=e.id,n=this.type;return oM("".concat(n,"-plugin-").concat(t),(()=>[["plugins.".concat(t),...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let i=n.get(e);return i&&!t||(i=new Map,n.set(e,i)),i}getOptionScopes(e,t,n){const{options:i,type:r}=this,o=this._cachedScopes(e,n),a=o.get(t);if(a)return a;const s=new Set;t.forEach((t=>{e&&(s.add(e),t.forEach((t=>aM(s,e,t)))),t.forEach((e=>aM(s,i,e))),t.forEach((e=>aM(s,Vk[r]||{},e))),t.forEach((e=>aM(s,Xk,e))),t.forEach((e=>aM(s,Wk,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),rM.has(t)&&o.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,Vk[t]||{},Xk.datasets[t]||{},{type:t},Xk,Wk]}resolveNamedOptions(e,t,n,i=[""]){const r={$shared:!0},{resolver:o,subPrefixes:a}=lM(this._resolverCache,e,i);let s=o;if(function(e,t){const{isScriptable:n,isIndexable:i}=xS(e);for(const r of t){const t=n(r),o=i(r),a=(o||t)&&e[r];if(t&&(bx(a)||cM(a))||o&&ex(a))return!0}return!1}(o,t)){r.$shared=!1;s=wS(o,n=bx(n)?n():n,this.createResolver(e,n,a))}for(const l of t)r[l]=s[l];return r}createResolver(e,t,n=[""],i){const{resolver:r}=lM(this._resolverCache,e,n);return tx(t)?wS(r,t,void 0,i):r}}function lM(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const r=n.join();let o=i.get(r);if(!o){o={resolver:_S(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},i.set(r,o)}return o}const cM=e=>tx(e)&&Object.getOwnPropertyNames(e).reduce(((t,n)=>t||bx(e[n])),!1);const uM=["top","bottom","left","right","chartArea"];function dM(e,t){return"top"===e||"bottom"===e||-1===uM.indexOf(e)&&"x"===t}function hM(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function fM(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),ax(n&&n.onComplete,[e],t)}function pM(e){const t=e.chart,n=t.options.animation;ax(n&&n.onProgress,[e],t)}function mM(e){return jS()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const gM={},vM=e=>{const t=mM(e);return Object.values(gM).filter((e=>e.canvas===t)).pop()};function yM(e,t,n){const i=Object.keys(e);for(const r of i){const i=+r;if(i>=t){const o=e[r];delete e[r],(n>0||i>t)&&(e[i+n]=o)}}}class bM{constructor(e,t){const n=this.config=new sM(t),i=mM(e),r=vM(i);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 o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!jS()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?RC:GC}(i)),this.platform.updateConfig(n);const a=this.platform.acquireContext(i,o.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=Zw(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=o,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 KC,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}((e=>this.update(e)),o.resizeDelay||0),this._dataChanges=[],gM[this.id]=this,a&&s?(mT.listen(this,"complete",fM),mT.listen(this,"progress",pM),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:i,_aspectRatio:r}=this;return Qw(e)?t&&r?r:i?n/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():JS(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Zk(this.canvas,this.ctx),this}stop(){return mT.stop(this),this}resize(e,t){mT.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,i=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,e,t,r),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,JS(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),ax(n.onResize,[this,o],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){sx(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,i=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let r=[];t&&(r=r.concat(Object.keys(t).map((e=>{const n=t[e],i=eM(e,n),r="r"===i,o="x"===i;return{options:n,dposition:r?"chartArea":o?"bottom":"left",dtype:r?"radialLinear":o?"category":"linear"}})))),sx(r,(t=>{const r=t.options,o=r.id,a=eM(o,r),s=rx(r.type,t.dtype);void 0!==r.position&&dM(r.position,a)===dM(t.dposition)||(r.position=t.dposition),i[o]=!0;let l=null;if(o in n&&n[o].type===s)l=n[o];else{l=new(sC.getScale(s))({id:o,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(r,e)})),sx(i,((e,t)=>{e||delete n[t]})),sx(n,(e=>{PC.configure(this,e,e.options),PC.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;et.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=t.length;n{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let l=0,c=this.data.datasets.length;l{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(hM("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){sx(this.scales,(e=>{PC.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);_x(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of t){yM(e,i,"_removeElements"===n?-r:r)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),i=n(0);for(let r=1;re.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;PC.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],sx(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,i=!n.disabled,r=this.chartArea,o={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(i&&nS(t,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),e.controller.draw(),i&&iS(t),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return tS(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,i){const r=bC.modes[t];return"function"==typeof r?r(this,e,n,i):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let i=n.filter((e=>e&&e._dataset===t)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=bS(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const i=n?"show":"hide",r=this.getDatasetMeta(e),o=r.controller._resolveAnimations(void 0,i);yx(t)?(r.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),o.update(r,{visible:n}),this.update((t=>t.datasetIndex===e?i:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),mT.remove(this),e=0,t=this.data.datasets.length;e{t.addEventListener(this,n,i),e[n]=i},i=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};sx(this.options.events,(e=>n(e,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,i)=>{t.addEventListener(this,n,i),e[n]=i},i=(n,i)=>{e[n]&&(t.removeEventListener(this,n,i),delete e[n])},r=(e,t)=>{this.canvas&&this.resize(e,t)};let o;const a=()=>{i("attach",a),this.attached=!0,this.resize(),n("resize",r),n("detach",o)};o=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():o()}unbindEvents(){sx(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},sx(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const i=n?"set":"remove";let r,o,a,s;for("dataset"===t&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),a=0,s=e.length;a{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}));!lx(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}_updateHoverStyles(e,t,n){const i=this.options.hover,r=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),o=r(t,e),a=n?e:r(e,t);o.length&&this.updateHoverStyle(o,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},i=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:i=[],options:r}=this,o=t,a=this._getActiveElements(e,i,n,o),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,i){return n&&"mouseout"!==e.type?i?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,ax(r.onHover,[e,a,this],this),s&&ax(r.onClick,[e,a,this],this));const c=!lx(a,i);return(c||t)&&(this._active=a,this._updateHoverStyles(a,i,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,i){if("mouseout"===e.type)return[];if(!n)return t;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,i)}}const _M=()=>sx(bM.instances,(e=>e._plugins.invalidate())),wM=!0;function xM(e,t,n){const{startAngle:i,pixelMargin:r,x:o,y:a,outerRadius:s,innerRadius:l}=t;let c=r/s;e.beginPath(),e.arc(o,a,s,i-c,n+c),l>r?(c=r/l,e.arc(o,a,l,n+c,i-c,!0)):e.arc(o,a,r,n+Cx,i-Cx),e.closePath(),e.clip()}function kM(e,t,n,i){const r=fS(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const o=(n-t)/2,a=Math.min(o,i*t/2),s=e=>{const t=(n-Math.min(o,e))*i/2;return $x(e,0,Math.min(o,t))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:$x(r.innerStart,0,a),innerEnd:$x(r.innerEnd,0,a)}}function SM(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function TM(e,t,n,i,r,o){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+i+n-c,0),h=u>0?u+i+n+c:0;let f=0;const p=r-l;if(i){const e=((u>0?u-i:0)+(d>0?d-i:0))/2;f=(p-(0!==e?p*e/(e+i):p))/2}const m=(p-Math.max(.001,p*d-n/wx)/d)/2,g=l+m+f,v=r-m-f,{outerStart:y,outerEnd:b,innerStart:_,innerEnd:w}=kM(t,h,d,v-g),x=d-y,k=d-b,S=g+y/x,T=v-b/k,C=h+_,M=h+w,D=g+_/C,A=v-w/M;if(e.beginPath(),o){if(e.arc(a,s,d,S,T),b>0){const t=SM(k,T,a,s);e.arc(t.x,t.y,b,T,v+Cx)}const t=SM(M,v,a,s);if(e.lineTo(t.x,t.y),w>0){const t=SM(M,A,a,s);e.arc(t.x,t.y,w,v+Cx,A+Math.PI)}if(e.arc(a,s,h,v-w/h,g+_/h,!0),_>0){const t=SM(C,D,a,s);e.arc(t.x,t.y,_,D+Math.PI,g-Cx)}const n=SM(x,g,a,s);if(e.lineTo(n.x,n.y),y>0){const t=SM(x,S,a,s);e.arc(t.x,t.y,y,g-Cx,S)}}else{e.moveTo(a,s);const t=Math.cos(S)*d+a,n=Math.sin(S)*d+s;e.lineTo(t,n);const i=Math.cos(T)*d+a,r=Math.sin(T)*d+s;e.lineTo(i,r)}e.closePath()}function CM(e,t,n,i,r,o){const{options:a}=t,{borderWidth:s,borderJoinStyle:l}=a,c="inner"===a.borderAlign;s&&(c?(e.lineWidth=2*s,e.lineJoin=l||"round"):(e.lineWidth=s,e.lineJoin=l||"bevel"),t.fullCircles&&function(e,t,n){const{x:i,y:r,startAngle:o,pixelMargin:a,fullCircles:s}=t,l=Math.max(t.outerRadius-a,0),c=t.innerRadius+a;let u;for(n&&xM(e,t,o+xx),e.beginPath(),e.arc(i,r,c,o+xx,o,!0),u=0;u{sC.add(...e),_M()}},unregister:{enumerable:wM,value:(...e)=>{sC.remove(...e),_M()}}});class MM extends XT{constructor(e){super(),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,e&&Object.assign(this,e)}inRange(e,t,n){const i=this.getProps(["x","y"],n),{angle:r,distance:o}=Yx(i,{x:e,y:t}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=this.options.spacing/2,h=rx(u,s-a)>=xx||Hx(r,a,s),f=Vx(o,l+d,c+d);return h&&f}getCenterPoint(e){const{x:t,y:n,startAngle:i,endAngle:r,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:s,spacing:l}=this.options,c=(i+r)/2,u=(o+a+l+s)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,i=(t.offset||0)/2,r=(t.spacing||0)/2,o=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>xx?Math.floor(n/xx):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();let a=0;if(i){a=i/2;const t=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(t)*a,Math.sin(t)*a),this.circumference>=wx&&(a=i)}e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor;const s=function(e,t,n,i,r){const{fullCircles:o,startAngle:a,circumference:s}=t;let l=t.endAngle;if(o){TM(e,t,n,i,a+xx,r);for(let t=0;ts&&o>s;return{count:i,start:l,loop:t.loop,ilen:c(a+(c?s-e:e))%o,b=()=>{f!==p&&(e.lineTo(g,p),e.lineTo(g,f),e.lineTo(g,m))};for(l&&(d=r[y(0)],e.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=r[y(u)],d.skip)continue;const t=d.x,n=d.y,i=0|t;i===h?(np&&(p=n),g=(v*g+t)/++v):(b(),e.lineTo(t,n),h=i,v=0,f=p=n),m=n}b()}function NM(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n)?PM:EM}MM.id="arc",MM.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},MM.defaultRoutes={backgroundColor:"backgroundColor"};const RM="function"==typeof Path2D;function LM(e,t,n,i){RM&&!t.options.segment?function(e,t,n,i){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,i)&&r.closePath()),DM(e,t.options),e.stroke(r)}(e,t,n,i):function(e,t,n,i){const{segments:r,options:o}=t,a=NM(t);for(const s of r)DM(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}(e,t,n,i)}class IM extends XT{constructor(e){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,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;US(this._points,n,e,i,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,i=e.options.spanGaps,r=n.length;if(!r)return[];const o=!!e._loop,{start:a,end:s}=function(e,t,n,i){let r=0,o=t-1;if(n&&!i)for(;rr&&e[o%t].skip;)o--;return o%=t,{start:r,end:o}}(n,r,o,i);return hT(e,!0===i?[{start:a,end:s,loop:o}]:function(e,t,n,i){const r=e.length,o=[];let a,s=t,l=e[t];for(a=t+1;a<=n;++a){const n=e[a%r];n.skip||n.stop?l.skip||(i=!1,o.push({start:t%r,end:(a-1)%r,loop:i}),t=s=n.stop?a:null):(s=a,l.skip&&(t=a)),l=n}return null!==s&&o.push({start:t%r,end:s%r,loop:i}),o}(n,a,s"borderDash"!==e&&"fill"!==e};class YM extends XT{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const i=this.options,{x:r,y:o}=this.getProps(["x","y"],n);return Math.pow(e-r,2)+Math.pow(t-o,2){qM(e)}))}var GM={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled)return void XM(e);const i=e.width;e.data.datasets.forEach(((t,r)=>{const{_data:o,indexAxis:a}=t,s=e.getDatasetMeta(r),l=o||t.data;if("y"===yS([a,e.options.indexAxis]))return;if(!s.controller.supportsDecimation)return;const c=e.scales[s.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(e.options.parsing)return;let{start:u,count:d}=function(e,t){const n=t.length;let i,r=0;const{iScale:o}=e,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(r=$x(zx(t,o.axis,a).lo,0,n-1)),i=c?$x(zx(t,o.axis,s).hi+1,r,n)-r:n-r,{start:r,count:i}}(s,l);if(d<=(n.threshold||4*i))return void qM(t);let h;switch(Qw(o)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":h=function(e,t,n,i,r){const o=r.samples||i;if(o>=n)return e.slice(t,t+n);const a=[],s=(n-2)/(o-2);let l=0;const c=t+n-1;let u,d,h,f,p,m=t;for(a[l++]=e[m],u=0;uh&&(h=f,d=e[i],p=i);a[l++]=d,m=p}return a[l++]=e[c],a}(l,u,d,i,n);break;case"min-max":h=function(e,t,n,i){let r,o,a,s,l,c,u,d,h,f,p=0,m=0;const g=[],v=t+n-1,y=e[t].x,b=e[v].x-y;for(r=t;rf&&(f=s,u=r),p=(m*p+o.x)/++m;else{const n=r-1;if(!Qw(c)&&!Qw(u)){const t=Math.min(c,u),i=Math.max(c,u);t!==d&&t!==n&&g.push({...e[t],x:p}),i!==d&&i!==n&&g.push({...e[i],x:p})}r>0&&n!==d&&g.push(e[n]),g.push(o),l=t,m=0,h=f=s,c=u=d=r}}return g}(l,u,d,i);break;default:throw new Error("Unsupported decimation algorithm '".concat(n.algorithm,"'"))}t._decimated=h}))},destroy(e){XM(e)}};function KM(e,t,n,i){if(i)return;let r=t[e],o=n[e];return"angle"===e&&(r=jx(r),o=jx(o)),{property:e,start:r,end:o}}function JM(e,t,n){for(;t>e;t--){const e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function ZM(e,t,n,i){return e&&t?i(e[n],t[n]):e?e[n]:t?t[n]:0}function QM(e,t){let n=[],i=!1;return ex(e)?(i=!0,n=e):n=function(e,t){const{x:n=null,y:i=null}=e||{},r=t.points,o=[];return t.segments.forEach((({start:e,end:t})=>{t=JM(e,t,r);const a=r[e],s=r[t];null!==i?(o.push({x:a.x,y:i}),o.push({x:s.x,y:i})):null!==n&&(o.push({x:n,y:a.y}),o.push({x:n,y:s.y}))})),o}(e,t),n.length?new IM({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function eD(e){return e&&!1!==e.fill}function tD(e,t,n){let i=e[t].fill;const r=[t];let o;if(!n)return i;for(;!1!==i&&-1===r.indexOf(i);){if(!nx(i))return i;if(o=e[i],!o)return!1;if(o.visible)return i;r.push(i),i=o.fill}return!1}function nD(e,t,n){const i=function(e){const t=e.options,n=t.fill;let i=rx(n&&n.target,n);void 0===i&&(i=!!t.backgroundColor);if(!1===i||null===i)return!1;if(!0===i)return"origin";return i}(e);if(tx(i))return!isNaN(i.value)&&i;let r=parseFloat(i);return nx(r)&&Math.floor(r)===r?function(e,t,n,i){"-"!==e&&"+"!==e||(n=t+n);if(n===t||n<0||n>=i)return!1;return n}(i[0],t,r,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function iD(e,t,n){const i=[];for(let r=0;r=0;--a){const t=r[a].$filler;t&&(t.line.updateControlPoints(o,t.axis),i&&t.fill&&sD(e.ctx,t,o))}},beforeDatasetsDraw(e,t,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=e.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){const t=i[r].$filler;eD(t)&&sD(e.ctx,t,e.chartArea)}},beforeDatasetDraw(e,t,n){const i=t.meta.$filler;eD(i)&&"beforeDatasetDraw"===n.drawTime&&sD(e.ctx,i,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const fD=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}};class pD extends XT{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.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(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,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 e=this.options.labels||{};let t=ax(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,i=vS(n.font),r=i.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=fD(n,r);let l,c;t.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(o,r,a,s)+10):(c=this.maxHeight,l=this._fitCols(o,r,a,s)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,i){const{ctx:r,maxWidth:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+a;let u=e;r.textAlign="left",r.textBaseline="middle";let d=-1,h=-c;return this.legendItems.forEach(((e,f)=>{const p=n+t/2+r.measureText(e.text).width;(0===f||l[l.length-1]+p+2*a>o)&&(u+=c,l[l.length-(f>0?0:1)]=0,h+=c,d++),s[f]={left:0,top:h,row:d,width:p,height:i},l[l.length-1]+=p+a})),u}_fitCols(e,t,n,i){const{ctx:r,maxHeight:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=o-e;let u=a,d=0,h=0,f=0,p=0;return this.legendItems.forEach(((e,o)=>{const m=n+t/2+r.measureText(e.text).width;o>0&&h+i+2*a>c&&(u+=d+a,l.push({width:d,height:h}),f+=d+a,p++,d=h=0),s[o]={left:f,top:h,col:p,width:m,height:i},d=Math.max(d,m),h+=i+a})),u+=d,l.push({width:d,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:i},rtl:r}}=this,o=oT(r,this.left,this.width);if(this.isHorizontal()){let r=0,a=ek(n,this.left+i,this.right-this.lineWidths[r]);for(const s of t)r!==s.row&&(r=s.row,a=ek(n,this.left+i,this.right-this.lineWidths[r])),s.top+=this.top+e+i,s.left=o.leftForLtr(o.x(a),s.width),a+=s.width+i}else{let r=0,a=ek(n,this.top+e+i,this.bottom-this.columnSizes[r].height);for(const s of t)s.col!==r&&(r=s.col,a=ek(n,this.top+e+i,this.bottom-this.columnSizes[r].height)),s.top=a,s.left+=this.left+i,s.left=o.leftForLtr(o.x(s.left),s.width),a+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;nS(e,this),this._draw(),iS(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:i}=this,{align:r,labels:o}=e,a=Xk.color,s=oT(e.rtl,this.left,this.width),l=vS(o.font),{color:c,padding:u}=o,d=l.size,h=d/2;let f;this.drawTitle(),i.textAlign=s.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:p,boxHeight:m,itemHeight:g}=fD(o,d),v=this.isHorizontal(),y=this._computeTitleHeight();f=v?{x:ek(r,this.left+u,this.right-n[0]),y:this.top+u+y,line:0}:{x:this.left+u,y:ek(r,this.top+y+u,this.bottom-t[0].height),line:0},aT(this.ctx,e.textDirection);const b=g+u;this.legendItems.forEach(((_,w)=>{i.strokeStyle=_.fontColor||c,i.fillStyle=_.fontColor||c;const x=i.measureText(_.text).width,k=s.textAlign(_.textAlign||(_.textAlign=o.textAlign)),S=p+h+x;let T=f.x,C=f.y;s.setWidth(this.width),v?w>0&&T+S+u>this.right&&(C=f.y+=b,f.line++,T=f.x=ek(r,this.left+u,this.right-n[f.line])):w>0&&C+b>this.bottom&&(T=f.x=T+t[f.line].width+u,f.line++,C=f.y=ek(r,this.top+y+u,this.bottom-t[f.line].height));!function(e,t,n){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;i.save();const r=rx(n.lineWidth,1);if(i.fillStyle=rx(n.fillStyle,a),i.lineCap=rx(n.lineCap,"butt"),i.lineDashOffset=rx(n.lineDashOffset,0),i.lineJoin=rx(n.lineJoin,"miter"),i.lineWidth=r,i.strokeStyle=rx(n.strokeStyle,a),i.setLineDash(rx(n.lineDash,[])),o.usePointStyle){const a={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},l=s.xPlus(e,p/2);eS(i,a,l,t+h,o.pointStyleWidth&&p)}else{const o=t+Math.max((d-m)/2,0),a=s.leftForLtr(e,p),l=mS(n.borderRadius);i.beginPath(),Object.values(l).some((e=>0!==e))?lS(i,{x:a,y:o,w:p,h:m,radius:l}):i.rect(a,o,p,m),i.fill(),0!==r&&i.stroke()}i.restore()}(s.x(T),C,_),T=((e,t,n,i)=>e===(i?"left":"right")?n:"center"===e?(t+n)/2:t)(k,T+p+h,v?T+S:this.right,e.rtl),function(e,t,n){aS(i,n.text,e,t+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(T),C,_),v?f.x+=S+u:f.y+=b})),sT(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=vS(t.font),i=gS(t.padding);if(!t.display)return;const r=oT(e.rtl,this.left,this.width),o=this.ctx,a=t.position,s=n.size/2,l=i.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=ek(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+ek(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const h=ek(a,u,u+d);o.textAlign=r.textAlign(Qx(a)),o.textBaseline="middle",o.strokeStyle=t.color,o.fillStyle=t.color,o.font=n.string,aS(o,t.text,h,c,n)}_computeTitleHeight(){const e=this.options.title,t=vS(e.font),n=gS(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,i,r;if(Vx(e,this.left,this.right)&&Vx(t,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;ne.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:o}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const a=e.controller.getStyle(n?0:void 0),s=gS(a.borderWidth);return{text:t[e.index].label,fillStyle:a.backgroundColor,fontColor:o,hidden:!e.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:a.borderColor,pointStyle:i||a.pointStyle,rotation:a.rotation,textAlign:r||a.textAlign,borderRadius:0,datasetIndex:e.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 gD extends XT{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.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(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const i=ex(n.text)?n.text.length:1;this._padding=gS(n.padding);const r=i*vS(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:i,right:r,options:o}=this,a=o.align;let s,l,c,u=0;return this.isHorizontal()?(l=ek(a,n,r),c=t+e,s=r-n):("left"===o.position?(l=n+e,c=ek(a,i,t),u=-.5*wx):(l=r-e,c=ek(a,t,i),u=.5*wx),s=i-t),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=vS(t.font),i=n.lineHeight/2+this._padding.top,{titleX:r,titleY:o,maxWidth:a,rotation:s}=this._drawArgs(i);aS(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:s,textAlign:Qx(t.align),textBaseline:"middle",translation:[r,o]})}}var vD={id:"title",_element:gD,start(e,t,n){!function(e,t){const n=new gD({ctx:e.ctx,options:t,chart:e});PC.configure(e,n,t),PC.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;PC.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const i=e.titleBlock;PC.configure(e,i,n),i.options=n},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 yD=new WeakMap;var bD={id:"subtitle",start(e,t,n){const i=new gD({ctx:e.ctx,options:n,chart:e});PC.configure(e,i,n),PC.addBox(e,i),yD.set(e,i)},stop(e){PC.removeBox(e,yD.get(e)),yD.delete(e)},beforeUpdate(e,t,n){const i=yD.get(e);PC.configure(e,i,n),i.options=n},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 _D={average(e){if(!e.length)return!1;let t,n,i=0,r=0,o=0;for(t=0,n=e.length;t-1?e.split("\n"):e}function kD(e,t){const{element:n,datasetIndex:i,index:r}=t,o=e.getDatasetMeta(i).controller,{label:a,value:s}=o.getLabelAndValue(r);return{chart:e,label:a,parsed:o.getParsed(r),raw:e.data.datasets[i].data[r],formattedValue:s,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function SD(e,t){const n=e.chart.ctx,{body:i,footer:r,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=vS(t.bodyFont),c=vS(t.titleFont),u=vS(t.footerFont),d=o.length,h=r.length,f=i.length,p=gS(t.padding);let m=p.height,g=0,v=i.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){m+=f*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-f)*l.lineHeight+(v-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let y=0;const b=function(e){g=Math.max(g,n.measureText(e).width+y)};return n.save(),n.font=c.string,sx(e.title,b),n.font=l.string,sx(e.beforeBody.concat(e.afterBody),b),y=t.displayColors?a+2+t.boxPadding:0,sx(i,(e=>{sx(e.before,b),sx(e.lines,b),sx(e.after,b)})),y=0,n.font=u.string,sx(e.footer,b),n.restore(),g+=p.width,{width:g,height:m}}function TD(e,t,n,i){const{x:r,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return"center"===i?c=r<=(s+l)/2?"left":"right":r<=o/2?c="left":r>=a-o/2&&(c="right"),function(e,t,n,i){const{x:r,width:o}=i,a=n.caretSize+n.caretPadding;return"left"===e&&r+o+a>t.width||"right"===e&&r-o-a<0||void 0}(c,e,t,n)&&(c="center"),c}function CD(e,t,n){const i=n.yAlign||t.yAlign||function(e,t){const{y:n,height:i}=t;return ne.height-i/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||TD(e,t,n,i),yAlign:i}}function MD(e,t,n,i){const{caretSize:r,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=r+o,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=mS(a);let p=function(e,t){let{x:n,width:i}=e;return"right"===t?n-=i:"center"===t&&(n-=i/2),n}(t,s);const m=function(e,t,n){let{y:i,height:r}=e;return"top"===t?i+=n:i-="bottom"===t?r+n:r/2,i}(t,l,c);return"center"===l?"left"===s?p+=c:"right"===s&&(p-=c):"left"===s?p-=Math.max(u,h)+r:"right"===s&&(p+=Math.max(d,f)+r),{x:$x(p,0,i.width-t.width),y:$x(m,0,i.height-t.height)}}function DD(e,t,n){const i=gS(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-i.right:e.x+i.left}function AD(e){return wD([],xD(e))}function OD(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}class ED extends XT{constructor(e){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=e.chart||e._chart,this._chart=this.chart,this.options=e.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(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&t.options.animation&&n.animations,r=new _T(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,bS(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,i=n.beforeTitle.apply(this,[e]),r=n.title.apply(this,[e]),o=n.afterTitle.apply(this,[e]);let a=[];return a=wD(a,xD(i)),a=wD(a,xD(r)),a=wD(a,xD(o)),a}getBeforeBody(e,t){return AD(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const{callbacks:n}=t,i=[];return sx(e,(e=>{const t={before:[],lines:[],after:[]},r=OD(n,e);wD(t.before,xD(r.beforeLabel.call(this,e))),wD(t.lines,r.label.call(this,e)),wD(t.after,xD(r.afterLabel.call(this,e))),i.push(t)})),i}getAfterBody(e,t){return AD(t.callbacks.afterBody.apply(this,[e]))}getFooter(e,t){const{callbacks:n}=t,i=n.beforeFooter.apply(this,[e]),r=n.footer.apply(this,[e]),o=n.afterFooter.apply(this,[e]);let a=[];return a=wD(a,xD(i)),a=wD(a,xD(r)),a=wD(a,xD(o)),a}_createItems(e){const t=this._active,n=this.chart.data,i=[],r=[],o=[];let a,s,l=[];for(a=0,s=t.length;ae.filter(t,i,r,n)))),e.itemSort&&(l=l.sort(((t,i)=>e.itemSort(t,i,n)))),sx(l,(t=>{const n=OD(e.callbacks,t);i.push(n.labelColor.call(this,t)),r.push(n.labelPointStyle.call(this,t)),o.push(n.labelTextColor.call(this,t))})),this.labelColors=i,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),i=this._active;let r,o=[];if(i.length){const e=_D[n.position].call(this,i,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const t=this._size=SD(this,n),a=Object.assign({},e,t),s=CD(this.chart,n,a),l=MD(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,r={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,i){const r=this.getCaretPosition(e,n,i);t.lineTo(r.x1,r.y1),t.lineTo(r.x2,r.y2),t.lineTo(r.x3,r.y3)}getCaretPosition(e,t,n){const{xAlign:i,yAlign:r}=this,{caretSize:o,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=mS(a),{x:d,y:h}=e,{width:f,height:p}=t;let m,g,v,y,b,_;return"center"===r?(b=h+p/2,"left"===i?(m=d,g=m-o,y=b+o,_=b-o):(m=d+f,g=m+o,y=b-o,_=b+o),v=m):(g="left"===i?d+Math.max(s,c)+o:"right"===i?d+f-Math.max(l,u)-o:this.caretX,"top"===r?(y=h,b=y-o,m=g-o,v=g+o):(y=h+p,b=y+o,m=g+o,v=g-o),_=y),{x1:m,x2:g,x3:v,y1:y,y2:b,y3:_}}drawTitle(e,t,n){const i=this.title,r=i.length;let o,a,s;if(r){const l=oT(n.rtl,this.x,this.width);for(e.x=DD(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",o=vS(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=o.string,s=0;s0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,lS(e,{x:t,y:p,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),lS(e,{x:n,y:p+1,w:l-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(t,p,l,s),e.strokeRect(t,p,l,s),e.fillStyle=o.backgroundColor,e.fillRect(n,p+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:i}=this,{bodySpacing:r,bodyAlign:o,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=vS(n.bodyFont);let d=u.lineHeight,h=0;const f=oT(n.rtl,this.x,this.width),p=function(n){t.fillText(n,f.x(e.x+h),e.y+d/2),e.y+=d+r},m=f.textAlign(o);let g,v,y,b,_,w,x;for(t.textAlign=o,t.textBaseline="middle",t.font=u.string,e.x=DD(this,m,n),t.fillStyle=n.bodyColor,sx(this.beforeBody,p),h=a&&"right"!==m?"center"===o?l/2+c:l+2+c:0,b=0,w=i.length;b0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,i=n&&n.x,r=n&&n.y;if(i||r){const n=_D[e.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=SD(this,e),a=Object.assign({},n,this._size),s=CD(t,e,a),l=MD(e,a,s,t);i._to===l.x&&r._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=o.width,this.height=o.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const i={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const o=gS(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(r,e,i,t),aT(e,t.textDirection),r.y+=o.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),sT(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,i=e.map((({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),r=!lx(n,i),o=this._positionChanged(i,t);(r||o)&&(this._active=i,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,r=this._active||[],o=this._getActiveElements(e,r,t,n),a=this._positionChanged(o,e),s=t||!lx(o,r)||a;return s&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,i){const r=this.options;if("mouseout"===e.type)return[];if(!i)return t;const o=this.chart.getElementsAtEventForMode(e,r.mode,r,n);return r.reverse&&o.reverse(),o}_positionChanged(e,t){const{caretX:n,caretY:i,options:r}=this,o=_D[r.position].call(this,e,t);return!1!==o&&(n!==o.x||i!==o.y)}}ED.positioners=_D;var PD={id:"tooltip",_element:ED,positioners:_D,afterInit(e,t,n){n&&(e.tooltip=new ED({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",n))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,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:{beforeTitle:Jw,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},ND=Object.freeze({__proto__:null,Decimation:GM,Filler:hD,Legend:mD,SubTitle:bD,Title:vD,Tooltip:PD});function RD(e,t,n,i){const r=e.indexOf(t);if(-1===r)return((e,t,n,i)=>("string"==typeof t?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,i);return r!==e.lastIndexOf(t)?n:r}class LD extends oC{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:i}of t)e[n]===i&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(Qw(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:$x(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:RD(n,e,rx(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===e&&t===r.length-1?r:r.slice(e,t+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let o=e;o<=t;o++)i.push({value:o});return i}getLabelForValue(e){const t=this.getLabels();return e>=0&&et.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function ID(e,t){const n=[],{bounds:i,step:r,min:o,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,h=r||1,f=c-1,{min:p,max:m}=t,g=!Qw(o),v=!Qw(a),y=!Qw(l),b=(m-p)/(u+1);let _,w,x,k,S=Ex((m-p)/f/h)*h;if(S<1e-14&&!g&&!v)return[{value:p},{value:m}];k=Math.ceil(m/S)-Math.floor(p/S),k>f&&(S=Ex(k*S/f/h)*h),Qw(s)||(_=Math.pow(10,s),S=Math.ceil(S*_)/_),"ticks"===i?(w=Math.floor(p/S)*S,x=Math.ceil(m/S)*S):(w=p,x=m),g&&v&&r&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-o)/r,S/1e3)?(k=Math.round(Math.min((a-o)/S,c)),S=(a-o)/k,w=o,x=a):y?(w=g?o:w,x=v?a:x,k=l-1,S=(x-w)/k):(k=(x-w)/S,k=Nx(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const T=Math.max(Fx(S),Fx(w));_=Math.pow(10,Qw(s)?T:s),w=Math.round(w*_)/_,x=Math.round(x*_)/_;let C=0;for(g&&(d&&w!==o?(n.push({value:o}),wi=t?i:e,a=e=>r=n?r:e;if(e){const e=Ox(i),t=Ox(r);e<0&&t<0?a(0):e>0&&t>0&&o(0)}if(i===r){let t=1;(r>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(t=Math.abs(.05*r)),a(r+t),e||o(i-t)}this.min=i,this.max=r}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:i}=e;return i?(t=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,t>1e3&&(console.warn("scales.".concat(this.id,".ticks.stepSize: ").concat(i," would result generating up to ").concat(t," ticks. Limiting to 1000.")),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=ID({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&Rx(i,this,"value"),e.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const i=(n-t)/Math.max(e.length-1,1)/2;t-=i,n+=i}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return rT(e,this.chart.options.locale,this.options.ticks.format)}}class BD extends YD{determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=nx(e)?e:0,this.max=nx(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=Lx(this.options.ticks.minRotation),i=(e?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,r.lineHeight/i))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}function UD(e){return 1===e/Math.pow(10,Math.floor(Ax(e)))}BD.id="linear",BD.defaults={ticks:{callback:KT.formatters.numeric}};class jD extends oC{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const n=YD.prototype.parse.apply(this,[e,t]);if(0!==n)return nx(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=nx(e)?Math.max(0,e):null,this.max=nx(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let n=this.min,i=this.max;const r=t=>n=e?n:t,o=e=>i=t?i:e,a=(e,t)=>Math.pow(10,Math.floor(Ax(e))+t);n===i&&(n<=0?(r(1),o(10)):(r(a(n,-1)),o(a(i,1)))),n<=0&&r(a(i,-1)),i<=0&&o(a(n,1)),this._zero&&this.min!==this._suggestedMin&&n===a(this.min,0)&&r(a(n,-1)),this.min=n,this.max=i}buildTicks(){const e=this.options,t=function(e,t){const n=Math.floor(Ax(t.max)),i=Math.ceil(t.max/Math.pow(10,n)),r=[];let o=ix(e.min,Math.pow(10,Math.floor(Ax(t.min)))),a=Math.floor(Ax(o)),s=Math.floor(o/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{r.push({value:o,major:UD(o)}),++s,10===s&&(s=1,++a,l=a>=0?1:l),o=Math.round(s*Math.pow(10,a)*l)/l}while(ar?{start:t-n,end:t}:{start:t,end:t+n}}function VD(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},n=Object.assign({},t),i=[],r=[],o=e._pointLabels.length,a=e.options.pointLabels,s=a.centerPointLabels?wx/o:0;for(let d=0;dt.r&&(s=(i.end-t.r)/o,e.r=Math.max(e.r,t.r+s)),r.startt.b&&(l=(r.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function zD(e){return 0===e||180===e?"center":e<180?"left":"right"}function qD(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function XD(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}function GD(e,t,n,i){const{ctx:r}=e;if(n)r.arc(e.xCenter,e.yCenter,t,0,xx);else{let n=e.getPointPosition(0,t);r.moveTo(n.x,n.y);for(let o=1;o{const n=ax(this.options.pointLabels.callback,[e,t],this);return n||0===n?n:""})).filter(((e,t)=>this.chart.getDataVisibility(t)))}fit(){const e=this.options;e.display&&e.pointLabels.display?VD(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,i){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,i))}getIndexAngle(e){return jx(e*(xx/(this._pointLabels.length||1))+Lx(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(Qw(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(Qw(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e=0;r--){const t=i.setContext(e.getPointLabelContext(r)),o=vS(t.font),{x:a,y:s,textAlign:l,left:c,top:u,right:d,bottom:h}=e._pointLabelItems[r],{backdropColor:f}=t;if(!Qw(f)){const e=mS(t.borderRadius),i=gS(t.backdropPadding);n.fillStyle=f;const r=c-i.left,o=u-i.top,a=d-c+i.width,s=h-u+i.height;Object.values(e).some((e=>0!==e))?(n.beginPath(),lS(n,{x:r,y:o,w:a,h:s,radius:e}),n.fill()):n.fillRect(r,o,a,s)}aS(n,e._pointLabels[r],a,s+o.lineHeight/2,o,{color:t.color,textAlign:l,textBaseline:"middle"})}}(this,r),i.display&&this.ticks.forEach(((e,t)=>{if(0!==t){a=this.getDistanceFromCenterForValue(e.value);!function(e,t,n,i){const r=e.ctx,o=t.circular,{color:a,lineWidth:s}=t;!o&&!i||!a||!s||n<0||(r.save(),r.strokeStyle=a,r.lineWidth=s,r.setLineDash(t.borderDash),r.lineDashOffset=t.borderDashOffset,r.beginPath(),GD(e,n,o,i),r.closePath(),r.stroke(),r.restore())}(this,i.setContext(this.getContext(t-1)),a,r)}})),n.display){for(e.save(),o=r-1;o>=0;o--){const i=n.setContext(this.getPointLabelContext(o)),{color:r,lineWidth:l}=i;l&&r&&(e.lineWidth=l,e.strokeStyle=r,e.setLineDash(i.borderDash),e.lineDashOffset=i.borderDashOffset,a=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),s=this.getPointPosition(o,a),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(s.x,s.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let r,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach(((i,a)=>{if(0===a&&!t.reverse)return;const s=n.setContext(this.getContext(a)),l=vS(s.font);if(r=this.getDistanceFromCenterForValue(this.ticks[a].value),s.showLabelBackdrop){e.font=l.string,o=e.measureText(i.label).width,e.fillStyle=s.backdropColor;const t=gS(s.backdropPadding);e.fillRect(-o/2-t.left,-r-l.size/2-t.top,o+t.width,l.size+t.height)}aS(e,i.label,0,-r,l,{color:s.color})})),e.restore()}drawTitle(){}}KD.id="radialLinear",KD.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:KT.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}},KD.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},KD.descriptors={angleLines:{_fallback:"grid"}};const JD={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}},ZD=Object.keys(JD);function QD(e,t){return e-t}function eA(e,t){if(Qw(t))return null;const n=e._adapter,{parser:i,round:r,isoWeekday:o}=e._parseOpts;let a=t;return"function"==typeof i&&(a=i(a)),nx(a)||(a="string"==typeof i?n.parse(a,i):n.parse(a)),null===a?null:(r&&(a="week"!==r||!Px(o)&&!0!==o?n.startOf(a,r):n.startOf(a,"isoWeek",o)),+a)}function tA(e,t,n,i){const r=ZD.length;for(let o=ZD.indexOf(e);o=t?n[i]:n[r]]=!0}}else e[t]=!0}function iA(e,t,n){const i=[],r={},o=t.length;let a,s;for(a=0;a=0&&(t[l].major=!0);return t}(e,i,r,n):i}class rA extends oC{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t){const n=e.time||(e.time={}),i=this._adapter=new hC._date(e.adapters.date);i.init(t),fx(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:eA(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:i,max:r,minDefined:o,maxDefined:a}=this.getUserBounds();function s(e){o||isNaN(e.min)||(i=Math.min(i,e.min)),a||isNaN(e.max)||(r=Math.max(r,e.max))}o&&a||(s(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||s(this.getMinMax(!1))),i=nx(i)&&!isNaN(i)?i:+t.startOf(Date.now(),n),r=nx(r)&&!isNaN(r)?r:+t.endOf(Date.now(),n)+1,this.min=Math.min(i,r-1),this.max=Math.max(i+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const r=this.min,o=function(e,t,n){let i=0,r=e.length;for(;ii&&e[r-1]>n;)r--;return i>0||r=ZD.indexOf(n);o--){const n=ZD[o];if(JD[n].common&&e._adapter.diff(r,i,n)>=t-1)return n}return ZD[n?ZD.indexOf(n):0]}(this,o.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(let t=ZD.indexOf(e)+1,n=ZD.length;t+e.value)))}initOffsets(e){let t,n,i=0,r=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),i=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,n=this.getDecimalForValue(e[e.length-1]),r=1===e.length?n:(n-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;i=$x(i,0,o),r=$x(r,0,o),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){const e=this._adapter,t=this.min,n=this.max,i=this.options,r=i.time,o=r.unit||tA(r.minUnit,t,n,this._getLabelCapacity(t)),a=rx(r.stepSize,1),s="week"===o&&r.isoWeekday,l=Px(s)||!0===s,c={};let u,d,h=t;if(l&&(h=+e.startOf(h,"isoWeek",s)),h=+e.startOf(h,l?"day":o),e.diff(n,t,o)>1e5*a)throw new Error(t+" and "+n+" are too far apart with stepSize of "+a+" "+o);const f="data"===i.ticks.source&&this.getDataTimestamps();for(u=h,d=0;ue-t)).map((e=>+e))}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}_tickFormatFunction(e,t,n,i){const r=this.options,o=r.time.displayFormats,a=this._unit,s=this._majorUnit,l=a&&o[a],c=s&&o[s],u=n[t],d=s&&c&&u&&u.major,h=this._adapter.format(e,i||(d?c:l)),f=r.ticks.callback;return f?ax(f,[h,t,n],this):h}generateTickLabels(e){let t,n,i;for(t=0,n=e.length;t0?a:1}getDataTimestamps(){let e,t,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(e=0,t=i.length;e=e[s].pos&&t<=e[l].pos&&({lo:s,hi:l}=zx(e,"pos",t)),({pos:i,time:o}=e[s]),({pos:r,time:a}=e[l])):(t>=e[s].time&&t<=e[l].time&&({lo:s,hi:l}=zx(e,"time",t)),({time:i,pos:o}=e[s]),({time:r,pos:a}=e[l]));const c=r-i;return c?o+(a-o)*(t-i)/c:o}rA.id="time",rA.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class aA extends rA{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=oA(t,this.min),this._tableRange=oA(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:n}=this,i=[],r=[];let o,a,s,l,c;for(o=0,a=e.length;o=t&&l<=n&&i.push(l);if(i.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(o=0,a=i.length;ot in e?lA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fA=(e,t)=>{for(var n in t||(t={}))uA.call(t,n)&&hA(e,n,t[n]);if(cA)for(var n of cA(t))dA.call(t,n)&&hA(e,n,t[n]);return e};const pA=["install","start","stop","beforeInit","afterInit","beforeUpdate","afterUpdate","beforeElementsUpdate","reset","beforeDatasetsUpdate","afterDatasetsUpdate","beforeDatasetUpdate","afterDatasetUpdate","beforeLayout","afterLayout","afterLayout","beforeRender","afterRender","resize","destroy","uninstall","afterTooltipDraw","beforeTooltipDraw"];void 0!==sA&&bM.register(...sA);const mA=pc({name:"Vue3ChartJs",props:{type:{type:String,required:!0},height:{type:Number,required:!1,default:null},width:{type:Number,required:!1,default:null},data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]}},emits:pA,setup(e,{emit:t}){const n=Ys(null),i=pA.reduce(((e,i)=>{const r=function(e,t=null){return{type:e,chartRef:t,preventDefault(){this._defaultPrevented=!0},isDefaultPrevented(){return!this._defaultPrevented},_defaultPrevented:!1}}(i,n);return fA(fA({},e),function(e,t){return{[t.type]:()=>(e(t.type,t),t.isDefaultPrevented())}}(t,r))}),{id:"Vue3ChartJsEventHookPlugin"}),r={chart:null,plugins:[i,...e.plugins],props:fA({},e)},o=()=>r.chart?r.chart.update():r.chart=new bM(n.value.getContext("2d"),{type:r.props.type,data:r.props.data,options:r.props.options,plugins:r.plugins});return Oc((()=>o())),{chartJSState:r,chartRef:n,render:o,resize:()=>r.chart&&r.chart.resize(),update:(e=750)=>{r.chart.data=fA(fA({},r.chart.data),r.props.data),r.chart.options=fA(fA({},r.chart.options),r.props.options),r.chart.update(e)},destroy:()=>{r.chart&&(r.chart.destroy(),r.chart=null)}}},render:e=>Vd("canvas",{ref:"chartRef",height:e.height,width:e.width})});function gA(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function vA(e){return function(t,n){var i;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):r;i=e.formattingValues[o]||e.formattingValues[r]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}return i[e.argumentCallback?e.argumentCallback(t):t]}}function yA(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,r=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;var a,s=o[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var r=i[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(r.length)}}}function _A(e){return(_A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wA(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function xA(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function kA(e){xA(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===_A(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function SA(e,t){xA(2,arguments);var n=kA(e),i=wA(t);return isNaN(i)?new Date(NaN):i?(n.setDate(n.getDate()+i),n):n}function TA(e,t){xA(2,arguments);var n=kA(e),i=wA(t);if(isNaN(i))return new Date(NaN);if(!i)return n;var r=n.getDate(),o=new Date(n.getTime());return o.setMonth(n.getMonth()+i+1,0),r>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function CA(e,t){if(xA(2,arguments),!t||"object"!==_A(t))return new Date(NaN);var n=t.years?wA(t.years):0,i=t.months?wA(t.months):0,r=t.weeks?wA(t.weeks):0,o=t.days?wA(t.days):0,a=t.hours?wA(t.hours):0,s=t.minutes?wA(t.minutes):0,l=t.seconds?wA(t.seconds):0,c=kA(e),u=i||n?TA(c,i+12*n):c,d=o||r?SA(u,o+7*r):u,h=1e3*(l+60*(s+60*a));return new Date(d.getTime()+h)}mA.registerGlobalPlugins=e=>{bM.register(...e)},mA.install=(e,t={})=>{var n;e.component(mA.name,mA),(null==(n=null==t?void 0:t.plugins)?void 0:n.length)&&mA.registerGlobalPlugins(t.plugins)};var MA={};function DA(){return MA}function AA(e,t){var n,i,r,o,a,s,l,c;xA(1,arguments);var u=DA(),d=wA(null!==(n=null!==(i=null!==(r=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=kA(e),f=h.getDay(),p=(f=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),OA(n)}function PA(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function NA(e){xA(1,arguments);var t=kA(e);return t.setHours(0,0,0,0),t}function RA(e,t){return xA(2,arguments),TA(e,3*wA(t))}function LA(e,t){return xA(2,arguments),TA(e,12*wA(t))}var IA=6e4,FA=36e5;function YA(e){return xA(1,arguments),e instanceof Date||"object"===_A(e)&&"[object Date]"===Object.prototype.toString.call(e)}function BA(e){if(xA(1,arguments),!YA(e)&&"number"!=typeof e)return!1;var t=kA(e);return!isNaN(Number(t))}function UA(e){xA(1,arguments);var t=kA(e);return Math.floor(t.getMonth()/3)+1}function jA(e,t){var n;xA(1,arguments);var i=e||{},r=kA(i.start),o=kA(i.end).getTime();if(!(r.getTime()<=o))throw new RangeError("Invalid interval");var a=[],s=r;s.setHours(0,0,0,0);var l=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=o;)a.push(kA(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return a}function HA(e){xA(1,arguments);var t=kA(e),n=t.getMonth(),i=n-n%3;return t.setMonth(i,1),t.setHours(0,0,0,0),t}function $A(e){xA(1,arguments);var t=kA(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function VA(e){xA(1,arguments);var t=kA(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function WA(e){xA(1,arguments);var t=kA(e),n=t.getMonth(),i=n-n%3+3;return t.setMonth(i,0),t.setHours(23,59,59,999),t}function zA(e,t){return xA(2,arguments),function(e,t){xA(2,arguments);var n=kA(e).getTime(),i=wA(t);return new Date(n+i)}(e,-wA(t))}function qA(e){xA(1,arguments);var t=kA(e),n=t.getUTCDay(),i=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function XA(e){xA(1,arguments);var t=kA(e),n=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var r=qA(i),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=qA(o);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}var GA=6048e5;function KA(e){xA(1,arguments);var t=kA(e),n=qA(t).getTime()-function(e){xA(1,arguments);var t=XA(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),qA(n)}(t).getTime();return Math.round(n/GA)+1}function JA(e,t){var n,i,r,o,a,s,l,c;xA(1,arguments);var u=DA(),d=wA(null!==(n=null!==(i=null!==(r=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=kA(e),f=h.getUTCDay(),p=(f=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,f),p.setUTCHours(0,0,0,0);var m=JA(p,t),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var v=JA(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}var QA=6048e5;function eO(e,t){xA(1,arguments);var n=kA(e),i=JA(n,t).getTime()-function(e,t){var n,i,r,o,a,s,l,c;xA(1,arguments);var u=DA(),d=wA(null!==(n=null!==(i=null!==(r=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),h=ZA(e,t),f=new Date(0);return f.setUTCFullYear(h,0,d),f.setUTCHours(0,0,0,0),JA(f,t)}(n,t).getTime();return Math.round(i/QA)+1}function tO(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length0?n:1-n;return tO("yy"===t?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):tO(n+1,2)},d:function(e,t){return tO(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return tO(e.getUTCHours()%12||12,t.length)},H:function(e,t){return tO(e.getUTCHours(),t.length)},m:function(e,t){return tO(e.getUTCMinutes(),t.length)},s:function(e,t){return tO(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds();return tO(Math.floor(i*Math.pow(10,n-3)),t.length)}};var iO="midnight",rO="noon",oO="morning",aO="afternoon",sO="evening",lO="night";function cO(e,t){var n=e>0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),o=i%60;if(0===o)return n+String(r);var a=t||"";return n+String(r)+a+tO(o,2)}function uO(e,t){return e%60==0?(e>0?"-":"+")+tO(Math.abs(e)/60,2):dO(e,t)}function dO(e,t){var n=t||"",i=e>0?"-":"+",r=Math.abs(e);return i+tO(Math.floor(r/60),2)+n+tO(r%60,2)}const hO={G:function(e,t,n){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var i=e.getUTCFullYear(),r=i>0?i:1-i;return n.ordinalNumber(r,{unit:"year"})}return nO.y(e,t)},Y:function(e,t,n,i){var r=ZA(e,i),o=r>0?r:1-r;return"YY"===t?tO(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):tO(o,t.length)},R:function(e,t){return tO(XA(e),t.length)},u:function(e,t){return tO(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return tO(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return tO(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var i=e.getUTCMonth();switch(t){case"M":case"MM":return nO.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return tO(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var r=eO(e,i);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):tO(r,t.length)},I:function(e,t,n){var i=KA(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):tO(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):nO.d(e,t)},D:function(e,t,n){var i=function(e){xA(1,arguments);var t=kA(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=n-t.getTime();return Math.floor(i/864e5)+1}(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):tO(i,t.length)},E:function(e,t,n){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return tO(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return tO(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),r=0===i?7:i;switch(t){case"i":return String(r);case"ii":return tO(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var i,r=e.getUTCHours();switch(i=12===r?rO:0===r?iO:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var i,r=e.getUTCHours();switch(i=r>=17?sO:r>=12?aO:r>=4?oO:lO,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var i=e.getUTCHours()%12;return 0===i&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return nO.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):nO.H(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):tO(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):tO(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):nO.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):nO.s(e,t)},S:function(e,t){return nO.S(e,t)},X:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return uO(r);case"XXXX":case"XX":return dO(r);default:return dO(r,":")}},x:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"x":return uO(r);case"xxxx":case"xx":return dO(r);default:return dO(r,":")}},O:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+cO(r,":");default:return"GMT"+dO(r,":")}},z:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+cO(r,":");default:return"GMT"+dO(r,":")}},t:function(e,t,n,i){var r=i._originalDate||e;return tO(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,i){return tO((i._originalDate||e).getTime(),t.length)}};var fO=function(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"});default:return t.date({width:"full"})}},pO=function(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"});default:return t.time({width:"full"})}};const mO={p:pO,P:function(e,t){var n,i=e.match(/(P+)(p+)?/)||[],r=i[1],o=i[2];if(!o)return fO(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",fO(r,t)).replace("{{time}}",pO(o,t))}};var gO=["D","DD"],vO=["YY","YYYY"];function yO(e){return-1!==gO.indexOf(e)}function bO(e){return-1!==vO.indexOf(e)}function _O(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var wO={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"}};const xO=function(e,t,n){var i,r=wO[e];return i="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};var kO={date:gA({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:gA({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:gA({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var SO={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const TO={code:"en-US",formatDistance:xO,formatLong:kO,formatRelative:function(e,t,n,i){return SO[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:vA({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:vA({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:vA({values:{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"]},defaultWidth:"wide"}),day:vA({values:{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"]},defaultWidth:"wide"}),dayPeriod:vA({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:bA({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:yA({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:yA({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:yA({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:yA({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:yA({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var CO=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,MO=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,DO=/^'([^]*?)'?$/,AO=/''/g,OO=/[a-zA-Z]/;function EO(e,t,n){var i,r,o,a,s,l,c,u,d,h,f,p,m,g,v,y,b,_;xA(2,arguments);var w=String(t),x=DA(),k=null!==(i=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:x.locale)&&void 0!==i?i:TO,S=wA(null!==(o=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:x.firstWeekContainsDate)&&void 0!==a?a:null===(d=x.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==o?o:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=wA(null!==(f=null!==(p=null!==(m=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:x.weekStartsOn)&&void 0!==p?p:null===(b=x.locale)||void 0===b||null===(_=b.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==f?f:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var C=kA(e);if(!BA(C))throw new RangeError("Invalid time value");var M=zA(C,PA(C)),D={firstWeekContainsDate:S,weekStartsOn:T,locale:k,_originalDate:C};return w.match(MO).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,mO[t])(e,k.formatLong):e})).join("").match(CO).map((function(i){if("''"===i)return"'";var r=i[0];if("'"===r)return function(e){var t=e.match(DO);if(!t)return e;return t[1].replace(AO,"'")}(i);var o=hO[r];if(o)return null!=n&&n.useAdditionalWeekYearTokens||!bO(i)||_O(i,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!yO(i)||_O(i,t,String(e)),o(M,i,k.localize,D);if(r.match(OO))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return i})).join("")}function PO(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function NO(e){return xA(1,arguments),kA(e).getHours()}function RO(e){return xA(1,arguments),kA(e).getMinutes()}function LO(e){return xA(1,arguments),kA(e).getMonth()}function IO(e){return xA(1,arguments),kA(e).getSeconds()}function FO(e,t){var n,i,r,o,a,s,l,c;xA(1,arguments);var u=DA(),d=wA(null!==(n=null!==(i=null!==(r=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),h=function(e,t){var n,i,r,o,a,s,l,c;xA(1,arguments);var u=kA(e),d=u.getFullYear(),h=DA(),f=wA(null!==(n=null!==(i=null!==(r=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==r?r:h.firstWeekContainsDate)&&void 0!==i?i:null===(l=h.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setFullYear(d+1,0,f),p.setHours(0,0,0,0);var m=AA(p,t),g=new Date(0);g.setFullYear(d,0,f),g.setHours(0,0,0,0);var v=AA(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}(e,t),f=new Date(0);return f.setFullYear(h,0,d),f.setHours(0,0,0,0),AA(f,t)}function YO(e){return xA(1,arguments),kA(e).getFullYear()}function BO(e,t){xA(2,arguments);var n=kA(e),i=kA(t);return n.getTime()>i.getTime()}function UO(e,t){xA(2,arguments);var n=kA(e),i=kA(t);return n.getTime()e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function VO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WO(e,t){return(WO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function zO(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WO(e,t)}function qO(e){return(qO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function XO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(rN){return!1}}();return function(){var n,i=qO(e);if(t){var r=qO(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===_A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return VO(e)}(this,n)}}function GO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KO(e){var t=function(e,t){if("object"!==_A(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==_A(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_A(t)?t:String(t)}function JO(e,t){for(var n=0;n0,r=i?t:1-t;if(r<=50)n=e||100;else{var o=r+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return i?n:1-n}function FE(e){return e%400==0||e%4==0&&e%100!=0}var YE=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o0}},{key:"set",value:function(e,t,n){var i=e.getUTCFullYear();if(n.isTwoDigitYear){var r=IE(n.year,i);return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(),BE=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o0}},{key:"set",value:function(e,t,n,i){var r=ZA(e,i);if(n.isTwoDigitYear){var o=IE(n.year,r);return e.setUTCFullYear(o,0,i.firstWeekContainsDate),e.setUTCHours(0,0,0,0),JA(e,i)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,i.firstWeekContainsDate),e.setUTCHours(0,0,0,0),JA(e,i)}}]),n}(),UE=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(),$E=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(),VE=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(),WE=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}();var zE=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=1&&t<=53}},{key:"set",value:function(e,t,n,i){return JA(function(e,t,n){xA(2,arguments);var i=kA(e),r=wA(t),o=eO(i,n)-r;return i.setUTCDate(i.getUTCDate()-7*o),i}(e,n,i),i)}}]),n}();var qE=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=1&&t<=53}},{key:"set",value:function(e,t,n){return qA(function(e,t){xA(2,arguments);var n=kA(e),i=wA(t),r=KA(n)-i;return n.setUTCDate(n.getUTCDate()-7*r),n}(e,n))}}]),n}(),XE=[31,28,31,30,31,30,31,31,30,31,30,31],GE=[31,29,31,30,31,30,31,31,30,31,30,31],KE=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=1&&t<=GE[i]:t>=1&&t<=XE[i]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(),JE=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}();function ZE(e,t,n){var i,r,o,a,s,l,c,u;xA(2,arguments);var d=DA(),h=wA(null!==(i=null!==(r=null!==(o=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(s=n.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:d.weekStartsOn)&&void 0!==r?r:null===(c=d.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==i?i:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=kA(e),p=wA(t),m=((p%7+7)%7=0&&t<=6}},{key:"set",value:function(e,t,n,i){return(e=ZE(e,n,i)).setUTCHours(0,0,0,0),e}}]),n}(),eP=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=0&&t<=6}},{key:"set",value:function(e,t,n,i){return(e=ZE(e,n,i)).setUTCHours(0,0,0,0),e}}]),n}(),tP=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=0&&t<=6}},{key:"set",value:function(e,t,n,i){return(e=ZE(e,n,i)).setUTCHours(0,0,0,0),e}}]),n}();var nP=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){xA(2,arguments);var n=wA(t);n%7==0&&(n-=7);var i=kA(e),r=((n%7+7)%7<1?7:0)+n-i.getUTCDay();return i.setUTCDate(i.getUTCDate()+r),i}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(),iP=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=1&&t<=12}},{key:"set",value:function(e,t,n){var i=e.getUTCHours()>=12;return i&&n<12?e.setUTCHours(n+12,0,0,0):i||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(),sP=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(),lP=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(),cP=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=1&&t<=24}},{key:"set",value:function(e,t,n){var i=n<=24?n%24:n;return e.setUTCHours(i,0,0,0),e}}]),n}(),uP=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(),dP=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(),hP=function(e){zO(n,iE);var t=XO(n);function n(){var e;GO(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=wA(null!==(p=null!==(m=null!==(g=null!==(v=null==i?void 0:i.weekStartsOn)&&void 0!==v?v:null==i||null===(y=i.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:S.weekStartsOn)&&void 0!==m?m:null===(_=S.locale)||void 0===_||null===(w=_.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?kA(n):new Date(NaN);var D,A={firstWeekContainsDate:C,weekStartsOn:M,locale:T},O=[new nE],E=k.match(bP).map((function(e){var t=e[0];return t in mO?(0,mO[t])(e,T.formatLong):e})).join("").match(yP),P=[],N=$O(E);try{var R=function(){var t=D.value;null!=i&&i.useAdditionalWeekYearTokens||!bO(t)||_O(t,k,e),null!=i&&i.useAdditionalDayOfYearTokens||!yO(t)||_O(t,k,e);var n=t[0],r=vP[n];if(r){var o=r.incompatibleTokens;if(Array.isArray(o)){var a=P.find((function(e){return o.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===r.incompatibleTokens&&P.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));P.push({token:n,fullToken:t});var s=r.run(x,t,T.match,A);if(!s)return{v:new Date(NaN)};O.push(s.setter),x=s.rest}else{if(n.match(kP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(_P)[1].replace(wP,"'")),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(N.s();!(D=N.n()).done;){var L=R();if("object"===_A(L))return L.v}}catch(V){N.e(V)}finally{N.f()}if(x.length>0&&xP.test(x))return new Date(NaN);var I=O.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return O.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),F=kA(n);if(isNaN(F.getTime()))return new Date(NaN);var Y,B=zA(F,PA(F)),U={},j=$O(I);try{for(j.s();!(Y=j.n()).done;){var H=Y.value;if(!H.validate(B,A))return new Date(NaN);var $=H.set(B,U,A);Array.isArray($)?(B=$[0],PO(U,$[1])):B=$}}catch(V){j.e(V)}finally{j.f()}return B}function TP(e,t){xA(2,arguments);var n=HA(e),i=HA(t);return n.getTime()===i.getTime()}function CP(e,t){var n;xA(1,arguments);var i=wA(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r,o=function(e){var t,n={},i=e.split(MP.dateTimeDelimiter);if(i.length>2)return n;/:/.test(i[0])?t=i[0]:(n.date=i[0],t=i[1],MP.timeZoneDelimiter.test(n.date)&&(n.date=e.split(MP.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var r=MP.timezone.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}(e);if(o.date){var a=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:NaN,restDateString:""};var r=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:null===o?r:100*o,restDateString:e.slice((i[1]||i[2]).length)}}(o.date,i);r=function(e,t){if(null===t)return new Date(NaN);var n=e.match(DP);if(!n)return new Date(NaN);var i=!!n[4],r=EP(n[1]),o=EP(n[2])-1,a=EP(n[3]),s=EP(n[4]),l=EP(n[5])-1;if(i)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){var i=new Date(0);i.setUTCFullYear(e,0,4);var r=i.getUTCDay()||7,o=7*(t-1)+n+1-r;return i.setUTCDate(i.getUTCDate()+o),i}(t,s,l):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(NP[t]||(RP(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(RP(e)?366:365)}(t,r)?(c.setUTCFullYear(t,o,Math.max(r,a)),c):new Date(NaN)}(a.restDateString,a.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var s,l=r.getTime(),c=0;if(o.time&&(c=function(e){var t=e.match(AP);if(!t)return NaN;var n=PP(t[1]),i=PP(t[2]),r=PP(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,r))return NaN;return n*FA+i*IA+1e3*r}(o.time),isNaN(c)))return new Date(NaN);if(!o.timezone){var u=new Date(l+c),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return s=function(e){if("Z"===e)return 0;var t=e.match(OP);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,r))return NaN;return n*(i*FA+r*IA)}(o.timezone),isNaN(s)?new Date(NaN):new Date(l+c+s)}var MP={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},DP=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,AP=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,OP=/^([+-])(\d{2})(?::?(\d{2}))?$/;function EP(e){return e?parseInt(e):1}function PP(e){return e&&parseFloat(e.replace(",","."))||0}var NP=[31,null,31,30,31,30,31,31,30,31,30,31];function RP(e){return e%400==0||e%4==0&&e%100!=0}function LP(e,t){xA(2,arguments);var n=kA(e),i=wA(t),r=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(r,i,15),a.setHours(0,0,0,0);var s=function(e){xA(1,arguments);var t=kA(e),n=t.getFullYear(),i=t.getMonth(),r=new Date(0);return r.setFullYear(n,i+1,0),r.setHours(0,0,0,0),r.getDate()}(a);return n.setMonth(i,Math.min(o,s)),n}function IP(e,t){if(xA(2,arguments),"object"!==_A(t)||null===t)throw new RangeError("values parameter must be an object");var n=kA(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=LP(n,t.month)),null!=t.date&&n.setDate(wA(t.date)),null!=t.hours&&n.setHours(wA(t.hours)),null!=t.minutes&&n.setMinutes(wA(t.minutes)),null!=t.seconds&&n.setSeconds(wA(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(wA(t.milliseconds)),n)}function FP(e,t){xA(2,arguments);var n=kA(e),i=wA(t);return n.setHours(i),n}function YP(e,t){xA(2,arguments);var n=kA(e),i=wA(t);return n.setMilliseconds(i),n}function BP(e,t){xA(2,arguments);var n=kA(e),i=wA(t);return n.setMinutes(i),n}function UP(e,t){xA(2,arguments);var n=kA(e),i=wA(t);return n.setSeconds(i),n}function jP(e,t){xA(2,arguments);var n=kA(e),i=wA(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(i),n)}function HP(e,t){return xA(2,arguments),TA(e,-wA(t))}function $P(e,t){if(xA(2,arguments),!t||"object"!==_A(t))return new Date(NaN);var n=t.years?wA(t.years):0,i=t.months?wA(t.months):0,r=t.weeks?wA(t.weeks):0,o=t.days?wA(t.days):0,a=t.hours?wA(t.hours):0,s=t.minutes?wA(t.minutes):0,l=t.seconds?wA(t.seconds):0,c=function(e,t){return xA(2,arguments),SA(e,-wA(t))}(HP(e,i+12*n),o+7*r),u=1e3*(l+60*(s+60*a));return new Date(c.getTime()-u)}function VP(e,t){return xA(2,arguments),LA(e,-wA(t))}var WP={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}};const zP=function(e,t,n){var i;n=n||{};var r=WP[e];return i="string"==typeof r?r:1===t?n.addSuffix&&r.oneWithSuffix?r.oneWithSuffix:r.one:n.addSuffix&&r.otherWithSuffix?r.otherWithSuffix.replace("{{count}}",String(t)):r.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?i+"後":i+"前":i};var qP={date:gA({formats:{full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:gA({formats:{full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:gA({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};var XP={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"};const GP={code:"ja",formatDistance:zP,formatLong:qP,formatRelative:function(e,t,n,i){return XP[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(String(null==t?void 0:t.unit)){case"year":return"".concat(n,"年");case"quarter":return"第".concat(n,"四半期");case"month":return"".concat(n,"月");case"week":return"第".concat(n,"週");case"date":return"".concat(n,"日");case"hour":return"".concat(n,"時");case"minute":return"".concat(n,"分");case"second":return"".concat(n,"秒");default:return"".concat(n)}},era:vA({values:{narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},defaultWidth:"wide"}),quarter:vA({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:vA({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},defaultWidth:"wide"}),day:vA({values:{narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},defaultWidth:"wide"}),dayPeriod:vA({values:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultWidth:"wide",formattingValues:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:bA({matchPattern:/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:yA({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:"any"}),quarter:yA({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:yA({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:yA({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:"wide",parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:"any"}),dayPeriod:yA({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function KP(){return Qu(),rd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[dd("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"}),dd("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"}),dd("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"}),dd("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"})])}function JP(){return Qu(),rd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[dd("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"}),dd("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"})])}function ZP(){return Qu(),rd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[dd("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"})])}function QP(){return Qu(),rd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[dd("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"})])}function eN(){return Qu(),rd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[dd("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"}),dd("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"})])}function tN(){return Qu(),rd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[dd("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"})])}function nN(){return Qu(),rd("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[dd("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"})])}function iN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}KP.compatConfig={MODE:3},JP.compatConfig={MODE:3},ZP.compatConfig={MODE:3},QP.compatConfig={MODE:3},eN.compatConfig={MODE:3},tN.compatConfig={MODE:3},nN.compatConfig={MODE:3};var rN,oN={exports:{}};(rN=oN).exports=function(e){return e&&e.__esModule?e:{default:e}},rN.exports.__esModule=!0,rN.exports.default=rN.exports;var aN=oN.exports,sN={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default}(sN,sN.exports);const lN=iN(sN.exports);var cN={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default}(cN,cN.exports);const uN=iN(cN.exports);function dN(e,t){var n=function(e){if(!fN[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===t;fN[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return fN[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),i=[],r=0;r=0&&(i[o]=parseInt(n[r].value,10))}return i}catch(a){if(a instanceof RangeError)return[NaN];throw a}}(n,e):function(e,t){var n=e.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[i[3],i[1],i[2],i[4],i[5],i[6]]}(n,e)}var hN={year:0,month:1,day:2,hour:3,minute:4,second:5};var fN={};function pN(e,t,n,i,r,o,a){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(i,r,o,a),s}var mN=36e5,gN=6e4,vN={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function yN(e,t,n){var i,r,o;if(""===e||(i=vN.timezoneZ.exec(e)))return 0;if(i=vN.timezoneHH.exec(e))return _N(o=parseInt(i[1],10))?-o*mN:NaN;if(i=vN.timezoneHHMM.exec(e)){o=parseInt(i[1],10);var a=parseInt(i[2],10);return _N(o,a)?(r=Math.abs(o)*mN+a*gN,o>0?-r:r):NaN}if(function(e){if(wN[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),wN[e]=!0,!0}catch(t){return!1}}(e)){t=new Date(t||Date.now());var s=n?t:function(e){return pN(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),l=bN(s,e),c=n?l:function(e,t,n){var i=e.getTime(),r=i-t,o=bN(new Date(r),n);if(t===o)return t;r-=o-t;var a=bN(new Date(r),n);return o===a?o:Math.max(o,a)}(t,l,e);return-c}return NaN}function bN(e,t){var n=dN(e,t),i=pN(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),r=e.getTime(),o=r%1e3;return i-(r-=o>=0?o:1e3+o)}function _N(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var wN={};var xN=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,kN=36e5,SN=6e4,TN=2,CN={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:xN};function MN(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},i=null==n.additionalDigits?TN:lN(n.additionalDigits);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r=function(e){var t,n={},i=CN.dateTimePattern.exec(e);if(i?(n.date=i[1],t=i[3]):(i=CN.datePattern.exec(e),i?(n.date=i[1],t=i[2]):(n.date=null,t=e)),t){var r=CN.timeZone.exec(t);r?(n.time=t.replace(r[1],""),n.timeZone=r[1].trim()):n.time=t}return n}(e),o=function(e,t){var n,i=CN.YYY[t],r=CN.YYYYY[t];if(n=CN.YYYY.exec(e)||r.exec(e),n){var o=n[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(n=CN.YY.exec(e)||i.exec(e),n){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(r.date,i),a=o.year,s=function(e,t){if(null===t)return null;var n,i,r,o;if(0===e.length)return i=new Date(0),i.setUTCFullYear(t),i;if(n=CN.MM.exec(e),n)return i=new Date(0),r=parseInt(n[1],10)-1,PN(t,r)?(i.setUTCFullYear(t,r),i):new Date(NaN);if(n=CN.DDD.exec(e),n){i=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=EN(e);return!(n&&t>366||!n&&t>365)}(t,a)?(i.setUTCFullYear(t,0,a),i):new Date(NaN)}if(n=CN.MMDD.exec(e),n){i=new Date(0),r=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return PN(t,r,s)?(i.setUTCFullYear(t,r,s),i):new Date(NaN)}if(n=CN.Www.exec(e),n)return o=parseInt(n[1],10)-1,NN(t,o)?DN(t,o):new Date(NaN);if(n=CN.WwwD.exec(e),n){o=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return NN(t,o,l)?DN(t,o,l):new Date(NaN)}return null}(o.restDateString,a);if(isNaN(s))return new Date(NaN);if(s){var l,c=s.getTime(),u=0;if(r.time&&(u=function(e){var t,n,i;if(t=CN.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),RN(n)?n%24*kN:NaN;if(t=CN.HHMM.exec(e),t)return n=parseInt(t[1],10),i=parseFloat(t[2].replace(",",".")),RN(n,i)?n%24*kN+i*SN:NaN;if(t=CN.HHMMSS.exec(e),t){n=parseInt(t[1],10),i=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return RN(n,i,r)?n%24*kN+i*SN+1e3*r:NaN}return null}(r.time),isNaN(u)))return new Date(NaN);if(r.timeZone||n.timeZone){if(l=yN(r.timeZone||n.timeZone,new Date(c+u)),isNaN(l))return new Date(NaN)}else l=uN(new Date(c+u)),l=uN(new Date(c+u+l));return new Date(c+u+l)}return new Date(NaN)}function DN(e,t,n){t=t||0,n=n||0;var i=new Date(0);i.setUTCFullYear(e,0,4);var r=7*t+n+1-(i.getUTCDay()||7);return i.setUTCDate(i.getUTCDate()+r),i}var AN=[31,28,31,30,31,30,31,31,30,31,30,31],ON=[31,29,31,30,31,30,31,31,30,31,30,31];function EN(e){return e%400==0||e%4==0&&e%100!=0}function PN(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var i=EN(e);if(i&&n>ON[t]||!i&&n>AN[t])return!1}return!0}function NN(e,t,n){return!(t<0||t>52||null!=n&&(n<0||n>6))}function RN(e,t,n){return!(null!=e&&(e<0||e>=25)||null!=t&&(t<0||t>=60)||null!=n&&(n<0||n>=60))}var LN={exports:{}},IN={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},e.exports=t.default}(IN,IN.exports);var FN=IN.exports;!function(e,t){var n=aN.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)({},e)};var i=n(FN);e.exports=t.default}(LN,LN.exports);const YN=iN(LN.exports);function BN(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date("2017-01-0".concat(t,"T00:00:00+00:00"))).slice(0,2)}const UN=(e,t,n)=>{const i=[1,2,3,4,5,6,7];let r;if(null!==e)try{r=i.map(function(e){return t=>EO(new Date("2017-01-0".concat(t,"T00:00:00+00:00")),"EEEEEE",{locale:e})}(e))}catch(s){r=i.map(BN(t))}else r=i.map(BN(t));const o=r.slice(0,n),a=r.slice(n+1,r.length);return[r[n]].concat(...a).concat(...o)},jN=(e,t)=>{const n=[];for(let i=+e[0];i<=+e[1];i++)n.push({value:+i,text:"".concat(i)});return t?n.reverse():n},HN=(e,t,n)=>{const i=[1,2,3,4,5,6,7,8,9,10,11,12].map((e=>{const t=e<10?"0".concat(e):e;return new Date("2017-".concat(t,"-01T00:00:00+00:00"))}));if(null!==e)try{const t="long"===n?"MMMM":"MMM";return i.map(((n,i)=>{const r=EO(n,t,{locale:e});return{text:r.charAt(0).toUpperCase()+r.substring(1),value:i}}))}catch(o){}const r=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return i.map(((e,t)=>{const n=r.format(e);return{text:n.charAt(0).toUpperCase()+n.substring(1),value:t}}))},$N=e=>{const t=Hs(e);return null!=t&&t.$el?null==t?void 0:t.$el:t},VN=e=>!!Array.isArray(e)&&(!!e[0]&&!!e[1]),WN=e=>'"'.concat(e,'" prop must be enabled!'),zN=e=>'You need to use array as "model-value" binding in order to support "'.concat(e,'"'),qN=e=>0===e?e:!e||isNaN(+e)?null:+e,XN=e=>null===e,GN=(e,t,n)=>{const i=null!=n?n:0===n,r=null!=t?t:0===t;if(!i&&!r)return!1;const o=+n,a=+t;return i&&r?+e>o||+eo:!!r&&+e(e=>{const t=[],n=e=>e.filter((e=>e));for(let i=0;ie.map((e=>{const{active:n,disabled:i,isBetween:r,highlighted:o}=t(e);return{...e,active:n,disabled:i,className:{dp__overlay_cell_active:n,dp__overlay_cell:!n,dp__overlay_cell_disabled:i,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:i&&n,dp__cell_in_between:r,"dp--highlighted":o}}})))),JN=(e,t,n=!1)=>{e&&t.allowStopPropagation&&(n&&e.stopImmediatePropagation(),e.stopPropagation())},ZN=e=>{if(e.nextElementSibling)return e.nextElementSibling;for(;e.parentElement&&!e.parentElement.nextElementSibling;)e=e.parentElement;return e.parentElement?e.parentElement.nextElementSibling:null},QN=e=>{if(!e)return!1;const t=e.matches(["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])"].join(", ")),n=e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0;return t&&n},eR=(e,t,n,i,r)=>{const o=SP(e,t.slice(0,e.length),new Date);return BA(o)&&YA(o)?i||r?o:IP(o,{hours:+n.hours,minutes:+(null==n?void 0:n.minutes),seconds:+(null==n?void 0:n.seconds),milliseconds:0}):null},tR=e=>e?new Date(e):new Date,nR=e=>{let t=tR(JSON.parse(JSON.stringify(e)));return t=FP(t,0),t=BP(t,0),t=UP(t,0),t=YP(t,0),t},iR=(e,t,n,i)=>{let r=e?tR(e):tR();return(t||0===t)&&(r=FP(r,+t)),(n||0===n)&&(r=BP(r,+n)),(i||0===i)&&(r=UP(r,+i)),YP(r,0)},rR=(e,t)=>!(!e||!t)&&UO(nR(e),nR(t)),oR=(e,t)=>!(!e||!t)&&jO(nR(e),nR(t)),aR=(e,t)=>!(!e||!t)&&BO(nR(e),nR(t)),sR=(e,t,n)=>null!=e&&e[0]&&null!=e&&e[1]?aR(n,e[0])&&rR(n,e[1]):!(null==e||!e[0]||!t)&&(aR(n,e[0])&&rR(n,t)||rR(n,e[0])&&aR(n,t)),lR=e=>{const t=IP(new Date(e),{date:1});return nR(t)},cR=(e,t,n)=>t&&(n||0===n)?Object.fromEntries(["hours","minutes","seconds"].map((i=>i===t?[i,n]:[i,isNaN(+e[i])?void 0:+e[i]]))):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},uR=e=>({hours:NO(e),minutes:RO(e),seconds:IO(e)}),dR=(e,t)=>{if(t){const n=YO(tR(t));if(n>e)return 12;if(n===e)return LO(tR(t))}},hR=(e,t)=>{if(t){const n=YO(tR(t));return n{if(e)return YO(tR(e))},pR=(e,t)=>t?function(e,t,n){var i=MN(e,n),r=yN(t,i,!0),o=new Date(i.getTime()-r),a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}(e,t):e,mR=(e,t)=>t?function(e,t,n){if("string"==typeof e&&!e.match(xN)){var i=YN(n);return i.timeZone=t,MN(e,i)}var r=MN(e,n),o=pN(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()).getTime(),a=yN(t,new Date(o));return new Date(o+a)}(e,t):e,gR=e=>e instanceof Date?e:CP(e),vR=(e,t)=>jA({start:aR(e,t)?t:e,end:aR(t,e)?t:e}),yR=e=>{const t=TA(e,1);return{month:LO(t),year:YO(t)}},bR=(e,t,n)=>[AA(pR(e,t),{weekStartsOn:+n}),function(e,t){var n,i,r,o,a,s,l,c;xA(1,arguments);var u=DA(),d=wA(null!==(n=null!==(i=null!==(r=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=kA(e),f=h.getDay(),p=6+(f{const n={hours:NO(tR()),minutes:RO(tR()),seconds:t?IO(tR()):0};return Object.assign(n,e)},wR=(e,t,n)=>[IP(tR(e),{date:1}),IP(tR(),{month:t,year:n,date:1})],xR=(e,t,n)=>{let i=e?tR(e):tR();return(t||0===t)&&(i=LP(i,t)),n&&(i=jP(i,n)),i},kR=(e,t,n,i,r)=>{if(!i||r&&!t||!r&&!n)return!1;const o=r?TA(e,1):HP(e,1),a=[LO(o),YO(o)];return r?!TR(...a,t):!SR(...a,n)},SR=(e,t,n)=>rR(...wR(n,e,t))||oR(...wR(n,e,t)),TR=(e,t,n)=>aR(...wR(n,e,t))||oR(...wR(n,e,t)),CR=(e,t,n,i,r,o,a)=>{if("function"==typeof t&&!a)return t(e);const s=n?{locale:n}:void 0;return Array.isArray(e)?"".concat(EO(e[0],o,s)).concat(r&&!e[1]?"":i).concat(e[1]?EO(e[1],o,s):""):EO(e,o,s)},MR=e=>{if(e)return null;throw new Error(WN("partial-range"))},DR=(e,t)=>{if(t)return e();throw new Error(WN("range"))},AR=e=>Array.isArray(e)?BA(e[0])&&(!e[1]||BA(e[1])):!!e&&BA(e),OR=(e,t,n,i)=>{if(!e)return!0;if(i){const i={seconds:0,milliseconds:0};return("max"===n?UO(e,t):BO(e,t))||jO(IP(e,i),IP(t,i))}return"max"===n?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},ER=(e,t,n)=>e?((e,t)=>IP(null!=t?t:tR(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}))(e,t):tR(null!=n?n:t),PR=(e,t,n,i,r)=>{if(Array.isArray(i)){const o=ER(e,i[0],t),a=ER(e,i[1],t);return OR(i[0],o,n,!!t)&&OR(i[1],a,n,!!t)&&r}const o=ER(e,i,t);return OR(i,o,n,!!t)&&r},NR=e=>IP(tR(),uR(e)),RR=(e,t,n)=>"function"==typeof e?e({month:t,year:n}):!!e.months.find((e=>e.month===t&&e.year===n)),LR=(e,t)=>"function"==typeof e?e(t):e.years.includes(t),IR=ks({menuFocused:!1,shiftKeyInMenu:!1}),FR=()=>({control:$d((()=>({shiftKeyInMenu:IR.shiftKeyInMenu,menuFocused:IR.menuFocused}))),setMenuFocused:e=>{IR.menuFocused=e},setShiftKey:e=>{IR.shiftKeyInMenu!==e&&(IR.shiftKeyInMenu=e)}}),YR=ks({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),BR=Ys(null),UR=Ys(!1),jR=Ys(!1),HR=Ys(!1),$R=Ys(!1),VR=Ys(0),WR=Ys(0),zR=()=>{const e=$d((()=>UR.value?[...YR.selectionGrid,YR.actionRow].filter((e=>e.length)):jR.value?[...YR.timePicker[0],...YR.timePicker[1],$R.value?[]:[BR.value],YR.actionRow].filter((e=>e.length)):HR.value?[...YR.monthPicker,YR.actionRow]:[YR.monthYear,...YR.calendar,YR.time,YR.actionRow].filter((e=>e.length)))),t=t=>{VR.value=t?VR.value+1:VR.value-1;let n=null;e.value[WR.value]&&(n=e.value[WR.value][VR.value]),n||(VR.value=t?VR.value-1:VR.value+1)},n=t=>{0===WR.value&&!t||WR.value===e.value.length&&t||(WR.value=t?WR.value+1:WR.value-1,e.value[WR.value]?e.value[WR.value]&&!e.value[WR.value][VR.value]&&0!==VR.value&&(VR.value=e.value[WR.value].length-1):WR.value=t?WR.value-1:WR.value+1)},i=t=>{let n=null;e.value[WR.value]&&(n=e.value[WR.value][VR.value]),n?n.focus({preventScroll:!UR.value}):VR.value=t?VR.value-1:VR.value+1},r=()=>{VR.value=0,WR.value=0};return{buildMatrix:(e,t)=>{YR[t]=e},buildMultiLevelMatrix:(e,t)=>{YR[t]=e},setTimePickerBackRef:e=>{BR.value=e},setSelectionGrid:e=>{UR.value=e,r(),e||(YR.selectionGrid=[])},setTimePicker:(e,t=!1)=>{jR.value=e,$R.value=t,r(),e||(YR.timePicker[0]=[],YR.timePicker[1]=[])},setTimePickerElements:(e,t=0)=>{YR.timePicker[t]=e},arrowRight:()=>{t(!0),i(!0)},arrowLeft:()=>{t(!1),i(!1)},arrowUp:()=>{n(!1),i(!0)},arrowDown:()=>{n(!0),i(!0)},clearArrowNav:()=>{YR.monthYear=[],YR.calendar=[],YR.time=[],YR.actionRow=[],YR.selectionGrid=[],YR.timePicker[0]=[],YR.timePicker[1]=[],UR.value=!1,jR.value=!1,$R.value=!1,HR.value=!1,r(),BR.value=null},setMonthPicker:e=>{HR.value=e,r()},refSets:YR}},qR=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",...null!=e?e:{}}),XR=e=>e?"boolean"==typeof e?e?2:0:+e>=2?+e:2:0,GR=e=>{const t=()=>{const t=e.enableSeconds?":ss":"";return e.is24?"HH:mm".concat(t):"hh:mm".concat(t," aa")},n=()=>e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?"MM/dd/yyyy":e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?"MM/dd/yyyy, ".concat(t()):"MM/dd/yyyy",i=t=>_R(t,e.enableSeconds),r=()=>e.range?e.startTime&&Array.isArray(e.startTime)?[i(e.startTime[0]),i(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?i(e.startTime):null,o=$d((()=>(e=>{var t;const n="object"==typeof e&&e,i={static:!0,solo:!1};if(!e)return{...i,count:XR(!1)};const r=n?e:{},o=n?null==(t=r.count)||t:e,a=XR(o);return Object.assign(i,r,{count:a})})(e.multiCalendars))),a=$d((()=>r())),s=$d((()=>(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:e=>"Increment ".concat(e),decrementValue:e=>"Decrement ".concat(e),openTpOverlay:e=>"Open ".concat(e," 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:()=>"",...null!=e?e:{}}))(e.ariaLabels))),l=$d((()=>(e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...null!=e?e:{}}))(e.filters))),c=$d((()=>(e=>"boolean"==typeof e?!!e&&qR({}):qR(e))(e.transitions))),u=$d((()=>(e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...null!=e?e:{}}))(e.actionRow))),d=$d((()=>((e,t,n)=>e||("string"==typeof n?n:t))(e.previewFormat,e.format,n()))),h=$d((()=>(e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:!0,selectOnFocus:!1,rangeSeparator:" - "};return"object"==typeof e?{...t,...null!=e?e:{},enabled:!0}:{...t,enabled:e}})(e.textInput))),f=$d((()=>(e=>{const t={input:!1};return"object"==typeof e?{...t,...null!=e?e:{},enabled:!0}:{enabled:e,...t}})(e.inline))),p=$d((()=>(e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,...null!=e?e:{}}))(e.config))),m=$d((()=>((e,t,n)=>{const i={dates:Array.isArray(e)?e.map((e=>tR(e))):[],years:[],months:[],quarters:[],weeks:[],weekdays:t,options:{highlightDisabled:n}};return"function"==typeof e?e:{...i,...null!=e?e:{}}})(e.highlight,e.highlightWeekDays,e.highlightDisabledDays)));return{defaultedTransitions:c,defaultedMultiCalendars:o,defaultedStartTime:a,defaultedAriaLabels:s,defaultedFilters:l,defaultedActionRow:u,defaultedPreviewFormat:d,defaultedTextInput:h,defaultedInline:f,defaultedConfig:p,defaultedHighlight:m,getDefaultPattern:n,getDefaultStartTime:r}},KR=(e,t,n)=>{const i=Ys(),{defaultedTextInput:r,getDefaultPattern:o}=GR(t),a=Ys(""),s=Xs(t,"format");Gl(i,(()=>{e("internal-model-change",i.value)})),Gl(s,(()=>{y()}));const l=e=>mR(e,t.timezone),c=e=>pR(e,t.timezone),u=(e,n,i=!1)=>CR(e,t.format,t.formatLocale,r.value.rangeSeparator,t.modelAuto,null!=n?n:o(),i),d=e=>e?t.modelType?_(e):{hours:NO(e),minutes:RO(e),seconds:t.enableSeconds?IO(e):0}:null,h=e=>t.modelType?_(e):{month:LO(e),year:YO(e)},f=(e,n)=>"string"!=typeof e&&"number"!=typeof e||!t.modelType?n:b(e),p=()=>{const e=i.value;return[_(e[0]),e[1]?_(e[1]):MR(t.partialRange)]},m=()=>(Array.isArray(i.value)&&t.range&&1===i.value.length&&i.value.push(MR(t.partialRange)),t.modelAuto?i.value[1]?p():_(i.value[0]):t.multiDates?(i.value||[]).map((e=>_(e))):Array.isArray(i.value)?DR((()=>p()),t.range):_(i.value)),g=e=>!e||Array.isArray(e)&&!e.length?null:t.timePicker?(e=>Array.isArray(e)?[f(e[0],iR(null,+e[0].hours,+e[0].minutes,e[0].seconds)),f(e[1],iR(null,+e[1].hours,+e[1].minutes,e[1].seconds))]:f(e,iR(null,e.hours,e.minutes,e.seconds)))(e):t.monthPicker?(e=>Array.isArray(e)?t.multiDates?e.map((e=>f(e,xR(null,+e.month,+e.year)))):DR((()=>[f(e[0],xR(null,+e[0].month,+e[0].year)),f(e[1],e[1]?xR(null,+e[1].month,+e[1].year):MR(t.partialRange))]),t.range):f(e,xR(null,+e.month,+e.year)))(e):t.yearPicker?(e=>Array.isArray(e)?t.multiDates?e.map((e=>f(e,jP(tR(),e)))):DR((()=>[jP(tR(),e[0]),e[1]?jP(tR(),e[1]):MR(t.partialRange)]),t.range):jP(tR(),+e))(e):t.multiDates?(e=>{if(Array.isArray(e))return e.map((e=>b(e)));throw new Error(zN("multi-dates"))})(e):t.weekPicker?(e=>{if(Array.isArray(e))return[tR(e[0]),tR(e[1])];throw new Error(zN("week-picker"))})(e):(e=>t.modelAuto?Array.isArray(e)?[b(e[0]),b(e[1])]:t.autoApply?[b(e)]:[b(e),null]:Array.isArray(e)?DR((()=>[b(e[0]),e[1]?b(e[1]):MR(t.partialRange)]),t.range):b(e))(e),v=()=>n.value&&i.value?Array.isArray(i.value)?(()=>{const e=e=>EO(e,r.value.format);return"".concat(e(i.value[0])," ").concat(r.value.rangeSeparator," ").concat(i.value[1]?e(i.value[1]):"")})():EO(i.value,r.value.format):u(i.value),y=()=>{!t.format||"string"==typeof t.format||r.value.enabled&&"string"==typeof r.value.format?a.value=i.value?t.multiDates?i.value.map((e=>u(e))).join("; "):r.value.enabled&&"string"==typeof r.value.format?v():u(i.value):"":a.value=t.format(i.value)},b=e=>{if(t.utc){const n=new Date(e);return"preserve"===t.utc?new Date(n.getTime()+6e4*n.getTimezoneOffset()):n}return t.modelType?"date"===t.modelType||"timestamp"===t.modelType?c(new Date(e)):"format"!==t.modelType||"string"!=typeof t.format&&t.format?c(SP(e,t.modelType,new Date)):SP(e,o(),new Date):c(new Date(e))},_=e=>e?t.utc?((e,t,n)=>{if(t){const t=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=n?e.getSeconds().toString().padStart(2,"0"):"00";return"".concat(e.getFullYear(),"-").concat(t,"-").concat(i,"T").concat(r,":").concat(o,":").concat(a,".000Z")}const i=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(i).toISOString()})(e,"preserve"===t.utc,t.enableSeconds):t.modelType?"timestamp"===t.modelType?+l(e):"format"!==t.modelType||"string"!=typeof t.format&&t.format?u(l(e),t.modelType,!0):u(l(e)):l(e):"",w=(n,i=!1)=>{if(e("update:model-value",n),t.emitTimezone&&i){const i=Array.isArray(n)?n.map((e=>pR(e)),t.emitTimezone):pR(n,t.emitTimezone);e("update:model-timezone-value",i)}},x=e=>w((e=>Array.isArray(i.value)?t.multiDates?i.value.map((t=>e(t))):[e(i.value[0]),i.value[1]?e(i.value[1]):MR(t.partialRange)]:e(i.value))(e));return{inputValue:a,internalModelValue:i,checkBeforeEmit:()=>!!i.value&&(t.range?t.partialRange?i.value.length>=1:2===i.value.length:!!i.value),parseExternalModelValue:e=>{const t=g(e);AR(t)?(i.value=t,y()):(i.value=null,a.value="")},formatInputValue:y,emitModelValue:()=>(y(),t.monthPicker?x(h):t.timePicker?x(d):t.yearPicker?x(YO):t.weekPicker?w(i.value.map((e=>_(e))),!0):w(m(),!0))}};var JR=(e=>(e.center="center",e.left="left",e.right="right",e))(JR||{}),ZR=(e=>(e.month="month",e.year="year",e))(ZR||{}),QR=(e=>(e.top="top",e.bottom="bottom",e))(QR||{}),eL=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(eL||{}),tL=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(tL||{});const nL=({menuRef:e,menuRefInner:t,inputRef:n,pickerWrapperRef:i,inline:r,emit:o,props:a,slots:s})=>{const l=Ys({}),c=Ys(!1),u=Ys({top:"0",left:"0"}),d=Ys(!1),h=Xs(a,"teleportCenter");Gl(h,(()=>{u.value=JSON.parse(JSON.stringify({})),v()}));const f=(e,t)=>{u.value.left="".concat(e+t-l.value.width,"px")},p=e=>{u.value.left="".concat(e,"px")},m=(e,t)=>{a.position===JR.left&&p(e),a.position===JR.right&&f(e,t),a.position===JR.center&&(u.value.left="".concat(e+t/2-l.value.width/2,"px"))},g=e=>{const{width:t,height:n}=e.getBoundingClientRect(),{top:i,left:r}=a.altPosition?a.altPosition(e):(e=>{if(a.teleport){const t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY}}return{top:0,left:0}})(e);return{top:+i,left:+r,width:t,height:n}},v=(i=!0)=>{var s;if(!r.value.enabled){if(h.value)return u.value.left="50%",u.value.top="50%",u.value.transform="translate(-50%, -50%)",u.value.position="fixed",void delete u.value.opacity;if(null!==a.altPosition)return(()=>{const e=$N(n),{top:t,left:i,transform:r}=a.altPosition(e);u.value={top:"".concat(t,"px"),left:"".concat(i,"px"),transform:null!=r?r:""}})();if(i){const n=a.teleport?null==(s=t.value)?void 0:s.$el:e.value;n&&(l.value=n.getBoundingClientRect()),o("recalculate-position")}return x()}},y=({inputEl:e,left:t,width:n})=>{window.screen.width>768&&!c.value&&m(t,n),_(e)},b=e=>{const{top:t,left:n,height:i,width:r}=g(e);u.value.top="".concat(i+t+ +a.offset,"px"),d.value=!1,c.value||(u.value.left="".concat(n+r/2-l.value.width/2,"px")),y({inputEl:e,left:n,width:r})},_=e=>{if(a.autoPosition){const{left:t,width:n}=g(e),{left:i,right:r}=l.value;if(!c.value){if(Math.abs(i)!==Math.abs(r)){if(i<=0)return c.value=!0,p(t);if(r>=document.documentElement.clientWidth)return c.value=!0,f(t,n)}return m(t,n)}}},w=e=>(()=>{const e=$N(n);if(e){const{height:t}=l.value,{top:n,height:i}=e.getBoundingClientRect(),r=window.innerHeight-n-i,o=n;return t<=r?QR.bottom:t>r&&t<=o?QR.top:r>=o?QR.bottom:QR.top}return QR.bottom})()===QR.bottom?b(e):(e=>{const{top:t,left:n,width:i}=g(e);u.value.top="".concat(t-+a.offset-l.value.height,"px"),d.value=!0,y({inputEl:e,left:n,width:i})})(e),x=()=>{const e=$N(n);if(e)return a.autoPosition?w(e):b(e)},k=function(e){return e&&e!==document.body&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?function(e){if(e){const t=e.scrollHeight>e.clientHeight,n=-1!==window.getComputedStyle(e).overflowY.indexOf("hidden");return t&&!n}return!0}(e)?e:k(e.parentNode):window};return{openOnTop:d,menuStyle:u,xCorrect:c,setMenuPosition:v,getScrollableParent:k,shadowRender:(e,t)=>{var r,o,c;const u=document.createElement("div"),d=null==(r=$N(n))?void 0:r.getBoundingClientRect();u.setAttribute("id","dp--temp-container");const h=null!=(o=i.value)&&o.clientWidth?i.value:document.body;h.append(u);const f=document.getElementById("dp--temp-container"),p=(e=>{if(e)switch(a.position){case JR.left:return{left:0,transform:"translateX(0)"};case JR.right:return{left:"".concat(e.width,"px"),transform:"translateX(-100%)"};default:return{left:"".concat(e.width/2,"px"),transform:"translateX(-50%)"}}return{}})(d),m=Vd(e,{...t,shadow:!0,style:{opacity:0,position:"absolute",...p}},Object.fromEntries(Object.keys(s).filter((e=>["right-sidebar","left-sidebar"].includes(e))).map((e=>[e,s[e]]))));_f(m,f),l.value=null==(c=m.el)?void 0:c.getBoundingClientRect(),_f(null,f),h.removeChild(f)}}},iL=[{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:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-value",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"]}],rL=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],oL={all:()=>iL,monthYear:()=>iL.filter((e=>e.use.includes("month-year"))),input:()=>rL,timePicker:()=>iL.filter((e=>e.use.includes("time"))),action:()=>iL.filter((e=>e.use.includes("action"))),calendar:()=>iL.filter((e=>e.use.includes("calendar"))),menu:()=>iL.filter((e=>e.use.includes("menu"))),shared:()=>iL.filter((e=>e.use.includes("shared"))),yearMode:()=>iL.filter((e=>e.use.includes("year-mode")))},aL=(e,t,n)=>{const i=[];return oL[t]().forEach((t=>{e[t.name]&&i.push(t.name)})),null!=n&&n.length&&n.forEach((e=>{e.slot&&i.push(e.slot)})),i},sL=e=>{const t=$d((()=>t=>e.value?t?e.value.open:e.value.close:"")),n=$d((()=>t=>e.value?t?e.value.menuAppearTop:e.value.menuAppearBottom:""));return{transitionName:t,showTransition:!!e.value,menuTransition:n}},lL=(e,t)=>{const n=tR(pR(new Date,e.timezone)),i=Ys([{month:LO(n),year:YO(n)}]),r=ks({hours:e.range?[NO(n),NO(n)]:NO(n),minutes:e.range?[RO(n),RO(n)]:RO(n),seconds:e.range?[0,0]:0}),o=$d({get:()=>e.internalModelValue,set:n=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",n)}}),a=$d((()=>e=>i.value[e]?i.value[e].month:0)),s=$d((()=>e=>i.value[e]?i.value[e].year:0));return{calendars:i,time:r,modelValue:o,month:a,year:s}},cL=(e,t)=>{const{defaultedMultiCalendars:n,defaultedHighlight:i}=GR(t),{isDisabled:r,matchDate:o}=uL(t),a=Ys(null),s=Ys(tR(pR(new Date,t.timezone))),l=(n,i=!0)=>(t.range||t.weekPicker)&&Array.isArray(e.value)&&2===e.value.length?!(t.hideOffsetDates&&!n.current)&&oR(tR(n.value),e.value[i?0:1]):!!t.range&&(((t,n)=>{const i=e.value&&Array.isArray(e.value)&&e.value?n?e.value[0]||null:e.value[1]:null;return oR(tR(t.value),i)})(n,i)&&(t=>{var n;const i=Array.isArray(e.value)?e.value[0]:null;return!t||!rR(null!=(n=a.value)?n:null,i)})(i)||oR(n.value,Array.isArray(e.value)?e.value[0]:null)&&(n=>!(Array.isArray(e.value)&&t.range&&e.value[0]&&a.value)||(n?aR(a.value,e.value[0]):rR(a.value,e.value[0])))(i)),c=(t,n,i)=>!(!Array.isArray(e.value)||!e.value[0]||1!==e.value.length)&&(!t&&(i?aR(e.value[0],n.value):rR(e.value[0],n.value))),u=n=>!(!e.value||t.hideOffsetDates&&!n.current)&&(t.range?!(!t.modelAuto||!Array.isArray(e.value))&&oR(n.value,e.value[0]?e.value[0]:s.value):t.multiDates&&Array.isArray(e.value)?e.value.some((e=>oR(e,n.value))):oR(n.value,e.value?e.value:s.value)),d=e=>{if(t.autoRange||t.weekPicker){if(a.value){if(t.hideOffsetDates&&!e.current)return!1;const n=SA(a.value,+t.autoRange),i=bR(tR(a.value),t.timezone,t.weekStart);return t.weekPicker?oR(i[1],tR(e.value)):oR(n,tR(e.value))}return!1}return!1},h=e=>{if(t.autoRange||t.weekPicker){if(a.value){const n=SA(a.value,+t.autoRange);if(t.hideOffsetDates&&!e.current)return!1;const i=bR(tR(a.value),t.timezone,t.weekStart);return t.weekPicker?aR(e.value,i[0])&&rR(e.value,i[1]):aR(e.value,a.value)&&rR(e.value,n)}return!1}return!1},f=e=>{if(t.autoRange||t.weekPicker){if(a.value){if(t.hideOffsetDates&&!e.current)return!1;const n=bR(tR(a.value),t.timezone,t.weekStart);return t.weekPicker?oR(n[0],e.value):oR(a.value,e.value)}return!1}return!1},p=()=>!t.modelAuto||VN(t.internalModelValue),m=n=>{if(Array.isArray(e.value)&&e.value.length||t.weekPicker)return!1;const i=!t.range||!l(n)&&!l(n,!1);return!r(n.value)&&!u(n)&&!(!n.current&&t.hideOffsetDates)&&i},g=e=>t.range?!!t.modelAuto&&(!(!t.modelAuto||!Array.isArray(t.internalModelValue)||!t.internalModelValue[0])&&u(e)):u(e),v=e=>{var n;return!!i.value&&("function"==typeof i.value?i.value(e.value):o(e.value,null!=(n=t.arrMapValues)&&n.highlightedDates?t.arrMapValues.highlightedDates:i.value.dates))},y=e=>{const t=r(e.value);return t&&("function"==typeof i.value?!i.value(e.value,t):!i.value.options.highlightDisabled)},b=e=>{var t;return"function"==typeof i.value?i.value(e.value):null==(t=i.value.weekdays)?void 0:t.includes(e.value.getDay())},_=i=>!(!t.range&&!t.weekPicker||n.value.count>0&&!i.current||!p()||!i.current&&t.hideOffsetDates||u(i))&&(t=>sR(e.value,a.value,t.value))(i),w=e=>{const{isRangeStart:n,isRangeEnd:i}=k(e),o=!!t.range&&(n||i);return{dp__cell_offset:!e.current,dp__pointer:!(t.disabled||!e.current&&t.hideOffsetDates||r(e.value)),dp__cell_disabled:r(e.value),dp__cell_highlight:!y(e)&&(v(e)||b(e))&&!g(e)&&!o&&!f(e)&&!(_(e)&&t.weekPicker)&&!i,dp__cell_highlight_active:!y(e)&&(v(e)||b(e))&&g(e),dp__today:!t.noToday&&oR(e.value,s.value)&&e.current}},x=e=>({dp__active_date:g(e),dp__date_hover:m(e)}),k=e=>({isRangeStart:n.value.count>0?e.current&&l(e)&&p():l(e)&&p(),isRangeEnd:n.value.count>0?e.current&&l(e,!1)&&p():l(e,!1)&&p()}),S=e=>{const{isRangeStart:n,isRangeEnd:i}=k(e);return{dp__range_start:n,dp__range_end:i,dp__range_between:_(e)&&!t.weekPicker,dp__date_hover_start:c(m(e),e,!0),dp__date_hover_end:c(m(e),e,!1)}},T=e=>({...S(e),dp__cell_auto_range:h(e),dp__cell_auto_range_start:f(e),dp__cell_auto_range_end:d(e)}),C=e=>t.range?t.autoRange?T(e):t.modelAuto?{...x(e),...S(e)}:S(e):t.weekPicker?(e=>({...S(e),...T(e),dp__range_between_week:_(e)&&t.weekPicker}))(e):x(e);return{setHoverDate:e=>{!e.current&&t.hideOffsetDates||(a.value=e.value)},clearHoverDate:()=>{a.value=null},getDayClassData:e=>t.hideOffsetDates&&!e.current?{}:{...w(e),...C(e),[t.dayClass?t.dayClass(e.value):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName}}},uL=e=>{const{defaultedFilters:t,defaultedHighlight:n}=GR(e),i=()=>e.timezone?e.timezone:e.utc?"UTC":void 0,r=e=>{const t=nR(o(tR(e))).toISOString(),[n]=t.split("T");return n},o=t=>"preserve"===e.utc?mR(t,i()):pR(t,i()),a=n=>{var i;const r=!!e.maxDate&&aR(o(n),o(tR(e.maxDate))),a=!!e.minDate&&rR(o(n),o(tR(e.minDate))),s=c(o(n),null!=(i=e.arrMapValues)&&i.disabledDates?e.arrMapValues.disabledDates:e.disabledDates),l=t.value.months.map((e=>+e)).includes(LO(n)),d=!!e.disabledWeekDays.length&&e.disabledWeekDays.some((e=>+e===function(e){return xA(1,arguments),kA(e).getDay()}(n))),h=u(n),f=YO(n),p=f<+e.yearRange[0]||f>+e.yearRange[1];return!(r||a||s||l||p||d||h)},s=(t,n)=>rR(...wR(e.minDate,t,n))||oR(...wR(e.minDate,t,n)),l=(t,n)=>aR(...wR(e.maxDate,t,n))||oR(...wR(e.maxDate,t,n)),c=(e,t)=>!e||(t instanceof Map?!!t.get(r(e)):Array.isArray(t)?t.some((t=>oR(o(tR(t)),o(e)))):!!t&&t(tR(JSON.parse(JSON.stringify(e))))),u=t=>{var n,i,r,a,s;return!(!Array.isArray(e.allowedDates)||null!=(n=e.allowedDates)&&n.length)||(null!=(i=e.arrMapValues)&&i.allowedDates?!c(t,null==(r=e.arrMapValues)?void 0:r.allowedDates):!(null==(a=e.allowedDates)||!a.length)&&!(null!=(s=e.allowedDates)&&s.some((e=>oR(o(tR(e)),o(t))))))},d=e=>!a(e),h=e=>new Map(e.map((e=>[r(e),!0]))),f=e=>Array.isArray(e)&&e.length>0,p=(e,t,n)=>e.find((e=>+e.hours===NO(t)&&"*"===e.minutes||+e.minutes===RO(t)&&+e.hours===NO(t)))&&n,m=(t,n)=>{const i=Array.isArray(n)?n:[n];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?((e,t,n)=>{const[i,r]=e,[o,a]=t;return!p(i,o,n)&&!p(r,a,n)&&n})(e.disabledTimes,i,t):!i.some((n=>p(e.disabledTimes,n,t))):t},g=(t,n)=>e.disabledTimes?Array.isArray(e.disabledTimes)?m(n,t):((t,n)=>{const i=Array.isArray(n)?[uR(n[0]),n[1]?uR(n[1]):void 0]:uR(n),r=!e.disabledTimes(i);return t&&r})(n,t):n;return{isDisabled:d,validateDate:a,validateMonthYearInRange:(t,n,i,r)=>{let o=!1;return r?e.minDate&&e.maxDate?o=((t,n,i)=>{let r=!1;return e.maxDate&&i&&l(t,n)&&(r=!0),e.minDate&&!i&&s(t,n)&&(r=!0),r})(t,n,i):(e.minDate&&s(t,n)||e.maxDate&&l(t,n))&&(o=!0):o=!0,o},isDateRangeAllowed:t=>!e.noDisabledRange||!jA({start:t[0],end:t[1]}).some((e=>d(e))),checkMinMaxRange:(t,n,i=0)=>{if(Array.isArray(n)&&n[i]){const r=function(e,t){xA(2,arguments);var n=NA(e),i=NA(t),r=n.getTime()-PA(n),o=i.getTime()-PA(i);return Math.round((r-o)/864e5)}(t,n[i]),o=vR(n[i],t),a=1===o.length?0:o.filter((e=>d(e))).length,s=Math.abs(r)-a;if(e.minRange&&e.maxRange)return s>=+e.minRange&&s<=+e.maxRange;if(e.minRange)return s>=+e.minRange;if(e.maxRange)return s<=+e.maxRange}return!0},matchDate:c,mapDatesArrToMap:()=>{const t={disabledDates:null,allowedDates:null,highlightedDates:null};return f(e.allowedDates)&&(t.allowedDates=h(e.allowedDates)),"function"!=typeof n.value&&f(n.value.dates)&&(t.highlightedDates=h(n.value.dates)),f(e.disabledDates)&&(t.disabledDates=h(e.disabledDates)),t},isValidTime:t=>{let n=!0;if(!t||!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation)return!0;const i=e.minDate||e.maxDate?t:(e=>Array.isArray(e)?[e[0]?NR(e[0]):null,e[1]?NR(e[1]):null]:NR(e))(t);return(e.maxTime||e.maxDate)&&(n=PR(e.maxTime,e.maxDate,"max",i,n)),(e.minTime||e.minDate)&&(n=PR(e.minTime,e.minDate,"min",i,n)),g(t,n)}}},dL=()=>({hideNavigationButtons:$d((()=>(e,t)=>null==e?void 0:e.includes(t))),showLeftIcon:$d((()=>(e,t)=>!e.count||(!!e.solo||0===t))),showRightIcon:$d((()=>(e,t)=>!e.count||(!!e.solo||t===e.count-1)))}),hL={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,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:[Array,Function,Object],default:null},highlightWeekDays:{type:Array,default:null},highlightDisabledDays:{type:Boolean,default:!1},teleport:{type:[String,Boolean,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],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: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,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}},fL={...hL,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},arrMapValues:{type:Object,default:()=>({})},noOverlayFocus:{type:Boolean,default:!1}},pL={key:1,class:"dp__input_wrap"},mL=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid","onKeydown"],gL={key:2,class:"dp__clear_icon"},vL=pc({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...hL},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:n}){const i=n,r=e,{defaultedTextInput:o,defaultedAriaLabels:a,defaultedInline:s,defaultedConfig:l,getDefaultPattern:c,getDefaultStartTime:u}=GR(r),d=Ys(),h=Ys(null),f=Ys(!1),p=Ys(!1),m=$d((()=>({dp__pointer:!r.disabled&&!r.readonly&&!o.value.enabled,dp__disabled:r.disabled,dp__input_readonly:!o.value.enabled,dp__input:!0,dp__input_icon_pad:!r.hideInputIcon,dp__input_valid:!!r.state,dp__input_invalid:!1===r.state,dp__input_focus:f.value||r.isMenuOpen,dp__input_reg:!o.value.enabled,[r.inputClassName]:!!r.inputClassName}))),g=e=>{var t;const n=u();return((e,t,n,i,r)=>{const o=Array.isArray(n)?n[0]:n;if("string"==typeof t)return eR(e,t,o,i,r);if(Array.isArray(t)){let n=null;for(const a of t)if(n=eR(e,a,o,i,r),n)break;return n}return"function"==typeof t?t(e):null})(e,null!=(t=o.value.format)?t:c(),null!=n?n:_R({},r.enableSeconds),r.inputValue,p.value)},v=()=>{p.value=!0},y=e=>{if(r.range)(e=>{const{rangeSeparator:t}=o.value,[n,i]=e.split("".concat(t));if(n){const e=g(n.trim()),t=i?g(i.trim()):null,r=e&&t?[e,t]:[e];d.value=e?r:null}})(e);else if(r.multiDates){const t=e.split(";");d.value=t.map((e=>g(e.trim()))).filter((e=>e))}else d.value=g(e)},b=e=>{var t;const n="string"==typeof e?e:null==(t=e.target)?void 0:t.value;""!==n?(o.value.openMenu&&!r.isMenuOpen&&i("open"),y(n),i("set-input-date",d.value)):(i("set-input-date",null),r.autoApply&&(i("set-empty-date"),d.value=null)),p.value=!1,i("update:input-value",n)},_=e=>{o.value.enabled?(y(e.target.value),o.value.enterSubmit&&AR(d.value)&&""!==r.inputValue?(i("set-input-date",d.value,!0),d.value=null):o.value.enterSubmit&&""===r.inputValue&&(d.value=null,i("clear"))):k(e)},w=e=>{o.value.enabled&&o.value.tabSubmit&&y(e.target.value),o.value.tabSubmit&&AR(d.value)&&""!==r.inputValue?(i("set-input-date",d.value,!0,!0),d.value=null):o.value.tabSubmit&&""===r.inputValue&&(d.value=null,i("clear",!0))},x=()=>{var e;f.value=!0,i("focus"),o.value.enabled&&o.value.selectOnFocus&&(null==(e=h.value)||e.select())},k=e=>{e.preventDefault(),JN(e,l.value,!0),o.value.enabled&&o.value.openMenu&&!s.value.input&&!r.isMenuOpen?i("open"):o.value.enabled||i("toggle")},S=()=>{i("real-blur"),f.value=!1,(!r.isMenuOpen||s.value.enabled&&s.value.input)&&i("blur"),r.autoApply&&o.value.enabled&&d.value&&!r.isMenuOpen&&(i("set-input-date",d.value),i("select-date"),d.value=null)},T=e=>{JN(e,l.value,!0),i("clear")},C=e=>{if(!o.value.enabled){if("Tab"===e.code)return;e.preventDefault()}};return t({focusInput:()=>{var e;null==(e=h.value)||e.focus({preventScroll:!0})},setParsedDate:e=>{d.value=e}}),(t,n)=>{var r;return Qu(),rd("div",{onClick:k},[!t.$slots.trigger||t.$slots["dp-input"]||Hs(s).enabled?vd("",!0):jc(t.$slots,"trigger",{key:0}),t.$slots.trigger||Hs(s).enabled&&!Hs(s).input?vd("",!0):(Qu(),rd("div",pL,[!t.$slots["dp-input"]||t.$slots.trigger||Hs(s).enabled?vd("",!0):jc(t.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:b,onEnter:_,onTab:w,onClear:T,onBlur:S,onKeypress:C,onPaste:v}),t.$slots["dp-input"]?vd("",!0):(Qu(),rd("input",{key:1,id:t.uid?"dp-input-".concat(t.uid):void 0,ref_key:"inputRef",ref:h,name:t.name,class:oa(m.value),inputmode:Hs(o).enabled?"text":"none",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,required:t.required,value:e.inputValue,autocomplete:t.autocomplete,"aria-label":null==(r=Hs(a))?void 0:r.input,"aria-disabled":t.disabled||void 0,"aria-invalid":!1===t.state||void 0,onInput:b,onKeydown:[pf(_,["enter"]),pf(w,["tab"]),C],onBlur:S,onFocus:x,onKeypress:C,onPaste:v},null,42,mL)),dd("div",{onClick:n[2]||(n[2]=e=>i("toggle"))},[t.$slots["input-icon"]&&!t.hideInputIcon?(Qu(),rd("span",{key:0,class:"dp__input_icon",onClick:n[0]||(n[0]=e=>i("toggle"))},[jc(t.$slots,"input-icon")])):vd("",!0),t.$slots["input-icon"]||t.hideInputIcon||t.$slots["dp-input"]?vd("",!0):(Qu(),od(Hs(KP),{key:1,class:"dp__input_icon dp__input_icons",onClick:n[1]||(n[1]=e=>i("toggle"))}))]),t.$slots["clear-icon"]&&e.inputValue&&t.clearable&&!t.disabled&&!t.readonly?(Qu(),rd("span",gL,[jc(t.$slots,"clear-icon",{clear:T})])):vd("",!0),!t.clearable||t.$slots["clear-icon"]||!e.inputValue||t.disabled||t.readonly?vd("",!0):(Qu(),od(Hs(JP),{key:3,class:"dp__clear_icon dp__input_icons",onClick:n[3]||(n[3]=hf((e=>T(e)),["prevent"]))}))]))])}}}),yL=["title"],bL={class:"dp__action_buttons"},_L=["disabled","onKeydown"],wL=pc({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...fL},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=t,i=e,{defaultedActionRow:r,defaultedPreviewFormat:o,defaultedMultiCalendars:a,defaultedTextInput:s,defaultedInline:l,getDefaultPattern:c}=GR(i),{isValidTime:u}=uL(i),{buildMatrix:d}=zR(),h=Ys(null),f=Ys(null);Oc((()=>{i.arrowNavigation&&d([$N(h),$N(f)],"actionRow")}));const p=$d((()=>!(i.range&&!i.partialRange&&i.internalModelValue)||2===i.internalModelValue.length)),m=$d((()=>!g.value||!v.value||!p.value)),g=$d((()=>!(i.enableTimePicker&&!i.ignoreTimeValidation)||u(i.internalModelValue))),v=$d((()=>!i.monthPicker||(i.range&&Array.isArray(i.internalModelValue)?!i.internalModelValue.filter((e=>!w(e))).length:w(i.internalModelValue)))),y=e=>CR(e,o.value,i.formatLocale,s.value.rangeSeparator,i.modelAuto,c()),b=$d((()=>i.internalModelValue&&i.menuMount?"string"==typeof o.value?Array.isArray(i.internalModelValue)?2===i.internalModelValue.length&&i.internalModelValue[1]?(()=>{const e=i.internalModelValue;return a.value.count>0?"".concat(y(e[0])," - ").concat(y(e[1])):[y(e[0]),y(e[1])]})():i.multiDates?i.internalModelValue.map((e=>"".concat(y(e)))):i.modelAuto?"".concat(y(i.internalModelValue[0])):"".concat(y(i.internalModelValue[0])," -"):y(i.internalModelValue):(()=>{const e=o.value;return i.timePicker||i.monthPicker,e(i.internalModelValue)})():"")),_=$d((()=>Array.isArray(b.value)?b.value.join(i.multiDates?"; ":" - "):b.value)),w=e=>{if(!i.monthPicker)return!0;let t=!0;const n=tR(lR(e));if(i.minDate&&i.maxDate){const e=tR(lR(i.minDate)),t=tR(lR(i.maxDate));return aR(n,e)&&rR(n,t)||oR(n,e)||oR(n,t)}if(i.minDate){const e=tR(lR(i.minDate));t=aR(n,e)||oR(n,e)}if(i.maxDate){const e=tR(lR(i.maxDate));t=rR(n,e)||oR(n,e)}return t},x=()=>{g.value&&v.value&&p.value?n("select-date"):n("invalid-select")};return(t,n)=>(Qu(),rd("div",{class:"dp__action_row",style:ea(e.calendarWidth?{width:"".concat(e.calendarWidth,"px")}:{})},[t.$slots["action-row"]?jc(t.$slots,"action-row",aa(wd({key:0},{internalModelValue:t.internalModelValue,disabled:m.value,selectDate:()=>t.$emit("select-date"),closePicker:()=>t.$emit("close-picker")}))):(Qu(),rd(qu,{key:1},[Hs(r).showPreview?(Qu(),rd("div",{key:0,class:"dp__selection_preview",title:_.value},[t.$slots["action-preview"]?jc(t.$slots,"action-preview",{key:0,value:t.internalModelValue}):vd("",!0),t.$slots["action-preview"]?vd("",!0):(Qu(),rd(qu,{key:1},[md(da(_.value),1)],64))],8,yL)):vd("",!0),dd("div",bL,[t.$slots["action-buttons"]?jc(t.$slots,"action-buttons",{key:0,value:t.internalModelValue}):vd("",!0),t.$slots["action-buttons"]?vd("",!0):(Qu(),rd(qu,{key:1},[!Hs(l).enabled&&Hs(r).showCancel?(Qu(),rd("button",{key:0,ref_key:"cancelButtonRef",ref:h,type:"button",class:"dp__action_button dp__action_cancel",onClick:n[0]||(n[0]=e=>t.$emit("close-picker")),onKeydown:[n[1]||(n[1]=pf((e=>t.$emit("close-picker")),["enter"])),n[2]||(n[2]=pf((e=>t.$emit("close-picker")),["space"]))]},da(t.cancelText),545)):vd("",!0),Hs(r).showNow?(Qu(),rd("button",{key:1,ref_key:"cancelButtonRef",ref:h,type:"button",class:"dp__action_button dp__action_cancel",onClick:n[3]||(n[3]=e=>t.$emit("select-now")),onKeydown:[n[4]||(n[4]=pf((e=>t.$emit("select-now")),["enter"])),n[5]||(n[5]=pf((e=>t.$emit("select-now")),["space"]))]},da(t.nowButtonLabel),545)):vd("",!0),Hs(r).showSelect?(Qu(),rd("button",{key:2,ref_key:"selectButtonRef",ref:f,type:"button",class:"dp__action_button dp__action_select",disabled:m.value,onKeydown:[pf(x,["enter"]),pf(x,["space"])],onClick:x},da(t.selectText),41,_L)):vd("",!0)],64))])],64))],4))}}),xL=["onKeydown"],kL={class:"dp__selection_grid_header"},SL=["aria-selected","aria-disabled","onClick","onKeydown","onMouseover"],TL=["aria-label","onKeydown"],CL=pc({__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}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:n}){const{setSelectionGrid:i,buildMultiLevelMatrix:r,setMonthPicker:o}=zR(),a=n,s=e,{defaultedAriaLabels:l,defaultedTextInput:c,defaultedConfig:u}=GR(s),{hideNavigationButtons:d}=dL(),h=Ys(!1),f=Ys(null),p=Ys(null),m=Ys([]),g=Ys(),v=Ys(null),y=Ys(0),b=Ys(null);Ec((()=>{f.value=null})),Oc((()=>{cl().then((()=>M())),s.noOverlayFocus||w(),_(!0)})),Rc((()=>_(!1)));const _=e=>{var t;s.arrowNavigation&&(null!=(t=s.headerRefs)&&t.length?o(e):i(e))},w=()=>{var e;const t=$N(p);t&&(c.value.enabled||(f.value?null==(e=f.value)||e.focus({preventScroll:!0}):t.focus({preventScroll:!0})),h.value=t.clientHeight({dp__overlay:!0,"dp--overlay-absolute":!s.useRelative,"dp--overlay-relative":s.useRelative}))),k=$d((()=>s.useRelative?{height:"".concat(s.height,"px"),width:"260px"}:void 0)),S=$d((()=>({dp__overlay_col:!0}))),T=$d((()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:h.value,dp__button_bottom:s.isLast}))),C=$d((()=>{var e,t;return{dp__overlay_container:!0,dp__container_flex:(null==(e=s.items)?void 0:e.length)<=6,dp__container_block:(null==(t=s.items)?void 0:t.length)>6}}));Gl((()=>s.items),(()=>M()),{deep:!0});const M=()=>{cl().then((()=>{const e=$N(f),t=$N(p),n=$N(v),i=$N(b),r=n?n.getBoundingClientRect().height:0;t&&(t.getBoundingClientRect().height?y.value=t.getBoundingClientRect().height-r:y.value=u.value.modeHeight-r),e&&i&&(i.scrollTop=e.offsetTop-i.offsetTop-(y.value/2-e.getBoundingClientRect().height)-r)}))},D=e=>{e.disabled||a("selected",e.value)},A=()=>{a("toggle"),a("reset-flow")},O=()=>{s.escClose&&A()},E=()=>{var e,t;const n=null!=(e=s.headerRefs)&&e.length?[s.headerRefs].concat(m.value):m.value.concat([s.skipButtonRef?[]:[v.value]]);r(n,null!=(t=s.headerRefs)&&t.length?"monthPicker":"selectionGrid")},P=e=>{s.arrowNavigation||JN(e,u.value,!0)};return t({focusGrid:w}),(e,t)=>{var n;return Qu(),rd("div",{ref_key:"gridWrapRef",ref:p,class:oa(x.value),style:ea(k.value),role:"dialog",tabindex:"0",onKeydown:[pf(hf(O,["prevent"]),["esc"]),t[0]||(t[0]=pf(hf((e=>P(e)),["prevent"]),["left"])),t[1]||(t[1]=pf(hf((e=>P(e)),["prevent"]),["up"])),t[2]||(t[2]=pf(hf((e=>P(e)),["prevent"]),["down"])),t[3]||(t[3]=pf(hf((e=>P(e)),["prevent"]),["right"]))]},[dd("div",{ref_key:"containerRef",ref:b,class:oa(C.value),role:"grid",style:ea({height:"".concat(y.value,"px")})},[dd("div",kL,[jc(e.$slots,"header")]),e.$slots.overlay?jc(e.$slots,"overlay",{key:0}):(Qu(!0),rd(qu,{key:1},Bc(e.items,((t,n)=>(Qu(),rd("div",{key:n,class:oa(["dp__overlay_row",{dp__flex_row:e.items.length>=3}]),role:"row"},[(Qu(!0),rd(qu,null,Bc(t,((t,i)=>(Qu(),rd("div",{key:t.value,ref_for:!0,ref:e=>((e,t,n,i)=>{e&&(t.active&&(f.value=e),s.arrowNavigation&&(Array.isArray(m.value[n])?m.value[n][i]=e:m.value[n]=[e],E()))})(e,t,n,i),role:"gridcell",class:oa(S.value),"aria-selected":t.active,"aria-disabled":t.disabled||void 0,tabindex:"0",onClick:e=>D(t),onKeydown:[pf(hf((e=>D(t)),["prevent"]),["enter"]),pf(hf((e=>D(t)),["prevent"]),["space"])],onMouseover:e=>(e=>{g.value=e,a("hover-value",e)})(t.value)},[dd("div",{class:oa(t.className)},[e.$slots.item?jc(e.$slots,"item",{key:0,item:t}):vd("",!0),e.$slots.item?vd("",!0):(Qu(),rd(qu,{key:1},[md(da(t.text),1)],64))],2)],42,SL)))),128))],2)))),128))],6),e.$slots["button-icon"]?ec((Qu(),rd("button",{key:0,ref_key:"toggleButton",ref:v,type:"button","aria-label":null==(n=Hs(l))?void 0:n.toggleOverlay,class:oa(T.value),tabindex:"0",onClick:A,onKeydown:[pf(A,["enter"]),pf(A,["tab"])]},[jc(e.$slots,"button-icon")],42,TL)),[[bh,!Hs(d)(e.hideNavigation,e.type)]]):vd("",!0)],46,xL)}}}),ML=pc({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean}},setup(e){const t=e,n=$d((()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0])),i=$d((()=>({dp__instance_calendar:t.multiCalendars>0})));return(e,t)=>(Qu(),rd("div",{class:oa({dp__menu_inner:!e.stretch,"dp--menu--inner-stretched":e.stretch,dp__flex_display:e.multiCalendars>0})},[(Qu(!0),rd(qu,null,Bc(n.value,((t,n)=>(Qu(),rd("div",{key:t,class:oa(i.value)},[jc(e.$slots,"default",{instance:t,index:n})],2)))),128))],2))}}),DL=["aria-label","aria-disabled"],AL=pc({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=t,i=Ys(null);return Oc((()=>n("set-ref",i))),(e,t)=>(Qu(),rd("button",{ref_key:"elRef",ref:i,type:"button",class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":e.ariaLabel,"aria-disabled":e.disabled||void 0,onClick:t[0]||(t[0]=t=>e.$emit("activate")),onKeydown:[t[1]||(t[1]=pf(hf((t=>e.$emit("activate")),["prevent"]),["enter"])),t[2]||(t[2]=pf(hf((t=>e.$emit("activate")),["prevent"]),["space"]))]},[dd("span",{class:oa(["dp__inner_nav",{dp__inner_nav_disabled:e.disabled}])},[jc(e.$slots,"default")],2)],40,DL))}}),OL={class:"dp--year-mode-picker"},EL=["aria-label"],PL=pc({__name:"YearModePicker",props:{...fL,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 n=t,i=e,{showRightIcon:r,showLeftIcon:o}=dL(),{defaultedConfig:a,defaultedMultiCalendars:s,defaultedAriaLabels:l,defaultedTransitions:c}=GR(i),{showTransition:u,transitionName:d}=sL(c),h=(e=!1,t)=>{n("toggle-year-picker",{flow:e,show:t})},f=(e=!1)=>{n("handle-year",e)};return(t,i)=>{var c,p,m;return Qu(),rd("div",OL,[Hs(o)(Hs(s),e.instance)?(Qu(),od(AL,{key:0,ref:"mpPrevIconRef","aria-label":null==(c=Hs(l))?void 0:c.prevYear,disabled:e.isDisabled(!1),onActivate:i[0]||(i[0]=e=>f(!1))},{default:Dl((()=>[t.$slots["arrow-left"]?jc(t.$slots,"arrow-left",{key:0}):vd("",!0),t.$slots["arrow-left"]?vd("",!0):(Qu(),od(Hs(ZP),{key:1}))])),_:3},8,["aria-label","disabled"])):vd("",!0),dd("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":null==(p=Hs(l))?void 0:p.openYearsOverlay,onClick:i[1]||(i[1]=()=>h(!1)),onKeydown:i[2]||(i[2]=pf((()=>h(!1)),["enter"]))},[t.$slots.year?jc(t.$slots,"year",{key:0,year:e.year}):vd("",!0),t.$slots.year?vd("",!0):(Qu(),rd(qu,{key:1},[md(da(e.year),1)],64))],40,EL),Hs(r)(Hs(s),e.instance)?(Qu(),od(AL,{key:1,ref:"mpNextIconRef","aria-label":null==(m=Hs(l))?void 0:m.nextYear,disabled:e.isDisabled(!0),onActivate:i[3]||(i[3]=e=>f(!0))},{default:Dl((()=>[t.$slots["arrow-right"]?jc(t.$slots,"arrow-right",{key:0}):vd("",!0),t.$slots["arrow-right"]?vd("",!0):(Qu(),od(Hs(QP),{key:1}))])),_:3},8,["aria-label","disabled"])):vd("",!0),hd(nh,{name:Hs(d)(e.showYearPicker),css:Hs(u)},{default:Dl((()=>[e.showYearPicker?(Qu(),od(CL,{key:0,items:e.items,"text-input":t.textInput,"esc-close":t.escClose,config:t.config,"is-last":t.autoApply&&!Hs(a).keepActionRow,type:"year",onToggle:h,onSelected:i[4]||(i[4]=e=>(e=>{n("year-select",e)})(e))},Uc({"button-icon":Dl((()=>[t.$slots["calendar-icon"]?jc(t.$slots,"calendar-icon",{key:0}):vd("",!0),t.$slots["calendar-icon"]?vd("",!0):(Qu(),od(Hs(KP),{key:1}))])),_:2},[t.$slots["year-overlay-value"]?{name:"item",fn:Dl((({item:e})=>[jc(t.$slots,"year-overlay-value",{text:e.text,value:e.value})])),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last"])):vd("",!0)])),_:3},8,["name","css"])])}}}),NL=(e,t,n)=>{if(t.value&&Array.isArray(t.value))if(t.value.some((t=>oR(e,t)))){const n=t.value.filter((t=>!oR(t,e)));t.value=n.length?n:null}else(n&&+n>t.value.length||!n)&&t.value.push(e);else t.value=[e]},RL=(e,t,n)=>{let i=e.value?e.value.slice():[];return 2===i.length&&null!==i[1]&&(i=[]),i.length?rR(t,i[0])?(i.unshift(t),n("range-start",i[0]),n("range-start",i[1])):(i[1]=t,n("range-end",t)):(i=[t],n("range-start",t)),e.value=i,i},LL=(e,t,n,i)=>{e[0]&&e[1]&&n&&t("auto-apply"),e[0]&&!e[1]&&i&&n&&t("auto-apply")},IL=({multiCalendars:e,highlight:t,calendars:n,modelValue:i,props:r,year:o,month:a,emit:s})=>{const l=$d((()=>jN(r.yearRange,r.reverseYears))),c=Ys([!1]),u=$d((()=>(e,t)=>{const n=IP(lR(new Date),{month:a.value(e),year:o.value(e)});return kR(n,r.maxDate,r.minDate,r.preventMinMaxNavigation,t)})),d=()=>{for(let t=0;t{if(i.value){const e=Array.isArray(i.value)?(e=>r.focusStartDate?e[0]:e[1]?e[1]:e[0])(i.value):i.value;n.value[0]={month:LO(e),year:YO(e)}}};Oc((()=>{h(),e.value.count&&d()}));const f=(t,i)=>{n.value[i].year=t,e.value.count&&!e.value.solo&&(t=>{if(!t)return d();const i=IP(tR(),n.value[t]);n.value[0].year=YO(VP(i,e.value.count-1)),d()})(i)},p=$d((()=>e=>KN(l.value,(n=>({active:o.value(e)===n.value,disabled:GN(n.value,fR(r.minDate),fR(r.maxDate)),highlighted:LR(t.value,n.value)}))))),m=(e,t=!1,n)=>{t||s("reset-flow"),c.value[e]=void 0!==n?n:!c.value[e],c.value||s("overlay-closed")};return{isDisabled:u,groupedYears:p,showYearPicker:c,selectYear:f,toggleYearPicker:m,handleYearSelect:(e,t)=>{f(e,t),m(t)},handleYear:(e,t=!1)=>{if(!u.value(e,t)){const n=t?o.value(e)+1:o.value(e)-1;f(n,e)}}}},FL=(e,t)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:i,defaultedTransitions:r,defaultedConfig:o,defaultedHighlight:a}=GR(e),{modelValue:s,year:l,month:c,calendars:u}=lL(e,t),d=$d((()=>HN(e.formatLocale,e.locale,e.monthNameFormat))),h=Ys(null),{selectYear:f,groupedYears:p,showYearPicker:m,toggleYearPicker:g,handleYearSelect:v,handleYear:y,isDisabled:b}=IL({modelValue:s,multiCalendars:n,highlight:a,calendars:u,year:l,month:c,props:e,emit:t}),_=e=>e?{month:LO(e),year:YO(e)}:{month:null,year:null},w=()=>s.value?Array.isArray(s.value)?s.value.map((e=>_(e))):_(s.value):_(),x=(e,t,n)=>{var i,r;const o=w();return!!Array.isArray(o)&&(l.value(t)===(null==(i=o[n])?void 0:i.year)&&e===(null==(r=o[n])?void 0:r.month))},k=$d((()=>t=>KN(d.value,(n=>{const i=((e,t)=>{const n=u.value[e],i=w();return Array.isArray(i)?i.some((e=>e.year===(null==n?void 0:n.year)&&e.month===t)):(null==n?void 0:n.year)===i.year&&t===i.month})(t,n.value),r=GN(n.value,dR(l.value(t),e.minDate),hR(l.value(t),e.maxDate))||((e,t)=>Array.isArray(e)?e.map((e=>tR(e))).filter((e=>YO(tR(e))===t)).map((e=>LO(e))):[])(e.disabledDates,l.value(t)).includes(n.value),o=((t,n)=>{if(e.range){const e=w();if(Array.isArray(s.value)&&Array.isArray(e)){const e=x(t,n,0)||x(t,n,1),i=xR(lR(tR()),t,l.value(n));return sR(s.value,h.value,i)&&!e}return!1}return!1})(n.value,t);return{active:i,disabled:r,isBetween:o,highlighted:RR(a.value,n.value,l.value(t))}})))),S=(e,t)=>xR(lR(tR()),e,l.value(t)),T=(e,n,i)=>{let r=i;if(!r){const t=w();r=Array.isArray(t)?t[e].month:t.month}t("update-month-year",{instance:e,year:n,month:r})};return{groupedMonths:k,groupedYears:p,year:l,isDisabled:b,defaultedMultiCalendars:n,defaultedAriaLabels:i,defaultedTransitions:r,defaultedConfig:o,showYearPicker:m,modelValue:s,setHoverDate:(e,t)=>{h.value=S(e,t)},selectMonth:(n,i)=>(u.value[i].month=n,T(i,u.value[i].year,n),e.multiDates?((n,i)=>{NL(S(n,i),s,e.multiDatesLimit),t("auto-apply",!0)})(n,i):e.range?((n,i)=>{const r=RL(s,S(n,i),t);LL(r,t,e.autoApply,e.modelAuto)})(n,i):((e,n)=>{const i=s.value?s.value:lR(new Date);s.value=xR(i,e,l.value(n)),t("auto-apply")})(n,i)),selectYear:(e,t)=>{f(e,t),T(t,e,null)},toggleYearPicker:g,handleYearSelect:v,handleYear:y,getModelMonthYear:w}},YL=pc({compatConfig:{MODE:3},__name:"MonthPicker",props:{...fL},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:t,emit:n}){const i=n,r=Xc(),o=aL(r,"yearMode"),a=e,{groupedMonths:s,groupedYears:l,year:c,isDisabled:u,defaultedMultiCalendars:d,defaultedConfig:h,showYearPicker:f,modelValue:p,setHoverDate:m,selectMonth:g,selectYear:v,toggleYearPicker:y,handleYearSelect:b,handleYear:_,getModelMonthYear:w}=FL(a,i);return t({getSidebarProps:()=>({modelValue:p,year:c,getModelMonthYear:w,selectMonth:g,selectYear:v,handleYear:_})}),(e,t)=>(Qu(),od(ML,{"multi-calendars":Hs(d).count,stretch:""},{default:Dl((({instance:t})=>[e.$slots["month-year"]?jc(e.$slots,"month-year",aa(wd({key:0},{year:Hs(c),months:Hs(s)(t),years:Hs(l)(t),selectMonth:Hs(g),selectYear:Hs(v),instance:t}))):(Qu(),od(CL,{key:1,items:Hs(s)(t),"arrow-navigation":e.arrowNavigation,"is-last":e.autoApply&&!Hs(h).keepActionRow,"esc-close":e.escClose,height:Hs(h).modeHeight,config:e.config,"no-overlay-focus":e.noOverlayFocus,"use-relative":"",type:"month",onSelected:e=>Hs(g)(e,t),onHoverValue:e=>Hs(m)(e,t)},{header:Dl((()=>[hd(PL,wd(e.$props,{items:Hs(l)(t),instance:t,"show-year-picker":Hs(f)[t],year:Hs(c)(t),"is-disabled":e=>Hs(u)(t,e),onHandleYear:e=>Hs(_)(t,e),onYearSelect:e=>Hs(b)(e,t),onToggleYearPicker:e=>Hs(y)(t,null==e?void 0:e.flow,null==e?void 0:e.show)}),Uc({_:2},[Bc(Hs(o),((t,n)=>({name:t,fn:Dl((n=>[jc(e.$slots,t,aa(fd(n)))]))})))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])])),_:2},1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))])),_:3},8,["multi-calendars"]))}}),BL=(e,t)=>{const{modelValue:n}=lL(e,t),i=Ys(null),{defaultedHighlight:r}=GR(e),o=$d((()=>KN(jN(e.yearRange,e.reverseYears),(t=>{const o=(e=>Array.isArray(n.value)?n.value.some((t=>YO(t)===e)):!!n.value&&YO(n.value)===e)(t.value),s=GN(t.value,fR(e.minDate),fR(e.maxDate)),l=(t=>!(!e.range||!Array.isArray(n.value))&&sR(n.value,i.value,a(t)))(t.value);return{active:o,disabled:s,isBetween:l,highlighted:LR(r.value,t.value)}})))),a=e=>jP(lR(new Date),e);return{groupedYears:o,modelValue:n,setHoverValue:e=>{i.value=jP(lR(new Date),e)},selectYear:i=>{var r;if(e.multiDates)return n.value?Array.isArray(n.value)&&((null==(r=n.value)?void 0:r.map((e=>YO(e)))).includes(i)?n.value=n.value.filter((e=>YO(e)!==i)):n.value.push(jP(nR(tR()),i))):n.value=[jP(nR(tR()),i)],t("auto-apply",!0);if(e.range){const r=RL(n,a(i),t);return LL(r,t,e.autoApply,e.modelAuto)}n.value=a(i),t("auto-apply")}}},UL=pc({compatConfig:{MODE:3},__name:"YearPicker",props:{...fL},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply"],setup(e,{expose:t,emit:n}){const i=n,r=e,{groupedYears:o,modelValue:a,selectYear:s,setHoverValue:l}=BL(r,i),{defaultedConfig:c}=GR(r);return t({getSidebarProps:()=>({modelValue:a,selectYear:s})}),(e,t)=>(Qu(),rd("div",null,[e.$slots["month-year"]?jc(e.$slots,"month-year",aa(wd({key:0},{years:Hs(o),selectYear:Hs(s)}))):(Qu(),od(CL,{key:1,items:Hs(o),"is-last":e.autoApply&&!Hs(c).keepActionRow,height:Hs(c).modeHeight,config:e.config,"no-overlay-focus":e.noOverlayFocus,type:"year","use-relative":"",onSelected:Hs(s),onHoverValue:Hs(l)},Uc({_:2},[e.$slots["year-overlay-value"]?{name:"item",fn:Dl((({item:t})=>[jc(e.$slots,"year-overlay-value",{text:t.text,value:t.value})])),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","onSelected","onHoverValue"]))]))}}),jL={key:0,class:"dp__time_input"},HL=["aria-label","onKeydown","onClick"],$L=dd("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),VL=dd("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),WL=["aria-label","disabled","onKeydown","onClick"],zL=["aria-label","onKeydown","onClick"],qL=dd("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),XL=dd("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),GL={key:0},KL=["aria-label","onKeydown"],JL=pc({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},...fL},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const i=n,r=e,{setTimePickerElements:o,setTimePickerBackRef:a}=zR(),{defaultedAriaLabels:s,defaultedTransitions:l,defaultedFilters:c,defaultedConfig:u}=GR(r),{transitionName:d,showTransition:h}=sL(l),f=ks({hours:!1,minutes:!1,seconds:!1}),p=Ys("AM"),m=Ys(null),g=Ys([]);Oc((()=>{i("mounted")}));const v=e=>IP(new Date,{hours:e.hours,minutes:e.minutes,seconds:r.enableSeconds?e.seconds:0,milliseconds:0}),y=$d((()=>e=>O(e,r[e])||_(e,r[e]))),b=$d((()=>({hours:r.hours,minutes:r.minutes,seconds:r.seconds}))),_=(e,t)=>!(!r.range||r.disableTimeRangeValidation)&&!r.validateTime(e,t),w=(e,t)=>{if(r.range&&!r.disableTimeRangeValidation){const n=t?+r["".concat(e,"Increment")]:-+r["".concat(e,"Increment")],i=r[e]+n;return!r.validateTime(e,i)}return!1},x=$d((()=>e=>!P(+r[e]+ +r["".concat(e,"Increment")],e)||w(e,!0))),k=$d((()=>e=>!P(+r[e]-+r["".concat(e,"Increment")],e)||w(e,!1))),S=(e,t)=>CA(IP(tR(),e),t),T=(e,t)=>$P(IP(tR(),e),t),C=$d((()=>({dp__time_col:!0,dp__time_col_block:!r.timePickerInline,dp__time_col_reg_block:!r.enableSeconds&&r.is24&&!r.timePickerInline,dp__time_col_reg_inline:!r.enableSeconds&&r.is24&&r.timePickerInline,dp__time_col_reg_with_button:!r.enableSeconds&&!r.is24,dp__time_col_sec:r.enableSeconds&&r.is24,dp__time_col_sec_with_button:r.enableSeconds&&!r.is24}))),M=$d((()=>{const e=[{type:"hours"},{type:"",separator:!0},{type:"minutes"}];return r.enableSeconds?e.concat([{type:"",separator:!0},{type:"seconds"}]):e})),D=$d((()=>M.value.filter((e=>!e.separator)))),A=$d((()=>e=>{if("hours"===e){const e=I(+r.hours);return{text:e<10?"0".concat(e):"".concat(e),value:e}}return{text:r[e]<10?"0".concat(r[e]):"".concat(r[e]),value:r[e]}})),O=(e,t)=>{var n;if(!r.disabledTimesConfig)return!1;const i=r.disabledTimesConfig(r.order,"hours"===e?t:void 0);return!i[e]||!(null==(n=i[e])||!n.includes(t))},E=e=>{const t=r.is24?24:12,n="hours"===e?t:60,i=+r["".concat(e,"GridIncrement")],o=[];for(let a="hours"!==e||r.is24?0:i;a({active:!1,disabled:c.value.times[e].includes(t.value)||!P(t.value,e)||O(e,t.value)||_(e,t.value)})))},P=(e,t)=>{const n=r.minTime?v(cR(r.minTime)):null,i=r.maxTime?v(cR(r.maxTime)):null,o=v(cR(b.value,t,e));return n&&i?(UO(o,i)||jO(o,i))&&(BO(o,n)||jO(o,n)):n?BO(o,n)||jO(o,n):!i||(UO(o,i)||jO(o,i))},N=e=>r["no".concat(e[0].toUpperCase()+e.slice(1),"Overlay")],R=e=>{N(e)||(f[e]=!f[e],f[e]||i("overlay-closed"))},L=(e,t=!0)=>{const n=t?S:T,o=t?+r["".concat(e,"Increment")]:-+r["".concat(e,"Increment")];P(+r[e]+o,e)&&i("update:".concat(e),(e=>"hours"===e?NO:"minutes"===e?RO:IO)(e)(n({[e]:+r[e]},{[e]:+r["".concat(e,"Increment")]})))},I=e=>r.is24?e:(p.value=e>=12?"PM":"AM",(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])(e)),F=()=>{"PM"===p.value?(p.value="AM",i("update:hours",r.hours-12)):(p.value="PM",i("update:hours",r.hours+12)),i("am-pm-change",p.value)},Y=(e,t,n)=>{if(e&&r.arrowNavigation){Array.isArray(g.value[t])?g.value[t][n]=e:g.value[t]=[e];const i=g.value.reduce(((e,t)=>t.map(((n,i)=>[...e[i]||[],t[i]]))),[]);a(r.closeTimePickerBtn),m.value&&(i[1]=i[1].concat(m.value)),o(i,r.order)}};return t({openChildCmp:e=>{f[e]=!0}}),(e,t)=>{var n;return e.disabled?vd("",!0):(Qu(),rd("div",jL,[(Qu(!0),rd(qu,null,Bc(M.value,((t,n)=>{var i,o,a;return Qu(),rd("div",{key:n,class:oa(C.value)},[t.separator?(Qu(),rd(qu,{key:0},[md(" : ")],64)):(Qu(),rd(qu,{key:1},[dd("button",{ref_for:!0,ref:e=>Y(e,n,0),type:"button",class:oa({dp__btn:!0,dp__inc_dec_button:!e.timePickerInline,dp__inc_dec_button_inline:e.timePickerInline,dp__tp_inline_btn_top:e.timePickerInline,dp__inc_dec_button_disabled:x.value(t.type)}),"aria-label":null==(i=Hs(s))?void 0:i.incrementValue(t.type),tabindex:"0",onKeydown:[pf(hf((e=>L(t.type)),["prevent"]),["enter"]),pf(hf((e=>L(t.type)),["prevent"]),["space"])],onClick:e=>L(t.type)},[r.timePickerInline?(Qu(),rd(qu,{key:1},[$L,VL],64)):(Qu(),rd(qu,{key:0},[e.$slots["arrow-up"]?jc(e.$slots,"arrow-up",{key:0}):vd("",!0),e.$slots["arrow-up"]?vd("",!0):(Qu(),od(Hs(tN),{key:1}))],64))],42,HL),dd("button",{ref_for:!0,ref:e=>Y(e,n,1),type:"button","aria-label":null==(o=Hs(s))?void 0:o.openTpOverlay(t.type),class:oa({dp__time_display:!0,dp__time_display_block:!e.timePickerInline,dp__time_display_inline:e.timePickerInline,"dp--time-invalid":y.value(t.type),"dp--time-overlay-btn":!y.value(t.type)}),disabled:N(t.type),tabindex:"0",onKeydown:[pf(hf((e=>R(t.type)),["prevent"]),["enter"]),pf(hf((e=>R(t.type)),["prevent"]),["space"])],onClick:e=>R(t.type)},[e.$slots[t.type]?jc(e.$slots,t.type,{key:0,text:A.value(t.type).text,value:A.value(t.type).value}):vd("",!0),e.$slots[t.type]?vd("",!0):(Qu(),rd(qu,{key:1},[md(da(A.value(t.type).text),1)],64))],42,WL),dd("button",{ref_for:!0,ref:e=>Y(e,n,2),type:"button",class:oa({dp__btn:!0,dp__inc_dec_button:!e.timePickerInline,dp__inc_dec_button_inline:e.timePickerInline,dp__tp_inline_btn_bottom:e.timePickerInline,dp__inc_dec_button_disabled:k.value(t.type)}),"aria-label":null==(a=Hs(s))?void 0:a.decrementValue(t.type),tabindex:"0",onKeydown:[pf(hf((e=>L(t.type,!1)),["prevent"]),["enter"]),pf(hf((e=>L(t.type,!1)),["prevent"]),["space"])],onClick:e=>L(t.type,!1)},[r.timePickerInline?(Qu(),rd(qu,{key:1},[qL,XL],64)):(Qu(),rd(qu,{key:0},[e.$slots["arrow-down"]?jc(e.$slots,"arrow-down",{key:0}):vd("",!0),e.$slots["arrow-down"]?vd("",!0):(Qu(),od(Hs(nN),{key:1}))],64))],42,zL)],64))],2)})),128)),e.is24?vd("",!0):(Qu(),rd("div",GL,[e.$slots["am-pm-button"]?jc(e.$slots,"am-pm-button",{key:0,toggle:F,value:p.value}):vd("",!0),e.$slots["am-pm-button"]?vd("",!0):(Qu(),rd("button",{key:1,ref_key:"amPmButton",ref:m,type:"button",class:"dp__pm_am_button",role:"button","aria-label":null==(n=Hs(s))?void 0:n.amPmButton,tabindex:"0",onClick:F,onKeydown:[pf(hf(F,["prevent"]),["enter"]),pf(hf(F,["prevent"]),["space"])]},da(p.value),41,KL))])),(Qu(!0),rd(qu,null,Bc(D.value,((n,o)=>(Qu(),od(nh,{key:o,name:Hs(d)(f[n.type]),css:Hs(h)},{default:Dl((()=>[f[n.type]?(Qu(),od(CL,{key:0,items:E(n.type),"is-last":e.autoApply&&!Hs(u).keepActionRow,"esc-close":e.escClose,type:n.type,"text-input":e.textInput,config:e.config,"arrow-navigation":e.arrowNavigation,onSelected:e=>((e,t)=>(R(e),"hours"!==e||r.is24?i("update:".concat(e),t):i("update:".concat(e),"PM"===p.value?t+12:t)))(n.type,e),onToggle:e=>R(n.type),onResetFlow:t[0]||(t[0]=t=>e.$emit("reset-flow"))},Uc({"button-icon":Dl((()=>[e.$slots["clock-icon"]?jc(e.$slots,"clock-icon",{key:0}):vd("",!0),e.$slots["clock-icon"]?vd("",!0):(Qu(),od(Hs(eN),{key:1}))])),_:2},[e.$slots["".concat(n.type,"-overlay-value")]?{name:"item",fn:Dl((({item:t})=>[jc(e.$slots,"".concat(n.type,"-overlay-value"),{text:t.text,value:t.value})])),key:"0"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","onSelected","onToggle"])):vd("",!0)])),_:2},1032,["name","css"])))),128))]))}}}),ZL={class:"dp--tp-wrap"},QL=["aria-label","tabindex"],eI=["tabindex"],tI=["aria-label"],nI=pc({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},...fL},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const i=n,r=e,{buildMatrix:o,setTimePicker:a}=zR(),s=Xc(),{defaultedTransitions:l,defaultedAriaLabels:c,defaultedTextInput:u,defaultedConfig:d}=GR(r),{transitionName:h,showTransition:f}=sL(l),{hideNavigationButtons:p}=dL(),m=Ys(null),g=Ys(null),v=Ys([]),y=Ys(null);Oc((()=>{i("mount"),!r.timePicker&&r.arrowNavigation?o([$N(m.value)],"time"):a(!0,r.timePicker)}));const b=$d((()=>!r.range||!r.modelAuto||VN(r.internalModelValue))),_=Ys(!1),w=e=>({hours:Array.isArray(r.hours)?r.hours[e]:r.hours,minutes:Array.isArray(r.minutes)?r.minutes[e]:r.minutes,seconds:Array.isArray(r.seconds)?r.seconds[e]:r.seconds}),x=$d((()=>{const e=[];if(r.range)for(let t=0;t<2;t++)e.push(w(t));else e.push(w(0));return e})),k=(e,t=!1,n="")=>{t||i("reset-flow"),_.value=e,i(e?"overlay-opened":"overlay-closed"),r.arrowNavigation&&a(e),cl((()=>{""!==n&&v.value[0]&&v.value[0].openChildCmp(n)}))},S=$d((()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:r.autoApply&&!d.value.keepActionRow}))),T=aL(s,"timePicker"),C=(e,t,n)=>r.range?0===t?[e,x.value[1][n]]:[x.value[0][n],e]:e,M=e=>{i("update:hours",e)},D=e=>{i("update:minutes",e)},A=e=>{i("update:seconds",e)},O=()=>{if(y.value&&!u.value.enabled&&!r.noOverlayFocus){const e=(e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]})(y.value);e&&e.focus({preventScroll:!0})}};return t({toggleTimePicker:k}),(t,n)=>{var i;return Qu(),rd("div",ZL,[t.timePicker||t.timePickerInline?vd("",!0):ec((Qu(),rd("button",{key:0,ref_key:"openTimePickerBtn",ref:m,type:"button",class:oa(S.value),"aria-label":null==(i=Hs(c))?void 0:i.openTimePicker,tabindex:t.noOverlayFocus?void 0:0,onKeydown:[n[0]||(n[0]=pf((e=>k(!0)),["enter"])),n[1]||(n[1]=pf((e=>k(!0)),["space"]))],onClick:n[2]||(n[2]=e=>k(!0))},[t.$slots["clock-icon"]?jc(t.$slots,"clock-icon",{key:0}):vd("",!0),t.$slots["clock-icon"]?vd("",!0):(Qu(),od(Hs(eN),{key:1}))],42,QL)),[[bh,!Hs(p)(t.hideNavigation,"time")]]),hd(nh,{name:Hs(h)(_.value),css:Hs(f)&&!t.timePickerInline},{default:Dl((()=>{var i;return[_.value||t.timePicker||t.timePickerInline?(Qu(),rd("div",{key:0,ref_key:"overlayRef",ref:y,class:oa({dp__overlay:!t.timePickerInline,"dp--overlay-absolute":!r.timePicker&&!t.timePickerInline,"dp--overlay-relative":r.timePicker}),style:ea(t.timePicker?{height:"".concat(Hs(d).modeHeight,"px")}:void 0),tabindex:t.timePickerInline?void 0:0},[dd("div",{class:oa(t.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[t.$slots["time-picker-overlay"]?jc(t.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:M,setMinutes:D,setSeconds:A}):vd("",!0),t.$slots["time-picker-overlay"]?vd("",!0):(Qu(),rd("div",{key:1,class:oa(t.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(Qu(!0),rd(qu,null,Bc(x.value,((i,r)=>ec((Qu(),od(JL,wd({key:r},{...t.$props,order:r,hours:i.hours,minutes:i.minutes,seconds:i.seconds,closeTimePickerBtn:g.value,disabledTimesConfig:e.disabledTimesConfig,disabled:0===r?t.fixedStart:t.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:v,"validate-time":(t,n)=>e.validateTime(t,C(n,r,t)),"onUpdate:hours":e=>M(C(e,r,"hours")),"onUpdate:minutes":e=>D(C(e,r,"minutes")),"onUpdate:seconds":e=>A(C(e,r,"seconds")),onMounted:O,onOverlayClosed:O,onAmPmChange:n[3]||(n[3]=e=>t.$emit("am-pm-change",e))}),Uc({_:2},[Bc(Hs(T),((e,n)=>({name:e,fn:Dl((n=>[jc(t.$slots,e,aa(fd(n)))]))})))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[bh,0===r||b.value]]))),128))],2)),t.timePicker||t.timePickerInline?vd("",!0):ec((Qu(),rd("button",{key:2,ref_key:"closeTimePickerBtn",ref:g,type:"button",class:oa(S.value),"aria-label":null==(i=Hs(c))?void 0:i.closeTimePicker,tabindex:"0",onKeydown:[n[4]||(n[4]=pf((e=>k(!1)),["enter"])),n[5]||(n[5]=pf((e=>k(!1)),["space"]))],onClick:n[6]||(n[6]=e=>k(!1))},[t.$slots["calendar-icon"]?jc(t.$slots,"calendar-icon",{key:0}):vd("",!0),t.$slots["calendar-icon"]?vd("",!0):(Qu(),od(Hs(KP),{key:1}))],42,tI)),[[bh,!Hs(p)(t.hideNavigation,"time")]])],2)],14,eI)):vd("",!0)]})),_:3},8,["name","css"])])}}}),iI=(e,t,n,i)=>{const r=(e,n)=>Array.isArray(t[e])?t[e][n]:t[e],o=n=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[n]:t.seconds:0,a=(e,n)=>{t[e]=n},s=(i,r)=>{const o=Object.fromEntries(Object.keys(t).map((e=>e===i?[e,r]:[e,t[e]].slice())));if(e.range&&!e.disableTimeRangeValidation){const e=e=>n.value?iR(n.value[e],o.hours[e],o.minutes[e],o.seconds[e]):null,t=e=>YP(n.value[e],0);return!(oR(e(0),e(1))&&(BO(e(0),t(1))||UO(e(1),t(0))))}return!0},l=(e,t)=>{s(e,t)&&(a(e,t),i&&i())},c=e=>{l("hours",e)},u=e=>{l("minutes",e)},d=e=>{l("seconds",e)},h=$d((()=>(n,i)=>{var r,o,a;if(Array.isArray(e.disabledTimes)){const{disabledArr:s,hours:l}=((n,i)=>{const r={hours:Array.isArray(t.hours)?t.hours[n]:t.hours,disabledArr:[]};return(i||0===i)&&(r.hours=i),Array.isArray(e.disabledTimes)&&(r.disabledArr=e.range&&Array.isArray(e.disabledTimes[n])?e.disabledTimes[n]:e.disabledTimes),r})(n,i),c=s.filter((e=>+e.hours===l));return"*"===(null==(a=c[0])?void 0:a.minutes)?{hours:[l],minutes:void 0,seconds:void 0}:{hours:[],minutes:null!=(r=null==c?void 0:c.map((e=>+e.minutes)))?r:[],seconds:null!=(o=null==c?void 0:c.map((e=>e.seconds?+e.seconds:void 0)))?o:[]}}return{hours:[],minutes:[],seconds:[]}}));return{setTime:a,updateHours:c,updateMinutes:u,updateSeconds:d,getSetDateTime:(e,n)=>e?void 0!==n?iR(e,r("hours",n),r("minutes",n),o(n)):iR(e,t.hours,t.minutes,o()):UP(tR(),o(n)),updateTimeValues:(e,t,i,r)=>{t&&c(e),!t&&!i&&u(e),i&&d(e),n.value&&r(n.value)},getSecondsValue:o,assignStartTime:t=>{if(t){const n=Array.isArray(t),i=n?[+t[0].hours,+t[1].hours]:+t.hours,r=n?[+t[0].minutes,+t[1].minutes]:+t.minutes,o=n?[+t[0].seconds,+t[1].seconds]:+t.seconds;a("hours",i),a("minutes",r),e.enableSeconds&&a("seconds",o)}},validateTime:s,disabledTimesConfig:h}},rI=(e,t)=>{const{modelValue:n,time:i}=lL(e,t),{defaultedStartTime:r}=GR(e),{updateTimeValues:o,getSetDateTime:a,setTime:s,assignStartTime:l,disabledTimesConfig:c,validateTime:u}=iI(e,i,n),d=e=>{const{hours:t,minutes:n,seconds:i}=e;return{hours:+t,minutes:+n,seconds:i?+i:0}},h=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const t=d(e.startTime[0]),n=d(e.startTime[1]);return[IP(tR(),t),IP(tR(),n)]}const t=d(e.startTime);return IP(tR(),t)}return e.range?[null,null]:null},f=(t,n,i)=>{s("hours",t),s("minutes",n),s("seconds",e.enableSeconds?i:0)},p=()=>{const[t,i]=(e=>Array.isArray(e)?[uR(tR(e[0])),uR(tR(e[1]))]:[uR(null!=e?e:tR())])(n.value);return e.range?f([t.hours,i.hours],[t.minutes,i.minutes],[t.seconds,i.minutes]):f(t.hours,t.minutes,t.seconds)};Oc((()=>{if(!e.shadow)return l(r.value),n.value?p():(()=>{if(e.range){const[e,t]=h();n.value=[a(e,0),a(t,1)]}else n.value=a(h())})()}));const m=()=>{Array.isArray(n.value)?n.value=n.value.map(((e,t)=>e&&a(e,t))):n.value=a(n.value),t("time-update")};return{modelValue:n,time:i,disabledTimesConfig:c,updateTime:(e,t=!0,n=!1)=>{o(e,t,n,m)},validateTime:u}},oI=pc({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...fL},emits:["update:internal-model-value","time-update","am-pm-change"],setup(e,{expose:t,emit:n}){const i=n,r=e,o=Xc(),a=aL(o,"timePicker"),{time:s,modelValue:l,disabledTimesConfig:c,updateTime:u,validateTime:d}=rI(r,i);return t({getSidebarProps:()=>({modelValue:l,time:s,updateTime:u})}),(e,t)=>(Qu(),od(ML,{"multi-calendars":0,stretch:""},{default:Dl((()=>[hd(nI,wd(e.$props,{hours:Hs(s).hours,minutes:Hs(s).minutes,seconds:Hs(s).seconds,"internal-model-value":e.internalModelValue,"disabled-times-config":Hs(c),"validate-time":Hs(d),"onUpdate:hours":t[0]||(t[0]=e=>Hs(u)(e)),"onUpdate:minutes":t[1]||(t[1]=e=>Hs(u)(e,!1)),"onUpdate:seconds":t[2]||(t[2]=e=>Hs(u)(e,!1,!0)),onAmPmChange:t[3]||(t[3]=t=>e.$emit("am-pm-change",t))}),Uc({_:2},[Bc(Hs(a),((t,n)=>({name:t,fn:Dl((n=>[jc(e.$slots,t,aa(fd(n)))]))})))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])])),_:3}))}}),aI={class:"dp__month_year_row"},sI=["aria-label","onClick","onKeydown"],lI=pc({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:()=>[]},...fL},emits:["update-month-year","mount","reset-flow","overlay-closed"],setup(e,{expose:t,emit:n}){const i=n,r=e,{defaultedTransitions:o,defaultedAriaLabels:a,defaultedMultiCalendars:s,defaultedFilters:l,defaultedConfig:c,defaultedHighlight:u}=GR(r),{transitionName:d,showTransition:h}=sL(o),{buildMatrix:f}=zR(),{handleMonthYearChange:p,isDisabled:m,updateMonthYear:g}=((e,t)=>{const{defaultedFilters:n}=GR(e),{validateMonthYearInRange:i}=uL(e),r=(e,t)=>{let i=e;return n.value.months.includes(LO(i))?(i=t?TA(e,1):HP(e,1),r(i,t)):i},o=(e,t)=>{let i=e;return n.value.years.includes(YO(i))?(i=t?LA(e,1):VP(e,1),o(i,t)):i},a=(e,n,i)=>{t("update-month-year",{month:e,year:n,fromNav:i})};return{handleMonthYearChange:(t,s=!1)=>{const l=IP(new Date,{month:e.month,year:e.year});let c=t?TA(l,1):HP(l,1);e.disableYearSelect&&(c=jP(c,e.year));let u=LO(c),d=YO(c);n.value.months.includes(u)&&(c=r(c,t),u=LO(c),d=YO(c)),n.value.years.includes(d)&&(c=o(c,t),d=YO(c)),i(u,d,t,e.preventMinMaxNavigation)&&a(u,d,s)},isDisabled:$d((()=>t=>kR(IP(new Date,{month:e.month,year:e.year}),e.maxDate,e.minDate,e.preventMinMaxNavigation,t))),updateMonthYear:a}})(r,i),{showLeftIcon:v,showRightIcon:y}=dL(),b=Ys(!1),_=Ys(!1),w=Ys([null,null,null,null]);Oc((()=>{i("mount")}));const x=e=>({get:()=>r[e],set:t=>{const n=e===ZR.month?ZR.year:ZR.month;i("update-month-year",{[e]:t,[n]:r[n]}),e===ZR.month?O(!0):E(!0)}}),k=$d(x(ZR.month)),S=$d(x(ZR.year)),T=$d((()=>e=>({month:r.month,year:r.year,items:e===ZR.month?r.months:r.years,instance:r.instance,updateMonthYear:g,toggle:e===ZR.month?O:E}))),C=$d((()=>r.months.find((e=>e.value===r.month))||{text:"",value:0})),M=$d((()=>KN(r.months,(e=>({active:r.month===e.value,disabled:GN(e.value,dR(r.year,r.minDate),hR(r.year,r.maxDate))||l.value.months.includes(e.value),highlighted:RR(u.value,e.value,r.year)}))))),D=$d((()=>KN(r.years,(e=>({active:r.year===e.value,disabled:GN(e.value,fR(r.minDate),fR(r.maxDate))||l.value.years.includes(e.value),highlighted:LR(u.value,e.value)}))))),A=(e,t)=>{e.value=void 0!==t?t:!e.value,e.value||i("overlay-closed")},O=(e=!1,t)=>{P(e),A(b,t)},E=(e=!1,t)=>{P(e),A(_,t)},P=e=>{e||i("reset-flow")},N=(e,t)=>{r.arrowNavigation&&(w.value[t]=$N(e),f(w.value,"monthYear"))},R=$d((()=>{var e,t;return[{type:ZR.month,index:1,toggle:O,modelValue:k.value,updateModelValue:e=>k.value=e,text:C.value.text,showSelectionGrid:b.value,items:M.value,ariaLabel:null==(e=a.value)?void 0:e.openMonthsOverlay},{type:ZR.year,index:2,toggle:E,modelValue:S.value,updateModelValue:e=>S.value=e,text:r.year,showSelectionGrid:_.value,items:D.value,ariaLabel:null==(t=a.value)?void 0:t.openYearsOverlay}]})),L=$d((()=>r.disableYearSelect?[R.value[0]]:r.yearFirst?[...R.value].reverse():R.value));return t({toggleMonthPicker:O,toggleYearPicker:E,handleMonthYearChange:p}),(t,n)=>{var i,o,l;return Qu(),rd("div",aI,[t.$slots["month-year"]?jc(t.$slots,"month-year",aa(wd({key:0},{month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:Hs(g),handleMonthYearChange:Hs(p),instance:e.instance}))):(Qu(),rd(qu,{key:1},[Hs(v)(Hs(s),e.instance)&&!t.vertical?(Qu(),od(AL,{key:0,"aria-label":null==(i=Hs(a))?void 0:i.prevMonth,disabled:Hs(m)(!1),onActivate:n[0]||(n[0]=e=>Hs(p)(!1,!0)),onSetRef:n[1]||(n[1]=e=>N(e,0))},{default:Dl((()=>[t.$slots["arrow-left"]?jc(t.$slots,"arrow-left",{key:0}):vd("",!0),t.$slots["arrow-left"]?vd("",!0):(Qu(),od(Hs(ZP),{key:1}))])),_:3},8,["aria-label","disabled"])):vd("",!0),dd("div",{class:oa(["dp__month_year_wrap",{dp__year_disable_select:t.disableYearSelect}])},[(Qu(!0),rd(qu,null,Bc(L.value,((e,n)=>(Qu(),rd(qu,{key:e.type},[dd("button",{ref_for:!0,ref:e=>N(e,n+1),type:"button",class:"dp__btn dp__month_year_select",tabindex:"0","aria-label":e.ariaLabel,onClick:e.toggle,onKeydown:[pf(hf(e.toggle,["prevent"]),["enter"]),pf(hf(e.toggle,["prevent"]),["space"])]},[t.$slots[e.type]?jc(t.$slots,e.type,{key:0,text:e.text,value:r[e.type]}):vd("",!0),t.$slots[e.type]?vd("",!0):(Qu(),rd(qu,{key:1},[md(da(e.text),1)],64))],40,sI),hd(nh,{name:Hs(d)(e.showSelectionGrid),css:Hs(h)},{default:Dl((()=>[e.showSelectionGrid?(Qu(),od(CL,{key:0,items:e.items,"arrow-navigation":t.arrowNavigation,"hide-navigation":t.hideNavigation,"is-last":t.autoApply&&!Hs(c).keepActionRow,"skip-button-ref":!1,config:t.config,type:e.type,"header-refs":[],"esc-close":t.escClose,"text-input":t.textInput,onSelected:e.updateModelValue,onToggle:e.toggle},Uc({"button-icon":Dl((()=>[t.$slots["calendar-icon"]?jc(t.$slots,"calendar-icon",{key:0}):vd("",!0),t.$slots["calendar-icon"]?vd("",!0):(Qu(),od(Hs(KP),{key:1}))])),_:2},[t.$slots["".concat(e.type,"-overlay-value")]?{name:"item",fn:Dl((({item:n})=>[jc(t.$slots,"".concat(e.type,"-overlay-value"),{text:n.text,value:n.value})])),key:"0"}:void 0,t.$slots["".concat(e.type,"-overlay")]?{name:"overlay",fn:Dl((()=>[jc(t.$slots,"".concat(e.type,"-overlay"),aa(fd(T.value(e.type))))])),key:"1"}:void 0,t.$slots["".concat(e.type,"-overlay-header")]?{name:"header",fn:Dl((()=>[jc(t.$slots,"".concat(e.type,"-overlay-header"),{toggle:e.toggle})])),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","text-input","onSelected","onToggle"])):vd("",!0)])),_:2},1032,["name","css"])],64)))),128))],2),Hs(v)(Hs(s),e.instance)&&t.vertical?(Qu(),od(AL,{key:1,"aria-label":null==(o=Hs(a))?void 0:o.prevMonth,disabled:Hs(m)(!1),onActivate:n[2]||(n[2]=e=>Hs(p)(!1,!0))},{default:Dl((()=>[t.$slots["arrow-up"]?jc(t.$slots,"arrow-up",{key:0}):vd("",!0),t.$slots["arrow-up"]?vd("",!0):(Qu(),od(Hs(tN),{key:1}))])),_:3},8,["aria-label","disabled"])):vd("",!0),Hs(y)(Hs(s),e.instance)?(Qu(),od(AL,{key:2,ref:"rightIcon",disabled:Hs(m)(!0),"aria-label":null==(l=Hs(a))?void 0:l.nextMonth,onActivate:n[3]||(n[3]=e=>Hs(p)(!0,!0)),onSetRef:n[4]||(n[4]=e=>N(e,t.disableYearSelect?2:3))},{default:Dl((()=>[t.$slots[t.vertical?"arrow-down":"arrow-right"]?jc(t.$slots,t.vertical?"arrow-down":"arrow-right",{key:0}):vd("",!0),t.$slots[t.vertical?"arrow-down":"arrow-right"]?vd("",!0):(Qu(),od(Fl(t.vertical?Hs(nN):Hs(QP)),{key:1}))])),_:3},8,["disabled","aria-label"])):vd("",!0)],64))])}}}),cI=["aria-label"],uI={class:"dp__calendar_header",role:"row"},dI={key:0,class:"dp__calendar_header_item",role:"gridcell"},hI=dd("div",{class:"dp__calendar_header_separator"},null,-1),fI=["aria-label"],pI={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},mI={class:"dp__cell_inner"},gI=["id","aria-selected","aria-disabled","aria-label","onClick","onKeydown","onMouseenter","onMouseleave"],vI=pc({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},...fL},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const i=n,r=e,{buildMultiLevelMatrix:o}=zR(),{defaultedTransitions:a,defaultedConfig:s,defaultedAriaLabels:l,defaultedMultiCalendars:c}=GR(r),u=Ys(null),d=Ys({bottom:"",left:"",transform:""}),h=Ys([]),f=Ys(null),p=Ys(!0),m=Ys(""),g=Ys({startX:0,endX:0,startY:0,endY:0}),v=Ys([]),y=Ys({left:"50%"}),b=$d((()=>r.calendar?r.calendar(r.mappedDates):r.mappedDates)),_=$d((()=>r.dayNames?Array.isArray(r.dayNames)?r.dayNames:r.dayNames(r.locale,+r.weekStart):UN(r.formatLocale,r.locale,+r.weekStart)));Oc((()=>{i("mount",{cmp:"calendar",refs:h}),s.value.noSwipe||f.value&&(f.value.addEventListener("touchstart",M,{passive:!1}),f.value.addEventListener("touchend",D,{passive:!1}),f.value.addEventListener("touchmove",A,{passive:!1})),r.monthChangeOnScroll&&f.value&&f.value.addEventListener("wheel",E,{passive:!1})}));const w=e=>e?r.vertical?"vNext":"next":r.vertical?"vPrevious":"previous",x=$d((()=>({[r.calendarClassName]:!!r.calendarClassName}))),k=$d((()=>e=>{const t=(e=>Object.assign({type:"dot"},e))(e);return{dp__marker_dot:"dot"===t.type,dp__marker_line:"line"===t.type}})),S=$d((()=>e=>oR(e,u.value))),T=$d((()=>({dp__calendar:!0,dp__calendar_next:c.value.count>0&&0!==r.instance}))),C=$d((()=>e=>!r.hideOffsetDates||e.current)),M=e=>{g.value.startX=e.changedTouches[0].screenX,g.value.startY=e.changedTouches[0].screenY},D=e=>{g.value.endX=e.changedTouches[0].screenX,g.value.endY=e.changedTouches[0].screenY,O()},A=e=>{r.vertical&&!r.inline&&e.preventDefault()},O=()=>{const e=r.vertical?"Y":"X";Math.abs(g.value["start".concat(e)]-g.value["end".concat(e)])>10&&i("handle-swipe",g.value["start".concat(e)]>g.value["end".concat(e)]?"right":"left")},E=e=>{r.monthChangeOnScroll&&(e.preventDefault(),i("handle-scroll",e))},P=e=>{const t=e[0];return"local"===r.weekNumbers?function(e,t){xA(1,arguments);var n=kA(e),i=AA(n,t).getTime()-FO(n,t).getTime();return Math.round(i/6048e5)+1}(t.value,{weekStartsOn:+r.weekStart}):"iso"===r.weekNumbers?function(e){xA(1,arguments);var t=kA(e),n=OA(t).getTime()-EA(t).getTime();return Math.round(n/6048e5)+1}(t.value):"function"==typeof r.weekNumbers?r.weekNumbers(t.value):""},N=e=>{JN(e,s.value)};return t({triggerTransition:(e,t)=>{if(r.transitions){const n=nR(xR(tR(),r.month,r.year));m.value=aR(nR(xR(tR(),e,t)),n)?a.value[w(!0)]:a.value[w(!1)],p.value=!1,cl((()=>{p.value=!0}))}}}),(e,t)=>{var n;return Qu(),rd("div",{class:oa(T.value)},[dd("div",{ref_key:"calendarWrapRef",ref:f,role:"grid",class:oa(x.value),"aria-label":null==(n=Hs(l))?void 0:n.calendarWrap},[(Qu(),rd(qu,{key:0},[dd("div",uI,[e.weekNumbers?(Qu(),rd("div",dI,da(e.weekNumName),1)):vd("",!0),(Qu(!0),rd(qu,null,Bc(_.value,((t,n)=>(Qu(),rd("div",{key:n,class:"dp__calendar_header_item",role:"gridcell"},[e.$slots["calendar-header"]?jc(e.$slots,"calendar-header",{key:0,day:t,index:n}):vd("",!0),e.$slots["calendar-header"]?vd("",!0):(Qu(),rd(qu,{key:1},[md(da(t),1)],64))])))),128))]),hI,hd(nh,{name:m.value,css:!!e.transitions},{default:Dl((()=>{var t;return[p.value?(Qu(),rd("div",{key:0,class:"dp__calendar",role:"rowgroup","aria-label":(null==(t=Hs(l))?void 0:t.calendarDays)||void 0},[(Qu(!0),rd(qu,null,Bc(b.value,((t,n)=>(Qu(),rd("div",{key:n,class:"dp__calendar_row",role:"row"},[e.weekNumbers?(Qu(),rd("div",pI,[dd("div",mI,da(P(t.days)),1)])):vd("",!0),(Qu(!0),rd(qu,null,Bc(t.days,((t,a)=>{var c,f,p;return Qu(),rd("div",{id:t.value.toISOString().split("T")[0],ref_for:!0,ref:e=>((e,t,n)=>{e&&(Array.isArray(h.value[t])?h.value[t][n]=e:h.value[t]=[e]),r.arrowNavigation&&o(h.value,"calendar")})(e,n,a),key:a+n,role:"gridcell",class:"dp__calendar_item","aria-selected":t.classData.dp__active_date||t.classData.dp__range_start||t.classData.dp__range_start,"aria-disabled":t.classData.dp__cell_disabled||void 0,"aria-label":null==(f=null==(c=Hs(l))?void 0:c.day)?void 0:f.call(c,t),tabindex:"0",onClick:hf((e=>((e,t)=>{JN(e,s.value),i("select-date",t)})(e,t)),["prevent"]),onKeydown:[pf((n=>e.$emit("select-date",t)),["enter"]),pf((n=>e.$emit("handle-space",t)),["space"])],onMouseenter:e=>(async(e,t,n)=>{var r,o;if(i("set-hover-date",e),null!=(o=null==(r=e.marker)?void 0:r.tooltip)&&o.length){const r=$N(h.value[t][n]);if(r){const{width:t,height:n}=r.getBoundingClientRect();u.value=e.value;let o={left:"".concat(t/2,"px")},a=-50;if(await cl(),v.value[0]){const{left:e,width:n}=v.value[0].getBoundingClientRect();e<0&&(o={left:"0"},a=0,y.value.left="".concat(t/2,"px")),window.innerWidth(e=>{u.value&&(u.value=null,d.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),i("tooltip-close",e.marker))})(t)},[dd("div",{class:oa(["dp__cell_inner",t.classData])},[e.$slots.day&&C.value(t)?jc(e.$slots,"day",{key:0,day:+t.text,date:t.value}):vd("",!0),e.$slots.day?vd("",!0):(Qu(),rd(qu,{key:1},[md(da(t.text),1)],64)),t.marker&&C.value(t)?(Qu(),rd(qu,{key:2},[e.$slots.marker?jc(e.$slots,"marker",{key:0,marker:t.marker,day:+t.text,date:t.value}):(Qu(),rd("div",{key:1,class:oa(k.value(t.marker)),style:ea(t.marker.color?{backgroundColor:t.marker.color}:{})},null,6))],64)):vd("",!0),S.value(t.value)?(Qu(),rd("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:v,class:"dp__marker_tooltip",style:ea(d.value)},[null!=(p=t.marker)&&p.tooltip?(Qu(),rd("div",{key:0,class:"dp__tooltip_content",onClick:N},[(Qu(!0),rd(qu,null,Bc(t.marker.tooltip,((n,i)=>(Qu(),rd("div",{key:i,class:"dp__tooltip_text"},[e.$slots["marker-tooltip"]?jc(e.$slots,"marker-tooltip",{key:0,tooltip:n,day:t.value}):vd("",!0),e.$slots["marker-tooltip"]?vd("",!0):(Qu(),rd(qu,{key:1},[dd("div",{class:"dp__tooltip_mark",style:ea(n.color?{backgroundColor:n.color}:{})},null,4),dd("div",null,da(n.text),1)],64))])))),128)),dd("div",{class:"dp__arrow_bottom_tp",style:ea(y.value)},null,4)])):vd("",!0)],4)):vd("",!0)],2)],40,gI)})),128))])))),128))],8,fI)):vd("",!0)]})),_:3},8,["name","css"])],64))],10,cI)],2)}}}),yI=e=>Array.isArray(e),bI=(e,t,n,i)=>{const r=Ys([]),{modelValue:o,calendars:a,time:s}=lL(e,t),{defaultedMultiCalendars:l,defaultedStartTime:c}=GR(e),{validateMonthYearInRange:u,isDisabled:d,isDateRangeAllowed:h,checkMinMaxRange:f}=uL(e),{updateTimeValues:p,getSetDateTime:m,setTime:g,assignStartTime:v,validateTime:y,disabledTimesConfig:b}=iI(e,s,o,i),_=$d((()=>e=>a.value[e]?a.value[e].month:0)),w=$d((()=>e=>a.value[e]?a.value[e].year:0)),x=(e,t,n)=>{var i,r;a.value[e]||(a.value[e]={month:0,year:0}),a.value[e].month=XN(t)?null==(i=a.value[e])?void 0:i.month:t,a.value[e].year=XN(n)?null==(r=a.value[e])?void 0:r.year:n},k=()=>{e.autoApply&&t("select-date")};Gl(o,((e,t)=>{JSON.stringify(e)!==JSON.stringify(t)&&C()})),Oc((()=>{e.shadow||(o.value||(R(),c.value&&v(c.value)),C(!0),e.focusStartDate&&e.startDate&&R())}));const S=$d((()=>{var t;return!(null!=(t=e.flow)&&t.length&&!e.partialFlow)||e.flowStep===e.flow.length})),T=()=>{e.autoApply&&S.value&&t("auto-apply",e.partialFlow)},C=(t=!1)=>o.value?Array.isArray(o.value)?(r.value=o.value,O(t)):D(o.value,t):l.value.count&&t&&!e.startDate?M(tR(),t):void 0,M=(e,t=!1)=>{if((!l.value.count||!l.value.static||t)&&x(0,LO(e),YO(e)),l.value.count)for(let n=1;n{M(e),g("hours",NO(e)),g("minutes",RO(e)),g("seconds",IO(e)),l.value.count&&t&&N()},A=(t,n)=>{t[1]&&e.showLastInRange?M(t[(e=>{if(l.value.count){if(l.value.solo)return 0;const t=LO(e[0]),n=LO(e[1]);return Math.abs(n-t)[e(t[0]),t[1]?e(t[1]):s[n][1]];g("hours",i(NO,"hours")),g("minutes",i(RO,"minutes")),g("seconds",i(IO,"seconds"))},O=t=>{((t,n)=>{if((e.range||e.weekPicker)&&!e.multiDates)return A(t,n);if(e.multiDates&&n){const e=t[t.length-1];D(e,n)}})(o.value,t),l.value.count&&l.value.solo&&N()},E=(i,r)=>{const o=IP(tR(),{month:_.value(r),year:w.value(r)}),a=i<0?TA(o,1):HP(o,1);u(LO(a),YO(a),i<0,e.preventMinMaxNavigation)&&(x(r,LO(a),YO(a)),t("update-month-year",{instance:r,month:LO(a),year:YO(a)}),l.value.count&&!l.value.solo&&P(r),n())},P=e=>{for(let t=e-1;t>=0;t--){const e=HP(IP(tR(),{month:_.value(t+1),year:w.value(t+1)}),1);x(t,LO(e),YO(e))}for(let t=e+1;t<=l.value.count-1;t++){const e=TA(IP(tR(),{month:_.value(t-1),year:w.value(t-1)}),1);x(t,LO(e),YO(e))}},N=()=>{if(Array.isArray(o.value)&&2===o.value.length){const e=tR(tR(o.value[1]?o.value[1]:TA(o.value[0],1))),[t,n]=[LO(o.value[0]),YO(o.value[0])],[i,r]=[LO(o.value[1]),YO(o.value[1])];(t!==i||t===i&&n!==r)&&l.value.solo&&x(1,LO(e),YO(e))}else o.value&&!Array.isArray(o.value)&&(x(0,LO(o.value),YO(o.value)),M(tR()))},R=()=>{e.startDate&&(x(0,LO(tR(e.startDate)),YO(tR(e.startDate))),l.value.count&&P(0))},L=(e,t)=>{E("right"===e?-1:1,t)},I=(t,n,i,r)=>{if(e.sixWeeks&&t.length<6){const o=6-t.length,a=(n.getDay()+7-r)%7,s=6-(i.getDay()+7-r)%7,[l,c]=((t,n)=>{switch(!0===e.sixWeeks?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[0==t,!0];case"fair":return[0==t||n>t,!0];default:return[!1,!1]}})(a,s);for(let e=1;e<=o;e++)if(c?!!(e%2)==l:l){const e=t[0].days[0],i=F(SA(e.value,-7),LO(n));t.unshift({days:i})}else{const e=t[t.length-1],i=e.days[e.days.length-1],r=F(SA(i.value,1),LO(n));t.push({days:r})}}return t},F=(t,n)=>{const i=tR(t),r=[];for(let o=0;o<7;o++){const t=SA(i,o),a=LO(t)!==n;r.push({text:e.hideOffsetDates&&a?"":t.getDate(),value:t,current:!a,classData:{}})}return r},Y=t=>!!e.noDisabledRange&&vR(r.value[0],t).some((e=>d(e))),B=e=>{const t=LO(tR(e)),n=YO(tR(e));if(x(0,t,n),l.value.count>0)for(let i=1;i{if(Y(n.value)||!f(n.value,o.value,e.fixedStart?0:1))return t("invalid-date",n.value);r.value=(n=>Array.isArray(o.value)&&2===o.value.length?e.fixedStart&&(aR(n,o.value[0])||oR(n,o.value[0]))?[o.value[0],n]:e.fixedEnd&&(rR(n,o.value[1])||oR(n,o.value[1]))?[n,o.value[1]]:(t("invalid-fixed-range",n),o.value):[])(tR(n.value))},j=(n,i)=>(r.value=o.value?o.value.slice():[],2===r.value.length&&!e.fixedStart&&!e.fixedEnd&&(r.value=[]),e.autoRange?((n,i)=>{const o=[tR(n.value),SA(tR(n.value),+e.autoRange)];h(o)?(i&&B(n.value),r.value=o):t("invalid-date",n.value)})(n,i):e.fixedStart||e.fixedEnd?U(n):void(r.value[0]?f(tR(n.value),o.value)&&!Y(n.value)?rR(tR(n.value),tR(r.value[0]))?(r.value.unshift(tR(n.value)),t("range-end",r.value[0])):(r.value[1]=tR(n.value),t("range-end",r.value[1])):(e.autoApply&&t("auto-apply-invalid",n.value),t("invalid-date",n.value)):(r.value[0]=tR(n.value),t("range-start",r.value[0])))),H=(t=!0)=>e.enableSeconds?Array.isArray(s.seconds)?t?s.seconds[0]:s.seconds[1]:s.seconds:0,$=e=>{r.value[e]=iR(r.value[e],s.hours[e],s.minutes[e],H(1!==e))},V=()=>{var n,a;r.value.length&&(r.value[0]&&!r.value[1]?$(0):($(0),$(1),i()),r.value[0]&&r.value[1]&&+(null==(n=r.value)?void 0:n[0])>+(null==(a=r.value)?void 0:a[1])&&(r.value.reverse(),t("range-start",r.value[0]),t("range-end",r.value[1])),o.value=r.value.slice(),LL(r.value,t,e.autoApply,e.modelAuto))},W=()=>{if(Array.isArray(o.value))if(e.multiDates){const e=z();o.value[o.value.length-1]=m(e)}else o.value=o.value.map(((e,t)=>e&&m(e,t)));else o.value=m(o.value);t("time-update")},z=()=>Array.isArray(o.value)&&o.value.length?o.value[o.value.length-1]:null;return{calendars:a,modelValue:o,month:_,year:w,time:s,disabledTimesConfig:b,validateTime:y,getCalendarDays:(t,n)=>{const i=[],r=tR(pR(new Date(n,t),e.timezone)),o=tR(pR(new Date(n,t+1,0),e.timezone)),a=e.weekStart,s=AA(r,{weekStartsOn:a}),l=e=>{const n=F(e,t);if(i.push({days:n}),!i[i.length-1].days.some((e=>oR(nR(e.value),nR(o))))){const t=SA(e,7);l(t)}};return l(s),I(i,r,o,a)},getMarker:t=>e.markers.find((e=>oR(gR(t.value),gR(e.date)))),handleScroll:(t,n)=>{e.monthChangeOnScroll&&E("inverse"!==e.monthChangeOnScroll?-t.deltaY:t.deltaY,n)},handleSwipe:L,handleArrow:(t,n,i=!1)=>{e.monthChangeOnArrows&&e.vertical===i&&L(t,n)},selectDate:(n,r=!1)=>d(n.value)||!n.current&&e.hideOffsetDates?t("invalid-date",n.value):e.weekPicker?(n=>(o.value=bR(tR(n.value),e.timezone,e.weekStart),t("date-update",n.value),T()))(n):e.range?void(yI(s.hours)&&yI(s.minutes)&&!e.multiDates&&(j(n,r),V())):(n=>{const r=iR(tR(n.value),s.hours,s.minutes,H());t("date-update",r),e.multiDates?NL(r,o,e.multiDatesLimit):o.value=r,i(),cl().then((()=>{T()}))})(n),updateMonthYear:(r,o)=>{var a;x(r,o.month,o.year),l.value.count&&!l.value.solo&&P(r),t("update-month-year",{instance:r,month:o.month,year:o.year}),n(l.value.solo?r:void 0);const s=null!=(a=e.flow)&&a.length?e.flow[e.flowStep]:void 0;!o.fromNav&&(s===tL.month||s===tL.year)&&i()},presetDate:(t,n)=>{Array.isArray(t)&&t.length<=2&&e.range?o.value=t.map((t=>pR(tR(t),n?void 0:e.timezone))):Array.isArray(t)||(o.value=pR(tR(t),n?void 0:e.timezone)),k(),e.multiCalendars&&cl().then((()=>C(!0)))},selectCurrentDate:()=>{e.range?o.value&&Array.isArray(o.value)&&o.value[0]?o.value=rR(tR(),o.value[0])?[tR(),o.value[0]]:[o.value[0],tR()]:o.value=[tR()]:o.value=tR(),k()},updateTime:(e,t=!0,n=!1)=>{p(e,t,n,W)}}},_I={key:0},wI=pc({__name:"DatePicker",props:{...fL},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"],setup(e,{expose:t,emit:n}){const i=n,r=e,{calendars:o,month:a,year:s,modelValue:l,time:c,disabledTimesConfig:u,validateTime:d,getCalendarDays:h,getMarker:f,handleArrow:p,handleScroll:m,handleSwipe:g,selectDate:v,updateMonthYear:y,presetDate:b,selectCurrentDate:_,updateTime:w}=bI(r,i,(function(e){var t;e||0===e?null==(t=D.value[e])||t.triggerTransition(a.value(e),s.value(e)):D.value.forEach(((e,t)=>e.triggerTransition(a.value(t),s.value(t))))}),(function(){i("update-flow-step")})),x=Xc(),{setHoverDate:k,getDayClassData:S,clearHoverDate:T}=cL(l,r),{defaultedMultiCalendars:C}=GR(r),M=Ys([]),D=Ys([]),A=Ys(null),O=aL(x,"calendar"),E=aL(x,"monthYear"),P=aL(x,"timePicker"),N=e=>{r.shadow||i("mount",e)};Gl(o,(()=>{r.shadow||setTimeout((()=>{i("recalculate-position")}),0)}),{deep:!0});const R=$d((()=>e=>h(a.value(e),s.value(e)).map((e=>({...e,days:e.days.map((e=>(e.marker=f(e),e.classData=S(e),e)))})))));return t({clearHoverDate:T,presetDate:b,selectCurrentDate:_,toggleMonthPicker:(e,t,n=0)=>{var i;null==(i=M.value[n])||i.toggleMonthPicker(e,t)},toggleYearPicker:(e,t,n=0)=>{var i;null==(i=M.value[n])||i.toggleYearPicker(e,t)},toggleTimePicker:(e,t,n)=>{var i;null==(i=A.value)||i.toggleTimePicker(e,t,n)},handleArrow:p,updateMonthYear:y,getSidebarProps:()=>({modelValue:l,month:a,year:s,time:c,updateTime:w,updateMonthYear:y,selectDate:v,presetDate:b})}),(e,t)=>(Qu(),rd(qu,null,[hd(ML,{"multi-calendars":Hs(C).count},{default:Dl((({instance:n,index:o})=>[e.disableMonthYearSelect?vd("",!0):(Qu(),od(lI,wd({key:0,ref:e=>{e&&(M.value[o]=e)},months:Hs(HN)(e.formatLocale,e.locale,e.monthNameFormat),years:Hs(jN)(e.yearRange,e.reverseYears),month:Hs(a)(n),year:Hs(s)(n),instance:n},e.$props,{onMount:t[0]||(t[0]=e=>N(Hs(eL).header)),onResetFlow:t[1]||(t[1]=t=>e.$emit("reset-flow")),onUpdateMonthYear:e=>Hs(y)(n,e),onOverlayClosed:t[2]||(t[2]=t=>e.$emit("focus-menu"))}),Uc({_:2},[Bc(Hs(E),((t,n)=>({name:t,fn:Dl((n=>[jc(e.$slots,t,aa(fd(n)))]))})))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),hd(vI,wd({ref:e=>{e&&(D.value[o]=e)},"mapped-dates":R.value(n),month:Hs(a)(n),year:Hs(s)(n),instance:n},e.$props,{onSelectDate:e=>Hs(v)(e,1!==n),onHandleSpace:e=>((e,t=!1)=>{v(e,t),r.spaceConfirm&&i("select-date")})(e,1!==n),onSetHoverDate:t[3]||(t[3]=e=>Hs(k)(e)),onHandleScroll:e=>Hs(m)(e,n),onHandleSwipe:e=>Hs(g)(e,n),onMount:t[4]||(t[4]=e=>N(Hs(eL).calendar)),onResetFlow:t[5]||(t[5]=t=>e.$emit("reset-flow")),onTooltipOpen:t[6]||(t[6]=t=>e.$emit("tooltip-open",t)),onTooltipClose:t[7]||(t[7]=t=>e.$emit("tooltip-close",t))}),Uc({_:2},[Bc(Hs(O),((t,n)=>({name:t,fn:Dl((n=>[jc(e.$slots,t,aa(fd({...n})))]))})))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])])),_:3},8,["multi-calendars"]),e.enableTimePicker?(Qu(),rd("div",_I,[e.$slots["time-picker"]?jc(e.$slots,"time-picker",aa(wd({key:0},{time:Hs(c),updateTime:Hs(w)}))):(Qu(),od(nI,wd({key:1,ref_key:"timePickerRef",ref:A},e.$props,{hours:Hs(c).hours,minutes:Hs(c).minutes,seconds:Hs(c).seconds,"internal-model-value":e.internalModelValue,"disabled-times-config":Hs(u),"validate-time":Hs(d),onMount:t[8]||(t[8]=e=>N(Hs(eL).timePicker)),"onUpdate:hours":t[9]||(t[9]=e=>Hs(w)(e)),"onUpdate:minutes":t[10]||(t[10]=e=>Hs(w)(e,!1)),"onUpdate:seconds":t[11]||(t[11]=e=>Hs(w)(e,!1,!0)),onResetFlow:t[12]||(t[12]=t=>e.$emit("reset-flow")),onOverlayClosed:t[13]||(t[13]=t=>e.$emit("time-picker-close")),onOverlayOpened:t[14]||(t[14]=t=>e.$emit("time-picker-open",t)),onAmPmChange:t[15]||(t[15]=t=>e.$emit("am-pm-change",t))}),Uc({_:2},[Bc(Hs(P),((t,n)=>({name:t,fn:Dl((n=>[jc(e.$slots,t,aa(fd(n)))]))})))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):vd("",!0)],64))}}),xI=(e,t)=>{const n=Ys(),{defaultedMultiCalendars:i,defaultedConfig:r,defaultedHighlight:o}=GR(e),{modelValue:a,year:s,month:l,calendars:c}=lL(e,t),{isDisabled:u}=uL(e),{selectYear:d,groupedYears:h,showYearPicker:f,isDisabled:p,toggleYearPicker:m,handleYearSelect:g,handleYear:v}=IL({modelValue:a,multiCalendars:i,highlight:o,calendars:c,month:l,year:s,props:e,emit:t}),y=(t,n)=>[t,n].map((t=>EO(t,"MMMM",{locale:e.formatLocale}))).join("-"),b=$d((()=>e=>!!a.value&&(Array.isArray(a.value)?a.value.some((t=>TP(e,t))):TP(a.value,e)))),_=$d((()=>t=>{const i=IP(new Date,{year:s.value(t)});return function(e){xA(1,arguments);var t=e||{},n=kA(t.start),i=kA(t.end),r=i.getTime();if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var o=HA(n);r=HA(i).getTime();for(var a=[],s=o;s.getTime()<=r;)a.push(kA(s)),s=RA(s,1);return a}({start:VA(i),end:$A(i)}).map((t=>{const i=HA(t),r=WA(t),s=u(t),l=(t=>{if(e.range){if(Array.isArray(a.value)){const e=oR(t,a.value[0])||oR(t,a.value[1]);return sR(a.value,n.value,t)&&!e}return!1}return!1})(i),c="function"==typeof o.value?o.value({quarter:UA(i),year:YO(i)}):!!o.value.quarters.find((e=>e.quarter===UA(i)&&e.year===YO(i)));return{text:y(i,r),value:i,active:b.value(i),highlighted:c,disabled:s,isBetween:l}}))}));return{defaultedConfig:r,defaultedMultiCalendars:i,groupedYears:h,year:s,isDisabled:p,quarters:_,showYearPicker:f,modelValue:a,setHoverDate:e=>{n.value=e},selectYear:d,selectQuarter:(n,i,r)=>{if(!r)return c.value[i].month=LO(WA(n)),e.multiDates?(n=>{NL(n,a,e.multiDatesLimit),t("auto-apply",!0)})(n):e.range?(n=>{const i=RL(a,n,t);LL(i,t,e.autoApply,e.modelAuto)})(n):(e=>{a.value=e,t("auto-apply")})(n)},toggleYearPicker:m,handleYearSelect:g,handleYear:v}},kI={class:"dp--quarter-items"},SI=["disabled","onClick","onMouseover"],TI=pc({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...fL},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end"],setup(e,{expose:t,emit:n}){const i=n,r=e,o=Xc(),a=aL(o,"yearMode"),{defaultedMultiCalendars:s,defaultedConfig:l,groupedYears:c,year:u,isDisabled:d,quarters:h,modelValue:f,showYearPicker:p,setHoverDate:m,selectQuarter:g,toggleYearPicker:v,handleYearSelect:y,handleYear:b}=xI(r,i);return t({getSidebarProps:()=>({modelValue:f,year:u,selectQuarter:g,handleYearSelect:y,handleYear:b})}),(e,t)=>(Qu(),od(ML,{"multi-calendars":Hs(s).count,stretch:""},{default:Dl((({instance:t})=>[dd("div",{class:"dp-quarter-picker-wrap",style:ea({minHeight:"".concat(Hs(l).modeHeight,"px")})},[dd("div",null,[hd(PL,wd(e.$props,{items:Hs(c)(t),instance:t,"show-year-picker":Hs(p)[t],year:Hs(u)(t),"is-disabled":e=>Hs(d)(t,e),onHandleYear:e=>Hs(b)(t,e),onYearSelect:e=>Hs(y)(e,t),onToggleYearPicker:e=>Hs(v)(t,null==e?void 0:e.flow,null==e?void 0:e.show)}),Uc({_:2},[Bc(Hs(a),((t,n)=>({name:t,fn:Dl((n=>[jc(e.$slots,t,aa(fd(n)))]))})))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),dd("div",kI,[(Qu(!0),rd(qu,null,Bc(Hs(h)(t),((n,i)=>(Qu(),rd("div",{key:i},[dd("button",{type:"button",class:oa(["dp--qr-btn",{"dp--qr-btn-active":n.active,"dp--qr-btn-between":n.isBetween,"dp--qr-btn-disabled":n.disabled,"dp--highlighted":n.highlighted}]),disabled:n.disabled,onClick:e=>Hs(g)(n.value,t,n.disabled),onMouseover:e=>Hs(m)(n.value)},[e.$slots.quarter?jc(e.$slots,"quarter",{key:0,value:n.value,text:n.text}):(Qu(),rd(qu,{key:1},[md(da(n.text),1)],64))],42,SI)])))),128))])],4)])),_:3},8,["multi-calendars"]))}}),CI=["id","onKeydown"],MI={key:0,class:"dp__sidebar_left"},DI={key:1,class:"dp--preset-dates"},AI=["onClick","onKeydown"],OI={key:2,class:"dp__sidebar_right"},EI={key:3,class:"dp__action_extra"},PI=pc({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...hL,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},arrMapValues:{type:Object,default:()=>({})},noOverlayFocus:{type:Boolean,default:!1}},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"],setup(e,{expose:t,emit:n}){const i=n,r=e,o=$d((()=>{const{openOnTop:e,...t}=r;return{...t,flowStep:S.value,noOverlayFocus:r.noOverlayFocus}})),{setMenuFocused:a,setShiftKey:s,control:l}=FR(),c=Xc(),{defaultedTextInput:u,defaultedInline:d,defaultedConfig:h}=GR(r),f=Ys(null),p=Ys(0),m=Ys(null),g=Ys(null),v=Ys(!1),y=Ys(null);Oc((()=>{if(!r.shadow){v.value=!0,b(),window.addEventListener("resize",b);const e=$N(m);if(e&&!u.value.enabled&&!d.value.enabled&&(a(!0),A()),e){const t=e=>{h.value.allowPreventDefault&&e.preventDefault(),JN(e,h.value,!0)};e.addEventListener("pointerdown",t),e.addEventListener("mousedown",t)}}})),Rc((()=>{window.removeEventListener("resize",b)}));const b=()=>{const e=$N(g);e&&(p.value=e.getBoundingClientRect().width)},{arrowRight:_,arrowLeft:w,arrowDown:x,arrowUp:k}=zR(),{flowStep:S,updateFlowStep:T,childMount:C,resetFlow:M}=((e,t,n)=>{const i=Ys(0),r=ks({[eL.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[eL.calendar]:!1,[eL.header]:!1}),o=(t,r,...o)=>{e.flow[i.value]===t&&n.value&&n.value[r](...o)},a=()=>{o(tL.month,"toggleMonthPicker",!0),o(tL.year,"toggleYearPicker",!0),o(tL.calendar,"toggleTimePicker",!1,!0),o(tL.time,"toggleTimePicker",!0,!0);const t=e.flow[i.value];(t===tL.hours||t===tL.minutes||t===tL.seconds)&&o(t,"toggleTimePicker",!0,!0,t)};return{childMount:(...t)=>{var n;null!=(n=e.flow)&&n.length&&(r[t]=!0,Object.keys(r).filter((e=>!r[e])).length||a())},updateFlowStep:()=>{var n;null!=(n=e.flow)&&n.length&&-1!==i.value&&(i.value+=1,t("flow-step",i.value),a())},resetFlow:()=>{i.value=-1},flowStep:i}})(r,i,y),D=$d((()=>r.monthPicker?YL:r.yearPicker?UL:r.timePicker?oI:r.quarterPicker?TI:wI)),A=()=>{const e=$N(m);e&&e.focus({preventScroll:!0})},O=$d((()=>{var e;return(null==(e=y.value)?void 0:e.getSidebarProps())||{}})),E=()=>{r.openOnTop&&i("recalculate-position")},P=aL(c,"action"),N=$d((()=>r.monthPicker||r.yearPicker?aL(c,"monthYear"):r.timePicker?aL(c,"timePicker"):aL(c,"shared"))),R=$d((()=>r.openOnTop?"dp__arrow_bottom":"dp__arrow_top")),L=$d((()=>({dp__menu_disabled:r.disabled,dp__menu_readonly:r.readonly}))),I=$d((()=>({dp__menu:!0,dp__menu_index:!d.value.enabled,dp__relative:d.value.enabled,[r.menuClassName]:!!r.menuClassName}))),F=e=>{JN(e,h.value,!0)},Y=()=>{r.escClose&&i("close-picker")},B=e=>{if(r.arrowNavigation){if("up"===e)return k();if("down"===e)return x();if("left"===e)return w();if("right"===e)return _()}else"left"===e||"up"===e?H("handleArrow","left",0,"up"===e):H("handleArrow","right",0,"down"===e)},U=e=>{s(e.shiftKey),!r.disableMonthYearSelect&&"Tab"===e.code&&e.target.classList.contains("dp__menu")&&l.value.shiftKeyInMenu&&(e.preventDefault(),JN(e,h.value,!0),i("close-picker"))},j=()=>{A(),i("time-picker-close")},H=(e,...t)=>{var n,i;null!=(n=y.value)&&n[e]&&(null==(i=y.value)||i[e](...t))},$=()=>{H("selectCurrentDate")},V=(e,t)=>{H("presetDate",e,t)},W=()=>{H("clearHoverDate")};return t({updateMonthYear:(e,t)=>{H("updateMonthYear",e,t)},switchView:(e,t=0)=>{var n,i,r;return"month"===e?null==(n=y.value)?void 0:n.toggleMonthPicker(!1,!0,t):"year"===e?null==(i=y.value)?void 0:i.toggleYearPicker(!1,!0,t):"time"===e?null==(r=y.value)?void 0:r.toggleTimePicker(!0,!1):(e=>{var t,n,i;null==(t=y.value)||t.toggleTimePicker(!1,!1),null==(n=y.value)||n.toggleMonthPicker(!1,!1,e),null==(i=y.value)||i.toggleYearPicker(!1,!1,e)})(t)}}),(e,t)=>{var n;return Qu(),rd("div",{id:e.uid?"dp-menu-".concat(e.uid):void 0,ref_key:"dpMenuRef",ref:m,tabindex:"0",role:"dialog",class:oa(I.value),onMouseleave:W,onClick:F,onKeydown:[pf(Y,["esc"]),t[18]||(t[18]=pf(hf((e=>B("left")),["prevent"]),["left"])),t[19]||(t[19]=pf(hf((e=>B("up")),["prevent"]),["up"])),t[20]||(t[20]=pf(hf((e=>B("down")),["prevent"]),["down"])),t[21]||(t[21]=pf(hf((e=>B("right")),["prevent"]),["right"])),U]},[(e.disabled||e.readonly)&&Hs(d).enabled?(Qu(),rd("div",{key:0,class:oa(L.value)},null,2)):vd("",!0),Hs(d).enabled||e.teleportCenter?vd("",!0):(Qu(),rd("div",{key:1,class:oa(R.value)},null,2)),dd("div",{ref_key:"innerMenuRef",ref:g,class:oa({dp__menu_content_wrapper:(null==(n=e.presetDates)?void 0:n.length)||!!e.$slots["left-sidebar"]||!!e.$slots["right-sidebar"]}),style:ea({"--dp-menu-width":"".concat(p.value,"px")})},[e.$slots["left-sidebar"]?(Qu(),rd("div",MI,[jc(e.$slots,"left-sidebar",aa(fd(O.value)))])):vd("",!0),e.presetDates.length?(Qu(),rd("div",DI,[(Qu(!0),rd(qu,null,Bc(e.presetDates,((t,n)=>(Qu(),rd(qu,{key:n},[t.slot?jc(e.$slots,t.slot,{key:0,presetDate:V,label:t.label,value:t.value}):(Qu(),rd("button",{key:1,type:"button",style:ea(t.style||{}),class:"dp__btn dp--preset-range",onClick:hf((e=>V(t.value,t.noTz)),["prevent"]),onKeydown:[pf(hf((e=>V(t.value,t.noTz)),["prevent"]),["enter"]),pf(hf((e=>V(t.value,t.noTz)),["prevent"]),["space"])]},da(t.label),45,AI))],64)))),128))])):vd("",!0),dd("div",{ref_key:"calendarWrapperRef",ref:f,class:"dp__instance_calendar",role:"document"},[(Qu(),od(Fl(D.value),wd({ref_key:"dynCmpRef",ref:y},o.value,{"flow-step":Hs(S),onMount:Hs(C),onUpdateFlowStep:Hs(T),onResetFlow:Hs(M),onFocusMenu:A,onSelectDate:t[0]||(t[0]=t=>e.$emit("select-date")),onDateUpdate:t[1]||(t[1]=t=>e.$emit("date-update",t)),onTooltipOpen:t[2]||(t[2]=t=>e.$emit("tooltip-open",t)),onTooltipClose:t[3]||(t[3]=t=>e.$emit("tooltip-close",t)),onAutoApply:t[4]||(t[4]=t=>e.$emit("auto-apply",t)),onRangeStart:t[5]||(t[5]=t=>e.$emit("range-start",t)),onRangeEnd:t[6]||(t[6]=t=>e.$emit("range-end",t)),onInvalidFixedRange:t[7]||(t[7]=t=>e.$emit("invalid-fixed-range",t)),onTimeUpdate:t[8]||(t[8]=t=>e.$emit("time-update")),onAmPmChange:t[9]||(t[9]=t=>e.$emit("am-pm-change",t)),onTimePickerOpen:t[10]||(t[10]=t=>e.$emit("time-picker-open",t)),onTimePickerClose:j,onRecalculatePosition:E,onUpdateMonthYear:t[11]||(t[11]=t=>e.$emit("update-month-year",t)),onAutoApplyInvalid:t[12]||(t[12]=t=>e.$emit("auto-apply-invalid",t)),onInvalidDate:t[13]||(t[13]=t=>e.$emit("invalid-date",t)),"onUpdate:internalModelValue":t[14]||(t[14]=t=>e.$emit("update:internal-model-value",t))}),Uc({_:2},[Bc(N.value,((t,n)=>({name:t,fn:Dl((n=>[jc(e.$slots,t,aa(fd({...n})))]))})))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),e.$slots["right-sidebar"]?(Qu(),rd("div",OI,[jc(e.$slots,"right-sidebar",aa(fd(O.value)))])):vd("",!0),e.$slots["action-extra"]?(Qu(),rd("div",EI,[e.$slots["action-extra"]?jc(e.$slots,"action-extra",{key:0,selectCurrentDate:$}):vd("",!0)])):vd("",!0)],6),!e.autoApply||Hs(h).keepActionRow?(Qu(),od(wL,wd({key:2,"menu-mount":v.value},o.value,{"calendar-width":p.value,onClosePicker:t[15]||(t[15]=t=>e.$emit("close-picker")),onSelectDate:t[16]||(t[16]=t=>e.$emit("select-date")),onInvalidSelect:t[17]||(t[17]=t=>e.$emit("invalid-select")),onSelectNow:$}),Uc({_:2},[Bc(Hs(P),((t,n)=>({name:t,fn:Dl((n=>[jc(e.$slots,t,aa(fd({...n})))]))})))]),1040,["menu-mount","calendar-width"])):vd("",!0)],42,CI)}}}),NI=typeof window<"u"?window:void 0,RI=()=>{},LI=(e,t,n,i)=>{if(!e)return RI;let r=RI;const o=Gl((()=>Hs(e)),(e=>{r(),e&&(e.addEventListener(t,n,i),r=()=>{e.removeEventListener(t,n,i),r=RI})}),{immediate:!0,flush:"post"}),a=()=>{o(),r()};return(e=>{!!ga()&&va(e)})(a),a},II=pc({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...hL},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"],setup(e,{expose:t,emit:n}){const i=n,r=e,o=Xc(),a=Ys(!1),s=Xs(r,"modelValue"),l=Xs(r,"timezone"),c=Ys(null),u=Ys(null),d=Ys(null),h=Ys(!1),f=Ys(null),p=Ys(!1),{setMenuFocused:m,setShiftKey:g}=FR(),{clearArrowNav:v}=zR(),{mapDatesArrToMap:y,validateDate:b,isValidTime:_}=uL(r),{defaultedTransitions:w,defaultedTextInput:x,defaultedInline:k,defaultedConfig:S}=GR(r),{menuTransition:T,showTransition:C}=sL(w);Oc((()=>{Y(r.modelValue),cl().then((()=>{k.value.enabled||(R(f.value).addEventListener("scroll",z),window.addEventListener("resize",q))})),k.value.enabled&&(a.value=!0)}));const M=$d((()=>y()));Rc((()=>{if(!k.value.enabled){const e=R(f.value);e&&e.removeEventListener("scroll",z),window.removeEventListener("resize",q)}}));const D=aL(o,"all",r.presetDates),A=aL(o,"input");Gl([s,l],(()=>{Y(s.value)}),{deep:!0});const{openOnTop:O,menuStyle:E,xCorrect:P,setMenuPosition:N,getScrollableParent:R,shadowRender:L}=nL({menuRef:c,menuRefInner:u,inputRef:d,pickerWrapperRef:f,inline:k,emit:i,props:r,slots:o}),{inputValue:I,internalModelValue:F,parseExternalModelValue:Y,emitModelValue:B,formatInputValue:U,checkBeforeEmit:j}=KR(i,r,h),H=$d((()=>({dp__main:!0,dp__theme_dark:r.dark,dp__theme_light:!r.dark,dp__flex_display:k.value.enabled,dp__flex_display_with_input:k.value.input}))),$=$d((()=>r.dark?"dp__theme_dark":"dp__theme_light")),V=$d((()=>r.teleport?{to:"boolean"==typeof r.teleport?"body":r.teleport,disabled:k.value.enabled}:{class:"dp__outer_menu_wrap"})),W=$d((()=>k.value.enabled&&(r.timePicker||r.monthPicker||r.yearPicker||r.quarterPicker))),z=()=>{a.value&&(S.value.closeOnScroll?ne():N())},q=()=>{a.value&&N()},X=()=>{!r.disabled&&!r.readonly&&(L(PI,r),N(!1),a.value=!0,a.value&&i("open"),a.value||te(),Y(r.modelValue))},G=()=>{var e;I.value="",te(),null==(e=d.value)||e.setParsedDate(null),i("update:model-value",null),i("update:model-timezone-value",null),i("cleared"),S.value.closeOnClearValue&&ne()},K=()=>{const e=F.value;return!(e&&(Array.isArray(e)||!b(e)))||!!Array.isArray(e)&&(!(2!==e.length||!b(e[0])||!b(e[1]))||!(!r.partialRange||r.timePicker)&&b(e[0]))},J=()=>{j()&&K()?(B(),ne()):i("invalid-select",F.value)},Z=e=>{Q(),B(),S.value.closeOnAutoApply&&!e&&ne()},Q=()=>{d.value&&x.value.enabled&&d.value.setParsedDate(F.value)},ee=(e=!1)=>{r.autoApply&&_(F.value)&&K()&&(r.range&&Array.isArray(F.value)?(r.partialRange||2===F.value.length)&&Z(e):Z(e))},te=()=>{x.value.enabled||(F.value=null)},ne=()=>{k.value.enabled||(a.value&&(a.value=!1,P.value=!1,m(!1),g(!1),v(),i("closed"),I.value&&Y(s.value)),te(),i("blur"))},ie=(e,t,n=!1)=>{if(!e)return void(F.value=null);const r=Array.isArray(e)?!e.some((e=>!b(e))):b(e),o=_(e);r&&o&&(F.value=e,t&&(p.value=n,J(),i("text-submit")))},re=()=>{r.autoApply&&_(F.value)&&B(),Q()},oe=()=>a.value?ne():X(),ae=()=>{x.value.enabled&&(h.value=!0,U()),i("focus")},se=()=>{if(x.value.enabled&&(h.value=!1,Y(r.modelValue),p.value)){const e=(e=>{if(!e)return null;let t=e;for(;t;)if(t=ZN(t),QN(t))return t;return null})(f.value);null==e||e.focus()}i("blur")};return((e,t,n,i={})=>{const{window:r=NI,event:o="pointerdown"}=i;r&&LI(r,o,(i=>{const r=$N(e),o=$N(t);!r||!o||r===i.target||i.composedPath().includes(r)||i.composedPath().includes(o)||n(i)}),{passive:!0})})(c,d,(()=>{return e=K,S.value.onClickOutside?S.value.onClickOutside(e):ne();var e})),t({closeMenu:ne,selectDate:J,clearValue:G,openMenu:X,onScroll:z,formatInputValue:U,updateInternalModelValue:e=>{F.value=e},setMonthYear:e=>{u.value&&u.value.updateMonthYear(0,{month:qN(e.month),year:qN(e.year)})},parseModel:e=>{Y(null!=e?e:r.modelValue)},switchView:(e,t)=>{var n;null==(n=u.value)||n.switchView(e,t)}}),(e,t)=>(Qu(),rd("div",{ref_key:"pickerWrapperRef",ref:f,class:oa(H.value)},[hd(vL,wd({ref_key:"inputRef",ref:d,"input-value":Hs(I),"onUpdate:inputValue":t[0]||(t[0]=e=>Fs(I)?I.value=e:null),"is-menu-open":a.value},e.$props,{onClear:G,onOpen:X,onSetInputDate:ie,onSetEmptyDate:Hs(B),onSelectDate:J,onToggle:oe,onClose:ne,onFocus:ae,onBlur:se,onRealBlur:t[1]||(t[1]=e=>h.value=!1)}),Uc({_:2},[Bc(Hs(A),((t,n)=>({name:t,fn:Dl((n=>[jc(e.$slots,t,aa(fd(n)))]))})))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),hd(nh,{name:Hs(T)(Hs(O)),css:Hs(C)&&!Hs(k).enabled},{default:Dl((()=>[a.value?(Qu(),od(Fl(e.teleport?Wu:"div"),wd({key:0,ref_key:"dpWrapMenuRef",ref:c},V.value,{class:{"dp--menu-wrapper":!Hs(k).enabled},style:Hs(k).enabled?void 0:Hs(E)}),{default:Dl((()=>[hd(PI,wd({ref_key:"dpMenuRef",ref:u},e.$props,{"internal-model-value":Hs(F),"onUpdate:internalModelValue":t[2]||(t[2]=e=>Fs(F)?F.value=e:null),class:{[$.value]:!0,"dp--menu-wrapper":e.teleport},style:e.teleport?Hs(E):void 0,"open-on-top":Hs(O),"arr-map-values":M.value,"no-overlay-focus":W.value,onClosePicker:ne,onSelectDate:J,onAutoApply:ee,onTimeUpdate:re,onFlowStep:t[3]||(t[3]=t=>e.$emit("flow-step",t)),onUpdateMonthYear:t[4]||(t[4]=t=>e.$emit("update-month-year",t)),onInvalidSelect:t[5]||(t[5]=t=>e.$emit("invalid-select",Hs(F))),onAutoApplyInvalid:t[6]||(t[6]=t=>e.$emit("invalid-select",t)),onInvalidFixedRange:t[7]||(t[7]=t=>e.$emit("invalid-fixed-range",t)),onRecalculatePosition:Hs(N),onTooltipOpen:t[8]||(t[8]=t=>e.$emit("tooltip-open",t)),onTooltipClose:t[9]||(t[9]=t=>e.$emit("tooltip-close",t)),onTimePickerOpen:t[10]||(t[10]=t=>e.$emit("time-picker-open",t)),onTimePickerClose:t[11]||(t[11]=t=>e.$emit("time-picker-close",t)),onAmPmChange:t[12]||(t[12]=t=>e.$emit("am-pm-change",t)),onRangeStart:t[13]||(t[13]=t=>e.$emit("range-start",t)),onRangeEnd:t[14]||(t[14]=t=>e.$emit("range-end",t)),onDateUpdate:t[15]||(t[15]=t=>e.$emit("date-update",t)),onInvalidDate:t[16]||(t[16]=t=>e.$emit("invalid-date",t))}),Uc({_:2},[Bc(Hs(D),((t,n)=>({name:t,fn:Dl((n=>[jc(e.$slots,t,aa(fd({...n})))]))})))]),1040,["internal-model-value","class","style","open-on-top","arr-map-values","no-overlay-focus","onRecalculatePosition"])])),_:3},16,["class","style"])):vd("",!0)])),_:3},8,["name","css"])],2))}}),FI=(()=>{const e=II;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),YI=Object.freeze(Object.defineProperty({__proto__:null,default:FI},Symbol.toStringTag,{value:"Module"})); /*! * vue-draggable-next v2.2.0 * (c) 2023 Anish George * @license MIT */ /**! * Sortable 1.14.0 * @author RubaXa * @author owenm * @license MIT */ function BI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function UI(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}Object.entries(YI).forEach((([e,t])=>{"default"!==e&&(FI[e]=t)}));function WI(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var zI=WI(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),qI=WI(/Edge/i),XI=WI(/firefox/i),GI=WI(/safari/i)&&!WI(/chrome/i)&&!WI(/android/i),KI=WI(/iP(ad|od|hone)/i),JI=WI(/chrome/i)&&WI(/android/i),ZI={capture:!1,passive:!1};function QI(e,t,n){e.addEventListener(t,n,!zI&&ZI)}function eF(e,t,n){e.removeEventListener(t,n,!zI&&ZI)}function tF(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function nF(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function iF(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&tF(e,t):tF(e,t))||i&&e===n)return e;if(e===n)break}while(e=nF(e))}return null}var rF,oF=/\s+/g;function aF(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(oF," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(oF," ")}}function sF(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function lF(e,t){var n="";if("string"==typeof e)n=e;else do{var i=sF(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function cF(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;r=o:r<=o))return i;if(i===uF())break;i=vF(i,!1)}return!1}function fF(e,t,n,i){for(var r=0,o=0,a=e.children;o2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,r=VI(n,MF);CF.pluginEvent.bind(_Y)(e,t,UI({dragEl:OF,parentEl:EF,ghostEl:PF,rootEl:NF,nextEl:RF,lastDownEl:LF,cloneEl:IF,cloneHidden:FF,dragStarted:KF,putSortable:$F,activeSortable:_Y.active,originalEvent:i,oldIndex:YF,oldDraggableIndex:UF,newIndex:BF,newDraggableIndex:jF,hideGhostForTarget:gY,unhideGhostForTarget:vY,cloneNowHidden:function(){FF=!0},cloneNowShown:function(){FF=!1},dispatchSortableEvent:function(e){AF({sortable:t,name:e,originalEvent:i})}},r))};function AF(e){!function(e){var t=e.sortable,n=e.rootEl,i=e.name,r=e.targetEl,o=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,h=e.originalEvent,f=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[xF]){var m,g=t.options,v="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||zI||qI?(m=document.createEvent("Event")).initEvent(i,!0,!0):m=new CustomEvent(i,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=s||n,m.item=r||n,m.clone=o,m.oldIndex=l,m.newIndex=c,m.oldDraggableIndex=u,m.newDraggableIndex=d,m.originalEvent=h,m.pullMode=f?f.lastPutMode:void 0;var y=UI(UI({},p),CF.getEventProperties(i,t));for(var b in y)m[b]=y[b];n&&n.dispatchEvent(m),g[v]&&g[v].call(t,m)}}(UI({putSortable:$F,cloneEl:IF,targetEl:OF,rootEl:NF,oldIndex:YF,oldDraggableIndex:UF,newIndex:BF,newDraggableIndex:jF},e))}var OF,EF,PF,NF,RF,LF,IF,FF,YF,BF,UF,jF,HF,$F,VF,WF,zF,qF,XF,GF,KF,JF,ZF,QF,eY,tY=!1,nY=!1,iY=[],rY=!1,oY=!1,aY=[],sY=!1,lY=[],cY="undefined"!=typeof document,uY=KI,dY=qI||zI?"cssFloat":"float",hY=cY&&!JI&&!KI&&"draggable"in document.createElement("div"),fY=function(){if(cY){if(zI)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),pY=function(e,t){var n=sF(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=fF(e,0,t),o=fF(e,1,t),a=r&&sF(r),s=o&&sF(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+dF(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+dF(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=i&&"none"===n[dY]||o&&"none"===n[dY]&&l+c>i)?"vertical":"horizontal"},mY=function(e){function t(e,n){return function(i,r,o,a){var s=i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(i,r,o,a),n)(i,r,o,a);var l=(n?i:r).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},i=e.group;i&&"object"==jI(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},gY=function(){!fY&&PF&&sF(PF,"display","none")},vY=function(){!fY&&PF&&sF(PF,"display","")};cY&&document.addEventListener("click",(function(e){if(nY)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),nY=!1,!1}),!0);var yY=function(e){if(OF){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,o=e.clientY,iY.some((function(e){var t=e[xF].options.emptyInsertThreshold;if(t&&!pF(e)){var n=dF(e),i=r>=n.left-t&&r<=n.right+t,s=o>=n.top-t&&o<=n.bottom+t;return i&&s?a=e:void 0}})),a);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[xF]._onDragOver(n)}}var r,o,a},bY=function(e){OF&&OF.parentNode[xF]._isOutsideThisEl(e.target)};function _Y(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=$I({},t),e[xF]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return pY(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==_Y.supportPointer&&"PointerEvent"in window&&!GI,emptyInsertThreshold:5};for(var i in CF.initializePlugins(this,e,n),n)!(i in t)&&(t[i]=n[i]);for(var r in mY(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&hY,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?QI(e,"pointerdown",this._onTapStart):(QI(e,"mousedown",this._onTapStart),QI(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(QI(e,"dragover",this),QI(e,"dragenter",this)),iY.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),$I(this,kF())}function wY(e,t,n,i,r,o,a,s){var l,c,u=e[xF],d=u.options.onMove;return!window.CustomEvent||zI||qI?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=r||t,l.relatedRect=o||dF(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),d&&(c=d.call(u,l,a)),c}function xY(e){e.draggable=!1}function kY(){sY=!1}function SY(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function TY(e){return setTimeout(e,0)}function CY(e){return clearTimeout(e)}_Y.prototype={constructor:_Y,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(JF=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,OF):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,r=i.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=i.filter;if(function(e){lY.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var i=t[n];i.checked&&lY.push(i)}}(n),!OF&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||i.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!GI||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=iF(s,i.draggable,n,!1))&&s.animated||LF===s)){if(YF=mF(s),UF=mF(s,i.draggable),"function"==typeof c){if(c.call(this,e,s,this))return AF({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),DF("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(i){if(i=iF(l,i.trim(),n,!1))return AF({sortable:t,rootEl:i,name:"filter",targetEl:s,fromEl:n,toEl:n}),DF("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());i.handle&&!iF(l,i.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var i,r=this,o=r.el,a=r.options,s=o.ownerDocument;if(n&&!OF&&n.parentNode===o){var l=dF(n);if(NF=o,EF=(OF=n).parentNode,RF=OF.nextSibling,LF=n,HF=a.group,_Y.dragged=OF,VF={target:OF,clientX:(t||e).clientX,clientY:(t||e).clientY},XF=VF.clientX-l.left,GF=VF.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,OF.style["will-change"]="all",i=function(){DF("delayEnded",r,{evt:e}),_Y.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!XI&&r.nativeDraggable&&(OF.draggable=!0),r._triggerDragStart(e,t),AF({sortable:r,name:"choose",originalEvent:e}),aF(OF,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){cF(OF,e.trim(),xY)})),QI(s,"dragover",yY),QI(s,"mousemove",yY),QI(s,"touchmove",yY),QI(s,"mouseup",r._onDrop),QI(s,"touchend",r._onDrop),QI(s,"touchcancel",r._onDrop),XI&&this.nativeDraggable&&(this.options.touchStartThreshold=4,OF.draggable=!0),DF("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(qI||zI))i();else{if(_Y.eventCanceled)return void this._onDrop();QI(s,"mouseup",r._disableDelayedDrag),QI(s,"touchend",r._disableDelayedDrag),QI(s,"touchcancel",r._disableDelayedDrag),QI(s,"mousemove",r._delayedDragTouchMoveHandler),QI(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&QI(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){OF&&xY(OF),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;eF(e,"mouseup",this._disableDelayedDrag),eF(e,"touchend",this._disableDelayedDrag),eF(e,"touchcancel",this._disableDelayedDrag),eF(e,"mousemove",this._delayedDragTouchMoveHandler),eF(e,"touchmove",this._delayedDragTouchMoveHandler),eF(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?QI(document,"pointermove",this._onTouchMove):QI(document,t?"touchmove":"mousemove",this._onTouchMove):(QI(OF,"dragend",this),QI(NF,"dragstart",this._onDragStart));try{document.selection?TY((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(tY=!1,NF&&OF){DF("dragStarted",this,{evt:t}),this.nativeDraggable&&QI(document,"dragover",bY);var n=this.options;!e&&aF(OF,n.dragClass,!1),aF(OF,n.ghostClass,!0),_Y.active=this,e&&this._appendGhost(),AF({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(WF){this._lastX=WF.clientX,this._lastY=WF.clientY,gY();for(var e=document.elementFromPoint(WF.clientX,WF.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(WF.clientX,WF.clientY))!==t;)t=e;if(OF.parentNode[xF]._isOutsideThisEl(e),t)do{if(t[xF]){if(t[xF]._onDragOver({clientX:WF.clientX,clientY:WF.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);vY()}},_onTouchMove:function(e){if(VF){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,o=PF&&lF(PF,!0),a=PF&&o&&o.a,s=PF&&o&&o.d,l=uY&&eY&&gF(eY),c=(r.clientX-VF.clientX+i.x)/(a||1)+(l?l[0]-aY[0]:0)/(a||1),u=(r.clientY-VF.clientY+i.y)/(s||1)+(l?l[1]-aY[1]:0)/(s||1);if(!_Y.active&&!tY){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))i.right+r||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+r}(e,r,this)&&!m.animated){if(m===OF)return E(!1);if(m&&o===e.target&&(a=m),a&&(n=dF(a)),!1!==wY(NF,o,OF,t,a,n,e,!!a))return O(),o.appendChild(OF),EF=o,P(),E(!0)}else if(m&&function(e,t,n){var i=dF(fF(n.el,0,n.options,!0)),r=10;return t?e.clientXu+c*o/2:ld-QF)return-ZF}else if(l>u+c*(1-r)/2&&ld-c*o/2))return l>u+c/2?1:-1;return 0}(e,a,n,r,w?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,oY,JF===a),0!==v){var T=mF(OF);do{T-=v,b=EF.children[T]}while(b&&("none"===sF(b,"display")||b===PF))}if(0===v||b===a)return E(!1);JF=a,ZF=v;var C=a.nextElementSibling,M=!1,D=wY(NF,o,OF,t,a,n,e,M=1===v);if(!1!==D)return 1!==D&&-1!==D||(M=1===D),sY=!0,setTimeout(kY,30),O(),M&&!C?o.appendChild(OF):a.parentNode.insertBefore(OF,M?C:a),k&&_F(k,0,S-k.scrollTop),EF=OF.parentNode,void 0===y||oY||(QF=Math.abs(y-dF(a)[x])),P(),E(!0)}if(o.contains(OF))return E(!1)}return!1}function A(s,l){DF(s,f,UI({evt:e,isOwner:u,axis:r?"vertical":"horizontal",revert:i,dragRect:t,targetRect:n,canSort:d,fromSortable:h,target:a,completed:E,onMove:function(n,i){return wY(NF,o,OF,t,n,dF(n),e,i)},changed:P},l))}function O(){A("dragOverAnimationCapture"),f.captureAnimationState(),f!==h&&h.captureAnimationState()}function E(t){return A("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(f),f!==h&&(aF(OF,$F?$F.options.ghostClass:c.options.ghostClass,!1),aF(OF,s.ghostClass,!0)),$F!==f&&f!==_Y.active?$F=f:f===_Y.active&&$F&&($F=null),h===f&&(f._ignoreWhileAnimating=a),f.animateAll((function(){A("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(a===OF&&!OF.animated||a===o&&!a.animated)&&(JF=null),s.dragoverBubble||e.rootEl||a===document||(OF.parentNode[xF]._isOutsideThisEl(e.target),!t&&yY(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function P(){BF=mF(OF),jF=mF(OF,s.draggable),AF({sortable:f,name:"change",toEl:o,newIndex:BF,newDraggableIndex:jF,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){eF(document,"mousemove",this._onTouchMove),eF(document,"touchmove",this._onTouchMove),eF(document,"pointermove",this._onTouchMove),eF(document,"dragover",yY),eF(document,"mousemove",yY),eF(document,"touchmove",yY)},_offUpEvents:function(){var e=this.el.ownerDocument;eF(e,"mouseup",this._onDrop),eF(e,"touchend",this._onDrop),eF(e,"pointerup",this._onDrop),eF(e,"touchcancel",this._onDrop),eF(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;BF=mF(OF),jF=mF(OF,n.draggable),DF("drop",this,{evt:e}),EF=OF&&OF.parentNode,BF=mF(OF),jF=mF(OF,n.draggable),_Y.eventCanceled||(tY=!1,oY=!1,rY=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),CY(this.cloneId),CY(this._dragStartId),this.nativeDraggable&&(eF(document,"drop",this),eF(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),GI&&sF(document.body,"user-select",""),sF(OF,"transform",""),e&&(KF&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),PF&&PF.parentNode&&PF.parentNode.removeChild(PF),(NF===EF||$F&&"clone"!==$F.lastPutMode)&&IF&&IF.parentNode&&IF.parentNode.removeChild(IF),OF&&(this.nativeDraggable&&eF(OF,"dragend",this),xY(OF),OF.style["will-change"]="",KF&&!tY&&aF(OF,$F?$F.options.ghostClass:this.options.ghostClass,!1),aF(OF,this.options.chosenClass,!1),AF({sortable:this,name:"unchoose",toEl:EF,newIndex:null,newDraggableIndex:null,originalEvent:e}),NF!==EF?(BF>=0&&(AF({rootEl:EF,name:"add",toEl:EF,fromEl:NF,originalEvent:e}),AF({sortable:this,name:"remove",toEl:EF,originalEvent:e}),AF({rootEl:EF,name:"sort",toEl:EF,fromEl:NF,originalEvent:e}),AF({sortable:this,name:"sort",toEl:EF,originalEvent:e})),$F&&$F.save()):BF!==YF&&BF>=0&&(AF({sortable:this,name:"update",toEl:EF,originalEvent:e}),AF({sortable:this,name:"sort",toEl:EF,originalEvent:e})),_Y.active&&(null!=BF&&-1!==BF||(BF=YF,jF=UF),AF({sortable:this,name:"end",toEl:EF,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){DF("nulling",this),NF=OF=EF=PF=RF=IF=LF=FF=VF=WF=KF=BF=jF=YF=UF=JF=ZF=$F=HF=_Y.dragged=_Y.ghost=_Y.clone=_Y.active=null,lY.forEach((function(e){e.checked=!0})),lY.length=zF=qF=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":OF&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,r=n.length,o=this.options;ie.replace(HY,((e,t)=>t?t.toUpperCase():""))));function VY(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function WY(e,t,n){const i=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,i)}function zY(e,t){this.$nextTick((()=>this.$emit(e.toLowerCase(),t)))}function qY(e){return t=>{null!==this.realList&&this["onDrag"+e](t),zY.call(this,e,t)}}const XY=["Start","Add","Remove","Update","End"],GY=["Choose","Unchoose","Sort","Filter","Clone"],KY=["Move",...XY,...GY].map((e=>"on"+e));let JY=null;const ZY={options:Object,list:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:e=>e},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null},component:{type:String,default:null},modelValue:{type:Array,required:!1,default:null}},QY=pc({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...XY.map((e=>e.toLowerCase())),...GY.map((e=>e.toLowerCase()))],props:ZY,data:()=>({transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}),render(){const e=this.$slots.default?this.$slots.default():null,t=(n=this.$attrs,(i=this.componentData)?{...i.props,...i.attrs}:n);var n,i;return e?(this.transitionMode=function(e){if(!e||1!==e.length)return!1;const[{type:t}]=e;return!!t&&(n=t.name,["transition-group","TransitionGroup"].includes(n));var n}(e),Vd(this.getTag(),t,e)):Vd(this.getTag(),t,[])},created(){null!==this.list&&null!==this.modelValue&&jY.error("list props are mutually exclusive! Please set one.")},mounted(){const e={};XY.forEach((t=>{e["on"+t]=qY.call(this,t)})),GY.forEach((t=>{e["on"+t]=zY.bind(this,t)}));const t=Object.keys(this.$attrs).reduce(((e,t)=>(e[$Y(t)]=this.$attrs[t],e)),{}),n=Object.assign({},t,e,{onMove:(e,t)=>this.onDragMove(e,t)});!("draggable"in n)&&(n.draggable=">*");const i=1===this.$el.nodeType?this.$el:this.$el.parentElement;this._sortable=new _Y(i,n),i.__draggable_component__=this,this.computeIndexes()},beforeUnmount(){try{void 0!==this._sortable&&this._sortable.destroy()}catch(e){}},computed:{realList(){return this.list?this.list:this.modelValue}},watch:{$attrs:{handler(e){this.updateOptions(e)},deep:!0},realList(){this.computeIndexes()}},methods:{getTag(){return this.component?Ll(this.component):this.tag},updateOptions(e){for(var t in e){const n=$Y(t);-1===KY.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick((()=>{this.visibleIndexes=function(e,t,n,i){if(!e)return[];const r=Object.values(e),o=t.length-i;return[...t].map(((e,t)=>t>=o?r.length:r.indexOf(e)))}(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)}))},getUnderlyingVm(e){const t=function(e,t){return Object.values(e).indexOf(t)}(this.getChildrenNodes()||[],e);if(-1===t)return null;return{index:t,element:this.realList[t]}},emitChanges(e){this.$nextTick((()=>{this.$emit("change",e)}))},alterList(e){if(this.list)return void e(this.list);const t=[...this.modelValue];e(t),this.$emit("update:modelValue",t)},spliceList(){this.alterList((e=>e.splice(...arguments)))},updatePosition(e,t){this.alterList((n=>n.splice(t,0,n.splice(e,1)[0])))},getVmIndex(e){const t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent(){return this.$slots.default?this.$slots.default()[0].componentInstance:null},resetTransitionData(e){if(!this.noTransitionOnDrag||!this.transitionMode)return;this.getChildrenNodes()[e].data=null;const t=this.getComponent();t.children=[],t.kept=void 0},onDragStart(e){this.computeIndexes(),this.context=this.getUnderlyingVm(e.item),this.context&&(e.item._underlying_vm_=this.clone(this.context.element),JY=e.item)},onDragAdd(e){const t=e.item._underlying_vm_;if(void 0===t)return;VY(e.item);const n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();const i={element:t,newIndex:n};this.emitChanges({added:i})},onDragRemove(e){if(WY(this.$el,e.item,e.oldIndex),"clone"===e.pullMode)return void VY(e.clone);if(!this.context)return;const t=this.context.index;this.spliceList(t,1);const n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})},onDragUpdate(e){VY(e.item),WY(e.from,e.item,e.oldIndex);const t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);const i={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:i})},updateProperty(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},onDragMove(e,t){const n=this.move;if(!n||!this.realList)return!0;const i=this.getRelatedContextFromMoveEvent(e),r=this.context,o=this.computeFutureIndex(i,e);Object.assign(r,{futureIndex:o});return n(Object.assign({},e,{relatedContext:i,draggedContext:r}),t)},onDragEnd(){this.computeIndexes(),JY=null},getTrargetedComponent:e=>e.__draggable_component__,getRelatedContextFromMoveEvent({to:e,related:t}){const n=this.getTrargetedComponent(e);if(!n)return{component:n};const i=n.realList,r={list:i,component:n};if(e!==t&&i&&n.getUnderlyingVm){const e=n.getUnderlyingVm(t);if(e)return Object.assign(e,r)}return r},computeFutureIndex(e,t){const n=[...t.to.children].filter((e=>"none"!==e.style.display));if(0===n.length)return 0;const i=n.indexOf(t.related),r=e.component.getVmIndex(i);return-1!==n.indexOf(JY)||!t.willInsertAfter?r:r+1}}}),eB=e=>{if(e=Hs(e),Array.isArray(e))return!!e.length;if(null==e)return!1;if(!1===e)return!0;if(e instanceof Date)return!isNaN(e.getTime());if("object"==typeof e){for(let t in e)return!0;return!1}return!!String(e).length},tB=e=>(e=Hs(e),Array.isArray(e)?e.length:"object"==typeof e?Object.keys(e).length:String(e).length);function nB(){for(var e=arguments.length,t=new Array(e),n=0;n(e=Hs(e),!eB(e)||t.every((t=>(t.lastIndex=0,t.test(e)))))}nB(/^[a-zA-Z]*$/),nB(/^[a-zA-Z0-9]*$/),nB(/^\d*(\.\d+)?$/);function iB(e){return{$validator:(t=e,e=>!eB(e)||tB(e)<=Hs(t)),$message:e=>{let{$params:t}=e;return"The maximum length allowed is ".concat(t.max)},$params:{max:e,type:"maxLength"}};var t}function rB(e){return{$validator:(t=e,e=>!eB(e)||tB(e)>=Hs(t)),$message:e=>{let{$params:t}=e;return"This field should be at least ".concat(t.min," characters long")},$params:{min:e,type:"minLength"}};var t}nB(/^(?:[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);var oB={$validator:function(e){return"string"==typeof e&&(e=e.trim()),eB(e)},$message:"Value is required",$params:{type:"required"}};function aB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function sB(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return Object.keys(e).reduce(((n,i)=>(t.includes(i)||(n[i]=Hs(e[i])),n)),{})}function uB(e){return"function"==typeof e}function dB(e,t,n){let i=e;const r=t.split(".");for(let o=0;oe.some((e=>dB(t,e,{[n]:!1})[n]))))}function fB(e,t,n){return $d((()=>e.reduce(((e,i)=>{const r=dB(t,i,{[n]:!1})[n]||[];return e.concat(r)}),[])))}function pB(e,t,n,i){return e.call(i,Hs(t),Hs(n),i)}function mB(e){return void 0!==e.$valid?!e.$valid:!e}function gB(e,t,n,i,r,o,a,s,l,c,u){const d=Ys(!1),h=e.$params||{},f=Ys(null);let p,m;e.$async?({$invalid:p,$unwatch:m}=function(e,t,n,i,r,o,a){let{$lazy:s,$rewardEarly:l}=r,c=arguments.length>7&&void 0!==arguments[7]?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 f=Ys(!!i.value),p=Ys(0);n.value=!1;const m=Gl([t,i].concat(c,h),(()=>{if(s&&!i.value||l&&!d.value&&!n.value)return;let r;try{r=pB(e,t,u,a)}catch(c){r=Promise.reject(c)}p.value++,n.value=!!p.value,f.value=!1,Promise.resolve(r).then((e=>{p.value--,n.value=!!p.value,o.value=e,f.value=mB(e)})).catch((e=>{p.value--,n.value=!!p.value,o.value=e,f.value=!0}))}),{immediate:!0,deep:"object"==typeof t});return{$invalid:f,$unwatch:m}}(e.$validator,t,d,n,i,f,r,e.$watchTargets,l,c,u)):({$invalid:p,$unwatch:m}=function(e,t,n,i,r,o,a,s){let{$lazy:l,$rewardEarly:c}=i;return{$unwatch:()=>({}),$invalid:$d((()=>{if(l&&!n.value||c&&!s.value)return!1;let i=!0;try{const n=pB(e,t,a,o);r.value=n,i=mB(n)}catch(u){r.value=u}return i}))}}(e.$validator,t,n,i,f,r,l,c));const g=e.$message;return{$message:uB(g)?$d((()=>g(cB({$pending:d,$invalid:p,$params:cB(h),$model:t,$response:f,$validator:o,$propertyPath:s,$property:a})))):g||"",$params:h,$pending:d,$invalid:p,$response:f,$unwatch:m}}nB(/^(?:(?:(?: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),nB(/(^[0-9]*$)|(^-[0-9]+$)/),nB(/^[-]?\d*(\.\d+)?$/);const vB="__root";function yB(e){let{validations:t,state:n,key:i,parentKey:r,childResults:o,resultsCache:a,globalConfig:s={},instance:l,externalResults:c}=e;const u=r?"".concat(r,".").concat(i):i,{rules:d,nestedValidators:h,config:f,validationGroups:p}=function(){const e=Hs(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),t=Object.keys(e),n={},i={},r={};let o=null;return t.forEach((t=>{const a=e[t];switch(!0){case uB(a.$validator):n[t]=a;break;case uB(a):n[t]={$validator:a};break;case"$validationGroups"===t:o=a;break;case t.startsWith("$"):r[t]=a;break;default:i[t]=a}})),{rules:n,nestedValidators:i,config:r,validationGroups:o}}(t),m=sB(sB({},s),f),g=i?$d((()=>{const e=Hs(n);return e?Hs(e[i]):void 0})):n,v=sB({},Hs(c)||{}),y=$d((()=>{const e=Hs(c);return i?e?Hs(e[i]):void 0:e})),b=function(e,t,n,i,r,o,a,s,l){const c=Object.keys(e),u=i.get(r,e),d=Ys(!1),h=Ys(!1),f=Ys(0);if(u){if(!u.$partial)return u;u.$unwatch(),d.value=u.$dirty.value}const p={$dirty:d,$path:r,$touch:()=>{d.value||(d.value=!0)},$reset:()=>{d.value&&(d.value=!1)},$commit:()=>{}};return c.length?(c.forEach((i=>{p[i]=gB(e[i],t,p.$dirty,o,a,i,n,r,l,h,f)})),p.$externalResults=$d((()=>s.value?[].concat(s.value).map(((e,t)=>({$propertyPath:r,$property:n,$validator:"$externalResults",$uid:"".concat(r,"-externalResult-").concat(t),$message:e,$params:{},$response:null,$pending:!1}))):[])),p.$invalid=$d((()=>{const e=c.some((e=>Hs(p[e].$invalid)));return h.value=e,!!p.$externalResults.value.length||e})),p.$pending=$d((()=>c.some((e=>Hs(p[e].$pending))))),p.$error=$d((()=>!!p.$dirty.value&&(p.$pending.value||p.$invalid.value))),p.$silentErrors=$d((()=>c.filter((e=>Hs(p[e].$invalid))).map((e=>{const t=p[e];return ks({$propertyPath:r,$property:n,$validator:e,$uid:"".concat(r,"-").concat(e),$message:t.$message,$params:t.$params,$response:t.$response,$pending:t.$pending})})).concat(p.$externalResults.value))),p.$errors=$d((()=>p.$dirty.value?p.$silentErrors.value:[])),p.$unwatch=()=>c.forEach((e=>{p[e].$unwatch()})),p.$commit=()=>{h.value=!0,f.value=Date.now()},i.set(r,e,p),p):(u&&i.set(r,e,p),p)}(d,g,i,a,u,m,l,y,n),_=function(e,t,n,i,r,o,a){const s=Object.keys(e);return s.length?s.reduce(((s,l)=>(s[l]=yB({validations:e[l],state:t,key:l,parentKey:n,resultsCache:i,globalConfig:r,instance:o,externalResults:a}),s)),{}):{}}(h,g,u,a,m,l,y),w={};p&&Object.entries(p).forEach((e=>{let[t,n]=e;w[t]={$invalid:hB(n,_,"$invalid"),$error:hB(n,_,"$error"),$pending:hB(n,_,"$pending"),$errors:fB(n,_,"$errors"),$silentErrors:fB(n,_,"$silentErrors")}}));const{$dirty:x,$errors:k,$invalid:S,$anyDirty:T,$error:C,$pending:M,$touch:D,$reset:A,$silentErrors:O,$commit:E}=function(e,t,n){const i=$d((()=>[t,n].filter((e=>e)).reduce(((e,t)=>e.concat(Object.values(Hs(t)))),[]))),r=$d({get:()=>e.$dirty.value||!!i.value.length&&i.value.every((e=>e.$dirty)),set(t){e.$dirty.value=t}}),o=$d((()=>{const t=Hs(e.$silentErrors)||[],n=i.value.filter((e=>(Hs(e).$silentErrors||[]).length)).reduce(((e,t)=>e.concat(...t.$silentErrors)),[]);return t.concat(n)})),a=$d((()=>{const t=Hs(e.$errors)||[],n=i.value.filter((e=>(Hs(e).$errors||[]).length)).reduce(((e,t)=>e.concat(...t.$errors)),[]);return t.concat(n)})),s=$d((()=>i.value.some((e=>e.$invalid))||Hs(e.$invalid)||!1)),l=$d((()=>i.value.some((e=>Hs(e.$pending)))||Hs(e.$pending)||!1)),c=$d((()=>i.value.some((e=>e.$dirty))||i.value.some((e=>e.$anyDirty))||r.value)),u=$d((()=>!!r.value&&(l.value||s.value))),d=()=>{e.$touch(),i.value.forEach((e=>{e.$touch()}))};return i.value.length&&i.value.every((e=>e.$dirty))&&d(),{$dirty:r,$errors:a,$invalid:s,$anyDirty:c,$error:u,$pending:l,$touch:d,$reset:()=>{e.$reset(),i.value.forEach((e=>{e.$reset()}))},$silentErrors:o,$commit:()=>{e.$commit(),i.value.forEach((e=>{e.$commit()}))}}}(b,_,o),P=i?$d({get:()=>Hs(g),set:e=>{x.value=!0;const t=Hs(n),r=Hs(c);r&&(r[i]=v[i]),Fs(t[i])?t[i].value=e:t[i]=e}}):null;return i&&m.$autoDirty&&Gl(g,(()=>{x.value||D();const e=Hs(c);e&&(e[i]=v[i])}),{flush:"sync"}),ks(sB(sB(sB({},b),{},{$model:P,$dirty:x,$error:C,$errors:k,$invalid:S,$anyDirty:T,$pending:M,$touch:D,$reset:A,$path:u||vB,$silentErrors:O,$validate:async function(){return D(),m.$rewardEarly&&(E(),await cl()),await cl(),new Promise((e=>{if(!M.value)return e(!S.value);const t=Gl(M,(()=>{e(!S.value),t()}))}))},$commit:E},o&&{$getResultsForChild:function(e){return(o.value||{})[e]},$clearExternalResults:function(){Fs(c)?c.value=v:0===Object.keys(v).length?Object.keys(c).forEach((e=>{delete c[e]})):Object.assign(c,v)},$validationGroups:w}),_))}class bB{constructor(){this.storage=new Map}set(e,t,n){this.storage.set(e,{rules:t,result:n})}checkRulesValidity(e,t,n){const i=Object.keys(n),r=Object.keys(t);if(r.length!==i.length)return!1;return!!r.every((e=>i.includes(e)))&&r.every((e=>!t[e].$params||Object.keys(t[e].$params).every((i=>Hs(n[e].$params[i])===Hs(t[e].$params[i])))))}get(e,t){const n=this.storage.get(e);if(!n)return;const{rules:i,result:r}=n,o=this.checkRulesValidity(e,t,i),a=r.$unwatch?r.$unwatch:()=>({});return o?r:{$dirty:r.$dirty,$partial:!0,$unwatch:a}}}const _B={COLLECT_ALL:!0,COLLECT_NONE:!1},wB=Symbol("vuelidate#injectChildResults"),xB=Symbol("vuelidate#removeChildResults");function kB(e){return new Proxy(e,{get:(e,t)=>"object"==typeof e[t]?kB(e[t]):$d((()=>e[t]))})}let SB=0;function TB(e,t){var n;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};1===arguments.length&&(i=e,e=void 0,t=void 0);let{$registerAs:r,$scope:o=_B.COLLECT_ALL,$stopPropagation:a,$externalResults:s,currentVueInstance:l}=i;const c=l||(null===(n=Md())||void 0===n?void 0:n.proxy),u=c?c.$options:{};r||(SB+=1,r="_vuelidate_".concat(SB));const d=Ys({}),h=new bB,{childResults:f,sendValidationResultsToParent:p,removeValidationResultsFromParent:m}=c?function(e){let{$scope:t,instance:n}=e;const i={},r=Ys([]),o=$d((()=>r.value.reduce(((e,t)=>(e[t]=Hs(i[t]),e)),{})));n.__vuelidateInjectInstances=[].concat(n.__vuelidateInjectInstances||[],(function(e,n){let{$registerAs:o,$scope:a,$stopPropagation:s}=n;s||t===_B.COLLECT_NONE||a===_B.COLLECT_NONE||t!==_B.COLLECT_ALL&&t!==a||(i[o]=e,r.value.push(o))})),n.__vuelidateRemoveInstances=[].concat(n.__vuelidateRemoveInstances||[],(function(e){r.value=r.value.filter((t=>t!==e)),delete i[e]}));const a=pu(wB,[]);fu(wB,n.__vuelidateInjectInstances);const s=pu(xB,[]);return fu(xB,n.__vuelidateRemoveInstances),{childResults:o,sendValidationResultsToParent:a,removeValidationResultsFromParent:s}}({$scope:o,instance:c}):{childResults:Ys({})};if(!e&&u.validations){const e=u.validations;t=Ys({}),Ac((()=>{t.value=c,Gl((()=>uB(e)?e.call(t.value,new kB(t.value)):e),(e=>{d.value=yB({validations:e,state:t,childResults:f,resultsCache:h,globalConfig:i,instance:c,externalResults:s||c.vuelidateExternalResults})}),{immediate:!0})})),i=u.validationsConfig||i}else{Gl(Fs(e)||(Ms(g=e)||Ds(g))?e:ks(e||{}),(e=>{d.value=yB({validations:e,state:t,childResults:f,resultsCache:h,globalConfig:i,instance:null!=c?c:{},externalResults:s})}),{immediate:!0})}var g;return c&&(p.forEach((e=>e(d,{$registerAs:r,$scope:o,$stopPropagation:a}))),Nc((()=>m.forEach((e=>e(r)))))),$d((()=>sB(sB({},Hs(d.value)),f.value)))}export{FI as A,Gl as B,om as C,GP as D,tf as E,qu as F,oB as G,rB as H,iB as I,$d as J,TB as K,Zh as L,am as M,hf as N,rm as O,Zf as P,xf as Q,ep as S,nh as T,QY as V,Uv as _,dd as a,hd as b,rd as c,Vv as d,zg as e,Wv as f,Ys as g,Vd as h,Oc as i,vd as j,Bc as k,Ml as l,od as m,Dl as n,Qu as o,Cl as p,md as q,Ll as r,oa as s,da as t,mA as u,nf as v,ec as w,gd as x,ks as y,Rc as z};