pangea-lib 4.0.309 → 4.0.310

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.cjs.js CHANGED
@@ -9485,7 +9485,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
9485
9485
  * Released under the MIT License
9486
9486
  */class Wl3{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,a,c,n){const r=a.listeners[n],i=a.duration;r.forEach(o=>o({chart:t,initial:a.initial,numSteps:i,currentStep:Math.min(c-a.start,i)}))}_refresh(){this._request||(this._running=!0,this._request=ty1.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let a=0;this._charts.forEach((c,n)=>{if(!c.running||!c.items.length)return;const r=c.items;let i=r.length-1,o=!1,l;for(;i>=0;--i)l=r[i],l._active?(l._total>c.duration&&(c.duration=l._total),l.tick(t),o=!0):(r[i]=r[r.length-1],r.pop());o&&(n.draw(),this._notify(n,c,t,"progress")),r.length||(c.running=!1,this._notify(n,c,t,"complete"),c.initial=!1),a+=r.length}),this._lastDate=t,a===0&&(this._running=!1)}_getAnims(t){const a=this._charts;let c=a.get(t);return c||(c={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},a.set(t,c)),c}listen(t,a,c){this._getAnims(t).listeners[a].push(c)}add(t,a){!a||!a.length||this._getAnims(t).items.push(...a)}has(t){return this._getAnims(t).items.length>0}start(t){const a=this._charts.get(t);a&&(a.running=!0,a.start=Date.now(),a.duration=a.items.reduce((c,n)=>Math.max(c,n._duration),0),this._refresh())}running(t){if(!this._running)return!1;const a=this._charts.get(t);return!(!a||!a.running||!a.items.length)}stop(t){const a=this._charts.get(t);if(!a||!a.items.length)return;const c=a.items;let n=c.length-1;for(;n>=0;--n)c[n].cancel();a.items=[],this._notify(t,a,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var It=new Wl3;const et1="transparent",Yl3={boolean(e,t,a){return a>.5?t:e},color(e,t,a){const c=j61(e||et1),n=c.valid&&j61(t||et1);return n&&n.valid?n.mix(c,a).hexString():t},number(e,t,a){return e+(t-e)*a}};class Gl3{constructor(t,a,c,n){const r=a[c];n=N9([t.to,n,r,t.from]);const i=N9([t.from,r,n]);this._active=!0,this._fn=t.fn||Yl3[t.type||typeof i],this._easing=fl[t.easing]||fl.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=a,this._prop=c,this._from=i,this._to=n,this._promises=void 0}active(){return this._active}update(t,a,c){if(this._active){this._notify(!1);const n=this._target[this._prop],r=c-this._start,i=this._duration-r;this._start=c,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=N9([t.to,a,n,t.from]),this._from=N9([t.from,n,a])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const a=t-this._start,c=this._duration,n=this._prop,r=this._from,i=this._loop,o=this._to;let l;if(this._active=r!==o&&(i||a<c),!this._active){this._target[n]=o,this._notify(!0);return}if(a<0){this._target[n]=r;return}l=a/c%2,l=i&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(r,o,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((a,c)=>{t.push({res:a,rej:c})})}_notify(t){const a=t?"res":"rej",c=this._promises||[];for(let n=0;n<c.length;n++)c[n][a]()}}class My1{constructor(t,a){this._chart=t,this._properties=new Map,this.configure(a)}configure(t){if(!R2(t))return;const a=Object.keys(j3.animation),c=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const r=t[n];if(!R2(r))return;const i={};for(const o of a)i[o]=r[o];(V3(r.properties)&&r.properties||[n]).forEach(o=>{(o===n||!c.has(o))&&c.set(o,i)})})}_animateOptions(t,a){const c=a.options,n=Xl3(t,c);if(!n)return[];const r=this._createAnimations(n,c);return c.$shared&&Zl3(t.options.$animations,c).then(()=>{t.options=c},()=>{}),r}_createAnimations(t,a){const c=this._properties,n=[],r=t.$animations||(t.$animations={}),i=Object.keys(a),o=Date.now();let l;for(l=i.length-1;l>=0;--l){const f=i[l];if(f.charAt(0)==="$")continue;if(f==="options"){n.push(...this._animateOptions(t,a));continue}const u=a[f];let d=r[f];const h=c.get(f);if(d)if(h&&d.active()){d.update(h,u,o);continue}else d.cancel();if(!h||!h.duration){t[f]=u;continue}r[f]=d=new Gl3(h,t,f,u),n.push(d)}return n}update(t,a){if(this._properties.size===0){Object.assign(t,a);return}const c=this._createAnimations(t,a);if(c.length)return It.add(this._chart,c),!0}}function Zl3(e,t){const a=[],c=Object.keys(t);for(let n=0;n<c.length;n++){const r=e[c[n]];r&&r.active()&&a.push(r.wait())}return Promise.all(a)}function Xl3(e,t){if(!t)return;let a=e.options;if(!a){e.options=t;return}return a.$shared&&(e.options=a=Object.assign({},a,{$shared:!1,$animations:{}})),a}function tt1(e,t){const a=e&&e.options||{},c=a.reverse,n=a.min===void 0?t:0,r=a.max===void 0?t:0;return{start:c?r:n,end:c?n:r}}function Kl3(e,t,a){if(a===!1)return!1;const c=tt1(e,a),n=tt1(t,a);return{top:n.end,right:c.end,bottom:n.start,left:c.start}}function Ql3(e){let t,a,c,n;return R2(e)?(t=e.top,a=e.right,c=e.bottom,n=e.left):t=a=c=n=e,{top:t,right:a,bottom:c,left:n,disabled:e===!1}}function ky1(e,t){const a=[],c=e._getSortedDatasetMetas(t);let n,r;for(n=0,r=c.length;n<r;++n)a.push(c[n].index);return a}function at1(e,t,a,c={}){const n=e.keys,r=c.mode==="single";let i,o,l,f;if(t===null)return;let u=!1;for(i=0,o=n.length;i<o;++i){if(l=+n[i],l===a){if(u=!0,c.all)continue;break}f=e.values[l],se(f)&&(r||t===0||vt(t)===vt(f))&&(t+=f)}return!u&&!c.all?0:t}function Jl3(e,t){const{iScale:a,vScale:c}=t,n=a.axis==="x"?"x":"y",r=c.axis==="x"?"x":"y",i=Object.keys(e),o=new Array(i.length);let l,f,u;for(l=0,f=i.length;l<f;++l)u=i[l],o[l]={[n]:u,[r]:e[u]};return o}function _W(e,t){const a=e&&e.options.stacked;return a||a===void 0&&t.stack!==void 0}function ef3(e,t,a){return`${e.id}.${t.id}.${a.stack||a.type}`}function tf3(e){const{min:t,max:a,minDefined:c,maxDefined:n}=e.getUserBounds();return{min:c?t:Number.NEGATIVE_INFINITY,max:n?a:Number.POSITIVE_INFINITY}}function af3(e,t,a){const c=e[t]||(e[t]={});return c[a]||(c[a]={})}function ct1(e,t,a,c){for(const n of t.getMatchingVisibleMetas(c).reverse()){const r=e[n.index];if(a&&r>0||!a&&r<0)return n.index}return null}function nt1(e,t){const{chart:a,_cachedMeta:c}=e,n=a._stacks||(a._stacks={}),{iScale:r,vScale:i,index:o}=c,l=r.axis,f=i.axis,u=ef3(r,i,c),d=t.length;let h;for(let p=0;p<d;++p){const v=t[p],{[l]:m,[f]:y}=v,g=v._stacks||(v._stacks={});h=g[f]=af3(n,u,m),h[o]=y,h._top=ct1(h,i,!0,c.type),h._bottom=ct1(h,i,!1,c.type);const M=h._visualValues||(h._visualValues={});M[o]=y}}function wW(e,t){const a=e.scales;return Object.keys(a).filter(c=>a[c].axis===t).shift()}function cf3(e,t){return Za(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function nf3(e,t,a){return Za(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:a,index:t,mode:"default",type:"data"})}function m9(e,t){const a=e.controller.index,c=e.vScale&&e.vScale.axis;if(c){t=t||e._parsed;for(const n of t){const r=n._stacks;if(!r||r[c]===void 0||r[c][a]===void 0)return;delete r[c][a],r[c]._visualValues!==void 0&&r[c]._visualValues[a]!==void 0&&delete r[c]._visualValues[a]}}}const HW=e=>e==="reset"||e==="none",rt1=(e,t)=>t?e:Object.assign({},e),rf3=(e,t,a)=>e&&!t.hidden&&t._stacked&&{keys:ky1(a,!0),values:null};class m6{constructor(t,a){this.chart=t,this._ctx=t.ctx,this.index=a,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=_W(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&m9(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,a=this._cachedMeta,c=this.getDataset(),n=(d,h,p,v)=>d==="x"?h:d==="r"?v:p,r=a.xAxisID=z2(c.xAxisID,wW(t,"x")),i=a.yAxisID=z2(c.yAxisID,wW(t,"y")),o=a.rAxisID=z2(c.rAxisID,wW(t,"r")),l=a.indexAxis,f=a.iAxisID=n(l,r,i,o),u=a.vAxisID=n(l,i,r,o);a.xScale=this.getScaleForId(r),a.yScale=this.getScaleForId(i),a.rScale=this.getScaleForId(o),a.iScale=this.getScaleForId(f),a.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const a=this._cachedMeta;return t===a.iScale?a.vScale:a.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&F61(this._data,this),t._stacked&&m9(t)}_dataCheck(){const t=this.getDataset(),a=t.data||(t.data=[]),c=this._data;if(R2(a)){const n=this._cachedMeta;this._data=Jl3(a,n)}else if(c!==a){if(c){F61(c,this);const n=this._cachedMeta;m9(n),n._parsed=[]}a&&Object.isExtensible(a)&&j93(a,this),this._syncList=[],this._data=a}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const a=this._cachedMeta,c=this.getDataset();let n=!1;this._dataCheck();const r=a._stacked;a._stacked=_W(a.vScale,a),a.stack!==c.stack&&(n=!0,m9(a),a.stack=c.stack),this._resyncElements(t),(n||r!==a._stacked)&&(nt1(this,a._parsed),a._stacked=_W(a.vScale,a))}configure(){const t=this.chart.config,a=t.datasetScopeKeys(this._type),c=t.getOptionScopes(this.getDataset(),a,!0);this.options=t.createResolver(c,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,a){const{_cachedMeta:c,_data:n}=this,{iScale:r,_stacked:i}=c,o=r.axis;let l=t===0&&a===n.length?!0:c._sorted,f=t>0&&c._parsed[t-1],u,d,h;if(this._parsing===!1)c._parsed=n,c._sorted=!0,h=n;else{V3(n[t])?h=this.parseArrayData(c,n,t,a):R2(n[t])?h=this.parseObjectData(c,n,t,a):h=this.parsePrimitiveData(c,n,t,a);const p=()=>d[o]===null||f&&d[o]<f[o];for(u=0;u<a;++u)c._parsed[u+t]=d=h[u],l&&(p()&&(l=!1),f=d);c._sorted=l}i&&nt1(this,h)}parsePrimitiveData(t,a,c,n){const{iScale:r,vScale:i}=t,o=r.axis,l=i.axis,f=r.getLabels(),u=r===i,d=new Array(n);let h,p,v;for(h=0,p=n;h<p;++h)v=h+c,d[h]={[o]:u||r.parse(f[v],v),[l]:i.parse(a[v],v)};return d}parseArrayData(t,a,c,n){const{xScale:r,yScale:i}=t,o=new Array(n);let l,f,u,d;for(l=0,f=n;l<f;++l)u=l+c,d=a[u],o[l]={x:r.parse(d[0],u),y:i.parse(d[1],u)};return o}parseObjectData(t,a,c,n){const{xScale:r,yScale:i}=t,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,f=new Array(n);let u,d,h,p;for(u=0,d=n;u<d;++u)h=u+c,p=a[h],f[u]={x:r.parse(Da(p,o),h),y:i.parse(Da(p,l),h)};return f}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,a,c){const n=this.chart,r=this._cachedMeta,i=a[t.axis],o={keys:ky1(n,!0),values:a._stacks[t.axis]._visualValues};return at1(o,i,r.index,{mode:c})}updateRangeFromParsed(t,a,c,n){const r=c[a.axis];let i=r===null?NaN:r;const o=n&&c._stacks[a.axis];n&&o&&(n.values=o,i=at1(n,r,this._cachedMeta.index)),t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}getMinMax(t,a){const c=this._cachedMeta,n=c._parsed,r=c._sorted&&t===c.iScale,i=n.length,o=this._getOtherScale(t),l=rf3(a,c,this.chart),f={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=tf3(o);let h,p;function v(){p=n[h];const m=p[o.axis];return!se(p[t.axis])||u>m||d<m}for(h=0;h<i&&!(!v()&&(this.updateRangeFromParsed(f,t,p,l),r));++h);if(r){for(h=i-1;h>=0;--h)if(!v()){this.updateRangeFromParsed(f,t,p,l);break}}return f}getAllParsedValues(t){const a=this._cachedMeta._parsed,c=[];let n,r,i;for(n=0,r=a.length;n<r;++n)i=a[n][t.axis],se(i)&&c.push(i);return c}getMaxOverflow(){return!1}getLabelAndValue(t){const a=this._cachedMeta,c=a.iScale,n=a.vScale,r=this.getParsed(t);return{label:c?""+c.getLabelForValue(r[c.axis]):"",value:n?""+n.getLabelForValue(r[n.axis]):""}}_update(t){const a=this._cachedMeta;this.update(t||"default"),a._clip=Ql3(z2(this.options.clip,Kl3(a.xScale,a.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,a=this.chart,c=this._cachedMeta,n=c.data||[],r=a.chartArea,i=[],o=this._drawStart||0,l=this._drawCount||n.length-o,f=this.options.drawActiveElementsOnTop;let u;for(c.dataset&&c.dataset.draw(t,r,o,l),u=o;u<o+l;++u){const d=n[u];d.hidden||(d.active&&f?i.push(d):d.draw(t,r))}for(u=0;u<i.length;++u)i[u].draw(t,r)}getStyle(t,a){const c=a?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(c):this.resolveDataElementOptions(t||0,c)}getContext(t,a,c){const n=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const i=this._cachedMeta.data[t];r=i.$context||(i.$context=nf3(this.getContext(),t,i)),r.parsed=this.getParsed(t),r.raw=n.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=cf3(this.chart.getContext(),this.index)),r.dataset=n,r.index=r.datasetIndex=this.index;return r.active=!!a,r.mode=c,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,a){return this._resolveElementOptions(this.dataElementType.id,a,t)}_resolveElementOptions(t,a="default",c){const n=a==="active",r=this._cachedDataOpts,i=t+"-"+a,o=r[i],l=this.enableOptionSharing&&df(c);if(o)return rt1(o,l);const f=this.chart.config,u=f.datasetElementScopeKeys(this._type,t),d=n?[`${t}Hover`,"hover",t,""]:[t,""],h=f.getOptionScopes(this.getDataset(),u),p=Object.keys(j3.elements[t]),v=()=>this.getContext(c,n,a),m=f.resolveNamedOptions(h,p,v,d);return m.$shared&&(m.$shared=l,r[i]=Object.freeze(rt1(m,l))),m}_resolveAnimations(t,a,c){const n=this.chart,r=this._cachedDataOpts,i=`animation-${a}`,o=r[i];if(o)return o;let l;if(n.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,a),h=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(h,this.getContext(t,c,a))}const f=new My1(n,l&&l.animations);return l&&l._cacheable&&(r[i]=Object.freeze(f)),f}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,a){return!a||HW(t)||this.chart._animationsDisabled}_getSharedOptions(t,a){const c=this.resolveDataElementOptions(t,a),n=this._sharedOptions,r=this.getSharedOptions(c),i=this.includeOptions(a,r)||r!==n;return this.updateSharedOptions(r,a,c),{sharedOptions:r,includeOptions:i}}updateElement(t,a,c,n){HW(n)?Object.assign(t,c):this._resolveAnimations(a,n).update(t,c)}updateSharedOptions(t,a,c){t&&!HW(a)&&this._resolveAnimations(void 0,a).update(t,c)}_setStyle(t,a,c,n){t.active=n;const r=this.getStyle(a,n);this._resolveAnimations(a,c,n).update(t,{options:!n&&this.getSharedOptions(r)||r})}removeHoverStyle(t,a,c){this._setStyle(t,c,"active",!1)}setHoverStyle(t,a,c){this._setStyle(t,c,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const a=this._data,c=this._cachedMeta.data;for(const[o,l,f]of this._syncList)this[o](l,f);this._syncList=[];const n=c.length,r=a.length,i=Math.min(r,n);i&&this.parse(0,i),r>n?this._insertElements(n,r-n,t):r<n&&this._removeElements(r,n-r)}_insertElements(t,a,c=!0){const n=this._cachedMeta,r=n.data,i=t+a;let o;const l=f=>{for(f.length+=a,o=f.length-1;o>=i;o--)f[o]=f[o-a]};for(l(r),o=t;o<i;++o)r[o]=new this.dataElementType;this._parsing&&l(n._parsed),this.parse(t,a),c&&this.updateElements(r,t,a,"reset")}updateElements(t,a,c,n){}_removeElements(t,a){const c=this._cachedMeta;if(this._parsing){const n=c._parsed.splice(t,a);c._stacked&&m9(c,n)}c.data.splice(t,a)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[a,c,n]=t;this[a](c,n)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,a){a&&this._sync(["_removeElements",t,a]);const c=arguments.length-2;c&&this._sync(["_insertElements",t,c])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}S1(m6,"defaults",{}),S1(m6,"datasetElementType",null),S1(m6,"dataElementType",null);function if3(e,t){if(!e._cache.$bar){const a=e.getMatchingVisibleMetas(t);let c=[];for(let n=0,r=a.length;n<r;n++)c=c.concat(a[n].controller.getAllParsedValues(e));e._cache.$bar=ey1(c.sort((n,r)=>n-r))}return e._cache.$bar}function of3(e){const t=e.iScale,a=if3(t,e.type);let c=t._length,n,r,i,o;const l=()=>{i===32767||i===-32768||(df(o)&&(c=Math.min(c,Math.abs(i-o)||c)),o=i)};for(n=0,r=a.length;n<r;++n)i=t.getPixelForValue(a[n]),l();for(o=void 0,n=0,r=t.ticks.length;n<r;++n)i=t.getPixelForTick(n),l();return c}function sf3(e,t,a,c){const n=a.barThickness;let r,i;return Q2(n)?(r=t.min*a.categoryPercentage,i=a.barPercentage):(r=n*c,i=1),{chunk:r/c,ratio:i,start:t.pixels[e]-r/2}}function lf3(e,t,a,c){const n=t.pixels,r=n[e];let i=e>0?n[e-1]:null,o=e<n.length-1?n[e+1]:null;const l=a.categoryPercentage;i===null&&(i=r-(o===null?t.end-t.start:o-r)),o===null&&(o=r+r-i);const f=r-(r-Math.min(i,o))/2*l;return{chunk:Math.abs(o-i)/2*l/c,ratio:a.barPercentage,start:f}}function ff3(e,t,a,c){const n=a.parse(e[0],c),r=a.parse(e[1],c),i=Math.min(n,r),o=Math.max(n,r);let l=i,f=o;Math.abs(i)>Math.abs(o)&&(l=o,f=i),t[a.axis]=f,t._custom={barStart:l,barEnd:f,start:n,end:r,min:i,max:o}}function xy1(e,t,a,c){return V3(e)?ff3(e,t,a,c):t[a.axis]=a.parse(e,c),t}function it1(e,t,a,c){const n=e.iScale,r=e.vScale,i=n.getLabels(),o=n===r,l=[];let f,u,d,h;for(f=a,u=a+c;f<u;++f)h=t[f],d={},d[n.axis]=o||n.parse(i[f],f),l.push(xy1(h,d,r,f));return l}function LW(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function uf3(e,t,a){return e!==0?vt(e):(t.isHorizontal()?1:-1)*(t.min>=a?1:-1)}function df3(e){let t,a,c,n,r;return e.horizontal?(t=e.base>e.x,a="left",c="right"):(t=e.base<e.y,a="bottom",c="top"),t?(n="end",r="start"):(n="start",r="end"),{start:a,end:c,reverse:t,top:n,bottom:r}}function hf3(e,t,a,c){let n=t.borderSkipped;const r={};if(!n){e.borderSkipped=r;return}if(n===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:i,end:o,reverse:l,top:f,bottom:u}=df3(e);n==="middle"&&a&&(e.enableBorderRadius=!0,(a._top||0)===c?n=f:(a._bottom||0)===c?n=u:(r[ot1(u,i,o,l)]=!0,n=f)),r[ot1(n,i,o,l)]=!0,e.borderSkipped=r}function ot1(e,t,a,c){return c?(e=pf3(e,t,a),e=st1(e,a,t)):e=st1(e,t,a),e}function pf3(e,t,a){return e===t?a:e===a?t:e}function st1(e,t,a){return e==="start"?t:e==="end"?a:e}function mf3(e,{inflateAmount:t},a){e.inflateAmount=t==="auto"?a===1?.33:0:t}class GR extends m6{parsePrimitiveData(t,a,c,n){return it1(t,a,c,n)}parseArrayData(t,a,c,n){return it1(t,a,c,n)}parseObjectData(t,a,c,n){const{iScale:r,vScale:i}=t,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,f=r.axis==="x"?o:l,u=i.axis==="x"?o:l,d=[];let h,p,v,m;for(h=c,p=c+n;h<p;++h)m=a[h],v={},v[r.axis]=r.parse(Da(m,f),h),d.push(xy1(Da(m,u),v,i,h));return d}updateRangeFromParsed(t,a,c,n){super.updateRangeFromParsed(t,a,c,n);const r=c._custom;r&&a===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const a=this._cachedMeta,{iScale:c,vScale:n}=a,r=this.getParsed(t),i=r._custom,o=LW(i)?"["+i.start+", "+i.end+"]":""+n.getLabelForValue(r[n.axis]);return{label:""+c.getLabelForValue(r[c.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const a=this._cachedMeta;this.updateElements(a.data,0,a.data.length,t)}updateElements(t,a,c,n){const r=n==="reset",{index:i,_cachedMeta:{vScale:o}}=this,l=o.getBasePixel(),f=o.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(a,n);for(let p=a;p<a+c;p++){const v=this.getParsed(p),m=r||Q2(v[o.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),y=this._calculateBarIndexPixels(p,u),g=(v._stacks||{})[o.axis],M={horizontal:f,base:m.base,enableBorderRadius:!g||LW(v._custom)||i===g._top||i===g._bottom,x:f?m.head:y.center,y:f?y.center:m.head,height:f?y.size:Math.abs(m.size),width:f?Math.abs(m.size):y.size};h&&(M.options=d||this.resolveDataElementOptions(p,t[p].active?"active":n));const x=M.options||t[p].options;hf3(M,x,g,i),mf3(M,x,u.ratio),this.updateElement(t[p],p,M,n)}}_getStacks(t,a){const{iScale:c}=this._cachedMeta,n=c.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),r=c.options.stacked,i=[],o=this._cachedMeta.controller.getParsed(a),l=o&&o[c.axis],f=u=>{const d=u._parsed.find(p=>p[c.axis]===l),h=d&&d[u.vScale.axis];if(Q2(h)||isNaN(h))return!0};for(const u of n)if(!(a!==void 0&&f(u))&&((r===!1||i.indexOf(u.stack)===-1||r===void 0&&u.stack===void 0)&&i.push(u.stack),u.index===t))break;return i.length||i.push(void 0),i}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,a,c){const n=this._getStacks(t,c),r=a!==void 0?n.indexOf(a):-1;return r===-1?n.length-1:r}_getRuler(){const t=this.options,a=this._cachedMeta,c=a.iScale,n=[];let r,i;for(r=0,i=a.data.length;r<i;++r)n.push(c.getPixelForValue(this.getParsed(r)[c.axis],r));const o=t.barThickness;return{min:o||of3(a),pixels:n,start:c._startPixel,end:c._endPixel,stackCount:this._getStackCount(),scale:c,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:a,_stacked:c,index:n},options:{base:r,minBarLength:i}}=this,o=r||0,l=this.getParsed(t),f=l._custom,u=LW(f);let d=l[a.axis],h=0,p=c?this.applyStack(a,l,c):d,v,m;p!==d&&(h=p-d,p=d),u&&(d=f.barStart,p=f.barEnd-f.barStart,d!==0&&vt(d)!==vt(f.barEnd)&&(h=0),h+=d);const y=!Q2(r)&&!u?r:h;let g=a.getPixelForValue(y);if(this.chart.getDataVisibility(t)?v=a.getPixelForValue(h+p):v=g,m=v-g,Math.abs(m)<i){m=uf3(m,a,o)*i,d===o&&(g-=m/2);const M=a.getPixelForDecimal(0),x=a.getPixelForDecimal(1),k=Math.min(M,x),b=Math.max(M,x);g=Math.max(Math.min(g,b),k),v=g+m,c&&!u&&(l._stacks[a.axis]._visualValues[n]=a.getValueForPixel(v)-a.getValueForPixel(g))}if(g===a.getPixelForValue(o)){const M=vt(m)*a.getLineWidthForValue(o)/2;g+=M,m-=M}return{size:m,base:g,head:v,center:v+m/2}}_calculateBarIndexPixels(t,a){const c=a.scale,n=this.options,r=n.skipNull,i=z2(n.maxBarThickness,1/0);let o,l;if(a.grouped){const f=r?this._getStackCount(t):a.stackCount,u=n.barThickness==="flex"?lf3(t,a,n,f):sf3(t,a,n,f),d=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0);o=u.start+u.chunk*d+u.chunk/2,l=Math.min(i,u.chunk*u.ratio)}else o=c.getPixelForValue(this.getParsed(t)[c.axis],t),l=Math.min(i,a.min*a.ratio);return{base:o-l/2,head:o+l/2,center:o,size:l}}draw(){const t=this._cachedMeta,a=t.vScale,c=t.data,n=c.length;let r=0;for(;r<n;++r)this.getParsed(r)[a.axis]!==null&&!c[r].hidden&&c[r].draw(this._ctx)}}S1(GR,"id","bar"),S1(GR,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),S1(GR,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class ZR extends m6{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,a,c,n){const r=super.parsePrimitiveData(t,a,c,n);for(let i=0;i<r.length;i++)r[i]._custom=this.resolveDataElementOptions(i+c).radius;return r}parseArrayData(t,a,c,n){const r=super.parseArrayData(t,a,c,n);for(let i=0;i<r.length;i++){const o=a[c+i];r[i]._custom=z2(o[2],this.resolveDataElementOptions(i+c).radius)}return r}parseObjectData(t,a,c,n){const r=super.parseObjectData(t,a,c,n);for(let i=0;i<r.length;i++){const o=a[c+i];r[i]._custom=z2(o&&o.r&&+o.r,this.resolveDataElementOptions(i+c).radius)}return r}getMaxOverflow(){const t=this._cachedMeta.data;let a=0;for(let c=t.length-1;c>=0;--c)a=Math.max(a,t[c].size(this.resolveDataElementOptions(c))/2);return a>0&&a}getLabelAndValue(t){const a=this._cachedMeta,c=this.chart.data.labels||[],{xScale:n,yScale:r}=a,i=this.getParsed(t),o=n.getLabelForValue(i.x),l=r.getLabelForValue(i.y),f=i._custom;return{label:c[t]||"",value:"("+o+", "+l+(f?", "+f:"")+")"}}update(t){const a=this._cachedMeta.data;this.updateElements(a,0,a.length,t)}updateElements(t,a,c,n){const r=n==="reset",{iScale:i,vScale:o}=this._cachedMeta,{sharedOptions:l,includeOptions:f}=this._getSharedOptions(a,n),u=i.axis,d=o.axis;for(let h=a;h<a+c;h++){const p=t[h],v=!r&&this.getParsed(h),m={},y=m[u]=r?i.getPixelForDecimal(.5):i.getPixelForValue(v[u]),g=m[d]=r?o.getBasePixel():o.getPixelForValue(v[d]);m.skip=isNaN(y)||isNaN(g),f&&(m.options=l||this.resolveDataElementOptions(h,p.active?"active":n),r&&(m.options.radius=0)),this.updateElement(p,h,m,n)}}resolveDataElementOptions(t,a){const c=this.getParsed(t);let n=super.resolveDataElementOptions(t,a);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const r=n.radius;return a!=="active"&&(n.radius=0),n.radius+=z2(c&&c._custom,r),n}}S1(ZR,"id","bubble"),S1(ZR,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),S1(ZR,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function vf3(e,t,a){let c=1,n=1,r=0,i=0;if(t<N3){const o=e,l=o+t,f=Math.cos(o),u=Math.sin(o),d=Math.cos(l),h=Math.sin(l),p=(x,k,b)=>hf(x,o,l,!0)?1:Math.max(k,k*a,b,b*a),v=(x,k,b)=>hf(x,o,l,!0)?-1:Math.min(k,k*a,b,b*a),m=p(0,f,d),y=p(we,u,h),g=v(T3,f,d),M=v(T3+we,u,h);c=(m-g)/2,n=(y-M)/2,r=-(m+g)/2,i=-(y+M)/2}return{ratioX:c,ratioY:n,offsetX:r,offsetY:i}}class jr extends m6{constructor(t,a){super(t,a),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,a){const c=this.getDataset().data,n=this._cachedMeta;if(this._parsing===!1)n._parsed=c;else{let r=l=>+c[l];if(R2(c[t])){const{key:l="value"}=this._parsing;r=f=>+Da(c[f],l)}let i,o;for(i=t,o=t+a;i<o;++i)n._parsed[i]=r(i)}}_getRotation(){return n6(this.options.rotation-90)}_getCircumference(){return n6(this.options.circumference)}_getRotationExtents(){let t=N3,a=-N3;for(let c=0;c<this.chart.data.datasets.length;++c)if(this.chart.isDatasetVisible(c)&&this.chart.getDatasetMeta(c).type===this._type){const n=this.chart.getDatasetMeta(c).controller,r=n._getRotation(),i=n._getCircumference();t=Math.min(t,r),a=Math.max(a,r+i)}return{rotation:t,circumference:a-t}}update(t){const a=this.chart,{chartArea:c}=a,n=this._cachedMeta,r=n.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,o=Math.max((Math.min(c.width,c.height)-i)/2,0),l=Math.min(S93(this.options.cutout,o),1),f=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:p,offsetX:v,offsetY:m}=vf3(d,u,l),y=(c.width-i)/h,g=(c.height-i)/p,M=Math.max(Math.min(y,g)/2,0),x=Zv1(this.options.radius,M),k=Math.max(x*l,0),b=(x-k)/this._getVisibleDatasetWeightTotal();this.offsetX=v*x,this.offsetY=m*x,n.total=this.calculateTotal(),this.outerRadius=x-b*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-b*f,0),this.updateElements(r,0,r.length,t)}_circumference(t,a){const c=this.options,n=this._cachedMeta,r=this._getCircumference();return a&&c.animation.animateRotate||!this.chart.getDataVisibility(t)||n._parsed[t]===null||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*r/N3)}updateElements(t,a,c,n){const r=n==="reset",i=this.chart,o=i.chartArea,f=i.options.animation,u=(o.left+o.right)/2,d=(o.top+o.bottom)/2,h=r&&f.animateScale,p=h?0:this.innerRadius,v=h?0:this.outerRadius,{sharedOptions:m,includeOptions:y}=this._getSharedOptions(a,n);let g=this._getRotation(),M;for(M=0;M<a;++M)g+=this._circumference(M,r);for(M=a;M<a+c;++M){const x=this._circumference(M,r),k=t[M],b={x:u+this.offsetX,y:d+this.offsetY,startAngle:g,endAngle:g+x,circumference:x,outerRadius:v,innerRadius:p};y&&(b.options=m||this.resolveDataElementOptions(M,k.active?"active":n)),g+=x,this.updateElement(k,M,b,n)}}calculateTotal(){const t=this._cachedMeta,a=t.data;let c=0,n;for(n=0;n<a.length;n++){const r=t._parsed[n];r!==null&&!isNaN(r)&&this.chart.getDataVisibility(n)&&!a[n].hidden&&(c+=Math.abs(r))}return c}calculateCircumference(t){const a=this._cachedMeta.total;return a>0&&!isNaN(t)?N3*(Math.abs(t)/a):0}getLabelAndValue(t){const a=this._cachedMeta,c=this.chart,n=c.data.labels||[],r=vu(a._parsed[t],c.options.locale);return{label:n[t]||"",value:r}}getMaxBorderWidth(t){let a=0;const c=this.chart;let n,r,i,o,l;if(!t){for(n=0,r=c.data.datasets.length;n<r;++n)if(c.isDatasetVisible(n)){i=c.getDatasetMeta(n),t=i.data,o=i.controller;break}}if(!t)return 0;for(n=0,r=t.length;n<r;++n)l=o.resolveDataElementOptions(n),l.borderAlign!=="inner"&&(a=Math.max(a,l.borderWidth||0,l.hoverBorderWidth||0));return a}getMaxOffset(t){let a=0;for(let c=0,n=t.length;c<n;++c){const r=this.resolveDataElementOptions(c);a=Math.max(a,r.offset||0,r.hoverOffset||0)}return a}_getRingWeightOffset(t){let a=0;for(let c=0;c<t;++c)this.chart.isDatasetVisible(c)&&(a+=this._getRingWeight(c));return a}_getRingWeight(t){return Math.max(z2(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}S1(jr,"id","doughnut"),S1(jr,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),S1(jr,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),S1(jr,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const a=t.data;if(a.labels.length&&a.datasets.length){const{labels:{pointStyle:c,color:n}}=t.legend.options;return a.labels.map((r,i)=>{const l=t.getDatasetMeta(0).controller.getStyle(i);return{text:r,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:n,lineWidth:l.borderWidth,pointStyle:c,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,a,c){c.chart.toggleDataVisibility(a.index),c.chart.update()}}}});class XR extends m6{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const a=this._cachedMeta,{dataset:c,data:n=[],_dataset:r}=a,i=this.chart._animationsDisabled;let{start:o,count:l}=cy1(a,n,i);this._drawStart=o,this._drawCount=l,ny1(a)&&(o=0,l=n.length),c._chart=this.chart,c._datasetIndex=this.index,c._decimated=!!r._decimated,c.points=n;const f=this.resolveDatasetElementOptions(t);this.options.showLine||(f.borderWidth=0),f.segment=this.options.segment,this.updateElement(c,void 0,{animated:!i,options:f},t),this.updateElements(n,o,l,t)}updateElements(t,a,c,n){const r=n==="reset",{iScale:i,vScale:o,_stacked:l,_dataset:f}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(a,n),h=i.axis,p=o.axis,{spanGaps:v,segment:m}=this.options,y=ns(v)?v:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||r||n==="none",M=a+c,x=t.length;let k=a>0&&this.getParsed(a-1);for(let b=0;b<x;++b){const _=t[b],C=g?_:{};if(b<a||b>=M){C.skip=!0;continue}const H=this.getParsed(b),V=Q2(H[p]),N=C[h]=i.getPixelForValue(H[h],b),L=C[p]=r||V?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,H,l):H[p],b);C.skip=isNaN(N)||isNaN(L)||V,C.stop=b>0&&Math.abs(H[h]-k[h])>y,m&&(C.parsed=H,C.raw=f.data[b]),d&&(C.options=u||this.resolveDataElementOptions(b,_.active?"active":n)),g||this.updateElement(_,b,C,n),k=H}}getMaxOverflow(){const t=this._cachedMeta,a=t.dataset,c=a.options&&a.options.borderWidth||0,n=t.data||[];if(!n.length)return c;const r=n[0].size(this.resolveDataElementOptions(0)),i=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(c,r,i)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}S1(XR,"id","line"),S1(XR,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),S1(XR,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class dl extends m6{constructor(t,a){super(t,a),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const a=this._cachedMeta,c=this.chart,n=c.data.labels||[],r=vu(a._parsed[t].r,c.options.locale);return{label:n[t]||"",value:r}}parseObjectData(t,a,c,n){return dy1.bind(this)(t,a,c,n)}update(t){const a=this._cachedMeta.data;this._updateRadius(),this.updateElements(a,0,a.length,t)}getMinMax(){const t=this._cachedMeta,a={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((c,n)=>{const r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(r<a.min&&(a.min=r),r>a.max&&(a.max=r))}),a}_updateRadius(){const t=this.chart,a=t.chartArea,c=t.options,n=Math.min(a.right-a.left,a.bottom-a.top),r=Math.max(n/2,0),i=Math.max(c.cutoutPercentage?r/100*c.cutoutPercentage:1,0),o=(r-i)/t.getVisibleDatasetCount();this.outerRadius=r-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,a,c,n){const r=n==="reset",i=this.chart,l=i.options.animation,f=this._cachedMeta.rScale,u=f.xCenter,d=f.yCenter,h=f.getIndexAngle(0)-.5*T3;let p=h,v;const m=360/this.countVisibleElements();for(v=0;v<a;++v)p+=this._computeAngle(v,n,m);for(v=a;v<a+c;v++){const y=t[v];let g=p,M=p+this._computeAngle(v,n,m),x=i.getDataVisibility(v)?f.getDistanceFromCenterForValue(this.getParsed(v).r):0;p=M,r&&(l.animateScale&&(x=0),l.animateRotate&&(g=M=h));const k={x:u,y:d,innerRadius:0,outerRadius:x,startAngle:g,endAngle:M,options:this.resolveDataElementOptions(v,y.active?"active":n)};this.updateElement(y,v,k,n)}}countVisibleElements(){const t=this._cachedMeta;let a=0;return t.data.forEach((c,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&a++}),a}_computeAngle(t,a,c){return this.chart.getDataVisibility(t)?n6(this.resolveDataElementOptions(t,a).angle||c):0}}S1(dl,"id","polarArea"),S1(dl,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),S1(dl,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const a=t.data;if(a.labels.length&&a.datasets.length){const{labels:{pointStyle:c,color:n}}=t.legend.options;return a.labels.map((r,i)=>{const l=t.getDatasetMeta(0).controller.getStyle(i);return{text:r,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:n,lineWidth:l.borderWidth,pointStyle:c,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,a,c){c.chart.toggleDataVisibility(a.index),c.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class FG extends jr{}S1(FG,"id","pie"),S1(FG,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class KR extends m6{getLabelAndValue(t){const a=this._cachedMeta.vScale,c=this.getParsed(t);return{label:a.getLabels()[t],value:""+a.getLabelForValue(c[a.axis])}}parseObjectData(t,a,c,n){return dy1.bind(this)(t,a,c,n)}update(t){const a=this._cachedMeta,c=a.dataset,n=a.data||[],r=a.iScale.getLabels();if(c.points=n,t!=="resize"){const i=this.resolveDatasetElementOptions(t);this.options.showLine||(i.borderWidth=0);const o={_loop:!0,_fullLoop:r.length===n.length,options:i};this.updateElement(c,void 0,o,t)}this.updateElements(n,0,n.length,t)}updateElements(t,a,c,n){const r=this._cachedMeta.rScale,i=n==="reset";for(let o=a;o<a+c;o++){const l=t[o],f=this.resolveDataElementOptions(o,l.active?"active":n),u=r.getPointPositionForValue(o,this.getParsed(o).r),d=i?r.xCenter:u.x,h=i?r.yCenter:u.y,p={x:d,y:h,angle:u.angle,skip:isNaN(d)||isNaN(h),options:f};this.updateElement(l,o,p,n)}}}S1(KR,"id","radar"),S1(KR,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),S1(KR,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class QR extends m6{getLabelAndValue(t){const a=this._cachedMeta,c=this.chart.data.labels||[],{xScale:n,yScale:r}=a,i=this.getParsed(t),o=n.getLabelForValue(i.x),l=r.getLabelForValue(i.y);return{label:c[t]||"",value:"("+o+", "+l+")"}}update(t){const a=this._cachedMeta,{data:c=[]}=a,n=this.chart._animationsDisabled;let{start:r,count:i}=cy1(a,c,n);if(this._drawStart=r,this._drawCount=i,ny1(a)&&(r=0,i=c.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:o,_dataset:l}=a;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!l._decimated,o.points=c;const f=this.resolveDatasetElementOptions(t);f.segment=this.options.segment,this.updateElement(o,void 0,{animated:!n,options:f},t)}else this.datasetElementType&&(delete a.dataset,this.datasetElementType=!1);this.updateElements(c,r,i,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,a,c,n){const r=n==="reset",{iScale:i,vScale:o,_stacked:l,_dataset:f}=this._cachedMeta,u=this.resolveDataElementOptions(a,n),d=this.getSharedOptions(u),h=this.includeOptions(n,d),p=i.axis,v=o.axis,{spanGaps:m,segment:y}=this.options,g=ns(m)?m:Number.POSITIVE_INFINITY,M=this.chart._animationsDisabled||r||n==="none";let x=a>0&&this.getParsed(a-1);for(let k=a;k<a+c;++k){const b=t[k],_=this.getParsed(k),C=M?b:{},H=Q2(_[v]),V=C[p]=i.getPixelForValue(_[p],k),N=C[v]=r||H?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,_,l):_[v],k);C.skip=isNaN(V)||isNaN(N)||H,C.stop=k>0&&Math.abs(_[p]-x[p])>g,y&&(C.parsed=_,C.raw=f.data[k]),h&&(C.options=d||this.resolveDataElementOptions(k,b.active?"active":n)),M||this.updateElement(b,k,C,n),x=_}this.updateSharedOptions(d,n,u)}getMaxOverflow(){const t=this._cachedMeta,a=t.data||[];if(!this.options.showLine){let o=0;for(let l=a.length-1;l>=0;--l)o=Math.max(o,a[l].size(this.resolveDataElementOptions(l))/2);return o>0&&o}const c=t.dataset,n=c.options&&c.options.borderWidth||0;if(!a.length)return n;const r=a[0].size(this.resolveDataElementOptions(0)),i=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(n,r,i)/2}}S1(QR,"id","scatter"),S1(QR,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),S1(QR,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var yf3=Object.freeze({__proto__:null,BarController:GR,BubbleController:ZR,DoughnutController:jr,LineController:XR,PieController:FG,PolarAreaController:dl,RadarController:KR,ScatterController:QR});function u5(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class CJ{constructor(t){S1(this,"options");this.options=t||{}}static override(t){Object.assign(CJ.prototype,t)}init(){}formats(){return u5()}parse(){return u5()}format(){return u5()}add(){return u5()}diff(){return u5()}startOf(){return u5()}endOf(){return u5()}}var gf3={_date:CJ};function Mf3(e,t,a,c){const{controller:n,data:r,_sorted:i}=e,o=n._cachedMeta.iScale;if(o&&t===o.axis&&t!=="r"&&i&&r.length){const l=o._reversePixels?$93:e8;if(c){if(n._sharedOptions){const f=r[0],u=typeof f.getRange=="function"&&f.getRange(t);if(u){const d=l(r,t,a-u),h=l(r,t,a+u);return{lo:d.lo,hi:h.hi}}}}else return l(r,t,a)}return{lo:0,hi:r.length-1}}function yu(e,t,a,c,n){const r=e.getSortedVisibleDatasetMetas(),i=a[t];for(let o=0,l=r.length;o<l;++o){const{index:f,data:u}=r[o],{lo:d,hi:h}=Mf3(r[o],t,i,n);for(let p=d;p<=h;++p){const v=u[p];v.skip||c(v,f,p)}}}function kf3(e){const t=e.indexOf("x")!==-1,a=e.indexOf("y")!==-1;return function(c,n){const r=t?Math.abs(c.x-n.x):0,i=a?Math.abs(c.y-n.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}}function VW(e,t,a,c,n){const r=[];return!n&&!e.isPointInArea(t)||yu(e,a,t,function(o,l,f){!n&&!t8(o,e.chartArea,0)||o.inRange(t.x,t.y,c)&&r.push({element:o,datasetIndex:l,index:f})},!0),r}function xf3(e,t,a,c){let n=[];function r(i,o,l){const{startAngle:f,endAngle:u}=i.getProps(["startAngle","endAngle"],c),{angle:d}=Qv1(i,{x:t.x,y:t.y});hf(d,f,u)&&n.push({element:i,datasetIndex:o,index:l})}return yu(e,a,t,r),n}function bf3(e,t,a,c,n,r){let i=[];const o=kf3(a);let l=Number.POSITIVE_INFINITY;function f(u,d,h){const p=u.inRange(t.x,t.y,n);if(c&&!p)return;const v=u.getCenterPoint(n);if(!(!!r||e.isPointInArea(v))&&!p)return;const y=o(t,v);y<l?(i=[{element:u,datasetIndex:d,index:h}],l=y):y===l&&i.push({element:u,datasetIndex:d,index:h})}return yu(e,a,t,f),i}function SW(e,t,a,c,n,r){return!r&&!e.isPointInArea(t)?[]:a==="r"&&!c?xf3(e,t,a,n):bf3(e,t,a,c,n,r)}function lt1(e,t,a,c,n){const r=[],i=a==="x"?"inXRange":"inYRange";let o=!1;return yu(e,a,t,(l,f,u)=>{l[i]&&l[i](t[a],n)&&(r.push({element:l,datasetIndex:f,index:u}),o=o||l.inRange(t.x,t.y,n))}),c&&!o?[]:r}var zf3={evaluateInteractionItems:yu,modes:{index(e,t,a,c){const n=Nr(t,e),r=a.axis||"x",i=a.includeInvisible||!1,o=a.intersect?VW(e,n,r,c,i):SW(e,n,r,!1,c,i),l=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach(f=>{const u=o[0].index,d=f.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:f.index,index:u})}),l):[]},dataset(e,t,a,c){const n=Nr(t,e),r=a.axis||"xy",i=a.includeInvisible||!1;let o=a.intersect?VW(e,n,r,c,i):SW(e,n,r,!1,c,i);if(o.length>0){const l=o[0].datasetIndex,f=e.getDatasetMeta(l).data;o=[];for(let u=0;u<f.length;++u)o.push({element:f[u],datasetIndex:l,index:u})}return o},point(e,t,a,c){const n=Nr(t,e),r=a.axis||"xy",i=a.includeInvisible||!1;return VW(e,n,r,c,i)},nearest(e,t,a,c){const n=Nr(t,e),r=a.axis||"xy",i=a.includeInvisible||!1;return SW(e,n,r,a.intersect,c,i)},x(e,t,a,c){const n=Nr(t,e);return lt1(e,n,"x",a.intersect,c)},y(e,t,a,c){const n=Nr(t,e);return lt1(e,n,"y",a.intersect,c)}}};const by1=["left","top","right","bottom"];function v9(e,t){return e.filter(a=>a.pos===t)}function ft1(e,t){return e.filter(a=>by1.indexOf(a.pos)===-1&&a.box.axis===t)}function y9(e,t){return e.sort((a,c)=>{const n=t?c:a,r=t?a:c;return n.weight===r.weight?n.index-r.index:n.weight-r.weight})}function Cf3(e){const t=[];let a,c,n,r,i,o;for(a=0,c=(e||[]).length;a<c;++a)n=e[a],{position:r,options:{stack:i,stackWeight:o=1}}=n,t.push({index:a,box:n,pos:r,horizontal:n.isHorizontal(),weight:n.weight,stack:i&&r+i,stackWeight:o});return t}function _f3(e){const t={};for(const a of e){const{stack:c,pos:n,stackWeight:r}=a;if(!c||!by1.includes(n))continue;const i=t[c]||(t[c]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=r}return t}function wf3(e,t){const a=_f3(e),{vBoxMaxWidth:c,hBoxMaxHeight:n}=t;let r,i,o;for(r=0,i=e.length;r<i;++r){o=e[r];const{fullSize:l}=o.box,f=a[o.stack],u=f&&o.stackWeight/f.weight;o.horizontal?(o.width=u?u*c:l&&t.availableWidth,o.height=n):(o.width=c,o.height=u?u*n:l&&t.availableHeight)}return a}function Hf3(e){const t=Cf3(e),a=y9(t.filter(f=>f.box.fullSize),!0),c=y9(v9(t,"left"),!0),n=y9(v9(t,"right")),r=y9(v9(t,"top"),!0),i=y9(v9(t,"bottom")),o=ft1(t,"x"),l=ft1(t,"y");return{fullSize:a,leftAndTop:c.concat(r),rightAndBottom:n.concat(l).concat(i).concat(o),chartArea:v9(t,"chartArea"),vertical:c.concat(n).concat(l),horizontal:r.concat(i).concat(o)}}function ut1(e,t,a,c){return Math.max(e[a],t[a])+Math.max(e[c],t[c])}function zy1(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Lf3(e,t,a,c){const{pos:n,box:r}=a,i=e.maxPadding;if(!R2(n)){a.size&&(e[n]-=a.size);const d=c[a.stack]||{size:0,count:1};d.size=Math.max(d.size,a.horizontal?r.height:r.width),a.size=d.size/d.count,e[n]+=a.size}r.getPadding&&zy1(i,r.getPadding());const o=Math.max(0,t.outerWidth-ut1(i,e,"left","right")),l=Math.max(0,t.outerHeight-ut1(i,e,"top","bottom")),f=o!==e.w,u=l!==e.h;return e.w=o,e.h=l,a.horizontal?{same:f,other:u}:{same:u,other:f}}function Vf3(e){const t=e.maxPadding;function a(c){const n=Math.max(t[c]-e[c],0);return e[c]+=n,n}e.y+=a("top"),e.x+=a("left"),a("right"),a("bottom")}function Sf3(e,t){const a=t.maxPadding;function c(n){const r={left:0,top:0,right:0,bottom:0};return n.forEach(i=>{r[i]=Math.max(t[i],a[i])}),r}return c(e?["left","right"]:["top","bottom"])}function A9(e,t,a,c){const n=[];let r,i,o,l,f,u;for(r=0,i=e.length,f=0;r<i;++r){o=e[r],l=o.box,l.update(o.width||t.w,o.height||t.h,Sf3(o.horizontal,t));const{same:d,other:h}=Lf3(t,a,o,c);f|=d&&n.length,u=u||h,l.fullSize||n.push(o)}return f&&A9(n,t,a,c)||u}function Ed(e,t,a,c,n){e.top=a,e.left=t,e.right=t+c,e.bottom=a+n,e.width=c,e.height=n}function dt1(e,t,a,c){const n=a.padding;let{x:r,y:i}=t;for(const o of e){const l=o.box,f=c[o.stack]||{count:1,placed:0,weight:1},u=o.stackWeight/f.weight||1;if(o.horizontal){const d=t.w*u,h=f.size||l.height;df(f.start)&&(i=f.start),l.fullSize?Ed(l,n.left,i,a.outerWidth-n.right-n.left,h):Ed(l,t.left+f.placed,i,d,h),f.start=i,f.placed+=d,i=l.bottom}else{const d=t.h*u,h=f.size||l.width;df(f.start)&&(r=f.start),l.fullSize?Ed(l,r,n.top,h,a.outerHeight-n.bottom-n.top):Ed(l,r,t.top+f.placed,h,d),f.start=r,f.placed+=d,r=l.right}}t.x=r,t.y=i}var g4={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(a){t.draw(a)}}]},e.boxes.push(t)},removeBox(e,t){const a=e.boxes?e.boxes.indexOf(t):-1;a!==-1&&e.boxes.splice(a,1)},configure(e,t,a){t.fullSize=a.fullSize,t.position=a.position,t.weight=a.weight},update(e,t,a,c){if(!e)return;const n=z4(e.options.layout.padding),r=Math.max(t-n.width,0),i=Math.max(a-n.height,0),o=Hf3(e.boxes),l=o.vertical,f=o.horizontal;h3(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=l.reduce((m,y)=>y.box.options&&y.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:a,padding:n,availableWidth:r,availableHeight:i,vBoxMaxWidth:r/2/u,hBoxMaxHeight:i/2}),h=Object.assign({},n);zy1(h,z4(c));const p=Object.assign({maxPadding:h,w:r,h:i,x:n.left,y:n.top},n),v=wf3(l.concat(f),d);A9(o.fullSize,p,d,v),A9(l,p,d,v),A9(f,p,d,v)&&A9(l,p,d,v),Vf3(p),dt1(o.leftAndTop,p,d,v),p.x+=p.w,p.y+=p.h,dt1(o.rightAndBottom,p,d,v),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},h3(o.chartArea,m=>{const y=m.box;Object.assign(y,e.chartArea),y.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Cy1{acquireContext(t,a){}releaseContext(t){return!1}addEventListener(t,a,c){}removeEventListener(t,a,c){}getDevicePixelRatio(){return 1}getMaximumSize(t,a,c,n){return a=Math.max(0,a||t.width),c=c||t.height,{width:a,height:Math.max(0,n?Math.floor(a/n):c)}}isAttached(t){return!0}updateConfig(t){}}class Nf3 extends Cy1{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const JR="$chartjs",Af3={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ht1=e=>e===null||e==="";function Tf3(e,t){const a=e.style,c=e.getAttribute("height"),n=e.getAttribute("width");if(e[JR]={initial:{height:c,width:n,style:{display:a.display,height:a.height,width:a.width}}},a.display=a.display||"block",a.boxSizing=a.boxSizing||"border-box",ht1(n)){const r=X61(e,"width");r!==void 0&&(e.width=r)}if(ht1(c))if(e.style.height==="")e.height=e.width/(t||2);else{const r=X61(e,"height");r!==void 0&&(e.height=r)}return e}const _y1=Dl3?{passive:!0}:!1;function Ef3(e,t,a){e&&e.addEventListener(t,a,_y1)}function Df3(e,t,a){e&&e.canvas&&e.canvas.removeEventListener(t,a,_y1)}function Pf3(e,t){const a=Af3[e.type]||e.type,{x:c,y:n}=Nr(e,t);return{type:a,chart:t,native:e,x:c!==void 0?c:null,y:n!==void 0?n:null}}function l$(e,t){for(const a of e)if(a===t||a.contains(t))return!0}function Of3(e,t,a){const c=e.canvas,n=new MutationObserver(r=>{let i=!1;for(const o of r)i=i||l$(o.addedNodes,c),i=i&&!l$(o.removedNodes,c);i&&a()});return n.observe(document,{childList:!0,subtree:!0}),n}function If3(e,t,a){const c=e.canvas,n=new MutationObserver(r=>{let i=!1;for(const o of r)i=i||l$(o.removedNodes,c),i=i&&!l$(o.addedNodes,c);i&&a()});return n.observe(document,{childList:!0,subtree:!0}),n}const mf=new Map;let pt1=0;function wy1(){const e=window.devicePixelRatio;e!==pt1&&(pt1=e,mf.forEach((t,a)=>{a.currentDevicePixelRatio!==e&&t()}))}function Bf3(e,t){mf.size||window.addEventListener("resize",wy1),mf.set(e,t)}function Rf3(e){mf.delete(e),mf.size||window.removeEventListener("resize",wy1)}function Ff3(e,t,a){const c=e.canvas,n=c&&zJ(c);if(!n)return;const r=ay1((o,l)=>{const f=n.clientWidth;a(o,l),f<n.clientWidth&&a()},window),i=new ResizeObserver(o=>{const l=o[0],f=l.contentRect.width,u=l.contentRect.height;f===0&&u===0||r(f,u)});return i.observe(n),Bf3(e,r),i}function NW(e,t,a){a&&a.disconnect(),t==="resize"&&Rf3(e)}function $f3(e,t,a){const c=e.canvas,n=ay1(r=>{e.ctx!==null&&a(Pf3(r,e))},e);return Ef3(c,t,n),n}class qf3 extends Cy1{acquireContext(t,a){const c=t&&t.getContext&&t.getContext("2d");return c&&c.canvas===t?(Tf3(t,a),c):null}releaseContext(t){const a=t.canvas;if(!a[JR])return!1;const c=a[JR].initial;["height","width"].forEach(r=>{const i=c[r];Q2(i)?a.removeAttribute(r):a.setAttribute(r,i)});const n=c.style||{};return Object.keys(n).forEach(r=>{a.style[r]=n[r]}),a.width=a.width,delete a[JR],!0}addEventListener(t,a,c){this.removeEventListener(t,a);const n=t.$proxies||(t.$proxies={}),i={attach:Of3,detach:If3,resize:Ff3}[a]||$f3;n[a]=i(t,a,c)}removeEventListener(t,a){const c=t.$proxies||(t.$proxies={}),n=c[a];if(!n)return;({attach:NW,detach:NW,resize:NW}[a]||Df3)(t,a,n),c[a]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,a,c,n){return El3(t,a,c,n)}isAttached(t){const a=t&&zJ(t);return!!(a&&a.isConnected)}}function jf3(e){return!bJ()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Nf3:qf3}class _6{constructor(){S1(this,"x");S1(this,"y");S1(this,"active",!1);S1(this,"options");S1(this,"$animations")}tooltipPosition(t){const{x:a,y:c}=this.getProps(["x","y"],t);return{x:a,y:c}}hasValue(){return ns(this.x)&&ns(this.y)}getProps(t,a){const c=this.$animations;if(!a||!c)return this;const n={};return t.forEach(r=>{n[r]=c[r]&&c[r].active()?c[r]._to:this[r]}),n}}S1(_6,"defaults",{}),S1(_6,"defaultRoutes");function Uf3(e,t){const a=e.options.ticks,c=Wf3(e),n=Math.min(a.maxTicksLimit||c,c),r=a.major.enabled?Gf3(t):[],i=r.length,o=r[0],l=r[i-1],f=[];if(i>n)return Zf3(t,f,r,i/n),f;const u=Yf3(r,t,n);if(i>0){let d,h;const p=i>1?Math.round((l-o)/(i-1)):null;for(Dd(t,f,u,Q2(p)?0:o-p,o),d=0,h=i-1;d<h;d++)Dd(t,f,u,r[d],r[d+1]);return Dd(t,f,u,l,Q2(p)?t.length:l+p),f}return Dd(t,f,u),f}function Wf3(e){const t=e.options.offset,a=e._tickSize(),c=e._length/a+(t?0:1),n=e._maxLength/a;return Math.floor(Math.min(c,n))}function Yf3(e,t,a){const c=Xf3(e),n=t.length/a;if(!c)return Math.max(n,1);const r=I93(c);for(let i=0,o=r.length-1;i<o;i++){const l=r[i];if(l>n)return l}return Math.max(n,1)}function Gf3(e){const t=[];let a,c;for(a=0,c=e.length;a<c;a++)e[a].major&&t.push(a);return t}function Zf3(e,t,a,c){let n=0,r=a[0],i;for(c=Math.ceil(c),i=0;i<e.length;i++)i===r&&(t.push(e[i]),n++,r=a[n*c])}function Dd(e,t,a,c,n){const r=z2(c,0),i=Math.min(z2(n,e.length),e.length);let o=0,l,f,u;for(a=Math.ceil(a),n&&(l=n-c,a=l/Math.floor(l/a)),u=r;u<0;)o++,u=Math.round(r+o*a);for(f=Math.max(r,0);f<i;f++)f===u&&(t.push(e[f]),o++,u=Math.round(r+o*a))}function Xf3(e){const t=e.length;let a,c;if(t<2)return!1;for(c=e[0],a=1;a<t;++a)if(e[a]-e[a-1]!==c)return!1;return c}const Kf3=e=>e==="left"?"right":e==="right"?"left":e,mt1=(e,t,a)=>t==="top"||t==="left"?e[t]+a:e[t]-a,vt1=(e,t)=>Math.min(t||e,e);function yt1(e,t){const a=[],c=e.length/t,n=e.length;let r=0;for(;r<n;r+=c)a.push(e[Math.floor(r)]);return a}function Qf3(e,t,a){const c=e.ticks.length,n=Math.min(t,c-1),r=e._startPixel,i=e._endPixel,o=1e-6;let l=e.getPixelForTick(n),f;if(!(a&&(c===1?f=Math.max(l-r,i-l):t===0?f=(e.getPixelForTick(1)-l)/2:f=(l-e.getPixelForTick(n-1))/2,l+=n<t?f:-f,l<r-o||l>i+o)))return l}function Jf3(e,t){h3(e,a=>{const c=a.gc,n=c.length/2;let r;if(n>t){for(r=0;r<n;++r)delete a.data[c[r]];c.splice(0,n)}})}function g9(e){return e.drawTicks?e.tickLength:0}function gt1(e,t){if(!e.display)return 0;const a=Be(e.font,t),c=z4(e.padding);return(V3(e.text)?e.text.length:1)*a.lineHeight+c.height}function eu3(e,t){return Za(e,{scale:t,type:"scale"})}function tu3(e,t,a){return Za(e,{tick:a,index:t,type:"tick"})}function au3(e,t,a){let c=vJ(e);return(a&&t!=="right"||!a&&t==="right")&&(c=Kf3(c)),c}function cu3(e,t,a,c){const{top:n,left:r,bottom:i,right:o,chart:l}=e,{chartArea:f,scales:u}=l;let d=0,h,p,v;const m=i-n,y=o-r;if(e.isHorizontal()){if(p=f4(c,r,o),R2(a)){const g=Object.keys(a)[0],M=a[g];v=u[g].getPixelForValue(M)+m-t}else a==="center"?v=(f.bottom+f.top)/2+m-t:v=mt1(e,a,t);h=o-r}else{if(R2(a)){const g=Object.keys(a)[0],M=a[g];p=u[g].getPixelForValue(M)-y+t}else a==="center"?p=(f.left+f.right)/2-y+t:p=mt1(e,a,t);v=f4(c,i,n),d=a==="left"?-we:we}return{titleX:p,titleY:v,maxWidth:h,rotation:d}}class Oi extends _6{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,a){return t}getUserBounds(){let{_userMin:t,_userMax:a,_suggestedMin:c,_suggestedMax:n}=this;return t=Q4(t,Number.POSITIVE_INFINITY),a=Q4(a,Number.NEGATIVE_INFINITY),c=Q4(c,Number.POSITIVE_INFINITY),n=Q4(n,Number.NEGATIVE_INFINITY),{min:Q4(t,c),max:Q4(a,n),minDefined:se(t),maxDefined:se(a)}}getMinMax(t){let{min:a,max:c,minDefined:n,maxDefined:r}=this.getUserBounds(),i;if(n&&r)return{min:a,max:c};const o=this.getMatchingVisibleMetas();for(let l=0,f=o.length;l<f;++l)i=o[l].controller.getMinMax(this,t),n||(a=Math.min(a,i.min)),r||(c=Math.max(c,i.max));return a=r&&a>c?c:a,c=n&&a>c?a:c,{min:Q4(a,Q4(c,a)),max:Q4(c,Q4(a,c))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){M3(this.options.beforeUpdate,[this])}update(t,a,c){const{beginAtZero:n,grace:r,ticks:i}=this.options,o=i.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=a,this._margins=c=Object.assign({left:0,right:0,top:0,bottom:0},c),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+c.left+c.right:this.height+c.top+c.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=dl3(this,r,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=o<this.ticks.length;this._convertTicksToLabels(l?yt1(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||i.source==="auto")&&(this.ticks=Uf3(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,a,c;this.isHorizontal()?(a=this.left,c=this.right):(a=this.top,c=this.bottom,t=!t),this._startPixel=a,this._endPixel=c,this._reversePixels=t,this._length=c-a,this._alignToPixels=this.options.alignToPixels}afterUpdate(){M3(this.options.afterUpdate,[this])}beforeSetDimensions(){M3(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){M3(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),M3(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){M3(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const a=this.options.ticks;let c,n,r;for(c=0,n=t.length;c<n;c++)r=t[c],r.label=M3(a.callback,[r.value,c,t],this)}afterTickToLabelConversion(){M3(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){M3(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,a=t.ticks,c=vt1(this.ticks.length,t.ticks.maxTicksLimit),n=a.minRotation||0,r=a.maxRotation;let i=n,o,l,f;if(!this._isVisible()||!a.display||n>=r||c<=1||!this.isHorizontal()){this.labelRotation=n;return}const u=this._getLabelSizes(),d=u.widest.width,h=u.highest.height,p=Xe(this.chart.width-d,0,this.maxWidth);o=t.offset?this.maxWidth/c:p/(c-1),d+6>o&&(o=p/(c-(t.offset?.5:1)),l=this.maxHeight-g9(t.grid)-a.padding-gt1(t.title,this.chart.options.font),f=Math.sqrt(d*d+h*h),i=pJ(Math.min(Math.asin(Xe((u.highest.height+6)/o,-1,1)),Math.asin(Xe(l/f,-1,1))-Math.asin(Xe(h/f,-1,1)))),i=Math.max(n,Math.min(r,i))),this.labelRotation=i}afterCalculateLabelRotation(){M3(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){M3(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:a,options:{ticks:c,title:n,grid:r}}=this,i=this._isVisible(),o=this.isHorizontal();if(i){const l=gt1(n,a.options.font);if(o?(t.width=this.maxWidth,t.height=g9(r)+l):(t.height=this.maxHeight,t.width=g9(r)+l),c.display&&this.ticks.length){const{first:f,last:u,widest:d,highest:h}=this._getLabelSizes(),p=c.padding*2,v=n6(this.labelRotation),m=Math.cos(v),y=Math.sin(v);if(o){const g=c.mirror?0:y*d.width+m*h.height;t.height=Math.min(this.maxHeight,t.height+g+p)}else{const g=c.mirror?0:m*d.width+y*h.height;t.width=Math.min(this.maxWidth,t.width+g+p)}this._calculatePadding(f,u,y,m)}}this._handleMargins(),o?(this.width=this._length=a.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=a.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,a,c,n){const{ticks:{align:r,padding:i},position:o}=this.options,l=this.labelRotation!==0,f=o!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,p=0;l?f?(h=n*t.width,p=c*a.height):(h=c*t.height,p=n*a.width):r==="start"?p=a.width:r==="end"?h=t.width:r!=="inner"&&(h=t.width/2,p=a.width/2),this.paddingLeft=Math.max((h-u+i)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+i)*this.width/(this.width-d),0)}else{let u=a.height/2,d=t.height/2;r==="start"?(u=0,d=t.height):r==="end"&&(u=a.height,d=0),this.paddingTop=u+i,this.paddingBottom=d+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){M3(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:a}=this.options;return a==="top"||a==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let a,c;for(a=0,c=t.length;a<c;a++)Q2(t[a].label)&&(t.splice(a,1),c--,a--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const a=this.options.ticks.sampleSize;let c=this.ticks;a<c.length&&(c=yt1(c,a)),this._labelSizes=t=this._computeLabelSizes(c,c.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,a,c){const{ctx:n,_longestTextCache:r}=this,i=[],o=[],l=Math.floor(a/vt1(a,c));let f=0,u=0,d,h,p,v,m,y,g,M,x,k,b;for(d=0;d<a;d+=l){if(v=t[d].label,m=this._resolveTickFontOptions(d),n.font=y=m.string,g=r[y]=r[y]||{data:{},gc:[]},M=m.lineHeight,x=k=0,!Q2(v)&&!V3(v))x=o$(n,g.data,g.gc,x,v),k=M;else if(V3(v))for(h=0,p=v.length;h<p;++h)b=v[h],!Q2(b)&&!V3(b)&&(x=o$(n,g.data,g.gc,x,b),k+=M);i.push(x),o.push(k),f=Math.max(x,f),u=Math.max(k,u)}Jf3(r,a);const _=i.indexOf(f),C=o.indexOf(u),H=V=>({width:i[V]||0,height:o[V]||0});return{first:H(0),last:H(a-1),widest:H(_),highest:H(C),widths:i,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,a){return NaN}getValueForPixel(t){}getPixelForTick(t){const a=this.ticks;return t<0||t>a.length-1?null:this.getPixelForValue(a[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const a=this._startPixel+t*this._length;return F93(this._alignToPixels?f5(this.chart,a,0):a)}getDecimalForPixel(t){const a=(t-this._startPixel)/this._length;return this._reversePixels?1-a:a}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:a}=this;return t<0&&a<0?a:t>0&&a>0?t:0}getContext(t){const a=this.ticks||[];if(t>=0&&t<a.length){const c=a[t];return c.$context||(c.$context=tu3(this.getContext(),t,c))}return this.$context||(this.$context=eu3(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,a=n6(this.labelRotation),c=Math.abs(Math.cos(a)),n=Math.abs(Math.sin(a)),r=this._getLabelSizes(),i=t.autoSkipPadding||0,o=r?r.widest.width+i:0,l=r?r.highest.height+i:0;return this.isHorizontal()?l*c>o*n?o/c:l/n:l*n<o*c?l/c:o/n}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const a=this.axis,c=this.chart,n=this.options,{grid:r,position:i,border:o}=n,l=r.offset,f=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=g9(r),p=[],v=o.setContext(this.getContext()),m=v.display?v.width:0,y=m/2,g=function(B){return f5(c,B,m)};let M,x,k,b,_,C,H,V,N,L,w,P;if(i==="top")M=g(this.bottom),C=this.bottom-h,V=M-y,L=g(t.top)+y,P=t.bottom;else if(i==="bottom")M=g(this.top),L=t.top,P=g(t.bottom)-y,C=M+y,V=this.top+h;else if(i==="left")M=g(this.right),_=this.right-h,H=M-y,N=g(t.left)+y,w=t.right;else if(i==="right")M=g(this.left),N=t.left,w=g(t.right)-y,_=M+y,H=this.left+h;else if(a==="x"){if(i==="center")M=g((t.top+t.bottom)/2+.5);else if(R2(i)){const B=Object.keys(i)[0],F=i[B];M=g(this.chart.scales[B].getPixelForValue(F))}L=t.top,P=t.bottom,C=M+y,V=C+h}else if(a==="y"){if(i==="center")M=g((t.left+t.right)/2);else if(R2(i)){const B=Object.keys(i)[0],F=i[B];M=g(this.chart.scales[B].getPixelForValue(F))}_=M-y,H=_-h,N=t.left,w=t.right}const j=z2(n.ticks.maxTicksLimit,d),T=Math.max(1,Math.ceil(d/j));for(x=0;x<d;x+=T){const B=this.getContext(x),F=r.setContext(B),K=o.setContext(B),G=F.lineWidth,W=F.color,O=K.dash||[],E=K.dashOffset,S=F.tickWidth,U=F.tickColor,Z=F.tickBorderDash||[],A=F.tickBorderDashOffset;k=Qf3(this,x,l),k!==void 0&&(b=f5(c,k,G),f?_=H=N=w=b:C=V=L=P=b,p.push({tx1:_,ty1:C,tx2:H,ty2:V,x1:N,y1:L,x2:w,y2:P,width:G,color:W,borderDash:O,borderDashOffset:E,tickWidth:S,tickColor:U,tickBorderDash:Z,tickBorderDashOffset:A}))}return this._ticksLength=d,this._borderValue=M,p}_computeLabelItems(t){const a=this.axis,c=this.options,{position:n,ticks:r}=c,i=this.isHorizontal(),o=this.ticks,{align:l,crossAlign:f,padding:u,mirror:d}=r,h=g9(c.grid),p=h+u,v=d?-u:p,m=-n6(this.labelRotation),y=[];let g,M,x,k,b,_,C,H,V,N,L,w,P="middle";if(n==="top")_=this.bottom-v,C=this._getXAxisLabelAlignment();else if(n==="bottom")_=this.top+v,C=this._getXAxisLabelAlignment();else if(n==="left"){const T=this._getYAxisLabelAlignment(h);C=T.textAlign,b=T.x}else if(n==="right"){const T=this._getYAxisLabelAlignment(h);C=T.textAlign,b=T.x}else if(a==="x"){if(n==="center")_=(t.top+t.bottom)/2+p;else if(R2(n)){const T=Object.keys(n)[0],B=n[T];_=this.chart.scales[T].getPixelForValue(B)+p}C=this._getXAxisLabelAlignment()}else if(a==="y"){if(n==="center")b=(t.left+t.right)/2-p;else if(R2(n)){const T=Object.keys(n)[0],B=n[T];b=this.chart.scales[T].getPixelForValue(B)}C=this._getYAxisLabelAlignment(h).textAlign}a==="y"&&(l==="start"?P="top":l==="end"&&(P="bottom"));const j=this._getLabelSizes();for(g=0,M=o.length;g<M;++g){x=o[g],k=x.label;const T=r.setContext(this.getContext(g));H=this.getPixelForTick(g)+r.labelOffset,V=this._resolveTickFontOptions(g),N=V.lineHeight,L=V3(k)?k.length:1;const B=L/2,F=T.color,K=T.textStrokeColor,G=T.textStrokeWidth;let W=C;i?(b=H,C==="inner"&&(g===M-1?W=this.options.reverse?"left":"right":g===0?W=this.options.reverse?"right":"left":W="center"),n==="top"?f==="near"||m!==0?w=-L*N+N/2:f==="center"?w=-j.highest.height/2-B*N+N:w=-j.highest.height+N/2:f==="near"||m!==0?w=N/2:f==="center"?w=j.highest.height/2-B*N:w=j.highest.height-L*N,d&&(w*=-1),m!==0&&!T.showLabelBackdrop&&(b+=N/2*Math.sin(m))):(_=H,w=(1-L)*N/2);let O;if(T.showLabelBackdrop){const E=z4(T.backdropPadding),S=j.heights[g],U=j.widths[g];let Z=w-E.top,A=0-E.left;switch(P){case"middle":Z-=S/2;break;case"bottom":Z-=S;break}switch(C){case"center":A-=U/2;break;case"right":A-=U;break;case"inner":g===M-1?A-=U:g>0&&(A-=U/2);break}O={left:A,top:Z,width:U+E.width,height:S+E.height,color:T.backdropColor}}y.push({label:k,font:V,textOffset:w,options:{rotation:m,color:F,strokeColor:K,strokeWidth:G,textAlign:W,textBaseline:P,translation:[b,_],backdrop:O}})}return y}_getXAxisLabelAlignment(){const{position:t,ticks:a}=this.options;if(-n6(this.labelRotation))return t==="top"?"left":"right";let n="center";return a.align==="start"?n="left":a.align==="end"?n="right":a.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:a,ticks:{crossAlign:c,mirror:n,padding:r}}=this.options,i=this._getLabelSizes(),o=t+r,l=i.widest.width;let f,u;return a==="left"?n?(u=this.right+r,c==="near"?f="left":c==="center"?(f="center",u+=l/2):(f="right",u+=l)):(u=this.right-o,c==="near"?f="right":c==="center"?(f="center",u-=l/2):(f="left",u=this.left)):a==="right"?n?(u=this.left+r,c==="near"?f="right":c==="center"?(f="center",u-=l/2):(f="left",u-=l)):(u=this.left+o,c==="near"?f="left":c==="center"?(f="center",u+=l/2):(f="right",u=this.right)):f="right",{textAlign:f,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,a=this.options.position;if(a==="left"||a==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(a==="top"||a==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:a},left:c,top:n,width:r,height:i}=this;a&&(t.save(),t.fillStyle=a,t.fillRect(c,n,r,i),t.restore())}getLineWidthForValue(t){const a=this.options.grid;if(!this._isVisible()||!a.display)return 0;const n=this.ticks.findIndex(r=>r.value===t);return n>=0?a.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const a=this.options.grid,c=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,i;const o=(l,f,u)=>{!u.width||!u.color||(c.save(),c.lineWidth=u.width,c.strokeStyle=u.color,c.setLineDash(u.borderDash||[]),c.lineDashOffset=u.borderDashOffset,c.beginPath(),c.moveTo(l.x,l.y),c.lineTo(f.x,f.y),c.stroke(),c.restore())};if(a.display)for(r=0,i=n.length;r<i;++r){const l=n[r];a.drawOnChartArea&&o({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),a.drawTicks&&o({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:a,options:{border:c,grid:n}}=this,r=c.setContext(this.getContext()),i=c.display?r.width:0;if(!i)return;const o=n.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let f,u,d,h;this.isHorizontal()?(f=f5(t,this.left,i)-i/2,u=f5(t,this.right,o)+o/2,d=h=l):(d=f5(t,this.top,i)-i/2,h=f5(t,this.bottom,o)+o/2,f=u=l),a.save(),a.lineWidth=r.width,a.strokeStyle=r.color,a.beginPath(),a.moveTo(f,d),a.lineTo(u,h),a.stroke(),a.restore()}drawLabels(t){if(!this.options.ticks.display)return;const c=this.ctx,n=this._computeLabelArea();n&&lj(c,n);const r=this.getLabelItems(t);for(const i of r){const o=i.options,l=i.font,f=i.label,u=i.textOffset;gi(c,f,0,u,l,o)}n&&fj(c)}drawTitle(){const{ctx:t,options:{position:a,title:c,reverse:n}}=this;if(!c.display)return;const r=Be(c.font),i=z4(c.padding),o=c.align;let l=r.lineHeight/2;a==="bottom"||a==="center"||R2(a)?(l+=i.bottom,V3(c.text)&&(l+=r.lineHeight*(c.text.length-1))):l+=i.top;const{titleX:f,titleY:u,maxWidth:d,rotation:h}=cu3(this,l,a,o);gi(t,c.text,0,0,r,{color:c.color,maxWidth:d,rotation:h,textAlign:au3(o,a,n),textBaseline:"middle",translation:[f,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,a=t.ticks&&t.ticks.z||0,c=z2(t.grid&&t.grid.z,-1),n=z2(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Oi.prototype.draw?[{z:a,draw:r=>{this.draw(r)}}]:[{z:c,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:a,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(t){const a=this.chart.getSortedVisibleDatasetMetas(),c=this.axis+"AxisID",n=[];let r,i;for(r=0,i=a.length;r<i;++r){const o=a[r];o[c]===this.id&&(!t||o.type===t)&&n.push(o)}return n}_resolveTickFontOptions(t){const a=this.options.ticks.setContext(this.getContext(t));return Be(a.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Pd{constructor(t,a,c){this.type=t,this.scope=a,this.override=c,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const a=Object.getPrototypeOf(t);let c;iu3(a)&&(c=this.register(a));const n=this.items,r=t.id,i=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in n||(n[r]=t,nu3(t,i,c),this.override&&j3.override(t.id,t.overrides)),i}get(t){return this.items[t]}unregister(t){const a=this.items,c=t.id,n=this.scope;c in a&&delete a[c],n&&c in j3[n]&&(delete j3[n][c],this.override&&delete yi[c])}}function nu3(e,t,a){const c=uf(Object.create(null),[a?j3.get(a):{},j3.get(t),e.defaults]);j3.set(t,c),e.defaultRoutes&&ru3(t,e.defaultRoutes),e.descriptors&&j3.describe(t,e.descriptors)}function ru3(e,t){Object.keys(t).forEach(a=>{const c=a.split("."),n=c.pop(),r=[e].concat(c).join("."),i=t[a].split("."),o=i.pop(),l=i.join(".");j3.route(r,n,l,o)})}function iu3(e){return"id"in e&&"defaults"in e}class ou3{constructor(){this.controllers=new Pd(m6,"datasets",!0),this.elements=new Pd(_6,"elements"),this.plugins=new Pd(Object,"plugins"),this.scales=new Pd(Oi,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,a,c){[...a].forEach(n=>{const r=c||this._getRegistryForType(n);c||r.isForType(n)||r===this.plugins&&n.id?this._exec(t,r,n):h3(n,i=>{const o=c||this._getRegistryForType(i);this._exec(t,o,i)})})}_exec(t,a,c){const n=hJ(t);M3(c["before"+n],[],c),a[t](c),M3(c["after"+n],[],c)}_getRegistryForType(t){for(let a=0;a<this._typedRegistries.length;a++){const c=this._typedRegistries[a];if(c.isForType(t))return c}return this.plugins}_get(t,a,c){const n=a.get(t);if(n===void 0)throw new Error('"'+t+'" is not a registered '+c+".");return n}}var Z6=new ou3;class su3{constructor(){this._init=[]}notify(t,a,c,n){a==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=n?this._descriptors(t).filter(n):this._descriptors(t),i=this._notify(r,t,a,c);return a==="afterDestroy"&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),i}_notify(t,a,c,n){n=n||{};for(const r of t){const i=r.plugin,o=i[c],l=[a,n,r.options];if(M3(o,l,i)===!1&&n.cancelable)return!1}return!0}invalidate(){Q2(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const a=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),a}_createDescriptors(t,a){const c=t&&t.config,n=z2(c.options&&c.options.plugins,{}),r=lu3(c);return n===!1&&!a?[]:uu3(t,r,n,a)}_notifyStateChanges(t){const a=this._oldCache||[],c=this._cache,n=(r,i)=>r.filter(o=>!i.some(l=>o.plugin.id===l.plugin.id));this._notify(n(a,c),t,"stop"),this._notify(n(c,a),t,"start")}}function lu3(e){const t={},a=[],c=Object.keys(Z6.plugins.items);for(let r=0;r<c.length;r++)a.push(Z6.getPlugin(c[r]));const n=e.plugins||[];for(let r=0;r<n.length;r++){const i=n[r];a.indexOf(i)===-1&&(a.push(i),t[i.id]=!0)}return{plugins:a,localIds:t}}function fu3(e,t){return!t&&e===!1?null:e===!0?{}:e}function uu3(e,{plugins:t,localIds:a},c,n){const r=[],i=e.getContext();for(const o of t){const l=o.id,f=fu3(c[l],n);f!==null&&r.push({plugin:o,options:du3(e.config,{plugin:o,local:a[l]},f,i)})}return r}function du3(e,{plugin:t,local:a},c,n){const r=e.pluginScopeKeys(t),i=e.getOptionScopes(c,r);return a&&t.defaults&&i.push(t.defaults),e.createResolver(i,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function $G(e,t){const a=j3.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||a.indexAxis||"x"}function hu3(e,t){let a=e;return e==="_index_"?a=t:e==="_value_"&&(a=t==="x"?"y":"x"),a}function pu3(e,t){return e===t?"_index_":"_value_"}function Mt1(e){if(e==="x"||e==="y"||e==="r")return e}function mu3(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function qG(e,...t){if(Mt1(e))return e;for(const a of t){const c=a.axis||mu3(a.position)||e.length>1&&Mt1(e[0].toLowerCase());if(c)return c}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function kt1(e,t,a){if(a[t+"AxisID"]===e)return{axis:t}}function vu3(e,t){if(t.data&&t.data.datasets){const a=t.data.datasets.filter(c=>c.xAxisID===e||c.yAxisID===e);if(a.length)return kt1(e,"x",a[0])||kt1(e,"y",a[0])}return{}}function yu3(e,t){const a=yi[e.type]||{scales:{}},c=t.scales||{},n=$G(e.type,t),r=Object.create(null);return Object.keys(c).forEach(i=>{const o=c[i];if(!R2(o))return console.error(`Invalid scale configuration for scale: ${i}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${i}`);const l=qG(i,o,vu3(i,e),j3.scales[o.type]),f=pu3(l,n),u=a.scales||{};r[i]=sl(Object.create(null),[{axis:l},o,u[l],u[f]])}),e.data.datasets.forEach(i=>{const o=i.type||e.type,l=i.indexAxis||$G(o,t),u=(yi[o]||{}).scales||{};Object.keys(u).forEach(d=>{const h=hu3(d,l),p=i[h+"AxisID"]||h;r[p]=r[p]||Object.create(null),sl(r[p],[{axis:h},c[p],u[d]])})}),Object.keys(r).forEach(i=>{const o=r[i];sl(o,[j3.scales[o.type],j3.scale])}),r}function Hy1(e){const t=e.options||(e.options={});t.plugins=z2(t.plugins,{}),t.scales=yu3(e,t)}function Ly1(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function gu3(e){return e=e||{},e.data=Ly1(e.data),Hy1(e),e}const xt1=new Map,Vy1=new Set;function Od(e,t){let a=xt1.get(e);return a||(a=t(),xt1.set(e,a),Vy1.add(a)),a}const M9=(e,t,a)=>{const c=Da(t,a);c!==void 0&&e.add(c)};class Mu3{constructor(t){this._config=gu3(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Ly1(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Hy1(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Od(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,a){return Od(`${t}.transition.${a}`,()=>[[`datasets.${t}.transitions.${a}`,`transitions.${a}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,a){return Od(`${t}-${a}`,()=>[[`datasets.${t}.elements.${a}`,`datasets.${t}`,`elements.${a}`,""]])}pluginScopeKeys(t){const a=t.id,c=this.type;return Od(`${c}-plugin-${a}`,()=>[[`plugins.${a}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,a){const c=this._scopeCache;let n=c.get(t);return(!n||a)&&(n=new Map,c.set(t,n)),n}getOptionScopes(t,a,c){const{options:n,type:r}=this,i=this._cachedScopes(t,c),o=i.get(a);if(o)return o;const l=new Set;a.forEach(u=>{t&&(l.add(t),u.forEach(d=>M9(l,t,d))),u.forEach(d=>M9(l,n,d)),u.forEach(d=>M9(l,yi[r]||{},d)),u.forEach(d=>M9(l,j3,d)),u.forEach(d=>M9(l,BG,d))});const f=Array.from(l);return f.length===0&&f.push(Object.create(null)),Vy1.has(a)&&i.set(a,f),f}chartOptionScopes(){const{options:t,type:a}=this;return[t,yi[a]||{},j3.datasets[a]||{},{type:a},j3,BG]}resolveNamedOptions(t,a,c,n=[""]){const r={$shared:!0},{resolver:i,subPrefixes:o}=bt1(this._resolverCache,t,n);let l=i;if(xu3(i,a)){r.$shared=!1,c=Pa(c)?c():c;const f=this.createResolver(t,c,o);l=rs(i,c,f)}for(const f of a)r[f]=l[f];return r}createResolver(t,a,c=[""],n){const{resolver:r}=bt1(this._resolverCache,t,c);return R2(a)?rs(r,a,void 0,n):r}}function bt1(e,t,a){let c=e.get(t);c||(c=new Map,e.set(t,c));const n=a.join();let r=c.get(n);return r||(r={resolver:MJ(t,a),subPrefixes:a.filter(o=>!o.toLowerCase().includes("hover"))},c.set(n,r)),r}const ku3=e=>R2(e)&&Object.getOwnPropertyNames(e).some(t=>Pa(e[t]));function xu3(e,t){const{isScriptable:a,isIndexable:c}=sy1(e);for(const n of t){const r=a(n),i=c(n),o=(i||r)&&e[n];if(r&&(Pa(o)||ku3(o))||i&&V3(o))return!0}return!1}var bu3="4.4.6";const zu3=["top","bottom","left","right","chartArea"];function zt1(e,t){return e==="top"||e==="bottom"||zu3.indexOf(e)===-1&&t==="x"}function Ct1(e,t){return function(a,c){return a[e]===c[e]?a[t]-c[t]:a[e]-c[e]}}function _t1(e){const t=e.chart,a=t.options.animation;t.notifyPlugins("afterRender"),M3(a&&a.onComplete,[e],t)}function Cu3(e){const t=e.chart,a=t.options.animation;M3(a&&a.onProgress,[e],t)}function Sy1(e){return bJ()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const eF={},wt1=e=>{const t=Sy1(e);return Object.values(eF).filter(a=>a.canvas===t).pop()};function _u3(e,t,a){const c=Object.keys(e);for(const n of c){const r=+n;if(r>=t){const i=e[n];delete e[n],(a>0||r>t)&&(e[r+a]=i)}}}function wu3(e,t,a,c){return!a||e.type==="mouseout"?null:c?t:e}function Id(e,t,a){return e.options.clip?e[a]:t[a]}function Hu3(e,t){const{xScale:a,yScale:c}=e;return a&&c?{left:Id(a,t,"left"),right:Id(a,t,"right"),top:Id(c,t,"top"),bottom:Id(c,t,"bottom")}:t}class K6{static register(...t){Z6.add(...t),Ht1()}static unregister(...t){Z6.remove(...t),Ht1()}constructor(t,a){const c=this.config=new Mu3(a),n=Sy1(t),r=wt1(n);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const i=c.createResolver(c.chartOptionScopes(),this.getContext());this.platform=new(c.platform||jf3(n)),this.platform.updateConfig(c);const o=this.platform.acquireContext(n,i.aspectRatio),l=o&&o.canvas,f=l&&l.height,u=l&&l.width;if(this.id=V93(),this.ctx=o,this.canvas=l,this.width=u,this.height=f,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new su3,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=U93(d=>this.update(d),i.resizeDelay||0),this._dataChanges=[],eF[this.id]=this,!o||!l){console.error("Failed to create chart: can't acquire context from the given item");return}It.listen(this,"complete",_t1),It.listen(this,"progress",Cu3),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:a},width:c,height:n,_aspectRatio:r}=this;return Q2(t)?a&&r?r:n?c/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Z6}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Z61(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return W61(this.canvas,this.ctx),this}stop(){return It.stop(this),this}resize(t,a){It.running(this)?this._resizeBeforeDraw={width:t,height:a}:this._resize(t,a)}_resize(t,a){const c=this.options,n=this.canvas,r=c.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(n,t,a,r),o=c.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,Z61(this,o,!0)&&(this.notifyPlugins("resize",{size:i}),M3(c.onResize,[this,i],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const a=this.options.scales||{};h3(a,(c,n)=>{c.id=n})}buildOrUpdateScales(){const t=this.options,a=t.scales,c=this.scales,n=Object.keys(c).reduce((i,o)=>(i[o]=!1,i),{});let r=[];a&&(r=r.concat(Object.keys(a).map(i=>{const o=a[i],l=qG(i,o),f=l==="r",u=l==="x";return{options:o,dposition:f?"chartArea":u?"bottom":"left",dtype:f?"radialLinear":u?"category":"linear"}}))),h3(r,i=>{const o=i.options,l=o.id,f=qG(l,o),u=z2(o.type,i.dtype);(o.position===void 0||zt1(o.position,f)!==zt1(i.dposition))&&(o.position=i.dposition),n[l]=!0;let d=null;if(l in c&&c[l].type===u)d=c[l];else{const h=Z6.getScale(u);d=new h({id:l,type:u,ctx:this.ctx,chart:this}),c[d.id]=d}d.init(o,t)}),h3(n,(i,o)=>{i||delete c[o]}),h3(c,i=>{g4.configure(this,i,i.options),g4.addBox(this,i)})}_updateMetasets(){const t=this._metasets,a=this.data.datasets.length,c=t.length;if(t.sort((n,r)=>n.index-r.index),c>a){for(let n=a;n<c;++n)this._destroyDatasetMeta(n);t.splice(a,c-a)}this._sortedMetasets=t.slice(0).sort(Ct1("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:a}}=this;t.length>a.length&&delete this._stacks,t.forEach((c,n)=>{a.filter(r=>r===c._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],a=this.data.datasets;let c,n;for(this._removeUnreferencedMetasets(),c=0,n=a.length;c<n;c++){const r=a[c];let i=this.getDatasetMeta(c);const o=r.type||this.config.type;if(i.type&&i.type!==o&&(this._destroyDatasetMeta(c),i=this.getDatasetMeta(c)),i.type=o,i.indexAxis=r.indexAxis||$G(o,this.options),i.order=r.order||0,i.index=c,i.label=""+r.label,i.visible=this.isDatasetVisible(c),i.controller)i.controller.updateIndex(c),i.controller.linkScales();else{const l=Z6.getController(o),{datasetElementType:f,dataElementType:u}=j3.datasets[o];Object.assign(l,{dataElementType:Z6.getElement(u),datasetElementType:f&&Z6.getElement(f)}),i.controller=new l(this,c),t.push(i.controller)}}return this._updateMetasets(),t}_resetElements(){h3(this.data.datasets,(t,a)=>{this.getDatasetMeta(a).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const a=this.config;a.update();const c=this._options=a.createResolver(a.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!c.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let f=0,u=this.data.datasets.length;f<u;f++){const{controller:d}=this.getDatasetMeta(f),h=!n&&r.indexOf(d)===-1;d.buildOrUpdateElements(h),i=Math.max(+d.getMaxOverflow(),i)}i=this._minPadding=c.layout.autoPadding?i:0,this._updateLayout(i),n||h3(r,f=>{f.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Ct1("z","_idx"));const{_active:o,_lastEvent:l}=this;l?this._eventHandler(l,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){h3(this.scales,t=>{g4.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,a=new Set(Object.keys(this._listeners)),c=new Set(t.events);(!O61(a,c)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,a=this._getUniformDataChanges()||[];for(const{method:c,start:n,count:r}of a){const i=c==="_removeElements"?-r:r;_u3(t,n,i)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const a=this.data.datasets.length,c=r=>new Set(t.filter(i=>i[0]===r).map((i,o)=>o+","+i.splice(1).join(","))),n=c(0);for(let r=1;r<a;r++)if(!O61(n,c(r)))return;return Array.from(n).map(r=>r.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;g4.update(this,this.width,this.height,t);const a=this.chartArea,c=a.width<=0||a.height<=0;this._layers=[],h3(this.boxes,n=>{c&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,r)=>{n._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let a=0,c=this.data.datasets.length;a<c;++a)this.getDatasetMeta(a).controller.configure();for(let a=0,c=this.data.datasets.length;a<c;++a)this._updateDataset(a,Pa(t)?t({datasetIndex:a}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,a){const c=this.getDatasetMeta(t),n={meta:c,index:t,mode:a,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",n)!==!1&&(c.controller._update(a),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(It.has(this)?this.attached&&!It.running(this)&&It.start(this):(this.draw(),_t1({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:c,height:n}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(c,n)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const a=this._layers;for(t=0;t<a.length&&a[t].z<=0;++t)a[t].draw(this.chartArea);for(this._drawDatasets();t<a.length;++t)a[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const a=this._sortedMetasets,c=[];let n,r;for(n=0,r=a.length;n<r;++n){const i=a[n];(!t||i.visible)&&c.push(i)}return c}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let a=t.length-1;a>=0;--a)this._drawDataset(t[a]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const a=this.ctx,c=t._clip,n=!c.disabled,r=Hu3(t,this.chartArea),i={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",i)!==!1&&(n&&lj(a,{left:c.left===!1?0:r.left-c.left,right:c.right===!1?this.width:r.right+c.right,top:c.top===!1?0:r.top-c.top,bottom:c.bottom===!1?this.height:r.bottom+c.bottom}),t.controller.draw(),n&&fj(a),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return t8(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,a,c,n){const r=zf3.modes[a];return typeof r=="function"?r(this,t,c,n):[]}getDatasetMeta(t){const a=this.data.datasets[t],c=this._metasets;let n=c.filter(r=>r&&r._dataset===a).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:a&&a.order||0,index:t,_dataset:a,_parsed:[],_sorted:!1},c.push(n)),n}getContext(){return this.$context||(this.$context=Za(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const a=this.data.datasets[t];if(!a)return!1;const c=this.getDatasetMeta(t);return typeof c.hidden=="boolean"?!c.hidden:!a.hidden}setDatasetVisibility(t,a){const c=this.getDatasetMeta(t);c.hidden=!a}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,a,c){const n=c?"show":"hide",r=this.getDatasetMeta(t),i=r.controller._resolveAnimations(void 0,n);df(a)?(r.data[a].hidden=!c,this.update()):(this.setDatasetVisibility(t,c),i.update(r,{visible:c}),this.update(o=>o.datasetIndex===t?n:void 0))}hide(t,a){this._updateVisibility(t,a,!1)}show(t,a){this._updateVisibility(t,a,!0)}_destroyDatasetMeta(t){const a=this._metasets[t];a&&a.controller&&a.controller._destroy(),delete this._metasets[t]}_stop(){let t,a;for(this.stop(),It.remove(this),t=0,a=this.data.datasets.length;t<a;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:a}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),W61(t,a),this.platform.releaseContext(a),this.canvas=null,this.ctx=null),delete eF[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,a=this.platform,c=(r,i)=>{a.addEventListener(this,r,i),t[r]=i},n=(r,i,o)=>{r.offsetX=i,r.offsetY=o,this._eventHandler(r)};h3(this.options.events,r=>c(r,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,a=this.platform,c=(l,f)=>{a.addEventListener(this,l,f),t[l]=f},n=(l,f)=>{t[l]&&(a.removeEventListener(this,l,f),delete t[l])},r=(l,f)=>{this.canvas&&this.resize(l,f)};let i;const o=()=>{n("attach",o),this.attached=!0,this.resize(),c("resize",r),c("detach",i)};i=()=>{this.attached=!1,n("resize",r),this._stop(),this._resize(0,0),c("attach",o)},a.isAttached(this.canvas)?o():i()}unbindEvents(){h3(this._listeners,(t,a)=>{this.platform.removeEventListener(this,a,t)}),this._listeners={},h3(this._responsiveListeners,(t,a)=>{this.platform.removeEventListener(this,a,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,a,c){const n=c?"set":"remove";let r,i,o,l;for(a==="dataset"&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+n+"DatasetHoverStyle"]()),o=0,l=t.length;o<l;++o){i=t[o];const f=i&&this.getDatasetMeta(i.datasetIndex).controller;f&&f[n+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const a=this._active||[],c=t.map(({datasetIndex:r,index:i})=>{const o=this.getDatasetMeta(r);if(!o)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:o.data[i],index:i}});!n$(c,a)&&(this._active=c,this._lastEvent=null,this._updateHoverStyles(c,a))}notifyPlugins(t,a,c){return this._plugins.notify(this,t,a,c)}isPluginEnabled(t){return this._plugins._cache.filter(a=>a.plugin.id===t).length===1}_updateHoverStyles(t,a,c){const n=this.options.hover,r=(l,f)=>l.filter(u=>!f.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),i=r(a,t),o=c?t:r(t,a);i.length&&this.updateHoverStyle(i,n.mode,!1),o.length&&n.mode&&this.updateHoverStyle(o,n.mode,!0)}_eventHandler(t,a){const c={event:t,replay:a,cancelable:!0,inChartArea:this.isPointInArea(t)},n=i=>(i.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",c,n)===!1)return;const r=this._handleEvent(t,a,c.inChartArea);return c.cancelable=!1,this.notifyPlugins("afterEvent",c,n),(r||c.changed)&&this.render(),this}_handleEvent(t,a,c){const{_active:n=[],options:r}=this,i=a,o=this._getActiveElements(t,n,c,i),l=D93(t),f=wu3(t,this._lastEvent,c,l);c&&(this._lastEvent=null,M3(r.onHover,[t,o,this],this),l&&M3(r.onClick,[t,o,this],this));const u=!n$(o,n);return(u||a)&&(this._active=o,this._updateHoverStyles(o,n,a)),this._lastEvent=f,u}_getActiveElements(t,a,c,n){if(t.type==="mouseout")return[];if(!c)return a;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,n)}}S1(K6,"defaults",j3),S1(K6,"instances",eF),S1(K6,"overrides",yi),S1(K6,"registry",Z6),S1(K6,"version",bu3),S1(K6,"getChart",wt1);function Ht1(){return h3(K6.instances,e=>e._plugins.invalidate())}function Lu3(e,t,a){const{startAngle:c,pixelMargin:n,x:r,y:i,outerRadius:o,innerRadius:l}=t;let f=n/o;e.beginPath(),e.arc(r,i,o,c-f,a+f),l>n?(f=n/l,e.arc(r,i,l,a+f,c-f,!0)):e.arc(r,i,n,a+we,c-we),e.closePath(),e.clip()}function Vu3(e){return gJ(e,["outerStart","outerEnd","innerStart","innerEnd"])}function Su3(e,t,a,c){const n=Vu3(e.options.borderRadius),r=(a-t)/2,i=Math.min(r,c*t/2),o=l=>{const f=(a-Math.min(r,l))*c/2;return Xe(l,0,Math.min(r,f))};return{outerStart:o(n.outerStart),outerEnd:o(n.outerEnd),innerStart:Xe(n.innerStart,0,i),innerEnd:Xe(n.innerEnd,0,i)}}function no(e,t,a,c){return{x:a+e*Math.cos(t),y:c+e*Math.sin(t)}}function f$(e,t,a,c,n,r){const{x:i,y:o,startAngle:l,pixelMargin:f,innerRadius:u}=t,d=Math.max(t.outerRadius+c+a-f,0),h=u>0?u+c+a+f:0;let p=0;const v=n-l;if(c){const T=u>0?u-c:0,B=d>0?d-c:0,F=(T+B)/2,K=F!==0?v*F/(F+c):v;p=(v-K)/2}const m=Math.max(.001,v*d-a/T3)/d,y=(v-m)/2,g=l+y+p,M=n-y-p,{outerStart:x,outerEnd:k,innerStart:b,innerEnd:_}=Su3(t,h,d,M-g),C=d-x,H=d-k,V=g+x/C,N=M-k/H,L=h+b,w=h+_,P=g+b/L,j=M-_/w;if(e.beginPath(),r){const T=(V+N)/2;if(e.arc(i,o,d,V,T),e.arc(i,o,d,T,N),k>0){const G=no(H,N,i,o);e.arc(G.x,G.y,k,N,M+we)}const B=no(w,M,i,o);if(e.lineTo(B.x,B.y),_>0){const G=no(w,j,i,o);e.arc(G.x,G.y,_,M+we,j+Math.PI)}const F=(M-_/h+(g+b/h))/2;if(e.arc(i,o,h,M-_/h,F,!0),e.arc(i,o,h,F,g+b/h,!0),b>0){const G=no(L,P,i,o);e.arc(G.x,G.y,b,P+Math.PI,g-we)}const K=no(C,g,i,o);if(e.lineTo(K.x,K.y),x>0){const G=no(C,V,i,o);e.arc(G.x,G.y,x,g-we,V)}}else{e.moveTo(i,o);const T=Math.cos(V)*d+i,B=Math.sin(V)*d+o;e.lineTo(T,B);const F=Math.cos(N)*d+i,K=Math.sin(N)*d+o;e.lineTo(F,K)}e.closePath()}function Nu3(e,t,a,c,n){const{fullCircles:r,startAngle:i,circumference:o}=t;let l=t.endAngle;if(r){f$(e,t,a,c,l,n);for(let f=0;f<r;++f)e.fill();isNaN(o)||(l=i+(o%N3||N3))}return f$(e,t,a,c,l,n),e.fill(),l}function Au3(e,t,a,c,n){const{fullCircles:r,startAngle:i,circumference:o,options:l}=t,{borderWidth:f,borderJoinStyle:u,borderDash:d,borderDashOffset:h}=l,p=l.borderAlign==="inner";if(!f)return;e.setLineDash(d||[]),e.lineDashOffset=h,p?(e.lineWidth=f*2,e.lineJoin=u||"round"):(e.lineWidth=f,e.lineJoin=u||"bevel");let v=t.endAngle;if(r){f$(e,t,a,c,v,n);for(let m=0;m<r;++m)e.stroke();isNaN(o)||(v=i+(o%N3||N3))}p&&Lu3(e,t,v),r||(f$(e,t,a,c,v,n),e.stroke())}class T9 extends _6{constructor(a){super();S1(this,"circumference");S1(this,"endAngle");S1(this,"fullCircles");S1(this,"innerRadius");S1(this,"outerRadius");S1(this,"pixelMargin");S1(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,a&&Object.assign(this,a)}inRange(a,c,n){const r=this.getProps(["x","y"],n),{angle:i,distance:o}=Qv1(r,{x:a,y:c}),{startAngle:l,endAngle:f,innerRadius:u,outerRadius:d,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),p=(this.options.spacing+this.options.borderWidth)/2,v=z2(h,f-l),m=hf(i,l,f)&&l!==f,y=v>=N3||m,g=Jt(o,u+p,d+p);return y&&g}getCenterPoint(a){const{x:c,y:n,startAngle:r,endAngle:i,innerRadius:o,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],a),{offset:f,spacing:u}=this.options,d=(r+i)/2,h=(o+l+u+f)/2;return{x:c+Math.cos(d)*h,y:n+Math.sin(d)*h}}tooltipPosition(a){return this.getCenterPoint(a)}draw(a){const{options:c,circumference:n}=this,r=(c.offset||0)/4,i=(c.spacing||0)/2,o=c.circular;if(this.pixelMargin=c.borderAlign==="inner"?.33:0,this.fullCircles=n>N3?Math.floor(n/N3):0,n===0||this.innerRadius<0||this.outerRadius<0)return;a.save();const l=(this.startAngle+this.endAngle)/2;a.translate(Math.cos(l)*r,Math.sin(l)*r);const f=1-Math.sin(Math.min(T3,n||0)),u=r*f;a.fillStyle=c.backgroundColor,a.strokeStyle=c.borderColor,Nu3(a,this,u,i,o),Au3(a,this,u,i,o),a.restore()}}S1(T9,"id","arc"),S1(T9,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),S1(T9,"defaultRoutes",{backgroundColor:"backgroundColor"}),S1(T9,"descriptors",{_scriptable:!0,_indexable:a=>a!=="borderDash"});function Ny1(e,t,a=t){e.lineCap=z2(a.borderCapStyle,t.borderCapStyle),e.setLineDash(z2(a.borderDash,t.borderDash)),e.lineDashOffset=z2(a.borderDashOffset,t.borderDashOffset),e.lineJoin=z2(a.borderJoinStyle,t.borderJoinStyle),e.lineWidth=z2(a.borderWidth,t.borderWidth),e.strokeStyle=z2(a.borderColor,t.borderColor)}function Tu3(e,t,a){e.lineTo(a.x,a.y)}function Eu3(e){return e.stepped?cl3:e.tension||e.cubicInterpolationMode==="monotone"?nl3:Tu3}function Ay1(e,t,a={}){const c=e.length,{start:n=0,end:r=c-1}=a,{start:i,end:o}=t,l=Math.max(n,i),f=Math.min(r,o),u=n<i&&r<i||n>o&&r>o;return{count:c,start:l,loop:t.loop,ilen:f<l&&!u?c+f-l:f-l}}function Du3(e,t,a,c){const{points:n,options:r}=t,{count:i,start:o,loop:l,ilen:f}=Ay1(n,a,c),u=Eu3(r);let{move:d=!0,reverse:h}=c||{},p,v,m;for(p=0;p<=f;++p)v=n[(o+(h?f-p:p))%i],!v.skip&&(d?(e.moveTo(v.x,v.y),d=!1):u(e,m,v,h,r.stepped),m=v);return l&&(v=n[(o+(h?f:0))%i],u(e,m,v,h,r.stepped)),!!l}function Pu3(e,t,a,c){const n=t.points,{count:r,start:i,ilen:o}=Ay1(n,a,c),{move:l=!0,reverse:f}=c||{};let u=0,d=0,h,p,v,m,y,g;const M=k=>(i+(f?o-k:k))%r,x=()=>{m!==y&&(e.lineTo(u,y),e.lineTo(u,m),e.lineTo(u,g))};for(l&&(p=n[M(0)],e.moveTo(p.x,p.y)),h=0;h<=o;++h){if(p=n[M(h)],p.skip)continue;const k=p.x,b=p.y,_=k|0;_===v?(b<m?m=b:b>y&&(y=b),u=(d*u+k)/++d):(x(),e.lineTo(k,b),v=_,d=0,m=y=b),g=b}x()}function jG(e){const t=e.options,a=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!a?Pu3:Du3}function Ou3(e){return e.stepped?Pl3:e.tension||e.cubicInterpolationMode==="monotone"?Ol3:Ar}function Iu3(e,t,a,c){let n=t._path;n||(n=t._path=new Path2D,t.path(n,a,c)&&n.closePath()),Ny1(e,t.options),e.stroke(n)}function Bu3(e,t,a,c){const{segments:n,options:r}=t,i=jG(t);for(const o of n)Ny1(e,r,o.style),e.beginPath(),i(e,t,o,{start:a,end:a+c-1})&&e.closePath(),e.stroke()}const Ru3=typeof Path2D=="function";function Fu3(e,t,a,c){Ru3&&!t.options.segment?Iu3(e,t,a,c):Bu3(e,t,a,c)}class oa extends _6{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,a){const c=this.options;if((c.tension||c.cubicInterpolationMode==="monotone")&&!c.stepped&&!this._pointsUpdated){const n=c.spanGaps?this._loop:this._fullLoop;Ll3(this._points,c,t,n,a),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=ql3(this,this.options.segment))}first(){const t=this.segments,a=this.points;return t.length&&a[t[0].start]}last(){const t=this.segments,a=this.points,c=t.length;return c&&a[t[c-1].end]}interpolate(t,a){const c=this.options,n=t[a],r=this.points,i=gy1(this,{property:a,start:n,end:n});if(!i.length)return;const o=[],l=Ou3(c);let f,u;for(f=0,u=i.length;f<u;++f){const{start:d,end:h}=i[f],p=r[d],v=r[h];if(p===v){o.push(p);continue}const m=Math.abs((n-p[a])/(v[a]-p[a])),y=l(p,v,m,c.stepped);y[a]=t[a],o.push(y)}return o.length===1?o[0]:o}pathSegment(t,a,c){return jG(this)(t,this,a,c)}path(t,a,c){const n=this.segments,r=jG(this);let i=this._loop;a=a||0,c=c||this.points.length-a;for(const o of n)i&=r(t,this,o,{start:a,end:a+c-1});return!!i}draw(t,a,c,n){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),Fu3(t,this,c,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}S1(oa,"id","line"),S1(oa,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),S1(oa,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),S1(oa,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Lt1(e,t,a,c){const n=e.options,{[a]:r}=e.getProps([a],c);return Math.abs(t-r)<n.radius+n.hitRadius}class tF extends _6{constructor(a){super();S1(this,"parsed");S1(this,"skip");S1(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,a&&Object.assign(this,a)}inRange(a,c,n){const r=this.options,{x:i,y:o}=this.getProps(["x","y"],n);return Math.pow(a-i,2)+Math.pow(c-o,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(a,c){return Lt1(this,a,"x",c)}inYRange(a,c){return Lt1(this,a,"y",c)}getCenterPoint(a){const{x:c,y:n}=this.getProps(["x","y"],a);return{x:c,y:n}}size(a){a=a||this.options||{};let c=a.radius||0;c=Math.max(c,c&&a.hoverRadius||0);const n=c&&a.borderWidth||0;return(c+n)*2}draw(a,c){const n=this.options;this.skip||n.radius<.1||!t8(this,c,this.size(n)/2)||(a.strokeStyle=n.borderColor,a.lineWidth=n.borderWidth,a.fillStyle=n.backgroundColor,RG(a,n,this.x,this.y))}getRange(){const a=this.options||{};return a.radius+a.hitRadius}}S1(tF,"id","point"),S1(tF,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),S1(tF,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Ty1(e,t){const{x:a,y:c,base:n,width:r,height:i}=e.getProps(["x","y","base","width","height"],t);let o,l,f,u,d;return e.horizontal?(d=i/2,o=Math.min(a,n),l=Math.max(a,n),f=c-d,u=c+d):(d=r/2,o=a-d,l=a+d,f=Math.min(c,n),u=Math.max(c,n)),{left:o,top:f,right:l,bottom:u}}function sa(e,t,a,c){return e?0:Xe(t,a,c)}function $u3(e,t,a){const c=e.options.borderWidth,n=e.borderSkipped,r=oy1(c);return{t:sa(n.top,r.top,0,a),r:sa(n.right,r.right,0,t),b:sa(n.bottom,r.bottom,0,a),l:sa(n.left,r.left,0,t)}}function qu3(e,t,a){const{enableBorderRadius:c}=e.getProps(["enableBorderRadius"]),n=e.options.borderRadius,r=ti(n),i=Math.min(t,a),o=e.borderSkipped,l=c||R2(n);return{topLeft:sa(!l||o.top||o.left,r.topLeft,0,i),topRight:sa(!l||o.top||o.right,r.topRight,0,i),bottomLeft:sa(!l||o.bottom||o.left,r.bottomLeft,0,i),bottomRight:sa(!l||o.bottom||o.right,r.bottomRight,0,i)}}function ju3(e){const t=Ty1(e),a=t.right-t.left,c=t.bottom-t.top,n=$u3(e,a/2,c/2),r=qu3(e,a/2,c/2);return{outer:{x:t.left,y:t.top,w:a,h:c,radius:r},inner:{x:t.left+n.l,y:t.top+n.t,w:a-n.l-n.r,h:c-n.t-n.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,r.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(n.b,n.r))}}}}function AW(e,t,a,c){const n=t===null,r=a===null,o=e&&!(n&&r)&&Ty1(e,c);return o&&(n||Jt(t,o.left,o.right))&&(r||Jt(a,o.top,o.bottom))}function Uu3(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Wu3(e,t){e.rect(t.x,t.y,t.w,t.h)}function TW(e,t,a={}){const c=e.x!==a.x?-t:0,n=e.y!==a.y?-t:0,r=(e.x+e.w!==a.x+a.w?t:0)-c,i=(e.y+e.h!==a.y+a.h?t:0)-n;return{x:e.x+c,y:e.y+n,w:e.w+r,h:e.h+i,radius:e.radius}}class aF extends _6{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:a,options:{borderColor:c,backgroundColor:n}}=this,{inner:r,outer:i}=ju3(this),o=Uu3(i.radius)?pf:Wu3;t.save(),(i.w!==r.w||i.h!==r.h)&&(t.beginPath(),o(t,TW(i,a,r)),t.clip(),o(t,TW(r,-a,i)),t.fillStyle=c,t.fill("evenodd")),t.beginPath(),o(t,TW(r,a)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,a,c){return AW(this,t,a,c)}inXRange(t,a){return AW(this,t,null,a)}inYRange(t,a){return AW(this,null,t,a)}getCenterPoint(t){const{x:a,y:c,base:n,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(a+n)/2:a,y:r?c:(c+n)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}S1(aF,"id","bar"),S1(aF,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),S1(aF,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var Yu3=Object.freeze({__proto__:null,ArcElement:T9,BarElement:aF,LineElement:oa,PointElement:tF});const UG=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Vt1=UG.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function Ey1(e){return UG[e%UG.length]}function Dy1(e){return Vt1[e%Vt1.length]}function Gu3(e,t){return e.borderColor=Ey1(t),e.backgroundColor=Dy1(t),++t}function Zu3(e,t){return e.backgroundColor=e.data.map(()=>Ey1(t++)),t}function Xu3(e,t){return e.backgroundColor=e.data.map(()=>Dy1(t++)),t}function Ku3(e){let t=0;return(a,c)=>{const n=e.getDatasetMeta(c).controller;n instanceof jr?t=Zu3(a,t):n instanceof dl?t=Xu3(a,t):n&&(t=Gu3(a,t))}}function St1(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function Qu3(e){return e&&(e.borderColor||e.backgroundColor)}function Ju3(){return j3.borderColor!=="rgba(0,0,0,0.1)"||j3.backgroundColor!=="rgba(0,0,0,0.1)"}var ed3={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,a){if(!a.enabled)return;const{data:{datasets:c},options:n}=e.config,{elements:r}=n,i=St1(c)||Qu3(n)||r&&St1(r)||Ju3();if(!a.forceOverride&&i)return;const o=Ku3(e);c.forEach(o)}};function td3(e,t,a,c,n){const r=n.samples||c;if(r>=a)return e.slice(t,t+a);const i=[],o=(a-2)/(r-2);let l=0;const f=t+a-1;let u=t,d,h,p,v,m;for(i[l++]=e[u],d=0;d<r-2;d++){let y=0,g=0,M;const x=Math.floor((d+1)*o)+1+t,k=Math.min(Math.floor((d+2)*o)+1,a)+t,b=k-x;for(M=x;M<k;M++)y+=e[M].x,g+=e[M].y;y/=b,g/=b;const _=Math.floor(d*o)+1+t,C=Math.min(Math.floor((d+1)*o)+1,a)+t,{x:H,y:V}=e[u];for(p=v=-1,M=_;M<C;M++)v=.5*Math.abs((H-y)*(e[M].y-V)-(H-e[M].x)*(g-V)),v>p&&(p=v,h=e[M],m=M);i[l++]=h,u=m}return i[l++]=e[f],i}function ad3(e,t,a,c){let n=0,r=0,i,o,l,f,u,d,h,p,v,m;const y=[],g=t+a-1,M=e[t].x,k=e[g].x-M;for(i=t;i<t+a;++i){o=e[i],l=(o.x-M)/k*c,f=o.y;const b=l|0;if(b===u)f<v?(v=f,d=i):f>m&&(m=f,h=i),n=(r*n+o.x)/++r;else{const _=i-1;if(!Q2(d)&&!Q2(h)){const C=Math.min(d,h),H=Math.max(d,h);C!==p&&C!==_&&y.push({...e[C],x:n}),H!==p&&H!==_&&y.push({...e[H],x:n})}i>0&&_!==p&&y.push(e[_]),y.push(o),u=b,r=0,v=m=f,d=h=p=i}}return y}function Py1(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Nt1(e){e.data.datasets.forEach(t=>{Py1(t)})}function cd3(e,t){const a=t.length;let c=0,n;const{iScale:r}=e,{min:i,max:o,minDefined:l,maxDefined:f}=r.getUserBounds();return l&&(c=Xe(e8(t,r.axis,i).lo,0,a-1)),f?n=Xe(e8(t,r.axis,o).hi+1,c,a)-c:n=a-c,{start:c,count:n}}var nd3={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,a)=>{if(!a.enabled){Nt1(e);return}const c=e.width;e.data.datasets.forEach((n,r)=>{const{_data:i,indexAxis:o}=n,l=e.getDatasetMeta(r),f=i||n.data;if(N9([o,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:h}=cd3(l,f);const p=a.threshold||4*c;if(h<=p){Py1(n);return}Q2(i)&&(n._data=f,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(m){this._data=m}}));let v;switch(a.algorithm){case"lttb":v=td3(f,d,h,c,a);break;case"min-max":v=ad3(f,d,h,c);break;default:throw new Error(`Unsupported decimation algorithm '${a.algorithm}'`)}n._decimated=v})},destroy(e){Nt1(e)}};function rd3(e,t,a){const c=e.segments,n=e.points,r=t.points,i=[];for(const o of c){let{start:l,end:f}=o;f=_J(l,f,n);const u=WG(a,n[l],n[f],o.loop);if(!t.segments){i.push({source:o,target:u,start:n[l],end:n[f]});continue}const d=gy1(t,u);for(const h of d){const p=WG(a,r[h.start],r[h.end],h.loop),v=yy1(o,n,p);for(const m of v)i.push({source:m,target:h,start:{[a]:At1(u,p,"start",Math.max)},end:{[a]:At1(u,p,"end",Math.min)}})}}return i}function WG(e,t,a,c){if(c)return;let n=t[e],r=a[e];return e==="angle"&&(n=J4(n),r=J4(r)),{property:e,start:n,end:r}}function id3(e,t){const{x:a=null,y:c=null}=e||{},n=t.points,r=[];return t.segments.forEach(({start:i,end:o})=>{o=_J(i,o,n);const l=n[i],f=n[o];c!==null?(r.push({x:l.x,y:c}),r.push({x:f.x,y:c})):a!==null&&(r.push({x:a,y:l.y}),r.push({x:a,y:f.y}))}),r}function _J(e,t,a){for(;t>e;t--){const c=a[t];if(!isNaN(c.x)&&!isNaN(c.y))break}return t}function At1(e,t,a,c){return e&&t?c(e[a],t[a]):e?e[a]:t?t[a]:0}function Oy1(e,t){let a=[],c=!1;return V3(e)?(c=!0,a=e):a=id3(e,t),a.length?new oa({points:a,options:{tension:0},_loop:c,_fullLoop:c}):null}function Tt1(e){return e&&e.fill!==!1}function od3(e,t,a){let n=e[t].fill;const r=[t];let i;if(!a)return n;for(;n!==!1&&r.indexOf(n)===-1;){if(!se(n))return n;if(i=e[n],!i)return!1;if(i.visible)return n;r.push(n),n=i.fill}return!1}function sd3(e,t,a){const c=dd3(e);if(R2(c))return isNaN(c.value)?!1:c;let n=parseFloat(c);return se(n)&&Math.floor(n)===n?ld3(c[0],t,n,a):["origin","start","end","stack","shape"].indexOf(c)>=0&&c}function ld3(e,t,a,c){return(e==="-"||e==="+")&&(a=t+a),a===t||a<0||a>=c?!1:a}function fd3(e,t){let a=null;return e==="start"?a=t.bottom:e==="end"?a=t.top:R2(e)?a=t.getPixelForValue(e.value):t.getBasePixel&&(a=t.getBasePixel()),a}function ud3(e,t,a){let c;return e==="start"?c=a:e==="end"?c=t.options.reverse?t.min:t.max:R2(e)?c=e.value:c=t.getBaseValue(),c}function dd3(e){const t=e.options,a=t.fill;let c=z2(a&&a.target,a);return c===void 0&&(c=!!t.backgroundColor),c===!1||c===null?!1:c===!0?"origin":c}function hd3(e){const{scale:t,index:a,line:c}=e,n=[],r=c.segments,i=c.points,o=pd3(t,a);o.push(Oy1({x:null,y:t.bottom},c));for(let l=0;l<r.length;l++){const f=r[l];for(let u=f.start;u<=f.end;u++)md3(n,i[u],o)}return new oa({points:n,options:{}})}function pd3(e,t){const a=[],c=e.getMatchingVisibleMetas("line");for(let n=0;n<c.length;n++){const r=c[n];if(r.index===t)break;r.hidden||a.unshift(r.dataset)}return a}function md3(e,t,a){const c=[];for(let n=0;n<a.length;n++){const r=a[n],{first:i,last:o,point:l}=vd3(r,t,"x");if(!(!l||i&&o)){if(i)c.unshift(l);else if(e.push(l),!o)break}}e.push(...c)}function vd3(e,t,a){const c=e.interpolate(t,a);if(!c)return{};const n=c[a],r=e.segments,i=e.points;let o=!1,l=!1;for(let f=0;f<r.length;f++){const u=r[f],d=i[u.start][a],h=i[u.end][a];if(Jt(n,d,h)){o=n===d,l=n===h;break}}return{first:o,last:l,point:c}}class Iy1{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,a,c){const{x:n,y:r,radius:i}=this;return a=a||{start:0,end:N3},t.arc(n,r,i,a.end,a.start,!0),!c.bounds}interpolate(t){const{x:a,y:c,radius:n}=this,r=t.angle;return{x:a+Math.cos(r)*n,y:c+Math.sin(r)*n,angle:r}}}function yd3(e){const{chart:t,fill:a,line:c}=e;if(se(a))return gd3(t,a);if(a==="stack")return hd3(e);if(a==="shape")return!0;const n=Md3(e);return n instanceof Iy1?n:Oy1(n,c)}function gd3(e,t){const a=e.getDatasetMeta(t);return a&&e.isDatasetVisible(t)?a.dataset:null}function Md3(e){return(e.scale||{}).getPointPositionForValue?xd3(e):kd3(e)}function kd3(e){const{scale:t={},fill:a}=e,c=fd3(a,t);if(se(c)){const n=t.isHorizontal();return{x:n?c:null,y:n?null:c}}return null}function xd3(e){const{scale:t,fill:a}=e,c=t.options,n=t.getLabels().length,r=c.reverse?t.max:t.min,i=ud3(a,t,r),o=[];if(c.grid.circular){const l=t.getPointPositionForValue(0,r);return new Iy1({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(i)})}for(let l=0;l<n;++l)o.push(t.getPointPositionForValue(l,i));return o}function EW(e,t,a){const c=yd3(t),{line:n,scale:r,axis:i}=t,o=n.options,l=o.fill,f=o.backgroundColor,{above:u=f,below:d=f}=l||{};c&&n.points.length&&(lj(e,a),bd3(e,{line:n,target:c,above:u,below:d,area:a,scale:r,axis:i}),fj(e))}function bd3(e,t){const{line:a,target:c,above:n,below:r,area:i,scale:o}=t,l=a._loop?"angle":t.axis;e.save(),l==="x"&&r!==n&&(Et1(e,c,i.top),Dt1(e,{line:a,target:c,color:n,scale:o,property:l}),e.restore(),e.save(),Et1(e,c,i.bottom)),Dt1(e,{line:a,target:c,color:r,scale:o,property:l}),e.restore()}function Et1(e,t,a){const{segments:c,points:n}=t;let r=!0,i=!1;e.beginPath();for(const o of c){const{start:l,end:f}=o,u=n[l],d=n[_J(l,f,n)];r?(e.moveTo(u.x,u.y),r=!1):(e.lineTo(u.x,a),e.lineTo(u.x,u.y)),i=!!t.pathSegment(e,o,{move:i}),i?e.closePath():e.lineTo(d.x,a)}e.lineTo(t.first().x,a),e.closePath(),e.clip()}function Dt1(e,t){const{line:a,target:c,property:n,color:r,scale:i}=t,o=rd3(a,c,n);for(const{source:l,target:f,start:u,end:d}of o){const{style:{backgroundColor:h=r}={}}=l,p=c!==!0;e.save(),e.fillStyle=h,zd3(e,i,p&&WG(n,u,d)),e.beginPath();const v=!!a.pathSegment(e,l);let m;if(p){v?e.closePath():Pt1(e,c,d,n);const y=!!c.pathSegment(e,f,{move:v,reverse:!0});m=v&&y,m||Pt1(e,c,u,n)}e.closePath(),e.fill(m?"evenodd":"nonzero"),e.restore()}}function zd3(e,t,a){const{top:c,bottom:n}=t.chart.chartArea,{property:r,start:i,end:o}=a||{};r==="x"&&(e.beginPath(),e.rect(i,c,o-i,n-c),e.clip())}function Pt1(e,t,a,c){const n=t.interpolate(a,c);n&&e.lineTo(n.x,n.y)}var Cd3={id:"filler",afterDatasetsUpdate(e,t,a){const c=(e.data.datasets||[]).length,n=[];let r,i,o,l;for(i=0;i<c;++i)r=e.getDatasetMeta(i),o=r.dataset,l=null,o&&o.options&&o instanceof oa&&(l={visible:e.isDatasetVisible(i),index:i,fill:sd3(o,i,c),chart:e,axis:r.controller.options.indexAxis,scale:r.vScale,line:o}),r.$filler=l,n.push(l);for(i=0;i<c;++i)l=n[i],!(!l||l.fill===!1)&&(l.fill=od3(n,i,a.propagate))},beforeDraw(e,t,a){const c=a.drawTime==="beforeDraw",n=e.getSortedVisibleDatasetMetas(),r=e.chartArea;for(let i=n.length-1;i>=0;--i){const o=n[i].$filler;o&&(o.line.updateControlPoints(r,o.axis),c&&o.fill&&EW(e.ctx,o,r))}},beforeDatasetsDraw(e,t,a){if(a.drawTime!=="beforeDatasetsDraw")return;const c=e.getSortedVisibleDatasetMetas();for(let n=c.length-1;n>=0;--n){const r=c[n].$filler;Tt1(r)&&EW(e.ctx,r,e.chartArea)}},beforeDatasetDraw(e,t,a){const c=t.meta.$filler;!Tt1(c)||a.drawTime!=="beforeDatasetDraw"||EW(e.ctx,c,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Ot1=(e,t)=>{let{boxHeight:a=t,boxWidth:c=t}=e;return e.usePointStyle&&(a=Math.min(a,t),c=e.pointStyleWidth||Math.min(c,t)),{boxWidth:c,boxHeight:a,itemHeight:Math.max(t,a)}},_d3=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class It1 extends _6{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,a,c){this.maxWidth=t,this.maxHeight=a,this._margins=c,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let a=M3(t.generateLabels,[this.chart],this)||[];t.filter&&(a=a.filter(c=>t.filter(c,this.chart.data))),t.sort&&(a=a.sort((c,n)=>t.sort(c,n,this.chart.data))),this.options.reverse&&a.reverse(),this.legendItems=a}fit(){const{options:t,ctx:a}=this;if(!t.display){this.width=this.height=0;return}const c=t.labels,n=Be(c.font),r=n.size,i=this._computeTitleHeight(),{boxWidth:o,itemHeight:l}=Ot1(c,r);let f,u;a.font=n.string,this.isHorizontal()?(f=this.maxWidth,u=this._fitRows(i,r,o,l)+10):(u=this.maxHeight,f=this._fitCols(i,n,o,l)+10),this.width=Math.min(f,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,a,c,n){const{ctx:r,maxWidth:i,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],f=this.lineWidths=[0],u=n+o;let d=t;r.textAlign="left",r.textBaseline="middle";let h=-1,p=-u;return this.legendItems.forEach((v,m)=>{const y=c+a/2+r.measureText(v.text).width;(m===0||f[f.length-1]+y+2*o>i)&&(d+=u,f[f.length-(m>0?0:1)]=0,p+=u,h++),l[m]={left:0,top:p,row:h,width:y,height:n},f[f.length-1]+=y+o}),d}_fitCols(t,a,c,n){const{ctx:r,maxHeight:i,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],f=this.columnSizes=[],u=i-t;let d=o,h=0,p=0,v=0,m=0;return this.legendItems.forEach((y,g)=>{const{itemWidth:M,itemHeight:x}=wd3(c,a,r,y,n);g>0&&p+x+2*o>u&&(d+=h+o,f.push({width:h,height:p}),v+=h+o,m++,h=p=0),l[g]={left:v,top:p,col:m,width:M,height:x},h=Math.max(h,M),p+=x+o}),d+=h,f.push({width:h,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:a,options:{align:c,labels:{padding:n},rtl:r}}=this,i=Oo(r,this.left,this.width);if(this.isHorizontal()){let o=0,l=f4(c,this.left+n,this.right-this.lineWidths[o]);for(const f of a)o!==f.row&&(o=f.row,l=f4(c,this.left+n,this.right-this.lineWidths[o])),f.top+=this.top+t+n,f.left=i.leftForLtr(i.x(l),f.width),l+=f.width+n}else{let o=0,l=f4(c,this.top+t+n,this.bottom-this.columnSizes[o].height);for(const f of a)f.col!==o&&(o=f.col,l=f4(c,this.top+t+n,this.bottom-this.columnSizes[o].height)),f.top=l,f.left+=this.left+n,f.left=i.leftForLtr(i.x(f.left),f.width),l+=f.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;lj(t,this),this._draw(),fj(t)}}_draw(){const{options:t,columnSizes:a,lineWidths:c,ctx:n}=this,{align:r,labels:i}=t,o=j3.color,l=Oo(t.rtl,this.left,this.width),f=Be(i.font),{padding:u}=i,d=f.size,h=d/2;let p;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=f.string;const{boxWidth:v,boxHeight:m,itemHeight:y}=Ot1(i,d),g=function(_,C,H){if(isNaN(v)||v<=0||isNaN(m)||m<0)return;n.save();const V=z2(H.lineWidth,1);if(n.fillStyle=z2(H.fillStyle,o),n.lineCap=z2(H.lineCap,"butt"),n.lineDashOffset=z2(H.lineDashOffset,0),n.lineJoin=z2(H.lineJoin,"miter"),n.lineWidth=V,n.strokeStyle=z2(H.strokeStyle,o),n.setLineDash(z2(H.lineDash,[])),i.usePointStyle){const N={radius:m*Math.SQRT2/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:V},L=l.xPlus(_,v/2),w=C+h;iy1(n,N,L,w,i.pointStyleWidth&&v)}else{const N=C+Math.max((d-m)/2,0),L=l.leftForLtr(_,v),w=ti(H.borderRadius);n.beginPath(),Object.values(w).some(P=>P!==0)?pf(n,{x:L,y:N,w:v,h:m,radius:w}):n.rect(L,N,v,m),n.fill(),V!==0&&n.stroke()}n.restore()},M=function(_,C,H){gi(n,H.text,_,C+y/2,f,{strikethrough:H.hidden,textAlign:l.textAlign(H.textAlign)})},x=this.isHorizontal(),k=this._computeTitleHeight();x?p={x:f4(r,this.left+u,this.right-c[0]),y:this.top+u+k,line:0}:p={x:this.left+u,y:f4(r,this.top+k+u,this.bottom-a[0].height),line:0},py1(this.ctx,t.textDirection);const b=y+u;this.legendItems.forEach((_,C)=>{n.strokeStyle=_.fontColor,n.fillStyle=_.fontColor;const H=n.measureText(_.text).width,V=l.textAlign(_.textAlign||(_.textAlign=i.textAlign)),N=v+h+H;let L=p.x,w=p.y;l.setWidth(this.width),x?C>0&&L+N+u>this.right&&(w=p.y+=b,p.line++,L=p.x=f4(r,this.left+u,this.right-c[p.line])):C>0&&w+b>this.bottom&&(L=p.x=L+a[p.line].width+u,p.line++,w=p.y=f4(r,this.top+k+u,this.bottom-a[p.line].height));const P=l.x(L);if(g(P,w,_),L=W93(V,L+v+h,x?L+N:this.right,t.rtl),M(l.x(L),w,_),x)p.x+=N+u;else if(typeof _.text!="string"){const j=f.lineHeight;p.y+=By1(_,j)+u}else p.y+=b}),my1(this.ctx,t.textDirection)}drawTitle(){const t=this.options,a=t.title,c=Be(a.font),n=z4(a.padding);if(!a.display)return;const r=Oo(t.rtl,this.left,this.width),i=this.ctx,o=a.position,l=c.size/2,f=n.top+l;let u,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+f,d=f4(t.align,d,this.right-h);else{const v=this.columnSizes.reduce((m,y)=>Math.max(m,y.height),0);u=f+f4(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const p=f4(o,d,d+h);i.textAlign=r.textAlign(vJ(o)),i.textBaseline="middle",i.strokeStyle=a.color,i.fillStyle=a.color,i.font=c.string,gi(i,a.text,p,u,c)}_computeTitleHeight(){const t=this.options.title,a=Be(t.font),c=z4(t.padding);return t.display?a.lineHeight+c.height:0}_getLegendItemAt(t,a){let c,n,r;if(Jt(t,this.left,this.right)&&Jt(a,this.top,this.bottom)){for(r=this.legendHitBoxes,c=0;c<r.length;++c)if(n=r[c],Jt(t,n.left,n.left+n.width)&&Jt(a,n.top,n.top+n.height))return this.legendItems[c]}return null}handleEvent(t){const a=this.options;if(!Vd3(t.type,a))return;const c=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const n=this._hoveredItem,r=_d3(n,c);n&&!r&&M3(a.onLeave,[t,n,this],this),this._hoveredItem=c,c&&!r&&M3(a.onHover,[t,c,this],this)}else c&&M3(a.onClick,[t,c,this],this)}}function wd3(e,t,a,c,n){const r=Hd3(c,e,t,a),i=Ld3(n,c,t.lineHeight);return{itemWidth:r,itemHeight:i}}function Hd3(e,t,a,c){let n=e.text;return n&&typeof n!="string"&&(n=n.reduce((r,i)=>r.length>i.length?r:i)),t+a.size/2+c.measureText(n).width}function Ld3(e,t,a){let c=e;return typeof t.text!="string"&&(c=By1(t,a)),c}function By1(e,t){const a=e.text?e.text.length:0;return t*a}function Vd3(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var Sd3={id:"legend",_element:It1,start(e,t,a){const c=e.legend=new It1({ctx:e.ctx,options:a,chart:e});g4.configure(e,c,a),g4.addBox(e,c)},stop(e){g4.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,a){const c=e.legend;g4.configure(e,c,a),c.options=a},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,a){const c=t.datasetIndex,n=a.chart;n.isDatasetVisible(c)?(n.hide(c),t.hidden=!0):(n.show(c),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:a,pointStyle:c,textAlign:n,color:r,useBorderRadius:i,borderRadius:o}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const f=l.controller.getStyle(a?0:void 0),u=z4(f.borderWidth);return{text:t[l.index].label,fillStyle:f.backgroundColor,fontColor:r,hidden:!l.visible,lineCap:f.borderCapStyle,lineDash:f.borderDash,lineDashOffset:f.borderDashOffset,lineJoin:f.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:f.borderColor,pointStyle:c||f.pointStyle,rotation:f.rotation,textAlign:n||f.textAlign,borderRadius:i&&(o||f.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class wJ extends _6{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,a){const c=this.options;if(this.left=0,this.top=0,!c.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=a;const n=V3(c.text)?c.text.length:1;this._padding=z4(c.padding);const r=n*Be(c.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:a,left:c,bottom:n,right:r,options:i}=this,o=i.align;let l=0,f,u,d;return this.isHorizontal()?(u=f4(o,c,r),d=a+t,f=r-c):(i.position==="left"?(u=c+t,d=f4(o,n,a),l=T3*-.5):(u=r-t,d=f4(o,a,n),l=T3*.5),f=n-a),{titleX:u,titleY:d,maxWidth:f,rotation:l}}draw(){const t=this.ctx,a=this.options;if(!a.display)return;const c=Be(a.font),r=c.lineHeight/2+this._padding.top,{titleX:i,titleY:o,maxWidth:l,rotation:f}=this._drawArgs(r);gi(t,a.text,0,0,c,{color:a.color,maxWidth:l,rotation:f,textAlign:vJ(a.align),textBaseline:"middle",translation:[i,o]})}}function Nd3(e,t){const a=new wJ({ctx:e.ctx,options:t,chart:e});g4.configure(e,a,t),g4.addBox(e,a),e.titleBlock=a}var Ad3={id:"title",_element:wJ,start(e,t,a){Nd3(e,a)},stop(e){const t=e.titleBlock;g4.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,a){const c=e.titleBlock;g4.configure(e,c,a),c.options=a},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Bd=new WeakMap;var Td3={id:"subtitle",start(e,t,a){const c=new wJ({ctx:e.ctx,options:a,chart:e});g4.configure(e,c,a),g4.addBox(e,c),Bd.set(e,c)},stop(e){g4.removeBox(e,Bd.get(e)),Bd.delete(e)},beforeUpdate(e,t,a){const c=Bd.get(e);g4.configure(e,c,a),c.options=a},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const E9={average(e){if(!e.length)return!1;let t,a,c=new Set,n=0,r=0;for(t=0,a=e.length;t<a;++t){const o=e[t].element;if(o&&o.hasValue()){const l=o.tooltipPosition();c.add(l.x),n+=l.y,++r}}return r===0||c.size===0?!1:{x:[...c].reduce((o,l)=>o+l)/c.size,y:n/r}},nearest(e,t){if(!e.length)return!1;let a=t.x,c=t.y,n=Number.POSITIVE_INFINITY,r,i,o;for(r=0,i=e.length;r<i;++r){const l=e[r].element;if(l&&l.hasValue()){const f=l.getCenterPoint(),u=IG(t,f);u<n&&(n=u,o=l)}}if(o){const l=o.tooltipPosition();a=l.x,c=l.y}return{x:a,y:c}}};function Y6(e,t){return t&&(V3(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Bt(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
9487
9487
  `)>-1?e.split(`
9488
- `):e}function Ed3(e,t){const{element:a,datasetIndex:c,index:n}=t,r=e.getDatasetMeta(c).controller,{label:i,value:o}=r.getLabelAndValue(n);return{chart:e,label:i,parsed:r.getParsed(n),raw:e.data.datasets[c].data[n],formattedValue:o,dataset:r.getDataset(),dataIndex:n,datasetIndex:c,element:a}}function Bt1(e,t){const a=e.chart.ctx,{body:c,footer:n,title:r}=e,{boxWidth:i,boxHeight:o}=t,l=Be(t.bodyFont),f=Be(t.titleFont),u=Be(t.footerFont),d=r.length,h=n.length,p=c.length,v=z4(t.padding);let m=v.height,y=0,g=c.reduce((k,b)=>k+b.before.length+b.lines.length+b.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*f.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),g){const k=t.displayColors?Math.max(o,l.lineHeight):l.lineHeight;m+=p*k+(g-p)*l.lineHeight+(g-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let M=0;const x=function(k){y=Math.max(y,a.measureText(k).width+M)};return a.save(),a.font=f.string,h3(e.title,x),a.font=l.string,h3(e.beforeBody.concat(e.afterBody),x),M=t.displayColors?i+2+t.boxPadding:0,h3(c,k=>{h3(k.before,x),h3(k.lines,x),h3(k.after,x)}),M=0,a.font=u.string,h3(e.footer,x),a.restore(),y+=v.width,{width:y,height:m}}function Dd3(e,t){const{y:a,height:c}=t;return a<c/2?"top":a>e.height-c/2?"bottom":"center"}function Pd3(e,t,a,c){const{x:n,width:r}=c,i=a.caretSize+a.caretPadding;if(e==="left"&&n+r+i>t.width||e==="right"&&n-r-i<0)return!0}function Od3(e,t,a,c){const{x:n,width:r}=a,{width:i,chartArea:{left:o,right:l}}=e;let f="center";return c==="center"?f=n<=(o+l)/2?"left":"right":n<=r/2?f="left":n>=i-r/2&&(f="right"),Pd3(f,e,t,a)&&(f="center"),f}function Rt1(e,t,a){const c=a.yAlign||t.yAlign||Dd3(e,a);return{xAlign:a.xAlign||t.xAlign||Od3(e,t,a,c),yAlign:c}}function Id3(e,t){let{x:a,width:c}=e;return t==="right"?a-=c:t==="center"&&(a-=c/2),a}function Bd3(e,t,a){let{y:c,height:n}=e;return t==="top"?c+=a:t==="bottom"?c-=n+a:c-=n/2,c}function Ft1(e,t,a,c){const{caretSize:n,caretPadding:r,cornerRadius:i}=e,{xAlign:o,yAlign:l}=a,f=n+r,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=ti(i);let v=Id3(t,o);const m=Bd3(t,l,f);return l==="center"?o==="left"?v+=f:o==="right"&&(v-=f):o==="left"?v-=Math.max(u,h)+n:o==="right"&&(v+=Math.max(d,p)+n),{x:Xe(v,0,c.width-t.width),y:Xe(m,0,c.height-t.height)}}function Rd(e,t,a){const c=z4(a.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-c.right:e.x+c.left}function $t1(e){return Y6([],Bt(e))}function Rd3(e,t,a){return Za(e,{tooltip:t,tooltipItems:a,type:"tooltip"})}function qt1(e,t){const a=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return a?e.override(a):e}const Ry1={beforeTitle:Dt,title(e){if(e.length>0){const t=e[0],a=t.chart.data.labels,c=a?a.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(c>0&&t.dataIndex<c)return a[t.dataIndex]}return""},afterTitle:Dt,beforeBody:Dt,beforeLabel:Dt,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const a=e.formattedValue;return Q2(a)||(t+=a),t},labelColor(e){const a=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:a.borderColor,backgroundColor:a.backgroundColor,borderWidth:a.borderWidth,borderDash:a.borderDash,borderDashOffset:a.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const a=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:a.pointStyle,rotation:a.rotation}},afterLabel:Dt,afterBody:Dt,beforeFooter:Dt,footer:Dt,afterFooter:Dt};function B4(e,t,a,c){const n=e[t].call(a,c);return typeof n>"u"?Ry1[t].call(a,c):n}class YG extends _6{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const a=this.chart,c=this.options.setContext(this.getContext()),n=c.enabled&&a.options.animation&&c.animations,r=new My1(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=Rd3(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,a){const{callbacks:c}=a,n=B4(c,"beforeTitle",this,t),r=B4(c,"title",this,t),i=B4(c,"afterTitle",this,t);let o=[];return o=Y6(o,Bt(n)),o=Y6(o,Bt(r)),o=Y6(o,Bt(i)),o}getBeforeBody(t,a){return $t1(B4(a.callbacks,"beforeBody",this,t))}getBody(t,a){const{callbacks:c}=a,n=[];return h3(t,r=>{const i={before:[],lines:[],after:[]},o=qt1(c,r);Y6(i.before,Bt(B4(o,"beforeLabel",this,r))),Y6(i.lines,B4(o,"label",this,r)),Y6(i.after,Bt(B4(o,"afterLabel",this,r))),n.push(i)}),n}getAfterBody(t,a){return $t1(B4(a.callbacks,"afterBody",this,t))}getFooter(t,a){const{callbacks:c}=a,n=B4(c,"beforeFooter",this,t),r=B4(c,"footer",this,t),i=B4(c,"afterFooter",this,t);let o=[];return o=Y6(o,Bt(n)),o=Y6(o,Bt(r)),o=Y6(o,Bt(i)),o}_createItems(t){const a=this._active,c=this.chart.data,n=[],r=[],i=[];let o=[],l,f;for(l=0,f=a.length;l<f;++l)o.push(Ed3(this.chart,a[l]));return t.filter&&(o=o.filter((u,d,h)=>t.filter(u,d,h,c))),t.itemSort&&(o=o.sort((u,d)=>t.itemSort(u,d,c))),h3(o,u=>{const d=qt1(t.callbacks,u);n.push(B4(d,"labelColor",this,u)),r.push(B4(d,"labelPointStyle",this,u)),i.push(B4(d,"labelTextColor",this,u))}),this.labelColors=n,this.labelPointStyles=r,this.labelTextColors=i,this.dataPoints=o,o}update(t,a){const c=this.options.setContext(this.getContext()),n=this._active;let r,i=[];if(!n.length)this.opacity!==0&&(r={opacity:0});else{const o=E9[c.position].call(this,n,this._eventPosition);i=this._createItems(c),this.title=this.getTitle(i,c),this.beforeBody=this.getBeforeBody(i,c),this.body=this.getBody(i,c),this.afterBody=this.getAfterBody(i,c),this.footer=this.getFooter(i,c);const l=this._size=Bt1(this,c),f=Object.assign({},o,l),u=Rt1(this.chart,c,f),d=Ft1(c,f,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,r={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:o.x,caretY:o.y}}this._tooltipItems=i,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&c.external&&c.external.call(this,{chart:this.chart,tooltip:this,replay:a})}drawCaret(t,a,c,n){const r=this.getCaretPosition(t,c,n);a.lineTo(r.x1,r.y1),a.lineTo(r.x2,r.y2),a.lineTo(r.x3,r.y3)}getCaretPosition(t,a,c){const{xAlign:n,yAlign:r}=this,{caretSize:i,cornerRadius:o}=c,{topLeft:l,topRight:f,bottomLeft:u,bottomRight:d}=ti(o),{x:h,y:p}=t,{width:v,height:m}=a;let y,g,M,x,k,b;return r==="center"?(k=p+m/2,n==="left"?(y=h,g=y-i,x=k+i,b=k-i):(y=h+v,g=y+i,x=k-i,b=k+i),M=y):(n==="left"?g=h+Math.max(l,u)+i:n==="right"?g=h+v-Math.max(f,d)-i:g=this.caretX,r==="top"?(x=p,k=x-i,y=g-i,M=g+i):(x=p+m,k=x+i,y=g+i,M=g-i),b=x),{x1:y,x2:g,x3:M,y1:x,y2:k,y3:b}}drawTitle(t,a,c){const n=this.title,r=n.length;let i,o,l;if(r){const f=Oo(c.rtl,this.x,this.width);for(t.x=Rd(this,c.titleAlign,c),a.textAlign=f.textAlign(c.titleAlign),a.textBaseline="middle",i=Be(c.titleFont),o=c.titleSpacing,a.fillStyle=c.titleColor,a.font=i.string,l=0;l<r;++l)a.fillText(n[l],f.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+o,l+1===r&&(t.y+=c.titleMarginBottom-o)}}_drawColorBox(t,a,c,n,r){const i=this.labelColors[c],o=this.labelPointStyles[c],{boxHeight:l,boxWidth:f}=r,u=Be(r.bodyFont),d=Rd(this,"left",r),h=n.x(d),p=l<u.lineHeight?(u.lineHeight-l)/2:0,v=a.y+p;if(r.usePointStyle){const m={radius:Math.min(f,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},y=n.leftForLtr(h,f)+f/2,g=v+l/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,RG(t,m,y,g),t.strokeStyle=i.borderColor,t.fillStyle=i.backgroundColor,RG(t,m,y,g)}else{t.lineWidth=R2(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,t.strokeStyle=i.borderColor,t.setLineDash(i.borderDash||[]),t.lineDashOffset=i.borderDashOffset||0;const m=n.leftForLtr(h,f),y=n.leftForLtr(n.xPlus(h,1),f-2),g=ti(i.borderRadius);Object.values(g).some(M=>M!==0)?(t.beginPath(),t.fillStyle=r.multiKeyBackground,pf(t,{x:m,y:v,w:f,h:l,radius:g}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),pf(t,{x:y,y:v+1,w:f-2,h:l-2,radius:g}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(m,v,f,l),t.strokeRect(m,v,f,l),t.fillStyle=i.backgroundColor,t.fillRect(y,v+1,f-2,l-2))}t.fillStyle=this.labelTextColors[c]}drawBody(t,a,c){const{body:n}=this,{bodySpacing:r,bodyAlign:i,displayColors:o,boxHeight:l,boxWidth:f,boxPadding:u}=c,d=Be(c.bodyFont);let h=d.lineHeight,p=0;const v=Oo(c.rtl,this.x,this.width),m=function(H){a.fillText(H,v.x(t.x+p),t.y+h/2),t.y+=h+r},y=v.textAlign(i);let g,M,x,k,b,_,C;for(a.textAlign=i,a.textBaseline="middle",a.font=d.string,t.x=Rd(this,y,c),a.fillStyle=c.bodyColor,h3(this.beforeBody,m),p=o&&y!=="right"?i==="center"?f/2+u:f+2+u:0,k=0,_=n.length;k<_;++k){for(g=n[k],M=this.labelTextColors[k],a.fillStyle=M,h3(g.before,m),x=g.lines,o&&x.length&&(this._drawColorBox(a,t,k,v,c),h=Math.max(d.lineHeight,l)),b=0,C=x.length;b<C;++b)m(x[b]),h=d.lineHeight;h3(g.after,m)}p=0,h=d.lineHeight,h3(this.afterBody,m),t.y-=r}drawFooter(t,a,c){const n=this.footer,r=n.length;let i,o;if(r){const l=Oo(c.rtl,this.x,this.width);for(t.x=Rd(this,c.footerAlign,c),t.y+=c.footerMarginTop,a.textAlign=l.textAlign(c.footerAlign),a.textBaseline="middle",i=Be(c.footerFont),a.fillStyle=c.footerColor,a.font=i.string,o=0;o<r;++o)a.fillText(n[o],l.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+c.footerSpacing}}drawBackground(t,a,c,n){const{xAlign:r,yAlign:i}=this,{x:o,y:l}=t,{width:f,height:u}=c,{topLeft:d,topRight:h,bottomLeft:p,bottomRight:v}=ti(n.cornerRadius);a.fillStyle=n.backgroundColor,a.strokeStyle=n.borderColor,a.lineWidth=n.borderWidth,a.beginPath(),a.moveTo(o+d,l),i==="top"&&this.drawCaret(t,a,c,n),a.lineTo(o+f-h,l),a.quadraticCurveTo(o+f,l,o+f,l+h),i==="center"&&r==="right"&&this.drawCaret(t,a,c,n),a.lineTo(o+f,l+u-v),a.quadraticCurveTo(o+f,l+u,o+f-v,l+u),i==="bottom"&&this.drawCaret(t,a,c,n),a.lineTo(o+p,l+u),a.quadraticCurveTo(o,l+u,o,l+u-p),i==="center"&&r==="left"&&this.drawCaret(t,a,c,n),a.lineTo(o,l+d),a.quadraticCurveTo(o,l,o+d,l),a.closePath(),a.fill(),n.borderWidth>0&&a.stroke()}_updateAnimationTarget(t){const a=this.chart,c=this.$animations,n=c&&c.x,r=c&&c.y;if(n||r){const i=E9[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=Bt1(this,t),l=Object.assign({},i,this._size),f=Rt1(a,t,l),u=Ft1(t,l,f,a);(n._to!==u.x||r._to!==u.y)&&(this.xAlign=f.xAlign,this.yAlign=f.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const a=this.options.setContext(this.getContext());let c=this.opacity;if(!c)return;this._updateAnimationTarget(a);const n={width:this.width,height:this.height},r={x:this.x,y:this.y};c=Math.abs(c)<.001?0:c;const i=z4(a.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;a.enabled&&o&&(t.save(),t.globalAlpha=c,this.drawBackground(r,t,n,a),py1(t,a.textDirection),r.y+=i.top,this.drawTitle(r,t,a),this.drawBody(r,t,a),this.drawFooter(r,t,a),my1(t,a.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,a){const c=this._active,n=t.map(({datasetIndex:o,index:l})=>{const f=this.chart.getDatasetMeta(o);if(!f)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:f.data[l],index:l}}),r=!n$(c,n),i=this._positionChanged(n,a);(r||i)&&(this._active=n,this._eventPosition=a,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,a,c=!0){if(a&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,r=this._active||[],i=this._getActiveElements(t,r,a,c),o=this._positionChanged(i,t),l=a||!n$(i,r)||o;return l&&(this._active=i,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,a))),l}_getActiveElements(t,a,c,n){const r=this.options;if(t.type==="mouseout")return[];if(!n)return a.filter(o=>this.chart.data.datasets[o.datasetIndex]&&this.chart.getDatasetMeta(o.datasetIndex).controller.getParsed(o.index)!==void 0);const i=this.chart.getElementsAtEventForMode(t,r.mode,r,c);return r.reverse&&i.reverse(),i}_positionChanged(t,a){const{caretX:c,caretY:n,options:r}=this,i=E9[r.position].call(this,t,a);return i!==!1&&(c!==i.x||n!==i.y)}}S1(YG,"positioners",E9);var Fd3={id:"tooltip",_element:YG,positioners:E9,afterInit(e,t,a){a&&(e.tooltip=new YG({chart:e,options:a}))},beforeUpdate(e,t,a){e.tooltip&&e.tooltip.initialize(a)},reset(e,t,a){e.tooltip&&e.tooltip.initialize(a)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const a={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...a,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",a)}},afterEvent(e,t){if(e.tooltip){const a=t.replay;e.tooltip.handleEvent(t.event,a,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Ry1},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},$d3=Object.freeze({__proto__:null,Colors:ed3,Decimation:nd3,Filler:Cd3,Legend:Sd3,SubTitle:Td3,Title:Ad3,Tooltip:Fd3});const qd3=(e,t,a,c)=>(typeof t=="string"?(a=e.push(t)-1,c.unshift({index:a,label:t})):isNaN(t)&&(a=null),a);function jd3(e,t,a,c){const n=e.indexOf(t);if(n===-1)return qd3(e,t,a,c);const r=e.lastIndexOf(t);return n!==r?a:n}const Ud3=(e,t)=>e===null?null:Xe(Math.round(e),0,t);function jt1(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class GG extends Oi{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const a=this._addedLabels;if(a.length){const c=this.getLabels();for(const{index:n,label:r}of a)c[n]===r&&c.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,a){if(Q2(t))return null;const c=this.getLabels();return a=isFinite(a)&&c[a]===t?a:jd3(c,t,z2(a,t),this._addedLabels),Ud3(a,c.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:a}=this.getUserBounds();let{min:c,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(c=0),a||(n=this.getLabels().length-1)),this.min=c,this.max=n}buildTicks(){const t=this.min,a=this.max,c=this.options.offset,n=[];let r=this.getLabels();r=t===0&&a===r.length-1?r:r.slice(t,a+1),this._valueRange=Math.max(r.length-(c?0:1),1),this._startValue=this.min-(c?.5:0);for(let i=t;i<=a;i++)n.push({value:i});return n}getLabelForValue(t){return jt1.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const a=this.ticks;return t<0||t>a.length-1?null:this.getPixelForValue(a[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}S1(GG,"id","category"),S1(GG,"defaults",{ticks:{callback:jt1}});function Wd3(e,t){const a=[],{bounds:n,step:r,min:i,max:o,precision:l,count:f,maxTicks:u,maxDigits:d,includeBounds:h}=e,p=r||1,v=u-1,{min:m,max:y}=t,g=!Q2(i),M=!Q2(o),x=!Q2(f),k=(y-m)/(d+1);let b=B61((y-m)/v/p)*p,_,C,H,V;if(b<1e-14&&!g&&!M)return[{value:m},{value:y}];V=Math.ceil(y/b)-Math.floor(m/b),V>v&&(b=B61(V*b/v/p)*p),Q2(l)||(_=Math.pow(10,l),b=Math.ceil(b*_)/_),n==="ticks"?(C=Math.floor(m/b)*b,H=Math.ceil(y/b)*b):(C=m,H=y),g&&M&&r&&B93((o-i)/r,b/1e3)?(V=Math.round(Math.min((o-i)/b,u)),b=(o-i)/V,C=i,H=o):x?(C=g?i:C,H=M?o:H,V=f-1,b=(H-C)/V):(V=(H-C)/b,ll(V,Math.round(V),b/1e3)?V=Math.round(V):V=Math.ceil(V));const N=Math.max(R61(b),R61(C));_=Math.pow(10,Q2(l)?N:l),C=Math.round(C*_)/_,H=Math.round(H*_)/_;let L=0;for(g&&(h&&C!==i?(a.push({value:i}),C<i&&L++,ll(Math.round((C+L*b)*_)/_,i,Ut1(i,k,e))&&L++):C<i&&L++);L<V;++L){const w=Math.round((C+L*b)*_)/_;if(M&&w>o)break;a.push({value:w})}return M&&h&&H!==o?a.length&&ll(a[a.length-1].value,o,Ut1(o,k,e))?a[a.length-1].value=o:a.push({value:o}):(!M||H===o)&&a.push({value:H}),a}function Ut1(e,t,{horizontal:a,minRotation:c}){const n=n6(c),r=(a?Math.sin(n):Math.cos(n))||.001,i=.75*t*(""+e).length;return Math.min(t/r,i)}class u$ extends Oi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,a){return Q2(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:a,maxDefined:c}=this.getUserBounds();let{min:n,max:r}=this;const i=l=>n=a?n:l,o=l=>r=c?r:l;if(t){const l=vt(n),f=vt(r);l<0&&f<0?o(0):l>0&&f>0&&i(0)}if(n===r){let l=r===0?1:Math.abs(r*.05);o(r+l),t||i(n-l)}this.min=n,this.max=r}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:a,stepSize:c}=t,n;return c?(n=Math.ceil(this.max/c)-Math.floor(this.min/c)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${c} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),a=a||11),a&&(n=Math.min(a,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,a=t.ticks;let c=this.getTickLimit();c=Math.max(2,c);const n={maxTicks:c,bounds:t.bounds,min:t.min,max:t.max,precision:a.precision,step:a.stepSize,count:a.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:a.minRotation||0,includeBounds:a.includeBounds!==!1},r=this._range||this,i=Wd3(n,r);return t.bounds==="ticks"&&Kv1(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let a=this.min,c=this.max;if(super.configure(),this.options.offset&&t.length){const n=(c-a)/Math.max(t.length-1,1)/2;a-=n,c+=n}this._startValue=a,this._endValue=c,this._valueRange=c-a}getLabelForValue(t){return vu(t,this.chart.options.locale,this.options.ticks.format)}}class ZG extends u${determineDataLimits(){const{min:t,max:a}=this.getMinMax(!0);this.min=se(t)?t:0,this.max=se(a)?a:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),a=t?this.width:this.height,c=n6(this.options.ticks.minRotation),n=(t?Math.sin(c):Math.cos(c))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(a/Math.min(40,r.lineHeight/n))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}S1(ZG,"id","linear"),S1(ZG,"defaults",{ticks:{callback:sj.formatters.numeric}});const vf=e=>Math.floor(ia(e)),d5=(e,t)=>Math.pow(10,vf(e)+t);function Wt1(e){return e/Math.pow(10,vf(e))===1}function Yt1(e,t,a){const c=Math.pow(10,a),n=Math.floor(e/c);return Math.ceil(t/c)-n}function Yd3(e,t){const a=t-e;let c=vf(a);for(;Yt1(e,t,c)>10;)c++;for(;Yt1(e,t,c)<10;)c--;return Math.min(c,vf(e))}function Gd3(e,{min:t,max:a}){t=Q4(e.min,t);const c=[],n=vf(t);let r=Yd3(t,a),i=r<0?Math.pow(10,Math.abs(r)):1;const o=Math.pow(10,r),l=n>r?Math.pow(10,n):0,f=Math.round((t-l)*i)/i,u=Math.floor((t-l)/o/10)*o*10;let d=Math.floor((f-u)/Math.pow(10,r)),h=Q4(e.min,Math.round((l+u+d*Math.pow(10,r))*i)/i);for(;h<a;)c.push({value:h,major:Wt1(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(r++,d=2,i=r>=0?1:i),h=Math.round((l+u+d*Math.pow(10,r))*i)/i;const p=Q4(e.max,h);return c.push({value:p,major:Wt1(p),significand:d}),c}class XG extends Oi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,a){const c=u$.prototype.parse.apply(this,[t,a]);if(c===0){this._zero=!0;return}return se(c)&&c>0?c:null}determineDataLimits(){const{min:t,max:a}=this.getMinMax(!0);this.min=se(t)?Math.max(0,t):null,this.max=se(a)?Math.max(0,a):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!se(this._userMin)&&(this.min=t===d5(this.min,0)?d5(this.min,-1):d5(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:a}=this.getUserBounds();let c=this.min,n=this.max;const r=o=>c=t?c:o,i=o=>n=a?n:o;c===n&&(c<=0?(r(1),i(10)):(r(d5(c,-1)),i(d5(n,1)))),c<=0&&r(d5(n,-1)),n<=0&&i(d5(c,1)),this.min=c,this.max=n}buildTicks(){const t=this.options,a={min:this._userMin,max:this._userMax},c=Gd3(a,this);return t.bounds==="ticks"&&Kv1(c,this,"value"),t.reverse?(c.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),c}getLabelForValue(t){return t===void 0?"0":vu(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=ia(t),this._valueRange=ia(this.max)-ia(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(ia(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const a=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+a*this._valueRange)}}S1(XG,"id","logarithmic"),S1(XG,"defaults",{ticks:{callback:sj.formatters.logarithmic,major:{enabled:!0}}});function KG(e){const t=e.ticks;if(t.display&&e.display){const a=z4(t.backdropPadding);return z2(t.font&&t.font.size,j3.font.size)+a.height}return 0}function Zd3(e,t,a){return a=V3(a)?a:[a],{w:al3(e,t.string,a),h:a.length*t.lineHeight}}function Gt1(e,t,a,c,n){return e===c||e===n?{start:t-a/2,end:t+a/2}:e<c||e>n?{start:t-a,end:t}:{start:t,end:t+a}}function Xd3(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},a=Object.assign({},t),c=[],n=[],r=e._pointLabels.length,i=e.options.pointLabels,o=i.centerPointLabels?T3/r:0;for(let l=0;l<r;l++){const f=i.setContext(e.getPointLabelContext(l));n[l]=f.padding;const u=e.getPointPosition(l,e.drawingArea+n[l],o),d=Be(f.font),h=Zd3(e.ctx,d,e._pointLabels[l]);c[l]=h;const p=J4(e.getIndexAngle(l)+o),v=Math.round(pJ(p)),m=Gt1(v,u.x,h.w,0,180),y=Gt1(v,u.y,h.h,90,270);Kd3(a,t,p,m,y)}e.setCenterPoint(t.l-a.l,a.r-t.r,t.t-a.t,a.b-t.b),e._pointLabelItems=eh3(e,c,n)}function Kd3(e,t,a,c,n){const r=Math.abs(Math.sin(a)),i=Math.abs(Math.cos(a));let o=0,l=0;c.start<t.l?(o=(t.l-c.start)/r,e.l=Math.min(e.l,t.l-o)):c.end>t.r&&(o=(c.end-t.r)/r,e.r=Math.max(e.r,t.r+o)),n.start<t.t?(l=(t.t-n.start)/i,e.t=Math.min(e.t,t.t-l)):n.end>t.b&&(l=(n.end-t.b)/i,e.b=Math.max(e.b,t.b+l))}function Qd3(e,t,a){const c=e.drawingArea,{extra:n,additionalAngle:r,padding:i,size:o}=a,l=e.getPointPosition(t,c+n+i,r),f=Math.round(pJ(J4(l.angle+we))),u=ch3(l.y,o.h,f),d=th3(f),h=ah3(l.x,o.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+o.w,bottom:u+o.h}}function Jd3(e,t){if(!t)return!0;const{left:a,top:c,right:n,bottom:r}=e;return!(t8({x:a,y:c},t)||t8({x:a,y:r},t)||t8({x:n,y:c},t)||t8({x:n,y:r},t))}function eh3(e,t,a){const c=[],n=e._pointLabels.length,r=e.options,{centerPointLabels:i,display:o}=r.pointLabels,l={extra:KG(r)/2,additionalAngle:i?T3/n:0};let f;for(let u=0;u<n;u++){l.padding=a[u],l.size=t[u];const d=Qd3(e,u,l);c.push(d),o==="auto"&&(d.visible=Jd3(d,f),d.visible&&(f=d))}return c}function th3(e){return e===0||e===180?"center":e<180?"left":"right"}function ah3(e,t,a){return a==="right"?e-=t:a==="center"&&(e-=t/2),e}function ch3(e,t,a){return a===90||a===270?e-=t/2:(a>270||a<90)&&(e-=t),e}function nh3(e,t,a){const{left:c,top:n,right:r,bottom:i}=a,{backdropColor:o}=t;if(!Q2(o)){const l=ti(t.borderRadius),f=z4(t.backdropPadding);e.fillStyle=o;const u=c-f.left,d=n-f.top,h=r-c+f.width,p=i-n+f.height;Object.values(l).some(v=>v!==0)?(e.beginPath(),pf(e,{x:u,y:d,w:h,h:p,radius:l}),e.fill()):e.fillRect(u,d,h,p)}}function rh3(e,t){const{ctx:a,options:{pointLabels:c}}=e;for(let n=t-1;n>=0;n--){const r=e._pointLabelItems[n];if(!r.visible)continue;const i=c.setContext(e.getPointLabelContext(n));nh3(a,i,r);const o=Be(i.font),{x:l,y:f,textAlign:u}=r;gi(a,e._pointLabels[n],l,f+o.lineHeight/2,o,{color:i.color,textAlign:u,textBaseline:"middle"})}}function Fy1(e,t,a,c){const{ctx:n}=e;if(a)n.arc(e.xCenter,e.yCenter,t,0,N3);else{let r=e.getPointPosition(0,t);n.moveTo(r.x,r.y);for(let i=1;i<c;i++)r=e.getPointPosition(i,t),n.lineTo(r.x,r.y)}}function ih3(e,t,a,c,n){const r=e.ctx,i=t.circular,{color:o,lineWidth:l}=t;!i&&!c||!o||!l||a<0||(r.save(),r.strokeStyle=o,r.lineWidth=l,r.setLineDash(n.dash||[]),r.lineDashOffset=n.dashOffset,r.beginPath(),Fy1(e,a,i,c),r.closePath(),r.stroke(),r.restore())}function oh3(e,t,a){return Za(e,{label:a,index:t,type:"pointLabel"})}class D9 extends u${constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=z4(KG(this.options)/2),a=this.width=this.maxWidth-t.width,c=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+a/2+t.left),this.yCenter=Math.floor(this.top+c/2+t.top),this.drawingArea=Math.floor(Math.min(a,c)/2)}determineDataLimits(){const{min:t,max:a}=this.getMinMax(!1);this.min=se(t)&&!isNaN(t)?t:0,this.max=se(a)&&!isNaN(a)?a:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/KG(this.options))}generateTickLabels(t){u$.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((a,c)=>{const n=M3(this.options.pointLabels.callback,[a,c],this);return n||n===0?n:""}).filter((a,c)=>this.chart.getDataVisibility(c))}fit(){const t=this.options;t.display&&t.pointLabels.display?Xd3(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,a,c,n){this.xCenter+=Math.floor((t-a)/2),this.yCenter+=Math.floor((c-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,a,c,n))}getIndexAngle(t){const a=N3/(this._pointLabels.length||1),c=this.options.startAngle||0;return J4(t*a+n6(c))}getDistanceFromCenterForValue(t){if(Q2(t))return NaN;const a=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*a:(t-this.min)*a}getValueForDistanceFromCenter(t){if(Q2(t))return NaN;const a=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-a:this.min+a}getPointLabelContext(t){const a=this._pointLabels||[];if(t>=0&&t<a.length){const c=a[t];return oh3(this.getContext(),t,c)}}getPointPosition(t,a,c=0){const n=this.getIndexAngle(t)-we+c;return{x:Math.cos(n)*a+this.xCenter,y:Math.sin(n)*a+this.yCenter,angle:n}}getPointPositionForValue(t,a){return this.getPointPosition(t,this.getDistanceFromCenterForValue(a))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:a,top:c,right:n,bottom:r}=this._pointLabelItems[t];return{left:a,top:c,right:n,bottom:r}}drawBackground(){const{backgroundColor:t,grid:{circular:a}}=this.options;if(t){const c=this.ctx;c.save(),c.beginPath(),Fy1(this,this.getDistanceFromCenterForValue(this._endValue),a,this._pointLabels.length),c.closePath(),c.fillStyle=t,c.fill(),c.restore()}}drawGrid(){const t=this.ctx,a=this.options,{angleLines:c,grid:n,border:r}=a,i=this._pointLabels.length;let o,l,f;if(a.pointLabels.display&&rh3(this,i),n.display&&this.ticks.forEach((u,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(d),p=n.setContext(h),v=r.setContext(h);ih3(this,p,l,i,v)}}),c.display){for(t.save(),o=i-1;o>=0;o--){const u=c.setContext(this.getPointLabelContext(o)),{color:d,lineWidth:h}=u;!h||!d||(t.lineWidth=h,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(a.reverse?this.min:this.max),f=this.getPointPosition(o,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(f.x,f.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,a=this.options,c=a.ticks;if(!c.display)return;const n=this.getIndexAngle(0);let r,i;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((o,l)=>{if(l===0&&this.min>=0&&!a.reverse)return;const f=c.setContext(this.getContext(l)),u=Be(f.font);if(r=this.getDistanceFromCenterForValue(this.ticks[l].value),f.showLabelBackdrop){t.font=u.string,i=t.measureText(o.label).width,t.fillStyle=f.backdropColor;const d=z4(f.backdropPadding);t.fillRect(-i/2-d.left,-r-u.size/2-d.top,i+d.width,u.size+d.height)}gi(t,o.label,0,-r,u,{color:f.color,strokeColor:f.textStrokeColor,strokeWidth:f.textStrokeWidth})}),t.restore()}drawTitle(){}}S1(D9,"id","radialLinear"),S1(D9,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:sj.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),S1(D9,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),S1(D9,"descriptors",{angleLines:{_fallback:"grid"}});const dj={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},U4=Object.keys(dj);function Zt1(e,t){return e-t}function Xt1(e,t){if(Q2(t))return null;const a=e._adapter,{parser:c,round:n,isoWeekday:r}=e._parseOpts;let i=t;return typeof c=="function"&&(i=c(i)),se(i)||(i=typeof c=="string"?a.parse(i,c):a.parse(i)),i===null?null:(n&&(i=n==="week"&&(ns(r)||r===!0)?a.startOf(i,"isoWeek",r):a.startOf(i,n)),+i)}function Kt1(e,t,a,c){const n=U4.length;for(let r=U4.indexOf(e);r<n-1;++r){const i=dj[U4[r]],o=i.steps?i.steps:Number.MAX_SAFE_INTEGER;if(i.common&&Math.ceil((a-t)/(o*i.size))<=c)return U4[r]}return U4[n-1]}function sh3(e,t,a,c,n){for(let r=U4.length-1;r>=U4.indexOf(a);r--){const i=U4[r];if(dj[i].common&&e._adapter.diff(n,c,i)>=t-1)return i}return U4[a?U4.indexOf(a):0]}function lh3(e){for(let t=U4.indexOf(e)+1,a=U4.length;t<a;++t)if(dj[U4[t]].common)return U4[t]}function Qt1(e,t,a){if(!a)e[t]=!0;else if(a.length){const{lo:c,hi:n}=mJ(a,t),r=a[c]>=t?a[c]:a[n];e[r]=!0}}function fh3(e,t,a,c){const n=e._adapter,r=+n.startOf(t[0].value,c),i=t[t.length-1].value;let o,l;for(o=r;o<=i;o=+n.add(o,1,c))l=a[o],l>=0&&(t[l].major=!0);return t}function Jt1(e,t,a){const c=[],n={},r=t.length;let i,o;for(i=0;i<r;++i)o=t[i],n[o]=i,c.push({value:o,major:!1});return r===0||!a?c:fh3(e,c,n,a)}class yf extends Oi{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,a={}){const c=t.time||(t.time={}),n=this._adapter=new gf3._date(t.adapters.date);n.init(a),sl(c.displayFormats,n.formats()),this._parseOpts={parser:c.parser,round:c.round,isoWeekday:c.isoWeekday},super.init(t),this._normalized=a.normalized}parse(t,a){return t===void 0?null:Xt1(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,a=this._adapter,c=t.time.unit||"day";let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds();function l(f){!i&&!isNaN(f.min)&&(n=Math.min(n,f.min)),!o&&!isNaN(f.max)&&(r=Math.max(r,f.max))}(!i||!o)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),n=se(n)&&!isNaN(n)?n:+a.startOf(Date.now(),c),r=se(r)&&!isNaN(r)?r:+a.endOf(Date.now(),c)+1,this.min=Math.min(n,r-1),this.max=Math.max(n+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let a=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY;return t.length&&(a=t[0],c=t[t.length-1]),{min:a,max:c}}buildTicks(){const t=this.options,a=t.time,c=t.ticks,n=c.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const r=this.min,i=this.max,o=q93(n,r,i);return this._unit=a.unit||(c.autoSkip?Kt1(a.minUnit,this.min,this.max,this._getLabelCapacity(r)):sh3(this,o.length,a.minUnit,this.min,this.max)),this._majorUnit=!c.major.enabled||this._unit==="year"?void 0:lh3(this._unit),this.initOffsets(n),t.reverse&&o.reverse(),Jt1(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let a=0,c=0,n,r;this.options.offset&&t.length&&(n=this.getDecimalForValue(t[0]),t.length===1?a=1-n:a=(this.getDecimalForValue(t[1])-n)/2,r=this.getDecimalForValue(t[t.length-1]),t.length===1?c=r:c=(r-this.getDecimalForValue(t[t.length-2]))/2);const i=t.length<3?.5:.25;a=Xe(a,0,i),c=Xe(c,0,i),this._offsets={start:a,end:c,factor:1/(a+1+c)}}_generate(){const t=this._adapter,a=this.min,c=this.max,n=this.options,r=n.time,i=r.unit||Kt1(r.minUnit,a,c,this._getLabelCapacity(a)),o=z2(n.ticks.stepSize,1),l=i==="week"?r.isoWeekday:!1,f=ns(l)||l===!0,u={};let d=a,h,p;if(f&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,f?"day":i),t.diff(c,a,i)>1e5*o)throw new Error(a+" and "+c+" are too far apart with stepSize of "+o+" "+i);const v=n.ticks.source==="data"&&this.getDataTimestamps();for(h=d,p=0;h<c;h=+t.add(h,o,i),p++)Qt1(u,h,v);return(h===c||n.bounds==="ticks"||p===1)&&Qt1(u,h,v),Object.keys(u).sort(Zt1).map(m=>+m)}getLabelForValue(t){const a=this._adapter,c=this.options.time;return c.tooltipFormat?a.format(t,c.tooltipFormat):a.format(t,c.displayFormats.datetime)}format(t,a){const n=this.options.time.displayFormats,r=this._unit,i=a||n[r];return this._adapter.format(t,i)}_tickFormatFunction(t,a,c,n){const r=this.options,i=r.ticks.callback;if(i)return M3(i,[t,a,c],this);const o=r.time.displayFormats,l=this._unit,f=this._majorUnit,u=l&&o[l],d=f&&o[f],h=c[a],p=f&&d&&h&&h.major;return this._adapter.format(t,n||(p?d:u))}generateTickLabels(t){let a,c,n;for(a=0,c=t.length;a<c;++a)n=t[a],n.label=this._tickFormatFunction(n.value,a,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const a=this._offsets,c=this.getDecimalForValue(t);return this.getPixelForDecimal((a.start+c)*a.factor)}getValueForPixel(t){const a=this._offsets,c=this.getDecimalForPixel(t)/a.factor-a.end;return this.min+c*(this.max-this.min)}_getLabelSize(t){const a=this.options.ticks,c=this.ctx.measureText(t).width,n=n6(this.isHorizontal()?a.maxRotation:a.minRotation),r=Math.cos(n),i=Math.sin(n),o=this._resolveTickFontOptions(0).size;return{w:c*r+o*i,h:c*i+o*r}}_getLabelCapacity(t){const a=this.options.time,c=a.displayFormats,n=c[a.unit]||c.millisecond,r=this._tickFormatFunction(t,0,Jt1(this,[t],this._majorUnit),n),i=this._getLabelSize(r),o=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return o>0?o:1}getDataTimestamps(){let t=this._cache.data||[],a,c;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(a=0,c=n.length;a<c;++a)t=t.concat(n[a].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let a,c;if(t.length)return t;const n=this.getLabels();for(a=0,c=n.length;a<c;++a)t.push(Xt1(this,n[a]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return ey1(t.sort(Zt1))}}S1(yf,"id","time"),S1(yf,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Fd(e,t,a){let c=0,n=e.length-1,r,i,o,l;a?(t>=e[c].pos&&t<=e[n].pos&&({lo:c,hi:n}=e8(e,"pos",t)),{pos:r,time:o}=e[c],{pos:i,time:l}=e[n]):(t>=e[c].time&&t<=e[n].time&&({lo:c,hi:n}=e8(e,"time",t)),{time:r,pos:o}=e[c],{time:i,pos:l}=e[n]);const f=i-r;return f?o+(l-o)*(t-r)/f:o}class QG extends yf{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),a=this._table=this.buildLookupTable(t);this._minPos=Fd(a,this.min),this._tableRange=Fd(a,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:a,max:c}=this,n=[],r=[];let i,o,l,f,u;for(i=0,o=t.length;i<o;++i)f=t[i],f>=a&&f<=c&&n.push(f);if(n.length<2)return[{time:a,pos:0},{time:c,pos:1}];for(i=0,o=n.length;i<o;++i)u=n[i+1],l=n[i-1],f=n[i],Math.round((u+l)/2)!==f&&r.push({time:f,pos:i/(o-1)});return r}_generate(){const t=this.min,a=this.max;let c=super.getDataTimestamps();return(!c.includes(t)||!c.length)&&c.splice(0,0,t),(!c.includes(a)||c.length===1)&&c.push(a),c.sort((n,r)=>n-r)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const a=this.getDataTimestamps(),c=this.getLabelTimestamps();return a.length&&c.length?t=this.normalize(a.concat(c)):t=a.length?a:c,t=this._cache.all=t,t}getDecimalForValue(t){return(Fd(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const a=this._offsets,c=this.getDecimalForPixel(t)/a.factor-a.end;return Fd(this._table,c*this._tableRange+this._minPos,!0)}}S1(QG,"id","timeseries"),S1(QG,"defaults",yf.defaults);var uh3=Object.freeze({__proto__:null,CategoryScale:GG,LinearScale:ZG,LogarithmicScale:XG,RadialLinearScale:D9,TimeScale:yf,TimeSeriesScale:QG});const $y1=[yf3,Yu3,$d3,uh3];var dh3=typeof global=="object"&&global&&global.Object===Object&&global;const qy1=dh3;var hh3=typeof self=="object"&&self&&self.Object===Object&&self,ph3=qy1||hh3||Function("return this")();const Vt=ph3;var mh3=Vt.Symbol;const Oa=mh3;var jy1=Object.prototype,vh3=jy1.hasOwnProperty,yh3=jy1.toString,k9=Oa?Oa.toStringTag:void 0;function gh3(e){var t=vh3.call(e,k9),a=e[k9];try{e[k9]=void 0;var c=!0}catch{}var n=yh3.call(e);return c&&(t?e[k9]=a:delete e[k9]),n}var Mh3=Object.prototype,kh3=Mh3.toString;function xh3(e){return kh3.call(e)}var bh3="[object Null]",zh3="[object Undefined]",e81=Oa?Oa.toStringTag:void 0;function gu(e){return e==null?e===void 0?zh3:bh3:e81&&e81 in Object(e)?gh3(e):xh3(e)}function Mi(e){return e!=null&&typeof e=="object"}var Ch3=Array.isArray;const os=Ch3;function Mu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _h3="[object AsyncFunction]",wh3="[object Function]",Hh3="[object GeneratorFunction]",Lh3="[object Proxy]";function Uy1(e){if(!Mu(e))return!1;var t=gu(e);return t==wh3||t==Hh3||t==_h3||t==Lh3}var Vh3=Vt["__core-js_shared__"];const DW=Vh3;var t81=function(){var e=/[^.]+$/.exec(DW&&DW.keys&&DW.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Sh3(e){return!!t81&&t81 in e}var Nh3=Function.prototype,Ah3=Nh3.toString;function Ii(e){if(e!=null){try{return Ah3.call(e)}catch{}try{return e+""}catch{}}return""}var Th3=/[\\^$.*+?()[\]{}|]/g,Eh3=/^\[object .+?Constructor\]$/,Dh3=Function.prototype,Ph3=Object.prototype,Oh3=Dh3.toString,Ih3=Ph3.hasOwnProperty,Bh3=RegExp("^"+Oh3.call(Ih3).replace(Th3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rh3(e){if(!Mu(e)||Sh3(e))return!1;var t=Uy1(e)?Bh3:Eh3;return t.test(Ii(e))}function Fh3(e,t){return e==null?void 0:e[t]}function Bi(e,t){var a=Fh3(e,t);return Rh3(a)?a:void 0}var $h3=Bi(Vt,"WeakMap");const JG=$h3;var a81=Object.create,qh3=function(){function e(){}return function(t){if(!Mu(t))return{};if(a81)return a81(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();const jh3=qh3;function Uh3(e,t){var a=-1,c=e.length;for(t||(t=Array(c));++a<c;)t[a]=e[a];return t}var Wh3=function(){try{var e=Bi(Object,"defineProperty");return e({},"",{}),e}catch{}}();const c81=Wh3;function Yh3(e,t){for(var a=-1,c=e==null?0:e.length;++a<c&&t(e[a],a,e)!==!1;);return e}var Gh3=9007199254740991,Zh3=/^(?:0|[1-9]\d*)$/;function Xh3(e,t){var a=typeof e;return t=t??Gh3,!!t&&(a=="number"||a!="symbol"&&Zh3.test(e))&&e>-1&&e%1==0&&e<t}function Wy1(e,t,a){t=="__proto__"&&c81?c81(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}function HJ(e,t){return e===t||e!==e&&t!==t}var Kh3=Object.prototype,Qh3=Kh3.hasOwnProperty;function Yy1(e,t,a){var c=e[t];(!(Qh3.call(e,t)&&HJ(c,a))||a===void 0&&!(t in e))&&Wy1(e,t,a)}function hj(e,t,a,c){var n=!a;a||(a={});for(var r=-1,i=t.length;++r<i;){var o=t[r],l=c?c(a[o],e[o],o,a,e):void 0;l===void 0&&(l=e[o]),n?Wy1(a,o,l):Yy1(a,o,l)}return a}var Jh3=9007199254740991;function Gy1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Jh3}function LJ(e){return e!=null&&Gy1(e.length)&&!Uy1(e)}var ep3=Object.prototype;function pj(e){var t=e&&e.constructor,a=typeof t=="function"&&t.prototype||ep3;return e===a}function tp3(e,t){for(var a=-1,c=Array(e);++a<e;)c[a]=t(a);return c}var ap3="[object Arguments]";function n81(e){return Mi(e)&&gu(e)==ap3}var Zy1=Object.prototype,cp3=Zy1.hasOwnProperty,np3=Zy1.propertyIsEnumerable,rp3=n81(function(){return arguments}())?n81:function(e){return Mi(e)&&cp3.call(e,"callee")&&!np3.call(e,"callee")};const Xy1=rp3;function ip3(){return!1}var Ky1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,r81=Ky1&&typeof module=="object"&&module&&!module.nodeType&&module,op3=r81&&r81.exports===Ky1,i81=op3?Vt.Buffer:void 0,sp3=i81?i81.isBuffer:void 0,lp3=sp3||ip3;const gf=lp3;var fp3="[object Arguments]",up3="[object Array]",dp3="[object Boolean]",hp3="[object Date]",pp3="[object Error]",mp3="[object Function]",vp3="[object Map]",yp3="[object Number]",gp3="[object Object]",Mp3="[object RegExp]",kp3="[object Set]",xp3="[object String]",bp3="[object WeakMap]",zp3="[object ArrayBuffer]",Cp3="[object DataView]",_p3="[object Float32Array]",wp3="[object Float64Array]",Hp3="[object Int8Array]",Lp3="[object Int16Array]",Vp3="[object Int32Array]",Sp3="[object Uint8Array]",Np3="[object Uint8ClampedArray]",Ap3="[object Uint16Array]",Tp3="[object Uint32Array]",w3={};w3[_p3]=w3[wp3]=w3[Hp3]=w3[Lp3]=w3[Vp3]=w3[Sp3]=w3[Np3]=w3[Ap3]=w3[Tp3]=!0;w3[fp3]=w3[up3]=w3[zp3]=w3[dp3]=w3[Cp3]=w3[hp3]=w3[pp3]=w3[mp3]=w3[vp3]=w3[yp3]=w3[gp3]=w3[Mp3]=w3[kp3]=w3[xp3]=w3[bp3]=!1;function Ep3(e){return Mi(e)&&Gy1(e.length)&&!!w3[gu(e)]}function VJ(e){return function(t){return e(t)}}var Qy1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hl=Qy1&&typeof module=="object"&&module&&!module.nodeType&&module,Dp3=hl&&hl.exports===Qy1,PW=Dp3&&qy1.process,Pp3=function(){try{var e=hl&&hl.require&&hl.require("util").types;return e||PW&&PW.binding&&PW.binding("util")}catch{}}();const ss=Pp3;var o81=ss&&ss.isTypedArray,Op3=o81?VJ(o81):Ep3;const SJ=Op3;var Ip3=Object.prototype,Bp3=Ip3.hasOwnProperty;function Jy1(e,t){var a=os(e),c=!a&&Xy1(e),n=!a&&!c&&gf(e),r=!a&&!c&&!n&&SJ(e),i=a||c||n||r,o=i?tp3(e.length,String):[],l=o.length;for(var f in e)(t||Bp3.call(e,f))&&!(i&&(f=="length"||n&&(f=="offset"||f=="parent")||r&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Xh3(f,l)))&&o.push(f);return o}function eg1(e,t){return function(a){return e(t(a))}}var Rp3=eg1(Object.keys,Object);const Fp3=Rp3;var $p3=Object.prototype,qp3=$p3.hasOwnProperty;function tg1(e){if(!pj(e))return Fp3(e);var t=[];for(var a in Object(e))qp3.call(e,a)&&a!="constructor"&&t.push(a);return t}function NJ(e){return LJ(e)?Jy1(e):tg1(e)}function jp3(e){var t=[];if(e!=null)for(var a in Object(e))t.push(a);return t}var Up3=Object.prototype,Wp3=Up3.hasOwnProperty;function Yp3(e){if(!Mu(e))return jp3(e);var t=pj(e),a=[];for(var c in e)c=="constructor"&&(t||!Wp3.call(e,c))||a.push(c);return a}function AJ(e){return LJ(e)?Jy1(e,!0):Yp3(e)}var Gp3=Bi(Object,"create");const Mf=Gp3;function Zp3(){this.__data__=Mf?Mf(null):{},this.size=0}function Xp3(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Kp3="__lodash_hash_undefined__",Qp3=Object.prototype,Jp3=Qp3.hasOwnProperty;function em3(e){var t=this.__data__;if(Mf){var a=t[e];return a===Kp3?void 0:a}return Jp3.call(t,e)?t[e]:void 0}var tm3=Object.prototype,am3=tm3.hasOwnProperty;function cm3(e){var t=this.__data__;return Mf?t[e]!==void 0:am3.call(t,e)}var nm3="__lodash_hash_undefined__";function rm3(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=Mf&&t===void 0?nm3:t,this}function ki(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var c=e[t];this.set(c[0],c[1])}}ki.prototype.clear=Zp3;ki.prototype.delete=Xp3;ki.prototype.get=em3;ki.prototype.has=cm3;ki.prototype.set=rm3;function im3(){this.__data__=[],this.size=0}function mj(e,t){for(var a=e.length;a--;)if(HJ(e[a][0],t))return a;return-1}var om3=Array.prototype,sm3=om3.splice;function lm3(e){var t=this.__data__,a=mj(t,e);if(a<0)return!1;var c=t.length-1;return a==c?t.pop():sm3.call(t,a,1),--this.size,!0}function fm3(e){var t=this.__data__,a=mj(t,e);return a<0?void 0:t[a][1]}function um3(e){return mj(this.__data__,e)>-1}function dm3(e,t){var a=this.__data__,c=mj(a,e);return c<0?(++this.size,a.push([e,t])):a[c][1]=t,this}function N8(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var c=e[t];this.set(c[0],c[1])}}N8.prototype.clear=im3;N8.prototype.delete=lm3;N8.prototype.get=fm3;N8.prototype.has=um3;N8.prototype.set=dm3;var hm3=Bi(Vt,"Map");const kf=hm3;function pm3(){this.size=0,this.__data__={hash:new ki,map:new(kf||N8),string:new ki}}function mm3(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vj(e,t){var a=e.__data__;return mm3(t)?a[typeof t=="string"?"string":"hash"]:a.map}function vm3(e){var t=vj(this,e).delete(e);return this.size-=t?1:0,t}function ym3(e){return vj(this,e).get(e)}function gm3(e){return vj(this,e).has(e)}function Mm3(e,t){var a=vj(this,e),c=a.size;return a.set(e,t),this.size+=a.size==c?0:1,this}function Ri(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var c=e[t];this.set(c[0],c[1])}}Ri.prototype.clear=pm3;Ri.prototype.delete=vm3;Ri.prototype.get=ym3;Ri.prototype.has=gm3;Ri.prototype.set=Mm3;function ag1(e,t){for(var a=-1,c=t.length,n=e.length;++a<c;)e[n+a]=t[a];return e}var km3=eg1(Object.getPrototypeOf,Object);const cg1=km3;function xm3(){this.__data__=new N8,this.size=0}function bm3(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}function zm3(e){return this.__data__.get(e)}function Cm3(e){return this.__data__.has(e)}var _m3=200;function wm3(e,t){var a=this.__data__;if(a instanceof N8){var c=a.__data__;if(!kf||c.length<_m3-1)return c.push([e,t]),this.size=++a.size,this;a=this.__data__=new Ri(c)}return a.set(e,t),this.size=a.size,this}function l8(e){var t=this.__data__=new N8(e);this.size=t.size}l8.prototype.clear=xm3;l8.prototype.delete=bm3;l8.prototype.get=zm3;l8.prototype.has=Cm3;l8.prototype.set=wm3;function Hm3(e,t){return e&&hj(t,NJ(t),e)}function Lm3(e,t){return e&&hj(t,AJ(t),e)}var ng1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,s81=ng1&&typeof module=="object"&&module&&!module.nodeType&&module,Vm3=s81&&s81.exports===ng1,l81=Vm3?Vt.Buffer:void 0,f81=l81?l81.allocUnsafe:void 0;function Sm3(e,t){if(t)return e.slice();var a=e.length,c=f81?f81(a):new e.constructor(a);return e.copy(c),c}function Nm3(e,t){for(var a=-1,c=e==null?0:e.length,n=0,r=[];++a<c;){var i=e[a];t(i,a,e)&&(r[n++]=i)}return r}function rg1(){return[]}var Am3=Object.prototype,Tm3=Am3.propertyIsEnumerable,u81=Object.getOwnPropertySymbols,Em3=u81?function(e){return e==null?[]:(e=Object(e),Nm3(u81(e),function(t){return Tm3.call(e,t)}))}:rg1;const TJ=Em3;function Dm3(e,t){return hj(e,TJ(e),t)}var Pm3=Object.getOwnPropertySymbols,Om3=Pm3?function(e){for(var t=[];e;)ag1(t,TJ(e)),e=cg1(e);return t}:rg1;const ig1=Om3;function Im3(e,t){return hj(e,ig1(e),t)}function og1(e,t,a){var c=t(e);return os(e)?c:ag1(c,a(e))}function eZ(e){return og1(e,NJ,TJ)}function Bm3(e){return og1(e,AJ,ig1)}var Rm3=Bi(Vt,"DataView");const tZ=Rm3;var Fm3=Bi(Vt,"Promise");const aZ=Fm3;var $m3=Bi(Vt,"Set");const cZ=$m3;var d81="[object Map]",qm3="[object Object]",h81="[object Promise]",p81="[object Set]",m81="[object WeakMap]",v81="[object DataView]",jm3=Ii(tZ),Um3=Ii(kf),Wm3=Ii(aZ),Ym3=Ii(cZ),Gm3=Ii(JG),Tr=gu;(tZ&&Tr(new tZ(new ArrayBuffer(1)))!=v81||kf&&Tr(new kf)!=d81||aZ&&Tr(aZ.resolve())!=h81||cZ&&Tr(new cZ)!=p81||JG&&Tr(new JG)!=m81)&&(Tr=function(e){var t=gu(e),a=t==qm3?e.constructor:void 0,c=a?Ii(a):"";if(c)switch(c){case jm3:return v81;case Um3:return d81;case Wm3:return h81;case Ym3:return p81;case Gm3:return m81}return t});const ls=Tr;var Zm3=Object.prototype,Xm3=Zm3.hasOwnProperty;function Km3(e){var t=e.length,a=new e.constructor(t);return t&&typeof e[0]=="string"&&Xm3.call(e,"index")&&(a.index=e.index,a.input=e.input),a}var Qm3=Vt.Uint8Array;const d$=Qm3;function EJ(e){var t=new e.constructor(e.byteLength);return new d$(t).set(new d$(e)),t}function Jm3(e,t){var a=t?EJ(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}var ev3=/\w*$/;function tv3(e){var t=new e.constructor(e.source,ev3.exec(e));return t.lastIndex=e.lastIndex,t}var y81=Oa?Oa.prototype:void 0,g81=y81?y81.valueOf:void 0;function av3(e){return g81?Object(g81.call(e)):{}}function cv3(e,t){var a=t?EJ(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}var nv3="[object Boolean]",rv3="[object Date]",iv3="[object Map]",ov3="[object Number]",sv3="[object RegExp]",lv3="[object Set]",fv3="[object String]",uv3="[object Symbol]",dv3="[object ArrayBuffer]",hv3="[object DataView]",pv3="[object Float32Array]",mv3="[object Float64Array]",vv3="[object Int8Array]",yv3="[object Int16Array]",gv3="[object Int32Array]",Mv3="[object Uint8Array]",kv3="[object Uint8ClampedArray]",xv3="[object Uint16Array]",bv3="[object Uint32Array]";function zv3(e,t,a){var c=e.constructor;switch(t){case dv3:return EJ(e);case nv3:case rv3:return new c(+e);case hv3:return Jm3(e,a);case pv3:case mv3:case vv3:case yv3:case gv3:case Mv3:case kv3:case xv3:case bv3:return cv3(e,a);case iv3:return new c;case ov3:case fv3:return new c(e);case sv3:return tv3(e);case lv3:return new c;case uv3:return av3(e)}}function Cv3(e){return typeof e.constructor=="function"&&!pj(e)?jh3(cg1(e)):{}}var _v3="[object Map]";function wv3(e){return Mi(e)&&ls(e)==_v3}var M81=ss&&ss.isMap,Hv3=M81?VJ(M81):wv3;const Lv3=Hv3;var Vv3="[object Set]";function Sv3(e){return Mi(e)&&ls(e)==Vv3}var k81=ss&&ss.isSet,Nv3=k81?VJ(k81):Sv3;const Av3=Nv3;var Tv3=1,Ev3=2,Dv3=4,sg1="[object Arguments]",Pv3="[object Array]",Ov3="[object Boolean]",Iv3="[object Date]",Bv3="[object Error]",lg1="[object Function]",Rv3="[object GeneratorFunction]",Fv3="[object Map]",$v3="[object Number]",fg1="[object Object]",qv3="[object RegExp]",jv3="[object Set]",Uv3="[object String]",Wv3="[object Symbol]",Yv3="[object WeakMap]",Gv3="[object ArrayBuffer]",Zv3="[object DataView]",Xv3="[object Float32Array]",Kv3="[object Float64Array]",Qv3="[object Int8Array]",Jv3="[object Int16Array]",ey3="[object Int32Array]",ty3="[object Uint8Array]",ay3="[object Uint8ClampedArray]",cy3="[object Uint16Array]",ny3="[object Uint32Array]",g3={};g3[sg1]=g3[Pv3]=g3[Gv3]=g3[Zv3]=g3[Ov3]=g3[Iv3]=g3[Xv3]=g3[Kv3]=g3[Qv3]=g3[Jv3]=g3[ey3]=g3[Fv3]=g3[$v3]=g3[fg1]=g3[qv3]=g3[jv3]=g3[Uv3]=g3[Wv3]=g3[ty3]=g3[ay3]=g3[cy3]=g3[ny3]=!0;g3[Bv3]=g3[lg1]=g3[Yv3]=!1;function cF(e,t,a,c,n,r){var i,o=t&Tv3,l=t&Ev3,f=t&Dv3;if(a&&(i=n?a(e,c,n,r):a(e)),i!==void 0)return i;if(!Mu(e))return e;var u=os(e);if(u){if(i=Km3(e),!o)return Uh3(e,i)}else{var d=ls(e),h=d==lg1||d==Rv3;if(gf(e))return Sm3(e,o);if(d==fg1||d==sg1||h&&!n){if(i=l||h?{}:Cv3(e),!o)return l?Im3(e,Lm3(i,e)):Dm3(e,Hm3(i,e))}else{if(!g3[d])return n?e:{};i=zv3(e,d,o)}}r||(r=new l8);var p=r.get(e);if(p)return p;r.set(e,i),Av3(e)?e.forEach(function(y){i.add(cF(y,t,a,y,e,r))}):Lv3(e)&&e.forEach(function(y,g){i.set(g,cF(y,t,a,g,e,r))});var v=f?l?Bm3:eZ:l?AJ:NJ,m=u?void 0:v(e);return Yh3(m||e,function(y,g){m&&(g=y,y=e[g]),Yy1(i,g,cF(y,t,a,g,e,r))}),i}var ry3=1,iy3=4;function x9(e){return cF(e,ry3|iy3)}var oy3="__lodash_hash_undefined__";function sy3(e){return this.__data__.set(e,oy3),this}function ly3(e){return this.__data__.has(e)}function h$(e){var t=-1,a=e==null?0:e.length;for(this.__data__=new Ri;++t<a;)this.add(e[t])}h$.prototype.add=h$.prototype.push=sy3;h$.prototype.has=ly3;function fy3(e,t){for(var a=-1,c=e==null?0:e.length;++a<c;)if(t(e[a],a,e))return!0;return!1}function uy3(e,t){return e.has(t)}var dy3=1,hy3=2;function ug1(e,t,a,c,n,r){var i=a&dy3,o=e.length,l=t.length;if(o!=l&&!(i&&l>o))return!1;var f=r.get(e),u=r.get(t);if(f&&u)return f==t&&u==e;var d=-1,h=!0,p=a&hy3?new h$:void 0;for(r.set(e,t),r.set(t,e);++d<o;){var v=e[d],m=t[d];if(c)var y=i?c(m,v,d,t,e,r):c(v,m,d,e,t,r);if(y!==void 0){if(y)continue;h=!1;break}if(p){if(!fy3(t,function(g,M){if(!uy3(p,M)&&(v===g||n(v,g,a,c,r)))return p.push(M)})){h=!1;break}}else if(!(v===m||n(v,m,a,c,r))){h=!1;break}}return r.delete(e),r.delete(t),h}function py3(e){var t=-1,a=Array(e.size);return e.forEach(function(c,n){a[++t]=[n,c]}),a}function my3(e){var t=-1,a=Array(e.size);return e.forEach(function(c){a[++t]=c}),a}var vy3=1,yy3=2,gy3="[object Boolean]",My3="[object Date]",ky3="[object Error]",xy3="[object Map]",by3="[object Number]",zy3="[object RegExp]",Cy3="[object Set]",_y3="[object String]",wy3="[object Symbol]",Hy3="[object ArrayBuffer]",Ly3="[object DataView]",x81=Oa?Oa.prototype:void 0,OW=x81?x81.valueOf:void 0;function Vy3(e,t,a,c,n,r,i){switch(a){case Ly3:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Hy3:return!(e.byteLength!=t.byteLength||!r(new d$(e),new d$(t)));case gy3:case My3:case by3:return HJ(+e,+t);case ky3:return e.name==t.name&&e.message==t.message;case zy3:case _y3:return e==t+"";case xy3:var o=py3;case Cy3:var l=c&vy3;if(o||(o=my3),e.size!=t.size&&!l)return!1;var f=i.get(e);if(f)return f==t;c|=yy3,i.set(e,t);var u=ug1(o(e),o(t),c,n,r,i);return i.delete(e),u;case wy3:if(OW)return OW.call(e)==OW.call(t)}return!1}var Sy3=1,Ny3=Object.prototype,Ay3=Ny3.hasOwnProperty;function Ty3(e,t,a,c,n,r){var i=a&Sy3,o=eZ(e),l=o.length,f=eZ(t),u=f.length;if(l!=u&&!i)return!1;for(var d=l;d--;){var h=o[d];if(!(i?h in t:Ay3.call(t,h)))return!1}var p=r.get(e),v=r.get(t);if(p&&v)return p==t&&v==e;var m=!0;r.set(e,t),r.set(t,e);for(var y=i;++d<l;){h=o[d];var g=e[h],M=t[h];if(c)var x=i?c(M,g,h,t,e,r):c(g,M,h,e,t,r);if(!(x===void 0?g===M||n(g,M,a,c,r):x)){m=!1;break}y||(y=h=="constructor")}if(m&&!y){var k=e.constructor,b=t.constructor;k!=b&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof b=="function"&&b instanceof b)&&(m=!1)}return r.delete(e),r.delete(t),m}var Ey3=1,b81="[object Arguments]",z81="[object Array]",$d="[object Object]",Dy3=Object.prototype,C81=Dy3.hasOwnProperty;function Py3(e,t,a,c,n,r){var i=os(e),o=os(t),l=i?z81:ls(e),f=o?z81:ls(t);l=l==b81?$d:l,f=f==b81?$d:f;var u=l==$d,d=f==$d,h=l==f;if(h&&gf(e)){if(!gf(t))return!1;i=!0,u=!1}if(h&&!u)return r||(r=new l8),i||SJ(e)?ug1(e,t,a,c,n,r):Vy3(e,t,l,a,c,n,r);if(!(a&Ey3)){var p=u&&C81.call(e,"__wrapped__"),v=d&&C81.call(t,"__wrapped__");if(p||v){var m=p?e.value():e,y=v?t.value():t;return r||(r=new l8),n(m,y,a,c,r)}}return h?(r||(r=new l8),Ty3(e,t,a,c,n,r)):!1}function dg1(e,t,a,c,n){return e===t?!0:e==null||t==null||!Mi(e)&&!Mi(t)?e!==e&&t!==t:Py3(e,t,a,c,dg1,n)}var Oy3="[object Map]",Iy3="[object Set]",By3=Object.prototype,Ry3=By3.hasOwnProperty;function Fy3(e){if(e==null)return!0;if(LJ(e)&&(os(e)||typeof e=="string"||typeof e.splice=="function"||gf(e)||SJ(e)||Xy1(e)))return!e.length;var t=ls(e);if(t==Oy3||t==Iy3)return!e.size;if(pj(e))return!tg1(e).length;for(var a in e)if(Ry3.call(e,a))return!1;return!0}function _81(e,t){return dg1(e,t)}var $y3=Object.defineProperty,qy3=Object.defineProperties,jy3=Object.getOwnPropertyDescriptors,w81=Object.getOwnPropertySymbols,Uy3=Object.prototype.hasOwnProperty,Wy3=Object.prototype.propertyIsEnumerable,H81=(e,t,a)=>t in e?$y3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Yy3=(e,t)=>{for(var a in t||(t={}))Uy3.call(t,a)&&H81(e,a,t[a]);if(w81)for(var a of w81(t))Wy3.call(t,a)&&H81(e,a,t[a]);return e},Gy3=(e,t)=>qy3(e,jy3(t));function Zy3(e){return(e.match(/[a-zA-Z0-9]+/g)||[]).map(t=>`${t.charAt(0).toUpperCase()}${t.slice(1)}`).join("")}var Xa=(e,t)=>{const a={chartData:{type:Object,required:!0},options:{type:Object,required:!1},chartId:{default:e,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:()=>[]},onLabelsUpdate:{type:Function},onChartUpdate:{type:Function},onChartDestroy:{type:Function},onChartRender:{type:Function}},c=Zy3(e);return s.defineComponent({name:c,props:a,emits:{"labels:update":()=>!0,"chart:update":n=>!0,"chart:destroy":()=>!0,"chart:render":n=>!0},setup(n,{emit:r,expose:i}){const o=s.ref(null),l=`${n.chartId}`;let f=s.shallowRef(null);s.watch(()=>n.chartData,u,{deep:!0}),s.watch(()=>n.options,y=>{f.value&&y&&(f.value.options=x9(y),v())},{deep:!0});function u(y){if(f.value){let g=f.value;_81(y.labels,f.value.data.labels)||(g.data.labels=y.labels,h()),_81(y.datasets,f.value.data.datasets)||y.datasets.forEach((M,x)=>{var k,b;if(Fy3(M))g.data.datasets=[];else{const _=x9(g.data),C=Object.keys((b=(k=_.datasets)==null?void 0:k[x])!=null?b:{}),H=Object.keys(M);C.filter(N=>N!=="_meta"&&H.indexOf(N)===-1).forEach(N=>{g.data.datasets[x]&&delete g.data.datasets[x][N]});for(const N in M){const L=x9(M[N]);g.data.datasets[x]||(g.data.datasets[x]={}),M.hasOwnProperty(N)&&L!=null&&g&&(g.data.datasets[x][N]=L)}}}),v()}else f.value&&m(),d()}function d(){o.value?(f.value=new K6(o.value,{data:x9(n.chartData),type:t,options:x9(n.options),plugins:n.plugins}),p()):console.error(`Error on component ${c}, canvas cannot be rendered. Check if the render appends server-side`)}function h(){r("labels:update"),n.onLabelsUpdate&&n.onLabelsUpdate()}function p(){f.value&&(r("chart:render",f.value),n.onChartRender&&n.onChartRender(f.value))}function v(){f.value&&(f.value.update(),r("chart:update",f.value),n.onChartUpdate&&n.onChartUpdate(f.value))}function m(){f.value&&f.value.destroy(),r("chart:destroy"),n.onChartDestroy&&n.onChartDestroy()}return s.onMounted(d),s.onBeforeUnmount(()=>{f.value&&f.value.destroy()}),i({canvasRef:o,renderChart:d,chartInstance:f,canvasId:l,update:v}),()=>s.h("div",{style:Gy3(Yy3({maxWidth:"100%"},n.styles),{position:"relative"}),class:n.cssClasses},[s.h("canvas",{style:{maxWidth:"100%",maxHeight:"100%"},id:l,width:n.width,height:n.height,ref:o})])}})},Xy3=Xa("bar-chart","bar"),Ky3=Xa("doughnut-chart","doughnut");Xa("line-chart","line");Xa("pie-chart","pie");Xa("polar-chart","polarArea");Xa("radar-chart","radar");Xa("bubble-chart","bubble");Xa("scatter-chart","scatter");const Qy3=s.defineComponent({__name:"PgaBarChart",props:{data:{},options:{}},setup(e){K6.register(...$y1);const t={responsive:!0};return(a,c)=>(s.openBlock(),s.createBlock(s.unref(Xy3),{chartData:a.data,options:a.options||t},null,8,["chartData","options"]))}}),Jy3=s.defineComponent({__name:"PgaDoughnutChart",props:{data:{},options:{}},setup(e){K6.register(...$y1);const t={responsive:!0};return(a,c)=>(s.openBlock(),s.createBlock(s.unref(Ky3),{chartData:a.data,options:a.options||t},null,8,["chartData","options"]))}}),eg3={class:"pga-display-barcodes"},tg3={key:0},ag3={class:"barcodes-container"},cg3=s.defineComponent({__name:"PgaDisplayBarcodes",props:{barcodes:{}},setup(e){const t=e,a=s.ref(!1),c=s.computed(()=>a.value?t.barcodes:t.barcodes.slice(0,2));return(n,r)=>(s.openBlock(),s.createElementBlock("div",eg3,[n.barcodes.length?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",ag3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.value,(i,o)=>(s.openBlock(),s.createElementBlock("span",{class:"barcode",key:o},[s.createVNode(le,{icon:"barcode"}),s.createTextVNode("   "+s.toDisplayString(i),1)]))),128))]),n.barcodes.length>2?(s.openBlock(),s.createBlock(kX,{key:0,modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=i=>a.value=i)},null,8,["modelValue"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock("span",tg3,"-"))]))}});const ng3=Q1(cg3,[["__scopeId","data-v-3554095d"]]),rg3={class:"pga-display-content"},ig3=s.defineComponent({__name:"PgaDisplayContent",props:{label:{}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",rg3,[s.createVNode(D3,{class:"item__label",text:t.label},null,8,["text"]),s.renderSlot(t.$slots,"default",{},void 0,!0)]))}});const og3=Q1(ig3,[["__scopeId","data-v-93d9cace"]]),sg3={key:0},lg3=s.defineComponent({__name:"PgaDisplayDatetime",props:{datetime:{},format:{default:"short"},noIcon:{type:Boolean},withBackground:{type:Boolean}},setup(e){const t=e,a=s.computed(()=>t.datetime instanceof Date),c=s.computed(()=>{if(a.value)return M6(t.datetime,{format:t.format,withTime:!1})}),n=s.computed(()=>t.noIcon?void 0:"calendar-days"),r=s.computed(()=>a.value?M6(t.datetime,{justTime:!0}):"");return(i,o)=>{const l=s.resolveDirective("tooltip");return a.value?s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["pga-datetime",{"pga-datetime--with-background":i.withBackground}])},[s.createVNode(D3,{text:c.value,icon:n.value,nowrap:""},null,8,["text","icon"])],2)),[[l,r.value]]):(s.openBlock(),s.createElementBlock("span",sg3,"-"))}}});const fg3=Q1(lg3,[["__scopeId","data-v-fe1ec2d2"]]),ug3={class:"info-card"},dg3={class:"info-card__icon-container"},hg3={class:"info-card__content-container"},pg3={class:"info-card__content"},mg3=s.defineComponent({__name:"PgaDisplayInfo",props:{type:{default:"info"},info:{}},setup(e){s.useCssVars(i=>({"34ab479b":n.value,"3ce72f0a":r.value}));const t=e,a=s.computed(()=>t.type==="info"?"info":t.type==="success"?"circle-check":t.type==="error"?"circle-x":t.type==="warning"?"circle-alert":"info"),c=s.computed(()=>{if(t.type==="info")return"aqua";if(t.type==="success")return"success";if(t.type==="error")return"danger";if(t.type==="warning")return"warning"}),n=s.computed(()=>`var(--pga-color-${c.value}-08)`),r=s.computed(()=>`var(--pga-color-${c.value}-contrast)`);return(i,o)=>(s.openBlock(),s.createElementBlock("div",ug3,[s.createElementVNode("div",dg3,[s.createVNode(le,{class:"info-card__icon",icon:a.value},null,8,["icon"])]),s.createElementVNode("div",hg3,[s.createElementVNode("div",pg3,[s.createVNode(D3,{text:i.info},null,8,["text"])])])]))}});const vg3=Q1(mg3,[["__scopeId","data-v-9b32f70d"]]),yg3={key:0,class:"pga-display-no-items"},gg3={key:1,class:"no-items__content"},Mg3={key:0,class:"no-items__illustration"},kg3=s.createStaticVNode('<svg viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-c201ebde><circle cx="50" cy="50" r="40" fill="var(--pga-color-primary)" opacity="0.05" data-v-c201ebde></circle><path d="M25 35H40L45 42H75A5 5 0 0 1 80 47V70A5 5 0 0 1 75 75H25A5 5 0 0 1 20 70V40A5 5 0 0 1 25 35Z" stroke="var(--pga-color-second)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" opacity="0.4" data-v-c201ebde></path><path d="M20 50L80 50" stroke="var(--pga-color-second)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" opacity="0.4" data-v-c201ebde></path><circle cx="55" cy="55" r="14" fill="var(--pga-color-second-contrast)" stroke="currentColor" stroke-width="4" data-v-c201ebde></circle><path d="M65 65L76 76" stroke="currentColor" stroke-width="5" stroke-linecap="round" data-v-c201ebde></path></svg>',1),xg3=[kg3],bg3={class:"no-items__text"},zg3={class:"no-items__title"},Cg3={class:"no-items__description"},_g3=s.defineComponent({__name:"PgaDisplayNoItems",props:{items:{},label:{},noDisplayIcon:{type:Boolean},isLoading:{type:Boolean}},setup(e){const t=e,a=$2("pgaDisplay"),c=s.computed(()=>!(t.items&&t.items.length>0)),n=s.computed(()=>t.label?oe(t.label):a("noItemsText")),r=s.computed(()=>a("noItemsDescriptionText"));return(i,o)=>c.value?(s.openBlock(),s.createElementBlock("div",yg3,[i.isLoading?(s.openBlock(),s.createBlock(w8,{key:0})):(s.openBlock(),s.createElementBlock("div",gg3,[i.noDisplayIcon?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Mg3,xg3)),s.createElementVNode("div",bg3,[s.createElementVNode("h3",zg3,s.toDisplayString(n.value),1),s.createElementVNode("p",Cg3,s.toDisplayString(r.value),1)])]))])):s.createCommentVNode("",!0)}});const hg1=Q1(_g3,[["__scopeId","data-v-c201ebde"]]),wg3={key:0},Hg3={key:0,class:"price__sign"},Lg3=["textContent"],Vg3=s.defineComponent({__name:"PgaDisplayPrice",props:{price:{},tooltipPrice:{},maxDecimals:{},prefix:{},suffix:{},size:{default:"m"},fontSize:{},color:{default:"first"},noSign:{type:Boolean},noBackground:{type:Boolean},withBackground:{type:Boolean}},setup(e){s.useCssVars(d=>({d10ad460:f.value,"48a66683":u.value}));const t=e,{display:a}=i4(),c=s.computed(()=>t.noSign?!1:a.price.withSign),n=s.computed(()=>t.noBackground?!1:t.withBackground?!0:a.price.withBackground),r=s.computed(()=>t.price!==null&&t.price!==void 0),i={maxDecimals:t.maxDecimals,prefix:t.prefix,suffix:t.suffix},o=s.computed(()=>{if(r.value)return typeof t.price=="string"?t.price:bY(t.price,i)}),l=s.computed(()=>t.tooltipPrice===void 0?"":typeof t.tooltipPrice=="string"?t.tooltipPrice:bY(t.tooltipPrice,{...i,prefix:i.prefix||"$"})),f=s.computed(()=>{if(t.fontSize)return t.fontSize;if(t.size==="s")return"0.9rem";if(t.size==="m")return"1rem";if(t.size==="l")return"1.2rem"}),u=s.computed(()=>If(t.color)?`var(--pga-color-${t.color})`:t.color);return(d,h)=>{const p=s.resolveDirective("tooltip");return r.value?s.withDirectives((s.openBlock(),s.createElementBlock("span",{key:1,class:s.normalizeClass(["price",{"price--with-background":n.value}])},[c.value?(s.openBlock(),s.createElementBlock("span",Hg3,"$")):s.createCommentVNode("",!0),s.createElementVNode("span",{class:"price__value",textContent:s.toDisplayString(o.value)},null,8,Lg3)],2)),[[p,l.value]]):(s.openBlock(),s.createElementBlock("span",wg3,"-"))}}});const Sg3=Q1(Vg3,[["__scopeId","data-v-4638f783"]]),Ng3=s.defineComponent({__name:"PgaDisplayTime",props:{datetime:{}},setup(e){return(t,a)=>{const c=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createBlock(c,{icon:"clock",text:s.unref(V51)(t.datetime)},null,8,["text"])}}}),Ag3=s.defineComponent({__name:"PgaForm",props:{withSubmitButton:{type:Boolean},submitBtnText:{},submitBtnIcon:{},isLoading:{type:Boolean},width:{default:"100%"}},emits:["submit"],setup(e,{emit:t}){s.useCssVars(n=>({ba760bfe:n.width}));const a=t,c=$2("pgaForm");return(n,r)=>(s.openBlock(),s.createElementBlock("form",{class:"pga-form",onSubmit:r[1]||(r[1]=s.withModifiers(()=>{},["prevent"]))},[s.renderSlot(n.$slots,"default",{},void 0,!0),n.withSubmitButton||n.submitBtnText?(s.openBlock(),s.createBlock(A2,{key:0,class:"form__submit-btn",type:"submit",text:n.submitBtnText||s.unref(c)("submitBtn"),icon:n.submitBtnIcon||"save",variant:"filled",isLoading:n.isLoading,onClick:r[0]||(r[0]=i=>a("submit"))},null,8,["text","icon","isLoading"])):s.createCommentVNode("",!0)],32))}});const pg1=Q1(Ag3,[["__scopeId","data-v-f15fad6f"]]),Tg3=s.defineComponent({__name:"PgaFormRow",props:{breakRow:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-form-row",{"pga-form-row--break-row":t.breakRow}])},[s.renderSlot(t.$slots,"default")],2))}});const Eg3=s.defineComponent({__name:"PgaFormSubtitle",props:{title:{}},setup(e){return(t,a)=>{const c=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createBlock(c,{class:"pga-form-subtitle",text:t.title},null,8,["text"])}}});const Dg3=Q1(Eg3,[["__scopeId","data-v-e42c3004"]]),Pg3=s.defineComponent({__name:"PgaFormTitle",props:{title:{}},setup(e){return(t,a)=>{const c=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createBlock(c,{class:"pga-form-title",text:t.title},null,8,["text"])}}});const Og3=Q1(Pg3,[["__scopeId","data-v-b4c2eaf4"]]),Ig3={key:0,class:"input-group__header"},Bg3={key:0,class:"header__label"},Rg3={key:1,class:"header__required-label"},Fg3={key:2,class:"header__optional-label"},$g3=["innerHTML"],qg3={key:2,class:"input-group__errors"},jg3=["textContent"],Ug3=s.defineComponent({__name:"PgaInputGroup",props:{label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},fitContent:{type:Boolean},grow:{}},setup(e){s.useCssVars(l=>({"7fb29ec5":l.grow}));const t=e,a=$2("pgaForm"),c=s.computed(()=>oe(t.label)),n=s.computed(()=>oe(t.info)),r=s.computed(()=>oe(t.description)),i=s.computed(()=>c.value||t.withLabelSpace),o=s.computed(()=>c.value||" ");return(l,f)=>{const u=s.resolveComponent("PgaIcon");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["input-group",{"input-group--fit-content":l.fitContent,"input-group--with-flex-grow":l.grow!==void 0}])},[i.value||n.value||l.withRequiredLabel||l.withOptionalLabel?(s.openBlock(),s.createElementBlock("div",Ig3,[i.value?(s.openBlock(),s.createElementBlock("label",Bg3,s.toDisplayString(o.value),1)):s.createCommentVNode("",!0),s.createVNode(Uf,{info:n.value,size:"1rem"},null,8,["info"]),l.withRequiredLabel?(s.openBlock(),s.createElementBlock("span",Rg3,s.toDisplayString(s.unref(a)("requiredLabel")),1)):s.createCommentVNode("",!0),l.withOptionalLabel?(s.openBlock(),s.createElementBlock("span",Fg3,s.toDisplayString(s.unref(a)("optionalLabel")),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),s.renderSlot(l.$slots,"default",{},void 0,!0),r.value?(s.openBlock(),s.createElementBlock("span",{key:1,class:"input-group__description",innerHTML:r.value},null,8,$g3)):s.createCommentVNode("",!0),l.errors?(s.openBlock(),s.createElementBlock("div",qg3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.errors,(d,h)=>(s.openBlock(),s.createElementBlock("div",{key:h,class:"errors__error"},[s.createVNode(u,{class:"error__icon",icon:"triangle-alert"}),s.createElementVNode("span",{class:"error__message",textContent:s.toDisplayString(d.$message)},null,8,jg3)]))),128))])):s.createCommentVNode("",!0)],2)}}});const v0=Q1(Ug3,[["__scopeId","data-v-2f4e9b7e"]]);function L81(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,c)}return a}function xf(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?L81(Object(a),!0).forEach(function(c){Wg3(e,c,a[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):L81(Object(a)).forEach(function(c){Object.defineProperty(e,c,Object.getOwnPropertyDescriptor(a,c))})}return e}function Wg3(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function p$(e){return typeof e=="function"}function nZ(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function yj(e){return p$(e.$validator)?xf({},e):{$validator:e}}function mg1(e){return typeof e=="object"?e.$valid:e}function vg1(e){return e.$validator||e}function Yg3(e,t){if(!nZ(e))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!nZ(t)&&!p$(t))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const a=yj(t);return a.$params=xf(xf({},a.$params||{}),e),a}function Gg3(e,t){if(!p$(e)&&typeof s.unref(e)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);if(!nZ(t)&&!p$(t))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const a=yj(t);return a.$message=e,a}function Zg3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const a=yj(e);return xf(xf({},a),{},{$async:!0,$watchTargets:t})}function Xg3(e){return{$validator(t){for(var a=arguments.length,c=new Array(a>1?a-1:0),n=1;n<a;n++)c[n-1]=arguments[n];return s.unref(t).reduce((r,i,o)=>{const l=Object.entries(i).reduce((f,u)=>{let[d,h]=u;const p=e[d]||{},v=Object.entries(p).reduce((m,y)=>{let[g,M]=y;const k=vg1(M).call(this,h,i,o,...c),b=mg1(k);if(m.$data[g]=k,m.$data.$invalid=!b||!!m.$data.$invalid,m.$data.$error=m.$data.$invalid,!b){let _=M.$message||"";const C=M.$params||{};typeof _=="function"&&(_=_({$pending:!1,$invalid:!b,$params:C,$model:h,$response:k})),m.$errors.push({$property:d,$message:_,$params:C,$response:k,$model:h,$pending:!1,$validator:g})}return{$valid:m.$valid&&b,$data:m.$data,$errors:m.$errors}},{$valid:!0,$data:{},$errors:[]});return f.$data[d]=v.$data,f.$errors[d]=v.$errors,{$valid:f.$valid&&v.$valid,$data:f.$data,$errors:f.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:r.$valid&&l.$valid,$data:r.$data.concat(l.$data),$errors:r.$errors.concat(l.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:t=>{let{$response:a}=t;return a?a.$errors.map(c=>Object.values(c).map(n=>n.map(r=>r.$message)).reduce((n,r)=>n.concat(r),[])):[]}}}const ku=e=>{if(e=s.unref(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let t in e)return!0;return!1}return!!String(e).length},DJ=e=>(e=s.unref(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function Ka(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return c=>(c=s.unref(c),!ku(c)||t.every(n=>(n.lastIndex=0,n.test(c))))}var xi=Object.freeze({__proto__:null,forEach:Xg3,len:DJ,normalizeValidatorObject:yj,regex:Ka,req:ku,unwrap:s.unref,unwrapNormalizedValidator:vg1,unwrapValidatorResponse:mg1,withAsync:Zg3,withMessage:Gg3,withParams:Yg3});Ka(/^[a-zA-Z]*$/);Ka(/^[a-zA-Z0-9]*$/);Ka(/^\d*(\.\d+)?$/);const Kg3=/^(?:[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;Ka(Kg3);function Qg3(e){return t=>!ku(t)||DJ(t)<=s.unref(e)}function Jg3(e){return{$validator:Qg3(e),$message:t=>{let{$params:a}=t;return`The maximum length allowed is ${a.max}`},$params:{max:e,type:"maxLength"}}}function eM3(e){return t=>!ku(t)||DJ(t)>=s.unref(e)}function tM3(e){return{$validator:eM3(e),$message:t=>{let{$params:a}=t;return`This field should be at least ${a.min} characters long`},$params:{min:e,type:"minLength"}}}function aM3(e){return typeof e=="string"&&(e=e.trim()),ku(e)}var cM3={$validator:aM3,$message:"Value is required",$params:{type:"required"}};const nM3=/^(?:(?:(?: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;Ka(nM3);var rM3=Ka(/(^[0-9]*$)|(^-[0-9]+$)/),iM3={$validator:rM3,$message:"Value is not an integer",$params:{type:"integer"}};Ka(/^[-]?\d*(\.\d+)?$/);const xu=$2("validations"),rZ=xi.withMessage(()=>xu("requiredRuleError"),cM3),oM3=xi.withMessage(()=>xu("requiredRuleError"),xi.withParams({},e=>typeof e!="number"?!1:e>0)),iZ=e=>yg1("minLength",e),oZ=e=>yg1("maxLength",e),sM3=xi.withMessage(()=>xu("integerRuleError"),iM3),lM3=e=>gj("greaterEqual",e),fM3=e=>gj("greaterThan",e),uM3=e=>gj("lessEqual",e),dM3=e=>gj("lessThan",e);function yg1(e,t){const a={minLength:tM3,maxLength:Jg3};return xi.withMessage(()=>xu(`${e}RuleError`,{length:t}),a[e](t))}function gj(e,t){const a={lessEqual:c=>c<=t,greaterEqual:c=>c>=t,lessThan:c=>c<t,greaterThan:c=>c>t};return xi.withMessage(()=>xu(`${e}RuleError`,{number:t}),xi.withParams({},c=>typeof c!="number"?!0:a[e](c)))}const hM3=s.defineComponent({__name:"PgaInputRightButton",props:{icon:{},withBackground:{type:Boolean}},setup(e){s.useCssVars(a=>({"4f496b29":s.unref(t).input.height,"849898ea":s.unref(t).input.iconWidth,"14bccc60":s.unref(t).input.borderRadius,"0d9a9985":s.unref(t).input.backgroundColorFocus,"0db70de9":s.unref(t).input.backgroundColorHover}));const{form:t}=i4();return(a,c)=>(s.openBlock(),s.createBlock(A2,{class:s.normalizeClass(["input-right-button",{"input-right-button--with-background":a.withBackground}]),variant:"flat",icon:a.icon,tabindex:"-1"},null,8,["class","icon"]))}});const m$=Q1(hM3,[["__scopeId","data-v-00309112"]]),pM3={class:"input-container"},mM3={class:"input-content"},vM3=["type","placeholder","autofocus","disabled"],IW="",yM3=s.defineComponent({__name:"PgaInput",props:s.mergeModels({type:{default:"text"},integer:{type:Boolean},placeholder:{},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},autofocus:{type:Boolean},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["change","enter","valueCleared"],["update:modelValue"]),setup(e,{expose:t,emit:a}){s.useCssVars(k=>({"20bdd868":s.unref(i).input.height,b6cfe3e8:s.unref(i).input.padding,"09a2348b":s.unref(i).input.paddingWithIcon,"398439dc":s.unref(i).input.borderColor,c563a27a:s.unref(i).input.borderRadius,"6fd0c460":s.unref(i).input.backgroundColor,"40e9035a":s.unref(i).input.colorFocus,"44c56c6c":s.unref(i).input.backgroundColorDisabled,dacd3bd6:s.unref(i).input.placeholderColor}));const c=s.useModel(e,"modelValue"),n=e,r=a;t({focus:h});const{form:i}=i4(),o=s.ref(),l=s.ref(IW),f=s.ref(!1),u=s.computed(()=>n.type==="password"),d=s.computed(()=>u.value?!1:!n.disabled&&l.value);s.watch(c,k=>M(k),{immediate:!0});function h(){var k;(k=o.value)==null||k.focus()}function p(){n.type==="number"&&!l.value&&(l.value=IW)}function v(){n.type==="number"&&!l.value&&(l.value=g())}function m(){x(IW),r("valueCleared")}function y(k){return k===""?null:n.type==="number"&&n.integer&&typeof k=="number"?Math.round(k):k}function g(k){const b=typeof k>"u"?c.value:k;return b===null?"":b}function M(k){const b=y(k);return c.value=b,l.value=g(b),b}function x(k){const b=M(k);r("change",b)}return(k,b)=>(s.openBlock(),s.createBlock(v0,{label:k.label,withRequiredLabel:k.withRequiredLabel,withOptionalLabel:k.withOptionalLabel,withLabelSpace:k.withLabelSpace,info:k.info,description:k.description,errors:k.errors,grow:k.grow},{default:s.withCtx(()=>[s.createElementVNode("div",pM3,[s.createElementVNode("div",mM3,[s.withDirectives(s.createElementVNode("input",{ref_key:"inputRef",ref:o,"onUpdate:modelValue":b[0]||(b[0]=_=>l.value=_),class:s.normalizeClass(["input",{"input--disabled":k.disabled}]),type:f.value?"text":k.type,placeholder:s.unref(oe)(k.placeholder),autofocus:k.autofocus,disabled:k.disabled,onInput:b[1]||(b[1]=_=>x(l.value)),onKeyup:b[2]||(b[2]=s.withKeys(_=>r("enter"),["enter"])),onFocus:b[3]||(b[3]=_=>p()),onBlur:b[4]||(b[4]=_=>v())},null,42,vM3),[[s.vModelDynamic,l.value]]),u.value?(s.openBlock(),s.createBlock(m$,{key:0,icon:f.value?"eye-off":"eye",withBackground:"",onClick:b[5]||(b[5]=_=>f.value=!f.value)},null,8,["icon"])):d.value?(s.openBlock(),s.createBlock(m$,{key:1,icon:"x",onClick:b[6]||(b[6]=_=>m())})):s.createCommentVNode("",!0)]),s.renderSlot(k.$slots,"labelRight",{},void 0,!0)])]),_:3},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const v$=Q1(yM3,[["__scopeId","data-v-17f26458"]]),gM3={class:"login-form-container"},MM3={class:"user-icon-container"},kM3=s.defineComponent({__name:"PgaLoginForm",setup(e){class t{constructor(){S1(this,"username","");S1(this,"password","")}}const a=Te.getConfig(),c=$2("pgaForm"),n=Hl.useRoute(),r={username:{requiredRule:rZ,minLengthRule:iZ(8),maxLengthRule:oZ(a.stringLengths.short)},password:{requiredRule:rZ,minLengthRule:iZ(8),maxLengthRule:oZ(a.stringLengths.short)}},i=s.ref(new t),o=Yn1(r,i),l=s.ref(!1);async function f(){if(!await o.value.$validate())return;const u={isLoading:l,redirectToName:n.query.redirectTo};_51(H6().routeType,i.value,u)}return(u,d)=>(s.openBlock(),s.createElementBlock("div",gM3,[s.createVNode(pg1,{class:"login-form",submitBtnText:s.unref(c)("loginBtn"),submitBtnIcon:"log-in",isLoading:l.value,onSubmit:d[2]||(d[2]=h=>f())},{default:s.withCtx(()=>[s.createElementVNode("div",MM3,[s.createVNode(le,{class:"user-icon",icon:"circle-user"})]),s.createVNode(v$,{modelValue:i.value.username,"onUpdate:modelValue":d[0]||(d[0]=h=>i.value.username=h),label:s.unref(c)("usernameLabel"),errors:s.unref(o).username.$errors,disabled:l.value},null,8,["modelValue","label","errors","disabled"]),s.createVNode(v$,{modelValue:i.value.password,"onUpdate:modelValue":d[1]||(d[1]=h=>i.value.password=h),type:"password",label:s.unref(c)("passwordLabel"),errors:s.unref(o).password.$errors,disabled:l.value},null,8,["modelValue","label","errors","disabled"])]),_:1},8,["submitBtnText","isLoading"])]))}});const xM3=Q1(kM3,[["__scopeId","data-v-de0129e5"]]),bM3={class:"pga-checkbox"},zM3=["textContent"],CM3=s.defineComponent({__name:"PgaCheckbox",props:s.mergeModels({label:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=s.computed(()=>oe(a.label));return(n,r)=>(s.openBlock(),s.createElementBlock("label",bM3,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":r[0]||(r[0]=i=>t.value=i),type:"checkbox"},null,512),[[s.vModelCheckbox,t.value]]),n.label?(s.openBlock(),s.createElementBlock("span",{key:0,textContent:s.toDisplayString(c.value)},null,8,zM3)):s.createCommentVNode("",!0)]))}});const _M3=Q1(CM3,[["__scopeId","data-v-9a138890"]]),wM3={class:"colors-container"},HM3=s.defineComponent({__name:"PgaColorSelector",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(n=>({"81ef80ba":s.unref(a).input.padding,"007d7129":s.unref(a).input.borderColor,"2800638c":s.unref(a).input.borderRadius}));const t=s.useModel(e,"modelValue"),{form:a}=i4();function c(n){var r;return((r=t.value)==null?void 0:r.toLowerCase())===n.toLowerCase()}return(n,r)=>(s.openBlock(),s.createBlock(v0,{label:n.label,withRequiredLabel:n.withRequiredLabel,withOptionalLabel:n.withOptionalLabel,withLabelSpace:n.withLabelSpace,info:n.info,description:n.description,errors:n.errors,grow:n.grow},{default:s.withCtx(()=>[s.createElementVNode("div",wM3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(RZ),i=>(s.openBlock(),s.createBlock(A2,{key:i,variant:c(i)?"outlined":"flat",color:c(i)?"primary":"first",disabled:n.disabled,onClick:o=>t.value=i},{default:s.withCtx(()=>[s.createVNode(En1,{color:i},null,8,["color"])]),_:2},1032,["variant","color","disabled","onClick"]))),128))])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const LM3=Q1(HM3,[["__scopeId","data-v-65ddd494"]]);function d2(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function i3(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function K0(e,t){const a=d2(e);return isNaN(t)?i3(e,NaN):(t&&a.setDate(a.getDate()+t),a)}function v6(e,t){const a=d2(e);if(isNaN(t))return i3(e,NaN);if(!t)return a;const c=a.getDate(),n=i3(e,a.getTime());n.setMonth(a.getMonth()+t+1,0);const r=n.getDate();return c>=r?n:(a.setFullYear(n.getFullYear(),n.getMonth(),c),a)}function gg1(e,t){const{years:a=0,months:c=0,weeks:n=0,days:r=0,hours:i=0,minutes:o=0,seconds:l=0}=t,f=d2(e),u=c||a?v6(f,c+a*12):f,d=r||n?K0(u,r+n*7):u,h=o+i*60,v=(l+h*60)*1e3;return i3(e,d.getTime()+v)}function VM3(e,t){const a=+d2(e);return i3(e,a+t)}const Mg1=6048e5,SM3=864e5,NM3=6e4,kg1=36e5,AM3=1e3;function TM3(e,t){return VM3(e,t*kg1)}let EM3={};function Fi(){return EM3}function w6(e,t){var o,l,f,u;const a=Fi(),c=(t==null?void 0:t.weekStartsOn)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??a.weekStartsOn??((u=(f=a.locale)==null?void 0:f.options)==null?void 0:u.weekStartsOn)??0,n=d2(e),r=n.getDay(),i=(r<c?7:0)+r-c;return n.setDate(n.getDate()-i),n.setHours(0,0,0,0),n}function fs(e){return w6(e,{weekStartsOn:1})}function xg1(e){const t=d2(e),a=t.getFullYear(),c=i3(e,0);c.setFullYear(a+1,0,4),c.setHours(0,0,0,0);const n=fs(c),r=i3(e,0);r.setFullYear(a,0,4),r.setHours(0,0,0,0);const i=fs(r);return t.getTime()>=n.getTime()?a+1:t.getTime()>=i.getTime()?a:a-1}function V81(e){const t=d2(e);return t.setHours(0,0,0,0),t}function y$(e){const t=d2(e),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),+e-+a}function bg1(e,t){const a=V81(e),c=V81(t),n=+a-y$(a),r=+c-y$(c);return Math.round((n-r)/SM3)}function DM3(e){const t=xg1(e),a=i3(e,0);return a.setFullYear(t,0,4),a.setHours(0,0,0,0),fs(a)}function PM3(e,t){const a=t*3;return v6(e,a)}function PJ(e,t){return v6(e,t*12)}function zg1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function pl(e){if(!zg1(e)&&typeof e!="number")return!1;const t=d2(e);return!isNaN(Number(t))}function S81(e){const t=d2(e);return Math.trunc(t.getMonth()/3)+1}function Cg1(e,t){const a=d2(e.start),c=d2(e.end);let n=+a>+c;const r=n?+a:+c,i=n?c:a;i.setHours(0,0,0,0);let o=(t==null?void 0:t.step)??1;if(!o)return[];o<0&&(o=-o,n=!n);const l=[];for(;+i<=r;)l.push(d2(i)),i.setDate(i.getDate()+o),i.setHours(0,0,0,0);return n?l.reverse():l}function Ur(e){const t=d2(e),a=t.getMonth(),c=a-a%3;return t.setMonth(c,1),t.setHours(0,0,0,0),t}function OM3(e,t){const a=d2(e.start),c=d2(e.end);let n=+a>+c;const r=n?+Ur(a):+Ur(c);let i=Ur(n?c:a),o=(t==null?void 0:t.step)??1;if(!o)return[];o<0&&(o=-o,n=!n);const l=[];for(;+i<=r;)l.push(d2(i)),i=PM3(i,o);return n?l.reverse():l}function _g1(e){const t=d2(e),a=t.getFullYear();return t.setFullYear(a+1,0,0),t.setHours(23,59,59,999),t}function OJ(e){const t=d2(e),a=i3(e,0);return a.setFullYear(t.getFullYear(),0,1),a.setHours(0,0,0,0),a}function wg1(e,t){var o,l,f,u;const a=Fi(),c=(t==null?void 0:t.weekStartsOn)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??a.weekStartsOn??((u=(f=a.locale)==null?void 0:f.options)==null?void 0:u.weekStartsOn)??0,n=d2(e),r=n.getDay(),i=(r<c?-7:0)+6-(r-c);return n.setDate(n.getDate()+i),n.setHours(23,59,59,999),n}function N81(e){const t=d2(e),a=t.getMonth(),c=a-a%3+3;return t.setMonth(c,0),t.setHours(23,59,59,999),t}const IM3={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"}},BM3=(e,t,a)=>{let c;const n=IM3[e];return typeof n=="string"?c=n:t===1?c=n.one:c=n.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+c:c+" ago":c};function BW(e){return(t={})=>{const a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}const RM3={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},FM3={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$M3={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qM3={date:BW({formats:RM3,defaultWidth:"full"}),time:BW({formats:FM3,defaultWidth:"full"}),dateTime:BW({formats:$M3,defaultWidth:"full"})},jM3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},UM3=(e,t,a,c)=>jM3[e];function b9(e){return(t,a)=>{const c=a!=null&&a.context?String(a.context):"standalone";let n;if(c==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,o=a!=null&&a.width?String(a.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{const i=e.defaultWidth,o=a!=null&&a.width?String(a.width):e.defaultWidth;n=e.values[o]||e.values[i]}const r=e.argumentCallback?e.argumentCallback(t):t;return n[r]}}const WM3={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},YM3={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},GM3={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"]},ZM3={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"]},XM3={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"}},KM3={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"}},QM3=(e,t)=>{const a=Number(e),c=a%100;if(c>20||c<10)switch(c%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},JM3={ordinalNumber:QM3,era:b9({values:WM3,defaultWidth:"wide"}),quarter:b9({values:YM3,defaultWidth:"wide",argumentCallback:e=>e-1}),month:b9({values:GM3,defaultWidth:"wide"}),day:b9({values:ZM3,defaultWidth:"wide"}),dayPeriod:b9({values:XM3,defaultWidth:"wide",formattingValues:KM3,defaultFormattingWidth:"wide"})};function z9(e){return(t,a={})=>{const c=a.width,n=c&&e.matchPatterns[c]||e.matchPatterns[e.defaultMatchWidth],r=t.match(n);if(!r)return null;const i=r[0],o=c&&e.parsePatterns[c]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?tk3(o,d=>d.test(i)):ek3(o,d=>d.test(i));let f;f=e.valueCallback?e.valueCallback(l):l,f=a.valueCallback?a.valueCallback(f):f;const u=t.slice(i.length);return{value:f,rest:u}}}function ek3(e,t){for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}function tk3(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}function ak3(e){return(t,a={})=>{const c=t.match(e.matchPattern);if(!c)return null;const n=c[0],r=t.match(e.parsePattern);if(!r)return null;let i=e.valueCallback?e.valueCallback(r[0]):r[0];i=a.valueCallback?a.valueCallback(i):i;const o=t.slice(n.length);return{value:i,rest:o}}}const ck3=/^(\d+)(th|st|nd|rd)?/i,nk3=/\d+/i,rk3={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},ik3={any:[/^b/i,/^(a|c)/i]},ok3={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sk3={any:[/1/i,/2/i,/3/i,/4/i]},lk3={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},fk3={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]},uk3={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},dk3={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]},hk3={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},pk3={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}},mk3={ordinalNumber:ak3({matchPattern:ck3,parsePattern:nk3,valueCallback:e=>parseInt(e,10)}),era:z9({matchPatterns:rk3,defaultMatchWidth:"wide",parsePatterns:ik3,defaultParseWidth:"any"}),quarter:z9({matchPatterns:ok3,defaultMatchWidth:"wide",parsePatterns:sk3,defaultParseWidth:"any",valueCallback:e=>e+1}),month:z9({matchPatterns:lk3,defaultMatchWidth:"wide",parsePatterns:fk3,defaultParseWidth:"any"}),day:z9({matchPatterns:uk3,defaultMatchWidth:"wide",parsePatterns:dk3,defaultParseWidth:"any"}),dayPeriod:z9({matchPatterns:hk3,defaultMatchWidth:"any",parsePatterns:pk3,defaultParseWidth:"any"})},Hg1={code:"en-US",formatDistance:BM3,formatLong:qM3,formatRelative:UM3,localize:JM3,match:mk3,options:{weekStartsOn:0,firstWeekContainsDate:1}};function vk3(e){const t=d2(e);return bg1(t,OJ(t))+1}function IJ(e){const t=d2(e),a=+fs(t)-+DM3(t);return Math.round(a/Mg1)+1}function BJ(e,t){var u,d,h,p;const a=d2(e),c=a.getFullYear(),n=Fi(),r=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((p=(h=n.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,i=i3(e,0);i.setFullYear(c+1,0,r),i.setHours(0,0,0,0);const o=w6(i,t),l=i3(e,0);l.setFullYear(c,0,r),l.setHours(0,0,0,0);const f=w6(l,t);return a.getTime()>=o.getTime()?c+1:a.getTime()>=f.getTime()?c:c-1}function yk3(e,t){var o,l,f,u;const a=Fi(),c=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??a.firstWeekContainsDate??((u=(f=a.locale)==null?void 0:f.options)==null?void 0:u.firstWeekContainsDate)??1,n=BJ(e,t),r=i3(e,0);return r.setFullYear(n,0,c),r.setHours(0,0,0,0),w6(r,t)}function RJ(e,t){const a=d2(e),c=+w6(a,t)-+yk3(a,t);return Math.round(c/Mg1)+1}function u3(e,t){const a=e<0?"-":"",c=Math.abs(e).toString().padStart(t,"0");return a+c}const I8={y(e,t){const a=e.getFullYear(),c=a>0?a:1-a;return u3(t==="yy"?c%100:c,t.length)},M(e,t){const a=e.getMonth();return t==="M"?String(a+1):u3(a+1,2)},d(e,t){return u3(e.getDate(),t.length)},a(e,t){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(e,t){return u3(e.getHours()%12||12,t.length)},H(e,t){return u3(e.getHours(),t.length)},m(e,t){return u3(e.getMinutes(),t.length)},s(e,t){return u3(e.getSeconds(),t.length)},S(e,t){const a=t.length,c=e.getMilliseconds(),n=Math.trunc(c*Math.pow(10,a-3));return u3(n,t.length)}},ro={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},A81={G:function(e,t,a){const c=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(c,{width:"abbreviated"});case"GGGGG":return a.era(c,{width:"narrow"});case"GGGG":default:return a.era(c,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){const c=e.getFullYear(),n=c>0?c:1-c;return a.ordinalNumber(n,{unit:"year"})}return I8.y(e,t)},Y:function(e,t,a,c){const n=BJ(e,c),r=n>0?n:1-n;if(t==="YY"){const i=r%100;return u3(i,2)}return t==="Yo"?a.ordinalNumber(r,{unit:"year"}):u3(r,t.length)},R:function(e,t){const a=xg1(e);return u3(a,t.length)},u:function(e,t){const a=e.getFullYear();return u3(a,t.length)},Q:function(e,t,a){const c=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(c);case"QQ":return u3(c,2);case"Qo":return a.ordinalNumber(c,{unit:"quarter"});case"QQQ":return a.quarter(c,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(c,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(c,{width:"wide",context:"formatting"})}},q:function(e,t,a){const c=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(c);case"qq":return u3(c,2);case"qo":return a.ordinalNumber(c,{unit:"quarter"});case"qqq":return a.quarter(c,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(c,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(c,{width:"wide",context:"standalone"})}},M:function(e,t,a){const c=e.getMonth();switch(t){case"M":case"MM":return I8.M(e,t);case"Mo":return a.ordinalNumber(c+1,{unit:"month"});case"MMM":return a.month(c,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(c,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(c,{width:"wide",context:"formatting"})}},L:function(e,t,a){const c=e.getMonth();switch(t){case"L":return String(c+1);case"LL":return u3(c+1,2);case"Lo":return a.ordinalNumber(c+1,{unit:"month"});case"LLL":return a.month(c,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(c,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(c,{width:"wide",context:"standalone"})}},w:function(e,t,a,c){const n=RJ(e,c);return t==="wo"?a.ordinalNumber(n,{unit:"week"}):u3(n,t.length)},I:function(e,t,a){const c=IJ(e);return t==="Io"?a.ordinalNumber(c,{unit:"week"}):u3(c,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getDate(),{unit:"date"}):I8.d(e,t)},D:function(e,t,a){const c=vk3(e);return t==="Do"?a.ordinalNumber(c,{unit:"dayOfYear"}):u3(c,t.length)},E:function(e,t,a){const c=e.getDay();switch(t){case"E":case"EE":case"EEE":return a.day(c,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(c,{width:"short",context:"formatting"});case"EEEE":default:return a.day(c,{width:"wide",context:"formatting"})}},e:function(e,t,a,c){const n=e.getDay(),r=(n-c.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return u3(r,2);case"eo":return a.ordinalNumber(r,{unit:"day"});case"eee":return a.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(n,{width:"short",context:"formatting"});case"eeee":default:return a.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,a,c){const n=e.getDay(),r=(n-c.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return u3(r,t.length);case"co":return a.ordinalNumber(r,{unit:"day"});case"ccc":return a.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(n,{width:"narrow",context:"standalone"});case"cccccc":return a.day(n,{width:"short",context:"standalone"});case"cccc":default:return a.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,a){const c=e.getDay(),n=c===0?7:c;switch(t){case"i":return String(n);case"ii":return u3(n,t.length);case"io":return a.ordinalNumber(n,{unit:"day"});case"iii":return a.day(c,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(c,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(c,{width:"short",context:"formatting"});case"iiii":default:return a.day(c,{width:"wide",context:"formatting"})}},a:function(e,t,a){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,a){const c=e.getHours();let n;switch(c===12?n=ro.noon:c===0?n=ro.midnight:n=c/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,a){const c=e.getHours();let n;switch(c>=17?n=ro.evening:c>=12?n=ro.afternoon:c>=4?n=ro.morning:n=ro.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){let c=e.getHours()%12;return c===0&&(c=12),a.ordinalNumber(c,{unit:"hour"})}return I8.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getHours(),{unit:"hour"}):I8.H(e,t)},K:function(e,t,a){const c=e.getHours()%12;return t==="Ko"?a.ordinalNumber(c,{unit:"hour"}):u3(c,t.length)},k:function(e,t,a){let c=e.getHours();return c===0&&(c=24),t==="ko"?a.ordinalNumber(c,{unit:"hour"}):u3(c,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getMinutes(),{unit:"minute"}):I8.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getSeconds(),{unit:"second"}):I8.s(e,t)},S:function(e,t){return I8.S(e,t)},X:function(e,t,a){const c=e.getTimezoneOffset();if(c===0)return"Z";switch(t){case"X":return E81(c);case"XXXX":case"XX":return Er(c);case"XXXXX":case"XXX":default:return Er(c,":")}},x:function(e,t,a){const c=e.getTimezoneOffset();switch(t){case"x":return E81(c);case"xxxx":case"xx":return Er(c);case"xxxxx":case"xxx":default:return Er(c,":")}},O:function(e,t,a){const c=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+T81(c,":");case"OOOO":default:return"GMT"+Er(c,":")}},z:function(e,t,a){const c=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+T81(c,":");case"zzzz":default:return"GMT"+Er(c,":")}},t:function(e,t,a){const c=Math.trunc(e.getTime()/1e3);return u3(c,t.length)},T:function(e,t,a){const c=e.getTime();return u3(c,t.length)}};function T81(e,t=""){const a=e>0?"-":"+",c=Math.abs(e),n=Math.trunc(c/60),r=c%60;return r===0?a+String(n):a+String(n)+t+u3(r,2)}function E81(e,t){return e%60===0?(e>0?"-":"+")+u3(Math.abs(e)/60,2):Er(e,t)}function Er(e,t=""){const a=e>0?"-":"+",c=Math.abs(e),n=u3(Math.trunc(c/60),2),r=u3(c%60,2);return a+n+t+r}const D81=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Lg1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},gk3=(e,t)=>{const a=e.match(/(P+)(p+)?/)||[],c=a[1],n=a[2];if(!n)return D81(e,t);let r;switch(c){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;case"PPPP":default:r=t.dateTime({width:"full"});break}return r.replace("{{date}}",D81(c,t)).replace("{{time}}",Lg1(n,t))},sZ={p:Lg1,P:gk3},Mk3=/^D+$/,kk3=/^Y+$/,xk3=["D","DD","YY","YYYY"];function Vg1(e){return Mk3.test(e)}function Sg1(e){return kk3.test(e)}function lZ(e,t,a){const c=bk3(e,t,a);if(console.warn(c),xk3.includes(e))throw new RangeError(c)}function bk3(e,t,a){const c=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${c} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const zk3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ck3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_k3=/^'([^]*?)'?$/,wk3=/''/g,Hk3=/[a-zA-Z]/;function yt(e,t,a){var u,d,h,p,v,m,y,g;const c=Fi(),n=(a==null?void 0:a.locale)??c.locale??Hg1,r=(a==null?void 0:a.firstWeekContainsDate)??((d=(u=a==null?void 0:a.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??c.firstWeekContainsDate??((p=(h=c.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,i=(a==null?void 0:a.weekStartsOn)??((m=(v=a==null?void 0:a.locale)==null?void 0:v.options)==null?void 0:m.weekStartsOn)??c.weekStartsOn??((g=(y=c.locale)==null?void 0:y.options)==null?void 0:g.weekStartsOn)??0,o=d2(e);if(!pl(o))throw new RangeError("Invalid time value");let l=t.match(Ck3).map(M=>{const x=M[0];if(x==="p"||x==="P"){const k=sZ[x];return k(M,n.formatLong)}return M}).join("").match(zk3).map(M=>{if(M==="''")return{isToken:!1,value:"'"};const x=M[0];if(x==="'")return{isToken:!1,value:Lk3(M)};if(A81[x])return{isToken:!0,value:M};if(x.match(Hk3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:M}});n.localize.preprocessor&&(l=n.localize.preprocessor(o,l));const f={firstWeekContainsDate:r,weekStartsOn:i,locale:n};return l.map(M=>{if(!M.isToken)return M.value;const x=M.value;(!(a!=null&&a.useAdditionalWeekYearTokens)&&Sg1(x)||!(a!=null&&a.useAdditionalDayOfYearTokens)&&Vg1(x))&&lZ(x,t,String(e));const k=A81[x[0]];return k(o,x,n.localize,f)}).join("")}function Lk3(e){const t=e.match(_k3);return t?t[1].replace(wk3,"'"):e}function Vk3(e){return d2(e).getDay()}function Sk3(e){const t=d2(e),a=t.getFullYear(),c=t.getMonth(),n=i3(e,0);return n.setFullYear(a,c+1,0),n.setHours(0,0,0,0),n.getDate()}function Nk3(){return Object.assign({},Fi())}function M8(e){return d2(e).getHours()}function Ak3(e){let a=d2(e).getDay();return a===0&&(a=7),a}function Ia(e){return d2(e).getMinutes()}function D2(e){return d2(e).getMonth()}function us(e){return d2(e).getSeconds()}function H2(e){return d2(e).getFullYear()}function ds(e,t){const a=d2(e),c=d2(t);return a.getTime()>c.getTime()}function bf(e,t){const a=d2(e),c=d2(t);return+a<+c}function xo(e,t){const a=d2(e),c=d2(t);return+a==+c}function Tk3(e,t){const a=t instanceof Date?i3(t,0):new t(0);return a.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),a.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),a}const Ek3=10;class Ng1{constructor(){S1(this,"subPriority",0)}validate(t,a){return!0}}class Dk3 extends Ng1{constructor(t,a,c,n,r){super(),this.value=t,this.validateValue=a,this.setValue=c,this.priority=n,r&&(this.subPriority=r)}validate(t,a){return this.validateValue(t,this.value,a)}set(t,a,c){return this.setValue(t,a,this.value,c)}}class Pk3 extends Ng1{constructor(){super(...arguments);S1(this,"priority",Ek3);S1(this,"subPriority",-1)}set(a,c){return c.timestampIsSet?a:i3(a,Tk3(a,Date))}}class s3{run(t,a,c,n){const r=this.parse(t,a,c,n);return r?{setter:new Dk3(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(t,a,c){return!0}}class Ok3 extends s3{constructor(){super(...arguments);S1(this,"priority",140);S1(this,"incompatibleTokens",["R","u","t","T"])}parse(a,c,n){switch(c){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})||n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"})}}set(a,c,n){return c.era=n,a.setFullYear(n,0,1),a.setHours(0,0,0,0),a}}const He={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},at={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Le(e,t){return e&&{value:t(e.value),rest:e.rest}}function K3(e,t){const a=t.match(e);return a?{value:parseInt(a[0],10),rest:t.slice(a[0].length)}:null}function ct(e,t){const a=t.match(e);if(!a)return null;if(a[0]==="Z")return{value:0,rest:t.slice(1)};const c=a[1]==="+"?1:-1,n=a[2]?parseInt(a[2],10):0,r=a[3]?parseInt(a[3],10):0,i=a[5]?parseInt(a[5],10):0;return{value:c*(n*kg1+r*NM3+i*AM3),rest:t.slice(a[0].length)}}function Ag1(e){return K3(He.anyDigitsSigned,e)}function ue(e,t){switch(e){case 1:return K3(He.singleDigit,t);case 2:return K3(He.twoDigits,t);case 3:return K3(He.threeDigits,t);case 4:return K3(He.fourDigits,t);default:return K3(new RegExp("^\\d{1,"+e+"}"),t)}}function g$(e,t){switch(e){case 1:return K3(He.singleDigitSigned,t);case 2:return K3(He.twoDigitsSigned,t);case 3:return K3(He.threeDigitsSigned,t);case 4:return K3(He.fourDigitsSigned,t);default:return K3(new RegExp("^-?\\d{1,"+e+"}"),t)}}function FJ(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Tg1(e,t){const a=t>0,c=a?t:1-t;let n;if(c<=50)n=e||100;else{const r=c+50,i=Math.trunc(r/100)*100,o=e>=r%100;n=e+i-(o?100:0)}return a?n:1-n}function Eg1(e){return e%400===0||e%4===0&&e%100!==0}class Ik3 extends s3{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(a,c,n){const r=i=>({year:i,isTwoDigitYear:c==="yy"});switch(c){case"y":return Le(ue(4,a),r);case"yo":return Le(n.ordinalNumber(a,{unit:"year"}),r);default:return Le(ue(c.length,a),r)}}validate(a,c){return c.isTwoDigitYear||c.year>0}set(a,c,n){const r=a.getFullYear();if(n.isTwoDigitYear){const o=Tg1(n.year,r);return a.setFullYear(o,0,1),a.setHours(0,0,0,0),a}const i=!("era"in c)||c.era===1?n.year:1-n.year;return a.setFullYear(i,0,1),a.setHours(0,0,0,0),a}}class Bk3 extends s3{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(a,c,n){const r=i=>({year:i,isTwoDigitYear:c==="YY"});switch(c){case"Y":return Le(ue(4,a),r);case"Yo":return Le(n.ordinalNumber(a,{unit:"year"}),r);default:return Le(ue(c.length,a),r)}}validate(a,c){return c.isTwoDigitYear||c.year>0}set(a,c,n,r){const i=BJ(a,r);if(n.isTwoDigitYear){const l=Tg1(n.year,i);return a.setFullYear(l,0,r.firstWeekContainsDate),a.setHours(0,0,0,0),w6(a,r)}const o=!("era"in c)||c.era===1?n.year:1-n.year;return a.setFullYear(o,0,r.firstWeekContainsDate),a.setHours(0,0,0,0),w6(a,r)}}class Rk3 extends s3{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(a,c){return g$(c==="R"?4:c.length,a)}set(a,c,n){const r=i3(a,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),fs(r)}}class Fk3 extends s3{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(a,c){return g$(c==="u"?4:c.length,a)}set(a,c,n){return a.setFullYear(n,0,1),a.setHours(0,0,0,0),a}}class $k3 extends s3{constructor(){super(...arguments);S1(this,"priority",120);S1(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"Q":case"QQ":return ue(c.length,a);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})||n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=1&&c<=4}set(a,c,n){return a.setMonth((n-1)*3,1),a.setHours(0,0,0,0),a}}class qk3 extends s3{constructor(){super(...arguments);S1(this,"priority",120);S1(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"q":case"qq":return ue(c.length,a);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})||n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"})}}validate(a,c){return c>=1&&c<=4}set(a,c,n){return a.setMonth((n-1)*3,1),a.setHours(0,0,0,0),a}}class jk3 extends s3{constructor(){super(...arguments);S1(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);S1(this,"priority",110)}parse(a,c,n){const r=i=>i-1;switch(c){case"M":return Le(K3(He.month,a),r);case"MM":return Le(ue(2,a),r);case"Mo":return Le(n.ordinalNumber(a,{unit:"month"}),r);case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})||n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=0&&c<=11}set(a,c,n){return a.setMonth(n,1),a.setHours(0,0,0,0),a}}class Uk3 extends s3{constructor(){super(...arguments);S1(this,"priority",110);S1(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(a,c,n){const r=i=>i-1;switch(c){case"L":return Le(K3(He.month,a),r);case"LL":return Le(ue(2,a),r);case"Lo":return Le(n.ordinalNumber(a,{unit:"month"}),r);case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})||n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"})}}validate(a,c){return c>=0&&c<=11}set(a,c,n){return a.setMonth(n,1),a.setHours(0,0,0,0),a}}function Wk3(e,t,a){const c=d2(e),n=RJ(c,a)-t;return c.setDate(c.getDate()-n*7),c}class Yk3 extends s3{constructor(){super(...arguments);S1(this,"priority",100);S1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(a,c,n){switch(c){case"w":return K3(He.week,a);case"wo":return n.ordinalNumber(a,{unit:"week"});default:return ue(c.length,a)}}validate(a,c){return c>=1&&c<=53}set(a,c,n,r){return w6(Wk3(a,n,r),r)}}function Gk3(e,t){const a=d2(e),c=IJ(a)-t;return a.setDate(a.getDate()-c*7),a}class Zk3 extends s3{constructor(){super(...arguments);S1(this,"priority",100);S1(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(a,c,n){switch(c){case"I":return K3(He.week,a);case"Io":return n.ordinalNumber(a,{unit:"week"});default:return ue(c.length,a)}}validate(a,c){return c>=1&&c<=53}set(a,c,n){return fs(Gk3(a,n))}}const Xk3=[31,28,31,30,31,30,31,31,30,31,30,31],Kk3=[31,29,31,30,31,30,31,31,30,31,30,31];class Qk3 extends s3{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"subPriority",1);S1(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"d":return K3(He.date,a);case"do":return n.ordinalNumber(a,{unit:"date"});default:return ue(c.length,a)}}validate(a,c){const n=a.getFullYear(),r=Eg1(n),i=a.getMonth();return r?c>=1&&c<=Kk3[i]:c>=1&&c<=Xk3[i]}set(a,c,n){return a.setDate(n),a.setHours(0,0,0,0),a}}class Jk3 extends s3{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"subpriority",1);S1(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(a,c,n){switch(c){case"D":case"DD":return K3(He.dayOfYear,a);case"Do":return n.ordinalNumber(a,{unit:"date"});default:return ue(c.length,a)}}validate(a,c){const n=a.getFullYear();return Eg1(n)?c>=1&&c<=366:c>=1&&c<=365}set(a,c,n){return a.setMonth(0,n),a.setHours(0,0,0,0),a}}function $J(e,t,a){var d,h,p,v;const c=Fi(),n=(a==null?void 0:a.weekStartsOn)??((h=(d=a==null?void 0:a.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??c.weekStartsOn??((v=(p=c.locale)==null?void 0:p.options)==null?void 0:v.weekStartsOn)??0,r=d2(e),i=r.getDay(),l=(t%7+7)%7,f=7-n,u=t<0||t>6?t-(i+f)%7:(l+f)%7-(i+f)%7;return K0(r,u)}class ex3 extends s3{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=0&&c<=6}set(a,c,n,r){return a=$J(a,n,r),a.setHours(0,0,0,0),a}}class tx3 extends s3{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(a,c,n,r){const i=o=>{const l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(c){case"e":case"ee":return Le(ue(c.length,a),i);case"eo":return Le(n.ordinalNumber(a,{unit:"day"}),i);case"eee":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=0&&c<=6}set(a,c,n,r){return a=$J(a,n,r),a.setHours(0,0,0,0),a}}class ax3 extends s3{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(a,c,n,r){const i=o=>{const l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(c){case"c":case"cc":return Le(ue(c.length,a),i);case"co":return Le(n.ordinalNumber(a,{unit:"day"}),i);case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})||n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"})}}validate(a,c){return c>=0&&c<=6}set(a,c,n,r){return a=$J(a,n,r),a.setHours(0,0,0,0),a}}function cx3(e,t){const a=d2(e),c=Ak3(a),n=t-c;return K0(a,n)}class nx3 extends s3{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(a,c,n){const r=i=>i===0?7:i;switch(c){case"i":case"ii":return ue(c.length,a);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return Le(n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),r);case"iiiii":return Le(n.day(a,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Le(n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),r);case"iiii":default:return Le(n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),r)}}validate(a,c){return c>=1&&c<=7}set(a,c,n){return a=cx3(a,n),a.setHours(0,0,0,0),a}}class rx3 extends s3{constructor(){super(...arguments);S1(this,"priority",80);S1(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(a,c,n){switch(c){case"a":case"aa":case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,c,n){return a.setHours(FJ(n),0,0,0),a}}class ix3 extends s3{constructor(){super(...arguments);S1(this,"priority",80);S1(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(a,c,n){switch(c){case"b":case"bb":case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,c,n){return a.setHours(FJ(n),0,0,0),a}}class ox3 extends s3{constructor(){super(...arguments);S1(this,"priority",80);S1(this,"incompatibleTokens",["a","b","t","T"])}parse(a,c,n){switch(c){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,c,n){return a.setHours(FJ(n),0,0,0),a}}class sx3 extends s3{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["H","K","k","t","T"])}parse(a,c,n){switch(c){case"h":return K3(He.hour12h,a);case"ho":return n.ordinalNumber(a,{unit:"hour"});default:return ue(c.length,a)}}validate(a,c){return c>=1&&c<=12}set(a,c,n){const r=a.getHours()>=12;return r&&n<12?a.setHours(n+12,0,0,0):!r&&n===12?a.setHours(0,0,0,0):a.setHours(n,0,0,0),a}}class lx3 extends s3{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(a,c,n){switch(c){case"H":return K3(He.hour23h,a);case"Ho":return n.ordinalNumber(a,{unit:"hour"});default:return ue(c.length,a)}}validate(a,c){return c>=0&&c<=23}set(a,c,n){return a.setHours(n,0,0,0),a}}class fx3 extends s3{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["h","H","k","t","T"])}parse(a,c,n){switch(c){case"K":return K3(He.hour11h,a);case"Ko":return n.ordinalNumber(a,{unit:"hour"});default:return ue(c.length,a)}}validate(a,c){return c>=0&&c<=11}set(a,c,n){return a.getHours()>=12&&n<12?a.setHours(n+12,0,0,0):a.setHours(n,0,0,0),a}}class ux3 extends s3{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(a,c,n){switch(c){case"k":return K3(He.hour24h,a);case"ko":return n.ordinalNumber(a,{unit:"hour"});default:return ue(c.length,a)}}validate(a,c){return c>=1&&c<=24}set(a,c,n){const r=n<=24?n%24:n;return a.setHours(r,0,0,0),a}}class dx3 extends s3{constructor(){super(...arguments);S1(this,"priority",60);S1(this,"incompatibleTokens",["t","T"])}parse(a,c,n){switch(c){case"m":return K3(He.minute,a);case"mo":return n.ordinalNumber(a,{unit:"minute"});default:return ue(c.length,a)}}validate(a,c){return c>=0&&c<=59}set(a,c,n){return a.setMinutes(n,0,0),a}}class hx3 extends s3{constructor(){super(...arguments);S1(this,"priority",50);S1(this,"incompatibleTokens",["t","T"])}parse(a,c,n){switch(c){case"s":return K3(He.second,a);case"so":return n.ordinalNumber(a,{unit:"second"});default:return ue(c.length,a)}}validate(a,c){return c>=0&&c<=59}set(a,c,n){return a.setSeconds(n,0),a}}class px3 extends s3{constructor(){super(...arguments);S1(this,"priority",30);S1(this,"incompatibleTokens",["t","T"])}parse(a,c){const n=r=>Math.trunc(r*Math.pow(10,-c.length+3));return Le(ue(c.length,a),n)}set(a,c,n){return a.setMilliseconds(n),a}}class mx3 extends s3{constructor(){super(...arguments);S1(this,"priority",10);S1(this,"incompatibleTokens",["t","T","x"])}parse(a,c){switch(c){case"X":return ct(at.basicOptionalMinutes,a);case"XX":return ct(at.basic,a);case"XXXX":return ct(at.basicOptionalSeconds,a);case"XXXXX":return ct(at.extendedOptionalSeconds,a);case"XXX":default:return ct(at.extended,a)}}set(a,c,n){return c.timestampIsSet?a:i3(a,a.getTime()-y$(a)-n)}}class vx3 extends s3{constructor(){super(...arguments);S1(this,"priority",10);S1(this,"incompatibleTokens",["t","T","X"])}parse(a,c){switch(c){case"x":return ct(at.basicOptionalMinutes,a);case"xx":return ct(at.basic,a);case"xxxx":return ct(at.basicOptionalSeconds,a);case"xxxxx":return ct(at.extendedOptionalSeconds,a);case"xxx":default:return ct(at.extended,a)}}set(a,c,n){return c.timestampIsSet?a:i3(a,a.getTime()-y$(a)-n)}}class yx3 extends s3{constructor(){super(...arguments);S1(this,"priority",40);S1(this,"incompatibleTokens","*")}parse(a){return Ag1(a)}set(a,c,n){return[i3(a,n*1e3),{timestampIsSet:!0}]}}class gx3 extends s3{constructor(){super(...arguments);S1(this,"priority",20);S1(this,"incompatibleTokens","*")}parse(a){return Ag1(a)}set(a,c,n){return[i3(a,n),{timestampIsSet:!0}]}}const Mx3={G:new Ok3,y:new Ik3,Y:new Bk3,R:new Rk3,u:new Fk3,Q:new $k3,q:new qk3,M:new jk3,L:new Uk3,w:new Yk3,I:new Zk3,d:new Qk3,D:new Jk3,E:new ex3,e:new tx3,c:new ax3,i:new nx3,a:new rx3,b:new ix3,B:new ox3,h:new sx3,H:new lx3,K:new fx3,k:new ux3,m:new dx3,s:new hx3,S:new px3,X:new mx3,x:new vx3,t:new yx3,T:new gx3},kx3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xx3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bx3=/^'([^]*?)'?$/,zx3=/''/g,Cx3=/\S/,_x3=/[a-zA-Z]/;function fZ(e,t,a,c){var m,y,g,M,x,k,b,_;const n=Nk3(),r=(c==null?void 0:c.locale)??n.locale??Hg1,i=(c==null?void 0:c.firstWeekContainsDate)??((y=(m=c==null?void 0:c.locale)==null?void 0:m.options)==null?void 0:y.firstWeekContainsDate)??n.firstWeekContainsDate??((M=(g=n.locale)==null?void 0:g.options)==null?void 0:M.firstWeekContainsDate)??1,o=(c==null?void 0:c.weekStartsOn)??((k=(x=c==null?void 0:c.locale)==null?void 0:x.options)==null?void 0:k.weekStartsOn)??n.weekStartsOn??((_=(b=n.locale)==null?void 0:b.options)==null?void 0:_.weekStartsOn)??0;if(t==="")return e===""?d2(a):i3(a,NaN);const l={firstWeekContainsDate:i,weekStartsOn:o,locale:r},f=[new Pk3],u=t.match(xx3).map(C=>{const H=C[0];if(H in sZ){const V=sZ[H];return V(C,r.formatLong)}return C}).join("").match(kx3),d=[];for(let C of u){!(c!=null&&c.useAdditionalWeekYearTokens)&&Sg1(C)&&lZ(C,t,e),!(c!=null&&c.useAdditionalDayOfYearTokens)&&Vg1(C)&&lZ(C,t,e);const H=C[0],V=Mx3[H];if(V){const{incompatibleTokens:N}=V;if(Array.isArray(N)){const w=d.find(P=>N.includes(P.token)||P.token===H);if(w)throw new RangeError(`The format string mustn't contain \`${w.fullToken}\` and \`${C}\` at the same time`)}else if(V.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);d.push({token:H,fullToken:C});const L=V.run(e,C,r.match,l);if(!L)return i3(a,NaN);f.push(L.setter),e=L.rest}else{if(H.match(_x3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+H+"`");if(C==="''"?C="'":H==="'"&&(C=wx3(C)),e.indexOf(C)===0)e=e.slice(C.length);else return i3(a,NaN)}}if(e.length>0&&Cx3.test(e))return i3(a,NaN);const h=f.map(C=>C.priority).sort((C,H)=>H-C).filter((C,H,V)=>V.indexOf(C)===H).map(C=>f.filter(H=>H.priority===C).sort((H,V)=>V.subPriority-H.subPriority)).map(C=>C[0]);let p=d2(a);if(isNaN(p.getTime()))return i3(a,NaN);const v={};for(const C of h){if(!C.validate(p,l))return i3(a,NaN);const H=C.set(p,v,l);Array.isArray(H)?(p=H[0],Object.assign(v,H[1])):p=H}return i3(a,p)}function wx3(e){return e.match(bx3)[1].replace(zx3,"'")}function P81(e,t){const a=Ur(e),c=Ur(t);return+a==+c}function Hx3(e,t){return K0(e,-t)}function Dg1(e,t){const a=d2(e),c=a.getFullYear(),n=a.getDate(),r=i3(e,0);r.setFullYear(c,t,15),r.setHours(0,0,0,0);const i=Sk3(r);return a.setMonth(t,Math.min(n,i)),a}function x3(e,t){let a=d2(e);return isNaN(+a)?i3(e,NaN):(t.year!=null&&a.setFullYear(t.year),t.month!=null&&(a=Dg1(a,t.month)),t.date!=null&&a.setDate(t.date),t.hours!=null&&a.setHours(t.hours),t.minutes!=null&&a.setMinutes(t.minutes),t.seconds!=null&&a.setSeconds(t.seconds),t.milliseconds!=null&&a.setMilliseconds(t.milliseconds),a)}function Pg1(e,t){const a=d2(e);return a.setHours(t),a}function qJ(e,t){const a=d2(e);return a.setMilliseconds(t),a}function Og1(e,t){const a=d2(e);return a.setMinutes(t),a}function jJ(e,t){const a=d2(e);return a.setSeconds(t),a}function ot(e,t){const a=d2(e);return isNaN(+a)?i3(e,NaN):(a.setFullYear(t),a)}function hs(e,t){return v6(e,-t)}function Lx3(e,t){const{years:a=0,months:c=0,weeks:n=0,days:r=0,hours:i=0,minutes:o=0,seconds:l=0}=t,f=hs(e,c+a*12),u=Hx3(f,r+n*7),d=o+i*60,p=(l+d*60)*1e3;return i3(e,u.getTime()-p)}function Ig1(e,t){return PJ(e,-t)}function As(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),s.createElementVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),s.createElementVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),s.createElementVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}As.compatConfig={MODE:3};function Bg1(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),s.createElementVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}Bg1.compatConfig={MODE:3};function UJ(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}UJ.compatConfig={MODE:3};function WJ(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}WJ.compatConfig={MODE:3};function YJ(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),s.createElementVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}YJ.compatConfig={MODE:3};function GJ(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}GJ.compatConfig={MODE:3};function ZJ(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}ZJ.compatConfig={MODE:3};const gt=(e,t)=>t?new Date(e.toLocaleString("en-US",{timeZone:t})):new Date(e),Rg1=(e,t)=>uZ(e,t)||$1(),Vx3=(e,t)=>t.dateInTz?gt(new Date(e),t.dateInTz):$1(e),uZ=(e,t)=>{if(!e)return null;if(!t)return $1(e);const a=$1(e);return t.exactMatch?Vx3(e,t):gt(a,t.timezone)},Sx3=e=>{if(!e)return 0;const t=new Date,a=new Date(t.toLocaleString("en-US",{timeZone:"UTC"})),c=new Date(t.toLocaleString("en-US",{timeZone:e})),n=c.getTimezoneOffset()/60;return(+a-+c)/(1e3*60*60)-n};var $0=(e=>(e.month="month",e.year="year",e))($0||{}),Dr=(e=>(e.top="top",e.bottom="bottom",e))(Dr||{}),ci=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(ci||{}),d4=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(d4||{});const Nx3=["timestamp","date","iso"];var S4=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(S4||{}),G3=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(G3||{});function O81(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)}function Ax3(e){return t=>yt(new Date(`2017-01-0${t}T00:00:00+00:00`),"EEEEEE",{locale:e})}const Tx3=(e,t,a)=>{const c=[1,2,3,4,5,6,7];let n;if(e!==null)try{n=c.map(Ax3(e))}catch{n=c.map(O81(t))}else n=c.map(O81(t));const r=n.slice(0,a),i=n.slice(a+1,n.length);return[n[a]].concat(...i).concat(...r)},XJ=(e,t,a)=>{const c=[];for(let n=+e[0];n<=+e[1];n++)c.push({value:+n,text:jg1(n,t)});return a?c.reverse():c},Fg1=(e,t,a)=>{const c=[1,2,3,4,5,6,7,8,9,10,11,12].map(r=>{const i=r<10?`0${r}`:r;return new Date(`2017-${i}-01T00:00:00+00:00`)});if(e!==null)try{const r=a==="long"?"MMMM":"MMM";return c.map((i,o)=>{const l=yt(gt(i,"UTC"),r,{locale:e});return{text:l.charAt(0).toUpperCase()+l.substring(1),value:o}})}catch{}const n=new Intl.DateTimeFormat(t,{month:a,timeZone:"UTC"});return c.map((r,i)=>{const o=n.format(r);return{text:o.charAt(0).toUpperCase()+o.substring(1),value:i}})},Ex3=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],Pe=e=>{const t=s.unref(e);return t!=null&&t.$el?t==null?void 0:t.$el:t},Dx3=e=>({type:"dot",...e??{}}),$g1=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,KJ={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},Ye=e=>e,I81=e=>e===0?e:!e||isNaN(+e)?null:+e,B81=e=>e===null,qg1=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},Px3=e=>{const t=[],a=c=>c.filter(n=>n);for(let c=0;c<e.length;c+=3){const n=[e[c],e[c+1],e[c+2]];t.push(a(n))}return t},zf=(e,t,a)=>{const c=a!=null,n=t!=null;if(!c&&!n)return!1;const r=+a,i=+t;return c&&n?+e>r||+e<i:c?+e>r:n?+e<i:!1},ps=(e,t)=>Px3(e).map(a=>a.map(c=>{const{active:n,disabled:r,isBetween:i,highlighted:o}=t(c);return{...c,active:n,disabled:r,className:{dp__overlay_cell_active:n,dp__overlay_cell:!n,dp__overlay_cell_disabled:r,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:r&&n,dp__cell_in_between:i,"dp--highlighted":o}}})),za=(e,t,a=!1)=>{e&&t.allowStopPropagation&&(a&&e.stopImmediatePropagation(),e.stopPropagation())},Ox3=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function Ix3(e,t){let a=[...document.querySelectorAll(Ox3())];a=a.filter(n=>!e.contains(n)||n.hasAttribute("data-datepicker-instance"));const c=a.indexOf(e);if(c>=0&&(t?c-1>=0:c+1<=a.length))return a[c+(t?-1:1)]}const Bx3=(e,t)=>e==null?void 0:e.querySelector(`[data-dp-element="${t}"]`),jg1=(e,t)=>new Intl.NumberFormat(t,{useGrouping:!1,style:"decimal"}).format(e),QJ=e=>yt(e,"dd-MM-yyyy"),RW=e=>Array.isArray(e),M$=(e,t)=>t.get(QJ(e)),Rx3=(e,t)=>e?t?t instanceof Map?!!M$(e,t):t($1(e)):!1:!0,Y4=(e,t,a=!1)=>{if(e.key===G3.enter||e.key===G3.space)return a&&e.preventDefault(),t()},R81=(e,t,a,c,n,r)=>{const i=fZ(e,t.slice(0,e.length),new Date,{locale:r});return pl(i)&&zg1(i)?c||n?i:x3(i,{hours:+a.hours,minutes:+(a==null?void 0:a.minutes),seconds:+(a==null?void 0:a.seconds),milliseconds:0}):null},Fx3=(e,t,a,c,n,r)=>{const i=Array.isArray(a)?a[0]:a;if(typeof t=="string")return R81(e,t,i,c,n,r);if(Array.isArray(t)){let o=null;for(const l of t)if(o=R81(e,l,i,c,n,r),o)break;return o}return typeof t=="function"?t(e):null},$1=e=>e?new Date(e):new Date,$x3=(e,t,a)=>{if(t){const n=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),i=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),l=a?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${n}-${r}T${i}:${o}:${l}.000Z`}const c=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(c).toISOString()},u0=e=>{let t=$1(JSON.parse(JSON.stringify(e)));return t=Pg1(t,0),t=Og1(t,0),t=jJ(t,0),t=qJ(t,0),t},Ca=(e,t,a,c)=>{let n=e?$1(e):$1();return(t||t===0)&&(n=Pg1(n,+t)),(a||a===0)&&(n=Og1(n,+a)),(c||c===0)&&(n=jJ(n,+c)),qJ(n,0)},ce=(e,t)=>!e||!t?!1:bf(u0(e),u0(t)),O2=(e,t)=>!e||!t?!1:xo(u0(e),u0(t)),xe=(e,t)=>!e||!t?!1:ds(u0(e),u0(t)),Mj=(e,t,a)=>e!=null&&e[0]&&e!=null&&e[1]?xe(a,e[0])&&ce(a,e[1]):e!=null&&e[0]&&t?xe(a,e[0])&&ce(a,t)||ce(a,e[0])&&xe(a,t):!1,Q0=e=>{const t=x3(new Date(e),{date:1});return u0(t)},FW=(e,t,a)=>t&&(a||a===0)?Object.fromEntries(["hours","minutes","seconds"].map(c=>c===t?[c,a]:[c,isNaN(+e[c])?void 0:+e[c]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},ni=e=>({hours:M8(e),minutes:Ia(e),seconds:us(e)}),Ug1=(e,t)=>{if(t){const a=H2($1(t));if(a>e)return 12;if(a===e)return D2($1(t))}},Wg1=(e,t)=>{if(t){const a=H2($1(t));return a<e?-1:a===e?D2($1(t)):void 0}},ms=e=>{if(e)return H2($1(e))},Yg1=(e,t)=>{const a=xe(e,t)?t:e,c=xe(t,e)?t:e;return Cg1({start:a,end:c})},qx3=e=>{const t=v6(e,1);return{month:D2(t),year:H2(t)}},Ut=(e,t)=>{const a=w6(e,{weekStartsOn:+t}),c=wg1(e,{weekStartsOn:+t});return[a,c]},Gg1=(e,t)=>{const a={hours:M8($1()),minutes:Ia($1()),seconds:t?us($1()):0};return Object.assign(a,e)},la=(e,t,a)=>[x3($1(e),{date:1}),x3($1(),{month:t,year:a,date:1})],a8=(e,t,a)=>{let c=e?$1(e):$1();return(t||t===0)&&(c=Dg1(c,t)),a&&(c=ot(c,a)),c},Zg1=(e,t,a,c,n)=>{if(!c||n&&!t||!n&&!a)return!1;const r=n?v6(e,1):hs(e,1),i=[D2(r),H2(r)];return n?!Ux3(...i,t):!jx3(...i,a)},jx3=(e,t,a)=>ce(...la(a,e,t))||O2(...la(a,e,t)),Ux3=(e,t,a)=>xe(...la(a,e,t))||O2(...la(a,e,t)),Xg1=(e,t,a,c,n,r,i)=>{if(typeof t=="function"&&!i)return t(e);const o=a?{locale:a}:void 0;return Array.isArray(e)?`${yt(e[0],r,o)}${n&&!e[1]?"":c}${e[1]?yt(e[1],r,o):""}`:yt(e,r,o)},io=e=>{if(e)return null;throw new Error(KJ.prop("partial-range"))},qd=(e,t)=>{if(t)return e();throw new Error(KJ.prop("range"))},dZ=e=>Array.isArray(e)?pl(e[0])&&(e[1]?pl(e[1]):!0):e?pl(e):!1,Wx3=(e,t)=>x3(t??$1(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),$W=(e,t,a,c)=>{if(!e)return!0;if(c){const n=a==="max"?bf(e,t):ds(e,t),r={seconds:0,milliseconds:0};return n||xo(x3(e,r),x3(t,r))}return a==="max"?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},qW=(e,t,a)=>e?Wx3(e,t):$1(a??t),F81=(e,t,a,c,n)=>{if(Array.isArray(c)){const i=qW(e,c[0],t),o=qW(e,c[1],t);return $W(c[0],i,a,!!t)&&$W(c[1],o,a,!!t)&&n}const r=qW(e,c,t);return $W(c,r,a,!!t)&&n},jW=e=>x3($1(),ni(e)),Yx3=(e,t)=>e instanceof Map?Array.from(e.values()).filter(a=>H2($1(a))===t).map(a=>D2(a)):[],Kg1=(e,t,a)=>typeof e=="function"?e({month:t,year:a}):!!e.months.find(c=>c.month===t&&c.year===a),JJ=(e,t)=>typeof e=="function"?e(t):e.years.includes(t),C9=s.reactive({menuFocused:!1,shiftKeyInMenu:!1}),Qg1=()=>{const e=a=>{C9.menuFocused=a},t=a=>{C9.shiftKeyInMenu!==a&&(C9.shiftKeyInMenu=a)};return{control:s.computed(()=>({shiftKeyInMenu:C9.shiftKeyInMenu,menuFocused:C9.menuFocused})),setMenuFocused:e,setShiftKey:t}},C3=s.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),UW=s.ref(null),jd=s.ref(!1),WW=s.ref(!1),YW=s.ref(!1),GW=s.ref(!1),s4=s.ref(0),ve=s.ref(0),Qa=()=>{const e=s.computed(()=>jd.value?[...C3.selectionGrid,C3.actionRow].filter(d=>d.length):WW.value?[...C3.timePicker[0],...C3.timePicker[1],GW.value?[]:[UW.value],C3.actionRow].filter(d=>d.length):YW.value?[...C3.monthPicker,C3.actionRow]:[C3.monthYear,...C3.calendar,C3.time,C3.actionRow].filter(d=>d.length)),t=d=>{s4.value=d?s4.value+1:s4.value-1;let h=null;e.value[ve.value]&&(h=e.value[ve.value][s4.value]),!h&&e.value[ve.value+(d?1:-1)]?(ve.value=ve.value+(d?1:-1),s4.value=d?0:e.value[ve.value].length-1):h||(s4.value=d?s4.value-1:s4.value+1)},a=d=>{ve.value===0&&!d||ve.value===e.value.length&&d||(ve.value=d?ve.value+1:ve.value-1,e.value[ve.value]?e.value[ve.value]&&!e.value[ve.value][s4.value]&&s4.value!==0&&(s4.value=e.value[ve.value].length-1):ve.value=d?ve.value-1:ve.value+1)},c=d=>{let h=null;e.value[ve.value]&&(h=e.value[ve.value][s4.value]),h?h.focus({preventScroll:!jd.value}):s4.value=d?s4.value-1:s4.value+1},n=()=>{t(!0),c(!0)},r=()=>{t(!1),c(!1)},i=()=>{a(!1),c(!0)},o=()=>{a(!0),c(!0)},l=(d,h)=>{C3[h]=d},f=(d,h)=>{C3[h]=d},u=()=>{s4.value=0,ve.value=0};return{buildMatrix:l,buildMultiLevelMatrix:f,setTimePickerBackRef:d=>{UW.value=d},setSelectionGrid:d=>{jd.value=d,u(),d||(C3.selectionGrid=[])},setTimePicker:(d,h=!1)=>{WW.value=d,GW.value=h,u(),d||(C3.timePicker[0]=[],C3.timePicker[1]=[])},setTimePickerElements:(d,h=0)=>{C3.timePicker[h]=d},arrowRight:n,arrowLeft:r,arrowUp:i,arrowDown:o,clearArrowNav:()=>{C3.monthYear=[],C3.calendar=[],C3.time=[],C3.actionRow=[],C3.selectionGrid=[],C3.timePicker[0]=[],C3.timePicker[1]=[],jd.value=!1,WW.value=!1,GW.value=!1,YW.value=!1,u(),UW.value=null},setMonthPicker:d=>{YW.value=d,u()},refSets:C3}},$81=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),Gx3=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,...e??{}}),q81=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,Zx3=e=>{const t=typeof e=="object"&&e,a={static:!0,solo:!1};if(!e)return{...a,count:q81(!1)};const c=t?e:{},n=t?c.count??!0:e,r=q81(n);return Object.assign(a,c,{count:r})},Xx3=(e,t,a)=>e||(typeof a=="string"?a:t),Kx3=e=>typeof e=="boolean"?e?$81({}):!1:$81(e),Qx3=e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:!0,selectOnFocus:!1,rangeSeparator:" - "};return typeof e=="object"?{...t,...e??{},enabled:!0}:{...t,enabled:e}},Jx3=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),eb3=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),tb3=e=>{const t={input:!1};return typeof e=="object"?{...t,...e??{},enabled:!0}:{enabled:e,...t}},ab3=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,...e??{}}),cb3=e=>{const t={dates:Array.isArray(e)?e.map(a=>$1(a)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...t,...e??{}}},nb3=e=>typeof e=="object"?{type:(e==null?void 0:e.type)??"local",hideOnOffsetDates:(e==null?void 0:e.hideOnOffsetDates)??!1}:{type:e,hideOnOffsetDates:!1},rb3=(e,t)=>typeof e=="object"?{enabled:!0,...{noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1},...e}:{enabled:e,noDisabledRange:t.noDisabledRange,showLastInRange:t.showLastInRange,minMaxRawRange:t.minMaxRawRange,partialRange:t.partialRange,disableTimeRangeValidation:t.disableTimeRangeValidation,maxRange:t.maxRange,minRange:t.minRange,autoRange:t.autoRange,fixedStart:t.fixedStart,fixedEnd:t.fixedEnd},ib3=(e,t)=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:t,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:t??e.emitTimezone,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:t},ZW=(e,t)=>new Map(e.map(a=>{const c=Rg1(a,t);return[QJ(c),c]})),ob3=(e,t)=>e.length?new Map(e.map(a=>{const c=Rg1(a.date,t);return[QJ(c),a]})):null,sb3=(e,t,a,c,n,r,i)=>({minDate:uZ(e,i),maxDate:uZ(t,i),disabledDates:RW(a)?ZW(a,i):a,allowedDates:RW(c)?ZW(c,i):null,highlight:typeof n=="object"&&RW(n==null?void 0:n.dates)?ZW(n.dates,i):n,markers:ob3(r,i)}),lb3=(e,t)=>typeof e=="boolean"?{enabled:e,dragSelect:!0,limit:+t}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0},ee=e=>{const t=()=>{const b=e.enableSeconds?":ss":"",_=e.enableMinutes?":mm":"";return e.is24?`HH${_}${b}`:`hh${_}${b} aa`},a=()=>{var b;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?`${((b=y.value)==null?void 0:b.type)==="iso"?"RR":"ww"}-yyyy`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy"},c=b=>Gg1(b,e.enableSeconds),n=()=>k.value.enabled?e.startTime&&Array.isArray(e.startTime)?[c(e.startTime[0]),c(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?c(e.startTime):null,r=s.computed(()=>Zx3(e.multiCalendars)),i=s.computed(()=>n()),o=s.computed(()=>Gx3(e.ariaLabels)),l=s.computed(()=>Jx3(e.filters)),f=s.computed(()=>Kx3(e.transitions)),u=s.computed(()=>eb3(e.actionRow)),d=s.computed(()=>Xx3(e.previewFormat,e.format,a())),h=s.computed(()=>Qx3(e.textInput)),p=s.computed(()=>tb3(e.inline)),v=s.computed(()=>ab3(e.config)),m=s.computed(()=>cb3(e.highlight)),y=s.computed(()=>nb3(e.weekNumbers)),g=s.computed(()=>ib3(e.timezone,e.emitTimezone)),M=s.computed(()=>lb3(e.multiDates,e.multiDatesLimit)),x=s.computed(()=>sb3(e.minDate,e.maxDate,e.disabledDates,e.allowedDates,m.value,e.markers,g.value)),k=s.computed(()=>rb3(e.range,{minMaxRawRange:!1,maxRange:e.maxRange,minRange:e.minRange,noDisabledRange:e.noDisabledRange,showLastInRange:e.showLastInRange,partialRange:e.partialRange,disableTimeRangeValidation:e.disableTimeRangeValidation,autoRange:e.autoRange,fixedStart:e.fixedStart,fixedEnd:e.fixedEnd}));return{defaultedTransitions:f,defaultedMultiCalendars:r,defaultedStartTime:i,defaultedAriaLabels:o,defaultedFilters:l,defaultedActionRow:u,defaultedPreviewFormat:d,defaultedTextInput:h,defaultedInline:p,defaultedConfig:v,defaultedHighlight:m,defaultedWeekNumbers:y,defaultedRange:k,propDates:x,defaultedTz:g,defaultedMultiDates:M,getDefaultPattern:a,getDefaultStartTime:n}},fb3=(e,t,a)=>{const c=s.ref(),{defaultedTextInput:n,defaultedRange:r,defaultedTz:i,defaultedMultiDates:o,getDefaultPattern:l}=ee(t),f=s.ref(""),u=s.toRef(t,"format"),d=s.toRef(t,"formatLocale");s.watch(c,()=>{typeof t.onInternalModelChange=="function"&&e("internal-model-change",c.value,A(!0))},{deep:!0}),s.watch(r,(R,Q)=>{R.enabled!==Q.enabled&&(c.value=null)}),s.watch(u,()=>{K()});const h=R=>i.value.timezone&&i.value.convertModel?gt(R,i.value.timezone):R,p=R=>{if(i.value.timezone&&i.value.convertModel){const Q=Sx3(i.value.timezone);return TM3(R,Q)}return R},v=(R,Q,c1=!1)=>Xg1(R,t.format,t.formatLocale,n.value.rangeSeparator,t.modelAuto,Q??l(),c1),m=R=>R?t.modelType?W(R):{hours:M8(R),minutes:Ia(R),seconds:t.enableSeconds?us(R):0}:null,y=R=>t.modelType?W(R):{month:D2(R),year:H2(R)},g=R=>Array.isArray(R)?o.value.enabled?R.map(Q=>M(Q,ot($1(),Q))):qd(()=>[ot($1(),R[0]),R[1]?ot($1(),R[1]):io(r.value.partialRange)],r.value.enabled):ot($1(),+R),M=(R,Q)=>(typeof R=="string"||typeof R=="number")&&t.modelType?G(R):Q,x=R=>Array.isArray(R)?[M(R[0],Ca(null,+R[0].hours,+R[0].minutes,R[0].seconds)),M(R[1],Ca(null,+R[1].hours,+R[1].minutes,R[1].seconds))]:M(R,Ca(null,R.hours,R.minutes,R.seconds)),k=R=>{const Q=x3($1(),{date:1});return Array.isArray(R)?o.value.enabled?R.map(c1=>M(c1,a8(Q,+c1.month,+c1.year))):qd(()=>[M(R[0],a8(Q,+R[0].month,+R[0].year)),M(R[1],R[1]?a8(Q,+R[1].month,+R[1].year):io(r.value.partialRange))],r.value.enabled):M(R,a8(Q,+R.month,+R.year))},b=R=>{if(Array.isArray(R))return R.map(Q=>G(Q));throw new Error(KJ.dateArr("multi-dates"))},_=R=>{if(Array.isArray(R)&&r.value.enabled){const Q=R[0],c1=R[1];return[$1(Array.isArray(Q)?Q[0]:null),$1(Array.isArray(c1)?c1[0]:null)]}return $1(R[0])},C=R=>t.modelAuto?Array.isArray(R)?[G(R[0]),G(R[1])]:t.autoApply?[G(R)]:[G(R),null]:Array.isArray(R)?qd(()=>R[1]?[G(R[0]),R[1]?G(R[1]):io(r.value.partialRange)]:[G(R[0])],r.value.enabled):G(R),H=()=>{Array.isArray(c.value)&&r.value.enabled&&c.value.length===1&&c.value.push(io(r.value.partialRange))},V=()=>{const R=c.value;return[W(R[0]),R[1]?W(R[1]):io(r.value.partialRange)]},N=()=>c.value[1]?V():W(Ye(c.value[0])),L=()=>(c.value||[]).map(R=>W(R)),w=(R=!1)=>(R||H(),t.modelAuto?N():o.value.enabled?L():Array.isArray(c.value)?qd(()=>V(),r.value.enabled):W(Ye(c.value))),P=R=>!R||Array.isArray(R)&&!R.length?null:t.timePicker?x(Ye(R)):t.monthPicker?k(Ye(R)):t.yearPicker?g(Ye(R)):o.value.enabled?b(Ye(R)):t.weekPicker?_(Ye(R)):C(Ye(R)),j=R=>{const Q=P(R);dZ(Ye(Q))?(c.value=Ye(Q),K()):(c.value=null,f.value="")},T=()=>{const R=Q=>yt(Q,n.value.format);return`${R(c.value[0])} ${n.value.rangeSeparator} ${c.value[1]?R(c.value[1]):""}`},B=()=>a.value&&c.value?Array.isArray(c.value)?T():yt(c.value,n.value.format):v(c.value),F=()=>c.value?o.value.enabled?c.value.map(R=>v(R)).join("; "):n.value.enabled&&typeof n.value.format=="string"?B():v(c.value):"",K=()=>{!t.format||typeof t.format=="string"||n.value.enabled&&typeof n.value.format=="string"?f.value=F():f.value=t.format(c.value)},G=R=>{if(t.utc){const Q=new Date(R);return t.utc==="preserve"?new Date(Q.getTime()+Q.getTimezoneOffset()*6e4):Q}return t.modelType?Nx3.includes(t.modelType)?h(new Date(R)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?h(fZ(R,l(),new Date,{locale:d.value})):h(fZ(R,t.modelType,new Date,{locale:d.value})):h(new Date(R))},W=R=>R?t.utc?$x3(R,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+p(R):t.modelType==="iso"?p(R).toISOString():t.modelType==="format"&&(typeof t.format=="string"||!t.format)?v(p(R)):v(p(R),t.modelType,!0):p(R):"",O=(R,Q=!1,c1=!1)=>{if(c1)return R;if(e("update:model-value",R),i.value.emitTimezone&&Q){const e1=Array.isArray(R)?R.map(s1=>gt(Ye(s1),i.value.emitTimezone)):gt(Ye(R),i.value.emitTimezone);e("update:model-timezone-value",e1)}},E=R=>Array.isArray(c.value)?o.value.enabled?c.value.map(Q=>R(Q)):[R(c.value[0]),c.value[1]?R(c.value[1]):io(r.value.partialRange)]:R(Ye(c.value)),S=()=>{if(Array.isArray(c.value)){const R=Ut(c.value[0],t.weekStart),Q=c.value[1]?Ut(c.value[1],t.weekStart):[];return[R.map(c1=>$1(c1)),Q.map(c1=>$1(c1))]}return Ut(c.value,t.weekStart).map(R=>$1(R))},U=(R,Q)=>O(Ye(E(R)),!1,Q),Z=R=>{const Q=S();return R?Q:e("update:model-value",S())},A=(R=!1)=>(R||K(),t.monthPicker?U(y,R):t.timePicker?U(m,R):t.yearPicker?U(H2,R):t.weekPicker?Z(R):O(w(R),!0,R));return{inputValue:f,internalModelValue:c,checkBeforeEmit:()=>c.value?r.value.enabled?r.value.partialRange?c.value.length>=1:c.value.length===2:!!c.value:!1,parseExternalModelValue:j,formatInputValue:K,emitModelValue:A}},ub3=(e,t)=>{const{defaultedFilters:a,propDates:c}=ee(e),{validateMonthYearInRange:n}=Ja(e),r=(u,d)=>{let h=u;return a.value.months.includes(D2(h))?(h=d?v6(u,1):hs(u,1),r(h,d)):h},i=(u,d)=>{let h=u;return a.value.years.includes(H2(h))?(h=d?PJ(u,1):Ig1(u,1),i(h,d)):h},o=(u,d=!1)=>{const h=x3($1(),{month:e.month,year:e.year});let p=u?v6(h,1):hs(h,1);e.disableYearSelect&&(p=ot(p,e.year));let v=D2(p),m=H2(p);a.value.months.includes(v)&&(p=r(p,u),v=D2(p),m=H2(p)),a.value.years.includes(m)&&(p=i(p,u),m=H2(p)),n(v,m,u,e.preventMinMaxNavigation)&&l(v,m,d)},l=(u,d,h)=>{t("update-month-year",{month:u,year:d,fromNav:h})},f=s.computed(()=>u=>Zg1(x3($1(),{month:e.month,year:e.year}),c.value.maxDate,c.value.minDate,e.preventMinMaxNavigation,u));return{handleMonthYearChange:o,isDisabled:f,updateMonthYear:l}};var po=(e=>(e.center="center",e.left="left",e.right="right",e))(po||{});const db3=({menuRef:e,menuRefInner:t,inputRef:a,pickerWrapperRef:c,inline:n,emit:r,props:i,slots:o})=>{const l=s.ref({}),f=s.ref(!1),u=s.ref({top:"0",left:"0"}),d=s.ref(!1),h=s.toRef(i,"teleportCenter");s.watch(h,()=>{u.value=JSON.parse(JSON.stringify({})),k()});const p=T=>{if(i.teleport){const B=T.getBoundingClientRect();return{left:B.left+window.scrollX,top:B.top+window.scrollY}}return{top:0,left:0}},v=(T,B)=>{u.value.left=`${T+B-l.value.width}px`},m=T=>{u.value.left=`${T}px`},y=(T,B)=>{i.position===po.left&&m(T),i.position===po.right&&v(T,B),i.position===po.center&&(u.value.left=`${T+B/2-l.value.width/2}px`)},g=T=>{const{width:B,height:F}=T.getBoundingClientRect(),{top:K,left:G}=i.altPosition?i.altPosition(T):p(T);return{top:+K,left:+G,width:B,height:F}},M=()=>{u.value.left="50%",u.value.top="50%",u.value.transform="translate(-50%, -50%)",u.value.position="fixed",delete u.value.opacity},x=()=>{const T=Pe(a),{top:B,left:F,transform:K}=i.altPosition(T);u.value={top:`${B}px`,left:`${F}px`,transform:K??""}},k=(T=!0)=>{var B;if(!n.value.enabled){if(h.value)return M();if(i.altPosition!==null)return x();if(T){const F=i.teleport?(B=t.value)==null?void 0:B.$el:e.value;F&&(l.value=F.getBoundingClientRect()),r("recalculate-position")}return L()}},b=({inputEl:T,left:B,width:F})=>{window.screen.width>768&&!f.value&&y(B,F),H(T)},_=T=>{const{top:B,left:F,height:K,width:G}=g(T);u.value.top=`${K+B+ +i.offset}px`,d.value=!1,f.value||(u.value.left=`${F+G/2-l.value.width/2}px`),b({inputEl:T,left:F,width:G})},C=T=>{const{top:B,left:F,width:K}=g(T);u.value.top=`${B-+i.offset-l.value.height}px`,d.value=!0,b({inputEl:T,left:F,width:K})},H=T=>{if(i.autoPosition){const{left:B,width:F}=g(T),{left:K,right:G}=l.value;if(!f.value){if(Math.abs(K)!==Math.abs(G)){if(K<=0)return f.value=!0,m(B);if(G>=document.documentElement.clientWidth)return f.value=!0,v(B,F)}return y(B,F)}}},V=()=>{const T=Pe(a);if(T){const{height:B}=l.value,{top:F,height:K}=T.getBoundingClientRect(),G=window.innerHeight-F-K,W=F;return B<=G?Dr.bottom:B>G&&B<=W?Dr.top:G>=W?Dr.bottom:Dr.top}return Dr.bottom},N=T=>V()===Dr.bottom?_(T):C(T),L=()=>{const T=Pe(a);if(T)return i.autoPosition?N(T):_(T)},w=function(T){if(T){const B=T.scrollHeight>T.clientHeight,F=window.getComputedStyle(T).overflowY.indexOf("hidden")!==-1;return B&&!F}return!0},P=function(T){return!T||T===document.body||T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:w(T)?T:P(T.assignedSlot?T.assignedSlot.parentNode:T.parentNode)},j=T=>{if(T)switch(i.position){case po.left:return{left:0,transform:"translateX(0)"};case po.right:return{left:`${T.width}px`,transform:"translateX(-100%)"};default:return{left:`${T.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:d,menuStyle:u,xCorrect:f,setMenuPosition:k,getScrollableParent:P,shadowRender:(T,B)=>{var F,K,G;const W=document.createElement("div"),O=(F=Pe(a))==null?void 0:F.getBoundingClientRect();W.setAttribute("id","dp--temp-container");const E=(K=c.value)!=null&&K.clientWidth?c.value:document.body;E.append(W);const S=j(O),U=s.h(T,{...B,shadow:!0,style:{opacity:0,position:"absolute",...S}},Object.fromEntries(Object.keys(o).filter(Z=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(Z)).map(Z=>[Z,o[Z]])));s.render(U,W),l.value=(G=U.el)==null?void 0:G.getBoundingClientRect(),s.render(null,W),E.removeChild(W)}}},B8=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]}],hb3=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],pb3={all:()=>B8,monthYear:()=>B8.filter(e=>e.use.includes("month-year")),input:()=>hb3,timePicker:()=>B8.filter(e=>e.use.includes("time")),action:()=>B8.filter(e=>e.use.includes("action")),calendar:()=>B8.filter(e=>e.use.includes("calendar")),menu:()=>B8.filter(e=>e.use.includes("menu")),shared:()=>B8.filter(e=>e.use.includes("shared")),yearMode:()=>B8.filter(e=>e.use.includes("year-mode"))},n0=(e,t,a)=>{const c=[];return pb3[t]().forEach(n=>{e[n.name]&&c.push(n.name)}),a!=null&&a.length&&a.forEach(n=>{n.slot&&c.push(n.slot)}),c},bu=e=>{const t=s.computed(()=>c=>e.value?c?e.value.open:e.value.close:""),a=s.computed(()=>c=>e.value?c?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:a}},zu=(e,t)=>{const{defaultedRange:a,defaultedTz:c}=ee(e),n=$1(gt($1(),c.value.timezone)),r=s.ref([{month:D2(n),year:H2(n)}]),i=d=>{const h={hours:M8(n),minutes:Ia(n),seconds:0};return a.value.enabled?[h[d],h[d]]:h[d]},o=s.reactive({hours:i("hours"),minutes:i("minutes"),seconds:i("seconds")});s.watch(a,(d,h)=>{d.enabled!==h.enabled&&(o.hours=i("hours"),o.minutes=i("minutes"),o.seconds=i("seconds"))},{deep:!0});const l=s.computed({get:()=>e.internalModelValue,set:d=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",d)}}),f=s.computed(()=>d=>r.value[d]?r.value[d].month:0),u=s.computed(()=>d=>r.value[d]?r.value[d].year:0);return{calendars:r,time:o,modelValue:l,month:f,year:u,today:n}},mb3=(e,t)=>{const{defaultedMultiCalendars:a,defaultedMultiDates:c,defaultedHighlight:n,defaultedTz:r,propDates:i,defaultedRange:o}=ee(t),{isDisabled:l}=Ja(t),f=s.ref(null),u=s.ref(gt(new Date,r.value.timezone)),d=S=>{!S.current&&t.hideOffsetDates||(f.value=S.value)},h=()=>{f.value=null},p=S=>Array.isArray(e.value)&&o.value.enabled&&e.value[0]&&f.value?S?xe(f.value,e.value[0]):ce(f.value,e.value[0]):!0,v=(S,U)=>{const Z=()=>e.value?U?e.value[0]||null:e.value[1]:null,A=e.value&&Array.isArray(e.value)?Z():null;return O2($1(S.value),A)},m=S=>{const U=Array.isArray(e.value)?e.value[0]:null;return S?!ce(f.value??null,U):!0},y=(S,U=!0)=>(o.value.enabled||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!S.current?!1:O2($1(S.value),e.value[U?0:1]):o.value.enabled?v(S,U)&&m(U)||O2(S.value,Array.isArray(e.value)?e.value[0]:null)&&p(U):!1,g=(S,U)=>{if(Array.isArray(e.value)&&e.value[0]&&e.value.length===1){const Z=O2(S.value,f.value);return U?xe(e.value[0],S.value)&&Z:ce(e.value[0],S.value)&&Z}return!1},M=S=>!e.value||t.hideOffsetDates&&!S.current?!1:o.value.enabled?t.modelAuto&&Array.isArray(e.value)?O2(S.value,e.value[0]?e.value[0]:u.value):!1:c.value.enabled&&Array.isArray(e.value)?e.value.some(U=>O2(U,S.value)):O2(S.value,e.value?e.value:u.value),x=S=>{if(o.value.autoRange||t.weekPicker){if(f.value){if(t.hideOffsetDates&&!S.current)return!1;const U=K0(f.value,+o.value.autoRange),Z=Ut($1(f.value),t.weekStart);return t.weekPicker?O2(Z[1],$1(S.value)):O2(U,$1(S.value))}return!1}return!1},k=S=>{if(o.value.autoRange||t.weekPicker){if(f.value){const U=K0(f.value,+o.value.autoRange);if(t.hideOffsetDates&&!S.current)return!1;const Z=Ut($1(f.value),t.weekStart);return t.weekPicker?xe(S.value,Z[0])&&ce(S.value,Z[1]):xe(S.value,f.value)&&ce(S.value,U)}return!1}return!1},b=S=>{if(o.value.autoRange||t.weekPicker){if(f.value){if(t.hideOffsetDates&&!S.current)return!1;const U=Ut($1(f.value),t.weekStart);return t.weekPicker?O2(U[0],S.value):O2(f.value,S.value)}return!1}return!1},_=S=>Mj(e.value,f.value,S.value),C=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,H=()=>t.modelAuto?$g1(t.internalModelValue):!0,V=S=>{if(t.weekPicker)return!1;const U=o.value.enabled?!y(S)&&!y(S,!1):!0;return!l(S.value)&&!M(S)&&!(!S.current&&t.hideOffsetDates)&&U},N=S=>o.value.enabled?t.modelAuto?C()&&M(S):!1:M(S),L=S=>n.value?Rx3(S.value,i.value.highlight):!1,w=S=>{const U=l(S.value);return U&&(typeof n.value=="function"?!n.value(S.value,U):!n.value.options.highlightDisabled)},P=S=>{var U;return typeof n.value=="function"?n.value(S.value):(U=n.value.weekdays)==null?void 0:U.includes(S.value.getDay())},j=S=>(o.value.enabled||t.weekPicker)&&(!(a.value.count>0)||S.current)&&H()&&!(!S.current&&t.hideOffsetDates)&&!M(S)?_(S):!1,T=S=>{const{isRangeStart:U,isRangeEnd:Z}=G(S),A=o.value.enabled?U||Z:!1;return{dp__cell_offset:!S.current,dp__pointer:!t.disabled&&!(!S.current&&t.hideOffsetDates)&&!l(S.value),dp__cell_disabled:l(S.value),dp__cell_highlight:!w(S)&&(L(S)||P(S))&&!N(S)&&!A&&!b(S)&&!(j(S)&&t.weekPicker)&&!Z,dp__cell_highlight_active:!w(S)&&(L(S)||P(S))&&N(S),dp__today:!t.noToday&&O2(S.value,u.value)&&S.current,"dp--past":ce(S.value,u.value),"dp--future":xe(S.value,u.value)}},B=S=>({dp__active_date:N(S),dp__date_hover:V(S)}),F=S=>{if(e.value&&!Array.isArray(e.value)){const U=Ut(e.value,t.weekStart);return{...O(S),dp__range_start:O2(U[0],S.value),dp__range_end:O2(U[1],S.value),dp__range_between_week:xe(S.value,U[0])&&ce(S.value,U[1])}}return{...O(S)}},K=S=>{if(e.value&&Array.isArray(e.value)){const U=Ut(e.value[0],t.weekStart),Z=e.value[1]?Ut(e.value[1],t.weekStart):[];return{...O(S),dp__range_start:O2(U[0],S.value)||O2(Z[0],S.value),dp__range_end:O2(U[1],S.value)||O2(Z[1],S.value),dp__range_between_week:xe(S.value,U[0])&&ce(S.value,U[1])||xe(S.value,Z[0])&&ce(S.value,Z[1]),dp__range_between:xe(S.value,U[1])&&ce(S.value,Z[0])}}return{...O(S)}},G=S=>{const U=a.value.count>0?S.current&&y(S)&&H():y(S)&&H(),Z=a.value.count>0?S.current&&y(S,!1)&&H():y(S,!1)&&H();return{isRangeStart:U,isRangeEnd:Z}},W=S=>{const{isRangeStart:U,isRangeEnd:Z}=G(S);return{dp__range_start:U,dp__range_end:Z,dp__range_between:j(S),dp__date_hover:O2(S.value,f.value)&&!U&&!Z&&!t.weekPicker,dp__date_hover_start:g(S,!0),dp__date_hover_end:g(S,!1)}},O=S=>({...W(S),dp__cell_auto_range:k(S),dp__cell_auto_range_start:b(S),dp__cell_auto_range_end:x(S)}),E=S=>o.value.enabled?o.value.autoRange?O(S):t.modelAuto?{...B(S),...W(S)}:t.weekPicker?K(S):W(S):t.weekPicker?F(S):B(S);return{setHoverDate:d,clearHoverDate:h,getDayClassData:S=>t.hideOffsetDates&&!S.current?{}:{...T(S),...E(S),[t.dayClass?t.dayClass(S.value):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName}}},Ja=e=>{const{defaultedFilters:t,defaultedRange:a,propDates:c,defaultedMultiDates:n}=ee(e),r=w=>c.value.disabledDates?typeof c.value.disabledDates=="function"?c.value.disabledDates($1(w)):!!M$(w,c.value.disabledDates):!1,i=w=>{const P=c.value.maxDate?xe(w,c.value.maxDate):!1,j=c.value.minDate?ce(w,c.value.minDate):!1,T=r(w),B=t.value.months.map(O=>+O).includes(D2(w)),F=e.disabledWeekDays.length?e.disabledWeekDays.some(O=>+O===Vk3(w)):!1,K=d(w),G=H2(w),W=G<+e.yearRange[0]||G>+e.yearRange[1];return!(P||j||T||B||W||F||K)},o=(w,P)=>ce(...la(c.value.minDate,w,P))||O2(...la(c.value.minDate,w,P)),l=(w,P)=>xe(...la(c.value.maxDate,w,P))||O2(...la(c.value.maxDate,w,P)),f=(w,P,j)=>{let T=!1;return c.value.maxDate&&j&&l(w,P)&&(T=!0),c.value.minDate&&!j&&o(w,P)&&(T=!0),T},u=(w,P,j,T)=>{let B=!1;return T?c.value.minDate&&c.value.maxDate?B=f(w,P,j):(c.value.minDate&&o(w,P)||c.value.maxDate&&l(w,P))&&(B=!0):B=!0,B},d=w=>Array.isArray(c.value.allowedDates)&&!c.value.allowedDates.length?!0:c.value.allowedDates?!M$(w,c.value.allowedDates):!1,h=w=>!i(w),p=w=>a.value.noDisabledRange?!Cg1({start:w[0],end:w[1]}).some(P=>h(P)):!0,v=w=>{if(w){const P=H2(w);return P>=+e.yearRange[0]&&P<=e.yearRange[1]}return!0},m=(w,P)=>!!(Array.isArray(w)&&w[P]&&(a.value.maxRange||a.value.minRange)&&v(w[P])),y=(w,P,j=0)=>{if(m(P,j)&&v(w)){const T=bg1(w,P[j]),B=Yg1(P[j],w),F=B.length===1?0:B.filter(G=>h(G)).length,K=Math.abs(T)-(a.value.minMaxRawRange?0:F);if(a.value.minRange&&a.value.maxRange)return K>=+a.value.minRange&&K<=+a.value.maxRange;if(a.value.minRange)return K>=+a.value.minRange;if(a.value.maxRange)return K<=+a.value.maxRange}return!0},g=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,M=w=>Array.isArray(w)?[w[0]?jW(w[0]):null,w[1]?jW(w[1]):null]:jW(w),x=(w,P,j)=>w.find(T=>+T.hours===M8(P)&&T.minutes==="*"?!0:+T.minutes===Ia(P)&&+T.hours===M8(P))&&j,k=(w,P,j)=>{const[T,B]=w,[F,K]=P;return!x(T,F,j)&&!x(B,K,j)&&j},b=(w,P)=>{const j=Array.isArray(P)?P:[P];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?k(e.disabledTimes,j,w):!j.some(T=>x(e.disabledTimes,T,w)):w},_=(w,P)=>{const j=Array.isArray(P)?[ni(P[0]),P[1]?ni(P[1]):void 0]:ni(P),T=!e.disabledTimes(j);return w&&T},C=(w,P)=>e.disabledTimes?Array.isArray(e.disabledTimes)?b(P,w):_(P,w):P,H=w=>{let P=!0;if(!w||g())return!0;const j=!c.value.minDate&&!c.value.maxDate?M(w):w;return(e.maxTime||c.value.maxDate)&&(P=F81(e.maxTime,c.value.maxDate,"max",Ye(j),P)),(e.minTime||c.value.minDate)&&(P=F81(e.minTime,c.value.minDate,"min",Ye(j),P)),C(w,P)},V=w=>{if(!e.monthPicker)return!0;let P=!0;const j=$1(Q0(w));if(c.value.minDate&&c.value.maxDate){const T=$1(Q0(c.value.minDate)),B=$1(Q0(c.value.maxDate));return xe(j,T)&&ce(j,B)||O2(j,T)||O2(j,B)}if(c.value.minDate){const T=$1(Q0(c.value.minDate));P=xe(j,T)||O2(j,T)}if(c.value.maxDate){const T=$1(Q0(c.value.maxDate));P=ce(j,T)||O2(j,T)}return P},N=s.computed(()=>w=>!e.enableTimePicker||e.ignoreTimeValidation?!0:H(w)),L=s.computed(()=>w=>e.monthPicker?Array.isArray(w)&&(a.value.enabled||n.value.enabled)?!w.filter(P=>!V(P)).length:V(w):!0);return{isDisabled:h,validateDate:i,validateMonthYearInRange:u,isDateRangeAllowed:p,checkMinMaxRange:y,isValidTime:H,isTimeValid:N,isMonthValid:L}},kj=()=>{const e=s.computed(()=>(c,n)=>c==null?void 0:c.includes(n)),t=s.computed(()=>(c,n)=>c.count?c.solo?!0:n===0:!0),a=s.computed(()=>(c,n)=>c.count?c.solo?!0:n===c.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:t,showRightIcon:a}},vb3=(e,t,a)=>{const c=s.ref(0),n=s.reactive({[ci.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[ci.calendar]:!1,[ci.header]:!1}),r=s.computed(()=>e.monthPicker||e.timePicker),i=d=>{var h;if((h=e.flow)!=null&&h.length){if(!d&&r.value)return u();n[d]=!0,Object.keys(n).filter(p=>!n[p]).length||u()}},o=()=>{var d;(d=e.flow)!=null&&d.length&&c.value!==-1&&(c.value+=1,t("flow-step",c.value),u())},l=()=>{c.value=-1},f=(d,h,...p)=>{var v,m;e.flow[c.value]===d&&a.value&&((m=(v=a.value)[h])==null||m.call(v,...p))},u=()=>{f(d4.month,"toggleMonthPicker",!0),f(d4.year,"toggleYearPicker",!0),f(d4.calendar,"toggleTimePicker",!1,!0),f(d4.time,"toggleTimePicker",!0,!0);const d=e.flow[c.value];(d===d4.hours||d===d4.minutes||d===d4.seconds)&&f(d,"toggleTimePicker",!0,!0,d)};return{childMount:i,updateFlowStep:o,resetFlow:l,flowStep:c}},xj={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},emitTimezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},calendarClassName:{type:String,default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0}},T6={...xj,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})}},yb3={key:1,class:"dp__input_wrap"},gb3=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],Mb3={key:2,class:"dp__clear_icon"},kb3=s.defineComponent({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...xj},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:a}){const c=a,n=e,{defaultedTextInput:r,defaultedAriaLabels:i,defaultedInline:o,defaultedConfig:l,defaultedRange:f,defaultedMultiDates:u,getDefaultPattern:d,getDefaultStartTime:h}=ee(n),{checkMinMaxRange:p}=Ja(n),v=s.ref(),m=s.ref(null),y=s.ref(!1),g=s.ref(!1),M=s.computed(()=>({dp__pointer:!n.disabled&&!n.readonly&&!r.value.enabled,dp__disabled:n.disabled,dp__input_readonly:!r.value.enabled,dp__input:!0,dp__input_icon_pad:!n.hideInputIcon,dp__input_valid:!!n.state,dp__input_invalid:n.state===!1,dp__input_focus:y.value||n.isMenuOpen,dp__input_reg:!r.value.enabled,[n.inputClassName]:!!n.inputClassName})),x=()=>{c("set-input-date",null),n.clearable&&n.autoApply&&(c("set-empty-date"),v.value=null)},k=B=>{const F=h();return Fx3(B,r.value.format??d(),F??Gg1({},n.enableSeconds),n.inputValue,g.value,n.formatLocale)},b=B=>{const{rangeSeparator:F}=r.value,[K,G]=B.split(`${F}`);if(K){const W=k(K.trim()),O=G?k(G.trim()):null;if(ds(W,O))return;const E=W&&O?[W,O]:[W];p(O,E,0)&&(v.value=W?E:null)}},_=()=>{g.value=!0},C=B=>{if(f.value.enabled)b(B);else if(u.value.enabled){const F=B.split(";");v.value=F.map(K=>k(K.trim())).filter(K=>K)}else v.value=k(B)},H=B=>{var F;const K=typeof B=="string"?B:(F=B.target)==null?void 0:F.value;K!==""?(r.value.openMenu&&!n.isMenuOpen&&c("open"),C(K),c("set-input-date",v.value)):x(),g.value=!1,c("update:input-value",K)},V=B=>{r.value.enabled?(C(B.target.value),r.value.enterSubmit&&dZ(v.value)&&n.inputValue!==""?(c("set-input-date",v.value,!0),v.value=null):r.value.enterSubmit&&n.inputValue===""&&(v.value=null,c("clear"))):w(B)},N=B=>{r.value.enabled&&r.value.tabSubmit&&C(B.target.value),r.value.tabSubmit&&dZ(v.value)&&n.inputValue!==""?(c("set-input-date",v.value,!0,!0),v.value=null):r.value.tabSubmit&&n.inputValue===""&&(v.value=null,c("clear",!0))},L=()=>{y.value=!0,c("focus"),s.nextTick().then(()=>{var B;r.value.enabled&&r.value.selectOnFocus&&((B=m.value)==null||B.select())})},w=B=>{B.preventDefault(),za(B,l.value,!0),r.value.enabled&&r.value.openMenu&&!o.value.input&&!n.isMenuOpen?c("open"):r.value.enabled||c("toggle")},P=()=>{c("real-blur"),y.value=!1,(!n.isMenuOpen||o.value.enabled&&o.value.input)&&c("blur"),n.autoApply&&r.value.enabled&&v.value&&!n.isMenuOpen&&(c("set-input-date",v.value),c("select-date"),v.value=null)},j=B=>{za(B,l.value,!0),c("clear")},T=B=>{if(B.key==="Tab"&&N(B),B.key==="Enter"&&V(B),!r.value.enabled){if(B.code==="Tab")return;B.preventDefault()}};return t({focusInput:()=>{var B;(B=m.value)==null||B.focus({preventScroll:!0})},setParsedDate:B=>{v.value=B}}),(B,F)=>{var K;return s.openBlock(),s.createElementBlock("div",{onClick:w},[B.$slots.trigger&&!B.$slots["dp-input"]&&!s.unref(o).enabled?s.renderSlot(B.$slots,"trigger",{key:0}):s.createCommentVNode("",!0),!B.$slots.trigger&&(!s.unref(o).enabled||s.unref(o).input)?(s.openBlock(),s.createElementBlock("div",yb3,[B.$slots["dp-input"]&&!B.$slots.trigger&&(!s.unref(o).enabled||s.unref(o).enabled&&s.unref(o).input)?s.renderSlot(B.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:H,onEnter:V,onTab:N,onClear:j,onBlur:P,onKeypress:T,onPaste:_,openMenu:()=>B.$emit("open"),closeMenu:()=>B.$emit("close"),toggleMenu:()=>B.$emit("toggle")}):s.createCommentVNode("",!0),B.$slots["dp-input"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("input",{key:1,id:B.uid?`dp-input-${B.uid}`:void 0,ref_key:"inputRef",ref:m,"data-test":"dp-input",name:B.name,class:s.normalizeClass(M.value),inputmode:s.unref(r).enabled?"text":"none",placeholder:B.placeholder,disabled:B.disabled,readonly:B.readonly,required:B.required,value:e.inputValue,autocomplete:B.autocomplete,"aria-label":(K=s.unref(i))==null?void 0:K.input,"aria-disabled":B.disabled||void 0,"aria-invalid":B.state===!1?!0:void 0,onInput:H,onBlur:P,onFocus:L,onKeypress:T,onKeydown:T,onPaste:_},null,42,gb3)),s.createElementVNode("div",{onClick:F[2]||(F[2]=G=>c("toggle"))},[B.$slots["input-icon"]&&!B.hideInputIcon?(s.openBlock(),s.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:F[0]||(F[0]=G=>c("toggle"))},[s.renderSlot(B.$slots,"input-icon")])):s.createCommentVNode("",!0),!B.$slots["input-icon"]&&!B.hideInputIcon&&!B.$slots["dp-input"]?(s.openBlock(),s.createBlock(s.unref(As),{key:1,class:"dp__input_icon dp__input_icons",onClick:F[1]||(F[1]=G=>c("toggle"))})):s.createCommentVNode("",!0)]),B.$slots["clear-icon"]&&e.inputValue&&B.clearable&&!B.disabled&&!B.readonly?(s.openBlock(),s.createElementBlock("span",Mb3,[s.renderSlot(B.$slots,"clear-icon",{clear:j})])):s.createCommentVNode("",!0),B.clearable&&!B.$slots["clear-icon"]&&e.inputValue&&!B.disabled&&!B.readonly?(s.openBlock(),s.createBlock(s.unref(Bg1),{key:3,class:"dp__clear_icon dp__input_icons","data-test":"clear-icon",onClick:F[3]||(F[3]=s.withModifiers(G=>j(G),["prevent"]))})):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])}}}),xb3=["title"],bb3=["disabled"],zb3=s.defineComponent({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...T6},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const a=t,c=e,{defaultedActionRow:n,defaultedPreviewFormat:r,defaultedMultiCalendars:i,defaultedTextInput:o,defaultedInline:l,defaultedRange:f,defaultedMultiDates:u,getDefaultPattern:d}=ee(c),{isTimeValid:h,isMonthValid:p}=Ja(c),{buildMatrix:v}=Qa(),m=s.ref(null),y=s.ref(null),g=s.ref(!1),M=s.ref({}),x=s.ref(null),k=s.ref(null);s.onMounted(()=>{c.arrowNavigation&&v([Pe(m),Pe(y)],"actionRow"),b(),window.addEventListener("resize",b)}),s.onUnmounted(()=>{window.removeEventListener("resize",b)});const b=()=>{g.value=!1,setTimeout(()=>{var T,B;const F=(T=x.value)==null?void 0:T.getBoundingClientRect(),K=(B=k.value)==null?void 0:B.getBoundingClientRect();F&&K&&(M.value.maxWidth=`${K.width-F.width-20}px`),g.value=!0},0)},_=s.computed(()=>f.value.enabled&&!f.value.partialRange&&c.internalModelValue?c.internalModelValue.length===2:!0),C=s.computed(()=>!h.value(c.internalModelValue)||!p.value(c.internalModelValue)||!_.value),H=()=>{const T=r.value;return c.timePicker||c.monthPicker,T(Ye(c.internalModelValue))},V=()=>{const T=c.internalModelValue;return i.value.count>0?`${N(T[0])} - ${N(T[1])}`:[N(T[0]),N(T[1])]},N=T=>Xg1(T,r.value,c.formatLocale,o.value.rangeSeparator,c.modelAuto,d()),L=s.computed(()=>!c.internalModelValue||!c.menuMount?"":typeof r.value=="string"?Array.isArray(c.internalModelValue)?c.internalModelValue.length===2&&c.internalModelValue[1]?V():u.value.enabled?c.internalModelValue.map(T=>`${N(T)}`):c.modelAuto?`${N(c.internalModelValue[0])}`:`${N(c.internalModelValue[0])} -`:N(c.internalModelValue):H()),w=()=>u.value.enabled?"; ":" - ",P=s.computed(()=>Array.isArray(L.value)?L.value.join(w()):L.value),j=()=>{h.value(c.internalModelValue)&&p.value(c.internalModelValue)&&_.value?a("select-date"):a("invalid-select")};return(T,B)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"actionRowRef",ref:k,class:"dp__action_row"},[T.$slots["action-row"]?s.renderSlot(T.$slots,"action-row",s.normalizeProps(s.mergeProps({key:0},{internalModelValue:T.internalModelValue,disabled:C.value,selectDate:()=>T.$emit("select-date"),closePicker:()=>T.$emit("close-picker")}))):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.unref(n).showPreview?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__selection_preview",title:P.value,style:s.normalizeStyle(M.value)},[T.$slots["action-preview"]&&g.value?s.renderSlot(T.$slots,"action-preview",{key:0,value:T.internalModelValue}):s.createCommentVNode("",!0),!T.$slots["action-preview"]&&g.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(P.value),1)],64)):s.createCommentVNode("",!0)],12,xb3)):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"actionBtnContainer",ref:x,class:"dp__action_buttons","data-dp-element":"action-row"},[T.$slots["action-buttons"]?s.renderSlot(T.$slots,"action-buttons",{key:0,value:T.internalModelValue}):s.createCommentVNode("",!0),T.$slots["action-buttons"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!s.unref(l).enabled&&s.unref(n).showCancel?(s.openBlock(),s.createElementBlock("button",{key:0,ref_key:"cancelButtonRef",ref:m,type:"button",class:"dp__action_button dp__action_cancel",onClick:B[0]||(B[0]=F=>T.$emit("close-picker")),onKeydown:B[1]||(B[1]=F=>s.unref(Y4)(F,()=>T.$emit("close-picker")))},s.toDisplayString(T.cancelText),545)):s.createCommentVNode("",!0),s.unref(n).showNow?(s.openBlock(),s.createElementBlock("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:B[2]||(B[2]=F=>T.$emit("select-now")),onKeydown:B[3]||(B[3]=F=>s.unref(Y4)(F,()=>T.$emit("select-now")))},s.toDisplayString(T.nowButtonLabel),33)):s.createCommentVNode("",!0),s.unref(n).showSelect?(s.openBlock(),s.createElementBlock("button",{key:2,ref_key:"selectButtonRef",ref:y,type:"button",class:"dp__action_button dp__action_select",disabled:C.value,"data-test":"select-button",onKeydown:B[4]||(B[4]=F=>s.unref(Y4)(F,()=>j())),onClick:j},s.toDisplayString(T.selectText),41,bb3)):s.createCommentVNode("",!0)],64))],512)],64))],512))}}),Cb3={class:"dp__selection_grid_header"},_b3=["aria-selected","aria-disabled","data-test","onClick","onKeydown","onMouseover"],wb3=["aria-label"],Cu=s.defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:a}){const{setSelectionGrid:c,buildMultiLevelMatrix:n,setMonthPicker:r}=Qa(),i=a,o=e,{defaultedAriaLabels:l,defaultedTextInput:f,defaultedConfig:u}=ee(o),{hideNavigationButtons:d}=kj(),h=s.ref(!1),p=s.ref(null),v=s.ref(null),m=s.ref([]),y=s.ref(),g=s.ref(null),M=s.ref(0),x=s.ref(null);s.onBeforeUpdate(()=>{p.value=null}),s.onMounted(()=>{s.nextTick().then(()=>L()),o.noOverlayFocus||b(),k(!0)}),s.onUnmounted(()=>k(!1));const k=E=>{var S;o.arrowNavigation&&((S=o.headerRefs)!=null&&S.length?r(E):c(E))},b=()=>{var E;const S=Pe(v);S&&(f.value.enabled||(p.value?(E=p.value)==null||E.focus({preventScroll:!0}):S.focus({preventScroll:!0})),h.value=S.clientHeight<S.scrollHeight)},_=s.computed(()=>({dp__overlay:!0,"dp--overlay-absolute":!o.useRelative,"dp--overlay-relative":o.useRelative})),C=s.computed(()=>o.useRelative?{height:`${o.height}px`,width:"260px"}:void 0),H=s.computed(()=>({dp__overlay_col:!0})),V=s.computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:h.value,dp__button_bottom:o.isLast})),N=s.computed(()=>{var E,S;return{dp__overlay_container:!0,dp__container_flex:((E=o.items)==null?void 0:E.length)<=6,dp__container_block:((S=o.items)==null?void 0:S.length)>6}});s.watch(()=>o.items,()=>L(!1),{deep:!0});const L=(E=!0)=>{s.nextTick().then(()=>{const S=Pe(p),U=Pe(v),Z=Pe(g),A=Pe(x),R=Z?Z.getBoundingClientRect().height:0;U&&(U.getBoundingClientRect().height?M.value=U.getBoundingClientRect().height-R:M.value=u.value.modeHeight-R),S&&A&&E&&(A.scrollTop=S.offsetTop-A.offsetTop-(M.value/2-S.getBoundingClientRect().height)-R)})},w=E=>{E.disabled||i("selected",E.value)},P=()=>{i("toggle"),i("reset-flow")},j=()=>{o.escClose&&P()},T=(E,S,U,Z)=>{E&&((S.active||S.value===o.focusValue)&&(p.value=E),o.arrowNavigation&&(Array.isArray(m.value[U])?m.value[U][Z]=E:m.value[U]=[E],B()))},B=()=>{var E,S;const U=(E=o.headerRefs)!=null&&E.length?[o.headerRefs].concat(m.value):m.value.concat([o.skipButtonRef?[]:[g.value]]);n(Ye(U),(S=o.headerRefs)!=null&&S.length?"monthPicker":"selectionGrid")},F=E=>{o.arrowNavigation||za(E,u.value,!0)},K=E=>{y.value=E,i("hover-value",E)},G=()=>{if(P(),!o.isLast){const E=Bx3(o.menuWrapRef??null,"action-row");if(E){const S=qg1(E);S==null||S.focus()}}},W=E=>{switch(E.key){case G3.esc:return j();case G3.arrowLeft:return F(E);case G3.arrowRight:return F(E);case G3.arrowUp:return F(E);case G3.arrowDown:return F(E);default:return}},O=E=>{if(E.key===G3.enter)return P();if(E.key===G3.tab)return G()};return t({focusGrid:b}),(E,S)=>{var U;return s.openBlock(),s.createElementBlock("div",{ref_key:"gridWrapRef",ref:v,class:s.normalizeClass(_.value),style:s.normalizeStyle(C.value),role:"dialog",tabindex:"0",onKeydown:W},[s.createElementVNode("div",{ref_key:"containerRef",ref:x,class:s.normalizeClass(N.value),role:"grid",style:s.normalizeStyle({"--dp-overlay-height":`${M.value}px`})},[s.createElementVNode("div",Cb3,[s.renderSlot(E.$slots,"header")]),E.$slots.overlay?s.renderSlot(E.$slots,"overlay",{key:0}):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(E.items,(Z,A)=>(s.openBlock(),s.createElementBlock("div",{key:A,class:s.normalizeClass(["dp__overlay_row",{dp__flex_row:E.items.length>=3}]),role:"row"},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(Z,(R,Q)=>(s.openBlock(),s.createElementBlock("div",{key:R.value,ref_for:!0,ref:c1=>T(c1,R,A,Q),role:"gridcell",class:s.normalizeClass(H.value),"aria-selected":R.active||void 0,"aria-disabled":R.disabled||void 0,tabindex:"0","data-test":R.text,onClick:c1=>w(R),onKeydown:c1=>s.unref(Y4)(c1,()=>w(R),!0),onMouseover:c1=>K(R.value)},[s.createElementVNode("div",{class:s.normalizeClass(R.className)},[E.$slots.item?s.renderSlot(E.$slots,"item",{key:0,item:R}):s.createCommentVNode("",!0),E.$slots.item?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(R.text),1)],64))],2)],42,_b3))),128))],2))),128))],6),E.$slots["button-icon"]?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:0,ref_key:"toggleButton",ref:g,type:"button","aria-label":(U=s.unref(l))==null?void 0:U.toggleOverlay,class:s.normalizeClass(V.value),tabindex:"0",onClick:P,onKeydown:O},[s.renderSlot(E.$slots,"button-icon")],42,wb3)),[[s.vShow,!s.unref(d)(E.hideNavigation,E.type)]]):s.createCommentVNode("",!0)],38)}}}),bj=s.defineComponent({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean}},setup(e){const t=e,a=s.computed(()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0]),c=s.computed(()=>({dp__instance_calendar:t.multiCalendars>0}));return(n,r)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({dp__menu_inner:!n.stretch,"dp--menu--inner-stretched":n.stretch,dp__flex_display:n.multiCalendars>0,"dp--flex-display-collapsed":n.collapse})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.value,(i,o)=>(s.openBlock(),s.createElementBlock("div",{key:i,class:s.normalizeClass(c.value)},[s.renderSlot(n.$slots,"default",{instance:i,index:o})],2))),128))],2))}}),Hb3=["aria-label","aria-disabled"],ml=s.defineComponent({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const a=t,c=s.ref(null);return s.onMounted(()=>a("set-ref",c)),(n,r)=>(s.openBlock(),s.createElementBlock("button",{ref_key:"elRef",ref:c,type:"button",class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":n.ariaLabel,"aria-disabled":n.disabled||void 0,onClick:r[0]||(r[0]=i=>n.$emit("activate")),onKeydown:r[1]||(r[1]=i=>s.unref(Y4)(i,()=>n.$emit("activate"),!0))},[s.createElementVNode("span",{class:s.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:n.disabled}])},[s.renderSlot(n.$slots,"default")],2)],40,Hb3))}}),Lb3={class:"dp--year-mode-picker"},Vb3=["aria-label","data-test"],Jg1=s.defineComponent({__name:"YearModePicker",props:{...T6,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:t}){const a=t,c=e,{showRightIcon:n,showLeftIcon:r}=kj(),{defaultedConfig:i,defaultedMultiCalendars:o,defaultedAriaLabels:l,defaultedTransitions:f}=ee(c),{showTransition:u,transitionName:d}=bu(f),h=(m=!1,y)=>{a("toggle-year-picker",{flow:m,show:y})},p=m=>{a("year-select",m)},v=(m=!1)=>{a("handle-year",m)};return(m,y)=>{var g,M,x;return s.openBlock(),s.createElementBlock("div",Lb3,[s.unref(r)(s.unref(o),e.instance)?(s.openBlock(),s.createBlock(ml,{key:0,ref:"mpPrevIconRef","aria-label":(g=s.unref(l))==null?void 0:g.prevYear,disabled:e.isDisabled(!1),onActivate:y[0]||(y[0]=k=>v(!1))},{default:s.withCtx(()=>[m.$slots["arrow-left"]?s.renderSlot(m.$slots,"arrow-left",{key:0}):s.createCommentVNode("",!0),m.$slots["arrow-left"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(UJ),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.createElementVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":(M=s.unref(l))==null?void 0:M.openYearsOverlay,"data-test":`year-mode-btn-${e.instance}`,onClick:y[1]||(y[1]=()=>h(!1)),onKeydown:y[2]||(y[2]=s.withKeys(()=>h(!1),["enter"]))},[m.$slots.year?s.renderSlot(m.$slots,"year",{key:0,year:e.year}):s.createCommentVNode("",!0),m.$slots.year?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(e.year),1)],64))],40,Vb3),s.unref(n)(s.unref(o),e.instance)?(s.openBlock(),s.createBlock(ml,{key:1,ref:"mpNextIconRef","aria-label":(x=s.unref(l))==null?void 0:x.nextYear,disabled:e.isDisabled(!0),onActivate:y[3]||(y[3]=k=>v(!0))},{default:s.withCtx(()=>[m.$slots["arrow-right"]?s.renderSlot(m.$slots,"arrow-right",{key:0}):s.createCommentVNode("",!0),m.$slots["arrow-right"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(WJ),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:s.unref(d)(e.showYearPicker),css:s.unref(u)},{default:s.withCtx(()=>[e.showYearPicker?(s.openBlock(),s.createBlock(Cu,{key:0,items:e.items,"text-input":m.textInput,"esc-close":m.escClose,config:m.config,"is-last":m.autoApply&&!s.unref(i).keepActionRow,"hide-navigation":m.hideNavigation,"aria-labels":m.ariaLabels,type:"year",onToggle:h,onSelected:y[4]||(y[4]=k=>p(k))},s.createSlots({"button-icon":s.withCtx(()=>[m.$slots["calendar-icon"]?s.renderSlot(m.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),m.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(As),{key:1}))]),_:2},[m.$slots["year-overlay-value"]?{name:"item",fn:s.withCtx(({item:k})=>[s.renderSlot(m.$slots,"year-overlay-value",{text:k.text,value:k.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels"])):s.createCommentVNode("",!0)]),_:3},8,["name","css"])])}}}),e11=(e,t,a)=>{if(t.value&&Array.isArray(t.value))if(t.value.some(c=>O2(e,c))){const c=t.value.filter(n=>!O2(n,e));t.value=c.length?c:null}else(a&&+a>t.value.length||!a)&&t.value.push(e);else t.value=[e]},t11=(e,t,a)=>{let c=e.value?e.value.slice():[];return c.length===2&&c[1]!==null&&(c=[]),c.length?ce(t,c[0])?(c.unshift(t),a("range-start",c[0]),a("range-start",c[1])):(c[1]=t,a("range-end",t)):(c=[t],a("range-start",t)),c},zj=(e,t,a,c)=>{e&&(e[0]&&e[1]&&a&&t("auto-apply"),e[0]&&!e[1]&&c&&a&&t("auto-apply"))},eM1=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(t=>gt($1(t),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=gt($1(e.value),e.timezone))},tM1=(e,t,a,c)=>Array.isArray(t.value)&&(t.value.length===2||t.value.length===1&&c.value.partialRange)?c.value.fixedStart&&(xe(e,t.value[0])||O2(e,t.value[0]))?[t.value[0],e]:c.value.fixedEnd&&(ce(e,t.value[1])||O2(e,t.value[1]))?[e,t.value[1]]:(a("invalid-fixed-range",e),t.value):[],aM1=({multiCalendars:e,highlight:t,propDates:a,calendars:c,modelValue:n,props:r,filters:i,year:o,month:l,emit:f})=>{const u=s.computed(()=>XJ(r.yearRange,r.locale,r.reverseYears)),d=s.ref([!1]),h=s.computed(()=>(_,C)=>{const H=x3(Q0(new Date),{month:l.value(_),year:o.value(_)}),V=C?_g1(H):OJ(H);return Zg1(V,a.value.maxDate,a.value.minDate,r.preventMinMaxNavigation,C)}),p=()=>{for(let _=0;_<e.value.count;_++)if(_===0)c.value[_]=c.value[0];else{const C=x3($1(),c.value[_-1]);c.value[_]={month:D2(C),year:H2(PJ(C,1))}}},v=_=>{if(!_)return p();const C=x3($1(),c.value[_]);return c.value[0].year=H2(Ig1(C,e.value.count-1)),p()},m=_=>r.focusStartDate?_[0]:_[1]?_[1]:_[0],y=()=>{if(n.value){const _=Array.isArray(n.value)?m(n.value):n.value;c.value[0]={month:D2(_),year:H2(_)}}};s.onMounted(()=>{y(),e.value.count&&p()});const g=(_,C)=>{c.value[C].year=_,f("update-month-year",{instance:C,year:_,month:c.value[C].month}),e.value.count&&!e.value.solo&&v(C)},M=s.computed(()=>_=>ps(u.value,C=>{var H;const V=o.value(_)===C.value,N=zf(C.value,ms(a.value.minDate),ms(a.value.maxDate))||((H=i.value.years)==null?void 0:H.includes(o.value(_))),L=JJ(t.value,C.value);return{active:V,disabled:N,highlighted:L}})),x=(_,C)=>{g(_,C),b(C)},k=(_,C=!1)=>{if(!h.value(_,C)){const H=C?o.value(_)+1:o.value(_)-1;g(H,_)}},b=(_,C=!1,H)=>{C||f("reset-flow"),H!==void 0?d.value[_]=H:d.value[_]=!d.value[_],d.value[_]?f("overlay-toggle",{open:!0,overlay:d4.year}):(f("overlay-closed"),f("overlay-toggle",{open:!1,overlay:d4.year}))};return{isDisabled:h,groupedYears:M,showYearPicker:d,selectYear:g,toggleYearPicker:b,handleYearSelect:x,handleYear:k}},Sb3=(e,t)=>{const{defaultedMultiCalendars:a,defaultedAriaLabels:c,defaultedTransitions:n,defaultedConfig:r,defaultedRange:i,defaultedHighlight:o,propDates:l,defaultedTz:f,defaultedFilters:u,defaultedMultiDates:d}=ee(e),{modelValue:h,year:p,month:v,calendars:m}=zu(e,t),y=s.computed(()=>Fg1(e.formatLocale,e.locale,e.monthNameFormat)),g=s.ref(null),{checkMinMaxRange:M}=Ja(e),{selectYear:x,groupedYears:k,showYearPicker:b,toggleYearPicker:_,handleYearSelect:C,handleYear:H,isDisabled:V}=aM1({modelValue:h,multiCalendars:a,highlight:o,calendars:m,year:p,propDates:l,month:v,filters:u,props:e,emit:t});s.onMounted(()=>{e.startDate&&(h.value&&e.focusStartDate||!h.value)&&x(H2($1(e.startDate)),0)});const N=S=>S?{month:D2(S),year:H2(S)}:{month:null,year:null},L=()=>h.value?Array.isArray(h.value)?h.value.map(S=>N(S)):N(h.value):N(),w=(S,U)=>{const Z=m.value[S],A=L();return Array.isArray(A)?A.some(R=>R.year===(Z==null?void 0:Z.year)&&R.month===U):(Z==null?void 0:Z.year)===A.year&&U===A.month},P=(S,U,Z)=>{var A,R;const Q=L();return Array.isArray(Q)?p.value(U)===((A=Q[Z])==null?void 0:A.year)&&S===((R=Q[Z])==null?void 0:R.month):!1},j=(S,U)=>{if(i.value.enabled){const Z=L();if(Array.isArray(h.value)&&Array.isArray(Z)){const A=P(S,U,0)||P(S,U,1),R=a8(Q0($1()),S,p.value(U));return Mj(h.value,g.value,R)&&!A}return!1}return!1},T=s.computed(()=>S=>ps(y.value,U=>{var Z;const A=w(S,U.value),R=zf(U.value,Ug1(p.value(S),l.value.minDate),Wg1(p.value(S),l.value.maxDate))||Yx3(l.value.disabledDates,p.value(S)).includes(U.value)||((Z=u.value.months)==null?void 0:Z.includes(U.value)),Q=j(U.value,S),c1=Kg1(o.value,U.value,p.value(S));return{active:A,disabled:R,isBetween:Q,highlighted:c1}})),B=(S,U)=>a8(Q0($1()),S,p.value(U)),F=(S,U)=>{const Z=h.value?h.value:Q0(new Date);h.value=a8(Z,S,p.value(U)),t("auto-apply"),t("update-flow-step")},K=(S,U)=>{const Z=B(S,U);i.value.fixedEnd||i.value.fixedStart?h.value=tM1(Z,h,t,i):h.value?M(Z,h.value)&&(h.value=t11(h,B(S,U),t)):h.value=[B(S,U)],s.nextTick().then(()=>{zj(h.value,t,e.autoApply,e.modelAuto)})},G=(S,U)=>{e11(B(S,U),h,d.value.limit),t("auto-apply",!0)},W=(S,U)=>(m.value[U].month=S,E(U,m.value[U].year,S),d.value.enabled?G(S,U):i.value.enabled?K(S,U):F(S,U)),O=(S,U)=>{x(S,U),E(U,S,null)},E=(S,U,Z)=>{let A=Z;if(!A&&A!==0){const R=L();A=Array.isArray(R)?R[S].month:R.month}t("update-month-year",{instance:S,year:U,month:A})};return{groupedMonths:T,groupedYears:k,year:p,isDisabled:V,defaultedMultiCalendars:a,defaultedAriaLabels:c,defaultedTransitions:n,defaultedConfig:r,showYearPicker:b,modelValue:h,presetDate:(S,U)=>{eM1({value:S,modelValue:h,range:i.value.enabled,timezone:U?void 0:f.value.timezone}),t("auto-apply")},setHoverDate:(S,U)=>{g.value=B(S,U)},selectMonth:W,selectYear:O,toggleYearPicker:_,handleYearSelect:C,handleYear:H,getModelMonthYear:L}},Nb3=s.defineComponent({compatConfig:{MODE:3},__name:"MonthPicker",props:{...T6},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=s.useSlots(),r=n0(n,"yearMode"),i=e;s.onMounted(()=>{i.shadow||c("mount",null)});const{groupedMonths:o,groupedYears:l,year:f,isDisabled:u,defaultedMultiCalendars:d,defaultedConfig:h,showYearPicker:p,modelValue:v,presetDate:m,setHoverDate:y,selectMonth:g,selectYear:M,toggleYearPicker:x,handleYearSelect:k,handleYear:b,getModelMonthYear:_}=Sb3(i,c);return t({getSidebarProps:()=>({modelValue:v,year:f,getModelMonthYear:_,selectMonth:g,selectYear:M,handleYear:b}),presetDate:m,toggleYearPicker:C=>x(0,C)}),(C,H)=>(s.openBlock(),s.createBlock(bj,{"multi-calendars":s.unref(d).count,collapse:C.collapse,stretch:""},{default:s.withCtx(({instance:V})=>[C.$slots["top-extra"]?s.renderSlot(C.$slots,"top-extra",{key:0,value:C.internalModelValue}):s.createCommentVNode("",!0),C.$slots["month-year"]?s.renderSlot(C.$slots,"month-year",s.normalizeProps(s.mergeProps({key:1},{year:s.unref(f),months:s.unref(o)(V),years:s.unref(l)(V),selectMonth:s.unref(g),selectYear:s.unref(M),instance:V}))):(s.openBlock(),s.createBlock(Cu,{key:2,items:s.unref(o)(V),"arrow-navigation":C.arrowNavigation,"is-last":C.autoApply&&!s.unref(h).keepActionRow,"esc-close":C.escClose,height:s.unref(h).modeHeight,config:C.config,"no-overlay-focus":!!(C.noOverlayFocus||C.textInput),"use-relative":"",type:"month",onSelected:N=>s.unref(g)(N,V),onHoverValue:N=>s.unref(y)(N,V)},s.createSlots({header:s.withCtx(()=>[s.createVNode(Jg1,s.mergeProps(C.$props,{items:s.unref(l)(V),instance:V,"show-year-picker":s.unref(p)[V],year:s.unref(f)(V),"is-disabled":N=>s.unref(u)(V,N),onHandleYear:N=>s.unref(b)(V,N),onYearSelect:N=>s.unref(k)(N,V),onToggleYearPicker:N=>s.unref(x)(V,N==null?void 0:N.flow,N==null?void 0:N.show)}),s.createSlots({_:2},[s.renderList(s.unref(r),(N,L)=>({name:N,fn:s.withCtx(w=>[s.renderSlot(C.$slots,N,s.normalizeProps(s.guardReactiveProps(w)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[C.$slots["month-overlay-value"]?{name:"item",fn:s.withCtx(({item:N})=>[s.renderSlot(C.$slots,"month-overlay-value",{text:N.text,value:N.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse"]))}}),Ab3=(e,t)=>{const{modelValue:a}=zu(e,t),c=s.ref(null),{defaultedHighlight:n,defaultedMultiDates:r,defaultedFilters:i,defaultedRange:o,propDates:l}=ee(e),f=s.ref();s.onMounted(()=>{e.startDate&&(a.value&&e.focusStartDate||!a.value)&&(f.value=H2($1(e.startDate)))});const u=v=>Array.isArray(a.value)?a.value.some(m=>H2(m)===v):a.value?H2(a.value)===v:!1,d=v=>o.value.enabled&&Array.isArray(a.value)?Mj(a.value,c.value,p(v)):!1,h=s.computed(()=>ps(XJ(e.yearRange,e.locale,e.reverseYears),v=>{const m=u(v.value),y=zf(v.value,ms(l.value.minDate),ms(l.value.maxDate))||i.value.years.includes(v.value),g=d(v.value)&&!m,M=JJ(n.value,v.value);return{active:m,disabled:y,isBetween:g,highlighted:M}})),p=v=>ot(Q0(new Date),v);return{groupedYears:h,modelValue:a,focusYear:f,setHoverValue:v=>{c.value=ot(Q0(new Date),v)},selectYear:v=>{var m;if(t("update-month-year",{instance:0,year:v}),r.value.enabled)return a.value?Array.isArray(a.value)&&(((m=a.value)==null?void 0:m.map(y=>H2(y))).includes(v)?a.value=a.value.filter(y=>H2(y)!==v):a.value.push(ot(u0($1()),v))):a.value=[ot(u0($1()),v)],t("auto-apply",!0);o.value.enabled?(a.value=t11(a,p(v),t),s.nextTick().then(()=>{zj(a.value,t,e.autoApply,e.modelAuto)})):(a.value=p(v),t("auto-apply"))}}},Tb3=s.defineComponent({compatConfig:{MODE:3},__name:"YearPicker",props:{...T6},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:t,emit:a}){const c=a,n=e,{groupedYears:r,modelValue:i,focusYear:o,selectYear:l,setHoverValue:f}=Ab3(n,c),{defaultedConfig:u}=ee(n);return t({getSidebarProps:()=>({modelValue:i,selectYear:l})}),(d,h)=>(s.openBlock(),s.createElementBlock("div",null,[d.$slots["top-extra"]?s.renderSlot(d.$slots,"top-extra",{key:0,value:d.internalModelValue}):s.createCommentVNode("",!0),d.$slots["month-year"]?s.renderSlot(d.$slots,"month-year",s.normalizeProps(s.mergeProps({key:1},{years:s.unref(r),selectYear:s.unref(l)}))):(s.openBlock(),s.createBlock(Cu,{key:2,items:s.unref(r),"is-last":d.autoApply&&!s.unref(u).keepActionRow,height:s.unref(u).modeHeight,config:d.config,"no-overlay-focus":!!(d.noOverlayFocus||d.textInput),"focus-value":s.unref(o),type:"year","use-relative":"",onSelected:s.unref(l),onHoverValue:s.unref(f)},s.createSlots({_:2},[d.$slots["year-overlay-value"]?{name:"item",fn:s.withCtx(({item:p})=>[s.renderSlot(d.$slots,"year-overlay-value",{text:p.text,value:p.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),Eb3={key:0,class:"dp__time_input"},Db3=["data-test","aria-label","onKeydown","onClick","onMousedown"],Pb3=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),Ob3=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),Ib3=["aria-label","disabled","data-test","onKeydown","onClick"],Bb3=["data-test","aria-label","onKeydown","onClick","onMousedown"],Rb3=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),Fb3=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),$b3={key:0},qb3=["aria-label"],jb3=s.defineComponent({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...T6},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:t,emit:a}){const c=a,n=e,{setTimePickerElements:r,setTimePickerBackRef:i}=Qa(),{defaultedAriaLabels:o,defaultedTransitions:l,defaultedFilters:f,defaultedConfig:u,defaultedRange:d}=ee(n),{transitionName:h,showTransition:p}=bu(l),v=s.reactive({hours:!1,minutes:!1,seconds:!1}),m=s.ref("AM"),y=s.ref(null),g=s.ref([]),M=s.ref();s.onMounted(()=>{c("mounted")});const x=Y=>x3(new Date,{hours:Y.hours,minutes:Y.minutes,seconds:n.enableSeconds?Y.seconds:0,milliseconds:0}),k=s.computed(()=>Y=>B(Y,n[Y])||_(Y,n[Y])),b=s.computed(()=>({hours:n.hours,minutes:n.minutes,seconds:n.seconds})),_=(Y,d1)=>d.value.enabled&&!d.value.disableTimeRangeValidation?!n.validateTime(Y,d1):!1,C=(Y,d1)=>{if(d.value.enabled&&!d.value.disableTimeRangeValidation){const x1=d1?+n[`${Y}Increment`]:-+n[`${Y}Increment`],f1=n[Y]+x1;return!n.validateTime(Y,f1)}return!1},H=s.computed(()=>Y=>!O(+n[Y]+ +n[`${Y}Increment`],Y)||C(Y,!0)),V=s.computed(()=>Y=>!O(+n[Y]-+n[`${Y}Increment`],Y)||C(Y,!1)),N=(Y,d1)=>gg1(x3($1(),Y),d1),L=(Y,d1)=>Lx3(x3($1(),Y),d1),w=s.computed(()=>({dp__time_col:!0,dp__time_col_block:!n.timePickerInline,dp__time_col_reg_block:!n.enableSeconds&&n.is24&&!n.timePickerInline,dp__time_col_reg_inline:!n.enableSeconds&&n.is24&&n.timePickerInline,dp__time_col_reg_with_button:!n.enableSeconds&&!n.is24,dp__time_col_sec:n.enableSeconds&&n.is24,dp__time_col_sec_with_button:n.enableSeconds&&!n.is24})),P=s.computed(()=>{const Y=[{type:"hours"}];return n.enableMinutes&&Y.push({type:"",separator:!0},{type:"minutes"}),n.enableSeconds&&Y.push({type:"",separator:!0},{type:"seconds"}),Y}),j=s.computed(()=>P.value.filter(Y=>!Y.separator)),T=s.computed(()=>Y=>{if(Y==="hours"){const d1=R(+n.hours);return{text:d1<10?`0${d1}`:`${d1}`,value:d1}}return{text:n[Y]<10?`0${n[Y]}`:`${n[Y]}`,value:n[Y]}}),B=(Y,d1)=>{var x1;if(!n.disabledTimesConfig)return!1;const f1=n.disabledTimesConfig(n.order,Y==="hours"?d1:void 0);return f1[Y]?!!((x1=f1[Y])!=null&&x1.includes(d1)):!0},F=(Y,d1)=>d1!=="hours"||m.value==="AM"?Y:Y+12,K=Y=>{const d1=n.is24?24:12,x1=Y==="hours"?d1:60,f1=+n[`${Y}GridIncrement`],t1=Y==="hours"&&!n.is24?f1:0,l1=[];for(let i1=t1;i1<x1;i1+=f1)l1.push({value:n.is24?i1:F(i1,Y),text:i1<10?`0${i1}`:`${i1}`});return Y==="hours"&&!n.is24&&l1.unshift({value:m.value==="PM"?12:0,text:"12"}),ps(l1,i1=>({active:!1,disabled:f.value.times[Y].includes(i1.value)||!O(i1.value,Y)||B(Y,i1.value)||_(Y,i1.value)}))},G=Y=>Y>=0?Y:59,W=Y=>Y>=0?Y:23,O=(Y,d1)=>{const x1=n.minTime?x(FW(n.minTime)):null,f1=n.maxTime?x(FW(n.maxTime)):null,t1=x(FW(b.value,d1,d1==="minutes"||d1==="seconds"?G(Y):W(Y)));return x1&&f1?(bf(t1,f1)||xo(t1,f1))&&(ds(t1,x1)||xo(t1,x1)):x1?ds(t1,x1)||xo(t1,x1):f1?bf(t1,f1)||xo(t1,f1):!0},E=Y=>n[`no${Y[0].toUpperCase()+Y.slice(1)}Overlay`],S=Y=>{E(Y)||(v[Y]=!v[Y],v[Y]?c("overlay-opened",Y):c("overlay-closed",Y))},U=Y=>Y==="hours"?M8:Y==="minutes"?Ia:us,Z=()=>{M.value&&clearTimeout(M.value)},A=(Y,d1=!0,x1)=>{const f1=d1?N:L,t1=d1?+n[`${Y}Increment`]:-+n[`${Y}Increment`];O(+n[Y]+t1,Y)&&c(`update:${Y}`,U(Y)(f1({[Y]:+n[Y]},{[Y]:+n[`${Y}Increment`]}))),!(x1!=null&&x1.keyboard)&&u.value.timeArrowHoldThreshold&&(M.value=setTimeout(()=>{A(Y,d1)},u.value.timeArrowHoldThreshold))},R=Y=>n.is24?Y:(Y>=12?m.value="PM":m.value="AM",Ex3(Y)),Q=()=>{m.value==="PM"?(m.value="AM",c("update:hours",n.hours-12)):(m.value="PM",c("update:hours",n.hours+12)),c("am-pm-change",m.value)},c1=Y=>{v[Y]=!0},e1=(Y,d1,x1)=>{if(Y&&n.arrowNavigation){Array.isArray(g.value[d1])?g.value[d1][x1]=Y:g.value[d1]=[Y];const f1=g.value.reduce((t1,l1)=>l1.map((i1,p1)=>[...t1[p1]||[],l1[p1]]),[]);i(n.closeTimePickerBtn),y.value&&(f1[1]=f1[1].concat(y.value)),r(f1,n.order)}},s1=(Y,d1)=>(S(Y),c(`update:${Y}`,d1));return t({openChildCmp:c1}),(Y,d1)=>{var x1;return Y.disabled?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Eb3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(P.value,(f1,t1)=>{var l1,i1,p1;return s.openBlock(),s.createElementBlock("div",{key:t1,class:s.normalizeClass(w.value)},[f1.separator?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(" : ")],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("button",{ref_for:!0,ref:b1=>e1(b1,t1,0),type:"button",class:s.normalizeClass({dp__btn:!0,dp__inc_dec_button:!Y.timePickerInline,dp__inc_dec_button_inline:Y.timePickerInline,dp__tp_inline_btn_top:Y.timePickerInline,dp__inc_dec_button_disabled:H.value(f1.type)}),"data-test":`${f1.type}-time-inc-btn-${n.order}`,"aria-label":(l1=s.unref(o))==null?void 0:l1.incrementValue(f1.type),tabindex:"0",onKeydown:b1=>s.unref(Y4)(b1,()=>A(f1.type,!0,{keyboard:!0}),!0),onClick:b1=>s.unref(u).timeArrowHoldThreshold?void 0:A(f1.type,!0),onMousedown:b1=>s.unref(u).timeArrowHoldThreshold?A(f1.type,!0):void 0,onMouseup:Z},[n.timePickerInline?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Pb3,Ob3],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Y.$slots["arrow-up"]?s.renderSlot(Y.$slots,"arrow-up",{key:0}):s.createCommentVNode("",!0),Y.$slots["arrow-up"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(GJ),{key:1}))],64))],42,Db3),s.createElementVNode("button",{ref_for:!0,ref:b1=>e1(b1,t1,1),type:"button","aria-label":(i1=s.unref(o))==null?void 0:i1.openTpOverlay(f1.type),class:s.normalizeClass({dp__time_display:!0,dp__time_display_block:!Y.timePickerInline,dp__time_display_inline:Y.timePickerInline,"dp--time-invalid":k.value(f1.type),"dp--time-overlay-btn":!k.value(f1.type)}),disabled:E(f1.type),tabindex:"0","data-test":`${f1.type}-toggle-overlay-btn-${n.order}`,onKeydown:b1=>s.unref(Y4)(b1,()=>S(f1.type),!0),onClick:b1=>S(f1.type)},[Y.$slots[f1.type]?s.renderSlot(Y.$slots,f1.type,{key:0,text:T.value(f1.type).text,value:T.value(f1.type).value}):s.createCommentVNode("",!0),Y.$slots[f1.type]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(T.value(f1.type).text),1)],64))],42,Ib3),s.createElementVNode("button",{ref_for:!0,ref:b1=>e1(b1,t1,2),type:"button",class:s.normalizeClass({dp__btn:!0,dp__inc_dec_button:!Y.timePickerInline,dp__inc_dec_button_inline:Y.timePickerInline,dp__tp_inline_btn_bottom:Y.timePickerInline,dp__inc_dec_button_disabled:V.value(f1.type)}),"data-test":`${f1.type}-time-dec-btn-${n.order}`,"aria-label":(p1=s.unref(o))==null?void 0:p1.decrementValue(f1.type),tabindex:"0",onKeydown:b1=>s.unref(Y4)(b1,()=>A(f1.type,!1,{keyboard:!0}),!0),onClick:b1=>s.unref(u).timeArrowHoldThreshold?void 0:A(f1.type,!1),onMousedown:b1=>s.unref(u).timeArrowHoldThreshold?A(f1.type,!1):void 0,onMouseup:Z},[n.timePickerInline?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Rb3,Fb3],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Y.$slots["arrow-down"]?s.renderSlot(Y.$slots,"arrow-down",{key:0}):s.createCommentVNode("",!0),Y.$slots["arrow-down"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(ZJ),{key:1}))],64))],42,Bb3)],64))],2)}),128)),Y.is24?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",$b3,[Y.$slots["am-pm-button"]?s.renderSlot(Y.$slots,"am-pm-button",{key:0,toggle:Q,value:m.value}):s.createCommentVNode("",!0),Y.$slots["am-pm-button"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:y,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(x1=s.unref(o))==null?void 0:x1.amPmButton,tabindex:"0",onClick:Q,onKeydown:d1[0]||(d1[0]=f1=>s.unref(Y4)(f1,()=>Q(),!0))},s.toDisplayString(m.value),41,qb3))])),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(j.value,(f1,t1)=>(s.openBlock(),s.createBlock(s.Transition,{key:t1,name:s.unref(h)(v[f1.type]),css:s.unref(p)},{default:s.withCtx(()=>[v[f1.type]?(s.openBlock(),s.createBlock(Cu,{key:0,items:K(f1.type),"is-last":Y.autoApply&&!s.unref(u).keepActionRow,"esc-close":Y.escClose,type:f1.type,"text-input":Y.textInput,config:Y.config,"arrow-navigation":Y.arrowNavigation,"aria-labels":Y.ariaLabels,onSelected:l1=>s1(f1.type,l1),onToggle:l1=>S(f1.type),onResetFlow:d1[1]||(d1[1]=l1=>Y.$emit("reset-flow"))},s.createSlots({"button-icon":s.withCtx(()=>[Y.$slots["clock-icon"]?s.renderSlot(Y.$slots,"clock-icon",{key:0}):s.createCommentVNode("",!0),Y.$slots["clock-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(Y.timePickerInline?s.unref(As):s.unref(YJ)),{key:1}))]),_:2},[Y.$slots[`${f1.type}-overlay-value`]?{name:"item",fn:s.withCtx(({item:l1})=>[s.renderSlot(Y.$slots,`${f1.type}-overlay-value`,{text:l1.text,value:l1.value})]),key:"0"}:void 0,Y.$slots[`${f1.type}-overlay-header`]?{name:"header",fn:s.withCtx(()=>[s.renderSlot(Y.$slots,`${f1.type}-overlay-header`,{toggle:()=>S(f1.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","onSelected","onToggle"])):s.createCommentVNode("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),Ub3={class:"dp--tp-wrap"},Wb3=["aria-label","tabindex"],Yb3=["tabindex"],Gb3=["aria-label"],cM1=s.defineComponent({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...T6},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:a}){const c=a,n=e,{buildMatrix:r,setTimePicker:i}=Qa(),o=s.useSlots(),{defaultedTransitions:l,defaultedAriaLabels:f,defaultedTextInput:u,defaultedConfig:d,defaultedRange:h}=ee(n),{transitionName:p,showTransition:v}=bu(l),{hideNavigationButtons:m}=kj(),y=s.ref(null),g=s.ref(null),M=s.ref([]),x=s.ref(null);s.onMounted(()=>{c("mount"),!n.timePicker&&n.arrowNavigation?r([Pe(y.value)],"time"):i(!0,n.timePicker)});const k=s.computed(()=>h.value.enabled&&n.modelAuto?$g1(n.internalModelValue):!0),b=s.ref(!1),_=F=>({hours:Array.isArray(n.hours)?n.hours[F]:n.hours,minutes:Array.isArray(n.minutes)?n.minutes[F]:n.minutes,seconds:Array.isArray(n.seconds)?n.seconds[F]:n.seconds}),C=s.computed(()=>{const F=[];if(h.value.enabled)for(let K=0;K<2;K++)F.push(_(K));else F.push(_(0));return F}),H=(F,K=!1,G="")=>{K||c("reset-flow"),b.value=F,c(F?"overlay-opened":"overlay-closed",d4.time),n.arrowNavigation&&i(F),s.nextTick(()=>{G!==""&&M.value[0]&&M.value[0].openChildCmp(G)})},V=s.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:n.autoApply&&!d.value.keepActionRow})),N=n0(o,"timePicker"),L=(F,K,G)=>h.value.enabled?K===0?[F,C.value[1][G]]:[C.value[0][G],F]:F,w=F=>{c("update:hours",F)},P=F=>{c("update:minutes",F)},j=F=>{c("update:seconds",F)},T=()=>{if(x.value&&!u.value.enabled&&!n.noOverlayFocus){const F=qg1(x.value);F&&F.focus({preventScroll:!0})}},B=F=>{c("overlay-closed",F)};return t({toggleTimePicker:H}),(F,K)=>{var G;return s.openBlock(),s.createElementBlock("div",Ub3,[!F.timePicker&&!F.timePickerInline?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:0,ref_key:"openTimePickerBtn",ref:y,type:"button",class:s.normalizeClass(V.value),"aria-label":(G=s.unref(f))==null?void 0:G.openTimePicker,tabindex:F.noOverlayFocus?void 0:0,"data-test":"open-time-picker-btn",onKeydown:K[0]||(K[0]=W=>s.unref(Y4)(W,()=>H(!0))),onClick:K[1]||(K[1]=W=>H(!0))},[F.$slots["clock-icon"]?s.renderSlot(F.$slots,"clock-icon",{key:0}):s.createCommentVNode("",!0),F.$slots["clock-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(YJ),{key:1}))],42,Wb3)),[[s.vShow,!s.unref(m)(F.hideNavigation,"time")]]):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:s.unref(p)(b.value),css:s.unref(v)&&!F.timePickerInline},{default:s.withCtx(()=>{var W;return[b.value||F.timePicker||F.timePickerInline?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"overlayRef",ref:x,class:s.normalizeClass({dp__overlay:!F.timePickerInline,"dp--overlay-absolute":!n.timePicker&&!F.timePickerInline,"dp--overlay-relative":n.timePicker}),style:s.normalizeStyle(F.timePicker?{height:`${s.unref(d).modeHeight}px`}:void 0),tabindex:F.timePickerInline?void 0:0},[s.createElementVNode("div",{class:s.normalizeClass(F.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[F.$slots["time-picker-overlay"]?s.renderSlot(F.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:w,setMinutes:P,setSeconds:j}):s.createCommentVNode("",!0),F.$slots["time-picker-overlay"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(F.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.value,(O,E)=>s.withDirectives((s.openBlock(),s.createBlock(jb3,s.mergeProps({key:E,ref_for:!0},{...F.$props,order:E,hours:O.hours,minutes:O.minutes,seconds:O.seconds,closeTimePickerBtn:g.value,disabledTimesConfig:e.disabledTimesConfig,disabled:E===0?F.fixedStart:F.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:M,"validate-time":(S,U)=>e.validateTime(S,L(U,E,S)),"onUpdate:hours":S=>w(L(S,E,"hours")),"onUpdate:minutes":S=>P(L(S,E,"minutes")),"onUpdate:seconds":S=>j(L(S,E,"seconds")),onMounted:T,onOverlayClosed:B,onOverlayOpened:K[2]||(K[2]=S=>F.$emit("overlay-opened",S)),onAmPmChange:K[3]||(K[3]=S=>F.$emit("am-pm-change",S))}),s.createSlots({_:2},[s.renderList(s.unref(N),(S,U)=>({name:S,fn:s.withCtx(Z=>[s.renderSlot(F.$slots,S,s.mergeProps({ref_for:!0},Z))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[s.vShow,E===0?!0:k.value]])),128))],2)),!F.timePicker&&!F.timePickerInline?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:2,ref_key:"closeTimePickerBtn",ref:g,type:"button",class:s.normalizeClass(V.value),"aria-label":(W=s.unref(f))==null?void 0:W.closeTimePicker,tabindex:"0",onKeydown:K[4]||(K[4]=O=>s.unref(Y4)(O,()=>H(!1))),onClick:K[5]||(K[5]=O=>H(!1))},[F.$slots["calendar-icon"]?s.renderSlot(F.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),F.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(As),{key:1}))],42,Gb3)),[[s.vShow,!s.unref(m)(F.hideNavigation,"time")]]):s.createCommentVNode("",!0)],2)],14,Yb3)):s.createCommentVNode("",!0)]}),_:3},8,["name","css"])])}}}),nM1=(e,t,a,c)=>{const{defaultedRange:n}=ee(e),r=(x,k)=>Array.isArray(t[x])?t[x][k]:t[x],i=x=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[x]:t.seconds:0,o=(x,k)=>x?k!==void 0?Ca(x,r("hours",k),r("minutes",k),i(k)):Ca(x,t.hours,t.minutes,i()):jJ($1(),i(k)),l=(x,k)=>{t[x]=k},f=s.computed(()=>e.modelAuto&&n.value.enabled?Array.isArray(a.value)?a.value.length>1:!1:n.value.enabled),u=(x,k)=>{const b=Object.fromEntries(Object.keys(t).map(_=>_===x?[_,k]:[_,t[_]].slice()));if(f.value&&!n.value.disableTimeRangeValidation){const _=H=>a.value?Ca(a.value[H],b.hours[H],b.minutes[H],b.seconds[H]):null,C=H=>qJ(a.value[H],0);return!(O2(_(0),_(1))&&(ds(_(0),C(1))||bf(_(1),C(0))))}return!0},d=(x,k)=>{u(x,k)&&(l(x,k),c&&c())},h=x=>{d("hours",x)},p=x=>{d("minutes",x)},v=x=>{d("seconds",x)},m=(x,k,b,_)=>{k&&h(x),!k&&!b&&p(x),b&&v(x),a.value&&_(a.value)},y=x=>{if(x){const k=Array.isArray(x),b=k?[+x[0].hours,+x[1].hours]:+x.hours,_=k?[+x[0].minutes,+x[1].minutes]:+x.minutes,C=k?[+x[0].seconds,+x[1].seconds]:+x.seconds;l("hours",b),l("minutes",_),e.enableSeconds&&l("seconds",C)}},g=(x,k)=>{const b={hours:Array.isArray(t.hours)?t.hours[x]:t.hours,disabledArr:[]};return(k||k===0)&&(b.hours=k),Array.isArray(e.disabledTimes)&&(b.disabledArr=n.value.enabled&&Array.isArray(e.disabledTimes[x])?e.disabledTimes[x]:e.disabledTimes),b},M=s.computed(()=>(x,k)=>{var b;if(Array.isArray(e.disabledTimes)){const{disabledArr:_,hours:C}=g(x,k),H=_.filter(V=>+V.hours===C);return((b=H[0])==null?void 0:b.minutes)==="*"?{hours:[C],minutes:void 0,seconds:void 0}:{hours:[],minutes:(H==null?void 0:H.map(V=>+V.minutes))??[],seconds:(H==null?void 0:H.map(V=>V.seconds?+V.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:l,updateHours:h,updateMinutes:p,updateSeconds:v,getSetDateTime:o,updateTimeValues:m,getSecondsValue:i,assignStartTime:y,validateTime:u,disabledTimesConfig:M}},Zb3=(e,t)=>{const{modelValue:a,time:c}=zu(e,t),{defaultedStartTime:n,defaultedRange:r}=ee(e),{updateTimeValues:i,getSetDateTime:o,setTime:l,assignStartTime:f,disabledTimesConfig:u,validateTime:d}=nM1(e,c,a,h);function h(){t("update-flow-step")}const p=k=>{const{hours:b,minutes:_,seconds:C}=k;return{hours:+b,minutes:+_,seconds:C?+C:0}},v=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const b=p(e.startTime[0]),_=p(e.startTime[1]);return[x3($1(),b),x3($1(),_)]}const k=p(e.startTime);return x3($1(),k)}return r.value.enabled?[null,null]:null},m=()=>{if(r.value.enabled){const[k,b]=v();a.value=[o(k,0),o(b,1)]}else a.value=o(v())},y=k=>Array.isArray(k)?[ni($1(k[0])),ni($1(k[1]))]:[ni(k??$1())],g=(k,b,_)=>{l("hours",k),l("minutes",b),l("seconds",e.enableSeconds?_:0)},M=()=>{const[k,b]=y(a.value);return r.value.enabled?g([k.hours,b.hours],[k.minutes,b.minutes],[k.seconds,b.seconds]):g(k.hours,k.minutes,k.seconds)};s.onMounted(()=>{if(!e.shadow)return f(n.value),a.value?M():m()});const x=()=>{Array.isArray(a.value)?a.value=a.value.map((k,b)=>k&&o(k,b)):a.value=o(a.value),t("time-update")};return{modelValue:a,time:c,disabledTimesConfig:u,updateTime:(k,b=!0,_=!1)=>{i(k,b,_,x)},validateTime:d}},Xb3=s.defineComponent({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...T6},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.useSlots(),i=n0(r,"timePicker"),o=s.ref(null),{time:l,modelValue:f,disabledTimesConfig:u,updateTime:d,validateTime:h}=Zb3(n,c);return s.onMounted(()=>{n.shadow||c("mount",null)}),t({getSidebarProps:()=>({modelValue:f,time:l,updateTime:d}),toggleTimePicker:(p,v=!1,m="")=>{var y;(y=o.value)==null||y.toggleTimePicker(p,v,m)}}),(p,v)=>(s.openBlock(),s.createBlock(bj,{"multi-calendars":0,stretch:""},{default:s.withCtx(()=>[s.createVNode(cM1,s.mergeProps({ref_key:"tpRef",ref:o},p.$props,{hours:s.unref(l).hours,minutes:s.unref(l).minutes,seconds:s.unref(l).seconds,"internal-model-value":p.internalModelValue,"disabled-times-config":s.unref(u),"validate-time":s.unref(h),"onUpdate:hours":v[0]||(v[0]=m=>s.unref(d)(m)),"onUpdate:minutes":v[1]||(v[1]=m=>s.unref(d)(m,!1)),"onUpdate:seconds":v[2]||(v[2]=m=>s.unref(d)(m,!1,!0)),onAmPmChange:v[3]||(v[3]=m=>p.$emit("am-pm-change",m)),onResetFlow:v[4]||(v[4]=m=>p.$emit("reset-flow")),onOverlayClosed:v[5]||(v[5]=m=>p.$emit("overlay-toggle",{open:!1,overlay:m})),onOverlayOpened:v[6]||(v[6]=m=>p.$emit("overlay-toggle",{open:!0,overlay:m}))}),s.createSlots({_:2},[s.renderList(s.unref(i),(m,y)=>({name:m,fn:s.withCtx(g=>[s.renderSlot(p.$slots,m,s.normalizeProps(s.guardReactiveProps(g)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3}))}}),Kb3={class:"dp--header-wrap"},Qb3={key:0,class:"dp__month_year_wrap"},Jb3={key:0},ez3={class:"dp__month_year_wrap"},tz3=["aria-label","data-test","onClick","onKeydown"],az3=s.defineComponent({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...T6},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:t,emit:a}){const c=a,n=e,{defaultedTransitions:r,defaultedAriaLabels:i,defaultedMultiCalendars:o,defaultedFilters:l,defaultedConfig:f,defaultedHighlight:u,propDates:d}=ee(n),{transitionName:h,showTransition:p}=bu(r),{buildMatrix:v}=Qa(),{handleMonthYearChange:m,isDisabled:y,updateMonthYear:g}=ub3(n,c),{showLeftIcon:M,showRightIcon:x}=kj(),k=s.ref(!1),b=s.ref(!1),_=s.ref([null,null,null,null]);s.onMounted(()=>{c("mount")});const C=O=>({get:()=>n[O],set:E=>{const S=O===$0.month?$0.year:$0.month;c("update-month-year",{[O]:E,[S]:n[S]}),O===$0.month?T(!0):B(!0)}}),H=s.computed(C($0.month)),V=s.computed(C($0.year)),N=s.computed(()=>O=>({month:n.month,year:n.year,items:O===$0.month?n.months:n.years,instance:n.instance,updateMonthYear:g,toggle:O===$0.month?T:B})),L=s.computed(()=>n.months.find(E=>E.value===n.month)||{text:"",value:0}),w=s.computed(()=>ps(n.months,O=>{const E=n.month===O.value,S=zf(O.value,Ug1(n.year,d.value.minDate),Wg1(n.year,d.value.maxDate))||l.value.months.includes(O.value),U=Kg1(u.value,O.value,n.year);return{active:E,disabled:S,highlighted:U}})),P=s.computed(()=>ps(n.years,O=>{const E=n.year===O.value,S=zf(O.value,ms(d.value.minDate),ms(d.value.maxDate))||l.value.years.includes(O.value),U=JJ(u.value,O.value);return{active:E,disabled:S,highlighted:U}})),j=(O,E,S)=>{S!==void 0?O.value=S:O.value=!O.value,O.value?c("overlay-opened",E):c("overlay-closed",E)},T=(O=!1,E)=>{F(O),j(k,d4.month,E)},B=(O=!1,E)=>{F(O),j(b,d4.year,E)},F=O=>{O||c("reset-flow")},K=(O,E)=>{n.arrowNavigation&&(_.value[E]=Pe(O),v(_.value,"monthYear"))},G=s.computed(()=>{var O,E;return[{type:$0.month,index:1,toggle:T,modelValue:H.value,updateModelValue:S=>H.value=S,text:L.value.text,showSelectionGrid:k.value,items:w.value,ariaLabel:(O=i.value)==null?void 0:O.openMonthsOverlay},{type:$0.year,index:2,toggle:B,modelValue:V.value,updateModelValue:S=>V.value=S,text:jg1(n.year,n.locale),showSelectionGrid:b.value,items:P.value,ariaLabel:(E=i.value)==null?void 0:E.openYearsOverlay}]}),W=s.computed(()=>n.disableYearSelect?[G.value[0]]:n.yearFirst?[...G.value].reverse():G.value);return t({toggleMonthPicker:T,toggleYearPicker:B,handleMonthYearChange:m}),(O,E)=>{var S,U,Z;return s.openBlock(),s.createElementBlock("div",Kb3,[O.$slots["month-year"]?(s.openBlock(),s.createElementBlock("div",Qb3,[s.renderSlot(O.$slots,"month-year",s.normalizeProps(s.guardReactiveProps({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:s.unref(g),handleMonthYearChange:s.unref(m),instance:e.instance})))])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[O.$slots["top-extra"]?(s.openBlock(),s.createElementBlock("div",Jb3,[s.renderSlot(O.$slots,"top-extra",{value:O.internalModelValue})])):s.createCommentVNode("",!0),s.createElementVNode("div",ez3,[s.unref(M)(s.unref(o),e.instance)&&!O.vertical?(s.openBlock(),s.createBlock(ml,{key:0,"aria-label":(S=s.unref(i))==null?void 0:S.prevMonth,disabled:s.unref(y)(!1),onActivate:E[0]||(E[0]=A=>s.unref(m)(!1,!0)),onSetRef:E[1]||(E[1]=A=>K(A,0))},{default:s.withCtx(()=>[O.$slots["arrow-left"]?s.renderSlot(O.$slots,"arrow-left",{key:0}):s.createCommentVNode("",!0),O.$slots["arrow-left"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(UJ),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:O.disableYearSelect}])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(W.value,(A,R)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:A.type},[s.createElementVNode("button",{ref_for:!0,ref:Q=>K(Q,R+1),type:"button",class:"dp__btn dp__month_year_select",tabindex:"0","aria-label":A.ariaLabel,"data-test":`${A.type}-toggle-overlay-${e.instance}`,onClick:A.toggle,onKeydown:Q=>s.unref(Y4)(Q,()=>A.toggle(),!0)},[O.$slots[A.type]?s.renderSlot(O.$slots,A.type,{key:0,text:A.text,value:n[A.type]}):s.createCommentVNode("",!0),O.$slots[A.type]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(A.text),1)],64))],40,tz3),s.createVNode(s.Transition,{name:s.unref(h)(A.showSelectionGrid),css:s.unref(p)},{default:s.withCtx(()=>[A.showSelectionGrid?(s.openBlock(),s.createBlock(Cu,{key:0,items:A.items,"arrow-navigation":O.arrowNavigation,"hide-navigation":O.hideNavigation,"is-last":O.autoApply&&!s.unref(f).keepActionRow,"skip-button-ref":!1,config:O.config,type:A.type,"header-refs":[],"esc-close":O.escClose,"menu-wrap-ref":O.menuWrapRef,"text-input":O.textInput,"aria-labels":O.ariaLabels,onSelected:A.updateModelValue,onToggle:A.toggle},s.createSlots({"button-icon":s.withCtx(()=>[O.$slots["calendar-icon"]?s.renderSlot(O.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),O.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(As),{key:1}))]),_:2},[O.$slots[`${A.type}-overlay-value`]?{name:"item",fn:s.withCtx(({item:Q})=>[s.renderSlot(O.$slots,`${A.type}-overlay-value`,{text:Q.text,value:Q.value})]),key:"0"}:void 0,O.$slots[`${A.type}-overlay`]?{name:"overlay",fn:s.withCtx(()=>[s.renderSlot(O.$slots,`${A.type}-overlay`,s.mergeProps({ref_for:!0},N.value(A.type)))]),key:"1"}:void 0,O.$slots[`${A.type}-overlay-header`]?{name:"header",fn:s.withCtx(()=>[s.renderSlot(O.$slots,`${A.type}-overlay-header`,{toggle:A.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","onSelected","onToggle"])):s.createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),s.unref(M)(s.unref(o),e.instance)&&O.vertical?(s.openBlock(),s.createBlock(ml,{key:1,"aria-label":(U=s.unref(i))==null?void 0:U.prevMonth,disabled:s.unref(y)(!1),onActivate:E[2]||(E[2]=A=>s.unref(m)(!1,!0))},{default:s.withCtx(()=>[O.$slots["arrow-up"]?s.renderSlot(O.$slots,"arrow-up",{key:0}):s.createCommentVNode("",!0),O.$slots["arrow-up"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(GJ),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.unref(x)(s.unref(o),e.instance)?(s.openBlock(),s.createBlock(ml,{key:2,ref:"rightIcon",disabled:s.unref(y)(!0),"aria-label":(Z=s.unref(i))==null?void 0:Z.nextMonth,onActivate:E[3]||(E[3]=A=>s.unref(m)(!0,!0)),onSetRef:E[4]||(E[4]=A=>K(A,O.disableYearSelect?2:3))},{default:s.withCtx(()=>[O.$slots[O.vertical?"arrow-down":"arrow-right"]?s.renderSlot(O.$slots,O.vertical?"arrow-down":"arrow-right",{key:0}):s.createCommentVNode("",!0),O.$slots[O.vertical?"arrow-down":"arrow-right"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(O.vertical?s.unref(ZJ):s.unref(WJ)),{key:1}))]),_:3},8,["disabled","aria-label"])):s.createCommentVNode("",!0)])],64))])}}}),cz3=["aria-label"],nz3={class:"dp__calendar_header",role:"row"},rz3={key:0,class:"dp__calendar_header_item",role:"gridcell"},iz3=["aria-label"],oz3=s.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1),sz3=["aria-label"],lz3={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},fz3={class:"dp__cell_inner"},uz3=["id","aria-selected","aria-disabled","aria-label","data-test","onClick","onKeydown","onMouseenter","onMouseleave","onMousedown"],dz3=s.defineComponent({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...T6},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:a}){const c=a,n=e,{buildMultiLevelMatrix:r}=Qa(),{defaultedTransitions:i,defaultedConfig:o,defaultedAriaLabels:l,defaultedMultiCalendars:f,defaultedWeekNumbers:u,defaultedMultiDates:d}=ee(n),h=s.ref(null),p=s.ref({bottom:"",left:"",transform:""}),v=s.ref([]),m=s.ref(null),y=s.ref(!0),g=s.ref(""),M=s.ref({startX:0,endX:0,startY:0,endY:0}),x=s.ref([]),k=s.ref({left:"50%"}),b=s.ref(!1),_=s.computed(()=>n.calendar?n.calendar(n.mappedDates):n.mappedDates),C=s.computed(()=>n.dayNames?Array.isArray(n.dayNames)?n.dayNames:n.dayNames(n.locale,+n.weekStart):Tx3(n.formatLocale,n.locale,+n.weekStart));s.onMounted(()=>{c("mount",{cmp:"calendar",refs:v}),o.value.noSwipe||m.value&&(m.value.addEventListener("touchstart",G,{passive:!1}),m.value.addEventListener("touchend",W,{passive:!1}),m.value.addEventListener("touchmove",O,{passive:!1})),n.monthChangeOnScroll&&m.value&&m.value.addEventListener("wheel",U,{passive:!1})});const H=e1=>e1?n.vertical?"vNext":"next":n.vertical?"vPrevious":"previous",V=(e1,s1)=>{if(n.transitions){const Y=u0(a8($1(),n.month,n.year));g.value=xe(u0(a8($1(),e1,s1)),Y)?i.value[H(!0)]:i.value[H(!1)],y.value=!1,s.nextTick(()=>{y.value=!0})}},N=s.computed(()=>({[n.calendarClassName]:!!n.calendarClassName})),L=s.computed(()=>e1=>{const s1=Dx3(e1);return{dp__marker_dot:s1.type==="dot",dp__marker_line:s1.type==="line"}}),w=s.computed(()=>e1=>O2(e1,h.value)),P=s.computed(()=>({dp__calendar:!0,dp__calendar_next:f.value.count>0&&n.instance!==0})),j=s.computed(()=>e1=>n.hideOffsetDates?e1.current:!0),T=e1=>yt(e1,"yyyy-MM-dd"),B=async(e1,s1,Y)=>{const d1=Pe(v.value[s1][Y]);if(d1){const{width:x1,height:f1}=d1.getBoundingClientRect();h.value=e1.value;let t1={left:`${x1/2}px`},l1=-50;if(await s.nextTick(),x.value[0]){const{left:i1,width:p1}=x.value[0].getBoundingClientRect();i1<0&&(t1={left:"0"},l1=0,k.value.left=`${x1/2}px`),window.innerWidth<i1+p1&&(t1={right:"0"},l1=0,k.value.left=`${p1-x1/2}px`)}p.value={bottom:`${f1}px`,...t1,transform:`translateX(${l1}%)`},c("tooltip-open",e1.marker)}},F=async(e1,s1,Y)=>{var d1,x1;if(b.value&&d.value.enabled&&d.value.dragSelect)return c("select-date",e1);c("set-hover-date",e1),(x1=(d1=e1.marker)==null?void 0:d1.tooltip)!=null&&x1.length&&await B(e1,s1,Y)},K=e1=>{h.value&&(h.value=null,p.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),c("tooltip-close",e1.marker))},G=e1=>{M.value.startX=e1.changedTouches[0].screenX,M.value.startY=e1.changedTouches[0].screenY},W=e1=>{M.value.endX=e1.changedTouches[0].screenX,M.value.endY=e1.changedTouches[0].screenY,E()},O=e1=>{n.vertical&&!n.inline&&e1.preventDefault()},E=()=>{const e1=n.vertical?"Y":"X";Math.abs(M.value[`start${e1}`]-M.value[`end${e1}`])>10&&c("handle-swipe",M.value[`start${e1}`]>M.value[`end${e1}`]?"right":"left")},S=(e1,s1,Y)=>{e1&&(Array.isArray(v.value[s1])?v.value[s1][Y]=e1:v.value[s1]=[e1]),n.arrowNavigation&&r(v.value,"calendar")},U=e1=>{n.monthChangeOnScroll&&(e1.preventDefault(),c("handle-scroll",e1))},Z=e1=>u.value.type==="local"?RJ(e1.value,{weekStartsOn:+n.weekStart}):u.value.type==="iso"?IJ(e1.value):typeof u.value.type=="function"?u.value.type(e1.value):"",A=e1=>{const s1=e1[0];return u.value.hideOnOffsetDates?e1.some(Y=>Y.current)?Z(s1):"":Z(s1)},R=(e1,s1)=>{d.value.enabled||(za(e1,o.value),c("select-date",s1))},Q=e1=>{za(e1,o.value)},c1=e1=>{d.value.enabled&&d.value.dragSelect?(b.value=!0,c("select-date",e1)):d.value.enabled&&c("select-date",e1)};return t({triggerTransition:V}),(e1,s1)=>{var Y;return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(P.value)},[s.createElementVNode("div",{ref_key:"calendarWrapRef",ref:m,role:"grid",class:s.normalizeClass(N.value),"aria-label":(Y=s.unref(l))==null?void 0:Y.calendarWrap},[s.createElementVNode("div",nz3,[e1.weekNumbers?(s.openBlock(),s.createElementBlock("div",rz3,s.toDisplayString(e1.weekNumName),1)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.value,(d1,x1)=>{var f1,t1;return s.openBlock(),s.createElementBlock("div",{key:x1,class:"dp__calendar_header_item",role:"gridcell","data-test":"calendar-header","aria-label":(t1=(f1=s.unref(l))==null?void 0:f1.weekDay)==null?void 0:t1.call(f1,x1)},[e1.$slots["calendar-header"]?s.renderSlot(e1.$slots,"calendar-header",{key:0,day:d1,index:x1}):s.createCommentVNode("",!0),e1.$slots["calendar-header"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(d1),1)],64))],8,iz3)}),128))]),oz3,s.createVNode(s.Transition,{name:g.value,css:!!e1.transitions},{default:s.withCtx(()=>{var d1;return[y.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup","aria-label":((d1=s.unref(l))==null?void 0:d1.calendarDays)||void 0,onMouseleave:s1[1]||(s1[1]=x1=>b.value=!1)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(_.value,(x1,f1)=>(s.openBlock(),s.createElementBlock("div",{key:f1,class:"dp__calendar_row",role:"row"},[e1.weekNumbers?(s.openBlock(),s.createElementBlock("div",lz3,[s.createElementVNode("div",fz3,s.toDisplayString(A(x1.days)),1)])):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(x1.days,(t1,l1)=>{var i1,p1,b1;return s.openBlock(),s.createElementBlock("div",{id:T(t1.value),ref_for:!0,ref:v1=>S(v1,f1,l1),key:l1+f1,role:"gridcell",class:"dp__calendar_item","aria-selected":(t1.classData.dp__active_date||t1.classData.dp__range_start||t1.classData.dp__range_start)??void 0,"aria-disabled":t1.classData.dp__cell_disabled||void 0,"aria-label":(p1=(i1=s.unref(l))==null?void 0:i1.day)==null?void 0:p1.call(i1,t1),tabindex:"0","data-test":t1.value,onClick:s.withModifiers(v1=>R(v1,t1),["prevent"]),onKeydown:v1=>s.unref(Y4)(v1,()=>e1.$emit("select-date",t1)),onMouseenter:v1=>F(t1,f1,l1),onMouseleave:v1=>K(t1),onMousedown:v1=>c1(t1),onMouseup:s1[0]||(s1[0]=v1=>b.value=!1)},[s.createElementVNode("div",{class:s.normalizeClass(["dp__cell_inner",t1.classData])},[e1.$slots.day&&j.value(t1)?s.renderSlot(e1.$slots,"day",{key:0,day:+t1.text,date:t1.value}):s.createCommentVNode("",!0),e1.$slots.day?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(t1.text),1)],64)),t1.marker&&j.value(t1)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[e1.$slots.marker?s.renderSlot(e1.$slots,"marker",{key:0,marker:t1.marker,day:+t1.text,date:t1.value}):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(L.value(t1.marker)),style:s.normalizeStyle(t1.marker.color?{backgroundColor:t1.marker.color}:{})},null,6))],64)):s.createCommentVNode("",!0),w.value(t1.value)?(s.openBlock(),s.createElementBlock("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:x,class:"dp__marker_tooltip",style:s.normalizeStyle(p.value)},[(b1=t1.marker)!=null&&b1.tooltip?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:Q},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t1.marker.tooltip,(v1,C1)=>(s.openBlock(),s.createElementBlock("div",{key:C1,class:"dp__tooltip_text"},[e1.$slots["marker-tooltip"]?s.renderSlot(e1.$slots,"marker-tooltip",{key:0,tooltip:v1,day:t1.value}):s.createCommentVNode("",!0),e1.$slots["marker-tooltip"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",{class:"dp__tooltip_mark",style:s.normalizeStyle(v1.color?{backgroundColor:v1.color}:{})},null,4),s.createElementVNode("div",null,s.toDisplayString(v1.text),1)],64))]))),128)),s.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:s.normalizeStyle(k.value)},null,4)])):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0)],2)],40,uz3)}),128))]))),128))],40,sz3)):s.createCommentVNode("",!0)]}),_:3},8,["name","css"])],10,cz3)],2)}}}),j81=e=>Array.isArray(e),hz3=(e,t,a,c)=>{const n=s.ref([]),r=s.ref(new Date),i=s.ref(),{modelValue:o,calendars:l,time:f,today:u}=zu(e,t),{defaultedMultiCalendars:d,defaultedStartTime:h,defaultedRange:p,defaultedConfig:v,defaultedTz:m,propDates:y,defaultedMultiDates:g}=ee(e),{validateMonthYearInRange:M,isDisabled:x,isDateRangeAllowed:k,checkMinMaxRange:b}=Ja(e),{updateTimeValues:_,getSetDateTime:C,setTime:H,assignStartTime:V,validateTime:N,disabledTimesConfig:L}=nM1(e,f,o,c),w=s.computed(()=>u1=>l.value[u1]?l.value[u1].month:0),P=s.computed(()=>u1=>l.value[u1]?l.value[u1].year:0),j=u1=>!v.value.keepViewOnOffsetClick||u1?!0:!i.value,T=(u1,o1,_1,L1=!1)=>{var W1,g2;j(L1)&&(l.value[u1]||(l.value[u1]={month:0,year:0}),l.value[u1].month=B81(o1)?(W1=l.value[u1])==null?void 0:W1.month:o1,l.value[u1].year=B81(_1)?(g2=l.value[u1])==null?void 0:g2.year:_1)},B=()=>{e.autoApply&&t("select-date")};s.watch(o,(u1,o1)=>{JSON.stringify(u1)!==JSON.stringify(o1)&&G()},{deep:!0}),s.onMounted(()=>{e.shadow||(o.value||(e1(),h.value&&V(h.value)),G(!0),e.focusStartDate&&e.startDate&&e1())});const F=s.computed(()=>{var u1;return(u1=e.flow)!=null&&u1.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),K=()=>{e.autoApply&&F.value&&t("auto-apply")},G=(u1=!1)=>{if(o.value)return Array.isArray(o.value)?(n.value=o.value,A(u1)):E(o.value,u1);if(d.value.count&&u1&&!e.startDate)return O($1(),u1)},W=()=>Array.isArray(o.value)&&p.value.enabled?D2(o.value[0])===D2(o.value[1]??o.value[0]):!1,O=(u1,o1=!1)=>{if((!d.value.count||!d.value.static||o1)&&T(0,D2(u1),H2(u1)),d.value.count&&(!d.value.solo||!o.value||W()))for(let _1=1;_1<d.value.count;_1++){const L1=x3($1(),{month:w.value(_1-1),year:P.value(_1-1)}),W1=gg1(L1,{months:1});l.value[_1]={month:D2(W1),year:H2(W1)}}},E=(u1,o1)=>{O(u1),H("hours",M8(u1)),H("minutes",Ia(u1)),H("seconds",us(u1)),d.value.count&&o1&&c1()},S=u1=>{if(d.value.count){if(d.value.solo)return 0;const o1=D2(u1[0]),_1=D2(u1[1]);return Math.abs(_1-o1)<d.value.count?0:1}return 1},U=(u1,o1)=>{u1[1]&&p.value.showLastInRange?O(u1[S(u1)],o1):O(u1[0],o1);const _1=(L1,W1)=>[L1(u1[0]),u1[1]?L1(u1[1]):f[W1][1]];H("hours",_1(M8,"hours")),H("minutes",_1(Ia,"minutes")),H("seconds",_1(us,"seconds"))},Z=(u1,o1)=>{if((p.value.enabled||e.weekPicker)&&!g.value.enabled)return U(u1,o1);if(g.value.enabled&&o1){const _1=u1[u1.length-1];return E(_1,o1)}},A=u1=>{const o1=o.value;Z(o1,u1),d.value.count&&d.value.solo&&c1()},R=(u1,o1)=>{const _1=x3($1(),{month:w.value(o1),year:P.value(o1)}),L1=u1<0?v6(_1,1):hs(_1,1);M(D2(L1),H2(L1),u1<0,e.preventMinMaxNavigation)&&(T(o1,D2(L1),H2(L1)),t("update-month-year",{instance:o1,month:D2(L1),year:H2(L1)}),d.value.count&&!d.value.solo&&Q(o1),a())},Q=u1=>{for(let o1=u1-1;o1>=0;o1--){const _1=hs(x3($1(),{month:w.value(o1+1),year:P.value(o1+1)}),1);T(o1,D2(_1),H2(_1))}for(let o1=u1+1;o1<=d.value.count-1;o1++){const _1=v6(x3($1(),{month:w.value(o1-1),year:P.value(o1-1)}),1);T(o1,D2(_1),H2(_1))}},c1=()=>{if(Array.isArray(o.value)&&o.value.length===2){const u1=$1($1(o.value[1]?o.value[1]:v6(o.value[0],1))),[o1,_1]=[D2(o.value[0]),H2(o.value[0])],[L1,W1]=[D2(o.value[1]),H2(o.value[1])];(o1!==L1||o1===L1&&_1!==W1)&&d.value.solo&&T(1,D2(u1),H2(u1))}else o.value&&!Array.isArray(o.value)&&(T(0,D2(o.value),H2(o.value)),O($1()))},e1=()=>{e.startDate&&(T(0,D2($1(e.startDate)),H2($1(e.startDate))),d.value.count&&Q(0))},s1=(u1,o1)=>{if(e.monthChangeOnScroll){const _1=new Date().getTime()-r.value.getTime(),L1=Math.abs(u1.deltaY);let W1=500;L1>1&&(W1=100),L1>100&&(W1=0),_1>W1&&(r.value=new Date,R(e.monthChangeOnScroll!=="inverse"?-u1.deltaY:u1.deltaY,o1))}},Y=(u1,o1,_1=!1)=>{e.monthChangeOnArrows&&e.vertical===_1&&d1(u1,o1)},d1=(u1,o1)=>{R(u1==="right"?-1:1,o1)},x1=u1=>{if(y.value.markers)return M$(u1.value,y.value.markers)},f1=(u1,o1)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[u1==0,!0];case"fair":return[u1==0||o1>u1,!0];case"append":return[!1,!1];default:return[!1,!1]}},t1=(u1,o1,_1,L1)=>{if(e.sixWeeks&&u1.length<6){const W1=6-u1.length,g2=(o1.getDay()+7-L1)%7,V2=6-(_1.getDay()+7-L1)%7,[B3,he]=f1(g2,V2);for(let s2=1;s2<=W1;s2++)if(he?!!(s2%2)==B3:B3){const L2=u1[0].days[0],Qe=l1(K0(L2.value,-7),D2(o1));u1.unshift({days:Qe})}else{const L2=u1[u1.length-1],Qe=L2.days[L2.days.length-1],Je=l1(K0(Qe.value,1),D2(o1));u1.push({days:Je})}}return u1},l1=(u1,o1)=>{const _1=$1(u1),L1=[];for(let W1=0;W1<7;W1++){const g2=K0(_1,W1),V2=D2(g2)!==o1;L1.push({text:e.hideOffsetDates&&V2?"":g2.getDate(),value:g2,current:!V2,classData:{}})}return L1},i1=(u1,o1)=>{const _1=[],L1=new Date(o1,u1),W1=new Date(o1,u1+1,0),g2=e.weekStart,V2=w6(L1,{weekStartsOn:g2}),B3=he=>{const s2=l1(he,u1);if(_1.push({days:s2}),!_1[_1.length-1].days.some(L2=>O2(u0(L2.value),u0(W1)))){const L2=K0(he,7);B3(L2)}};return B3(V2),t1(_1,L1,W1,g2)},p1=u1=>{const o1=Ca($1(u1.value),f.hours,f.minutes,Y1());t("date-update",o1),g.value.enabled?e11(o1,o,g.value.limit):o.value=o1,c(),s.nextTick().then(()=>{K()})},b1=u1=>p.value.noDisabledRange?Yg1(n.value[0],u1).some(o1=>x(o1)):!1,v1=()=>{n.value=o.value?o.value.slice():[],n.value.length===2&&!(p.value.fixedStart||p.value.fixedEnd)&&(n.value=[])},C1=(u1,o1)=>{const _1=[$1(u1.value),K0($1(u1.value),+p.value.autoRange)];k(_1)?(o1&&D1(u1.value),n.value=_1):t("invalid-date",u1.value)},D1=u1=>{const o1=D2($1(u1)),_1=H2($1(u1));if(T(0,o1,_1),d.value.count>0)for(let L1=1;L1<d.value.count;L1++){const W1=qx3(x3($1(u1),{year:w.value(L1-1),month:P.value(L1-1)}));T(L1,W1.month,W1.year)}},R1=u1=>{if(b1(u1.value)||!b(u1.value,o.value,p.value.fixedStart?0:1))return t("invalid-date",u1.value);n.value=tM1($1(u1.value),o,t,p)},B1=(u1,o1)=>{if(v1(),p.value.autoRange)return C1(u1,o1);if(p.value.fixedStart||p.value.fixedEnd)return R1(u1);n.value[0]?b($1(u1.value),o.value)&&!b1(u1.value)?ce($1(u1.value),$1(n.value[0]))?(n.value.unshift($1(u1.value)),t("range-end",n.value[0])):(n.value[1]=$1(u1.value),t("range-end",n.value[1])):(e.autoApply&&t("auto-apply-invalid",u1.value),t("invalid-date",u1.value)):(n.value[0]=$1(u1.value),t("range-start",n.value[0]))},Y1=(u1=!0)=>e.enableSeconds?Array.isArray(f.seconds)?u1?f.seconds[0]:f.seconds[1]:f.seconds:0,G1=u1=>{n.value[u1]=Ca(n.value[u1],f.hours[u1],f.minutes[u1],Y1(u1!==1))},n2=()=>{var u1,o1;n.value[0]&&n.value[1]&&+((u1=n.value)==null?void 0:u1[0])>+((o1=n.value)==null?void 0:o1[1])&&(n.value.reverse(),t("range-start",n.value[0]),t("range-end",n.value[1]))},o2=()=>{n.value.length&&(n.value[0]&&!n.value[1]?G1(0):(G1(0),G1(1),c()),n2(),o.value=n.value.slice(),zj(n.value,t,e.autoApply,e.modelAuto))},q1=(u1,o1=!1)=>{if(x(u1.value)||!u1.current&&e.hideOffsetDates)return t("invalid-date",u1.value);if(i.value=JSON.parse(JSON.stringify(u1)),!p.value.enabled)return p1(u1);j81(f.hours)&&j81(f.minutes)&&!g.value.enabled&&(B1(u1,o1),o2())},p2=(u1,o1)=>{var _1;T(u1,o1.month,o1.year,!0),d.value.count&&!d.value.solo&&Q(u1),t("update-month-year",{instance:u1,month:o1.month,year:o1.year}),a(d.value.solo?u1:void 0);const L1=(_1=e.flow)!=null&&_1.length?e.flow[e.flowStep]:void 0;!o1.fromNav&&(L1===d4.month||L1===d4.year)&&c()},T2=(u1,o1)=>{eM1({value:u1,modelValue:o,range:p.value.enabled,timezone:o1?void 0:m.value.timezone}),B(),e.multiCalendars&&s.nextTick().then(()=>G(!0))},h2=()=>{p.value.enabled?o.value&&Array.isArray(o.value)&&o.value[0]?o.value=ce($1(),o.value[0])?[$1(),o.value[0]]:[o.value[0],$1()]:o.value=[$1()]:o.value=$1(),B()},y2=()=>{if(Array.isArray(o.value))if(g.value.enabled){const u1=e3();o.value[o.value.length-1]=C(u1)}else o.value=o.value.map((u1,o1)=>u1&&C(u1,o1));else o.value=C(o.value);t("time-update")},e3=()=>Array.isArray(o.value)&&o.value.length?o.value[o.value.length-1]:null;return{calendars:l,modelValue:o,month:w,year:P,time:f,disabledTimesConfig:L,today:u,validateTime:N,getCalendarDays:i1,getMarker:x1,handleScroll:s1,handleSwipe:d1,handleArrow:Y,selectDate:q1,updateMonthYear:p2,presetDate:T2,selectCurrentDate:h2,updateTime:(u1,o1=!0,_1=!1)=>{_(u1,o1,_1,y2)}}},pz3={key:0},mz3=s.defineComponent({__name:"DatePicker",props:{...T6},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,{calendars:r,month:i,year:o,modelValue:l,time:f,disabledTimesConfig:u,today:d,validateTime:h,getCalendarDays:p,getMarker:v,handleArrow:m,handleScroll:y,handleSwipe:g,selectDate:M,updateMonthYear:x,presetDate:k,selectCurrentDate:b,updateTime:_}=hz3(n,c,W,O),C=s.useSlots(),{setHoverDate:H,getDayClassData:V,clearHoverDate:N}=mb3(l,n),{defaultedMultiCalendars:L}=ee(n),w=s.ref([]),P=s.ref([]),j=s.ref(null),T=n0(C,"calendar"),B=n0(C,"monthYear"),F=n0(C,"timePicker"),K=s1=>{n.shadow||c("mount",s1)};s.watch(r,()=>{n.shadow||setTimeout(()=>{c("recalculate-position")},0)},{deep:!0});const G=s.computed(()=>s1=>p(i.value(s1),o.value(s1)).map(Y=>({...Y,days:Y.days.map(d1=>(d1.marker=v(d1),d1.classData=V(d1),d1))})));function W(s1){var Y;s1||s1===0?(Y=P.value[s1])==null||Y.triggerTransition(i.value(s1),o.value(s1)):P.value.forEach((d1,x1)=>d1.triggerTransition(i.value(x1),o.value(x1)))}function O(){c("update-flow-step")}const E=(s1,Y=!1)=>{M(s1,Y),n.spaceConfirm&&c("select-date")},S=(s1,Y,d1=0)=>{var x1;(x1=w.value[d1])==null||x1.toggleMonthPicker(s1,Y)},U=(s1,Y,d1=0)=>{var x1;(x1=w.value[d1])==null||x1.toggleYearPicker(s1,Y)},Z=(s1,Y,d1)=>{var x1;(x1=j.value)==null||x1.toggleTimePicker(s1,Y,d1)},A=s1=>{if(!n.range){const Y=l.value?l.value:d,d1=s1?w6(Y,{weekStartsOn:1}):wg1(Y,{weekStartsOn:1});M({value:d1,current:D2(Y)===i.value(0),text:"",classData:{}})}},R=s1=>{var Y;(Y=w.value[0])==null||Y.handleMonthYearChange(s1,!0)},Q=s1=>{x(0,{month:i.value(0),year:o.value(0)+(s1?1:-1),fromNav:!0})},c1=(s1,Y)=>{s1===d4.time&&c(`time-picker-${Y?"open":"close"}`),c("overlay-toggle",{open:Y,overlay:s1})},e1=s1=>{c("overlay-toggle",{open:!1,overlay:s1}),c("focus-menu")};return t({clearHoverDate:N,presetDate:k,selectCurrentDate:b,toggleMonthPicker:S,toggleYearPicker:U,toggleTimePicker:Z,handleArrow:m,updateMonthYear:x,getSidebarProps:()=>({modelValue:l,month:i,year:o,time:f,updateTime:_,updateMonthYear:x,selectDate:M,presetDate:k}),changeMonth:R,changeYear:Q,selectWeekDate:A}),(s1,Y)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(bj,{"multi-calendars":s.unref(L).count,collapse:s1.collapse},{default:s.withCtx(({instance:d1,index:x1})=>[s1.disableMonthYearSelect?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(az3,s.mergeProps({key:0,ref:f1=>{f1&&(w.value[x1]=f1)},months:s.unref(Fg1)(s1.formatLocale,s1.locale,s1.monthNameFormat),years:s.unref(XJ)(s1.yearRange,s1.locale,s1.reverseYears),month:s.unref(i)(d1),year:s.unref(o)(d1),instance:d1},s1.$props,{onMount:Y[0]||(Y[0]=f1=>K(s.unref(ci).header)),onResetFlow:Y[1]||(Y[1]=f1=>s1.$emit("reset-flow")),onUpdateMonthYear:f1=>s.unref(x)(d1,f1),onOverlayClosed:e1,onOverlayOpened:Y[2]||(Y[2]=f1=>s1.$emit("overlay-toggle",{open:!0,overlay:f1}))}),s.createSlots({_:2},[s.renderList(s.unref(B),(f1,t1)=>({name:f1,fn:s.withCtx(l1=>[s.renderSlot(s1.$slots,f1,s.normalizeProps(s.guardReactiveProps(l1)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),s.createVNode(dz3,s.mergeProps({ref:f1=>{f1&&(P.value[x1]=f1)},"mapped-dates":G.value(d1),month:s.unref(i)(d1),year:s.unref(o)(d1),instance:d1},s1.$props,{onSelectDate:f1=>s.unref(M)(f1,d1!==1),onHandleSpace:f1=>E(f1,d1!==1),onSetHoverDate:Y[3]||(Y[3]=f1=>s.unref(H)(f1)),onHandleScroll:f1=>s.unref(y)(f1,d1),onHandleSwipe:f1=>s.unref(g)(f1,d1),onMount:Y[4]||(Y[4]=f1=>K(s.unref(ci).calendar)),onResetFlow:Y[5]||(Y[5]=f1=>s1.$emit("reset-flow")),onTooltipOpen:Y[6]||(Y[6]=f1=>s1.$emit("tooltip-open",f1)),onTooltipClose:Y[7]||(Y[7]=f1=>s1.$emit("tooltip-close",f1))}),s.createSlots({_:2},[s.renderList(s.unref(T),(f1,t1)=>({name:f1,fn:s.withCtx(l1=>[s.renderSlot(s1.$slots,f1,s.normalizeProps(s.guardReactiveProps({...l1})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse"]),s1.enableTimePicker?(s.openBlock(),s.createElementBlock("div",pz3,[s1.$slots["time-picker"]?s.renderSlot(s1.$slots,"time-picker",s.normalizeProps(s.mergeProps({key:0},{time:s.unref(f),updateTime:s.unref(_)}))):(s.openBlock(),s.createBlock(cM1,s.mergeProps({key:1,ref_key:"timePickerRef",ref:j},s1.$props,{hours:s.unref(f).hours,minutes:s.unref(f).minutes,seconds:s.unref(f).seconds,"internal-model-value":s1.internalModelValue,"disabled-times-config":s.unref(u),"validate-time":s.unref(h),onMount:Y[8]||(Y[8]=d1=>K(s.unref(ci).timePicker)),"onUpdate:hours":Y[9]||(Y[9]=d1=>s.unref(_)(d1)),"onUpdate:minutes":Y[10]||(Y[10]=d1=>s.unref(_)(d1,!1)),"onUpdate:seconds":Y[11]||(Y[11]=d1=>s.unref(_)(d1,!1,!0)),onResetFlow:Y[12]||(Y[12]=d1=>s1.$emit("reset-flow")),onOverlayClosed:Y[13]||(Y[13]=d1=>c1(d1,!1)),onOverlayOpened:Y[14]||(Y[14]=d1=>c1(d1,!0)),onAmPmChange:Y[15]||(Y[15]=d1=>s1.$emit("am-pm-change",d1))}),s.createSlots({_:2},[s.renderList(s.unref(F),(d1,x1)=>({name:d1,fn:s.withCtx(f1=>[s.renderSlot(s1.$slots,d1,s.normalizeProps(s.guardReactiveProps(f1)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):s.createCommentVNode("",!0)],64))}}),vz3=(e,t)=>{const a=s.ref(),{defaultedMultiCalendars:c,defaultedConfig:n,defaultedHighlight:r,defaultedRange:i,propDates:o,defaultedFilters:l,defaultedMultiDates:f}=ee(e),{modelValue:u,year:d,month:h,calendars:p}=zu(e,t),{isDisabled:v}=Ja(e),{selectYear:m,groupedYears:y,showYearPicker:g,isDisabled:M,toggleYearPicker:x,handleYearSelect:k,handleYear:b}=aM1({modelValue:u,multiCalendars:c,highlight:r,calendars:p,propDates:o,month:h,year:d,filters:l,props:e,emit:t}),_=(T,B)=>[T,B].map(F=>yt(F,"MMMM",{locale:e.formatLocale})).join("-"),C=s.computed(()=>T=>u.value?Array.isArray(u.value)?u.value.some(B=>P81(T,B)):P81(u.value,T):!1),H=T=>{if(i.value.enabled){if(Array.isArray(u.value)){const B=O2(T,u.value[0])||O2(T,u.value[1]);return Mj(u.value,a.value,T)&&!B}return!1}return!1},V=(T,B)=>T.quarter===S81(B)&&T.year===H2(B),N=T=>typeof r.value=="function"?r.value({quarter:S81(T),year:H2(T)}):!!r.value.quarters.find(B=>V(B,T)),L=s.computed(()=>T=>{const B=x3(new Date,{year:d.value(T)});return OM3({start:OJ(B),end:_g1(B)}).map(F=>{const K=Ur(F),G=N81(F),W=v(F),O=H(K),E=N(K);return{text:_(K,G),value:K,active:C.value(K),highlighted:E,disabled:W,isBetween:O}})}),w=T=>{e11(T,u,f.value.limit),t("auto-apply",!0)},P=T=>{u.value=t11(u,T,t),zj(u.value,t,e.autoApply,e.modelAuto)},j=T=>{u.value=T,t("auto-apply")};return{defaultedConfig:n,defaultedMultiCalendars:c,groupedYears:y,year:d,isDisabled:M,quarters:L,showYearPicker:g,modelValue:u,setHoverDate:T=>{a.value=T},selectYear:m,selectQuarter:(T,B,F)=>{if(!F)return p.value[B].month=D2(N81(T)),f.value.enabled?w(T):i.value.enabled?P(T):j(T)},toggleYearPicker:x,handleYearSelect:k,handleYear:b}},yz3={class:"dp--quarter-items"},gz3=["data-test","disabled","onClick","onMouseover"],Mz3=s.defineComponent({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...T6},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.useSlots(),i=n0(r,"yearMode"),{defaultedMultiCalendars:o,defaultedConfig:l,groupedYears:f,year:u,isDisabled:d,quarters:h,modelValue:p,showYearPicker:v,setHoverDate:m,selectQuarter:y,toggleYearPicker:g,handleYearSelect:M,handleYear:x}=vz3(n,c);return t({getSidebarProps:()=>({modelValue:p,year:u,selectQuarter:y,handleYearSelect:M,handleYear:x})}),(k,b)=>(s.openBlock(),s.createBlock(bj,{"multi-calendars":s.unref(o).count,collapse:k.collapse,stretch:""},{default:s.withCtx(({instance:_})=>[s.createElementVNode("div",{class:"dp-quarter-picker-wrap",style:s.normalizeStyle({minHeight:`${s.unref(l).modeHeight}px`})},[k.$slots["top-extra"]?s.renderSlot(k.$slots,"top-extra",{key:0,value:k.internalModelValue}):s.createCommentVNode("",!0),s.createElementVNode("div",null,[s.createVNode(Jg1,s.mergeProps(k.$props,{items:s.unref(f)(_),instance:_,"show-year-picker":s.unref(v)[_],year:s.unref(u)(_),"is-disabled":C=>s.unref(d)(_,C),onHandleYear:C=>s.unref(x)(_,C),onYearSelect:C=>s.unref(M)(C,_),onToggleYearPicker:C=>s.unref(g)(_,C==null?void 0:C.flow,C==null?void 0:C.show)}),s.createSlots({_:2},[s.renderList(s.unref(i),(C,H)=>({name:C,fn:s.withCtx(V=>[s.renderSlot(k.$slots,C,s.normalizeProps(s.guardReactiveProps(V)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),s.createElementVNode("div",yz3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(h)(_),(C,H)=>(s.openBlock(),s.createElementBlock("div",{key:H},[s.createElementVNode("button",{type:"button",class:s.normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":C.active,"dp--qr-btn-between":C.isBetween,"dp--qr-btn-disabled":C.disabled,"dp--highlighted":C.highlighted}]),"data-test":C.value,disabled:C.disabled,onClick:V=>s.unref(y)(C.value,_,C.disabled),onMouseover:V=>s.unref(m)(C.value)},[k.$slots.quarter?s.renderSlot(k.$slots,"quarter",{key:0,value:C.value,text:C.text}):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(C.text),1)],64))],42,gz3)]))),128))])],4)]),_:3},8,["multi-calendars","collapse"]))}}),kz3=["id","aria-label"],xz3={key:0,class:"dp--menu-load-container"},bz3=s.createElementVNode("span",{class:"dp--menu-loader"},null,-1),zz3=[bz3],Cz3={key:0,class:"dp__sidebar_left"},_z3=["data-test","onClick","onKeydown"],wz3={key:2,class:"dp__sidebar_right"},Hz3={key:3,class:"dp__action_extra"},U81=s.defineComponent({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...xj,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.ref(null),i=s.computed(()=>{const{openOnTop:t1,...l1}=n;return{...l1,flowStep:H.value,collapse:n.collapse,noOverlayFocus:n.noOverlayFocus,menuWrapRef:r.value}}),{setMenuFocused:o,setShiftKey:l,control:f}=Qg1(),u=s.useSlots(),{defaultedTextInput:d,defaultedInline:h,defaultedConfig:p}=ee(n),v=s.ref(null),m=s.ref(0),y=s.ref(null),g=s.ref(!1),M=s.ref(null);s.onMounted(()=>{if(!n.shadow){g.value=!0,x(),window.addEventListener("resize",x);const t1=Pe(r);if(t1&&!d.value.enabled&&!h.value.enabled&&(o(!0),j()),t1){const l1=i1=>{p.value.allowPreventDefault&&i1.preventDefault(),za(i1,p.value,!0)};t1.addEventListener("pointerdown",l1),t1.addEventListener("mousedown",l1)}}}),s.onUnmounted(()=>{window.removeEventListener("resize",x)});const x=()=>{const t1=Pe(y);t1&&(m.value=t1.getBoundingClientRect().width)},{arrowRight:k,arrowLeft:b,arrowDown:_,arrowUp:C}=Qa(),{flowStep:H,updateFlowStep:V,childMount:N,resetFlow:L}=vb3(n,c,M),w=s.computed(()=>n.monthPicker?Nb3:n.yearPicker?Tb3:n.timePicker?Xb3:n.quarterPicker?Mz3:mz3),P=s.computed(()=>{var t1;if(p.value.arrowLeft)return p.value.arrowLeft;const l1=(t1=r.value)==null?void 0:t1.getBoundingClientRect(),i1=n.getInputRect();return i1.width<m.value&&i1.left<=((l1==null?void 0:l1.left)??0)?`${i1.width/2}px`:"50%"}),j=()=>{const t1=Pe(r);t1&&t1.focus({preventScroll:!0})},T=s.computed(()=>{var t1;return((t1=M.value)==null?void 0:t1.getSidebarProps())||{}}),B=()=>{n.openOnTop&&c("recalculate-position")},F=n0(u,"action"),K=s.computed(()=>n.monthPicker||n.yearPicker?n0(u,"monthYear"):n.timePicker?n0(u,"timePicker"):n0(u,"shared")),G=s.computed(()=>n.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),W=s.computed(()=>({dp__menu_disabled:n.disabled,dp__menu_readonly:n.readonly,"dp-menu-loading":n.loading})),O=s.computed(()=>({dp__menu:!0,dp__menu_index:!h.value.enabled,dp__relative:h.value.enabled,[n.menuClassName]:!!n.menuClassName})),E=t1=>{za(t1,p.value,!0)},S=()=>{n.escClose&&c("close-picker")},U=t1=>{if(n.arrowNavigation){if(t1===S4.up)return C();if(t1===S4.down)return _();if(t1===S4.left)return b();if(t1===S4.right)return k()}else t1===S4.right||t1===S4.up?c1("handleArrow",S4.left,0,t1===S4.up):c1("handleArrow",S4.right,0,t1===S4.down)},Z=t1=>{l(t1.shiftKey),!n.disableMonthYearSelect&&t1.code===G3.tab&&t1.target.classList.contains("dp__menu")&&f.value.shiftKeyInMenu&&(t1.preventDefault(),za(t1,p.value,!0),c("close-picker"))},A=()=>{j(),c("time-picker-close")},R=t1=>{var l1,i1,p1;(l1=M.value)==null||l1.toggleTimePicker(!1,!1),(i1=M.value)==null||i1.toggleMonthPicker(!1,!1,t1),(p1=M.value)==null||p1.toggleYearPicker(!1,!1,t1)},Q=(t1,l1=0)=>{var i1,p1,b1;return t1==="month"?(i1=M.value)==null?void 0:i1.toggleMonthPicker(!1,!0,l1):t1==="year"?(p1=M.value)==null?void 0:p1.toggleYearPicker(!1,!0,l1):t1==="time"?(b1=M.value)==null?void 0:b1.toggleTimePicker(!0,!1):R(l1)},c1=(t1,...l1)=>{var i1,p1;(i1=M.value)!=null&&i1[t1]&&((p1=M.value)==null||p1[t1](...l1))},e1=()=>{c1("selectCurrentDate")},s1=(t1,l1)=>{c1("presetDate",t1,l1)},Y=()=>{c1("clearHoverDate")},d1=(t1,l1)=>{c1("updateMonthYear",t1,l1)},x1=(t1,l1)=>{t1.preventDefault(),U(l1)},f1=t1=>{if(Z(t1),t1.key===G3.home||t1.key===G3.end)return c1("selectWeekDate",t1.key===G3.home);if(t1.key===G3.pageUp||t1.key===G3.pageDown)return t1.shiftKey?c1("changeYear",t1.key===G3.pageUp):c1("changeMonth",t1.key===G3.pageUp);switch(t1.key){case G3.esc:return S();case G3.arrowLeft:return x1(t1,S4.left);case G3.arrowRight:return x1(t1,S4.right);case G3.arrowUp:return x1(t1,S4.up);case G3.arrowDown:return x1(t1,S4.down);default:return}};return t({updateMonthYear:d1,switchView:Q}),(t1,l1)=>{var i1,p1,b1;return s.openBlock(),s.createElementBlock("div",{id:t1.uid?`dp-menu-${t1.uid}`:void 0,ref_key:"dpMenuRef",ref:r,tabindex:"0",role:"dialog","aria-label":(i1=t1.ariaLabels)==null?void 0:i1.menu,class:s.normalizeClass(O.value),style:s.normalizeStyle({"--dp-arrow-left":P.value}),onMouseleave:Y,onClick:E,onKeydown:f1},[(t1.disabled||t1.readonly)&&s.unref(h).enabled||t1.loading?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(W.value)},[t1.loading?(s.openBlock(),s.createElementBlock("div",xz3,zz3)):s.createCommentVNode("",!0)],2)):s.createCommentVNode("",!0),!s.unref(h).enabled&&!t1.teleportCenter?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(G.value)},null,2)):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"innerMenuRef",ref:y,class:s.normalizeClass({dp__menu_content_wrapper:((p1=t1.presetDates)==null?void 0:p1.length)||!!t1.$slots["left-sidebar"]||!!t1.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&(((b1=t1.presetDates)==null?void 0:b1.length)||!!t1.$slots["left-sidebar"]||!!t1.$slots["right-sidebar"])}),style:s.normalizeStyle({"--dp-menu-width":`${m.value}px`})},[t1.$slots["left-sidebar"]?(s.openBlock(),s.createElementBlock("div",Cz3,[s.renderSlot(t1.$slots,"left-sidebar",s.normalizeProps(s.guardReactiveProps(T.value)))])):s.createCommentVNode("",!0),t1.presetDates.length?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t1.presetDates,(v1,C1)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:C1},[v1.slot?s.renderSlot(t1.$slots,v1.slot,{key:0,presetDate:s1,label:v1.label,value:v1.value}):(s.openBlock(),s.createElementBlock("button",{key:1,type:"button",style:s.normalizeStyle(v1.style||{}),class:s.normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test":v1.testId??void 0,onClick:s.withModifiers(D1=>s1(v1.value,v1.noTz),["prevent"]),onKeydown:D1=>s.unref(Y4)(D1,()=>s1(v1.value,v1.noTz),!0)},s.toDisplayString(v1.label),47,_z3))],64))),128))],2)):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"calendarWrapperRef",ref:v,class:"dp__instance_calendar",role:"document"},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(w.value),s.mergeProps({ref_key:"dynCmpRef",ref:M},i.value,{"flow-step":s.unref(H),onMount:s.unref(N),onUpdateFlowStep:s.unref(V),onResetFlow:s.unref(L),onFocusMenu:j,onSelectDate:l1[0]||(l1[0]=v1=>t1.$emit("select-date")),onDateUpdate:l1[1]||(l1[1]=v1=>t1.$emit("date-update",v1)),onTooltipOpen:l1[2]||(l1[2]=v1=>t1.$emit("tooltip-open",v1)),onTooltipClose:l1[3]||(l1[3]=v1=>t1.$emit("tooltip-close",v1)),onAutoApply:l1[4]||(l1[4]=v1=>t1.$emit("auto-apply",v1)),onRangeStart:l1[5]||(l1[5]=v1=>t1.$emit("range-start",v1)),onRangeEnd:l1[6]||(l1[6]=v1=>t1.$emit("range-end",v1)),onInvalidFixedRange:l1[7]||(l1[7]=v1=>t1.$emit("invalid-fixed-range",v1)),onTimeUpdate:l1[8]||(l1[8]=v1=>t1.$emit("time-update")),onAmPmChange:l1[9]||(l1[9]=v1=>t1.$emit("am-pm-change",v1)),onTimePickerOpen:l1[10]||(l1[10]=v1=>t1.$emit("time-picker-open",v1)),onTimePickerClose:A,onRecalculatePosition:B,onUpdateMonthYear:l1[11]||(l1[11]=v1=>t1.$emit("update-month-year",v1)),onAutoApplyInvalid:l1[12]||(l1[12]=v1=>t1.$emit("auto-apply-invalid",v1)),onInvalidDate:l1[13]||(l1[13]=v1=>t1.$emit("invalid-date",v1)),onOverlayToggle:l1[14]||(l1[14]=v1=>t1.$emit("overlay-toggle",v1)),"onUpdate:internalModelValue":l1[15]||(l1[15]=v1=>t1.$emit("update:internal-model-value",v1))}),s.createSlots({_:2},[s.renderList(K.value,(v1,C1)=>({name:v1,fn:s.withCtx(D1=>[s.renderSlot(t1.$slots,v1,s.normalizeProps(s.guardReactiveProps({...D1})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),t1.$slots["right-sidebar"]?(s.openBlock(),s.createElementBlock("div",wz3,[s.renderSlot(t1.$slots,"right-sidebar",s.normalizeProps(s.guardReactiveProps(T.value)))])):s.createCommentVNode("",!0),t1.$slots["action-extra"]?(s.openBlock(),s.createElementBlock("div",Hz3,[t1.$slots["action-extra"]?s.renderSlot(t1.$slots,"action-extra",{key:0,selectCurrentDate:e1}):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],6),!t1.autoApply||s.unref(p).keepActionRow?(s.openBlock(),s.createBlock(zb3,s.mergeProps({key:2,"menu-mount":g.value},i.value,{"calendar-width":m.value,onClosePicker:l1[16]||(l1[16]=v1=>t1.$emit("close-picker")),onSelectDate:l1[17]||(l1[17]=v1=>t1.$emit("select-date")),onInvalidSelect:l1[18]||(l1[18]=v1=>t1.$emit("invalid-select")),onSelectNow:e1}),s.createSlots({_:2},[s.renderList(s.unref(F),(v1,C1)=>({name:v1,fn:s.withCtx(D1=>[s.renderSlot(t1.$slots,v1,s.normalizeProps(s.guardReactiveProps({...D1})))])}))]),1040,["menu-mount","calendar-width"])):s.createCommentVNode("",!0)],46,kz3)}}}),Lz3=typeof window<"u"?window:void 0,XW=()=>{},Vz3=e=>s.getCurrentScope()?(s.onScopeDispose(e),!0):!1,Sz3=(e,t,a,c)=>{if(!e)return XW;let n=XW;const r=s.watch(()=>s.unref(e),o=>{n(),o&&(o.addEventListener(t,a,c),n=()=>{o.removeEventListener(t,a,c),n=XW})},{immediate:!0,flush:"post"}),i=()=>{r(),n()};return Vz3(i),i},Nz3=(e,t,a,c={})=>{const{window:n=Lz3,event:r="pointerdown"}=c;return n?Sz3(n,r,i=>{const o=Pe(e),l=Pe(t);!o||!l||o===i.target||i.composedPath().includes(o)||i.composedPath().includes(l)||a(i)},{passive:!0}):void 0},Az3=s.defineComponent({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...xj},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.useSlots(),i=s.ref(!1),o=s.toRef(n,"modelValue"),l=s.toRef(n,"timezone"),f=s.ref(null),u=s.ref(null),d=s.ref(null),h=s.ref(!1),p=s.ref(null),v=s.ref(!1),m=s.ref(!1),y=s.ref(!1),{setMenuFocused:g,setShiftKey:M}=Qg1(),{clearArrowNav:x}=Qa(),{validateDate:k,isValidTime:b}=Ja(n),{defaultedTransitions:_,defaultedTextInput:C,defaultedInline:H,defaultedConfig:V,defaultedRange:N,defaultedMultiDates:L}=ee(n),{menuTransition:w,showTransition:P}=bu(_);s.onMounted(()=>{U(n.modelValue),s.nextTick().then(()=>{if(!H.value.enabled){const o1=W(p.value);o1==null||o1.addEventListener("scroll",x1),window==null||window.addEventListener("resize",f1)}}),H.value.enabled&&(i.value=!0),window==null||window.addEventListener("keyup",t1),window==null||window.addEventListener("keydown",l1)}),s.onUnmounted(()=>{if(!H.value.enabled){const o1=W(p.value);o1==null||o1.removeEventListener("scroll",x1),window==null||window.removeEventListener("resize",f1)}window==null||window.removeEventListener("keyup",t1),window==null||window.removeEventListener("keydown",l1)});const j=n0(r,"all",n.presetDates),T=n0(r,"input");s.watch([o,l],()=>{U(o.value)},{deep:!0});const{openOnTop:B,menuStyle:F,xCorrect:K,setMenuPosition:G,getScrollableParent:W,shadowRender:O}=db3({menuRef:f,menuRefInner:u,inputRef:d,pickerWrapperRef:p,inline:H,emit:c,props:n,slots:r}),{inputValue:E,internalModelValue:S,parseExternalModelValue:U,emitModelValue:Z,formatInputValue:A,checkBeforeEmit:R}=fb3(c,n,h),Q=s.computed(()=>({dp__main:!0,dp__theme_dark:n.dark,dp__theme_light:!n.dark,dp__flex_display:H.value.enabled,"dp--flex-display-collapsed":y.value,dp__flex_display_with_input:H.value.input})),c1=s.computed(()=>n.dark?"dp__theme_dark":"dp__theme_light"),e1=s.computed(()=>n.teleport?{to:typeof n.teleport=="boolean"?"body":n.teleport,disabled:!n.teleport||H.value.enabled}:{}),s1=s.computed(()=>({class:"dp__outer_menu_wrap"})),Y=s.computed(()=>H.value.enabled&&(n.timePicker||n.monthPicker||n.yearPicker||n.quarterPicker)),d1=()=>{var o1,_1;return(_1=(o1=d.value)==null?void 0:o1.$el)==null?void 0:_1.getBoundingClientRect()},x1=()=>{i.value&&(V.value.closeOnScroll?Y1():G())},f1=()=>{var o1;i.value&&G();const _1=(o1=u.value)==null?void 0:o1.$el.getBoundingClientRect().width;y.value=document.body.offsetWidth<=_1},t1=o1=>{o1.key==="Tab"&&!H.value.enabled&&!n.teleport&&V.value.tabOutClosesMenu&&(p.value.contains(document.activeElement)||Y1()),m.value=o1.shiftKey},l1=o1=>{m.value=o1.shiftKey},i1=()=>{!n.disabled&&!n.readonly&&(O(U81,n),G(!1),i.value=!0,i.value&&c("open"),i.value||B1(),U(n.modelValue))},p1=()=>{var o1;E.value="",B1(),(o1=d.value)==null||o1.setParsedDate(null),c("update:model-value",null),c("update:model-timezone-value",null),c("cleared"),V.value.closeOnClearValue&&Y1()},b1=()=>{const o1=S.value;return!o1||!Array.isArray(o1)&&k(o1)?!0:Array.isArray(o1)?L.value.enabled||o1.length===2&&k(o1[0])&&k(o1[1])?!0:N.value.partialRange&&!n.timePicker?k(o1[0]):!1:!1},v1=()=>{R()&&b1()?(Z(),Y1()):c("invalid-select",S.value)},C1=o1=>{D1(),Z(),V.value.closeOnAutoApply&&!o1&&Y1()},D1=()=>{d.value&&C.value.enabled&&d.value.setParsedDate(S.value)},R1=(o1=!1)=>{n.autoApply&&b(S.value)&&b1()&&(N.value.enabled&&Array.isArray(S.value)?(N.value.partialRange||S.value.length===2)&&C1(o1):C1(o1))},B1=()=>{C.value.enabled||(S.value=null)},Y1=()=>{H.value.enabled||(i.value&&(i.value=!1,K.value=!1,g(!1),M(!1),x(),c("closed"),E.value&&U(o.value)),B1(),c("blur"))},G1=(o1,_1,L1=!1)=>{if(!o1){S.value=null;return}const W1=Array.isArray(o1)?!o1.some(V2=>!k(V2)):k(o1),g2=b(o1);W1&&g2&&(S.value=o1,_1&&(v.value=L1,v1(),c("text-submit")))},n2=()=>{n.autoApply&&b(S.value)&&Z(),D1()},o2=()=>i.value?Y1():i1(),q1=o1=>{S.value=o1},p2=()=>{C.value.enabled&&(h.value=!0,A()),c("focus")},T2=()=>{if(C.value.enabled&&(h.value=!1,U(n.modelValue),v.value)){const o1=Ix3(p.value,m.value);o1==null||o1.focus()}c("blur")},h2=o1=>{u.value&&u.value.updateMonthYear(0,{month:I81(o1.month),year:I81(o1.year)})},y2=o1=>{U(o1??n.modelValue)},e3=(o1,_1)=>{var L1;(L1=u.value)==null||L1.switchView(o1,_1)},u1=o1=>V.value.onClickOutside?V.value.onClickOutside(o1):Y1();return Nz3(f,d,()=>u1(b1)),t({closeMenu:Y1,selectDate:v1,clearValue:p1,openMenu:i1,onScroll:x1,formatInputValue:A,updateInternalModelValue:q1,setMonthYear:h2,parseModel:y2,switchView:e3,toggleMenu:o2}),(o1,_1)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"pickerWrapperRef",ref:p,class:s.normalizeClass(Q.value),"data-datepicker-instance":""},[s.createVNode(kb3,s.mergeProps({ref_key:"inputRef",ref:d,"input-value":s.unref(E),"onUpdate:inputValue":_1[0]||(_1[0]=L1=>s.isRef(E)?E.value=L1:null),"is-menu-open":i.value},o1.$props,{onClear:p1,onOpen:i1,onSetInputDate:G1,onSetEmptyDate:s.unref(Z),onSelectDate:v1,onToggle:o2,onClose:Y1,onFocus:p2,onBlur:T2,onRealBlur:_1[1]||(_1[1]=L1=>h.value=!1)}),s.createSlots({_:2},[s.renderList(s.unref(T),(L1,W1)=>({name:L1,fn:s.withCtx(g2=>[s.renderSlot(o1.$slots,L1,s.normalizeProps(s.guardReactiveProps(g2)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o1.teleport?s.Teleport:"div"),s.normalizeProps(s.guardReactiveProps(e1.value)),{default:s.withCtx(()=>[s.createVNode(s.Transition,{name:s.unref(w)(s.unref(B)),css:s.unref(P)&&!s.unref(H).enabled},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,ref_key:"dpWrapMenuRef",ref:f},s1.value,{class:{"dp--menu-wrapper":!s.unref(H).enabled},style:s.unref(H).enabled?void 0:s.unref(F)}),[s.createVNode(U81,s.mergeProps({ref_key:"dpMenuRef",ref:u},o1.$props,{"internal-model-value":s.unref(S),"onUpdate:internalModelValue":_1[2]||(_1[2]=L1=>s.isRef(S)?S.value=L1:null),class:{[c1.value]:!0,"dp--menu-wrapper":o1.teleport},"open-on-top":s.unref(B),"no-overlay-focus":Y.value,collapse:y.value,"get-input-rect":d1,onClosePicker:Y1,onSelectDate:v1,onAutoApply:R1,onTimeUpdate:n2,onFlowStep:_1[3]||(_1[3]=L1=>o1.$emit("flow-step",L1)),onUpdateMonthYear:_1[4]||(_1[4]=L1=>o1.$emit("update-month-year",L1)),onInvalidSelect:_1[5]||(_1[5]=L1=>o1.$emit("invalid-select",s.unref(S))),onAutoApplyInvalid:_1[6]||(_1[6]=L1=>o1.$emit("invalid-select",L1)),onInvalidFixedRange:_1[7]||(_1[7]=L1=>o1.$emit("invalid-fixed-range",L1)),onRecalculatePosition:s.unref(G),onTooltipOpen:_1[8]||(_1[8]=L1=>o1.$emit("tooltip-open",L1)),onTooltipClose:_1[9]||(_1[9]=L1=>o1.$emit("tooltip-close",L1)),onTimePickerOpen:_1[10]||(_1[10]=L1=>o1.$emit("time-picker-open",L1)),onTimePickerClose:_1[11]||(_1[11]=L1=>o1.$emit("time-picker-close",L1)),onAmPmChange:_1[12]||(_1[12]=L1=>o1.$emit("am-pm-change",L1)),onRangeStart:_1[13]||(_1[13]=L1=>o1.$emit("range-start",L1)),onRangeEnd:_1[14]||(_1[14]=L1=>o1.$emit("range-end",L1)),onDateUpdate:_1[15]||(_1[15]=L1=>o1.$emit("date-update",L1)),onInvalidDate:_1[16]||(_1[16]=L1=>o1.$emit("invalid-date",L1)),onOverlayToggle:_1[17]||(_1[17]=L1=>o1.$emit("overlay-toggle",L1))}),s.createSlots({_:2},[s.renderList(s.unref(j),(L1,W1)=>({name:L1,fn:s.withCtx(g2=>[s.renderSlot(o1.$slots,L1,s.normalizeProps(s.guardReactiveProps({...g2})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","onRecalculatePosition"])],16)):s.createCommentVNode("",!0)]),_:3},8,["name","css"])]),_:3},16))],2))}}),a11=(()=>{const e=Az3;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),Tz3=Object.freeze(Object.defineProperty({__proto__:null,default:a11},Symbol.toStringTag,{value:"Module"}));Object.entries(Tz3).forEach(([e,t])=>{e!=="default"&&(a11[e]=t)});const Ez3=s.defineComponent({__name:"PgaVueDatePicker",props:s.mergeModels({yearPicker:{type:Boolean},monthPicker:{type:Boolean},range:{type:Boolean},enableTimePicker:{type:Boolean},notClearable:{type:Boolean},disabled:{type:Boolean},format:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(r=>({eca51504:s.unref(c).input.height,"6684c0a0":s.unref(c).input.borderColor,fa39fa16:s.unref(c).input.borderRadius,"6a79045e":s.unref(c).input.backgroundColor,"785664fa":s.unref(c).input.backgroundColorDisabled,"55a93c0c":s.unref(c).input.colorFocus}));const t=s.useModel(e,"modelValue"),a=$2("pgaForm"),{form:c}=i4(),n=s.ref(!1);return(r,i)=>(s.openBlock(),s.createBlock(s.unref(a11),{class:s.normalizeClass(["date-picker",{"date-picker--disabled":r.disabled,"date-picker--open":n.value}]),modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=o=>t.value=o),disabled:r.disabled,clearable:!r.notClearable,yearPicker:r.yearPicker,monthPicker:r.monthPicker,range:r.range,enableTimePicker:r.enableTimePicker,timePickerInline:"",is24:"",teleport:!0,locale:s.unref(g6)().language,format:r.format,previewFormat:r.format,cancelText:s.unref(a)("cancelBtn"),selectText:s.unref(a)("selectBtn"),onOpen:i[1]||(i[1]=o=>n.value=!0),onBlur:i[2]||(i[2]=o=>n.value=!1)},null,8,["class","modelValue","disabled","clearable","yearPicker","monthPicker","range","enableTimePicker","locale","format","previewFormat","cancelText","selectText"]))}});const _u=Q1(Ez3,[["__scopeId","data-v-f4b20487"]]),Dz3=s.defineComponent({__name:"PgaDatePicker",props:s.mergeModels({isDateModel:{type:Boolean},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{},notClearable:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=s.computed({get(){const r=t.value;if(!r)return null;if(r instanceof Date)return r;const[i,o,l]=r.split("-").map(Number);return new Date(i,o-1,l)},set(r){if(!r){t.value=null;return}if(a.isDateModel){t.value=r;return}t.value=r.toISOString().split("T")[0]}});function n(r){return M6(r,{format:"numeric",withTime:!1})}return(r,i)=>(s.openBlock(),s.createBlock(v0,{label:r.label,withRequiredLabel:r.withRequiredLabel,withOptionalLabel:r.withOptionalLabel,withLabelSpace:r.withLabelSpace,info:r.info,description:r.description,errors:r.errors,grow:r.grow},{default:s.withCtx(()=>[s.createVNode(_u,{modelValue:c.value,"onUpdate:modelValue":i[0]||(i[0]=o=>c.value=o),disabled:r.disabled,notClearable:r.notClearable,format:n},null,8,["modelValue","disabled","notClearable"])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}}),Pz3=s.defineComponent({__name:"PgaDatetimePicker",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{},notClearable:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue");function a(c){return M6(c,{format:"short",withTime:!0})}return(c,n)=>(s.openBlock(),s.createBlock(v0,{label:c.label,withRequiredLabel:c.withRequiredLabel,withOptionalLabel:c.withOptionalLabel,withLabelSpace:c.withLabelSpace,info:c.info,description:c.description,errors:c.errors,grow:c.grow},{default:s.withCtx(()=>[s.createVNode(_u,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=r=>t.value=r),enableTimePicker:"",disabled:c.disabled,notClearable:c.notClearable,format:a},null,8,["modelValue","disabled","notClearable"])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}}),Oz3={class:"icons-container"},Iz3=s.defineComponent({__name:"PgaIconSelector",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(n=>({"228e07d0":s.unref(a).input.padding,"1e595ad6":s.unref(a).input.borderColor,"74bca102":s.unref(a).input.borderRadius}));const t=s.useModel(e,"modelValue"),{form:a}=i4(),c=["star","heart","mail","plus","minus","pen","square-pen","check","trash","file","clipboard","bell","calendar","clock","banknote","gift","percent","hand-coins","house","warehouse","car","store","gamepad","smartphone","school","shirt","stethoscope","smile","frown","cog","lock","bug","camera","code","headphones","wifi","user","search","arrow-left-right","circle"];return(n,r)=>(s.openBlock(),s.createBlock(v0,{label:n.label,withRequiredLabel:n.withRequiredLabel,withOptionalLabel:n.withOptionalLabel,withLabelSpace:n.withLabelSpace,info:n.info,description:n.description,errors:n.errors,grow:n.grow},{default:s.withCtx(()=>[s.createElementVNode("div",Oz3,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(c,i=>s.createVNode(A2,{key:i,icon:i,variant:t.value===i?"outlined":"flat",color:t.value===i?"primary":"first",width:"2.5rem",disabled:n.disabled,onClick:o=>t.value=i},null,8,["icon","variant","color","disabled","onClick"])),64))])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const Bz3=Q1(Iz3,[["__scopeId","data-v-6978c886"]]);/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var rM1=1252,Rz3=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],c11={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},n11=function(e){Rz3.indexOf(e)!=-1&&(rM1=c11[0]=e)};function Fz3(){n11(1252)}var r6=function(e){n11(e)};function iM1(){r6(1200),Fz3()}function W81(e){for(var t=[],a=0,c=e.length;a<c;++a)t[a]=e.charCodeAt(a);return t}function $z3(e){for(var t=[],a=0;a<e.length>>1;++a)t[a]=String.fromCharCode(e.charCodeAt(2*a)+(e.charCodeAt(2*a+1)<<8));return t.join("")}function oM1(e){for(var t=[],a=0;a<e.length>>1;++a)t[a]=String.fromCharCode(e.charCodeAt(2*a+1)+(e.charCodeAt(2*a)<<8));return t.join("")}var P9=function(e){var t=e.charCodeAt(0),a=e.charCodeAt(1);return t==255&&a==254?$z3(e.slice(2)):t==254&&a==255?oM1(e.slice(2)):t==65279?e.slice(1):e},Ud=function(t){return String.fromCharCode(t)},Y81=function(t){return String.fromCharCode(t)},Z8,fa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function G81(e){for(var t="",a=0,c=0,n=0,r=0,i=0,o=0,l=0,f=0;f<e.length;)a=e.charCodeAt(f++),r=a>>2,c=e.charCodeAt(f++),i=(a&3)<<4|c>>4,n=e.charCodeAt(f++),o=(c&15)<<2|n>>6,l=n&63,isNaN(c)?o=l=64:isNaN(n)&&(l=64),t+=fa.charAt(r)+fa.charAt(i)+fa.charAt(o)+fa.charAt(l);return t}function d0(e){var t="",a=0,c=0,n=0,r=0,i=0,o=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var f=0;f<e.length;)r=fa.indexOf(e.charAt(f++)),i=fa.indexOf(e.charAt(f++)),a=r<<2|i>>4,t+=String.fromCharCode(a),o=fa.indexOf(e.charAt(f++)),c=(i&15)<<4|o>>2,o!==64&&(t+=String.fromCharCode(c)),l=fa.indexOf(e.charAt(f++)),n=(o&3)<<6|l,l!==64&&(t+=String.fromCharCode(n));return t}var F2=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),$i=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,a){return a?new Buffer(t,a):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Ba(e){return F2?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Z81(e){return F2?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var J0=function(t){return F2?$i(t,"binary"):t.split("").map(function(a){return a.charCodeAt(0)&255})};function qi(e){if(Array.isArray(e))return e.map(function(c){return String.fromCharCode(c)}).join("");for(var t=[],a=0;a<e.length;++a)t[a]=String.fromCharCode(e[a]);return t.join("")}function r11(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return r11(new Uint8Array(e));for(var t=new Array(e.length),a=0;a<e.length;++a)t[a]=e[a];return t}var X8=F2?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:$i(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,a=0;for(t=0;t<e.length;++t)a+=e[t].length;var c=new Uint8Array(a),n=0;for(t=0,a=0;t<e.length;a+=n,++t)if(n=e[t].length,e[t]instanceof Uint8Array)c.set(e[t],a);else{if(typeof e[t]=="string")throw"wtf";c.set(new Uint8Array(e[t]),a)}return c}return[].concat.apply([],e.map(function(r){return Array.isArray(r)?r:[].slice.call(r)}))};function qz3(e){for(var t=[],a=0,c=e.length+250,n=Ba(e.length+255),r=0;r<e.length;++r){var i=e.charCodeAt(r);if(i<128)n[a++]=i;else if(i<2048)n[a++]=192|i>>6&31,n[a++]=128|i&63;else if(i>=55296&&i<57344){i=(i&1023)+64;var o=e.charCodeAt(++r)&1023;n[a++]=240|i>>8&7,n[a++]=128|i>>2&63,n[a++]=128|o>>6&15|(i&3)<<4,n[a++]=128|o&63}else n[a++]=224|i>>12&15,n[a++]=128|i>>6&63,n[a++]=128|i&63;a>c&&(t.push(n.slice(0,a)),a=0,n=Ba(65535),c=65530)}return t.push(n.slice(0,a)),X8(t)}var E4=/\u0000/g,O9=/[\u0001-\u0006]/g;function Io(e){for(var t="",a=e.length-1;a>=0;)t+=e.charAt(a--);return t}function i6(e,t){var a=""+e;return a.length>=t?a:ne("0",t-a.length)+a}function i11(e,t){var a=""+e;return a.length>=t?a:ne(" ",t-a.length)+a}function k$(e,t){var a=""+e;return a.length>=t?a:a+ne(" ",t-a.length)}function jz3(e,t){var a=""+Math.round(e);return a.length>=t?a:ne("0",t-a.length)+a}function Uz3(e,t){var a=""+e;return a.length>=t?a:ne("0",t-a.length)+a}var X81=Math.pow(2,32);function oo(e,t){if(e>X81||e<-X81)return jz3(e,t);var a=Math.round(e);return Uz3(a,t)}function x$(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var K81=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],KW=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Wz3(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var k2={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Q81={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Yz3={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function b$(e,t,a){for(var c=e<0?-1:1,n=e*c,r=0,i=1,o=0,l=1,f=0,u=0,d=Math.floor(n);f<t&&(d=Math.floor(n),o=d*i+r,u=d*f+l,!(n-d<5e-8));)n=1/(n-d),r=i,i=o,l=f,f=u;if(u>t&&(f>t?(u=l,o=r):(u=f,o=i)),!a)return[0,c*o,u];var h=Math.floor(c*o/u);return[h,c*o-h*u,u]}function Wr(e,t,a){if(e>2958465||e<0)return null;var c=e|0,n=Math.floor(86400*(e-c)),r=0,i=[],o={D:c,T:n,u:86400*(e-c)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(c+=1462),o.u>.9999&&(o.u=0,++n==86400&&(o.T=n=0,++c,++o.D)),c===60)i=a?[1317,10,29]:[1900,2,29],r=3;else if(c===0)i=a?[1317,8,29]:[1900,1,0],r=6;else{c>60&&--c;var l=new Date(1900,0,1);l.setDate(l.getDate()+c-1),i=[l.getFullYear(),l.getMonth()+1,l.getDate()],r=l.getDay(),c<60&&(r=(r+6)%7),a&&(r=Jz3(l,i))}return o.y=i[0],o.m=i[1],o.d=i[2],o.S=n%60,n=Math.floor(n/60),o.M=n%60,n=Math.floor(n/60),o.H=n,o.q=r,o}var sM1=new Date(1899,11,31,0,0,0),Gz3=sM1.getTime(),Zz3=new Date(1900,2,1,0,0,0);function lM1(e,t){var a=e.getTime();return t?a-=1461*24*60*60*1e3:e>=Zz3&&(a+=24*60*60*1e3),(a-(Gz3+(e.getTimezoneOffset()-sM1.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function o11(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Xz3(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Kz3(e){var t=e<0?12:11,a=o11(e.toFixed(12));return a.length<=t||(a=e.toPrecision(10),a.length<=t)?a:e.toExponential(5)}function Qz3(e){var t=o11(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function Cf(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),a;return t>=-4&&t<=-1?a=e.toPrecision(10+t):Math.abs(t)<=9?a=Kz3(e):t===10?a=e.toFixed(10).substr(0,12):a=Qz3(e),o11(Xz3(a.toUpperCase()))}function bi(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Cf(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return T0(14,lM1(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Jz3(e,t){t[0]-=581;var a=e.getDay();return e<60&&(a=(a+6)%7),a}function eC3(e,t,a,c){var n="",r=0,i=0,o=a.y,l,f=0;switch(e){case 98:o=a.y+543;case 121:switch(t.length){case 1:case 2:l=o%100,f=2;break;default:l=o%1e4,f=4;break}break;case 109:switch(t.length){case 1:case 2:l=a.m,f=t.length;break;case 3:return KW[a.m-1][1];case 5:return KW[a.m-1][0];default:return KW[a.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=a.d,f=t.length;break;case 3:return K81[a.q][0];default:return K81[a.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(a.H+11)%12,f=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=a.H,f=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=a.M,f=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return a.u===0&&(t=="s"||t=="ss")?i6(a.S,t.length):(c>=2?i=c===3?1e3:100:i=c===1?10:1,r=Math.round(i*(a.S+a.u)),r>=60*i&&(r=0),t==="s"?r===0?"0":""+r/i:(n=i6(r,2+c),t==="ss"?n.substr(0,2):"."+n.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=a.D*24+a.H;break;case"[m]":case"[mm]":l=(a.D*24+a.H)*60+a.M;break;case"[s]":case"[ss]":l=((a.D*24+a.H)*60+a.M)*60+Math.round(a.S+a.u);break;default:throw"bad abstime format: "+t}f=t.length===3?1:2;break;case 101:l=o,f=1;break}var u=f>0?i6(l,f):"";return u}function ua(e){var t=3;if(e.length<=t)return e;for(var a=e.length%t,c=e.substr(0,a);a!=e.length;a+=t)c+=(c.length>0?",":"")+e.substr(a,t);return c}var fM1=/%/g;function tC3(e,t,a){var c=t.replace(fM1,""),n=t.length-c.length;return f8(e,c,a*Math.pow(10,2*n))+ne("%",n)}function aC3(e,t,a){for(var c=t.length-1;t.charCodeAt(c-1)===44;)--c;return f8(e,t.substr(0,c),a/Math.pow(10,3*(t.length-c)))}function uM1(e,t){var a,c=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+uM1(e,-t);var n=e.indexOf(".");n===-1&&(n=e.indexOf("E"));var r=Math.floor(Math.log(t)*Math.LOG10E)%n;if(r<0&&(r+=n),a=(t/Math.pow(10,r)).toPrecision(c+1+(n+r)%n),a.indexOf("e")===-1){var i=Math.floor(Math.log(t)*Math.LOG10E);for(a.indexOf(".")===-1?a=a.charAt(0)+"."+a.substr(1)+"E+"+(i-a.length+r):a+="E+"+(i-r);a.substr(0,2)==="0.";)a=a.charAt(0)+a.substr(2,n)+"."+a.substr(2+n),a=a.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");a=a.replace(/\+-/,"-")}a=a.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,f,u){return l+f+u.substr(0,(n+r)%n)+"."+u.substr(r)+"E"})}else a=t.toExponential(c);return e.match(/E\+00$/)&&a.match(/e[+-]\d$/)&&(a=a.substr(0,a.length-1)+"0"+a.charAt(a.length-1)),e.match(/E\-/)&&a.match(/e\+/)&&(a=a.replace(/e\+/,"e")),a.replace("e","E")}var dM1=/# (\?+)( ?)\/( ?)(\d+)/;function cC3(e,t,a){var c=parseInt(e[4],10),n=Math.round(t*c),r=Math.floor(n/c),i=n-r*c,o=c;return a+(r===0?"":""+r)+" "+(i===0?ne(" ",e[1].length+1+e[4].length):i11(i,e[1].length)+e[2]+"/"+e[3]+i6(o,e[4].length))}function nC3(e,t,a){return a+(t===0?"":""+t)+ne(" ",e[1].length+2+e[4].length)}var hM1=/^#*0*\.([0#]+)/,pM1=/\).*[0#]/,mM1=/\(###\) ###\\?-####/;function N4(e){for(var t="",a,c=0;c!=e.length;++c)switch(a=e.charCodeAt(c)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(a)}return t}function J81(e,t){var a=Math.pow(10,t);return""+Math.round(e*a)/a}function ea1(e,t){var a=e-Math.floor(e),c=Math.pow(10,t);return t<(""+Math.round(a*c)).length?0:Math.round(a*c)}function rC3(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function iC3(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function z0(e,t,a){if(e.charCodeAt(0)===40&&!t.match(pM1)){var c=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return a>=0?z0("n",c,a):"("+z0("n",c,-a)+")"}if(t.charCodeAt(t.length-1)===44)return aC3(e,t,a);if(t.indexOf("%")!==-1)return tC3(e,t,a);if(t.indexOf("E")!==-1)return uM1(t,a);if(t.charCodeAt(0)===36)return"$"+z0(e,t.substr(t.charAt(1)==" "?2:1),a);var n,r,i,o,l=Math.abs(a),f=a<0?"-":"";if(t.match(/^00+$/))return f+oo(l,t.length);if(t.match(/^[#?]+$/))return n=oo(a,0),n==="0"&&(n=""),n.length>t.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(dM1))return cC3(r,l,f);if(t.match(/^#+0+$/))return f+oo(l,t.length-t.indexOf("0"));if(r=t.match(hM1))return n=J81(a,r[1].length).replace(/^([^\.]+)$/,"$1."+N4(r[1])).replace(/\.$/,"."+N4(r[1])).replace(/\.(\d*)$/,function(v,m){return"."+m+ne("0",N4(r[1]).length-m.length)}),t.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),r=t.match(/^(0*)\.(#*)$/))return f+J81(l,r[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,r[1].length?"0.":".");if(r=t.match(/^#{1,3},##0(\.?)$/))return f+ua(oo(l,0));if(r=t.match(/^#,##0\.([#0]*0)$/))return a<0?"-"+z0(e,t,-a):ua(""+(Math.floor(a)+rC3(a,r[1].length)))+"."+i6(ea1(a,r[1].length),r[1].length);if(r=t.match(/^#,#*,#0/))return z0(e,t.replace(/^#,#*,/,""),a);if(r=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=Io(z0(e,t.replace(/[\\-]/g,""),a)),i=0,Io(Io(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return i<n.length?n.charAt(i++):v==="0"?"0":""}));if(t.match(mM1))return n=z0(e,"##########",a),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var u="";if(r=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(r[4].length,7),o=b$(l,Math.pow(10,i)-1,!1),n=""+f,u=f8("n",r[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),n+=u+r[2]+"/"+r[3],u=k$(o[2],i),u.length<r[4].length&&(u=N4(r[4].substr(r[4].length-u.length))+u),n+=u,n;if(r=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(Math.max(r[1].length,r[4].length),7),o=b$(l,Math.pow(10,i)-1,!0),f+(o[0]||(o[1]?"":"0"))+" "+(o[1]?i11(o[1],i)+r[2]+"/"+r[3]+k$(o[2],i):ne(" ",2*i+1+r[2].length+r[3].length));if(r=t.match(/^[#0?]+$/))return n=oo(a,0),t.length<=n.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(/^([#0?]+)\.([#0]+)$/)){n=""+a.toFixed(Math.min(r[2].length,10)).replace(/([^0])0+$/,"$1"),i=n.indexOf(".");var d=t.indexOf(".")-i,h=t.length-n.length-d;return N4(t.substr(0,d)+n+t.substr(t.length-h))}if(r=t.match(/^00,000\.([#0]*0)$/))return i=ea1(a,r[1].length),a<0?"-"+z0(e,t,-a):ua(iC3(a)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?i6(0,3-v.length):"")+v})+"."+i6(i,r[1].length);switch(t){case"###,##0.00":return z0(e,"#,##0.00",a);case"###,###":case"##,###":case"#,###":var p=ua(oo(l,0));return p!=="0"?f+p:"";case"###,###.00":return z0(e,"###,##0.00",a).replace(/^0\./,".");case"#,###.00":return z0(e,"#,##0.00",a).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function oC3(e,t,a){for(var c=t.length-1;t.charCodeAt(c-1)===44;)--c;return f8(e,t.substr(0,c),a/Math.pow(10,3*(t.length-c)))}function sC3(e,t,a){var c=t.replace(fM1,""),n=t.length-c.length;return f8(e,c,a*Math.pow(10,2*n))+ne("%",n)}function vM1(e,t){var a,c=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+vM1(e,-t);var n=e.indexOf(".");n===-1&&(n=e.indexOf("E"));var r=Math.floor(Math.log(t)*Math.LOG10E)%n;if(r<0&&(r+=n),a=(t/Math.pow(10,r)).toPrecision(c+1+(n+r)%n),!a.match(/[Ee]/)){var i=Math.floor(Math.log(t)*Math.LOG10E);a.indexOf(".")===-1?a=a.charAt(0)+"."+a.substr(1)+"E+"+(i-a.length+r):a+="E+"+(i-r),a=a.replace(/\+-/,"-")}a=a.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,f,u){return l+f+u.substr(0,(n+r)%n)+"."+u.substr(r)+"E"})}else a=t.toExponential(c);return e.match(/E\+00$/)&&a.match(/e[+-]\d$/)&&(a=a.substr(0,a.length-1)+"0"+a.charAt(a.length-1)),e.match(/E\-/)&&a.match(/e\+/)&&(a=a.replace(/e\+/,"e")),a.replace("e","E")}function G6(e,t,a){if(e.charCodeAt(0)===40&&!t.match(pM1)){var c=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return a>=0?G6("n",c,a):"("+G6("n",c,-a)+")"}if(t.charCodeAt(t.length-1)===44)return oC3(e,t,a);if(t.indexOf("%")!==-1)return sC3(e,t,a);if(t.indexOf("E")!==-1)return vM1(t,a);if(t.charCodeAt(0)===36)return"$"+G6(e,t.substr(t.charAt(1)==" "?2:1),a);var n,r,i,o,l=Math.abs(a),f=a<0?"-":"";if(t.match(/^00+$/))return f+i6(l,t.length);if(t.match(/^[#?]+$/))return n=""+a,a===0&&(n=""),n.length>t.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(dM1))return nC3(r,l,f);if(t.match(/^#+0+$/))return f+i6(l,t.length-t.indexOf("0"));if(r=t.match(hM1))return n=(""+a).replace(/^([^\.]+)$/,"$1."+N4(r[1])).replace(/\.$/,"."+N4(r[1])),n=n.replace(/\.(\d*)$/,function(v,m){return"."+m+ne("0",N4(r[1]).length-m.length)}),t.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),r=t.match(/^(0*)\.(#*)$/))return f+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,r[1].length?"0.":".");if(r=t.match(/^#{1,3},##0(\.?)$/))return f+ua(""+l);if(r=t.match(/^#,##0\.([#0]*0)$/))return a<0?"-"+G6(e,t,-a):ua(""+a)+"."+ne("0",r[1].length);if(r=t.match(/^#,#*,#0/))return G6(e,t.replace(/^#,#*,/,""),a);if(r=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=Io(G6(e,t.replace(/[\\-]/g,""),a)),i=0,Io(Io(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return i<n.length?n.charAt(i++):v==="0"?"0":""}));if(t.match(mM1))return n=G6(e,"##########",a),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var u="";if(r=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(r[4].length,7),o=b$(l,Math.pow(10,i)-1,!1),n=""+f,u=f8("n",r[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),n+=u+r[2]+"/"+r[3],u=k$(o[2],i),u.length<r[4].length&&(u=N4(r[4].substr(r[4].length-u.length))+u),n+=u,n;if(r=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(Math.max(r[1].length,r[4].length),7),o=b$(l,Math.pow(10,i)-1,!0),f+(o[0]||(o[1]?"":"0"))+" "+(o[1]?i11(o[1],i)+r[2]+"/"+r[3]+k$(o[2],i):ne(" ",2*i+1+r[2].length+r[3].length));if(r=t.match(/^[#0?]+$/))return n=""+a,t.length<=n.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(/^([#0]+)\.([#0]+)$/)){n=""+a.toFixed(Math.min(r[2].length,10)).replace(/([^0])0+$/,"$1"),i=n.indexOf(".");var d=t.indexOf(".")-i,h=t.length-n.length-d;return N4(t.substr(0,d)+n+t.substr(t.length-h))}if(r=t.match(/^00,000\.([#0]*0)$/))return a<0?"-"+G6(e,t,-a):ua(""+a).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?i6(0,3-v.length):"")+v})+"."+i6(0,r[1].length);switch(t){case"###,###":case"##,###":case"#,###":var p=ua(""+l);return p!=="0"?f+p:"";default:if(t.match(/\.[0#?]*$/))return G6(e,t.slice(0,t.lastIndexOf(".")),a)+N4(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function f8(e,t,a){return(a|0)===a?G6(e,t,a):z0(e,t,a)}function lC3(e){for(var t=[],a=!1,c=0,n=0;c<e.length;++c)switch(e.charCodeAt(c)){case 34:a=!a;break;case 95:case 42:case 92:++c;break;case 59:t[t.length]=e.substr(n,c-n),n=c+1}if(t[t.length]=e.substr(n),a===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var yM1=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Ts(e){for(var t=0,a="",c="";t<e.length;)switch(a=e.charAt(t)){case"G":x$(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(c=a;e.charAt(t++)!=="]"&&t<e.length;)c+=e.charAt(t);if(c.match(yM1))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(a=e.charAt(++t))>-1||a=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===a;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function fC3(e,t,a,c){for(var n=[],r="",i=0,o="",l="t",f,u,d,h="H";i<e.length;)switch(o=e.charAt(i)){case"G":if(!x$(e,i))throw new Error("unrecognized character "+o+" in "+e);n[n.length]={t:"G",v:"General"},i+=7;break;case'"':for(r="";(d=e.charCodeAt(++i))!==34&&i<e.length;)r+=String.fromCharCode(d);n[n.length]={t:"t",v:r},++i;break;case"\\":var p=e.charAt(++i),v=p==="("||p===")"?p:"t";n[n.length]={t:v,v:p},++i;break;case"_":n[n.length]={t:"t",v:" "},i+=2;break;case"@":n[n.length]={t:"T",v:t},++i;break;case"B":case"b":if(e.charAt(i+1)==="1"||e.charAt(i+1)==="2"){if(f==null&&(f=Wr(t,a,e.charAt(i+1)==="2"),f==null))return"";n[n.length]={t:"X",v:e.substr(i,2)},l=o,i+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":o=o.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||f==null&&(f=Wr(t,a),f==null))return"";for(r=o;++i<e.length&&e.charAt(i).toLowerCase()===o;)r+=o;o==="m"&&l.toLowerCase()==="h"&&(o="M"),o==="h"&&(o=h),n[n.length]={t:o,v:r},l=o;break;case"A":case"a":case"上":var m={t:o,v:o};if(f==null&&(f=Wr(t,a)),e.substr(i,3).toUpperCase()==="A/P"?(f!=null&&(m.v=f.H>=12?"P":"A"),m.t="T",h="h",i+=3):e.substr(i,5).toUpperCase()==="AM/PM"?(f!=null&&(m.v=f.H>=12?"PM":"AM"),m.t="T",i+=5,h="h"):e.substr(i,5).toUpperCase()==="上午/下午"?(f!=null&&(m.v=f.H>=12?"下午":"上午"),m.t="T",i+=5,h="h"):(m.t="t",++i),f==null&&m.t==="T")return"";n[n.length]=m,l=o;break;case"[":for(r=o;e.charAt(i++)!=="]"&&i<e.length;)r+=e.charAt(i);if(r.slice(-1)!=="]")throw'unterminated "[" block: |'+r+"|";if(r.match(yM1)){if(f==null&&(f=Wr(t,a),f==null))return"";n[n.length]={t:"Z",v:r.toLowerCase()},l=r.charAt(1)}else r.indexOf("$")>-1&&(r=(r.match(/\$([^-\[\]]*)/)||[])[1]||"$",Ts(e)||(n[n.length]={t:"t",v:r}));break;case".":if(f!=null){for(r=o;++i<e.length&&(o=e.charAt(i))==="0";)r+=o;n[n.length]={t:"s",v:r};break}case"0":case"#":for(r=o;++i<e.length&&"0#?.,E+-%".indexOf(o=e.charAt(i))>-1;)r+=o;n[n.length]={t:"n",v:r};break;case"?":for(r=o;e.charAt(++i)===o;)r+=o;n[n.length]={t:o,v:r},l=o;break;case"*":++i,(e.charAt(i)==" "||e.charAt(i)=="*")&&++i;break;case"(":case")":n[n.length]={t:c===1?"t":o,v:o},++i;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(r=o;i<e.length&&"0123456789".indexOf(e.charAt(++i))>-1;)r+=e.charAt(i);n[n.length]={t:"D",v:r};break;case" ":n[n.length]={t:o,v:o},++i;break;case"$":n[n.length]={t:"t",v:"$"},++i;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+e);n[n.length]={t:"t",v:o},++i;break}var y=0,g=0,M;for(i=n.length-1,l="t";i>=0;--i)switch(n[i].t){case"h":case"H":n[i].t=h,l="h",y<1&&(y=1);break;case"s":(M=n[i].v.match(/\.0+$/))&&(g=Math.max(g,M[0].length-1)),y<3&&(y=3);case"d":case"y":case"M":case"e":l=n[i].t;break;case"m":l==="s"&&(n[i].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&n[i].v.match(/[Hh]/)&&(y=1),y<2&&n[i].v.match(/[Mm]/)&&(y=2),y<3&&n[i].v.match(/[Ss]/)&&(y=3)}switch(y){case 0:break;case 1:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M),f.M>=60&&(f.M=0,++f.H);break;case 2:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M);break}var x="",k;for(i=0;i<n.length;++i)switch(n[i].t){case"t":case"T":case" ":case"D":break;case"X":n[i].v="",n[i].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":n[i].v=eC3(n[i].t.charCodeAt(0),n[i].v,f,g),n[i].t="t";break;case"n":case"?":for(k=i+1;n[k]!=null&&((o=n[k].t)==="?"||o==="D"||(o===" "||o==="t")&&n[k+1]!=null&&(n[k+1].t==="?"||n[k+1].t==="t"&&n[k+1].v==="/")||n[i].t==="("&&(o===" "||o==="n"||o===")")||o==="t"&&(n[k].v==="/"||n[k].v===" "&&n[k+1]!=null&&n[k+1].t=="?"));)n[i].v+=n[k].v,n[k]={v:"",t:";"},++k;x+=n[i].v,i=k-1;break;case"G":n[i].t="t",n[i].v=bi(t,a);break}var b="",_,C;if(x.length>0){x.charCodeAt(0)==40?(_=t<0&&x.charCodeAt(0)===45?-t:t,C=f8("n",x,_)):(_=t<0&&c>1?-t:t,C=f8("n",x,_),_<0&&n[0]&&n[0].t=="t"&&(C=C.substr(1),n[0].v="-"+n[0].v)),k=C.length-1;var H=n.length;for(i=0;i<n.length;++i)if(n[i]!=null&&n[i].t!="t"&&n[i].v.indexOf(".")>-1){H=i;break}var V=n.length;if(H===n.length&&C.indexOf("E")===-1){for(i=n.length-1;i>=0;--i)n[i]==null||"n?".indexOf(n[i].t)===-1||(k>=n[i].v.length-1?(k-=n[i].v.length,n[i].v=C.substr(k+1,n[i].v.length)):k<0?n[i].v="":(n[i].v=C.substr(0,k+1),k=-1),n[i].t="t",V=i);k>=0&&V<n.length&&(n[V].v=C.substr(0,k+1)+n[V].v)}else if(H!==n.length&&C.indexOf("E")===-1){for(k=C.indexOf(".")-1,i=H;i>=0;--i)if(!(n[i]==null||"n?".indexOf(n[i].t)===-1)){for(u=n[i].v.indexOf(".")>-1&&i===H?n[i].v.indexOf(".")-1:n[i].v.length-1,b=n[i].v.substr(u+1);u>=0;--u)k>=0&&(n[i].v.charAt(u)==="0"||n[i].v.charAt(u)==="#")&&(b=C.charAt(k--)+b);n[i].v=b,n[i].t="t",V=i}for(k>=0&&V<n.length&&(n[V].v=C.substr(0,k+1)+n[V].v),k=C.indexOf(".")+1,i=H;i<n.length;++i)if(!(n[i]==null||"n?(".indexOf(n[i].t)===-1&&i!==H)){for(u=n[i].v.indexOf(".")>-1&&i===H?n[i].v.indexOf(".")+1:0,b=n[i].v.substr(0,u);u<n[i].v.length;++u)k<C.length&&(b+=C.charAt(k++));n[i].v=b,n[i].t="t",V=i}}}for(i=0;i<n.length;++i)n[i]!=null&&"n?".indexOf(n[i].t)>-1&&(_=c>1&&t<0&&i>0&&n[i-1].v==="-"?-t:t,n[i].v=f8(n[i].t,n[i].v,_),n[i].t="t");var N="";for(i=0;i!==n.length;++i)n[i]!=null&&(N+=n[i].v);return N}var ta1=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function aa1(e,t){if(t==null)return!1;var a=parseFloat(t[2]);switch(t[1]){case"=":if(e==a)return!0;break;case">":if(e>a)return!0;break;case"<":if(e<a)return!0;break;case"<>":if(e!=a)return!0;break;case">=":if(e>=a)return!0;break;case"<=":if(e<=a)return!0;break}return!1}function uC3(e,t){var a=lC3(e),c=a.length,n=a[c-1].indexOf("@");if(c<4&&n>-1&&--c,a.length>4)throw new Error("cannot find right format for |"+a.join("|")+"|");if(typeof t!="number")return[4,a.length===4||n>-1?a[a.length-1]:"@"];switch(a.length){case 1:a=n>-1?["General","General","General",a[0]]:[a[0],a[0],a[0],"@"];break;case 2:a=n>-1?[a[0],a[0],a[0],a[1]]:[a[0],a[1],a[0],"@"];break;case 3:a=n>-1?[a[0],a[1],a[0],a[2]]:[a[0],a[1],a[2],"@"];break}var r=t>0?a[0]:t<0?a[1]:a[2];if(a[0].indexOf("[")===-1&&a[1].indexOf("[")===-1)return[c,r];if(a[0].match(/\[[=<>]/)!=null||a[1].match(/\[[=<>]/)!=null){var i=a[0].match(ta1),o=a[1].match(ta1);return aa1(t,i)?[c,a[0]]:aa1(t,o)?[c,a[1]]:[c,a[i!=null&&o!=null?2:1]]}return[c,r]}function T0(e,t,a){a==null&&(a={});var c="";switch(typeof e){case"string":e=="m/d/yy"&&a.dateNF?c=a.dateNF:c=e;break;case"number":e==14&&a.dateNF?c=a.dateNF:c=(a.table!=null?a.table:k2)[e],c==null&&(c=a.table&&a.table[Q81[e]]||k2[Q81[e]]),c==null&&(c=Yz3[e]||"General");break}if(x$(c,0))return bi(t,a);t instanceof Date&&(t=lM1(t,a.date1904));var n=uC3(c,t);if(x$(n[1]))return bi(t,a);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return fC3(n[1],t,a,n[0])}function ri(e,t){if(typeof t!="number"){t=+t||-1;for(var a=0;a<392;++a){if(k2[a]==null){t<0&&(t=a);continue}if(k2[a]==e){t=a;break}}t<0&&(t=391)}return k2[t]=e,t}function gM1(){k2=Wz3()}var dC3={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},MM1=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function hC3(e){var t=typeof e=="number"?k2[e]:e;return t=t.replace(MM1,"(\\d+)"),new RegExp("^"+t+"$")}function pC3(e,t,a){var c=-1,n=-1,r=-1,i=-1,o=-1,l=-1;(t.match(MM1)||[]).forEach(function(d,h){var p=parseInt(a[h+1],10);switch(d.toLowerCase().charAt(0)){case"y":c=p;break;case"d":r=p;break;case"h":i=p;break;case"s":l=p;break;case"m":i>=0?o=p:n=p;break}}),l>=0&&o==-1&&n>=0&&(o=n,n=-1);var f=(""+(c>=0?c:new Date().getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(r>=1?r:1)).slice(-2);f.length==7&&(f="0"+f),f.length==8&&(f="20"+f);var u=("00"+(i>=0?i:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return i==-1&&o==-1&&l==-1?f:c==-1&&n==-1&&r==-1?u:f+"T"+u}var mC3=function(){var e={};e.version="1.2.0";function t(){for(var C=0,H=new Array(256),V=0;V!=256;++V)C=V,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,H[V]=C;return typeof Int32Array<"u"?new Int32Array(H):H}var a=t();function c(C){var H=0,V=0,N=0,L=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(N=0;N!=256;++N)L[N]=C[N];for(N=0;N!=256;++N)for(V=C[N],H=256+N;H<4096;H+=256)V=L[H]=V>>>8^C[V&255];var w=[];for(N=1;N!=16;++N)w[N-1]=typeof Int32Array<"u"?L.subarray(N*256,N*256+256):L.slice(N*256,N*256+256);return w}var n=c(a),r=n[0],i=n[1],o=n[2],l=n[3],f=n[4],u=n[5],d=n[6],h=n[7],p=n[8],v=n[9],m=n[10],y=n[11],g=n[12],M=n[13],x=n[14];function k(C,H){for(var V=H^-1,N=0,L=C.length;N<L;)V=V>>>8^a[(V^C.charCodeAt(N++))&255];return~V}function b(C,H){for(var V=H^-1,N=C.length-15,L=0;L<N;)V=x[C[L++]^V&255]^M[C[L++]^V>>8&255]^g[C[L++]^V>>16&255]^y[C[L++]^V>>>24]^m[C[L++]]^v[C[L++]]^p[C[L++]]^h[C[L++]]^d[C[L++]]^u[C[L++]]^f[C[L++]]^l[C[L++]]^o[C[L++]]^i[C[L++]]^r[C[L++]]^a[C[L++]];for(N+=15;L<N;)V=V>>>8^a[(V^C[L++])&255];return~V}function _(C,H){for(var V=H^-1,N=0,L=C.length,w=0,P=0;N<L;)w=C.charCodeAt(N++),w<128?V=V>>>8^a[(V^w)&255]:w<2048?(V=V>>>8^a[(V^(192|w>>6&31))&255],V=V>>>8^a[(V^(128|w&63))&255]):w>=55296&&w<57344?(w=(w&1023)+64,P=C.charCodeAt(N++)&1023,V=V>>>8^a[(V^(240|w>>8&7))&255],V=V>>>8^a[(V^(128|w>>2&63))&255],V=V>>>8^a[(V^(128|P>>6&15|(w&3)<<4))&255],V=V>>>8^a[(V^(128|P&63))&255]):(V=V>>>8^a[(V^(224|w>>12&15))&255],V=V>>>8^a[(V^(128|w>>6&63))&255],V=V>>>8^a[(V^(128|w&63))&255]);return~V}return e.table=a,e.bstr=k,e.buf=b,e.str=_,e}(),U2=function(){var t={};t.version="1.2.1";function a(r1,y1){for(var h1=r1.split("/"),m1=y1.split("/"),g1=0,M1=0,N1=Math.min(h1.length,m1.length);g1<N1;++g1){if(M1=h1[g1].length-m1[g1].length)return M1;if(h1[g1]!=m1[g1])return h1[g1]<m1[g1]?-1:1}return h1.length-m1.length}function c(r1){if(r1.charAt(r1.length-1)=="/")return r1.slice(0,-1).indexOf("/")===-1?r1:c(r1.slice(0,-1));var y1=r1.lastIndexOf("/");return y1===-1?r1:r1.slice(0,y1+1)}function n(r1){if(r1.charAt(r1.length-1)=="/")return n(r1.slice(0,-1));var y1=r1.lastIndexOf("/");return y1===-1?r1:r1.slice(y1+1)}function r(r1,y1){typeof y1=="string"&&(y1=new Date(y1));var h1=y1.getHours();h1=h1<<6|y1.getMinutes(),h1=h1<<5|y1.getSeconds()>>>1,r1.write_shift(2,h1);var m1=y1.getFullYear()-1980;m1=m1<<4|y1.getMonth()+1,m1=m1<<5|y1.getDate(),r1.write_shift(2,m1)}function i(r1){var y1=r1.read_shift(2)&65535,h1=r1.read_shift(2)&65535,m1=new Date,g1=h1&31;h1>>>=5;var M1=h1&15;h1>>>=4,m1.setMilliseconds(0),m1.setFullYear(h1+1980),m1.setMonth(M1-1),m1.setDate(g1);var N1=y1&31;y1>>>=5;var V1=y1&63;return y1>>>=6,m1.setHours(y1),m1.setMinutes(V1),m1.setSeconds(N1<<1),m1}function o(r1){a4(r1,0);for(var y1={},h1=0;r1.l<=r1.length-4;){var m1=r1.read_shift(2),g1=r1.read_shift(2),M1=r1.l+g1,N1={};switch(m1){case 21589:h1=r1.read_shift(1),h1&1&&(N1.mtime=r1.read_shift(4)),g1>5&&(h1&2&&(N1.atime=r1.read_shift(4)),h1&4&&(N1.ctime=r1.read_shift(4))),N1.mtime&&(N1.mt=new Date(N1.mtime*1e3));break}r1.l=M1,y1[m1]=N1}return y1}var l;function f(){return l||(l={})}function u(r1,y1){if(r1[0]==80&&r1[1]==75)return W1(r1,y1);if((r1[0]|32)==109&&(r1[1]|32)==105)return e4(r1,y1);if(r1.length<512)throw new Error("CFB file size "+r1.length+" < 512");var h1=3,m1=512,g1=0,M1=0,N1=0,V1=0,I=0,D=[],q=r1.slice(0,512);a4(q,0);var X=d(q);switch(h1=X[0],h1){case 3:m1=512;break;case 4:m1=4096;break;case 0:if(X[1]==0)return W1(r1,y1);default:throw new Error("Major Version: Expected 3 or 4 saw "+h1)}m1!==512&&(q=r1.slice(0,m1),a4(q,28));var J=r1.slice(0,m1);h(q,h1);var n1=q.read_shift(4,"i");if(h1===3&&n1!==0)throw new Error("# Directory Sectors: Expected 0 saw "+n1);q.l+=4,N1=q.read_shift(4,"i"),q.l+=4,q.chk("00100000","Mini Stream Cutoff Size: "),V1=q.read_shift(4,"i"),g1=q.read_shift(4,"i"),I=q.read_shift(4,"i"),M1=q.read_shift(4,"i");for(var a1=-1,z1=0;z1<109&&(a1=q.read_shift(4,"i"),!(a1<0));++z1)D[z1]=a1;var w1=p(r1,m1);y(I,M1,w1,m1,D);var H1=M(w1,N1,D,m1);H1[N1].name="!Directory",g1>0&&V1!==P&&(H1[V1].name="!MiniFAT"),H1[D[0]].name="!FAT",H1.fat_addrs=D,H1.ssz=m1;var k1={},O1=[],P1=[],Z1=[];x(N1,H1,w1,O1,g1,k1,P1,V1),v(P1,Z1,O1),O1.shift();var I1={FileIndex:P1,FullPaths:Z1};return y1&&y1.raw&&(I1.raw={header:J,sectors:w1}),I1}function d(r1){if(r1[r1.l]==80&&r1[r1.l+1]==75)return[0,0];r1.chk(j,"Header Signature: "),r1.l+=16;var y1=r1.read_shift(2,"u");return[r1.read_shift(2,"u"),y1]}function h(r1,y1){var h1=9;switch(r1.l+=2,h1=r1.read_shift(2)){case 9:if(y1!=3)throw new Error("Sector Shift: Expected 9 saw "+h1);break;case 12:if(y1!=4)throw new Error("Sector Shift: Expected 12 saw "+h1);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+h1)}r1.chk("0600","Mini Sector Shift: "),r1.chk("000000000000","Reserved: ")}function p(r1,y1){for(var h1=Math.ceil(r1.length/y1)-1,m1=[],g1=1;g1<h1;++g1)m1[g1-1]=r1.slice(g1*y1,(g1+1)*y1);return m1[h1-1]=r1.slice(h1*y1),m1}function v(r1,y1,h1){for(var m1=0,g1=0,M1=0,N1=0,V1=0,I=h1.length,D=[],q=[];m1<I;++m1)D[m1]=q[m1]=m1,y1[m1]=h1[m1];for(;V1<q.length;++V1)m1=q[V1],g1=r1[m1].L,M1=r1[m1].R,N1=r1[m1].C,D[m1]===m1&&(g1!==-1&&D[g1]!==g1&&(D[m1]=D[g1]),M1!==-1&&D[M1]!==M1&&(D[m1]=D[M1])),N1!==-1&&(D[N1]=m1),g1!==-1&&m1!=D[m1]&&(D[g1]=D[m1],q.lastIndexOf(g1)<V1&&q.push(g1)),M1!==-1&&m1!=D[m1]&&(D[M1]=D[m1],q.lastIndexOf(M1)<V1&&q.push(M1));for(m1=1;m1<I;++m1)D[m1]===m1&&(M1!==-1&&D[M1]!==M1?D[m1]=D[M1]:g1!==-1&&D[g1]!==g1&&(D[m1]=D[g1]));for(m1=1;m1<I;++m1)if(r1[m1].type!==0){if(V1=m1,V1!=D[V1])do V1=D[V1],y1[m1]=y1[V1]+"/"+y1[m1];while(V1!==0&&D[V1]!==-1&&V1!=D[V1]);D[m1]=-1}for(y1[0]+="/",m1=1;m1<I;++m1)r1[m1].type!==2&&(y1[m1]+="/")}function m(r1,y1,h1){for(var m1=r1.start,g1=r1.size,M1=[],N1=m1;h1&&g1>0&&N1>=0;)M1.push(y1.slice(N1*w,N1*w+w)),g1-=w,N1=Pr(h1,N1*4);return M1.length===0?Ee(0):X8(M1).slice(0,r1.size)}function y(r1,y1,h1,m1,g1){var M1=P;if(r1===P){if(y1!==0)throw new Error("DIFAT chain shorter than expected")}else if(r1!==-1){var N1=h1[r1],V1=(m1>>>2)-1;if(!N1)return;for(var I=0;I<V1&&(M1=Pr(N1,I*4))!==P;++I)g1.push(M1);y(Pr(N1,m1-4),y1-1,h1,m1,g1)}}function g(r1,y1,h1,m1,g1){var M1=[],N1=[];g1||(g1=[]);var V1=m1-1,I=0,D=0;for(I=y1;I>=0;){g1[I]=!0,M1[M1.length]=I,N1.push(r1[I]);var q=h1[Math.floor(I*4/m1)];if(D=I*4&V1,m1<4+D)throw new Error("FAT boundary crossed: "+I+" 4 "+m1);if(!r1[q])break;I=Pr(r1[q],D)}return{nodes:M1,data:da1([N1])}}function M(r1,y1,h1,m1){var g1=r1.length,M1=[],N1=[],V1=[],I=[],D=m1-1,q=0,X=0,J=0,n1=0;for(q=0;q<g1;++q)if(V1=[],J=q+y1,J>=g1&&(J-=g1),!N1[J]){I=[];var a1=[];for(X=J;X>=0;){a1[X]=!0,N1[X]=!0,V1[V1.length]=X,I.push(r1[X]);var z1=h1[Math.floor(X*4/m1)];if(n1=X*4&D,m1<4+n1)throw new Error("FAT boundary crossed: "+X+" 4 "+m1);if(!r1[z1]||(X=Pr(r1[z1],n1),a1[X]))break}M1[J]={nodes:V1,data:da1([I])}}return M1}function x(r1,y1,h1,m1,g1,M1,N1,V1){for(var I=0,D=m1.length?2:0,q=y1[r1].data,X=0,J=0,n1;X<q.length;X+=128){var a1=q.slice(X,X+128);a4(a1,64),J=a1.read_shift(2),n1=d11(a1,0,J-D),m1.push(n1);var z1={name:n1,type:a1.read_shift(1),color:a1.read_shift(1),L:a1.read_shift(4,"i"),R:a1.read_shift(4,"i"),C:a1.read_shift(4,"i"),clsid:a1.read_shift(16),state:a1.read_shift(4,"i"),start:0,size:0},w1=a1.read_shift(2)+a1.read_shift(2)+a1.read_shift(2)+a1.read_shift(2);w1!==0&&(z1.ct=k(a1,a1.l-8));var H1=a1.read_shift(2)+a1.read_shift(2)+a1.read_shift(2)+a1.read_shift(2);H1!==0&&(z1.mt=k(a1,a1.l-8)),z1.start=a1.read_shift(4,"i"),z1.size=a1.read_shift(4,"i"),z1.size<0&&z1.start<0&&(z1.size=z1.type=0,z1.start=P,z1.name=""),z1.type===5?(I=z1.start,g1>0&&I!==P&&(y1[I].name="!StreamData")):z1.size>=4096?(z1.storage="fat",y1[z1.start]===void 0&&(y1[z1.start]=g(h1,z1.start,y1.fat_addrs,y1.ssz)),y1[z1.start].name=z1.name,z1.content=y1[z1.start].data.slice(0,z1.size)):(z1.storage="minifat",z1.size<0?z1.size=0:I!==P&&z1.start!==P&&y1[I]&&(z1.content=m(z1,y1[I].data,(y1[V1]||{}).data))),z1.content&&a4(z1.content,0),M1[n1]=z1,N1.push(z1)}}function k(r1,y1){return new Date((e0(r1,y1+4)/1e7*Math.pow(2,32)+e0(r1,y1)/1e7-11644473600)*1e3)}function b(r1,y1){return f(),u(l.readFileSync(r1),y1)}function _(r1,y1){var h1=y1&&y1.type;switch(h1||F2&&Buffer.isBuffer(r1)&&(h1="buffer"),h1||"base64"){case"file":return b(r1,y1);case"base64":return u(J0(d0(r1)),y1);case"binary":return u(J0(r1),y1)}return u(r1,y1)}function C(r1,y1){var h1=y1||{},m1=h1.root||"Root Entry";if(r1.FullPaths||(r1.FullPaths=[]),r1.FileIndex||(r1.FileIndex=[]),r1.FullPaths.length!==r1.FileIndex.length)throw new Error("inconsistent CFB structure");r1.FullPaths.length===0&&(r1.FullPaths[0]=m1+"/",r1.FileIndex[0]={name:m1,type:5}),h1.CLSID&&(r1.FileIndex[0].clsid=h1.CLSID),H(r1)}function H(r1){var y1="Sh33tJ5";if(!U2.find(r1,"/"+y1)){var h1=Ee(4);h1[0]=55,h1[1]=h1[3]=50,h1[2]=54,r1.FileIndex.push({name:y1,type:2,content:h1,size:4,L:69,R:69,C:69}),r1.FullPaths.push(r1.FullPaths[0]+y1),V(r1)}}function V(r1,y1){C(r1);for(var h1=!1,m1=!1,g1=r1.FullPaths.length-1;g1>=0;--g1){var M1=r1.FileIndex[g1];switch(M1.type){case 0:m1?h1=!0:(r1.FileIndex.pop(),r1.FullPaths.pop());break;case 1:case 2:case 5:m1=!0,isNaN(M1.R*M1.L*M1.C)&&(h1=!0),M1.R>-1&&M1.L>-1&&M1.R==M1.L&&(h1=!0);break;default:h1=!0;break}}if(!(!h1&&!y1)){var N1=new Date(1987,1,19),V1=0,I=Object.create?Object.create(null):{},D=[];for(g1=0;g1<r1.FullPaths.length;++g1)I[r1.FullPaths[g1]]=!0,r1.FileIndex[g1].type!==0&&D.push([r1.FullPaths[g1],r1.FileIndex[g1]]);for(g1=0;g1<D.length;++g1){var q=c(D[g1][0]);m1=I[q],m1||(D.push([q,{name:n(q).replace("/",""),type:1,clsid:B,ct:N1,mt:N1,content:null}]),I[q]=!0)}for(D.sort(function(n1,a1){return a(n1[0],a1[0])}),r1.FullPaths=[],r1.FileIndex=[],g1=0;g1<D.length;++g1)r1.FullPaths[g1]=D[g1][0],r1.FileIndex[g1]=D[g1][1];for(g1=0;g1<D.length;++g1){var X=r1.FileIndex[g1],J=r1.FullPaths[g1];if(X.name=n(J).replace("/",""),X.L=X.R=X.C=-(X.color=1),X.size=X.content?X.content.length:0,X.start=0,X.clsid=X.clsid||B,g1===0)X.C=D.length>1?1:-1,X.size=0,X.type=5;else if(J.slice(-1)=="/"){for(V1=g1+1;V1<D.length&&c(r1.FullPaths[V1])!=J;++V1);for(X.C=V1>=D.length?-1:V1,V1=g1+1;V1<D.length&&c(r1.FullPaths[V1])!=c(J);++V1);X.R=V1>=D.length?-1:V1,X.type=1}else c(r1.FullPaths[g1+1]||"")==c(J)&&(X.R=g1+1),X.type=2}}}function N(r1,y1){var h1=y1||{};if(h1.fileType=="mad")return G4(r1,h1);switch(V(r1),h1.fileType){case"zip":return V2(r1,h1)}var m1=function(n1){for(var a1=0,z1=0,w1=0;w1<n1.FileIndex.length;++w1){var H1=n1.FileIndex[w1];if(H1.content){var k1=H1.content.length;k1>0&&(k1<4096?a1+=k1+63>>6:z1+=k1+511>>9)}}for(var O1=n1.FullPaths.length+3>>2,P1=a1+7>>3,Z1=a1+127>>7,I1=P1+z1+O1+Z1,J1=I1+127>>7,v2=J1<=109?0:Math.ceil((J1-109)/127);I1+J1+v2+127>>7>J1;)v2=++J1<=109?0:Math.ceil((J1-109)/127);var X2=[1,v2,J1,Z1,O1,z1,a1,0];return n1.FileIndex[0].size=a1<<6,X2[7]=(n1.FileIndex[0].start=X2[0]+X2[1]+X2[2]+X2[3]+X2[4]+X2[5])+(X2[6]+7>>3),X2}(r1),g1=Ee(m1[7]<<9),M1=0,N1=0;{for(M1=0;M1<8;++M1)g1.write_shift(1,T[M1]);for(M1=0;M1<8;++M1)g1.write_shift(2,0);for(g1.write_shift(2,62),g1.write_shift(2,3),g1.write_shift(2,65534),g1.write_shift(2,9),g1.write_shift(2,6),M1=0;M1<3;++M1)g1.write_shift(2,0);for(g1.write_shift(4,0),g1.write_shift(4,m1[2]),g1.write_shift(4,m1[0]+m1[1]+m1[2]+m1[3]-1),g1.write_shift(4,0),g1.write_shift(4,4096),g1.write_shift(4,m1[3]?m1[0]+m1[1]+m1[2]-1:P),g1.write_shift(4,m1[3]),g1.write_shift(-4,m1[1]?m1[0]-1:P),g1.write_shift(4,m1[1]),M1=0;M1<109;++M1)g1.write_shift(-4,M1<m1[2]?m1[1]+M1:-1)}if(m1[1])for(N1=0;N1<m1[1];++N1){for(;M1<236+N1*127;++M1)g1.write_shift(-4,M1<m1[2]?m1[1]+M1:-1);g1.write_shift(-4,N1===m1[1]-1?P:N1+1)}var V1=function(n1){for(N1+=n1;M1<N1-1;++M1)g1.write_shift(-4,M1+1);n1&&(++M1,g1.write_shift(-4,P))};for(N1=M1=0,N1+=m1[1];M1<N1;++M1)g1.write_shift(-4,F.DIFSECT);for(N1+=m1[2];M1<N1;++M1)g1.write_shift(-4,F.FATSECT);V1(m1[3]),V1(m1[4]);for(var I=0,D=0,q=r1.FileIndex[0];I<r1.FileIndex.length;++I)q=r1.FileIndex[I],q.content&&(D=q.content.length,!(D<4096)&&(q.start=N1,V1(D+511>>9)));for(V1(m1[6]+7>>3);g1.l&511;)g1.write_shift(-4,F.ENDOFCHAIN);for(N1=M1=0,I=0;I<r1.FileIndex.length;++I)q=r1.FileIndex[I],q.content&&(D=q.content.length,!(!D||D>=4096)&&(q.start=N1,V1(D+63>>6)));for(;g1.l&511;)g1.write_shift(-4,F.ENDOFCHAIN);for(M1=0;M1<m1[4]<<2;++M1){var X=r1.FullPaths[M1];if(!X||X.length===0){for(I=0;I<17;++I)g1.write_shift(4,0);for(I=0;I<3;++I)g1.write_shift(4,-1);for(I=0;I<12;++I)g1.write_shift(4,0);continue}q=r1.FileIndex[M1],M1===0&&(q.start=q.size?q.start-1:P);var J=M1===0&&h1.root||q.name;if(D=2*(J.length+1),g1.write_shift(64,J,"utf16le"),g1.write_shift(2,D),g1.write_shift(1,q.type),g1.write_shift(1,q.color),g1.write_shift(-4,q.L),g1.write_shift(-4,q.R),g1.write_shift(-4,q.C),q.clsid)g1.write_shift(16,q.clsid,"hex");else for(I=0;I<4;++I)g1.write_shift(4,0);g1.write_shift(4,q.state||0),g1.write_shift(4,0),g1.write_shift(4,0),g1.write_shift(4,0),g1.write_shift(4,0),g1.write_shift(4,q.start),g1.write_shift(4,q.size),g1.write_shift(4,0)}for(M1=1;M1<r1.FileIndex.length;++M1)if(q=r1.FileIndex[M1],q.size>=4096)if(g1.l=q.start+1<<9,F2&&Buffer.isBuffer(q.content))q.content.copy(g1,g1.l,0,q.size),g1.l+=q.size+511&-512;else{for(I=0;I<q.size;++I)g1.write_shift(1,q.content[I]);for(;I&511;++I)g1.write_shift(1,0)}for(M1=1;M1<r1.FileIndex.length;++M1)if(q=r1.FileIndex[M1],q.size>0&&q.size<4096)if(F2&&Buffer.isBuffer(q.content))q.content.copy(g1,g1.l,0,q.size),g1.l+=q.size+63&-64;else{for(I=0;I<q.size;++I)g1.write_shift(1,q.content[I]);for(;I&63;++I)g1.write_shift(1,0)}if(F2)g1.l=g1.length;else for(;g1.l<g1.length;)g1.write_shift(1,0);return g1}function L(r1,y1){var h1=r1.FullPaths.map(function(I){return I.toUpperCase()}),m1=h1.map(function(I){var D=I.split("/");return D[D.length-(I.slice(-1)=="/"?2:1)]}),g1=!1;y1.charCodeAt(0)===47?(g1=!0,y1=h1[0].slice(0,-1)+y1):g1=y1.indexOf("/")!==-1;var M1=y1.toUpperCase(),N1=g1===!0?h1.indexOf(M1):m1.indexOf(M1);if(N1!==-1)return r1.FileIndex[N1];var V1=!M1.match(O9);for(M1=M1.replace(E4,""),V1&&(M1=M1.replace(O9,"!")),N1=0;N1<h1.length;++N1)if((V1?h1[N1].replace(O9,"!"):h1[N1]).replace(E4,"")==M1||(V1?m1[N1].replace(O9,"!"):m1[N1]).replace(E4,"")==M1)return r1.FileIndex[N1];return null}var w=64,P=-2,j="d0cf11e0a1b11ae1",T=[208,207,17,224,161,177,26,225],B="00000000000000000000000000000000",F={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:P,FREESECT:-1,HEADER_SIGNATURE:j,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:B,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function K(r1,y1,h1){f();var m1=N(r1,h1);l.writeFileSync(y1,m1)}function G(r1){for(var y1=new Array(r1.length),h1=0;h1<r1.length;++h1)y1[h1]=String.fromCharCode(r1[h1]);return y1.join("")}function W(r1,y1){var h1=N(r1,y1);switch(y1&&y1.type||"buffer"){case"file":return f(),l.writeFileSync(y1.filename,h1),h1;case"binary":return typeof h1=="string"?h1:G(h1);case"base64":return G81(typeof h1=="string"?h1:G(h1));case"buffer":if(F2)return Buffer.isBuffer(h1)?h1:$i(h1);case"array":return typeof h1=="string"?J0(h1):h1}return h1}var O;function E(r1){try{var y1=r1.InflateRaw,h1=new y1;if(h1._processChunk(new Uint8Array([3,0]),h1._finishFlushFlag),h1.bytesRead)O=r1;else throw new Error("zlib does not expose bytesRead")}catch(m1){console.error("cannot use native zlib: "+(m1.message||m1))}}function S(r1,y1){if(!O)return _1(r1,y1);var h1=O.InflateRaw,m1=new h1,g1=m1._processChunk(r1.slice(r1.l),m1._finishFlushFlag);return r1.l+=m1.bytesRead,g1}function U(r1){return O?O.deflateRawSync(r1):q1(r1)}var Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],R=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function Q(r1){var y1=(r1<<1|r1<<11)&139536|(r1<<5|r1<<15)&558144;return(y1>>16|y1>>8|y1)&255}for(var c1=typeof Uint8Array<"u",e1=c1?new Uint8Array(256):[],s1=0;s1<256;++s1)e1[s1]=Q(s1);function Y(r1,y1){var h1=e1[r1&255];return y1<=8?h1>>>8-y1:(h1=h1<<8|e1[r1>>8&255],y1<=16?h1>>>16-y1:(h1=h1<<8|e1[r1>>16&255],h1>>>24-y1))}function d1(r1,y1){var h1=y1&7,m1=y1>>>3;return(r1[m1]|(h1<=6?0:r1[m1+1]<<8))>>>h1&3}function x1(r1,y1){var h1=y1&7,m1=y1>>>3;return(r1[m1]|(h1<=5?0:r1[m1+1]<<8))>>>h1&7}function f1(r1,y1){var h1=y1&7,m1=y1>>>3;return(r1[m1]|(h1<=4?0:r1[m1+1]<<8))>>>h1&15}function t1(r1,y1){var h1=y1&7,m1=y1>>>3;return(r1[m1]|(h1<=3?0:r1[m1+1]<<8))>>>h1&31}function l1(r1,y1){var h1=y1&7,m1=y1>>>3;return(r1[m1]|(h1<=1?0:r1[m1+1]<<8))>>>h1&127}function i1(r1,y1,h1){var m1=y1&7,g1=y1>>>3,M1=(1<<h1)-1,N1=r1[g1]>>>m1;return h1<8-m1||(N1|=r1[g1+1]<<8-m1,h1<16-m1)||(N1|=r1[g1+2]<<16-m1,h1<24-m1)||(N1|=r1[g1+3]<<24-m1),N1&M1}function p1(r1,y1,h1){var m1=y1&7,g1=y1>>>3;return m1<=5?r1[g1]|=(h1&7)<<m1:(r1[g1]|=h1<<m1&255,r1[g1+1]=(h1&7)>>8-m1),y1+3}function b1(r1,y1,h1){var m1=y1&7,g1=y1>>>3;return h1=(h1&1)<<m1,r1[g1]|=h1,y1+1}function v1(r1,y1,h1){var m1=y1&7,g1=y1>>>3;return h1<<=m1,r1[g1]|=h1&255,h1>>>=8,r1[g1+1]=h1,y1+8}function C1(r1,y1,h1){var m1=y1&7,g1=y1>>>3;return h1<<=m1,r1[g1]|=h1&255,h1>>>=8,r1[g1+1]=h1&255,r1[g1+2]=h1>>>8,y1+16}function D1(r1,y1){var h1=r1.length,m1=2*h1>y1?2*h1:y1+5,g1=0;if(h1>=y1)return r1;if(F2){var M1=Z81(m1);if(r1.copy)r1.copy(M1);else for(;g1<r1.length;++g1)M1[g1]=r1[g1];return M1}else if(c1){var N1=new Uint8Array(m1);if(N1.set)N1.set(r1);else for(;g1<h1;++g1)N1[g1]=r1[g1];return N1}return r1.length=m1,r1}function R1(r1){for(var y1=new Array(r1),h1=0;h1<r1;++h1)y1[h1]=0;return y1}function B1(r1,y1,h1){var m1=1,g1=0,M1=0,N1=0,V1=0,I=r1.length,D=c1?new Uint16Array(32):R1(32);for(M1=0;M1<32;++M1)D[M1]=0;for(M1=I;M1<h1;++M1)r1[M1]=0;I=r1.length;var q=c1?new Uint16Array(I):R1(I);for(M1=0;M1<I;++M1)D[g1=r1[M1]]++,m1<g1&&(m1=g1),q[M1]=0;for(D[0]=0,M1=1;M1<=m1;++M1)D[M1+16]=V1=V1+D[M1-1]<<1;for(M1=0;M1<I;++M1)V1=r1[M1],V1!=0&&(q[M1]=D[V1+16]++);var X=0;for(M1=0;M1<I;++M1)if(X=r1[M1],X!=0)for(V1=Y(q[M1],m1)>>m1-X,N1=(1<<m1+4-X)-1;N1>=0;--N1)y1[V1|N1<<X]=X&15|M1<<4;return m1}var Y1=c1?new Uint16Array(512):R1(512),G1=c1?new Uint16Array(32):R1(32);if(!c1){for(var n2=0;n2<512;++n2)Y1[n2]=0;for(n2=0;n2<32;++n2)G1[n2]=0}(function(){for(var r1=[],y1=0;y1<32;y1++)r1.push(5);B1(r1,G1,32);var h1=[];for(y1=0;y1<=143;y1++)h1.push(8);for(;y1<=255;y1++)h1.push(9);for(;y1<=279;y1++)h1.push(7);for(;y1<=287;y1++)h1.push(8);B1(h1,Y1,288)})();var o2=function(){for(var y1=c1?new Uint8Array(32768):[],h1=0,m1=0;h1<R.length-1;++h1)for(;m1<R[h1+1];++m1)y1[m1]=h1;for(;m1<32768;++m1)y1[m1]=29;var g1=c1?new Uint8Array(259):[];for(h1=0,m1=0;h1<A.length-1;++h1)for(;m1<A[h1+1];++m1)g1[m1]=h1;function M1(V1,I){for(var D=0;D<V1.length;){var q=Math.min(65535,V1.length-D),X=D+q==V1.length;for(I.write_shift(1,+X),I.write_shift(2,q),I.write_shift(2,~q&65535);q-- >0;)I[I.l++]=V1[D++]}return I.l}function N1(V1,I){for(var D=0,q=0,X=c1?new Uint16Array(32768):[];q<V1.length;){var J=Math.min(65535,V1.length-q);if(J<10){for(D=p1(I,D,+(q+J==V1.length)),D&7&&(D+=8-(D&7)),I.l=D/8|0,I.write_shift(2,J),I.write_shift(2,~J&65535);J-- >0;)I[I.l++]=V1[q++];D=I.l*8;continue}D=p1(I,D,+(q+J==V1.length)+2);for(var n1=0;J-- >0;){var a1=V1[q];n1=(n1<<5^a1)&32767;var z1=-1,w1=0;if((z1=X[n1])&&(z1|=q&-32768,z1>q&&(z1-=32768),z1<q))for(;V1[z1+w1]==V1[q+w1]&&w1<250;)++w1;if(w1>2){a1=g1[w1],a1<=22?D=v1(I,D,e1[a1+1]>>1)-1:(v1(I,D,3),D+=5,v1(I,D,e1[a1-23]>>5),D+=3);var H1=a1<8?0:a1-4>>2;H1>0&&(C1(I,D,w1-A[a1]),D+=H1),a1=y1[q-z1],D=v1(I,D,e1[a1]>>3),D-=3;var k1=a1<4?0:a1-2>>1;k1>0&&(C1(I,D,q-z1-R[a1]),D+=k1);for(var O1=0;O1<w1;++O1)X[n1]=q&32767,n1=(n1<<5^V1[q])&32767,++q;J-=w1-1}else a1<=143?a1=a1+48:D=b1(I,D,1),D=v1(I,D,e1[a1]),X[n1]=q&32767,++q}D=v1(I,D,0)-1}return I.l=(D+7)/8|0,I.l}return function(I,D){return I.length<8?M1(I,D):N1(I,D)}}();function q1(r1){var y1=Ee(50+Math.floor(r1.length*1.1)),h1=o2(r1,y1);return y1.slice(0,h1)}var p2=c1?new Uint16Array(32768):R1(32768),T2=c1?new Uint16Array(32768):R1(32768),h2=c1?new Uint16Array(128):R1(128),y2=1,e3=1;function u1(r1,y1){var h1=t1(r1,y1)+257;y1+=5;var m1=t1(r1,y1)+1;y1+=5;var g1=f1(r1,y1)+4;y1+=4;for(var M1=0,N1=c1?new Uint8Array(19):R1(19),V1=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],I=1,D=c1?new Uint8Array(8):R1(8),q=c1?new Uint8Array(8):R1(8),X=N1.length,J=0;J<g1;++J)N1[Z[J]]=M1=x1(r1,y1),I<M1&&(I=M1),D[M1]++,y1+=3;var n1=0;for(D[0]=0,J=1;J<=I;++J)q[J]=n1=n1+D[J-1]<<1;for(J=0;J<X;++J)(n1=N1[J])!=0&&(V1[J]=q[n1]++);var a1=0;for(J=0;J<X;++J)if(a1=N1[J],a1!=0){n1=e1[V1[J]]>>8-a1;for(var z1=(1<<7-a1)-1;z1>=0;--z1)h2[n1|z1<<a1]=a1&7|J<<3}var w1=[];for(I=1;w1.length<h1+m1;)switch(n1=h2[l1(r1,y1)],y1+=n1&7,n1>>>=3){case 16:for(M1=3+d1(r1,y1),y1+=2,n1=w1[w1.length-1];M1-- >0;)w1.push(n1);break;case 17:for(M1=3+x1(r1,y1),y1+=3;M1-- >0;)w1.push(0);break;case 18:for(M1=11+l1(r1,y1),y1+=7;M1-- >0;)w1.push(0);break;default:w1.push(n1),I<n1&&(I=n1);break}var H1=w1.slice(0,h1),k1=w1.slice(h1);for(J=h1;J<286;++J)H1[J]=0;for(J=m1;J<30;++J)k1[J]=0;return y2=B1(H1,p2,286),e3=B1(k1,T2,30),y1}function o1(r1,y1){if(r1[0]==3&&!(r1[1]&3))return[Ba(y1),2];for(var h1=0,m1=0,g1=Z81(y1||1<<18),M1=0,N1=g1.length>>>0,V1=0,I=0;!(m1&1);){if(m1=x1(r1,h1),h1+=3,m1>>>1)m1>>1==1?(V1=9,I=5):(h1=u1(r1,h1),V1=y2,I=e3);else{h1&7&&(h1+=8-(h1&7));var D=r1[h1>>>3]|r1[(h1>>>3)+1]<<8;if(h1+=32,D>0)for(!y1&&N1<M1+D&&(g1=D1(g1,M1+D),N1=g1.length);D-- >0;)g1[M1++]=r1[h1>>>3],h1+=8;continue}for(;;){!y1&&N1<M1+32767&&(g1=D1(g1,M1+32767),N1=g1.length);var q=i1(r1,h1,V1),X=m1>>>1==1?Y1[q]:p2[q];if(h1+=X&15,X>>>=4,!(X>>>8&255))g1[M1++]=X;else{if(X==256)break;X-=257;var J=X<8?0:X-4>>2;J>5&&(J=0);var n1=M1+A[X];J>0&&(n1+=i1(r1,h1,J),h1+=J),q=i1(r1,h1,I),X=m1>>>1==1?G1[q]:T2[q],h1+=X&15,X>>>=4;var a1=X<4?0:X-2>>1,z1=R[X];for(a1>0&&(z1+=i1(r1,h1,a1),h1+=a1),!y1&&N1<n1&&(g1=D1(g1,n1+100),N1=g1.length);M1<n1;)g1[M1]=g1[M1-z1],++M1}}}return y1?[g1,h1+7>>>3]:[g1.slice(0,M1),h1+7>>>3]}function _1(r1,y1){var h1=r1.slice(r1.l||0),m1=o1(h1,y1);return r1.l+=m1[1],m1[0]}function L1(r1,y1){if(r1)typeof console<"u"&&console.error(y1);else throw new Error(y1)}function W1(r1,y1){var h1=r1;a4(h1,0);var m1=[],g1=[],M1={FileIndex:m1,FullPaths:g1};C(M1,{root:y1.root});for(var N1=h1.length-4;(h1[N1]!=80||h1[N1+1]!=75||h1[N1+2]!=5||h1[N1+3]!=6)&&N1>=0;)--N1;h1.l=N1+4,h1.l+=4;var V1=h1.read_shift(2);h1.l+=6;var I=h1.read_shift(4);for(h1.l=I,N1=0;N1<V1;++N1){h1.l+=20;var D=h1.read_shift(4),q=h1.read_shift(4),X=h1.read_shift(2),J=h1.read_shift(2),n1=h1.read_shift(2);h1.l+=8;var a1=h1.read_shift(4),z1=o(h1.slice(h1.l+X,h1.l+X+J));h1.l+=X+J+n1;var w1=h1.l;h1.l=a1+4,g2(h1,D,q,M1,z1),h1.l=w1}return M1}function g2(r1,y1,h1,m1,g1){r1.l+=2;var M1=r1.read_shift(2),N1=r1.read_shift(2),V1=i(r1);if(M1&8257)throw new Error("Unsupported ZIP encryption");for(var I=r1.read_shift(4),D=r1.read_shift(4),q=r1.read_shift(4),X=r1.read_shift(2),J=r1.read_shift(2),n1="",a1=0;a1<X;++a1)n1+=String.fromCharCode(r1[r1.l++]);if(J){var z1=o(r1.slice(r1.l,r1.l+J));(z1[21589]||{}).mt&&(V1=z1[21589].mt),((g1||{})[21589]||{}).mt&&(V1=g1[21589].mt)}r1.l+=J;var w1=r1.slice(r1.l,r1.l+D);switch(N1){case 8:w1=S(r1,q);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+N1)}var H1=!1;M1&8&&(I=r1.read_shift(4),I==134695760&&(I=r1.read_shift(4),H1=!0),D=r1.read_shift(4),q=r1.read_shift(4)),D!=y1&&L1(H1,"Bad compressed size: "+y1+" != "+D),q!=h1&&L1(H1,"Bad uncompressed size: "+h1+" != "+q),pe(m1,n1,w1,{unsafe:!0,mt:V1})}function V2(r1,y1){var h1=y1||{},m1=[],g1=[],M1=Ee(1),N1=h1.compression?8:0,V1=0,I=0,D=0,q=0,X=0,J=r1.FullPaths[0],n1=J,a1=r1.FileIndex[0],z1=[],w1=0;for(I=1;I<r1.FullPaths.length;++I)if(n1=r1.FullPaths[I].slice(J.length),a1=r1.FileIndex[I],!(!a1.size||!a1.content||n1=="Sh33tJ5")){var H1=q,k1=Ee(n1.length);for(D=0;D<n1.length;++D)k1.write_shift(1,n1.charCodeAt(D)&127);k1=k1.slice(0,k1.l),z1[X]=mC3.buf(a1.content,0);var O1=a1.content;N1==8&&(O1=U(O1)),M1=Ee(30),M1.write_shift(4,67324752),M1.write_shift(2,20),M1.write_shift(2,V1),M1.write_shift(2,N1),a1.mt?r(M1,a1.mt):M1.write_shift(4,0),M1.write_shift(-4,z1[X]),M1.write_shift(4,O1.length),M1.write_shift(4,a1.content.length),M1.write_shift(2,k1.length),M1.write_shift(2,0),q+=M1.length,m1.push(M1),q+=k1.length,m1.push(k1),q+=O1.length,m1.push(O1),M1=Ee(46),M1.write_shift(4,33639248),M1.write_shift(2,0),M1.write_shift(2,20),M1.write_shift(2,V1),M1.write_shift(2,N1),M1.write_shift(4,0),M1.write_shift(-4,z1[X]),M1.write_shift(4,O1.length),M1.write_shift(4,a1.content.length),M1.write_shift(2,k1.length),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(4,0),M1.write_shift(4,H1),w1+=M1.l,g1.push(M1),w1+=k1.length,g1.push(k1),++X}return M1=Ee(22),M1.write_shift(4,101010256),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(2,X),M1.write_shift(2,X),M1.write_shift(4,w1),M1.write_shift(4,q),M1.write_shift(2,0),X8([X8(m1),X8(g1),M1])}var B3={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function he(r1,y1){if(r1.ctype)return r1.ctype;var h1=r1.name||"",m1=h1.match(/\.([^\.]+)$/);return m1&&B3[m1[1]]||y1&&(m1=(h1=y1).match(/[\.\\]([^\.\\])+$/),m1&&B3[m1[1]])?B3[m1[1]]:"application/octet-stream"}function s2(r1){for(var y1=G81(r1),h1=[],m1=0;m1<y1.length;m1+=76)h1.push(y1.slice(m1,m1+76));return h1.join(`\r
9488
+ `):e}function Ed3(e,t){const{element:a,datasetIndex:c,index:n}=t,r=e.getDatasetMeta(c).controller,{label:i,value:o}=r.getLabelAndValue(n);return{chart:e,label:i,parsed:r.getParsed(n),raw:e.data.datasets[c].data[n],formattedValue:o,dataset:r.getDataset(),dataIndex:n,datasetIndex:c,element:a}}function Bt1(e,t){const a=e.chart.ctx,{body:c,footer:n,title:r}=e,{boxWidth:i,boxHeight:o}=t,l=Be(t.bodyFont),f=Be(t.titleFont),u=Be(t.footerFont),d=r.length,h=n.length,p=c.length,v=z4(t.padding);let m=v.height,y=0,g=c.reduce((k,b)=>k+b.before.length+b.lines.length+b.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*f.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),g){const k=t.displayColors?Math.max(o,l.lineHeight):l.lineHeight;m+=p*k+(g-p)*l.lineHeight+(g-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let M=0;const x=function(k){y=Math.max(y,a.measureText(k).width+M)};return a.save(),a.font=f.string,h3(e.title,x),a.font=l.string,h3(e.beforeBody.concat(e.afterBody),x),M=t.displayColors?i+2+t.boxPadding:0,h3(c,k=>{h3(k.before,x),h3(k.lines,x),h3(k.after,x)}),M=0,a.font=u.string,h3(e.footer,x),a.restore(),y+=v.width,{width:y,height:m}}function Dd3(e,t){const{y:a,height:c}=t;return a<c/2?"top":a>e.height-c/2?"bottom":"center"}function Pd3(e,t,a,c){const{x:n,width:r}=c,i=a.caretSize+a.caretPadding;if(e==="left"&&n+r+i>t.width||e==="right"&&n-r-i<0)return!0}function Od3(e,t,a,c){const{x:n,width:r}=a,{width:i,chartArea:{left:o,right:l}}=e;let f="center";return c==="center"?f=n<=(o+l)/2?"left":"right":n<=r/2?f="left":n>=i-r/2&&(f="right"),Pd3(f,e,t,a)&&(f="center"),f}function Rt1(e,t,a){const c=a.yAlign||t.yAlign||Dd3(e,a);return{xAlign:a.xAlign||t.xAlign||Od3(e,t,a,c),yAlign:c}}function Id3(e,t){let{x:a,width:c}=e;return t==="right"?a-=c:t==="center"&&(a-=c/2),a}function Bd3(e,t,a){let{y:c,height:n}=e;return t==="top"?c+=a:t==="bottom"?c-=n+a:c-=n/2,c}function Ft1(e,t,a,c){const{caretSize:n,caretPadding:r,cornerRadius:i}=e,{xAlign:o,yAlign:l}=a,f=n+r,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=ti(i);let v=Id3(t,o);const m=Bd3(t,l,f);return l==="center"?o==="left"?v+=f:o==="right"&&(v-=f):o==="left"?v-=Math.max(u,h)+n:o==="right"&&(v+=Math.max(d,p)+n),{x:Xe(v,0,c.width-t.width),y:Xe(m,0,c.height-t.height)}}function Rd(e,t,a){const c=z4(a.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-c.right:e.x+c.left}function $t1(e){return Y6([],Bt(e))}function Rd3(e,t,a){return Za(e,{tooltip:t,tooltipItems:a,type:"tooltip"})}function qt1(e,t){const a=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return a?e.override(a):e}const Ry1={beforeTitle:Dt,title(e){if(e.length>0){const t=e[0],a=t.chart.data.labels,c=a?a.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(c>0&&t.dataIndex<c)return a[t.dataIndex]}return""},afterTitle:Dt,beforeBody:Dt,beforeLabel:Dt,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const a=e.formattedValue;return Q2(a)||(t+=a),t},labelColor(e){const a=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:a.borderColor,backgroundColor:a.backgroundColor,borderWidth:a.borderWidth,borderDash:a.borderDash,borderDashOffset:a.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const a=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:a.pointStyle,rotation:a.rotation}},afterLabel:Dt,afterBody:Dt,beforeFooter:Dt,footer:Dt,afterFooter:Dt};function B4(e,t,a,c){const n=e[t].call(a,c);return typeof n>"u"?Ry1[t].call(a,c):n}class YG extends _6{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const a=this.chart,c=this.options.setContext(this.getContext()),n=c.enabled&&a.options.animation&&c.animations,r=new My1(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=Rd3(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,a){const{callbacks:c}=a,n=B4(c,"beforeTitle",this,t),r=B4(c,"title",this,t),i=B4(c,"afterTitle",this,t);let o=[];return o=Y6(o,Bt(n)),o=Y6(o,Bt(r)),o=Y6(o,Bt(i)),o}getBeforeBody(t,a){return $t1(B4(a.callbacks,"beforeBody",this,t))}getBody(t,a){const{callbacks:c}=a,n=[];return h3(t,r=>{const i={before:[],lines:[],after:[]},o=qt1(c,r);Y6(i.before,Bt(B4(o,"beforeLabel",this,r))),Y6(i.lines,B4(o,"label",this,r)),Y6(i.after,Bt(B4(o,"afterLabel",this,r))),n.push(i)}),n}getAfterBody(t,a){return $t1(B4(a.callbacks,"afterBody",this,t))}getFooter(t,a){const{callbacks:c}=a,n=B4(c,"beforeFooter",this,t),r=B4(c,"footer",this,t),i=B4(c,"afterFooter",this,t);let o=[];return o=Y6(o,Bt(n)),o=Y6(o,Bt(r)),o=Y6(o,Bt(i)),o}_createItems(t){const a=this._active,c=this.chart.data,n=[],r=[],i=[];let o=[],l,f;for(l=0,f=a.length;l<f;++l)o.push(Ed3(this.chart,a[l]));return t.filter&&(o=o.filter((u,d,h)=>t.filter(u,d,h,c))),t.itemSort&&(o=o.sort((u,d)=>t.itemSort(u,d,c))),h3(o,u=>{const d=qt1(t.callbacks,u);n.push(B4(d,"labelColor",this,u)),r.push(B4(d,"labelPointStyle",this,u)),i.push(B4(d,"labelTextColor",this,u))}),this.labelColors=n,this.labelPointStyles=r,this.labelTextColors=i,this.dataPoints=o,o}update(t,a){const c=this.options.setContext(this.getContext()),n=this._active;let r,i=[];if(!n.length)this.opacity!==0&&(r={opacity:0});else{const o=E9[c.position].call(this,n,this._eventPosition);i=this._createItems(c),this.title=this.getTitle(i,c),this.beforeBody=this.getBeforeBody(i,c),this.body=this.getBody(i,c),this.afterBody=this.getAfterBody(i,c),this.footer=this.getFooter(i,c);const l=this._size=Bt1(this,c),f=Object.assign({},o,l),u=Rt1(this.chart,c,f),d=Ft1(c,f,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,r={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:o.x,caretY:o.y}}this._tooltipItems=i,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&c.external&&c.external.call(this,{chart:this.chart,tooltip:this,replay:a})}drawCaret(t,a,c,n){const r=this.getCaretPosition(t,c,n);a.lineTo(r.x1,r.y1),a.lineTo(r.x2,r.y2),a.lineTo(r.x3,r.y3)}getCaretPosition(t,a,c){const{xAlign:n,yAlign:r}=this,{caretSize:i,cornerRadius:o}=c,{topLeft:l,topRight:f,bottomLeft:u,bottomRight:d}=ti(o),{x:h,y:p}=t,{width:v,height:m}=a;let y,g,M,x,k,b;return r==="center"?(k=p+m/2,n==="left"?(y=h,g=y-i,x=k+i,b=k-i):(y=h+v,g=y+i,x=k-i,b=k+i),M=y):(n==="left"?g=h+Math.max(l,u)+i:n==="right"?g=h+v-Math.max(f,d)-i:g=this.caretX,r==="top"?(x=p,k=x-i,y=g-i,M=g+i):(x=p+m,k=x+i,y=g+i,M=g-i),b=x),{x1:y,x2:g,x3:M,y1:x,y2:k,y3:b}}drawTitle(t,a,c){const n=this.title,r=n.length;let i,o,l;if(r){const f=Oo(c.rtl,this.x,this.width);for(t.x=Rd(this,c.titleAlign,c),a.textAlign=f.textAlign(c.titleAlign),a.textBaseline="middle",i=Be(c.titleFont),o=c.titleSpacing,a.fillStyle=c.titleColor,a.font=i.string,l=0;l<r;++l)a.fillText(n[l],f.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+o,l+1===r&&(t.y+=c.titleMarginBottom-o)}}_drawColorBox(t,a,c,n,r){const i=this.labelColors[c],o=this.labelPointStyles[c],{boxHeight:l,boxWidth:f}=r,u=Be(r.bodyFont),d=Rd(this,"left",r),h=n.x(d),p=l<u.lineHeight?(u.lineHeight-l)/2:0,v=a.y+p;if(r.usePointStyle){const m={radius:Math.min(f,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},y=n.leftForLtr(h,f)+f/2,g=v+l/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,RG(t,m,y,g),t.strokeStyle=i.borderColor,t.fillStyle=i.backgroundColor,RG(t,m,y,g)}else{t.lineWidth=R2(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,t.strokeStyle=i.borderColor,t.setLineDash(i.borderDash||[]),t.lineDashOffset=i.borderDashOffset||0;const m=n.leftForLtr(h,f),y=n.leftForLtr(n.xPlus(h,1),f-2),g=ti(i.borderRadius);Object.values(g).some(M=>M!==0)?(t.beginPath(),t.fillStyle=r.multiKeyBackground,pf(t,{x:m,y:v,w:f,h:l,radius:g}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),pf(t,{x:y,y:v+1,w:f-2,h:l-2,radius:g}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(m,v,f,l),t.strokeRect(m,v,f,l),t.fillStyle=i.backgroundColor,t.fillRect(y,v+1,f-2,l-2))}t.fillStyle=this.labelTextColors[c]}drawBody(t,a,c){const{body:n}=this,{bodySpacing:r,bodyAlign:i,displayColors:o,boxHeight:l,boxWidth:f,boxPadding:u}=c,d=Be(c.bodyFont);let h=d.lineHeight,p=0;const v=Oo(c.rtl,this.x,this.width),m=function(H){a.fillText(H,v.x(t.x+p),t.y+h/2),t.y+=h+r},y=v.textAlign(i);let g,M,x,k,b,_,C;for(a.textAlign=i,a.textBaseline="middle",a.font=d.string,t.x=Rd(this,y,c),a.fillStyle=c.bodyColor,h3(this.beforeBody,m),p=o&&y!=="right"?i==="center"?f/2+u:f+2+u:0,k=0,_=n.length;k<_;++k){for(g=n[k],M=this.labelTextColors[k],a.fillStyle=M,h3(g.before,m),x=g.lines,o&&x.length&&(this._drawColorBox(a,t,k,v,c),h=Math.max(d.lineHeight,l)),b=0,C=x.length;b<C;++b)m(x[b]),h=d.lineHeight;h3(g.after,m)}p=0,h=d.lineHeight,h3(this.afterBody,m),t.y-=r}drawFooter(t,a,c){const n=this.footer,r=n.length;let i,o;if(r){const l=Oo(c.rtl,this.x,this.width);for(t.x=Rd(this,c.footerAlign,c),t.y+=c.footerMarginTop,a.textAlign=l.textAlign(c.footerAlign),a.textBaseline="middle",i=Be(c.footerFont),a.fillStyle=c.footerColor,a.font=i.string,o=0;o<r;++o)a.fillText(n[o],l.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+c.footerSpacing}}drawBackground(t,a,c,n){const{xAlign:r,yAlign:i}=this,{x:o,y:l}=t,{width:f,height:u}=c,{topLeft:d,topRight:h,bottomLeft:p,bottomRight:v}=ti(n.cornerRadius);a.fillStyle=n.backgroundColor,a.strokeStyle=n.borderColor,a.lineWidth=n.borderWidth,a.beginPath(),a.moveTo(o+d,l),i==="top"&&this.drawCaret(t,a,c,n),a.lineTo(o+f-h,l),a.quadraticCurveTo(o+f,l,o+f,l+h),i==="center"&&r==="right"&&this.drawCaret(t,a,c,n),a.lineTo(o+f,l+u-v),a.quadraticCurveTo(o+f,l+u,o+f-v,l+u),i==="bottom"&&this.drawCaret(t,a,c,n),a.lineTo(o+p,l+u),a.quadraticCurveTo(o,l+u,o,l+u-p),i==="center"&&r==="left"&&this.drawCaret(t,a,c,n),a.lineTo(o,l+d),a.quadraticCurveTo(o,l,o+d,l),a.closePath(),a.fill(),n.borderWidth>0&&a.stroke()}_updateAnimationTarget(t){const a=this.chart,c=this.$animations,n=c&&c.x,r=c&&c.y;if(n||r){const i=E9[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=Bt1(this,t),l=Object.assign({},i,this._size),f=Rt1(a,t,l),u=Ft1(t,l,f,a);(n._to!==u.x||r._to!==u.y)&&(this.xAlign=f.xAlign,this.yAlign=f.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const a=this.options.setContext(this.getContext());let c=this.opacity;if(!c)return;this._updateAnimationTarget(a);const n={width:this.width,height:this.height},r={x:this.x,y:this.y};c=Math.abs(c)<.001?0:c;const i=z4(a.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;a.enabled&&o&&(t.save(),t.globalAlpha=c,this.drawBackground(r,t,n,a),py1(t,a.textDirection),r.y+=i.top,this.drawTitle(r,t,a),this.drawBody(r,t,a),this.drawFooter(r,t,a),my1(t,a.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,a){const c=this._active,n=t.map(({datasetIndex:o,index:l})=>{const f=this.chart.getDatasetMeta(o);if(!f)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:f.data[l],index:l}}),r=!n$(c,n),i=this._positionChanged(n,a);(r||i)&&(this._active=n,this._eventPosition=a,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,a,c=!0){if(a&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,r=this._active||[],i=this._getActiveElements(t,r,a,c),o=this._positionChanged(i,t),l=a||!n$(i,r)||o;return l&&(this._active=i,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,a))),l}_getActiveElements(t,a,c,n){const r=this.options;if(t.type==="mouseout")return[];if(!n)return a.filter(o=>this.chart.data.datasets[o.datasetIndex]&&this.chart.getDatasetMeta(o.datasetIndex).controller.getParsed(o.index)!==void 0);const i=this.chart.getElementsAtEventForMode(t,r.mode,r,c);return r.reverse&&i.reverse(),i}_positionChanged(t,a){const{caretX:c,caretY:n,options:r}=this,i=E9[r.position].call(this,t,a);return i!==!1&&(c!==i.x||n!==i.y)}}S1(YG,"positioners",E9);var Fd3={id:"tooltip",_element:YG,positioners:E9,afterInit(e,t,a){a&&(e.tooltip=new YG({chart:e,options:a}))},beforeUpdate(e,t,a){e.tooltip&&e.tooltip.initialize(a)},reset(e,t,a){e.tooltip&&e.tooltip.initialize(a)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const a={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...a,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",a)}},afterEvent(e,t){if(e.tooltip){const a=t.replay;e.tooltip.handleEvent(t.event,a,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Ry1},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},$d3=Object.freeze({__proto__:null,Colors:ed3,Decimation:nd3,Filler:Cd3,Legend:Sd3,SubTitle:Td3,Title:Ad3,Tooltip:Fd3});const qd3=(e,t,a,c)=>(typeof t=="string"?(a=e.push(t)-1,c.unshift({index:a,label:t})):isNaN(t)&&(a=null),a);function jd3(e,t,a,c){const n=e.indexOf(t);if(n===-1)return qd3(e,t,a,c);const r=e.lastIndexOf(t);return n!==r?a:n}const Ud3=(e,t)=>e===null?null:Xe(Math.round(e),0,t);function jt1(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class GG extends Oi{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const a=this._addedLabels;if(a.length){const c=this.getLabels();for(const{index:n,label:r}of a)c[n]===r&&c.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,a){if(Q2(t))return null;const c=this.getLabels();return a=isFinite(a)&&c[a]===t?a:jd3(c,t,z2(a,t),this._addedLabels),Ud3(a,c.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:a}=this.getUserBounds();let{min:c,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(c=0),a||(n=this.getLabels().length-1)),this.min=c,this.max=n}buildTicks(){const t=this.min,a=this.max,c=this.options.offset,n=[];let r=this.getLabels();r=t===0&&a===r.length-1?r:r.slice(t,a+1),this._valueRange=Math.max(r.length-(c?0:1),1),this._startValue=this.min-(c?.5:0);for(let i=t;i<=a;i++)n.push({value:i});return n}getLabelForValue(t){return jt1.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const a=this.ticks;return t<0||t>a.length-1?null:this.getPixelForValue(a[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}S1(GG,"id","category"),S1(GG,"defaults",{ticks:{callback:jt1}});function Wd3(e,t){const a=[],{bounds:n,step:r,min:i,max:o,precision:l,count:f,maxTicks:u,maxDigits:d,includeBounds:h}=e,p=r||1,v=u-1,{min:m,max:y}=t,g=!Q2(i),M=!Q2(o),x=!Q2(f),k=(y-m)/(d+1);let b=B61((y-m)/v/p)*p,_,C,H,V;if(b<1e-14&&!g&&!M)return[{value:m},{value:y}];V=Math.ceil(y/b)-Math.floor(m/b),V>v&&(b=B61(V*b/v/p)*p),Q2(l)||(_=Math.pow(10,l),b=Math.ceil(b*_)/_),n==="ticks"?(C=Math.floor(m/b)*b,H=Math.ceil(y/b)*b):(C=m,H=y),g&&M&&r&&B93((o-i)/r,b/1e3)?(V=Math.round(Math.min((o-i)/b,u)),b=(o-i)/V,C=i,H=o):x?(C=g?i:C,H=M?o:H,V=f-1,b=(H-C)/V):(V=(H-C)/b,ll(V,Math.round(V),b/1e3)?V=Math.round(V):V=Math.ceil(V));const N=Math.max(R61(b),R61(C));_=Math.pow(10,Q2(l)?N:l),C=Math.round(C*_)/_,H=Math.round(H*_)/_;let L=0;for(g&&(h&&C!==i?(a.push({value:i}),C<i&&L++,ll(Math.round((C+L*b)*_)/_,i,Ut1(i,k,e))&&L++):C<i&&L++);L<V;++L){const w=Math.round((C+L*b)*_)/_;if(M&&w>o)break;a.push({value:w})}return M&&h&&H!==o?a.length&&ll(a[a.length-1].value,o,Ut1(o,k,e))?a[a.length-1].value=o:a.push({value:o}):(!M||H===o)&&a.push({value:H}),a}function Ut1(e,t,{horizontal:a,minRotation:c}){const n=n6(c),r=(a?Math.sin(n):Math.cos(n))||.001,i=.75*t*(""+e).length;return Math.min(t/r,i)}class u$ extends Oi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,a){return Q2(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:a,maxDefined:c}=this.getUserBounds();let{min:n,max:r}=this;const i=l=>n=a?n:l,o=l=>r=c?r:l;if(t){const l=vt(n),f=vt(r);l<0&&f<0?o(0):l>0&&f>0&&i(0)}if(n===r){let l=r===0?1:Math.abs(r*.05);o(r+l),t||i(n-l)}this.min=n,this.max=r}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:a,stepSize:c}=t,n;return c?(n=Math.ceil(this.max/c)-Math.floor(this.min/c)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${c} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),a=a||11),a&&(n=Math.min(a,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,a=t.ticks;let c=this.getTickLimit();c=Math.max(2,c);const n={maxTicks:c,bounds:t.bounds,min:t.min,max:t.max,precision:a.precision,step:a.stepSize,count:a.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:a.minRotation||0,includeBounds:a.includeBounds!==!1},r=this._range||this,i=Wd3(n,r);return t.bounds==="ticks"&&Kv1(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let a=this.min,c=this.max;if(super.configure(),this.options.offset&&t.length){const n=(c-a)/Math.max(t.length-1,1)/2;a-=n,c+=n}this._startValue=a,this._endValue=c,this._valueRange=c-a}getLabelForValue(t){return vu(t,this.chart.options.locale,this.options.ticks.format)}}class ZG extends u${determineDataLimits(){const{min:t,max:a}=this.getMinMax(!0);this.min=se(t)?t:0,this.max=se(a)?a:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),a=t?this.width:this.height,c=n6(this.options.ticks.minRotation),n=(t?Math.sin(c):Math.cos(c))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(a/Math.min(40,r.lineHeight/n))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}S1(ZG,"id","linear"),S1(ZG,"defaults",{ticks:{callback:sj.formatters.numeric}});const vf=e=>Math.floor(ia(e)),d5=(e,t)=>Math.pow(10,vf(e)+t);function Wt1(e){return e/Math.pow(10,vf(e))===1}function Yt1(e,t,a){const c=Math.pow(10,a),n=Math.floor(e/c);return Math.ceil(t/c)-n}function Yd3(e,t){const a=t-e;let c=vf(a);for(;Yt1(e,t,c)>10;)c++;for(;Yt1(e,t,c)<10;)c--;return Math.min(c,vf(e))}function Gd3(e,{min:t,max:a}){t=Q4(e.min,t);const c=[],n=vf(t);let r=Yd3(t,a),i=r<0?Math.pow(10,Math.abs(r)):1;const o=Math.pow(10,r),l=n>r?Math.pow(10,n):0,f=Math.round((t-l)*i)/i,u=Math.floor((t-l)/o/10)*o*10;let d=Math.floor((f-u)/Math.pow(10,r)),h=Q4(e.min,Math.round((l+u+d*Math.pow(10,r))*i)/i);for(;h<a;)c.push({value:h,major:Wt1(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(r++,d=2,i=r>=0?1:i),h=Math.round((l+u+d*Math.pow(10,r))*i)/i;const p=Q4(e.max,h);return c.push({value:p,major:Wt1(p),significand:d}),c}class XG extends Oi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,a){const c=u$.prototype.parse.apply(this,[t,a]);if(c===0){this._zero=!0;return}return se(c)&&c>0?c:null}determineDataLimits(){const{min:t,max:a}=this.getMinMax(!0);this.min=se(t)?Math.max(0,t):null,this.max=se(a)?Math.max(0,a):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!se(this._userMin)&&(this.min=t===d5(this.min,0)?d5(this.min,-1):d5(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:a}=this.getUserBounds();let c=this.min,n=this.max;const r=o=>c=t?c:o,i=o=>n=a?n:o;c===n&&(c<=0?(r(1),i(10)):(r(d5(c,-1)),i(d5(n,1)))),c<=0&&r(d5(n,-1)),n<=0&&i(d5(c,1)),this.min=c,this.max=n}buildTicks(){const t=this.options,a={min:this._userMin,max:this._userMax},c=Gd3(a,this);return t.bounds==="ticks"&&Kv1(c,this,"value"),t.reverse?(c.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),c}getLabelForValue(t){return t===void 0?"0":vu(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=ia(t),this._valueRange=ia(this.max)-ia(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(ia(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const a=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+a*this._valueRange)}}S1(XG,"id","logarithmic"),S1(XG,"defaults",{ticks:{callback:sj.formatters.logarithmic,major:{enabled:!0}}});function KG(e){const t=e.ticks;if(t.display&&e.display){const a=z4(t.backdropPadding);return z2(t.font&&t.font.size,j3.font.size)+a.height}return 0}function Zd3(e,t,a){return a=V3(a)?a:[a],{w:al3(e,t.string,a),h:a.length*t.lineHeight}}function Gt1(e,t,a,c,n){return e===c||e===n?{start:t-a/2,end:t+a/2}:e<c||e>n?{start:t-a,end:t}:{start:t,end:t+a}}function Xd3(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},a=Object.assign({},t),c=[],n=[],r=e._pointLabels.length,i=e.options.pointLabels,o=i.centerPointLabels?T3/r:0;for(let l=0;l<r;l++){const f=i.setContext(e.getPointLabelContext(l));n[l]=f.padding;const u=e.getPointPosition(l,e.drawingArea+n[l],o),d=Be(f.font),h=Zd3(e.ctx,d,e._pointLabels[l]);c[l]=h;const p=J4(e.getIndexAngle(l)+o),v=Math.round(pJ(p)),m=Gt1(v,u.x,h.w,0,180),y=Gt1(v,u.y,h.h,90,270);Kd3(a,t,p,m,y)}e.setCenterPoint(t.l-a.l,a.r-t.r,t.t-a.t,a.b-t.b),e._pointLabelItems=eh3(e,c,n)}function Kd3(e,t,a,c,n){const r=Math.abs(Math.sin(a)),i=Math.abs(Math.cos(a));let o=0,l=0;c.start<t.l?(o=(t.l-c.start)/r,e.l=Math.min(e.l,t.l-o)):c.end>t.r&&(o=(c.end-t.r)/r,e.r=Math.max(e.r,t.r+o)),n.start<t.t?(l=(t.t-n.start)/i,e.t=Math.min(e.t,t.t-l)):n.end>t.b&&(l=(n.end-t.b)/i,e.b=Math.max(e.b,t.b+l))}function Qd3(e,t,a){const c=e.drawingArea,{extra:n,additionalAngle:r,padding:i,size:o}=a,l=e.getPointPosition(t,c+n+i,r),f=Math.round(pJ(J4(l.angle+we))),u=ch3(l.y,o.h,f),d=th3(f),h=ah3(l.x,o.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+o.w,bottom:u+o.h}}function Jd3(e,t){if(!t)return!0;const{left:a,top:c,right:n,bottom:r}=e;return!(t8({x:a,y:c},t)||t8({x:a,y:r},t)||t8({x:n,y:c},t)||t8({x:n,y:r},t))}function eh3(e,t,a){const c=[],n=e._pointLabels.length,r=e.options,{centerPointLabels:i,display:o}=r.pointLabels,l={extra:KG(r)/2,additionalAngle:i?T3/n:0};let f;for(let u=0;u<n;u++){l.padding=a[u],l.size=t[u];const d=Qd3(e,u,l);c.push(d),o==="auto"&&(d.visible=Jd3(d,f),d.visible&&(f=d))}return c}function th3(e){return e===0||e===180?"center":e<180?"left":"right"}function ah3(e,t,a){return a==="right"?e-=t:a==="center"&&(e-=t/2),e}function ch3(e,t,a){return a===90||a===270?e-=t/2:(a>270||a<90)&&(e-=t),e}function nh3(e,t,a){const{left:c,top:n,right:r,bottom:i}=a,{backdropColor:o}=t;if(!Q2(o)){const l=ti(t.borderRadius),f=z4(t.backdropPadding);e.fillStyle=o;const u=c-f.left,d=n-f.top,h=r-c+f.width,p=i-n+f.height;Object.values(l).some(v=>v!==0)?(e.beginPath(),pf(e,{x:u,y:d,w:h,h:p,radius:l}),e.fill()):e.fillRect(u,d,h,p)}}function rh3(e,t){const{ctx:a,options:{pointLabels:c}}=e;for(let n=t-1;n>=0;n--){const r=e._pointLabelItems[n];if(!r.visible)continue;const i=c.setContext(e.getPointLabelContext(n));nh3(a,i,r);const o=Be(i.font),{x:l,y:f,textAlign:u}=r;gi(a,e._pointLabels[n],l,f+o.lineHeight/2,o,{color:i.color,textAlign:u,textBaseline:"middle"})}}function Fy1(e,t,a,c){const{ctx:n}=e;if(a)n.arc(e.xCenter,e.yCenter,t,0,N3);else{let r=e.getPointPosition(0,t);n.moveTo(r.x,r.y);for(let i=1;i<c;i++)r=e.getPointPosition(i,t),n.lineTo(r.x,r.y)}}function ih3(e,t,a,c,n){const r=e.ctx,i=t.circular,{color:o,lineWidth:l}=t;!i&&!c||!o||!l||a<0||(r.save(),r.strokeStyle=o,r.lineWidth=l,r.setLineDash(n.dash||[]),r.lineDashOffset=n.dashOffset,r.beginPath(),Fy1(e,a,i,c),r.closePath(),r.stroke(),r.restore())}function oh3(e,t,a){return Za(e,{label:a,index:t,type:"pointLabel"})}class D9 extends u${constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=z4(KG(this.options)/2),a=this.width=this.maxWidth-t.width,c=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+a/2+t.left),this.yCenter=Math.floor(this.top+c/2+t.top),this.drawingArea=Math.floor(Math.min(a,c)/2)}determineDataLimits(){const{min:t,max:a}=this.getMinMax(!1);this.min=se(t)&&!isNaN(t)?t:0,this.max=se(a)&&!isNaN(a)?a:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/KG(this.options))}generateTickLabels(t){u$.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((a,c)=>{const n=M3(this.options.pointLabels.callback,[a,c],this);return n||n===0?n:""}).filter((a,c)=>this.chart.getDataVisibility(c))}fit(){const t=this.options;t.display&&t.pointLabels.display?Xd3(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,a,c,n){this.xCenter+=Math.floor((t-a)/2),this.yCenter+=Math.floor((c-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,a,c,n))}getIndexAngle(t){const a=N3/(this._pointLabels.length||1),c=this.options.startAngle||0;return J4(t*a+n6(c))}getDistanceFromCenterForValue(t){if(Q2(t))return NaN;const a=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*a:(t-this.min)*a}getValueForDistanceFromCenter(t){if(Q2(t))return NaN;const a=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-a:this.min+a}getPointLabelContext(t){const a=this._pointLabels||[];if(t>=0&&t<a.length){const c=a[t];return oh3(this.getContext(),t,c)}}getPointPosition(t,a,c=0){const n=this.getIndexAngle(t)-we+c;return{x:Math.cos(n)*a+this.xCenter,y:Math.sin(n)*a+this.yCenter,angle:n}}getPointPositionForValue(t,a){return this.getPointPosition(t,this.getDistanceFromCenterForValue(a))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:a,top:c,right:n,bottom:r}=this._pointLabelItems[t];return{left:a,top:c,right:n,bottom:r}}drawBackground(){const{backgroundColor:t,grid:{circular:a}}=this.options;if(t){const c=this.ctx;c.save(),c.beginPath(),Fy1(this,this.getDistanceFromCenterForValue(this._endValue),a,this._pointLabels.length),c.closePath(),c.fillStyle=t,c.fill(),c.restore()}}drawGrid(){const t=this.ctx,a=this.options,{angleLines:c,grid:n,border:r}=a,i=this._pointLabels.length;let o,l,f;if(a.pointLabels.display&&rh3(this,i),n.display&&this.ticks.forEach((u,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(d),p=n.setContext(h),v=r.setContext(h);ih3(this,p,l,i,v)}}),c.display){for(t.save(),o=i-1;o>=0;o--){const u=c.setContext(this.getPointLabelContext(o)),{color:d,lineWidth:h}=u;!h||!d||(t.lineWidth=h,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(a.reverse?this.min:this.max),f=this.getPointPosition(o,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(f.x,f.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,a=this.options,c=a.ticks;if(!c.display)return;const n=this.getIndexAngle(0);let r,i;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((o,l)=>{if(l===0&&this.min>=0&&!a.reverse)return;const f=c.setContext(this.getContext(l)),u=Be(f.font);if(r=this.getDistanceFromCenterForValue(this.ticks[l].value),f.showLabelBackdrop){t.font=u.string,i=t.measureText(o.label).width,t.fillStyle=f.backdropColor;const d=z4(f.backdropPadding);t.fillRect(-i/2-d.left,-r-u.size/2-d.top,i+d.width,u.size+d.height)}gi(t,o.label,0,-r,u,{color:f.color,strokeColor:f.textStrokeColor,strokeWidth:f.textStrokeWidth})}),t.restore()}drawTitle(){}}S1(D9,"id","radialLinear"),S1(D9,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:sj.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),S1(D9,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),S1(D9,"descriptors",{angleLines:{_fallback:"grid"}});const dj={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},U4=Object.keys(dj);function Zt1(e,t){return e-t}function Xt1(e,t){if(Q2(t))return null;const a=e._adapter,{parser:c,round:n,isoWeekday:r}=e._parseOpts;let i=t;return typeof c=="function"&&(i=c(i)),se(i)||(i=typeof c=="string"?a.parse(i,c):a.parse(i)),i===null?null:(n&&(i=n==="week"&&(ns(r)||r===!0)?a.startOf(i,"isoWeek",r):a.startOf(i,n)),+i)}function Kt1(e,t,a,c){const n=U4.length;for(let r=U4.indexOf(e);r<n-1;++r){const i=dj[U4[r]],o=i.steps?i.steps:Number.MAX_SAFE_INTEGER;if(i.common&&Math.ceil((a-t)/(o*i.size))<=c)return U4[r]}return U4[n-1]}function sh3(e,t,a,c,n){for(let r=U4.length-1;r>=U4.indexOf(a);r--){const i=U4[r];if(dj[i].common&&e._adapter.diff(n,c,i)>=t-1)return i}return U4[a?U4.indexOf(a):0]}function lh3(e){for(let t=U4.indexOf(e)+1,a=U4.length;t<a;++t)if(dj[U4[t]].common)return U4[t]}function Qt1(e,t,a){if(!a)e[t]=!0;else if(a.length){const{lo:c,hi:n}=mJ(a,t),r=a[c]>=t?a[c]:a[n];e[r]=!0}}function fh3(e,t,a,c){const n=e._adapter,r=+n.startOf(t[0].value,c),i=t[t.length-1].value;let o,l;for(o=r;o<=i;o=+n.add(o,1,c))l=a[o],l>=0&&(t[l].major=!0);return t}function Jt1(e,t,a){const c=[],n={},r=t.length;let i,o;for(i=0;i<r;++i)o=t[i],n[o]=i,c.push({value:o,major:!1});return r===0||!a?c:fh3(e,c,n,a)}class yf extends Oi{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,a={}){const c=t.time||(t.time={}),n=this._adapter=new gf3._date(t.adapters.date);n.init(a),sl(c.displayFormats,n.formats()),this._parseOpts={parser:c.parser,round:c.round,isoWeekday:c.isoWeekday},super.init(t),this._normalized=a.normalized}parse(t,a){return t===void 0?null:Xt1(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,a=this._adapter,c=t.time.unit||"day";let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds();function l(f){!i&&!isNaN(f.min)&&(n=Math.min(n,f.min)),!o&&!isNaN(f.max)&&(r=Math.max(r,f.max))}(!i||!o)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),n=se(n)&&!isNaN(n)?n:+a.startOf(Date.now(),c),r=se(r)&&!isNaN(r)?r:+a.endOf(Date.now(),c)+1,this.min=Math.min(n,r-1),this.max=Math.max(n+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let a=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY;return t.length&&(a=t[0],c=t[t.length-1]),{min:a,max:c}}buildTicks(){const t=this.options,a=t.time,c=t.ticks,n=c.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const r=this.min,i=this.max,o=q93(n,r,i);return this._unit=a.unit||(c.autoSkip?Kt1(a.minUnit,this.min,this.max,this._getLabelCapacity(r)):sh3(this,o.length,a.minUnit,this.min,this.max)),this._majorUnit=!c.major.enabled||this._unit==="year"?void 0:lh3(this._unit),this.initOffsets(n),t.reverse&&o.reverse(),Jt1(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let a=0,c=0,n,r;this.options.offset&&t.length&&(n=this.getDecimalForValue(t[0]),t.length===1?a=1-n:a=(this.getDecimalForValue(t[1])-n)/2,r=this.getDecimalForValue(t[t.length-1]),t.length===1?c=r:c=(r-this.getDecimalForValue(t[t.length-2]))/2);const i=t.length<3?.5:.25;a=Xe(a,0,i),c=Xe(c,0,i),this._offsets={start:a,end:c,factor:1/(a+1+c)}}_generate(){const t=this._adapter,a=this.min,c=this.max,n=this.options,r=n.time,i=r.unit||Kt1(r.minUnit,a,c,this._getLabelCapacity(a)),o=z2(n.ticks.stepSize,1),l=i==="week"?r.isoWeekday:!1,f=ns(l)||l===!0,u={};let d=a,h,p;if(f&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,f?"day":i),t.diff(c,a,i)>1e5*o)throw new Error(a+" and "+c+" are too far apart with stepSize of "+o+" "+i);const v=n.ticks.source==="data"&&this.getDataTimestamps();for(h=d,p=0;h<c;h=+t.add(h,o,i),p++)Qt1(u,h,v);return(h===c||n.bounds==="ticks"||p===1)&&Qt1(u,h,v),Object.keys(u).sort(Zt1).map(m=>+m)}getLabelForValue(t){const a=this._adapter,c=this.options.time;return c.tooltipFormat?a.format(t,c.tooltipFormat):a.format(t,c.displayFormats.datetime)}format(t,a){const n=this.options.time.displayFormats,r=this._unit,i=a||n[r];return this._adapter.format(t,i)}_tickFormatFunction(t,a,c,n){const r=this.options,i=r.ticks.callback;if(i)return M3(i,[t,a,c],this);const o=r.time.displayFormats,l=this._unit,f=this._majorUnit,u=l&&o[l],d=f&&o[f],h=c[a],p=f&&d&&h&&h.major;return this._adapter.format(t,n||(p?d:u))}generateTickLabels(t){let a,c,n;for(a=0,c=t.length;a<c;++a)n=t[a],n.label=this._tickFormatFunction(n.value,a,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const a=this._offsets,c=this.getDecimalForValue(t);return this.getPixelForDecimal((a.start+c)*a.factor)}getValueForPixel(t){const a=this._offsets,c=this.getDecimalForPixel(t)/a.factor-a.end;return this.min+c*(this.max-this.min)}_getLabelSize(t){const a=this.options.ticks,c=this.ctx.measureText(t).width,n=n6(this.isHorizontal()?a.maxRotation:a.minRotation),r=Math.cos(n),i=Math.sin(n),o=this._resolveTickFontOptions(0).size;return{w:c*r+o*i,h:c*i+o*r}}_getLabelCapacity(t){const a=this.options.time,c=a.displayFormats,n=c[a.unit]||c.millisecond,r=this._tickFormatFunction(t,0,Jt1(this,[t],this._majorUnit),n),i=this._getLabelSize(r),o=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return o>0?o:1}getDataTimestamps(){let t=this._cache.data||[],a,c;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(a=0,c=n.length;a<c;++a)t=t.concat(n[a].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let a,c;if(t.length)return t;const n=this.getLabels();for(a=0,c=n.length;a<c;++a)t.push(Xt1(this,n[a]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return ey1(t.sort(Zt1))}}S1(yf,"id","time"),S1(yf,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Fd(e,t,a){let c=0,n=e.length-1,r,i,o,l;a?(t>=e[c].pos&&t<=e[n].pos&&({lo:c,hi:n}=e8(e,"pos",t)),{pos:r,time:o}=e[c],{pos:i,time:l}=e[n]):(t>=e[c].time&&t<=e[n].time&&({lo:c,hi:n}=e8(e,"time",t)),{time:r,pos:o}=e[c],{time:i,pos:l}=e[n]);const f=i-r;return f?o+(l-o)*(t-r)/f:o}class QG extends yf{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),a=this._table=this.buildLookupTable(t);this._minPos=Fd(a,this.min),this._tableRange=Fd(a,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:a,max:c}=this,n=[],r=[];let i,o,l,f,u;for(i=0,o=t.length;i<o;++i)f=t[i],f>=a&&f<=c&&n.push(f);if(n.length<2)return[{time:a,pos:0},{time:c,pos:1}];for(i=0,o=n.length;i<o;++i)u=n[i+1],l=n[i-1],f=n[i],Math.round((u+l)/2)!==f&&r.push({time:f,pos:i/(o-1)});return r}_generate(){const t=this.min,a=this.max;let c=super.getDataTimestamps();return(!c.includes(t)||!c.length)&&c.splice(0,0,t),(!c.includes(a)||c.length===1)&&c.push(a),c.sort((n,r)=>n-r)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const a=this.getDataTimestamps(),c=this.getLabelTimestamps();return a.length&&c.length?t=this.normalize(a.concat(c)):t=a.length?a:c,t=this._cache.all=t,t}getDecimalForValue(t){return(Fd(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const a=this._offsets,c=this.getDecimalForPixel(t)/a.factor-a.end;return Fd(this._table,c*this._tableRange+this._minPos,!0)}}S1(QG,"id","timeseries"),S1(QG,"defaults",yf.defaults);var uh3=Object.freeze({__proto__:null,CategoryScale:GG,LinearScale:ZG,LogarithmicScale:XG,RadialLinearScale:D9,TimeScale:yf,TimeSeriesScale:QG});const $y1=[yf3,Yu3,$d3,uh3];var dh3=typeof global=="object"&&global&&global.Object===Object&&global;const qy1=dh3;var hh3=typeof self=="object"&&self&&self.Object===Object&&self,ph3=qy1||hh3||Function("return this")();const Vt=ph3;var mh3=Vt.Symbol;const Oa=mh3;var jy1=Object.prototype,vh3=jy1.hasOwnProperty,yh3=jy1.toString,k9=Oa?Oa.toStringTag:void 0;function gh3(e){var t=vh3.call(e,k9),a=e[k9];try{e[k9]=void 0;var c=!0}catch{}var n=yh3.call(e);return c&&(t?e[k9]=a:delete e[k9]),n}var Mh3=Object.prototype,kh3=Mh3.toString;function xh3(e){return kh3.call(e)}var bh3="[object Null]",zh3="[object Undefined]",e81=Oa?Oa.toStringTag:void 0;function gu(e){return e==null?e===void 0?zh3:bh3:e81&&e81 in Object(e)?gh3(e):xh3(e)}function Mi(e){return e!=null&&typeof e=="object"}var Ch3=Array.isArray;const os=Ch3;function Mu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _h3="[object AsyncFunction]",wh3="[object Function]",Hh3="[object GeneratorFunction]",Lh3="[object Proxy]";function Uy1(e){if(!Mu(e))return!1;var t=gu(e);return t==wh3||t==Hh3||t==_h3||t==Lh3}var Vh3=Vt["__core-js_shared__"];const DW=Vh3;var t81=function(){var e=/[^.]+$/.exec(DW&&DW.keys&&DW.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Sh3(e){return!!t81&&t81 in e}var Nh3=Function.prototype,Ah3=Nh3.toString;function Ii(e){if(e!=null){try{return Ah3.call(e)}catch{}try{return e+""}catch{}}return""}var Th3=/[\\^$.*+?()[\]{}|]/g,Eh3=/^\[object .+?Constructor\]$/,Dh3=Function.prototype,Ph3=Object.prototype,Oh3=Dh3.toString,Ih3=Ph3.hasOwnProperty,Bh3=RegExp("^"+Oh3.call(Ih3).replace(Th3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rh3(e){if(!Mu(e)||Sh3(e))return!1;var t=Uy1(e)?Bh3:Eh3;return t.test(Ii(e))}function Fh3(e,t){return e==null?void 0:e[t]}function Bi(e,t){var a=Fh3(e,t);return Rh3(a)?a:void 0}var $h3=Bi(Vt,"WeakMap");const JG=$h3;var a81=Object.create,qh3=function(){function e(){}return function(t){if(!Mu(t))return{};if(a81)return a81(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();const jh3=qh3;function Uh3(e,t){var a=-1,c=e.length;for(t||(t=Array(c));++a<c;)t[a]=e[a];return t}var Wh3=function(){try{var e=Bi(Object,"defineProperty");return e({},"",{}),e}catch{}}();const c81=Wh3;function Yh3(e,t){for(var a=-1,c=e==null?0:e.length;++a<c&&t(e[a],a,e)!==!1;);return e}var Gh3=9007199254740991,Zh3=/^(?:0|[1-9]\d*)$/;function Xh3(e,t){var a=typeof e;return t=t??Gh3,!!t&&(a=="number"||a!="symbol"&&Zh3.test(e))&&e>-1&&e%1==0&&e<t}function Wy1(e,t,a){t=="__proto__"&&c81?c81(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}function HJ(e,t){return e===t||e!==e&&t!==t}var Kh3=Object.prototype,Qh3=Kh3.hasOwnProperty;function Yy1(e,t,a){var c=e[t];(!(Qh3.call(e,t)&&HJ(c,a))||a===void 0&&!(t in e))&&Wy1(e,t,a)}function hj(e,t,a,c){var n=!a;a||(a={});for(var r=-1,i=t.length;++r<i;){var o=t[r],l=c?c(a[o],e[o],o,a,e):void 0;l===void 0&&(l=e[o]),n?Wy1(a,o,l):Yy1(a,o,l)}return a}var Jh3=9007199254740991;function Gy1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Jh3}function LJ(e){return e!=null&&Gy1(e.length)&&!Uy1(e)}var ep3=Object.prototype;function pj(e){var t=e&&e.constructor,a=typeof t=="function"&&t.prototype||ep3;return e===a}function tp3(e,t){for(var a=-1,c=Array(e);++a<e;)c[a]=t(a);return c}var ap3="[object Arguments]";function n81(e){return Mi(e)&&gu(e)==ap3}var Zy1=Object.prototype,cp3=Zy1.hasOwnProperty,np3=Zy1.propertyIsEnumerable,rp3=n81(function(){return arguments}())?n81:function(e){return Mi(e)&&cp3.call(e,"callee")&&!np3.call(e,"callee")};const Xy1=rp3;function ip3(){return!1}var Ky1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,r81=Ky1&&typeof module=="object"&&module&&!module.nodeType&&module,op3=r81&&r81.exports===Ky1,i81=op3?Vt.Buffer:void 0,sp3=i81?i81.isBuffer:void 0,lp3=sp3||ip3;const gf=lp3;var fp3="[object Arguments]",up3="[object Array]",dp3="[object Boolean]",hp3="[object Date]",pp3="[object Error]",mp3="[object Function]",vp3="[object Map]",yp3="[object Number]",gp3="[object Object]",Mp3="[object RegExp]",kp3="[object Set]",xp3="[object String]",bp3="[object WeakMap]",zp3="[object ArrayBuffer]",Cp3="[object DataView]",_p3="[object Float32Array]",wp3="[object Float64Array]",Hp3="[object Int8Array]",Lp3="[object Int16Array]",Vp3="[object Int32Array]",Sp3="[object Uint8Array]",Np3="[object Uint8ClampedArray]",Ap3="[object Uint16Array]",Tp3="[object Uint32Array]",w3={};w3[_p3]=w3[wp3]=w3[Hp3]=w3[Lp3]=w3[Vp3]=w3[Sp3]=w3[Np3]=w3[Ap3]=w3[Tp3]=!0;w3[fp3]=w3[up3]=w3[zp3]=w3[dp3]=w3[Cp3]=w3[hp3]=w3[pp3]=w3[mp3]=w3[vp3]=w3[yp3]=w3[gp3]=w3[Mp3]=w3[kp3]=w3[xp3]=w3[bp3]=!1;function Ep3(e){return Mi(e)&&Gy1(e.length)&&!!w3[gu(e)]}function VJ(e){return function(t){return e(t)}}var Qy1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hl=Qy1&&typeof module=="object"&&module&&!module.nodeType&&module,Dp3=hl&&hl.exports===Qy1,PW=Dp3&&qy1.process,Pp3=function(){try{var e=hl&&hl.require&&hl.require("util").types;return e||PW&&PW.binding&&PW.binding("util")}catch{}}();const ss=Pp3;var o81=ss&&ss.isTypedArray,Op3=o81?VJ(o81):Ep3;const SJ=Op3;var Ip3=Object.prototype,Bp3=Ip3.hasOwnProperty;function Jy1(e,t){var a=os(e),c=!a&&Xy1(e),n=!a&&!c&&gf(e),r=!a&&!c&&!n&&SJ(e),i=a||c||n||r,o=i?tp3(e.length,String):[],l=o.length;for(var f in e)(t||Bp3.call(e,f))&&!(i&&(f=="length"||n&&(f=="offset"||f=="parent")||r&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Xh3(f,l)))&&o.push(f);return o}function eg1(e,t){return function(a){return e(t(a))}}var Rp3=eg1(Object.keys,Object);const Fp3=Rp3;var $p3=Object.prototype,qp3=$p3.hasOwnProperty;function tg1(e){if(!pj(e))return Fp3(e);var t=[];for(var a in Object(e))qp3.call(e,a)&&a!="constructor"&&t.push(a);return t}function NJ(e){return LJ(e)?Jy1(e):tg1(e)}function jp3(e){var t=[];if(e!=null)for(var a in Object(e))t.push(a);return t}var Up3=Object.prototype,Wp3=Up3.hasOwnProperty;function Yp3(e){if(!Mu(e))return jp3(e);var t=pj(e),a=[];for(var c in e)c=="constructor"&&(t||!Wp3.call(e,c))||a.push(c);return a}function AJ(e){return LJ(e)?Jy1(e,!0):Yp3(e)}var Gp3=Bi(Object,"create");const Mf=Gp3;function Zp3(){this.__data__=Mf?Mf(null):{},this.size=0}function Xp3(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Kp3="__lodash_hash_undefined__",Qp3=Object.prototype,Jp3=Qp3.hasOwnProperty;function em3(e){var t=this.__data__;if(Mf){var a=t[e];return a===Kp3?void 0:a}return Jp3.call(t,e)?t[e]:void 0}var tm3=Object.prototype,am3=tm3.hasOwnProperty;function cm3(e){var t=this.__data__;return Mf?t[e]!==void 0:am3.call(t,e)}var nm3="__lodash_hash_undefined__";function rm3(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=Mf&&t===void 0?nm3:t,this}function ki(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var c=e[t];this.set(c[0],c[1])}}ki.prototype.clear=Zp3;ki.prototype.delete=Xp3;ki.prototype.get=em3;ki.prototype.has=cm3;ki.prototype.set=rm3;function im3(){this.__data__=[],this.size=0}function mj(e,t){for(var a=e.length;a--;)if(HJ(e[a][0],t))return a;return-1}var om3=Array.prototype,sm3=om3.splice;function lm3(e){var t=this.__data__,a=mj(t,e);if(a<0)return!1;var c=t.length-1;return a==c?t.pop():sm3.call(t,a,1),--this.size,!0}function fm3(e){var t=this.__data__,a=mj(t,e);return a<0?void 0:t[a][1]}function um3(e){return mj(this.__data__,e)>-1}function dm3(e,t){var a=this.__data__,c=mj(a,e);return c<0?(++this.size,a.push([e,t])):a[c][1]=t,this}function N8(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var c=e[t];this.set(c[0],c[1])}}N8.prototype.clear=im3;N8.prototype.delete=lm3;N8.prototype.get=fm3;N8.prototype.has=um3;N8.prototype.set=dm3;var hm3=Bi(Vt,"Map");const kf=hm3;function pm3(){this.size=0,this.__data__={hash:new ki,map:new(kf||N8),string:new ki}}function mm3(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vj(e,t){var a=e.__data__;return mm3(t)?a[typeof t=="string"?"string":"hash"]:a.map}function vm3(e){var t=vj(this,e).delete(e);return this.size-=t?1:0,t}function ym3(e){return vj(this,e).get(e)}function gm3(e){return vj(this,e).has(e)}function Mm3(e,t){var a=vj(this,e),c=a.size;return a.set(e,t),this.size+=a.size==c?0:1,this}function Ri(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var c=e[t];this.set(c[0],c[1])}}Ri.prototype.clear=pm3;Ri.prototype.delete=vm3;Ri.prototype.get=ym3;Ri.prototype.has=gm3;Ri.prototype.set=Mm3;function ag1(e,t){for(var a=-1,c=t.length,n=e.length;++a<c;)e[n+a]=t[a];return e}var km3=eg1(Object.getPrototypeOf,Object);const cg1=km3;function xm3(){this.__data__=new N8,this.size=0}function bm3(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}function zm3(e){return this.__data__.get(e)}function Cm3(e){return this.__data__.has(e)}var _m3=200;function wm3(e,t){var a=this.__data__;if(a instanceof N8){var c=a.__data__;if(!kf||c.length<_m3-1)return c.push([e,t]),this.size=++a.size,this;a=this.__data__=new Ri(c)}return a.set(e,t),this.size=a.size,this}function l8(e){var t=this.__data__=new N8(e);this.size=t.size}l8.prototype.clear=xm3;l8.prototype.delete=bm3;l8.prototype.get=zm3;l8.prototype.has=Cm3;l8.prototype.set=wm3;function Hm3(e,t){return e&&hj(t,NJ(t),e)}function Lm3(e,t){return e&&hj(t,AJ(t),e)}var ng1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,s81=ng1&&typeof module=="object"&&module&&!module.nodeType&&module,Vm3=s81&&s81.exports===ng1,l81=Vm3?Vt.Buffer:void 0,f81=l81?l81.allocUnsafe:void 0;function Sm3(e,t){if(t)return e.slice();var a=e.length,c=f81?f81(a):new e.constructor(a);return e.copy(c),c}function Nm3(e,t){for(var a=-1,c=e==null?0:e.length,n=0,r=[];++a<c;){var i=e[a];t(i,a,e)&&(r[n++]=i)}return r}function rg1(){return[]}var Am3=Object.prototype,Tm3=Am3.propertyIsEnumerable,u81=Object.getOwnPropertySymbols,Em3=u81?function(e){return e==null?[]:(e=Object(e),Nm3(u81(e),function(t){return Tm3.call(e,t)}))}:rg1;const TJ=Em3;function Dm3(e,t){return hj(e,TJ(e),t)}var Pm3=Object.getOwnPropertySymbols,Om3=Pm3?function(e){for(var t=[];e;)ag1(t,TJ(e)),e=cg1(e);return t}:rg1;const ig1=Om3;function Im3(e,t){return hj(e,ig1(e),t)}function og1(e,t,a){var c=t(e);return os(e)?c:ag1(c,a(e))}function eZ(e){return og1(e,NJ,TJ)}function Bm3(e){return og1(e,AJ,ig1)}var Rm3=Bi(Vt,"DataView");const tZ=Rm3;var Fm3=Bi(Vt,"Promise");const aZ=Fm3;var $m3=Bi(Vt,"Set");const cZ=$m3;var d81="[object Map]",qm3="[object Object]",h81="[object Promise]",p81="[object Set]",m81="[object WeakMap]",v81="[object DataView]",jm3=Ii(tZ),Um3=Ii(kf),Wm3=Ii(aZ),Ym3=Ii(cZ),Gm3=Ii(JG),Tr=gu;(tZ&&Tr(new tZ(new ArrayBuffer(1)))!=v81||kf&&Tr(new kf)!=d81||aZ&&Tr(aZ.resolve())!=h81||cZ&&Tr(new cZ)!=p81||JG&&Tr(new JG)!=m81)&&(Tr=function(e){var t=gu(e),a=t==qm3?e.constructor:void 0,c=a?Ii(a):"";if(c)switch(c){case jm3:return v81;case Um3:return d81;case Wm3:return h81;case Ym3:return p81;case Gm3:return m81}return t});const ls=Tr;var Zm3=Object.prototype,Xm3=Zm3.hasOwnProperty;function Km3(e){var t=e.length,a=new e.constructor(t);return t&&typeof e[0]=="string"&&Xm3.call(e,"index")&&(a.index=e.index,a.input=e.input),a}var Qm3=Vt.Uint8Array;const d$=Qm3;function EJ(e){var t=new e.constructor(e.byteLength);return new d$(t).set(new d$(e)),t}function Jm3(e,t){var a=t?EJ(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}var ev3=/\w*$/;function tv3(e){var t=new e.constructor(e.source,ev3.exec(e));return t.lastIndex=e.lastIndex,t}var y81=Oa?Oa.prototype:void 0,g81=y81?y81.valueOf:void 0;function av3(e){return g81?Object(g81.call(e)):{}}function cv3(e,t){var a=t?EJ(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}var nv3="[object Boolean]",rv3="[object Date]",iv3="[object Map]",ov3="[object Number]",sv3="[object RegExp]",lv3="[object Set]",fv3="[object String]",uv3="[object Symbol]",dv3="[object ArrayBuffer]",hv3="[object DataView]",pv3="[object Float32Array]",mv3="[object Float64Array]",vv3="[object Int8Array]",yv3="[object Int16Array]",gv3="[object Int32Array]",Mv3="[object Uint8Array]",kv3="[object Uint8ClampedArray]",xv3="[object Uint16Array]",bv3="[object Uint32Array]";function zv3(e,t,a){var c=e.constructor;switch(t){case dv3:return EJ(e);case nv3:case rv3:return new c(+e);case hv3:return Jm3(e,a);case pv3:case mv3:case vv3:case yv3:case gv3:case Mv3:case kv3:case xv3:case bv3:return cv3(e,a);case iv3:return new c;case ov3:case fv3:return new c(e);case sv3:return tv3(e);case lv3:return new c;case uv3:return av3(e)}}function Cv3(e){return typeof e.constructor=="function"&&!pj(e)?jh3(cg1(e)):{}}var _v3="[object Map]";function wv3(e){return Mi(e)&&ls(e)==_v3}var M81=ss&&ss.isMap,Hv3=M81?VJ(M81):wv3;const Lv3=Hv3;var Vv3="[object Set]";function Sv3(e){return Mi(e)&&ls(e)==Vv3}var k81=ss&&ss.isSet,Nv3=k81?VJ(k81):Sv3;const Av3=Nv3;var Tv3=1,Ev3=2,Dv3=4,sg1="[object Arguments]",Pv3="[object Array]",Ov3="[object Boolean]",Iv3="[object Date]",Bv3="[object Error]",lg1="[object Function]",Rv3="[object GeneratorFunction]",Fv3="[object Map]",$v3="[object Number]",fg1="[object Object]",qv3="[object RegExp]",jv3="[object Set]",Uv3="[object String]",Wv3="[object Symbol]",Yv3="[object WeakMap]",Gv3="[object ArrayBuffer]",Zv3="[object DataView]",Xv3="[object Float32Array]",Kv3="[object Float64Array]",Qv3="[object Int8Array]",Jv3="[object Int16Array]",ey3="[object Int32Array]",ty3="[object Uint8Array]",ay3="[object Uint8ClampedArray]",cy3="[object Uint16Array]",ny3="[object Uint32Array]",g3={};g3[sg1]=g3[Pv3]=g3[Gv3]=g3[Zv3]=g3[Ov3]=g3[Iv3]=g3[Xv3]=g3[Kv3]=g3[Qv3]=g3[Jv3]=g3[ey3]=g3[Fv3]=g3[$v3]=g3[fg1]=g3[qv3]=g3[jv3]=g3[Uv3]=g3[Wv3]=g3[ty3]=g3[ay3]=g3[cy3]=g3[ny3]=!0;g3[Bv3]=g3[lg1]=g3[Yv3]=!1;function cF(e,t,a,c,n,r){var i,o=t&Tv3,l=t&Ev3,f=t&Dv3;if(a&&(i=n?a(e,c,n,r):a(e)),i!==void 0)return i;if(!Mu(e))return e;var u=os(e);if(u){if(i=Km3(e),!o)return Uh3(e,i)}else{var d=ls(e),h=d==lg1||d==Rv3;if(gf(e))return Sm3(e,o);if(d==fg1||d==sg1||h&&!n){if(i=l||h?{}:Cv3(e),!o)return l?Im3(e,Lm3(i,e)):Dm3(e,Hm3(i,e))}else{if(!g3[d])return n?e:{};i=zv3(e,d,o)}}r||(r=new l8);var p=r.get(e);if(p)return p;r.set(e,i),Av3(e)?e.forEach(function(y){i.add(cF(y,t,a,y,e,r))}):Lv3(e)&&e.forEach(function(y,g){i.set(g,cF(y,t,a,g,e,r))});var v=f?l?Bm3:eZ:l?AJ:NJ,m=u?void 0:v(e);return Yh3(m||e,function(y,g){m&&(g=y,y=e[g]),Yy1(i,g,cF(y,t,a,g,e,r))}),i}var ry3=1,iy3=4;function x9(e){return cF(e,ry3|iy3)}var oy3="__lodash_hash_undefined__";function sy3(e){return this.__data__.set(e,oy3),this}function ly3(e){return this.__data__.has(e)}function h$(e){var t=-1,a=e==null?0:e.length;for(this.__data__=new Ri;++t<a;)this.add(e[t])}h$.prototype.add=h$.prototype.push=sy3;h$.prototype.has=ly3;function fy3(e,t){for(var a=-1,c=e==null?0:e.length;++a<c;)if(t(e[a],a,e))return!0;return!1}function uy3(e,t){return e.has(t)}var dy3=1,hy3=2;function ug1(e,t,a,c,n,r){var i=a&dy3,o=e.length,l=t.length;if(o!=l&&!(i&&l>o))return!1;var f=r.get(e),u=r.get(t);if(f&&u)return f==t&&u==e;var d=-1,h=!0,p=a&hy3?new h$:void 0;for(r.set(e,t),r.set(t,e);++d<o;){var v=e[d],m=t[d];if(c)var y=i?c(m,v,d,t,e,r):c(v,m,d,e,t,r);if(y!==void 0){if(y)continue;h=!1;break}if(p){if(!fy3(t,function(g,M){if(!uy3(p,M)&&(v===g||n(v,g,a,c,r)))return p.push(M)})){h=!1;break}}else if(!(v===m||n(v,m,a,c,r))){h=!1;break}}return r.delete(e),r.delete(t),h}function py3(e){var t=-1,a=Array(e.size);return e.forEach(function(c,n){a[++t]=[n,c]}),a}function my3(e){var t=-1,a=Array(e.size);return e.forEach(function(c){a[++t]=c}),a}var vy3=1,yy3=2,gy3="[object Boolean]",My3="[object Date]",ky3="[object Error]",xy3="[object Map]",by3="[object Number]",zy3="[object RegExp]",Cy3="[object Set]",_y3="[object String]",wy3="[object Symbol]",Hy3="[object ArrayBuffer]",Ly3="[object DataView]",x81=Oa?Oa.prototype:void 0,OW=x81?x81.valueOf:void 0;function Vy3(e,t,a,c,n,r,i){switch(a){case Ly3:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Hy3:return!(e.byteLength!=t.byteLength||!r(new d$(e),new d$(t)));case gy3:case My3:case by3:return HJ(+e,+t);case ky3:return e.name==t.name&&e.message==t.message;case zy3:case _y3:return e==t+"";case xy3:var o=py3;case Cy3:var l=c&vy3;if(o||(o=my3),e.size!=t.size&&!l)return!1;var f=i.get(e);if(f)return f==t;c|=yy3,i.set(e,t);var u=ug1(o(e),o(t),c,n,r,i);return i.delete(e),u;case wy3:if(OW)return OW.call(e)==OW.call(t)}return!1}var Sy3=1,Ny3=Object.prototype,Ay3=Ny3.hasOwnProperty;function Ty3(e,t,a,c,n,r){var i=a&Sy3,o=eZ(e),l=o.length,f=eZ(t),u=f.length;if(l!=u&&!i)return!1;for(var d=l;d--;){var h=o[d];if(!(i?h in t:Ay3.call(t,h)))return!1}var p=r.get(e),v=r.get(t);if(p&&v)return p==t&&v==e;var m=!0;r.set(e,t),r.set(t,e);for(var y=i;++d<l;){h=o[d];var g=e[h],M=t[h];if(c)var x=i?c(M,g,h,t,e,r):c(g,M,h,e,t,r);if(!(x===void 0?g===M||n(g,M,a,c,r):x)){m=!1;break}y||(y=h=="constructor")}if(m&&!y){var k=e.constructor,b=t.constructor;k!=b&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof b=="function"&&b instanceof b)&&(m=!1)}return r.delete(e),r.delete(t),m}var Ey3=1,b81="[object Arguments]",z81="[object Array]",$d="[object Object]",Dy3=Object.prototype,C81=Dy3.hasOwnProperty;function Py3(e,t,a,c,n,r){var i=os(e),o=os(t),l=i?z81:ls(e),f=o?z81:ls(t);l=l==b81?$d:l,f=f==b81?$d:f;var u=l==$d,d=f==$d,h=l==f;if(h&&gf(e)){if(!gf(t))return!1;i=!0,u=!1}if(h&&!u)return r||(r=new l8),i||SJ(e)?ug1(e,t,a,c,n,r):Vy3(e,t,l,a,c,n,r);if(!(a&Ey3)){var p=u&&C81.call(e,"__wrapped__"),v=d&&C81.call(t,"__wrapped__");if(p||v){var m=p?e.value():e,y=v?t.value():t;return r||(r=new l8),n(m,y,a,c,r)}}return h?(r||(r=new l8),Ty3(e,t,a,c,n,r)):!1}function dg1(e,t,a,c,n){return e===t?!0:e==null||t==null||!Mi(e)&&!Mi(t)?e!==e&&t!==t:Py3(e,t,a,c,dg1,n)}var Oy3="[object Map]",Iy3="[object Set]",By3=Object.prototype,Ry3=By3.hasOwnProperty;function Fy3(e){if(e==null)return!0;if(LJ(e)&&(os(e)||typeof e=="string"||typeof e.splice=="function"||gf(e)||SJ(e)||Xy1(e)))return!e.length;var t=ls(e);if(t==Oy3||t==Iy3)return!e.size;if(pj(e))return!tg1(e).length;for(var a in e)if(Ry3.call(e,a))return!1;return!0}function _81(e,t){return dg1(e,t)}var $y3=Object.defineProperty,qy3=Object.defineProperties,jy3=Object.getOwnPropertyDescriptors,w81=Object.getOwnPropertySymbols,Uy3=Object.prototype.hasOwnProperty,Wy3=Object.prototype.propertyIsEnumerable,H81=(e,t,a)=>t in e?$y3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Yy3=(e,t)=>{for(var a in t||(t={}))Uy3.call(t,a)&&H81(e,a,t[a]);if(w81)for(var a of w81(t))Wy3.call(t,a)&&H81(e,a,t[a]);return e},Gy3=(e,t)=>qy3(e,jy3(t));function Zy3(e){return(e.match(/[a-zA-Z0-9]+/g)||[]).map(t=>`${t.charAt(0).toUpperCase()}${t.slice(1)}`).join("")}var Xa=(e,t)=>{const a={chartData:{type:Object,required:!0},options:{type:Object,required:!1},chartId:{default:e,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:()=>[]},onLabelsUpdate:{type:Function},onChartUpdate:{type:Function},onChartDestroy:{type:Function},onChartRender:{type:Function}},c=Zy3(e);return s.defineComponent({name:c,props:a,emits:{"labels:update":()=>!0,"chart:update":n=>!0,"chart:destroy":()=>!0,"chart:render":n=>!0},setup(n,{emit:r,expose:i}){const o=s.ref(null),l=`${n.chartId}`;let f=s.shallowRef(null);s.watch(()=>n.chartData,u,{deep:!0}),s.watch(()=>n.options,y=>{f.value&&y&&(f.value.options=x9(y),v())},{deep:!0});function u(y){if(f.value){let g=f.value;_81(y.labels,f.value.data.labels)||(g.data.labels=y.labels,h()),_81(y.datasets,f.value.data.datasets)||y.datasets.forEach((M,x)=>{var k,b;if(Fy3(M))g.data.datasets=[];else{const _=x9(g.data),C=Object.keys((b=(k=_.datasets)==null?void 0:k[x])!=null?b:{}),H=Object.keys(M);C.filter(N=>N!=="_meta"&&H.indexOf(N)===-1).forEach(N=>{g.data.datasets[x]&&delete g.data.datasets[x][N]});for(const N in M){const L=x9(M[N]);g.data.datasets[x]||(g.data.datasets[x]={}),M.hasOwnProperty(N)&&L!=null&&g&&(g.data.datasets[x][N]=L)}}}),v()}else f.value&&m(),d()}function d(){o.value?(f.value=new K6(o.value,{data:x9(n.chartData),type:t,options:x9(n.options),plugins:n.plugins}),p()):console.error(`Error on component ${c}, canvas cannot be rendered. Check if the render appends server-side`)}function h(){r("labels:update"),n.onLabelsUpdate&&n.onLabelsUpdate()}function p(){f.value&&(r("chart:render",f.value),n.onChartRender&&n.onChartRender(f.value))}function v(){f.value&&(f.value.update(),r("chart:update",f.value),n.onChartUpdate&&n.onChartUpdate(f.value))}function m(){f.value&&f.value.destroy(),r("chart:destroy"),n.onChartDestroy&&n.onChartDestroy()}return s.onMounted(d),s.onBeforeUnmount(()=>{f.value&&f.value.destroy()}),i({canvasRef:o,renderChart:d,chartInstance:f,canvasId:l,update:v}),()=>s.h("div",{style:Gy3(Yy3({maxWidth:"100%"},n.styles),{position:"relative"}),class:n.cssClasses},[s.h("canvas",{style:{maxWidth:"100%",maxHeight:"100%"},id:l,width:n.width,height:n.height,ref:o})])}})},Xy3=Xa("bar-chart","bar"),Ky3=Xa("doughnut-chart","doughnut");Xa("line-chart","line");Xa("pie-chart","pie");Xa("polar-chart","polarArea");Xa("radar-chart","radar");Xa("bubble-chart","bubble");Xa("scatter-chart","scatter");const Qy3=s.defineComponent({__name:"PgaBarChart",props:{data:{},options:{}},setup(e){K6.register(...$y1);const t={responsive:!0};return(a,c)=>(s.openBlock(),s.createBlock(s.unref(Xy3),{chartData:a.data,options:a.options||t},null,8,["chartData","options"]))}}),Jy3=s.defineComponent({__name:"PgaDoughnutChart",props:{data:{},options:{}},setup(e){K6.register(...$y1);const t={responsive:!0};return(a,c)=>(s.openBlock(),s.createBlock(s.unref(Ky3),{chartData:a.data,options:a.options||t},null,8,["chartData","options"]))}}),eg3={class:"pga-display-barcodes"},tg3={key:0},ag3={class:"barcodes-container"},cg3=s.defineComponent({__name:"PgaDisplayBarcodes",props:{barcodes:{}},setup(e){const t=e,a=s.ref(!1),c=s.computed(()=>a.value?t.barcodes:t.barcodes.slice(0,2));return(n,r)=>(s.openBlock(),s.createElementBlock("div",eg3,[n.barcodes.length?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",ag3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.value,(i,o)=>(s.openBlock(),s.createElementBlock("span",{class:"barcode",key:o},[s.createVNode(le,{icon:"barcode"}),s.createTextVNode("   "+s.toDisplayString(i),1)]))),128))]),n.barcodes.length>2?(s.openBlock(),s.createBlock(kX,{key:0,modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=i=>a.value=i)},null,8,["modelValue"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock("span",tg3,"-"))]))}});const ng3=Q1(cg3,[["__scopeId","data-v-3554095d"]]),rg3={class:"pga-display-content"},ig3=s.defineComponent({__name:"PgaDisplayContent",props:{label:{}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",rg3,[s.createVNode(D3,{class:"item__label",text:t.label},null,8,["text"]),s.renderSlot(t.$slots,"default",{},void 0,!0)]))}});const og3=Q1(ig3,[["__scopeId","data-v-93d9cace"]]),sg3={key:0},lg3=s.defineComponent({__name:"PgaDisplayDatetime",props:{datetime:{},format:{default:"short"},noIcon:{type:Boolean},withBackground:{type:Boolean}},setup(e){const t=e,a=s.computed(()=>t.datetime instanceof Date),c=s.computed(()=>{if(a.value)return M6(t.datetime,{format:t.format,withTime:!1})}),n=s.computed(()=>t.noIcon?void 0:"calendar-days"),r=s.computed(()=>a.value?M6(t.datetime,{justTime:!0}):"");return(i,o)=>{const l=s.resolveDirective("tooltip");return a.value?s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["pga-datetime",{"pga-datetime--with-background":i.withBackground}])},[s.createVNode(D3,{text:c.value,icon:n.value,nowrap:""},null,8,["text","icon"])],2)),[[l,r.value]]):(s.openBlock(),s.createElementBlock("span",sg3,"-"))}}});const fg3=Q1(lg3,[["__scopeId","data-v-fe1ec2d2"]]),ug3={class:"info-card"},dg3={class:"info-card__icon-container"},hg3={class:"info-card__content-container"},pg3={class:"info-card__content"},mg3=s.defineComponent({__name:"PgaDisplayInfo",props:{type:{default:"info"},info:{}},setup(e){s.useCssVars(i=>({"34ab479b":n.value,"3ce72f0a":r.value}));const t=e,a=s.computed(()=>t.type==="info"?"info":t.type==="success"?"circle-check":t.type==="error"?"circle-x":t.type==="warning"?"circle-alert":"info"),c=s.computed(()=>{if(t.type==="info")return"aqua";if(t.type==="success")return"success";if(t.type==="error")return"danger";if(t.type==="warning")return"warning"}),n=s.computed(()=>`var(--pga-color-${c.value}-08)`),r=s.computed(()=>`var(--pga-color-${c.value}-contrast)`);return(i,o)=>(s.openBlock(),s.createElementBlock("div",ug3,[s.createElementVNode("div",dg3,[s.createVNode(le,{class:"info-card__icon",icon:a.value},null,8,["icon"])]),s.createElementVNode("div",hg3,[s.createElementVNode("div",pg3,[s.createVNode(D3,{text:i.info},null,8,["text"])])])]))}});const vg3=Q1(mg3,[["__scopeId","data-v-9b32f70d"]]),yg3={key:0,class:"pga-display-no-items"},gg3={key:1,class:"no-items__content"},Mg3={key:0,class:"no-items__illustration"},kg3=s.createStaticVNode('<svg viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-4e9312fa><circle cx="50" cy="50" r="40" fill="var(--pga-color-primary)" opacity="0.05" data-v-4e9312fa></circle><path d="M25 35H40L45 42H75A5 5 0 0 1 80 47V70A5 5 0 0 1 75 75H25A5 5 0 0 1 20 70V40A5 5 0 0 1 25 35Z" stroke="var(--pga-color-second)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" opacity="0.4" data-v-4e9312fa></path><path d="M20 50L80 50" stroke="var(--pga-color-second)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" opacity="0.4" data-v-4e9312fa></path><circle cx="55" cy="55" r="14" fill="var(--pga-color-second-contrast)" stroke="currentColor" stroke-width="4" data-v-4e9312fa></circle><path d="M65 65L76 76" stroke="currentColor" stroke-width="5" stroke-linecap="round" data-v-4e9312fa></path></svg>',1),xg3=[kg3],bg3={class:"no-items__text"},zg3={class:"no-items__title"},Cg3={class:"no-items__description"},_g3=s.defineComponent({__name:"PgaDisplayNoItems",props:{items:{},label:{},noDisplayIcon:{type:Boolean},isLoading:{type:Boolean}},setup(e){const t=e,a=$2("pgaDisplay"),c=s.computed(()=>!(t.items&&t.items.length>0)),n=s.computed(()=>t.label?oe(t.label):a("noItemsText")),r=s.computed(()=>a("noItemsDescriptionText"));return(i,o)=>c.value?(s.openBlock(),s.createElementBlock("div",yg3,[i.isLoading?(s.openBlock(),s.createBlock(w8,{key:0})):(s.openBlock(),s.createElementBlock("div",gg3,[i.noDisplayIcon?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Mg3,xg3)),s.createElementVNode("div",bg3,[s.createElementVNode("h3",zg3,s.toDisplayString(n.value),1),s.createElementVNode("p",Cg3,s.toDisplayString(r.value),1)])]))])):s.createCommentVNode("",!0)}});const hg1=Q1(_g3,[["__scopeId","data-v-4e9312fa"]]),wg3={key:0},Hg3={key:0,class:"price__sign"},Lg3=["textContent"],Vg3=s.defineComponent({__name:"PgaDisplayPrice",props:{price:{},tooltipPrice:{},maxDecimals:{},prefix:{},suffix:{},size:{default:"m"},fontSize:{},color:{default:"first"},noSign:{type:Boolean},noBackground:{type:Boolean},withBackground:{type:Boolean}},setup(e){s.useCssVars(d=>({d10ad460:f.value,"48a66683":u.value}));const t=e,{display:a}=i4(),c=s.computed(()=>t.noSign?!1:a.price.withSign),n=s.computed(()=>t.noBackground?!1:t.withBackground?!0:a.price.withBackground),r=s.computed(()=>t.price!==null&&t.price!==void 0),i={maxDecimals:t.maxDecimals,prefix:t.prefix,suffix:t.suffix},o=s.computed(()=>{if(r.value)return typeof t.price=="string"?t.price:bY(t.price,i)}),l=s.computed(()=>t.tooltipPrice===void 0?"":typeof t.tooltipPrice=="string"?t.tooltipPrice:bY(t.tooltipPrice,{...i,prefix:i.prefix||"$"})),f=s.computed(()=>{if(t.fontSize)return t.fontSize;if(t.size==="s")return"0.9rem";if(t.size==="m")return"1rem";if(t.size==="l")return"1.2rem"}),u=s.computed(()=>If(t.color)?`var(--pga-color-${t.color})`:t.color);return(d,h)=>{const p=s.resolveDirective("tooltip");return r.value?s.withDirectives((s.openBlock(),s.createElementBlock("span",{key:1,class:s.normalizeClass(["price",{"price--with-background":n.value}])},[c.value?(s.openBlock(),s.createElementBlock("span",Hg3,"$")):s.createCommentVNode("",!0),s.createElementVNode("span",{class:"price__value",textContent:s.toDisplayString(o.value)},null,8,Lg3)],2)),[[p,l.value]]):(s.openBlock(),s.createElementBlock("span",wg3,"-"))}}});const Sg3=Q1(Vg3,[["__scopeId","data-v-4638f783"]]),Ng3=s.defineComponent({__name:"PgaDisplayTime",props:{datetime:{}},setup(e){return(t,a)=>{const c=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createBlock(c,{icon:"clock",text:s.unref(V51)(t.datetime)},null,8,["text"])}}}),Ag3=s.defineComponent({__name:"PgaForm",props:{withSubmitButton:{type:Boolean},submitBtnText:{},submitBtnIcon:{},isLoading:{type:Boolean},width:{default:"100%"}},emits:["submit"],setup(e,{emit:t}){s.useCssVars(n=>({ba760bfe:n.width}));const a=t,c=$2("pgaForm");return(n,r)=>(s.openBlock(),s.createElementBlock("form",{class:"pga-form",onSubmit:r[1]||(r[1]=s.withModifiers(()=>{},["prevent"]))},[s.renderSlot(n.$slots,"default",{},void 0,!0),n.withSubmitButton||n.submitBtnText?(s.openBlock(),s.createBlock(A2,{key:0,class:"form__submit-btn",type:"submit",text:n.submitBtnText||s.unref(c)("submitBtn"),icon:n.submitBtnIcon||"save",variant:"filled",isLoading:n.isLoading,onClick:r[0]||(r[0]=i=>a("submit"))},null,8,["text","icon","isLoading"])):s.createCommentVNode("",!0)],32))}});const pg1=Q1(Ag3,[["__scopeId","data-v-f15fad6f"]]),Tg3=s.defineComponent({__name:"PgaFormRow",props:{breakRow:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-form-row",{"pga-form-row--break-row":t.breakRow}])},[s.renderSlot(t.$slots,"default")],2))}});const Eg3=s.defineComponent({__name:"PgaFormSubtitle",props:{title:{}},setup(e){return(t,a)=>{const c=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createBlock(c,{class:"pga-form-subtitle",text:t.title},null,8,["text"])}}});const Dg3=Q1(Eg3,[["__scopeId","data-v-e42c3004"]]),Pg3=s.defineComponent({__name:"PgaFormTitle",props:{title:{}},setup(e){return(t,a)=>{const c=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createBlock(c,{class:"pga-form-title",text:t.title},null,8,["text"])}}});const Og3=Q1(Pg3,[["__scopeId","data-v-b4c2eaf4"]]),Ig3={key:0,class:"input-group__header"},Bg3={key:0,class:"header__label"},Rg3={key:1,class:"header__required-label"},Fg3={key:2,class:"header__optional-label"},$g3=["innerHTML"],qg3={key:2,class:"input-group__errors"},jg3=["textContent"],Ug3=s.defineComponent({__name:"PgaInputGroup",props:{label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},fitContent:{type:Boolean},grow:{}},setup(e){s.useCssVars(l=>({"7fb29ec5":l.grow}));const t=e,a=$2("pgaForm"),c=s.computed(()=>oe(t.label)),n=s.computed(()=>oe(t.info)),r=s.computed(()=>oe(t.description)),i=s.computed(()=>c.value||t.withLabelSpace),o=s.computed(()=>c.value||" ");return(l,f)=>{const u=s.resolveComponent("PgaIcon");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["input-group",{"input-group--fit-content":l.fitContent,"input-group--with-flex-grow":l.grow!==void 0}])},[i.value||n.value||l.withRequiredLabel||l.withOptionalLabel?(s.openBlock(),s.createElementBlock("div",Ig3,[i.value?(s.openBlock(),s.createElementBlock("label",Bg3,s.toDisplayString(o.value),1)):s.createCommentVNode("",!0),s.createVNode(Uf,{info:n.value,size:"1rem"},null,8,["info"]),l.withRequiredLabel?(s.openBlock(),s.createElementBlock("span",Rg3,s.toDisplayString(s.unref(a)("requiredLabel")),1)):s.createCommentVNode("",!0),l.withOptionalLabel?(s.openBlock(),s.createElementBlock("span",Fg3,s.toDisplayString(s.unref(a)("optionalLabel")),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),s.renderSlot(l.$slots,"default",{},void 0,!0),r.value?(s.openBlock(),s.createElementBlock("span",{key:1,class:"input-group__description",innerHTML:r.value},null,8,$g3)):s.createCommentVNode("",!0),l.errors?(s.openBlock(),s.createElementBlock("div",qg3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.errors,(d,h)=>(s.openBlock(),s.createElementBlock("div",{key:h,class:"errors__error"},[s.createVNode(u,{class:"error__icon",icon:"triangle-alert"}),s.createElementVNode("span",{class:"error__message",textContent:s.toDisplayString(d.$message)},null,8,jg3)]))),128))])):s.createCommentVNode("",!0)],2)}}});const v0=Q1(Ug3,[["__scopeId","data-v-2f4e9b7e"]]);function L81(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,c)}return a}function xf(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?L81(Object(a),!0).forEach(function(c){Wg3(e,c,a[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):L81(Object(a)).forEach(function(c){Object.defineProperty(e,c,Object.getOwnPropertyDescriptor(a,c))})}return e}function Wg3(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function p$(e){return typeof e=="function"}function nZ(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function yj(e){return p$(e.$validator)?xf({},e):{$validator:e}}function mg1(e){return typeof e=="object"?e.$valid:e}function vg1(e){return e.$validator||e}function Yg3(e,t){if(!nZ(e))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!nZ(t)&&!p$(t))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const a=yj(t);return a.$params=xf(xf({},a.$params||{}),e),a}function Gg3(e,t){if(!p$(e)&&typeof s.unref(e)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);if(!nZ(t)&&!p$(t))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const a=yj(t);return a.$message=e,a}function Zg3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const a=yj(e);return xf(xf({},a),{},{$async:!0,$watchTargets:t})}function Xg3(e){return{$validator(t){for(var a=arguments.length,c=new Array(a>1?a-1:0),n=1;n<a;n++)c[n-1]=arguments[n];return s.unref(t).reduce((r,i,o)=>{const l=Object.entries(i).reduce((f,u)=>{let[d,h]=u;const p=e[d]||{},v=Object.entries(p).reduce((m,y)=>{let[g,M]=y;const k=vg1(M).call(this,h,i,o,...c),b=mg1(k);if(m.$data[g]=k,m.$data.$invalid=!b||!!m.$data.$invalid,m.$data.$error=m.$data.$invalid,!b){let _=M.$message||"";const C=M.$params||{};typeof _=="function"&&(_=_({$pending:!1,$invalid:!b,$params:C,$model:h,$response:k})),m.$errors.push({$property:d,$message:_,$params:C,$response:k,$model:h,$pending:!1,$validator:g})}return{$valid:m.$valid&&b,$data:m.$data,$errors:m.$errors}},{$valid:!0,$data:{},$errors:[]});return f.$data[d]=v.$data,f.$errors[d]=v.$errors,{$valid:f.$valid&&v.$valid,$data:f.$data,$errors:f.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:r.$valid&&l.$valid,$data:r.$data.concat(l.$data),$errors:r.$errors.concat(l.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:t=>{let{$response:a}=t;return a?a.$errors.map(c=>Object.values(c).map(n=>n.map(r=>r.$message)).reduce((n,r)=>n.concat(r),[])):[]}}}const ku=e=>{if(e=s.unref(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let t in e)return!0;return!1}return!!String(e).length},DJ=e=>(e=s.unref(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function Ka(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return c=>(c=s.unref(c),!ku(c)||t.every(n=>(n.lastIndex=0,n.test(c))))}var xi=Object.freeze({__proto__:null,forEach:Xg3,len:DJ,normalizeValidatorObject:yj,regex:Ka,req:ku,unwrap:s.unref,unwrapNormalizedValidator:vg1,unwrapValidatorResponse:mg1,withAsync:Zg3,withMessage:Gg3,withParams:Yg3});Ka(/^[a-zA-Z]*$/);Ka(/^[a-zA-Z0-9]*$/);Ka(/^\d*(\.\d+)?$/);const Kg3=/^(?:[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;Ka(Kg3);function Qg3(e){return t=>!ku(t)||DJ(t)<=s.unref(e)}function Jg3(e){return{$validator:Qg3(e),$message:t=>{let{$params:a}=t;return`The maximum length allowed is ${a.max}`},$params:{max:e,type:"maxLength"}}}function eM3(e){return t=>!ku(t)||DJ(t)>=s.unref(e)}function tM3(e){return{$validator:eM3(e),$message:t=>{let{$params:a}=t;return`This field should be at least ${a.min} characters long`},$params:{min:e,type:"minLength"}}}function aM3(e){return typeof e=="string"&&(e=e.trim()),ku(e)}var cM3={$validator:aM3,$message:"Value is required",$params:{type:"required"}};const nM3=/^(?:(?:(?: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;Ka(nM3);var rM3=Ka(/(^[0-9]*$)|(^-[0-9]+$)/),iM3={$validator:rM3,$message:"Value is not an integer",$params:{type:"integer"}};Ka(/^[-]?\d*(\.\d+)?$/);const xu=$2("validations"),rZ=xi.withMessage(()=>xu("requiredRuleError"),cM3),oM3=xi.withMessage(()=>xu("requiredRuleError"),xi.withParams({},e=>typeof e!="number"?!1:e>0)),iZ=e=>yg1("minLength",e),oZ=e=>yg1("maxLength",e),sM3=xi.withMessage(()=>xu("integerRuleError"),iM3),lM3=e=>gj("greaterEqual",e),fM3=e=>gj("greaterThan",e),uM3=e=>gj("lessEqual",e),dM3=e=>gj("lessThan",e);function yg1(e,t){const a={minLength:tM3,maxLength:Jg3};return xi.withMessage(()=>xu(`${e}RuleError`,{length:t}),a[e](t))}function gj(e,t){const a={lessEqual:c=>c<=t,greaterEqual:c=>c>=t,lessThan:c=>c<t,greaterThan:c=>c>t};return xi.withMessage(()=>xu(`${e}RuleError`,{number:t}),xi.withParams({},c=>typeof c!="number"?!0:a[e](c)))}const hM3=s.defineComponent({__name:"PgaInputRightButton",props:{icon:{},withBackground:{type:Boolean}},setup(e){s.useCssVars(a=>({"4f496b29":s.unref(t).input.height,"849898ea":s.unref(t).input.iconWidth,"14bccc60":s.unref(t).input.borderRadius,"0d9a9985":s.unref(t).input.backgroundColorFocus,"0db70de9":s.unref(t).input.backgroundColorHover}));const{form:t}=i4();return(a,c)=>(s.openBlock(),s.createBlock(A2,{class:s.normalizeClass(["input-right-button",{"input-right-button--with-background":a.withBackground}]),variant:"flat",icon:a.icon,tabindex:"-1"},null,8,["class","icon"]))}});const m$=Q1(hM3,[["__scopeId","data-v-00309112"]]),pM3={class:"input-container"},mM3={class:"input-content"},vM3=["type","placeholder","autofocus","disabled"],IW="",yM3=s.defineComponent({__name:"PgaInput",props:s.mergeModels({type:{default:"text"},integer:{type:Boolean},placeholder:{},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},autofocus:{type:Boolean},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["change","enter","valueCleared"],["update:modelValue"]),setup(e,{expose:t,emit:a}){s.useCssVars(k=>({"20bdd868":s.unref(i).input.height,b6cfe3e8:s.unref(i).input.padding,"09a2348b":s.unref(i).input.paddingWithIcon,"398439dc":s.unref(i).input.borderColor,c563a27a:s.unref(i).input.borderRadius,"6fd0c460":s.unref(i).input.backgroundColor,"40e9035a":s.unref(i).input.colorFocus,"44c56c6c":s.unref(i).input.backgroundColorDisabled,dacd3bd6:s.unref(i).input.placeholderColor}));const c=s.useModel(e,"modelValue"),n=e,r=a;t({focus:h});const{form:i}=i4(),o=s.ref(),l=s.ref(IW),f=s.ref(!1),u=s.computed(()=>n.type==="password"),d=s.computed(()=>u.value?!1:!n.disabled&&l.value);s.watch(c,k=>M(k),{immediate:!0});function h(){var k;(k=o.value)==null||k.focus()}function p(){n.type==="number"&&!l.value&&(l.value=IW)}function v(){n.type==="number"&&!l.value&&(l.value=g())}function m(){x(IW),r("valueCleared")}function y(k){return k===""?null:n.type==="number"&&n.integer&&typeof k=="number"?Math.round(k):k}function g(k){const b=typeof k>"u"?c.value:k;return b===null?"":b}function M(k){const b=y(k);return c.value=b,l.value=g(b),b}function x(k){const b=M(k);r("change",b)}return(k,b)=>(s.openBlock(),s.createBlock(v0,{label:k.label,withRequiredLabel:k.withRequiredLabel,withOptionalLabel:k.withOptionalLabel,withLabelSpace:k.withLabelSpace,info:k.info,description:k.description,errors:k.errors,grow:k.grow},{default:s.withCtx(()=>[s.createElementVNode("div",pM3,[s.createElementVNode("div",mM3,[s.withDirectives(s.createElementVNode("input",{ref_key:"inputRef",ref:o,"onUpdate:modelValue":b[0]||(b[0]=_=>l.value=_),class:s.normalizeClass(["input",{"input--disabled":k.disabled}]),type:f.value?"text":k.type,placeholder:s.unref(oe)(k.placeholder),autofocus:k.autofocus,disabled:k.disabled,onInput:b[1]||(b[1]=_=>x(l.value)),onKeyup:b[2]||(b[2]=s.withKeys(_=>r("enter"),["enter"])),onFocus:b[3]||(b[3]=_=>p()),onBlur:b[4]||(b[4]=_=>v())},null,42,vM3),[[s.vModelDynamic,l.value]]),u.value?(s.openBlock(),s.createBlock(m$,{key:0,icon:f.value?"eye-off":"eye",withBackground:"",onClick:b[5]||(b[5]=_=>f.value=!f.value)},null,8,["icon"])):d.value?(s.openBlock(),s.createBlock(m$,{key:1,icon:"x",onClick:b[6]||(b[6]=_=>m())})):s.createCommentVNode("",!0)]),s.renderSlot(k.$slots,"labelRight",{},void 0,!0)])]),_:3},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const v$=Q1(yM3,[["__scopeId","data-v-17f26458"]]),gM3={class:"login-form-container"},MM3={class:"user-icon-container"},kM3=s.defineComponent({__name:"PgaLoginForm",setup(e){class t{constructor(){S1(this,"username","");S1(this,"password","")}}const a=Te.getConfig(),c=$2("pgaForm"),n=Hl.useRoute(),r={username:{requiredRule:rZ,minLengthRule:iZ(8),maxLengthRule:oZ(a.stringLengths.short)},password:{requiredRule:rZ,minLengthRule:iZ(8),maxLengthRule:oZ(a.stringLengths.short)}},i=s.ref(new t),o=Yn1(r,i),l=s.ref(!1);async function f(){if(!await o.value.$validate())return;const u={isLoading:l,redirectToName:n.query.redirectTo};_51(H6().routeType,i.value,u)}return(u,d)=>(s.openBlock(),s.createElementBlock("div",gM3,[s.createVNode(pg1,{class:"login-form",submitBtnText:s.unref(c)("loginBtn"),submitBtnIcon:"log-in",isLoading:l.value,onSubmit:d[2]||(d[2]=h=>f())},{default:s.withCtx(()=>[s.createElementVNode("div",MM3,[s.createVNode(le,{class:"user-icon",icon:"circle-user"})]),s.createVNode(v$,{modelValue:i.value.username,"onUpdate:modelValue":d[0]||(d[0]=h=>i.value.username=h),label:s.unref(c)("usernameLabel"),errors:s.unref(o).username.$errors,disabled:l.value},null,8,["modelValue","label","errors","disabled"]),s.createVNode(v$,{modelValue:i.value.password,"onUpdate:modelValue":d[1]||(d[1]=h=>i.value.password=h),type:"password",label:s.unref(c)("passwordLabel"),errors:s.unref(o).password.$errors,disabled:l.value},null,8,["modelValue","label","errors","disabled"])]),_:1},8,["submitBtnText","isLoading"])]))}});const xM3=Q1(kM3,[["__scopeId","data-v-de0129e5"]]),bM3={class:"pga-checkbox"},zM3=["textContent"],CM3=s.defineComponent({__name:"PgaCheckbox",props:s.mergeModels({label:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=s.computed(()=>oe(a.label));return(n,r)=>(s.openBlock(),s.createElementBlock("label",bM3,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":r[0]||(r[0]=i=>t.value=i),type:"checkbox"},null,512),[[s.vModelCheckbox,t.value]]),n.label?(s.openBlock(),s.createElementBlock("span",{key:0,textContent:s.toDisplayString(c.value)},null,8,zM3)):s.createCommentVNode("",!0)]))}});const _M3=Q1(CM3,[["__scopeId","data-v-9a138890"]]),wM3={class:"colors-container"},HM3=s.defineComponent({__name:"PgaColorSelector",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(n=>({"81ef80ba":s.unref(a).input.padding,"007d7129":s.unref(a).input.borderColor,"2800638c":s.unref(a).input.borderRadius}));const t=s.useModel(e,"modelValue"),{form:a}=i4();function c(n){var r;return((r=t.value)==null?void 0:r.toLowerCase())===n.toLowerCase()}return(n,r)=>(s.openBlock(),s.createBlock(v0,{label:n.label,withRequiredLabel:n.withRequiredLabel,withOptionalLabel:n.withOptionalLabel,withLabelSpace:n.withLabelSpace,info:n.info,description:n.description,errors:n.errors,grow:n.grow},{default:s.withCtx(()=>[s.createElementVNode("div",wM3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(RZ),i=>(s.openBlock(),s.createBlock(A2,{key:i,variant:c(i)?"outlined":"flat",color:c(i)?"primary":"first",disabled:n.disabled,onClick:o=>t.value=i},{default:s.withCtx(()=>[s.createVNode(En1,{color:i},null,8,["color"])]),_:2},1032,["variant","color","disabled","onClick"]))),128))])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const LM3=Q1(HM3,[["__scopeId","data-v-65ddd494"]]);function d2(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function i3(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function K0(e,t){const a=d2(e);return isNaN(t)?i3(e,NaN):(t&&a.setDate(a.getDate()+t),a)}function v6(e,t){const a=d2(e);if(isNaN(t))return i3(e,NaN);if(!t)return a;const c=a.getDate(),n=i3(e,a.getTime());n.setMonth(a.getMonth()+t+1,0);const r=n.getDate();return c>=r?n:(a.setFullYear(n.getFullYear(),n.getMonth(),c),a)}function gg1(e,t){const{years:a=0,months:c=0,weeks:n=0,days:r=0,hours:i=0,minutes:o=0,seconds:l=0}=t,f=d2(e),u=c||a?v6(f,c+a*12):f,d=r||n?K0(u,r+n*7):u,h=o+i*60,v=(l+h*60)*1e3;return i3(e,d.getTime()+v)}function VM3(e,t){const a=+d2(e);return i3(e,a+t)}const Mg1=6048e5,SM3=864e5,NM3=6e4,kg1=36e5,AM3=1e3;function TM3(e,t){return VM3(e,t*kg1)}let EM3={};function Fi(){return EM3}function w6(e,t){var o,l,f,u;const a=Fi(),c=(t==null?void 0:t.weekStartsOn)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??a.weekStartsOn??((u=(f=a.locale)==null?void 0:f.options)==null?void 0:u.weekStartsOn)??0,n=d2(e),r=n.getDay(),i=(r<c?7:0)+r-c;return n.setDate(n.getDate()-i),n.setHours(0,0,0,0),n}function fs(e){return w6(e,{weekStartsOn:1})}function xg1(e){const t=d2(e),a=t.getFullYear(),c=i3(e,0);c.setFullYear(a+1,0,4),c.setHours(0,0,0,0);const n=fs(c),r=i3(e,0);r.setFullYear(a,0,4),r.setHours(0,0,0,0);const i=fs(r);return t.getTime()>=n.getTime()?a+1:t.getTime()>=i.getTime()?a:a-1}function V81(e){const t=d2(e);return t.setHours(0,0,0,0),t}function y$(e){const t=d2(e),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),+e-+a}function bg1(e,t){const a=V81(e),c=V81(t),n=+a-y$(a),r=+c-y$(c);return Math.round((n-r)/SM3)}function DM3(e){const t=xg1(e),a=i3(e,0);return a.setFullYear(t,0,4),a.setHours(0,0,0,0),fs(a)}function PM3(e,t){const a=t*3;return v6(e,a)}function PJ(e,t){return v6(e,t*12)}function zg1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function pl(e){if(!zg1(e)&&typeof e!="number")return!1;const t=d2(e);return!isNaN(Number(t))}function S81(e){const t=d2(e);return Math.trunc(t.getMonth()/3)+1}function Cg1(e,t){const a=d2(e.start),c=d2(e.end);let n=+a>+c;const r=n?+a:+c,i=n?c:a;i.setHours(0,0,0,0);let o=(t==null?void 0:t.step)??1;if(!o)return[];o<0&&(o=-o,n=!n);const l=[];for(;+i<=r;)l.push(d2(i)),i.setDate(i.getDate()+o),i.setHours(0,0,0,0);return n?l.reverse():l}function Ur(e){const t=d2(e),a=t.getMonth(),c=a-a%3;return t.setMonth(c,1),t.setHours(0,0,0,0),t}function OM3(e,t){const a=d2(e.start),c=d2(e.end);let n=+a>+c;const r=n?+Ur(a):+Ur(c);let i=Ur(n?c:a),o=(t==null?void 0:t.step)??1;if(!o)return[];o<0&&(o=-o,n=!n);const l=[];for(;+i<=r;)l.push(d2(i)),i=PM3(i,o);return n?l.reverse():l}function _g1(e){const t=d2(e),a=t.getFullYear();return t.setFullYear(a+1,0,0),t.setHours(23,59,59,999),t}function OJ(e){const t=d2(e),a=i3(e,0);return a.setFullYear(t.getFullYear(),0,1),a.setHours(0,0,0,0),a}function wg1(e,t){var o,l,f,u;const a=Fi(),c=(t==null?void 0:t.weekStartsOn)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??a.weekStartsOn??((u=(f=a.locale)==null?void 0:f.options)==null?void 0:u.weekStartsOn)??0,n=d2(e),r=n.getDay(),i=(r<c?-7:0)+6-(r-c);return n.setDate(n.getDate()+i),n.setHours(23,59,59,999),n}function N81(e){const t=d2(e),a=t.getMonth(),c=a-a%3+3;return t.setMonth(c,0),t.setHours(23,59,59,999),t}const IM3={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"}},BM3=(e,t,a)=>{let c;const n=IM3[e];return typeof n=="string"?c=n:t===1?c=n.one:c=n.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+c:c+" ago":c};function BW(e){return(t={})=>{const a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}const RM3={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},FM3={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$M3={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qM3={date:BW({formats:RM3,defaultWidth:"full"}),time:BW({formats:FM3,defaultWidth:"full"}),dateTime:BW({formats:$M3,defaultWidth:"full"})},jM3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},UM3=(e,t,a,c)=>jM3[e];function b9(e){return(t,a)=>{const c=a!=null&&a.context?String(a.context):"standalone";let n;if(c==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,o=a!=null&&a.width?String(a.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{const i=e.defaultWidth,o=a!=null&&a.width?String(a.width):e.defaultWidth;n=e.values[o]||e.values[i]}const r=e.argumentCallback?e.argumentCallback(t):t;return n[r]}}const WM3={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},YM3={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},GM3={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"]},ZM3={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"]},XM3={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"}},KM3={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"}},QM3=(e,t)=>{const a=Number(e),c=a%100;if(c>20||c<10)switch(c%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},JM3={ordinalNumber:QM3,era:b9({values:WM3,defaultWidth:"wide"}),quarter:b9({values:YM3,defaultWidth:"wide",argumentCallback:e=>e-1}),month:b9({values:GM3,defaultWidth:"wide"}),day:b9({values:ZM3,defaultWidth:"wide"}),dayPeriod:b9({values:XM3,defaultWidth:"wide",formattingValues:KM3,defaultFormattingWidth:"wide"})};function z9(e){return(t,a={})=>{const c=a.width,n=c&&e.matchPatterns[c]||e.matchPatterns[e.defaultMatchWidth],r=t.match(n);if(!r)return null;const i=r[0],o=c&&e.parsePatterns[c]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?tk3(o,d=>d.test(i)):ek3(o,d=>d.test(i));let f;f=e.valueCallback?e.valueCallback(l):l,f=a.valueCallback?a.valueCallback(f):f;const u=t.slice(i.length);return{value:f,rest:u}}}function ek3(e,t){for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}function tk3(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}function ak3(e){return(t,a={})=>{const c=t.match(e.matchPattern);if(!c)return null;const n=c[0],r=t.match(e.parsePattern);if(!r)return null;let i=e.valueCallback?e.valueCallback(r[0]):r[0];i=a.valueCallback?a.valueCallback(i):i;const o=t.slice(n.length);return{value:i,rest:o}}}const ck3=/^(\d+)(th|st|nd|rd)?/i,nk3=/\d+/i,rk3={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},ik3={any:[/^b/i,/^(a|c)/i]},ok3={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sk3={any:[/1/i,/2/i,/3/i,/4/i]},lk3={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},fk3={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]},uk3={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},dk3={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]},hk3={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},pk3={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}},mk3={ordinalNumber:ak3({matchPattern:ck3,parsePattern:nk3,valueCallback:e=>parseInt(e,10)}),era:z9({matchPatterns:rk3,defaultMatchWidth:"wide",parsePatterns:ik3,defaultParseWidth:"any"}),quarter:z9({matchPatterns:ok3,defaultMatchWidth:"wide",parsePatterns:sk3,defaultParseWidth:"any",valueCallback:e=>e+1}),month:z9({matchPatterns:lk3,defaultMatchWidth:"wide",parsePatterns:fk3,defaultParseWidth:"any"}),day:z9({matchPatterns:uk3,defaultMatchWidth:"wide",parsePatterns:dk3,defaultParseWidth:"any"}),dayPeriod:z9({matchPatterns:hk3,defaultMatchWidth:"any",parsePatterns:pk3,defaultParseWidth:"any"})},Hg1={code:"en-US",formatDistance:BM3,formatLong:qM3,formatRelative:UM3,localize:JM3,match:mk3,options:{weekStartsOn:0,firstWeekContainsDate:1}};function vk3(e){const t=d2(e);return bg1(t,OJ(t))+1}function IJ(e){const t=d2(e),a=+fs(t)-+DM3(t);return Math.round(a/Mg1)+1}function BJ(e,t){var u,d,h,p;const a=d2(e),c=a.getFullYear(),n=Fi(),r=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((p=(h=n.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,i=i3(e,0);i.setFullYear(c+1,0,r),i.setHours(0,0,0,0);const o=w6(i,t),l=i3(e,0);l.setFullYear(c,0,r),l.setHours(0,0,0,0);const f=w6(l,t);return a.getTime()>=o.getTime()?c+1:a.getTime()>=f.getTime()?c:c-1}function yk3(e,t){var o,l,f,u;const a=Fi(),c=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??a.firstWeekContainsDate??((u=(f=a.locale)==null?void 0:f.options)==null?void 0:u.firstWeekContainsDate)??1,n=BJ(e,t),r=i3(e,0);return r.setFullYear(n,0,c),r.setHours(0,0,0,0),w6(r,t)}function RJ(e,t){const a=d2(e),c=+w6(a,t)-+yk3(a,t);return Math.round(c/Mg1)+1}function u3(e,t){const a=e<0?"-":"",c=Math.abs(e).toString().padStart(t,"0");return a+c}const I8={y(e,t){const a=e.getFullYear(),c=a>0?a:1-a;return u3(t==="yy"?c%100:c,t.length)},M(e,t){const a=e.getMonth();return t==="M"?String(a+1):u3(a+1,2)},d(e,t){return u3(e.getDate(),t.length)},a(e,t){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(e,t){return u3(e.getHours()%12||12,t.length)},H(e,t){return u3(e.getHours(),t.length)},m(e,t){return u3(e.getMinutes(),t.length)},s(e,t){return u3(e.getSeconds(),t.length)},S(e,t){const a=t.length,c=e.getMilliseconds(),n=Math.trunc(c*Math.pow(10,a-3));return u3(n,t.length)}},ro={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},A81={G:function(e,t,a){const c=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(c,{width:"abbreviated"});case"GGGGG":return a.era(c,{width:"narrow"});case"GGGG":default:return a.era(c,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){const c=e.getFullYear(),n=c>0?c:1-c;return a.ordinalNumber(n,{unit:"year"})}return I8.y(e,t)},Y:function(e,t,a,c){const n=BJ(e,c),r=n>0?n:1-n;if(t==="YY"){const i=r%100;return u3(i,2)}return t==="Yo"?a.ordinalNumber(r,{unit:"year"}):u3(r,t.length)},R:function(e,t){const a=xg1(e);return u3(a,t.length)},u:function(e,t){const a=e.getFullYear();return u3(a,t.length)},Q:function(e,t,a){const c=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(c);case"QQ":return u3(c,2);case"Qo":return a.ordinalNumber(c,{unit:"quarter"});case"QQQ":return a.quarter(c,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(c,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(c,{width:"wide",context:"formatting"})}},q:function(e,t,a){const c=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(c);case"qq":return u3(c,2);case"qo":return a.ordinalNumber(c,{unit:"quarter"});case"qqq":return a.quarter(c,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(c,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(c,{width:"wide",context:"standalone"})}},M:function(e,t,a){const c=e.getMonth();switch(t){case"M":case"MM":return I8.M(e,t);case"Mo":return a.ordinalNumber(c+1,{unit:"month"});case"MMM":return a.month(c,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(c,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(c,{width:"wide",context:"formatting"})}},L:function(e,t,a){const c=e.getMonth();switch(t){case"L":return String(c+1);case"LL":return u3(c+1,2);case"Lo":return a.ordinalNumber(c+1,{unit:"month"});case"LLL":return a.month(c,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(c,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(c,{width:"wide",context:"standalone"})}},w:function(e,t,a,c){const n=RJ(e,c);return t==="wo"?a.ordinalNumber(n,{unit:"week"}):u3(n,t.length)},I:function(e,t,a){const c=IJ(e);return t==="Io"?a.ordinalNumber(c,{unit:"week"}):u3(c,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getDate(),{unit:"date"}):I8.d(e,t)},D:function(e,t,a){const c=vk3(e);return t==="Do"?a.ordinalNumber(c,{unit:"dayOfYear"}):u3(c,t.length)},E:function(e,t,a){const c=e.getDay();switch(t){case"E":case"EE":case"EEE":return a.day(c,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(c,{width:"short",context:"formatting"});case"EEEE":default:return a.day(c,{width:"wide",context:"formatting"})}},e:function(e,t,a,c){const n=e.getDay(),r=(n-c.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return u3(r,2);case"eo":return a.ordinalNumber(r,{unit:"day"});case"eee":return a.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(n,{width:"short",context:"formatting"});case"eeee":default:return a.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,a,c){const n=e.getDay(),r=(n-c.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return u3(r,t.length);case"co":return a.ordinalNumber(r,{unit:"day"});case"ccc":return a.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(n,{width:"narrow",context:"standalone"});case"cccccc":return a.day(n,{width:"short",context:"standalone"});case"cccc":default:return a.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,a){const c=e.getDay(),n=c===0?7:c;switch(t){case"i":return String(n);case"ii":return u3(n,t.length);case"io":return a.ordinalNumber(n,{unit:"day"});case"iii":return a.day(c,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(c,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(c,{width:"short",context:"formatting"});case"iiii":default:return a.day(c,{width:"wide",context:"formatting"})}},a:function(e,t,a){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,a){const c=e.getHours();let n;switch(c===12?n=ro.noon:c===0?n=ro.midnight:n=c/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,a){const c=e.getHours();let n;switch(c>=17?n=ro.evening:c>=12?n=ro.afternoon:c>=4?n=ro.morning:n=ro.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){let c=e.getHours()%12;return c===0&&(c=12),a.ordinalNumber(c,{unit:"hour"})}return I8.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getHours(),{unit:"hour"}):I8.H(e,t)},K:function(e,t,a){const c=e.getHours()%12;return t==="Ko"?a.ordinalNumber(c,{unit:"hour"}):u3(c,t.length)},k:function(e,t,a){let c=e.getHours();return c===0&&(c=24),t==="ko"?a.ordinalNumber(c,{unit:"hour"}):u3(c,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getMinutes(),{unit:"minute"}):I8.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getSeconds(),{unit:"second"}):I8.s(e,t)},S:function(e,t){return I8.S(e,t)},X:function(e,t,a){const c=e.getTimezoneOffset();if(c===0)return"Z";switch(t){case"X":return E81(c);case"XXXX":case"XX":return Er(c);case"XXXXX":case"XXX":default:return Er(c,":")}},x:function(e,t,a){const c=e.getTimezoneOffset();switch(t){case"x":return E81(c);case"xxxx":case"xx":return Er(c);case"xxxxx":case"xxx":default:return Er(c,":")}},O:function(e,t,a){const c=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+T81(c,":");case"OOOO":default:return"GMT"+Er(c,":")}},z:function(e,t,a){const c=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+T81(c,":");case"zzzz":default:return"GMT"+Er(c,":")}},t:function(e,t,a){const c=Math.trunc(e.getTime()/1e3);return u3(c,t.length)},T:function(e,t,a){const c=e.getTime();return u3(c,t.length)}};function T81(e,t=""){const a=e>0?"-":"+",c=Math.abs(e),n=Math.trunc(c/60),r=c%60;return r===0?a+String(n):a+String(n)+t+u3(r,2)}function E81(e,t){return e%60===0?(e>0?"-":"+")+u3(Math.abs(e)/60,2):Er(e,t)}function Er(e,t=""){const a=e>0?"-":"+",c=Math.abs(e),n=u3(Math.trunc(c/60),2),r=u3(c%60,2);return a+n+t+r}const D81=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Lg1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},gk3=(e,t)=>{const a=e.match(/(P+)(p+)?/)||[],c=a[1],n=a[2];if(!n)return D81(e,t);let r;switch(c){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;case"PPPP":default:r=t.dateTime({width:"full"});break}return r.replace("{{date}}",D81(c,t)).replace("{{time}}",Lg1(n,t))},sZ={p:Lg1,P:gk3},Mk3=/^D+$/,kk3=/^Y+$/,xk3=["D","DD","YY","YYYY"];function Vg1(e){return Mk3.test(e)}function Sg1(e){return kk3.test(e)}function lZ(e,t,a){const c=bk3(e,t,a);if(console.warn(c),xk3.includes(e))throw new RangeError(c)}function bk3(e,t,a){const c=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${c} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const zk3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ck3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_k3=/^'([^]*?)'?$/,wk3=/''/g,Hk3=/[a-zA-Z]/;function yt(e,t,a){var u,d,h,p,v,m,y,g;const c=Fi(),n=(a==null?void 0:a.locale)??c.locale??Hg1,r=(a==null?void 0:a.firstWeekContainsDate)??((d=(u=a==null?void 0:a.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??c.firstWeekContainsDate??((p=(h=c.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,i=(a==null?void 0:a.weekStartsOn)??((m=(v=a==null?void 0:a.locale)==null?void 0:v.options)==null?void 0:m.weekStartsOn)??c.weekStartsOn??((g=(y=c.locale)==null?void 0:y.options)==null?void 0:g.weekStartsOn)??0,o=d2(e);if(!pl(o))throw new RangeError("Invalid time value");let l=t.match(Ck3).map(M=>{const x=M[0];if(x==="p"||x==="P"){const k=sZ[x];return k(M,n.formatLong)}return M}).join("").match(zk3).map(M=>{if(M==="''")return{isToken:!1,value:"'"};const x=M[0];if(x==="'")return{isToken:!1,value:Lk3(M)};if(A81[x])return{isToken:!0,value:M};if(x.match(Hk3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:M}});n.localize.preprocessor&&(l=n.localize.preprocessor(o,l));const f={firstWeekContainsDate:r,weekStartsOn:i,locale:n};return l.map(M=>{if(!M.isToken)return M.value;const x=M.value;(!(a!=null&&a.useAdditionalWeekYearTokens)&&Sg1(x)||!(a!=null&&a.useAdditionalDayOfYearTokens)&&Vg1(x))&&lZ(x,t,String(e));const k=A81[x[0]];return k(o,x,n.localize,f)}).join("")}function Lk3(e){const t=e.match(_k3);return t?t[1].replace(wk3,"'"):e}function Vk3(e){return d2(e).getDay()}function Sk3(e){const t=d2(e),a=t.getFullYear(),c=t.getMonth(),n=i3(e,0);return n.setFullYear(a,c+1,0),n.setHours(0,0,0,0),n.getDate()}function Nk3(){return Object.assign({},Fi())}function M8(e){return d2(e).getHours()}function Ak3(e){let a=d2(e).getDay();return a===0&&(a=7),a}function Ia(e){return d2(e).getMinutes()}function D2(e){return d2(e).getMonth()}function us(e){return d2(e).getSeconds()}function H2(e){return d2(e).getFullYear()}function ds(e,t){const a=d2(e),c=d2(t);return a.getTime()>c.getTime()}function bf(e,t){const a=d2(e),c=d2(t);return+a<+c}function xo(e,t){const a=d2(e),c=d2(t);return+a==+c}function Tk3(e,t){const a=t instanceof Date?i3(t,0):new t(0);return a.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),a.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),a}const Ek3=10;class Ng1{constructor(){S1(this,"subPriority",0)}validate(t,a){return!0}}class Dk3 extends Ng1{constructor(t,a,c,n,r){super(),this.value=t,this.validateValue=a,this.setValue=c,this.priority=n,r&&(this.subPriority=r)}validate(t,a){return this.validateValue(t,this.value,a)}set(t,a,c){return this.setValue(t,a,this.value,c)}}class Pk3 extends Ng1{constructor(){super(...arguments);S1(this,"priority",Ek3);S1(this,"subPriority",-1)}set(a,c){return c.timestampIsSet?a:i3(a,Tk3(a,Date))}}class s3{run(t,a,c,n){const r=this.parse(t,a,c,n);return r?{setter:new Dk3(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(t,a,c){return!0}}class Ok3 extends s3{constructor(){super(...arguments);S1(this,"priority",140);S1(this,"incompatibleTokens",["R","u","t","T"])}parse(a,c,n){switch(c){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})||n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"})}}set(a,c,n){return c.era=n,a.setFullYear(n,0,1),a.setHours(0,0,0,0),a}}const He={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},at={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Le(e,t){return e&&{value:t(e.value),rest:e.rest}}function K3(e,t){const a=t.match(e);return a?{value:parseInt(a[0],10),rest:t.slice(a[0].length)}:null}function ct(e,t){const a=t.match(e);if(!a)return null;if(a[0]==="Z")return{value:0,rest:t.slice(1)};const c=a[1]==="+"?1:-1,n=a[2]?parseInt(a[2],10):0,r=a[3]?parseInt(a[3],10):0,i=a[5]?parseInt(a[5],10):0;return{value:c*(n*kg1+r*NM3+i*AM3),rest:t.slice(a[0].length)}}function Ag1(e){return K3(He.anyDigitsSigned,e)}function ue(e,t){switch(e){case 1:return K3(He.singleDigit,t);case 2:return K3(He.twoDigits,t);case 3:return K3(He.threeDigits,t);case 4:return K3(He.fourDigits,t);default:return K3(new RegExp("^\\d{1,"+e+"}"),t)}}function g$(e,t){switch(e){case 1:return K3(He.singleDigitSigned,t);case 2:return K3(He.twoDigitsSigned,t);case 3:return K3(He.threeDigitsSigned,t);case 4:return K3(He.fourDigitsSigned,t);default:return K3(new RegExp("^-?\\d{1,"+e+"}"),t)}}function FJ(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Tg1(e,t){const a=t>0,c=a?t:1-t;let n;if(c<=50)n=e||100;else{const r=c+50,i=Math.trunc(r/100)*100,o=e>=r%100;n=e+i-(o?100:0)}return a?n:1-n}function Eg1(e){return e%400===0||e%4===0&&e%100!==0}class Ik3 extends s3{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(a,c,n){const r=i=>({year:i,isTwoDigitYear:c==="yy"});switch(c){case"y":return Le(ue(4,a),r);case"yo":return Le(n.ordinalNumber(a,{unit:"year"}),r);default:return Le(ue(c.length,a),r)}}validate(a,c){return c.isTwoDigitYear||c.year>0}set(a,c,n){const r=a.getFullYear();if(n.isTwoDigitYear){const o=Tg1(n.year,r);return a.setFullYear(o,0,1),a.setHours(0,0,0,0),a}const i=!("era"in c)||c.era===1?n.year:1-n.year;return a.setFullYear(i,0,1),a.setHours(0,0,0,0),a}}class Bk3 extends s3{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(a,c,n){const r=i=>({year:i,isTwoDigitYear:c==="YY"});switch(c){case"Y":return Le(ue(4,a),r);case"Yo":return Le(n.ordinalNumber(a,{unit:"year"}),r);default:return Le(ue(c.length,a),r)}}validate(a,c){return c.isTwoDigitYear||c.year>0}set(a,c,n,r){const i=BJ(a,r);if(n.isTwoDigitYear){const l=Tg1(n.year,i);return a.setFullYear(l,0,r.firstWeekContainsDate),a.setHours(0,0,0,0),w6(a,r)}const o=!("era"in c)||c.era===1?n.year:1-n.year;return a.setFullYear(o,0,r.firstWeekContainsDate),a.setHours(0,0,0,0),w6(a,r)}}class Rk3 extends s3{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(a,c){return g$(c==="R"?4:c.length,a)}set(a,c,n){const r=i3(a,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),fs(r)}}class Fk3 extends s3{constructor(){super(...arguments);S1(this,"priority",130);S1(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(a,c){return g$(c==="u"?4:c.length,a)}set(a,c,n){return a.setFullYear(n,0,1),a.setHours(0,0,0,0),a}}class $k3 extends s3{constructor(){super(...arguments);S1(this,"priority",120);S1(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"Q":case"QQ":return ue(c.length,a);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})||n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=1&&c<=4}set(a,c,n){return a.setMonth((n-1)*3,1),a.setHours(0,0,0,0),a}}class qk3 extends s3{constructor(){super(...arguments);S1(this,"priority",120);S1(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"q":case"qq":return ue(c.length,a);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})||n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"})}}validate(a,c){return c>=1&&c<=4}set(a,c,n){return a.setMonth((n-1)*3,1),a.setHours(0,0,0,0),a}}class jk3 extends s3{constructor(){super(...arguments);S1(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);S1(this,"priority",110)}parse(a,c,n){const r=i=>i-1;switch(c){case"M":return Le(K3(He.month,a),r);case"MM":return Le(ue(2,a),r);case"Mo":return Le(n.ordinalNumber(a,{unit:"month"}),r);case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})||n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=0&&c<=11}set(a,c,n){return a.setMonth(n,1),a.setHours(0,0,0,0),a}}class Uk3 extends s3{constructor(){super(...arguments);S1(this,"priority",110);S1(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(a,c,n){const r=i=>i-1;switch(c){case"L":return Le(K3(He.month,a),r);case"LL":return Le(ue(2,a),r);case"Lo":return Le(n.ordinalNumber(a,{unit:"month"}),r);case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})||n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"})}}validate(a,c){return c>=0&&c<=11}set(a,c,n){return a.setMonth(n,1),a.setHours(0,0,0,0),a}}function Wk3(e,t,a){const c=d2(e),n=RJ(c,a)-t;return c.setDate(c.getDate()-n*7),c}class Yk3 extends s3{constructor(){super(...arguments);S1(this,"priority",100);S1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(a,c,n){switch(c){case"w":return K3(He.week,a);case"wo":return n.ordinalNumber(a,{unit:"week"});default:return ue(c.length,a)}}validate(a,c){return c>=1&&c<=53}set(a,c,n,r){return w6(Wk3(a,n,r),r)}}function Gk3(e,t){const a=d2(e),c=IJ(a)-t;return a.setDate(a.getDate()-c*7),a}class Zk3 extends s3{constructor(){super(...arguments);S1(this,"priority",100);S1(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(a,c,n){switch(c){case"I":return K3(He.week,a);case"Io":return n.ordinalNumber(a,{unit:"week"});default:return ue(c.length,a)}}validate(a,c){return c>=1&&c<=53}set(a,c,n){return fs(Gk3(a,n))}}const Xk3=[31,28,31,30,31,30,31,31,30,31,30,31],Kk3=[31,29,31,30,31,30,31,31,30,31,30,31];class Qk3 extends s3{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"subPriority",1);S1(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"d":return K3(He.date,a);case"do":return n.ordinalNumber(a,{unit:"date"});default:return ue(c.length,a)}}validate(a,c){const n=a.getFullYear(),r=Eg1(n),i=a.getMonth();return r?c>=1&&c<=Kk3[i]:c>=1&&c<=Xk3[i]}set(a,c,n){return a.setDate(n),a.setHours(0,0,0,0),a}}class Jk3 extends s3{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"subpriority",1);S1(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(a,c,n){switch(c){case"D":case"DD":return K3(He.dayOfYear,a);case"Do":return n.ordinalNumber(a,{unit:"date"});default:return ue(c.length,a)}}validate(a,c){const n=a.getFullYear();return Eg1(n)?c>=1&&c<=366:c>=1&&c<=365}set(a,c,n){return a.setMonth(0,n),a.setHours(0,0,0,0),a}}function $J(e,t,a){var d,h,p,v;const c=Fi(),n=(a==null?void 0:a.weekStartsOn)??((h=(d=a==null?void 0:a.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??c.weekStartsOn??((v=(p=c.locale)==null?void 0:p.options)==null?void 0:v.weekStartsOn)??0,r=d2(e),i=r.getDay(),l=(t%7+7)%7,f=7-n,u=t<0||t>6?t-(i+f)%7:(l+f)%7-(i+f)%7;return K0(r,u)}class ex3 extends s3{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(a,c,n){switch(c){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=0&&c<=6}set(a,c,n,r){return a=$J(a,n,r),a.setHours(0,0,0,0),a}}class tx3 extends s3{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(a,c,n,r){const i=o=>{const l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(c){case"e":case"ee":return Le(ue(c.length,a),i);case"eo":return Le(n.ordinalNumber(a,{unit:"day"}),i);case"eee":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}validate(a,c){return c>=0&&c<=6}set(a,c,n,r){return a=$J(a,n,r),a.setHours(0,0,0,0),a}}class ax3 extends s3{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(a,c,n,r){const i=o=>{const l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(c){case"c":case"cc":return Le(ue(c.length,a),i);case"co":return Le(n.ordinalNumber(a,{unit:"day"}),i);case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})||n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"})}}validate(a,c){return c>=0&&c<=6}set(a,c,n,r){return a=$J(a,n,r),a.setHours(0,0,0,0),a}}function cx3(e,t){const a=d2(e),c=Ak3(a),n=t-c;return K0(a,n)}class nx3 extends s3{constructor(){super(...arguments);S1(this,"priority",90);S1(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(a,c,n){const r=i=>i===0?7:i;switch(c){case"i":case"ii":return ue(c.length,a);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return Le(n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),r);case"iiiii":return Le(n.day(a,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Le(n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),r);case"iiii":default:return Le(n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),r)}}validate(a,c){return c>=1&&c<=7}set(a,c,n){return a=cx3(a,n),a.setHours(0,0,0,0),a}}class rx3 extends s3{constructor(){super(...arguments);S1(this,"priority",80);S1(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(a,c,n){switch(c){case"a":case"aa":case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,c,n){return a.setHours(FJ(n),0,0,0),a}}class ix3 extends s3{constructor(){super(...arguments);S1(this,"priority",80);S1(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(a,c,n){switch(c){case"b":case"bb":case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,c,n){return a.setHours(FJ(n),0,0,0),a}}class ox3 extends s3{constructor(){super(...arguments);S1(this,"priority",80);S1(this,"incompatibleTokens",["a","b","t","T"])}parse(a,c,n){switch(c){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,c,n){return a.setHours(FJ(n),0,0,0),a}}class sx3 extends s3{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["H","K","k","t","T"])}parse(a,c,n){switch(c){case"h":return K3(He.hour12h,a);case"ho":return n.ordinalNumber(a,{unit:"hour"});default:return ue(c.length,a)}}validate(a,c){return c>=1&&c<=12}set(a,c,n){const r=a.getHours()>=12;return r&&n<12?a.setHours(n+12,0,0,0):!r&&n===12?a.setHours(0,0,0,0):a.setHours(n,0,0,0),a}}class lx3 extends s3{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(a,c,n){switch(c){case"H":return K3(He.hour23h,a);case"Ho":return n.ordinalNumber(a,{unit:"hour"});default:return ue(c.length,a)}}validate(a,c){return c>=0&&c<=23}set(a,c,n){return a.setHours(n,0,0,0),a}}class fx3 extends s3{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["h","H","k","t","T"])}parse(a,c,n){switch(c){case"K":return K3(He.hour11h,a);case"Ko":return n.ordinalNumber(a,{unit:"hour"});default:return ue(c.length,a)}}validate(a,c){return c>=0&&c<=11}set(a,c,n){return a.getHours()>=12&&n<12?a.setHours(n+12,0,0,0):a.setHours(n,0,0,0),a}}class ux3 extends s3{constructor(){super(...arguments);S1(this,"priority",70);S1(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(a,c,n){switch(c){case"k":return K3(He.hour24h,a);case"ko":return n.ordinalNumber(a,{unit:"hour"});default:return ue(c.length,a)}}validate(a,c){return c>=1&&c<=24}set(a,c,n){const r=n<=24?n%24:n;return a.setHours(r,0,0,0),a}}class dx3 extends s3{constructor(){super(...arguments);S1(this,"priority",60);S1(this,"incompatibleTokens",["t","T"])}parse(a,c,n){switch(c){case"m":return K3(He.minute,a);case"mo":return n.ordinalNumber(a,{unit:"minute"});default:return ue(c.length,a)}}validate(a,c){return c>=0&&c<=59}set(a,c,n){return a.setMinutes(n,0,0),a}}class hx3 extends s3{constructor(){super(...arguments);S1(this,"priority",50);S1(this,"incompatibleTokens",["t","T"])}parse(a,c,n){switch(c){case"s":return K3(He.second,a);case"so":return n.ordinalNumber(a,{unit:"second"});default:return ue(c.length,a)}}validate(a,c){return c>=0&&c<=59}set(a,c,n){return a.setSeconds(n,0),a}}class px3 extends s3{constructor(){super(...arguments);S1(this,"priority",30);S1(this,"incompatibleTokens",["t","T"])}parse(a,c){const n=r=>Math.trunc(r*Math.pow(10,-c.length+3));return Le(ue(c.length,a),n)}set(a,c,n){return a.setMilliseconds(n),a}}class mx3 extends s3{constructor(){super(...arguments);S1(this,"priority",10);S1(this,"incompatibleTokens",["t","T","x"])}parse(a,c){switch(c){case"X":return ct(at.basicOptionalMinutes,a);case"XX":return ct(at.basic,a);case"XXXX":return ct(at.basicOptionalSeconds,a);case"XXXXX":return ct(at.extendedOptionalSeconds,a);case"XXX":default:return ct(at.extended,a)}}set(a,c,n){return c.timestampIsSet?a:i3(a,a.getTime()-y$(a)-n)}}class vx3 extends s3{constructor(){super(...arguments);S1(this,"priority",10);S1(this,"incompatibleTokens",["t","T","X"])}parse(a,c){switch(c){case"x":return ct(at.basicOptionalMinutes,a);case"xx":return ct(at.basic,a);case"xxxx":return ct(at.basicOptionalSeconds,a);case"xxxxx":return ct(at.extendedOptionalSeconds,a);case"xxx":default:return ct(at.extended,a)}}set(a,c,n){return c.timestampIsSet?a:i3(a,a.getTime()-y$(a)-n)}}class yx3 extends s3{constructor(){super(...arguments);S1(this,"priority",40);S1(this,"incompatibleTokens","*")}parse(a){return Ag1(a)}set(a,c,n){return[i3(a,n*1e3),{timestampIsSet:!0}]}}class gx3 extends s3{constructor(){super(...arguments);S1(this,"priority",20);S1(this,"incompatibleTokens","*")}parse(a){return Ag1(a)}set(a,c,n){return[i3(a,n),{timestampIsSet:!0}]}}const Mx3={G:new Ok3,y:new Ik3,Y:new Bk3,R:new Rk3,u:new Fk3,Q:new $k3,q:new qk3,M:new jk3,L:new Uk3,w:new Yk3,I:new Zk3,d:new Qk3,D:new Jk3,E:new ex3,e:new tx3,c:new ax3,i:new nx3,a:new rx3,b:new ix3,B:new ox3,h:new sx3,H:new lx3,K:new fx3,k:new ux3,m:new dx3,s:new hx3,S:new px3,X:new mx3,x:new vx3,t:new yx3,T:new gx3},kx3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xx3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bx3=/^'([^]*?)'?$/,zx3=/''/g,Cx3=/\S/,_x3=/[a-zA-Z]/;function fZ(e,t,a,c){var m,y,g,M,x,k,b,_;const n=Nk3(),r=(c==null?void 0:c.locale)??n.locale??Hg1,i=(c==null?void 0:c.firstWeekContainsDate)??((y=(m=c==null?void 0:c.locale)==null?void 0:m.options)==null?void 0:y.firstWeekContainsDate)??n.firstWeekContainsDate??((M=(g=n.locale)==null?void 0:g.options)==null?void 0:M.firstWeekContainsDate)??1,o=(c==null?void 0:c.weekStartsOn)??((k=(x=c==null?void 0:c.locale)==null?void 0:x.options)==null?void 0:k.weekStartsOn)??n.weekStartsOn??((_=(b=n.locale)==null?void 0:b.options)==null?void 0:_.weekStartsOn)??0;if(t==="")return e===""?d2(a):i3(a,NaN);const l={firstWeekContainsDate:i,weekStartsOn:o,locale:r},f=[new Pk3],u=t.match(xx3).map(C=>{const H=C[0];if(H in sZ){const V=sZ[H];return V(C,r.formatLong)}return C}).join("").match(kx3),d=[];for(let C of u){!(c!=null&&c.useAdditionalWeekYearTokens)&&Sg1(C)&&lZ(C,t,e),!(c!=null&&c.useAdditionalDayOfYearTokens)&&Vg1(C)&&lZ(C,t,e);const H=C[0],V=Mx3[H];if(V){const{incompatibleTokens:N}=V;if(Array.isArray(N)){const w=d.find(P=>N.includes(P.token)||P.token===H);if(w)throw new RangeError(`The format string mustn't contain \`${w.fullToken}\` and \`${C}\` at the same time`)}else if(V.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);d.push({token:H,fullToken:C});const L=V.run(e,C,r.match,l);if(!L)return i3(a,NaN);f.push(L.setter),e=L.rest}else{if(H.match(_x3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+H+"`");if(C==="''"?C="'":H==="'"&&(C=wx3(C)),e.indexOf(C)===0)e=e.slice(C.length);else return i3(a,NaN)}}if(e.length>0&&Cx3.test(e))return i3(a,NaN);const h=f.map(C=>C.priority).sort((C,H)=>H-C).filter((C,H,V)=>V.indexOf(C)===H).map(C=>f.filter(H=>H.priority===C).sort((H,V)=>V.subPriority-H.subPriority)).map(C=>C[0]);let p=d2(a);if(isNaN(p.getTime()))return i3(a,NaN);const v={};for(const C of h){if(!C.validate(p,l))return i3(a,NaN);const H=C.set(p,v,l);Array.isArray(H)?(p=H[0],Object.assign(v,H[1])):p=H}return i3(a,p)}function wx3(e){return e.match(bx3)[1].replace(zx3,"'")}function P81(e,t){const a=Ur(e),c=Ur(t);return+a==+c}function Hx3(e,t){return K0(e,-t)}function Dg1(e,t){const a=d2(e),c=a.getFullYear(),n=a.getDate(),r=i3(e,0);r.setFullYear(c,t,15),r.setHours(0,0,0,0);const i=Sk3(r);return a.setMonth(t,Math.min(n,i)),a}function x3(e,t){let a=d2(e);return isNaN(+a)?i3(e,NaN):(t.year!=null&&a.setFullYear(t.year),t.month!=null&&(a=Dg1(a,t.month)),t.date!=null&&a.setDate(t.date),t.hours!=null&&a.setHours(t.hours),t.minutes!=null&&a.setMinutes(t.minutes),t.seconds!=null&&a.setSeconds(t.seconds),t.milliseconds!=null&&a.setMilliseconds(t.milliseconds),a)}function Pg1(e,t){const a=d2(e);return a.setHours(t),a}function qJ(e,t){const a=d2(e);return a.setMilliseconds(t),a}function Og1(e,t){const a=d2(e);return a.setMinutes(t),a}function jJ(e,t){const a=d2(e);return a.setSeconds(t),a}function ot(e,t){const a=d2(e);return isNaN(+a)?i3(e,NaN):(a.setFullYear(t),a)}function hs(e,t){return v6(e,-t)}function Lx3(e,t){const{years:a=0,months:c=0,weeks:n=0,days:r=0,hours:i=0,minutes:o=0,seconds:l=0}=t,f=hs(e,c+a*12),u=Hx3(f,r+n*7),d=o+i*60,p=(l+d*60)*1e3;return i3(e,u.getTime()-p)}function Ig1(e,t){return PJ(e,-t)}function As(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),s.createElementVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),s.createElementVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),s.createElementVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}As.compatConfig={MODE:3};function Bg1(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),s.createElementVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}Bg1.compatConfig={MODE:3};function UJ(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}UJ.compatConfig={MODE:3};function WJ(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}WJ.compatConfig={MODE:3};function YJ(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),s.createElementVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}YJ.compatConfig={MODE:3};function GJ(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}GJ.compatConfig={MODE:3};function ZJ(){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[s.createElementVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}ZJ.compatConfig={MODE:3};const gt=(e,t)=>t?new Date(e.toLocaleString("en-US",{timeZone:t})):new Date(e),Rg1=(e,t)=>uZ(e,t)||$1(),Vx3=(e,t)=>t.dateInTz?gt(new Date(e),t.dateInTz):$1(e),uZ=(e,t)=>{if(!e)return null;if(!t)return $1(e);const a=$1(e);return t.exactMatch?Vx3(e,t):gt(a,t.timezone)},Sx3=e=>{if(!e)return 0;const t=new Date,a=new Date(t.toLocaleString("en-US",{timeZone:"UTC"})),c=new Date(t.toLocaleString("en-US",{timeZone:e})),n=c.getTimezoneOffset()/60;return(+a-+c)/(1e3*60*60)-n};var $0=(e=>(e.month="month",e.year="year",e))($0||{}),Dr=(e=>(e.top="top",e.bottom="bottom",e))(Dr||{}),ci=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(ci||{}),d4=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(d4||{});const Nx3=["timestamp","date","iso"];var S4=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(S4||{}),G3=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(G3||{});function O81(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)}function Ax3(e){return t=>yt(new Date(`2017-01-0${t}T00:00:00+00:00`),"EEEEEE",{locale:e})}const Tx3=(e,t,a)=>{const c=[1,2,3,4,5,6,7];let n;if(e!==null)try{n=c.map(Ax3(e))}catch{n=c.map(O81(t))}else n=c.map(O81(t));const r=n.slice(0,a),i=n.slice(a+1,n.length);return[n[a]].concat(...i).concat(...r)},XJ=(e,t,a)=>{const c=[];for(let n=+e[0];n<=+e[1];n++)c.push({value:+n,text:jg1(n,t)});return a?c.reverse():c},Fg1=(e,t,a)=>{const c=[1,2,3,4,5,6,7,8,9,10,11,12].map(r=>{const i=r<10?`0${r}`:r;return new Date(`2017-${i}-01T00:00:00+00:00`)});if(e!==null)try{const r=a==="long"?"MMMM":"MMM";return c.map((i,o)=>{const l=yt(gt(i,"UTC"),r,{locale:e});return{text:l.charAt(0).toUpperCase()+l.substring(1),value:o}})}catch{}const n=new Intl.DateTimeFormat(t,{month:a,timeZone:"UTC"});return c.map((r,i)=>{const o=n.format(r);return{text:o.charAt(0).toUpperCase()+o.substring(1),value:i}})},Ex3=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],Pe=e=>{const t=s.unref(e);return t!=null&&t.$el?t==null?void 0:t.$el:t},Dx3=e=>({type:"dot",...e??{}}),$g1=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,KJ={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},Ye=e=>e,I81=e=>e===0?e:!e||isNaN(+e)?null:+e,B81=e=>e===null,qg1=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},Px3=e=>{const t=[],a=c=>c.filter(n=>n);for(let c=0;c<e.length;c+=3){const n=[e[c],e[c+1],e[c+2]];t.push(a(n))}return t},zf=(e,t,a)=>{const c=a!=null,n=t!=null;if(!c&&!n)return!1;const r=+a,i=+t;return c&&n?+e>r||+e<i:c?+e>r:n?+e<i:!1},ps=(e,t)=>Px3(e).map(a=>a.map(c=>{const{active:n,disabled:r,isBetween:i,highlighted:o}=t(c);return{...c,active:n,disabled:r,className:{dp__overlay_cell_active:n,dp__overlay_cell:!n,dp__overlay_cell_disabled:r,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:r&&n,dp__cell_in_between:i,"dp--highlighted":o}}})),za=(e,t,a=!1)=>{e&&t.allowStopPropagation&&(a&&e.stopImmediatePropagation(),e.stopPropagation())},Ox3=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function Ix3(e,t){let a=[...document.querySelectorAll(Ox3())];a=a.filter(n=>!e.contains(n)||n.hasAttribute("data-datepicker-instance"));const c=a.indexOf(e);if(c>=0&&(t?c-1>=0:c+1<=a.length))return a[c+(t?-1:1)]}const Bx3=(e,t)=>e==null?void 0:e.querySelector(`[data-dp-element="${t}"]`),jg1=(e,t)=>new Intl.NumberFormat(t,{useGrouping:!1,style:"decimal"}).format(e),QJ=e=>yt(e,"dd-MM-yyyy"),RW=e=>Array.isArray(e),M$=(e,t)=>t.get(QJ(e)),Rx3=(e,t)=>e?t?t instanceof Map?!!M$(e,t):t($1(e)):!1:!0,Y4=(e,t,a=!1)=>{if(e.key===G3.enter||e.key===G3.space)return a&&e.preventDefault(),t()},R81=(e,t,a,c,n,r)=>{const i=fZ(e,t.slice(0,e.length),new Date,{locale:r});return pl(i)&&zg1(i)?c||n?i:x3(i,{hours:+a.hours,minutes:+(a==null?void 0:a.minutes),seconds:+(a==null?void 0:a.seconds),milliseconds:0}):null},Fx3=(e,t,a,c,n,r)=>{const i=Array.isArray(a)?a[0]:a;if(typeof t=="string")return R81(e,t,i,c,n,r);if(Array.isArray(t)){let o=null;for(const l of t)if(o=R81(e,l,i,c,n,r),o)break;return o}return typeof t=="function"?t(e):null},$1=e=>e?new Date(e):new Date,$x3=(e,t,a)=>{if(t){const n=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),i=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),l=a?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${n}-${r}T${i}:${o}:${l}.000Z`}const c=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(c).toISOString()},u0=e=>{let t=$1(JSON.parse(JSON.stringify(e)));return t=Pg1(t,0),t=Og1(t,0),t=jJ(t,0),t=qJ(t,0),t},Ca=(e,t,a,c)=>{let n=e?$1(e):$1();return(t||t===0)&&(n=Pg1(n,+t)),(a||a===0)&&(n=Og1(n,+a)),(c||c===0)&&(n=jJ(n,+c)),qJ(n,0)},ce=(e,t)=>!e||!t?!1:bf(u0(e),u0(t)),O2=(e,t)=>!e||!t?!1:xo(u0(e),u0(t)),xe=(e,t)=>!e||!t?!1:ds(u0(e),u0(t)),Mj=(e,t,a)=>e!=null&&e[0]&&e!=null&&e[1]?xe(a,e[0])&&ce(a,e[1]):e!=null&&e[0]&&t?xe(a,e[0])&&ce(a,t)||ce(a,e[0])&&xe(a,t):!1,Q0=e=>{const t=x3(new Date(e),{date:1});return u0(t)},FW=(e,t,a)=>t&&(a||a===0)?Object.fromEntries(["hours","minutes","seconds"].map(c=>c===t?[c,a]:[c,isNaN(+e[c])?void 0:+e[c]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},ni=e=>({hours:M8(e),minutes:Ia(e),seconds:us(e)}),Ug1=(e,t)=>{if(t){const a=H2($1(t));if(a>e)return 12;if(a===e)return D2($1(t))}},Wg1=(e,t)=>{if(t){const a=H2($1(t));return a<e?-1:a===e?D2($1(t)):void 0}},ms=e=>{if(e)return H2($1(e))},Yg1=(e,t)=>{const a=xe(e,t)?t:e,c=xe(t,e)?t:e;return Cg1({start:a,end:c})},qx3=e=>{const t=v6(e,1);return{month:D2(t),year:H2(t)}},Ut=(e,t)=>{const a=w6(e,{weekStartsOn:+t}),c=wg1(e,{weekStartsOn:+t});return[a,c]},Gg1=(e,t)=>{const a={hours:M8($1()),minutes:Ia($1()),seconds:t?us($1()):0};return Object.assign(a,e)},la=(e,t,a)=>[x3($1(e),{date:1}),x3($1(),{month:t,year:a,date:1})],a8=(e,t,a)=>{let c=e?$1(e):$1();return(t||t===0)&&(c=Dg1(c,t)),a&&(c=ot(c,a)),c},Zg1=(e,t,a,c,n)=>{if(!c||n&&!t||!n&&!a)return!1;const r=n?v6(e,1):hs(e,1),i=[D2(r),H2(r)];return n?!Ux3(...i,t):!jx3(...i,a)},jx3=(e,t,a)=>ce(...la(a,e,t))||O2(...la(a,e,t)),Ux3=(e,t,a)=>xe(...la(a,e,t))||O2(...la(a,e,t)),Xg1=(e,t,a,c,n,r,i)=>{if(typeof t=="function"&&!i)return t(e);const o=a?{locale:a}:void 0;return Array.isArray(e)?`${yt(e[0],r,o)}${n&&!e[1]?"":c}${e[1]?yt(e[1],r,o):""}`:yt(e,r,o)},io=e=>{if(e)return null;throw new Error(KJ.prop("partial-range"))},qd=(e,t)=>{if(t)return e();throw new Error(KJ.prop("range"))},dZ=e=>Array.isArray(e)?pl(e[0])&&(e[1]?pl(e[1]):!0):e?pl(e):!1,Wx3=(e,t)=>x3(t??$1(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),$W=(e,t,a,c)=>{if(!e)return!0;if(c){const n=a==="max"?bf(e,t):ds(e,t),r={seconds:0,milliseconds:0};return n||xo(x3(e,r),x3(t,r))}return a==="max"?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},qW=(e,t,a)=>e?Wx3(e,t):$1(a??t),F81=(e,t,a,c,n)=>{if(Array.isArray(c)){const i=qW(e,c[0],t),o=qW(e,c[1],t);return $W(c[0],i,a,!!t)&&$W(c[1],o,a,!!t)&&n}const r=qW(e,c,t);return $W(c,r,a,!!t)&&n},jW=e=>x3($1(),ni(e)),Yx3=(e,t)=>e instanceof Map?Array.from(e.values()).filter(a=>H2($1(a))===t).map(a=>D2(a)):[],Kg1=(e,t,a)=>typeof e=="function"?e({month:t,year:a}):!!e.months.find(c=>c.month===t&&c.year===a),JJ=(e,t)=>typeof e=="function"?e(t):e.years.includes(t),C9=s.reactive({menuFocused:!1,shiftKeyInMenu:!1}),Qg1=()=>{const e=a=>{C9.menuFocused=a},t=a=>{C9.shiftKeyInMenu!==a&&(C9.shiftKeyInMenu=a)};return{control:s.computed(()=>({shiftKeyInMenu:C9.shiftKeyInMenu,menuFocused:C9.menuFocused})),setMenuFocused:e,setShiftKey:t}},C3=s.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),UW=s.ref(null),jd=s.ref(!1),WW=s.ref(!1),YW=s.ref(!1),GW=s.ref(!1),s4=s.ref(0),ve=s.ref(0),Qa=()=>{const e=s.computed(()=>jd.value?[...C3.selectionGrid,C3.actionRow].filter(d=>d.length):WW.value?[...C3.timePicker[0],...C3.timePicker[1],GW.value?[]:[UW.value],C3.actionRow].filter(d=>d.length):YW.value?[...C3.monthPicker,C3.actionRow]:[C3.monthYear,...C3.calendar,C3.time,C3.actionRow].filter(d=>d.length)),t=d=>{s4.value=d?s4.value+1:s4.value-1;let h=null;e.value[ve.value]&&(h=e.value[ve.value][s4.value]),!h&&e.value[ve.value+(d?1:-1)]?(ve.value=ve.value+(d?1:-1),s4.value=d?0:e.value[ve.value].length-1):h||(s4.value=d?s4.value-1:s4.value+1)},a=d=>{ve.value===0&&!d||ve.value===e.value.length&&d||(ve.value=d?ve.value+1:ve.value-1,e.value[ve.value]?e.value[ve.value]&&!e.value[ve.value][s4.value]&&s4.value!==0&&(s4.value=e.value[ve.value].length-1):ve.value=d?ve.value-1:ve.value+1)},c=d=>{let h=null;e.value[ve.value]&&(h=e.value[ve.value][s4.value]),h?h.focus({preventScroll:!jd.value}):s4.value=d?s4.value-1:s4.value+1},n=()=>{t(!0),c(!0)},r=()=>{t(!1),c(!1)},i=()=>{a(!1),c(!0)},o=()=>{a(!0),c(!0)},l=(d,h)=>{C3[h]=d},f=(d,h)=>{C3[h]=d},u=()=>{s4.value=0,ve.value=0};return{buildMatrix:l,buildMultiLevelMatrix:f,setTimePickerBackRef:d=>{UW.value=d},setSelectionGrid:d=>{jd.value=d,u(),d||(C3.selectionGrid=[])},setTimePicker:(d,h=!1)=>{WW.value=d,GW.value=h,u(),d||(C3.timePicker[0]=[],C3.timePicker[1]=[])},setTimePickerElements:(d,h=0)=>{C3.timePicker[h]=d},arrowRight:n,arrowLeft:r,arrowUp:i,arrowDown:o,clearArrowNav:()=>{C3.monthYear=[],C3.calendar=[],C3.time=[],C3.actionRow=[],C3.selectionGrid=[],C3.timePicker[0]=[],C3.timePicker[1]=[],jd.value=!1,WW.value=!1,GW.value=!1,YW.value=!1,u(),UW.value=null},setMonthPicker:d=>{YW.value=d,u()},refSets:C3}},$81=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),Gx3=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,...e??{}}),q81=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,Zx3=e=>{const t=typeof e=="object"&&e,a={static:!0,solo:!1};if(!e)return{...a,count:q81(!1)};const c=t?e:{},n=t?c.count??!0:e,r=q81(n);return Object.assign(a,c,{count:r})},Xx3=(e,t,a)=>e||(typeof a=="string"?a:t),Kx3=e=>typeof e=="boolean"?e?$81({}):!1:$81(e),Qx3=e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:!0,selectOnFocus:!1,rangeSeparator:" - "};return typeof e=="object"?{...t,...e??{},enabled:!0}:{...t,enabled:e}},Jx3=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),eb3=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),tb3=e=>{const t={input:!1};return typeof e=="object"?{...t,...e??{},enabled:!0}:{enabled:e,...t}},ab3=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,...e??{}}),cb3=e=>{const t={dates:Array.isArray(e)?e.map(a=>$1(a)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...t,...e??{}}},nb3=e=>typeof e=="object"?{type:(e==null?void 0:e.type)??"local",hideOnOffsetDates:(e==null?void 0:e.hideOnOffsetDates)??!1}:{type:e,hideOnOffsetDates:!1},rb3=(e,t)=>typeof e=="object"?{enabled:!0,...{noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1},...e}:{enabled:e,noDisabledRange:t.noDisabledRange,showLastInRange:t.showLastInRange,minMaxRawRange:t.minMaxRawRange,partialRange:t.partialRange,disableTimeRangeValidation:t.disableTimeRangeValidation,maxRange:t.maxRange,minRange:t.minRange,autoRange:t.autoRange,fixedStart:t.fixedStart,fixedEnd:t.fixedEnd},ib3=(e,t)=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:t,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:t??e.emitTimezone,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:t},ZW=(e,t)=>new Map(e.map(a=>{const c=Rg1(a,t);return[QJ(c),c]})),ob3=(e,t)=>e.length?new Map(e.map(a=>{const c=Rg1(a.date,t);return[QJ(c),a]})):null,sb3=(e,t,a,c,n,r,i)=>({minDate:uZ(e,i),maxDate:uZ(t,i),disabledDates:RW(a)?ZW(a,i):a,allowedDates:RW(c)?ZW(c,i):null,highlight:typeof n=="object"&&RW(n==null?void 0:n.dates)?ZW(n.dates,i):n,markers:ob3(r,i)}),lb3=(e,t)=>typeof e=="boolean"?{enabled:e,dragSelect:!0,limit:+t}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0},ee=e=>{const t=()=>{const b=e.enableSeconds?":ss":"",_=e.enableMinutes?":mm":"";return e.is24?`HH${_}${b}`:`hh${_}${b} aa`},a=()=>{var b;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?`${((b=y.value)==null?void 0:b.type)==="iso"?"RR":"ww"}-yyyy`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy"},c=b=>Gg1(b,e.enableSeconds),n=()=>k.value.enabled?e.startTime&&Array.isArray(e.startTime)?[c(e.startTime[0]),c(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?c(e.startTime):null,r=s.computed(()=>Zx3(e.multiCalendars)),i=s.computed(()=>n()),o=s.computed(()=>Gx3(e.ariaLabels)),l=s.computed(()=>Jx3(e.filters)),f=s.computed(()=>Kx3(e.transitions)),u=s.computed(()=>eb3(e.actionRow)),d=s.computed(()=>Xx3(e.previewFormat,e.format,a())),h=s.computed(()=>Qx3(e.textInput)),p=s.computed(()=>tb3(e.inline)),v=s.computed(()=>ab3(e.config)),m=s.computed(()=>cb3(e.highlight)),y=s.computed(()=>nb3(e.weekNumbers)),g=s.computed(()=>ib3(e.timezone,e.emitTimezone)),M=s.computed(()=>lb3(e.multiDates,e.multiDatesLimit)),x=s.computed(()=>sb3(e.minDate,e.maxDate,e.disabledDates,e.allowedDates,m.value,e.markers,g.value)),k=s.computed(()=>rb3(e.range,{minMaxRawRange:!1,maxRange:e.maxRange,minRange:e.minRange,noDisabledRange:e.noDisabledRange,showLastInRange:e.showLastInRange,partialRange:e.partialRange,disableTimeRangeValidation:e.disableTimeRangeValidation,autoRange:e.autoRange,fixedStart:e.fixedStart,fixedEnd:e.fixedEnd}));return{defaultedTransitions:f,defaultedMultiCalendars:r,defaultedStartTime:i,defaultedAriaLabels:o,defaultedFilters:l,defaultedActionRow:u,defaultedPreviewFormat:d,defaultedTextInput:h,defaultedInline:p,defaultedConfig:v,defaultedHighlight:m,defaultedWeekNumbers:y,defaultedRange:k,propDates:x,defaultedTz:g,defaultedMultiDates:M,getDefaultPattern:a,getDefaultStartTime:n}},fb3=(e,t,a)=>{const c=s.ref(),{defaultedTextInput:n,defaultedRange:r,defaultedTz:i,defaultedMultiDates:o,getDefaultPattern:l}=ee(t),f=s.ref(""),u=s.toRef(t,"format"),d=s.toRef(t,"formatLocale");s.watch(c,()=>{typeof t.onInternalModelChange=="function"&&e("internal-model-change",c.value,A(!0))},{deep:!0}),s.watch(r,(R,Q)=>{R.enabled!==Q.enabled&&(c.value=null)}),s.watch(u,()=>{K()});const h=R=>i.value.timezone&&i.value.convertModel?gt(R,i.value.timezone):R,p=R=>{if(i.value.timezone&&i.value.convertModel){const Q=Sx3(i.value.timezone);return TM3(R,Q)}return R},v=(R,Q,c1=!1)=>Xg1(R,t.format,t.formatLocale,n.value.rangeSeparator,t.modelAuto,Q??l(),c1),m=R=>R?t.modelType?W(R):{hours:M8(R),minutes:Ia(R),seconds:t.enableSeconds?us(R):0}:null,y=R=>t.modelType?W(R):{month:D2(R),year:H2(R)},g=R=>Array.isArray(R)?o.value.enabled?R.map(Q=>M(Q,ot($1(),Q))):qd(()=>[ot($1(),R[0]),R[1]?ot($1(),R[1]):io(r.value.partialRange)],r.value.enabled):ot($1(),+R),M=(R,Q)=>(typeof R=="string"||typeof R=="number")&&t.modelType?G(R):Q,x=R=>Array.isArray(R)?[M(R[0],Ca(null,+R[0].hours,+R[0].minutes,R[0].seconds)),M(R[1],Ca(null,+R[1].hours,+R[1].minutes,R[1].seconds))]:M(R,Ca(null,R.hours,R.minutes,R.seconds)),k=R=>{const Q=x3($1(),{date:1});return Array.isArray(R)?o.value.enabled?R.map(c1=>M(c1,a8(Q,+c1.month,+c1.year))):qd(()=>[M(R[0],a8(Q,+R[0].month,+R[0].year)),M(R[1],R[1]?a8(Q,+R[1].month,+R[1].year):io(r.value.partialRange))],r.value.enabled):M(R,a8(Q,+R.month,+R.year))},b=R=>{if(Array.isArray(R))return R.map(Q=>G(Q));throw new Error(KJ.dateArr("multi-dates"))},_=R=>{if(Array.isArray(R)&&r.value.enabled){const Q=R[0],c1=R[1];return[$1(Array.isArray(Q)?Q[0]:null),$1(Array.isArray(c1)?c1[0]:null)]}return $1(R[0])},C=R=>t.modelAuto?Array.isArray(R)?[G(R[0]),G(R[1])]:t.autoApply?[G(R)]:[G(R),null]:Array.isArray(R)?qd(()=>R[1]?[G(R[0]),R[1]?G(R[1]):io(r.value.partialRange)]:[G(R[0])],r.value.enabled):G(R),H=()=>{Array.isArray(c.value)&&r.value.enabled&&c.value.length===1&&c.value.push(io(r.value.partialRange))},V=()=>{const R=c.value;return[W(R[0]),R[1]?W(R[1]):io(r.value.partialRange)]},N=()=>c.value[1]?V():W(Ye(c.value[0])),L=()=>(c.value||[]).map(R=>W(R)),w=(R=!1)=>(R||H(),t.modelAuto?N():o.value.enabled?L():Array.isArray(c.value)?qd(()=>V(),r.value.enabled):W(Ye(c.value))),P=R=>!R||Array.isArray(R)&&!R.length?null:t.timePicker?x(Ye(R)):t.monthPicker?k(Ye(R)):t.yearPicker?g(Ye(R)):o.value.enabled?b(Ye(R)):t.weekPicker?_(Ye(R)):C(Ye(R)),j=R=>{const Q=P(R);dZ(Ye(Q))?(c.value=Ye(Q),K()):(c.value=null,f.value="")},T=()=>{const R=Q=>yt(Q,n.value.format);return`${R(c.value[0])} ${n.value.rangeSeparator} ${c.value[1]?R(c.value[1]):""}`},B=()=>a.value&&c.value?Array.isArray(c.value)?T():yt(c.value,n.value.format):v(c.value),F=()=>c.value?o.value.enabled?c.value.map(R=>v(R)).join("; "):n.value.enabled&&typeof n.value.format=="string"?B():v(c.value):"",K=()=>{!t.format||typeof t.format=="string"||n.value.enabled&&typeof n.value.format=="string"?f.value=F():f.value=t.format(c.value)},G=R=>{if(t.utc){const Q=new Date(R);return t.utc==="preserve"?new Date(Q.getTime()+Q.getTimezoneOffset()*6e4):Q}return t.modelType?Nx3.includes(t.modelType)?h(new Date(R)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?h(fZ(R,l(),new Date,{locale:d.value})):h(fZ(R,t.modelType,new Date,{locale:d.value})):h(new Date(R))},W=R=>R?t.utc?$x3(R,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+p(R):t.modelType==="iso"?p(R).toISOString():t.modelType==="format"&&(typeof t.format=="string"||!t.format)?v(p(R)):v(p(R),t.modelType,!0):p(R):"",O=(R,Q=!1,c1=!1)=>{if(c1)return R;if(e("update:model-value",R),i.value.emitTimezone&&Q){const e1=Array.isArray(R)?R.map(s1=>gt(Ye(s1),i.value.emitTimezone)):gt(Ye(R),i.value.emitTimezone);e("update:model-timezone-value",e1)}},E=R=>Array.isArray(c.value)?o.value.enabled?c.value.map(Q=>R(Q)):[R(c.value[0]),c.value[1]?R(c.value[1]):io(r.value.partialRange)]:R(Ye(c.value)),S=()=>{if(Array.isArray(c.value)){const R=Ut(c.value[0],t.weekStart),Q=c.value[1]?Ut(c.value[1],t.weekStart):[];return[R.map(c1=>$1(c1)),Q.map(c1=>$1(c1))]}return Ut(c.value,t.weekStart).map(R=>$1(R))},U=(R,Q)=>O(Ye(E(R)),!1,Q),Z=R=>{const Q=S();return R?Q:e("update:model-value",S())},A=(R=!1)=>(R||K(),t.monthPicker?U(y,R):t.timePicker?U(m,R):t.yearPicker?U(H2,R):t.weekPicker?Z(R):O(w(R),!0,R));return{inputValue:f,internalModelValue:c,checkBeforeEmit:()=>c.value?r.value.enabled?r.value.partialRange?c.value.length>=1:c.value.length===2:!!c.value:!1,parseExternalModelValue:j,formatInputValue:K,emitModelValue:A}},ub3=(e,t)=>{const{defaultedFilters:a,propDates:c}=ee(e),{validateMonthYearInRange:n}=Ja(e),r=(u,d)=>{let h=u;return a.value.months.includes(D2(h))?(h=d?v6(u,1):hs(u,1),r(h,d)):h},i=(u,d)=>{let h=u;return a.value.years.includes(H2(h))?(h=d?PJ(u,1):Ig1(u,1),i(h,d)):h},o=(u,d=!1)=>{const h=x3($1(),{month:e.month,year:e.year});let p=u?v6(h,1):hs(h,1);e.disableYearSelect&&(p=ot(p,e.year));let v=D2(p),m=H2(p);a.value.months.includes(v)&&(p=r(p,u),v=D2(p),m=H2(p)),a.value.years.includes(m)&&(p=i(p,u),m=H2(p)),n(v,m,u,e.preventMinMaxNavigation)&&l(v,m,d)},l=(u,d,h)=>{t("update-month-year",{month:u,year:d,fromNav:h})},f=s.computed(()=>u=>Zg1(x3($1(),{month:e.month,year:e.year}),c.value.maxDate,c.value.minDate,e.preventMinMaxNavigation,u));return{handleMonthYearChange:o,isDisabled:f,updateMonthYear:l}};var po=(e=>(e.center="center",e.left="left",e.right="right",e))(po||{});const db3=({menuRef:e,menuRefInner:t,inputRef:a,pickerWrapperRef:c,inline:n,emit:r,props:i,slots:o})=>{const l=s.ref({}),f=s.ref(!1),u=s.ref({top:"0",left:"0"}),d=s.ref(!1),h=s.toRef(i,"teleportCenter");s.watch(h,()=>{u.value=JSON.parse(JSON.stringify({})),k()});const p=T=>{if(i.teleport){const B=T.getBoundingClientRect();return{left:B.left+window.scrollX,top:B.top+window.scrollY}}return{top:0,left:0}},v=(T,B)=>{u.value.left=`${T+B-l.value.width}px`},m=T=>{u.value.left=`${T}px`},y=(T,B)=>{i.position===po.left&&m(T),i.position===po.right&&v(T,B),i.position===po.center&&(u.value.left=`${T+B/2-l.value.width/2}px`)},g=T=>{const{width:B,height:F}=T.getBoundingClientRect(),{top:K,left:G}=i.altPosition?i.altPosition(T):p(T);return{top:+K,left:+G,width:B,height:F}},M=()=>{u.value.left="50%",u.value.top="50%",u.value.transform="translate(-50%, -50%)",u.value.position="fixed",delete u.value.opacity},x=()=>{const T=Pe(a),{top:B,left:F,transform:K}=i.altPosition(T);u.value={top:`${B}px`,left:`${F}px`,transform:K??""}},k=(T=!0)=>{var B;if(!n.value.enabled){if(h.value)return M();if(i.altPosition!==null)return x();if(T){const F=i.teleport?(B=t.value)==null?void 0:B.$el:e.value;F&&(l.value=F.getBoundingClientRect()),r("recalculate-position")}return L()}},b=({inputEl:T,left:B,width:F})=>{window.screen.width>768&&!f.value&&y(B,F),H(T)},_=T=>{const{top:B,left:F,height:K,width:G}=g(T);u.value.top=`${K+B+ +i.offset}px`,d.value=!1,f.value||(u.value.left=`${F+G/2-l.value.width/2}px`),b({inputEl:T,left:F,width:G})},C=T=>{const{top:B,left:F,width:K}=g(T);u.value.top=`${B-+i.offset-l.value.height}px`,d.value=!0,b({inputEl:T,left:F,width:K})},H=T=>{if(i.autoPosition){const{left:B,width:F}=g(T),{left:K,right:G}=l.value;if(!f.value){if(Math.abs(K)!==Math.abs(G)){if(K<=0)return f.value=!0,m(B);if(G>=document.documentElement.clientWidth)return f.value=!0,v(B,F)}return y(B,F)}}},V=()=>{const T=Pe(a);if(T){const{height:B}=l.value,{top:F,height:K}=T.getBoundingClientRect(),G=window.innerHeight-F-K,W=F;return B<=G?Dr.bottom:B>G&&B<=W?Dr.top:G>=W?Dr.bottom:Dr.top}return Dr.bottom},N=T=>V()===Dr.bottom?_(T):C(T),L=()=>{const T=Pe(a);if(T)return i.autoPosition?N(T):_(T)},w=function(T){if(T){const B=T.scrollHeight>T.clientHeight,F=window.getComputedStyle(T).overflowY.indexOf("hidden")!==-1;return B&&!F}return!0},P=function(T){return!T||T===document.body||T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:w(T)?T:P(T.assignedSlot?T.assignedSlot.parentNode:T.parentNode)},j=T=>{if(T)switch(i.position){case po.left:return{left:0,transform:"translateX(0)"};case po.right:return{left:`${T.width}px`,transform:"translateX(-100%)"};default:return{left:`${T.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:d,menuStyle:u,xCorrect:f,setMenuPosition:k,getScrollableParent:P,shadowRender:(T,B)=>{var F,K,G;const W=document.createElement("div"),O=(F=Pe(a))==null?void 0:F.getBoundingClientRect();W.setAttribute("id","dp--temp-container");const E=(K=c.value)!=null&&K.clientWidth?c.value:document.body;E.append(W);const S=j(O),U=s.h(T,{...B,shadow:!0,style:{opacity:0,position:"absolute",...S}},Object.fromEntries(Object.keys(o).filter(Z=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(Z)).map(Z=>[Z,o[Z]])));s.render(U,W),l.value=(G=U.el)==null?void 0:G.getBoundingClientRect(),s.render(null,W),E.removeChild(W)}}},B8=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]}],hb3=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],pb3={all:()=>B8,monthYear:()=>B8.filter(e=>e.use.includes("month-year")),input:()=>hb3,timePicker:()=>B8.filter(e=>e.use.includes("time")),action:()=>B8.filter(e=>e.use.includes("action")),calendar:()=>B8.filter(e=>e.use.includes("calendar")),menu:()=>B8.filter(e=>e.use.includes("menu")),shared:()=>B8.filter(e=>e.use.includes("shared")),yearMode:()=>B8.filter(e=>e.use.includes("year-mode"))},n0=(e,t,a)=>{const c=[];return pb3[t]().forEach(n=>{e[n.name]&&c.push(n.name)}),a!=null&&a.length&&a.forEach(n=>{n.slot&&c.push(n.slot)}),c},bu=e=>{const t=s.computed(()=>c=>e.value?c?e.value.open:e.value.close:""),a=s.computed(()=>c=>e.value?c?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:a}},zu=(e,t)=>{const{defaultedRange:a,defaultedTz:c}=ee(e),n=$1(gt($1(),c.value.timezone)),r=s.ref([{month:D2(n),year:H2(n)}]),i=d=>{const h={hours:M8(n),minutes:Ia(n),seconds:0};return a.value.enabled?[h[d],h[d]]:h[d]},o=s.reactive({hours:i("hours"),minutes:i("minutes"),seconds:i("seconds")});s.watch(a,(d,h)=>{d.enabled!==h.enabled&&(o.hours=i("hours"),o.minutes=i("minutes"),o.seconds=i("seconds"))},{deep:!0});const l=s.computed({get:()=>e.internalModelValue,set:d=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",d)}}),f=s.computed(()=>d=>r.value[d]?r.value[d].month:0),u=s.computed(()=>d=>r.value[d]?r.value[d].year:0);return{calendars:r,time:o,modelValue:l,month:f,year:u,today:n}},mb3=(e,t)=>{const{defaultedMultiCalendars:a,defaultedMultiDates:c,defaultedHighlight:n,defaultedTz:r,propDates:i,defaultedRange:o}=ee(t),{isDisabled:l}=Ja(t),f=s.ref(null),u=s.ref(gt(new Date,r.value.timezone)),d=S=>{!S.current&&t.hideOffsetDates||(f.value=S.value)},h=()=>{f.value=null},p=S=>Array.isArray(e.value)&&o.value.enabled&&e.value[0]&&f.value?S?xe(f.value,e.value[0]):ce(f.value,e.value[0]):!0,v=(S,U)=>{const Z=()=>e.value?U?e.value[0]||null:e.value[1]:null,A=e.value&&Array.isArray(e.value)?Z():null;return O2($1(S.value),A)},m=S=>{const U=Array.isArray(e.value)?e.value[0]:null;return S?!ce(f.value??null,U):!0},y=(S,U=!0)=>(o.value.enabled||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!S.current?!1:O2($1(S.value),e.value[U?0:1]):o.value.enabled?v(S,U)&&m(U)||O2(S.value,Array.isArray(e.value)?e.value[0]:null)&&p(U):!1,g=(S,U)=>{if(Array.isArray(e.value)&&e.value[0]&&e.value.length===1){const Z=O2(S.value,f.value);return U?xe(e.value[0],S.value)&&Z:ce(e.value[0],S.value)&&Z}return!1},M=S=>!e.value||t.hideOffsetDates&&!S.current?!1:o.value.enabled?t.modelAuto&&Array.isArray(e.value)?O2(S.value,e.value[0]?e.value[0]:u.value):!1:c.value.enabled&&Array.isArray(e.value)?e.value.some(U=>O2(U,S.value)):O2(S.value,e.value?e.value:u.value),x=S=>{if(o.value.autoRange||t.weekPicker){if(f.value){if(t.hideOffsetDates&&!S.current)return!1;const U=K0(f.value,+o.value.autoRange),Z=Ut($1(f.value),t.weekStart);return t.weekPicker?O2(Z[1],$1(S.value)):O2(U,$1(S.value))}return!1}return!1},k=S=>{if(o.value.autoRange||t.weekPicker){if(f.value){const U=K0(f.value,+o.value.autoRange);if(t.hideOffsetDates&&!S.current)return!1;const Z=Ut($1(f.value),t.weekStart);return t.weekPicker?xe(S.value,Z[0])&&ce(S.value,Z[1]):xe(S.value,f.value)&&ce(S.value,U)}return!1}return!1},b=S=>{if(o.value.autoRange||t.weekPicker){if(f.value){if(t.hideOffsetDates&&!S.current)return!1;const U=Ut($1(f.value),t.weekStart);return t.weekPicker?O2(U[0],S.value):O2(f.value,S.value)}return!1}return!1},_=S=>Mj(e.value,f.value,S.value),C=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,H=()=>t.modelAuto?$g1(t.internalModelValue):!0,V=S=>{if(t.weekPicker)return!1;const U=o.value.enabled?!y(S)&&!y(S,!1):!0;return!l(S.value)&&!M(S)&&!(!S.current&&t.hideOffsetDates)&&U},N=S=>o.value.enabled?t.modelAuto?C()&&M(S):!1:M(S),L=S=>n.value?Rx3(S.value,i.value.highlight):!1,w=S=>{const U=l(S.value);return U&&(typeof n.value=="function"?!n.value(S.value,U):!n.value.options.highlightDisabled)},P=S=>{var U;return typeof n.value=="function"?n.value(S.value):(U=n.value.weekdays)==null?void 0:U.includes(S.value.getDay())},j=S=>(o.value.enabled||t.weekPicker)&&(!(a.value.count>0)||S.current)&&H()&&!(!S.current&&t.hideOffsetDates)&&!M(S)?_(S):!1,T=S=>{const{isRangeStart:U,isRangeEnd:Z}=G(S),A=o.value.enabled?U||Z:!1;return{dp__cell_offset:!S.current,dp__pointer:!t.disabled&&!(!S.current&&t.hideOffsetDates)&&!l(S.value),dp__cell_disabled:l(S.value),dp__cell_highlight:!w(S)&&(L(S)||P(S))&&!N(S)&&!A&&!b(S)&&!(j(S)&&t.weekPicker)&&!Z,dp__cell_highlight_active:!w(S)&&(L(S)||P(S))&&N(S),dp__today:!t.noToday&&O2(S.value,u.value)&&S.current,"dp--past":ce(S.value,u.value),"dp--future":xe(S.value,u.value)}},B=S=>({dp__active_date:N(S),dp__date_hover:V(S)}),F=S=>{if(e.value&&!Array.isArray(e.value)){const U=Ut(e.value,t.weekStart);return{...O(S),dp__range_start:O2(U[0],S.value),dp__range_end:O2(U[1],S.value),dp__range_between_week:xe(S.value,U[0])&&ce(S.value,U[1])}}return{...O(S)}},K=S=>{if(e.value&&Array.isArray(e.value)){const U=Ut(e.value[0],t.weekStart),Z=e.value[1]?Ut(e.value[1],t.weekStart):[];return{...O(S),dp__range_start:O2(U[0],S.value)||O2(Z[0],S.value),dp__range_end:O2(U[1],S.value)||O2(Z[1],S.value),dp__range_between_week:xe(S.value,U[0])&&ce(S.value,U[1])||xe(S.value,Z[0])&&ce(S.value,Z[1]),dp__range_between:xe(S.value,U[1])&&ce(S.value,Z[0])}}return{...O(S)}},G=S=>{const U=a.value.count>0?S.current&&y(S)&&H():y(S)&&H(),Z=a.value.count>0?S.current&&y(S,!1)&&H():y(S,!1)&&H();return{isRangeStart:U,isRangeEnd:Z}},W=S=>{const{isRangeStart:U,isRangeEnd:Z}=G(S);return{dp__range_start:U,dp__range_end:Z,dp__range_between:j(S),dp__date_hover:O2(S.value,f.value)&&!U&&!Z&&!t.weekPicker,dp__date_hover_start:g(S,!0),dp__date_hover_end:g(S,!1)}},O=S=>({...W(S),dp__cell_auto_range:k(S),dp__cell_auto_range_start:b(S),dp__cell_auto_range_end:x(S)}),E=S=>o.value.enabled?o.value.autoRange?O(S):t.modelAuto?{...B(S),...W(S)}:t.weekPicker?K(S):W(S):t.weekPicker?F(S):B(S);return{setHoverDate:d,clearHoverDate:h,getDayClassData:S=>t.hideOffsetDates&&!S.current?{}:{...T(S),...E(S),[t.dayClass?t.dayClass(S.value):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName}}},Ja=e=>{const{defaultedFilters:t,defaultedRange:a,propDates:c,defaultedMultiDates:n}=ee(e),r=w=>c.value.disabledDates?typeof c.value.disabledDates=="function"?c.value.disabledDates($1(w)):!!M$(w,c.value.disabledDates):!1,i=w=>{const P=c.value.maxDate?xe(w,c.value.maxDate):!1,j=c.value.minDate?ce(w,c.value.minDate):!1,T=r(w),B=t.value.months.map(O=>+O).includes(D2(w)),F=e.disabledWeekDays.length?e.disabledWeekDays.some(O=>+O===Vk3(w)):!1,K=d(w),G=H2(w),W=G<+e.yearRange[0]||G>+e.yearRange[1];return!(P||j||T||B||W||F||K)},o=(w,P)=>ce(...la(c.value.minDate,w,P))||O2(...la(c.value.minDate,w,P)),l=(w,P)=>xe(...la(c.value.maxDate,w,P))||O2(...la(c.value.maxDate,w,P)),f=(w,P,j)=>{let T=!1;return c.value.maxDate&&j&&l(w,P)&&(T=!0),c.value.minDate&&!j&&o(w,P)&&(T=!0),T},u=(w,P,j,T)=>{let B=!1;return T?c.value.minDate&&c.value.maxDate?B=f(w,P,j):(c.value.minDate&&o(w,P)||c.value.maxDate&&l(w,P))&&(B=!0):B=!0,B},d=w=>Array.isArray(c.value.allowedDates)&&!c.value.allowedDates.length?!0:c.value.allowedDates?!M$(w,c.value.allowedDates):!1,h=w=>!i(w),p=w=>a.value.noDisabledRange?!Cg1({start:w[0],end:w[1]}).some(P=>h(P)):!0,v=w=>{if(w){const P=H2(w);return P>=+e.yearRange[0]&&P<=e.yearRange[1]}return!0},m=(w,P)=>!!(Array.isArray(w)&&w[P]&&(a.value.maxRange||a.value.minRange)&&v(w[P])),y=(w,P,j=0)=>{if(m(P,j)&&v(w)){const T=bg1(w,P[j]),B=Yg1(P[j],w),F=B.length===1?0:B.filter(G=>h(G)).length,K=Math.abs(T)-(a.value.minMaxRawRange?0:F);if(a.value.minRange&&a.value.maxRange)return K>=+a.value.minRange&&K<=+a.value.maxRange;if(a.value.minRange)return K>=+a.value.minRange;if(a.value.maxRange)return K<=+a.value.maxRange}return!0},g=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,M=w=>Array.isArray(w)?[w[0]?jW(w[0]):null,w[1]?jW(w[1]):null]:jW(w),x=(w,P,j)=>w.find(T=>+T.hours===M8(P)&&T.minutes==="*"?!0:+T.minutes===Ia(P)&&+T.hours===M8(P))&&j,k=(w,P,j)=>{const[T,B]=w,[F,K]=P;return!x(T,F,j)&&!x(B,K,j)&&j},b=(w,P)=>{const j=Array.isArray(P)?P:[P];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?k(e.disabledTimes,j,w):!j.some(T=>x(e.disabledTimes,T,w)):w},_=(w,P)=>{const j=Array.isArray(P)?[ni(P[0]),P[1]?ni(P[1]):void 0]:ni(P),T=!e.disabledTimes(j);return w&&T},C=(w,P)=>e.disabledTimes?Array.isArray(e.disabledTimes)?b(P,w):_(P,w):P,H=w=>{let P=!0;if(!w||g())return!0;const j=!c.value.minDate&&!c.value.maxDate?M(w):w;return(e.maxTime||c.value.maxDate)&&(P=F81(e.maxTime,c.value.maxDate,"max",Ye(j),P)),(e.minTime||c.value.minDate)&&(P=F81(e.minTime,c.value.minDate,"min",Ye(j),P)),C(w,P)},V=w=>{if(!e.monthPicker)return!0;let P=!0;const j=$1(Q0(w));if(c.value.minDate&&c.value.maxDate){const T=$1(Q0(c.value.minDate)),B=$1(Q0(c.value.maxDate));return xe(j,T)&&ce(j,B)||O2(j,T)||O2(j,B)}if(c.value.minDate){const T=$1(Q0(c.value.minDate));P=xe(j,T)||O2(j,T)}if(c.value.maxDate){const T=$1(Q0(c.value.maxDate));P=ce(j,T)||O2(j,T)}return P},N=s.computed(()=>w=>!e.enableTimePicker||e.ignoreTimeValidation?!0:H(w)),L=s.computed(()=>w=>e.monthPicker?Array.isArray(w)&&(a.value.enabled||n.value.enabled)?!w.filter(P=>!V(P)).length:V(w):!0);return{isDisabled:h,validateDate:i,validateMonthYearInRange:u,isDateRangeAllowed:p,checkMinMaxRange:y,isValidTime:H,isTimeValid:N,isMonthValid:L}},kj=()=>{const e=s.computed(()=>(c,n)=>c==null?void 0:c.includes(n)),t=s.computed(()=>(c,n)=>c.count?c.solo?!0:n===0:!0),a=s.computed(()=>(c,n)=>c.count?c.solo?!0:n===c.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:t,showRightIcon:a}},vb3=(e,t,a)=>{const c=s.ref(0),n=s.reactive({[ci.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[ci.calendar]:!1,[ci.header]:!1}),r=s.computed(()=>e.monthPicker||e.timePicker),i=d=>{var h;if((h=e.flow)!=null&&h.length){if(!d&&r.value)return u();n[d]=!0,Object.keys(n).filter(p=>!n[p]).length||u()}},o=()=>{var d;(d=e.flow)!=null&&d.length&&c.value!==-1&&(c.value+=1,t("flow-step",c.value),u())},l=()=>{c.value=-1},f=(d,h,...p)=>{var v,m;e.flow[c.value]===d&&a.value&&((m=(v=a.value)[h])==null||m.call(v,...p))},u=()=>{f(d4.month,"toggleMonthPicker",!0),f(d4.year,"toggleYearPicker",!0),f(d4.calendar,"toggleTimePicker",!1,!0),f(d4.time,"toggleTimePicker",!0,!0);const d=e.flow[c.value];(d===d4.hours||d===d4.minutes||d===d4.seconds)&&f(d,"toggleTimePicker",!0,!0,d)};return{childMount:i,updateFlowStep:o,resetFlow:l,flowStep:c}},xj={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},emitTimezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},calendarClassName:{type:String,default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0}},T6={...xj,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})}},yb3={key:1,class:"dp__input_wrap"},gb3=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],Mb3={key:2,class:"dp__clear_icon"},kb3=s.defineComponent({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...xj},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:a}){const c=a,n=e,{defaultedTextInput:r,defaultedAriaLabels:i,defaultedInline:o,defaultedConfig:l,defaultedRange:f,defaultedMultiDates:u,getDefaultPattern:d,getDefaultStartTime:h}=ee(n),{checkMinMaxRange:p}=Ja(n),v=s.ref(),m=s.ref(null),y=s.ref(!1),g=s.ref(!1),M=s.computed(()=>({dp__pointer:!n.disabled&&!n.readonly&&!r.value.enabled,dp__disabled:n.disabled,dp__input_readonly:!r.value.enabled,dp__input:!0,dp__input_icon_pad:!n.hideInputIcon,dp__input_valid:!!n.state,dp__input_invalid:n.state===!1,dp__input_focus:y.value||n.isMenuOpen,dp__input_reg:!r.value.enabled,[n.inputClassName]:!!n.inputClassName})),x=()=>{c("set-input-date",null),n.clearable&&n.autoApply&&(c("set-empty-date"),v.value=null)},k=B=>{const F=h();return Fx3(B,r.value.format??d(),F??Gg1({},n.enableSeconds),n.inputValue,g.value,n.formatLocale)},b=B=>{const{rangeSeparator:F}=r.value,[K,G]=B.split(`${F}`);if(K){const W=k(K.trim()),O=G?k(G.trim()):null;if(ds(W,O))return;const E=W&&O?[W,O]:[W];p(O,E,0)&&(v.value=W?E:null)}},_=()=>{g.value=!0},C=B=>{if(f.value.enabled)b(B);else if(u.value.enabled){const F=B.split(";");v.value=F.map(K=>k(K.trim())).filter(K=>K)}else v.value=k(B)},H=B=>{var F;const K=typeof B=="string"?B:(F=B.target)==null?void 0:F.value;K!==""?(r.value.openMenu&&!n.isMenuOpen&&c("open"),C(K),c("set-input-date",v.value)):x(),g.value=!1,c("update:input-value",K)},V=B=>{r.value.enabled?(C(B.target.value),r.value.enterSubmit&&dZ(v.value)&&n.inputValue!==""?(c("set-input-date",v.value,!0),v.value=null):r.value.enterSubmit&&n.inputValue===""&&(v.value=null,c("clear"))):w(B)},N=B=>{r.value.enabled&&r.value.tabSubmit&&C(B.target.value),r.value.tabSubmit&&dZ(v.value)&&n.inputValue!==""?(c("set-input-date",v.value,!0,!0),v.value=null):r.value.tabSubmit&&n.inputValue===""&&(v.value=null,c("clear",!0))},L=()=>{y.value=!0,c("focus"),s.nextTick().then(()=>{var B;r.value.enabled&&r.value.selectOnFocus&&((B=m.value)==null||B.select())})},w=B=>{B.preventDefault(),za(B,l.value,!0),r.value.enabled&&r.value.openMenu&&!o.value.input&&!n.isMenuOpen?c("open"):r.value.enabled||c("toggle")},P=()=>{c("real-blur"),y.value=!1,(!n.isMenuOpen||o.value.enabled&&o.value.input)&&c("blur"),n.autoApply&&r.value.enabled&&v.value&&!n.isMenuOpen&&(c("set-input-date",v.value),c("select-date"),v.value=null)},j=B=>{za(B,l.value,!0),c("clear")},T=B=>{if(B.key==="Tab"&&N(B),B.key==="Enter"&&V(B),!r.value.enabled){if(B.code==="Tab")return;B.preventDefault()}};return t({focusInput:()=>{var B;(B=m.value)==null||B.focus({preventScroll:!0})},setParsedDate:B=>{v.value=B}}),(B,F)=>{var K;return s.openBlock(),s.createElementBlock("div",{onClick:w},[B.$slots.trigger&&!B.$slots["dp-input"]&&!s.unref(o).enabled?s.renderSlot(B.$slots,"trigger",{key:0}):s.createCommentVNode("",!0),!B.$slots.trigger&&(!s.unref(o).enabled||s.unref(o).input)?(s.openBlock(),s.createElementBlock("div",yb3,[B.$slots["dp-input"]&&!B.$slots.trigger&&(!s.unref(o).enabled||s.unref(o).enabled&&s.unref(o).input)?s.renderSlot(B.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:H,onEnter:V,onTab:N,onClear:j,onBlur:P,onKeypress:T,onPaste:_,openMenu:()=>B.$emit("open"),closeMenu:()=>B.$emit("close"),toggleMenu:()=>B.$emit("toggle")}):s.createCommentVNode("",!0),B.$slots["dp-input"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("input",{key:1,id:B.uid?`dp-input-${B.uid}`:void 0,ref_key:"inputRef",ref:m,"data-test":"dp-input",name:B.name,class:s.normalizeClass(M.value),inputmode:s.unref(r).enabled?"text":"none",placeholder:B.placeholder,disabled:B.disabled,readonly:B.readonly,required:B.required,value:e.inputValue,autocomplete:B.autocomplete,"aria-label":(K=s.unref(i))==null?void 0:K.input,"aria-disabled":B.disabled||void 0,"aria-invalid":B.state===!1?!0:void 0,onInput:H,onBlur:P,onFocus:L,onKeypress:T,onKeydown:T,onPaste:_},null,42,gb3)),s.createElementVNode("div",{onClick:F[2]||(F[2]=G=>c("toggle"))},[B.$slots["input-icon"]&&!B.hideInputIcon?(s.openBlock(),s.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:F[0]||(F[0]=G=>c("toggle"))},[s.renderSlot(B.$slots,"input-icon")])):s.createCommentVNode("",!0),!B.$slots["input-icon"]&&!B.hideInputIcon&&!B.$slots["dp-input"]?(s.openBlock(),s.createBlock(s.unref(As),{key:1,class:"dp__input_icon dp__input_icons",onClick:F[1]||(F[1]=G=>c("toggle"))})):s.createCommentVNode("",!0)]),B.$slots["clear-icon"]&&e.inputValue&&B.clearable&&!B.disabled&&!B.readonly?(s.openBlock(),s.createElementBlock("span",Mb3,[s.renderSlot(B.$slots,"clear-icon",{clear:j})])):s.createCommentVNode("",!0),B.clearable&&!B.$slots["clear-icon"]&&e.inputValue&&!B.disabled&&!B.readonly?(s.openBlock(),s.createBlock(s.unref(Bg1),{key:3,class:"dp__clear_icon dp__input_icons","data-test":"clear-icon",onClick:F[3]||(F[3]=s.withModifiers(G=>j(G),["prevent"]))})):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])}}}),xb3=["title"],bb3=["disabled"],zb3=s.defineComponent({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...T6},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const a=t,c=e,{defaultedActionRow:n,defaultedPreviewFormat:r,defaultedMultiCalendars:i,defaultedTextInput:o,defaultedInline:l,defaultedRange:f,defaultedMultiDates:u,getDefaultPattern:d}=ee(c),{isTimeValid:h,isMonthValid:p}=Ja(c),{buildMatrix:v}=Qa(),m=s.ref(null),y=s.ref(null),g=s.ref(!1),M=s.ref({}),x=s.ref(null),k=s.ref(null);s.onMounted(()=>{c.arrowNavigation&&v([Pe(m),Pe(y)],"actionRow"),b(),window.addEventListener("resize",b)}),s.onUnmounted(()=>{window.removeEventListener("resize",b)});const b=()=>{g.value=!1,setTimeout(()=>{var T,B;const F=(T=x.value)==null?void 0:T.getBoundingClientRect(),K=(B=k.value)==null?void 0:B.getBoundingClientRect();F&&K&&(M.value.maxWidth=`${K.width-F.width-20}px`),g.value=!0},0)},_=s.computed(()=>f.value.enabled&&!f.value.partialRange&&c.internalModelValue?c.internalModelValue.length===2:!0),C=s.computed(()=>!h.value(c.internalModelValue)||!p.value(c.internalModelValue)||!_.value),H=()=>{const T=r.value;return c.timePicker||c.monthPicker,T(Ye(c.internalModelValue))},V=()=>{const T=c.internalModelValue;return i.value.count>0?`${N(T[0])} - ${N(T[1])}`:[N(T[0]),N(T[1])]},N=T=>Xg1(T,r.value,c.formatLocale,o.value.rangeSeparator,c.modelAuto,d()),L=s.computed(()=>!c.internalModelValue||!c.menuMount?"":typeof r.value=="string"?Array.isArray(c.internalModelValue)?c.internalModelValue.length===2&&c.internalModelValue[1]?V():u.value.enabled?c.internalModelValue.map(T=>`${N(T)}`):c.modelAuto?`${N(c.internalModelValue[0])}`:`${N(c.internalModelValue[0])} -`:N(c.internalModelValue):H()),w=()=>u.value.enabled?"; ":" - ",P=s.computed(()=>Array.isArray(L.value)?L.value.join(w()):L.value),j=()=>{h.value(c.internalModelValue)&&p.value(c.internalModelValue)&&_.value?a("select-date"):a("invalid-select")};return(T,B)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"actionRowRef",ref:k,class:"dp__action_row"},[T.$slots["action-row"]?s.renderSlot(T.$slots,"action-row",s.normalizeProps(s.mergeProps({key:0},{internalModelValue:T.internalModelValue,disabled:C.value,selectDate:()=>T.$emit("select-date"),closePicker:()=>T.$emit("close-picker")}))):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.unref(n).showPreview?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__selection_preview",title:P.value,style:s.normalizeStyle(M.value)},[T.$slots["action-preview"]&&g.value?s.renderSlot(T.$slots,"action-preview",{key:0,value:T.internalModelValue}):s.createCommentVNode("",!0),!T.$slots["action-preview"]&&g.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(P.value),1)],64)):s.createCommentVNode("",!0)],12,xb3)):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"actionBtnContainer",ref:x,class:"dp__action_buttons","data-dp-element":"action-row"},[T.$slots["action-buttons"]?s.renderSlot(T.$slots,"action-buttons",{key:0,value:T.internalModelValue}):s.createCommentVNode("",!0),T.$slots["action-buttons"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!s.unref(l).enabled&&s.unref(n).showCancel?(s.openBlock(),s.createElementBlock("button",{key:0,ref_key:"cancelButtonRef",ref:m,type:"button",class:"dp__action_button dp__action_cancel",onClick:B[0]||(B[0]=F=>T.$emit("close-picker")),onKeydown:B[1]||(B[1]=F=>s.unref(Y4)(F,()=>T.$emit("close-picker")))},s.toDisplayString(T.cancelText),545)):s.createCommentVNode("",!0),s.unref(n).showNow?(s.openBlock(),s.createElementBlock("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:B[2]||(B[2]=F=>T.$emit("select-now")),onKeydown:B[3]||(B[3]=F=>s.unref(Y4)(F,()=>T.$emit("select-now")))},s.toDisplayString(T.nowButtonLabel),33)):s.createCommentVNode("",!0),s.unref(n).showSelect?(s.openBlock(),s.createElementBlock("button",{key:2,ref_key:"selectButtonRef",ref:y,type:"button",class:"dp__action_button dp__action_select",disabled:C.value,"data-test":"select-button",onKeydown:B[4]||(B[4]=F=>s.unref(Y4)(F,()=>j())),onClick:j},s.toDisplayString(T.selectText),41,bb3)):s.createCommentVNode("",!0)],64))],512)],64))],512))}}),Cb3={class:"dp__selection_grid_header"},_b3=["aria-selected","aria-disabled","data-test","onClick","onKeydown","onMouseover"],wb3=["aria-label"],Cu=s.defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:a}){const{setSelectionGrid:c,buildMultiLevelMatrix:n,setMonthPicker:r}=Qa(),i=a,o=e,{defaultedAriaLabels:l,defaultedTextInput:f,defaultedConfig:u}=ee(o),{hideNavigationButtons:d}=kj(),h=s.ref(!1),p=s.ref(null),v=s.ref(null),m=s.ref([]),y=s.ref(),g=s.ref(null),M=s.ref(0),x=s.ref(null);s.onBeforeUpdate(()=>{p.value=null}),s.onMounted(()=>{s.nextTick().then(()=>L()),o.noOverlayFocus||b(),k(!0)}),s.onUnmounted(()=>k(!1));const k=E=>{var S;o.arrowNavigation&&((S=o.headerRefs)!=null&&S.length?r(E):c(E))},b=()=>{var E;const S=Pe(v);S&&(f.value.enabled||(p.value?(E=p.value)==null||E.focus({preventScroll:!0}):S.focus({preventScroll:!0})),h.value=S.clientHeight<S.scrollHeight)},_=s.computed(()=>({dp__overlay:!0,"dp--overlay-absolute":!o.useRelative,"dp--overlay-relative":o.useRelative})),C=s.computed(()=>o.useRelative?{height:`${o.height}px`,width:"260px"}:void 0),H=s.computed(()=>({dp__overlay_col:!0})),V=s.computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:h.value,dp__button_bottom:o.isLast})),N=s.computed(()=>{var E,S;return{dp__overlay_container:!0,dp__container_flex:((E=o.items)==null?void 0:E.length)<=6,dp__container_block:((S=o.items)==null?void 0:S.length)>6}});s.watch(()=>o.items,()=>L(!1),{deep:!0});const L=(E=!0)=>{s.nextTick().then(()=>{const S=Pe(p),U=Pe(v),Z=Pe(g),A=Pe(x),R=Z?Z.getBoundingClientRect().height:0;U&&(U.getBoundingClientRect().height?M.value=U.getBoundingClientRect().height-R:M.value=u.value.modeHeight-R),S&&A&&E&&(A.scrollTop=S.offsetTop-A.offsetTop-(M.value/2-S.getBoundingClientRect().height)-R)})},w=E=>{E.disabled||i("selected",E.value)},P=()=>{i("toggle"),i("reset-flow")},j=()=>{o.escClose&&P()},T=(E,S,U,Z)=>{E&&((S.active||S.value===o.focusValue)&&(p.value=E),o.arrowNavigation&&(Array.isArray(m.value[U])?m.value[U][Z]=E:m.value[U]=[E],B()))},B=()=>{var E,S;const U=(E=o.headerRefs)!=null&&E.length?[o.headerRefs].concat(m.value):m.value.concat([o.skipButtonRef?[]:[g.value]]);n(Ye(U),(S=o.headerRefs)!=null&&S.length?"monthPicker":"selectionGrid")},F=E=>{o.arrowNavigation||za(E,u.value,!0)},K=E=>{y.value=E,i("hover-value",E)},G=()=>{if(P(),!o.isLast){const E=Bx3(o.menuWrapRef??null,"action-row");if(E){const S=qg1(E);S==null||S.focus()}}},W=E=>{switch(E.key){case G3.esc:return j();case G3.arrowLeft:return F(E);case G3.arrowRight:return F(E);case G3.arrowUp:return F(E);case G3.arrowDown:return F(E);default:return}},O=E=>{if(E.key===G3.enter)return P();if(E.key===G3.tab)return G()};return t({focusGrid:b}),(E,S)=>{var U;return s.openBlock(),s.createElementBlock("div",{ref_key:"gridWrapRef",ref:v,class:s.normalizeClass(_.value),style:s.normalizeStyle(C.value),role:"dialog",tabindex:"0",onKeydown:W},[s.createElementVNode("div",{ref_key:"containerRef",ref:x,class:s.normalizeClass(N.value),role:"grid",style:s.normalizeStyle({"--dp-overlay-height":`${M.value}px`})},[s.createElementVNode("div",Cb3,[s.renderSlot(E.$slots,"header")]),E.$slots.overlay?s.renderSlot(E.$slots,"overlay",{key:0}):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(E.items,(Z,A)=>(s.openBlock(),s.createElementBlock("div",{key:A,class:s.normalizeClass(["dp__overlay_row",{dp__flex_row:E.items.length>=3}]),role:"row"},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(Z,(R,Q)=>(s.openBlock(),s.createElementBlock("div",{key:R.value,ref_for:!0,ref:c1=>T(c1,R,A,Q),role:"gridcell",class:s.normalizeClass(H.value),"aria-selected":R.active||void 0,"aria-disabled":R.disabled||void 0,tabindex:"0","data-test":R.text,onClick:c1=>w(R),onKeydown:c1=>s.unref(Y4)(c1,()=>w(R),!0),onMouseover:c1=>K(R.value)},[s.createElementVNode("div",{class:s.normalizeClass(R.className)},[E.$slots.item?s.renderSlot(E.$slots,"item",{key:0,item:R}):s.createCommentVNode("",!0),E.$slots.item?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(R.text),1)],64))],2)],42,_b3))),128))],2))),128))],6),E.$slots["button-icon"]?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:0,ref_key:"toggleButton",ref:g,type:"button","aria-label":(U=s.unref(l))==null?void 0:U.toggleOverlay,class:s.normalizeClass(V.value),tabindex:"0",onClick:P,onKeydown:O},[s.renderSlot(E.$slots,"button-icon")],42,wb3)),[[s.vShow,!s.unref(d)(E.hideNavigation,E.type)]]):s.createCommentVNode("",!0)],38)}}}),bj=s.defineComponent({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean}},setup(e){const t=e,a=s.computed(()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0]),c=s.computed(()=>({dp__instance_calendar:t.multiCalendars>0}));return(n,r)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({dp__menu_inner:!n.stretch,"dp--menu--inner-stretched":n.stretch,dp__flex_display:n.multiCalendars>0,"dp--flex-display-collapsed":n.collapse})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.value,(i,o)=>(s.openBlock(),s.createElementBlock("div",{key:i,class:s.normalizeClass(c.value)},[s.renderSlot(n.$slots,"default",{instance:i,index:o})],2))),128))],2))}}),Hb3=["aria-label","aria-disabled"],ml=s.defineComponent({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const a=t,c=s.ref(null);return s.onMounted(()=>a("set-ref",c)),(n,r)=>(s.openBlock(),s.createElementBlock("button",{ref_key:"elRef",ref:c,type:"button",class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":n.ariaLabel,"aria-disabled":n.disabled||void 0,onClick:r[0]||(r[0]=i=>n.$emit("activate")),onKeydown:r[1]||(r[1]=i=>s.unref(Y4)(i,()=>n.$emit("activate"),!0))},[s.createElementVNode("span",{class:s.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:n.disabled}])},[s.renderSlot(n.$slots,"default")],2)],40,Hb3))}}),Lb3={class:"dp--year-mode-picker"},Vb3=["aria-label","data-test"],Jg1=s.defineComponent({__name:"YearModePicker",props:{...T6,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:t}){const a=t,c=e,{showRightIcon:n,showLeftIcon:r}=kj(),{defaultedConfig:i,defaultedMultiCalendars:o,defaultedAriaLabels:l,defaultedTransitions:f}=ee(c),{showTransition:u,transitionName:d}=bu(f),h=(m=!1,y)=>{a("toggle-year-picker",{flow:m,show:y})},p=m=>{a("year-select",m)},v=(m=!1)=>{a("handle-year",m)};return(m,y)=>{var g,M,x;return s.openBlock(),s.createElementBlock("div",Lb3,[s.unref(r)(s.unref(o),e.instance)?(s.openBlock(),s.createBlock(ml,{key:0,ref:"mpPrevIconRef","aria-label":(g=s.unref(l))==null?void 0:g.prevYear,disabled:e.isDisabled(!1),onActivate:y[0]||(y[0]=k=>v(!1))},{default:s.withCtx(()=>[m.$slots["arrow-left"]?s.renderSlot(m.$slots,"arrow-left",{key:0}):s.createCommentVNode("",!0),m.$slots["arrow-left"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(UJ),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.createElementVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":(M=s.unref(l))==null?void 0:M.openYearsOverlay,"data-test":`year-mode-btn-${e.instance}`,onClick:y[1]||(y[1]=()=>h(!1)),onKeydown:y[2]||(y[2]=s.withKeys(()=>h(!1),["enter"]))},[m.$slots.year?s.renderSlot(m.$slots,"year",{key:0,year:e.year}):s.createCommentVNode("",!0),m.$slots.year?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(e.year),1)],64))],40,Vb3),s.unref(n)(s.unref(o),e.instance)?(s.openBlock(),s.createBlock(ml,{key:1,ref:"mpNextIconRef","aria-label":(x=s.unref(l))==null?void 0:x.nextYear,disabled:e.isDisabled(!0),onActivate:y[3]||(y[3]=k=>v(!0))},{default:s.withCtx(()=>[m.$slots["arrow-right"]?s.renderSlot(m.$slots,"arrow-right",{key:0}):s.createCommentVNode("",!0),m.$slots["arrow-right"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(WJ),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:s.unref(d)(e.showYearPicker),css:s.unref(u)},{default:s.withCtx(()=>[e.showYearPicker?(s.openBlock(),s.createBlock(Cu,{key:0,items:e.items,"text-input":m.textInput,"esc-close":m.escClose,config:m.config,"is-last":m.autoApply&&!s.unref(i).keepActionRow,"hide-navigation":m.hideNavigation,"aria-labels":m.ariaLabels,type:"year",onToggle:h,onSelected:y[4]||(y[4]=k=>p(k))},s.createSlots({"button-icon":s.withCtx(()=>[m.$slots["calendar-icon"]?s.renderSlot(m.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),m.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(As),{key:1}))]),_:2},[m.$slots["year-overlay-value"]?{name:"item",fn:s.withCtx(({item:k})=>[s.renderSlot(m.$slots,"year-overlay-value",{text:k.text,value:k.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels"])):s.createCommentVNode("",!0)]),_:3},8,["name","css"])])}}}),e11=(e,t,a)=>{if(t.value&&Array.isArray(t.value))if(t.value.some(c=>O2(e,c))){const c=t.value.filter(n=>!O2(n,e));t.value=c.length?c:null}else(a&&+a>t.value.length||!a)&&t.value.push(e);else t.value=[e]},t11=(e,t,a)=>{let c=e.value?e.value.slice():[];return c.length===2&&c[1]!==null&&(c=[]),c.length?ce(t,c[0])?(c.unshift(t),a("range-start",c[0]),a("range-start",c[1])):(c[1]=t,a("range-end",t)):(c=[t],a("range-start",t)),c},zj=(e,t,a,c)=>{e&&(e[0]&&e[1]&&a&&t("auto-apply"),e[0]&&!e[1]&&c&&a&&t("auto-apply"))},eM1=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(t=>gt($1(t),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=gt($1(e.value),e.timezone))},tM1=(e,t,a,c)=>Array.isArray(t.value)&&(t.value.length===2||t.value.length===1&&c.value.partialRange)?c.value.fixedStart&&(xe(e,t.value[0])||O2(e,t.value[0]))?[t.value[0],e]:c.value.fixedEnd&&(ce(e,t.value[1])||O2(e,t.value[1]))?[e,t.value[1]]:(a("invalid-fixed-range",e),t.value):[],aM1=({multiCalendars:e,highlight:t,propDates:a,calendars:c,modelValue:n,props:r,filters:i,year:o,month:l,emit:f})=>{const u=s.computed(()=>XJ(r.yearRange,r.locale,r.reverseYears)),d=s.ref([!1]),h=s.computed(()=>(_,C)=>{const H=x3(Q0(new Date),{month:l.value(_),year:o.value(_)}),V=C?_g1(H):OJ(H);return Zg1(V,a.value.maxDate,a.value.minDate,r.preventMinMaxNavigation,C)}),p=()=>{for(let _=0;_<e.value.count;_++)if(_===0)c.value[_]=c.value[0];else{const C=x3($1(),c.value[_-1]);c.value[_]={month:D2(C),year:H2(PJ(C,1))}}},v=_=>{if(!_)return p();const C=x3($1(),c.value[_]);return c.value[0].year=H2(Ig1(C,e.value.count-1)),p()},m=_=>r.focusStartDate?_[0]:_[1]?_[1]:_[0],y=()=>{if(n.value){const _=Array.isArray(n.value)?m(n.value):n.value;c.value[0]={month:D2(_),year:H2(_)}}};s.onMounted(()=>{y(),e.value.count&&p()});const g=(_,C)=>{c.value[C].year=_,f("update-month-year",{instance:C,year:_,month:c.value[C].month}),e.value.count&&!e.value.solo&&v(C)},M=s.computed(()=>_=>ps(u.value,C=>{var H;const V=o.value(_)===C.value,N=zf(C.value,ms(a.value.minDate),ms(a.value.maxDate))||((H=i.value.years)==null?void 0:H.includes(o.value(_))),L=JJ(t.value,C.value);return{active:V,disabled:N,highlighted:L}})),x=(_,C)=>{g(_,C),b(C)},k=(_,C=!1)=>{if(!h.value(_,C)){const H=C?o.value(_)+1:o.value(_)-1;g(H,_)}},b=(_,C=!1,H)=>{C||f("reset-flow"),H!==void 0?d.value[_]=H:d.value[_]=!d.value[_],d.value[_]?f("overlay-toggle",{open:!0,overlay:d4.year}):(f("overlay-closed"),f("overlay-toggle",{open:!1,overlay:d4.year}))};return{isDisabled:h,groupedYears:M,showYearPicker:d,selectYear:g,toggleYearPicker:b,handleYearSelect:x,handleYear:k}},Sb3=(e,t)=>{const{defaultedMultiCalendars:a,defaultedAriaLabels:c,defaultedTransitions:n,defaultedConfig:r,defaultedRange:i,defaultedHighlight:o,propDates:l,defaultedTz:f,defaultedFilters:u,defaultedMultiDates:d}=ee(e),{modelValue:h,year:p,month:v,calendars:m}=zu(e,t),y=s.computed(()=>Fg1(e.formatLocale,e.locale,e.monthNameFormat)),g=s.ref(null),{checkMinMaxRange:M}=Ja(e),{selectYear:x,groupedYears:k,showYearPicker:b,toggleYearPicker:_,handleYearSelect:C,handleYear:H,isDisabled:V}=aM1({modelValue:h,multiCalendars:a,highlight:o,calendars:m,year:p,propDates:l,month:v,filters:u,props:e,emit:t});s.onMounted(()=>{e.startDate&&(h.value&&e.focusStartDate||!h.value)&&x(H2($1(e.startDate)),0)});const N=S=>S?{month:D2(S),year:H2(S)}:{month:null,year:null},L=()=>h.value?Array.isArray(h.value)?h.value.map(S=>N(S)):N(h.value):N(),w=(S,U)=>{const Z=m.value[S],A=L();return Array.isArray(A)?A.some(R=>R.year===(Z==null?void 0:Z.year)&&R.month===U):(Z==null?void 0:Z.year)===A.year&&U===A.month},P=(S,U,Z)=>{var A,R;const Q=L();return Array.isArray(Q)?p.value(U)===((A=Q[Z])==null?void 0:A.year)&&S===((R=Q[Z])==null?void 0:R.month):!1},j=(S,U)=>{if(i.value.enabled){const Z=L();if(Array.isArray(h.value)&&Array.isArray(Z)){const A=P(S,U,0)||P(S,U,1),R=a8(Q0($1()),S,p.value(U));return Mj(h.value,g.value,R)&&!A}return!1}return!1},T=s.computed(()=>S=>ps(y.value,U=>{var Z;const A=w(S,U.value),R=zf(U.value,Ug1(p.value(S),l.value.minDate),Wg1(p.value(S),l.value.maxDate))||Yx3(l.value.disabledDates,p.value(S)).includes(U.value)||((Z=u.value.months)==null?void 0:Z.includes(U.value)),Q=j(U.value,S),c1=Kg1(o.value,U.value,p.value(S));return{active:A,disabled:R,isBetween:Q,highlighted:c1}})),B=(S,U)=>a8(Q0($1()),S,p.value(U)),F=(S,U)=>{const Z=h.value?h.value:Q0(new Date);h.value=a8(Z,S,p.value(U)),t("auto-apply"),t("update-flow-step")},K=(S,U)=>{const Z=B(S,U);i.value.fixedEnd||i.value.fixedStart?h.value=tM1(Z,h,t,i):h.value?M(Z,h.value)&&(h.value=t11(h,B(S,U),t)):h.value=[B(S,U)],s.nextTick().then(()=>{zj(h.value,t,e.autoApply,e.modelAuto)})},G=(S,U)=>{e11(B(S,U),h,d.value.limit),t("auto-apply",!0)},W=(S,U)=>(m.value[U].month=S,E(U,m.value[U].year,S),d.value.enabled?G(S,U):i.value.enabled?K(S,U):F(S,U)),O=(S,U)=>{x(S,U),E(U,S,null)},E=(S,U,Z)=>{let A=Z;if(!A&&A!==0){const R=L();A=Array.isArray(R)?R[S].month:R.month}t("update-month-year",{instance:S,year:U,month:A})};return{groupedMonths:T,groupedYears:k,year:p,isDisabled:V,defaultedMultiCalendars:a,defaultedAriaLabels:c,defaultedTransitions:n,defaultedConfig:r,showYearPicker:b,modelValue:h,presetDate:(S,U)=>{eM1({value:S,modelValue:h,range:i.value.enabled,timezone:U?void 0:f.value.timezone}),t("auto-apply")},setHoverDate:(S,U)=>{g.value=B(S,U)},selectMonth:W,selectYear:O,toggleYearPicker:_,handleYearSelect:C,handleYear:H,getModelMonthYear:L}},Nb3=s.defineComponent({compatConfig:{MODE:3},__name:"MonthPicker",props:{...T6},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=s.useSlots(),r=n0(n,"yearMode"),i=e;s.onMounted(()=>{i.shadow||c("mount",null)});const{groupedMonths:o,groupedYears:l,year:f,isDisabled:u,defaultedMultiCalendars:d,defaultedConfig:h,showYearPicker:p,modelValue:v,presetDate:m,setHoverDate:y,selectMonth:g,selectYear:M,toggleYearPicker:x,handleYearSelect:k,handleYear:b,getModelMonthYear:_}=Sb3(i,c);return t({getSidebarProps:()=>({modelValue:v,year:f,getModelMonthYear:_,selectMonth:g,selectYear:M,handleYear:b}),presetDate:m,toggleYearPicker:C=>x(0,C)}),(C,H)=>(s.openBlock(),s.createBlock(bj,{"multi-calendars":s.unref(d).count,collapse:C.collapse,stretch:""},{default:s.withCtx(({instance:V})=>[C.$slots["top-extra"]?s.renderSlot(C.$slots,"top-extra",{key:0,value:C.internalModelValue}):s.createCommentVNode("",!0),C.$slots["month-year"]?s.renderSlot(C.$slots,"month-year",s.normalizeProps(s.mergeProps({key:1},{year:s.unref(f),months:s.unref(o)(V),years:s.unref(l)(V),selectMonth:s.unref(g),selectYear:s.unref(M),instance:V}))):(s.openBlock(),s.createBlock(Cu,{key:2,items:s.unref(o)(V),"arrow-navigation":C.arrowNavigation,"is-last":C.autoApply&&!s.unref(h).keepActionRow,"esc-close":C.escClose,height:s.unref(h).modeHeight,config:C.config,"no-overlay-focus":!!(C.noOverlayFocus||C.textInput),"use-relative":"",type:"month",onSelected:N=>s.unref(g)(N,V),onHoverValue:N=>s.unref(y)(N,V)},s.createSlots({header:s.withCtx(()=>[s.createVNode(Jg1,s.mergeProps(C.$props,{items:s.unref(l)(V),instance:V,"show-year-picker":s.unref(p)[V],year:s.unref(f)(V),"is-disabled":N=>s.unref(u)(V,N),onHandleYear:N=>s.unref(b)(V,N),onYearSelect:N=>s.unref(k)(N,V),onToggleYearPicker:N=>s.unref(x)(V,N==null?void 0:N.flow,N==null?void 0:N.show)}),s.createSlots({_:2},[s.renderList(s.unref(r),(N,L)=>({name:N,fn:s.withCtx(w=>[s.renderSlot(C.$slots,N,s.normalizeProps(s.guardReactiveProps(w)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[C.$slots["month-overlay-value"]?{name:"item",fn:s.withCtx(({item:N})=>[s.renderSlot(C.$slots,"month-overlay-value",{text:N.text,value:N.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse"]))}}),Ab3=(e,t)=>{const{modelValue:a}=zu(e,t),c=s.ref(null),{defaultedHighlight:n,defaultedMultiDates:r,defaultedFilters:i,defaultedRange:o,propDates:l}=ee(e),f=s.ref();s.onMounted(()=>{e.startDate&&(a.value&&e.focusStartDate||!a.value)&&(f.value=H2($1(e.startDate)))});const u=v=>Array.isArray(a.value)?a.value.some(m=>H2(m)===v):a.value?H2(a.value)===v:!1,d=v=>o.value.enabled&&Array.isArray(a.value)?Mj(a.value,c.value,p(v)):!1,h=s.computed(()=>ps(XJ(e.yearRange,e.locale,e.reverseYears),v=>{const m=u(v.value),y=zf(v.value,ms(l.value.minDate),ms(l.value.maxDate))||i.value.years.includes(v.value),g=d(v.value)&&!m,M=JJ(n.value,v.value);return{active:m,disabled:y,isBetween:g,highlighted:M}})),p=v=>ot(Q0(new Date),v);return{groupedYears:h,modelValue:a,focusYear:f,setHoverValue:v=>{c.value=ot(Q0(new Date),v)},selectYear:v=>{var m;if(t("update-month-year",{instance:0,year:v}),r.value.enabled)return a.value?Array.isArray(a.value)&&(((m=a.value)==null?void 0:m.map(y=>H2(y))).includes(v)?a.value=a.value.filter(y=>H2(y)!==v):a.value.push(ot(u0($1()),v))):a.value=[ot(u0($1()),v)],t("auto-apply",!0);o.value.enabled?(a.value=t11(a,p(v),t),s.nextTick().then(()=>{zj(a.value,t,e.autoApply,e.modelAuto)})):(a.value=p(v),t("auto-apply"))}}},Tb3=s.defineComponent({compatConfig:{MODE:3},__name:"YearPicker",props:{...T6},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:t,emit:a}){const c=a,n=e,{groupedYears:r,modelValue:i,focusYear:o,selectYear:l,setHoverValue:f}=Ab3(n,c),{defaultedConfig:u}=ee(n);return t({getSidebarProps:()=>({modelValue:i,selectYear:l})}),(d,h)=>(s.openBlock(),s.createElementBlock("div",null,[d.$slots["top-extra"]?s.renderSlot(d.$slots,"top-extra",{key:0,value:d.internalModelValue}):s.createCommentVNode("",!0),d.$slots["month-year"]?s.renderSlot(d.$slots,"month-year",s.normalizeProps(s.mergeProps({key:1},{years:s.unref(r),selectYear:s.unref(l)}))):(s.openBlock(),s.createBlock(Cu,{key:2,items:s.unref(r),"is-last":d.autoApply&&!s.unref(u).keepActionRow,height:s.unref(u).modeHeight,config:d.config,"no-overlay-focus":!!(d.noOverlayFocus||d.textInput),"focus-value":s.unref(o),type:"year","use-relative":"",onSelected:s.unref(l),onHoverValue:s.unref(f)},s.createSlots({_:2},[d.$slots["year-overlay-value"]?{name:"item",fn:s.withCtx(({item:p})=>[s.renderSlot(d.$slots,"year-overlay-value",{text:p.text,value:p.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),Eb3={key:0,class:"dp__time_input"},Db3=["data-test","aria-label","onKeydown","onClick","onMousedown"],Pb3=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),Ob3=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),Ib3=["aria-label","disabled","data-test","onKeydown","onClick"],Bb3=["data-test","aria-label","onKeydown","onClick","onMousedown"],Rb3=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),Fb3=s.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),$b3={key:0},qb3=["aria-label"],jb3=s.defineComponent({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...T6},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:t,emit:a}){const c=a,n=e,{setTimePickerElements:r,setTimePickerBackRef:i}=Qa(),{defaultedAriaLabels:o,defaultedTransitions:l,defaultedFilters:f,defaultedConfig:u,defaultedRange:d}=ee(n),{transitionName:h,showTransition:p}=bu(l),v=s.reactive({hours:!1,minutes:!1,seconds:!1}),m=s.ref("AM"),y=s.ref(null),g=s.ref([]),M=s.ref();s.onMounted(()=>{c("mounted")});const x=Y=>x3(new Date,{hours:Y.hours,minutes:Y.minutes,seconds:n.enableSeconds?Y.seconds:0,milliseconds:0}),k=s.computed(()=>Y=>B(Y,n[Y])||_(Y,n[Y])),b=s.computed(()=>({hours:n.hours,minutes:n.minutes,seconds:n.seconds})),_=(Y,d1)=>d.value.enabled&&!d.value.disableTimeRangeValidation?!n.validateTime(Y,d1):!1,C=(Y,d1)=>{if(d.value.enabled&&!d.value.disableTimeRangeValidation){const x1=d1?+n[`${Y}Increment`]:-+n[`${Y}Increment`],f1=n[Y]+x1;return!n.validateTime(Y,f1)}return!1},H=s.computed(()=>Y=>!O(+n[Y]+ +n[`${Y}Increment`],Y)||C(Y,!0)),V=s.computed(()=>Y=>!O(+n[Y]-+n[`${Y}Increment`],Y)||C(Y,!1)),N=(Y,d1)=>gg1(x3($1(),Y),d1),L=(Y,d1)=>Lx3(x3($1(),Y),d1),w=s.computed(()=>({dp__time_col:!0,dp__time_col_block:!n.timePickerInline,dp__time_col_reg_block:!n.enableSeconds&&n.is24&&!n.timePickerInline,dp__time_col_reg_inline:!n.enableSeconds&&n.is24&&n.timePickerInline,dp__time_col_reg_with_button:!n.enableSeconds&&!n.is24,dp__time_col_sec:n.enableSeconds&&n.is24,dp__time_col_sec_with_button:n.enableSeconds&&!n.is24})),P=s.computed(()=>{const Y=[{type:"hours"}];return n.enableMinutes&&Y.push({type:"",separator:!0},{type:"minutes"}),n.enableSeconds&&Y.push({type:"",separator:!0},{type:"seconds"}),Y}),j=s.computed(()=>P.value.filter(Y=>!Y.separator)),T=s.computed(()=>Y=>{if(Y==="hours"){const d1=R(+n.hours);return{text:d1<10?`0${d1}`:`${d1}`,value:d1}}return{text:n[Y]<10?`0${n[Y]}`:`${n[Y]}`,value:n[Y]}}),B=(Y,d1)=>{var x1;if(!n.disabledTimesConfig)return!1;const f1=n.disabledTimesConfig(n.order,Y==="hours"?d1:void 0);return f1[Y]?!!((x1=f1[Y])!=null&&x1.includes(d1)):!0},F=(Y,d1)=>d1!=="hours"||m.value==="AM"?Y:Y+12,K=Y=>{const d1=n.is24?24:12,x1=Y==="hours"?d1:60,f1=+n[`${Y}GridIncrement`],t1=Y==="hours"&&!n.is24?f1:0,l1=[];for(let i1=t1;i1<x1;i1+=f1)l1.push({value:n.is24?i1:F(i1,Y),text:i1<10?`0${i1}`:`${i1}`});return Y==="hours"&&!n.is24&&l1.unshift({value:m.value==="PM"?12:0,text:"12"}),ps(l1,i1=>({active:!1,disabled:f.value.times[Y].includes(i1.value)||!O(i1.value,Y)||B(Y,i1.value)||_(Y,i1.value)}))},G=Y=>Y>=0?Y:59,W=Y=>Y>=0?Y:23,O=(Y,d1)=>{const x1=n.minTime?x(FW(n.minTime)):null,f1=n.maxTime?x(FW(n.maxTime)):null,t1=x(FW(b.value,d1,d1==="minutes"||d1==="seconds"?G(Y):W(Y)));return x1&&f1?(bf(t1,f1)||xo(t1,f1))&&(ds(t1,x1)||xo(t1,x1)):x1?ds(t1,x1)||xo(t1,x1):f1?bf(t1,f1)||xo(t1,f1):!0},E=Y=>n[`no${Y[0].toUpperCase()+Y.slice(1)}Overlay`],S=Y=>{E(Y)||(v[Y]=!v[Y],v[Y]?c("overlay-opened",Y):c("overlay-closed",Y))},U=Y=>Y==="hours"?M8:Y==="minutes"?Ia:us,Z=()=>{M.value&&clearTimeout(M.value)},A=(Y,d1=!0,x1)=>{const f1=d1?N:L,t1=d1?+n[`${Y}Increment`]:-+n[`${Y}Increment`];O(+n[Y]+t1,Y)&&c(`update:${Y}`,U(Y)(f1({[Y]:+n[Y]},{[Y]:+n[`${Y}Increment`]}))),!(x1!=null&&x1.keyboard)&&u.value.timeArrowHoldThreshold&&(M.value=setTimeout(()=>{A(Y,d1)},u.value.timeArrowHoldThreshold))},R=Y=>n.is24?Y:(Y>=12?m.value="PM":m.value="AM",Ex3(Y)),Q=()=>{m.value==="PM"?(m.value="AM",c("update:hours",n.hours-12)):(m.value="PM",c("update:hours",n.hours+12)),c("am-pm-change",m.value)},c1=Y=>{v[Y]=!0},e1=(Y,d1,x1)=>{if(Y&&n.arrowNavigation){Array.isArray(g.value[d1])?g.value[d1][x1]=Y:g.value[d1]=[Y];const f1=g.value.reduce((t1,l1)=>l1.map((i1,p1)=>[...t1[p1]||[],l1[p1]]),[]);i(n.closeTimePickerBtn),y.value&&(f1[1]=f1[1].concat(y.value)),r(f1,n.order)}},s1=(Y,d1)=>(S(Y),c(`update:${Y}`,d1));return t({openChildCmp:c1}),(Y,d1)=>{var x1;return Y.disabled?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Eb3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(P.value,(f1,t1)=>{var l1,i1,p1;return s.openBlock(),s.createElementBlock("div",{key:t1,class:s.normalizeClass(w.value)},[f1.separator?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(" : ")],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("button",{ref_for:!0,ref:b1=>e1(b1,t1,0),type:"button",class:s.normalizeClass({dp__btn:!0,dp__inc_dec_button:!Y.timePickerInline,dp__inc_dec_button_inline:Y.timePickerInline,dp__tp_inline_btn_top:Y.timePickerInline,dp__inc_dec_button_disabled:H.value(f1.type)}),"data-test":`${f1.type}-time-inc-btn-${n.order}`,"aria-label":(l1=s.unref(o))==null?void 0:l1.incrementValue(f1.type),tabindex:"0",onKeydown:b1=>s.unref(Y4)(b1,()=>A(f1.type,!0,{keyboard:!0}),!0),onClick:b1=>s.unref(u).timeArrowHoldThreshold?void 0:A(f1.type,!0),onMousedown:b1=>s.unref(u).timeArrowHoldThreshold?A(f1.type,!0):void 0,onMouseup:Z},[n.timePickerInline?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Pb3,Ob3],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Y.$slots["arrow-up"]?s.renderSlot(Y.$slots,"arrow-up",{key:0}):s.createCommentVNode("",!0),Y.$slots["arrow-up"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(GJ),{key:1}))],64))],42,Db3),s.createElementVNode("button",{ref_for:!0,ref:b1=>e1(b1,t1,1),type:"button","aria-label":(i1=s.unref(o))==null?void 0:i1.openTpOverlay(f1.type),class:s.normalizeClass({dp__time_display:!0,dp__time_display_block:!Y.timePickerInline,dp__time_display_inline:Y.timePickerInline,"dp--time-invalid":k.value(f1.type),"dp--time-overlay-btn":!k.value(f1.type)}),disabled:E(f1.type),tabindex:"0","data-test":`${f1.type}-toggle-overlay-btn-${n.order}`,onKeydown:b1=>s.unref(Y4)(b1,()=>S(f1.type),!0),onClick:b1=>S(f1.type)},[Y.$slots[f1.type]?s.renderSlot(Y.$slots,f1.type,{key:0,text:T.value(f1.type).text,value:T.value(f1.type).value}):s.createCommentVNode("",!0),Y.$slots[f1.type]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(T.value(f1.type).text),1)],64))],42,Ib3),s.createElementVNode("button",{ref_for:!0,ref:b1=>e1(b1,t1,2),type:"button",class:s.normalizeClass({dp__btn:!0,dp__inc_dec_button:!Y.timePickerInline,dp__inc_dec_button_inline:Y.timePickerInline,dp__tp_inline_btn_bottom:Y.timePickerInline,dp__inc_dec_button_disabled:V.value(f1.type)}),"data-test":`${f1.type}-time-dec-btn-${n.order}`,"aria-label":(p1=s.unref(o))==null?void 0:p1.decrementValue(f1.type),tabindex:"0",onKeydown:b1=>s.unref(Y4)(b1,()=>A(f1.type,!1,{keyboard:!0}),!0),onClick:b1=>s.unref(u).timeArrowHoldThreshold?void 0:A(f1.type,!1),onMousedown:b1=>s.unref(u).timeArrowHoldThreshold?A(f1.type,!1):void 0,onMouseup:Z},[n.timePickerInline?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Rb3,Fb3],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Y.$slots["arrow-down"]?s.renderSlot(Y.$slots,"arrow-down",{key:0}):s.createCommentVNode("",!0),Y.$slots["arrow-down"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(ZJ),{key:1}))],64))],42,Bb3)],64))],2)}),128)),Y.is24?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",$b3,[Y.$slots["am-pm-button"]?s.renderSlot(Y.$slots,"am-pm-button",{key:0,toggle:Q,value:m.value}):s.createCommentVNode("",!0),Y.$slots["am-pm-button"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:y,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(x1=s.unref(o))==null?void 0:x1.amPmButton,tabindex:"0",onClick:Q,onKeydown:d1[0]||(d1[0]=f1=>s.unref(Y4)(f1,()=>Q(),!0))},s.toDisplayString(m.value),41,qb3))])),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(j.value,(f1,t1)=>(s.openBlock(),s.createBlock(s.Transition,{key:t1,name:s.unref(h)(v[f1.type]),css:s.unref(p)},{default:s.withCtx(()=>[v[f1.type]?(s.openBlock(),s.createBlock(Cu,{key:0,items:K(f1.type),"is-last":Y.autoApply&&!s.unref(u).keepActionRow,"esc-close":Y.escClose,type:f1.type,"text-input":Y.textInput,config:Y.config,"arrow-navigation":Y.arrowNavigation,"aria-labels":Y.ariaLabels,onSelected:l1=>s1(f1.type,l1),onToggle:l1=>S(f1.type),onResetFlow:d1[1]||(d1[1]=l1=>Y.$emit("reset-flow"))},s.createSlots({"button-icon":s.withCtx(()=>[Y.$slots["clock-icon"]?s.renderSlot(Y.$slots,"clock-icon",{key:0}):s.createCommentVNode("",!0),Y.$slots["clock-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(Y.timePickerInline?s.unref(As):s.unref(YJ)),{key:1}))]),_:2},[Y.$slots[`${f1.type}-overlay-value`]?{name:"item",fn:s.withCtx(({item:l1})=>[s.renderSlot(Y.$slots,`${f1.type}-overlay-value`,{text:l1.text,value:l1.value})]),key:"0"}:void 0,Y.$slots[`${f1.type}-overlay-header`]?{name:"header",fn:s.withCtx(()=>[s.renderSlot(Y.$slots,`${f1.type}-overlay-header`,{toggle:()=>S(f1.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","onSelected","onToggle"])):s.createCommentVNode("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),Ub3={class:"dp--tp-wrap"},Wb3=["aria-label","tabindex"],Yb3=["tabindex"],Gb3=["aria-label"],cM1=s.defineComponent({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...T6},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:a}){const c=a,n=e,{buildMatrix:r,setTimePicker:i}=Qa(),o=s.useSlots(),{defaultedTransitions:l,defaultedAriaLabels:f,defaultedTextInput:u,defaultedConfig:d,defaultedRange:h}=ee(n),{transitionName:p,showTransition:v}=bu(l),{hideNavigationButtons:m}=kj(),y=s.ref(null),g=s.ref(null),M=s.ref([]),x=s.ref(null);s.onMounted(()=>{c("mount"),!n.timePicker&&n.arrowNavigation?r([Pe(y.value)],"time"):i(!0,n.timePicker)});const k=s.computed(()=>h.value.enabled&&n.modelAuto?$g1(n.internalModelValue):!0),b=s.ref(!1),_=F=>({hours:Array.isArray(n.hours)?n.hours[F]:n.hours,minutes:Array.isArray(n.minutes)?n.minutes[F]:n.minutes,seconds:Array.isArray(n.seconds)?n.seconds[F]:n.seconds}),C=s.computed(()=>{const F=[];if(h.value.enabled)for(let K=0;K<2;K++)F.push(_(K));else F.push(_(0));return F}),H=(F,K=!1,G="")=>{K||c("reset-flow"),b.value=F,c(F?"overlay-opened":"overlay-closed",d4.time),n.arrowNavigation&&i(F),s.nextTick(()=>{G!==""&&M.value[0]&&M.value[0].openChildCmp(G)})},V=s.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:n.autoApply&&!d.value.keepActionRow})),N=n0(o,"timePicker"),L=(F,K,G)=>h.value.enabled?K===0?[F,C.value[1][G]]:[C.value[0][G],F]:F,w=F=>{c("update:hours",F)},P=F=>{c("update:minutes",F)},j=F=>{c("update:seconds",F)},T=()=>{if(x.value&&!u.value.enabled&&!n.noOverlayFocus){const F=qg1(x.value);F&&F.focus({preventScroll:!0})}},B=F=>{c("overlay-closed",F)};return t({toggleTimePicker:H}),(F,K)=>{var G;return s.openBlock(),s.createElementBlock("div",Ub3,[!F.timePicker&&!F.timePickerInline?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:0,ref_key:"openTimePickerBtn",ref:y,type:"button",class:s.normalizeClass(V.value),"aria-label":(G=s.unref(f))==null?void 0:G.openTimePicker,tabindex:F.noOverlayFocus?void 0:0,"data-test":"open-time-picker-btn",onKeydown:K[0]||(K[0]=W=>s.unref(Y4)(W,()=>H(!0))),onClick:K[1]||(K[1]=W=>H(!0))},[F.$slots["clock-icon"]?s.renderSlot(F.$slots,"clock-icon",{key:0}):s.createCommentVNode("",!0),F.$slots["clock-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(YJ),{key:1}))],42,Wb3)),[[s.vShow,!s.unref(m)(F.hideNavigation,"time")]]):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:s.unref(p)(b.value),css:s.unref(v)&&!F.timePickerInline},{default:s.withCtx(()=>{var W;return[b.value||F.timePicker||F.timePickerInline?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"overlayRef",ref:x,class:s.normalizeClass({dp__overlay:!F.timePickerInline,"dp--overlay-absolute":!n.timePicker&&!F.timePickerInline,"dp--overlay-relative":n.timePicker}),style:s.normalizeStyle(F.timePicker?{height:`${s.unref(d).modeHeight}px`}:void 0),tabindex:F.timePickerInline?void 0:0},[s.createElementVNode("div",{class:s.normalizeClass(F.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[F.$slots["time-picker-overlay"]?s.renderSlot(F.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:w,setMinutes:P,setSeconds:j}):s.createCommentVNode("",!0),F.$slots["time-picker-overlay"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(F.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.value,(O,E)=>s.withDirectives((s.openBlock(),s.createBlock(jb3,s.mergeProps({key:E,ref_for:!0},{...F.$props,order:E,hours:O.hours,minutes:O.minutes,seconds:O.seconds,closeTimePickerBtn:g.value,disabledTimesConfig:e.disabledTimesConfig,disabled:E===0?F.fixedStart:F.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:M,"validate-time":(S,U)=>e.validateTime(S,L(U,E,S)),"onUpdate:hours":S=>w(L(S,E,"hours")),"onUpdate:minutes":S=>P(L(S,E,"minutes")),"onUpdate:seconds":S=>j(L(S,E,"seconds")),onMounted:T,onOverlayClosed:B,onOverlayOpened:K[2]||(K[2]=S=>F.$emit("overlay-opened",S)),onAmPmChange:K[3]||(K[3]=S=>F.$emit("am-pm-change",S))}),s.createSlots({_:2},[s.renderList(s.unref(N),(S,U)=>({name:S,fn:s.withCtx(Z=>[s.renderSlot(F.$slots,S,s.mergeProps({ref_for:!0},Z))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[s.vShow,E===0?!0:k.value]])),128))],2)),!F.timePicker&&!F.timePickerInline?s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:2,ref_key:"closeTimePickerBtn",ref:g,type:"button",class:s.normalizeClass(V.value),"aria-label":(W=s.unref(f))==null?void 0:W.closeTimePicker,tabindex:"0",onKeydown:K[4]||(K[4]=O=>s.unref(Y4)(O,()=>H(!1))),onClick:K[5]||(K[5]=O=>H(!1))},[F.$slots["calendar-icon"]?s.renderSlot(F.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),F.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(As),{key:1}))],42,Gb3)),[[s.vShow,!s.unref(m)(F.hideNavigation,"time")]]):s.createCommentVNode("",!0)],2)],14,Yb3)):s.createCommentVNode("",!0)]}),_:3},8,["name","css"])])}}}),nM1=(e,t,a,c)=>{const{defaultedRange:n}=ee(e),r=(x,k)=>Array.isArray(t[x])?t[x][k]:t[x],i=x=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[x]:t.seconds:0,o=(x,k)=>x?k!==void 0?Ca(x,r("hours",k),r("minutes",k),i(k)):Ca(x,t.hours,t.minutes,i()):jJ($1(),i(k)),l=(x,k)=>{t[x]=k},f=s.computed(()=>e.modelAuto&&n.value.enabled?Array.isArray(a.value)?a.value.length>1:!1:n.value.enabled),u=(x,k)=>{const b=Object.fromEntries(Object.keys(t).map(_=>_===x?[_,k]:[_,t[_]].slice()));if(f.value&&!n.value.disableTimeRangeValidation){const _=H=>a.value?Ca(a.value[H],b.hours[H],b.minutes[H],b.seconds[H]):null,C=H=>qJ(a.value[H],0);return!(O2(_(0),_(1))&&(ds(_(0),C(1))||bf(_(1),C(0))))}return!0},d=(x,k)=>{u(x,k)&&(l(x,k),c&&c())},h=x=>{d("hours",x)},p=x=>{d("minutes",x)},v=x=>{d("seconds",x)},m=(x,k,b,_)=>{k&&h(x),!k&&!b&&p(x),b&&v(x),a.value&&_(a.value)},y=x=>{if(x){const k=Array.isArray(x),b=k?[+x[0].hours,+x[1].hours]:+x.hours,_=k?[+x[0].minutes,+x[1].minutes]:+x.minutes,C=k?[+x[0].seconds,+x[1].seconds]:+x.seconds;l("hours",b),l("minutes",_),e.enableSeconds&&l("seconds",C)}},g=(x,k)=>{const b={hours:Array.isArray(t.hours)?t.hours[x]:t.hours,disabledArr:[]};return(k||k===0)&&(b.hours=k),Array.isArray(e.disabledTimes)&&(b.disabledArr=n.value.enabled&&Array.isArray(e.disabledTimes[x])?e.disabledTimes[x]:e.disabledTimes),b},M=s.computed(()=>(x,k)=>{var b;if(Array.isArray(e.disabledTimes)){const{disabledArr:_,hours:C}=g(x,k),H=_.filter(V=>+V.hours===C);return((b=H[0])==null?void 0:b.minutes)==="*"?{hours:[C],minutes:void 0,seconds:void 0}:{hours:[],minutes:(H==null?void 0:H.map(V=>+V.minutes))??[],seconds:(H==null?void 0:H.map(V=>V.seconds?+V.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:l,updateHours:h,updateMinutes:p,updateSeconds:v,getSetDateTime:o,updateTimeValues:m,getSecondsValue:i,assignStartTime:y,validateTime:u,disabledTimesConfig:M}},Zb3=(e,t)=>{const{modelValue:a,time:c}=zu(e,t),{defaultedStartTime:n,defaultedRange:r}=ee(e),{updateTimeValues:i,getSetDateTime:o,setTime:l,assignStartTime:f,disabledTimesConfig:u,validateTime:d}=nM1(e,c,a,h);function h(){t("update-flow-step")}const p=k=>{const{hours:b,minutes:_,seconds:C}=k;return{hours:+b,minutes:+_,seconds:C?+C:0}},v=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const b=p(e.startTime[0]),_=p(e.startTime[1]);return[x3($1(),b),x3($1(),_)]}const k=p(e.startTime);return x3($1(),k)}return r.value.enabled?[null,null]:null},m=()=>{if(r.value.enabled){const[k,b]=v();a.value=[o(k,0),o(b,1)]}else a.value=o(v())},y=k=>Array.isArray(k)?[ni($1(k[0])),ni($1(k[1]))]:[ni(k??$1())],g=(k,b,_)=>{l("hours",k),l("minutes",b),l("seconds",e.enableSeconds?_:0)},M=()=>{const[k,b]=y(a.value);return r.value.enabled?g([k.hours,b.hours],[k.minutes,b.minutes],[k.seconds,b.seconds]):g(k.hours,k.minutes,k.seconds)};s.onMounted(()=>{if(!e.shadow)return f(n.value),a.value?M():m()});const x=()=>{Array.isArray(a.value)?a.value=a.value.map((k,b)=>k&&o(k,b)):a.value=o(a.value),t("time-update")};return{modelValue:a,time:c,disabledTimesConfig:u,updateTime:(k,b=!0,_=!1)=>{i(k,b,_,x)},validateTime:d}},Xb3=s.defineComponent({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...T6},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.useSlots(),i=n0(r,"timePicker"),o=s.ref(null),{time:l,modelValue:f,disabledTimesConfig:u,updateTime:d,validateTime:h}=Zb3(n,c);return s.onMounted(()=>{n.shadow||c("mount",null)}),t({getSidebarProps:()=>({modelValue:f,time:l,updateTime:d}),toggleTimePicker:(p,v=!1,m="")=>{var y;(y=o.value)==null||y.toggleTimePicker(p,v,m)}}),(p,v)=>(s.openBlock(),s.createBlock(bj,{"multi-calendars":0,stretch:""},{default:s.withCtx(()=>[s.createVNode(cM1,s.mergeProps({ref_key:"tpRef",ref:o},p.$props,{hours:s.unref(l).hours,minutes:s.unref(l).minutes,seconds:s.unref(l).seconds,"internal-model-value":p.internalModelValue,"disabled-times-config":s.unref(u),"validate-time":s.unref(h),"onUpdate:hours":v[0]||(v[0]=m=>s.unref(d)(m)),"onUpdate:minutes":v[1]||(v[1]=m=>s.unref(d)(m,!1)),"onUpdate:seconds":v[2]||(v[2]=m=>s.unref(d)(m,!1,!0)),onAmPmChange:v[3]||(v[3]=m=>p.$emit("am-pm-change",m)),onResetFlow:v[4]||(v[4]=m=>p.$emit("reset-flow")),onOverlayClosed:v[5]||(v[5]=m=>p.$emit("overlay-toggle",{open:!1,overlay:m})),onOverlayOpened:v[6]||(v[6]=m=>p.$emit("overlay-toggle",{open:!0,overlay:m}))}),s.createSlots({_:2},[s.renderList(s.unref(i),(m,y)=>({name:m,fn:s.withCtx(g=>[s.renderSlot(p.$slots,m,s.normalizeProps(s.guardReactiveProps(g)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3}))}}),Kb3={class:"dp--header-wrap"},Qb3={key:0,class:"dp__month_year_wrap"},Jb3={key:0},ez3={class:"dp__month_year_wrap"},tz3=["aria-label","data-test","onClick","onKeydown"],az3=s.defineComponent({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...T6},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:t,emit:a}){const c=a,n=e,{defaultedTransitions:r,defaultedAriaLabels:i,defaultedMultiCalendars:o,defaultedFilters:l,defaultedConfig:f,defaultedHighlight:u,propDates:d}=ee(n),{transitionName:h,showTransition:p}=bu(r),{buildMatrix:v}=Qa(),{handleMonthYearChange:m,isDisabled:y,updateMonthYear:g}=ub3(n,c),{showLeftIcon:M,showRightIcon:x}=kj(),k=s.ref(!1),b=s.ref(!1),_=s.ref([null,null,null,null]);s.onMounted(()=>{c("mount")});const C=O=>({get:()=>n[O],set:E=>{const S=O===$0.month?$0.year:$0.month;c("update-month-year",{[O]:E,[S]:n[S]}),O===$0.month?T(!0):B(!0)}}),H=s.computed(C($0.month)),V=s.computed(C($0.year)),N=s.computed(()=>O=>({month:n.month,year:n.year,items:O===$0.month?n.months:n.years,instance:n.instance,updateMonthYear:g,toggle:O===$0.month?T:B})),L=s.computed(()=>n.months.find(E=>E.value===n.month)||{text:"",value:0}),w=s.computed(()=>ps(n.months,O=>{const E=n.month===O.value,S=zf(O.value,Ug1(n.year,d.value.minDate),Wg1(n.year,d.value.maxDate))||l.value.months.includes(O.value),U=Kg1(u.value,O.value,n.year);return{active:E,disabled:S,highlighted:U}})),P=s.computed(()=>ps(n.years,O=>{const E=n.year===O.value,S=zf(O.value,ms(d.value.minDate),ms(d.value.maxDate))||l.value.years.includes(O.value),U=JJ(u.value,O.value);return{active:E,disabled:S,highlighted:U}})),j=(O,E,S)=>{S!==void 0?O.value=S:O.value=!O.value,O.value?c("overlay-opened",E):c("overlay-closed",E)},T=(O=!1,E)=>{F(O),j(k,d4.month,E)},B=(O=!1,E)=>{F(O),j(b,d4.year,E)},F=O=>{O||c("reset-flow")},K=(O,E)=>{n.arrowNavigation&&(_.value[E]=Pe(O),v(_.value,"monthYear"))},G=s.computed(()=>{var O,E;return[{type:$0.month,index:1,toggle:T,modelValue:H.value,updateModelValue:S=>H.value=S,text:L.value.text,showSelectionGrid:k.value,items:w.value,ariaLabel:(O=i.value)==null?void 0:O.openMonthsOverlay},{type:$0.year,index:2,toggle:B,modelValue:V.value,updateModelValue:S=>V.value=S,text:jg1(n.year,n.locale),showSelectionGrid:b.value,items:P.value,ariaLabel:(E=i.value)==null?void 0:E.openYearsOverlay}]}),W=s.computed(()=>n.disableYearSelect?[G.value[0]]:n.yearFirst?[...G.value].reverse():G.value);return t({toggleMonthPicker:T,toggleYearPicker:B,handleMonthYearChange:m}),(O,E)=>{var S,U,Z;return s.openBlock(),s.createElementBlock("div",Kb3,[O.$slots["month-year"]?(s.openBlock(),s.createElementBlock("div",Qb3,[s.renderSlot(O.$slots,"month-year",s.normalizeProps(s.guardReactiveProps({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:s.unref(g),handleMonthYearChange:s.unref(m),instance:e.instance})))])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[O.$slots["top-extra"]?(s.openBlock(),s.createElementBlock("div",Jb3,[s.renderSlot(O.$slots,"top-extra",{value:O.internalModelValue})])):s.createCommentVNode("",!0),s.createElementVNode("div",ez3,[s.unref(M)(s.unref(o),e.instance)&&!O.vertical?(s.openBlock(),s.createBlock(ml,{key:0,"aria-label":(S=s.unref(i))==null?void 0:S.prevMonth,disabled:s.unref(y)(!1),onActivate:E[0]||(E[0]=A=>s.unref(m)(!1,!0)),onSetRef:E[1]||(E[1]=A=>K(A,0))},{default:s.withCtx(()=>[O.$slots["arrow-left"]?s.renderSlot(O.$slots,"arrow-left",{key:0}):s.createCommentVNode("",!0),O.$slots["arrow-left"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(UJ),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:O.disableYearSelect}])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(W.value,(A,R)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:A.type},[s.createElementVNode("button",{ref_for:!0,ref:Q=>K(Q,R+1),type:"button",class:"dp__btn dp__month_year_select",tabindex:"0","aria-label":A.ariaLabel,"data-test":`${A.type}-toggle-overlay-${e.instance}`,onClick:A.toggle,onKeydown:Q=>s.unref(Y4)(Q,()=>A.toggle(),!0)},[O.$slots[A.type]?s.renderSlot(O.$slots,A.type,{key:0,text:A.text,value:n[A.type]}):s.createCommentVNode("",!0),O.$slots[A.type]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(A.text),1)],64))],40,tz3),s.createVNode(s.Transition,{name:s.unref(h)(A.showSelectionGrid),css:s.unref(p)},{default:s.withCtx(()=>[A.showSelectionGrid?(s.openBlock(),s.createBlock(Cu,{key:0,items:A.items,"arrow-navigation":O.arrowNavigation,"hide-navigation":O.hideNavigation,"is-last":O.autoApply&&!s.unref(f).keepActionRow,"skip-button-ref":!1,config:O.config,type:A.type,"header-refs":[],"esc-close":O.escClose,"menu-wrap-ref":O.menuWrapRef,"text-input":O.textInput,"aria-labels":O.ariaLabels,onSelected:A.updateModelValue,onToggle:A.toggle},s.createSlots({"button-icon":s.withCtx(()=>[O.$slots["calendar-icon"]?s.renderSlot(O.$slots,"calendar-icon",{key:0}):s.createCommentVNode("",!0),O.$slots["calendar-icon"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(As),{key:1}))]),_:2},[O.$slots[`${A.type}-overlay-value`]?{name:"item",fn:s.withCtx(({item:Q})=>[s.renderSlot(O.$slots,`${A.type}-overlay-value`,{text:Q.text,value:Q.value})]),key:"0"}:void 0,O.$slots[`${A.type}-overlay`]?{name:"overlay",fn:s.withCtx(()=>[s.renderSlot(O.$slots,`${A.type}-overlay`,s.mergeProps({ref_for:!0},N.value(A.type)))]),key:"1"}:void 0,O.$slots[`${A.type}-overlay-header`]?{name:"header",fn:s.withCtx(()=>[s.renderSlot(O.$slots,`${A.type}-overlay-header`,{toggle:A.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","onSelected","onToggle"])):s.createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),s.unref(M)(s.unref(o),e.instance)&&O.vertical?(s.openBlock(),s.createBlock(ml,{key:1,"aria-label":(U=s.unref(i))==null?void 0:U.prevMonth,disabled:s.unref(y)(!1),onActivate:E[2]||(E[2]=A=>s.unref(m)(!1,!0))},{default:s.withCtx(()=>[O.$slots["arrow-up"]?s.renderSlot(O.$slots,"arrow-up",{key:0}):s.createCommentVNode("",!0),O.$slots["arrow-up"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(GJ),{key:1}))]),_:3},8,["aria-label","disabled"])):s.createCommentVNode("",!0),s.unref(x)(s.unref(o),e.instance)?(s.openBlock(),s.createBlock(ml,{key:2,ref:"rightIcon",disabled:s.unref(y)(!0),"aria-label":(Z=s.unref(i))==null?void 0:Z.nextMonth,onActivate:E[3]||(E[3]=A=>s.unref(m)(!0,!0)),onSetRef:E[4]||(E[4]=A=>K(A,O.disableYearSelect?2:3))},{default:s.withCtx(()=>[O.$slots[O.vertical?"arrow-down":"arrow-right"]?s.renderSlot(O.$slots,O.vertical?"arrow-down":"arrow-right",{key:0}):s.createCommentVNode("",!0),O.$slots[O.vertical?"arrow-down":"arrow-right"]?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(O.vertical?s.unref(ZJ):s.unref(WJ)),{key:1}))]),_:3},8,["disabled","aria-label"])):s.createCommentVNode("",!0)])],64))])}}}),cz3=["aria-label"],nz3={class:"dp__calendar_header",role:"row"},rz3={key:0,class:"dp__calendar_header_item",role:"gridcell"},iz3=["aria-label"],oz3=s.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1),sz3=["aria-label"],lz3={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},fz3={class:"dp__cell_inner"},uz3=["id","aria-selected","aria-disabled","aria-label","data-test","onClick","onKeydown","onMouseenter","onMouseleave","onMousedown"],dz3=s.defineComponent({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...T6},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:a}){const c=a,n=e,{buildMultiLevelMatrix:r}=Qa(),{defaultedTransitions:i,defaultedConfig:o,defaultedAriaLabels:l,defaultedMultiCalendars:f,defaultedWeekNumbers:u,defaultedMultiDates:d}=ee(n),h=s.ref(null),p=s.ref({bottom:"",left:"",transform:""}),v=s.ref([]),m=s.ref(null),y=s.ref(!0),g=s.ref(""),M=s.ref({startX:0,endX:0,startY:0,endY:0}),x=s.ref([]),k=s.ref({left:"50%"}),b=s.ref(!1),_=s.computed(()=>n.calendar?n.calendar(n.mappedDates):n.mappedDates),C=s.computed(()=>n.dayNames?Array.isArray(n.dayNames)?n.dayNames:n.dayNames(n.locale,+n.weekStart):Tx3(n.formatLocale,n.locale,+n.weekStart));s.onMounted(()=>{c("mount",{cmp:"calendar",refs:v}),o.value.noSwipe||m.value&&(m.value.addEventListener("touchstart",G,{passive:!1}),m.value.addEventListener("touchend",W,{passive:!1}),m.value.addEventListener("touchmove",O,{passive:!1})),n.monthChangeOnScroll&&m.value&&m.value.addEventListener("wheel",U,{passive:!1})});const H=e1=>e1?n.vertical?"vNext":"next":n.vertical?"vPrevious":"previous",V=(e1,s1)=>{if(n.transitions){const Y=u0(a8($1(),n.month,n.year));g.value=xe(u0(a8($1(),e1,s1)),Y)?i.value[H(!0)]:i.value[H(!1)],y.value=!1,s.nextTick(()=>{y.value=!0})}},N=s.computed(()=>({[n.calendarClassName]:!!n.calendarClassName})),L=s.computed(()=>e1=>{const s1=Dx3(e1);return{dp__marker_dot:s1.type==="dot",dp__marker_line:s1.type==="line"}}),w=s.computed(()=>e1=>O2(e1,h.value)),P=s.computed(()=>({dp__calendar:!0,dp__calendar_next:f.value.count>0&&n.instance!==0})),j=s.computed(()=>e1=>n.hideOffsetDates?e1.current:!0),T=e1=>yt(e1,"yyyy-MM-dd"),B=async(e1,s1,Y)=>{const d1=Pe(v.value[s1][Y]);if(d1){const{width:x1,height:f1}=d1.getBoundingClientRect();h.value=e1.value;let t1={left:`${x1/2}px`},l1=-50;if(await s.nextTick(),x.value[0]){const{left:i1,width:p1}=x.value[0].getBoundingClientRect();i1<0&&(t1={left:"0"},l1=0,k.value.left=`${x1/2}px`),window.innerWidth<i1+p1&&(t1={right:"0"},l1=0,k.value.left=`${p1-x1/2}px`)}p.value={bottom:`${f1}px`,...t1,transform:`translateX(${l1}%)`},c("tooltip-open",e1.marker)}},F=async(e1,s1,Y)=>{var d1,x1;if(b.value&&d.value.enabled&&d.value.dragSelect)return c("select-date",e1);c("set-hover-date",e1),(x1=(d1=e1.marker)==null?void 0:d1.tooltip)!=null&&x1.length&&await B(e1,s1,Y)},K=e1=>{h.value&&(h.value=null,p.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),c("tooltip-close",e1.marker))},G=e1=>{M.value.startX=e1.changedTouches[0].screenX,M.value.startY=e1.changedTouches[0].screenY},W=e1=>{M.value.endX=e1.changedTouches[0].screenX,M.value.endY=e1.changedTouches[0].screenY,E()},O=e1=>{n.vertical&&!n.inline&&e1.preventDefault()},E=()=>{const e1=n.vertical?"Y":"X";Math.abs(M.value[`start${e1}`]-M.value[`end${e1}`])>10&&c("handle-swipe",M.value[`start${e1}`]>M.value[`end${e1}`]?"right":"left")},S=(e1,s1,Y)=>{e1&&(Array.isArray(v.value[s1])?v.value[s1][Y]=e1:v.value[s1]=[e1]),n.arrowNavigation&&r(v.value,"calendar")},U=e1=>{n.monthChangeOnScroll&&(e1.preventDefault(),c("handle-scroll",e1))},Z=e1=>u.value.type==="local"?RJ(e1.value,{weekStartsOn:+n.weekStart}):u.value.type==="iso"?IJ(e1.value):typeof u.value.type=="function"?u.value.type(e1.value):"",A=e1=>{const s1=e1[0];return u.value.hideOnOffsetDates?e1.some(Y=>Y.current)?Z(s1):"":Z(s1)},R=(e1,s1)=>{d.value.enabled||(za(e1,o.value),c("select-date",s1))},Q=e1=>{za(e1,o.value)},c1=e1=>{d.value.enabled&&d.value.dragSelect?(b.value=!0,c("select-date",e1)):d.value.enabled&&c("select-date",e1)};return t({triggerTransition:V}),(e1,s1)=>{var Y;return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(P.value)},[s.createElementVNode("div",{ref_key:"calendarWrapRef",ref:m,role:"grid",class:s.normalizeClass(N.value),"aria-label":(Y=s.unref(l))==null?void 0:Y.calendarWrap},[s.createElementVNode("div",nz3,[e1.weekNumbers?(s.openBlock(),s.createElementBlock("div",rz3,s.toDisplayString(e1.weekNumName),1)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.value,(d1,x1)=>{var f1,t1;return s.openBlock(),s.createElementBlock("div",{key:x1,class:"dp__calendar_header_item",role:"gridcell","data-test":"calendar-header","aria-label":(t1=(f1=s.unref(l))==null?void 0:f1.weekDay)==null?void 0:t1.call(f1,x1)},[e1.$slots["calendar-header"]?s.renderSlot(e1.$slots,"calendar-header",{key:0,day:d1,index:x1}):s.createCommentVNode("",!0),e1.$slots["calendar-header"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(d1),1)],64))],8,iz3)}),128))]),oz3,s.createVNode(s.Transition,{name:g.value,css:!!e1.transitions},{default:s.withCtx(()=>{var d1;return[y.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup","aria-label":((d1=s.unref(l))==null?void 0:d1.calendarDays)||void 0,onMouseleave:s1[1]||(s1[1]=x1=>b.value=!1)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(_.value,(x1,f1)=>(s.openBlock(),s.createElementBlock("div",{key:f1,class:"dp__calendar_row",role:"row"},[e1.weekNumbers?(s.openBlock(),s.createElementBlock("div",lz3,[s.createElementVNode("div",fz3,s.toDisplayString(A(x1.days)),1)])):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(x1.days,(t1,l1)=>{var i1,p1,b1;return s.openBlock(),s.createElementBlock("div",{id:T(t1.value),ref_for:!0,ref:v1=>S(v1,f1,l1),key:l1+f1,role:"gridcell",class:"dp__calendar_item","aria-selected":(t1.classData.dp__active_date||t1.classData.dp__range_start||t1.classData.dp__range_start)??void 0,"aria-disabled":t1.classData.dp__cell_disabled||void 0,"aria-label":(p1=(i1=s.unref(l))==null?void 0:i1.day)==null?void 0:p1.call(i1,t1),tabindex:"0","data-test":t1.value,onClick:s.withModifiers(v1=>R(v1,t1),["prevent"]),onKeydown:v1=>s.unref(Y4)(v1,()=>e1.$emit("select-date",t1)),onMouseenter:v1=>F(t1,f1,l1),onMouseleave:v1=>K(t1),onMousedown:v1=>c1(t1),onMouseup:s1[0]||(s1[0]=v1=>b.value=!1)},[s.createElementVNode("div",{class:s.normalizeClass(["dp__cell_inner",t1.classData])},[e1.$slots.day&&j.value(t1)?s.renderSlot(e1.$slots,"day",{key:0,day:+t1.text,date:t1.value}):s.createCommentVNode("",!0),e1.$slots.day?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(t1.text),1)],64)),t1.marker&&j.value(t1)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[e1.$slots.marker?s.renderSlot(e1.$slots,"marker",{key:0,marker:t1.marker,day:+t1.text,date:t1.value}):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(L.value(t1.marker)),style:s.normalizeStyle(t1.marker.color?{backgroundColor:t1.marker.color}:{})},null,6))],64)):s.createCommentVNode("",!0),w.value(t1.value)?(s.openBlock(),s.createElementBlock("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:x,class:"dp__marker_tooltip",style:s.normalizeStyle(p.value)},[(b1=t1.marker)!=null&&b1.tooltip?(s.openBlock(),s.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:Q},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t1.marker.tooltip,(v1,C1)=>(s.openBlock(),s.createElementBlock("div",{key:C1,class:"dp__tooltip_text"},[e1.$slots["marker-tooltip"]?s.renderSlot(e1.$slots,"marker-tooltip",{key:0,tooltip:v1,day:t1.value}):s.createCommentVNode("",!0),e1.$slots["marker-tooltip"]?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",{class:"dp__tooltip_mark",style:s.normalizeStyle(v1.color?{backgroundColor:v1.color}:{})},null,4),s.createElementVNode("div",null,s.toDisplayString(v1.text),1)],64))]))),128)),s.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:s.normalizeStyle(k.value)},null,4)])):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0)],2)],40,uz3)}),128))]))),128))],40,sz3)):s.createCommentVNode("",!0)]}),_:3},8,["name","css"])],10,cz3)],2)}}}),j81=e=>Array.isArray(e),hz3=(e,t,a,c)=>{const n=s.ref([]),r=s.ref(new Date),i=s.ref(),{modelValue:o,calendars:l,time:f,today:u}=zu(e,t),{defaultedMultiCalendars:d,defaultedStartTime:h,defaultedRange:p,defaultedConfig:v,defaultedTz:m,propDates:y,defaultedMultiDates:g}=ee(e),{validateMonthYearInRange:M,isDisabled:x,isDateRangeAllowed:k,checkMinMaxRange:b}=Ja(e),{updateTimeValues:_,getSetDateTime:C,setTime:H,assignStartTime:V,validateTime:N,disabledTimesConfig:L}=nM1(e,f,o,c),w=s.computed(()=>u1=>l.value[u1]?l.value[u1].month:0),P=s.computed(()=>u1=>l.value[u1]?l.value[u1].year:0),j=u1=>!v.value.keepViewOnOffsetClick||u1?!0:!i.value,T=(u1,o1,_1,L1=!1)=>{var W1,g2;j(L1)&&(l.value[u1]||(l.value[u1]={month:0,year:0}),l.value[u1].month=B81(o1)?(W1=l.value[u1])==null?void 0:W1.month:o1,l.value[u1].year=B81(_1)?(g2=l.value[u1])==null?void 0:g2.year:_1)},B=()=>{e.autoApply&&t("select-date")};s.watch(o,(u1,o1)=>{JSON.stringify(u1)!==JSON.stringify(o1)&&G()},{deep:!0}),s.onMounted(()=>{e.shadow||(o.value||(e1(),h.value&&V(h.value)),G(!0),e.focusStartDate&&e.startDate&&e1())});const F=s.computed(()=>{var u1;return(u1=e.flow)!=null&&u1.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),K=()=>{e.autoApply&&F.value&&t("auto-apply")},G=(u1=!1)=>{if(o.value)return Array.isArray(o.value)?(n.value=o.value,A(u1)):E(o.value,u1);if(d.value.count&&u1&&!e.startDate)return O($1(),u1)},W=()=>Array.isArray(o.value)&&p.value.enabled?D2(o.value[0])===D2(o.value[1]??o.value[0]):!1,O=(u1,o1=!1)=>{if((!d.value.count||!d.value.static||o1)&&T(0,D2(u1),H2(u1)),d.value.count&&(!d.value.solo||!o.value||W()))for(let _1=1;_1<d.value.count;_1++){const L1=x3($1(),{month:w.value(_1-1),year:P.value(_1-1)}),W1=gg1(L1,{months:1});l.value[_1]={month:D2(W1),year:H2(W1)}}},E=(u1,o1)=>{O(u1),H("hours",M8(u1)),H("minutes",Ia(u1)),H("seconds",us(u1)),d.value.count&&o1&&c1()},S=u1=>{if(d.value.count){if(d.value.solo)return 0;const o1=D2(u1[0]),_1=D2(u1[1]);return Math.abs(_1-o1)<d.value.count?0:1}return 1},U=(u1,o1)=>{u1[1]&&p.value.showLastInRange?O(u1[S(u1)],o1):O(u1[0],o1);const _1=(L1,W1)=>[L1(u1[0]),u1[1]?L1(u1[1]):f[W1][1]];H("hours",_1(M8,"hours")),H("minutes",_1(Ia,"minutes")),H("seconds",_1(us,"seconds"))},Z=(u1,o1)=>{if((p.value.enabled||e.weekPicker)&&!g.value.enabled)return U(u1,o1);if(g.value.enabled&&o1){const _1=u1[u1.length-1];return E(_1,o1)}},A=u1=>{const o1=o.value;Z(o1,u1),d.value.count&&d.value.solo&&c1()},R=(u1,o1)=>{const _1=x3($1(),{month:w.value(o1),year:P.value(o1)}),L1=u1<0?v6(_1,1):hs(_1,1);M(D2(L1),H2(L1),u1<0,e.preventMinMaxNavigation)&&(T(o1,D2(L1),H2(L1)),t("update-month-year",{instance:o1,month:D2(L1),year:H2(L1)}),d.value.count&&!d.value.solo&&Q(o1),a())},Q=u1=>{for(let o1=u1-1;o1>=0;o1--){const _1=hs(x3($1(),{month:w.value(o1+1),year:P.value(o1+1)}),1);T(o1,D2(_1),H2(_1))}for(let o1=u1+1;o1<=d.value.count-1;o1++){const _1=v6(x3($1(),{month:w.value(o1-1),year:P.value(o1-1)}),1);T(o1,D2(_1),H2(_1))}},c1=()=>{if(Array.isArray(o.value)&&o.value.length===2){const u1=$1($1(o.value[1]?o.value[1]:v6(o.value[0],1))),[o1,_1]=[D2(o.value[0]),H2(o.value[0])],[L1,W1]=[D2(o.value[1]),H2(o.value[1])];(o1!==L1||o1===L1&&_1!==W1)&&d.value.solo&&T(1,D2(u1),H2(u1))}else o.value&&!Array.isArray(o.value)&&(T(0,D2(o.value),H2(o.value)),O($1()))},e1=()=>{e.startDate&&(T(0,D2($1(e.startDate)),H2($1(e.startDate))),d.value.count&&Q(0))},s1=(u1,o1)=>{if(e.monthChangeOnScroll){const _1=new Date().getTime()-r.value.getTime(),L1=Math.abs(u1.deltaY);let W1=500;L1>1&&(W1=100),L1>100&&(W1=0),_1>W1&&(r.value=new Date,R(e.monthChangeOnScroll!=="inverse"?-u1.deltaY:u1.deltaY,o1))}},Y=(u1,o1,_1=!1)=>{e.monthChangeOnArrows&&e.vertical===_1&&d1(u1,o1)},d1=(u1,o1)=>{R(u1==="right"?-1:1,o1)},x1=u1=>{if(y.value.markers)return M$(u1.value,y.value.markers)},f1=(u1,o1)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[u1==0,!0];case"fair":return[u1==0||o1>u1,!0];case"append":return[!1,!1];default:return[!1,!1]}},t1=(u1,o1,_1,L1)=>{if(e.sixWeeks&&u1.length<6){const W1=6-u1.length,g2=(o1.getDay()+7-L1)%7,V2=6-(_1.getDay()+7-L1)%7,[B3,he]=f1(g2,V2);for(let s2=1;s2<=W1;s2++)if(he?!!(s2%2)==B3:B3){const L2=u1[0].days[0],Qe=l1(K0(L2.value,-7),D2(o1));u1.unshift({days:Qe})}else{const L2=u1[u1.length-1],Qe=L2.days[L2.days.length-1],Je=l1(K0(Qe.value,1),D2(o1));u1.push({days:Je})}}return u1},l1=(u1,o1)=>{const _1=$1(u1),L1=[];for(let W1=0;W1<7;W1++){const g2=K0(_1,W1),V2=D2(g2)!==o1;L1.push({text:e.hideOffsetDates&&V2?"":g2.getDate(),value:g2,current:!V2,classData:{}})}return L1},i1=(u1,o1)=>{const _1=[],L1=new Date(o1,u1),W1=new Date(o1,u1+1,0),g2=e.weekStart,V2=w6(L1,{weekStartsOn:g2}),B3=he=>{const s2=l1(he,u1);if(_1.push({days:s2}),!_1[_1.length-1].days.some(L2=>O2(u0(L2.value),u0(W1)))){const L2=K0(he,7);B3(L2)}};return B3(V2),t1(_1,L1,W1,g2)},p1=u1=>{const o1=Ca($1(u1.value),f.hours,f.minutes,Y1());t("date-update",o1),g.value.enabled?e11(o1,o,g.value.limit):o.value=o1,c(),s.nextTick().then(()=>{K()})},b1=u1=>p.value.noDisabledRange?Yg1(n.value[0],u1).some(o1=>x(o1)):!1,v1=()=>{n.value=o.value?o.value.slice():[],n.value.length===2&&!(p.value.fixedStart||p.value.fixedEnd)&&(n.value=[])},C1=(u1,o1)=>{const _1=[$1(u1.value),K0($1(u1.value),+p.value.autoRange)];k(_1)?(o1&&D1(u1.value),n.value=_1):t("invalid-date",u1.value)},D1=u1=>{const o1=D2($1(u1)),_1=H2($1(u1));if(T(0,o1,_1),d.value.count>0)for(let L1=1;L1<d.value.count;L1++){const W1=qx3(x3($1(u1),{year:w.value(L1-1),month:P.value(L1-1)}));T(L1,W1.month,W1.year)}},R1=u1=>{if(b1(u1.value)||!b(u1.value,o.value,p.value.fixedStart?0:1))return t("invalid-date",u1.value);n.value=tM1($1(u1.value),o,t,p)},B1=(u1,o1)=>{if(v1(),p.value.autoRange)return C1(u1,o1);if(p.value.fixedStart||p.value.fixedEnd)return R1(u1);n.value[0]?b($1(u1.value),o.value)&&!b1(u1.value)?ce($1(u1.value),$1(n.value[0]))?(n.value.unshift($1(u1.value)),t("range-end",n.value[0])):(n.value[1]=$1(u1.value),t("range-end",n.value[1])):(e.autoApply&&t("auto-apply-invalid",u1.value),t("invalid-date",u1.value)):(n.value[0]=$1(u1.value),t("range-start",n.value[0]))},Y1=(u1=!0)=>e.enableSeconds?Array.isArray(f.seconds)?u1?f.seconds[0]:f.seconds[1]:f.seconds:0,G1=u1=>{n.value[u1]=Ca(n.value[u1],f.hours[u1],f.minutes[u1],Y1(u1!==1))},n2=()=>{var u1,o1;n.value[0]&&n.value[1]&&+((u1=n.value)==null?void 0:u1[0])>+((o1=n.value)==null?void 0:o1[1])&&(n.value.reverse(),t("range-start",n.value[0]),t("range-end",n.value[1]))},o2=()=>{n.value.length&&(n.value[0]&&!n.value[1]?G1(0):(G1(0),G1(1),c()),n2(),o.value=n.value.slice(),zj(n.value,t,e.autoApply,e.modelAuto))},q1=(u1,o1=!1)=>{if(x(u1.value)||!u1.current&&e.hideOffsetDates)return t("invalid-date",u1.value);if(i.value=JSON.parse(JSON.stringify(u1)),!p.value.enabled)return p1(u1);j81(f.hours)&&j81(f.minutes)&&!g.value.enabled&&(B1(u1,o1),o2())},p2=(u1,o1)=>{var _1;T(u1,o1.month,o1.year,!0),d.value.count&&!d.value.solo&&Q(u1),t("update-month-year",{instance:u1,month:o1.month,year:o1.year}),a(d.value.solo?u1:void 0);const L1=(_1=e.flow)!=null&&_1.length?e.flow[e.flowStep]:void 0;!o1.fromNav&&(L1===d4.month||L1===d4.year)&&c()},T2=(u1,o1)=>{eM1({value:u1,modelValue:o,range:p.value.enabled,timezone:o1?void 0:m.value.timezone}),B(),e.multiCalendars&&s.nextTick().then(()=>G(!0))},h2=()=>{p.value.enabled?o.value&&Array.isArray(o.value)&&o.value[0]?o.value=ce($1(),o.value[0])?[$1(),o.value[0]]:[o.value[0],$1()]:o.value=[$1()]:o.value=$1(),B()},y2=()=>{if(Array.isArray(o.value))if(g.value.enabled){const u1=e3();o.value[o.value.length-1]=C(u1)}else o.value=o.value.map((u1,o1)=>u1&&C(u1,o1));else o.value=C(o.value);t("time-update")},e3=()=>Array.isArray(o.value)&&o.value.length?o.value[o.value.length-1]:null;return{calendars:l,modelValue:o,month:w,year:P,time:f,disabledTimesConfig:L,today:u,validateTime:N,getCalendarDays:i1,getMarker:x1,handleScroll:s1,handleSwipe:d1,handleArrow:Y,selectDate:q1,updateMonthYear:p2,presetDate:T2,selectCurrentDate:h2,updateTime:(u1,o1=!0,_1=!1)=>{_(u1,o1,_1,y2)}}},pz3={key:0},mz3=s.defineComponent({__name:"DatePicker",props:{...T6},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,{calendars:r,month:i,year:o,modelValue:l,time:f,disabledTimesConfig:u,today:d,validateTime:h,getCalendarDays:p,getMarker:v,handleArrow:m,handleScroll:y,handleSwipe:g,selectDate:M,updateMonthYear:x,presetDate:k,selectCurrentDate:b,updateTime:_}=hz3(n,c,W,O),C=s.useSlots(),{setHoverDate:H,getDayClassData:V,clearHoverDate:N}=mb3(l,n),{defaultedMultiCalendars:L}=ee(n),w=s.ref([]),P=s.ref([]),j=s.ref(null),T=n0(C,"calendar"),B=n0(C,"monthYear"),F=n0(C,"timePicker"),K=s1=>{n.shadow||c("mount",s1)};s.watch(r,()=>{n.shadow||setTimeout(()=>{c("recalculate-position")},0)},{deep:!0});const G=s.computed(()=>s1=>p(i.value(s1),o.value(s1)).map(Y=>({...Y,days:Y.days.map(d1=>(d1.marker=v(d1),d1.classData=V(d1),d1))})));function W(s1){var Y;s1||s1===0?(Y=P.value[s1])==null||Y.triggerTransition(i.value(s1),o.value(s1)):P.value.forEach((d1,x1)=>d1.triggerTransition(i.value(x1),o.value(x1)))}function O(){c("update-flow-step")}const E=(s1,Y=!1)=>{M(s1,Y),n.spaceConfirm&&c("select-date")},S=(s1,Y,d1=0)=>{var x1;(x1=w.value[d1])==null||x1.toggleMonthPicker(s1,Y)},U=(s1,Y,d1=0)=>{var x1;(x1=w.value[d1])==null||x1.toggleYearPicker(s1,Y)},Z=(s1,Y,d1)=>{var x1;(x1=j.value)==null||x1.toggleTimePicker(s1,Y,d1)},A=s1=>{if(!n.range){const Y=l.value?l.value:d,d1=s1?w6(Y,{weekStartsOn:1}):wg1(Y,{weekStartsOn:1});M({value:d1,current:D2(Y)===i.value(0),text:"",classData:{}})}},R=s1=>{var Y;(Y=w.value[0])==null||Y.handleMonthYearChange(s1,!0)},Q=s1=>{x(0,{month:i.value(0),year:o.value(0)+(s1?1:-1),fromNav:!0})},c1=(s1,Y)=>{s1===d4.time&&c(`time-picker-${Y?"open":"close"}`),c("overlay-toggle",{open:Y,overlay:s1})},e1=s1=>{c("overlay-toggle",{open:!1,overlay:s1}),c("focus-menu")};return t({clearHoverDate:N,presetDate:k,selectCurrentDate:b,toggleMonthPicker:S,toggleYearPicker:U,toggleTimePicker:Z,handleArrow:m,updateMonthYear:x,getSidebarProps:()=>({modelValue:l,month:i,year:o,time:f,updateTime:_,updateMonthYear:x,selectDate:M,presetDate:k}),changeMonth:R,changeYear:Q,selectWeekDate:A}),(s1,Y)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(bj,{"multi-calendars":s.unref(L).count,collapse:s1.collapse},{default:s.withCtx(({instance:d1,index:x1})=>[s1.disableMonthYearSelect?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(az3,s.mergeProps({key:0,ref:f1=>{f1&&(w.value[x1]=f1)},months:s.unref(Fg1)(s1.formatLocale,s1.locale,s1.monthNameFormat),years:s.unref(XJ)(s1.yearRange,s1.locale,s1.reverseYears),month:s.unref(i)(d1),year:s.unref(o)(d1),instance:d1},s1.$props,{onMount:Y[0]||(Y[0]=f1=>K(s.unref(ci).header)),onResetFlow:Y[1]||(Y[1]=f1=>s1.$emit("reset-flow")),onUpdateMonthYear:f1=>s.unref(x)(d1,f1),onOverlayClosed:e1,onOverlayOpened:Y[2]||(Y[2]=f1=>s1.$emit("overlay-toggle",{open:!0,overlay:f1}))}),s.createSlots({_:2},[s.renderList(s.unref(B),(f1,t1)=>({name:f1,fn:s.withCtx(l1=>[s.renderSlot(s1.$slots,f1,s.normalizeProps(s.guardReactiveProps(l1)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),s.createVNode(dz3,s.mergeProps({ref:f1=>{f1&&(P.value[x1]=f1)},"mapped-dates":G.value(d1),month:s.unref(i)(d1),year:s.unref(o)(d1),instance:d1},s1.$props,{onSelectDate:f1=>s.unref(M)(f1,d1!==1),onHandleSpace:f1=>E(f1,d1!==1),onSetHoverDate:Y[3]||(Y[3]=f1=>s.unref(H)(f1)),onHandleScroll:f1=>s.unref(y)(f1,d1),onHandleSwipe:f1=>s.unref(g)(f1,d1),onMount:Y[4]||(Y[4]=f1=>K(s.unref(ci).calendar)),onResetFlow:Y[5]||(Y[5]=f1=>s1.$emit("reset-flow")),onTooltipOpen:Y[6]||(Y[6]=f1=>s1.$emit("tooltip-open",f1)),onTooltipClose:Y[7]||(Y[7]=f1=>s1.$emit("tooltip-close",f1))}),s.createSlots({_:2},[s.renderList(s.unref(T),(f1,t1)=>({name:f1,fn:s.withCtx(l1=>[s.renderSlot(s1.$slots,f1,s.normalizeProps(s.guardReactiveProps({...l1})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse"]),s1.enableTimePicker?(s.openBlock(),s.createElementBlock("div",pz3,[s1.$slots["time-picker"]?s.renderSlot(s1.$slots,"time-picker",s.normalizeProps(s.mergeProps({key:0},{time:s.unref(f),updateTime:s.unref(_)}))):(s.openBlock(),s.createBlock(cM1,s.mergeProps({key:1,ref_key:"timePickerRef",ref:j},s1.$props,{hours:s.unref(f).hours,minutes:s.unref(f).minutes,seconds:s.unref(f).seconds,"internal-model-value":s1.internalModelValue,"disabled-times-config":s.unref(u),"validate-time":s.unref(h),onMount:Y[8]||(Y[8]=d1=>K(s.unref(ci).timePicker)),"onUpdate:hours":Y[9]||(Y[9]=d1=>s.unref(_)(d1)),"onUpdate:minutes":Y[10]||(Y[10]=d1=>s.unref(_)(d1,!1)),"onUpdate:seconds":Y[11]||(Y[11]=d1=>s.unref(_)(d1,!1,!0)),onResetFlow:Y[12]||(Y[12]=d1=>s1.$emit("reset-flow")),onOverlayClosed:Y[13]||(Y[13]=d1=>c1(d1,!1)),onOverlayOpened:Y[14]||(Y[14]=d1=>c1(d1,!0)),onAmPmChange:Y[15]||(Y[15]=d1=>s1.$emit("am-pm-change",d1))}),s.createSlots({_:2},[s.renderList(s.unref(F),(d1,x1)=>({name:d1,fn:s.withCtx(f1=>[s.renderSlot(s1.$slots,d1,s.normalizeProps(s.guardReactiveProps(f1)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):s.createCommentVNode("",!0)],64))}}),vz3=(e,t)=>{const a=s.ref(),{defaultedMultiCalendars:c,defaultedConfig:n,defaultedHighlight:r,defaultedRange:i,propDates:o,defaultedFilters:l,defaultedMultiDates:f}=ee(e),{modelValue:u,year:d,month:h,calendars:p}=zu(e,t),{isDisabled:v}=Ja(e),{selectYear:m,groupedYears:y,showYearPicker:g,isDisabled:M,toggleYearPicker:x,handleYearSelect:k,handleYear:b}=aM1({modelValue:u,multiCalendars:c,highlight:r,calendars:p,propDates:o,month:h,year:d,filters:l,props:e,emit:t}),_=(T,B)=>[T,B].map(F=>yt(F,"MMMM",{locale:e.formatLocale})).join("-"),C=s.computed(()=>T=>u.value?Array.isArray(u.value)?u.value.some(B=>P81(T,B)):P81(u.value,T):!1),H=T=>{if(i.value.enabled){if(Array.isArray(u.value)){const B=O2(T,u.value[0])||O2(T,u.value[1]);return Mj(u.value,a.value,T)&&!B}return!1}return!1},V=(T,B)=>T.quarter===S81(B)&&T.year===H2(B),N=T=>typeof r.value=="function"?r.value({quarter:S81(T),year:H2(T)}):!!r.value.quarters.find(B=>V(B,T)),L=s.computed(()=>T=>{const B=x3(new Date,{year:d.value(T)});return OM3({start:OJ(B),end:_g1(B)}).map(F=>{const K=Ur(F),G=N81(F),W=v(F),O=H(K),E=N(K);return{text:_(K,G),value:K,active:C.value(K),highlighted:E,disabled:W,isBetween:O}})}),w=T=>{e11(T,u,f.value.limit),t("auto-apply",!0)},P=T=>{u.value=t11(u,T,t),zj(u.value,t,e.autoApply,e.modelAuto)},j=T=>{u.value=T,t("auto-apply")};return{defaultedConfig:n,defaultedMultiCalendars:c,groupedYears:y,year:d,isDisabled:M,quarters:L,showYearPicker:g,modelValue:u,setHoverDate:T=>{a.value=T},selectYear:m,selectQuarter:(T,B,F)=>{if(!F)return p.value[B].month=D2(N81(T)),f.value.enabled?w(T):i.value.enabled?P(T):j(T)},toggleYearPicker:x,handleYearSelect:k,handleYear:b}},yz3={class:"dp--quarter-items"},gz3=["data-test","disabled","onClick","onMouseover"],Mz3=s.defineComponent({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...T6},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.useSlots(),i=n0(r,"yearMode"),{defaultedMultiCalendars:o,defaultedConfig:l,groupedYears:f,year:u,isDisabled:d,quarters:h,modelValue:p,showYearPicker:v,setHoverDate:m,selectQuarter:y,toggleYearPicker:g,handleYearSelect:M,handleYear:x}=vz3(n,c);return t({getSidebarProps:()=>({modelValue:p,year:u,selectQuarter:y,handleYearSelect:M,handleYear:x})}),(k,b)=>(s.openBlock(),s.createBlock(bj,{"multi-calendars":s.unref(o).count,collapse:k.collapse,stretch:""},{default:s.withCtx(({instance:_})=>[s.createElementVNode("div",{class:"dp-quarter-picker-wrap",style:s.normalizeStyle({minHeight:`${s.unref(l).modeHeight}px`})},[k.$slots["top-extra"]?s.renderSlot(k.$slots,"top-extra",{key:0,value:k.internalModelValue}):s.createCommentVNode("",!0),s.createElementVNode("div",null,[s.createVNode(Jg1,s.mergeProps(k.$props,{items:s.unref(f)(_),instance:_,"show-year-picker":s.unref(v)[_],year:s.unref(u)(_),"is-disabled":C=>s.unref(d)(_,C),onHandleYear:C=>s.unref(x)(_,C),onYearSelect:C=>s.unref(M)(C,_),onToggleYearPicker:C=>s.unref(g)(_,C==null?void 0:C.flow,C==null?void 0:C.show)}),s.createSlots({_:2},[s.renderList(s.unref(i),(C,H)=>({name:C,fn:s.withCtx(V=>[s.renderSlot(k.$slots,C,s.normalizeProps(s.guardReactiveProps(V)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),s.createElementVNode("div",yz3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(h)(_),(C,H)=>(s.openBlock(),s.createElementBlock("div",{key:H},[s.createElementVNode("button",{type:"button",class:s.normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":C.active,"dp--qr-btn-between":C.isBetween,"dp--qr-btn-disabled":C.disabled,"dp--highlighted":C.highlighted}]),"data-test":C.value,disabled:C.disabled,onClick:V=>s.unref(y)(C.value,_,C.disabled),onMouseover:V=>s.unref(m)(C.value)},[k.$slots.quarter?s.renderSlot(k.$slots,"quarter",{key:0,value:C.value,text:C.text}):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(C.text),1)],64))],42,gz3)]))),128))])],4)]),_:3},8,["multi-calendars","collapse"]))}}),kz3=["id","aria-label"],xz3={key:0,class:"dp--menu-load-container"},bz3=s.createElementVNode("span",{class:"dp--menu-loader"},null,-1),zz3=[bz3],Cz3={key:0,class:"dp__sidebar_left"},_z3=["data-test","onClick","onKeydown"],wz3={key:2,class:"dp__sidebar_right"},Hz3={key:3,class:"dp__action_extra"},U81=s.defineComponent({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...xj,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.ref(null),i=s.computed(()=>{const{openOnTop:t1,...l1}=n;return{...l1,flowStep:H.value,collapse:n.collapse,noOverlayFocus:n.noOverlayFocus,menuWrapRef:r.value}}),{setMenuFocused:o,setShiftKey:l,control:f}=Qg1(),u=s.useSlots(),{defaultedTextInput:d,defaultedInline:h,defaultedConfig:p}=ee(n),v=s.ref(null),m=s.ref(0),y=s.ref(null),g=s.ref(!1),M=s.ref(null);s.onMounted(()=>{if(!n.shadow){g.value=!0,x(),window.addEventListener("resize",x);const t1=Pe(r);if(t1&&!d.value.enabled&&!h.value.enabled&&(o(!0),j()),t1){const l1=i1=>{p.value.allowPreventDefault&&i1.preventDefault(),za(i1,p.value,!0)};t1.addEventListener("pointerdown",l1),t1.addEventListener("mousedown",l1)}}}),s.onUnmounted(()=>{window.removeEventListener("resize",x)});const x=()=>{const t1=Pe(y);t1&&(m.value=t1.getBoundingClientRect().width)},{arrowRight:k,arrowLeft:b,arrowDown:_,arrowUp:C}=Qa(),{flowStep:H,updateFlowStep:V,childMount:N,resetFlow:L}=vb3(n,c,M),w=s.computed(()=>n.monthPicker?Nb3:n.yearPicker?Tb3:n.timePicker?Xb3:n.quarterPicker?Mz3:mz3),P=s.computed(()=>{var t1;if(p.value.arrowLeft)return p.value.arrowLeft;const l1=(t1=r.value)==null?void 0:t1.getBoundingClientRect(),i1=n.getInputRect();return i1.width<m.value&&i1.left<=((l1==null?void 0:l1.left)??0)?`${i1.width/2}px`:"50%"}),j=()=>{const t1=Pe(r);t1&&t1.focus({preventScroll:!0})},T=s.computed(()=>{var t1;return((t1=M.value)==null?void 0:t1.getSidebarProps())||{}}),B=()=>{n.openOnTop&&c("recalculate-position")},F=n0(u,"action"),K=s.computed(()=>n.monthPicker||n.yearPicker?n0(u,"monthYear"):n.timePicker?n0(u,"timePicker"):n0(u,"shared")),G=s.computed(()=>n.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),W=s.computed(()=>({dp__menu_disabled:n.disabled,dp__menu_readonly:n.readonly,"dp-menu-loading":n.loading})),O=s.computed(()=>({dp__menu:!0,dp__menu_index:!h.value.enabled,dp__relative:h.value.enabled,[n.menuClassName]:!!n.menuClassName})),E=t1=>{za(t1,p.value,!0)},S=()=>{n.escClose&&c("close-picker")},U=t1=>{if(n.arrowNavigation){if(t1===S4.up)return C();if(t1===S4.down)return _();if(t1===S4.left)return b();if(t1===S4.right)return k()}else t1===S4.right||t1===S4.up?c1("handleArrow",S4.left,0,t1===S4.up):c1("handleArrow",S4.right,0,t1===S4.down)},Z=t1=>{l(t1.shiftKey),!n.disableMonthYearSelect&&t1.code===G3.tab&&t1.target.classList.contains("dp__menu")&&f.value.shiftKeyInMenu&&(t1.preventDefault(),za(t1,p.value,!0),c("close-picker"))},A=()=>{j(),c("time-picker-close")},R=t1=>{var l1,i1,p1;(l1=M.value)==null||l1.toggleTimePicker(!1,!1),(i1=M.value)==null||i1.toggleMonthPicker(!1,!1,t1),(p1=M.value)==null||p1.toggleYearPicker(!1,!1,t1)},Q=(t1,l1=0)=>{var i1,p1,b1;return t1==="month"?(i1=M.value)==null?void 0:i1.toggleMonthPicker(!1,!0,l1):t1==="year"?(p1=M.value)==null?void 0:p1.toggleYearPicker(!1,!0,l1):t1==="time"?(b1=M.value)==null?void 0:b1.toggleTimePicker(!0,!1):R(l1)},c1=(t1,...l1)=>{var i1,p1;(i1=M.value)!=null&&i1[t1]&&((p1=M.value)==null||p1[t1](...l1))},e1=()=>{c1("selectCurrentDate")},s1=(t1,l1)=>{c1("presetDate",t1,l1)},Y=()=>{c1("clearHoverDate")},d1=(t1,l1)=>{c1("updateMonthYear",t1,l1)},x1=(t1,l1)=>{t1.preventDefault(),U(l1)},f1=t1=>{if(Z(t1),t1.key===G3.home||t1.key===G3.end)return c1("selectWeekDate",t1.key===G3.home);if(t1.key===G3.pageUp||t1.key===G3.pageDown)return t1.shiftKey?c1("changeYear",t1.key===G3.pageUp):c1("changeMonth",t1.key===G3.pageUp);switch(t1.key){case G3.esc:return S();case G3.arrowLeft:return x1(t1,S4.left);case G3.arrowRight:return x1(t1,S4.right);case G3.arrowUp:return x1(t1,S4.up);case G3.arrowDown:return x1(t1,S4.down);default:return}};return t({updateMonthYear:d1,switchView:Q}),(t1,l1)=>{var i1,p1,b1;return s.openBlock(),s.createElementBlock("div",{id:t1.uid?`dp-menu-${t1.uid}`:void 0,ref_key:"dpMenuRef",ref:r,tabindex:"0",role:"dialog","aria-label":(i1=t1.ariaLabels)==null?void 0:i1.menu,class:s.normalizeClass(O.value),style:s.normalizeStyle({"--dp-arrow-left":P.value}),onMouseleave:Y,onClick:E,onKeydown:f1},[(t1.disabled||t1.readonly)&&s.unref(h).enabled||t1.loading?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(W.value)},[t1.loading?(s.openBlock(),s.createElementBlock("div",xz3,zz3)):s.createCommentVNode("",!0)],2)):s.createCommentVNode("",!0),!s.unref(h).enabled&&!t1.teleportCenter?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(G.value)},null,2)):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"innerMenuRef",ref:y,class:s.normalizeClass({dp__menu_content_wrapper:((p1=t1.presetDates)==null?void 0:p1.length)||!!t1.$slots["left-sidebar"]||!!t1.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&(((b1=t1.presetDates)==null?void 0:b1.length)||!!t1.$slots["left-sidebar"]||!!t1.$slots["right-sidebar"])}),style:s.normalizeStyle({"--dp-menu-width":`${m.value}px`})},[t1.$slots["left-sidebar"]?(s.openBlock(),s.createElementBlock("div",Cz3,[s.renderSlot(t1.$slots,"left-sidebar",s.normalizeProps(s.guardReactiveProps(T.value)))])):s.createCommentVNode("",!0),t1.presetDates.length?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t1.presetDates,(v1,C1)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:C1},[v1.slot?s.renderSlot(t1.$slots,v1.slot,{key:0,presetDate:s1,label:v1.label,value:v1.value}):(s.openBlock(),s.createElementBlock("button",{key:1,type:"button",style:s.normalizeStyle(v1.style||{}),class:s.normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test":v1.testId??void 0,onClick:s.withModifiers(D1=>s1(v1.value,v1.noTz),["prevent"]),onKeydown:D1=>s.unref(Y4)(D1,()=>s1(v1.value,v1.noTz),!0)},s.toDisplayString(v1.label),47,_z3))],64))),128))],2)):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"calendarWrapperRef",ref:v,class:"dp__instance_calendar",role:"document"},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(w.value),s.mergeProps({ref_key:"dynCmpRef",ref:M},i.value,{"flow-step":s.unref(H),onMount:s.unref(N),onUpdateFlowStep:s.unref(V),onResetFlow:s.unref(L),onFocusMenu:j,onSelectDate:l1[0]||(l1[0]=v1=>t1.$emit("select-date")),onDateUpdate:l1[1]||(l1[1]=v1=>t1.$emit("date-update",v1)),onTooltipOpen:l1[2]||(l1[2]=v1=>t1.$emit("tooltip-open",v1)),onTooltipClose:l1[3]||(l1[3]=v1=>t1.$emit("tooltip-close",v1)),onAutoApply:l1[4]||(l1[4]=v1=>t1.$emit("auto-apply",v1)),onRangeStart:l1[5]||(l1[5]=v1=>t1.$emit("range-start",v1)),onRangeEnd:l1[6]||(l1[6]=v1=>t1.$emit("range-end",v1)),onInvalidFixedRange:l1[7]||(l1[7]=v1=>t1.$emit("invalid-fixed-range",v1)),onTimeUpdate:l1[8]||(l1[8]=v1=>t1.$emit("time-update")),onAmPmChange:l1[9]||(l1[9]=v1=>t1.$emit("am-pm-change",v1)),onTimePickerOpen:l1[10]||(l1[10]=v1=>t1.$emit("time-picker-open",v1)),onTimePickerClose:A,onRecalculatePosition:B,onUpdateMonthYear:l1[11]||(l1[11]=v1=>t1.$emit("update-month-year",v1)),onAutoApplyInvalid:l1[12]||(l1[12]=v1=>t1.$emit("auto-apply-invalid",v1)),onInvalidDate:l1[13]||(l1[13]=v1=>t1.$emit("invalid-date",v1)),onOverlayToggle:l1[14]||(l1[14]=v1=>t1.$emit("overlay-toggle",v1)),"onUpdate:internalModelValue":l1[15]||(l1[15]=v1=>t1.$emit("update:internal-model-value",v1))}),s.createSlots({_:2},[s.renderList(K.value,(v1,C1)=>({name:v1,fn:s.withCtx(D1=>[s.renderSlot(t1.$slots,v1,s.normalizeProps(s.guardReactiveProps({...D1})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),t1.$slots["right-sidebar"]?(s.openBlock(),s.createElementBlock("div",wz3,[s.renderSlot(t1.$slots,"right-sidebar",s.normalizeProps(s.guardReactiveProps(T.value)))])):s.createCommentVNode("",!0),t1.$slots["action-extra"]?(s.openBlock(),s.createElementBlock("div",Hz3,[t1.$slots["action-extra"]?s.renderSlot(t1.$slots,"action-extra",{key:0,selectCurrentDate:e1}):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],6),!t1.autoApply||s.unref(p).keepActionRow?(s.openBlock(),s.createBlock(zb3,s.mergeProps({key:2,"menu-mount":g.value},i.value,{"calendar-width":m.value,onClosePicker:l1[16]||(l1[16]=v1=>t1.$emit("close-picker")),onSelectDate:l1[17]||(l1[17]=v1=>t1.$emit("select-date")),onInvalidSelect:l1[18]||(l1[18]=v1=>t1.$emit("invalid-select")),onSelectNow:e1}),s.createSlots({_:2},[s.renderList(s.unref(F),(v1,C1)=>({name:v1,fn:s.withCtx(D1=>[s.renderSlot(t1.$slots,v1,s.normalizeProps(s.guardReactiveProps({...D1})))])}))]),1040,["menu-mount","calendar-width"])):s.createCommentVNode("",!0)],46,kz3)}}}),Lz3=typeof window<"u"?window:void 0,XW=()=>{},Vz3=e=>s.getCurrentScope()?(s.onScopeDispose(e),!0):!1,Sz3=(e,t,a,c)=>{if(!e)return XW;let n=XW;const r=s.watch(()=>s.unref(e),o=>{n(),o&&(o.addEventListener(t,a,c),n=()=>{o.removeEventListener(t,a,c),n=XW})},{immediate:!0,flush:"post"}),i=()=>{r(),n()};return Vz3(i),i},Nz3=(e,t,a,c={})=>{const{window:n=Lz3,event:r="pointerdown"}=c;return n?Sz3(n,r,i=>{const o=Pe(e),l=Pe(t);!o||!l||o===i.target||i.composedPath().includes(o)||i.composedPath().includes(l)||a(i)},{passive:!0}):void 0},Az3=s.defineComponent({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...xj},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:a}){const c=a,n=e,r=s.useSlots(),i=s.ref(!1),o=s.toRef(n,"modelValue"),l=s.toRef(n,"timezone"),f=s.ref(null),u=s.ref(null),d=s.ref(null),h=s.ref(!1),p=s.ref(null),v=s.ref(!1),m=s.ref(!1),y=s.ref(!1),{setMenuFocused:g,setShiftKey:M}=Qg1(),{clearArrowNav:x}=Qa(),{validateDate:k,isValidTime:b}=Ja(n),{defaultedTransitions:_,defaultedTextInput:C,defaultedInline:H,defaultedConfig:V,defaultedRange:N,defaultedMultiDates:L}=ee(n),{menuTransition:w,showTransition:P}=bu(_);s.onMounted(()=>{U(n.modelValue),s.nextTick().then(()=>{if(!H.value.enabled){const o1=W(p.value);o1==null||o1.addEventListener("scroll",x1),window==null||window.addEventListener("resize",f1)}}),H.value.enabled&&(i.value=!0),window==null||window.addEventListener("keyup",t1),window==null||window.addEventListener("keydown",l1)}),s.onUnmounted(()=>{if(!H.value.enabled){const o1=W(p.value);o1==null||o1.removeEventListener("scroll",x1),window==null||window.removeEventListener("resize",f1)}window==null||window.removeEventListener("keyup",t1),window==null||window.removeEventListener("keydown",l1)});const j=n0(r,"all",n.presetDates),T=n0(r,"input");s.watch([o,l],()=>{U(o.value)},{deep:!0});const{openOnTop:B,menuStyle:F,xCorrect:K,setMenuPosition:G,getScrollableParent:W,shadowRender:O}=db3({menuRef:f,menuRefInner:u,inputRef:d,pickerWrapperRef:p,inline:H,emit:c,props:n,slots:r}),{inputValue:E,internalModelValue:S,parseExternalModelValue:U,emitModelValue:Z,formatInputValue:A,checkBeforeEmit:R}=fb3(c,n,h),Q=s.computed(()=>({dp__main:!0,dp__theme_dark:n.dark,dp__theme_light:!n.dark,dp__flex_display:H.value.enabled,"dp--flex-display-collapsed":y.value,dp__flex_display_with_input:H.value.input})),c1=s.computed(()=>n.dark?"dp__theme_dark":"dp__theme_light"),e1=s.computed(()=>n.teleport?{to:typeof n.teleport=="boolean"?"body":n.teleport,disabled:!n.teleport||H.value.enabled}:{}),s1=s.computed(()=>({class:"dp__outer_menu_wrap"})),Y=s.computed(()=>H.value.enabled&&(n.timePicker||n.monthPicker||n.yearPicker||n.quarterPicker)),d1=()=>{var o1,_1;return(_1=(o1=d.value)==null?void 0:o1.$el)==null?void 0:_1.getBoundingClientRect()},x1=()=>{i.value&&(V.value.closeOnScroll?Y1():G())},f1=()=>{var o1;i.value&&G();const _1=(o1=u.value)==null?void 0:o1.$el.getBoundingClientRect().width;y.value=document.body.offsetWidth<=_1},t1=o1=>{o1.key==="Tab"&&!H.value.enabled&&!n.teleport&&V.value.tabOutClosesMenu&&(p.value.contains(document.activeElement)||Y1()),m.value=o1.shiftKey},l1=o1=>{m.value=o1.shiftKey},i1=()=>{!n.disabled&&!n.readonly&&(O(U81,n),G(!1),i.value=!0,i.value&&c("open"),i.value||B1(),U(n.modelValue))},p1=()=>{var o1;E.value="",B1(),(o1=d.value)==null||o1.setParsedDate(null),c("update:model-value",null),c("update:model-timezone-value",null),c("cleared"),V.value.closeOnClearValue&&Y1()},b1=()=>{const o1=S.value;return!o1||!Array.isArray(o1)&&k(o1)?!0:Array.isArray(o1)?L.value.enabled||o1.length===2&&k(o1[0])&&k(o1[1])?!0:N.value.partialRange&&!n.timePicker?k(o1[0]):!1:!1},v1=()=>{R()&&b1()?(Z(),Y1()):c("invalid-select",S.value)},C1=o1=>{D1(),Z(),V.value.closeOnAutoApply&&!o1&&Y1()},D1=()=>{d.value&&C.value.enabled&&d.value.setParsedDate(S.value)},R1=(o1=!1)=>{n.autoApply&&b(S.value)&&b1()&&(N.value.enabled&&Array.isArray(S.value)?(N.value.partialRange||S.value.length===2)&&C1(o1):C1(o1))},B1=()=>{C.value.enabled||(S.value=null)},Y1=()=>{H.value.enabled||(i.value&&(i.value=!1,K.value=!1,g(!1),M(!1),x(),c("closed"),E.value&&U(o.value)),B1(),c("blur"))},G1=(o1,_1,L1=!1)=>{if(!o1){S.value=null;return}const W1=Array.isArray(o1)?!o1.some(V2=>!k(V2)):k(o1),g2=b(o1);W1&&g2&&(S.value=o1,_1&&(v.value=L1,v1(),c("text-submit")))},n2=()=>{n.autoApply&&b(S.value)&&Z(),D1()},o2=()=>i.value?Y1():i1(),q1=o1=>{S.value=o1},p2=()=>{C.value.enabled&&(h.value=!0,A()),c("focus")},T2=()=>{if(C.value.enabled&&(h.value=!1,U(n.modelValue),v.value)){const o1=Ix3(p.value,m.value);o1==null||o1.focus()}c("blur")},h2=o1=>{u.value&&u.value.updateMonthYear(0,{month:I81(o1.month),year:I81(o1.year)})},y2=o1=>{U(o1??n.modelValue)},e3=(o1,_1)=>{var L1;(L1=u.value)==null||L1.switchView(o1,_1)},u1=o1=>V.value.onClickOutside?V.value.onClickOutside(o1):Y1();return Nz3(f,d,()=>u1(b1)),t({closeMenu:Y1,selectDate:v1,clearValue:p1,openMenu:i1,onScroll:x1,formatInputValue:A,updateInternalModelValue:q1,setMonthYear:h2,parseModel:y2,switchView:e3,toggleMenu:o2}),(o1,_1)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"pickerWrapperRef",ref:p,class:s.normalizeClass(Q.value),"data-datepicker-instance":""},[s.createVNode(kb3,s.mergeProps({ref_key:"inputRef",ref:d,"input-value":s.unref(E),"onUpdate:inputValue":_1[0]||(_1[0]=L1=>s.isRef(E)?E.value=L1:null),"is-menu-open":i.value},o1.$props,{onClear:p1,onOpen:i1,onSetInputDate:G1,onSetEmptyDate:s.unref(Z),onSelectDate:v1,onToggle:o2,onClose:Y1,onFocus:p2,onBlur:T2,onRealBlur:_1[1]||(_1[1]=L1=>h.value=!1)}),s.createSlots({_:2},[s.renderList(s.unref(T),(L1,W1)=>({name:L1,fn:s.withCtx(g2=>[s.renderSlot(o1.$slots,L1,s.normalizeProps(s.guardReactiveProps(g2)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o1.teleport?s.Teleport:"div"),s.normalizeProps(s.guardReactiveProps(e1.value)),{default:s.withCtx(()=>[s.createVNode(s.Transition,{name:s.unref(w)(s.unref(B)),css:s.unref(P)&&!s.unref(H).enabled},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,ref_key:"dpWrapMenuRef",ref:f},s1.value,{class:{"dp--menu-wrapper":!s.unref(H).enabled},style:s.unref(H).enabled?void 0:s.unref(F)}),[s.createVNode(U81,s.mergeProps({ref_key:"dpMenuRef",ref:u},o1.$props,{"internal-model-value":s.unref(S),"onUpdate:internalModelValue":_1[2]||(_1[2]=L1=>s.isRef(S)?S.value=L1:null),class:{[c1.value]:!0,"dp--menu-wrapper":o1.teleport},"open-on-top":s.unref(B),"no-overlay-focus":Y.value,collapse:y.value,"get-input-rect":d1,onClosePicker:Y1,onSelectDate:v1,onAutoApply:R1,onTimeUpdate:n2,onFlowStep:_1[3]||(_1[3]=L1=>o1.$emit("flow-step",L1)),onUpdateMonthYear:_1[4]||(_1[4]=L1=>o1.$emit("update-month-year",L1)),onInvalidSelect:_1[5]||(_1[5]=L1=>o1.$emit("invalid-select",s.unref(S))),onAutoApplyInvalid:_1[6]||(_1[6]=L1=>o1.$emit("invalid-select",L1)),onInvalidFixedRange:_1[7]||(_1[7]=L1=>o1.$emit("invalid-fixed-range",L1)),onRecalculatePosition:s.unref(G),onTooltipOpen:_1[8]||(_1[8]=L1=>o1.$emit("tooltip-open",L1)),onTooltipClose:_1[9]||(_1[9]=L1=>o1.$emit("tooltip-close",L1)),onTimePickerOpen:_1[10]||(_1[10]=L1=>o1.$emit("time-picker-open",L1)),onTimePickerClose:_1[11]||(_1[11]=L1=>o1.$emit("time-picker-close",L1)),onAmPmChange:_1[12]||(_1[12]=L1=>o1.$emit("am-pm-change",L1)),onRangeStart:_1[13]||(_1[13]=L1=>o1.$emit("range-start",L1)),onRangeEnd:_1[14]||(_1[14]=L1=>o1.$emit("range-end",L1)),onDateUpdate:_1[15]||(_1[15]=L1=>o1.$emit("date-update",L1)),onInvalidDate:_1[16]||(_1[16]=L1=>o1.$emit("invalid-date",L1)),onOverlayToggle:_1[17]||(_1[17]=L1=>o1.$emit("overlay-toggle",L1))}),s.createSlots({_:2},[s.renderList(s.unref(j),(L1,W1)=>({name:L1,fn:s.withCtx(g2=>[s.renderSlot(o1.$slots,L1,s.normalizeProps(s.guardReactiveProps({...g2})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","onRecalculatePosition"])],16)):s.createCommentVNode("",!0)]),_:3},8,["name","css"])]),_:3},16))],2))}}),a11=(()=>{const e=Az3;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),Tz3=Object.freeze(Object.defineProperty({__proto__:null,default:a11},Symbol.toStringTag,{value:"Module"}));Object.entries(Tz3).forEach(([e,t])=>{e!=="default"&&(a11[e]=t)});const Ez3=s.defineComponent({__name:"PgaVueDatePicker",props:s.mergeModels({yearPicker:{type:Boolean},monthPicker:{type:Boolean},range:{type:Boolean},enableTimePicker:{type:Boolean},notClearable:{type:Boolean},disabled:{type:Boolean},format:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(r=>({eca51504:s.unref(c).input.height,"6684c0a0":s.unref(c).input.borderColor,fa39fa16:s.unref(c).input.borderRadius,"6a79045e":s.unref(c).input.backgroundColor,"785664fa":s.unref(c).input.backgroundColorDisabled,"55a93c0c":s.unref(c).input.colorFocus}));const t=s.useModel(e,"modelValue"),a=$2("pgaForm"),{form:c}=i4(),n=s.ref(!1);return(r,i)=>(s.openBlock(),s.createBlock(s.unref(a11),{class:s.normalizeClass(["date-picker",{"date-picker--disabled":r.disabled,"date-picker--open":n.value}]),modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=o=>t.value=o),disabled:r.disabled,clearable:!r.notClearable,yearPicker:r.yearPicker,monthPicker:r.monthPicker,range:r.range,enableTimePicker:r.enableTimePicker,timePickerInline:"",is24:"",teleport:!0,locale:s.unref(g6)().language,format:r.format,previewFormat:r.format,cancelText:s.unref(a)("cancelBtn"),selectText:s.unref(a)("selectBtn"),onOpen:i[1]||(i[1]=o=>n.value=!0),onBlur:i[2]||(i[2]=o=>n.value=!1)},null,8,["class","modelValue","disabled","clearable","yearPicker","monthPicker","range","enableTimePicker","locale","format","previewFormat","cancelText","selectText"]))}});const _u=Q1(Ez3,[["__scopeId","data-v-f4b20487"]]),Dz3=s.defineComponent({__name:"PgaDatePicker",props:s.mergeModels({isDateModel:{type:Boolean},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{},notClearable:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=s.computed({get(){const r=t.value;if(!r)return null;if(r instanceof Date)return r;const[i,o,l]=r.split("-").map(Number);return new Date(i,o-1,l)},set(r){if(!r){t.value=null;return}if(a.isDateModel){t.value=r;return}t.value=r.toISOString().split("T")[0]}});function n(r){return M6(r,{format:"numeric",withTime:!1})}return(r,i)=>(s.openBlock(),s.createBlock(v0,{label:r.label,withRequiredLabel:r.withRequiredLabel,withOptionalLabel:r.withOptionalLabel,withLabelSpace:r.withLabelSpace,info:r.info,description:r.description,errors:r.errors,grow:r.grow},{default:s.withCtx(()=>[s.createVNode(_u,{modelValue:c.value,"onUpdate:modelValue":i[0]||(i[0]=o=>c.value=o),disabled:r.disabled,notClearable:r.notClearable,format:n},null,8,["modelValue","disabled","notClearable"])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}}),Pz3=s.defineComponent({__name:"PgaDatetimePicker",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{},notClearable:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue");function a(c){return M6(c,{format:"short",withTime:!0})}return(c,n)=>(s.openBlock(),s.createBlock(v0,{label:c.label,withRequiredLabel:c.withRequiredLabel,withOptionalLabel:c.withOptionalLabel,withLabelSpace:c.withLabelSpace,info:c.info,description:c.description,errors:c.errors,grow:c.grow},{default:s.withCtx(()=>[s.createVNode(_u,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=r=>t.value=r),enableTimePicker:"",disabled:c.disabled,notClearable:c.notClearable,format:a},null,8,["modelValue","disabled","notClearable"])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}}),Oz3={class:"icons-container"},Iz3=s.defineComponent({__name:"PgaIconSelector",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(n=>({"228e07d0":s.unref(a).input.padding,"1e595ad6":s.unref(a).input.borderColor,"74bca102":s.unref(a).input.borderRadius}));const t=s.useModel(e,"modelValue"),{form:a}=i4(),c=["star","heart","mail","plus","minus","pen","square-pen","check","trash","file","clipboard","bell","calendar","clock","banknote","gift","percent","hand-coins","house","warehouse","car","store","gamepad","smartphone","school","shirt","stethoscope","smile","frown","cog","lock","bug","camera","code","headphones","wifi","user","search","arrow-left-right","circle"];return(n,r)=>(s.openBlock(),s.createBlock(v0,{label:n.label,withRequiredLabel:n.withRequiredLabel,withOptionalLabel:n.withOptionalLabel,withLabelSpace:n.withLabelSpace,info:n.info,description:n.description,errors:n.errors,grow:n.grow},{default:s.withCtx(()=>[s.createElementVNode("div",Oz3,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(c,i=>s.createVNode(A2,{key:i,icon:i,variant:t.value===i?"outlined":"flat",color:t.value===i?"primary":"first",width:"2.5rem",disabled:n.disabled,onClick:o=>t.value=i},null,8,["icon","variant","color","disabled","onClick"])),64))])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const Bz3=Q1(Iz3,[["__scopeId","data-v-6978c886"]]);/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var rM1=1252,Rz3=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],c11={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},n11=function(e){Rz3.indexOf(e)!=-1&&(rM1=c11[0]=e)};function Fz3(){n11(1252)}var r6=function(e){n11(e)};function iM1(){r6(1200),Fz3()}function W81(e){for(var t=[],a=0,c=e.length;a<c;++a)t[a]=e.charCodeAt(a);return t}function $z3(e){for(var t=[],a=0;a<e.length>>1;++a)t[a]=String.fromCharCode(e.charCodeAt(2*a)+(e.charCodeAt(2*a+1)<<8));return t.join("")}function oM1(e){for(var t=[],a=0;a<e.length>>1;++a)t[a]=String.fromCharCode(e.charCodeAt(2*a+1)+(e.charCodeAt(2*a)<<8));return t.join("")}var P9=function(e){var t=e.charCodeAt(0),a=e.charCodeAt(1);return t==255&&a==254?$z3(e.slice(2)):t==254&&a==255?oM1(e.slice(2)):t==65279?e.slice(1):e},Ud=function(t){return String.fromCharCode(t)},Y81=function(t){return String.fromCharCode(t)},Z8,fa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function G81(e){for(var t="",a=0,c=0,n=0,r=0,i=0,o=0,l=0,f=0;f<e.length;)a=e.charCodeAt(f++),r=a>>2,c=e.charCodeAt(f++),i=(a&3)<<4|c>>4,n=e.charCodeAt(f++),o=(c&15)<<2|n>>6,l=n&63,isNaN(c)?o=l=64:isNaN(n)&&(l=64),t+=fa.charAt(r)+fa.charAt(i)+fa.charAt(o)+fa.charAt(l);return t}function d0(e){var t="",a=0,c=0,n=0,r=0,i=0,o=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var f=0;f<e.length;)r=fa.indexOf(e.charAt(f++)),i=fa.indexOf(e.charAt(f++)),a=r<<2|i>>4,t+=String.fromCharCode(a),o=fa.indexOf(e.charAt(f++)),c=(i&15)<<4|o>>2,o!==64&&(t+=String.fromCharCode(c)),l=fa.indexOf(e.charAt(f++)),n=(o&3)<<6|l,l!==64&&(t+=String.fromCharCode(n));return t}var F2=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),$i=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,a){return a?new Buffer(t,a):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Ba(e){return F2?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Z81(e){return F2?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var J0=function(t){return F2?$i(t,"binary"):t.split("").map(function(a){return a.charCodeAt(0)&255})};function qi(e){if(Array.isArray(e))return e.map(function(c){return String.fromCharCode(c)}).join("");for(var t=[],a=0;a<e.length;++a)t[a]=String.fromCharCode(e[a]);return t.join("")}function r11(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return r11(new Uint8Array(e));for(var t=new Array(e.length),a=0;a<e.length;++a)t[a]=e[a];return t}var X8=F2?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:$i(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,a=0;for(t=0;t<e.length;++t)a+=e[t].length;var c=new Uint8Array(a),n=0;for(t=0,a=0;t<e.length;a+=n,++t)if(n=e[t].length,e[t]instanceof Uint8Array)c.set(e[t],a);else{if(typeof e[t]=="string")throw"wtf";c.set(new Uint8Array(e[t]),a)}return c}return[].concat.apply([],e.map(function(r){return Array.isArray(r)?r:[].slice.call(r)}))};function qz3(e){for(var t=[],a=0,c=e.length+250,n=Ba(e.length+255),r=0;r<e.length;++r){var i=e.charCodeAt(r);if(i<128)n[a++]=i;else if(i<2048)n[a++]=192|i>>6&31,n[a++]=128|i&63;else if(i>=55296&&i<57344){i=(i&1023)+64;var o=e.charCodeAt(++r)&1023;n[a++]=240|i>>8&7,n[a++]=128|i>>2&63,n[a++]=128|o>>6&15|(i&3)<<4,n[a++]=128|o&63}else n[a++]=224|i>>12&15,n[a++]=128|i>>6&63,n[a++]=128|i&63;a>c&&(t.push(n.slice(0,a)),a=0,n=Ba(65535),c=65530)}return t.push(n.slice(0,a)),X8(t)}var E4=/\u0000/g,O9=/[\u0001-\u0006]/g;function Io(e){for(var t="",a=e.length-1;a>=0;)t+=e.charAt(a--);return t}function i6(e,t){var a=""+e;return a.length>=t?a:ne("0",t-a.length)+a}function i11(e,t){var a=""+e;return a.length>=t?a:ne(" ",t-a.length)+a}function k$(e,t){var a=""+e;return a.length>=t?a:a+ne(" ",t-a.length)}function jz3(e,t){var a=""+Math.round(e);return a.length>=t?a:ne("0",t-a.length)+a}function Uz3(e,t){var a=""+e;return a.length>=t?a:ne("0",t-a.length)+a}var X81=Math.pow(2,32);function oo(e,t){if(e>X81||e<-X81)return jz3(e,t);var a=Math.round(e);return Uz3(a,t)}function x$(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var K81=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],KW=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Wz3(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var k2={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Q81={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Yz3={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function b$(e,t,a){for(var c=e<0?-1:1,n=e*c,r=0,i=1,o=0,l=1,f=0,u=0,d=Math.floor(n);f<t&&(d=Math.floor(n),o=d*i+r,u=d*f+l,!(n-d<5e-8));)n=1/(n-d),r=i,i=o,l=f,f=u;if(u>t&&(f>t?(u=l,o=r):(u=f,o=i)),!a)return[0,c*o,u];var h=Math.floor(c*o/u);return[h,c*o-h*u,u]}function Wr(e,t,a){if(e>2958465||e<0)return null;var c=e|0,n=Math.floor(86400*(e-c)),r=0,i=[],o={D:c,T:n,u:86400*(e-c)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(c+=1462),o.u>.9999&&(o.u=0,++n==86400&&(o.T=n=0,++c,++o.D)),c===60)i=a?[1317,10,29]:[1900,2,29],r=3;else if(c===0)i=a?[1317,8,29]:[1900,1,0],r=6;else{c>60&&--c;var l=new Date(1900,0,1);l.setDate(l.getDate()+c-1),i=[l.getFullYear(),l.getMonth()+1,l.getDate()],r=l.getDay(),c<60&&(r=(r+6)%7),a&&(r=Jz3(l,i))}return o.y=i[0],o.m=i[1],o.d=i[2],o.S=n%60,n=Math.floor(n/60),o.M=n%60,n=Math.floor(n/60),o.H=n,o.q=r,o}var sM1=new Date(1899,11,31,0,0,0),Gz3=sM1.getTime(),Zz3=new Date(1900,2,1,0,0,0);function lM1(e,t){var a=e.getTime();return t?a-=1461*24*60*60*1e3:e>=Zz3&&(a+=24*60*60*1e3),(a-(Gz3+(e.getTimezoneOffset()-sM1.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function o11(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Xz3(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Kz3(e){var t=e<0?12:11,a=o11(e.toFixed(12));return a.length<=t||(a=e.toPrecision(10),a.length<=t)?a:e.toExponential(5)}function Qz3(e){var t=o11(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function Cf(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),a;return t>=-4&&t<=-1?a=e.toPrecision(10+t):Math.abs(t)<=9?a=Kz3(e):t===10?a=e.toFixed(10).substr(0,12):a=Qz3(e),o11(Xz3(a.toUpperCase()))}function bi(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Cf(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return T0(14,lM1(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Jz3(e,t){t[0]-=581;var a=e.getDay();return e<60&&(a=(a+6)%7),a}function eC3(e,t,a,c){var n="",r=0,i=0,o=a.y,l,f=0;switch(e){case 98:o=a.y+543;case 121:switch(t.length){case 1:case 2:l=o%100,f=2;break;default:l=o%1e4,f=4;break}break;case 109:switch(t.length){case 1:case 2:l=a.m,f=t.length;break;case 3:return KW[a.m-1][1];case 5:return KW[a.m-1][0];default:return KW[a.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=a.d,f=t.length;break;case 3:return K81[a.q][0];default:return K81[a.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(a.H+11)%12,f=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=a.H,f=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=a.M,f=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return a.u===0&&(t=="s"||t=="ss")?i6(a.S,t.length):(c>=2?i=c===3?1e3:100:i=c===1?10:1,r=Math.round(i*(a.S+a.u)),r>=60*i&&(r=0),t==="s"?r===0?"0":""+r/i:(n=i6(r,2+c),t==="ss"?n.substr(0,2):"."+n.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=a.D*24+a.H;break;case"[m]":case"[mm]":l=(a.D*24+a.H)*60+a.M;break;case"[s]":case"[ss]":l=((a.D*24+a.H)*60+a.M)*60+Math.round(a.S+a.u);break;default:throw"bad abstime format: "+t}f=t.length===3?1:2;break;case 101:l=o,f=1;break}var u=f>0?i6(l,f):"";return u}function ua(e){var t=3;if(e.length<=t)return e;for(var a=e.length%t,c=e.substr(0,a);a!=e.length;a+=t)c+=(c.length>0?",":"")+e.substr(a,t);return c}var fM1=/%/g;function tC3(e,t,a){var c=t.replace(fM1,""),n=t.length-c.length;return f8(e,c,a*Math.pow(10,2*n))+ne("%",n)}function aC3(e,t,a){for(var c=t.length-1;t.charCodeAt(c-1)===44;)--c;return f8(e,t.substr(0,c),a/Math.pow(10,3*(t.length-c)))}function uM1(e,t){var a,c=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+uM1(e,-t);var n=e.indexOf(".");n===-1&&(n=e.indexOf("E"));var r=Math.floor(Math.log(t)*Math.LOG10E)%n;if(r<0&&(r+=n),a=(t/Math.pow(10,r)).toPrecision(c+1+(n+r)%n),a.indexOf("e")===-1){var i=Math.floor(Math.log(t)*Math.LOG10E);for(a.indexOf(".")===-1?a=a.charAt(0)+"."+a.substr(1)+"E+"+(i-a.length+r):a+="E+"+(i-r);a.substr(0,2)==="0.";)a=a.charAt(0)+a.substr(2,n)+"."+a.substr(2+n),a=a.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");a=a.replace(/\+-/,"-")}a=a.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,f,u){return l+f+u.substr(0,(n+r)%n)+"."+u.substr(r)+"E"})}else a=t.toExponential(c);return e.match(/E\+00$/)&&a.match(/e[+-]\d$/)&&(a=a.substr(0,a.length-1)+"0"+a.charAt(a.length-1)),e.match(/E\-/)&&a.match(/e\+/)&&(a=a.replace(/e\+/,"e")),a.replace("e","E")}var dM1=/# (\?+)( ?)\/( ?)(\d+)/;function cC3(e,t,a){var c=parseInt(e[4],10),n=Math.round(t*c),r=Math.floor(n/c),i=n-r*c,o=c;return a+(r===0?"":""+r)+" "+(i===0?ne(" ",e[1].length+1+e[4].length):i11(i,e[1].length)+e[2]+"/"+e[3]+i6(o,e[4].length))}function nC3(e,t,a){return a+(t===0?"":""+t)+ne(" ",e[1].length+2+e[4].length)}var hM1=/^#*0*\.([0#]+)/,pM1=/\).*[0#]/,mM1=/\(###\) ###\\?-####/;function N4(e){for(var t="",a,c=0;c!=e.length;++c)switch(a=e.charCodeAt(c)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(a)}return t}function J81(e,t){var a=Math.pow(10,t);return""+Math.round(e*a)/a}function ea1(e,t){var a=e-Math.floor(e),c=Math.pow(10,t);return t<(""+Math.round(a*c)).length?0:Math.round(a*c)}function rC3(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function iC3(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function z0(e,t,a){if(e.charCodeAt(0)===40&&!t.match(pM1)){var c=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return a>=0?z0("n",c,a):"("+z0("n",c,-a)+")"}if(t.charCodeAt(t.length-1)===44)return aC3(e,t,a);if(t.indexOf("%")!==-1)return tC3(e,t,a);if(t.indexOf("E")!==-1)return uM1(t,a);if(t.charCodeAt(0)===36)return"$"+z0(e,t.substr(t.charAt(1)==" "?2:1),a);var n,r,i,o,l=Math.abs(a),f=a<0?"-":"";if(t.match(/^00+$/))return f+oo(l,t.length);if(t.match(/^[#?]+$/))return n=oo(a,0),n==="0"&&(n=""),n.length>t.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(dM1))return cC3(r,l,f);if(t.match(/^#+0+$/))return f+oo(l,t.length-t.indexOf("0"));if(r=t.match(hM1))return n=J81(a,r[1].length).replace(/^([^\.]+)$/,"$1."+N4(r[1])).replace(/\.$/,"."+N4(r[1])).replace(/\.(\d*)$/,function(v,m){return"."+m+ne("0",N4(r[1]).length-m.length)}),t.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),r=t.match(/^(0*)\.(#*)$/))return f+J81(l,r[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,r[1].length?"0.":".");if(r=t.match(/^#{1,3},##0(\.?)$/))return f+ua(oo(l,0));if(r=t.match(/^#,##0\.([#0]*0)$/))return a<0?"-"+z0(e,t,-a):ua(""+(Math.floor(a)+rC3(a,r[1].length)))+"."+i6(ea1(a,r[1].length),r[1].length);if(r=t.match(/^#,#*,#0/))return z0(e,t.replace(/^#,#*,/,""),a);if(r=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=Io(z0(e,t.replace(/[\\-]/g,""),a)),i=0,Io(Io(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return i<n.length?n.charAt(i++):v==="0"?"0":""}));if(t.match(mM1))return n=z0(e,"##########",a),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var u="";if(r=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(r[4].length,7),o=b$(l,Math.pow(10,i)-1,!1),n=""+f,u=f8("n",r[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),n+=u+r[2]+"/"+r[3],u=k$(o[2],i),u.length<r[4].length&&(u=N4(r[4].substr(r[4].length-u.length))+u),n+=u,n;if(r=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(Math.max(r[1].length,r[4].length),7),o=b$(l,Math.pow(10,i)-1,!0),f+(o[0]||(o[1]?"":"0"))+" "+(o[1]?i11(o[1],i)+r[2]+"/"+r[3]+k$(o[2],i):ne(" ",2*i+1+r[2].length+r[3].length));if(r=t.match(/^[#0?]+$/))return n=oo(a,0),t.length<=n.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(/^([#0?]+)\.([#0]+)$/)){n=""+a.toFixed(Math.min(r[2].length,10)).replace(/([^0])0+$/,"$1"),i=n.indexOf(".");var d=t.indexOf(".")-i,h=t.length-n.length-d;return N4(t.substr(0,d)+n+t.substr(t.length-h))}if(r=t.match(/^00,000\.([#0]*0)$/))return i=ea1(a,r[1].length),a<0?"-"+z0(e,t,-a):ua(iC3(a)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?i6(0,3-v.length):"")+v})+"."+i6(i,r[1].length);switch(t){case"###,##0.00":return z0(e,"#,##0.00",a);case"###,###":case"##,###":case"#,###":var p=ua(oo(l,0));return p!=="0"?f+p:"";case"###,###.00":return z0(e,"###,##0.00",a).replace(/^0\./,".");case"#,###.00":return z0(e,"#,##0.00",a).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function oC3(e,t,a){for(var c=t.length-1;t.charCodeAt(c-1)===44;)--c;return f8(e,t.substr(0,c),a/Math.pow(10,3*(t.length-c)))}function sC3(e,t,a){var c=t.replace(fM1,""),n=t.length-c.length;return f8(e,c,a*Math.pow(10,2*n))+ne("%",n)}function vM1(e,t){var a,c=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+vM1(e,-t);var n=e.indexOf(".");n===-1&&(n=e.indexOf("E"));var r=Math.floor(Math.log(t)*Math.LOG10E)%n;if(r<0&&(r+=n),a=(t/Math.pow(10,r)).toPrecision(c+1+(n+r)%n),!a.match(/[Ee]/)){var i=Math.floor(Math.log(t)*Math.LOG10E);a.indexOf(".")===-1?a=a.charAt(0)+"."+a.substr(1)+"E+"+(i-a.length+r):a+="E+"+(i-r),a=a.replace(/\+-/,"-")}a=a.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,f,u){return l+f+u.substr(0,(n+r)%n)+"."+u.substr(r)+"E"})}else a=t.toExponential(c);return e.match(/E\+00$/)&&a.match(/e[+-]\d$/)&&(a=a.substr(0,a.length-1)+"0"+a.charAt(a.length-1)),e.match(/E\-/)&&a.match(/e\+/)&&(a=a.replace(/e\+/,"e")),a.replace("e","E")}function G6(e,t,a){if(e.charCodeAt(0)===40&&!t.match(pM1)){var c=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return a>=0?G6("n",c,a):"("+G6("n",c,-a)+")"}if(t.charCodeAt(t.length-1)===44)return oC3(e,t,a);if(t.indexOf("%")!==-1)return sC3(e,t,a);if(t.indexOf("E")!==-1)return vM1(t,a);if(t.charCodeAt(0)===36)return"$"+G6(e,t.substr(t.charAt(1)==" "?2:1),a);var n,r,i,o,l=Math.abs(a),f=a<0?"-":"";if(t.match(/^00+$/))return f+i6(l,t.length);if(t.match(/^[#?]+$/))return n=""+a,a===0&&(n=""),n.length>t.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(dM1))return nC3(r,l,f);if(t.match(/^#+0+$/))return f+i6(l,t.length-t.indexOf("0"));if(r=t.match(hM1))return n=(""+a).replace(/^([^\.]+)$/,"$1."+N4(r[1])).replace(/\.$/,"."+N4(r[1])),n=n.replace(/\.(\d*)$/,function(v,m){return"."+m+ne("0",N4(r[1]).length-m.length)}),t.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),r=t.match(/^(0*)\.(#*)$/))return f+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,r[1].length?"0.":".");if(r=t.match(/^#{1,3},##0(\.?)$/))return f+ua(""+l);if(r=t.match(/^#,##0\.([#0]*0)$/))return a<0?"-"+G6(e,t,-a):ua(""+a)+"."+ne("0",r[1].length);if(r=t.match(/^#,#*,#0/))return G6(e,t.replace(/^#,#*,/,""),a);if(r=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=Io(G6(e,t.replace(/[\\-]/g,""),a)),i=0,Io(Io(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return i<n.length?n.charAt(i++):v==="0"?"0":""}));if(t.match(mM1))return n=G6(e,"##########",a),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var u="";if(r=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(r[4].length,7),o=b$(l,Math.pow(10,i)-1,!1),n=""+f,u=f8("n",r[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),n+=u+r[2]+"/"+r[3],u=k$(o[2],i),u.length<r[4].length&&(u=N4(r[4].substr(r[4].length-u.length))+u),n+=u,n;if(r=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(Math.max(r[1].length,r[4].length),7),o=b$(l,Math.pow(10,i)-1,!0),f+(o[0]||(o[1]?"":"0"))+" "+(o[1]?i11(o[1],i)+r[2]+"/"+r[3]+k$(o[2],i):ne(" ",2*i+1+r[2].length+r[3].length));if(r=t.match(/^[#0?]+$/))return n=""+a,t.length<=n.length?n:N4(t.substr(0,t.length-n.length))+n;if(r=t.match(/^([#0]+)\.([#0]+)$/)){n=""+a.toFixed(Math.min(r[2].length,10)).replace(/([^0])0+$/,"$1"),i=n.indexOf(".");var d=t.indexOf(".")-i,h=t.length-n.length-d;return N4(t.substr(0,d)+n+t.substr(t.length-h))}if(r=t.match(/^00,000\.([#0]*0)$/))return a<0?"-"+G6(e,t,-a):ua(""+a).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?i6(0,3-v.length):"")+v})+"."+i6(0,r[1].length);switch(t){case"###,###":case"##,###":case"#,###":var p=ua(""+l);return p!=="0"?f+p:"";default:if(t.match(/\.[0#?]*$/))return G6(e,t.slice(0,t.lastIndexOf(".")),a)+N4(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function f8(e,t,a){return(a|0)===a?G6(e,t,a):z0(e,t,a)}function lC3(e){for(var t=[],a=!1,c=0,n=0;c<e.length;++c)switch(e.charCodeAt(c)){case 34:a=!a;break;case 95:case 42:case 92:++c;break;case 59:t[t.length]=e.substr(n,c-n),n=c+1}if(t[t.length]=e.substr(n),a===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var yM1=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Ts(e){for(var t=0,a="",c="";t<e.length;)switch(a=e.charAt(t)){case"G":x$(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(c=a;e.charAt(t++)!=="]"&&t<e.length;)c+=e.charAt(t);if(c.match(yM1))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(a=e.charAt(++t))>-1||a=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===a;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function fC3(e,t,a,c){for(var n=[],r="",i=0,o="",l="t",f,u,d,h="H";i<e.length;)switch(o=e.charAt(i)){case"G":if(!x$(e,i))throw new Error("unrecognized character "+o+" in "+e);n[n.length]={t:"G",v:"General"},i+=7;break;case'"':for(r="";(d=e.charCodeAt(++i))!==34&&i<e.length;)r+=String.fromCharCode(d);n[n.length]={t:"t",v:r},++i;break;case"\\":var p=e.charAt(++i),v=p==="("||p===")"?p:"t";n[n.length]={t:v,v:p},++i;break;case"_":n[n.length]={t:"t",v:" "},i+=2;break;case"@":n[n.length]={t:"T",v:t},++i;break;case"B":case"b":if(e.charAt(i+1)==="1"||e.charAt(i+1)==="2"){if(f==null&&(f=Wr(t,a,e.charAt(i+1)==="2"),f==null))return"";n[n.length]={t:"X",v:e.substr(i,2)},l=o,i+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":o=o.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||f==null&&(f=Wr(t,a),f==null))return"";for(r=o;++i<e.length&&e.charAt(i).toLowerCase()===o;)r+=o;o==="m"&&l.toLowerCase()==="h"&&(o="M"),o==="h"&&(o=h),n[n.length]={t:o,v:r},l=o;break;case"A":case"a":case"上":var m={t:o,v:o};if(f==null&&(f=Wr(t,a)),e.substr(i,3).toUpperCase()==="A/P"?(f!=null&&(m.v=f.H>=12?"P":"A"),m.t="T",h="h",i+=3):e.substr(i,5).toUpperCase()==="AM/PM"?(f!=null&&(m.v=f.H>=12?"PM":"AM"),m.t="T",i+=5,h="h"):e.substr(i,5).toUpperCase()==="上午/下午"?(f!=null&&(m.v=f.H>=12?"下午":"上午"),m.t="T",i+=5,h="h"):(m.t="t",++i),f==null&&m.t==="T")return"";n[n.length]=m,l=o;break;case"[":for(r=o;e.charAt(i++)!=="]"&&i<e.length;)r+=e.charAt(i);if(r.slice(-1)!=="]")throw'unterminated "[" block: |'+r+"|";if(r.match(yM1)){if(f==null&&(f=Wr(t,a),f==null))return"";n[n.length]={t:"Z",v:r.toLowerCase()},l=r.charAt(1)}else r.indexOf("$")>-1&&(r=(r.match(/\$([^-\[\]]*)/)||[])[1]||"$",Ts(e)||(n[n.length]={t:"t",v:r}));break;case".":if(f!=null){for(r=o;++i<e.length&&(o=e.charAt(i))==="0";)r+=o;n[n.length]={t:"s",v:r};break}case"0":case"#":for(r=o;++i<e.length&&"0#?.,E+-%".indexOf(o=e.charAt(i))>-1;)r+=o;n[n.length]={t:"n",v:r};break;case"?":for(r=o;e.charAt(++i)===o;)r+=o;n[n.length]={t:o,v:r},l=o;break;case"*":++i,(e.charAt(i)==" "||e.charAt(i)=="*")&&++i;break;case"(":case")":n[n.length]={t:c===1?"t":o,v:o},++i;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(r=o;i<e.length&&"0123456789".indexOf(e.charAt(++i))>-1;)r+=e.charAt(i);n[n.length]={t:"D",v:r};break;case" ":n[n.length]={t:o,v:o},++i;break;case"$":n[n.length]={t:"t",v:"$"},++i;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+e);n[n.length]={t:"t",v:o},++i;break}var y=0,g=0,M;for(i=n.length-1,l="t";i>=0;--i)switch(n[i].t){case"h":case"H":n[i].t=h,l="h",y<1&&(y=1);break;case"s":(M=n[i].v.match(/\.0+$/))&&(g=Math.max(g,M[0].length-1)),y<3&&(y=3);case"d":case"y":case"M":case"e":l=n[i].t;break;case"m":l==="s"&&(n[i].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&n[i].v.match(/[Hh]/)&&(y=1),y<2&&n[i].v.match(/[Mm]/)&&(y=2),y<3&&n[i].v.match(/[Ss]/)&&(y=3)}switch(y){case 0:break;case 1:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M),f.M>=60&&(f.M=0,++f.H);break;case 2:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M);break}var x="",k;for(i=0;i<n.length;++i)switch(n[i].t){case"t":case"T":case" ":case"D":break;case"X":n[i].v="",n[i].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":n[i].v=eC3(n[i].t.charCodeAt(0),n[i].v,f,g),n[i].t="t";break;case"n":case"?":for(k=i+1;n[k]!=null&&((o=n[k].t)==="?"||o==="D"||(o===" "||o==="t")&&n[k+1]!=null&&(n[k+1].t==="?"||n[k+1].t==="t"&&n[k+1].v==="/")||n[i].t==="("&&(o===" "||o==="n"||o===")")||o==="t"&&(n[k].v==="/"||n[k].v===" "&&n[k+1]!=null&&n[k+1].t=="?"));)n[i].v+=n[k].v,n[k]={v:"",t:";"},++k;x+=n[i].v,i=k-1;break;case"G":n[i].t="t",n[i].v=bi(t,a);break}var b="",_,C;if(x.length>0){x.charCodeAt(0)==40?(_=t<0&&x.charCodeAt(0)===45?-t:t,C=f8("n",x,_)):(_=t<0&&c>1?-t:t,C=f8("n",x,_),_<0&&n[0]&&n[0].t=="t"&&(C=C.substr(1),n[0].v="-"+n[0].v)),k=C.length-1;var H=n.length;for(i=0;i<n.length;++i)if(n[i]!=null&&n[i].t!="t"&&n[i].v.indexOf(".")>-1){H=i;break}var V=n.length;if(H===n.length&&C.indexOf("E")===-1){for(i=n.length-1;i>=0;--i)n[i]==null||"n?".indexOf(n[i].t)===-1||(k>=n[i].v.length-1?(k-=n[i].v.length,n[i].v=C.substr(k+1,n[i].v.length)):k<0?n[i].v="":(n[i].v=C.substr(0,k+1),k=-1),n[i].t="t",V=i);k>=0&&V<n.length&&(n[V].v=C.substr(0,k+1)+n[V].v)}else if(H!==n.length&&C.indexOf("E")===-1){for(k=C.indexOf(".")-1,i=H;i>=0;--i)if(!(n[i]==null||"n?".indexOf(n[i].t)===-1)){for(u=n[i].v.indexOf(".")>-1&&i===H?n[i].v.indexOf(".")-1:n[i].v.length-1,b=n[i].v.substr(u+1);u>=0;--u)k>=0&&(n[i].v.charAt(u)==="0"||n[i].v.charAt(u)==="#")&&(b=C.charAt(k--)+b);n[i].v=b,n[i].t="t",V=i}for(k>=0&&V<n.length&&(n[V].v=C.substr(0,k+1)+n[V].v),k=C.indexOf(".")+1,i=H;i<n.length;++i)if(!(n[i]==null||"n?(".indexOf(n[i].t)===-1&&i!==H)){for(u=n[i].v.indexOf(".")>-1&&i===H?n[i].v.indexOf(".")+1:0,b=n[i].v.substr(0,u);u<n[i].v.length;++u)k<C.length&&(b+=C.charAt(k++));n[i].v=b,n[i].t="t",V=i}}}for(i=0;i<n.length;++i)n[i]!=null&&"n?".indexOf(n[i].t)>-1&&(_=c>1&&t<0&&i>0&&n[i-1].v==="-"?-t:t,n[i].v=f8(n[i].t,n[i].v,_),n[i].t="t");var N="";for(i=0;i!==n.length;++i)n[i]!=null&&(N+=n[i].v);return N}var ta1=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function aa1(e,t){if(t==null)return!1;var a=parseFloat(t[2]);switch(t[1]){case"=":if(e==a)return!0;break;case">":if(e>a)return!0;break;case"<":if(e<a)return!0;break;case"<>":if(e!=a)return!0;break;case">=":if(e>=a)return!0;break;case"<=":if(e<=a)return!0;break}return!1}function uC3(e,t){var a=lC3(e),c=a.length,n=a[c-1].indexOf("@");if(c<4&&n>-1&&--c,a.length>4)throw new Error("cannot find right format for |"+a.join("|")+"|");if(typeof t!="number")return[4,a.length===4||n>-1?a[a.length-1]:"@"];switch(a.length){case 1:a=n>-1?["General","General","General",a[0]]:[a[0],a[0],a[0],"@"];break;case 2:a=n>-1?[a[0],a[0],a[0],a[1]]:[a[0],a[1],a[0],"@"];break;case 3:a=n>-1?[a[0],a[1],a[0],a[2]]:[a[0],a[1],a[2],"@"];break}var r=t>0?a[0]:t<0?a[1]:a[2];if(a[0].indexOf("[")===-1&&a[1].indexOf("[")===-1)return[c,r];if(a[0].match(/\[[=<>]/)!=null||a[1].match(/\[[=<>]/)!=null){var i=a[0].match(ta1),o=a[1].match(ta1);return aa1(t,i)?[c,a[0]]:aa1(t,o)?[c,a[1]]:[c,a[i!=null&&o!=null?2:1]]}return[c,r]}function T0(e,t,a){a==null&&(a={});var c="";switch(typeof e){case"string":e=="m/d/yy"&&a.dateNF?c=a.dateNF:c=e;break;case"number":e==14&&a.dateNF?c=a.dateNF:c=(a.table!=null?a.table:k2)[e],c==null&&(c=a.table&&a.table[Q81[e]]||k2[Q81[e]]),c==null&&(c=Yz3[e]||"General");break}if(x$(c,0))return bi(t,a);t instanceof Date&&(t=lM1(t,a.date1904));var n=uC3(c,t);if(x$(n[1]))return bi(t,a);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return fC3(n[1],t,a,n[0])}function ri(e,t){if(typeof t!="number"){t=+t||-1;for(var a=0;a<392;++a){if(k2[a]==null){t<0&&(t=a);continue}if(k2[a]==e){t=a;break}}t<0&&(t=391)}return k2[t]=e,t}function gM1(){k2=Wz3()}var dC3={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},MM1=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function hC3(e){var t=typeof e=="number"?k2[e]:e;return t=t.replace(MM1,"(\\d+)"),new RegExp("^"+t+"$")}function pC3(e,t,a){var c=-1,n=-1,r=-1,i=-1,o=-1,l=-1;(t.match(MM1)||[]).forEach(function(d,h){var p=parseInt(a[h+1],10);switch(d.toLowerCase().charAt(0)){case"y":c=p;break;case"d":r=p;break;case"h":i=p;break;case"s":l=p;break;case"m":i>=0?o=p:n=p;break}}),l>=0&&o==-1&&n>=0&&(o=n,n=-1);var f=(""+(c>=0?c:new Date().getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(r>=1?r:1)).slice(-2);f.length==7&&(f="0"+f),f.length==8&&(f="20"+f);var u=("00"+(i>=0?i:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return i==-1&&o==-1&&l==-1?f:c==-1&&n==-1&&r==-1?u:f+"T"+u}var mC3=function(){var e={};e.version="1.2.0";function t(){for(var C=0,H=new Array(256),V=0;V!=256;++V)C=V,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,H[V]=C;return typeof Int32Array<"u"?new Int32Array(H):H}var a=t();function c(C){var H=0,V=0,N=0,L=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(N=0;N!=256;++N)L[N]=C[N];for(N=0;N!=256;++N)for(V=C[N],H=256+N;H<4096;H+=256)V=L[H]=V>>>8^C[V&255];var w=[];for(N=1;N!=16;++N)w[N-1]=typeof Int32Array<"u"?L.subarray(N*256,N*256+256):L.slice(N*256,N*256+256);return w}var n=c(a),r=n[0],i=n[1],o=n[2],l=n[3],f=n[4],u=n[5],d=n[6],h=n[7],p=n[8],v=n[9],m=n[10],y=n[11],g=n[12],M=n[13],x=n[14];function k(C,H){for(var V=H^-1,N=0,L=C.length;N<L;)V=V>>>8^a[(V^C.charCodeAt(N++))&255];return~V}function b(C,H){for(var V=H^-1,N=C.length-15,L=0;L<N;)V=x[C[L++]^V&255]^M[C[L++]^V>>8&255]^g[C[L++]^V>>16&255]^y[C[L++]^V>>>24]^m[C[L++]]^v[C[L++]]^p[C[L++]]^h[C[L++]]^d[C[L++]]^u[C[L++]]^f[C[L++]]^l[C[L++]]^o[C[L++]]^i[C[L++]]^r[C[L++]]^a[C[L++]];for(N+=15;L<N;)V=V>>>8^a[(V^C[L++])&255];return~V}function _(C,H){for(var V=H^-1,N=0,L=C.length,w=0,P=0;N<L;)w=C.charCodeAt(N++),w<128?V=V>>>8^a[(V^w)&255]:w<2048?(V=V>>>8^a[(V^(192|w>>6&31))&255],V=V>>>8^a[(V^(128|w&63))&255]):w>=55296&&w<57344?(w=(w&1023)+64,P=C.charCodeAt(N++)&1023,V=V>>>8^a[(V^(240|w>>8&7))&255],V=V>>>8^a[(V^(128|w>>2&63))&255],V=V>>>8^a[(V^(128|P>>6&15|(w&3)<<4))&255],V=V>>>8^a[(V^(128|P&63))&255]):(V=V>>>8^a[(V^(224|w>>12&15))&255],V=V>>>8^a[(V^(128|w>>6&63))&255],V=V>>>8^a[(V^(128|w&63))&255]);return~V}return e.table=a,e.bstr=k,e.buf=b,e.str=_,e}(),U2=function(){var t={};t.version="1.2.1";function a(r1,y1){for(var h1=r1.split("/"),m1=y1.split("/"),g1=0,M1=0,N1=Math.min(h1.length,m1.length);g1<N1;++g1){if(M1=h1[g1].length-m1[g1].length)return M1;if(h1[g1]!=m1[g1])return h1[g1]<m1[g1]?-1:1}return h1.length-m1.length}function c(r1){if(r1.charAt(r1.length-1)=="/")return r1.slice(0,-1).indexOf("/")===-1?r1:c(r1.slice(0,-1));var y1=r1.lastIndexOf("/");return y1===-1?r1:r1.slice(0,y1+1)}function n(r1){if(r1.charAt(r1.length-1)=="/")return n(r1.slice(0,-1));var y1=r1.lastIndexOf("/");return y1===-1?r1:r1.slice(y1+1)}function r(r1,y1){typeof y1=="string"&&(y1=new Date(y1));var h1=y1.getHours();h1=h1<<6|y1.getMinutes(),h1=h1<<5|y1.getSeconds()>>>1,r1.write_shift(2,h1);var m1=y1.getFullYear()-1980;m1=m1<<4|y1.getMonth()+1,m1=m1<<5|y1.getDate(),r1.write_shift(2,m1)}function i(r1){var y1=r1.read_shift(2)&65535,h1=r1.read_shift(2)&65535,m1=new Date,g1=h1&31;h1>>>=5;var M1=h1&15;h1>>>=4,m1.setMilliseconds(0),m1.setFullYear(h1+1980),m1.setMonth(M1-1),m1.setDate(g1);var N1=y1&31;y1>>>=5;var V1=y1&63;return y1>>>=6,m1.setHours(y1),m1.setMinutes(V1),m1.setSeconds(N1<<1),m1}function o(r1){a4(r1,0);for(var y1={},h1=0;r1.l<=r1.length-4;){var m1=r1.read_shift(2),g1=r1.read_shift(2),M1=r1.l+g1,N1={};switch(m1){case 21589:h1=r1.read_shift(1),h1&1&&(N1.mtime=r1.read_shift(4)),g1>5&&(h1&2&&(N1.atime=r1.read_shift(4)),h1&4&&(N1.ctime=r1.read_shift(4))),N1.mtime&&(N1.mt=new Date(N1.mtime*1e3));break}r1.l=M1,y1[m1]=N1}return y1}var l;function f(){return l||(l={})}function u(r1,y1){if(r1[0]==80&&r1[1]==75)return W1(r1,y1);if((r1[0]|32)==109&&(r1[1]|32)==105)return e4(r1,y1);if(r1.length<512)throw new Error("CFB file size "+r1.length+" < 512");var h1=3,m1=512,g1=0,M1=0,N1=0,V1=0,I=0,D=[],q=r1.slice(0,512);a4(q,0);var X=d(q);switch(h1=X[0],h1){case 3:m1=512;break;case 4:m1=4096;break;case 0:if(X[1]==0)return W1(r1,y1);default:throw new Error("Major Version: Expected 3 or 4 saw "+h1)}m1!==512&&(q=r1.slice(0,m1),a4(q,28));var J=r1.slice(0,m1);h(q,h1);var n1=q.read_shift(4,"i");if(h1===3&&n1!==0)throw new Error("# Directory Sectors: Expected 0 saw "+n1);q.l+=4,N1=q.read_shift(4,"i"),q.l+=4,q.chk("00100000","Mini Stream Cutoff Size: "),V1=q.read_shift(4,"i"),g1=q.read_shift(4,"i"),I=q.read_shift(4,"i"),M1=q.read_shift(4,"i");for(var a1=-1,z1=0;z1<109&&(a1=q.read_shift(4,"i"),!(a1<0));++z1)D[z1]=a1;var w1=p(r1,m1);y(I,M1,w1,m1,D);var H1=M(w1,N1,D,m1);H1[N1].name="!Directory",g1>0&&V1!==P&&(H1[V1].name="!MiniFAT"),H1[D[0]].name="!FAT",H1.fat_addrs=D,H1.ssz=m1;var k1={},O1=[],P1=[],Z1=[];x(N1,H1,w1,O1,g1,k1,P1,V1),v(P1,Z1,O1),O1.shift();var I1={FileIndex:P1,FullPaths:Z1};return y1&&y1.raw&&(I1.raw={header:J,sectors:w1}),I1}function d(r1){if(r1[r1.l]==80&&r1[r1.l+1]==75)return[0,0];r1.chk(j,"Header Signature: "),r1.l+=16;var y1=r1.read_shift(2,"u");return[r1.read_shift(2,"u"),y1]}function h(r1,y1){var h1=9;switch(r1.l+=2,h1=r1.read_shift(2)){case 9:if(y1!=3)throw new Error("Sector Shift: Expected 9 saw "+h1);break;case 12:if(y1!=4)throw new Error("Sector Shift: Expected 12 saw "+h1);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+h1)}r1.chk("0600","Mini Sector Shift: "),r1.chk("000000000000","Reserved: ")}function p(r1,y1){for(var h1=Math.ceil(r1.length/y1)-1,m1=[],g1=1;g1<h1;++g1)m1[g1-1]=r1.slice(g1*y1,(g1+1)*y1);return m1[h1-1]=r1.slice(h1*y1),m1}function v(r1,y1,h1){for(var m1=0,g1=0,M1=0,N1=0,V1=0,I=h1.length,D=[],q=[];m1<I;++m1)D[m1]=q[m1]=m1,y1[m1]=h1[m1];for(;V1<q.length;++V1)m1=q[V1],g1=r1[m1].L,M1=r1[m1].R,N1=r1[m1].C,D[m1]===m1&&(g1!==-1&&D[g1]!==g1&&(D[m1]=D[g1]),M1!==-1&&D[M1]!==M1&&(D[m1]=D[M1])),N1!==-1&&(D[N1]=m1),g1!==-1&&m1!=D[m1]&&(D[g1]=D[m1],q.lastIndexOf(g1)<V1&&q.push(g1)),M1!==-1&&m1!=D[m1]&&(D[M1]=D[m1],q.lastIndexOf(M1)<V1&&q.push(M1));for(m1=1;m1<I;++m1)D[m1]===m1&&(M1!==-1&&D[M1]!==M1?D[m1]=D[M1]:g1!==-1&&D[g1]!==g1&&(D[m1]=D[g1]));for(m1=1;m1<I;++m1)if(r1[m1].type!==0){if(V1=m1,V1!=D[V1])do V1=D[V1],y1[m1]=y1[V1]+"/"+y1[m1];while(V1!==0&&D[V1]!==-1&&V1!=D[V1]);D[m1]=-1}for(y1[0]+="/",m1=1;m1<I;++m1)r1[m1].type!==2&&(y1[m1]+="/")}function m(r1,y1,h1){for(var m1=r1.start,g1=r1.size,M1=[],N1=m1;h1&&g1>0&&N1>=0;)M1.push(y1.slice(N1*w,N1*w+w)),g1-=w,N1=Pr(h1,N1*4);return M1.length===0?Ee(0):X8(M1).slice(0,r1.size)}function y(r1,y1,h1,m1,g1){var M1=P;if(r1===P){if(y1!==0)throw new Error("DIFAT chain shorter than expected")}else if(r1!==-1){var N1=h1[r1],V1=(m1>>>2)-1;if(!N1)return;for(var I=0;I<V1&&(M1=Pr(N1,I*4))!==P;++I)g1.push(M1);y(Pr(N1,m1-4),y1-1,h1,m1,g1)}}function g(r1,y1,h1,m1,g1){var M1=[],N1=[];g1||(g1=[]);var V1=m1-1,I=0,D=0;for(I=y1;I>=0;){g1[I]=!0,M1[M1.length]=I,N1.push(r1[I]);var q=h1[Math.floor(I*4/m1)];if(D=I*4&V1,m1<4+D)throw new Error("FAT boundary crossed: "+I+" 4 "+m1);if(!r1[q])break;I=Pr(r1[q],D)}return{nodes:M1,data:da1([N1])}}function M(r1,y1,h1,m1){var g1=r1.length,M1=[],N1=[],V1=[],I=[],D=m1-1,q=0,X=0,J=0,n1=0;for(q=0;q<g1;++q)if(V1=[],J=q+y1,J>=g1&&(J-=g1),!N1[J]){I=[];var a1=[];for(X=J;X>=0;){a1[X]=!0,N1[X]=!0,V1[V1.length]=X,I.push(r1[X]);var z1=h1[Math.floor(X*4/m1)];if(n1=X*4&D,m1<4+n1)throw new Error("FAT boundary crossed: "+X+" 4 "+m1);if(!r1[z1]||(X=Pr(r1[z1],n1),a1[X]))break}M1[J]={nodes:V1,data:da1([I])}}return M1}function x(r1,y1,h1,m1,g1,M1,N1,V1){for(var I=0,D=m1.length?2:0,q=y1[r1].data,X=0,J=0,n1;X<q.length;X+=128){var a1=q.slice(X,X+128);a4(a1,64),J=a1.read_shift(2),n1=d11(a1,0,J-D),m1.push(n1);var z1={name:n1,type:a1.read_shift(1),color:a1.read_shift(1),L:a1.read_shift(4,"i"),R:a1.read_shift(4,"i"),C:a1.read_shift(4,"i"),clsid:a1.read_shift(16),state:a1.read_shift(4,"i"),start:0,size:0},w1=a1.read_shift(2)+a1.read_shift(2)+a1.read_shift(2)+a1.read_shift(2);w1!==0&&(z1.ct=k(a1,a1.l-8));var H1=a1.read_shift(2)+a1.read_shift(2)+a1.read_shift(2)+a1.read_shift(2);H1!==0&&(z1.mt=k(a1,a1.l-8)),z1.start=a1.read_shift(4,"i"),z1.size=a1.read_shift(4,"i"),z1.size<0&&z1.start<0&&(z1.size=z1.type=0,z1.start=P,z1.name=""),z1.type===5?(I=z1.start,g1>0&&I!==P&&(y1[I].name="!StreamData")):z1.size>=4096?(z1.storage="fat",y1[z1.start]===void 0&&(y1[z1.start]=g(h1,z1.start,y1.fat_addrs,y1.ssz)),y1[z1.start].name=z1.name,z1.content=y1[z1.start].data.slice(0,z1.size)):(z1.storage="minifat",z1.size<0?z1.size=0:I!==P&&z1.start!==P&&y1[I]&&(z1.content=m(z1,y1[I].data,(y1[V1]||{}).data))),z1.content&&a4(z1.content,0),M1[n1]=z1,N1.push(z1)}}function k(r1,y1){return new Date((e0(r1,y1+4)/1e7*Math.pow(2,32)+e0(r1,y1)/1e7-11644473600)*1e3)}function b(r1,y1){return f(),u(l.readFileSync(r1),y1)}function _(r1,y1){var h1=y1&&y1.type;switch(h1||F2&&Buffer.isBuffer(r1)&&(h1="buffer"),h1||"base64"){case"file":return b(r1,y1);case"base64":return u(J0(d0(r1)),y1);case"binary":return u(J0(r1),y1)}return u(r1,y1)}function C(r1,y1){var h1=y1||{},m1=h1.root||"Root Entry";if(r1.FullPaths||(r1.FullPaths=[]),r1.FileIndex||(r1.FileIndex=[]),r1.FullPaths.length!==r1.FileIndex.length)throw new Error("inconsistent CFB structure");r1.FullPaths.length===0&&(r1.FullPaths[0]=m1+"/",r1.FileIndex[0]={name:m1,type:5}),h1.CLSID&&(r1.FileIndex[0].clsid=h1.CLSID),H(r1)}function H(r1){var y1="Sh33tJ5";if(!U2.find(r1,"/"+y1)){var h1=Ee(4);h1[0]=55,h1[1]=h1[3]=50,h1[2]=54,r1.FileIndex.push({name:y1,type:2,content:h1,size:4,L:69,R:69,C:69}),r1.FullPaths.push(r1.FullPaths[0]+y1),V(r1)}}function V(r1,y1){C(r1);for(var h1=!1,m1=!1,g1=r1.FullPaths.length-1;g1>=0;--g1){var M1=r1.FileIndex[g1];switch(M1.type){case 0:m1?h1=!0:(r1.FileIndex.pop(),r1.FullPaths.pop());break;case 1:case 2:case 5:m1=!0,isNaN(M1.R*M1.L*M1.C)&&(h1=!0),M1.R>-1&&M1.L>-1&&M1.R==M1.L&&(h1=!0);break;default:h1=!0;break}}if(!(!h1&&!y1)){var N1=new Date(1987,1,19),V1=0,I=Object.create?Object.create(null):{},D=[];for(g1=0;g1<r1.FullPaths.length;++g1)I[r1.FullPaths[g1]]=!0,r1.FileIndex[g1].type!==0&&D.push([r1.FullPaths[g1],r1.FileIndex[g1]]);for(g1=0;g1<D.length;++g1){var q=c(D[g1][0]);m1=I[q],m1||(D.push([q,{name:n(q).replace("/",""),type:1,clsid:B,ct:N1,mt:N1,content:null}]),I[q]=!0)}for(D.sort(function(n1,a1){return a(n1[0],a1[0])}),r1.FullPaths=[],r1.FileIndex=[],g1=0;g1<D.length;++g1)r1.FullPaths[g1]=D[g1][0],r1.FileIndex[g1]=D[g1][1];for(g1=0;g1<D.length;++g1){var X=r1.FileIndex[g1],J=r1.FullPaths[g1];if(X.name=n(J).replace("/",""),X.L=X.R=X.C=-(X.color=1),X.size=X.content?X.content.length:0,X.start=0,X.clsid=X.clsid||B,g1===0)X.C=D.length>1?1:-1,X.size=0,X.type=5;else if(J.slice(-1)=="/"){for(V1=g1+1;V1<D.length&&c(r1.FullPaths[V1])!=J;++V1);for(X.C=V1>=D.length?-1:V1,V1=g1+1;V1<D.length&&c(r1.FullPaths[V1])!=c(J);++V1);X.R=V1>=D.length?-1:V1,X.type=1}else c(r1.FullPaths[g1+1]||"")==c(J)&&(X.R=g1+1),X.type=2}}}function N(r1,y1){var h1=y1||{};if(h1.fileType=="mad")return G4(r1,h1);switch(V(r1),h1.fileType){case"zip":return V2(r1,h1)}var m1=function(n1){for(var a1=0,z1=0,w1=0;w1<n1.FileIndex.length;++w1){var H1=n1.FileIndex[w1];if(H1.content){var k1=H1.content.length;k1>0&&(k1<4096?a1+=k1+63>>6:z1+=k1+511>>9)}}for(var O1=n1.FullPaths.length+3>>2,P1=a1+7>>3,Z1=a1+127>>7,I1=P1+z1+O1+Z1,J1=I1+127>>7,v2=J1<=109?0:Math.ceil((J1-109)/127);I1+J1+v2+127>>7>J1;)v2=++J1<=109?0:Math.ceil((J1-109)/127);var X2=[1,v2,J1,Z1,O1,z1,a1,0];return n1.FileIndex[0].size=a1<<6,X2[7]=(n1.FileIndex[0].start=X2[0]+X2[1]+X2[2]+X2[3]+X2[4]+X2[5])+(X2[6]+7>>3),X2}(r1),g1=Ee(m1[7]<<9),M1=0,N1=0;{for(M1=0;M1<8;++M1)g1.write_shift(1,T[M1]);for(M1=0;M1<8;++M1)g1.write_shift(2,0);for(g1.write_shift(2,62),g1.write_shift(2,3),g1.write_shift(2,65534),g1.write_shift(2,9),g1.write_shift(2,6),M1=0;M1<3;++M1)g1.write_shift(2,0);for(g1.write_shift(4,0),g1.write_shift(4,m1[2]),g1.write_shift(4,m1[0]+m1[1]+m1[2]+m1[3]-1),g1.write_shift(4,0),g1.write_shift(4,4096),g1.write_shift(4,m1[3]?m1[0]+m1[1]+m1[2]-1:P),g1.write_shift(4,m1[3]),g1.write_shift(-4,m1[1]?m1[0]-1:P),g1.write_shift(4,m1[1]),M1=0;M1<109;++M1)g1.write_shift(-4,M1<m1[2]?m1[1]+M1:-1)}if(m1[1])for(N1=0;N1<m1[1];++N1){for(;M1<236+N1*127;++M1)g1.write_shift(-4,M1<m1[2]?m1[1]+M1:-1);g1.write_shift(-4,N1===m1[1]-1?P:N1+1)}var V1=function(n1){for(N1+=n1;M1<N1-1;++M1)g1.write_shift(-4,M1+1);n1&&(++M1,g1.write_shift(-4,P))};for(N1=M1=0,N1+=m1[1];M1<N1;++M1)g1.write_shift(-4,F.DIFSECT);for(N1+=m1[2];M1<N1;++M1)g1.write_shift(-4,F.FATSECT);V1(m1[3]),V1(m1[4]);for(var I=0,D=0,q=r1.FileIndex[0];I<r1.FileIndex.length;++I)q=r1.FileIndex[I],q.content&&(D=q.content.length,!(D<4096)&&(q.start=N1,V1(D+511>>9)));for(V1(m1[6]+7>>3);g1.l&511;)g1.write_shift(-4,F.ENDOFCHAIN);for(N1=M1=0,I=0;I<r1.FileIndex.length;++I)q=r1.FileIndex[I],q.content&&(D=q.content.length,!(!D||D>=4096)&&(q.start=N1,V1(D+63>>6)));for(;g1.l&511;)g1.write_shift(-4,F.ENDOFCHAIN);for(M1=0;M1<m1[4]<<2;++M1){var X=r1.FullPaths[M1];if(!X||X.length===0){for(I=0;I<17;++I)g1.write_shift(4,0);for(I=0;I<3;++I)g1.write_shift(4,-1);for(I=0;I<12;++I)g1.write_shift(4,0);continue}q=r1.FileIndex[M1],M1===0&&(q.start=q.size?q.start-1:P);var J=M1===0&&h1.root||q.name;if(D=2*(J.length+1),g1.write_shift(64,J,"utf16le"),g1.write_shift(2,D),g1.write_shift(1,q.type),g1.write_shift(1,q.color),g1.write_shift(-4,q.L),g1.write_shift(-4,q.R),g1.write_shift(-4,q.C),q.clsid)g1.write_shift(16,q.clsid,"hex");else for(I=0;I<4;++I)g1.write_shift(4,0);g1.write_shift(4,q.state||0),g1.write_shift(4,0),g1.write_shift(4,0),g1.write_shift(4,0),g1.write_shift(4,0),g1.write_shift(4,q.start),g1.write_shift(4,q.size),g1.write_shift(4,0)}for(M1=1;M1<r1.FileIndex.length;++M1)if(q=r1.FileIndex[M1],q.size>=4096)if(g1.l=q.start+1<<9,F2&&Buffer.isBuffer(q.content))q.content.copy(g1,g1.l,0,q.size),g1.l+=q.size+511&-512;else{for(I=0;I<q.size;++I)g1.write_shift(1,q.content[I]);for(;I&511;++I)g1.write_shift(1,0)}for(M1=1;M1<r1.FileIndex.length;++M1)if(q=r1.FileIndex[M1],q.size>0&&q.size<4096)if(F2&&Buffer.isBuffer(q.content))q.content.copy(g1,g1.l,0,q.size),g1.l+=q.size+63&-64;else{for(I=0;I<q.size;++I)g1.write_shift(1,q.content[I]);for(;I&63;++I)g1.write_shift(1,0)}if(F2)g1.l=g1.length;else for(;g1.l<g1.length;)g1.write_shift(1,0);return g1}function L(r1,y1){var h1=r1.FullPaths.map(function(I){return I.toUpperCase()}),m1=h1.map(function(I){var D=I.split("/");return D[D.length-(I.slice(-1)=="/"?2:1)]}),g1=!1;y1.charCodeAt(0)===47?(g1=!0,y1=h1[0].slice(0,-1)+y1):g1=y1.indexOf("/")!==-1;var M1=y1.toUpperCase(),N1=g1===!0?h1.indexOf(M1):m1.indexOf(M1);if(N1!==-1)return r1.FileIndex[N1];var V1=!M1.match(O9);for(M1=M1.replace(E4,""),V1&&(M1=M1.replace(O9,"!")),N1=0;N1<h1.length;++N1)if((V1?h1[N1].replace(O9,"!"):h1[N1]).replace(E4,"")==M1||(V1?m1[N1].replace(O9,"!"):m1[N1]).replace(E4,"")==M1)return r1.FileIndex[N1];return null}var w=64,P=-2,j="d0cf11e0a1b11ae1",T=[208,207,17,224,161,177,26,225],B="00000000000000000000000000000000",F={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:P,FREESECT:-1,HEADER_SIGNATURE:j,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:B,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function K(r1,y1,h1){f();var m1=N(r1,h1);l.writeFileSync(y1,m1)}function G(r1){for(var y1=new Array(r1.length),h1=0;h1<r1.length;++h1)y1[h1]=String.fromCharCode(r1[h1]);return y1.join("")}function W(r1,y1){var h1=N(r1,y1);switch(y1&&y1.type||"buffer"){case"file":return f(),l.writeFileSync(y1.filename,h1),h1;case"binary":return typeof h1=="string"?h1:G(h1);case"base64":return G81(typeof h1=="string"?h1:G(h1));case"buffer":if(F2)return Buffer.isBuffer(h1)?h1:$i(h1);case"array":return typeof h1=="string"?J0(h1):h1}return h1}var O;function E(r1){try{var y1=r1.InflateRaw,h1=new y1;if(h1._processChunk(new Uint8Array([3,0]),h1._finishFlushFlag),h1.bytesRead)O=r1;else throw new Error("zlib does not expose bytesRead")}catch(m1){console.error("cannot use native zlib: "+(m1.message||m1))}}function S(r1,y1){if(!O)return _1(r1,y1);var h1=O.InflateRaw,m1=new h1,g1=m1._processChunk(r1.slice(r1.l),m1._finishFlushFlag);return r1.l+=m1.bytesRead,g1}function U(r1){return O?O.deflateRawSync(r1):q1(r1)}var Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],R=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function Q(r1){var y1=(r1<<1|r1<<11)&139536|(r1<<5|r1<<15)&558144;return(y1>>16|y1>>8|y1)&255}for(var c1=typeof Uint8Array<"u",e1=c1?new Uint8Array(256):[],s1=0;s1<256;++s1)e1[s1]=Q(s1);function Y(r1,y1){var h1=e1[r1&255];return y1<=8?h1>>>8-y1:(h1=h1<<8|e1[r1>>8&255],y1<=16?h1>>>16-y1:(h1=h1<<8|e1[r1>>16&255],h1>>>24-y1))}function d1(r1,y1){var h1=y1&7,m1=y1>>>3;return(r1[m1]|(h1<=6?0:r1[m1+1]<<8))>>>h1&3}function x1(r1,y1){var h1=y1&7,m1=y1>>>3;return(r1[m1]|(h1<=5?0:r1[m1+1]<<8))>>>h1&7}function f1(r1,y1){var h1=y1&7,m1=y1>>>3;return(r1[m1]|(h1<=4?0:r1[m1+1]<<8))>>>h1&15}function t1(r1,y1){var h1=y1&7,m1=y1>>>3;return(r1[m1]|(h1<=3?0:r1[m1+1]<<8))>>>h1&31}function l1(r1,y1){var h1=y1&7,m1=y1>>>3;return(r1[m1]|(h1<=1?0:r1[m1+1]<<8))>>>h1&127}function i1(r1,y1,h1){var m1=y1&7,g1=y1>>>3,M1=(1<<h1)-1,N1=r1[g1]>>>m1;return h1<8-m1||(N1|=r1[g1+1]<<8-m1,h1<16-m1)||(N1|=r1[g1+2]<<16-m1,h1<24-m1)||(N1|=r1[g1+3]<<24-m1),N1&M1}function p1(r1,y1,h1){var m1=y1&7,g1=y1>>>3;return m1<=5?r1[g1]|=(h1&7)<<m1:(r1[g1]|=h1<<m1&255,r1[g1+1]=(h1&7)>>8-m1),y1+3}function b1(r1,y1,h1){var m1=y1&7,g1=y1>>>3;return h1=(h1&1)<<m1,r1[g1]|=h1,y1+1}function v1(r1,y1,h1){var m1=y1&7,g1=y1>>>3;return h1<<=m1,r1[g1]|=h1&255,h1>>>=8,r1[g1+1]=h1,y1+8}function C1(r1,y1,h1){var m1=y1&7,g1=y1>>>3;return h1<<=m1,r1[g1]|=h1&255,h1>>>=8,r1[g1+1]=h1&255,r1[g1+2]=h1>>>8,y1+16}function D1(r1,y1){var h1=r1.length,m1=2*h1>y1?2*h1:y1+5,g1=0;if(h1>=y1)return r1;if(F2){var M1=Z81(m1);if(r1.copy)r1.copy(M1);else for(;g1<r1.length;++g1)M1[g1]=r1[g1];return M1}else if(c1){var N1=new Uint8Array(m1);if(N1.set)N1.set(r1);else for(;g1<h1;++g1)N1[g1]=r1[g1];return N1}return r1.length=m1,r1}function R1(r1){for(var y1=new Array(r1),h1=0;h1<r1;++h1)y1[h1]=0;return y1}function B1(r1,y1,h1){var m1=1,g1=0,M1=0,N1=0,V1=0,I=r1.length,D=c1?new Uint16Array(32):R1(32);for(M1=0;M1<32;++M1)D[M1]=0;for(M1=I;M1<h1;++M1)r1[M1]=0;I=r1.length;var q=c1?new Uint16Array(I):R1(I);for(M1=0;M1<I;++M1)D[g1=r1[M1]]++,m1<g1&&(m1=g1),q[M1]=0;for(D[0]=0,M1=1;M1<=m1;++M1)D[M1+16]=V1=V1+D[M1-1]<<1;for(M1=0;M1<I;++M1)V1=r1[M1],V1!=0&&(q[M1]=D[V1+16]++);var X=0;for(M1=0;M1<I;++M1)if(X=r1[M1],X!=0)for(V1=Y(q[M1],m1)>>m1-X,N1=(1<<m1+4-X)-1;N1>=0;--N1)y1[V1|N1<<X]=X&15|M1<<4;return m1}var Y1=c1?new Uint16Array(512):R1(512),G1=c1?new Uint16Array(32):R1(32);if(!c1){for(var n2=0;n2<512;++n2)Y1[n2]=0;for(n2=0;n2<32;++n2)G1[n2]=0}(function(){for(var r1=[],y1=0;y1<32;y1++)r1.push(5);B1(r1,G1,32);var h1=[];for(y1=0;y1<=143;y1++)h1.push(8);for(;y1<=255;y1++)h1.push(9);for(;y1<=279;y1++)h1.push(7);for(;y1<=287;y1++)h1.push(8);B1(h1,Y1,288)})();var o2=function(){for(var y1=c1?new Uint8Array(32768):[],h1=0,m1=0;h1<R.length-1;++h1)for(;m1<R[h1+1];++m1)y1[m1]=h1;for(;m1<32768;++m1)y1[m1]=29;var g1=c1?new Uint8Array(259):[];for(h1=0,m1=0;h1<A.length-1;++h1)for(;m1<A[h1+1];++m1)g1[m1]=h1;function M1(V1,I){for(var D=0;D<V1.length;){var q=Math.min(65535,V1.length-D),X=D+q==V1.length;for(I.write_shift(1,+X),I.write_shift(2,q),I.write_shift(2,~q&65535);q-- >0;)I[I.l++]=V1[D++]}return I.l}function N1(V1,I){for(var D=0,q=0,X=c1?new Uint16Array(32768):[];q<V1.length;){var J=Math.min(65535,V1.length-q);if(J<10){for(D=p1(I,D,+(q+J==V1.length)),D&7&&(D+=8-(D&7)),I.l=D/8|0,I.write_shift(2,J),I.write_shift(2,~J&65535);J-- >0;)I[I.l++]=V1[q++];D=I.l*8;continue}D=p1(I,D,+(q+J==V1.length)+2);for(var n1=0;J-- >0;){var a1=V1[q];n1=(n1<<5^a1)&32767;var z1=-1,w1=0;if((z1=X[n1])&&(z1|=q&-32768,z1>q&&(z1-=32768),z1<q))for(;V1[z1+w1]==V1[q+w1]&&w1<250;)++w1;if(w1>2){a1=g1[w1],a1<=22?D=v1(I,D,e1[a1+1]>>1)-1:(v1(I,D,3),D+=5,v1(I,D,e1[a1-23]>>5),D+=3);var H1=a1<8?0:a1-4>>2;H1>0&&(C1(I,D,w1-A[a1]),D+=H1),a1=y1[q-z1],D=v1(I,D,e1[a1]>>3),D-=3;var k1=a1<4?0:a1-2>>1;k1>0&&(C1(I,D,q-z1-R[a1]),D+=k1);for(var O1=0;O1<w1;++O1)X[n1]=q&32767,n1=(n1<<5^V1[q])&32767,++q;J-=w1-1}else a1<=143?a1=a1+48:D=b1(I,D,1),D=v1(I,D,e1[a1]),X[n1]=q&32767,++q}D=v1(I,D,0)-1}return I.l=(D+7)/8|0,I.l}return function(I,D){return I.length<8?M1(I,D):N1(I,D)}}();function q1(r1){var y1=Ee(50+Math.floor(r1.length*1.1)),h1=o2(r1,y1);return y1.slice(0,h1)}var p2=c1?new Uint16Array(32768):R1(32768),T2=c1?new Uint16Array(32768):R1(32768),h2=c1?new Uint16Array(128):R1(128),y2=1,e3=1;function u1(r1,y1){var h1=t1(r1,y1)+257;y1+=5;var m1=t1(r1,y1)+1;y1+=5;var g1=f1(r1,y1)+4;y1+=4;for(var M1=0,N1=c1?new Uint8Array(19):R1(19),V1=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],I=1,D=c1?new Uint8Array(8):R1(8),q=c1?new Uint8Array(8):R1(8),X=N1.length,J=0;J<g1;++J)N1[Z[J]]=M1=x1(r1,y1),I<M1&&(I=M1),D[M1]++,y1+=3;var n1=0;for(D[0]=0,J=1;J<=I;++J)q[J]=n1=n1+D[J-1]<<1;for(J=0;J<X;++J)(n1=N1[J])!=0&&(V1[J]=q[n1]++);var a1=0;for(J=0;J<X;++J)if(a1=N1[J],a1!=0){n1=e1[V1[J]]>>8-a1;for(var z1=(1<<7-a1)-1;z1>=0;--z1)h2[n1|z1<<a1]=a1&7|J<<3}var w1=[];for(I=1;w1.length<h1+m1;)switch(n1=h2[l1(r1,y1)],y1+=n1&7,n1>>>=3){case 16:for(M1=3+d1(r1,y1),y1+=2,n1=w1[w1.length-1];M1-- >0;)w1.push(n1);break;case 17:for(M1=3+x1(r1,y1),y1+=3;M1-- >0;)w1.push(0);break;case 18:for(M1=11+l1(r1,y1),y1+=7;M1-- >0;)w1.push(0);break;default:w1.push(n1),I<n1&&(I=n1);break}var H1=w1.slice(0,h1),k1=w1.slice(h1);for(J=h1;J<286;++J)H1[J]=0;for(J=m1;J<30;++J)k1[J]=0;return y2=B1(H1,p2,286),e3=B1(k1,T2,30),y1}function o1(r1,y1){if(r1[0]==3&&!(r1[1]&3))return[Ba(y1),2];for(var h1=0,m1=0,g1=Z81(y1||1<<18),M1=0,N1=g1.length>>>0,V1=0,I=0;!(m1&1);){if(m1=x1(r1,h1),h1+=3,m1>>>1)m1>>1==1?(V1=9,I=5):(h1=u1(r1,h1),V1=y2,I=e3);else{h1&7&&(h1+=8-(h1&7));var D=r1[h1>>>3]|r1[(h1>>>3)+1]<<8;if(h1+=32,D>0)for(!y1&&N1<M1+D&&(g1=D1(g1,M1+D),N1=g1.length);D-- >0;)g1[M1++]=r1[h1>>>3],h1+=8;continue}for(;;){!y1&&N1<M1+32767&&(g1=D1(g1,M1+32767),N1=g1.length);var q=i1(r1,h1,V1),X=m1>>>1==1?Y1[q]:p2[q];if(h1+=X&15,X>>>=4,!(X>>>8&255))g1[M1++]=X;else{if(X==256)break;X-=257;var J=X<8?0:X-4>>2;J>5&&(J=0);var n1=M1+A[X];J>0&&(n1+=i1(r1,h1,J),h1+=J),q=i1(r1,h1,I),X=m1>>>1==1?G1[q]:T2[q],h1+=X&15,X>>>=4;var a1=X<4?0:X-2>>1,z1=R[X];for(a1>0&&(z1+=i1(r1,h1,a1),h1+=a1),!y1&&N1<n1&&(g1=D1(g1,n1+100),N1=g1.length);M1<n1;)g1[M1]=g1[M1-z1],++M1}}}return y1?[g1,h1+7>>>3]:[g1.slice(0,M1),h1+7>>>3]}function _1(r1,y1){var h1=r1.slice(r1.l||0),m1=o1(h1,y1);return r1.l+=m1[1],m1[0]}function L1(r1,y1){if(r1)typeof console<"u"&&console.error(y1);else throw new Error(y1)}function W1(r1,y1){var h1=r1;a4(h1,0);var m1=[],g1=[],M1={FileIndex:m1,FullPaths:g1};C(M1,{root:y1.root});for(var N1=h1.length-4;(h1[N1]!=80||h1[N1+1]!=75||h1[N1+2]!=5||h1[N1+3]!=6)&&N1>=0;)--N1;h1.l=N1+4,h1.l+=4;var V1=h1.read_shift(2);h1.l+=6;var I=h1.read_shift(4);for(h1.l=I,N1=0;N1<V1;++N1){h1.l+=20;var D=h1.read_shift(4),q=h1.read_shift(4),X=h1.read_shift(2),J=h1.read_shift(2),n1=h1.read_shift(2);h1.l+=8;var a1=h1.read_shift(4),z1=o(h1.slice(h1.l+X,h1.l+X+J));h1.l+=X+J+n1;var w1=h1.l;h1.l=a1+4,g2(h1,D,q,M1,z1),h1.l=w1}return M1}function g2(r1,y1,h1,m1,g1){r1.l+=2;var M1=r1.read_shift(2),N1=r1.read_shift(2),V1=i(r1);if(M1&8257)throw new Error("Unsupported ZIP encryption");for(var I=r1.read_shift(4),D=r1.read_shift(4),q=r1.read_shift(4),X=r1.read_shift(2),J=r1.read_shift(2),n1="",a1=0;a1<X;++a1)n1+=String.fromCharCode(r1[r1.l++]);if(J){var z1=o(r1.slice(r1.l,r1.l+J));(z1[21589]||{}).mt&&(V1=z1[21589].mt),((g1||{})[21589]||{}).mt&&(V1=g1[21589].mt)}r1.l+=J;var w1=r1.slice(r1.l,r1.l+D);switch(N1){case 8:w1=S(r1,q);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+N1)}var H1=!1;M1&8&&(I=r1.read_shift(4),I==134695760&&(I=r1.read_shift(4),H1=!0),D=r1.read_shift(4),q=r1.read_shift(4)),D!=y1&&L1(H1,"Bad compressed size: "+y1+" != "+D),q!=h1&&L1(H1,"Bad uncompressed size: "+h1+" != "+q),pe(m1,n1,w1,{unsafe:!0,mt:V1})}function V2(r1,y1){var h1=y1||{},m1=[],g1=[],M1=Ee(1),N1=h1.compression?8:0,V1=0,I=0,D=0,q=0,X=0,J=r1.FullPaths[0],n1=J,a1=r1.FileIndex[0],z1=[],w1=0;for(I=1;I<r1.FullPaths.length;++I)if(n1=r1.FullPaths[I].slice(J.length),a1=r1.FileIndex[I],!(!a1.size||!a1.content||n1=="Sh33tJ5")){var H1=q,k1=Ee(n1.length);for(D=0;D<n1.length;++D)k1.write_shift(1,n1.charCodeAt(D)&127);k1=k1.slice(0,k1.l),z1[X]=mC3.buf(a1.content,0);var O1=a1.content;N1==8&&(O1=U(O1)),M1=Ee(30),M1.write_shift(4,67324752),M1.write_shift(2,20),M1.write_shift(2,V1),M1.write_shift(2,N1),a1.mt?r(M1,a1.mt):M1.write_shift(4,0),M1.write_shift(-4,z1[X]),M1.write_shift(4,O1.length),M1.write_shift(4,a1.content.length),M1.write_shift(2,k1.length),M1.write_shift(2,0),q+=M1.length,m1.push(M1),q+=k1.length,m1.push(k1),q+=O1.length,m1.push(O1),M1=Ee(46),M1.write_shift(4,33639248),M1.write_shift(2,0),M1.write_shift(2,20),M1.write_shift(2,V1),M1.write_shift(2,N1),M1.write_shift(4,0),M1.write_shift(-4,z1[X]),M1.write_shift(4,O1.length),M1.write_shift(4,a1.content.length),M1.write_shift(2,k1.length),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(4,0),M1.write_shift(4,H1),w1+=M1.l,g1.push(M1),w1+=k1.length,g1.push(k1),++X}return M1=Ee(22),M1.write_shift(4,101010256),M1.write_shift(2,0),M1.write_shift(2,0),M1.write_shift(2,X),M1.write_shift(2,X),M1.write_shift(4,w1),M1.write_shift(4,q),M1.write_shift(2,0),X8([X8(m1),X8(g1),M1])}var B3={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function he(r1,y1){if(r1.ctype)return r1.ctype;var h1=r1.name||"",m1=h1.match(/\.([^\.]+)$/);return m1&&B3[m1[1]]||y1&&(m1=(h1=y1).match(/[\.\\]([^\.\\])+$/),m1&&B3[m1[1]])?B3[m1[1]]:"application/octet-stream"}function s2(r1){for(var y1=G81(r1),h1=[],m1=0;m1<y1.length;m1+=76)h1.push(y1.slice(m1,m1+76));return h1.join(`\r
9489
9489
  `)+`\r
9490
9490
  `}function L2(r1){var y1=r1.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(D){var q=D.charCodeAt(0).toString(16).toUpperCase();return"="+(q.length==1?"0"+q:q)});y1=y1.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),y1.charAt(0)==`
9491
9491
  `&&(y1="=0D"+y1.slice(1)),y1=y1.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`