t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>be(e.backgroundColor),this.hoverBorderColor=(t,e)=>be(e.borderColor),this.hoverColor=(t,e)=>be(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return we(this,t,e)}get(t){return xe(this,t)}describe(t,e){return we(_e,t,e)}override(t,e){return we(ye,t,e)}route(t,e,n,r){const i=xe(this,t),o=xe(this,n),a="_"+e;Object.defineProperties(i,{[a]:{value:i[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=o[r];return s(t)?Object.assign({},e,t):u(t,e)},set(t){this[a]=t}}})}}var Me=new ke({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Oe(t){return!t||o(t.size)||o(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Se(t,e,n,r,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),o>r&&(r=o),r}function Te(t,e,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let s=0;const l=n.length;let c,u,h,d,f;for(c=0;cn.length){for(c=0;c0&&t.stroke()}}function Ae(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&""!==s.strokeColor;let u,h;for(t.save(),t.font=i.string,Fe(t,s),u=0;u+t||0;function $e(t,e){const n={},r=s(e),i=r?Object.keys(e):e,o=s(t)?r?n=>u(t[n],t[e[n]]):e=>t[e]:()=>t;for(const a of i)n[a]=Ve(o(a));return n}function Ye(t){return $e(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ze(t){return $e(t,["topLeft","topRight","bottomLeft","bottomRight"])}function qe(t){const e=Ye(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Xe(t,e){t=t||{},e=e||Me.font;let n=u(t.size,e.size);"string"===typeof n&&(n=parseInt(n,10));let r=u(t.style,e.style);r&&!(""+r).match(He)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const i={family:u(t.family,e.family),lineHeight:Be(u(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:u(t.weight,e.weight),string:""};return i.string=Oe(i),i}function Ge(t,e,n,r){let i,o,s,l=!0;for(i=0,o=t.length;in&&0===t?0:t+e;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function Ke(t,e){return Object.assign(Object.create(t),e)}function Qe(t,e=[""],n=t,r,i=(()=>t[0])){T(r)||(r=mn("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:i,override:i=>Qe([i,...t],e,n,r)};return new Proxy(o,{deleteProperty(e,n){return delete e[n],delete e._keys,delete t[0][n],!0},get(n,r){return on(n,r,(()=>gn(r,e,t,n)))},getOwnPropertyDescriptor(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(t,e){return vn(t).includes(e)},ownKeys(t){return vn(t)},set(t,e,n){const r=t._storage||(t._storage=i());return t[e]=r[e]=n,delete t._keys,!0}})}function tn(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:en(t,r),setContext:e=>tn(t,e,n,r),override:i=>tn(t.override(i),e,n,r)};return new Proxy(i,{deleteProperty(e,n){return delete e[n],delete t[n],!0},get(t,e,n){return on(t,e,(()=>an(t,e,n)))},getOwnPropertyDescriptor(e,n){return e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(e,n){return Reflect.has(t,n)},ownKeys(){return Reflect.ownKeys(t)},set(e,n,r){return t[n]=r,delete e[n],!0}})}function en(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:E(n)?n:()=>n,isIndexable:E(r)?r:()=>r}}const nn=(t,e)=>t?t+S(e):e,rn=(t,e)=>s(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function on(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function an(t,e,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=t;let l=r[e];return E(l)&&s.isScriptable(e)&&(l=sn(e,l,t,n)),a(l)&&l.length&&(l=ln(e,l,t,s.isIndexable)),rn(e,l)&&(l=tn(l,i,o&&o[e],s)),l}function sn(t,e,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);return s.add(t),e=e(o,a||r),s.delete(t),rn(t,e)&&(e=dn(i._scopes,i,t,e)),e}function ln(t,e,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:l}=n;if(T(o.index)&&r(t))e=e[o.index%e.length];else if(s(e[0])){const n=e,r=i._scopes.filter((t=>t!==n));e=[];for(const s of n){const n=dn(r,i,t,s);e.push(tn(n,o,a&&a[t],l))}}return e}function cn(t,e,n){return E(t)?t(e,n):t}const un=(t,e)=>!0===t?e:"string"===typeof t?k(e,t):void 0;function hn(t,e,n,r,i){for(const o of e){const e=un(n,o);if(e){t.add(e);const o=cn(e._fallback,n,i);if(T(o)&&o!==n&&o!==r)return o}else if(!1===e&&T(r)&&n!==r)return null}return!1}function dn(t,e,n,r){const i=e._rootScopes,o=cn(e._fallback,n,r),a=[...t,...i],s=new Set;s.add(r);let l=fn(s,a,n,o||n,r);return null!==l&&((!T(o)||o===n||(l=fn(s,a,o,l,r),null!==l))&&Qe(Array.from(s),[""],i,o,(()=>pn(e,n,r))))}function fn(t,e,n,r,i){while(n)n=hn(t,e,n,r,i);return n}function pn(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];return a(i)&&s(n)?n:i}function gn(t,e,n,r){let i;for(const o of e)if(i=mn(nn(o,t),n),T(i))return rn(t,i)?dn(n,r,t,i):i}function mn(t,e){for(const n of e){if(!n)continue;const e=n[t];if(T(e))return e}}function vn(t){let e=t._keys;return e||(e=t._keys=bn(t._scopes)),e}function bn(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}function yn(t,e,n,r){const{iScale:i}=t,{key:o="r"}=this._parsing,a=new Array(r);let s,l,c,u;for(s=0,l=r;se"x"===t?"y":"x";function kn(t,e,n,r){const i=t.skip?e:t,o=e,a=n.skip?e:n,s=J(o,i),l=J(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const h=r*c,d=r*u;return{previous:{x:o.x-h*(a.x-i.x),y:o.y-h*(a.y-i.y)},next:{x:o.x+d*(a.x-i.x),y:o.y+d*(a.y-i.y)}}}function Mn(t,e,n){const r=t.length;let i,o,a,s,l,c=xn(t,0);for(let u=0;u!t.skip))),"monotone"===e.cubicInterpolationMode)Sn(t,i);else{let n=r?t[t.length-1]:t[0];for(o=0,a=t.length;owindow.getComputedStyle(t,null);function In(t,e){return Ln(t).getPropertyValue(e)}const Nn=["top","right","bottom","left"];function jn(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=Nn[i];r[o]=parseFloat(t[e+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const Rn=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function Fn(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:i,offsetY:o}=r;let a,s,l=!1;if(Rn(i,o,t.target))a=i,s=o;else{const t=e.getBoundingClientRect();a=r.clientX-t.left,s=r.clientY-t.top,l=!0}return{x:a,y:s,box:l}}function Wn(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,i=Ln(n),o="border-box"===i.boxSizing,a=jn(i,"padding"),s=jn(i,"border","width"),{x:l,y:c,box:u}=Fn(t,n),h=a.left+(u&&s.left),d=a.top+(u&&s.top);let{width:f,height:p}=e;return o&&(f-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-h)/f*n.width/r),y:Math.round((c-d)/p*n.height/r)}}function Un(t,e,n){let r,i;if(void 0===e||void 0===n){const o=Dn(t);if(o){const t=o.getBoundingClientRect(),a=Ln(o),s=jn(a,"border","width"),l=jn(a,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,r=An(a.maxWidth,o,"clientWidth"),i=An(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||I,maxHeight:i||I}}const zn=t=>Math.round(10*t)/10;function Hn(t,e,n,r){const i=Ln(t),o=jn(i,"margin"),a=An(i.maxWidth,t,"clientWidth")||I,s=An(i.maxHeight,t,"clientHeight")||I,l=Un(t,e,n);let{width:c,height:u}=l;if("content-box"===i.boxSizing){const t=jn(i,"border","width"),e=jn(i,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-o.width),u=Math.max(0,r?Math.floor(c/r):u-o.height),c=zn(Math.min(c,a,l.maxWidth)),u=zn(Math.min(u,s,l.maxHeight)),c&&!u&&(u=zn(c/2)),{width:c,height:u}}function Bn(t,e,n){const r=e||1,i=Math.floor(t.height*r),o=Math.floor(t.width*r);t.height=i/r,t.width=o/r;const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(t.currentDevicePixelRatio=r,a.height=i,a.width=o,t.ctx.setTransform(r,0,0,r,0,0),!0)}const Vn=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function $n(t,e){const n=In(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Yn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function Zn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function qn(t,e,n,r){const i={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=Yn(t,i,n),s=Yn(i,o,n),l=Yn(o,e,n),c=Yn(a,s,n),u=Yn(s,l,n);return Yn(c,u,n)}const Xn=new Map;function Gn(t,e){e=e||{};const n=t+JSON.stringify(e);let r=Xn.get(n);return r||(r=new Intl.NumberFormat(t,e),Xn.set(n,r)),r}function Jn(t,e,n){return Gn(e,n).format(t)}const Kn=function(t,e){return{x(n){return t+t+e-n},setWidth(t){e=t},textAlign(t){return"center"===t?t:"right"===t?"left":"right"},xPlus(t,e){return t-e},leftForLtr(t,e){return t-e}}},Qn=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function tr(t,e,n){return t?Kn(e,n):Qn()}function er(t,e){let n,r;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function nr(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function rr(t){return"angle"===t?{between:tt,compare:K,normalize:Q}:{between:rt,compare:(t,e)=>t-e,normalize:t=>t}}function ir({start:t,end:e,count:n,loop:r,style:i}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:i}}function or(t,e,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=rr(r),l=e.length;let c,u,{start:h,end:d,loop:f}=t;if(f){for(h+=l,d+=l,c=0,u=l;cl(i,v,g)&&0!==s(i,v),x=()=>0===s(o,g)||l(o,v,g),w=()=>b||_(),k=()=>!b||x();for(let M=u,O=u;M<=h;++M)m=e[M%a],m.skip||(g=c(m[r]),g!==v&&(b=l(g,i,o),null===y&&w()&&(y=0===s(g,i)?M:O),null!==y&&k()&&(p.push(ir({start:y,end:M,loop:d,count:a,style:f})),y=null),O=M,v=g));return null!==y&&p.push(ir({start:y,end:h,loop:d,count:a,style:f})),p}function sr(t,e){const n=[],r=t.segments;for(let i=0;ii&&t[o%e].skip)o--;return o%=e,{start:i,end:o}}function cr(t,e,n,r){const i=t.length,o=[];let a,s=e,l=t[e];for(a=e+1;a<=n;++a){const n=t[a%i];n.skip||n.stop?l.skip||(r=!1,o.push({start:e%i,end:(a-1)%i,loop:r}),e=s=n.stop?a:null):(s=a,l.skip&&(e=a)),l=n}return null!==s&&o.push({start:e%i,end:s%i,loop:r}),o}function ur(t,e){const n=t.points,r=t.options.spanGaps,i=n.length;if(!i)return[];const o=!!t._loop,{start:a,end:s}=lr(n,i,o,r);if(!0===r)return hr(t,[{start:a,end:s,loop:o}],n,e);const l=s-1}var v=m;function b(t,e){var n=this.__data__,r=c(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var y=b;function _(t){var e=-1,n=null==t?0:t.length;this.clear();while(++es))return!1;var c=o.get(t),u=o.get(e);if(c&&u)return c==e&&u==t;var h=-1,d=!0,f=n&Ce?new ke:void 0;o.set(t,e),o.set(e,t);while(++h-1&&t%1==0&&t-1&&t%1==0&&t<=Hn}var Vn=Bn,$n="[object Arguments]",Yn="[object Array]",Zn="[object Boolean]",qn="[object Date]",Xn="[object Error]",Gn="[object Function]",Jn="[object Map]",Kn="[object Number]",Qn="[object Object]",tr="[object RegExp]",er="[object Set]",nr="[object String]",rr="[object WeakMap]",ir="[object ArrayBuffer]",or="[object DataView]",ar="[object Float32Array]",sr="[object Float64Array]",lr="[object Int8Array]",cr="[object Int16Array]",ur="[object Int32Array]",hr="[object Uint8Array]",dr="[object Uint8ClampedArray]",fr="[object Uint16Array]",pr="[object Uint32Array]",gr={};function mr(t){return _n(t)&&Vn(t.length)&&!!gr[J(t)]}gr[ar]=gr[sr]=gr[lr]=gr[cr]=gr[ur]=gr[hr]=gr[dr]=gr[fr]=gr[pr]=!0,gr[$n]=gr[Yn]=gr[ir]=gr[Zn]=gr[or]=gr[qn]=gr[Xn]=gr[Gn]=gr[Jn]=gr[Kn]=gr[Qn]=gr[tr]=gr[er]=gr[nr]=gr[rr]=!1;var vr=mr;function br(t){return function(e){return t(e)}}var yr=br,_r="object"==typeof exports&&exports&&!exports.nodeType&&exports,xr=_r&&"object"==typeof module&&module&&!module.nodeType&&module,wr=xr&&xr.exports===_r,kr=wr&&D.process,Mr=function(){try{var t=xr&&xr.require&&xr.require("util").types;return t||kr&&kr.binding&&kr.binding("util")}catch(e){}}(),Or=Mr,Sr=Or&&Or.isTypedArray,Tr=Sr?yr(Sr):vr,Er=Tr,Cr=Object.prototype,Pr=Cr.hasOwnProperty;function Dr(t,e){var n=on(t),r=!n&&En(t),i=!n&&!r&&Rn(t),o=!n&&!r&&!i&&Er(t),a=n||r||i||o,s=a?bn(t.length,String):[],l=s.length;for(var c in t)!e&&!Pr.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||zn(c,l))||s.push(c);return s}var Ar=Dr,Lr=Object.prototype;function Ir(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Lr;return t===n}var Nr=Ir;function jr(t,e){return function(n){return t(e(n))}}var Rr=jr,Fr=Rr(Object.keys,Object),Wr=Fr,Ur=Object.prototype,zr=Ur.hasOwnProperty;function Hr(t){if(!Nr(t))return Wr(t);var e=[];for(var n in Object(t))zr.call(t,n)&&"constructor"!=n&&e.push(n);return e}var Br=Hr;function Vr(t){return null!=t&&Vn(t.length)&&!ot(t)}var $r=Vr;function Yr(t){return $r(t)?Ar(t):Br(t)}var Zr=Yr;function qr(t){return sn(t,Zr,mn)}var Xr=qr,Gr=1,Jr=Object.prototype,Kr=Jr.hasOwnProperty;function Qr(t,e,n,r,i,o){var a=n&Gr,s=Xr(t),l=s.length,c=Xr(e),u=c.length;if(l!=u&&!a)return!1;var h=l;while(h--){var d=s[h];if(!(a?d in e:Kr.call(e,d)))return!1}var f=o.get(t),p=o.get(e);if(f&&p)return f==e&&p==t;var g=!0;o.set(t,e),o.set(e,t);var m=a;while(++hnull==t?"":Array.isArray(t)?t.map((t=>t.toString().trim())).filter((t=>t.length>0)).join(" "):"function"===typeof t?t.name?t.name:"":"function"!==typeof t.toString?"":t.toString().trim(),fs=(t,e={})=>{const n=ds(t),r=e.punctuationRegex??hs,i=n?us(r?n.replace(r," "):n,e):"";return i?i[0].toLocaleUpperCase(e.locale)+i.slice(1):""};var ps=fs,gs=Object.defineProperty,ms=Object.defineProperties,vs=Object.getOwnPropertyDescriptors,bs=Object.getOwnPropertySymbols,ys=Object.prototype.hasOwnProperty,_s=Object.prototype.propertyIsEnumerable,xs=(t,e,n)=>e in t?gs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ws=(t,e)=>{for(var n in e||(e={}))ys.call(e,n)&&xs(t,n,e[n]);if(bs)for(var n of bs(e))_s.call(e,n)&&xs(t,n,e[n]);return t},ks=(t,e)=>ms(t,vs(e)),Ms=(t,e)=>{const n={chartData:{type:Object,required:!0},options:{type:Object,required:!1},chartId:{default:t,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}},i=ps(t);return(0,ls.aZ)({name:i,props:n,emits:{"labels:update":()=>!0,"chart:update":t=>!0,"chart:destroy":()=>!0,"chart:render":t=>!0},setup(t,{emit:n,expose:o}){const a=(0,cs.iH)(null),s=`${t.chartId}`;let l=(0,cs.XI)(null);function c(t,e){if(e&&l.value){let n=l.value;Li(t,e)||e.datasets.length!==t.datasets.length?n.data.datasets=t.datasets:(t.datasets.forEach(((t,r)=>{const i=Object.keys(e.datasets[r]),o=Object.keys(t),a=i.filter((t=>"_meta"!==t&&-1===o.indexOf(t)));a.forEach((t=>{n.data.datasets[r]&&delete n.data.datasets[r][t]}));for(const e in t){const i=t[e];t.hasOwnProperty(e)&&null!=i&&n&&(n.data.datasets[r][e]=i)}})),t.labels&&(n.data.labels=t.labels,h())),f()}else l.value&&p(),u()}function u(){a.value?(l.value=new r.kL(a.value,{data:t.chartData,type:e,options:ss(t.options),plugins:t.plugins}),d()):console.error(`Error on component ${i}, canvas cannot be rendered. Check if the render appends server-side`)}function h(){n("labels:update"),t.onLabelsUpdate&&t.onLabelsUpdate()}function d(){l.value&&(n("chart:render",l.value),t.onChartRender&&t.onChartRender(l.value))}function f(){l.value&&(l.value.update(),n("chart:render",l.value),t.onChartRender&&t.onChartRender(l.value))}function p(){l.value&&l.value.destroy(),n("chart:destroy"),t.onChartDestroy&&t.onChartDestroy()}return(0,ls.YP)((()=>t.chartData),c,{deep:!0}),(0,ls.YP)((()=>t.options),((t,e)=>{l.value&&t&&!Li(l.value.options,e)&&(l.value.options=ss(t),e=ss(t),f())}),{deep:!0}),(0,ls.bv)(u),(0,ls.Jd)((()=>{l.value&&l.value.destroy()})),o({canvasRef:a,renderChart:u,chartInstance:l,canvasId:s,update:f}),()=>(0,ls.h)("div",{style:ks(ws({maxWidth:"100%"},t.styles),{position:"relative"}),class:t.cssClasses},[(0,ls.h)("canvas",{style:{maxWidth:"100%",maxHeight:"100%"},id:s,width:t.width,height:t.height,ref:a})])}})},Os=t=>e=>{const n=`${t}ChartRef`,r={[n]:(0,cs.iH)()},i=(0,ls.Fl)((()=>ks(ws(ws(ws({},e),e.jsx&&{ref:r[n]}),!e.jsx&&{ref:n}),{chartData:(0,cs.SU)(e.chartData),options:(0,cs.SU)(e.options)})));function o(){var e;const i=r[n].value;i?null==(e=null==i?void 0:i.chartInstance.value)||e.update():console.warn(`No chartInstance to update (use${ps(t)}Chart)`)}return{[`${t}ChartProps`]:i,[n]:r[n],update:o}},Ss=Ms("bar-chart","bar"),Ts=(Ms("doughnut-chart","doughnut"),Ms("line-chart","line")),Es=(Ms("pie-chart","pie"),Ms("polar-chart","polarArea"),Ms("radar-chart","radar"),Ms("bubble-chart","bubble"),Ms("scatter-chart","scatter"),Os("doughnut"),Os("bar")),Cs=Os("line");Os("pie"),Os("polarArea"),Os("radar"),Os("bubble"),Os("scatter")},2201:function(t,e,n){"use strict";n.d(e,{PO:function(){return W},p7:function(){return ee},tv:function(){return ie},yj:function(){return oe}});var r=n(5793),i=n(2715);
/*!
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/
const o="undefined"!==typeof window;function a(t){return t.__esModule||"Module"===t[Symbol.toStringTag]}const s=Object.assign;function l(t,e){const n={};for(const r in e){const i=e[r];n[r]=u(i)?i.map(t):t(i)}return n}const c=()=>{},u=Array.isArray;const h=/\/$/,d=t=>t.replace(h,"");function f(t,e,n="/"){let r,i={},o="",a="";const s=e.indexOf("#");let l=e.indexOf("?");return s=0&&(l=-1),l>-1&&(r=e.slice(0,l),o=e.slice(l+1,s>-1?s:e.length),i=t(o)),s>-1&&(r=r||e.slice(0,s),a=e.slice(s,e.length)),r=x(null!=r?r:e,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:a}}function p(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function g(t,e){return e&&t.toLowerCase().startsWith(e.toLowerCase())?t.slice(e.length)||"/":t}function m(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&v(e.matched[r],n.matched[i])&&b(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function v(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function b(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!y(t[n],e[n]))return!1;return!0}function y(t,e){return u(t)?_(t,e):u(e)?_(e,t):t===e}function _(t,e){return u(e)?t.length===e.length&&t.every(((t,n)=>t===e[n])):1===t.length&&t[0]===e}function x(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let i,o,a=n.length-1;for(i=0;i1&&a--}return n.slice(0,a).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var w,k;(function(t){t["pop"]="pop",t["push"]="push"})(w||(w={})),function(t){t["back"]="back",t["forward"]="forward",t["unknown"]=""}(k||(k={}));function M(t){if(!t)if(o){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return"/"!==t[0]&&"#"!==t[0]&&(t="/"+t),d(t)}const O=/^[^#]+#/;function S(t,e){return t.replace(O,"#")+e}function T(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const E=()=>({left:window.pageXOffset,top:window.pageYOffset});function C(t){let e;if("el"in t){const n=t.el,r="string"===typeof n&&n.startsWith("#");0;const i="string"===typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=T(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(null!=e.left?e.left:window.pageXOffset,null!=e.top?e.top:window.pageYOffset)}function P(t,e){const n=history.state?history.state.position-e:-1;return n+t}const D=new Map;function A(t,e){D.set(t,e)}function L(t){const e=D.get(t);return D.delete(t),e}let I=()=>location.protocol+"//"+location.host;function N(t,e){const{pathname:n,search:r,hash:i}=e,o=t.indexOf("#");if(o>-1){let e=i.includes(t.slice(o))?t.slice(o).length:1,n=i.slice(e);return"/"!==n[0]&&(n="/"+n),g(n,"")}const a=g(n,t);return a+r+i}function j(t,e,n,r){let i=[],o=[],a=null;const l=({state:o})=>{const s=N(t,location),l=n.value,c=e.value;let u=0;if(o){if(n.value=s,e.value=o,a&&a===l)return void(a=null);u=c?o.position-c.position:0}else r(s);i.forEach((t=>{t(n.value,l,{delta:u,type:w.pop,direction:u?u>0?k.forward:k.back:k.unknown})}))};function c(){a=n.value}function u(t){i.push(t);const e=()=>{const e=i.indexOf(t);e>-1&&i.splice(e,1)};return o.push(e),e}function h(){const{history:t}=window;t.state&&t.replaceState(s({},t.state,{scroll:E()}),"")}function d(){for(const t of o)t();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",h),{pauseListeners:c,listen:u,destroy:d}}function R(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?E():null}}function F(t){const{history:e,location:n}=window,r={value:N(t,n)},i={value:e.state};function o(r,o,a){const s=t.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?t:t.slice(s))+r:I()+t+r;try{e[a?"replaceState":"pushState"](o,"",l),i.value=o}catch(c){console.error(c),n[a?"replace":"assign"](l)}}function a(t,n){const a=s({},e.state,R(i.value.back,t,i.value.forward,!0),n,{position:i.value.position});o(t,a,!0),r.value=t}function l(t,n){const a=s({},i.value,e.state,{forward:t,scroll:E()});o(a.current,a,!0);const l=s({},R(r.value,t,null),{position:a.position+1},n);o(t,l,!1),r.value=t}return i.value||o(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0),{location:r,state:i,push:l,replace:a}}function W(t){t=M(t);const e=F(t),n=j(t,e.state,e.location,e.replace);function r(t,e=!0){e||n.pauseListeners(),history.go(t)}const i=s({location:"",base:t,go:r,createHref:S.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function U(t){return"string"===typeof t||t&&"object"===typeof t}function z(t){return"string"===typeof t||"symbol"===typeof t}const H={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},B=Symbol("");var V;(function(t){t[t["aborted"]=4]="aborted",t[t["cancelled"]=8]="cancelled",t[t["duplicated"]=16]="duplicated"})(V||(V={}));function $(t,e){return s(new Error,{type:t,[B]:!0},e)}function Y(t,e){return t instanceof Error&&B in t&&(null==e||!!(t.type&e))}const Z="[^/]+?",q={sensitive:!1,strict:!1,start:!0,end:!0},X=/[.+*?^${}()[\]/\\]/g;function G(t,e){const n=s({},q,e),r=[];let i=n.start?"^":"";const o=[];for(const s of t){const t=s.length?[]:[90];n.strict&&!s.length&&(i+="/");for(let e=0;ee.length?1===e.length&&80===e[0]?1:-1:0}function K(t,e){let n=0;const r=t.score,i=e.score;while(n0&&e[e.length-1]<0}const tt={type:0,value:""},et=/[a-zA-Z0-9_]/;function nt(t){if(!t)return[[]];if("/"===t)return[[tt]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(t){throw new Error(`ERR (${n})/"${c}": ${t}`)}let n=0,r=n;const i=[];let o;function a(){o&&i.push(o),o=[]}let s,l=0,c="",u="";function h(){c&&(0===n?o.push({type:0,value:c}):1===n||2===n||3===n?(o.length>1&&("*"===s||"+"===s)&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):e("Invalid state to consume buffer"),c="")}function d(){c+=s}while(l{a(p)}:c}function a(t){if(z(t)){const e=r.get(t);e&&(r.delete(t),n.splice(n.indexOf(e),1),e.children.forEach(a),e.alias.forEach(a))}else{const e=n.indexOf(t);e>-1&&(n.splice(e,1),t.record.name&&r.delete(t.record.name),t.children.forEach(a),t.alias.forEach(a))}}function l(){return n}function u(t){let e=0;while(e=0&&(t.record.path!==n[e].record.path||!ht(t,n[e])))e++;n.splice(e,0,t),t.record.name&&!lt(t)&&r.set(t.record.name,t)}function h(t,e){let i,o,a,l={};if("name"in t&&t.name){if(i=r.get(t.name),!i)throw $(1,{location:t});0,a=i.record.name,l=s(ot(e.params,i.keys.filter((t=>!t.optional)).map((t=>t.name))),t.params&&ot(t.params,i.keys.map((t=>t.name)))),o=i.stringify(l)}else if("path"in t)o=t.path,i=n.find((t=>t.re.test(o))),i&&(l=i.parse(o),a=i.record.name);else{if(i=e.name?r.get(e.name):n.find((t=>t.re.test(e.path))),!i)throw $(1,{location:t,currentLocation:e});a=i.record.name,l=s({},e.params,t.params),o=i.stringify(l)}const c=[];let u=i;while(u)c.unshift(u.record),u=u.parent;return{name:a,path:o,params:l,matched:c,meta:ct(c)}}return e=ut({strict:!1,end:!0,sensitive:!1},e),t.forEach((t=>o(t))),{addRoute:o,resolve:h,removeRoute:a,getRoutes:l,getRecordMatcher:i}}function ot(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function at(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:st(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function st(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]="boolean"===typeof n?n:n[r];return e}function lt(t){while(t){if(t.record.aliasOf)return!0;t=t.parent}return!1}function ct(t){return t.reduce(((t,e)=>s(t,e.meta)),{})}function ut(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function ht(t,e){return e.children.some((e=>e===t||ht(t,e)))}const dt=/#/g,ft=/&/g,pt=/\//g,gt=/=/g,mt=/\?/g,vt=/\+/g,bt=/%5B/g,yt=/%5D/g,_t=/%5E/g,xt=/%60/g,wt=/%7B/g,kt=/%7C/g,Mt=/%7D/g,Ot=/%20/g;function St(t){return encodeURI(""+t).replace(kt,"|").replace(bt,"[").replace(yt,"]")}function Tt(t){return St(t).replace(wt,"{").replace(Mt,"}").replace(_t,"^")}function Et(t){return St(t).replace(vt,"%2B").replace(Ot,"+").replace(dt,"%23").replace(ft,"%26").replace(xt,"`").replace(wt,"{").replace(Mt,"}").replace(_t,"^")}function Ct(t){return Et(t).replace(gt,"%3D")}function Pt(t){return St(t).replace(dt,"%23").replace(mt,"%3F")}function Dt(t){return null==t?"":Pt(t).replace(pt,"%2F")}function At(t){try{return decodeURIComponent(""+t)}catch(e){}return""+t}function Lt(t){const e={};if(""===t||"?"===t)return e;const n="?"===t[0],r=(n?t.slice(1):t).split("&");for(let i=0;it&&Et(t))):[r&&Et(r)];i.forEach((t=>{void 0!==t&&(e+=(e.length?"&":"")+n,null!=t&&(e+="="+t))}))}return e}function Nt(t){const e={};for(const n in t){const r=t[n];void 0!==r&&(e[n]=u(r)?r.map((t=>null==t?null:""+t)):null==r?r:""+r)}return e}const jt=Symbol(""),Rt=Symbol(""),Ft=Symbol(""),Wt=Symbol(""),Ut=Symbol("");function zt(){let t=[];function e(e){return t.push(e),()=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)}}function n(){t=[]}return{add:e,list:()=>t,reset:n}}function Ht(t,e,n,r,i){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise(((a,s)=>{const l=t=>{!1===t?s($(4,{from:n,to:e})):t instanceof Error?s(t):U(t)?s($(2,{from:e,to:t})):(o&&r.enterCallbacks[i]===o&&"function"===typeof t&&o.push(t),a())},c=t.call(r&&r.instances[i],e,n,l);let u=Promise.resolve(c);t.length<3&&(u=u.then(l)),u.catch((t=>s(t)))}))}function Bt(t,e,n,r){const i=[];for(const o of t){0;for(const t in o.components){let s=o.components[t];if("beforeRouteEnter"===e||o.instances[t])if(Vt(s)){const a=s.__vccOpts||s,l=a[e];l&&i.push(Ht(l,n,r,o,t))}else{let l=s();0,i.push((()=>l.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${t}" at "${o.path}"`));const s=a(i)?i.default:i;o.components[t]=s;const l=s.__vccOpts||s,c=l[e];return c&&Ht(c,n,r,o,t)()}))))}}}return i}function Vt(t){return"object"===typeof t||"displayName"in t||"props"in t||"__vccOpts"in t}function $t(t){const e=(0,r.f3)(Ft),n=(0,r.f3)(Wt),o=(0,r.Fl)((()=>e.resolve((0,i.SU)(t.to)))),a=(0,r.Fl)((()=>{const{matched:t}=o.value,{length:e}=t,r=t[e-1],i=n.matched;if(!r||!i.length)return-1;const a=i.findIndex(v.bind(null,r));if(a>-1)return a;const s=Gt(t[e-2]);return e>1&&Gt(r)===s&&i[i.length-1].path!==s?i.findIndex(v.bind(null,t[e-2])):a})),s=(0,r.Fl)((()=>a.value>-1&&Xt(n.params,o.value.params))),l=(0,r.Fl)((()=>a.value>-1&&a.value===n.matched.length-1&&b(n.params,o.value.params)));function u(n={}){return qt(n)?e[(0,i.SU)(t.replace)?"replace":"push"]((0,i.SU)(t.to)).catch(c):Promise.resolve()}return{route:o,href:(0,r.Fl)((()=>o.value.href)),isActive:s,isExactActive:l,navigate:u}}const Yt=(0,r.aZ)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$t,setup(t,{slots:e}){const n=(0,i.qj)($t(t)),{options:o}=(0,r.f3)(Ft),a=(0,r.Fl)((()=>({[Jt(t.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Jt(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const i=e.default&&e.default(n);return t.custom?i:(0,r.h)("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),Zt=Yt;function qt(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Xt(t,e){for(const n in e){const r=e[n],i=t[n];if("string"===typeof r){if(r!==i)return!1}else if(!u(i)||i.length!==r.length||r.some(((t,e)=>t!==i[e])))return!1}return!0}function Gt(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Jt=(t,e,n)=>null!=t?t:null!=e?e:n,Kt=(0,r.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const o=(0,r.f3)(Ut),a=(0,r.Fl)((()=>t.route||o.value)),l=(0,r.f3)(Rt,0),c=(0,r.Fl)((()=>{let t=(0,i.SU)(l);const{matched:e}=a.value;let n;while((n=e[t])&&!n.components)t++;return t})),u=(0,r.Fl)((()=>a.value.matched[c.value]));(0,r.JJ)(Rt,(0,r.Fl)((()=>c.value+1))),(0,r.JJ)(jt,u),(0,r.JJ)(Ut,a);const h=(0,i.iH)();return(0,r.YP)((()=>[h.value,u.value,t.name]),(([t,e,n],[r,i,o])=>{e&&(e.instances[n]=t,i&&i!==e&&t&&t===r&&(e.leaveGuards.size||(e.leaveGuards=i.leaveGuards),e.updateGuards.size||(e.updateGuards=i.updateGuards))),!t||!e||i&&v(e,i)&&r||(e.enterCallbacks[n]||[]).forEach((e=>e(t)))}),{flush:"post"}),()=>{const i=a.value,o=t.name,l=u.value,c=l&&l.components[o];if(!c)return Qt(n.default,{Component:c,route:i});const d=l.props[o],f=d?!0===d?i.params:"function"===typeof d?d(i):d:null,p=t=>{t.component.isUnmounted&&(l.instances[o]=null)},g=(0,r.h)(c,s({},f,e,{onVnodeUnmounted:p,ref:h}));return Qt(n.default,{Component:g,route:i})||g}}});function Qt(t,e){if(!t)return null;const n=t(e);return 1===n.length?n[0]:n}const te=Kt;function ee(t){const e=it(t.routes,t),n=t.parseQuery||Lt,a=t.stringifyQuery||It,h=t.history;const d=zt(),g=zt(),v=zt(),b=(0,i.XI)(H);let y=H;o&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const _=l.bind(null,(t=>""+t)),x=l.bind(null,Dt),k=l.bind(null,At);function M(t,n){let r,i;return z(t)?(r=e.getRecordMatcher(t),i=n):i=t,e.addRoute(i,r)}function O(t){const n=e.getRecordMatcher(t);n&&e.removeRoute(n)}function S(){return e.getRoutes().map((t=>t.record))}function T(t){return!!e.getRecordMatcher(t)}function D(t,r){if(r=s({},r||b.value),"string"===typeof t){const i=f(n,t,r.path),o=e.resolve({path:i.path},r),a=h.createHref(i.fullPath);return s(i,o,{params:k(o.params),hash:At(i.hash),redirectedFrom:void 0,href:a})}let i;if("path"in t)i=s({},t,{path:f(n,t.path,r.path).path});else{const e=s({},t.params);for(const t in e)null==e[t]&&delete e[t];i=s({},t,{params:x(t.params)}),r.params=x(r.params)}const o=e.resolve(i,r),l=t.hash||"";o.params=_(k(o.params));const c=p(a,s({},t,{hash:Tt(l),path:o.path})),u=h.createHref(c);return s({fullPath:c,hash:l,query:a===It?Nt(t.query):t.query||{}},o,{redirectedFrom:void 0,href:u})}function I(t){return"string"===typeof t?f(n,t,b.value.path):s({},t)}function N(t,e){if(y!==t)return $(8,{from:e,to:t})}function j(t){return W(t)}function R(t){return j(s(I(t),{replace:!0}))}function F(t){const e=t.matched[t.matched.length-1];if(e&&e.redirect){const{redirect:n}=e;let r="function"===typeof n?n(t):n;return"string"===typeof r&&(r=r.includes("?")||r.includes("#")?r=I(r):{path:r},r.params={}),s({query:t.query,hash:t.hash,params:"path"in r?{}:t.params},r)}}function W(t,e){const n=y=D(t),r=b.value,i=t.state,o=t.force,l=!0===t.replace,c=F(n);if(c)return W(s(I(c),{state:"object"===typeof c?s({},i,c.state):i,force:o,replace:l}),e||n);const u=n;let h;return u.redirectedFrom=e,!o&&m(a,r,n)&&(h=$(16,{to:u,from:r}),nt(r,r,!0,!1)),(h?Promise.resolve(h):B(u,r)).catch((t=>Y(t)?Y(t,2)?t:et(t):Q(t,u,r))).then((t=>{if(t){if(Y(t,2))return W(s({replace:l},I(t.to),{state:"object"===typeof t.to?s({},i,t.to.state):i,force:o}),e||u)}else t=Z(u,r,!0,l,i);return V(u,r,t),t}))}function U(t,e){const n=N(t,e);return n?Promise.reject(n):Promise.resolve()}function B(t,e){let n;const[r,i,o]=re(t,e);n=Bt(r.reverse(),"beforeRouteLeave",t,e);for(const s of r)s.leaveGuards.forEach((r=>{n.push(Ht(r,t,e))}));const a=U.bind(null,t,e);return n.push(a),ne(n).then((()=>{n=[];for(const r of d.list())n.push(Ht(r,t,e));return n.push(a),ne(n)})).then((()=>{n=Bt(i,"beforeRouteUpdate",t,e);for(const r of i)r.updateGuards.forEach((r=>{n.push(Ht(r,t,e))}));return n.push(a),ne(n)})).then((()=>{n=[];for(const r of t.matched)if(r.beforeEnter&&!e.matched.includes(r))if(u(r.beforeEnter))for(const i of r.beforeEnter)n.push(Ht(i,t,e));else n.push(Ht(r.beforeEnter,t,e));return n.push(a),ne(n)})).then((()=>(t.matched.forEach((t=>t.enterCallbacks={})),n=Bt(o,"beforeRouteEnter",t,e),n.push(a),ne(n)))).then((()=>{n=[];for(const r of g.list())n.push(Ht(r,t,e));return n.push(a),ne(n)})).catch((t=>Y(t,8)?t:Promise.reject(t)))}function V(t,e,n){for(const r of v.list())r(t,e,n)}function Z(t,e,n,r,i){const a=N(t,e);if(a)return a;const l=e===H,c=o?history.state:{};n&&(r||l?h.replace(t.fullPath,s({scroll:l&&c&&c.scroll},i)):h.push(t.fullPath,i)),b.value=t,nt(t,e,n,l),et()}let q;function X(){q||(q=h.listen(((t,e,n)=>{if(!st.listening)return;const r=D(t),i=F(r);if(i)return void W(s(i,{replace:!0}),r).catch(c);y=r;const a=b.value;o&&A(P(a.fullPath,n.delta),E()),B(r,a).catch((t=>Y(t,12)?t:Y(t,2)?(W(t.to,r).then((t=>{Y(t,20)&&!n.delta&&n.type===w.pop&&h.go(-1,!1)})).catch(c),Promise.reject()):(n.delta&&h.go(-n.delta,!1),Q(t,r,a)))).then((t=>{t=t||Z(r,a,!1),t&&(n.delta&&!Y(t,8)?h.go(-n.delta,!1):n.type===w.pop&&Y(t,20)&&h.go(-1,!1)),V(r,a,t)})).catch(c)})))}let G,J=zt(),K=zt();function Q(t,e,n){et(t);const r=K.list();return r.length?r.forEach((r=>r(t,e,n))):console.error(t),Promise.reject(t)}function tt(){return G&&b.value!==H?Promise.resolve():new Promise(((t,e)=>{J.add([t,e])}))}function et(t){return G||(G=!t,X(),J.list().forEach((([e,n])=>t?n(t):e())),J.reset()),t}function nt(e,n,i,a){const{scrollBehavior:s}=t;if(!o||!s)return Promise.resolve();const l=!i&&L(P(e.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return(0,r.Y3)().then((()=>s(e,n,l))).then((t=>t&&C(t))).catch((t=>Q(t,e,n)))}const rt=t=>h.go(t);let ot;const at=new Set,st={currentRoute:b,listening:!0,addRoute:M,removeRoute:O,hasRoute:T,getRoutes:S,resolve:D,options:t,push:j,replace:R,go:rt,back:()=>rt(-1),forward:()=>rt(1),beforeEach:d.add,beforeResolve:g.add,afterEach:v.add,onError:K.add,isReady:tt,install(t){const e=this;t.component("RouterLink",Zt),t.component("RouterView",te),t.config.globalProperties.$router=e,Object.defineProperty(t.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,i.SU)(b)}),o&&!ot&&b.value===H&&(ot=!0,j(h.location).catch((t=>{0})));const n={};for(const i in H)n[i]=(0,r.Fl)((()=>b.value[i]));t.provide(Ft,e),t.provide(Wt,(0,i.qj)(n)),t.provide(Ut,b);const a=t.unmount;at.add(t),t.unmount=function(){at.delete(t),at.size<1&&(y=H,q&&q(),q=null,b.value=H,ot=!1,G=!1),a()}}};return st}function ne(t){return t.reduce(((t,e)=>t.then((()=>e()))),Promise.resolve())}function re(t,e){const n=[],r=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let a=0;av(t,o)))?r.push(o):n.push(o));const s=t.matched[a];s&&(e.matched.find((t=>v(t,s)))||i.push(s))}return[n,r,i]}function ie(){return(0,r.f3)(Ft)}function oe(){return(0,r.f3)(Wt)}}}]);
//# sourceMappingURL=chunk-vendors.d575ea61.js.map