48 lines
534 KiB
JavaScript
48 lines
534 KiB
JavaScript
var Ub=Object.defineProperty;var Gb=(e,t,n)=>t in e?Ub(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var te=(e,t,n)=>(Gb(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();/**
|
|
* @vue/shared v3.4.21
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function Ic(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const We={},ai=[],Gt=()=>{},Kb=()=>!1,ga=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Rc=e=>e.startsWith("onUpdate:"),ot=Object.assign,Dc=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},qb=Object.prototype.hasOwnProperty,Re=(e,t)=>qb.call(e,t),xe=Array.isArray,li=e=>ma(e)==="[object Map]",zg=e=>ma(e)==="[object Set]",we=e=>typeof e=="function",tt=e=>typeof e=="string",_i=e=>typeof e=="symbol",je=e=>e!==null&&typeof e=="object",Hg=e=>(je(e)||we(e))&&we(e.then)&&we(e.catch),jg=Object.prototype.toString,ma=e=>jg.call(e),Yb=e=>ma(e).slice(8,-1),Wg=e=>ma(e)==="[object Object]",Lc=e=>tt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Gi=Ic(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pa=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Xb=/-(\w)/g,Yt=pa(e=>e.replace(Xb,(t,n)=>n?n.toUpperCase():"")),Jb=/\B([A-Z])/g,Si=pa(e=>e.replace(Jb,"-$1").toLowerCase()),js=pa(e=>e.charAt(0).toUpperCase()+e.slice(1)),qa=pa(e=>e?`on${js(e)}`:""),ls=(e,t)=>!Object.is(e,t),Ya=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ir=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Zb=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Qb=e=>{const t=tt(e)?Number(e):NaN;return isNaN(t)?e:t};let ed;const Ug=()=>ed||(ed=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fc(e){if(xe(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=tt(s)?s0(s):Fc(s);if(i)for(const o in i)t[o]=i[o]}return t}else if(tt(e)||je(e))return e}const e0=/;(?![^(]*\))/g,t0=/:([^]+)/,n0=/\/\*[^]*?\*\//g;function s0(e){const t={};return e.replace(n0,"").split(e0).forEach(n=>{if(n){const s=n.split(t0);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Vc(e){let t="";if(tt(e))t=e;else if(xe(e))for(let n=0;n<e.length;n++){const s=Vc(e[n]);s&&(t+=s+" ")}else if(je(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const i0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",o0=Ic(i0);function Gg(e){return!!e||e===""}const ve=e=>tt(e)?e:e==null?"":xe(e)||je(e)&&(e.toString===jg||!we(e.toString))?JSON.stringify(e,Kg,2):String(e),Kg=(e,t)=>t&&t.__v_isRef?Kg(e,t.value):li(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],o)=>(n[Xa(s,o)+" =>"]=i,n),{})}:zg(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Xa(n))}:_i(t)?Xa(t):je(t)&&!xe(t)&&!Wg(t)?String(t):t,Xa=(e,t="")=>{var n;return _i(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
* @vue/reactivity v3.4.21
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let Ft;class qg{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ft,!t&&Ft&&(this.index=(Ft.scopes||(Ft.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ft;try{return Ft=this,t()}finally{Ft=n}}}on(){Ft=this}off(){Ft=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Bc(e){return new qg(e)}function r0(e,t=Ft){t&&t.active&&t.effects.push(e)}function a0(){return Ft}function Rt(e){Ft&&Ft.cleanups.push(e)}let Is;class Nc{constructor(t,n,s,i){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,r0(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Ws();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(l0(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Us()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=os,n=Is;try{return os=!0,Is=this,this._runnings++,td(this),this.fn()}finally{nd(this),this._runnings--,Is=n,os=t}}stop(){var t;this.active&&(td(this),nd(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function l0(e){return e.value}function td(e){e._trackId++,e._depsLength=0}function nd(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Yg(e.deps[t],e);e.deps.length=e._depsLength}}function Yg(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let os=!0,Dl=0;const Xg=[];function Ws(){Xg.push(os),os=!1}function Us(){const e=Xg.pop();os=e===void 0?!0:e}function $c(){Dl++}function zc(){for(Dl--;!Dl&&Ll.length;)Ll.shift()()}function Jg(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Yg(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ll=[];function Zg(e,t,n){$c();for(const s of e.keys()){let i;s._dirtyLevel<t&&(i??(i=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(i??(i=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&Ll.push(s.scheduler)))}zc()}const Qg=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Rr=new WeakMap,Rs=Symbol(""),Fl=Symbol("");function Ot(e,t,n){if(os&&Is){let s=Rr.get(e);s||Rr.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Qg(()=>s.delete(n))),Jg(Is,i)}}function Ln(e,t,n,s,i,o){const r=Rr.get(e);if(!r)return;let a=[];if(t==="clear")a=[...r.values()];else if(n==="length"&&xe(e)){const l=Number(s);r.forEach((c,u)=>{(u==="length"||!_i(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(r.get(n)),t){case"add":xe(e)?Lc(n)&&a.push(r.get("length")):(a.push(r.get(Rs)),li(e)&&a.push(r.get(Fl)));break;case"delete":xe(e)||(a.push(r.get(Rs)),li(e)&&a.push(r.get(Fl)));break;case"set":li(e)&&a.push(r.get(Rs));break}$c();for(const l of a)l&&Zg(l,4);zc()}function c0(e,t){var n;return(n=Rr.get(e))==null?void 0:n.get(t)}const u0=Ic("__proto__,__v_isRef,__isVue"),em=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_i)),sd=d0();function d0(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=ke(this);for(let o=0,r=this.length;o<r;o++)Ot(s,"get",o+"");const i=s[t](...n);return i===-1||i===!1?s[t](...n.map(ke)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ws(),$c();const s=ke(this)[t].apply(this,n);return zc(),Us(),s}}),e}function f0(e){const t=ke(this);return Ot(t,"has",e),t.hasOwnProperty(e)}class tm{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(i?o?k0:om:o?im:sm).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=xe(t);if(!i){if(r&&Re(sd,n))return Reflect.get(sd,n,s);if(n==="hasOwnProperty")return f0}const a=Reflect.get(t,n,s);return(_i(n)?em.has(n):u0(n))||(i||Ot(t,"get",n),o)?a:nt(a)?r&&Lc(n)?a:a.value:je(a)?i?Mo(a):vt(a):a}}class nm extends tm{constructor(t=!1){super(!1,t)}set(t,n,s,i){let o=t[n];if(!this._isShallow){const l=fi(o);if(!Dr(s)&&!fi(s)&&(o=ke(o),s=ke(s)),!xe(t)&&nt(o)&&!nt(s))return l?!1:(o.value=s,!0)}const r=xe(t)&&Lc(n)?Number(n)<t.length:Re(t,n),a=Reflect.set(t,n,s,i);return t===ke(i)&&(r?ls(s,o)&&Ln(t,"set",n,s):Ln(t,"add",n,s)),a}deleteProperty(t,n){const s=Re(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&s&&Ln(t,"delete",n,void 0),i}has(t,n){const s=Reflect.has(t,n);return(!_i(n)||!em.has(n))&&Ot(t,"has",n),s}ownKeys(t){return Ot(t,"iterate",xe(t)?"length":Rs),Reflect.ownKeys(t)}}class h0 extends tm{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const g0=new nm,m0=new h0,p0=new nm(!0),Hc=e=>e,va=e=>Reflect.getPrototypeOf(e);function No(e,t,n=!1,s=!1){e=e.__v_raw;const i=ke(e),o=ke(t);n||(ls(t,o)&&Ot(i,"get",t),Ot(i,"get",o));const{has:r}=va(i),a=s?Hc:n?Uc:oo;if(r.call(i,t))return a(e.get(t));if(r.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function $o(e,t=!1){const n=this.__v_raw,s=ke(n),i=ke(e);return t||(ls(e,i)&&Ot(s,"has",e),Ot(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function zo(e,t=!1){return e=e.__v_raw,!t&&Ot(ke(e),"iterate",Rs),Reflect.get(e,"size",e)}function id(e){e=ke(e);const t=ke(this);return va(t).has.call(t,e)||(t.add(e),Ln(t,"add",e,e)),this}function od(e,t){t=ke(t);const n=ke(this),{has:s,get:i}=va(n);let o=s.call(n,e);o||(e=ke(e),o=s.call(n,e));const r=i.call(n,e);return n.set(e,t),o?ls(t,r)&&Ln(n,"set",e,t):Ln(n,"add",e,t),this}function rd(e){const t=ke(this),{has:n,get:s}=va(t);let i=n.call(t,e);i||(e=ke(e),i=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return i&&Ln(t,"delete",e,void 0),o}function ad(){const e=ke(this),t=e.size!==0,n=e.clear();return t&&Ln(e,"clear",void 0,void 0),n}function Ho(e,t){return function(s,i){const o=this,r=o.__v_raw,a=ke(r),l=t?Hc:e?Uc:oo;return!e&&Ot(a,"iterate",Rs),r.forEach((c,u)=>s.call(i,l(c),l(u),o))}}function jo(e,t,n){return function(...s){const i=this.__v_raw,o=ke(i),r=li(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=i[e](...s),u=n?Hc:t?Uc:oo;return!t&&Ot(o,"iterate",l?Fl:Rs),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Wn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function v0(){const e={get(o){return No(this,o)},get size(){return zo(this)},has:$o,add:id,set:od,delete:rd,clear:ad,forEach:Ho(!1,!1)},t={get(o){return No(this,o,!1,!0)},get size(){return zo(this)},has:$o,add:id,set:od,delete:rd,clear:ad,forEach:Ho(!1,!0)},n={get(o){return No(this,o,!0)},get size(){return zo(this,!0)},has(o){return $o.call(this,o,!0)},add:Wn("add"),set:Wn("set"),delete:Wn("delete"),clear:Wn("clear"),forEach:Ho(!0,!1)},s={get(o){return No(this,o,!0,!0)},get size(){return zo(this,!0)},has(o){return $o.call(this,o,!0)},add:Wn("add"),set:Wn("set"),delete:Wn("delete"),clear:Wn("clear"),forEach:Ho(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=jo(o,!1,!1),n[o]=jo(o,!0,!1),t[o]=jo(o,!1,!0),s[o]=jo(o,!0,!0)}),[e,n,t,s]}const[y0,b0,x0,_0]=v0();function jc(e,t){const n=t?e?_0:x0:e?b0:y0;return(s,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(Re(n,i)&&i in s?n:s,i,o)}const S0={get:jc(!1,!1)},w0={get:jc(!1,!0)},C0={get:jc(!0,!1)},sm=new WeakMap,im=new WeakMap,om=new WeakMap,k0=new WeakMap;function P0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function A0(e){return e.__v_skip||!Object.isExtensible(e)?0:P0(Yb(e))}function vt(e){return fi(e)?e:Wc(e,!1,g0,S0,sm)}function rm(e){return Wc(e,!1,p0,w0,im)}function Mo(e){return Wc(e,!0,m0,C0,om)}function Wc(e,t,n,s,i){if(!je(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const r=A0(e);if(r===0)return e;const a=new Proxy(e,r===2?s:n);return i.set(e,a),a}function ci(e){return fi(e)?ci(e.__v_raw):!!(e&&e.__v_isReactive)}function fi(e){return!!(e&&e.__v_isReadonly)}function Dr(e){return!!(e&&e.__v_isShallow)}function am(e){return ci(e)||fi(e)}function ke(e){const t=e&&e.__v_raw;return t?ke(t):e}function lm(e){return Object.isExtensible(e)&&Ir(e,"__v_skip",!0),e}const oo=e=>je(e)?vt(e):e,Uc=e=>je(e)?Mo(e):e;class cm{constructor(t,n,s,i){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Nc(()=>t(this._value),()=>hr(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=ke(this);return(!t._cacheable||t.effect.dirty)&&ls(t._value,t._value=t.effect.run())&&hr(t,4),um(t),t.effect._dirtyLevel>=2&&hr(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function M0(e,t,n=!1){let s,i;const o=we(e);return o?(s=e,i=Gt):(s=e.get,i=e.set),new cm(s,i,o||!i,n)}function um(e){var t;os&&Is&&(e=ke(e),Jg(Is,(t=e.dep)!=null?t:e.dep=Qg(()=>e.dep=void 0,e instanceof cm?e:void 0)))}function hr(e,t=4,n){e=ke(e);const s=e.dep;s&&Zg(s,t)}function nt(e){return!!(e&&e.__v_isRef===!0)}function Z(e){return dm(e,!1)}function ge(e){return dm(e,!0)}function dm(e,t){return nt(e)?e:new E0(e,t)}class E0{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ke(t),this._value=n?t:oo(t)}get value(){return um(this),this._value}set value(t){const n=this.__v_isShallow||Dr(t)||fi(t);t=n?t:ke(t),ls(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:oo(t),hr(this,4))}}function Ze(e){return nt(e)?e.value:e}const T0={get:(e,t,n)=>Ze(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return nt(i)&&!nt(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function fm(e){return ci(e)?e:new Proxy(e,T0)}function Gc(e){const t=xe(e)?new Array(e.length):{};for(const n in e)t[n]=hm(e,n);return t}class O0{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return c0(ke(this._object),this._key)}}class I0{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function le(e,t,n){return nt(e)?e:we(e)?new I0(e):je(e)&&arguments.length>1?hm(e,t,n):Z(e)}function hm(e,t,n){const s=e[t];return nt(s)?s:new O0(e,t,n)}/**
|
|
* @vue/runtime-core v3.4.21
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function rs(e,t,n,s){try{return s?e(...s):e()}catch(i){ya(i,t,n)}}function Kt(e,t,n,s){if(we(e)){const o=rs(e,t,n,s);return o&&Hg(o)&&o.catch(r=>{ya(r,t,n)}),o}const i=[];for(let o=0;o<e.length;o++)i.push(Kt(e[o],t,n,s));return i}function ya(e,t,n,s=!0){const i=t?t.vnode:null;if(t){let o=t.parent;const r=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,r,a)===!1)return}o=o.parent}const l=t.appContext.config.errorHandler;if(l){rs(l,null,10,[e,r,a]);return}}R0(e,n,i,s)}function R0(e,t,n,s=!0){console.error(e)}let ro=!1,Vl=!1;const yt=[];let hn=0;const ui=[];let Yn=null,Ms=0;const gm=Promise.resolve();let Kc=null;function ft(e){const t=Kc||gm;return e?t.then(this?e.bind(this):e):t}function D0(e){let t=hn+1,n=yt.length;for(;t<n;){const s=t+n>>>1,i=yt[s],o=ao(i);o<e||o===e&&i.pre?t=s+1:n=s}return t}function qc(e){(!yt.length||!yt.includes(e,ro&&e.allowRecurse?hn+1:hn))&&(e.id==null?yt.push(e):yt.splice(D0(e.id),0,e),mm())}function mm(){!ro&&!Vl&&(Vl=!0,Kc=gm.then(vm))}function L0(e){const t=yt.indexOf(e);t>hn&&yt.splice(t,1)}function F0(e){xe(e)?ui.push(...e):(!Yn||!Yn.includes(e,e.allowRecurse?Ms+1:Ms))&&ui.push(e),mm()}function ld(e,t,n=ro?hn+1:0){for(;n<yt.length;n++){const s=yt[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;yt.splice(n,1),n--,s()}}}function pm(e){if(ui.length){const t=[...new Set(ui)].sort((n,s)=>ao(n)-ao(s));if(ui.length=0,Yn){Yn.push(...t);return}for(Yn=t,Ms=0;Ms<Yn.length;Ms++)Yn[Ms]();Yn=null,Ms=0}}const ao=e=>e.id==null?1/0:e.id,V0=(e,t)=>{const n=ao(e)-ao(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function vm(e){Vl=!1,ro=!0,yt.sort(V0);try{for(hn=0;hn<yt.length;hn++){const t=yt[hn];t&&t.active!==!1&&rs(t,null,14)}}finally{hn=0,yt.length=0,pm(),ro=!1,Kc=null,(yt.length||ui.length)&&vm()}}function B0(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||We;let i=n;const o=t.startsWith("update:"),r=o&&t.slice(7);if(r&&r in s){const u=`${r==="modelValue"?"model":r}Modifiers`,{number:d,trim:f}=s[u]||We;f&&(i=n.map(h=>tt(h)?h.trim():h)),d&&(i=n.map(Zb))}let a,l=s[a=qa(t)]||s[a=qa(Yt(t))];!l&&o&&(l=s[a=qa(Si(t))]),l&&Kt(l,e,6,i);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Kt(c,e,6,i)}}function ym(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!we(e)){const l=c=>{const u=ym(c,t,!0);u&&(a=!0,ot(r,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(je(e)&&s.set(e,null),null):(xe(o)?o.forEach(l=>r[l]=null):ot(r,o),je(e)&&s.set(e,r),r)}function ba(e,t){return!e||!ga(t)?!1:(t=t.slice(2).replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,Si(t))||Re(e,t))}let wt=null,bm=null;function Lr(e){const t=wt;return wt=e,bm=e&&e.type.__scopeId||null,t}function Ve(e,t=wt,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&Sd(-1);const o=Lr(t);let r;try{r=e(...i)}finally{Lr(o),s._d&&Sd(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function Ja(e){const{type:t,vnode:n,proxy:s,withProxy:i,props:o,propsOptions:[r],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:f,setupState:h,ctx:m,inheritAttrs:g}=e;let p,v;const b=Lr(e);try{if(n.shapeFlag&4){const _=i||s,A=_;p=fn(u.call(A,_,d,o,h,f,m)),v=l}else{const _=t;p=fn(_.length>1?_(o,{attrs:l,slots:a,emit:c}):_(o,null)),v=t.props?l:N0(l)}}catch(_){Xi.length=0,ya(_,e,1),p=y(vn)}let x=p;if(v&&g!==!1){const _=Object.keys(v),{shapeFlag:A}=x;_.length&&A&7&&(r&&_.some(Rc)&&(v=$0(v,r)),x=Vn(x,v))}return n.dirs&&(x=Vn(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),p=x,Lr(b),p}const N0=e=>{let t;for(const n in e)(n==="class"||n==="style"||ga(n))&&((t||(t={}))[n]=e[n]);return t},$0=(e,t)=>{const n={};for(const s in e)(!Rc(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function z0(e,t,n){const{props:s,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?cd(s,r,c):!!r;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(r[f]!==s[f]&&!ba(c,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:s===r?!1:s?r?cd(s,r,c):!0:!!r;return!1}function cd(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const o=s[i];if(t[o]!==e[o]&&!ba(n,o))return!0}return!1}function H0({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Yc="components",j0="directives";function W0(e,t){return Xc(Yc,e,!0,t)||e}const xm=Symbol.for("v-ndc");function U0(e){return tt(e)?Xc(Yc,e,!1)||e:e||xm}function Gs(e){return Xc(j0,e)}function Xc(e,t,n=!0,s=!1){const i=wt||gt;if(i){const o=i.type;if(e===Yc){const a=Lx(o,!1);if(a&&(a===t||a===Yt(t)||a===js(Yt(t))))return o}const r=ud(i[e]||o[e],t)||ud(i.appContext[e],t);return!r&&s?o:r}}function ud(e,t){return e&&(e[t]||e[Yt(t)]||e[js(Yt(t))])}const G0=e=>e.__isSuspense;function K0(e,t){t&&t.pendingBranch?xe(e)?t.effects.push(...e):t.effects.push(e):F0(e)}const q0=Symbol.for("v-scx"),Y0=()=>Te(q0);function It(e,t){return Jc(e,null,t)}const Wo={};function ue(e,t,n){return Jc(e,t,n)}function Jc(e,t,{immediate:n,deep:s,flush:i,once:o,onTrack:r,onTrigger:a}=We){if(t&&o){const P=t;t=(...C)=>{P(...C),A()}}const l=gt,c=P=>s===!0?P:Ts(P,s===!1?1:void 0);let u,d=!1,f=!1;if(nt(e)?(u=()=>e.value,d=Dr(e)):ci(e)?(u=()=>c(e),d=!0):xe(e)?(f=!0,d=e.some(P=>ci(P)||Dr(P)),u=()=>e.map(P=>{if(nt(P))return P.value;if(ci(P))return c(P);if(we(P))return rs(P,l,2)})):we(e)?t?u=()=>rs(e,l,2):u=()=>(h&&h(),Kt(e,l,3,[m])):u=Gt,t&&s){const P=u;u=()=>Ts(P())}let h,m=P=>{h=x.onStop=()=>{rs(P,l,4),h=x.onStop=void 0}},g;if(ka)if(m=Gt,t?n&&Kt(t,l,3,[u(),f?[]:void 0,m]):u(),i==="sync"){const P=Y0();g=P.__watcherHandles||(P.__watcherHandles=[])}else return Gt;let p=f?new Array(e.length).fill(Wo):Wo;const v=()=>{if(!(!x.active||!x.dirty))if(t){const P=x.run();(s||d||(f?P.some((C,w)=>ls(C,p[w])):ls(P,p)))&&(h&&h(),Kt(t,l,3,[P,p===Wo?void 0:f&&p[0]===Wo?[]:p,m]),p=P)}else x.run()};v.allowRecurse=!!t;let b;i==="sync"?b=v:i==="post"?b=()=>Pt(v,l&&l.suspense):(v.pre=!0,l&&(v.id=l.uid),b=()=>qc(v));const x=new Nc(u,Gt,b),_=a0(),A=()=>{x.stop(),_&&Dc(_.effects,x)};return t?n?v():p=x.run():i==="post"?Pt(x.run.bind(x),l&&l.suspense):x.run(),g&&g.push(A),A}function X0(e,t,n){const s=this.proxy,i=tt(e)?e.includes(".")?_m(s,e):()=>s[e]:e.bind(s,s);let o;we(t)?o=t:(o=t.handler,n=t);const r=To(this),a=Jc(i,o.bind(s),n);return r(),a}function _m(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}function Ts(e,t,n=0,s){if(!je(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),nt(e))Ts(e.value,t,n,s);else if(xe(e))for(let i=0;i<e.length;i++)Ts(e[i],t,n,s);else if(zg(e)||li(e))e.forEach(i=>{Ts(i,t,n,s)});else if(Wg(e))for(const i in e)Ts(e[i],t,n,s);return e}function Xt(e,t){if(wt===null)return e;const n=Pa(wt)||wt.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,r,a,l=We]=t[i];o&&(we(o)&&(o={mounted:o,updated:o}),o.deep&&Ts(r),s.push({dir:o,instance:n,value:r,oldValue:void 0,arg:a,modifiers:l}))}return e}function ys(e,t,n,s){const i=e.dirs,o=t&&t.dirs;for(let r=0;r<i.length;r++){const a=i[r];o&&(a.oldValue=o[r].value);let l=a.dir[s];l&&(Ws(),Kt(l,n,8,[e.el,a,e,t]),Us())}}const Xn=Symbol("_leaveCb"),Uo=Symbol("_enterCb");function Sm(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return $t(()=>{e.isMounted=!0}),zt(()=>{e.isUnmounting=!0}),e}const jt=[Function,Array],wm={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jt,onEnter:jt,onAfterEnter:jt,onEnterCancelled:jt,onBeforeLeave:jt,onLeave:jt,onAfterLeave:jt,onLeaveCancelled:jt,onBeforeAppear:jt,onAppear:jt,onAfterAppear:jt,onAppearCancelled:jt},J0={name:"BaseTransition",props:wm,setup(e,{slots:t}){const n=iu(),s=Sm();return()=>{const i=t.default&&Zc(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const f of i)if(f.type!==vn){o=f;break}}const r=ke(e),{mode:a}=r;if(s.isLeaving)return Za(o);const l=dd(o);if(!l)return Za(o);const c=lo(l,r,s,n);co(l,c);const u=n.subTree,d=u&&dd(u);if(d&&d.type!==vn&&!Es(l,d)){const f=lo(d,r,s,n);if(co(d,f),a==="out-in")return s.isLeaving=!0,f.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Za(o);a==="in-out"&&l.type!==vn&&(f.delayLeave=(h,m,g)=>{const p=Cm(s,d);p[String(d.key)]=d,h[Xn]=()=>{m(),h[Xn]=void 0,delete c.delayedLeave},c.delayedLeave=g})}return o}}},Z0=J0;function Cm(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function lo(e,t,n,s){const{appear:i,mode:o,persisted:r=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:g,onAppear:p,onAfterAppear:v,onAppearCancelled:b}=t,x=String(e.key),_=Cm(n,e),A=(w,E)=>{w&&Kt(w,s,9,E)},P=(w,E)=>{const O=E[1];A(w,E),xe(w)?w.every(D=>D.length<=1)&&O():w.length<=1&&O()},C={mode:o,persisted:r,beforeEnter(w){let E=a;if(!n.isMounted)if(i)E=g||a;else return;w[Xn]&&w[Xn](!0);const O=_[x];O&&Es(e,O)&&O.el[Xn]&&O.el[Xn](),A(E,[w])},enter(w){let E=l,O=c,D=u;if(!n.isMounted)if(i)E=p||l,O=v||c,D=b||u;else return;let T=!1;const L=w[Uo]=$=>{T||(T=!0,$?A(D,[w]):A(O,[w]),C.delayedLeave&&C.delayedLeave(),w[Uo]=void 0)};E?P(E,[w,L]):L()},leave(w,E){const O=String(e.key);if(w[Uo]&&w[Uo](!0),n.isUnmounting)return E();A(d,[w]);let D=!1;const T=w[Xn]=L=>{D||(D=!0,E(),L?A(m,[w]):A(h,[w]),w[Xn]=void 0,_[O]===e&&delete _[O])};_[O]=e,f?P(f,[w,T]):T()},clone(w){return lo(w,t,n,s)}};return C}function Za(e){if(xa(e))return e=Vn(e),e.children=null,e}function dd(e){return xa(e)?e.children?e.children[0]:void 0:e}function co(e,t){e.shapeFlag&6&&e.component?co(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Zc(e,t=!1,n){let s=[],i=0;for(let o=0;o<e.length;o++){let r=e[o];const a=n==null?r.key:String(n)+String(r.key!=null?r.key:o);r.type===Pe?(r.patchFlag&128&&i++,s=s.concat(Zc(r.children,t,a))):(t||r.type!==vn)&&s.push(a!=null?Vn(r,{key:a}):r)}if(i>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function $n(e,t){return we(e)?ot({name:e.name},t,{setup:e}):e}const gr=e=>!!e.type.__asyncLoader,xa=e=>e.type.__isKeepAlive;function km(e,t){Am(e,"a",t)}function Pm(e,t){Am(e,"da",t)}function Am(e,t,n=gt){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(_a(t,s,n),n){let i=n.parent;for(;i&&i.parent;)xa(i.parent.vnode)&&Q0(s,t,n,i),i=i.parent}}function Q0(e,t,n,s){const i=_a(t,e,s,!0);Tm(()=>{Dc(s[t],i)},n)}function _a(e,t,n=gt,s=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Ws();const a=To(n),l=Kt(t,n,e,r);return a(),Us(),l});return s?i.unshift(o):i.push(o),o}}const zn=e=>(t,n=gt)=>(!ka||e==="sp")&&_a(e,(...s)=>t(...s),n),Qc=zn("bm"),$t=zn("m"),Mm=zn("bu"),Em=zn("u"),zt=zn("bum"),Tm=zn("um"),ex=zn("sp"),tx=zn("rtg"),nx=zn("rtc");function sx(e,t=gt){_a("ec",e,t)}function Sa(e,t,n,s){let i;const o=n&&n[s];if(xe(e)||tt(e)){i=new Array(e.length);for(let r=0,a=e.length;r<a;r++)i[r]=t(e[r],r,void 0,o&&o[r])}else if(typeof e=="number"){i=new Array(e);for(let r=0;r<e;r++)i[r]=t(r+1,r,void 0,o&&o[r])}else if(je(e))if(e[Symbol.iterator])i=Array.from(e,(r,a)=>t(r,a,void 0,o&&o[a]));else{const r=Object.keys(e);i=new Array(r.length);for(let a=0,l=r.length;a<l;a++){const c=r[a];i[a]=t(e[c],c,a,o&&o[a])}}else i=[];return n&&(n[s]=i),i}const Bl=e=>e?Hm(e)?Pa(e)||e.proxy:Bl(e.parent):null,Ki=ot(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bl(e.parent),$root:e=>Bl(e.root),$emit:e=>e.emit,$options:e=>eu(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,qc(e.update)}),$nextTick:e=>e.n||(e.n=ft.bind(e.proxy)),$watch:e=>X0.bind(e)}),Qa=(e,t)=>e!==We&&!e.__isScriptSetup&&Re(e,t),ix={get({_:e},t){const{ctx:n,setupState:s,data:i,props:o,accessCache:r,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Qa(s,t))return r[t]=1,s[t];if(i!==We&&Re(i,t))return r[t]=2,i[t];if((c=e.propsOptions[0])&&Re(c,t))return r[t]=3,o[t];if(n!==We&&Re(n,t))return r[t]=4,n[t];Nl&&(r[t]=0)}}const u=Ki[t];let d,f;if(u)return t==="$attrs"&&Ot(e,"get",t),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==We&&Re(n,t))return r[t]=4,n[t];if(f=l.config.globalProperties,Re(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:o}=e;return Qa(i,t)?(i[t]=n,!0):s!==We&&Re(s,t)?(s[t]=n,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:o}},r){let a;return!!n[r]||e!==We&&Re(e,r)||Qa(t,r)||(a=o[0])&&Re(a,r)||Re(s,r)||Re(Ki,r)||Re(i.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function fd(e){return xe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Nl=!0;function ox(e){const t=eu(e),n=e.proxy,s=e.ctx;Nl=!1,t.beforeCreate&&hd(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:h,updated:m,activated:g,deactivated:p,beforeDestroy:v,beforeUnmount:b,destroyed:x,unmounted:_,render:A,renderTracked:P,renderTriggered:C,errorCaptured:w,serverPrefetch:E,expose:O,inheritAttrs:D,components:T,directives:L,filters:$}=t;if(c&&rx(c,s,null),r)for(const q in r){const I=r[q];we(I)&&(s[q]=I.bind(n))}if(i){const q=i.call(n,n);je(q)&&(e.data=vt(q))}if(Nl=!0,o)for(const q in o){const I=o[q],V=we(I)?I.bind(n,n):we(I.get)?I.get.bind(n,n):Gt,re=!we(I)&&we(I.set)?I.set.bind(n):Gt,H=k({get:V,set:re});Object.defineProperty(s,q,{enumerable:!0,configurable:!0,get:()=>H.value,set:Q=>H.value=Q})}if(a)for(const q in a)Om(a[q],s,n,q);if(l){const q=we(l)?l.call(n):l;Reflect.ownKeys(q).forEach(I=>{Je(I,q[I])})}u&&hd(u,e,"c");function K(q,I){xe(I)?I.forEach(V=>q(V.bind(n))):I&&q(I.bind(n))}if(K(Qc,d),K($t,f),K(Mm,h),K(Em,m),K(km,g),K(Pm,p),K(sx,w),K(nx,P),K(tx,C),K(zt,b),K(Tm,_),K(ex,E),xe(O))if(O.length){const q=e.exposed||(e.exposed={});O.forEach(I=>{Object.defineProperty(q,I,{get:()=>n[I],set:V=>n[I]=V})})}else e.exposed||(e.exposed={});A&&e.render===Gt&&(e.render=A),D!=null&&(e.inheritAttrs=D),T&&(e.components=T),L&&(e.directives=L)}function rx(e,t,n=Gt){xe(e)&&(e=$l(e));for(const s in e){const i=e[s];let o;je(i)?"default"in i?o=Te(i.from||s,i.default,!0):o=Te(i.from||s):o=Te(i),nt(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function hd(e,t,n){Kt(xe(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Om(e,t,n,s){const i=s.includes(".")?_m(n,s):()=>n[s];if(tt(e)){const o=t[e];we(o)&&ue(i,o)}else if(we(e))ue(i,e.bind(n));else if(je(e))if(xe(e))e.forEach(o=>Om(o,t,n,s));else{const o=we(e.handler)?e.handler.bind(n):t[e.handler];we(o)&&ue(i,o,e)}}function eu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!n&&!s?l=t:(l={},i.length&&i.forEach(c=>Fr(l,c,r,!0)),Fr(l,t,r)),je(t)&&o.set(t,l),l}function Fr(e,t,n,s=!1){const{mixins:i,extends:o}=t;o&&Fr(e,o,n,!0),i&&i.forEach(r=>Fr(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=ax[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const ax={data:gd,props:md,emits:md,methods:Ni,computed:Ni,beforeCreate:St,created:St,beforeMount:St,mounted:St,beforeUpdate:St,updated:St,beforeDestroy:St,beforeUnmount:St,destroyed:St,unmounted:St,activated:St,deactivated:St,errorCaptured:St,serverPrefetch:St,components:Ni,directives:Ni,watch:cx,provide:gd,inject:lx};function gd(e,t){return t?e?function(){return ot(we(e)?e.call(this,this):e,we(t)?t.call(this,this):t)}:t:e}function lx(e,t){return Ni($l(e),$l(t))}function $l(e){if(xe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function St(e,t){return e?[...new Set([].concat(e,t))]:t}function Ni(e,t){return e?ot(Object.create(null),e,t):t}function md(e,t){return e?xe(e)&&xe(t)?[...new Set([...e,...t])]:ot(Object.create(null),fd(e),fd(t??{})):t}function cx(e,t){if(!e)return t;if(!t)return e;const n=ot(Object.create(null),e);for(const s in t)n[s]=St(e[s],t[s]);return n}function Im(){return{app:null,config:{isNativeTag:Kb,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ux=0;function dx(e,t){return function(s,i=null){we(s)||(s=ot({},s)),i!=null&&!je(i)&&(i=null);const o=Im(),r=new WeakSet;let a=!1;const l=o.app={_uid:ux++,_component:s,_props:i,_container:null,_context:o,_instance:null,version:Vx,get config(){return o.config},set config(c){},use(c,...u){return r.has(c)||(c&&we(c.install)?(r.add(c),c.install(l,...u)):we(c)&&(r.add(c),c(l,...u))),l},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),l},component(c,u){return u?(o.components[c]=u,l):o.components[c]},directive(c,u){return u?(o.directives[c]=u,l):o.directives[c]},mount(c,u,d){if(!a){const f=y(s,i);return f.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(f,c):e(f,c,d),a=!0,l._container=c,c.__vue_app__=l,Pa(f.component)||f.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return o.provides[c]=u,l},runWithContext(c){const u=qi;qi=l;try{return c()}finally{qi=u}}};return l}}let qi=null;function Je(e,t){if(gt){let n=gt.provides;const s=gt.parent&>.parent.provides;s===n&&(n=gt.provides=Object.create(s)),n[e]=t}}function Te(e,t,n=!1){const s=gt||wt;if(s||qi){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:qi._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&we(t)?t.call(s&&s.proxy):t}}function fx(e,t,n,s=!1){const i={},o={};Ir(o,Ca,1),e.propsDefaults=Object.create(null),Rm(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=s?i:rm(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function hx(e,t,n,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=ke(i),[l]=e.propsOptions;let c=!1;if((s||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(ba(e.emitsOptions,f))continue;const h=t[f];if(l)if(Re(o,f))h!==o[f]&&(o[f]=h,c=!0);else{const m=Yt(f);i[m]=zl(l,a,m,h,e,!1)}else h!==o[f]&&(o[f]=h,c=!0)}}}else{Rm(e,t,i,o)&&(c=!0);let u;for(const d in a)(!t||!Re(t,d)&&((u=Si(d))===d||!Re(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(i[d]=zl(l,a,d,void 0,e,!0)):delete i[d]);if(o!==a)for(const d in o)(!t||!Re(t,d))&&(delete o[d],c=!0)}c&&Ln(e,"set","$attrs")}function Rm(e,t,n,s){const[i,o]=e.propsOptions;let r=!1,a;if(t)for(let l in t){if(Gi(l))continue;const c=t[l];let u;i&&Re(i,u=Yt(l))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:ba(e.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,r=!0)}if(o){const l=ke(n),c=a||We;for(let u=0;u<o.length;u++){const d=o[u];n[d]=zl(i,l,d,c[d],e,!Re(c,d))}}return r}function zl(e,t,n,s,i,o){const r=e[n];if(r!=null){const a=Re(r,"default");if(a&&s===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&we(l)){const{propsDefaults:c}=i;if(n in c)s=c[n];else{const u=To(i);s=c[n]=l.call(null,t),u()}}else s=l}r[0]&&(o&&!a?s=!1:r[1]&&(s===""||s===Si(n))&&(s=!0))}return s}function Dm(e,t,n=!1){const s=t.propsCache,i=s.get(e);if(i)return i;const o=e.props,r={},a=[];let l=!1;if(!we(e)){const u=d=>{l=!0;const[f,h]=Dm(d,t,!0);ot(r,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return je(e)&&s.set(e,ai),ai;if(xe(o))for(let u=0;u<o.length;u++){const d=Yt(o[u]);pd(d)&&(r[d]=We)}else if(o)for(const u in o){const d=Yt(u);if(pd(d)){const f=o[u],h=r[d]=xe(f)||we(f)?{type:f}:ot({},f);if(h){const m=bd(Boolean,h.type),g=bd(String,h.type);h[0]=m>-1,h[1]=g<0||m<g,(m>-1||Re(h,"default"))&&a.push(d)}}}const c=[r,a];return je(e)&&s.set(e,c),c}function pd(e){return e[0]!=="$"&&!Gi(e)}function vd(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function yd(e,t){return vd(e)===vd(t)}function bd(e,t){return xe(t)?t.findIndex(n=>yd(n,e)):we(t)&&yd(t,e)?0:-1}const Lm=e=>e[0]==="_"||e==="$stable",tu=e=>xe(e)?e.map(fn):[fn(e)],gx=(e,t,n)=>{if(t._n)return t;const s=Ve((...i)=>tu(t(...i)),n);return s._c=!1,s},Fm=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Lm(i))continue;const o=e[i];if(we(o))t[i]=gx(i,o,s);else if(o!=null){const r=tu(o);t[i]=()=>r}}},Vm=(e,t)=>{const n=tu(t);e.slots.default=()=>n},mx=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ke(t),Ir(t,"_",n)):Fm(t,e.slots={})}else e.slots={},t&&Vm(e,t);Ir(e.slots,Ca,1)},px=(e,t,n)=>{const{vnode:s,slots:i}=e;let o=!0,r=We;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:(ot(i,t),!n&&a===1&&delete i._):(o=!t.$stable,Fm(t,i)),r=t}else t&&(Vm(e,t),r={default:1});if(o)for(const a in i)!Lm(a)&&r[a]==null&&delete i[a]};function Hl(e,t,n,s,i=!1){if(xe(e)){e.forEach((f,h)=>Hl(f,t&&(xe(t)?t[h]:t),n,s,i));return}if(gr(s)&&!i)return;const o=s.shapeFlag&4?Pa(s.component)||s.component.proxy:s.el,r=i?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===We?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(tt(c)?(u[c]=null,Re(d,c)&&(d[c]=null)):nt(c)&&(c.value=null)),we(l))rs(l,a,12,[r,u]);else{const f=tt(l),h=nt(l);if(f||h){const m=()=>{if(e.f){const g=f?Re(d,l)?d[l]:u[l]:l.value;i?xe(g)&&Dc(g,o):xe(g)?g.includes(o)||g.push(o):f?(u[l]=[o],Re(d,l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else f?(u[l]=r,Re(d,l)&&(d[l]=r)):h&&(l.value=r,e.k&&(u[e.k]=r))};r?(m.id=-1,Pt(m,n)):m()}}}const Pt=K0;function vx(e){return yx(e)}function yx(e,t){const n=Ug();n.__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:h=Gt,insertStaticContent:m}=e,g=(S,M,R,z=null,B=null,ee=null,ae=void 0,X=null,ne=!!M.dynamicChildren)=>{if(S===M)return;S&&!Es(S,M)&&(z=F(S),Q(S,B,ee,!0),S=null),M.patchFlag===-2&&(ne=!1,M.dynamicChildren=null);const{type:U,ref:ce,shapeFlag:ye}=M;switch(U){case Eo:p(S,M,R,z);break;case vn:v(S,M,R,z);break;case tl:S==null&&b(M,R,z,ae);break;case Pe:T(S,M,R,z,B,ee,ae,X,ne);break;default:ye&1?A(S,M,R,z,B,ee,ae,X,ne):ye&6?L(S,M,R,z,B,ee,ae,X,ne):(ye&64||ye&128)&&U.process(S,M,R,z,B,ee,ae,X,ne,oe)}ce!=null&&B&&Hl(ce,S&&S.ref,ee,M||S,!M)},p=(S,M,R,z)=>{if(S==null)s(M.el=a(M.children),R,z);else{const B=M.el=S.el;M.children!==S.children&&c(B,M.children)}},v=(S,M,R,z)=>{S==null?s(M.el=l(M.children||""),R,z):M.el=S.el},b=(S,M,R,z)=>{[S.el,S.anchor]=m(S.children,M,R,z,S.el,S.anchor)},x=({el:S,anchor:M},R,z)=>{let B;for(;S&&S!==M;)B=f(S),s(S,R,z),S=B;s(M,R,z)},_=({el:S,anchor:M})=>{let R;for(;S&&S!==M;)R=f(S),i(S),S=R;i(M)},A=(S,M,R,z,B,ee,ae,X,ne)=>{M.type==="svg"?ae="svg":M.type==="math"&&(ae="mathml"),S==null?P(M,R,z,B,ee,ae,X,ne):E(S,M,B,ee,ae,X,ne)},P=(S,M,R,z,B,ee,ae,X)=>{let ne,U;const{props:ce,shapeFlag:ye,transition:pe,dirs:Se}=S;if(ne=S.el=r(S.type,ee,ce&&ce.is,ce),ye&8?u(ne,S.children):ye&16&&w(S.children,ne,null,z,B,el(S,ee),ae,X),Se&&ys(S,null,z,"created"),C(ne,S,S.scopeId,ae,z),ce){for(const $e in ce)$e!=="value"&&!Gi($e)&&o(ne,$e,null,ce[$e],ee,S.children,z,B,ie);"value"in ce&&o(ne,"value",null,ce.value,ee),(U=ce.onVnodeBeforeMount)&&cn(U,z,S)}Se&&ys(S,null,z,"beforeMount");const Me=bx(B,pe);Me&&pe.beforeEnter(ne),s(ne,M,R),((U=ce&&ce.onVnodeMounted)||Me||Se)&&Pt(()=>{U&&cn(U,z,S),Me&&pe.enter(ne),Se&&ys(S,null,z,"mounted")},B)},C=(S,M,R,z,B)=>{if(R&&h(S,R),z)for(let ee=0;ee<z.length;ee++)h(S,z[ee]);if(B){let ee=B.subTree;if(M===ee){const ae=B.vnode;C(S,ae,ae.scopeId,ae.slotScopeIds,B.parent)}}},w=(S,M,R,z,B,ee,ae,X,ne=0)=>{for(let U=ne;U<S.length;U++){const ce=S[U]=X?Jn(S[U]):fn(S[U]);g(null,ce,M,R,z,B,ee,ae,X)}},E=(S,M,R,z,B,ee,ae)=>{const X=M.el=S.el;let{patchFlag:ne,dynamicChildren:U,dirs:ce}=M;ne|=S.patchFlag&16;const ye=S.props||We,pe=M.props||We;let Se;if(R&&bs(R,!1),(Se=pe.onVnodeBeforeUpdate)&&cn(Se,R,M,S),ce&&ys(M,S,R,"beforeUpdate"),R&&bs(R,!0),U?O(S.dynamicChildren,U,X,R,z,el(M,B),ee):ae||I(S,M,X,null,R,z,el(M,B),ee,!1),ne>0){if(ne&16)D(X,M,ye,pe,R,z,B);else if(ne&2&&ye.class!==pe.class&&o(X,"class",null,pe.class,B),ne&4&&o(X,"style",ye.style,pe.style,B),ne&8){const Me=M.dynamicProps;for(let $e=0;$e<Me.length;$e++){const Xe=Me[$e],ct=ye[Xe],Zt=pe[Xe];(Zt!==ct||Xe==="value")&&o(X,Xe,ct,Zt,B,S.children,R,z,ie)}}ne&1&&S.children!==M.children&&u(X,M.children)}else!ae&&U==null&&D(X,M,ye,pe,R,z,B);((Se=pe.onVnodeUpdated)||ce)&&Pt(()=>{Se&&cn(Se,R,M,S),ce&&ys(M,S,R,"updated")},z)},O=(S,M,R,z,B,ee,ae)=>{for(let X=0;X<M.length;X++){const ne=S[X],U=M[X],ce=ne.el&&(ne.type===Pe||!Es(ne,U)||ne.shapeFlag&70)?d(ne.el):R;g(ne,U,ce,null,z,B,ee,ae,!0)}},D=(S,M,R,z,B,ee,ae)=>{if(R!==z){if(R!==We)for(const X in R)!Gi(X)&&!(X in z)&&o(S,X,R[X],null,ae,M.children,B,ee,ie);for(const X in z){if(Gi(X))continue;const ne=z[X],U=R[X];ne!==U&&X!=="value"&&o(S,X,U,ne,ae,M.children,B,ee,ie)}"value"in z&&o(S,"value",R.value,z.value,ae)}},T=(S,M,R,z,B,ee,ae,X,ne)=>{const U=M.el=S?S.el:a(""),ce=M.anchor=S?S.anchor:a("");let{patchFlag:ye,dynamicChildren:pe,slotScopeIds:Se}=M;Se&&(X=X?X.concat(Se):Se),S==null?(s(U,R,z),s(ce,R,z),w(M.children||[],R,ce,B,ee,ae,X,ne)):ye>0&&ye&64&&pe&&S.dynamicChildren?(O(S.dynamicChildren,pe,R,B,ee,ae,X),(M.key!=null||B&&M===B.subTree)&&nu(S,M,!0)):I(S,M,R,ce,B,ee,ae,X,ne)},L=(S,M,R,z,B,ee,ae,X,ne)=>{M.slotScopeIds=X,S==null?M.shapeFlag&512?B.ctx.activate(M,R,z,ae,ne):$(M,R,z,B,ee,ae,ne):j(S,M,ne)},$=(S,M,R,z,B,ee,ae)=>{const X=S.component=Tx(S,z,B);if(xa(S)&&(X.ctx.renderer=oe),Ox(X),X.asyncDep){if(B&&B.registerDep(X,K),!S.el){const ne=X.subTree=y(vn);v(null,ne,M,R)}}else K(X,S,M,R,B,ee,ae)},j=(S,M,R)=>{const z=M.component=S.component;if(z0(S,M,R))if(z.asyncDep&&!z.asyncResolved){q(z,M,R);return}else z.next=M,L0(z.update),z.effect.dirty=!0,z.update();else M.el=S.el,z.vnode=M},K=(S,M,R,z,B,ee,ae)=>{const X=()=>{if(S.isMounted){let{next:ce,bu:ye,u:pe,parent:Se,vnode:Me}=S;{const Qs=Bm(S);if(Qs){ce&&(ce.el=Me.el,q(S,ce,ae)),Qs.asyncDep.then(()=>{S.isUnmounted||X()});return}}let $e=ce,Xe;bs(S,!1),ce?(ce.el=Me.el,q(S,ce,ae)):ce=Me,ye&&Ya(ye),(Xe=ce.props&&ce.props.onVnodeBeforeUpdate)&&cn(Xe,Se,ce,Me),bs(S,!0);const ct=Ja(S),Zt=S.subTree;S.subTree=ct,g(Zt,ct,d(Zt.el),F(Zt),S,B,ee),ce.el=ct.el,$e===null&&H0(S,ct.el),pe&&Pt(pe,B),(Xe=ce.props&&ce.props.onVnodeUpdated)&&Pt(()=>cn(Xe,Se,ce,Me),B)}else{let ce;const{el:ye,props:pe}=M,{bm:Se,m:Me,parent:$e}=S,Xe=gr(M);if(bs(S,!1),Se&&Ya(Se),!Xe&&(ce=pe&&pe.onVnodeBeforeMount)&&cn(ce,$e,M),bs(S,!0),ye&&Le){const ct=()=>{S.subTree=Ja(S),Le(ye,S.subTree,S,B,null)};Xe?M.type.__asyncLoader().then(()=>!S.isUnmounted&&ct()):ct()}else{const ct=S.subTree=Ja(S);g(null,ct,R,z,S,B,ee),M.el=ct.el}if(Me&&Pt(Me,B),!Xe&&(ce=pe&&pe.onVnodeMounted)){const ct=M;Pt(()=>cn(ce,$e,ct),B)}(M.shapeFlag&256||$e&&gr($e.vnode)&&$e.vnode.shapeFlag&256)&&S.a&&Pt(S.a,B),S.isMounted=!0,M=R=z=null}},ne=S.effect=new Nc(X,Gt,()=>qc(U),S.scope),U=S.update=()=>{ne.dirty&&ne.run()};U.id=S.uid,bs(S,!0),U()},q=(S,M,R)=>{M.component=S;const z=S.vnode.props;S.vnode=M,S.next=null,hx(S,M.props,z,R),px(S,M.children,R),Ws(),ld(S),Us()},I=(S,M,R,z,B,ee,ae,X,ne=!1)=>{const U=S&&S.children,ce=S?S.shapeFlag:0,ye=M.children,{patchFlag:pe,shapeFlag:Se}=M;if(pe>0){if(pe&128){re(U,ye,R,z,B,ee,ae,X,ne);return}else if(pe&256){V(U,ye,R,z,B,ee,ae,X,ne);return}}Se&8?(ce&16&&ie(U,B,ee),ye!==U&&u(R,ye)):ce&16?Se&16?re(U,ye,R,z,B,ee,ae,X,ne):ie(U,B,ee,!0):(ce&8&&u(R,""),Se&16&&w(ye,R,z,B,ee,ae,X,ne))},V=(S,M,R,z,B,ee,ae,X,ne)=>{S=S||ai,M=M||ai;const U=S.length,ce=M.length,ye=Math.min(U,ce);let pe;for(pe=0;pe<ye;pe++){const Se=M[pe]=ne?Jn(M[pe]):fn(M[pe]);g(S[pe],Se,R,null,B,ee,ae,X,ne)}U>ce?ie(S,B,ee,!0,!1,ye):w(M,R,z,B,ee,ae,X,ne,ye)},re=(S,M,R,z,B,ee,ae,X,ne)=>{let U=0;const ce=M.length;let ye=S.length-1,pe=ce-1;for(;U<=ye&&U<=pe;){const Se=S[U],Me=M[U]=ne?Jn(M[U]):fn(M[U]);if(Es(Se,Me))g(Se,Me,R,null,B,ee,ae,X,ne);else break;U++}for(;U<=ye&&U<=pe;){const Se=S[ye],Me=M[pe]=ne?Jn(M[pe]):fn(M[pe]);if(Es(Se,Me))g(Se,Me,R,null,B,ee,ae,X,ne);else break;ye--,pe--}if(U>ye){if(U<=pe){const Se=pe+1,Me=Se<ce?M[Se].el:z;for(;U<=pe;)g(null,M[U]=ne?Jn(M[U]):fn(M[U]),R,Me,B,ee,ae,X,ne),U++}}else if(U>pe)for(;U<=ye;)Q(S[U],B,ee,!0),U++;else{const Se=U,Me=U,$e=new Map;for(U=Me;U<=pe;U++){const Dt=M[U]=ne?Jn(M[U]):fn(M[U]);Dt.key!=null&&$e.set(Dt.key,U)}let Xe,ct=0;const Zt=pe-Me+1;let Qs=!1,Ju=0;const Mi=new Array(Zt);for(U=0;U<Zt;U++)Mi[U]=0;for(U=Se;U<=ye;U++){const Dt=S[U];if(ct>=Zt){Q(Dt,B,ee,!0);continue}let ln;if(Dt.key!=null)ln=$e.get(Dt.key);else for(Xe=Me;Xe<=pe;Xe++)if(Mi[Xe-Me]===0&&Es(Dt,M[Xe])){ln=Xe;break}ln===void 0?Q(Dt,B,ee,!0):(Mi[ln-Me]=U+1,ln>=Ju?Ju=ln:Qs=!0,g(Dt,M[ln],R,null,B,ee,ae,X,ne),ct++)}const Zu=Qs?xx(Mi):ai;for(Xe=Zu.length-1,U=Zt-1;U>=0;U--){const Dt=Me+U,ln=M[Dt],Qu=Dt+1<ce?M[Dt+1].el:z;Mi[U]===0?g(null,ln,R,Qu,B,ee,ae,X,ne):Qs&&(Xe<0||U!==Zu[Xe]?H(ln,R,Qu,2):Xe--)}}},H=(S,M,R,z,B=null)=>{const{el:ee,type:ae,transition:X,children:ne,shapeFlag:U}=S;if(U&6){H(S.component.subTree,M,R,z);return}if(U&128){S.suspense.move(M,R,z);return}if(U&64){ae.move(S,M,R,oe);return}if(ae===Pe){s(ee,M,R);for(let ye=0;ye<ne.length;ye++)H(ne[ye],M,R,z);s(S.anchor,M,R);return}if(ae===tl){x(S,M,R);return}if(z!==2&&U&1&&X)if(z===0)X.beforeEnter(ee),s(ee,M,R),Pt(()=>X.enter(ee),B);else{const{leave:ye,delayLeave:pe,afterLeave:Se}=X,Me=()=>s(ee,M,R),$e=()=>{ye(ee,()=>{Me(),Se&&Se()})};pe?pe(ee,Me,$e):$e()}else s(ee,M,R)},Q=(S,M,R,z=!1,B=!1)=>{const{type:ee,props:ae,ref:X,children:ne,dynamicChildren:U,shapeFlag:ce,patchFlag:ye,dirs:pe}=S;if(X!=null&&Hl(X,null,R,S,!0),ce&256){M.ctx.deactivate(S);return}const Se=ce&1&&pe,Me=!gr(S);let $e;if(Me&&($e=ae&&ae.onVnodeBeforeUnmount)&&cn($e,M,S),ce&6)he(S.component,R,z);else{if(ce&128){S.suspense.unmount(R,z);return}Se&&ys(S,null,M,"beforeUnmount"),ce&64?S.type.remove(S,M,R,B,oe,z):U&&(ee!==Pe||ye>0&&ye&64)?ie(U,M,R,!1,!0):(ee===Pe&&ye&384||!B&&ce&16)&&ie(ne,M,R),z&&Y(S)}(Me&&($e=ae&&ae.onVnodeUnmounted)||Se)&&Pt(()=>{$e&&cn($e,M,S),Se&&ys(S,null,M,"unmounted")},R)},Y=S=>{const{type:M,el:R,anchor:z,transition:B}=S;if(M===Pe){de(R,z);return}if(M===tl){_(S);return}const ee=()=>{i(R),B&&!B.persisted&&B.afterLeave&&B.afterLeave()};if(S.shapeFlag&1&&B&&!B.persisted){const{leave:ae,delayLeave:X}=B,ne=()=>ae(R,ee);X?X(S.el,ee,ne):ne()}else ee()},de=(S,M)=>{let R;for(;S!==M;)R=f(S),i(S),S=R;i(M)},he=(S,M,R)=>{const{bum:z,scope:B,update:ee,subTree:ae,um:X}=S;z&&Ya(z),B.stop(),ee&&(ee.active=!1,Q(ae,S,M,R)),X&&Pt(X,M),Pt(()=>{S.isUnmounted=!0},M),M&&M.pendingBranch&&!M.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===M.pendingId&&(M.deps--,M.deps===0&&M.resolve())},ie=(S,M,R,z=!1,B=!1,ee=0)=>{for(let ae=ee;ae<S.length;ae++)Q(S[ae],M,R,z,B)},F=S=>S.shapeFlag&6?F(S.component.subTree):S.shapeFlag&128?S.suspense.next():f(S.anchor||S.el);let se=!1;const J=(S,M,R)=>{S==null?M._vnode&&Q(M._vnode,null,null,!0):g(M._vnode||null,S,M,null,null,null,R),se||(se=!0,ld(),pm(),se=!1),M._vnode=S},oe={p:g,um:Q,m:H,r:Y,mt:$,mc:w,pc:I,pbc:O,n:F,o:e};let Ae,Le;return t&&([Ae,Le]=t(oe)),{render:J,hydrate:Ae,createApp:dx(J,Ae)}}function el({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function bs({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function bx(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function nu(e,t,n=!1){const s=e.children,i=t.children;if(xe(s)&&xe(i))for(let o=0;o<s.length;o++){const r=s[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=Jn(i[o]),a.el=r.el),n||nu(r,a)),a.type===Eo&&(a.el=r.el)}}function xx(e){const t=e.slice(),n=[0];let s,i,o,r,a;const l=e.length;for(s=0;s<l;s++){const c=e[s];if(c!==0){if(i=n[n.length-1],e[i]<c){t[s]=i,n.push(s);continue}for(o=0,r=n.length-1;o<r;)a=o+r>>1,e[n[a]]<c?o=a+1:r=a;c<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function Bm(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bm(t)}const _x=e=>e.__isTeleport,Yi=e=>e&&(e.disabled||e.disabled===""),xd=e=>typeof SVGElement<"u"&&e instanceof SVGElement,_d=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,jl=(e,t)=>{const n=e&&e.to;return tt(n)?t?t(n):null:n},Sx={name:"Teleport",__isTeleport:!0,process(e,t,n,s,i,o,r,a,l,c){const{mc:u,pc:d,pbc:f,o:{insert:h,querySelector:m,createText:g,createComment:p}}=c,v=Yi(t.props);let{shapeFlag:b,children:x,dynamicChildren:_}=t;if(e==null){const A=t.el=g(""),P=t.anchor=g("");h(A,n,s),h(P,n,s);const C=t.target=jl(t.props,m),w=t.targetAnchor=g("");C&&(h(w,C),r==="svg"||xd(C)?r="svg":(r==="mathml"||_d(C))&&(r="mathml"));const E=(O,D)=>{b&16&&u(x,O,D,i,o,r,a,l)};v?E(n,P):C&&E(C,w)}else{t.el=e.el;const A=t.anchor=e.anchor,P=t.target=e.target,C=t.targetAnchor=e.targetAnchor,w=Yi(e.props),E=w?n:P,O=w?A:C;if(r==="svg"||xd(P)?r="svg":(r==="mathml"||_d(P))&&(r="mathml"),_?(f(e.dynamicChildren,_,E,i,o,r,a),nu(e,t,!0)):l||d(e,t,E,O,i,o,r,a,!1),v)w?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Go(t,n,A,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=jl(t.props,m);D&&Go(t,D,null,c,0)}else w&&Go(t,P,C,c,1)}Nm(t)},remove(e,t,n,s,{um:i,o:{remove:o}},r){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:d,props:f}=e;if(d&&o(u),r&&o(c),a&16){const h=r||!Yi(f);for(let m=0;m<l.length;m++){const g=l[m];i(g,t,n,h,!!g.dynamicChildren)}}},move:Go,hydrate:wx};function Go(e,t,n,{o:{insert:s},m:i},o=2){o===0&&s(e.targetAnchor,t,n);const{el:r,anchor:a,shapeFlag:l,children:c,props:u}=e,d=o===2;if(d&&s(r,t,n),(!d||Yi(u))&&l&16)for(let f=0;f<c.length;f++)i(c[f],t,n,2);d&&s(a,t,n)}function wx(e,t,n,s,i,o,{o:{nextSibling:r,parentNode:a,querySelector:l}},c){const u=t.target=jl(t.props,l);if(u){const d=u._lpa||u.firstChild;if(t.shapeFlag&16)if(Yi(t.props))t.anchor=c(r(e),t,a(e),n,s,i,o),t.targetAnchor=d;else{t.anchor=r(e);let f=d;for(;f;)if(f=r(f),f&&f.nodeType===8&&f.data==="teleport anchor"){t.targetAnchor=f,u._lpa=t.targetAnchor&&r(t.targetAnchor);break}c(d,t,u,n,s,i,o)}Nm(t)}return t.anchor&&r(t.anchor)}const Cx=Sx;function Nm(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Pe=Symbol.for("v-fgt"),Eo=Symbol.for("v-txt"),vn=Symbol.for("v-cmt"),tl=Symbol.for("v-stc"),Xi=[];let Qt=null;function Ct(e=!1){Xi.push(Qt=e?null:[])}function kx(){Xi.pop(),Qt=Xi[Xi.length-1]||null}let uo=1;function Sd(e){uo+=e}function $m(e){return e.dynamicChildren=uo>0?Qt||ai:null,kx(),uo>0&&Qt&&Qt.push(e),e}function tn(e,t,n,s,i,o){return $m(G(e,t,n,s,i,o,!0))}function wa(e,t,n,s,i){return $m(y(e,t,n,s,i,!0))}function Vr(e){return e?e.__v_isVNode===!0:!1}function Es(e,t){return e.type===t.type&&e.key===t.key}const Ca="__vInternal",zm=({key:e})=>e??null,mr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?tt(e)||nt(e)||we(e)?{i:wt,r:e,k:t,f:!!n}:e:null);function G(e,t=null,n=null,s=0,i=null,o=e===Pe?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zm(t),ref:t&&mr(t),scopeId:bm,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:wt};return a?(su(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=tt(n)?8:16),uo>0&&!r&&Qt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Qt.push(l),l}const y=Px;function Px(e,t=null,n=null,s=0,i=null,o=!1){if((!e||e===xm)&&(e=vn),Vr(e)){const a=Vn(e,t,!0);return n&&su(a,n),uo>0&&!o&&Qt&&(a.shapeFlag&6?Qt[Qt.indexOf(e)]=a:Qt.push(a)),a.patchFlag|=-2,a}if(Fx(e)&&(e=e.__vccOpts),t){t=Ax(t);let{class:a,style:l}=t;a&&!tt(a)&&(t.class=Vc(a)),je(l)&&(am(l)&&!xe(l)&&(l=ot({},l)),t.style=Fc(l))}const r=tt(e)?1:G0(e)?128:_x(e)?64:je(e)?4:we(e)?2:0;return G(e,t,n,s,i,r,o,!0)}function Ax(e){return e?am(e)||Ca in e?ot({},e):e:null}function Vn(e,t,n=!1){const{props:s,ref:i,patchFlag:o,children:r}=e,a=t?be(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&zm(a),ref:t&&t.ref?n&&i?xe(i)?i.concat(mr(t)):[i,mr(t)]:mr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Vn(e.ssContent),ssFallback:e.ssFallback&&Vn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ut(e=" ",t=0){return y(Eo,null,e,t)}function fn(e){return e==null||typeof e=="boolean"?y(vn):xe(e)?y(Pe,null,e.slice()):typeof e=="object"?Jn(e):y(Eo,null,String(e))}function Jn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Vn(e)}function su(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(xe(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),su(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Ca in t)?t._ctx=wt:i===3&&wt&&(wt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else we(t)?(t={default:t,_ctx:wt},n=32):(t=String(t),s&64?(n=16,t=[ut(t)]):n=8);e.children=t,e.shapeFlag|=n}function be(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=Vc([t.class,s.class]));else if(i==="style")t.style=Fc([t.style,s.style]);else if(ga(i)){const o=t[i],r=s[i];r&&o!==r&&!(xe(o)&&o.includes(r))&&(t[i]=o?[].concat(o,r):r)}else i!==""&&(t[i]=s[i])}return t}function cn(e,t,n,s=null){Kt(e,t,7,[n,s])}const Mx=Im();let Ex=0;function Tx(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||Mx,o={uid:Ex++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new qg(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Dm(s,i),emitsOptions:ym(s,i),emit:null,emitted:null,propsDefaults:We,inheritAttrs:s.inheritAttrs,ctx:We,data:We,props:We,attrs:We,slots:We,refs:We,setupState:We,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=B0.bind(null,o),e.ce&&e.ce(o),o}let gt=null;const iu=()=>gt||wt;let Br,Wl;{const e=Ug(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};Br=t("__VUE_INSTANCE_SETTERS__",n=>gt=n),Wl=t("__VUE_SSR_SETTERS__",n=>ka=n)}const To=e=>{const t=gt;return Br(e),e.scope.on(),()=>{e.scope.off(),Br(t)}},wd=()=>{gt&>.scope.off(),Br(null)};function Hm(e){return e.vnode.shapeFlag&4}let ka=!1;function Ox(e,t=!1){t&&Wl(t);const{props:n,children:s}=e.vnode,i=Hm(e);fx(e,n,i,t),mx(e,s);const o=i?Ix(e,t):void 0;return t&&Wl(!1),o}function Ix(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=lm(new Proxy(e.ctx,ix));const{setup:s}=n;if(s){const i=e.setupContext=s.length>1?Dx(e):null,o=To(e);Ws();const r=rs(s,e,0,[e.props,i]);if(Us(),o(),Hg(r)){if(r.then(wd,wd),t)return r.then(a=>{Cd(e,a,t)}).catch(a=>{ya(a,e,0)});e.asyncDep=r}else Cd(e,r,t)}else jm(e,t)}function Cd(e,t,n){we(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:je(t)&&(e.setupState=fm(t)),jm(e,n)}let kd;function jm(e,t,n){const s=e.type;if(!e.render){if(!t&&kd&&!s.render){const i=s.template||eu(e).template;if(i){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,c=ot(ot({isCustomElement:o,delimiters:a},r),l);s.render=kd(i,c)}}e.render=s.render||Gt}{const i=To(e);Ws();try{ox(e)}finally{Us(),i()}}}function Rx(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ot(e,"get","$attrs"),t[n]}}))}function Dx(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Rx(e)},slots:e.slots,emit:e.emit,expose:t}}function Pa(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(fm(lm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ki)return Ki[n](e)},has(t,n){return n in t||n in Ki}}))}function Lx(e,t=!0){return we(e)?e.displayName||e.name:e.name||t&&e.__name}function Fx(e){return we(e)&&"__vccOpts"in e}const k=(e,t)=>M0(e,t,ka);function fs(e,t,n){const s=arguments.length;return s===2?je(t)&&!xe(t)?Vr(t)?y(e,null,[t]):y(e,t):y(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Vr(n)&&(n=[n]),y(e,t,n))}const Vx="3.4.21";/**
|
|
* @vue/runtime-dom v3.4.21
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/const Bx="http://www.w3.org/2000/svg",Nx="http://www.w3.org/1998/Math/MathML",Zn=typeof document<"u"?document:null,Pd=Zn&&Zn.createElement("template"),$x={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?Zn.createElementNS(Bx,e):t==="mathml"?Zn.createElementNS(Nx,e):Zn.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>Zn.createTextNode(e),createComment:e=>Zn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Zn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Pd.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const a=Pd.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Un="transition",Ei="animation",hi=Symbol("_vtc"),Bn=(e,{slots:t})=>fs(Z0,Um(e),t);Bn.displayName="Transition";const Wm={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},zx=Bn.props=ot({},wm,Wm),xs=(e,t=[])=>{xe(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ad=e=>e?xe(e)?e.some(t=>t.length>1):e.length>1:!1;function Um(e){const t={};for(const T in e)T in Wm||(t[T]=e[T]);if(e.css===!1)return t;const{name:n="v",type:s,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=Hx(i),g=m&&m[0],p=m&&m[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:x,onLeave:_,onLeaveCancelled:A,onBeforeAppear:P=v,onAppear:C=b,onAppearCancelled:w=x}=t,E=(T,L,$)=>{qn(T,L?u:a),qn(T,L?c:r),$&&$()},O=(T,L)=>{T._isLeaving=!1,qn(T,d),qn(T,h),qn(T,f),L&&L()},D=T=>(L,$)=>{const j=T?C:b,K=()=>E(L,T,$);xs(j,[L,K]),Md(()=>{qn(L,T?l:o),An(L,T?u:a),Ad(j)||Ed(L,s,g,K)})};return ot(t,{onBeforeEnter(T){xs(v,[T]),An(T,o),An(T,r)},onBeforeAppear(T){xs(P,[T]),An(T,l),An(T,c)},onEnter:D(!1),onAppear:D(!0),onLeave(T,L){T._isLeaving=!0;const $=()=>O(T,L);An(T,d),Km(),An(T,f),Md(()=>{T._isLeaving&&(qn(T,d),An(T,h),Ad(_)||Ed(T,s,p,$))}),xs(_,[T,$])},onEnterCancelled(T){E(T,!1),xs(x,[T])},onAppearCancelled(T){E(T,!0),xs(w,[T])},onLeaveCancelled(T){O(T),xs(A,[T])}})}function Hx(e){if(e==null)return null;if(je(e))return[nl(e.enter),nl(e.leave)];{const t=nl(e);return[t,t]}}function nl(e){return Qb(e)}function An(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[hi]||(e[hi]=new Set)).add(t)}function qn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[hi];n&&(n.delete(t),n.size||(e[hi]=void 0))}function Md(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let jx=0;function Ed(e,t,n,s){const i=e._endId=++jx,o=()=>{i===e._endId&&s()};if(n)return setTimeout(o,n);const{type:r,timeout:a,propCount:l}=Gm(e,t);if(!r)return s();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,f),o()},f=h=>{h.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,f)}function Gm(e,t){const n=window.getComputedStyle(e),s=m=>(n[m]||"").split(", "),i=s(`${Un}Delay`),o=s(`${Un}Duration`),r=Td(i,o),a=s(`${Ei}Delay`),l=s(`${Ei}Duration`),c=Td(a,l);let u=null,d=0,f=0;t===Un?r>0&&(u=Un,d=r,f=o.length):t===Ei?c>0&&(u=Ei,d=c,f=l.length):(d=Math.max(r,c),u=d>0?r>c?Un:Ei:null,f=u?u===Un?o.length:l.length:0);const h=u===Un&&/\b(transform|all)(,|$)/.test(s(`${Un}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:h}}function Td(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Od(n)+Od(e[s])))}function Od(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Km(){return document.body.offsetHeight}function Wx(e,t,n){const s=e[hi];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Nr=Symbol("_vod"),qm=Symbol("_vsh"),wi={beforeMount(e,{value:t},{transition:n}){e[Nr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ti(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Ti(e,!0),s.enter(e)):s.leave(e,()=>{Ti(e,!1)}):Ti(e,t))},beforeUnmount(e,{value:t}){Ti(e,t)}};function Ti(e,t){e.style.display=t?e[Nr]:"none",e[qm]=!t}const Ux=Symbol(""),Gx=/(^|;)\s*display\s*:/;function Kx(e,t,n){const s=e.style,i=tt(n);let o=!1;if(n&&!i){if(t)if(tt(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&pr(s,a,"")}else for(const r in t)n[r]==null&&pr(s,r,"");for(const r in n)r==="display"&&(o=!0),pr(s,r,n[r])}else if(i){if(t!==n){const r=s[Ux];r&&(n+=";"+r),s.cssText=n,o=Gx.test(n)}}else t&&e.removeAttribute("style");Nr in e&&(e[Nr]=o?s.display:"",e[qm]&&(s.display="none"))}const Id=/\s*!important$/;function pr(e,t,n){if(xe(n))n.forEach(s=>pr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=qx(e,t);Id.test(n)?e.setProperty(Si(s),n.replace(Id,""),"important"):e[s]=n}}const Rd=["Webkit","Moz","ms"],sl={};function qx(e,t){const n=sl[t];if(n)return n;let s=Yt(t);if(s!=="filter"&&s in e)return sl[t]=s;s=js(s);for(let i=0;i<Rd.length;i++){const o=Rd[i]+s;if(o in e)return sl[t]=o}return t}const Dd="http://www.w3.org/1999/xlink";function Yx(e,t,n,s,i){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Dd,t.slice(6,t.length)):e.setAttributeNS(Dd,t,n);else{const o=o0(t);n==null||o&&!Gg(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function Xx(e,t,n,s,i,o,r){if(t==="innerHTML"||t==="textContent"){s&&r(s,i,o),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?e.getAttribute("value")||"":e.value,u=n??"";(c!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Gg(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function Jx(e,t,n,s){e.addEventListener(t,n,s)}function Zx(e,t,n,s){e.removeEventListener(t,n,s)}const Ld=Symbol("_vei");function Qx(e,t,n,s,i=null){const o=e[Ld]||(e[Ld]={}),r=o[t];if(s&&r)r.value=s;else{const[a,l]=e_(t);if(s){const c=o[t]=s_(s,i);Jx(e,a,c,l)}else r&&(Zx(e,a,r,l),o[t]=void 0)}}const Fd=/(?:Once|Passive|Capture)$/;function e_(e){let t;if(Fd.test(e)){t={};let s;for(;s=e.match(Fd);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Si(e.slice(2)),t]}let il=0;const t_=Promise.resolve(),n_=()=>il||(t_.then(()=>il=0),il=Date.now());function s_(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Kt(i_(s,n.value),t,5,[s])};return n.value=e,n.attached=n_(),n}function i_(e,t){if(xe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const Vd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,o_=(e,t,n,s,i,o,r,a,l)=>{const c=i==="svg";t==="class"?Wx(e,s,c):t==="style"?Kx(e,n,s):ga(t)?Rc(t)||Qx(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):r_(e,t,s,c))?Xx(e,t,s,o,r,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Yx(e,t,s,c))};function r_(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Vd(t)&&we(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Vd(t)&&tt(n)?!1:t in e}const Ym=new WeakMap,Xm=new WeakMap,$r=Symbol("_moveCb"),Bd=Symbol("_enterCb"),Jm={name:"TransitionGroup",props:ot({},zx,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=iu(),s=Sm();let i,o;return Em(()=>{if(!i.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!f_(i[0].el,n.vnode.el,r))return;i.forEach(c_),i.forEach(u_);const a=i.filter(d_);Km(),a.forEach(l=>{const c=l.el,u=c.style;An(c,r),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[$r]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[$r]=null,qn(c,r))};c.addEventListener("transitionend",d)})}),()=>{const r=ke(e),a=Um(r);let l=r.tag||Pe;i=o,o=t.default?Zc(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&co(u,lo(u,a,s,n))}if(i)for(let c=0;c<i.length;c++){const u=i[c];co(u,lo(u,a,s,n)),Ym.set(u,u.el.getBoundingClientRect())}return y(l,null,o)}}},a_=e=>delete e.mode;Jm.props;const l_=Jm;function c_(e){const t=e.el;t[$r]&&t[$r](),t[Bd]&&t[Bd]()}function u_(e){Xm.set(e,e.el.getBoundingClientRect())}function d_(e){const t=Ym.get(e),n=Xm.get(e),s=t.left-n.left,i=t.top-n.top;if(s||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${s}px,${i}px)`,o.transitionDuration="0s",e}}function f_(e,t,n){const s=e.cloneNode(),i=e[hi];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&s.classList.add(a)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:r}=Gm(s);return o.removeChild(s),r}const h_=["ctrl","shift","alt","meta"],g_={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>h_.some(n=>e[`${n}Key`]&&!t.includes(n))},Nd=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(i,...o)=>{for(let r=0;r<t.length;r++){const a=g_[t[r]];if(a&&a(i,t))return}return e(i,...o)})},m_=ot({patchProp:o_},$x);let $d;function p_(){return $d||($d=vx(m_))}const v_=(...e)=>{const t=p_().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=b_(s);if(!i)return;const o=t._component;!we(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const r=n(i,!1,y_(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t};function y_(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function b_(e){return tt(e)?document.querySelector(e):e}function cs(e,t){let n;function s(){n=Bc(),n.run(()=>t.length?t(()=>{n==null||n.stop(),s()}):t())}ue(e,i=>{i&&!n?s():i||(n==null||n.stop(),n=void 0)},{immediate:!0}),Rt(()=>{n==null||n.stop()})}const Ge=typeof window<"u",ou=Ge&&"IntersectionObserver"in window,x_=Ge&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function Zm(e,t,n){const s=t.length-1;if(s<0)return e===void 0?n:e;for(let i=0;i<s;i++){if(e==null)return n;e=e[t[i]]}return e==null||e[t[s]]===void 0?n:e[t[s]]}function hs(e,t){if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(s=>hs(e[s],t[s]))}function Bs(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),Zm(e,t.split("."),n))}function At(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const i=t(e,n);return typeof i>"u"?n:i}if(typeof t=="string")return Bs(e,t,n);if(Array.isArray(t))return Zm(e,t,n);if(typeof t!="function")return n;const s=t(e,n);return typeof s>"u"?n:s}function oi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,s)=>t+s)}function fe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function Ul(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function zr(e){if(e&&"$el"in e){const t=e.$el;return(t==null?void 0:t.nodeType)===Node.TEXT_NODE?t.nextElementSibling:t}return e}const zd=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),Hd=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function ol(e,t){return t.every(n=>e.hasOwnProperty(n))}function Qm(e,t){const n={},s=new Set(Object.keys(e));for(const i of t)s.has(i)&&(n[i]=e[i]);return n}function jd(e,t,n){const s=Object.create(null),i=Object.create(null);for(const o in e)t.some(r=>r instanceof RegExp?r.test(o):r===o)&&!(n!=null&&n.some(r=>r===o))?s[o]=e[o]:i[o]=e[o];return[s,i]}function Ci(e,t){const n={...e};return t.forEach(s=>delete n[s]),n}const ep=/^on[^a-z]/,Aa=e=>ep.test(e),__=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"];function tp(e){const[t,n]=jd(e,[ep]),s=Ci(t,__),[i,o]=jd(n,["class","style","id",/^data-/]);return Object.assign(i,t),Object.assign(o,s),[i,o]}function Et(e){return e==null?[]:Array.isArray(e)?e:[e]}function S_(e,t){let n=0;const s=function(){for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];clearTimeout(n),n=setTimeout(()=>e(...o),Ze(t))};return s.clear=()=>{clearTimeout(n)},s.immediate=e,s}function nn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function Wd(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function Ud(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function w_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let s=0;for(;s<e.length;)n.push(e.substr(s,t)),s+=t;return n}function Nt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const s={};for(const i in e)s[i]=e[i];for(const i in t){const o=e[i],r=t[i];if(Ul(o)&&Ul(r)){s[i]=Nt(o,r,n);continue}if(Array.isArray(o)&&Array.isArray(r)&&n){s[i]=n(o,r);continue}s[i]=r}return s}function np(e){return e.map(t=>t.type===Pe?np(t.children):t).flat()}function Ds(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Ds.cache.has(e))return Ds.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Ds.cache.set(e,t),t}Ds.cache=new Map;function Ji(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Ji(e,n)).flat(1);if(Array.isArray(t.children))return t.children.map(n=>Ji(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return Ji(e,t.component.subTree).flat(1)}return[]}function ru(e){const t=vt({}),n=k(e);return It(()=>{for(const s in n.value)t[s]=n.value[s]},{flush:"sync"}),Gc(t)}function Hr(e,t){return e.includes(t)}function sp(e){return e[2].toLowerCase()+e.slice(3)}const Tt=()=>[Function,Array];function Gd(e,t){return t="on"+js(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function C_(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];if(Array.isArray(e))for(const i of e)i(...n);else typeof e=="function"&&e(...n)}function jr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(s=>`${s}${t?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(n)]}function ip(e,t,n){let s,i=e.indexOf(document.activeElement);const o=t==="next"?1:-1;do i+=o,s=e[i];while((!s||s.offsetParent==null||!((n==null?void 0:n(s))??!0))&&i<e.length&&i>=0);return s}function Wr(e,t){var s,i,o,r;const n=jr(e);if(!t)(e===document.activeElement||!e.contains(document.activeElement))&&((s=n[0])==null||s.focus());else if(t==="first")(i=n[0])==null||i.focus();else if(t==="last")(o=n.at(-1))==null||o.focus();else if(typeof t=="number")(r=n[t])==null||r.focus();else{const a=ip(n,t);a?a.focus():Wr(e,t==="next"?"first":"last")}}function Ko(e){return e==null||typeof e=="string"&&e.trim()===""}function Ur(e,t){if(!(Ge&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function op(e){return e.some(t=>Vr(t)?t.type===vn?!1:t.type!==Pe||op(t.children):!0)?e:null}function k_(e,t){if(!Ge||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function P_(e,t){const n=e.clientX,s=e.clientY,i=t.getBoundingClientRect(),o=i.left,r=i.top,a=i.right,l=i.bottom;return n>=o&&n<=a&&s>=r&&s<=l}const rp=["top","bottom"],A_=["start","end","left","right"];function Gl(e,t){let[n,s]=e.split(" ");return s||(s=Hr(rp,n)?"start":Hr(A_,n)?"top":"center"),{side:Kd(n,t),align:Kd(s,t)}}function Kd(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function rl(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function al(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function qd(e){return{side:e.align,align:e.side}}function Yd(e){return Hr(rp,e.side)?"y":"x"}class Ls{constructor(t){let{x:n,y:s,width:i,height:o}=t;this.x=n,this.y=s,this.width=i,this.height=o}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Xd(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function ap(e){return Array.isArray(e)?new Ls({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function au(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),s=n.transform;if(s){let i,o,r,a,l;if(s.startsWith("matrix3d("))i=s.slice(9,-1).split(/, /),o=+i[0],r=+i[5],a=+i[12],l=+i[13];else if(s.startsWith("matrix("))i=s.slice(7,-1).split(/, /),o=+i[0],r=+i[3],a=+i[4],l=+i[5];else return new Ls(t);const c=n.transformOrigin,u=t.x-a-(1-o)*parseFloat(c),d=t.y-l-(1-r)*parseFloat(c.slice(c.indexOf(" ")+1)),f=o?t.width/o:e.offsetWidth+1,h=r?t.height/r:e.offsetHeight+1;return new Ls({x:u,y:d,width:f,height:h})}else return new Ls(t)}function ri(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let s;try{s=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof s.finished>"u"&&(s.finished=new Promise(i=>{s.onfinish=()=>{i(s)}})),s}const vr=new WeakMap;function M_(e,t){Object.keys(t).forEach(n=>{if(Aa(n)){const s=sp(n),i=vr.get(e);if(t[n]==null)i==null||i.forEach(o=>{const[r,a]=o;r===s&&(e.removeEventListener(s,a),i.delete(o))});else if(!i||![...i].some(o=>o[0]===s&&o[1]===t[n])){e.addEventListener(s,t[n]);const o=i||new Set;o.add([s,t[n]]),vr.has(e)||vr.set(e,o)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function E_(e,t){Object.keys(t).forEach(n=>{if(Aa(n)){const s=sp(n),i=vr.get(e);i==null||i.forEach(o=>{const[r,a]=o;r===s&&(e.removeEventListener(s,a),i.delete(o))})}else e.removeAttribute(n)})}const ei=2.4,Jd=.2126729,Zd=.7151522,Qd=.072175,T_=.55,O_=.58,I_=.57,R_=.62,qo=.03,ef=1.45,D_=5e-4,L_=1.25,F_=1.25,tf=.078,nf=12.82051282051282,Yo=.06,sf=.001;function of(e,t){const n=(e.r/255)**ei,s=(e.g/255)**ei,i=(e.b/255)**ei,o=(t.r/255)**ei,r=(t.g/255)**ei,a=(t.b/255)**ei;let l=n*Jd+s*Zd+i*Qd,c=o*Jd+r*Zd+a*Qd;if(l<=qo&&(l+=(qo-l)**ef),c<=qo&&(c+=(qo-c)**ef),Math.abs(c-l)<D_)return 0;let u;if(c>l){const d=(c**T_-l**O_)*L_;u=d<sf?0:d<tf?d-d*nf*Yo:d-Yo}else{const d=(c**R_-l**I_)*F_;u=d>-sf?0:d>-tf?d-d*nf*Yo:d+Yo}return u*100}function V_(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const Gr=.20689655172413793,B_=e=>e>Gr**3?Math.cbrt(e):e/(3*Gr**2)+4/29,N_=e=>e>Gr?e**3:3*Gr**2*(e-4/29);function lp(e){const t=B_,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function cp(e){const t=N_,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const $_=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],z_=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,H_=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],j_=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function up(e){const t=Array(3),n=z_,s=$_;for(let i=0;i<3;++i)t[i]=Math.round(nn(n(s[i][0]*e[0]+s[i][1]*e[1]+s[i][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function lu(e){let{r:t,g:n,b:s}=e;const i=[0,0,0],o=j_,r=H_;t=o(t/255),n=o(n/255),s=o(s/255);for(let a=0;a<3;++a)i[a]=r[a][0]*t+r[a][1]*n+r[a][2]*s;return i}function Kl(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function W_(e){return Kl(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const rf=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,U_={rgb:(e,t,n,s)=>({r:e,g:t,b:n,a:s}),rgba:(e,t,n,s)=>({r:e,g:t,b:n,a:s}),hsl:(e,t,n,s)=>af({h:e,s:t,l:n,a:s}),hsla:(e,t,n,s)=>af({h:e,s:t,l:n,a:s}),hsv:(e,t,n,s)=>fo({h:e,s:t,v:n,a:s}),hsva:(e,t,n,s)=>fo({h:e,s:t,v:n,a:s})};function mn(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&rf.test(e)){const{groups:t}=e.match(rf),{fn:n,values:s}=t,i=s.split(/,\s*/).map(o=>o.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(o)/100:parseFloat(o));return U_[n](...i)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),K_(t)}else if(typeof e=="object"){if(ol(e,["r","g","b"]))return e;if(ol(e,["h","s","l"]))return fo(dp(e));if(ol(e,["h","s","v"]))return fo(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}
|
|
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function fo(e){const{h:t,s:n,v:s,a:i}=e,o=a=>{const l=(a+t/60)%6;return s-s*n*Math.max(Math.min(l,4-l,1),0)},r=[o(5),o(3),o(1)].map(a=>Math.round(a*255));return{r:r[0],g:r[1],b:r[2],a:i}}function af(e){return fo(dp(e))}function dp(e){const{h:t,s:n,l:s,a:i}=e,o=s+n*Math.min(s,1-s),r=o===0?0:2-2*s/o;return{h:t,s:r,v:o,a:i}}function Xo(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function G_(e){let{r:t,g:n,b:s,a:i}=e;return`#${[Xo(t),Xo(n),Xo(s),i!==void 0?Xo(Math.round(i*255)):""].join("")}`}function K_(e){e=q_(e);let[t,n,s,i]=w_(e,2).map(o=>parseInt(o,16));return i=i===void 0?i:i/255,{r:t,g:n,b:s,a:i}}function q_(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=Wd(Wd(e,6),8,"F")),e}function Y_(e,t){const n=lp(lu(e));return n[0]=n[0]+t*10,up(cp(n))}function X_(e,t){const n=lp(lu(e));return n[0]=n[0]-t*10,up(cp(n))}function J_(e){const t=mn(e);return lu(t)[1]}function fp(e){const t=Math.abs(of(mn(0),mn(e)));return Math.abs(of(mn(16777215),mn(e)))>Math.min(t,50)?"#fff":"#000"}function W(e,t){return n=>Object.keys(e).reduce((s,i)=>{const r=typeof e[i]=="object"&&e[i]!=null&&!Array.isArray(e[i])?e[i]:{type:e[i]};return n&&i in n?s[i]={...r,default:n[i]}:s[i]=r,t&&!s[i].source&&(s[i].source=t),s},{})}const Oe=W({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component"),gi=Symbol.for("vuetify:defaults");function Z_(e){return Z(e)}function cu(){const e=Te(gi);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function bn(e,t){const n=cu(),s=Z(e),i=k(()=>{if(Ze(t==null?void 0:t.disabled))return n.value;const r=Ze(t==null?void 0:t.scoped),a=Ze(t==null?void 0:t.reset),l=Ze(t==null?void 0:t.root);if(s.value==null&&!(r||a||l))return n.value;let c=Nt(s.value,{prev:n.value});if(r)return c;if(a||l){const u=Number(a||1/0);for(let d=0;d<=u&&!(!c||!("prev"in c));d++)c=c.prev;return c&&typeof l=="string"&&l in c&&(c=Nt(Nt(c,{prev:c}),c[l])),c}return c.prev?Nt(c.prev,c):c});return Je(gi,i),i}function Q_(e,t){var n,s;return typeof((n=e.props)==null?void 0:n[t])<"u"||typeof((s=e.props)==null?void 0:s[Ds(t)])<"u"}function eS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:cu();const s=it("useDefaults");if(t=t??s.type.name??s.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const i=k(()=>{var l;return(l=n.value)==null?void 0:l[e._as??t]}),o=new Proxy(e,{get(l,c){var d,f,h,m;const u=Reflect.get(l,c);return c==="class"||c==="style"?[(d=i.value)==null?void 0:d[c],u].filter(g=>g!=null):typeof c=="string"&&!Q_(s.vnode,c)?((f=i.value)==null?void 0:f[c])??((m=(h=n.value)==null?void 0:h.global)==null?void 0:m[c])??u:u}}),r=ge();It(()=>{if(i.value){const l=Object.entries(i.value).filter(c=>{let[u]=c;return u.startsWith(u[0].toUpperCase())});r.value=l.length?Object.fromEntries(l):void 0}else r.value=void 0});function a(){const l=oS(gi,s);Je(gi,k(()=>r.value?Nt((l==null?void 0:l.value)??{},r.value):l==null?void 0:l.value))}return{props:o,provideSubDefaults:a}}function ki(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=W(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(s){return Qm(s,t)},e.props._as=String,e.setup=function(s,i){const o=cu();if(!o.value)return e._setup(s,i);const{props:r,provideSubDefaults:a}=eS(s,s._as??e.name,o),l=e._setup(r,i);return a(),l}}return e}function me(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?ki:$n)(t)}function tS(e,t){return t.props=e,t}function hp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return me()({name:n??js(Yt(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...Oe()},setup(s,i){let{slots:o}=i;return()=>{var r;return fs(s.tag,{class:[e,s.class],style:s.style},(r=o.default)==null?void 0:r.call(o))}}})}function gp(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const Kr="cubic-bezier(0.4, 0, 0.2, 1)",nS="cubic-bezier(0.0, 0, 0.2, 1)",sS="cubic-bezier(0.4, 0, 1, 1)";function lf(e,t,n){return Object.keys(e).filter(s=>Aa(s)&&s.endsWith(t)).reduce((s,i)=>(s[i.slice(0,-t.length)]=o=>e[i](o,n(o)),s),{})}function it(e,t){const n=iu();if(!n)throw new Error(`[Vuetify] ${e} ${t||"must be called from inside a setup function"}`);return n}function _n(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=it(e).type;return Ds((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}let mp=0,yr=new WeakMap;function rn(){const e=it("getUid");if(yr.has(e))return yr.get(e);{const t=mp++;return yr.set(e,t),t}}rn.reset=()=>{mp=0,yr=new WeakMap};function pp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?iS(e):uu(e))return e;e=e.parentElement}return document.scrollingElement}function qr(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(uu(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function uu(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function iS(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function oS(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:it("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}function rS(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function _e(e){const t=it("useRender");t.render=e}function Ye(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d=>d,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:d=>d;const o=it("useProxiedModel"),r=Z(e[t]!==void 0?e[t]:n),a=Ds(t),c=k(a!==t?()=>{var d,f,h,m;return e[t],!!(((d=o.vnode.props)!=null&&d.hasOwnProperty(t)||(f=o.vnode.props)!=null&&f.hasOwnProperty(a))&&((h=o.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${t}`)||(m=o.vnode.props)!=null&&m.hasOwnProperty(`onUpdate:${a}`)))}:()=>{var d,f;return e[t],!!((d=o.vnode.props)!=null&&d.hasOwnProperty(t)&&((f=o.vnode.props)!=null&&f.hasOwnProperty(`onUpdate:${t}`)))});cs(()=>!c.value,()=>{ue(()=>e[t],d=>{r.value=d})});const u=k({get(){const d=e[t];return s(c.value?d:r.value)},set(d){const f=i(d),h=ke(c.value?e[t]:r.value);h===f||s(h)===d||(r.value=f,o==null||o.emit(`update:${t}`,f))}});return Object.defineProperty(u,"externalValue",{get:()=>c.value?e[t]:r.value}),u}const aS={badge:"Badge",open:"Open",close:"Close",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},cf="$vuetify.",uf=(e,t)=>e.replace(/\{(\d+)\}/g,(n,s)=>String(t[+s])),vp=(e,t,n)=>function(s){for(var i=arguments.length,o=new Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];if(!s.startsWith(cf))return uf(s,o);const a=s.replace(cf,""),l=e.value&&n.value[e.value],c=t.value&&n.value[t.value];let u=Bs(l,a,null);return u||(`${s}${e.value}`,u=Bs(c,a,null)),u||(u=s),typeof u!="string"&&(u=s),uf(u,o)};function yp(e,t){return(n,s)=>new Intl.NumberFormat([e.value,t.value],s).format(n)}function ll(e,t,n){const s=Ye(e,t,e[t]??n.value);return s.value=e[t]??n.value,ue(n,i=>{e[t]==null&&(s.value=n.value)}),s}function bp(e){return t=>{const n=ll(t,"locale",e.current),s=ll(t,"fallback",e.fallback),i=ll(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:s,messages:i,t:vp(n,s,i),n:yp(n,s),provide:bp({current:n,fallback:s,messages:i})}}}function lS(e){const t=ge((e==null?void 0:e.locale)??"en"),n=ge((e==null?void 0:e.fallback)??"en"),s=Z({en:aS,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:s,t:vp(t,n,s),n:yp(t,n),provide:bp({current:t,fallback:n,messages:s})}}const Yr=Symbol.for("vuetify:locale");function cS(e){return e.name!=null}function uS(e){const t=e!=null&&e.adapter&&cS(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:lS(e),n=fS(t,e);return{...t,...n}}function Ks(){const e=Te(Yr);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function dS(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function fS(e,t){const n=Z((t==null?void 0:t.rtl)??dS()),s=k(()=>n.value[e.current.value]??!1);return{isRtl:s,rtl:n,rtlClasses:k(()=>`v-locale--is-${s.value?"rtl":"ltr"}`)}}function Sn(){const e=Te(Yr);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const ql={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function hS(e,t){const n=[];let s=[];const i=xp(e),o=_p(e),r=(i.getDay()-ql[t.slice(-2).toUpperCase()]+7)%7,a=(o.getDay()-ql[t.slice(-2).toUpperCase()]+7)%7;for(let l=0;l<r;l++){const c=new Date(i);c.setDate(c.getDate()-(r-l)),s.push(c)}for(let l=1;l<=o.getDate();l++){const c=new Date(e.getFullYear(),e.getMonth(),l);s.push(c),s.length===7&&(n.push(s),s=[])}for(let l=1;l<7-a;l++){const c=new Date(o);c.setDate(c.getDate()+l),s.push(c)}return s.length>0&&n.push(s),n}function gS(e){const t=new Date(e);for(;t.getDay()!==0;)t.setDate(t.getDate()-1);return t}function mS(e){const t=new Date(e);for(;t.getDay()!==6;)t.setDate(t.getDate()+1);return t}function xp(e){return new Date(e.getFullYear(),e.getMonth(),1)}function _p(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function pS(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const vS=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function Sp(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(vS.test(e))return pS(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const df=new Date(2e3,0,2);function yS(e){const t=ql[e.slice(-2).toUpperCase()];return oi(7).map(n=>{const s=new Date(df);return s.setDate(df.getDate()+t+n),new Intl.DateTimeFormat(e,{weekday:"narrow"}).format(s)})}function bS(e,t,n,s){const i=Sp(e)??new Date,o=s==null?void 0:s[t];if(typeof o=="function")return o(i,t,n);let r={};switch(t){case"fullDateWithWeekday":r={weekday:"long",day:"numeric",month:"long",year:"numeric"};break;case"hours12h":r={hour:"numeric",hour12:!0};break;case"normalDateWithWeekday":r={weekday:"short",day:"numeric",month:"short"};break;case"keyboardDate":r={day:"2-digit",month:"2-digit",year:"numeric"};break;case"monthAndDate":r={month:"long",day:"numeric"};break;case"monthAndYear":r={month:"long",year:"numeric"};break;case"month":r={month:"long"};break;case"monthShort":r={month:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(i.getDate());case"shortDate":r={year:"2-digit",month:"numeric",day:"numeric"};break;case"weekdayShort":r={weekday:"short"};break;case"year":r={year:"numeric"};break;default:r=o??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,r).format(i)}function xS(e,t){const n=e.toJsDate(t),s=n.getFullYear(),i=Ud(String(n.getMonth()+1),2,"0"),o=Ud(String(n.getDate()),2,"0");return`${s}-${i}-${o}`}function _S(e){const[t,n,s]=e.split("-").map(Number);return new Date(t,n-1,s)}function SS(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function wS(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function CS(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function kS(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function PS(e,t){const n=new Date(e);return n.setMonth(n.getMonth()+t),n}function AS(e){return e.getFullYear()}function MS(e){return e.getMonth()}function ES(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function TS(e){return e.getHours()}function OS(e){return e.getMinutes()}function IS(e){return new Date(e.getFullYear(),0,1)}function RS(e){return new Date(e.getFullYear(),11,31)}function DS(e,t){return Yl(e,t[0])&&FS(e,t[1])}function LS(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function Yl(e,t){return e.getTime()>t.getTime()}function FS(e,t){return e.getTime()<t.getTime()}function ff(e,t){return e.getTime()===t.getTime()}function VS(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function BS(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function NS(e,t,n){const s=new Date(e),i=new Date(t);return n==="month"?s.getMonth()-i.getMonth()+(s.getFullYear()-i.getFullYear())*12:Math.floor((s.getTime()-i.getTime())/(1e3*60*60*24))}function $S(e,t){const n=new Date(e);return n.setHours(t),n}function zS(e,t){const n=new Date(e);return n.setMinutes(t),n}function HS(e,t){const n=new Date(e);return n.setMonth(t),n}function jS(e,t){const n=new Date(e);return n.setFullYear(t),n}function WS(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function US(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)}class GS{constructor(t){this.locale=t.locale,this.formats=t.formats}date(t){return Sp(t)}toJsDate(t){return t}toISO(t){return xS(this,t)}parseISO(t){return _S(t)}addMinutes(t,n){return SS(t,n)}addHours(t,n){return wS(t,n)}addDays(t,n){return CS(t,n)}addWeeks(t,n){return kS(t,n)}addMonths(t,n){return PS(t,n)}getWeekArray(t){return hS(t,this.locale)}startOfWeek(t){return gS(t)}endOfWeek(t){return mS(t)}startOfMonth(t){return xp(t)}endOfMonth(t){return _p(t)}format(t,n){return bS(t,n,this.locale,this.formats)}isEqual(t,n){return ff(t,n)}isValid(t){return LS(t)}isWithinRange(t,n){return DS(t,n)}isAfter(t,n){return Yl(t,n)}isBefore(t,n){return!Yl(t,n)&&!ff(t,n)}isSameDay(t,n){return VS(t,n)}isSameMonth(t,n){return BS(t,n)}setMinutes(t,n){return zS(t,n)}setHours(t,n){return $S(t,n)}setMonth(t,n){return HS(t,n)}setYear(t,n){return jS(t,n)}getDiff(t,n,s){return NS(t,n,s)}getWeekdays(){return yS(this.locale)}getYear(t){return AS(t)}getMonth(t){return MS(t)}getNextMonth(t){return ES(t)}getHours(t){return TS(t)}getMinutes(t){return OS(t)}startOfDay(t){return WS(t)}endOfDay(t){return US(t)}startOfYear(t){return IS(t)}endOfYear(t){return RS(t)}}const KS=Symbol.for("vuetify:date-options"),hf=Symbol.for("vuetify:date-adapter");function qS(e,t){const n=Nt({adapter:GS,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn:"sr-SP",sv:"sv-SE",th:"th-TH",tr:"tr-TR",az:"az-AZ",uk:"uk-UA",vi:"vi-VN",zhHans:"zh-CN",zhHant:"zh-TW"}},e);return{options:n,instance:YS(n,t)}}function YS(e,t){const n=vt(typeof e.adapter=="function"?new e.adapter({locale:e.locale[t.current.value]??t.current.value,formats:e.formats}):e.adapter);return ue(t.current,s=>{n.locale=e.locale[s]??s??n.locale}),n}const Xl=Symbol.for("vuetify:display"),gf={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},XS=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gf;return Nt(gf,e)};function mf(e){return Ge&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function pf(e){return Ge&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function vf(e){const t=Ge&&!e?window.navigator.userAgent:"ssr";function n(m){return!!t.match(m)}const s=n(/android/i),i=n(/iphone|ipad|ipod/i),o=n(/cordova/i),r=n(/electron/i),a=n(/chrome/i),l=n(/edge/i),c=n(/firefox/i),u=n(/opera/i),d=n(/win/i),f=n(/mac/i),h=n(/linux/i);return{android:s,ios:i,cordova:o,electron:r,chrome:a,edge:l,firefox:c,opera:u,win:d,mac:f,linux:h,touch:x_,ssr:t==="ssr"}}function JS(e,t){const{thresholds:n,mobileBreakpoint:s}=XS(e),i=ge(pf(t)),o=ge(vf(t)),r=vt({}),a=ge(mf(t));function l(){i.value=pf(),a.value=mf()}function c(){l(),o.value=vf()}return It(()=>{const u=a.value<n.sm,d=a.value<n.md&&!u,f=a.value<n.lg&&!(d||u),h=a.value<n.xl&&!(f||d||u),m=a.value<n.xxl&&!(h||f||d||u),g=a.value>=n.xxl,p=u?"xs":d?"sm":f?"md":h?"lg":m?"xl":"xxl",v=typeof s=="number"?s:n[s],b=a.value<v;r.xs=u,r.sm=d,r.md=f,r.lg=h,r.xl=m,r.xxl=g,r.smAndUp=!u,r.mdAndUp=!(u||d),r.lgAndUp=!(u||d||f),r.xlAndUp=!(u||d||f||h),r.smAndDown=!(f||h||m||g),r.mdAndDown=!(h||m||g),r.lgAndDown=!(m||g),r.xlAndDown=!g,r.name=p,r.height=i.value,r.width=a.value,r.mobile=b,r.mobileBreakpoint=s,r.platform=o.value,r.thresholds=n}),Ge&&window.addEventListener("resize",l,{passive:!0}),{...Gc(r),update:c,ssr:!!t}}const ZS=W({mobileBreakpoint:[Number,String]},"display");function Ma(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_n();const n=Te(Xl);if(!n)throw new Error("Could not find Vuetify display injection");const s=k(()=>{if(!e.mobileBreakpoint)return n.mobile.value;const o=typeof e.mobileBreakpoint=="number"?e.mobileBreakpoint:n.thresholds.value[e.mobileBreakpoint];return n.width.value<o}),i=k(()=>t?{[`${t}--mobile`]:s.value}:{});return{...n,displayClasses:i,mobile:s}}const QS=Symbol.for("vuetify:goto");function ew(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5}}}function tw(e,t){return{rtl:t.isRtl,options:Nt(ew(),e)}}const nw={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",eyeDropper:"mdi-eyedropper"},sw={component:e=>fs(Cp,{...e,class:"mdi"})},Fe=[String,Function,Object,Array],Jl=Symbol.for("vuetify:icons"),Ea=W({icon:{type:Fe},tag:{type:String,required:!0}},"icon"),yf=me()({name:"VComponentIcon",props:Ea(),setup(e,t){let{slots:n}=t;return()=>{const s=e.icon;return y(e.tag,null,{default:()=>{var i;return[e.icon?y(s,null,null):(i=n.default)==null?void 0:i.call(n)]}})}}}),wp=ki({name:"VSvgIcon",inheritAttrs:!1,props:Ea(),setup(e,t){let{attrs:n}=t;return()=>y(e.tag,be(n,{style:null}),{default:()=>[y("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(s=>Array.isArray(s)?y("path",{d:s[0],"fill-opacity":s[1]},null):y("path",{d:s},null)):y("path",{d:e.icon},null)])]})}});ki({name:"VLigatureIcon",props:Ea(),setup(e){return()=>y(e.tag,null,{default:()=>[e.icon]})}});const Cp=ki({name:"VClassIcon",props:Ea(),setup(e){return()=>y(e.tag,{class:e.icon},null)}});function iw(){return{svg:{component:wp},class:{component:Cp}}}function ow(e){const t=iw(),n=(e==null?void 0:e.defaultSet)??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=sw),Nt({defaultSet:n,sets:t,aliases:{...nw,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z"}},e)}const rw=e=>{const t=Te(Jl);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:k(()=>{var l;const s=Ze(e);if(!s)return{component:yf};let i=s;if(typeof i=="string"&&(i=i.trim(),i.startsWith("$")&&(i=(l=t.aliases)==null?void 0:l[i.slice(1)])),!i)throw new Error(`Could not find aliased icon "${s}"`);if(Array.isArray(i))return{component:wp,icon:i};if(typeof i!="string")return{component:yf,icon:i};const o=Object.keys(t.sets).find(c=>typeof i=="string"&&i.startsWith(`${c}:`)),r=o?i.slice(o.length+1):i;return{component:t.sets[o??t.defaultSet].component,icon:r}})}},Xr=Symbol.for("vuetify:theme"),rt=W({theme:String},"theme");function bf(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function aw(){var s,i;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bf();const t=bf();if(!e)return{...t,isDisabled:!0};const n={};for(const[o,r]of Object.entries(e.themes??{})){const a=r.dark||o==="dark"?(s=t.themes)==null?void 0:s.dark:(i=t.themes)==null?void 0:i.light;n[o]=Nt(a,r)}return Nt(t,{...e,themes:n})}function lw(e){const t=aw(e),n=Z(t.defaultTheme),s=Z(t.themes),i=k(()=>{const u={};for(const[d,f]of Object.entries(s.value)){const h=u[d]={...f,colors:{...f.colors}};if(t.variations)for(const m of t.variations.colors){const g=h.colors[m];if(g)for(const p of["lighten","darken"]){const v=p==="lighten"?Y_:X_;for(const b of oi(t.variations[p],1))h.colors[`${m}-${p}-${b}`]=G_(v(mn(g),b))}}for(const m of Object.keys(h.colors)){if(/^on-[a-z]/.test(m)||h.colors[`on-${m}`])continue;const g=`on-${m}`,p=mn(h.colors[m]);h.colors[g]=fp(p)}}return u}),o=k(()=>i.value[n.value]),r=k(()=>{const u=[];o.value.dark&&_s(u,":root",["color-scheme: dark"]),_s(u,":root",xf(o.value));for(const[m,g]of Object.entries(i.value))_s(u,`.v-theme--${m}`,[`color-scheme: ${g.dark?"dark":"normal"}`,...xf(g)]);const d=[],f=[],h=new Set(Object.values(i.value).flatMap(m=>Object.keys(m.colors)));for(const m of h)/^on-[a-z]/.test(m)?_s(f,`.${m}`,[`color: rgb(var(--v-theme-${m})) !important`]):(_s(d,`.bg-${m}`,[`--v-theme-overlay-multiplier: var(--v-theme-${m}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${m})) !important`,`color: rgb(var(--v-theme-on-${m})) !important`]),_s(f,`.text-${m}`,[`color: rgb(var(--v-theme-${m})) !important`]),_s(f,`.border-${m}`,[`--v-border-color: var(--v-theme-${m})`]));return u.push(...d,...f),u.map((m,g)=>g===0?m:` ${m}`).join("")});function a(){return{style:[{children:r.value,id:"vuetify-theme-stylesheet",nonce:t.cspNonce||!1}]}}function l(u){if(t.isDisabled)return;const d=u._context.provides.usehead;if(d)if(d.push){const h=d.push(a);Ge&&ue(r,()=>{h.patch(a)})}else Ge?(d.addHeadObjs(k(a)),It(()=>d.updateDOM())):d.addHeadObjs(a());else{let m=function(){if(typeof document<"u"&&!h){const g=document.createElement("style");g.type="text/css",g.id="vuetify-theme-stylesheet",t.cspNonce&&g.setAttribute("nonce",t.cspNonce),h=g,document.head.appendChild(h)}h&&(h.innerHTML=r.value)};var f=m;let h=Ge?document.getElementById("vuetify-theme-stylesheet"):null;Ge?ue(r,m,{immediate:!0}):m()}}const c=k(()=>t.isDisabled?void 0:`v-theme--${n.value}`);return{install:l,isDisabled:t.isDisabled,name:n,themes:s,current:o,computedThemes:i,themeClasses:c,styles:r,global:{name:n,current:o}}}function ht(e){it("provideTheme");const t=Te(Xr,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=k(()=>e.theme??t.name.value),s=k(()=>t.themes.value[n.value]),i=k(()=>t.isDisabled?void 0:`v-theme--${n.value}`),o={...t,name:n,current:s,themeClasses:i};return Je(Xr,o),o}function _s(e,t,n){e.push(`${t} {
|
|
`,...n.map(s=>` ${s};
|
|
`),`}
|
|
`)}function xf(e){const t=e.dark?2:1,n=e.dark?1:2,s=[];for(const[i,o]of Object.entries(e.colors)){const r=mn(o);s.push(`--v-theme-${i}: ${r.r},${r.g},${r.b}`),i.startsWith("on-")||s.push(`--v-theme-${i}-overlay-multiplier: ${J_(o)>.18?t:n}`)}for(const[i,o]of Object.entries(e.variables)){const r=typeof o=="string"&&o.startsWith("#")?mn(o):void 0,a=r?`${r.r}, ${r.g}, ${r.b}`:void 0;s.push(`--v-${i}: ${a??o}`)}return s}function Ns(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=Z(),s=Z();if(Ge){const i=new ResizeObserver(o=>{e==null||e(o,i),o.length&&(t==="content"?s.value=o[0].contentRect:s.value=o[0].target.getBoundingClientRect())});zt(()=>{i.disconnect()}),ue(n,(o,r)=>{r&&(i.unobserve(zr(r)),s.value=void 0),o&&i.observe(zr(o))},{flush:"post"})}return{resizeRef:n,contentRect:Mo(s)}}const Jr=Symbol.for("vuetify:layout"),kp=Symbol.for("vuetify:layout-item"),_f=1e3,cw=W({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),uw=W({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function dw(){const e=Te(Jr);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function fw(e){const t=Te(Jr);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${rn()}`,s=it("useLayoutItem");Je(kp,{id:n});const i=ge(!1);Pm(()=>i.value=!0),km(()=>i.value=!1);const{layoutItemStyles:o,layoutItemScrimStyles:r}=t.register(s,{...e,active:k(()=>i.value?!1:e.active.value),id:n});return zt(()=>t.unregister(n)),{layoutItemStyles:o,layoutRect:t.layoutRect,layoutItemScrimStyles:r}}const hw=(e,t,n,s)=>{let i={top:0,left:0,right:0,bottom:0};const o=[{id:"",layer:{...i}}];for(const r of e){const a=t.get(r),l=n.get(r),c=s.get(r);if(!a||!l||!c)continue;const u={...i,[a.value]:parseInt(i[a.value],10)+(c.value?parseInt(l.value,10):0)};o.push({id:r,layer:u}),i=u}return o};function gw(e){const t=Te(Jr,null),n=k(()=>t?t.rootZIndex.value-100:_f),s=Z([]),i=vt(new Map),o=vt(new Map),r=vt(new Map),a=vt(new Map),l=vt(new Map),{resizeRef:c,contentRect:u}=Ns(),d=k(()=>{const P=new Map,C=e.overlaps??[];for(const w of C.filter(E=>E.includes(":"))){const[E,O]=w.split(":");if(!s.value.includes(E)||!s.value.includes(O))continue;const D=i.get(E),T=i.get(O),L=o.get(E),$=o.get(O);!D||!T||!L||!$||(P.set(O,{position:D.value,amount:parseInt(L.value,10)}),P.set(E,{position:T.value,amount:-parseInt($.value,10)}))}return P}),f=k(()=>{const P=[...new Set([...r.values()].map(w=>w.value))].sort((w,E)=>w-E),C=[];for(const w of P){const E=s.value.filter(O=>{var D;return((D=r.get(O))==null?void 0:D.value)===w});C.push(...E)}return hw(C,i,o,a)}),h=k(()=>!Array.from(l.values()).some(P=>P.value)),m=k(()=>f.value[f.value.length-1].layer),g=k(()=>({"--v-layout-left":fe(m.value.left),"--v-layout-right":fe(m.value.right),"--v-layout-top":fe(m.value.top),"--v-layout-bottom":fe(m.value.bottom),...h.value?void 0:{transition:"none"}})),p=k(()=>f.value.slice(1).map((P,C)=>{let{id:w}=P;const{layer:E}=f.value[C],O=o.get(w),D=i.get(w);return{id:w,...E,size:Number(O.value),position:D.value}})),v=P=>p.value.find(C=>C.id===P),b=it("createLayout"),x=ge(!1);$t(()=>{x.value=!0}),Je(Jr,{register:(P,C)=>{let{id:w,order:E,position:O,layoutSize:D,elementSize:T,active:L,disableTransitions:$,absolute:j}=C;r.set(w,E),i.set(w,O),o.set(w,D),a.set(w,L),$&&l.set(w,$);const q=Ji(kp,b==null?void 0:b.vnode).indexOf(P);q>-1?s.value.splice(q,0,w):s.value.push(w);const I=k(()=>p.value.findIndex(Q=>Q.id===w)),V=k(()=>n.value+f.value.length*2-I.value*2),re=k(()=>{const Q=O.value==="left"||O.value==="right",Y=O.value==="right",de=O.value==="bottom",he={[O.value]:0,zIndex:V.value,transform:`translate${Q?"X":"Y"}(${(L.value?0:-110)*(Y||de?-1:1)}%)`,position:j.value||n.value!==_f?"absolute":"fixed",...h.value?void 0:{transition:"none"}};if(!x.value)return he;const ie=p.value[I.value];if(!ie)throw new Error(`[Vuetify] Could not find layout item "${w}"`);const F=d.value.get(w);return F&&(ie[F.position]+=F.amount),{...he,height:Q?`calc(100% - ${ie.top}px - ${ie.bottom}px)`:T.value?`${T.value}px`:void 0,left:Y?void 0:`${ie.left}px`,right:Y?`${ie.right}px`:void 0,top:O.value!=="bottom"?`${ie.top}px`:void 0,bottom:O.value!=="top"?`${ie.bottom}px`:void 0,width:Q?T.value?`${T.value}px`:void 0:`calc(100% - ${ie.left}px - ${ie.right}px)`}}),H=k(()=>({zIndex:V.value-1}));return{layoutItemStyles:re,layoutItemScrimStyles:H,zIndex:V}},unregister:P=>{r.delete(P),i.delete(P),o.delete(P),a.delete(P),l.delete(P),s.value=s.value.filter(C=>C!==P)},mainRect:m,mainStyles:g,getLayoutItem:v,items:p,layoutRect:u,rootZIndex:n});const _=k(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),A=k(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:_,layoutStyles:A,getLayoutItem:v,items:p,layoutRect:u,layoutRef:c}}function Pp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,s=Nt(t,n),{aliases:i={},components:o={},directives:r={}}=s,a=Z_(s.defaults),l=JS(s.display,s.ssr),c=lw(s.theme),u=ow(s.icons),d=uS(s.locale),f=qS(s.date,d),h=tw(s.goTo,d);return{install:g=>{for(const p in r)g.directive(p,r[p]);for(const p in o)g.component(p,o[p]);for(const p in i)g.component(p,ki({...i[p],name:p,aliasName:i[p].name}));if(c.install(g),g.provide(gi,a),g.provide(Xl,l),g.provide(Xr,c),g.provide(Jl,u),g.provide(Yr,d),g.provide(KS,f.options),g.provide(hf,f.instance),g.provide(QS,h),Ge&&s.ssr)if(g.$nuxt)g.$nuxt.hook("app:suspense:resolve",()=>{l.update()});else{const{mount:p}=g;g.mount=function(){const v=p(...arguments);return ft(()=>l.update()),g.mount=p,v}}rn.reset(),g.mixin({computed:{$vuetify(){return vt({defaults:ti.call(this,gi),display:ti.call(this,Xl),theme:ti.call(this,Xr),icons:ti.call(this,Jl),locale:ti.call(this,Yr),date:ti.call(this,hf)})}}})},defaults:a,display:l,theme:c,icons:u,locale:d,date:f,goTo:h}}const mw="3.5.6";Pp.version=mw;function ti(e){var s,i;const t=this.$,n=((s=t.parent)==null?void 0:s.provides)??((i=t.vnode.appContext)==null?void 0:i.provides);if(n&&e in n)return n[e]}const pw=Pp({theme:{defaultTheme:"dark"}});/*!
|
|
* vue-router v4.3.0
|
|
* (c) 2024 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const ii=typeof document<"u";function vw(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Be=Object.assign;function cl(e,t){const n={};for(const s in t){const i=t[s];n[s]=on(i)?i.map(e):e(i)}return n}const Zi=()=>{},on=Array.isArray,Ap=/#/g,yw=/&/g,bw=/\//g,xw=/=/g,_w=/\?/g,Mp=/\+/g,Sw=/%5B/g,ww=/%5D/g,Ep=/%5E/g,Cw=/%60/g,Tp=/%7B/g,kw=/%7C/g,Op=/%7D/g,Pw=/%20/g;function du(e){return encodeURI(""+e).replace(kw,"|").replace(Sw,"[").replace(ww,"]")}function Aw(e){return du(e).replace(Tp,"{").replace(Op,"}").replace(Ep,"^")}function Zl(e){return du(e).replace(Mp,"%2B").replace(Pw,"+").replace(Ap,"%23").replace(yw,"%26").replace(Cw,"`").replace(Tp,"{").replace(Op,"}").replace(Ep,"^")}function Mw(e){return Zl(e).replace(xw,"%3D")}function Ew(e){return du(e).replace(Ap,"%23").replace(_w,"%3F")}function Tw(e){return e==null?"":Ew(e).replace(bw,"%2F")}function ho(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Ow=/\/$/,Iw=e=>e.replace(Ow,"");function ul(e,t,n="/"){let s,i={},o="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),i=e(o)),a>-1&&(s=s||t.slice(0,a),r=t.slice(a,t.length)),s=Fw(s??t,n),{fullPath:s+(o&&"?")+o+r,path:s,query:i,hash:ho(r)}}function Rw(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Sf(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Dw(e,t,n){const s=t.matched.length-1,i=n.matched.length-1;return s>-1&&s===i&&mi(t.matched[s],n.matched[i])&&Ip(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function mi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ip(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Lw(e[n],t[n]))return!1;return!0}function Lw(e,t){return on(e)?wf(e,t):on(t)?wf(t,e):e===t}function wf(e,t){return on(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Fw(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),i=s[s.length-1];(i===".."||i===".")&&s.push("");let o=n.length-1,r,a;for(r=0;r<s.length;r++)if(a=s[r],a!==".")if(a==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r).join("/")}var go;(function(e){e.pop="pop",e.push="push"})(go||(go={}));var Qi;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Qi||(Qi={}));function Vw(e){if(!e)if(ii){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Iw(e)}const Bw=/^[^#]+#/;function Nw(e,t){return e.replace(Bw,"#")+t}function $w(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Ta=()=>({left:window.scrollX,top:window.scrollY});function zw(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=$w(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Cf(e,t){return(history.state?history.state.position-t:-1)+e}const Ql=new Map;function Hw(e,t){Ql.set(e,t)}function jw(e){const t=Ql.get(e);return Ql.delete(e),t}let Ww=()=>location.protocol+"//"+location.host;function Rp(e,t){const{pathname:n,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){let a=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),Sf(l,"")}return Sf(n,e)+s+i}function Uw(e,t,n,s){let i=[],o=[],r=null;const a=({state:f})=>{const h=Rp(e,location),m=n.value,g=t.value;let p=0;if(f){if(n.value=h,t.value=f,r&&r===m){r=null;return}p=g?f.position-g.position:0}else s(h);i.forEach(v=>{v(n.value,m,{delta:p,type:go.pop,direction:p?p>0?Qi.forward:Qi.back:Qi.unknown})})};function l(){r=n.value}function c(f){i.push(f);const h=()=>{const m=i.indexOf(f);m>-1&&i.splice(m,1)};return o.push(h),h}function u(){const{history:f}=window;f.state&&f.replaceState(Be({},f.state,{scroll:Ta()}),"")}function d(){for(const f of o)f();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function kf(e,t,n,s=!1,i=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:i?Ta():null}}function Gw(e){const{history:t,location:n}=window,s={value:Rp(e,n)},i={value:t.state};i.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Ww()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),i.value=c}catch(h){console.error(h),n[u?"replace":"assign"](f)}}function r(l,c){const u=Be({},t.state,kf(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});o(l,u,!0),s.value=l}function a(l,c){const u=Be({},i.value,t.state,{forward:l,scroll:Ta()});o(u.current,u,!0);const d=Be({},kf(s.value,l,null),{position:u.position+1},c);o(l,d,!1),s.value=l}return{location:s,state:i,push:a,replace:r}}function Kw(e){e=Vw(e);const t=Gw(e),n=Uw(e,t.state,t.location,t.replace);function s(o,r=!0){r||n.pauseListeners(),history.go(o)}const i=Be({location:"",base:e,go:s,createHref:Nw.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function qw(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Kw(e)}function Yw(e){return typeof e=="string"||e&&typeof e=="object"}function Dp(e){return typeof e=="string"||typeof e=="symbol"}const Gn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Lp=Symbol("");var Pf;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Pf||(Pf={}));function pi(e,t){return Be(new Error,{type:e,[Lp]:!0},t)}function kn(e,t){return e instanceof Error&&Lp in e&&(t==null||!!(e.type&t))}const Af="[^/]+?",Xw={sensitive:!1,strict:!1,start:!0,end:!0},Jw=/[.+*?^${}()[\]/\\]/g;function Zw(e,t){const n=Be({},Xw,t),s=[];let i=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let d=0;d<c.length;d++){const f=c[d];let h=40+(n.sensitive?.25:0);if(f.type===0)d||(i+="/"),i+=f.value.replace(Jw,"\\$&"),h+=40;else if(f.type===1){const{value:m,repeatable:g,optional:p,regexp:v}=f;o.push({name:m,repeatable:g,optional:p});const b=v||Af;if(b!==Af){h+=10;try{new RegExp(`(${b})`)}catch(_){throw new Error(`Invalid custom RegExp for param "${m}" (${b}): `+_.message)}}let x=g?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;d||(x=p&&c.length<2?`(?:/${x})`:"/"+x),p&&(x+="?"),i+=x,h+=20,p&&(h+=-8),g&&(h+=-20),b===".*"&&(h+=-50)}u.push(h)}s.push(u)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const r=new RegExp(i,n.sensitive?"":"i");function a(c){const u=c.match(r),d={};if(!u)return null;for(let f=1;f<u.length;f++){const h=u[f]||"",m=o[f-1];d[m.name]=h&&m.repeatable?h.split("/"):h}return d}function l(c){let u="",d=!1;for(const f of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const h of f)if(h.type===0)u+=h.value;else if(h.type===1){const{value:m,repeatable:g,optional:p}=h,v=m in c?c[m]:"";if(on(v)&&!g)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const b=on(v)?v.join("/"):v;if(!b)if(p)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${m}"`);u+=b}}return u||"/"}return{re:r,score:s,keys:o,parse:a,stringify:l}}function Qw(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function e1(e,t){let n=0;const s=e.score,i=t.score;for(;n<s.length&&n<i.length;){const o=Qw(s[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-s.length)===1){if(Mf(s))return 1;if(Mf(i))return-1}return i.length-s.length}function Mf(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const t1={type:0,value:""},n1=/[a-zA-Z0-9_]/;function s1(e){if(!e)return[[]];if(e==="/")return[[t1]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,s=n;const i=[];let o;function r(){o&&i.push(o),o=[]}let a=0,l,c="",u="";function d(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:l==="/"?(c&&d(),r()):l===":"?(d(),n=1):f();break;case 4:f(),n=s;break;case 1:l==="("?n=2:n1.test(l)?f():(d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),d(),r(),i}function i1(e,t,n){const s=Zw(s1(e.path),n),i=Be(s,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function o1(e,t){const n=[],s=new Map;t=Of({strict:!1,end:!0,sensitive:!1},t);function i(u){return s.get(u)}function o(u,d,f){const h=!f,m=r1(u);m.aliasOf=f&&f.record;const g=Of(t,u),p=[m];if("alias"in u){const x=typeof u.alias=="string"?[u.alias]:u.alias;for(const _ of x)p.push(Be({},m,{components:f?f.record.components:m.components,path:_,aliasOf:f?f.record:m}))}let v,b;for(const x of p){const{path:_}=x;if(d&&_[0]!=="/"){const A=d.record.path,P=A[A.length-1]==="/"?"":"/";x.path=d.record.path+(_&&P+_)}if(v=i1(x,d,g),f?f.alias.push(v):(b=b||v,b!==v&&b.alias.push(v),h&&u.name&&!Tf(v)&&r(u.name)),m.children){const A=m.children;for(let P=0;P<A.length;P++)o(A[P],v,f&&f.children[P])}f=f||v,(v.record.components&&Object.keys(v.record.components).length||v.record.name||v.record.redirect)&&l(v)}return b?()=>{r(b)}:Zi}function r(u){if(Dp(u)){const d=s.get(u);d&&(s.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(r),d.alias.forEach(r))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&s.delete(u.record.name),u.children.forEach(r),u.alias.forEach(r))}}function a(){return n}function l(u){let d=0;for(;d<n.length&&e1(u,n[d])>=0&&(u.record.path!==n[d].record.path||!Fp(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!Tf(u)&&s.set(u.record.name,u)}function c(u,d){let f,h={},m,g;if("name"in u&&u.name){if(f=s.get(u.name),!f)throw pi(1,{location:u});g=f.record.name,h=Be(Ef(d.params,f.keys.filter(b=>!b.optional).concat(f.parent?f.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),u.params&&Ef(u.params,f.keys.map(b=>b.name))),m=f.stringify(h)}else if(u.path!=null)m=u.path,f=n.find(b=>b.re.test(m)),f&&(h=f.parse(m),g=f.record.name);else{if(f=d.name?s.get(d.name):n.find(b=>b.re.test(d.path)),!f)throw pi(1,{location:u,currentLocation:d});g=f.record.name,h=Be({},d.params,u.params),m=f.stringify(h)}const p=[];let v=f;for(;v;)p.unshift(v.record),v=v.parent;return{name:g,path:m,params:h,matched:p,meta:l1(p)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:c,removeRoute:r,getRoutes:a,getRecordMatcher:i}}function Ef(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function r1(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:a1(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function a1(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Tf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function l1(e){return e.reduce((t,n)=>Be(t,n.meta),{})}function Of(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Fp(e,t){return t.children.some(n=>n===e||Fp(e,n))}function c1(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<s.length;++i){const o=s[i].replace(Mp," "),r=o.indexOf("="),a=ho(r<0?o:o.slice(0,r)),l=r<0?null:ho(o.slice(r+1));if(a in t){let c=t[a];on(c)||(c=t[a]=[c]),c.push(l)}else t[a]=l}return t}function If(e){let t="";for(let n in e){const s=e[n];if(n=Mw(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(on(s)?s.map(o=>o&&Zl(o)):[s&&Zl(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function u1(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=on(s)?s.map(i=>i==null?null:""+i):s==null?s:""+s)}return t}const d1=Symbol(""),Rf=Symbol(""),Oa=Symbol(""),fu=Symbol(""),ec=Symbol("");function Oi(){let e=[];function t(s){return e.push(s),()=>{const i=e.indexOf(s);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Qn(e,t,n,s,i,o=r=>r()){const r=s&&(s.enterCallbacks[i]=s.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const c=f=>{f===!1?l(pi(4,{from:n,to:t})):f instanceof Error?l(f):Yw(f)?l(pi(2,{from:t,to:f})):(r&&s.enterCallbacks[i]===r&&typeof f=="function"&&r.push(f),a())},u=o(()=>e.call(s&&s.instances[i],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function dl(e,t,n,s,i=o=>o()){const o=[];for(const r of e)for(const a in r.components){let l=r.components[a];if(!(t!=="beforeRouteEnter"&&!r.instances[a]))if(f1(l)){const u=(l.__vccOpts||l)[t];u&&o.push(Qn(u,n,s,r,a,i))}else{let c=l();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${r.path}"`));const d=vw(u)?u.default:u;r.components[a]=d;const h=(d.__vccOpts||d)[t];return h&&Qn(h,n,s,r,a,i)()}))}}return o}function f1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Df(e){const t=Te(Oa),n=Te(fu),s=k(()=>t.resolve(Ze(e.to))),i=k(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(mi.bind(null,u));if(f>-1)return f;const h=Lf(l[c-2]);return c>1&&Lf(u)===h&&d[d.length-1].path!==h?d.findIndex(mi.bind(null,l[c-2])):f}),o=k(()=>i.value>-1&&p1(n.params,s.value.params)),r=k(()=>i.value>-1&&i.value===n.matched.length-1&&Ip(n.params,s.value.params));function a(l={}){return m1(l)?t[Ze(e.replace)?"replace":"push"](Ze(e.to)).catch(Zi):Promise.resolve()}return{route:s,href:k(()=>s.value.href),isActive:o,isExactActive:r,navigate:a}}const h1=$n({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:Df,setup(e,{slots:t}){const n=vt(Df(e)),{options:s}=Te(Oa),i=k(()=>({[Ff(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ff(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:fs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),g1=h1;function m1(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function p1(e,t){for(const n in t){const s=t[n],i=e[n];if(typeof s=="string"){if(s!==i)return!1}else if(!on(i)||i.length!==s.length||s.some((o,r)=>o!==i[r]))return!1}return!0}function Lf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ff=(e,t,n)=>e??t??n,v1=$n({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Te(ec),i=k(()=>e.route||s.value),o=Te(Rf,0),r=k(()=>{let c=Ze(o);const{matched:u}=i.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=k(()=>i.value.matched[r.value]);Je(Rf,k(()=>r.value+1)),Je(d1,a),Je(ec,i);const l=Z();return ue(()=>[l.value,a.value,e.name],([c,u,d],[f,h,m])=>{u&&(u.instances[d]=c,h&&h!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!mi(u,h)||!f)&&(u.enterCallbacks[d]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=i.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return Vf(n.default,{Component:f,route:c});const h=d.props[u],m=h?h===!0?c.params:typeof h=="function"?h(c):h:null,p=fs(f,Be({},m,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Vf(n.default,{Component:p,route:c})||p}}});function Vf(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const y1=v1;function b1(e){const t=o1(e.routes,e),n=e.parseQuery||c1,s=e.stringifyQuery||If,i=e.history,o=Oi(),r=Oi(),a=Oi(),l=ge(Gn);let c=Gn;ii&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=cl.bind(null,F=>""+F),d=cl.bind(null,Tw),f=cl.bind(null,ho);function h(F,se){let J,oe;return Dp(F)?(J=t.getRecordMatcher(F),oe=se):oe=F,t.addRoute(oe,J)}function m(F){const se=t.getRecordMatcher(F);se&&t.removeRoute(se)}function g(){return t.getRoutes().map(F=>F.record)}function p(F){return!!t.getRecordMatcher(F)}function v(F,se){if(se=Be({},se||l.value),typeof F=="string"){const M=ul(n,F,se.path),R=t.resolve({path:M.path},se),z=i.createHref(M.fullPath);return Be(M,R,{params:f(R.params),hash:ho(M.hash),redirectedFrom:void 0,href:z})}let J;if(F.path!=null)J=Be({},F,{path:ul(n,F.path,se.path).path});else{const M=Be({},F.params);for(const R in M)M[R]==null&&delete M[R];J=Be({},F,{params:d(M)}),se.params=d(se.params)}const oe=t.resolve(J,se),Ae=F.hash||"";oe.params=u(f(oe.params));const Le=Rw(s,Be({},F,{hash:Aw(Ae),path:oe.path})),S=i.createHref(Le);return Be({fullPath:Le,hash:Ae,query:s===If?u1(F.query):F.query||{}},oe,{redirectedFrom:void 0,href:S})}function b(F){return typeof F=="string"?ul(n,F,l.value.path):Be({},F)}function x(F,se){if(c!==F)return pi(8,{from:se,to:F})}function _(F){return C(F)}function A(F){return _(Be(b(F),{replace:!0}))}function P(F){const se=F.matched[F.matched.length-1];if(se&&se.redirect){const{redirect:J}=se;let oe=typeof J=="function"?J(F):J;return typeof oe=="string"&&(oe=oe.includes("?")||oe.includes("#")?oe=b(oe):{path:oe},oe.params={}),Be({query:F.query,hash:F.hash,params:oe.path!=null?{}:F.params},oe)}}function C(F,se){const J=c=v(F),oe=l.value,Ae=F.state,Le=F.force,S=F.replace===!0,M=P(J);if(M)return C(Be(b(M),{state:typeof M=="object"?Be({},Ae,M.state):Ae,force:Le,replace:S}),se||J);const R=J;R.redirectedFrom=se;let z;return!Le&&Dw(s,oe,J)&&(z=pi(16,{to:R,from:oe}),H(oe,oe,!0,!1)),(z?Promise.resolve(z):O(R,oe)).catch(B=>kn(B)?kn(B,2)?B:re(B):I(B,R,oe)).then(B=>{if(B){if(kn(B,2))return C(Be({replace:S},b(B.to),{state:typeof B.to=="object"?Be({},Ae,B.to.state):Ae,force:Le}),se||R)}else B=T(R,oe,!0,S,Ae);return D(R,oe,B),B})}function w(F,se){const J=x(F,se);return J?Promise.reject(J):Promise.resolve()}function E(F){const se=de.values().next().value;return se&&typeof se.runWithContext=="function"?se.runWithContext(F):F()}function O(F,se){let J;const[oe,Ae,Le]=x1(F,se);J=dl(oe.reverse(),"beforeRouteLeave",F,se);for(const M of oe)M.leaveGuards.forEach(R=>{J.push(Qn(R,F,se))});const S=w.bind(null,F,se);return J.push(S),ie(J).then(()=>{J=[];for(const M of o.list())J.push(Qn(M,F,se));return J.push(S),ie(J)}).then(()=>{J=dl(Ae,"beforeRouteUpdate",F,se);for(const M of Ae)M.updateGuards.forEach(R=>{J.push(Qn(R,F,se))});return J.push(S),ie(J)}).then(()=>{J=[];for(const M of Le)if(M.beforeEnter)if(on(M.beforeEnter))for(const R of M.beforeEnter)J.push(Qn(R,F,se));else J.push(Qn(M.beforeEnter,F,se));return J.push(S),ie(J)}).then(()=>(F.matched.forEach(M=>M.enterCallbacks={}),J=dl(Le,"beforeRouteEnter",F,se,E),J.push(S),ie(J))).then(()=>{J=[];for(const M of r.list())J.push(Qn(M,F,se));return J.push(S),ie(J)}).catch(M=>kn(M,8)?M:Promise.reject(M))}function D(F,se,J){a.list().forEach(oe=>E(()=>oe(F,se,J)))}function T(F,se,J,oe,Ae){const Le=x(F,se);if(Le)return Le;const S=se===Gn,M=ii?history.state:{};J&&(oe||S?i.replace(F.fullPath,Be({scroll:S&&M&&M.scroll},Ae)):i.push(F.fullPath,Ae)),l.value=F,H(F,se,J,S),re()}let L;function $(){L||(L=i.listen((F,se,J)=>{if(!he.listening)return;const oe=v(F),Ae=P(oe);if(Ae){C(Be(Ae,{replace:!0}),oe).catch(Zi);return}c=oe;const Le=l.value;ii&&Hw(Cf(Le.fullPath,J.delta),Ta()),O(oe,Le).catch(S=>kn(S,12)?S:kn(S,2)?(C(S.to,oe).then(M=>{kn(M,20)&&!J.delta&&J.type===go.pop&&i.go(-1,!1)}).catch(Zi),Promise.reject()):(J.delta&&i.go(-J.delta,!1),I(S,oe,Le))).then(S=>{S=S||T(oe,Le,!1),S&&(J.delta&&!kn(S,8)?i.go(-J.delta,!1):J.type===go.pop&&kn(S,20)&&i.go(-1,!1)),D(oe,Le,S)}).catch(Zi)}))}let j=Oi(),K=Oi(),q;function I(F,se,J){re(F);const oe=K.list();return oe.length?oe.forEach(Ae=>Ae(F,se,J)):console.error(F),Promise.reject(F)}function V(){return q&&l.value!==Gn?Promise.resolve():new Promise((F,se)=>{j.add([F,se])})}function re(F){return q||(q=!F,$(),j.list().forEach(([se,J])=>F?J(F):se()),j.reset()),F}function H(F,se,J,oe){const{scrollBehavior:Ae}=e;if(!ii||!Ae)return Promise.resolve();const Le=!J&&jw(Cf(F.fullPath,0))||(oe||!J)&&history.state&&history.state.scroll||null;return ft().then(()=>Ae(F,se,Le)).then(S=>S&&zw(S)).catch(S=>I(S,F,se))}const Q=F=>i.go(F);let Y;const de=new Set,he={currentRoute:l,listening:!0,addRoute:h,removeRoute:m,hasRoute:p,getRoutes:g,resolve:v,options:e,push:_,replace:A,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:o.add,beforeResolve:r.add,afterEach:a.add,onError:K.add,isReady:V,install(F){const se=this;F.component("RouterLink",g1),F.component("RouterView",y1),F.config.globalProperties.$router=se,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>Ze(l)}),ii&&!Y&&l.value===Gn&&(Y=!0,_(i.location).catch(Ae=>{}));const J={};for(const Ae in Gn)Object.defineProperty(J,Ae,{get:()=>l.value[Ae],enumerable:!0});F.provide(Oa,se),F.provide(fu,rm(J)),F.provide(ec,l);const oe=F.unmount;de.add(F),F.unmount=function(){de.delete(F),de.size<1&&(c=Gn,L&&L(),L=null,l.value=Gn,Y=!1,q=!1),oe()}}};function ie(F){return F.reduce((se,J)=>se.then(()=>E(J)),Promise.resolve())}return he}function x1(e,t){const n=[],s=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;r<o;r++){const a=t.matched[r];a&&(e.matched.find(c=>mi(c,a))?s.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(c=>mi(c,l))||i.push(l))}return[n,s,i]}function hu(){return Te(Oa)}function Oo(){return Te(fu)}function Vp(e,t){return function(){return e.apply(t,arguments)}}const{toString:_1}=Object.prototype,{getPrototypeOf:gu}=Object,Ia=(e=>t=>{const n=_1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wn=e=>(e=e.toLowerCase(),t=>Ia(t)===e),Ra=e=>t=>typeof t===e,{isArray:Pi}=Array,mo=Ra("undefined");function S1(e){return e!==null&&!mo(e)&&e.constructor!==null&&!mo(e.constructor)&&qt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Bp=wn("ArrayBuffer");function w1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Bp(e.buffer),t}const C1=Ra("string"),qt=Ra("function"),Np=Ra("number"),Da=e=>e!==null&&typeof e=="object",k1=e=>e===!0||e===!1,br=e=>{if(Ia(e)!=="object")return!1;const t=gu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},P1=wn("Date"),A1=wn("File"),M1=wn("Blob"),E1=wn("FileList"),T1=e=>Da(e)&&qt(e.pipe),O1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||qt(e.append)&&((t=Ia(e))==="formdata"||t==="object"&&qt(e.toString)&&e.toString()==="[object FormData]"))},I1=wn("URLSearchParams"),R1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Io(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),Pi(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),r=o.length;let a;for(s=0;s<r;s++)a=o[s],t.call(null,e[a],a,e)}}function $p(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,i;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const zp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Hp=e=>!mo(e)&&e!==zp;function tc(){const{caseless:e}=Hp(this)&&this||{},t={},n=(s,i)=>{const o=e&&$p(t,i)||i;br(t[o])&&br(s)?t[o]=tc(t[o],s):br(s)?t[o]=tc({},s):Pi(s)?t[o]=s.slice():t[o]=s};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Io(arguments[s],n);return t}const D1=(e,t,n,{allOwnKeys:s}={})=>(Io(t,(i,o)=>{n&&qt(i)?e[o]=Vp(i,n):e[o]=i},{allOwnKeys:s}),e),L1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),F1=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},V1=(e,t,n,s)=>{let i,o,r;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)r=i[o],(!s||s(r,e,t))&&!a[r]&&(t[r]=e[r],a[r]=!0);e=n!==!1&&gu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},B1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},N1=e=>{if(!e)return null;if(Pi(e))return e;let t=e.length;if(!Np(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&gu(Uint8Array)),z1=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=s.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},H1=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},j1=wn("HTMLFormElement"),W1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),Bf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),U1=wn("RegExp"),jp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Io(n,(i,o)=>{let r;(r=t(i,o,e))!==!1&&(s[o]=r||i)}),Object.defineProperties(e,s)},G1=e=>{jp(e,(t,n)=>{if(qt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(qt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},K1=(e,t)=>{const n={},s=i=>{i.forEach(o=>{n[o]=!0})};return Pi(e)?s(e):s(String(e).split(t)),n},q1=()=>{},Y1=(e,t)=>(e=+e,Number.isFinite(e)?e:t),fl="abcdefghijklmnopqrstuvwxyz",Nf="0123456789",Wp={DIGIT:Nf,ALPHA:fl,ALPHA_DIGIT:fl+fl.toUpperCase()+Nf},X1=(e=16,t=Wp.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function J1(e){return!!(e&&qt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Z1=e=>{const t=new Array(10),n=(s,i)=>{if(Da(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[i]=s;const o=Pi(s)?[]:{};return Io(s,(r,a)=>{const l=n(r,i+1);!mo(l)&&(o[a]=l)}),t[i]=void 0,o}}return s};return n(e,0)},Q1=wn("AsyncFunction"),eC=e=>e&&(Da(e)||qt(e))&&qt(e.then)&&qt(e.catch),N={isArray:Pi,isArrayBuffer:Bp,isBuffer:S1,isFormData:O1,isArrayBufferView:w1,isString:C1,isNumber:Np,isBoolean:k1,isObject:Da,isPlainObject:br,isUndefined:mo,isDate:P1,isFile:A1,isBlob:M1,isRegExp:U1,isFunction:qt,isStream:T1,isURLSearchParams:I1,isTypedArray:$1,isFileList:E1,forEach:Io,merge:tc,extend:D1,trim:R1,stripBOM:L1,inherits:F1,toFlatObject:V1,kindOf:Ia,kindOfTest:wn,endsWith:B1,toArray:N1,forEachEntry:z1,matchAll:H1,isHTMLForm:j1,hasOwnProperty:Bf,hasOwnProp:Bf,reduceDescriptors:jp,freezeMethods:G1,toObjectSet:K1,toCamelCase:W1,noop:q1,toFiniteNumber:Y1,findKey:$p,global:zp,isContextDefined:Hp,ALPHABET:Wp,generateString:X1,isSpecCompliantForm:J1,toJSONObject:Z1,isAsyncFn:Q1,isThenable:eC};function Ie(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i)}N.inherits(Ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:N.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Up=Ie.prototype,Gp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Gp[e]={value:e}});Object.defineProperties(Ie,Gp);Object.defineProperty(Up,"isAxiosError",{value:!0});Ie.from=(e,t,n,s,i,o)=>{const r=Object.create(Up);return N.toFlatObject(e,r,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Ie.call(r,e.message,t,n,s,i),r.cause=e,r.name=e.name,o&&Object.assign(r,o),r};const tC=null;function nc(e){return N.isPlainObject(e)||N.isArray(e)}function Kp(e){return N.endsWith(e,"[]")?e.slice(0,-2):e}function $f(e,t,n){return e?e.concat(t).map(function(i,o){return i=Kp(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function nC(e){return N.isArray(e)&&!e.some(nc)}const sC=N.toFlatObject(N,{},null,function(t){return/^is[A-Z]/.test(t)});function La(e,t,n){if(!N.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=N.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!N.isUndefined(p[g])});const s=n.metaTokens,i=n.visitor||u,o=n.dots,r=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(t);if(!N.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(N.isDate(m))return m.toISOString();if(!l&&N.isBlob(m))throw new Ie("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(m)||N.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,p){let v=m;if(m&&!p&&typeof m=="object"){if(N.endsWith(g,"{}"))g=s?g:g.slice(0,-2),m=JSON.stringify(m);else if(N.isArray(m)&&nC(m)||(N.isFileList(m)||N.endsWith(g,"[]"))&&(v=N.toArray(m)))return g=Kp(g),v.forEach(function(x,_){!(N.isUndefined(x)||x===null)&&t.append(r===!0?$f([g],_,o):r===null?g:g+"[]",c(x))}),!1}return nc(m)?!0:(t.append($f(p,g,o),c(m)),!1)}const d=[],f=Object.assign(sC,{defaultVisitor:u,convertValue:c,isVisitable:nc});function h(m,g){if(!N.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(m),N.forEach(m,function(v,b){(!(N.isUndefined(v)||v===null)&&i.call(t,v,N.isString(b)?b.trim():b,g,f))===!0&&h(v,g?g.concat(b):[b])}),d.pop()}}if(!N.isObject(e))throw new TypeError("data must be an object");return h(e),t}function zf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function mu(e,t){this._pairs=[],e&&La(e,this,t)}const qp=mu.prototype;qp.append=function(t,n){this._pairs.push([t,n])};qp.toString=function(t){const n=t?function(s){return t.call(this,s,zf)}:zf;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function iC(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Yp(e,t,n){if(!t)return e;const s=n&&n.encode||iC,i=n&&n.serialize;let o;if(i?o=i(t,n):o=N.isURLSearchParams(t)?t.toString():new mu(t,n).toString(s),o){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Hf{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){N.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Xp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oC=typeof URLSearchParams<"u"?URLSearchParams:mu,rC=typeof FormData<"u"?FormData:null,aC=typeof Blob<"u"?Blob:null,lC={isBrowser:!0,classes:{URLSearchParams:oC,FormData:rC,Blob:aC},protocols:["http","https","file","blob","url","data"]},Jp=typeof window<"u"&&typeof document<"u",cC=(e=>Jp&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),uC=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dC=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jp,hasStandardBrowserEnv:cC,hasStandardBrowserWebWorkerEnv:uC},Symbol.toStringTag,{value:"Module"})),pn={...dC,...lC};function fC(e,t){return La(e,new pn.classes.URLSearchParams,Object.assign({visitor:function(n,s,i,o){return pn.isNode&&N.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function hC(e){return N.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gC(e){const t={},n=Object.keys(e);let s;const i=n.length;let o;for(s=0;s<i;s++)o=n[s],t[o]=e[o];return t}function Zp(e){function t(n,s,i,o){let r=n[o++];if(r==="__proto__")return!0;const a=Number.isFinite(+r),l=o>=n.length;return r=!r&&N.isArray(i)?i.length:r,l?(N.hasOwnProp(i,r)?i[r]=[i[r],s]:i[r]=s,!a):((!i[r]||!N.isObject(i[r]))&&(i[r]=[]),t(n,s,i[r],o)&&N.isArray(i[r])&&(i[r]=gC(i[r])),!a)}if(N.isFormData(e)&&N.isFunction(e.entries)){const n={};return N.forEachEntry(e,(s,i)=>{t(hC(s),i,n,0)}),n}return null}function mC(e,t,n){if(N.isString(e))try{return(t||JSON.parse)(e),N.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const pu={transitional:Xp,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,o=N.isObject(t);if(o&&N.isHTMLForm(t)&&(t=new FormData(t)),N.isFormData(t))return i?JSON.stringify(Zp(t)):t;if(N.isArrayBuffer(t)||N.isBuffer(t)||N.isStream(t)||N.isFile(t)||N.isBlob(t))return t;if(N.isArrayBufferView(t))return t.buffer;if(N.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return fC(t,this.formSerializer).toString();if((a=N.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return La(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),mC(t)):t}],transformResponse:[function(t){const n=this.transitional||pu.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&N.isString(t)&&(s&&!this.responseType||i)){const r=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(r)throw a.name==="SyntaxError"?Ie.from(a,Ie.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pn.classes.FormData,Blob:pn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch"],e=>{pu.headers[e]={}});const vu=pu,pC=N.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vC=e=>{const t={};let n,s,i;return e&&e.split(`
|
|
`).forEach(function(r){i=r.indexOf(":"),n=r.substring(0,i).trim().toLowerCase(),s=r.substring(i+1).trim(),!(!n||t[n]&&pC[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},jf=Symbol("internals");function Ii(e){return e&&String(e).trim().toLowerCase()}function xr(e){return e===!1||e==null?e:N.isArray(e)?e.map(xr):String(e)}function yC(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const bC=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function hl(e,t,n,s,i){if(N.isFunction(s))return s.call(this,t,n);if(i&&(t=n),!!N.isString(t)){if(N.isString(s))return t.indexOf(s)!==-1;if(N.isRegExp(s))return s.test(t)}}function xC(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function _C(e,t){const n=N.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,o,r){return this[s].call(this,t,i,o,r)},configurable:!0})})}class Fa{constructor(t){t&&this.set(t)}set(t,n,s){const i=this;function o(a,l,c){const u=Ii(l);if(!u)throw new Error("header name must be a non-empty string");const d=N.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=xr(a))}const r=(a,l)=>N.forEach(a,(c,u)=>o(c,u,l));return N.isPlainObject(t)||t instanceof this.constructor?r(t,n):N.isString(t)&&(t=t.trim())&&!bC(t)?r(vC(t),n):t!=null&&o(n,t,s),this}get(t,n){if(t=Ii(t),t){const s=N.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return yC(i);if(N.isFunction(n))return n.call(this,i,s);if(N.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ii(t),t){const s=N.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||hl(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let i=!1;function o(r){if(r=Ii(r),r){const a=N.findKey(s,r);a&&(!n||hl(s,s[a],a,n))&&(delete s[a],i=!0)}}return N.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let s=n.length,i=!1;for(;s--;){const o=n[s];(!t||hl(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,s={};return N.forEach(this,(i,o)=>{const r=N.findKey(s,o);if(r){n[r]=xr(i),delete n[o];return}const a=t?xC(o):String(o).trim();a!==o&&delete n[o],n[a]=xr(i),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return N.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&N.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[jf]=this[jf]={accessors:{}}).accessors,i=this.prototype;function o(r){const a=Ii(r);s[a]||(_C(i,r),s[a]=!0)}return N.isArray(t)?t.forEach(o):o(t),this}}Fa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(Fa.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});N.freezeMethods(Fa);const Fn=Fa;function gl(e,t){const n=this||vu,s=t||n,i=Fn.from(s.headers);let o=s.data;return N.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Qp(e){return!!(e&&e.__CANCEL__)}function Ro(e,t,n){Ie.call(this,e??"canceled",Ie.ERR_CANCELED,t,n),this.name="CanceledError"}N.inherits(Ro,Ie,{__CANCEL__:!0});function SC(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Ie("Request failed with status code "+n.status,[Ie.ERR_BAD_REQUEST,Ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const wC=pn.hasStandardBrowserEnv?{write(e,t,n,s,i,o){const r=[e+"="+encodeURIComponent(t)];N.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),N.isString(s)&&r.push("path="+s),N.isString(i)&&r.push("domain="+i),o===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function CC(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function kC(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ev(e,t){return e&&!CC(t)?kC(e,t):t}const PC=pn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function i(o){let r=o;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=i(window.location.href),function(r){const a=N.isString(r)?i(r):r;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function AC(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function MC(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,o=0,r;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=s[o];r||(r=c),n[i]=l,s[i]=c;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-r<t)return;const h=u&&c-u;return h?Math.round(f*1e3/h):void 0}}function Wf(e,t){let n=0;const s=MC(50,250);return i=>{const o=i.loaded,r=i.lengthComputable?i.total:void 0,a=o-n,l=s(a),c=o<=r;n=o;const u={loaded:o,total:r,progress:r?o/r:void 0,bytes:a,rate:l||void 0,estimated:l&&r&&c?(r-o)/l:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const EC=typeof XMLHttpRequest<"u",TC=EC&&function(e){return new Promise(function(n,s){let i=e.data;const o=Fn.from(e.headers).normalize();let{responseType:r,withXSRFToken:a}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let u;if(N.isFormData(i)){if(pn.hasStandardBrowserEnv||pn.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((u=o.getContentType())!==!1){const[g,...p]=u?u.split(";").map(v=>v.trim()).filter(Boolean):[];o.setContentType([g||"multipart/form-data",...p].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+p))}const f=ev(e.baseURL,e.url);d.open(e.method.toUpperCase(),Yp(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function h(){if(!d)return;const g=Fn.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),v={data:!r||r==="text"||r==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:g,config:e,request:d};SC(function(x){n(x),c()},function(x){s(x),c()},v),d=null}if("onloadend"in d?d.onloadend=h:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(h)},d.onabort=function(){d&&(s(new Ie("Request aborted",Ie.ECONNABORTED,e,d)),d=null)},d.onerror=function(){s(new Ie("Network Error",Ie.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||Xp;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),s(new Ie(p,v.clarifyTimeoutError?Ie.ETIMEDOUT:Ie.ECONNABORTED,e,d)),d=null},pn.hasStandardBrowserEnv&&(a&&N.isFunction(a)&&(a=a(e)),a||a!==!1&&PC(f))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&wC.read(e.xsrfCookieName);g&&o.set(e.xsrfHeaderName,g)}i===void 0&&o.setContentType(null),"setRequestHeader"in d&&N.forEach(o.toJSON(),function(p,v){d.setRequestHeader(v,p)}),N.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),r&&r!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Wf(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Wf(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=g=>{d&&(s(!g||g.type?new Ro(null,e,d):g),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=AC(f);if(m&&pn.protocols.indexOf(m)===-1){s(new Ie("Unsupported protocol "+m+":",Ie.ERR_BAD_REQUEST,e));return}d.send(i||null)})},sc={http:tC,xhr:TC};N.forEach(sc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Uf=e=>`- ${e}`,OC=e=>N.isFunction(e)||e===null||e===!1,tv={getAdapter:e=>{e=N.isArray(e)?e:[e];const{length:t}=e;let n,s;const i={};for(let o=0;o<t;o++){n=e[o];let r;if(s=n,!OC(n)&&(s=sc[(r=String(n)).toLowerCase()],s===void 0))throw new Ie(`Unknown adapter '${r}'`);if(s)break;i[r||"#"+o]=s}if(!s){const o=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let r=t?o.length>1?`since :
|
|
`+o.map(Uf).join(`
|
|
`):" "+Uf(o[0]):"as no adapter specified";throw new Ie("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return s},adapters:sc};function ml(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ro(null,e)}function Gf(e){return ml(e),e.headers=Fn.from(e.headers),e.data=gl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tv.getAdapter(e.adapter||vu.adapter)(e).then(function(s){return ml(e),s.data=gl.call(e,e.transformResponse,s),s.headers=Fn.from(s.headers),s},function(s){return Qp(s)||(ml(e),s&&s.response&&(s.response.data=gl.call(e,e.transformResponse,s.response),s.response.headers=Fn.from(s.response.headers))),Promise.reject(s)})}const Kf=e=>e instanceof Fn?{...e}:e;function vi(e,t){t=t||{};const n={};function s(c,u,d){return N.isPlainObject(c)&&N.isPlainObject(u)?N.merge.call({caseless:d},c,u):N.isPlainObject(u)?N.merge({},u):N.isArray(u)?u.slice():u}function i(c,u,d){if(N.isUndefined(u)){if(!N.isUndefined(c))return s(void 0,c,d)}else return s(c,u,d)}function o(c,u){if(!N.isUndefined(u))return s(void 0,u)}function r(c,u){if(N.isUndefined(u)){if(!N.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function a(c,u,d){if(d in t)return s(c,u);if(d in e)return s(void 0,c)}const l={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:a,headers:(c,u)=>i(Kf(c),Kf(u),!0)};return N.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||i,f=d(e[u],t[u],u);N.isUndefined(f)&&d!==a||(n[u]=f)}),n}const nv="1.6.8",yu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yu[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const qf={};yu.transitional=function(t,n,s){function i(o,r){return"[Axios v"+nv+"] Transitional option '"+o+"'"+r+(s?". "+s:"")}return(o,r,a)=>{if(t===!1)throw new Ie(i(r," has been removed"+(n?" in "+n:"")),Ie.ERR_DEPRECATED);return n&&!qf[r]&&(qf[r]=!0,console.warn(i(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,r,a):!0}};function IC(e,t,n){if(typeof e!="object")throw new Ie("options must be an object",Ie.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const o=s[i],r=t[o];if(r){const a=e[o],l=a===void 0||r(a,o,e);if(l!==!0)throw new Ie("option "+o+" must be "+l,Ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ie("Unknown option "+o,Ie.ERR_BAD_OPTION)}}const ic={assertOptions:IC,validators:yu},Kn=ic.validators;class Zr{constructor(t){this.defaults=t,this.interceptors={request:new Hf,response:new Hf}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
|
`+o):s.stack=o}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=vi(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:o}=n;s!==void 0&&ic.assertOptions(s,{silentJSONParsing:Kn.transitional(Kn.boolean),forcedJSONParsing:Kn.transitional(Kn.boolean),clarifyTimeoutError:Kn.transitional(Kn.boolean)},!1),i!=null&&(N.isFunction(i)?n.paramsSerializer={serialize:i}:ic.assertOptions(i,{encode:Kn.function,serialize:Kn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=o&&N.merge(o.common,o[n.method]);o&&N.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Fn.concat(r,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,f;if(!l){const m=[Gf.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,c),f=m.length,u=Promise.resolve(n);d<f;)u=u.then(m[d++],m[d++]);return u}f=a.length;let h=n;for(d=0;d<f;){const m=a[d++],g=a[d++];try{h=m(h)}catch(p){g.call(this,p);break}}try{u=Gf.call(this,h)}catch(m){return Promise.reject(m)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=vi(this.defaults,t);const n=ev(t.baseURL,t.url);return Yp(n,t.params,t.paramsSerializer)}}N.forEach(["delete","get","head","options"],function(t){Zr.prototype[t]=function(n,s){return this.request(vi(s||{},{method:t,url:n,data:(s||{}).data}))}});N.forEach(["post","put","patch"],function(t){function n(s){return function(o,r,a){return this.request(vi(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}Zr.prototype[t]=n(),Zr.prototype[t+"Form"]=n(!0)});const _r=Zr;class bu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const s=this;this.promise.then(i=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](i);s._listeners=null}),this.promise.then=i=>{let o;const r=new Promise(a=>{s.subscribe(a),o=a}).then(i);return r.cancel=function(){s.unsubscribe(o)},r},t(function(o,r,a){s.reason||(s.reason=new Ro(o,r,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new bu(function(i){t=i}),cancel:t}}}const RC=bu;function DC(e){return function(n){return e.apply(null,n)}}function LC(e){return N.isObject(e)&&e.isAxiosError===!0}const oc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(oc).forEach(([e,t])=>{oc[t]=e});const FC=oc;function sv(e){const t=new _r(e),n=Vp(_r.prototype.request,t);return N.extend(n,_r.prototype,t,{allOwnKeys:!0}),N.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return sv(vi(e,i))},n}const ze=sv(vu);ze.Axios=_r;ze.CanceledError=Ro;ze.CancelToken=RC;ze.isCancel=Qp;ze.VERSION=nv;ze.toFormData=La;ze.AxiosError=Ie;ze.Cancel=ze.CanceledError;ze.all=function(t){return Promise.all(t)};ze.spread=DC;ze.isAxiosError=LC;ze.mergeConfig=vi;ze.AxiosHeaders=Fn;ze.formToJSON=e=>Zp(N.isHTMLForm(e)?new FormData(e):e);ze.getAdapter=tv.getAdapter;ze.HttpStatusCode=FC;ze.default=ze;const gs=W({border:[Boolean,Number,String]},"border");function qs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_n();return{borderClasses:k(()=>{const s=nt(e)?e.value:e.border,i=[];if(s===!0||s==="")i.push(`${t}--border`);else if(typeof s=="string"||s===0)for(const o of String(s).split(" "))i.push(`border-${o}`);return i})}}const VC=[null,"default","comfortable","compact"],Cn=W({density:{type:String,default:"default",validator:e=>VC.includes(e)}},"density");function Hn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_n();return{densityClasses:k(()=>`${t}--density-${e.density}`)}}const ms=W({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function Ys(e){return{elevationClasses:k(()=>{const n=nt(e)?e.value:e.elevation,s=[];return n==null||s.push(`elevation-${n}`),s})}}const Jt=W({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function an(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_n();return{roundedClasses:k(()=>{const s=nt(e)?e.value:e.rounded,i=nt(e)?e.value:e.tile,o=[];if(s===!0||s==="")o.push(`${t}--rounded`);else if(typeof s=="string"||s===0)for(const r of String(s).split(" "))o.push(`rounded-${r}`);else i&&o.push("rounded-0");return o})}}const at=W({tag:{type:String,default:"div"}},"tag");function xu(e){return ru(()=>{const t=[],n={};if(e.value.background)if(Kl(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&W_(e.value.background)){const s=mn(e.value.background);if(s.a==null||s.a===1){const i=fp(s);n.color=i,n.caretColor=i}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(Kl(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function Nn(e,t){const n=k(()=>({text:nt(e)?e.value:t?e[t]:null})),{colorClasses:s,colorStyles:i}=xu(n);return{textColorClasses:s,textColorStyles:i}}function xn(e,t){const n=k(()=>({background:nt(e)?e.value:t?e[t]:null})),{colorClasses:s,colorStyles:i}=xu(n);return{backgroundColorClasses:s,backgroundColorStyles:i}}const BC=["elevated","flat","tonal","outlined","text","plain"];function Va(e,t){return y(Pe,null,[e&&y("span",{key:"overlay",class:`${t}__overlay`},null),y("span",{key:"underlay",class:`${t}__underlay`},null)])}const ps=W({color:String,variant:{type:String,default:"elevated",validator:e=>BC.includes(e)}},"variant");function Ba(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_n();const n=k(()=>{const{variant:o}=Ze(e);return`${t}--variant-${o}`}),{colorClasses:s,colorStyles:i}=xu(k(()=>{const{variant:o,color:r}=Ze(e);return{[["elevated","flat"].includes(o)?"background":"text"]:r}}));return{colorClasses:s,colorStyles:i,variantClasses:n}}const iv=W({divided:Boolean,...gs(),...Oe(),...Cn(),...ms(),...Jt(),...at(),...rt(),...ps()},"VBtnGroup"),Yf=me()({name:"VBtnGroup",props:iv(),setup(e,t){let{slots:n}=t;const{themeClasses:s}=ht(e),{densityClasses:i}=Hn(e),{borderClasses:o}=qs(e),{elevationClasses:r}=Ys(e),{roundedClasses:a}=an(e);bn({VBtn:{height:"auto",color:le(e,"color"),density:le(e,"density"),flat:!0,variant:le(e,"variant")}}),_e(()=>y(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},s.value,o.value,i.value,r.value,a.value,e.class],style:e.style},n))}}),_u=W({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),ov=W({value:null,disabled:Boolean,selectedClass:String},"group-item");function rv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const s=it("useGroupItem");if(!s)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const i=rn();Je(Symbol.for(`${t.description}:id`),i);const o=Te(t,null);if(!o){if(!n)return o;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const r=le(e,"value"),a=k(()=>!!(o.disabled.value||e.disabled));o.register({id:i,value:r,disabled:a},s),zt(()=>{o.unregister(i)});const l=k(()=>o.isSelected(i)),c=k(()=>l.value&&[o.selectedClass.value,e.selectedClass]);return ue(l,u=>{s.emit("group:selected",{value:u})},{flush:"sync"}),{id:i,isSelected:l,toggle:()=>o.select(i,!l.value),select:u=>o.select(i,u),selectedClass:c,value:r,disabled:a,group:o}}function Su(e,t){let n=!1;const s=vt([]),i=Ye(e,"modelValue",[],f=>f==null?[]:av(s,Et(f)),f=>{const h=$C(s,f);return e.multiple?h:h[0]}),o=it("useGroup");function r(f,h){const m=f,g=Symbol.for(`${t.description}:id`),v=Ji(g,o==null?void 0:o.vnode).indexOf(h);Ze(m.value)==null&&(m.value=v),v>-1?s.splice(v,0,m):s.push(m)}function a(f){if(n)return;l();const h=s.findIndex(m=>m.id===f);s.splice(h,1)}function l(){const f=s.find(h=>!h.disabled);f&&e.mandatory==="force"&&!i.value.length&&(i.value=[f.id])}$t(()=>{l()}),zt(()=>{n=!0});function c(f,h){const m=s.find(g=>g.id===f);if(!(h&&(m!=null&&m.disabled)))if(e.multiple){const g=i.value.slice(),p=g.findIndex(b=>b===f),v=~p;if(h=h??!v,v&&e.mandatory&&g.length<=1||!v&&e.max!=null&&g.length+1>e.max)return;p<0&&h?g.push(f):p>=0&&!h&&g.splice(p,1),i.value=g}else{const g=i.value.includes(f);if(e.mandatory&&g)return;i.value=h??!g?[f]:[]}}function u(f){if(e.multiple,i.value.length){const h=i.value[0],m=s.findIndex(v=>v.id===h);let g=(m+f)%s.length,p=s[g];for(;p.disabled&&g!==m;)g=(g+f)%s.length,p=s[g];if(p.disabled)return;i.value=[s[g].id]}else{const h=s.find(m=>!m.disabled);h&&(i.value=[h.id])}}const d={register:r,unregister:a,selected:i,select:c,disabled:le(e,"disabled"),prev:()=>u(s.length-1),next:()=>u(1),isSelected:f=>i.value.includes(f),selectedClass:k(()=>e.selectedClass),items:k(()=>s),getItemIndex:f=>NC(s,f)};return Je(t,d),d}function NC(e,t){const n=av(e,[t]);return n.length?e.findIndex(s=>s.id===n[0]):-1}function av(e,t){const n=[];return t.forEach(s=>{const i=e.find(r=>hs(s,r.value)),o=e[s];(i==null?void 0:i.value)!=null?n.push(i.id):o!=null&&n.push(o.id)}),n}function $C(e,t){const n=[];return t.forEach(s=>{const i=e.findIndex(o=>o.id===s);if(~i){const o=e[i];n.push(o.value!=null?o.value:i)}}),n}const lv=Symbol.for("vuetify:v-btn-toggle"),zC=W({...iv(),..._u()},"VBtnToggle");me()({name:"VBtnToggle",props:zC(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:s,next:i,prev:o,select:r,selected:a}=Su(e,lv);return _e(()=>{const l=Yf.filterProps(e);return y(Yf,be({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n,{isSelected:s,next:i,prev:o,select:r,selected:a})]}})}),{next:i,prev:o,select:r}}});const HC=W({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),bt=me(!1)({name:"VDefaultsProvider",props:HC(),setup(e,t){let{slots:n}=t;const{defaults:s,disabled:i,reset:o,root:r,scoped:a}=Gc(e);return bn(s,{reset:o,root:r,scoped:a,disabled:i}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}}),jC=["x-small","small","default","large","x-large"],Ai=W({size:{type:[String,Number],default:"default"}},"size");function Do(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_n();return ru(()=>{let n,s;return Hr(jC,e.size)?n=`${t}--size-${e.size}`:e.size&&(s={width:fe(e.size),height:fe(e.size)}),{sizeClasses:n,sizeStyles:s}})}const WC=W({color:String,start:Boolean,end:Boolean,icon:Fe,...Oe(),...Ai(),...at({tag:"i"}),...rt()},"VIcon"),mt=me()({name:"VIcon",props:WC(),setup(e,t){let{attrs:n,slots:s}=t;const i=Z(),{themeClasses:o}=ht(e),{iconData:r}=rw(k(()=>i.value||e.icon)),{sizeClasses:a}=Do(e),{textColorClasses:l,textColorStyles:c}=Nn(le(e,"color"));return _e(()=>{var d,f;const u=(d=s.default)==null?void 0:d.call(s);return u&&(i.value=(f=np(u).filter(h=>h.type===Eo&&h.children&&typeof h.children=="string")[0])==null?void 0:f.children),y(r.value.component,{tag:e.tag,icon:r.value.icon,class:["v-icon","notranslate",o.value,a.value,l.value,{"v-icon--clickable":!!n.onClick,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[a.value?void 0:{fontSize:fe(e.size),height:fe(e.size),width:fe(e.size)},c.value,e.style],role:n.onClick?"button":void 0,"aria-hidden":!n.onClick},{default:()=>[u]})}),{}}});function cv(e,t){const n=Z(),s=ge(!1);if(ou){const i=new IntersectionObserver(o=>{e==null||e(o,i),s.value=!!o.find(r=>r.isIntersecting)},t);zt(()=>{i.disconnect()}),ue(n,(o,r)=>{r&&(i.unobserve(r),s.value=!1),o&&i.observe(o)},{flush:"post"})}return{intersectionRef:n,isIntersecting:s}}const UC=W({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Oe(),...Ai(),...at({tag:"div"}),...rt()},"VProgressCircular"),GC=me()({name:"VProgressCircular",props:UC(),setup(e,t){let{slots:n}=t;const s=20,i=2*Math.PI*s,o=Z(),{themeClasses:r}=ht(e),{sizeClasses:a,sizeStyles:l}=Do(e),{textColorClasses:c,textColorStyles:u}=Nn(le(e,"color")),{textColorClasses:d,textColorStyles:f}=Nn(le(e,"bgColor")),{intersectionRef:h,isIntersecting:m}=cv(),{resizeRef:g,contentRect:p}=Ns(),v=k(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),b=k(()=>Number(e.width)),x=k(()=>l.value?Number(e.size):p.value?p.value.width:Math.max(b.value,32)),_=k(()=>s/(1-b.value/x.value)*2),A=k(()=>b.value/x.value*_.value),P=k(()=>fe((100-v.value)/100*i));return It(()=>{h.value=o.value,g.value=o.value}),_e(()=>y(e.tag,{ref:o,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":m.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},r.value,a.value,c.value,e.class],style:[l.value,u.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:v.value},{default:()=>[y("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[y("circle",{class:["v-progress-circular__underlay",d.value],style:f.value,fill:"transparent",cx:"50%",cy:"50%",r:s,"stroke-width":A.value,"stroke-dasharray":i,"stroke-dashoffset":0},null),y("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:s,"stroke-width":A.value,"stroke-dasharray":i,"stroke-dashoffset":P.value},null)]),n.default&&y("div",{class:"v-progress-circular__content"},[n.default({value:v.value})])]})),{}}}),Xs=W({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Js(e){return{dimensionStyles:k(()=>({height:fe(e.height),maxHeight:fe(e.maxHeight),maxWidth:fe(e.maxWidth),minHeight:fe(e.minHeight),minWidth:fe(e.minWidth),width:fe(e.width)}))}}const Xf={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},wu=W({location:String},"location");function Cu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:s}=Sn();return{locationStyles:k(()=>{if(!e.location)return{};const{side:o,align:r}=Gl(e.location.split(" ").length>1?e.location:`${e.location} center`,s.value);function a(c){return n?n(c):0}const l={};return o!=="center"&&(t?l[Xf[o]]=`calc(100% - ${a(o)}px)`:l[o]=0),r!=="center"?t?l[Xf[r]]=`calc(100% - ${a(r)}px)`:l[r]=0:(o==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[o]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[o]),l})}}const KC=W({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Oe(),...wu({location:"top"}),...Jt(),...at(),...rt()},"VProgressLinear"),qC=me()({name:"VProgressLinear",props:KC(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const s=Ye(e,"modelValue"),{isRtl:i,rtlClasses:o}=Sn(),{themeClasses:r}=ht(e),{locationStyles:a}=Cu(e),{textColorClasses:l,textColorStyles:c}=Nn(e,"color"),{backgroundColorClasses:u,backgroundColorStyles:d}=xn(k(()=>e.bgColor||e.color)),{backgroundColorClasses:f,backgroundColorStyles:h}=xn(e,"color"),{roundedClasses:m}=an(e),{intersectionRef:g,isIntersecting:p}=cv(),v=k(()=>parseInt(e.max,10)),b=k(()=>parseInt(e.height,10)),x=k(()=>parseFloat(e.bufferValue)/v.value*100),_=k(()=>parseFloat(s.value)/v.value*100),A=k(()=>i.value!==e.reverse),P=k(()=>e.indeterminate?"fade-transition":"slide-x-transition"),C=k(()=>e.bgOpacity==null?e.bgOpacity:parseFloat(e.bgOpacity));function w(E){if(!g.value)return;const{left:O,right:D,width:T}=g.value.getBoundingClientRect(),L=A.value?T-E.clientX+(D-T):E.clientX-O;s.value=Math.round(L/T*v.value)}return _e(()=>y(e.tag,{ref:g,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&p.value,"v-progress-linear--reverse":A.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},m.value,r.value,o.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?fe(b.value):0,"--v-progress-linear-height":fe(b.value),...a.value},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:_.value,onClick:e.clickable&&w},{default:()=>[e.stream&&y("div",{key:"stream",class:["v-progress-linear__stream",l.value],style:{...c.value,[A.value?"left":"right"]:fe(-b.value),borderTop:`${fe(b.value/2)} dotted`,opacity:C.value,top:`calc(50% - ${fe(b.value/4)})`,width:fe(100-x.value,"%"),"--v-progress-linear-stream-to":fe(b.value*(A.value?1:-1))}},null),y("div",{class:["v-progress-linear__background",u.value],style:[d.value,{opacity:C.value,width:fe(e.stream?x.value:100,"%")}]},null),y(Bn,{name:P.value},{default:()=>[e.indeterminate?y("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(E=>y("div",{key:E,class:["v-progress-linear__indeterminate",E,f.value],style:h.value},null))]):y("div",{class:["v-progress-linear__determinate",f.value],style:[h.value,{width:fe(_.value,"%")}]},null)]}),n.default&&y("div",{class:"v-progress-linear__content"},[n.default({value:_.value,buffer:x.value})])]})),{}}}),ku=W({loading:[Boolean,String]},"loader");function Pu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_n();return{loaderClasses:k(()=>({[`${t}--loading`]:e.loading}))}}function uv(e,t){var s;let{slots:n}=t;return y("div",{class:`${e.name}__loader`},[((s=n.default)==null?void 0:s.call(n,{color:e.color,isActive:e.active}))||y(qC,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const YC=["static","relative","fixed","absolute","sticky"],dv=W({position:{type:String,validator:e=>YC.includes(e)}},"position");function fv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_n();return{positionClasses:k(()=>e.position?`${t}--${e.position}`:void 0)}}function XC(){const e=it("useRoute");return k(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function JC(){var e,t;return(t=(e=it("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function Au(e,t){const n=U0("RouterLink"),s=k(()=>!!(e.href||e.to)),i=k(()=>(s==null?void 0:s.value)||Gd(t,"click")||Gd(e,"click"));if(typeof n=="string")return{isLink:s,isClickable:i,href:le(e,"href")};const o=e.to?n.useLink(e):void 0,r=XC();return{isLink:s,isClickable:i,route:o==null?void 0:o.route,navigate:o==null?void 0:o.navigate,isActive:o&&k(()=>{var a,l,c;return e.exact?r.value?((c=o.isExactActive)==null?void 0:c.value)&&hs(o.route.value.query,r.value.query):(l=o.isExactActive)==null?void 0:l.value:(a=o.isActive)==null?void 0:a.value}),href:k(()=>e.to?o==null?void 0:o.route.value.href:e.href)}}const Mu=W({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let pl=!1;function ZC(e,t){let n=!1,s,i;Ge&&(ft(()=>{window.addEventListener("popstate",o),s=e==null?void 0:e.beforeEach((r,a,l)=>{pl?n?t(l):l():setTimeout(()=>n?t(l):l()),pl=!0}),i=e==null?void 0:e.afterEach(()=>{pl=!1})}),Rt(()=>{window.removeEventListener("popstate",o),s==null||s(),i==null||i()}));function o(r){var a;(a=r.state)!=null&&a.replaced||(n=!0,setTimeout(()=>n=!1))}}function QC(e,t){ue(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&t&&ft(()=>{t(!0)})},{immediate:!0})}const rc=Symbol("rippleStop"),ek=80;function Jf(e,t){e.style.transform=t,e.style.webkitTransform=t}function ac(e){return e.constructor.name==="TouchEvent"}function hv(e){return e.constructor.name==="KeyboardEvent"}const tk=function(e,t){var d;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=0,i=0;if(!hv(e)){const f=t.getBoundingClientRect(),h=ac(e)?e.touches[e.touches.length-1]:e;s=h.clientX-f.left,i=h.clientY-f.top}let o=0,r=.3;(d=t._ripple)!=null&&d.circle?(r=.15,o=t.clientWidth/2,o=n.center?o:o+Math.sqrt((s-o)**2+(i-o)**2)/4):o=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const a=`${(t.clientWidth-o*2)/2}px`,l=`${(t.clientHeight-o*2)/2}px`,c=n.center?a:`${s-o}px`,u=n.center?l:`${i-o}px`;return{radius:o,scale:r,x:c,y:u,centerX:a,centerY:l}},Qr={show(e,t){var h;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((h=t==null?void 0:t._ripple)!=null&&h.enabled))return;const s=document.createElement("span"),i=document.createElement("span");s.appendChild(i),s.className="v-ripple__container",n.class&&(s.className+=` ${n.class}`);const{radius:o,scale:r,x:a,y:l,centerX:c,centerY:u}=tk(e,t,n),d=`${o*2}px`;i.className="v-ripple__animation",i.style.width=d,i.style.height=d,t.appendChild(s);const f=window.getComputedStyle(t);f&&f.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--visible"),Jf(i,`translate(${a}, ${l}) scale3d(${r},${r},${r})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--in"),Jf(i,`translate(${c}, ${u}) scale3d(1,1,1)`)},0)},hide(e){var o;if(!((o=e==null?void 0:e._ripple)!=null&&o.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const s=performance.now()-Number(n.dataset.activated),i=Math.max(250-s,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var a;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((a=n.parentNode)==null?void 0:a.parentNode)===e&&e.removeChild(n.parentNode)},300)},i)}};function gv(e){return typeof e>"u"||!!e}function po(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[rc])){if(e[rc]=!0,ac(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||hv(e),n._ripple.class&&(t.class=n._ripple.class),ac(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Qr.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var s;(s=n==null?void 0:n._ripple)!=null&&s.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},ek)}else Qr.show(e,n,t)}}function Zf(e){e[rc]=!0}function Bt(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Bt(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Qr.hide(t)}}function mv(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let vo=!1;function pv(e){!vo&&(e.keyCode===zd.enter||e.keyCode===zd.space)&&(vo=!0,po(e))}function vv(e){vo=!1,Bt(e)}function yv(e){vo&&(vo=!1,Bt(e))}function bv(e,t,n){const{value:s,modifiers:i}=t,o=gv(s);if(o||Qr.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=o,e._ripple.centered=i.center,e._ripple.circle=i.circle,Ul(s)&&s.class&&(e._ripple.class=s.class),o&&!n){if(i.stop){e.addEventListener("touchstart",Zf,{passive:!0}),e.addEventListener("mousedown",Zf);return}e.addEventListener("touchstart",po,{passive:!0}),e.addEventListener("touchend",Bt,{passive:!0}),e.addEventListener("touchmove",mv,{passive:!0}),e.addEventListener("touchcancel",Bt),e.addEventListener("mousedown",po),e.addEventListener("mouseup",Bt),e.addEventListener("mouseleave",Bt),e.addEventListener("keydown",pv),e.addEventListener("keyup",vv),e.addEventListener("blur",yv),e.addEventListener("dragstart",Bt,{passive:!0})}else!o&&n&&xv(e)}function xv(e){e.removeEventListener("mousedown",po),e.removeEventListener("touchstart",po),e.removeEventListener("touchend",Bt),e.removeEventListener("touchmove",mv),e.removeEventListener("touchcancel",Bt),e.removeEventListener("mouseup",Bt),e.removeEventListener("mouseleave",Bt),e.removeEventListener("keydown",pv),e.removeEventListener("keyup",vv),e.removeEventListener("dragstart",Bt),e.removeEventListener("blur",yv)}function nk(e,t){bv(e,t,!1)}function sk(e){delete e._ripple,xv(e)}function ik(e,t){if(t.value===t.oldValue)return;const n=gv(t.oldValue);bv(e,t,n)}const Na={mounted:nk,unmounted:sk,updated:ik},ok=W({active:{type:Boolean,default:void 0},symbol:{type:null,default:lv},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Fe,appendIcon:Fe,block:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...gs(),...Oe(),...Cn(),...Xs(),...ms(),...ov(),...ku(),...wu(),...dv(),...Jt(),...Mu(),...Ai(),...at({tag:"button"}),...rt(),...ps({variant:"elevated"})},"VBtn"),gn=me()({name:"VBtn",directives:{Ripple:Na},props:ok(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:s}=t;const{themeClasses:i}=ht(e),{borderClasses:o}=qs(e),{colorClasses:r,colorStyles:a,variantClasses:l}=Ba(e),{densityClasses:c}=Hn(e),{dimensionStyles:u}=Js(e),{elevationClasses:d}=Ys(e),{loaderClasses:f}=Pu(e),{locationStyles:h}=Cu(e),{positionClasses:m}=fv(e),{roundedClasses:g}=an(e),{sizeClasses:p,sizeStyles:v}=Do(e),b=rv(e,e.symbol,!1),x=Au(e,n),_=k(()=>{var E;return e.active!==void 0?e.active:x.isLink.value?(E=x.isActive)==null?void 0:E.value:b==null?void 0:b.isSelected.value}),A=k(()=>(b==null?void 0:b.disabled.value)||e.disabled),P=k(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),C=k(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function w(E){var O;A.value||x.isLink.value&&(E.metaKey||E.ctrlKey||E.shiftKey||E.button!==0||n.target==="_blank")||((O=x.navigate)==null||O.call(x,E),b==null||b.toggle())}return QC(x,b==null?void 0:b.select),_e(()=>{var $,j;const E=x.isLink.value?"a":e.tag,O=!!(e.prependIcon||s.prepend),D=!!(e.appendIcon||s.append),T=!!(e.icon&&e.icon!==!0),L=(b==null?void 0:b.isSelected.value)&&(!x.isLink.value||(($=x.isActive)==null?void 0:$.value))||!b||((j=x.isActive)==null?void 0:j.value);return Xt(y(E,{type:E==="a"?void 0:"button",class:["v-btn",b==null?void 0:b.selectedClass.value,{"v-btn--active":_.value,"v-btn--block":e.block,"v-btn--disabled":A.value,"v-btn--elevated":P.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},i.value,o.value,L?r.value:void 0,c.value,d.value,f.value,m.value,g.value,p.value,l.value,e.class],style:[L?a.value:void 0,u.value,h.value,v.value,e.style],disabled:A.value||void 0,href:x.href.value,onClick:w,value:C.value},{default:()=>{var K;return[Va(!0,"v-btn"),!e.icon&&O&&y("span",{key:"prepend",class:"v-btn__prepend"},[s.prepend?y(bt,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},s.prepend):y(mt,{key:"prepend-icon",icon:e.prependIcon},null)]),y("span",{class:"v-btn__content","data-no-activator":""},[!s.default&&T?y(mt,{key:"content-icon",icon:e.icon},null):y(bt,{key:"content-defaults",disabled:!T,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var q;return[((q=s.default)==null?void 0:q.call(s))??e.text]}})]),!e.icon&&D&&y("span",{key:"append",class:"v-btn__append"},[s.append?y(bt,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},s.append):y(mt,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&y("span",{key:"loader",class:"v-btn__loader"},[((K=s.loader)==null?void 0:K.call(s))??y(GC,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"23",width:"2"},null)])]}}),[[Gs("ripple"),!A.value&&e.ripple,null]])}),{group:b}}});function rk(){const e=Z([]);Mm(()=>e.value=[]);function t(n,s){e.value[s]=n}return{refs:e,updateRef:t}}const ak=W({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:Fe,default:"$first"},prevIcon:{type:Fe,default:"$prev"},nextIcon:{type:Fe,default:"$next"},lastIcon:{type:Fe,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...gs(),...Oe(),...Cn(),...ms(),...Jt(),...Ai(),...at({tag:"nav"}),...rt(),...ps({variant:"text"})},"VPagination"),ea=me()({name:"VPagination",props:ak(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:n,emit:s}=t;const i=Ye(e,"modelValue"),{t:o,n:r}=Ks(),{isRtl:a}=Sn(),{themeClasses:l}=ht(e),{width:c}=Ma(),u=ge(-1);bn(void 0,{scoped:!0});const{resizeRef:d}=Ns(w=>{if(!w.length)return;const{target:E,contentRect:O}=w[0],D=E.querySelector(".v-pagination__list > *");if(!D)return;const T=O.width,L=D.offsetWidth+parseFloat(getComputedStyle(D).marginRight)*2;u.value=g(T,L)}),f=k(()=>parseInt(e.length,10)),h=k(()=>parseInt(e.start,10)),m=k(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):u.value>=0?u.value:g(c.value,58));function g(w,E){const O=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((w-E*O)/E).toFixed(2)))}const p=k(()=>{if(f.value<=0||isNaN(f.value)||f.value>Number.MAX_SAFE_INTEGER)return[];if(m.value<=0)return[];if(m.value===1)return[i.value];if(f.value<=m.value)return oi(f.value,h.value);const w=m.value%2===0,E=w?m.value/2:Math.floor(m.value/2),O=w?E:E+1,D=f.value-E;if(O-i.value>=0)return[...oi(Math.max(1,m.value-1),h.value),e.ellipsis,f.value];if(i.value-D>=(w?1:0)){const T=m.value-1,L=f.value-T+h.value;return[h.value,e.ellipsis,...oi(T,L)]}else{const T=Math.max(1,m.value-3),L=T===1?i.value:i.value-Math.ceil(T/2)+h.value;return[h.value,e.ellipsis,...oi(T,L),e.ellipsis,f.value]}});function v(w,E,O){w.preventDefault(),i.value=E,O&&s(O,E)}const{refs:b,updateRef:x}=rk();bn({VPaginationBtn:{color:le(e,"color"),border:le(e,"border"),density:le(e,"density"),size:le(e,"size"),variant:le(e,"variant"),rounded:le(e,"rounded"),elevation:le(e,"elevation")}});const _=k(()=>p.value.map((w,E)=>{const O=D=>x(D,E);if(typeof w=="string")return{isActive:!1,key:`ellipsis-${E}`,page:w,props:{ref:O,ellipsis:!0,icon:!0,disabled:!0}};{const D=w===i.value;return{isActive:D,key:w,page:r(w),props:{ref:O,ellipsis:!1,icon:!0,disabled:!!e.disabled||+e.length<2,color:D?e.activeColor:e.color,"aria-current":D,"aria-label":o(D?e.currentPageAriaLabel:e.pageAriaLabel,w),onClick:T=>v(T,w)}}}})),A=k(()=>{const w=!!e.disabled||i.value<=h.value,E=!!e.disabled||i.value>=h.value+f.value-1;return{first:e.showFirstLastPage?{icon:a.value?e.lastIcon:e.firstIcon,onClick:O=>v(O,h.value,"first"),disabled:w,"aria-label":o(e.firstAriaLabel),"aria-disabled":w}:void 0,prev:{icon:a.value?e.nextIcon:e.prevIcon,onClick:O=>v(O,i.value-1,"prev"),disabled:w,"aria-label":o(e.previousAriaLabel),"aria-disabled":w},next:{icon:a.value?e.prevIcon:e.nextIcon,onClick:O=>v(O,i.value+1,"next"),disabled:E,"aria-label":o(e.nextAriaLabel),"aria-disabled":E},last:e.showFirstLastPage?{icon:a.value?e.firstIcon:e.lastIcon,onClick:O=>v(O,h.value+f.value-1,"last"),disabled:E,"aria-label":o(e.lastAriaLabel),"aria-disabled":E}:void 0}});function P(){var E;const w=i.value-h.value;(E=b.value[w])==null||E.$el.focus()}function C(w){w.key===Hd.left&&!e.disabled&&i.value>+e.start?(i.value=i.value-1,ft(P)):w.key===Hd.right&&!e.disabled&&i.value<h.value+f.value-1&&(i.value=i.value+1,ft(P))}return _e(()=>y(e.tag,{ref:d,class:["v-pagination",l.value,e.class],style:e.style,role:"navigation","aria-label":o(e.ariaLabel),onKeydown:C,"data-test":"v-pagination-root"},{default:()=>[y("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&y("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(A.value.first):y(gn,be({_as:"VPaginationBtn"},A.value.first),null)]),y("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(A.value.prev):y(gn,be({_as:"VPaginationBtn"},A.value.prev),null)]),_.value.map((w,E)=>y("li",{key:w.key,class:["v-pagination__item",{"v-pagination__item--is-active":w.isActive}],"data-test":"v-pagination-item"},[n.item?n.item(w):y(gn,be({_as:"VPaginationBtn"},w.props),{default:()=>[w.page]})])),y("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(A.value.next):y(gn,be({_as:"VPaginationBtn"},A.value.next),null)]),e.showFirstLastPage&&y("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(A.value.last):y(gn,be({_as:"VPaginationBtn"},A.value.last),null)])])]})),{}}}),_v=W({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...Oe(),...Cn(),...at(),...rt()},"VTable"),$s=me()({name:"VTable",props:_v(),setup(e,t){let{slots:n,emit:s}=t;const{themeClasses:i}=ht(e),{densityClasses:o}=Hn(e);return _e(()=>y(e.tag,{class:["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!n.top,"v-table--has-bottom":!!n.bottom,"v-table--hover":e.hover},i.value,o.value,e.class],style:e.style},{default:()=>{var r,a,l;return[(r=n.top)==null?void 0:r.call(n),n.default?y("div",{class:"v-table__wrapper",style:{height:fe(e.height)}},[y("table",null,[n.default()])]):(a=n.wrapper)==null?void 0:a.call(n),(l=n.bottom)==null?void 0:l.call(n)]}})),{}}}),lk=W({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function Ht(e,t,n){return me()({name:e,props:lk({mode:n,origin:t}),setup(s,i){let{slots:o}=i;const r={onBeforeEnter(a){s.origin&&(a.style.transformOrigin=s.origin)},onLeave(a){if(s.leaveAbsolute){const{offsetTop:l,offsetLeft:c,offsetWidth:u,offsetHeight:d}=a;a._transitionInitialStyles={position:a.style.position,top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height},a.style.position="absolute",a.style.top=`${l}px`,a.style.left=`${c}px`,a.style.width=`${u}px`,a.style.height=`${d}px`}s.hideOnLeave&&a.style.setProperty("display","none","important")},onAfterLeave(a){if(s.leaveAbsolute&&(a!=null&&a._transitionInitialStyles)){const{position:l,top:c,left:u,width:d,height:f}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=l||"",a.style.top=c||"",a.style.left=u||"",a.style.width=d||"",a.style.height=f||""}}};return()=>{const a=s.group?l_:Bn;return fs(a,{name:s.disabled?"":e,css:!s.disabled,...s.group?void 0:{mode:s.mode},...s.disabled?{}:r},o.default)}}})}function Sv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return me()({name:e,props:{mode:{type:String,default:n},disabled:Boolean},setup(s,i){let{slots:o}=i;return()=>fs(Bn,{name:s.disabled?"":e,css:!s.disabled,...s.disabled?{}:t},o.default)}})}function wv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",s=Yt(`offset-${n}`);return{onBeforeEnter(r){r._parent=r.parentNode,r._initialStyle={transition:r.style.transition,overflow:r.style.overflow,[n]:r.style[n]}},onEnter(r){const a=r._initialStyle;r.style.setProperty("transition","none","important"),r.style.overflow="hidden";const l=`${r[s]}px`;r.style[n]="0",r.offsetHeight,r.style.transition=a.transition,e&&r._parent&&r._parent.classList.add(e),requestAnimationFrame(()=>{r.style[n]=l})},onAfterEnter:o,onEnterCancelled:o,onLeave(r){r._initialStyle={transition:"",overflow:r.style.overflow,[n]:r.style[n]},r.style.overflow="hidden",r.style[n]=`${r[s]}px`,r.offsetHeight,requestAnimationFrame(()=>r.style[n]="0")},onAfterLeave:i,onLeaveCancelled:i};function i(r){e&&r._parent&&r._parent.classList.remove(e),o(r)}function o(r){const a=r._initialStyle[n];r.style.overflow=r._initialStyle.overflow,a!=null&&(r.style[n]=a),delete r._initialStyle}}const ck=W({target:[Object,Array]},"v-dialog-transition"),Cv=me()({name:"VDialogTransition",props:ck(),setup(e,t){let{slots:n}=t;const s={onBeforeEnter(i){i.style.pointerEvents="none",i.style.visibility="hidden"},async onEnter(i,o){var f;await new Promise(h=>requestAnimationFrame(h)),await new Promise(h=>requestAnimationFrame(h)),i.style.visibility="";const{x:r,y:a,sx:l,sy:c,speed:u}=eh(e.target,i),d=ri(i,[{transform:`translate(${r}px, ${a}px) scale(${l}, ${c})`,opacity:0},{}],{duration:225*u,easing:nS});(f=Qf(i))==null||f.forEach(h=>{ri(h,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*u,easing:Kr})}),d.finished.then(()=>o())},onAfterEnter(i){i.style.removeProperty("pointer-events")},onBeforeLeave(i){i.style.pointerEvents="none"},async onLeave(i,o){var f;await new Promise(h=>requestAnimationFrame(h));const{x:r,y:a,sx:l,sy:c,speed:u}=eh(e.target,i);ri(i,[{},{transform:`translate(${r}px, ${a}px) scale(${l}, ${c})`,opacity:0}],{duration:125*u,easing:sS}).finished.then(()=>o()),(f=Qf(i))==null||f.forEach(h=>{ri(h,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*u,easing:Kr})})},onAfterLeave(i){i.style.removeProperty("pointer-events")}};return()=>e.target?y(Bn,be({name:"dialog-transition"},s,{css:!1}),n):y(Bn,{name:"dialog-transition"},n)}});function Qf(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function eh(e,t){const n=ap(e),s=au(t),[i,o]=getComputedStyle(t).transformOrigin.split(" ").map(v=>parseFloat(v)),[r,a]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;r==="left"||a==="left"?l-=n.width/2:(r==="right"||a==="right")&&(l+=n.width/2);let c=n.top+n.height/2;r==="top"||a==="top"?c-=n.height/2:(r==="bottom"||a==="bottom")&&(c+=n.height/2);const u=n.width/s.width,d=n.height/s.height,f=Math.max(1,u,d),h=u/f||0,m=d/f||0,g=s.width*s.height/(window.innerWidth*window.innerHeight),p=g>.12?Math.min(1.5,(g-.12)*10+1):1;return{x:l-(i+s.left),y:c-(o+s.top),sx:h,sy:m,speed:p}}Ht("fab-transition","center center","out-in");Ht("dialog-bottom-transition");Ht("dialog-top-transition");const th=Ht("fade-transition");Ht("scale-transition");Ht("scroll-x-transition");Ht("scroll-x-reverse-transition");Ht("scroll-y-transition");Ht("scroll-y-reverse-transition");Ht("slide-x-transition");Ht("slide-x-reverse-transition");const kv=Ht("slide-y-transition");Ht("slide-y-reverse-transition");const Pv=Sv("expand-transition",wv()),Av=Sv("expand-x-transition",wv("",!0)),Lo=W({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),es=(e,t)=>{let{slots:n}=t;const{transition:s,disabled:i,...o}=e,{component:r=Bn,...a}=typeof s=="object"?s:{};return fs(r,be(typeof s=="string"?{name:i?"":s}:a,o,{disabled:i}),n)},uk=W({active:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Oe(),...Lo({transition:{component:kv}})},"VCounter"),dk=me()({name:"VCounter",functional:!0,props:uk(),setup(e,t){let{slots:n}=t;const s=k(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return _e(()=>y(es,{transition:e.transition},{default:()=>[Xt(y("div",{class:["v-counter",e.class],style:e.style},[n.default?n.default({counter:s.value,max:e.max,value:e.value}):s.value]),[[wi,e.active]])]})),{}}}),fk=W({text:String,onClick:Tt(),...Oe(),...rt()},"VLabel"),Ut=me()({name:"VLabel",props:fk(),setup(e,t){let{slots:n}=t;return _e(()=>{var s;return y("label",{class:["v-label",{"v-label--clickable":!!e.onClick},e.class],style:e.style,onClick:e.onClick},[e.text,(s=n.default)==null?void 0:s.call(n)])}),{}}}),hk=W({floating:Boolean,...Oe()},"VFieldLabel"),Jo=me()({name:"VFieldLabel",props:hk(),setup(e,t){let{slots:n}=t;return _e(()=>y(Ut,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},n)),{}}});function Mv(e){const{t}=Ks();function n(s){let{name:i}=s;const o={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[i],r=e[`onClick:${i}`],a=r&&o?t(`$vuetify.input.${o}`,e.label??""):void 0;return y(mt,{icon:e[`${i}Icon`],"aria-label":a,onClick:r},null)}return{InputIcon:n}}const Ev=W({focused:Boolean,"onUpdate:focused":Tt()},"focus");function Tv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_n();const n=Ye(e,"focused"),s=k(()=>({[`${t}--focused`]:n.value}));function i(){n.value=!0}function o(){n.value=!1}return{focusClasses:s,isFocused:n,focus:i,blur:o}}const gk=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],Ov=W({appendInnerIcon:Fe,bgColor:String,clearable:Boolean,clearIcon:{type:Fe,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Fe,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>gk.includes(e)},"onClick:clear":Tt(),"onClick:appendInner":Tt(),"onClick:prependInner":Tt(),...Oe(),...ku(),...Jt(),...rt()},"VField"),Iv=me()({name:"VField",inheritAttrs:!1,props:{id:String,...Ev(),...Ov()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:s,slots:i}=t;const{themeClasses:o}=ht(e),{loaderClasses:r}=Pu(e),{focusClasses:a,isFocused:l,focus:c,blur:u}=Tv(e),{InputIcon:d}=Mv(e),{roundedClasses:f}=an(e),{rtlClasses:h}=Sn(),m=k(()=>e.dirty||e.active),g=k(()=>!e.singleLine&&!!(e.label||i.label)),p=rn(),v=k(()=>e.id||`input-${p}`),b=k(()=>`${v.value}-messages`),x=Z(),_=Z(),A=Z(),P=k(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:C,backgroundColorStyles:w}=xn(le(e,"bgColor")),{textColorClasses:E,textColorStyles:O}=Nn(k(()=>e.error||e.disabled?void 0:m.value&&l.value?e.color:e.baseColor));ue(m,L=>{if(g.value){const $=x.value.$el,j=_.value.$el;requestAnimationFrame(()=>{const K=au($),q=j.getBoundingClientRect(),I=q.x-K.x,V=q.y-K.y-(K.height/2-q.height/2),re=q.width/.75,H=Math.abs(re-K.width)>1?{maxWidth:fe(re)}:void 0,Q=getComputedStyle($),Y=getComputedStyle(j),de=parseFloat(Q.transitionDuration)*1e3||150,he=parseFloat(Y.getPropertyValue("--v-field-label-scale")),ie=Y.getPropertyValue("color");$.style.visibility="visible",j.style.visibility="hidden",ri($,{transform:`translate(${I}px, ${V}px) scale(${he})`,color:ie,...H},{duration:de,easing:Kr,direction:L?"normal":"reverse"}).finished.then(()=>{$.style.removeProperty("visibility"),j.style.removeProperty("visibility")})})}},{flush:"post"});const D=k(()=>({isActive:m,isFocused:l,controlRef:A,blur:u,focus:c}));function T(L){L.target!==document.activeElement&&L.preventDefault()}return _e(()=>{var I,V,re;const L=e.variant==="outlined",$=i["prepend-inner"]||e.prependInnerIcon,j=!!(e.clearable||i.clear),K=!!(i["append-inner"]||e.appendInnerIcon||j),q=()=>i.label?i.label({...D.value,label:e.label,props:{for:v.value}}):e.label;return y("div",be({class:["v-field",{"v-field--active":m.value,"v-field--appended":K,"v-field--center-affix":e.centerAffix??!P.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":$,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!q(),[`v-field--variant-${e.variant}`]:!0},o.value,C.value,a.value,r.value,f.value,h.value,e.class],style:[w.value,e.style],onClick:T},n),[y("div",{class:"v-field__overlay"},null),y(uv,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:i.loader}),$&&y("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&y(d,{key:"prepend-icon",name:"prependInner"},null),(I=i["prepend-inner"])==null?void 0:I.call(i,D.value)]),y("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&g.value&&y(Jo,{key:"floating-label",ref:_,class:[E.value],floating:!0,for:v.value,style:O.value},{default:()=>[q()]}),y(Jo,{ref:x,for:v.value},{default:()=>[q()]}),(V=i.default)==null?void 0:V.call(i,{...D.value,props:{id:v.value,class:"v-field__input","aria-describedby":b.value},focus:c,blur:u})]),j&&y(Av,{key:"clear"},{default:()=>[Xt(y("div",{class:"v-field__clearable",onMousedown:H=>{H.preventDefault(),H.stopPropagation()}},[i.clear?i.clear():y(d,{name:"clear"},null)]),[[wi,e.dirty]])]}),K&&y("div",{key:"append",class:"v-field__append-inner"},[(re=i["append-inner"])==null?void 0:re.call(i,D.value),e.appendInnerIcon&&y(d,{key:"append-icon",name:"appendInner"},null)]),y("div",{class:["v-field__outline",E.value],style:O.value},[L&&y(Pe,null,[y("div",{class:"v-field__outline__start"},null),g.value&&y("div",{class:"v-field__outline__notch"},[y(Jo,{ref:_,floating:!0,for:v.value},{default:()=>[q()]})]),y("div",{class:"v-field__outline__end"},null)]),P.value&&g.value&&y(Jo,{ref:_,floating:!0,for:v.value},{default:()=>[q()]})])])}),{controlRef:A}}});function mk(e){const t=Object.keys(Iv.props).filter(n=>!Aa(n)&&n!=="class"&&n!=="style");return Qm(e,t)}const pk=W({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...Oe(),...Lo({transition:{component:kv,leaveAbsolute:!0,group:!0}})},"VMessages"),vk=me()({name:"VMessages",props:pk(),setup(e,t){let{slots:n}=t;const s=k(()=>Et(e.messages)),{textColorClasses:i,textColorStyles:o}=Nn(k(()=>e.color));return _e(()=>y(es,{transition:e.transition,tag:"div",class:["v-messages",i.value,e.class],style:[o.value,e.style],role:"alert","aria-live":"polite"},{default:()=>[e.active&&s.value.map((r,a)=>y("div",{class:"v-messages__message",key:`${a}-${s.value}`},[n.message?n.message({message:r}):r]))]})),{}}}),yk=Symbol.for("vuetify:form");function Rv(){return Te(yk,null)}const bk=W({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Ev()},"validation");function xk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_n(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rn();const s=Ye(e,"modelValue"),i=k(()=>e.validationValue===void 0?s.value:e.validationValue),o=Rv(),r=Z([]),a=ge(!0),l=k(()=>!!(Et(s.value===""?null:s.value).length||Et(i.value===""?null:i.value).length)),c=k(()=>!!(e.disabled??(o==null?void 0:o.isDisabled.value))),u=k(()=>!!(e.readonly??(o==null?void 0:o.isReadonly.value))),d=k(()=>{var _;return(_=e.errorMessages)!=null&&_.length?Et(e.errorMessages).concat(r.value).slice(0,Math.max(0,+e.maxErrors)):r.value}),f=k(()=>{let _=(e.validateOn??(o==null?void 0:o.validateOn.value))||"input";_==="lazy"&&(_="input lazy");const A=new Set((_==null?void 0:_.split(" "))??[]);return{blur:A.has("blur")||A.has("input"),input:A.has("input"),submit:A.has("submit"),lazy:A.has("lazy")}}),h=k(()=>{var _;return e.error||(_=e.errorMessages)!=null&&_.length?!1:e.rules.length?a.value?r.value.length||f.value.lazy?null:!0:!r.value.length:!0}),m=ge(!1),g=k(()=>({[`${t}--error`]:h.value===!1,[`${t}--dirty`]:l.value,[`${t}--disabled`]:c.value,[`${t}--readonly`]:u.value})),p=k(()=>e.name??Ze(n));Qc(()=>{o==null||o.register({id:p.value,validate:x,reset:v,resetValidation:b})}),zt(()=>{o==null||o.unregister(p.value)}),$t(async()=>{f.value.lazy||await x(!0),o==null||o.update(p.value,h.value,d.value)}),cs(()=>f.value.input,()=>{ue(i,()=>{if(i.value!=null)x();else if(e.focused){const _=ue(()=>e.focused,A=>{A||x(),_()})}})}),cs(()=>f.value.blur,()=>{ue(()=>e.focused,_=>{_||x()})}),ue([h,d],()=>{o==null||o.update(p.value,h.value,d.value)});function v(){s.value=null,ft(b)}function b(){a.value=!0,f.value.lazy?r.value=[]:x(!0)}async function x(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const A=[];m.value=!0;for(const P of e.rules){if(A.length>=+(e.maxErrors??1))break;const w=await(typeof P=="function"?P:()=>P)(i.value);if(w!==!0){if(w!==!1&&typeof w!="string"){console.warn(`${w} is not a valid value. Rule functions must return boolean true or a string.`);continue}A.push(w||"")}}return r.value=A,m.value=!1,a.value=_,r.value}return{errorMessages:d,isDirty:l,isDisabled:c,isReadonly:u,isPristine:a,isValid:h,isValidating:m,reset:v,resetValidation:b,validate:x,validationClasses:g}}const Dv=W({id:String,appendIcon:Fe,centerAffix:{type:Boolean,default:!0},prependIcon:Fe,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":Tt(),"onClick:append":Tt(),...Oe(),...Cn(),...bk()},"VInput"),nh=me()({name:"VInput",props:{...Dv()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:s,emit:i}=t;const{densityClasses:o}=Hn(e),{rtlClasses:r}=Sn(),{InputIcon:a}=Mv(e),l=rn(),c=k(()=>e.id||`input-${l}`),u=k(()=>`${c.value}-messages`),{errorMessages:d,isDirty:f,isDisabled:h,isReadonly:m,isPristine:g,isValid:p,isValidating:v,reset:b,resetValidation:x,validate:_,validationClasses:A}=xk(e,"v-input",c),P=k(()=>({id:c,messagesId:u,isDirty:f,isDisabled:h,isReadonly:m,isPristine:g,isValid:p,isValidating:v,reset:b,resetValidation:x,validate:_})),C=k(()=>{var w;return(w=e.errorMessages)!=null&&w.length||!g.value&&d.value.length?d.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages});return _e(()=>{var T,L,$,j;const w=!!(s.prepend||e.prependIcon),E=!!(s.append||e.appendIcon),O=C.value.length>0,D=!e.hideDetails||e.hideDetails==="auto"&&(O||!!s.details);return y("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--hide-spin-buttons":e.hideSpinButtons},o.value,r.value,A.value,e.class],style:e.style},[w&&y("div",{key:"prepend",class:"v-input__prepend"},[(T=s.prepend)==null?void 0:T.call(s,P.value),e.prependIcon&&y(a,{key:"prepend-icon",name:"prepend"},null)]),s.default&&y("div",{class:"v-input__control"},[(L=s.default)==null?void 0:L.call(s,P.value)]),E&&y("div",{key:"append",class:"v-input__append"},[e.appendIcon&&y(a,{key:"append-icon",name:"append"},null),($=s.append)==null?void 0:$.call(s,P.value)]),D&&y("div",{class:"v-input__details"},[y(vk,{id:u.value,active:O,messages:C.value},{message:s.message}),(j=s.details)==null?void 0:j.call(s,P.value)])])}),{reset:b,resetValidation:x,validate:_,isValid:p,errorMessages:d}}}),vl=Symbol("Forwarded refs");function yl(e,t){let n=e;for(;n;){const s=Reflect.getOwnPropertyDescriptor(n,t);if(s)return s;n=Object.getPrototypeOf(n)}}function Eu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return e[vl]=n,new Proxy(e,{get(i,o){if(Reflect.has(i,o))return Reflect.get(i,o);if(!(typeof o=="symbol"||o.startsWith("$")||o.startsWith("__"))){for(const r of n)if(r.value&&Reflect.has(r.value,o)){const a=Reflect.get(r.value,o);return typeof a=="function"?a.bind(r.value):a}}},has(i,o){if(Reflect.has(i,o))return!0;if(typeof o=="symbol"||o.startsWith("$")||o.startsWith("__"))return!1;for(const r of n)if(r.value&&Reflect.has(r.value,o))return!0;return!1},set(i,o,r){if(Reflect.has(i,o))return Reflect.set(i,o,r);if(typeof o=="symbol"||o.startsWith("$")||o.startsWith("__"))return!1;for(const a of n)if(a.value&&Reflect.has(a.value,o))return Reflect.set(a.value,o,r);return!1},getOwnPropertyDescriptor(i,o){var a;const r=Reflect.getOwnPropertyDescriptor(i,o);if(r)return r;if(!(typeof o=="symbol"||o.startsWith("$")||o.startsWith("__"))){for(const l of n){if(!l.value)continue;const c=yl(l.value,o)??("_"in l.value?yl((a=l.value._)==null?void 0:a.setupState,o):void 0);if(c)return c}for(const l of n){const c=l.value&&l.value[vl];if(!c)continue;const u=c.slice();for(;u.length;){const d=u.shift(),f=yl(d.value,o);if(f)return f;const h=d.value&&d.value[vl];h&&u.push(...h)}}}}})}function _k(e,t){if(!ou)return;const n=t.modifiers||{},s=t.value,{handler:i,options:o}=typeof s=="object"?s:{handler:s,options:{}},r=new IntersectionObserver(function(){var d;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const c=(d=e._observe)==null?void 0:d[t.instance.$.uid];if(!c)return;const u=a.some(f=>f.isIntersecting);i&&(!n.quiet||c.init)&&(!n.once||u||c.init)&&i(u,a,l),u&&n.once?Lv(e,t):c.init=!0},o);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:r},r.observe(e)}function Lv(e,t){var s;const n=(s=e._observe)==null?void 0:s[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const Sk={mounted:_k,unmounted:Lv},Fv=Sk,wk=["color","file","time","date","datetime-local","week","month"],Vv=W({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...Dv(),...Ov()},"VTextField"),ta=me()({name:"VTextField",directives:{Intersect:Fv},inheritAttrs:!1,props:Vv(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:s,slots:i}=t;const o=Ye(e,"modelValue"),{isFocused:r,focus:a,blur:l}=Tv(e),c=k(()=>typeof e.counterValue=="function"?e.counterValue(o.value):typeof e.counterValue=="number"?e.counterValue:(o.value??"").toString().length),u=k(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),d=k(()=>["plain","underlined"].includes(e.variant));function f(P,C){var w,E;!e.autofocus||!P||(E=(w=C[0].target)==null?void 0:w.focus)==null||E.call(w)}const h=Z(),m=Z(),g=Z(),p=k(()=>wk.includes(e.type)||e.persistentPlaceholder||r.value||e.active);function v(){var P;g.value!==document.activeElement&&((P=g.value)==null||P.focus()),r.value||a()}function b(P){s("mousedown:control",P),P.target!==g.value&&(v(),P.preventDefault())}function x(P){v(),s("click:control",P)}function _(P){P.stopPropagation(),v(),ft(()=>{o.value=null,C_(e["onClick:clear"],P)})}function A(P){var w;const C=P.target;if(o.value=C.value,(w=e.modelModifiers)!=null&&w.trim&&["text","search","password","tel","url"].includes(e.type)){const E=[C.selectionStart,C.selectionEnd];ft(()=>{C.selectionStart=E[0],C.selectionEnd=E[1]})}}return _e(()=>{const P=!!(i.counter||e.counter!==!1&&e.counter!=null),C=!!(P||i.details),[w,E]=tp(n),{modelValue:O,...D}=nh.filterProps(e),T=mk(e);return y(nh,be({ref:h,modelValue:o.value,"onUpdate:modelValue":L=>o.value=L,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":d.value},e.class],style:e.style},w,D,{centerAffix:!d.value,focused:r.value}),{...i,default:L=>{let{id:$,isDisabled:j,isDirty:K,isReadonly:q,isValid:I}=L;return y(Iv,be({ref:m,onMousedown:b,onClick:x,"onClick:clear":_,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},T,{id:$.value,active:p.value||K.value,dirty:K.value||e.dirty,disabled:j.value,focused:r.value,error:I.value===!1}),{...i,default:V=>{let{props:{class:re,...H}}=V;const Q=Xt(y("input",be({ref:g,value:o.value,onInput:A,autofocus:e.autofocus,readonly:q.value,disabled:j.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:v,onBlur:l},H,E),null),[[Gs("intersect"),{handler:f},null,{once:!0}]]);return y(Pe,null,[e.prefix&&y("span",{class:"v-text-field__prefix"},[y("span",{class:"v-text-field__prefix__text"},[e.prefix])]),i.default?y("div",{class:re,"data-no-activator":""},[i.default(),Q]):Vn(Q,{class:re}),e.suffix&&y("span",{class:"v-text-field__suffix"},[y("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:C?L=>{var $;return y(Pe,null,[($=i.details)==null?void 0:$.call(i,L),P&&y(Pe,null,[y("span",null,null),y(dk,{active:e.persistentCounter||r.value,value:c.value,max:u.value},i.counter)])])}:void 0})}),Eu({},h,m,g)}}),Ck={class:"d-flex flex-row"},kk=G("thead",null,[G("tr",null,[G("th",{class:"text-left"},"ID"),G("th",{class:"text-left"},"Title"),G("th",{class:"text-left"},"Staus"),G("th",{class:"text-left"},"Post Date")])],-1),Pk=["href"],Ak=["href"],Mk=$n({__name:"GameList",setup(e){const t=Oo(),n=hu(),s=Z([]);let i=Z(1);const o=Z(1);let r=10;const a=Z("");async function l(){const d=await ze.post("/api/game",{page:`${i.value-1}`,count:`${r}`,filter:a.value?`title:"${a.value}"`:"",orderBy:"id"});s.value=d.data.gameData,o.value=d.data.pageCount}function c(d){n.replace({query:{page:d,filter:t.query.filter}})}ue(t,(d,f)=>{t.query.page?i.value=Number(t.query.page):(n.replace({query:{page:1,filter:t.query.filter}}),i.value=1),t.query.filter&&(a.value=t.query.filter.toString()),l()});let u;return ue(a,(d,f)=>{clearTimeout(u),u=setTimeout(()=>{n.replace({query:{page:t.query.page,filter:d}})},500)}),$t(async()=>{t.query.page?i.value=Number(t.query.page):(n.replace({query:{page:1}}),i.value=1),t.query.filter&&(a.value=t.query.filter.toString()),l()}),(d,f)=>(Ct(),tn(Pe,null,[G("div",Ck,[y(ta,{class:"filter flex-1-0",placeholder:"Filter by Name",modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=h=>a.value=h)},null,8,["modelValue"])]),y($s,null,{default:Ve(()=>[kk,G("tbody",null,[(Ct(!0),tn(Pe,null,Sa(s.value,h=>(Ct(),tn("tr",null,[G("td",null,[G("a",{href:`/#/games/${h.id}`},ve(h.id),9,Pk)]),G("td",null,[G("a",{href:`/#/games/${h.id}`},ve(h.title),9,Ak)]),G("td",null,ve(h.status),1),G("td",null,ve(new Date(h.postdate*1e3).toISOString().split("T")[0]),1)]))),256))])]),_:1}),y(ea,{"model-value":Ze(i),length:o.value,"onUpdate:modelValue":f[1]||(f[1]=h=>c(h))},null,8,["model-value","length"])],64))}});function Ek(e){return{aspectStyles:k(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const Bv=W({aspectRatio:[String,Number],contentClass:String,inline:Boolean,...Oe(),...Xs()},"VResponsive"),sh=me()({name:"VResponsive",props:Bv(),setup(e,t){let{slots:n}=t;const{aspectStyles:s}=Ek(e),{dimensionStyles:i}=Js(e);return _e(()=>{var o;return y("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[i.value,e.style]},[y("div",{class:"v-responsive__sizer",style:s.value},null),(o=n.additional)==null?void 0:o.call(n),n.default&&y("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}}),Tk=W({alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...Bv(),...Oe(),...Jt(),...Lo()},"VImg"),Nv=me()({name:"VImg",directives:{intersect:Fv},props:Tk(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:s}=t;const{backgroundColorClasses:i,backgroundColorStyles:o}=xn(le(e,"color")),{roundedClasses:r}=an(e),a=it("VImg"),l=ge(""),c=Z(),u=ge(e.eager?"loading":"idle"),d=ge(),f=ge(),h=k(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),m=k(()=>h.value.aspect||d.value/f.value||0);ue(()=>e.src,()=>{g(u.value!=="idle")}),ue(m,(T,L)=>{!T&&L&&c.value&&_(c.value)}),Qc(()=>g());function g(T){if(!(e.eager&&T)&&!(ou&&!T&&!e.eager)){if(u.value="loading",h.value.lazySrc){const L=new Image;L.src=h.value.lazySrc,_(L,null)}h.value.src&&ft(()=>{var L;n("loadstart",((L=c.value)==null?void 0:L.currentSrc)||h.value.src),setTimeout(()=>{var $;if(!a.isUnmounted)if(($=c.value)!=null&&$.complete){if(c.value.naturalWidth||v(),u.value==="error")return;m.value||_(c.value,null),u.value==="loading"&&p()}else m.value||_(c.value),b()})})}}function p(){var T;a.isUnmounted||(b(),_(c.value),u.value="loaded",n("load",((T=c.value)==null?void 0:T.currentSrc)||h.value.src))}function v(){var T;a.isUnmounted||(u.value="error",n("error",((T=c.value)==null?void 0:T.currentSrc)||h.value.src))}function b(){const T=c.value;T&&(l.value=T.currentSrc||T.src)}let x=-1;zt(()=>{clearTimeout(x)});function _(T){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const $=()=>{if(clearTimeout(x),a.isUnmounted)return;const{naturalHeight:j,naturalWidth:K}=T;j||K?(d.value=K,f.value=j):!T.complete&&u.value==="loading"&&L!=null?x=window.setTimeout($,L):(T.currentSrc.endsWith(".svg")||T.currentSrc.startsWith("data:image/svg+xml"))&&(d.value=1,f.value=1)};$()}const A=k(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),P=()=>{var $;if(!h.value.src||u.value==="idle")return null;const T=y("img",{class:["v-img__img",A.value],style:{objectPosition:e.position},src:h.value.src,srcset:h.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:c,onLoad:p,onError:v},null),L=($=s.sources)==null?void 0:$.call(s);return y(es,{transition:e.transition,appear:!0},{default:()=>[Xt(L?y("picture",{class:"v-img__picture"},[L,T]):T,[[wi,u.value==="loaded"]])]})},C=()=>y(es,{transition:e.transition},{default:()=>[h.value.lazySrc&&u.value!=="loaded"&&y("img",{class:["v-img__img","v-img__img--preload",A.value],style:{objectPosition:e.position},src:h.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),w=()=>s.placeholder?y(es,{transition:e.transition,appear:!0},{default:()=>[(u.value==="loading"||u.value==="error"&&!s.error)&&y("div",{class:"v-img__placeholder"},[s.placeholder()])]}):null,E=()=>s.error?y(es,{transition:e.transition,appear:!0},{default:()=>[u.value==="error"&&y("div",{class:"v-img__error"},[s.error()])]}):null,O=()=>e.gradient?y("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,D=ge(!1);{const T=ue(m,L=>{L&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{D.value=!0})}),T())})}return _e(()=>{const T=sh.filterProps(e);return Xt(y(sh,be({class:["v-img",{"v-img--booting":!D.value},i.value,r.value,e.class],style:[{width:fe(e.width==="auto"?d.value:e.width)},o.value,e.style]},T,{aspectRatio:m.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>y(Pe,null,[y(P,null,null),y(C,null,null),y(O,null,null),y(w,null,null),y(E,null,null)]),default:s.default}),[[Gs("intersect"),{handler:g,options:e.options},null,{once:!0}]])}),{currentSrc:l,image:c,state:u,naturalWidth:d,naturalHeight:f}}}),Ok=W({start:Boolean,end:Boolean,icon:Fe,image:String,text:String,...Oe(),...Cn(),...Jt(),...Ai(),...at(),...rt(),...ps({variant:"flat"})},"VAvatar"),yo=me()({name:"VAvatar",props:Ok(),setup(e,t){let{slots:n}=t;const{themeClasses:s}=ht(e),{colorClasses:i,colorStyles:o,variantClasses:r}=Ba(e),{densityClasses:a}=Hn(e),{roundedClasses:l}=an(e),{sizeClasses:c,sizeStyles:u}=Do(e);return _e(()=>y(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},s.value,i.value,a.value,l.value,c.value,r.value,e.class],style:[o.value,u.value,e.style]},{default:()=>[n.default?y(bt,{key:"content-defaults",defaults:{VImg:{cover:!0,image:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?y(Nv,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?y(mt,{key:"icon",icon:e.icon},null):e.text,Va(!1,"v-avatar")]})),{}}}),$v=Symbol.for("vuetify:selection-control-group"),zv=W({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:Fe,trueIcon:Fe,ripple:{type:Boolean,default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:hs},...Oe(),...Cn(),...rt()},"SelectionControlGroup"),Ik=W({...zv({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");me()({name:"VSelectionControlGroup",props:Ik(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const s=Ye(e,"modelValue"),i=rn(),o=k(()=>e.id||`v-selection-control-group-${i}`),r=k(()=>e.name||o.value),a=new Set;return Je($v,{modelValue:s,forceUpdate:()=>{a.forEach(l=>l())},onForceUpdate:l=>{a.add(l),Rt(()=>{a.delete(l)})}}),bn({[e.defaultsTarget]:{color:le(e,"color"),disabled:le(e,"disabled"),density:le(e,"density"),error:le(e,"error"),inline:le(e,"inline"),modelValue:s,multiple:k(()=>!!e.multiple||e.multiple==null&&Array.isArray(s.value)),name:r,falseIcon:le(e,"falseIcon"),trueIcon:le(e,"trueIcon"),readonly:le(e,"readonly"),ripple:le(e,"ripple"),type:le(e,"type"),valueComparator:le(e,"valueComparator")}}),_e(()=>{var l;return y("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class],style:e.style,role:e.type==="radio"?"radiogroup":void 0},[(l=n.default)==null?void 0:l.call(n)])}),{}}});const Hv=W({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...Oe(),...zv()},"VSelectionControl");function Rk(e){const t=Te($v,void 0),{densityClasses:n}=Hn(e),s=Ye(e,"modelValue"),i=k(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),o=k(()=>e.falseValue!==void 0?e.falseValue:!1),r=k(()=>!!e.multiple||e.multiple==null&&Array.isArray(s.value)),a=k({get(){const h=t?t.modelValue.value:s.value;return r.value?Et(h).some(m=>e.valueComparator(m,i.value)):e.valueComparator(h,i.value)},set(h){if(e.readonly)return;const m=h?i.value:o.value;let g=m;r.value&&(g=h?[...Et(s.value),m]:Et(s.value).filter(p=>!e.valueComparator(p,i.value))),t?t.modelValue.value=g:s.value=g}}),{textColorClasses:l,textColorStyles:c}=Nn(k(()=>{if(!(e.error||e.disabled))return a.value?e.color:e.baseColor})),{backgroundColorClasses:u,backgroundColorStyles:d}=xn(k(()=>a.value&&!e.error&&!e.disabled?e.color:void 0)),f=k(()=>a.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:i,falseValue:o,model:a,textColorClasses:l,textColorStyles:c,backgroundColorClasses:u,backgroundColorStyles:d,icon:f}}const ih=me()({name:"VSelectionControl",directives:{Ripple:Na},inheritAttrs:!1,props:Hv(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:s}=t;const{group:i,densityClasses:o,icon:r,model:a,textColorClasses:l,textColorStyles:c,backgroundColorClasses:u,backgroundColorStyles:d,trueValue:f}=Rk(e),h=rn(),m=ge(!1),g=ge(!1),p=Z(),v=k(()=>e.id||`input-${h}`),b=k(()=>!e.disabled&&!e.readonly);i==null||i.onForceUpdate(()=>{p.value&&(p.value.checked=a.value)});function x(C){b.value&&(m.value=!0,Ur(C.target,":focus-visible")!==!1&&(g.value=!0))}function _(){m.value=!1,g.value=!1}function A(C){C.stopPropagation()}function P(C){b.value&&(e.readonly&&i&&ft(()=>i.forceUpdate()),a.value=C.target.checked)}return _e(()=>{var D,T;const C=s.label?s.label({label:e.label,props:{for:v.value}}):e.label,[w,E]=tp(n),O=y("input",be({ref:p,checked:a.value,disabled:!!e.disabled,id:v.value,onBlur:_,onFocus:x,onInput:P,"aria-disabled":!!e.disabled,type:e.type,value:f.value,name:e.name,"aria-checked":e.type==="checkbox"?a.value:void 0},E),null);return y("div",be({class:["v-selection-control",{"v-selection-control--dirty":a.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":m.value,"v-selection-control--focus-visible":g.value,"v-selection-control--inline":e.inline},o.value,e.class]},w,{style:e.style}),[y("div",{class:["v-selection-control__wrapper",l.value],style:c.value},[(D=s.default)==null?void 0:D.call(s,{backgroundColorClasses:u,backgroundColorStyles:d}),Xt(y("div",{class:["v-selection-control__input"]},[((T=s.input)==null?void 0:T.call(s,{model:a,textColorClasses:l,textColorStyles:c,backgroundColorClasses:u,backgroundColorStyles:d,inputNode:O,icon:r.value,props:{onFocus:x,onBlur:_,id:v.value}}))??y(Pe,null,[r.value&&y(mt,{key:"icon",icon:r.value},null),O])]),[[Gs("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),C&&y(Ut,{for:v.value,onClick:A},{default:()=>[C]})])}),{isFocused:m,input:p}}}),Dk=W({indeterminate:Boolean,indeterminateIcon:{type:Fe,default:"$checkboxIndeterminate"},...Hv({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),$a=me()({name:"VCheckboxBtn",props:Dk(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const s=Ye(e,"indeterminate"),i=Ye(e,"modelValue");function o(l){s.value&&(s.value=!1)}const r=k(()=>s.value?e.indeterminateIcon:e.falseIcon),a=k(()=>s.value?e.indeterminateIcon:e.trueIcon);return _e(()=>{const l=Ci(ih.filterProps(e),["modelValue"]);return y(ih,be(l,{modelValue:i.value,"onUpdate:modelValue":[c=>i.value=c,o],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:r.value,trueIcon:a.value,"aria-checked":s.value?"mixed":void 0}),n)}),{}}});function oh(e){const n=Math.abs(e);return Math.sign(e)*(n/((1/.501-2)*(1-n)+1))}function rh(e){let{selectedElement:t,containerSize:n,contentSize:s,isRtl:i,currentScrollOffset:o,isHorizontal:r}=e;const a=r?t.clientWidth:t.clientHeight,l=r?t.offsetLeft:t.offsetTop,c=i&&r?s-l-a:l,u=n+o,d=a+c,f=a*.4;return c<=o?o=Math.max(c-f,0):u<=d&&(o=Math.min(o-(u-d-f),s-n)),o}function Lk(e){let{selectedElement:t,containerSize:n,contentSize:s,isRtl:i,isHorizontal:o}=e;const r=o?t.clientWidth:t.clientHeight,a=o?t.offsetLeft:t.offsetTop,l=i&&o?s-a-r/2-n/2:a+r/2-n/2;return Math.min(s-n,Math.max(0,l))}const Fk=Symbol.for("vuetify:v-slide-group"),jv=W({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:Fk},nextIcon:{type:Fe,default:"$next"},prevIcon:{type:Fe,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile"].includes(e)},...Oe(),...ZS(),...at(),..._u({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),ah=me()({name:"VSlideGroup",props:jv(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:s}=Sn(),{displayClasses:i,mobile:o}=Ma(e),r=Su(e,e.symbol),a=ge(!1),l=ge(0),c=ge(0),u=ge(0),d=k(()=>e.direction==="horizontal"),{resizeRef:f,contentRect:h}=Ns(),{resizeRef:m,contentRect:g}=Ns(),p=k(()=>r.selected.value.length?r.items.value.findIndex(H=>H.id===r.selected.value[0]):-1),v=k(()=>r.selected.value.length?r.items.value.findIndex(H=>H.id===r.selected.value[r.selected.value.length-1]):-1);if(Ge){let H=-1;ue(()=>[r.selected.value,h.value,g.value,d.value],()=>{cancelAnimationFrame(H),H=requestAnimationFrame(()=>{if(h.value&&g.value){const Q=d.value?"width":"height";c.value=h.value[Q],u.value=g.value[Q],a.value=c.value+1<u.value}if(p.value>=0&&m.value){const Q=m.value.children[v.value];p.value===0||!a.value?l.value=0:e.centerActive?l.value=Lk({selectedElement:Q,containerSize:c.value,contentSize:u.value,isRtl:s.value,isHorizontal:d.value}):a.value&&(l.value=rh({selectedElement:Q,containerSize:c.value,contentSize:u.value,isRtl:s.value,currentScrollOffset:l.value,isHorizontal:d.value}))}})})}const b=ge(!1);let x=0,_=0;function A(H){const Q=d.value?"clientX":"clientY";_=(s.value&&d.value?-1:1)*l.value,x=H.touches[0][Q],b.value=!0}function P(H){if(!a.value)return;const Q=d.value?"clientX":"clientY",Y=s.value&&d.value?-1:1;l.value=Y*(_+x-H.touches[0][Q])}function C(H){const Q=u.value-c.value;l.value<0||!a.value?l.value=0:l.value>=Q&&(l.value=Q),b.value=!1}function w(){f.value&&(f.value[d.value?"scrollLeft":"scrollTop"]=0)}const E=ge(!1);function O(H){if(E.value=!0,!(!a.value||!m.value)){for(const Q of H.composedPath())for(const Y of m.value.children)if(Y===Q){l.value=rh({selectedElement:Y,containerSize:c.value,contentSize:u.value,isRtl:s.value,currentScrollOffset:l.value,isHorizontal:d.value});return}}}function D(H){E.value=!1}function T(H){var Q;!E.value&&!(H.relatedTarget&&((Q=m.value)!=null&&Q.contains(H.relatedTarget)))&&$()}function L(H){m.value&&(d.value?H.key==="ArrowRight"?$(s.value?"prev":"next"):H.key==="ArrowLeft"&&$(s.value?"next":"prev"):H.key==="ArrowDown"?$("next"):H.key==="ArrowUp"&&$("prev"),H.key==="Home"?$("first"):H.key==="End"&&$("last"))}function $(H){var Q,Y,de,he,ie;if(m.value)if(!H)(Q=jr(m.value)[0])==null||Q.focus();else if(H==="next"){const F=(Y=m.value.querySelector(":focus"))==null?void 0:Y.nextElementSibling;F?F.focus():$("first")}else if(H==="prev"){const F=(de=m.value.querySelector(":focus"))==null?void 0:de.previousElementSibling;F?F.focus():$("last")}else H==="first"?(he=m.value.firstElementChild)==null||he.focus():H==="last"&&((ie=m.value.lastElementChild)==null||ie.focus())}function j(H){const Q=l.value+(H==="prev"?-1:1)*c.value;l.value=nn(Q,0,u.value-c.value)}const K=k(()=>{let H=l.value>u.value-c.value?-(u.value-c.value)+oh(u.value-c.value-l.value):-l.value;l.value<=0&&(H=oh(-l.value));const Q=s.value&&d.value?-1:1;return{transform:`translate${d.value?"X":"Y"}(${Q*H}px)`,transition:b.value?"none":"",willChange:b.value?"transform":""}}),q=k(()=>({next:r.next,prev:r.prev,select:r.select,isSelected:r.isSelected})),I=k(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!o.value;case!0:return a.value||Math.abs(l.value)>0;case"mobile":return o.value||a.value||Math.abs(l.value)>0;default:return!o.value&&(a.value||Math.abs(l.value)>0)}}),V=k(()=>Math.abs(l.value)>0),re=k(()=>u.value>Math.abs(l.value)+c.value);return _e(()=>y(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":I.value,"v-slide-group--is-overflowing":a.value},i.value,e.class],style:e.style,tabindex:E.value||r.selected.value.length?-1:0,onFocus:T},{default:()=>{var H,Q,Y;return[I.value&&y("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!V.value}],onClick:()=>V.value&&j("prev")},[((H=n.prev)==null?void 0:H.call(n,q.value))??y(th,null,{default:()=>[y(mt,{icon:s.value?e.nextIcon:e.prevIcon},null)]})]),y("div",{key:"container",ref:f,class:"v-slide-group__container",onScroll:w},[y("div",{ref:m,class:"v-slide-group__content",style:K.value,onTouchstartPassive:A,onTouchmovePassive:P,onTouchendPassive:C,onFocusin:O,onFocusout:D,onKeydown:L},[(Q=n.default)==null?void 0:Q.call(n,q.value)])]),I.value&&y("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!re.value}],onClick:()=>re.value&&j("next")},[((Y=n.next)==null?void 0:Y.call(n,q.value))??y(th,null,{default:()=>[y(mt,{icon:s.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:r.selected,scrollTo:j,scrollOffset:l,focus:$}}}),Wv=Symbol.for("vuetify:v-chip-group"),Vk=W({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:hs},...jv(),...Oe(),..._u({selectedClass:"v-chip--selected"}),...at(),...rt(),...ps({variant:"tonal"})},"VChipGroup");me()({name:"VChipGroup",props:Vk(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:s}=ht(e),{isSelected:i,select:o,next:r,prev:a,selected:l}=Su(e,Wv);return bn({VChip:{color:le(e,"color"),disabled:le(e,"disabled"),filter:le(e,"filter"),variant:le(e,"variant")}}),_e(()=>{const c=ah.filterProps(e);return y(ah,be(c,{class:["v-chip-group",{"v-chip-group--column":e.column},s.value,e.class],style:e.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:i,select:o,next:r,prev:a,selected:l.value})]}})}),{}}});const Bk=W({activeClass:String,appendAvatar:String,appendIcon:Fe,closable:Boolean,closeIcon:{type:Fe,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Fe,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:Tt(),onClickOnce:Tt(),...gs(),...Oe(),...Cn(),...ms(),...ov(),...Jt(),...Mu(),...Ai(),...at({tag:"span"}),...rt(),...ps({variant:"tonal"})},"VChip"),Nk=me()({name:"VChip",directives:{Ripple:Na},props:Bk(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:s,slots:i}=t;const{t:o}=Ks(),{borderClasses:r}=qs(e),{colorClasses:a,colorStyles:l,variantClasses:c}=Ba(e),{densityClasses:u}=Hn(e),{elevationClasses:d}=Ys(e),{roundedClasses:f}=an(e),{sizeClasses:h}=Do(e),{themeClasses:m}=ht(e),g=Ye(e,"modelValue"),p=rv(e,Wv,!1),v=Au(e,n),b=k(()=>e.link!==!1&&v.isLink.value),x=k(()=>!e.disabled&&e.link!==!1&&(!!p||e.link||v.isClickable.value)),_=k(()=>({"aria-label":o(e.closeLabel),onClick(C){C.stopPropagation(),g.value=!1,s("click:close",C)}}));function A(C){var w;s("click",C),x.value&&((w=v.navigate)==null||w.call(v,C),p==null||p.toggle())}function P(C){(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),A(C))}return()=>{const C=v.isLink.value?"a":e.tag,w=!!(e.appendIcon||e.appendAvatar),E=!!(w||i.append),O=!!(i.close||e.closable),D=!!(i.filter||e.filter)&&p,T=!!(e.prependIcon||e.prependAvatar),L=!!(T||i.prepend),$=!p||p.isSelected.value;return g.value&&Xt(y(C,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":x.value,"v-chip--filter":D,"v-chip--pill":e.pill},m.value,r.value,$?a.value:void 0,u.value,d.value,f.value,h.value,c.value,p==null?void 0:p.selectedClass.value,e.class],style:[$?l.value:void 0,e.style],disabled:e.disabled||void 0,draggable:e.draggable,href:v.href.value,tabindex:x.value?0:void 0,onClick:A,onKeydown:x.value&&!b.value&&P},{default:()=>{var j;return[Va(x.value,"v-chip"),D&&y(Av,{key:"filter"},{default:()=>[Xt(y("div",{class:"v-chip__filter"},[i.filter?y(bt,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},i.filter):y(mt,{key:"filter-icon",icon:e.filterIcon},null)]),[[wi,p.isSelected.value]])]}),L&&y("div",{key:"prepend",class:"v-chip__prepend"},[i.prepend?y(bt,{key:"prepend-defaults",disabled:!T,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},i.prepend):y(Pe,null,[e.prependIcon&&y(mt,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&y(yo,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),y("div",{class:"v-chip__content","data-no-activator":""},[((j=i.default)==null?void 0:j.call(i,{isSelected:p==null?void 0:p.isSelected.value,selectedClass:p==null?void 0:p.selectedClass.value,select:p==null?void 0:p.select,toggle:p==null?void 0:p.toggle,value:p==null?void 0:p.value.value,disabled:e.disabled}))??e.text]),E&&y("div",{key:"append",class:"v-chip__append"},[i.append?y(bt,{key:"append-defaults",disabled:!w,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},i.append):y(Pe,null,[e.appendIcon&&y(mt,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&y(yo,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),O&&y("button",be({key:"close",class:"v-chip__close",type:"button"},_.value),[i.close?y(bt,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},i.close):y(mt,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[Gs("ripple"),x.value&&e.ripple,null]])}}}),lc=Symbol.for("vuetify:list");function Uv(){const e=Te(lc,{hasPrepend:ge(!1),updateHasPrepend:()=>null}),t={hasPrepend:ge(!1),updateHasPrepend:n=>{n&&(t.hasPrepend.value=n)}};return Je(lc,t),e}function Gv(){return Te(lc,null)}const $k={open:e=>{let{id:t,value:n,opened:s,parents:i}=e;if(n){const o=new Set;o.add(t);let r=i.get(t);for(;r!=null;)o.add(r),r=i.get(r);return o}else return s.delete(t),s},select:()=>null},Kv={open:e=>{let{id:t,value:n,opened:s,parents:i}=e;if(n){let o=i.get(t);for(s.add(t);o!=null&&o!==t;)s.add(o),o=i.get(o);return s}else s.delete(t);return s},select:()=>null},zk={open:Kv.open,select:e=>{let{id:t,value:n,opened:s,parents:i}=e;if(!n)return s;const o=[];let r=i.get(t);for(;r!=null;)o.push(r),r=i.get(r);return new Set(o)}},Tu=e=>{const t={select:n=>{let{id:s,value:i,selected:o}=n;if(s=ke(s),e&&!i){const r=Array.from(o.entries()).reduce((a,l)=>{let[c,u]=l;return u==="on"?[...a,c]:a},[]);if(r.length===1&&r[0]===s)return o}return o.set(s,i?"on":"off"),o},in:(n,s,i)=>{let o=new Map;for(const r of n||[])o=t.select({id:r,value:!0,selected:new Map(o),children:s,parents:i});return o},out:n=>{const s=[];for(const[i,o]of n.entries())o==="on"&&s.push(i);return s}};return t},qv=e=>{const t=Tu(e);return{select:s=>{let{selected:i,id:o,...r}=s;o=ke(o);const a=i.has(o)?new Map([[o,i.get(o)]]):new Map;return t.select({...r,id:o,selected:a})},in:(s,i,o)=>{let r=new Map;return s!=null&&s.length&&(r=t.in(s.slice(0,1),i,o)),r},out:(s,i,o)=>t.out(s,i,o)}},Hk=e=>{const t=Tu(e);return{select:s=>{let{id:i,selected:o,children:r,...a}=s;return i=ke(i),r.has(i)?o:t.select({id:i,selected:o,children:r,...a})},in:t.in,out:t.out}},jk=e=>{const t=qv(e);return{select:s=>{let{id:i,selected:o,children:r,...a}=s;return i=ke(i),r.has(i)?o:t.select({id:i,selected:o,children:r,...a})},in:t.in,out:t.out}},Wk=e=>{const t={select:n=>{let{id:s,value:i,selected:o,children:r,parents:a}=n;s=ke(s);const l=new Map(o),c=[s];for(;c.length;){const d=c.shift();o.set(d,i?"on":"off"),r.has(d)&&c.push(...r.get(d))}let u=a.get(s);for(;u;){const d=r.get(u),f=d.every(m=>o.get(m)==="on"),h=d.every(m=>!o.has(m)||o.get(m)==="off");o.set(u,f?"on":h?"off":"indeterminate"),u=a.get(u)}return e&&!i&&Array.from(o.entries()).reduce((f,h)=>{let[m,g]=h;return g==="on"?[...f,m]:f},[]).length===0?l:o},in:(n,s,i)=>{let o=new Map;for(const r of n||[])o=t.select({id:r,value:!0,selected:new Map(o),children:s,parents:i});return o},out:(n,s)=>{const i=[];for(const[o,r]of n.entries())r==="on"&&!s.has(o)&&i.push(o);return i}};return t},bo=Symbol.for("vuetify:nested"),Yv={id:ge(),root:{register:()=>null,unregister:()=>null,parents:Z(new Map),children:Z(new Map),open:()=>null,openOnSelect:()=>null,select:()=>null,opened:Z(new Set),selected:Z(new Map),selectedValues:Z([])}},Uk=W({selectStrategy:[String,Function],openStrategy:[String,Object],opened:Array,selected:Array,mandatory:Boolean},"nested"),Gk=e=>{let t=!1;const n=Z(new Map),s=Z(new Map),i=Ye(e,"opened",e.opened,d=>new Set(d),d=>[...d.values()]),o=k(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single-leaf":return jk(e.mandatory);case"leaf":return Hk(e.mandatory);case"independent":return Tu(e.mandatory);case"single-independent":return qv(e.mandatory);case"classic":default:return Wk(e.mandatory)}}),r=k(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return zk;case"single":return $k;case"multiple":default:return Kv}}),a=Ye(e,"selected",e.selected,d=>o.value.in(d,n.value,s.value),d=>o.value.out(d,n.value,s.value));zt(()=>{t=!0});function l(d){const f=[];let h=d;for(;h!=null;)f.unshift(h),h=s.value.get(h);return f}const c=it("nested"),u={id:ge(),root:{opened:i,selected:a,selectedValues:k(()=>{const d=[];for(const[f,h]of a.value.entries())h==="on"&&d.push(f);return d}),register:(d,f,h)=>{f&&d!==f&&s.value.set(d,f),h&&n.value.set(d,[]),f!=null&&n.value.set(f,[...n.value.get(f)||[],d])},unregister:d=>{if(t)return;n.value.delete(d);const f=s.value.get(d);if(f){const h=n.value.get(f)??[];n.value.set(f,h.filter(m=>m!==d))}s.value.delete(d),i.value.delete(d)},open:(d,f,h)=>{c.emit("click:open",{id:d,value:f,path:l(d),event:h});const m=r.value.open({id:d,value:f,opened:new Set(i.value),children:n.value,parents:s.value,event:h});m&&(i.value=m)},openOnSelect:(d,f,h)=>{const m=r.value.select({id:d,value:f,selected:new Map(a.value),opened:new Set(i.value),children:n.value,parents:s.value,event:h});m&&(i.value=m)},select:(d,f,h)=>{c.emit("click:select",{id:d,value:f,path:l(d),event:h});const m=o.value.select({id:d,value:f,selected:new Map(a.value),children:n.value,parents:s.value,event:h});m&&(a.value=m),u.root.openOnSelect(d,f,h)},children:n,parents:s}};return Je(bo,u),u.root},Xv=(e,t)=>{const n=Te(bo,Yv),s=Symbol(rn()),i=k(()=>e.value!==void 0?e.value:s),o={...n,id:i,open:(r,a)=>n.root.open(i.value,r,a),openOnSelect:(r,a)=>n.root.openOnSelect(i.value,r,a),isOpen:k(()=>n.root.opened.value.has(i.value)),parent:k(()=>n.root.parents.value.get(i.value)),select:(r,a)=>n.root.select(i.value,r,a),isSelected:k(()=>n.root.selected.value.get(ke(i.value))==="on"),isIndeterminate:k(()=>n.root.selected.value.get(i.value)==="indeterminate"),isLeaf:k(()=>!n.root.children.value.get(i.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(i.value,n.id.value,t),zt(()=>{!n.isGroupActivator&&n.root.unregister(i.value)}),t&&Je(bo,o),o},Kk=()=>{const e=Te(bo,Yv);Je(bo,{...e,isGroupActivator:!0})};function Ou(){const e=ge(!1);return $t(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:k(()=>e.value?void 0:{transition:"none !important"}),isBooted:Mo(e)}}const qk=ki({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return Kk(),()=>{var s;return(s=n.default)==null?void 0:s.call(n)}}}),Yk=W({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Fe,default:"$collapse"},expandIcon:{type:Fe,default:"$expand"},prependIcon:Fe,appendIcon:Fe,fluid:Boolean,subgroup:Boolean,title:String,value:null,...Oe(),...at()},"VListGroup"),lh=me()({name:"VListGroup",props:Yk(),setup(e,t){let{slots:n}=t;const{isOpen:s,open:i,id:o}=Xv(le(e,"value"),!0),r=k(()=>`v-list-group--id-${String(o.value)}`),a=Gv(),{isBooted:l}=Ou();function c(h){i(!s.value,h)}const u=k(()=>({onClick:c,class:"v-list-group__header",id:r.value})),d=k(()=>s.value?e.collapseIcon:e.expandIcon),f=k(()=>({VListItem:{active:s.value,activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&d.value,appendIcon:e.appendIcon||!e.subgroup&&d.value,title:e.title,value:e.value}}));return _e(()=>y(e.tag,{class:["v-list-group",{"v-list-group--prepend":a==null?void 0:a.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":s.value},e.class],style:e.style},{default:()=>[n.activator&&y(bt,{defaults:f.value},{default:()=>[y(qk,null,{default:()=>[n.activator({props:u.value,isOpen:s.value})]})]}),y(es,{transition:{component:Pv},disabled:!l.value},{default:()=>{var h;return[Xt(y("div",{class:"v-list-group__items",role:"group","aria-labelledby":r.value},[(h=n.default)==null?void 0:h.call(n)]),[[wi,s.value]])]}})]})),{}}}),Xk=hp("v-list-item-subtitle"),Jk=hp("v-list-item-title"),Zk=W({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Fe,baseColor:String,disabled:Boolean,lines:String,link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Fe,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:Tt(),onClickOnce:Tt(),...gs(),...Oe(),...Cn(),...Xs(),...ms(),...Jt(),...Mu(),...at(),...rt(),...ps({variant:"text"})},"VListItem"),na=me()({name:"VListItem",directives:{Ripple:Na},props:Zk(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:s,emit:i}=t;const o=Au(e,n),r=k(()=>e.value===void 0?o.href.value:e.value),{select:a,isSelected:l,isIndeterminate:c,isGroupActivator:u,root:d,parent:f,openOnSelect:h}=Xv(r,!1),m=Gv(),g=k(()=>{var I;return e.active!==!1&&(e.active||((I=o.isActive)==null?void 0:I.value)||l.value)}),p=k(()=>e.link!==!1&&o.isLink.value),v=k(()=>!e.disabled&&e.link!==!1&&(e.link||o.isClickable.value||e.value!=null&&!!m)),b=k(()=>e.rounded||e.nav),x=k(()=>e.color??e.activeColor),_=k(()=>({color:g.value?x.value??e.baseColor:e.baseColor,variant:e.variant}));ue(()=>{var I;return(I=o.isActive)==null?void 0:I.value},I=>{I&&f.value!=null&&d.open(f.value,!0),I&&h(I)},{immediate:!0});const{themeClasses:A}=ht(e),{borderClasses:P}=qs(e),{colorClasses:C,colorStyles:w,variantClasses:E}=Ba(_),{densityClasses:O}=Hn(e),{dimensionStyles:D}=Js(e),{elevationClasses:T}=Ys(e),{roundedClasses:L}=an(b),$=k(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),j=k(()=>({isActive:g.value,select:a,isSelected:l.value,isIndeterminate:c.value}));function K(I){var V;i("click",I),!(u||!v.value)&&((V=o.navigate)==null||V.call(o,I),e.value!=null&&a(!l.value,I))}function q(I){(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),K(I))}return _e(()=>{const I=p.value?"a":e.tag,V=s.title||e.title!=null,re=s.subtitle||e.subtitle!=null,H=!!(e.appendAvatar||e.appendIcon),Q=!!(H||s.append),Y=!!(e.prependAvatar||e.prependIcon),de=!!(Y||s.prepend);return m==null||m.updateHasPrepend(de),e.activeColor&&V_("active-color",["color","base-color"]),Xt(y(I,{class:["v-list-item",{"v-list-item--active":g.value,"v-list-item--disabled":e.disabled,"v-list-item--link":v.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!de&&(m==null?void 0:m.hasPrepend.value),"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&g.value},A.value,P.value,C.value,O.value,T.value,$.value,L.value,E.value,e.class],style:[w.value,D.value,e.style],href:o.href.value,tabindex:v.value?m?-2:0:void 0,onClick:K,onKeydown:v.value&&!p.value&&q},{default:()=>{var he;return[Va(v.value||g.value,"v-list-item"),de&&y("div",{key:"prepend",class:"v-list-item__prepend"},[s.prepend?y(bt,{key:"prepend-defaults",disabled:!Y,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var ie;return[(ie=s.prepend)==null?void 0:ie.call(s,j.value)]}}):y(Pe,null,[e.prependAvatar&&y(yo,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&y(mt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),y("div",{class:"v-list-item__spacer"},null)]),y("div",{class:"v-list-item__content","data-no-activator":""},[V&&y(Jk,{key:"title"},{default:()=>{var ie;return[((ie=s.title)==null?void 0:ie.call(s,{title:e.title}))??e.title]}}),re&&y(Xk,{key:"subtitle"},{default:()=>{var ie;return[((ie=s.subtitle)==null?void 0:ie.call(s,{subtitle:e.subtitle}))??e.subtitle]}}),(he=s.default)==null?void 0:he.call(s,j.value)]),Q&&y("div",{key:"append",class:"v-list-item__append"},[s.append?y(bt,{key:"append-defaults",disabled:!H,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var ie;return[(ie=s.append)==null?void 0:ie.call(s,j.value)]}}):y(Pe,null,[e.appendIcon&&y(mt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&y(yo,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),y("div",{class:"v-list-item__spacer"},null)])]}}),[[Gs("ripple"),v.value&&e.ripple]])}),{}}}),Qk=W({color:String,inset:Boolean,sticky:Boolean,title:String,...Oe(),...at()},"VListSubheader"),eP=me()({name:"VListSubheader",props:Qk(),setup(e,t){let{slots:n}=t;const{textColorClasses:s,textColorStyles:i}=Nn(le(e,"color"));return _e(()=>{const o=!!(n.default||e.title);return y(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},s.value,e.class],style:[{textColorStyles:i},e.style]},{default:()=>{var r;return[o&&y("div",{class:"v-list-subheader__text"},[((r=n.default)==null?void 0:r.call(n))??e.title])]}})}),{}}}),tP=W({color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean,...Oe(),...rt()},"VDivider"),Jv=me()({name:"VDivider",props:tP(),setup(e,t){let{attrs:n}=t;const{themeClasses:s}=ht(e),{textColorClasses:i,textColorStyles:o}=Nn(le(e,"color")),r=k(()=>{const a={};return e.length&&(a[e.vertical?"maxHeight":"maxWidth"]=fe(e.length)),e.thickness&&(a[e.vertical?"borderRightWidth":"borderTopWidth"]=fe(e.thickness)),a});return _e(()=>y("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},s.value,i.value,e.class],style:[r.value,o.value,e.style],"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null)),{}}}),nP=W({items:Array,returnObject:Boolean},"VListChildren"),Zv=me()({name:"VListChildren",props:nP(),setup(e,t){let{slots:n}=t;return Uv(),()=>{var s,i;return((s=n.default)==null?void 0:s.call(n))??((i=e.items)==null?void 0:i.map(o=>{var f,h;let{children:r,props:a,type:l,raw:c}=o;if(l==="divider")return((f=n.divider)==null?void 0:f.call(n,{props:a}))??y(Jv,a,null);if(l==="subheader")return((h=n.subheader)==null?void 0:h.call(n,{props:a}))??y(eP,a,null);const u={subtitle:n.subtitle?m=>{var g;return(g=n.subtitle)==null?void 0:g.call(n,{...m,item:c})}:void 0,prepend:n.prepend?m=>{var g;return(g=n.prepend)==null?void 0:g.call(n,{...m,item:c})}:void 0,append:n.append?m=>{var g;return(g=n.append)==null?void 0:g.call(n,{...m,item:c})}:void 0,title:n.title?m=>{var g;return(g=n.title)==null?void 0:g.call(n,{...m,item:c})}:void 0},d=lh.filterProps(a);return r?y(lh,be({value:a==null?void 0:a.value},d),{activator:m=>{let{props:g}=m;const p={...a,...g,value:e.returnObject?c:a.value};return n.header?n.header({props:p}):y(na,p,u)},default:()=>y(Zv,{items:r},n)}):n.item?n.item({props:a}):y(na,be(a,{value:e.returnObject?c:a.value}),u)}))}}}),Qv=W({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:hs}},"list-items");function cc(e,t){const n=At(t,e.itemTitle,t),s=At(t,e.itemValue,n),i=At(t,e.itemChildren),o=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?Ci(t,["children"]):t:void 0:At(t,e.itemProps),r={title:n,value:s,...o};return{title:String(r.title??""),value:r.value,props:r,children:Array.isArray(i)?ey(e,i):void 0,raw:t}}function ey(e,t){const n=[];for(const s of t)n.push(cc(e,s));return n}function sP(e){const t=k(()=>ey(e,e.items)),n=k(()=>t.value.some(o=>o.value===null));function s(o){return n.value||(o=o.filter(r=>r!==null)),o.map(r=>e.returnObject&&typeof r=="string"?cc(e,r):t.value.find(a=>e.valueComparator(r,a.value))||cc(e,r))}function i(o){return e.returnObject?o.map(r=>{let{raw:a}=r;return a}):o.map(r=>{let{value:a}=r;return a})}return{items:t,transformIn:s,transformOut:i}}function iP(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function oP(e,t){const n=At(t,e.itemType,"item"),s=iP(t)?t:At(t,e.itemTitle),i=At(t,e.itemValue,void 0),o=At(t,e.itemChildren),r=e.itemProps===!0?Ci(t,["children"]):At(t,e.itemProps),a={title:s,value:i,...r};return{type:n,title:a.title,value:a.value,props:a,children:n==="item"&&o?ty(e,o):void 0,raw:t}}function ty(e,t){const n=[];for(const s of t)n.push(oP(e,s));return n}function rP(e){return{items:k(()=>ty(e,e.items))}}const aP=W({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,...Uk({selectStrategy:"single-leaf",openStrategy:"list"}),...gs(),...Oe(),...Cn(),...Xs(),...ms(),itemType:{type:String,default:"type"},...Qv(),...Jt(),...at(),...rt(),...ps({variant:"text"})},"VList"),lP=me()({name:"VList",props:aP(),emits:{"update:selected":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:s}=rP(e),{themeClasses:i}=ht(e),{backgroundColorClasses:o,backgroundColorStyles:r}=xn(le(e,"bgColor")),{borderClasses:a}=qs(e),{densityClasses:l}=Hn(e),{dimensionStyles:c}=Js(e),{elevationClasses:u}=Ys(e),{roundedClasses:d}=an(e),{open:f,select:h}=Gk(e),m=k(()=>e.lines?`v-list--${e.lines}-line`:void 0),g=le(e,"activeColor"),p=le(e,"baseColor"),v=le(e,"color");Uv(),bn({VListGroup:{activeColor:g,baseColor:p,color:v,expandIcon:le(e,"expandIcon"),collapseIcon:le(e,"collapseIcon")},VListItem:{activeClass:le(e,"activeClass"),activeColor:g,baseColor:p,color:v,density:le(e,"density"),disabled:le(e,"disabled"),lines:le(e,"lines"),nav:le(e,"nav"),slim:le(e,"slim"),variant:le(e,"variant")}});const b=ge(!1),x=Z();function _(O){b.value=!0}function A(O){b.value=!1}function P(O){var D;!b.value&&!(O.relatedTarget&&((D=x.value)!=null&&D.contains(O.relatedTarget)))&&E()}function C(O){if(x.value){if(O.key==="ArrowDown")E("next");else if(O.key==="ArrowUp")E("prev");else if(O.key==="Home")E("first");else if(O.key==="End")E("last");else return;O.preventDefault()}}function w(O){b.value=!0}function E(O){if(x.value)return Wr(x.value,O)}return _e(()=>y(e.tag,{ref:x,class:["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},i.value,o.value,a.value,l.value,u.value,m.value,d.value,e.class],style:[r.value,c.value,e.style],tabindex:e.disabled||b.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:_,onFocusout:A,onFocus:P,onKeydown:C,onMousedown:w},{default:()=>[y(Zv,{items:s.value,returnObject:e.returnObject},n)]})),{open:f,select:h,focus:E}}});function bl(e,t){return{x:e.x+t.x,y:e.y+t.y}}function cP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ch(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:s}=e,i=s==="left"?0:s==="center"?t.width/2:s==="right"?t.width:s,o=n==="top"?0:n==="bottom"?t.height:n;return bl({x:i,y:o},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:s}=e,i=n==="left"?0:n==="right"?t.width:n,o=s==="top"?0:s==="center"?t.height/2:s==="bottom"?t.height:s;return bl({x:i,y:o},t)}return bl({x:t.width/2,y:t.height/2},t)}const ny={static:fP,connected:gP},uP=W({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in ny},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function dP(e,t){const n=Z({}),s=Z();Ge&&cs(()=>!!(t.isActive.value&&e.locationStrategy),o=>{var r,a;ue(()=>e.locationStrategy,o),Rt(()=>{window.removeEventListener("resize",i),s.value=void 0}),window.addEventListener("resize",i,{passive:!0}),typeof e.locationStrategy=="function"?s.value=(r=e.locationStrategy(t,e,n))==null?void 0:r.updateLocation:s.value=(a=ny[e.locationStrategy](t,e,n))==null?void 0:a.updateLocation});function i(o){var r;(r=s.value)==null||r.call(s,o)}return{contentStyles:n,updateLocation:s}}function fP(){}function hP(e,t){t?e.style.removeProperty("left"):e.style.removeProperty("right");const n=au(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function gP(e,t,n){(Array.isArray(e.target.value)||rS(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:i,preferredOrigin:o}=ru(()=>{const m=Gl(t.location,e.isRtl.value),g=t.origin==="overlap"?m:t.origin==="auto"?rl(m):Gl(t.origin,e.isRtl.value);return m.side===g.side&&m.align===al(g).align?{preferredAnchor:qd(m),preferredOrigin:qd(g)}:{preferredAnchor:m,preferredOrigin:g}}),[r,a,l,c]=["minWidth","minHeight","maxWidth","maxHeight"].map(m=>k(()=>{const g=parseFloat(t[m]);return isNaN(g)?1/0:g})),u=k(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const m=t.offset.split(" ").map(parseFloat);return m.length<2&&m.push(0),m}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let d=!1;const f=new ResizeObserver(()=>{d&&h()});ue([e.target,e.contentEl],(m,g)=>{let[p,v]=m,[b,x]=g;b&&!Array.isArray(b)&&f.unobserve(b),p&&!Array.isArray(p)&&f.observe(p),x&&f.unobserve(x),v&&f.observe(v)},{immediate:!0}),Rt(()=>{f.disconnect()});function h(){if(d=!1,requestAnimationFrame(()=>d=!0),!e.target.value||!e.contentEl.value)return;const m=ap(e.target.value),g=hP(e.contentEl.value,e.isRtl.value),p=qr(e.contentEl.value),v=12;p.length||(p.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(g.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),g.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const b=p.reduce((D,T)=>{const L=T.getBoundingClientRect(),$=new Ls({x:T===document.documentElement?0:L.x,y:T===document.documentElement?0:L.y,width:T.clientWidth,height:T.clientHeight});return D?new Ls({x:Math.max(D.left,$.left),y:Math.max(D.top,$.top),width:Math.min(D.right,$.right)-Math.max(D.left,$.left),height:Math.min(D.bottom,$.bottom)-Math.max(D.top,$.top)}):$},void 0);b.x+=v,b.y+=v,b.width-=v*2,b.height-=v*2;let x={anchor:i.value,origin:o.value};function _(D){const T=new Ls(g),L=ch(D.anchor,m),$=ch(D.origin,T);let{x:j,y:K}=cP(L,$);switch(D.anchor.side){case"top":K-=u.value[0];break;case"bottom":K+=u.value[0];break;case"left":j-=u.value[0];break;case"right":j+=u.value[0];break}switch(D.anchor.align){case"top":K-=u.value[1];break;case"bottom":K+=u.value[1];break;case"left":j-=u.value[1];break;case"right":j+=u.value[1];break}return T.x+=j,T.y+=K,T.width=Math.min(T.width,l.value),T.height=Math.min(T.height,c.value),{overflows:Xd(T,b),x:j,y:K}}let A=0,P=0;const C={x:0,y:0},w={x:!1,y:!1};let E=-1;for(;!(E++>10);){const{x:D,y:T,overflows:L}=_(x);A+=D,P+=T,g.x+=D,g.y+=T;{const $=Yd(x.anchor),j=L.x.before||L.x.after,K=L.y.before||L.y.after;let q=!1;if(["x","y"].forEach(I=>{if(I==="x"&&j&&!w.x||I==="y"&&K&&!w.y){const V={anchor:{...x.anchor},origin:{...x.origin}},re=I==="x"?$==="y"?al:rl:$==="y"?rl:al;V.anchor=re(V.anchor),V.origin=re(V.origin);const{overflows:H}=_(V);(H[I].before<=L[I].before&&H[I].after<=L[I].after||H[I].before+H[I].after<(L[I].before+L[I].after)/2)&&(x=V,q=w[I]=!0)}}),q)continue}L.x.before&&(A+=L.x.before,g.x+=L.x.before),L.x.after&&(A-=L.x.after,g.x-=L.x.after),L.y.before&&(P+=L.y.before,g.y+=L.y.before),L.y.after&&(P-=L.y.after,g.y-=L.y.after);{const $=Xd(g,b);C.x=b.width-$.x.before-$.x.after,C.y=b.height-$.y.before-$.y.after,A+=$.x.before,g.x+=$.x.before,P+=$.y.before,g.y+=$.y.before}break}const O=Yd(x.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${x.anchor.side} ${x.anchor.align}`,transformOrigin:`${x.origin.side} ${x.origin.align}`,top:fe(xl(P)),left:e.isRtl.value?void 0:fe(xl(A)),right:e.isRtl.value?fe(xl(-A)):void 0,minWidth:fe(O==="y"?Math.min(r.value,m.width):r.value),maxWidth:fe(uh(nn(C.x,r.value===1/0?0:r.value,l.value))),maxHeight:fe(uh(nn(C.y,a.value===1/0?0:a.value,c.value)))}),{available:C,contentBox:g}}return ue(()=>[i.value,o.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>h()),ft(()=>{const m=h();if(!m)return;const{available:g,contentBox:p}=m;p.height>g.y&&requestAnimationFrame(()=>{h(),requestAnimationFrame(()=>{h()})})}),{updateLocation:h}}function xl(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function uh(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let uc=!0;const sa=[];function mP(e){!uc||sa.length?(sa.push(e),dc()):(uc=!1,e(),dc())}let dh=-1;function dc(){cancelAnimationFrame(dh),dh=requestAnimationFrame(()=>{const e=sa.shift();e&&e(),sa.length?dc():uc=!0})}const Sr={none:null,close:yP,block:bP,reposition:xP},pP=W({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Sr}},"VOverlay-scroll-strategies");function vP(e,t){if(!Ge)return;let n;It(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=Bc(),await ft(),n.active&&n.run(()=>{var s;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(s=Sr[e.scrollStrategy])==null||s.call(Sr,t,e,n)}))}),Rt(()=>{n==null||n.stop()})}function yP(e){function t(n){e.isActive.value=!1}sy(e.targetEl.value??e.contentEl.value,t)}function bP(e,t){var r;const n=(r=e.root.value)==null?void 0:r.offsetParent,s=[...new Set([...qr(e.targetEl.value,t.contained?n:void 0),...qr(e.contentEl.value,t.contained?n:void 0)])].filter(a=>!a.classList.contains("v-overlay-scroll-blocked")),i=window.innerWidth-document.documentElement.offsetWidth,o=(a=>uu(a)&&a)(n||document.documentElement);o&&e.root.value.classList.add("v-overlay--scroll-blocked"),s.forEach((a,l)=>{a.style.setProperty("--v-body-scroll-x",fe(-a.scrollLeft)),a.style.setProperty("--v-body-scroll-y",fe(-a.scrollTop)),a!==document.documentElement&&a.style.setProperty("--v-scrollbar-offset",fe(i)),a.classList.add("v-overlay-scroll-blocked")}),Rt(()=>{s.forEach((a,l)=>{const c=parseFloat(a.style.getPropertyValue("--v-body-scroll-x")),u=parseFloat(a.style.getPropertyValue("--v-body-scroll-y")),d=a.style.scrollBehavior;a.style.scrollBehavior="auto",a.style.removeProperty("--v-body-scroll-x"),a.style.removeProperty("--v-body-scroll-y"),a.style.removeProperty("--v-scrollbar-offset"),a.classList.remove("v-overlay-scroll-blocked"),a.scrollLeft=-c,a.scrollTop=-u,a.style.scrollBehavior=d}),o&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function xP(e,t,n){let s=!1,i=-1,o=-1;function r(a){mP(()=>{var u,d;const l=performance.now();(d=(u=e.updateLocation).value)==null||d.call(u,a),s=(performance.now()-l)/(1e3/60)>2})}o=(typeof requestIdleCallback>"u"?a=>a():requestIdleCallback)(()=>{n.run(()=>{sy(e.targetEl.value??e.contentEl.value,a=>{s?(cancelAnimationFrame(i),i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{r(a)})})):r(a)})})}),Rt(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(o),cancelAnimationFrame(i)})}function sy(e,t){const n=[document,...qr(e)];n.forEach(s=>{s.addEventListener("scroll",t,{passive:!0})}),Rt(()=>{n.forEach(s=>{s.removeEventListener("scroll",t)})})}const fc=Symbol.for("vuetify:v-menu"),_P=W({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function SP(e,t){let n=()=>{};function s(r){n==null||n();const a=Number(r?e.openDelay:e.closeDelay);return new Promise(l=>{n=k_(a,()=>{t==null||t(r),l(r)})})}function i(){return s(!0)}function o(){return s(!1)}return{clearDelay:n,runOpenDelay:i,runCloseDelay:o}}const wP=W({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,..._P()},"VOverlay-activator");function CP(e,t){let{isActive:n,isTop:s}=t;const i=it("useActivator"),o=Z();let r=!1,a=!1,l=!0;const c=k(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),u=k(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:d,runCloseDelay:f}=SP(e,C=>{C===(e.openOnHover&&r||c.value&&a)&&!(e.openOnHover&&n.value&&!s.value)&&(n.value!==C&&(l=!0),n.value=C)}),h=Z(),m={onClick:C=>{C.stopPropagation(),o.value=C.currentTarget||C.target,n.value||(h.value=[C.clientX,C.clientY]),n.value=!n.value},onMouseenter:C=>{var w;(w=C.sourceCapabilities)!=null&&w.firesTouchEvents||(r=!0,o.value=C.currentTarget||C.target,d())},onMouseleave:C=>{r=!1,f()},onFocus:C=>{Ur(C.target,":focus-visible")!==!1&&(a=!0,C.stopPropagation(),o.value=C.currentTarget||C.target,d())},onBlur:C=>{a=!1,C.stopPropagation(),f()}},g=k(()=>{const C={};return u.value&&(C.onClick=m.onClick),e.openOnHover&&(C.onMouseenter=m.onMouseenter,C.onMouseleave=m.onMouseleave),c.value&&(C.onFocus=m.onFocus,C.onBlur=m.onBlur),C}),p=k(()=>{const C={};if(e.openOnHover&&(C.onMouseenter=()=>{r=!0,d()},C.onMouseleave=()=>{r=!1,f()}),c.value&&(C.onFocusin=()=>{a=!0,d()},C.onFocusout=()=>{a=!1,f()}),e.closeOnContentClick){const w=Te(fc,null);C.onClick=()=>{n.value=!1,w==null||w.closeParents()}}return C}),v=k(()=>{const C={};return e.openOnHover&&(C.onMouseenter=()=>{l&&(r=!0,l=!1,d())},C.onMouseleave=()=>{r=!1,f()}),C});ue(s,C=>{C&&(e.openOnHover&&!r&&(!c.value||!a)||c.value&&!a&&(!e.openOnHover||!r))&&(n.value=!1)}),ue(n,C=>{C||setTimeout(()=>{h.value=void 0})},{flush:"post"});const b=Z();It(()=>{b.value&&ft(()=>{o.value=zr(b.value)})});const x=Z(),_=k(()=>e.target==="cursor"&&h.value?h.value:x.value?zr(x.value):iy(e.target,i)||o.value),A=k(()=>Array.isArray(_.value)?void 0:_.value);let P;return ue(()=>!!e.activator,C=>{C&&Ge?(P=Bc(),P.run(()=>{kP(e,i,{activatorEl:o,activatorEvents:g})})):P&&P.stop()},{flush:"post",immediate:!0}),Rt(()=>{P==null||P.stop()}),{activatorEl:o,activatorRef:b,target:_,targetEl:A,targetRef:x,activatorEvents:g,contentEvents:p,scrimEvents:v}}function kP(e,t,n){let{activatorEl:s,activatorEvents:i}=n;ue(()=>e.activator,(l,c)=>{if(c&&l!==c){const u=a(c);u&&r(u)}l&&ft(()=>o())},{immediate:!0}),ue(()=>e.activatorProps,()=>{o()}),Rt(()=>{r()});function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&M_(l,be(i.value,c))}function r(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&E_(l,be(i.value,c))}function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const c=iy(l,t);return s.value=(c==null?void 0:c.nodeType)===Node.ELEMENT_NODE?c:void 0,s.value}}function iy(e,t){var s,i;if(!e)return;let n;if(e==="parent"){let o=(i=(s=t==null?void 0:t.proxy)==null?void 0:s.$el)==null?void 0:i.parentNode;for(;o!=null&&o.hasAttribute("data-no-activator");)o=o.parentNode;n=o}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function PP(){if(!Ge)return ge(!1);const{ssr:e}=Ma();if(e){const t=ge(!1);return $t(()=>{t.value=!0}),t}else return ge(!0)}const AP=W({eager:Boolean},"lazy");function MP(e,t){const n=ge(!1),s=k(()=>n.value||e.eager||t.value);ue(t,()=>n.value=!0);function i(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:s,onAfterLeave:i}}function oy(){const t=it("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const fh=Symbol.for("vuetify:stack"),Ri=vt([]);function EP(e,t,n){const s=it("useStack"),i=!n,o=Te(fh,void 0),r=vt({activeChildren:new Set});Je(fh,r);const a=ge(+t.value);cs(e,()=>{var d;const u=(d=Ri.at(-1))==null?void 0:d[1];a.value=u?u+10:+t.value,i&&Ri.push([s.uid,a.value]),o==null||o.activeChildren.add(s.uid),Rt(()=>{if(i){const f=ke(Ri).findIndex(h=>h[0]===s.uid);Ri.splice(f,1)}o==null||o.activeChildren.delete(s.uid)})});const l=ge(!0);i&&It(()=>{var d;const u=((d=Ri.at(-1))==null?void 0:d[0])===s.uid;setTimeout(()=>l.value=u)});const c=k(()=>!r.activeChildren.size);return{globalTop:Mo(l),localTop:c,stackStyles:k(()=>({zIndex:a.value}))}}function TP(e){return{teleportTarget:k(()=>{const n=e.value;if(n===!0||!Ge)return;const s=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(s==null)return;let i=s.querySelector(":scope > .v-overlay-container");return i||(i=document.createElement("div"),i.className="v-overlay-container",s.appendChild(i)),i})}}function OP(){return!0}function ry(e,t,n){if(!e||ay(e,n)===!1)return!1;const s=gp(t);if(typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&s.host===e.target)return!1;const i=(typeof n.value=="object"&&n.value.include||(()=>[]))();return i.push(t),!i.some(o=>o==null?void 0:o.contains(e.target))}function ay(e,t){return(typeof t.value=="object"&&t.value.closeConditional||OP)(e)}function IP(e,t,n){const s=typeof n.value=="function"?n.value:n.value.handler;t._clickOutside.lastMousedownWasOutside&&ry(e,t,n)&&setTimeout(()=>{ay(e,n)&&s&&s(e)},0)}function hh(e,t){const n=gp(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const RP={mounted(e,t){const n=i=>IP(i,e,t),s=i=>{e._clickOutside.lastMousedownWasOutside=ry(i,e,t)};hh(e,i=>{i.addEventListener("click",n,!0),i.addEventListener("mousedown",s,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:s}},unmounted(e,t){e._clickOutside&&(hh(e,n=>{var o;if(!n||!((o=e._clickOutside)!=null&&o[t.instance.$.uid]))return;const{onClick:s,onMousedown:i}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",s,!0),n.removeEventListener("mousedown",i,!0)}),delete e._clickOutside[t.instance.$.uid])}};function DP(e){const{modelValue:t,color:n,...s}=e;return y(Bn,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&y("div",be({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},s),null)]})}const ly=W({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...wP(),...Oe(),...Xs(),...AP(),...uP(),...pP(),...rt(),...Lo()},"VOverlay"),gh=me()({name:"VOverlay",directives:{ClickOutside:RP},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...ly()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:s,emit:i}=t;const o=Ye(e,"modelValue"),r=k({get:()=>o.value,set:Y=>{Y&&e.disabled||(o.value=Y)}}),{teleportTarget:a}=TP(k(()=>e.attach||e.contained)),{themeClasses:l}=ht(e),{rtlClasses:c,isRtl:u}=Sn(),{hasContent:d,onAfterLeave:f}=MP(e,r),h=xn(k(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:m,localTop:g,stackStyles:p}=EP(r,le(e,"zIndex"),e._disableGlobalStack),{activatorEl:v,activatorRef:b,target:x,targetEl:_,targetRef:A,activatorEvents:P,contentEvents:C,scrimEvents:w}=CP(e,{isActive:r,isTop:g}),{dimensionStyles:E}=Js(e),O=PP(),{scopeId:D}=oy();ue(()=>e.disabled,Y=>{Y&&(r.value=!1)});const T=Z(),L=Z(),{contentStyles:$,updateLocation:j}=dP(e,{isRtl:u,contentEl:L,target:x,isActive:r});vP(e,{root:T,contentEl:L,targetEl:_,isActive:r,updateLocation:j});function K(Y){i("click:outside",Y),e.persistent?H():r.value=!1}function q(){return r.value&&m.value}Ge&&ue(r,Y=>{Y?window.addEventListener("keydown",I):window.removeEventListener("keydown",I)},{immediate:!0}),zt(()=>{Ge&&window.removeEventListener("keydown",I)});function I(Y){var de,he;Y.key==="Escape"&&m.value&&(e.persistent?H():(r.value=!1,(de=L.value)!=null&&de.contains(document.activeElement)&&((he=v.value)==null||he.focus())))}const V=JC();cs(()=>e.closeOnBack,()=>{ZC(V,Y=>{m.value&&r.value?(Y(!1),e.persistent?H():r.value=!1):Y()})});const re=Z();ue(()=>r.value&&(e.absolute||e.contained)&&a.value==null,Y=>{if(Y){const de=pp(T.value);de&&de!==document.scrollingElement&&(re.value=de.scrollTop)}});function H(){e.noClickAnimation||L.value&&ri(L.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:Kr})}function Q(){f(),i("afterLeave")}return _e(()=>{var Y;return y(Pe,null,[(Y=n.activator)==null?void 0:Y.call(n,{isActive:r.value,props:be({ref:b,targetRef:A},P.value,e.activatorProps)}),O.value&&d.value&&y(Cx,{disabled:!a.value,to:a.value},{default:()=>[y("div",be({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":r.value,"v-overlay--contained":e.contained},l.value,c.value,e.class],style:[p.value,{"--v-overlay-opacity":e.opacity,top:fe(re.value)},e.style],ref:T},D,s),[y(DP,be({color:h,modelValue:r.value&&!!e.scrim},w.value),null),y(es,{appear:!0,persisted:!0,transition:e.transition,target:x.value,onAfterLeave:Q},{default:()=>{var de;return[Xt(y("div",be({ref:L,class:["v-overlay__content",e.contentClass],style:[E.value,$.value]},C.value,e.contentProps),[(de=n.default)==null?void 0:de.call(n,{isActive:r})]),[[wi,r.value],[Gs("click-outside"),{handler:K,closeConditional:q,include:()=>[v.value]}]])]}})])]})])}),{activatorEl:v,target:x,animateClick:H,contentEl:L,globalTop:m,localTop:g,updateLocation:j}}}),LP=W({id:String,...Ci(ly({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:Cv}}),["absolute"])},"VMenu"),FP=me()({name:"VMenu",props:LP(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const s=Ye(e,"modelValue"),{scopeId:i}=oy(),o=rn(),r=k(()=>e.id||`v-menu-${o}`),a=Z(),l=Te(fc,null),c=ge(0);Je(fc,{register(){++c.value},unregister(){--c.value},closeParents(g){setTimeout(()=>{!c.value&&(g==null||g&&!P_(g,a.value.contentEl))&&(s.value=!1,l==null||l.closeParents())},40)}});async function u(g){var b,x,_;const p=g.relatedTarget,v=g.target;await ft(),s.value&&p!==v&&((b=a.value)!=null&&b.contentEl)&&((x=a.value)!=null&&x.globalTop)&&![document,a.value.contentEl].includes(v)&&!a.value.contentEl.contains(v)&&((_=jr(a.value.contentEl)[0])==null||_.focus())}ue(s,g=>{g?(l==null||l.register(),document.addEventListener("focusin",u,{once:!0})):(l==null||l.unregister(),document.removeEventListener("focusin",u))});function d(g){l==null||l.closeParents(g)}function f(g){var p,v,b;e.disabled||g.key==="Tab"&&(ip(jr((p=a.value)==null?void 0:p.contentEl,!1),g.shiftKey?"prev":"next",_=>_.tabIndex>=0)||(s.value=!1,(b=(v=a.value)==null?void 0:v.activatorEl)==null||b.focus()))}function h(g){var v;if(e.disabled)return;const p=(v=a.value)==null?void 0:v.contentEl;p&&s.value?g.key==="ArrowDown"?(g.preventDefault(),Wr(p,"next")):g.key==="ArrowUp"&&(g.preventDefault(),Wr(p,"prev")):["ArrowDown","ArrowUp"].includes(g.key)&&(s.value=!0,g.preventDefault(),setTimeout(()=>setTimeout(()=>h(g))))}const m=k(()=>be({"aria-haspopup":"menu","aria-expanded":String(s.value),"aria-owns":r.value,onKeydown:h},e.activatorProps));return _e(()=>{const g=gh.filterProps(e);return y(gh,be({ref:a,id:r.value,class:["v-menu",e.class],style:e.style},g,{modelValue:s.value,"onUpdate:modelValue":p=>s.value=p,absolute:!0,activatorProps:m.value,"onClick:outside":d,onKeydown:f},i),{activator:n.activator,default:function(){for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];return y(bt,{root:"VMenu"},{default:()=>{var x;return[(x=n.default)==null?void 0:x.call(n,...v)]}})}})}),Eu({id:r,ΨopenChildren:c},a)}}),VP=W({renderless:Boolean,...Oe()},"VVirtualScrollItem"),cy=me()({name:"VVirtualScrollItem",inheritAttrs:!1,props:VP(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:n,emit:s,slots:i}=t;const{resizeRef:o,contentRect:r}=Ns(void 0,"border");ue(()=>{var a;return(a=r.value)==null?void 0:a.height},a=>{a!=null&&s("update:height",a)}),_e(()=>{var a,l;return e.renderless?y(Pe,null,[(a=i.default)==null?void 0:a.call(i,{itemRef:o})]):y("div",be({ref:o,class:["v-virtual-scroll__item",e.class],style:e.style},n),[(l=i.default)==null?void 0:l.call(i)])})}}),BP=-1,NP=1,_l=100,uy=W({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function dy(e,t){const n=Ma(),s=ge(0);It(()=>{s.value=parseFloat(e.itemHeight||0)});const i=ge(0),o=ge(Math.ceil((parseInt(e.height)||n.height.value)/(s.value||16))||1),r=ge(0),a=ge(0),l=Z(),c=Z();let u=0;const{resizeRef:d,contentRect:f}=Ns();It(()=>{d.value=l.value});const h=k(()=>{var V;return l.value===document.documentElement?n.height.value:((V=f.value)==null?void 0:V.height)||parseInt(e.height)||0}),m=k(()=>!!(l.value&&c.value&&h.value&&s.value));let g=Array.from({length:t.value.length}),p=Array.from({length:t.value.length});const v=ge(0);let b=-1;function x(V){return g[V]||s.value}const _=S_(()=>{const V=performance.now();p[0]=0;const re=t.value.length;for(let H=1;H<=re-1;H++)p[H]=(p[H-1]||0)+x(H-1);v.value=Math.max(v.value,performance.now()-V)},v),A=ue(m,V=>{V&&(A(),u=c.value.offsetTop,_.immediate(),j(),~b&&ft(()=>{Ge&&window.requestAnimationFrame(()=>{q(b),b=-1})}))});Rt(()=>{_.clear()});function P(V,re){const H=g[V],Q=s.value;s.value=Q?Math.min(s.value,re):re,(H!==re||Q!==s.value)&&(g[V]=re,_())}function C(V){return V=nn(V,0,t.value.length-1),p[V]||0}function w(V){return $P(p,V)}let E=0,O=0,D=0;ue(h,(V,re)=>{re&&(j(),V<re&&requestAnimationFrame(()=>{O=0,j()}))});function T(){if(!l.value||!c.value)return;const V=l.value.scrollTop,re=performance.now();re-D>500?(O=Math.sign(V-E),u=c.value.offsetTop):O=V-E,E=V,D=re,j()}function L(){!l.value||!c.value||(O=0,D=0,j())}let $=-1;function j(){cancelAnimationFrame($),$=requestAnimationFrame(K)}function K(){if(!l.value||!h.value)return;const V=E-u,re=Math.sign(O),H=Math.max(0,V-_l),Q=nn(w(H),0,t.value.length),Y=V+h.value+_l,de=nn(w(Y)+1,Q+1,t.value.length);if((re!==BP||Q<i.value)&&(re!==NP||de>o.value)){const he=C(i.value)-C(Q),ie=C(de)-C(o.value);Math.max(he,ie)>_l?(i.value=Q,o.value=de):(Q<=0&&(i.value=Q),de>=t.value.length&&(o.value=de))}r.value=C(i.value),a.value=C(t.value.length)-C(o.value)}function q(V){const re=C(V);!l.value||V&&!re?b=V:l.value.scrollTop=re}const I=k(()=>t.value.slice(i.value,o.value).map((V,re)=>({raw:V,index:re+i.value})));return ue(t,()=>{g=Array.from({length:t.value.length}),p=Array.from({length:t.value.length}),_.immediate(),j()},{deep:!0}),{containerRef:l,markerRef:c,computedItems:I,paddingTop:r,paddingBottom:a,scrollToIndex:q,handleScroll:T,handleScrollend:L,handleItemResize:P}}function $P(e,t){let n=e.length-1,s=0,i=0,o=null,r=-1;if(e[n]<t)return n;for(;s<=n;)if(i=s+n>>1,o=e[i],o>t)n=i-1;else if(o<t)r=i,s=i+1;else return o===t?i:s;return r}const zP=W({items:{type:Array,default:()=>[]},renderless:Boolean,...uy(),...Oe(),...Xs()},"VVirtualScroll"),HP=me()({name:"VVirtualScroll",props:zP(),setup(e,t){let{slots:n}=t;const s=it("VVirtualScroll"),{dimensionStyles:i}=Js(e),{containerRef:o,markerRef:r,handleScroll:a,handleScrollend:l,handleItemResize:c,scrollToIndex:u,paddingTop:d,paddingBottom:f,computedItems:h}=dy(e,le(e,"items"));return cs(()=>e.renderless,()=>{function m(){var v,b;const p=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";o.value===document.documentElement?(document[p]("scroll",a,{passive:!0}),document[p]("scrollend",l)):((v=o.value)==null||v[p]("scroll",a,{passive:!0}),(b=o.value)==null||b[p]("scrollend",l))}$t(()=>{o.value=pp(s.vnode.el,!0),m(!0)}),Rt(m)}),_e(()=>{const m=h.value.map(g=>y(cy,{key:g.index,renderless:e.renderless,"onUpdate:height":p=>c(g.index,p)},{default:p=>{var v;return(v=n.default)==null?void 0:v.call(n,{item:g.raw,index:g.index,...p})}}));return e.renderless?y(Pe,null,[y("div",{ref:r,class:"v-virtual-scroll__spacer",style:{paddingTop:fe(d.value)}},null),m,y("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:fe(f.value)}},null)]):y("div",{ref:o,class:["v-virtual-scroll",e.class],onScrollPassive:a,onScrollend:l,style:[i.value,e.style]},[y("div",{ref:r,class:"v-virtual-scroll__container",style:{paddingTop:fe(d.value),paddingBottom:fe(f.value)}},[m])])}),{scrollToIndex:u}}});function jP(e,t){const n=ge(!1);let s;function i(a){cancelAnimationFrame(s),n.value=!0,s=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>{n.value=!1})})}async function o(){await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>{if(n.value){const l=ue(n,()=>{l(),a()})}else a()})}async function r(a){var u,d;if(a.key==="Tab"&&((u=t.value)==null||u.focus()),!["PageDown","PageUp","Home","End"].includes(a.key))return;const l=(d=e.value)==null?void 0:d.$el;if(!l)return;(a.key==="Home"||a.key==="End")&&l.scrollTo({top:a.key==="Home"?0:l.scrollHeight,behavior:"smooth"}),await o();const c=l.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(a.key==="PageDown"||a.key==="Home"){const f=l.getBoundingClientRect().top;for(const h of c)if(h.getBoundingClientRect().top>=f){h.focus();break}}else{const f=l.getBoundingClientRect().bottom;for(const h of[...c].reverse())if(h.getBoundingClientRect().bottom<=f){h.focus();break}}}return{onListScroll:i,onListKeydown:r}}const WP=W({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:Fe,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...Qv({itemChildren:!1})},"Select"),UP=W({...WP(),...Ci(Vv({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Lo({transition:{component:Cv}})},"VSelect"),hc=me()({name:"VSelect",props:UP(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:s}=Ks(),i=Z(),o=Z(),r=Z(),a=Ye(e,"menu"),l=k({get:()=>a.value,set:I=>{var V;a.value&&!I&&((V=o.value)!=null&&V.ΨopenChildren)||(a.value=I)}}),{items:c,transformIn:u,transformOut:d}=sP(e),f=Ye(e,"modelValue",[],I=>u(I===null?[null]:Et(I)),I=>{const V=d(I);return e.multiple?V:V[0]??null}),h=k(()=>typeof e.counterValue=="function"?e.counterValue(f.value):typeof e.counterValue=="number"?e.counterValue:f.value.length),m=Rv(),g=k(()=>f.value.map(I=>I.value)),p=ge(!1),v=k(()=>l.value?e.closeText:e.openText);let b="",x;const _=k(()=>e.hideSelected?c.value.filter(I=>!f.value.some(V=>V===I)):c.value),A=k(()=>e.hideNoData&&!_.value.length||e.readonly||(m==null?void 0:m.isReadonly.value)),P=k(()=>{var I;return{...e.menuProps,activatorProps:{...((I=e.menuProps)==null?void 0:I.activatorProps)||{},"aria-haspopup":"listbox"}}}),C=Z(),{onListScroll:w,onListKeydown:E}=jP(C,i);function O(I){e.openOnClear&&(l.value=!0)}function D(){A.value||(l.value=!l.value)}function T(I){var Y,de;if(!I.key||e.readonly||m!=null&&m.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(I.key)&&I.preventDefault(),["Enter","ArrowDown"," "].includes(I.key)&&(l.value=!0),["Escape","Tab"].includes(I.key)&&(l.value=!1),I.key==="Home"?(Y=C.value)==null||Y.focus("first"):I.key==="End"&&((de=C.value)==null||de.focus("last"));const V=1e3;function re(he){const ie=he.key.length===1,F=!he.ctrlKey&&!he.metaKey&&!he.altKey;return ie&&F}if(e.multiple||!re(I))return;const H=performance.now();H-x>V&&(b=""),b+=I.key.toLowerCase(),x=H;const Q=c.value.find(he=>he.title.toLowerCase().startsWith(b));Q!==void 0&&(f.value=[Q])}function L(I){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.multiple){const re=f.value.findIndex(H=>e.valueComparator(H.value,I.value));if(V=re===-1,V)f.value=[...f.value,I];else{const H=[...f.value];H.splice(re,1),f.value=H}}else f.value=V?[I]:[],l.value=!1}function $(I){var V;(V=C.value)!=null&&V.$el.contains(I.relatedTarget)||(l.value=!1)}function j(){var I;p.value&&((I=i.value)==null||I.focus())}function K(I){p.value=!0}function q(I){if(I==null)f.value=[];else if(Ur(i.value,":autofill")||Ur(i.value,":-webkit-autofill")){const V=c.value.find(re=>re.title===I);V&&L(V)}else i.value&&(i.value.value="")}return ue(l,()=>{if(!e.hideSelected&&l.value&&f.value.length){const I=_.value.findIndex(V=>f.value.some(re=>e.valueComparator(re.value,V.value)));Ge&&window.requestAnimationFrame(()=>{var V;I>=0&&((V=r.value)==null||V.scrollToIndex(I))})}}),ue(_,(I,V)=>{p.value&&(!I.length&&e.hideNoData&&(l.value=!1),!V.length&&I.length&&(l.value=!0))}),_e(()=>{const I=!!(e.chips||n.chip),V=!!(!e.hideNoData||_.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),re=f.value.length>0,H=ta.filterProps(e),Q=re||!p.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return y(ta,be({ref:i},H,{modelValue:f.value.map(Y=>Y.props.value).join(", "),"onUpdate:modelValue":q,focused:p.value,"onUpdate:focused":Y=>p.value=Y,validationValue:f.externalValue,counterValue:h.value,dirty:re,class:["v-select",{"v-select--active-menu":l.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":f.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:Q,"onClick:clear":O,"onMousedown:control":D,onBlur:$,onKeydown:T,"aria-label":s(v.value),title:s(v.value)}),{...n,default:()=>y(Pe,null,[y(FP,be({ref:o,modelValue:l.value,"onUpdate:modelValue":Y=>l.value=Y,activator:"parent",contentClass:"v-select__content",disabled:A.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:j},P.value),{default:()=>[V&&y(lP,be({ref:C,selected:g.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:Y=>Y.preventDefault(),onKeydown:E,onFocusin:K,onScrollPassive:w,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},e.listProps),{default:()=>{var Y,de,he;return[(Y=n["prepend-item"])==null?void 0:Y.call(n),!_.value.length&&!e.hideNoData&&(((de=n["no-data"])==null?void 0:de.call(n))??y(na,{title:s(e.noDataText)},null)),y(HP,{ref:r,renderless:!0,items:_.value},{default:ie=>{var Ae;let{item:F,index:se,itemRef:J}=ie;const oe=be(F.props,{ref:J,key:se,onClick:()=>L(F)});return((Ae=n.item)==null?void 0:Ae.call(n,{item:F,index:se,props:oe}))??y(na,be(oe,{role:"option"}),{prepend:Le=>{let{isSelected:S}=Le;return y(Pe,null,[e.multiple&&!e.hideSelected?y($a,{key:F.value,modelValue:S,ripple:!1,tabindex:"-1"},null):void 0,F.props.prependAvatar&&y(yo,{image:F.props.prependAvatar},null),F.props.prependIcon&&y(mt,{icon:F.props.prependIcon},null)])}})}}),(he=n["append-item"])==null?void 0:he.call(n)]}})]}),f.value.map((Y,de)=>{function he(J){J.stopPropagation(),J.preventDefault(),L(Y,!1)}const ie={"onClick:close":he,onMousedown(J){J.preventDefault(),J.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},F=I?!!n.chip:!!n.selection,se=F?op(I?n.chip({item:Y,index:de,props:ie}):n.selection({item:Y,index:de})):void 0;if(!(F&&!se))return y("div",{key:Y.value,class:"v-select__selection"},[I?n.chip?y(bt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:Y.title}}},{default:()=>[se]}):y(Nk,be({key:"chip",closable:e.closableChips,size:"small",text:Y.title,disabled:Y.props.disabled},ie),null):se??y("span",{class:"v-select__selection-text"},[Y.title,e.multiple&&de<f.value.length-1&&y("span",{class:"v-select__selection-comma"},[ut(",")])])])})]),"append-inner":function(){var ie;for(var Y=arguments.length,de=new Array(Y),he=0;he<Y;he++)de[he]=arguments[he];return y(Pe,null,[(ie=n["append-inner"])==null?void 0:ie.call(n,...de),e.menuIcon?y(mt,{class:"v-select__menu-icon",icon:e.menuIcon},null):void 0])}})}),Eu({isFocused:p,menu:l,select:L},i)}}),GP=W({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),fy=Symbol.for("vuetify:data-table-pagination");function KP(e){const t=Ye(e,"page",void 0,s=>+(s??1)),n=Ye(e,"itemsPerPage",void 0,s=>+(s??10));return{page:t,itemsPerPage:n}}function qP(e){const{page:t,itemsPerPage:n,itemsLength:s}=e,i=k(()=>n.value===-1?0:n.value*(t.value-1)),o=k(()=>n.value===-1?s.value:Math.min(s.value,i.value+n.value)),r=k(()=>n.value===-1||s.value===0?1:Math.ceil(s.value/n.value));It(()=>{t.value>r.value&&(t.value=r.value)});function a(f){n.value=f,t.value=1}function l(){t.value=nn(t.value+1,1,r.value)}function c(){t.value=nn(t.value-1,1,r.value)}function u(f){t.value=nn(f,1,r.value)}const d={page:t,itemsPerPage:n,startIndex:i,stopIndex:o,pageCount:r,itemsLength:s,nextPage:l,prevPage:c,setPage:u,setItemsPerPage:a};return Je(fy,d),d}function YP(){const e=Te(fy);if(!e)throw new Error("Missing pagination!");return e}function XP(e){const t=it("usePaginatedItems"),{items:n,startIndex:s,stopIndex:i,itemsPerPage:o}=e,r=k(()=>o.value<=0?n.value:n.value.slice(s.value,i.value));return ue(r,a=>{t.emit("update:currentItems",a)}),{paginatedItems:r}}const hy=W({prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),mh=me()({name:"VDataTableFooter",props:hy(),setup(e,t){let{slots:n}=t;const{t:s}=Ks(),{page:i,pageCount:o,startIndex:r,stopIndex:a,itemsLength:l,itemsPerPage:c,setItemsPerPage:u}=YP(),d=k(()=>e.itemsPerPageOptions.map(f=>typeof f=="number"?{value:f,title:f===-1?s("$vuetify.dataFooter.itemsPerPageAll"):String(f)}:{...f,title:s(f.title)}));return _e(()=>{var h;const f=ea.filterProps(e);return y("div",{class:"v-data-table-footer"},[(h=n.prepend)==null?void 0:h.call(n),y("div",{class:"v-data-table-footer__items-per-page"},[y("span",null,[s(e.itemsPerPageText)]),y(hc,{items:d.value,modelValue:c.value,"onUpdate:modelValue":m=>u(Number(m)),density:"compact",variant:"outlined","hide-details":!0},null)]),y("div",{class:"v-data-table-footer__info"},[y("div",null,[s(e.pageText,l.value?r.value+1:0,a.value,l.value)])]),y("div",{class:"v-data-table-footer__pagination"},[y(ea,be({modelValue:i.value,"onUpdate:modelValue":m=>i.value=m,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:o.value,"next-aria-label":e.nextPageLabel,"previous-aria-label":e.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":e.showCurrentPage?1:0,variant:"plain"},f),null)])])}),{}}}),Iu=tS({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String]},(e,t)=>{let{slots:n}=t;const s=e.tag??"td";return y(s,{class:["v-data-table__td",{"v-data-table-column--fixed":e.fixed,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--no-padding":e.noPadding},`v-data-table-column--align-${e.align}`],style:{height:fe(e.height),width:fe(e.width),left:fe(e.fixedOffset||null)}},{default:()=>{var i;return[(i=n.default)==null?void 0:i.call(n)]}})}),JP=W({headers:Array},"DataTable-header"),gy=Symbol.for("vuetify:data-table-headers"),my={title:"",sortable:!1},ZP={...my,width:48};function QP(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(n=>({element:n,priority:0}));return{enqueue:(n,s)=>{let i=!1;for(let o=0;o<t.length;o++)if(t[o].priority>s){t.splice(o,0,{element:n,priority:s}),i=!0;break}i||t.push({element:n,priority:s})},size:()=>t.length,count:()=>{let n=0;if(!t.length)return 0;const s=Math.floor(t[0].priority);for(let i=0;i<t.length;i++)Math.floor(t[i].priority)===s&&(n+=1);return n},dequeue:()=>t.shift()}}function gc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)t.push(e);else for(const n of e.children)gc(n,t);return t}function py(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const n of e)n.key&&t.add(n.key),n.children&&py(n.children,t);return t}function eA(e){if(e.key){if(e.key==="data-table-group")return my;if(["data-table-expand","data-table-select"].includes(e.key))return ZP}}function Ru(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(t,...e.children.map(n=>Ru(n,t+1))):t}function tA(e){let t=!1;function n(o){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o)if(r&&(o.fixed=!0),o.fixed)if(o.children)for(let a=o.children.length-1;a>=0;a--)n(o.children[a],!0);else t?isNaN(+o.width)&&(`${o.key}`,void 0):o.lastFixed=!0,t=!0;else if(o.children)for(let a=o.children.length-1;a>=0;a--)n(o.children[a]);else t=!1}for(let o=e.length-1;o>=0;o--)n(e[o]);function s(o){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!o)return r;if(o.children){o.fixedOffset=r;for(const a of o.children)r=s(a,r)}else o.fixed&&(o.fixedOffset=r,r+=parseFloat(o.width||"0")||0);return r}let i=0;for(const o of e)i=s(o,i)}function nA(e,t){const n=[];let s=0;const i=QP(e);for(;i.size()>0;){let r=i.count();const a=[];let l=1;for(;r>0;){const{element:c,priority:u}=i.dequeue(),d=t-s-Ru(c);if(a.push({...c,rowspan:d??1,colspan:c.children?gc(c).length:1}),c.children)for(const f of c.children){const h=u%1+l/Math.pow(10,s+2);i.enqueue(f,s+d+h)}l+=1,r-=1}s+=1,n.push(a)}return{columns:e.map(r=>gc(r)).flat(),headers:n}}function vy(e){const t=[];for(const n of e){const s={...eA(n),...n},i=s.key??(typeof s.value=="string"?s.value:null),o=s.value??i??null,r={...s,key:i,value:o,sortable:s.sortable??(s.key!=null||!!s.sort),children:s.children?vy(s.children):void 0};t.push(r)}return t}function yy(e,t){const n=Z([]),s=Z([]),i=Z({}),o=Z({}),r=Z({});It(()=>{var g,p,v;const c=(e.headers||Object.keys(e.items[0]??{}).map(b=>({key:b,title:js(b)}))).slice(),u=py(c);(g=t==null?void 0:t.groupBy)!=null&&g.value.length&&!u.has("data-table-group")&&c.unshift({key:"data-table-group",title:"Group"}),(p=t==null?void 0:t.showSelect)!=null&&p.value&&!u.has("data-table-select")&&c.unshift({key:"data-table-select"}),(v=t==null?void 0:t.showExpand)!=null&&v.value&&!u.has("data-table-expand")&&c.push({key:"data-table-expand"});const d=vy(c);tA(d);const f=Math.max(...d.map(b=>Ru(b)))+1,h=nA(d,f);n.value=h.headers,s.value=h.columns;const m=h.headers.flat(1);for(const b of m)b.key&&(b.sortable&&(b.sort&&(i.value[b.key]=b.sort),b.sortRaw&&(o.value[b.key]=b.sortRaw)),b.filter&&(r.value[b.key]=b.filter))});const a={headers:n,columns:s,sortFunctions:i,sortRawFunctions:o,filterFunctions:r};return Je(gy,a),a}function za(){const e=Te(gy);if(!e)throw new Error("Missing headers!");return e}const sA={showSelectAll:!1,allSelected:()=>[],select:e=>{var s;let{items:t,value:n}=e;return new Set(n?[(s=t[0])==null?void 0:s.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},by={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:n,selected:s}=e;for(const i of t)n?s.add(i.value):s.delete(i.value);return s},selectAll:e=>{let{value:t,currentPage:n,selected:s}=e;return by.select({items:n,value:t,selected:s})}},xy={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:n,selected:s}=e;for(const i of t)n?s.add(i.value):s.delete(i.value);return s},selectAll:e=>{let{value:t,allItems:n,selected:s}=e;return xy.select({items:n,value:t,selected:s})}},iA=W({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:hs}},"DataTable-select"),_y=Symbol.for("vuetify:data-table-selection");function Sy(e,t){let{allItems:n,currentPage:s}=t;const i=Ye(e,"modelValue",e.modelValue,p=>new Set(Et(p).map(v=>{var b;return((b=n.value.find(x=>e.valueComparator(v,x.value)))==null?void 0:b.value)??v})),p=>[...p.values()]),o=k(()=>n.value.filter(p=>p.selectable)),r=k(()=>s.value.filter(p=>p.selectable)),a=k(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return sA;case"all":return xy;case"page":default:return by}});function l(p){return Et(p).every(v=>i.value.has(v.value))}function c(p){return Et(p).some(v=>i.value.has(v.value))}function u(p,v){const b=a.value.select({items:p,value:v,selected:new Set(i.value)});i.value=b}function d(p){u([p],!l([p]))}function f(p){const v=a.value.selectAll({value:p,allItems:o.value,currentPage:r.value,selected:new Set(i.value)});i.value=v}const h=k(()=>i.value.size>0),m=k(()=>{const p=a.value.allSelected({allItems:o.value,currentPage:r.value});return!!p.length&&l(p)}),g={toggleSelect:d,select:u,selectAll:f,isSelected:l,isSomeSelected:c,someSelected:h,allSelected:m,showSelectAll:a.value.showSelectAll};return Je(_y,g),g}function Ha(){const e=Te(_y);if(!e)throw new Error("Missing selection!");return e}const oA=W({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),wy=Symbol.for("vuetify:data-table-sort");function Cy(e){const t=Ye(e,"sortBy"),n=le(e,"mustSort"),s=le(e,"multiSort");return{sortBy:t,mustSort:n,multiSort:s}}function ky(e){const{sortBy:t,mustSort:n,multiSort:s,page:i}=e,o=l=>{if(l.key==null)return;let c=t.value.map(d=>({...d}))??[];const u=c.find(d=>d.key===l.key);u?u.order==="desc"?n.value?u.order="asc":c=c.filter(d=>d.key!==l.key):u.order="desc":s.value?c=[...c,{key:l.key,order:"asc"}]:c=[{key:l.key,order:"asc"}],t.value=c,i&&(i.value=1)};function r(l){return!!t.value.find(c=>c.key===l.key)}const a={sortBy:t,toggleSort:o,isSorted:r};return Je(wy,a),a}function rA(){const e=Te(wy);if(!e)throw new Error("Missing sort!");return e}function Py(e,t,n,s,i){const o=Ks();return{sortedItems:k(()=>n.value.length?aA(t.value,n.value,o.current.value,{...e.customKeySort,...s==null?void 0:s.value},i==null?void 0:i.value):t.value)}}function aA(e,t,n,s,i){const o=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"});return[...e].sort((r,a)=>{for(let l=0;l<t.length;l++){const c=t[l].key,u=t[l].order??"asc";if(u===!1)continue;let d=Bs(r.raw,c),f=Bs(a.raw,c),h=r.raw,m=a.raw;if(u==="desc"&&([d,f]=[f,d],[h,m]=[m,h]),i!=null&&i[c]){const g=i[c](h,m);if(!g)continue;return g}if(s!=null&&s[c]){const g=s[c](d,f);if(!g)continue;return g}if(d instanceof Date&&f instanceof Date)return d.getTime()-f.getTime();if([d,f]=[d,f].map(g=>g!=null?g.toString().toLocaleLowerCase():g),d!==f)return Ko(d)&&Ko(f)?0:Ko(d)?-1:Ko(f)?1:!isNaN(d)&&!isNaN(f)?Number(d)-Number(f):o.compare(d,f)}return 0})}const Ay=W({color:String,sticky:Boolean,multiSort:Boolean,sortAscIcon:{type:Fe,default:"$sortAsc"},sortDescIcon:{type:Fe,default:"$sortDesc"},headerProps:{type:Object},...ku()},"VDataTableHeaders"),ia=me()({name:"VDataTableHeaders",props:Ay(),setup(e,t){let{slots:n}=t;const{toggleSort:s,sortBy:i,isSorted:o}=rA(),{someSelected:r,allSelected:a,selectAll:l,showSelectAll:c}=Ha(),{columns:u,headers:d}=za(),{loaderClasses:f}=Pu(e);function h(x,_){if(!(!e.sticky&&!x.fixed))return{position:"sticky",left:x.fixed?fe(x.fixedOffset):void 0,top:e.sticky?`calc(var(--v-table-header-height) * ${_})`:void 0}}function m(x){const _=i.value.find(A=>A.key===x.key);return _?_.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:g,backgroundColorStyles:p}=xn(e,"color"),v=k(()=>({headers:d.value,columns:u.value,toggleSort:s,isSorted:o,sortBy:i.value,someSelected:r.value,allSelected:a.value,selectAll:l,getSortIcon:m})),b=x=>{let{column:_,x:A,y:P}=x;const C=_.key==="data-table-select"||_.key==="data-table-expand",w=be(e.headerProps??{},_.headerProps??{});return y(Iu,be({tag:"th",align:_.align,class:["v-data-table__th",{"v-data-table__th--sortable":_.sortable,"v-data-table__th--sorted":o(_),"v-data-table__th--fixed":_.fixed,"v-data-table__th--sticky":e.sticky},f.value],style:{width:fe(_.width),minWidth:fe(_.minWidth),...h(_,P)},colspan:_.colspan,rowspan:_.rowspan,onClick:_.sortable?()=>s(_):void 0,fixed:_.fixed,lastFixed:_.lastFixed,noPadding:C},w),{default:()=>{var D;const E=`header.${_.key}`,O={column:_,selectAll:l,isSorted:o,toggleSort:s,sortBy:i.value,someSelected:r.value,allSelected:a.value,getSortIcon:m};return n[E]?n[E](O):_.key==="data-table-select"?((D=n["header.data-table-select"])==null?void 0:D.call(n,O))??(c&&y($a,{modelValue:a.value,indeterminate:r.value&&!a.value,"onUpdate:modelValue":l},null)):y("div",{class:"v-data-table-header__content"},[y("span",null,[_.title]),_.sortable&&y(mt,{key:"icon",class:"v-data-table-header__sort-icon",icon:m(_)},null),e.multiSort&&o(_)&&y("div",{key:"badge",class:["v-data-table-header__sort-badge",...g.value],style:p.value},[i.value.findIndex(T=>T.key===_.key)+1])])}})};_e(()=>y(Pe,null,[n.headers?n.headers(v.value):d.value.map((x,_)=>y("tr",null,[x.map((A,P)=>y(b,{column:A,x:P,y:_},null))])),e.loading&&y("tr",{class:"v-data-table-progress"},[y("th",{colspan:u.value.length},[y(uv,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:n.loader})])])]))}}),My=W({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),Ey=Symbol.for("vuetify:data-table-group");function Ty(e){return{groupBy:Ye(e,"groupBy")}}function Oy(e){const{groupBy:t,sortBy:n}=e,s=Z(new Set),i=k(()=>t.value.map(c=>({...c,order:c.order??!1})).concat(n.value));function o(c){return s.value.has(c.id)}function r(c){const u=new Set(s.value);o(c)?u.delete(c.id):u.add(c.id),s.value=u}function a(c){function u(d){const f=[];for(const h of d.items)"type"in h&&h.type==="group"?f.push(...u(h)):f.push(h);return f}return u({type:"group",items:c,id:"dummy",key:"dummy",value:"dummy",depth:0})}const l={sortByWithGroups:i,toggleGroup:r,opened:s,groupBy:t,extractRows:a,isGroupOpen:o};return Je(Ey,l),l}function Iy(){const e=Te(Ey);if(!e)throw new Error("Missing group!");return e}function lA(e,t){if(!e.length)return[];const n=new Map;for(const s of e){const i=Bs(s.raw,t);n.has(i)||n.set(i,[]),n.get(i).push(s)}return n}function Ry(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const i=lA(e,t[0]),o=[],r=t.slice(1);return i.forEach((a,l)=>{const c=t[0],u=`${s}_${c}_${l}`;o.push({depth:n,id:u,key:c,value:l,items:r.length?Ry(a,r,n+1,u):a,type:"group"})}),o}function Dy(e,t){const n=[];for(const s of e)"type"in s&&s.type==="group"?(s.value!=null&&n.push(s),(t.has(s.id)||s.value==null)&&n.push(...Dy(s.items,t))):n.push(s);return n}function Ly(e,t,n){return{flatItems:k(()=>{if(!t.value.length)return e.value;const i=Ry(e.value,t.value.map(o=>o.key));return Dy(i,n.value)})}}const cA=W({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),uA=me()({name:"VDataTableGroupHeaderRow",props:cA(),setup(e,t){let{slots:n}=t;const{isGroupOpen:s,toggleGroup:i,extractRows:o}=Iy(),{isSelected:r,isSomeSelected:a,select:l}=Ha(),{columns:c}=za(),u=k(()=>o([e.item]));return()=>y("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[c.value.map(d=>{var f,h;if(d.key==="data-table-group"){const m=s(e.item)?"$expand":"$next",g=()=>i(e.item);return((f=n["data-table-group"])==null?void 0:f.call(n,{item:e.item,count:u.value.length,props:{icon:m,onClick:g}}))??y(Iu,{class:"v-data-table-group-header-row__column"},{default:()=>[y(gn,{size:"small",variant:"text",icon:m,onClick:g},null),y("span",null,[e.item.value]),y("span",null,[ut("("),u.value.length,ut(")")])]})}if(d.key==="data-table-select"){const m=r(u.value),g=a(u.value)&&!m,p=v=>l(u.value,v);return((h=n["data-table-select"])==null?void 0:h.call(n,{props:{modelValue:m,indeterminate:g,"onUpdate:modelValue":p}}))??y("td",null,[y($a,{modelValue:m,indeterminate:g,"onUpdate:modelValue":p},null)])}return y("td",null,null)})])}}),dA=W({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),Fy=Symbol.for("vuetify:datatable:expanded");function Vy(e){const t=le(e,"expandOnClick"),n=Ye(e,"expanded",e.expanded,a=>new Set(a),a=>[...a.values()]);function s(a,l){const c=new Set(n.value);l?c.add(a.value):c.delete(a.value),n.value=c}function i(a){return n.value.has(a.value)}function o(a){s(a,!i(a))}const r={expand:s,expanded:n,expandOnClick:t,isExpanded:i,toggleExpand:o};return Je(Fy,r),r}function By(){const e=Te(Fy);if(!e)throw new Error("foo");return e}const fA=W({index:Number,item:Object,cellProps:[Object,Function],onClick:Tt(),onContextmenu:Tt(),onDblclick:Tt()},"VDataTableRow"),Ny=me()({name:"VDataTableRow",props:fA(),setup(e,t){let{slots:n}=t;const{isSelected:s,toggleSelect:i}=Ha(),{isExpanded:o,toggleExpand:r}=By(),{columns:a}=za();_e(()=>y("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)}],onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&a.value.map((l,c)=>{const u=e.item,d=`item.${l.key}`,f={index:e.index,item:u.raw,internalItem:u,value:Bs(u.columns,l.key),column:l,isSelected:s,toggleSelect:i,isExpanded:o,toggleExpand:r},h=typeof e.cellProps=="function"?e.cellProps({index:f.index,item:f.item,internalItem:f.internalItem,value:f.value,column:l}):e.cellProps,m=typeof l.cellProps=="function"?l.cellProps({index:f.index,item:f.item,internalItem:f.internalItem,value:f.value}):l.cellProps;return y(Iu,be({align:l.align,fixed:l.fixed,fixedOffset:l.fixedOffset,lastFixed:l.lastFixed,noPadding:l.key==="data-table-select"||l.key==="data-table-expand",width:l.width},h,m),{default:()=>{var g,p;return n[d]?n[d](f):l.key==="data-table-select"?((g=n["item.data-table-select"])==null?void 0:g.call(n,f))??y($a,{disabled:!u.selectable,modelValue:s([u]),onClick:Nd(()=>i(u),["stop"])},null):l.key==="data-table-expand"?((p=n["item.data-table-expand"])==null?void 0:p.call(n,f))??y(gn,{icon:o(u)?"$collapse":"$expand",size:"small",variant:"text",onClick:Nd(()=>r(u),["stop"])},null):ve(f.value)}})})]))}}),$y=W({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function]},"VDataTableRows"),oa=me()({name:"VDataTableRows",inheritAttrs:!1,props:$y(),setup(e,t){let{attrs:n,slots:s}=t;const{columns:i}=za(),{expandOnClick:o,toggleExpand:r,isExpanded:a}=By(),{isSelected:l,toggleSelect:c}=Ha(),{toggleGroup:u,isGroupOpen:d}=Iy(),{t:f}=Ks();return _e(()=>{var h,m;return e.loading&&(!e.items.length||s.loading)?y("tr",{class:"v-data-table-rows-loading",key:"loading"},[y("td",{colspan:i.value.length},[((h=s.loading)==null?void 0:h.call(s))??f(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?y("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[y("td",{colspan:i.value.length},[((m=s["no-data"])==null?void 0:m.call(s))??f(e.noDataText)])]):y(Pe,null,[e.items.map((g,p)=>{var x;if(g.type==="group"){const _={index:p,item:g,columns:i.value,isExpanded:a,toggleExpand:r,isSelected:l,toggleSelect:c,toggleGroup:u,isGroupOpen:d};return s["group-header"]?s["group-header"](_):y(uA,be({key:`group-header_${g.id}`,item:g},lf(n,":group-header",()=>_)),s)}const v={index:p,item:g.raw,internalItem:g,columns:i.value,isExpanded:a,toggleExpand:r,isSelected:l,toggleSelect:c},b={...v,props:be({key:`item_${g.key??g.index}`,onClick:o.value?()=>{r(g)}:void 0,index:p,item:g,cellProps:e.cellProps},lf(n,":row",()=>v),typeof e.rowProps=="function"?e.rowProps({item:v.item,index:v.index,internalItem:v.internalItem}):e.rowProps)};return y(Pe,{key:b.props.key},[s.item?s.item(b):y(Ny,b.props,s),a(g)&&((x=s["expanded-row"])==null?void 0:x.call(s,v))])})])}),{}}}),hA=W({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function gA(e,t,n,s){const i=e.returnObject?t:At(t,e.itemValue),o=At(t,e.itemSelectable,!0),r=s.reduce((a,l)=>(l.key!=null&&(a[l.key]=At(t,l.value)),a),{});return{type:"item",key:e.returnObject?At(t,e.itemValue):i,index:n,value:i,selectable:o,columns:r,raw:t}}function mA(e,t,n){return t.map((s,i)=>gA(e,s,i,n))}function zy(e,t){return{items:k(()=>mA(e,e.items,t.value))}}function Hy(e){let{page:t,itemsPerPage:n,sortBy:s,groupBy:i,search:o}=e;const r=it("VDataTable"),a=k(()=>({page:t.value,itemsPerPage:n.value,sortBy:s.value,groupBy:i.value,search:o.value}));let l=null;ue(a,()=>{hs(l,a.value)||((l==null?void 0:l.search)!==a.value.search&&(t.value=1),r.emit("update:options",a.value),l=a.value)},{deep:!0,immediate:!0})}const pA=(e,t,n)=>e==null||t==null?-1:e.toString().toLocaleLowerCase().indexOf(t.toString().toLocaleLowerCase()),jy=W({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function vA(e,t,n){var a;const s=[],i=(n==null?void 0:n.default)??pA,o=n!=null&&n.filterKeys?Et(n.filterKeys):!1,r=Object.keys((n==null?void 0:n.customKeyFilter)??{}).length;if(!(e!=null&&e.length))return s;e:for(let l=0;l<e.length;l++){const[c,u=c]=Et(e[l]),d={},f={};let h=-1;if(t&&!(n!=null&&n.noFilter)){if(typeof c=="object"){const p=o||Object.keys(u);for(const v of p){const b=At(u,v),x=(a=n==null?void 0:n.customKeyFilter)==null?void 0:a[v];if(h=x?x(b,t,c):i(b,t,c),h!==-1&&h!==!1)x?d[v]=h:f[v]=h;else if((n==null?void 0:n.filterMode)==="every")continue e}}else h=i(c,t,c),h!==-1&&h!==!1&&(f.title=h);const m=Object.keys(f).length,g=Object.keys(d).length;if(!m&&!g||(n==null?void 0:n.filterMode)==="union"&&g!==r&&!m||(n==null?void 0:n.filterMode)==="intersection"&&(g!==r||!m))continue}s.push({index:l,matches:{...f,...d}})}return s}function Wy(e,t,n,s){const i=Z([]),o=Z(new Map),r=k(()=>s!=null&&s.transform?Ze(t).map(l=>[l,s.transform(l)]):Ze(t));It(()=>{const l=typeof n=="function"?n():Ze(n),c=typeof l!="string"&&typeof l!="number"?"":String(l),u=vA(r.value,c,{customKeyFilter:{...e.customKeyFilter,...Ze(s==null?void 0:s.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),d=Ze(t),f=[],h=new Map;u.forEach(m=>{let{index:g,matches:p}=m;const v=d[g];f.push(v),h.set(v.value,p)}),i.value=f,o.value=h});function a(l){return o.value.get(l.value)}return{filteredItems:i,filteredMatches:o,getMatches:a}}const Uy=W({...$y(),width:[String,Number],search:String,...dA(),...My(),...JP(),...hA(),...iA(),...oA(),...Ay(),..._v()},"DataTable"),yA=W({...GP(),...Uy(),...jy(),...hy()},"VDataTable");me()({name:"VDataTable",props:yA(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{attrs:n,slots:s}=t;const{groupBy:i}=Ty(e),{sortBy:o,multiSort:r,mustSort:a}=Cy(e),{page:l,itemsPerPage:c}=KP(e),{columns:u,headers:d,sortFunctions:f,sortRawFunctions:h,filterFunctions:m}=yy(e,{groupBy:i,showSelect:le(e,"showSelect"),showExpand:le(e,"showExpand")}),{items:g}=zy(e,u),p=le(e,"search"),{filteredItems:v}=Wy(e,g,p,{transform:ie=>ie.columns,customKeyFilter:m}),{toggleSort:b}=ky({sortBy:o,multiSort:r,mustSort:a,page:l}),{sortByWithGroups:x,opened:_,extractRows:A,isGroupOpen:P,toggleGroup:C}=Oy({groupBy:i,sortBy:o}),{sortedItems:w}=Py(e,v,x,f,h),{flatItems:E}=Ly(w,i,_),O=k(()=>E.value.length),{startIndex:D,stopIndex:T,pageCount:L,setItemsPerPage:$}=qP({page:l,itemsPerPage:c,itemsLength:O}),{paginatedItems:j}=XP({items:E,startIndex:D,stopIndex:T,itemsPerPage:c}),K=k(()=>A(j.value)),{isSelected:q,select:I,selectAll:V,toggleSelect:re,someSelected:H,allSelected:Q}=Sy(e,{allItems:g,currentPage:K}),{isExpanded:Y,toggleExpand:de}=Vy(e);Hy({page:l,itemsPerPage:c,sortBy:o,groupBy:i,search:p}),bn({VDataTableRows:{hideNoData:le(e,"hideNoData"),noDataText:le(e,"noDataText"),loading:le(e,"loading"),loadingText:le(e,"loadingText")}});const he=k(()=>({page:l.value,itemsPerPage:c.value,sortBy:o.value,pageCount:L.value,toggleSort:b,setItemsPerPage:$,someSelected:H.value,allSelected:Q.value,isSelected:q,select:I,selectAll:V,toggleSelect:re,isExpanded:Y,toggleExpand:de,isGroupOpen:P,toggleGroup:C,items:K.value.map(ie=>ie.raw),internalItems:K.value,groupedItems:j.value,columns:u.value,headers:d.value}));return _e(()=>{const ie=mh.filterProps(e),F=ia.filterProps(e),se=oa.filterProps(e),J=$s.filterProps(e);return y($s,be({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},J),{top:()=>{var oe;return(oe=s.top)==null?void 0:oe.call(s,he.value)},default:()=>{var oe,Ae,Le,S,M,R;return s.default?s.default(he.value):y(Pe,null,[(oe=s.colgroup)==null?void 0:oe.call(s,he.value),y("thead",null,[y(ia,F,s)]),(Ae=s.thead)==null?void 0:Ae.call(s,he.value),y("tbody",null,[(Le=s["body.prepend"])==null?void 0:Le.call(s,he.value),s.body?s.body(he.value):y(oa,be(n,se,{items:j.value}),s),(S=s["body.append"])==null?void 0:S.call(s,he.value)]),(M=s.tbody)==null?void 0:M.call(s,he.value),(R=s.tfoot)==null?void 0:R.call(s,he.value)])},bottom:()=>s.bottom?s.bottom(he.value):y(Pe,null,[y(Jv,null,null),y(mh,ie,{prepend:s["footer.prepend"]})])})}),{}}});const bA=W({...Uy(),...My(),...uy(),...jy()},"VDataTableVirtual"),mc=me()({name:"VDataTableVirtual",props:bA(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:n,slots:s}=t;const{groupBy:i}=Ty(e),{sortBy:o,multiSort:r,mustSort:a}=Cy(e),{columns:l,headers:c,filterFunctions:u,sortFunctions:d,sortRawFunctions:f}=yy(e,{groupBy:i,showSelect:le(e,"showSelect"),showExpand:le(e,"showExpand")}),{items:h}=zy(e,l),m=le(e,"search"),{filteredItems:g}=Wy(e,h,m,{transform:F=>F.columns,customKeyFilter:u}),{toggleSort:p}=ky({sortBy:o,multiSort:r,mustSort:a}),{sortByWithGroups:v,opened:b,extractRows:x,isGroupOpen:_,toggleGroup:A}=Oy({groupBy:i,sortBy:o}),{sortedItems:P}=Py(e,g,v,d,f),{flatItems:C}=Ly(P,i,b),w=k(()=>x(C.value)),{isSelected:E,select:O,selectAll:D,toggleSelect:T,someSelected:L,allSelected:$}=Sy(e,{allItems:w,currentPage:w}),{isExpanded:j,toggleExpand:K}=Vy(e),{containerRef:q,markerRef:I,paddingTop:V,paddingBottom:re,computedItems:H,handleItemResize:Q,handleScroll:Y,handleScrollend:de}=dy(e,C),he=k(()=>H.value.map(F=>F.raw));Hy({sortBy:o,page:ge(1),itemsPerPage:ge(-1),groupBy:i,search:m}),bn({VDataTableRows:{hideNoData:le(e,"hideNoData"),noDataText:le(e,"noDataText"),loading:le(e,"loading"),loadingText:le(e,"loadingText")}});const ie=k(()=>({sortBy:o.value,toggleSort:p,someSelected:L.value,allSelected:$.value,isSelected:E,select:O,selectAll:D,toggleSelect:T,isExpanded:j,toggleExpand:K,isGroupOpen:_,toggleGroup:A,items:w.value.map(F=>F.raw),internalItems:w.value,groupedItems:C.value,columns:l.value,headers:c.value}));_e(()=>{const F=ia.filterProps(e),se=oa.filterProps(e),J=$s.filterProps(e);return y($s,be({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},J),{top:()=>{var oe;return(oe=s.top)==null?void 0:oe.call(s,ie.value)},wrapper:()=>{var oe,Ae,Le;return y("div",{ref:q,onScrollPassive:Y,onScrollend:de,class:"v-table__wrapper",style:{height:fe(e.height)}},[y("table",null,[(oe=s.colgroup)==null?void 0:oe.call(s,ie.value),y("thead",null,[y(ia,be(F,{sticky:e.fixedHeader}),s)]),y("tbody",null,[y("tr",{ref:I,style:{height:fe(V.value),border:0}},[y("td",{colspan:l.value.length,style:{height:0,border:0}},null)]),(Ae=s["body.prepend"])==null?void 0:Ae.call(s,ie.value),y(oa,be(n,se,{items:he.value}),{...s,item:S=>y(cy,{key:S.internalItem.index,renderless:!0,"onUpdate:height":M=>Q(S.internalItem.index,M)},{default:M=>{var z;let{itemRef:R}=M;return((z=s.item)==null?void 0:z.call(s,{...S,itemRef:R}))??y(Ny,be(S.props,{ref:R,key:S.internalItem.index,index:S.internalItem.index}),s)}})}),(Le=s["body.append"])==null?void 0:Le.call(s,ie.value),y("tr",{style:{height:fe(re.value),border:0}},[y("td",{colspan:l.value.length,style:{height:0,border:0}},null)])])])])},bottom:()=>{var oe;return(oe=s.bottom)==null?void 0:oe.call(s,ie.value)}})})}}),xA=W({fluid:{type:Boolean,default:!1},...Oe(),...at()},"VContainer"),Gy=me()({name:"VContainer",props:xA(),setup(e,t){let{slots:n}=t;const{rtlClasses:s}=Sn();return _e(()=>y(e.tag,{class:["v-container",{"v-container--fluid":e.fluid},s.value,e.class],style:e.style},n)),{}}}),_A={class:"container"},SA={class:"d-flex flex-row"},wA={class:"result-box"},CA=G("h3",null,"Picks",-1),kA={class:"result-box"},PA=G("h3",null,"Payout",-1),AA={class:"container"},MA={class:"d-flex flex-row"},EA={class:"character-list"},TA=["href"],OA=["href"],IA={class:"character-list"},RA=["href"],DA=["href"],LA=$n({__name:"GameDetails",setup(e){const t=Oo(),n=[{title:"ID",align:"start",key:"characterId"},{title:"Character",align:"start",key:"characterName"},{title:"Status",align:"start",key:"pickedCharacter.status"},{title:"Player",align:"start",key:"pickedCharacter.playerName"}],s=[{title:"ID",align:"start",key:"characterId"},{title:"Character",align:"start",key:"characterName"},{title:"Status",align:"start",key:"appliedCharacter.status"},{title:"Player",align:"start",key:"appliedCharacter.playerName"}],i=Z(t.params.gameId),o=Z({id:0,title:"",gamemaster:"",payoutEB:0,payoutIP:0,payoutLoot:"",status:"",postdate:0}),r=Z([]),a=Z([]);l(),ue(()=>t.params.gameId,(d,f)=>{i.value=d,l()});async function l(){const d=await ze.get(`/api/game/${i.value}`);console.log(d),o.value=d.data,c(),u()}async function c(){const d=await ze.post(`/api/game/${i.value}/picks`);console.log(d),r.value=d.data}async function u(){const d=await ze.post(`/api/game/${i.value}/apps`);console.log(d),a.value=d.data}return(d,f)=>(Ct(),wa(Gy,null,{default:Ve(()=>[G("h1",null,"#"+ve(o.value.id)+" - "+ve(o.value.title),1),G("h2",null,"GameMaster: "+ve(o.value.gamemaster),1),G("div",_A,[G("div",SA,[G("div",wA,[CA,(Ct(!0),tn(Pe,null,Sa(r.value,h=>(Ct(),tn("div",null,ve(h.pickedCharacter.playerName)+" as "+ve(h.characterName),1))),256))]),G("div",kA,[PA,G("div",null,ve(o.value.payoutEB)+" EB",1),G("div",null,ve(o.value.payoutIP)+" IP",1),G("div",null,ve(o.value.payoutLoot),1)])])]),G("div",AA,[G("div",MA,[G("div",EA,[G("h3",null,ve(r.value.length)+" Character Picks",1),y(mc,{headers:n,items:r.value,height:"500px","fixed-header":""},{"item.characterId":Ve(({item:h})=>[G("a",{href:`/#/characters/${h.characterId}`},ve(h.characterId),9,TA)]),"item.characterName":Ve(({item:h})=>[G("a",{href:`/#/characters/${h.characterId}`},ve(h.characterName),9,OA)]),_:1},8,["items"])]),G("div",IA,[G("h3",null,ve(a.value.length)+" Character Apps",1),y(mc,{headers:s,items:a.value,height:"500px","fixed-header":""},{"item.characterId":Ve(({item:h})=>[G("a",{href:`/#/characters/${h.characterId}`},ve(h.characterId),9,RA)]),"item.characterName":Ve(({item:h})=>[G("a",{href:`/#/characters/${h.characterId}`},ve(h.characterName),9,DA)]),_:1},8,["items"])])])])]),_:1}))}}),FA={class:"d-flex flex-row"},VA=G("thead",null,[G("tr",null,[G("th",{class:"text-left"},"ID"),G("th",{class:"text-left"},"Character"),G("th",{class:"text-left"},"Role"),G("th",{class:"text-left"},"Player"),G("th",{class:"text-left"},"Status"),G("th",{class:"text-left"},"Last Game")])],-1),BA=["href"],NA=["href"],$A=G("td",null,"0",-1),zA=$n({__name:"CharacterList",setup(e){const t=Oo(),n=hu(),s=Z([]),i=Z(1),o=Z(1),r=Z("");async function a(){const u=await ze.post("/api/character",{page:`${o.value-1}`,count:"10",orderBy:"id",filter:r.value?`characterName:"${r.value}"`:""});s.value=u.data.characterData,i.value=u.data.pageCount}function l(u){n.replace({query:{page:u,filter:t.query.filter}})}ue(t,(u,d)=>{t.query.page?o.value=Number(t.query.page):(n.replace({query:{page:1,filter:t.query.filter}}),o.value=1),o.value=Number(t.query.page),a()});let c;return ue(r,(u,d)=>{clearTimeout(c),c=setTimeout(()=>{n.replace({query:{page:t.query.page,filter:u}})},500)}),$t(async()=>{t.query.page?o.value=Number(t.query.page):(n.replace({query:{page:1}}),o.value=1),t.query.filter&&(r.value=t.query.filter.toString()),a()}),(u,d)=>(Ct(),tn(Pe,null,[G("div",FA,[y(ta,{class:"filter flex-1-0",placeholder:"Filter by Name",modelValue:r.value,"onUpdate:modelValue":d[0]||(d[0]=f=>r.value=f)},null,8,["modelValue"])]),y($s,null,{default:Ve(()=>[VA,G("tbody",null,[(Ct(!0),tn(Pe,null,Sa(s.value,f=>(Ct(),tn("tr",null,[G("td",null,[G("a",{href:`/#/characters/${f.id}`},ve(f.id),9,BA)]),G("td",null,[G("a",{href:`/#/characters/${f.id}`},ve(f.characterName),9,NA)]),G("td",null,ve(f.role),1),G("td",null,ve(f.playerName),1),G("td",null,ve(f.status),1),G("td",null,ve(f.lastGame),1),$A]))),256))])]),_:1}),y(ea,{"model-value":o.value,length:i.value,"onUpdate:modelValue":d[1]||(d[1]=f=>l(f))},null,8,["model-value","length"])],64))}}),HA=["href"],jA=["href"],ph=$n({__name:"GameTable",props:{gameList:{}},setup(e){const t=[{title:"ID",align:"start",key:"id"},{title:"Title",align:"start",key:"title"},{title:"Status",align:"start",key:"status"},{title:"Post Date",align:"start",key:"postdate"}];return(n,s)=>(Ct(),wa(mc,{headers:t,items:n.gameList,height:"500px","fixed-header":""},{"item.id":Ve(({item:i})=>[G("a",{href:`/#/games/${i.id}`},ve(i.id),9,HA)]),"item.title":Ve(({item:i})=>[G("a",{href:`/#/games/${i.id}`},ve(i.title),9,jA)]),"item.postdate":Ve(({item:i})=>[ut(ve(new Date(i.postdate*1e3).toISOString().split("T")[0]),1)]),_:1},8,["items"]))}}),WA={class:"d-flex flex-row"},UA={class:"flex-column game-list"},GA={class:"game-list-title"},KA={class:"flex-column game-list"},qA={class:"game-list-title"},YA=$n({__name:"CharacterDetails",setup(e){const t=Oo(),n=Z(t.params.characterId),s=Z({id:0,characterName:"",playerName:"",role:"",status:"",lastGame:0}),i=Z({played:[],applied:[]}),o=Z(0),r=Z(0),a=Z(0),l=Z(0),c=Z(0),u=Z();async function d(){const g=await ze.get(`/api/character/${n.value}`),p=await ze.post(`/api/character/${n.value}/gameHistory`);s.value=g.data,i.value={played:p.data.characterPickedForGame,applied:p.data.characterAppliedForGame}}function f(g){let p=0,v=0;for(let b in g)p+=g[b].payoutEB,v+=g[b].payoutIP;o.value=p,r.value=v}function h(g,p){a.value=g.length,l.value=p.length,c.value=g.length/p.length*100}function m(g){g.length===0?u.value="N/A":u.value=new Date(g[g.length-1].postdate*1e3).toISOString().split("T")[0]}return ue(i,(g,p)=>{m(g.played),f(g.played),h(g.played,g.applied)}),$t(async()=>{d()}),(g,p)=>(Ct(),wa(Gy,null,{default:Ve(()=>[G("h1",null,ve(s.value.characterName)+" - "+ve(s.value.role),1),G("h2",null,"Status: "+ve(s.value.status),1),G("h2",null,"Player: "+ve(s.value.playerName),1),G("div",null,"Total Game EB: "+ve(o.value)+" --- Total Game IP: "+ve(r.value),1),G("div",null," Games Played: "+ve(a.value)+" --- Games Applied: "+ve(l.value)+" -- Pick Rate: "+ve(c.value.toFixed(2))+"% ",1),G("div",null,"Last Game: "+ve(u.value),1),G("div",WA,[G("div",UA,[G("h3",GA,ve((i.value.played||[]).length)+" Games Played",1),y(ph,{gameList:i.value.played},null,8,["gameList"])]),G("div",KA,[G("h3",qA,ve((i.value.applied||[]).length)+" Games Applied",1),y(ph,{gameList:i.value.applied},null,8,["gameList"])])])]),_:1}))}});/*!
|
|
* @kurkle/color v0.3.2
|
|
* https://github.com/kurkle/color#readme
|
|
* (c) 2023 Jukka Kurkela
|
|
* Released under the MIT License
|
|
*/function Fo(e){return e+.5|0}const ts=(e,t,n)=>Math.max(Math.min(e,n),t);function $i(e){return ts(Fo(e*2.55),0,255)}function as(e){return ts(Fo(e*255),0,255)}function Tn(e){return ts(Fo(e/2.55)/100,0,1)}function vh(e){return ts(Fo(e*100),0,100)}const Wt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},pc=[..."0123456789ABCDEF"],XA=e=>pc[e&15],JA=e=>pc[(e&240)>>4]+pc[e&15],Zo=e=>(e&240)>>4===(e&15),ZA=e=>Zo(e.r)&&Zo(e.g)&&Zo(e.b)&&Zo(e.a);function QA(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Wt[e[1]]*17,g:255&Wt[e[2]]*17,b:255&Wt[e[3]]*17,a:t===5?Wt[e[4]]*17:255}:(t===7||t===9)&&(n={r:Wt[e[1]]<<4|Wt[e[2]],g:Wt[e[3]]<<4|Wt[e[4]],b:Wt[e[5]]<<4|Wt[e[6]],a:t===9?Wt[e[7]]<<4|Wt[e[8]]:255})),n}const eM=(e,t)=>e<255?t(e):"";function tM(e){var t=ZA(e)?XA:JA;return e?"#"+t(e.r)+t(e.g)+t(e.b)+eM(e.a,t):void 0}const nM=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ky(e,t,n){const s=t*Math.min(n,1-n),i=(o,r=(o+e/30)%12)=>n-s*Math.max(Math.min(r-3,9-r,1),-1);return[i(0),i(8),i(4)]}function sM(e,t,n){const s=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function iM(e,t,n){const s=Ky(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)s[i]*=1-t-n,s[i]+=t;return s}function oM(e,t,n,s,i){return e===i?(t-n)/s+(t<n?6:0):t===i?(n-e)/s+2:(e-t)/s+4}function Du(e){const n=e.r/255,s=e.g/255,i=e.b/255,o=Math.max(n,s,i),r=Math.min(n,s,i),a=(o+r)/2;let l,c,u;return o!==r&&(u=o-r,c=a>.5?u/(2-o-r):u/(o+r),l=oM(n,s,i,u,o),l=l*60+.5),[l|0,c||0,a]}function Lu(e,t,n,s){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,s)).map(as)}function Fu(e,t,n){return Lu(Ky,e,t,n)}function rM(e,t,n){return Lu(iM,e,t,n)}function aM(e,t,n){return Lu(sM,e,t,n)}function qy(e){return(e%360+360)%360}function lM(e){const t=nM.exec(e);let n=255,s;if(!t)return;t[5]!==s&&(n=t[6]?$i(+t[5]):as(+t[5]));const i=qy(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?s=rM(i,o,r):t[1]==="hsv"?s=aM(i,o,r):s=Fu(i,o,r),{r:s[0],g:s[1],b:s[2],a:n}}function cM(e,t){var n=Du(e);n[0]=qy(n[0]+t),n=Fu(n),e.r=n[0],e.g=n[1],e.b=n[2]}function uM(e){if(!e)return;const t=Du(e),n=t[0],s=vh(t[1]),i=vh(t[2]);return e.a<255?`hsla(${n}, ${s}%, ${i}%, ${Tn(e.a)})`:`hsl(${n}, ${s}%, ${i}%)`}const yh={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},bh={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function dM(){const e={},t=Object.keys(bh),n=Object.keys(yh);let s,i,o,r,a;for(s=0;s<t.length;s++){for(r=a=t[s],i=0;i<n.length;i++)o=n[i],a=a.replace(o,yh[o]);o=parseInt(bh[r],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let Qo;function fM(e){Qo||(Qo=dM(),Qo.transparent=[0,0,0,0]);const t=Qo[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const hM=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function gM(e){const t=hM.exec(e);let n=255,s,i,o;if(t){if(t[7]!==s){const r=+t[7];n=t[8]?$i(r):ts(r*255,0,255)}return s=+t[1],i=+t[3],o=+t[5],s=255&(t[2]?$i(s):ts(s,0,255)),i=255&(t[4]?$i(i):ts(i,0,255)),o=255&(t[6]?$i(o):ts(o,0,255)),{r:s,g:i,b:o,a:n}}}function mM(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Tn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Sl=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,ni=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function pM(e,t,n){const s=ni(Tn(e.r)),i=ni(Tn(e.g)),o=ni(Tn(e.b));return{r:as(Sl(s+n*(ni(Tn(t.r))-s))),g:as(Sl(i+n*(ni(Tn(t.g))-i))),b:as(Sl(o+n*(ni(Tn(t.b))-o))),a:e.a+n*(t.a-e.a)}}function er(e,t,n){if(e){let s=Du(e);s[t]=Math.max(0,Math.min(s[t]+s[t]*n,t===0?360:1)),s=Fu(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function Yy(e,t){return e&&Object.assign(t||{},e)}function xh(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=as(e[3]))):(t=Yy(e,{r:0,g:0,b:0,a:1}),t.a=as(t.a)),t}function vM(e){return e.charAt(0)==="r"?gM(e):lM(e)}class xo{constructor(t){if(t instanceof xo)return t;const n=typeof t;let s;n==="object"?s=xh(t):n==="string"&&(s=QA(t)||fM(t)||vM(t)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var t=Yy(this._rgb);return t&&(t.a=Tn(t.a)),t}set rgb(t){this._rgb=xh(t)}rgbString(){return this._valid?mM(this._rgb):void 0}hexString(){return this._valid?tM(this._rgb):void 0}hslString(){return this._valid?uM(this._rgb):void 0}mix(t,n){if(t){const s=this.rgb,i=t.rgb;let o;const r=n===o?.5:n,a=2*r-1,l=s.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,s.r=255&c*s.r+o*i.r+.5,s.g=255&c*s.g+o*i.g+.5,s.b=255&c*s.b+o*i.b+.5,s.a=r*s.a+(1-r)*i.a,this.rgb=s}return this}interpolate(t,n){return t&&(this._rgb=pM(this._rgb,t._rgb,n)),this}clone(){return new xo(this.rgb)}alpha(t){return this._rgb.a=as(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Fo(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return er(this._rgb,2,t),this}darken(t){return er(this._rgb,2,-t),this}saturate(t){return er(this._rgb,1,t),this}desaturate(t){return er(this._rgb,1,-t),this}rotate(t){return cM(this._rgb,t),this}}/*!
|
|
* Chart.js v4.4.3
|
|
* https://www.chartjs.org
|
|
* (c) 2024 Chart.js Contributors
|
|
* Released under the MIT License
|
|
*/function Pn(){}const yM=(()=>{let e=0;return()=>e++})();function De(e){return e===null||typeof e>"u"}function Ue(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Ee(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Qe(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Lt(e,t){return Qe(e)?e:t}function Ce(e,t){return typeof e>"u"?t:e}const bM=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,Xy=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function He(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Ne(e,t,n,s){let i,o,r;if(Ue(e))if(o=e.length,s)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i);else if(Ee(e))for(r=Object.keys(e),o=r.length,i=0;i<o;i++)t.call(n,e[r[i]],r[i])}function ra(e,t){let n,s,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,s=e.length;n<s;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function aa(e){if(Ue(e))return e.map(aa);if(Ee(e)){const t=Object.create(null),n=Object.keys(e),s=n.length;let i=0;for(;i<s;++i)t[n[i]]=aa(e[n[i]]);return t}return e}function Jy(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function xM(e,t,n,s){if(!Jy(e))return;const i=t[e],o=n[e];Ee(i)&&Ee(o)?_o(i,o,s):t[e]=aa(o)}function _o(e,t,n){const s=Ue(t)?t:[t],i=s.length;if(!Ee(e))return e;n=n||{};const o=n.merger||xM;let r;for(let a=0;a<i;++a){if(r=s[a],!Ee(r))continue;const l=Object.keys(r);for(let c=0,u=l.length;c<u;++c)o(l[c],e,r,n)}return e}function eo(e,t){return _o(e,t,{merger:_M})}function _M(e,t,n){if(!Jy(e))return;const s=t[e],i=n[e];Ee(s)&&Ee(i)?eo(s,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=aa(i))}const _h={"":e=>e,x:e=>e.x,y:e=>e.y};function SM(e){const t=e.split("."),n=[];let s="";for(const i of t)s+=i,s.endsWith("\\")?s=s.slice(0,-1)+".":(n.push(s),s="");return n}function wM(e){const t=SM(e);return n=>{for(const s of t){if(s==="")break;n=n&&n[s]}return n}}function us(e,t){return(_h[t]||(_h[t]=wM(t)))(e)}function Vu(e){return e.charAt(0).toUpperCase()+e.slice(1)}const So=e=>typeof e<"u",ds=e=>typeof e=="function",Sh=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function CM(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const qe=Math.PI,Ke=2*qe,kM=Ke+qe,la=Number.POSITIVE_INFINITY,PM=qe/180,st=qe/2,Ss=qe/4,wh=qe*2/3,ns=Math.log10,yn=Math.sign;function to(e,t,n){return Math.abs(e-t)<n}function Ch(e){const t=Math.round(e);e=to(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(ns(e))),s=e/n;return(s<=1?1:s<=2?2:s<=5?5:10)*n}function AM(e){const t=[],n=Math.sqrt(e);let s;for(s=1;s<n;s++)e%s===0&&(t.push(s),t.push(e/s));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function yi(e){return!isNaN(parseFloat(e))&&isFinite(e)}function MM(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Zy(e,t,n){let s,i,o;for(s=0,i=e.length;s<i;s++)o=e[s][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function en(e){return e*(qe/180)}function Bu(e){return e*(180/qe)}function kh(e){if(!Qe(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Qy(e,t){const n=t.x-e.x,s=t.y-e.y,i=Math.sqrt(n*n+s*s);let o=Math.atan2(s,n);return o<-.5*qe&&(o+=Ke),{angle:o,distance:i}}function vc(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function EM(e,t){return(e-t+kM)%Ke-qe}function Vt(e){return(e%Ke+Ke)%Ke}function wo(e,t,n,s){const i=Vt(e),o=Vt(t),r=Vt(n),a=Vt(o-i),l=Vt(r-i),c=Vt(i-o),u=Vt(i-r);return i===o||i===r||s&&o===r||a>l&&c<u}function dt(e,t,n){return Math.max(t,Math.min(n,e))}function TM(e){return dt(e,-32768,32767)}function In(e,t,n,s=1e-6){return e>=Math.min(t,n)-s&&e<=Math.max(t,n)+s}function Nu(e,t,n){n=n||(r=>e[r]<t);let s=e.length-1,i=0,o;for(;s-i>1;)o=i+s>>1,n(o)?i=o:s=o;return{lo:i,hi:s}}const Rn=(e,t,n,s)=>Nu(e,n,s?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),OM=(e,t,n)=>Nu(e,n,s=>e[s][t]>=n);function IM(e,t,n){let s=0,i=e.length;for(;s<i&&e[s]<t;)s++;for(;i>s&&e[i-1]>n;)i--;return s>0||i<e.length?e.slice(s,i):e}const eb=["push","pop","shift","splice","unshift"];function RM(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eb.forEach(n=>{const s="_onData"+Vu(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const r=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function Ph(e,t){const n=e._chartjs;if(!n)return;const s=n.listeners,i=s.indexOf(t);i!==-1&&s.splice(i,1),!(s.length>0)&&(eb.forEach(o=>{delete e[o]}),delete e._chartjs)}function tb(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const nb=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function sb(e,t){let n=[],s=!1;return function(...i){n=i,s||(s=!0,nb.call(window,()=>{s=!1,e.apply(t,n)}))}}function DM(e,t){let n;return function(...s){return t?(clearTimeout(n),n=setTimeout(e,t,s)):e.apply(this,s),t}}const $u=e=>e==="start"?"left":e==="end"?"right":"center",pt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,LM=(e,t,n,s)=>e===(s?"left":"right")?n:e==="center"?(t+n)/2:t;function ib(e,t,n){const s=t.length;let i=0,o=s;if(e._sorted){const{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:u,minDefined:d,maxDefined:f}=r.getUserBounds();d&&(i=dt(Math.min(Rn(a,l,c).lo,n?s:Rn(t,l,r.getPixelForValue(c)).lo),0,s-1)),f?o=dt(Math.max(Rn(a,r.axis,u,!0).hi+1,n?0:Rn(t,l,r.getPixelForValue(u),!0).hi+1),i,s)-i:o=s-i}return{start:i,count:o}}function ob(e){const{xScale:t,yScale:n,_scaleRanges:s}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!s)return e._scaleRanges=i,!0;const o=s.xmin!==t.min||s.xmax!==t.max||s.ymin!==n.min||s.ymax!==n.max;return Object.assign(s,i),o}const tr=e=>e===0||e===1,Ah=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Ke/n)),Mh=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Ke/n)+1,no={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*st)+1,easeOutSine:e=>Math.sin(e*st),easeInOutSine:e=>-.5*(Math.cos(qe*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>tr(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>tr(e)?e:Ah(e,.075,.3),easeOutElastic:e=>tr(e)?e:Mh(e,.075,.3),easeInOutElastic(e){return tr(e)?e:e<.5?.5*Ah(e*2,.1125,.45):.5+.5*Mh(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-no.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?no.easeInBounce(e*2)*.5:no.easeOutBounce(e*2-1)*.5+.5};function zu(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Eh(e){return zu(e)?e:new xo(e)}function wl(e){return zu(e)?e:new xo(e).saturate(.5).darken(.1).hexString()}const FM=["x","y","borderWidth","radius","tension"],VM=["color","borderColor","backgroundColor"];function BM(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:VM},numbers:{type:"number",properties:FM}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function NM(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Th=new Map;function $M(e,t){t=t||{};const n=e+JSON.stringify(t);let s=Th.get(n);return s||(s=new Intl.NumberFormat(e,t),Th.set(n,s)),s}function Vo(e,t,n){return $M(t,n).format(e)}const rb={values(e){return Ue(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const s=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=zM(e,n)}const r=ns(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Vo(e,s,l)},logarithmic(e,t,n){if(e===0)return"0";const s=n[t].significand||e/Math.pow(10,Math.floor(ns(e)));return[1,2,3,5,10,15].includes(s)||t>.8*n.length?rb.numeric.call(this,e,t,n):""}};function zM(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var ja={formatters:rb};function HM(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ja.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const zs=Object.create(null),yc=Object.create(null);function so(e,t){if(!t)return e;const n=t.split(".");for(let s=0,i=n.length;s<i;++s){const o=n[s];e=e[o]||(e[o]=Object.create(null))}return e}function Cl(e,t,n){return typeof t=="string"?_o(so(e,t),n):_o(so(e,""),t)}class jM{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=s=>s.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=(s,i)=>wl(i.backgroundColor),this.hoverBorderColor=(s,i)=>wl(i.borderColor),this.hoverColor=(s,i)=>wl(i.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),this.apply(n)}set(t,n){return Cl(this,t,n)}get(t){return so(this,t)}describe(t,n){return Cl(yc,t,n)}override(t,n){return Cl(zs,t,n)}route(t,n,s,i){const o=so(this,t),r=so(this,s),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=r[i];return Ee(l)?Object.assign({},c,l):Ce(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var et=new jM({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[BM,NM,HM]);function WM(e){return!e||De(e.size)||De(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function ca(e,t,n,s,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>s&&(s=o),s}function UM(e,t,n,s){s=s||{};let i=s.data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==t&&(i=s.data={},o=s.garbageCollect=[],s.font=t),e.save(),e.font=t;let r=0;const a=n.length;let l,c,u,d,f;for(l=0;l<a;l++)if(d=n[l],d!=null&&!Ue(d))r=ca(e,i,o,r,d);else if(Ue(d))for(c=0,u=d.length;c<u;c++)f=d[c],f!=null&&!Ue(f)&&(r=ca(e,i,o,r,f));e.restore();const h=o.length/2;if(h>n.length){for(l=0;l<h;l++)delete i[o[l]];o.splice(0,h)}return r}function ws(e,t,n){const s=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*s)/s+i}function Oh(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function bc(e,t,n,s){ab(e,t,n,s,null)}function ab(e,t,n,s,i){let o,r,a,l,c,u,d,f;const h=t.pointStyle,m=t.rotation,g=t.radius;let p=(m||0)*PM;if(h&&typeof h=="object"&&(o=h.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,s),e.rotate(p),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(g)||g<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,s,i/2,g,0,0,Ke):e.arc(n,s,g,0,Ke),e.closePath();break;case"triangle":u=i?i/2:g,e.moveTo(n+Math.sin(p)*u,s-Math.cos(p)*g),p+=wh,e.lineTo(n+Math.sin(p)*u,s-Math.cos(p)*g),p+=wh,e.lineTo(n+Math.sin(p)*u,s-Math.cos(p)*g),e.closePath();break;case"rectRounded":c=g*.516,l=g-c,r=Math.cos(p+Ss)*l,d=Math.cos(p+Ss)*(i?i/2-c:l),a=Math.sin(p+Ss)*l,f=Math.sin(p+Ss)*(i?i/2-c:l),e.arc(n-d,s-a,c,p-qe,p-st),e.arc(n+f,s-r,c,p-st,p),e.arc(n+d,s+a,c,p,p+st),e.arc(n-f,s+r,c,p+st,p+qe),e.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*g,u=i?i/2:l,e.rect(n-u,s-l,2*u,2*l);break}p+=Ss;case"rectRot":d=Math.cos(p)*(i?i/2:g),r=Math.cos(p)*g,a=Math.sin(p)*g,f=Math.sin(p)*(i?i/2:g),e.moveTo(n-d,s-a),e.lineTo(n+f,s-r),e.lineTo(n+d,s+a),e.lineTo(n-f,s+r),e.closePath();break;case"crossRot":p+=Ss;case"cross":d=Math.cos(p)*(i?i/2:g),r=Math.cos(p)*g,a=Math.sin(p)*g,f=Math.sin(p)*(i?i/2:g),e.moveTo(n-d,s-a),e.lineTo(n+d,s+a),e.moveTo(n+f,s-r),e.lineTo(n-f,s+r);break;case"star":d=Math.cos(p)*(i?i/2:g),r=Math.cos(p)*g,a=Math.sin(p)*g,f=Math.sin(p)*(i?i/2:g),e.moveTo(n-d,s-a),e.lineTo(n+d,s+a),e.moveTo(n+f,s-r),e.lineTo(n-f,s+r),p+=Ss,d=Math.cos(p)*(i?i/2:g),r=Math.cos(p)*g,a=Math.sin(p)*g,f=Math.sin(p)*(i?i/2:g),e.moveTo(n-d,s-a),e.lineTo(n+d,s+a),e.moveTo(n+f,s-r),e.lineTo(n-f,s+r);break;case"line":r=i?i/2:Math.cos(p)*g,a=Math.sin(p)*g,e.moveTo(n-r,s-a),e.lineTo(n+r,s+a);break;case"dash":e.moveTo(n,s),e.lineTo(n+Math.cos(p)*(i?i/2:g),s+Math.sin(p)*g);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Dn(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Wa(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Ua(e){e.restore()}function GM(e,t,n,s,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else i==="after"!=!!s?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function KM(e,t,n,s){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(s?t.cp1x:t.cp2x,s?t.cp1y:t.cp2y,s?n.cp2x:n.cp1x,s?n.cp2y:n.cp1y,n.x,n.y)}function qM(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),De(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function YM(e,t,n,s,i){if(i.strikethrough||i.underline){const o=e.measureText(s),r=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(r,u),e.lineTo(a,u),e.stroke()}}function XM(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Hs(e,t,n,s,i,o={}){const r=Ue(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,qM(e,o),l=0;l<r.length;++l)c=r[l],o.backdrop&&XM(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),De(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,s,o.maxWidth)),e.fillText(c,n,s,o.maxWidth),YM(e,n,s,c,o),s+=Number(i.lineHeight);e.restore()}function Co(e,t){const{x:n,y:s,w:i,h:o,radius:r}=t;e.arc(n+r.topLeft,s+r.topLeft,r.topLeft,1.5*qe,qe,!0),e.lineTo(n,s+o-r.bottomLeft),e.arc(n+r.bottomLeft,s+o-r.bottomLeft,r.bottomLeft,qe,st,!0),e.lineTo(n+i-r.bottomRight,s+o),e.arc(n+i-r.bottomRight,s+o-r.bottomRight,r.bottomRight,st,0,!0),e.lineTo(n+i,s+r.topRight),e.arc(n+i-r.topRight,s+r.topRight,r.topRight,0,-st,!0),e.lineTo(n+r.topLeft,s)}const JM=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ZM=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function QM(e,t){const n=(""+e).match(JM);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const eE=e=>+e||0;function Hu(e,t){const n={},s=Ee(t),i=s?Object.keys(t):t,o=Ee(e)?s?r=>Ce(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of i)n[r]=eE(o(r));return n}function lb(e){return Hu(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Fs(e){return Hu(e,["topLeft","topRight","bottomLeft","bottomRight"])}function _t(e){const t=lb(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function lt(e,t){e=e||{},t=t||et.font;let n=Ce(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let s=Ce(e.style,t.style);s&&!(""+s).match(ZM)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const i={family:Ce(e.family,t.family),lineHeight:QM(Ce(e.lineHeight,t.lineHeight),n),size:n,style:s,weight:Ce(e.weight,t.weight),string:""};return i.string=WM(i),i}function zi(e,t,n,s){let i=!0,o,r,a;for(o=0,r=e.length;o<r;++o)if(a=e[o],a!==void 0&&(t!==void 0&&typeof a=="function"&&(a=a(t),i=!1),n!==void 0&&Ue(a)&&(a=a[n%a.length],i=!1),a!==void 0))return s&&!i&&(s.cacheable=!1),a}function tE(e,t,n){const{min:s,max:i}=e,o=Xy(t,(i-s)/2),r=(a,l)=>n&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(i,o)}}function vs(e,t){return Object.assign(Object.create(e),t)}function ju(e,t=[""],n,s,i=()=>e[0]){const o=n||e;typeof s>"u"&&(s=fb("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:s,_getTarget:i,override:a=>ju([a,...e],t,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return ub(a,l,()=>cE(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Rh(a).includes(l)},ownKeys(a){return Rh(a)},set(a,l,c){const u=a._storage||(a._storage=i());return a[l]=u[l]=c,delete a._keys,!0}})}function bi(e,t,n,s){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:cb(e,s),setContext:o=>bi(e,o,n,s),override:o=>bi(e.override(o),t,n,s)};return new Proxy(i,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return ub(o,r,()=>sE(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function cb(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:s=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:s,isScriptable:ds(n)?n:()=>n,isIndexable:ds(s)?s:()=>s}}const nE=(e,t)=>e?e+Vu(t):t,Wu=(e,t)=>Ee(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function ub(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const s=n();return e[t]=s,s}function sE(e,t,n){const{_proxy:s,_context:i,_subProxy:o,_descriptors:r}=e;let a=s[t];return ds(a)&&r.isScriptable(t)&&(a=iE(t,a,e,n)),Ue(a)&&a.length&&(a=oE(t,a,e,r.isIndexable)),Wu(t,a)&&(a=bi(a,i,o&&o[t],r)),a}function iE(e,t,n,s){const{_proxy:i,_context:o,_subProxy:r,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,r||s);return a.delete(e),Wu(e,l)&&(l=Uu(i._scopes,i,e,l)),l}function oE(e,t,n,s){const{_proxy:i,_context:o,_subProxy:r,_descriptors:a}=n;if(typeof o.index<"u"&&s(e))return t[o.index%t.length];if(Ee(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=Uu(c,i,e,u);t.push(bi(d,o,r&&r[e],a))}}return t}function db(e,t,n){return ds(e)?e(t,n):e}const rE=(e,t)=>e===!0?t:typeof e=="string"?us(t,e):void 0;function aE(e,t,n,s,i){for(const o of t){const r=rE(n,o);if(r){e.add(r);const a=db(r._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==s)return a}else if(r===!1&&typeof s<"u"&&n!==s)return null}return!1}function Uu(e,t,n,s){const i=t._rootScopes,o=db(t._fallback,n,s),r=[...e,...i],a=new Set;a.add(s);let l=Ih(a,r,n,o||n,s);return l===null||typeof o<"u"&&o!==n&&(l=Ih(a,r,o,l,s),l===null)?!1:ju(Array.from(a),[""],i,o,()=>lE(t,n,s))}function Ih(e,t,n,s,i){for(;n;)n=aE(e,t,n,s,i);return n}function lE(e,t,n){const s=e._getTarget();t in s||(s[t]={});const i=s[t];return Ue(i)&&Ee(n)?n:i||{}}function cE(e,t,n,s){let i;for(const o of t)if(i=fb(nE(o,e),n),typeof i<"u")return Wu(e,i)?Uu(n,s,e,i):i}function fb(e,t){for(const n of t){if(!n)continue;const s=n[e];if(typeof s<"u")return s}}function Rh(e){let t=e._keys;return t||(t=e._keys=uE(e._scopes)),t}function uE(e){const t=new Set;for(const n of e)for(const s of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(s);return Array.from(t)}function hb(e,t,n,s){const{iScale:i}=e,{key:o="r"}=this._parsing,r=new Array(s);let a,l,c,u;for(a=0,l=s;a<l;++a)c=a+n,u=t[c],r[a]={r:i.parse(us(u,o),c)};return r}const dE=Number.EPSILON||1e-14,xi=(e,t)=>t<e.length&&!e[t].skip&&e[t],gb=e=>e==="x"?"y":"x";function fE(e,t,n,s){const i=e.skip?t:e,o=t,r=n.skip?t:n,a=vc(o,i),l=vc(r,o);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=s*c,f=s*u;return{previous:{x:o.x-d*(r.x-i.x),y:o.y-d*(r.y-i.y)},next:{x:o.x+f*(r.x-i.x),y:o.y+f*(r.y-i.y)}}}function hE(e,t,n){const s=e.length;let i,o,r,a,l,c=xi(e,0);for(let u=0;u<s-1;++u)if(l=c,c=xi(e,u+1),!(!l||!c)){if(to(t[u],0,dE)){n[u]=n[u+1]=0;continue}i=n[u]/t[u],o=n[u+1]/t[u],a=Math.pow(i,2)+Math.pow(o,2),!(a<=9)&&(r=3/Math.sqrt(a),n[u]=i*r*t[u],n[u+1]=o*r*t[u])}}function gE(e,t,n="x"){const s=gb(n),i=e.length;let o,r,a,l=xi(e,0);for(let c=0;c<i;++c){if(r=a,a=l,l=xi(e,c+1),!a)continue;const u=a[n],d=a[s];r&&(o=(u-r[n])/3,a[`cp1${n}`]=u-o,a[`cp1${s}`]=d-o*t[c]),l&&(o=(l[n]-u)/3,a[`cp2${n}`]=u+o,a[`cp2${s}`]=d+o*t[c])}}function mE(e,t="x"){const n=gb(t),s=e.length,i=Array(s).fill(0),o=Array(s);let r,a,l,c=xi(e,0);for(r=0;r<s;++r)if(a=l,l=c,c=xi(e,r+1),!!l){if(c){const u=c[t]-l[t];i[r]=u!==0?(c[n]-l[n])/u:0}o[r]=a?c?yn(i[r-1])!==yn(i[r])?0:(i[r-1]+i[r])/2:i[r-1]:i[r]}hE(e,i,o),gE(e,o,t)}function nr(e,t,n){return Math.max(Math.min(e,n),t)}function pE(e,t){let n,s,i,o,r,a=Dn(e[0],t);for(n=0,s=e.length;n<s;++n)r=o,o=a,a=n<s-1&&Dn(e[n+1],t),o&&(i=e[n],r&&(i.cp1x=nr(i.cp1x,t.left,t.right),i.cp1y=nr(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=nr(i.cp2x,t.left,t.right),i.cp2y=nr(i.cp2y,t.top,t.bottom)))}function vE(e,t,n,s,i){let o,r,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")mE(e,i);else{let c=s?e[e.length-1]:e[0];for(o=0,r=e.length;o<r;++o)a=e[o],l=fE(c,a,e[Math.min(o+1,r-(s?0:1))%r],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&pE(e,n)}function Gu(){return typeof window<"u"&&typeof document<"u"}function Ku(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function ua(e,t,n){let s;return typeof e=="string"?(s=parseInt(e,10),e.indexOf("%")!==-1&&(s=s/100*t.parentNode[n])):s=e,s}const Ga=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function yE(e,t){return Ga(e).getPropertyValue(t)}const bE=["top","right","bottom","left"];function Vs(e,t,n){const s={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=bE[i];s[o]=parseFloat(e[t+"-"+o+n])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const xE=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function _E(e,t){const n=e.touches,s=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=s;let r=!1,a,l;if(xE(i,o,e.target))a=i,l=o;else{const c=t.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Ps(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:s}=t,i=Ga(n),o=i.boxSizing==="border-box",r=Vs(i,"padding"),a=Vs(i,"border","width"),{x:l,y:c,box:u}=_E(e,n),d=r.left+(u&&a.left),f=r.top+(u&&a.top);let{width:h,height:m}=t;return o&&(h-=r.width+a.width,m-=r.height+a.height),{x:Math.round((l-d)/h*n.width/s),y:Math.round((c-f)/m*n.height/s)}}function SE(e,t,n){let s,i;if(t===void 0||n===void 0){const o=e&&Ku(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const r=o.getBoundingClientRect(),a=Ga(o),l=Vs(a,"border","width"),c=Vs(a,"padding");t=r.width-c.width-l.width,n=r.height-c.height-l.height,s=ua(a.maxWidth,o,"clientWidth"),i=ua(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:s||la,maxHeight:i||la}}const sr=e=>Math.round(e*10)/10;function wE(e,t,n,s){const i=Ga(e),o=Vs(i,"margin"),r=ua(i.maxWidth,e,"clientWidth")||la,a=ua(i.maxHeight,e,"clientHeight")||la,l=SE(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const f=Vs(i,"border","width"),h=Vs(i,"padding");c-=h.width+f.width,u-=h.height+f.height}return c=Math.max(0,c-o.width),u=Math.max(0,s?c/s:u-o.height),c=sr(Math.min(c,r,l.maxWidth)),u=sr(Math.min(u,a,l.maxHeight)),c&&!u&&(u=sr(c/2)),(t!==void 0||n!==void 0)&&s&&l.height&&u>l.height&&(u=l.height,c=sr(Math.floor(u*s))),{width:c,height:u}}function Dh(e,t,n){const s=t||1,i=Math.floor(e.height*s),o=Math.floor(e.width*s);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const r=e.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||r.height!==i||r.width!==o?(e.currentDevicePixelRatio=s,r.height=i,r.width=o,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}const CE=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Gu()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Lh(e,t){const n=yE(e,t),s=n&&n.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function As(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function kE(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:s==="middle"?n<.5?e.y:t.y:s==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function PE(e,t,n,s){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},r=As(e,i,n),a=As(i,o,n),l=As(o,t,n),c=As(r,a,n),u=As(a,l,n);return As(c,u,n)}const AE=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,s){return n-s},leftForLtr(n,s){return n-s}}},ME=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function di(e,t,n){return e?AE(t,n):ME()}function mb(e,t){let n,s;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,s=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=s)}function pb(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function vb(e){return e==="angle"?{between:wo,compare:EM,normalize:Vt}:{between:In,compare:(t,n)=>t-n,normalize:t=>t}}function Fh({start:e,end:t,count:n,loop:s,style:i}){return{start:e%n,end:t%n,loop:s&&(t-e+1)%n===0,style:i}}function EE(e,t,n){const{property:s,start:i,end:o}=n,{between:r,normalize:a}=vb(s),l=t.length;let{start:c,end:u,loop:d}=e,f,h;if(d){for(c+=l,u+=l,f=0,h=l;f<h&&r(a(t[c%l][s]),i,o);++f)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:e.style}}function yb(e,t,n){if(!n)return[e];const{property:s,start:i,end:o}=n,r=t.length,{compare:a,between:l,normalize:c}=vb(s),{start:u,end:d,loop:f,style:h}=EE(e,t,n),m=[];let g=!1,p=null,v,b,x;const _=()=>l(i,x,v)&&a(i,x)!==0,A=()=>a(o,v)===0||l(o,x,v),P=()=>g||_(),C=()=>!g||A();for(let w=u,E=u;w<=d;++w)b=t[w%r],!b.skip&&(v=c(b[s]),v!==x&&(g=l(v,i,o),p===null&&P()&&(p=a(v,i)===0?w:E),p!==null&&C()&&(m.push(Fh({start:p,end:w,loop:f,count:r,style:h})),p=null),E=w,x=v));return p!==null&&m.push(Fh({start:p,end:d,loop:f,count:r,style:h})),m}function bb(e,t){const n=[],s=e.segments;for(let i=0;i<s.length;i++){const o=yb(s[i],e.points,t);o.length&&n.push(...o)}return n}function TE(e,t,n,s){let i=0,o=t-1;if(n&&!s)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function OE(e,t,n,s){const i=e.length,o=[];let r=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?a.skip||(s=!1,o.push({start:t%i,end:(l-1)%i,loop:s}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%i,end:r%i,loop:s}),o}function IE(e,t){const n=e.points,s=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:r,end:a}=TE(n,i,o,s);if(s===!0)return Vh(e,[{start:r,end:a,loop:o}],n,t);const l=a<r?a+i:a,c=!!e._fullLoop&&r===0&&a===i-1;return Vh(e,OE(n,r,l,c),n,t)}function Vh(e,t,n,s){return!s||!s.setContext||!n?t:RE(e,t,n,s)}function RE(e,t,n,s){const i=e._chart.getContext(),o=Bh(e.options),{_datasetIndex:r,options:{spanGaps:a}}=e,l=n.length,c=[];let u=o,d=t[0].start,f=d;function h(m,g,p,v){const b=a?-1:1;if(m!==g){for(m+=l;n[m%l].skip;)m-=b;for(;n[g%l].skip;)g+=b;m%l!==g%l&&(c.push({start:m%l,end:g%l,loop:p,style:v}),u=v,d=g%l)}}for(const m of t){d=a?d:m.start;let g=n[d%l],p;for(f=d+1;f<=m.end;f++){const v=n[f%l];p=Bh(s.setContext(vs(i,{type:"segment",p0:g,p1:v,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:r}))),DE(p,u)&&h(d,f-1,m.loop,u),g=v,u=p}d<f-1&&h(d,f-1,m.loop,u)}return c}function Bh(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function DE(e,t){if(!t)return!1;const n=[],s=function(i,o){return zu(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,s)!==JSON.stringify(t,s)}/*!
|
|
* Chart.js v4.4.3
|
|
* https://www.chartjs.org
|
|
* (c) 2024 Chart.js Contributors
|
|
* Released under the MIT License
|
|
*/class LE{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,s,i){const o=n.listeners[i],r=n.duration;o.forEach(a=>a({chart:t,initial:n.initial,numSteps:r,currentStep:Math.min(s-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=nb.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((s,i)=>{if(!s.running||!s.items.length)return;const o=s.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,s,t,"progress")),o.length||(s.running=!1,this._notify(i,s,t,"complete"),s.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let s=n.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,s)),s}listen(t,n,s){this._getAnims(t).listeners[n].push(s)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((s,i)=>Math.max(s,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const s=n.items;let i=s.length-1;for(;i>=0;--i)s[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Mn=new LE;const Nh="transparent",FE={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const s=Eh(e||Nh),i=s.valid&&Eh(t||Nh);return i&&i.valid?i.mix(s,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class VE{constructor(t,n,s,i){const o=n[s];i=zi([t.to,i,o,t.from]);const r=zi([t.from,o,i]);this._active=!0,this._fn=t.fn||FE[t.type||typeof r],this._easing=no[t.easing]||no.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=s,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,s){if(this._active){this._notify(!1);const i=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=zi([t.to,n,i,t.from]),this._from=zi([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,s=this._duration,i=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||n<s),!this._active){this._target[i]=a,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/s%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,s)=>{t.push({res:n,rej:s})})}_notify(t){const n=t?"res":"rej",s=this._promises||[];for(let i=0;i<s.length;i++)s[i][n]()}}class xb{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Ee(t))return;const n=Object.keys(et.animation),s=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!Ee(o))return;const r={};for(const a of n)r[a]=o[a];(Ue(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!s.has(a))&&s.set(a,r)})})}_animateOptions(t,n){const s=n.options,i=NE(t,s);if(!i)return[];const o=this._createAnimations(i,s);return s.$shared&&BE(t.options.$animations,s).then(()=>{t.options=s},()=>{}),o}_createAnimations(t,n){const s=this._properties,i=[],o=t.$animations||(t.$animations={}),r=Object.keys(n),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=o[c];const f=s.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){t[c]=u;continue}o[c]=d=new VE(f,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const s=this._createAnimations(t,n);if(s.length)return Mn.add(this._chart,s),!0}}function BE(e,t){const n=[],s=Object.keys(t);for(let i=0;i<s.length;i++){const o=e[s[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function NE(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function $h(e,t){const n=e&&e.options||{},s=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:s?o:i,end:s?i:o}}function $E(e,t,n){if(n===!1)return!1;const s=$h(e,n),i=$h(t,n);return{top:i.end,right:s.end,bottom:i.start,left:s.start}}function zE(e){let t,n,s,i;return Ee(e)?(t=e.top,n=e.right,s=e.bottom,i=e.left):t=n=s=i=e,{top:t,right:n,bottom:s,left:i,disabled:e===!1}}function _b(e,t){const n=[],s=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=s.length;i<o;++i)n.push(s[i].index);return n}function zh(e,t,n,s={}){const i=e.keys,o=s.mode==="single";let r,a,l,c;if(t!==null){for(r=0,a=i.length;r<a;++r){if(l=+i[r],l===n){if(s.all)continue;break}c=e.values[l],Qe(c)&&(o||t===0||yn(t)===yn(c))&&(t+=c)}return t}}function HE(e,t){const{iScale:n,vScale:s}=t,i=n.axis==="x"?"x":"y",o=s.axis==="x"?"x":"y",r=Object.keys(e),a=new Array(r.length);let l,c,u;for(l=0,c=r.length;l<c;++l)u=r[l],a[l]={[i]:u,[o]:e[u]};return a}function Hh(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function jE(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function WE(e){const{min:t,max:n,minDefined:s,maxDefined:i}=e.getUserBounds();return{min:s?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function UE(e,t,n){const s=e[t]||(e[t]={});return s[n]||(s[n]={})}function jh(e,t,n,s){for(const i of t.getMatchingVisibleMetas(s).reverse()){const o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function Wh(e,t){const{chart:n,_cachedMeta:s}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,u=jE(o,r,s),d=t.length;let f;for(let h=0;h<d;++h){const m=t[h],{[l]:g,[c]:p}=m,v=m._stacks||(m._stacks={});f=v[c]=UE(i,u,g),f[a]=p,f._top=jh(f,r,!0,s.type),f._bottom=jh(f,r,!1,s.type);const b=f._visualValues||(f._visualValues={});b[a]=p}}function kl(e,t){const n=e.scales;return Object.keys(n).filter(s=>n[s].axis===t).shift()}function GE(e,t){return vs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function KE(e,t,n){return vs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Di(e,t){const n=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[s]===void 0||o[s][n]===void 0)return;delete o[s][n],o[s]._visualValues!==void 0&&o[s]._visualValues[n]!==void 0&&delete o[s]._visualValues[n]}}}const Pl=e=>e==="reset"||e==="none",Uh=(e,t)=>t?e:Object.assign({},e),qE=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:_b(n,!0),values:null};class sn{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,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=Hh(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&&Di(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,s=this.getDataset(),i=(d,f,h,m)=>d==="x"?f:d==="r"?m:h,o=n.xAxisID=Ce(s.xAxisID,kl(t,"x")),r=n.yAxisID=Ce(s.yAxisID,kl(t,"y")),a=n.rAxisID=Ce(s.rAxisID,kl(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,r,a),u=n.vAxisID=i(l,r,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.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 n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ph(this._data,this),t._stacked&&Di(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),s=this._data;if(Ee(n)){const i=this._cachedMeta;this._data=HE(n,i)}else if(s!==n){if(s){Ph(s,this);const i=this._cachedMeta;Di(i),i._parsed=[]}n&&Object.isExtensible(n)&&RM(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,s=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=Hh(n.vScale,n),n.stack!==s.stack&&(i=!0,Di(n),n.stack=s.stack),this._resyncElements(t),(i||o!==n._stacked)&&Wh(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:s,_data:i}=this,{iScale:o,_stacked:r}=s,a=o.axis;let l=t===0&&n===i.length?!0:s._sorted,c=t>0&&s._parsed[t-1],u,d,f;if(this._parsing===!1)s._parsed=i,s._sorted=!0,f=i;else{Ue(i[t])?f=this.parseArrayData(s,i,t,n):Ee(i[t])?f=this.parseObjectData(s,i,t,n):f=this.parsePrimitiveData(s,i,t,n);const h=()=>d[a]===null||c&&d[a]<c[a];for(u=0;u<n;++u)s._parsed[u+t]=d=f[u],l&&(h()&&(l=!1),c=d);s._sorted=l}r&&Wh(this,f)}parsePrimitiveData(t,n,s,i){const{iScale:o,vScale:r}=t,a=o.axis,l=r.axis,c=o.getLabels(),u=o===r,d=new Array(i);let f,h,m;for(f=0,h=i;f<h;++f)m=f+s,d[f]={[a]:u||o.parse(c[m],m),[l]:r.parse(n[m],m)};return d}parseArrayData(t,n,s,i){const{xScale:o,yScale:r}=t,a=new Array(i);let l,c,u,d;for(l=0,c=i;l<c;++l)u=l+s,d=n[u],a[l]={x:o.parse(d[0],u),y:r.parse(d[1],u)};return a}parseObjectData(t,n,s,i){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let u,d,f,h;for(u=0,d=i;u<d;++u)f=u+s,h=n[f],c[u]={x:o.parse(us(h,a),f),y:r.parse(us(h,l),f)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,s){const i=this.chart,o=this._cachedMeta,r=n[t.axis],a={keys:_b(i,!0),values:n._stacks[t.axis]._visualValues};return zh(a,r,o.index,{mode:s})}updateRangeFromParsed(t,n,s,i){const o=s[n.axis];let r=o===null?NaN:o;const a=i&&s._stacks[n.axis];i&&a&&(i.values=a,r=zh(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,n){const s=this._cachedMeta,i=s._parsed,o=s._sorted&&t===s.iScale,r=i.length,a=this._getOtherScale(t),l=qE(n,s,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=WE(a);let f,h;function m(){h=i[f];const g=h[a.axis];return!Qe(h[t.axis])||u>g||d<g}for(f=0;f<r&&!(!m()&&(this.updateRangeFromParsed(c,t,h,l),o));++f);if(o){for(f=r-1;f>=0;--f)if(!m()){this.updateRangeFromParsed(c,t,h,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,s=[];let i,o,r;for(i=0,o=n.length;i<o;++i)r=n[i][t.axis],Qe(r)&&s.push(r);return s}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,s=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:s?""+s.getLabelForValue(o[s.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=zE(Ce(this.options.clip,$E(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,s=this._cachedMeta,i=s.data||[],o=n.chartArea,r=[],a=this._drawStart||0,l=this._drawCount||i.length-a,c=this.options.drawActiveElementsOnTop;let u;for(s.dataset&&s.dataset.draw(t,o,a,l),u=a;u<a+l;++u){const d=i[u];d.hidden||(d.active&&c?r.push(d):d.draw(t,o))}for(u=0;u<r.length;++u)r[u].draw(t,o)}getStyle(t,n){const s=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(t||0,s)}getContext(t,n,s){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const r=this._cachedMeta.data[t];o=r.$context||(r.$context=KE(this.getContext(),t,r)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=GE(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=s,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",s){const i=n==="active",o=this._cachedDataOpts,r=t+"-"+n,a=o[r],l=this.enableOptionSharing&&So(s);if(a)return Uh(a,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],f=c.getOptionScopes(this.getDataset(),u),h=Object.keys(et.elements[t]),m=()=>this.getContext(s,i,n),g=c.resolveNamedOptions(f,h,m,d);return g.$shared&&(g.$shared=l,o[r]=Object.freeze(Uh(g,l))),g}_resolveAnimations(t,n,s){const i=this.chart,o=this._cachedDataOpts,r=`animation-${n}`,a=o[r];if(a)return a;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(t,s,n))}const c=new xb(i,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Pl(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const s=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(s),r=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,s),{sharedOptions:o,includeOptions:r}}updateElement(t,n,s,i){Pl(i)?Object.assign(t,s):this._resolveAnimations(n,i).update(t,s)}updateSharedOptions(t,n,s){t&&!Pl(n)&&this._resolveAnimations(void 0,n).update(t,s)}_setStyle(t,n,s,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,s,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,n,s){this._setStyle(t,s,"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 n=this._data,s=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=s.length,o=n.length,r=Math.min(o,i);r&&this.parse(0,r),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,s=!0){const i=this._cachedMeta,o=i.data,r=t+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=r;a--)c[a]=c[a-n]};for(l(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),s&&this.updateElements(o,t,n,"reset")}updateElements(t,n,s,i){}_removeElements(t,n){const s=this._cachedMeta;if(this._parsing){const i=s._parsed.splice(t,n);s._stacked&&Di(s,i)}s.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,s,i]=t;this[n](s,i)}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,n){n&&this._sync(["_removeElements",t,n]);const s=arguments.length-2;s&&this._sync(["_insertElements",t,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}te(sn,"defaults",{}),te(sn,"datasetElementType",null),te(sn,"dataElementType",null);function YE(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let s=[];for(let i=0,o=n.length;i<o;i++)s=s.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=tb(s.sort((i,o)=>i-o))}return e._cache.$bar}function XE(e){const t=e.iScale,n=YE(t,e.type);let s=t._length,i,o,r,a;const l=()=>{r===32767||r===-32768||(So(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(i=0,o=n.length;i<o;++i)r=t.getPixelForValue(n[i]),l();for(a=void 0,i=0,o=t.ticks.length;i<o;++i)r=t.getPixelForTick(i),l();return s}function JE(e,t,n,s){const i=n.barThickness;let o,r;return De(i)?(o=t.min*n.categoryPercentage,r=n.barPercentage):(o=i*s,r=1),{chunk:o/s,ratio:r,start:t.pixels[e]-o/2}}function ZE(e,t,n,s){const i=t.pixels,o=i[e];let r=e>0?i[e-1]:null,a=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;r===null&&(r=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/s,ratio:n.barPercentage,start:c}}function QE(e,t,n,s){const i=n.parse(e[0],s),o=n.parse(e[1],s),r=Math.min(i,o),a=Math.max(i,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:r,max:a}}function Sb(e,t,n,s){return Ue(e)?QE(e,t,n,s):t[n.axis]=n.parse(e,s),t}function Gh(e,t,n,s){const i=e.iScale,o=e.vScale,r=i.getLabels(),a=i===o,l=[];let c,u,d,f;for(c=n,u=n+s;c<u;++c)f=t[c],d={},d[i.axis]=a||i.parse(r[c],c),l.push(Sb(f,d,o,c));return l}function Al(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function eT(e,t,n){return e!==0?yn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function tT(e){let t,n,s,i,o;return e.horizontal?(t=e.base>e.x,n="left",s="right"):(t=e.base<e.y,n="bottom",s="top"),t?(i="end",o="start"):(i="start",o="end"),{start:n,end:s,reverse:t,top:i,bottom:o}}function nT(e,t,n,s){let i=t.borderSkipped;const o={};if(!i){e.borderSkipped=o;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:r,end:a,reverse:l,top:c,bottom:u}=tT(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===s?i=c:(n._bottom||0)===s?i=u:(o[Kh(u,r,a,l)]=!0,i=c)),o[Kh(i,r,a,l)]=!0,e.borderSkipped=o}function Kh(e,t,n,s){return s?(e=sT(e,t,n),e=qh(e,n,t)):e=qh(e,t,n),e}function sT(e,t,n){return e===t?n:e===n?t:e}function qh(e,t,n){return e==="start"?t:e==="end"?n:e}function iT(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class wr extends sn{parsePrimitiveData(t,n,s,i){return Gh(t,n,s,i)}parseArrayData(t,n,s,i){return Gh(t,n,s,i)}parseObjectData(t,n,s,i){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,u=r.axis==="x"?a:l,d=[];let f,h,m,g;for(f=s,h=s+i;f<h;++f)g=n[f],m={},m[o.axis]=o.parse(us(g,c),f),d.push(Sb(us(g,u),m,r,f));return d}updateRangeFromParsed(t,n,s,i){super.updateRangeFromParsed(t,n,s,i);const o=s._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:s,vScale:i}=n,o=this.getParsed(t),r=o._custom,a=Al(r)?"["+r.start+", "+r.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+s.getLabelForValue(o[s.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,s,i){const o=i==="reset",{index:r,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,i);for(let h=n;h<n+s;h++){const m=this.getParsed(h),g=o||De(m[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),p=this._calculateBarIndexPixels(h,u),v=(m._stacks||{})[a.axis],b={horizontal:c,base:g.base,enableBorderRadius:!v||Al(m._custom)||r===v._top||r===v._bottom,x:c?g.head:p.center,y:c?p.center:g.head,height:c?p.size:Math.abs(g.size),width:c?Math.abs(g.size):p.size};f&&(b.options=d||this.resolveDataElementOptions(h,t[h].active?"active":i));const x=b.options||t[h].options;nT(b,x,v,r),iT(b,x,u.ratio),this.updateElement(t[h],h,b,i)}}_getStacks(t,n){const{iScale:s}=this._cachedMeta,i=s.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),o=s.options.stacked,r=[],a=l=>{const c=l.controller.getParsed(n),u=c&&c[l.vScale.axis];if(De(u)||isNaN(u))return!0};for(const l of i)if(!(n!==void 0&&a(l))&&((o===!1||r.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&r.push(l.stack),l.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,s){const i=this._getStacks(t,s),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,s=n.iScale,i=[];let o,r;for(o=0,r=n.data.length;o<r;++o)i.push(s.getPixelForValue(this.getParsed(o)[s.axis],o));const a=t.barThickness;return{min:a||XE(n),pixels:i,start:s._startPixel,end:s._endPixel,stackCount:this._getStackCount(),scale:s,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:s,index:i},options:{base:o,minBarLength:r}}=this,a=o||0,l=this.getParsed(t),c=l._custom,u=Al(c);let d=l[n.axis],f=0,h=s?this.applyStack(n,l,s):d,m,g;h!==d&&(f=h-d,h=d),u&&(d=c.barStart,h=c.barEnd-c.barStart,d!==0&&yn(d)!==yn(c.barEnd)&&(f=0),f+=d);const p=!De(o)&&!u?o:f;let v=n.getPixelForValue(p);if(this.chart.getDataVisibility(t)?m=n.getPixelForValue(f+h):m=v,g=m-v,Math.abs(g)<r){g=eT(g,n,a)*r,d===a&&(v-=g/2);const b=n.getPixelForDecimal(0),x=n.getPixelForDecimal(1),_=Math.min(b,x),A=Math.max(b,x);v=Math.max(Math.min(v,A),_),m=v+g,s&&!u&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(m)-n.getValueForPixel(v))}if(v===n.getPixelForValue(a)){const b=yn(g)*n.getLineWidthForValue(a)/2;v+=b,g-=b}return{size:g,base:v,head:m,center:m+g/2}}_calculateBarIndexPixels(t,n){const s=n.scale,i=this.options,o=i.skipNull,r=Ce(i.maxBarThickness,1/0);let a,l;if(n.grouped){const c=o?this._getStackCount(t):n.stackCount,u=i.barThickness==="flex"?ZE(t,n,i,c):JE(t,n,i,c),d=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=u.start+u.chunk*d+u.chunk/2,l=Math.min(r,u.chunk*u.ratio)}else a=s.getPixelForValue(this.getParsed(t)[s.axis],t),l=Math.min(r,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,s=t.data,i=s.length;let o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&!s[o].hidden&&s[o].draw(this._ctx)}}te(wr,"id","bar"),te(wr,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),te(wr,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Cr extends sn{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,s,i){const o=super.parsePrimitiveData(t,n,s,i);for(let r=0;r<o.length;r++)o[r]._custom=this.resolveDataElementOptions(r+s).radius;return o}parseArrayData(t,n,s,i){const o=super.parseArrayData(t,n,s,i);for(let r=0;r<o.length;r++){const a=n[s+r];o[r]._custom=Ce(a[2],this.resolveDataElementOptions(r+s).radius)}return o}parseObjectData(t,n,s,i){const o=super.parseObjectData(t,n,s,i);for(let r=0;r<o.length;r++){const a=n[s+r];o[r]._custom=Ce(a&&a.r&&+a.r,this.resolveDataElementOptions(r+s).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let s=t.length-1;s>=0;--s)n=Math.max(n,t[s].size(this.resolveDataElementOptions(s))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart.data.labels||[],{xScale:i,yScale:o}=n,r=this.getParsed(t),a=i.getLabelForValue(r.x),l=o.getLabelForValue(r.y),c=r._custom;return{label:s[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,s,i){const o=i==="reset",{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),u=r.axis,d=a.axis;for(let f=n;f<n+s;f++){const h=t[f],m=!o&&this.getParsed(f),g={},p=g[u]=o?r.getPixelForDecimal(.5):r.getPixelForValue(m[u]),v=g[d]=o?a.getBasePixel():a.getPixelForValue(m[d]);g.skip=isNaN(p)||isNaN(v),c&&(g.options=l||this.resolveDataElementOptions(f,h.active?"active":i),o&&(g.options.radius=0)),this.updateElement(h,f,g,i)}}resolveDataElementOptions(t,n){const s=this.getParsed(t);let i=super.resolveDataElementOptions(t,n);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return n!=="active"&&(i.radius=0),i.radius+=Ce(s&&s._custom,o),i}}te(Cr,"id","bubble"),te(Cr,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),te(Cr,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function oT(e,t,n){let s=1,i=1,o=0,r=0;if(t<Ke){const a=e,l=a+t,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),f=Math.sin(l),h=(x,_,A)=>wo(x,a,l,!0)?1:Math.max(_,_*n,A,A*n),m=(x,_,A)=>wo(x,a,l,!0)?-1:Math.min(_,_*n,A,A*n),g=h(0,c,d),p=h(st,u,f),v=m(qe,c,d),b=m(qe+st,u,f);s=(g-v)/2,i=(p-b)/2,o=-(g+v)/2,r=-(p+b)/2}return{ratioX:s,ratioY:i,offsetX:o,offsetY:r}}class Os extends sn{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const s=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=s;else{let o=l=>+s[l];if(Ee(s[t])){const{key:l="value"}=this._parsing;o=c=>+us(s[c],l)}let r,a;for(r=t,a=t+n;r<a;++r)i._parsed[r]=o(r)}}_getRotation(){return en(this.options.rotation-90)}_getCircumference(){return en(this.options.circumference)}_getRotationExtents(){let t=Ke,n=-Ke;for(let s=0;s<this.chart.data.datasets.length;++s)if(this.chart.isDatasetVisible(s)&&this.chart.getDatasetMeta(s).type===this._type){const i=this.chart.getDatasetMeta(s).controller,o=i._getRotation(),r=i._getCircumference();t=Math.min(t,o),n=Math.max(n,o+r)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:s}=n,i=this._cachedMeta,o=i.data,r=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(s.width,s.height)-r)/2,0),l=Math.min(bM(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:m,offsetY:g}=oT(d,u,l),p=(s.width-r)/f,v=(s.height-r)/h,b=Math.max(Math.min(p,v)/2,0),x=Xy(this.options.radius,b),_=Math.max(x*l,0),A=(x-_)/this._getVisibleDatasetWeightTotal();this.offsetX=m*x,this.offsetY=g*x,i.total=this.calculateTotal(),this.outerRadius=x-A*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-A*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,n){const s=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&s.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/Ke)}updateElements(t,n,s,i){const o=i==="reset",r=this.chart,a=r.chartArea,c=r.options.animation,u=(a.left+a.right)/2,d=(a.top+a.bottom)/2,f=o&&c.animateScale,h=f?0:this.innerRadius,m=f?0:this.outerRadius,{sharedOptions:g,includeOptions:p}=this._getSharedOptions(n,i);let v=this._getRotation(),b;for(b=0;b<n;++b)v+=this._circumference(b,o);for(b=n;b<n+s;++b){const x=this._circumference(b,o),_=t[b],A={x:u+this.offsetX,y:d+this.offsetY,startAngle:v,endAngle:v+x,circumference:x,outerRadius:m,innerRadius:h};p&&(A.options=g||this.resolveDataElementOptions(b,_.active?"active":i)),v+=x,this.updateElement(_,b,A,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let s=0,i;for(i=0;i<n.length;i++){const o=t._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(s+=Math.abs(o))}return s}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Ke*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart,i=s.data.labels||[],o=Vo(n._parsed[t],s.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const s=this.chart;let i,o,r,a,l;if(!t){for(i=0,o=s.data.datasets.length;i<o;++i)if(s.isDatasetVisible(i)){r=s.getDatasetMeta(i),t=r.data,a=r.controller;break}}if(!t)return 0;for(i=0,o=t.length;i<o;++i)l=a.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let s=0,i=t.length;s<i;++s){const o=this.resolveDataElementOptions(s);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let s=0;s<t;++s)this.chart.isDatasetVisible(s)&&(n+=this._getRingWeight(s));return n}_getRingWeight(t){return Math.max(Ce(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}te(Os,"id","doughnut"),te(Os,"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"}),te(Os,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),te(Os,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:s,color:i}}=t.legend.options;return n.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}}});class kr extends sn{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:s,data:i=[],_dataset:o}=n,r=this.chart._animationsDisabled;let{start:a,count:l}=ib(n,i,r);this._drawStart=a,this._drawCount=l,ob(n)&&(a=0,l=i.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!o._decimated,s.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(s,void 0,{animated:!r,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,n,s,i){const o=i==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),f=r.axis,h=a.axis,{spanGaps:m,segment:g}=this.options,p=yi(m)?m:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||o||i==="none",b=n+s,x=t.length;let _=n>0&&this.getParsed(n-1);for(let A=0;A<x;++A){const P=t[A],C=v?P:{};if(A<n||A>=b){C.skip=!0;continue}const w=this.getParsed(A),E=De(w[h]),O=C[f]=r.getPixelForValue(w[f],A),D=C[h]=o||E?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,w,l):w[h],A);C.skip=isNaN(O)||isNaN(D)||E,C.stop=A>0&&Math.abs(w[f]-_[f])>p,g&&(C.parsed=w,C.raw=c.data[A]),d&&(C.options=u||this.resolveDataElementOptions(A,P.active?"active":i)),v||this.updateElement(P,A,C,i),_=w}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,s=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return s;const o=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}te(kr,"id","line"),te(kr,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),te(kr,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class io extends sn{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart,i=s.data.labels||[],o=Vo(n._parsed[t].r,s.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,s,i){return hb.bind(this)(t,n,s,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((s,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(o<n.min&&(n.min=o),o>n.max&&(n.max=o))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,s=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),r=Math.max(s.cutoutPercentage?o/100*s.cutoutPercentage:1,0),a=(o-r)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,s,i){const o=i==="reset",r=this.chart,l=r.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*qe;let h=f,m;const g=360/this.countVisibleElements();for(m=0;m<n;++m)h+=this._computeAngle(m,i,g);for(m=n;m<n+s;m++){const p=t[m];let v=h,b=h+this._computeAngle(m,i,g),x=r.getDataVisibility(m)?c.getDistanceFromCenterForValue(this.getParsed(m).r):0;h=b,o&&(l.animateScale&&(x=0),l.animateRotate&&(v=b=f));const _={x:u,y:d,innerRadius:0,outerRadius:x,startAngle:v,endAngle:b,options:this.resolveDataElementOptions(m,p.active?"active":i)};this.updateElement(p,m,_,i)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((s,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,s){return this.chart.getDataVisibility(t)?en(this.resolveDataElementOptions(t,n).angle||s):0}}te(io,"id","polarArea"),te(io,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),te(io,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:s,color:i}}=t.legend.options;return n.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class xc extends Os{}te(xc,"id","pie"),te(xc,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Pr extends sn{getLabelAndValue(t){const n=this._cachedMeta.vScale,s=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(s[n.axis])}}parseObjectData(t,n,s,i){return hb.bind(this)(t,n,s,i)}update(t){const n=this._cachedMeta,s=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(s.points=i,t!=="resize"){const r=this.resolveDatasetElementOptions(t);this.options.showLine||(r.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:r};this.updateElement(s,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,s,i){const o=this._cachedMeta.rScale,r=i==="reset";for(let a=n;a<n+s;a++){const l=t[a],c=this.resolveDataElementOptions(a,l.active?"active":i),u=o.getPointPositionForValue(a,this.getParsed(a).r),d=r?o.xCenter:u.x,f=r?o.yCenter:u.y,h={x:d,y:f,angle:u.angle,skip:isNaN(d)||isNaN(f),options:c};this.updateElement(l,a,h,i)}}}te(Pr,"id","radar"),te(Pr,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),te(Pr,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Ar extends sn{getLabelAndValue(t){const n=this._cachedMeta,s=this.chart.data.labels||[],{xScale:i,yScale:o}=n,r=this.getParsed(t),a=i.getLabelForValue(r.x),l=o.getLabelForValue(r.y);return{label:s[t]||"",value:"("+a+", "+l+")"}}update(t){const n=this._cachedMeta,{data:s=[]}=n,i=this.chart._animationsDisabled;let{start:o,count:r}=ib(n,s,i);if(this._drawStart=o,this._drawCount=r,ob(n)&&(o=0,r=s.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:a,_dataset:l}=n;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=s;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(a,void 0,{animated:!i,options:c},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(s,o,r,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,s,i){const o=i==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(n,i),d=this.getSharedOptions(u),f=this.includeOptions(i,d),h=r.axis,m=a.axis,{spanGaps:g,segment:p}=this.options,v=yi(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||i==="none";let x=n>0&&this.getParsed(n-1);for(let _=n;_<n+s;++_){const A=t[_],P=this.getParsed(_),C=b?A:{},w=De(P[m]),E=C[h]=r.getPixelForValue(P[h],_),O=C[m]=o||w?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,P,l):P[m],_);C.skip=isNaN(E)||isNaN(O)||w,C.stop=_>0&&Math.abs(P[h]-x[h])>v,p&&(C.parsed=P,C.raw=c.data[_]),f&&(C.options=d||this.resolveDataElementOptions(_,A.active?"active":i)),b||this.updateElement(A,_,C,i),x=P}this.updateSharedOptions(d,i,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const s=t.dataset,i=s.options&&s.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),r=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,r)/2}}te(Ar,"id","scatter"),te(Ar,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),te(Ar,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var rT=Object.freeze({__proto__:null,BarController:wr,BubbleController:Cr,DoughnutController:Os,LineController:kr,PieController:xc,PolarAreaController:io,RadarController:Pr,ScatterController:Ar});function Cs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class qu{constructor(t){te(this,"options");this.options=t||{}}static override(t){Object.assign(qu.prototype,t)}init(){}formats(){return Cs()}parse(){return Cs()}format(){return Cs()}add(){return Cs()}diff(){return Cs()}startOf(){return Cs()}endOf(){return Cs()}}var aT={_date:qu};function lT(e,t,n,s){const{controller:i,data:o,_sorted:r}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?OM:Rn;if(s){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(o,t,n-u),f=l(o,t,n+u);return{lo:d.lo,hi:f.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function Bo(e,t,n,s,i){const o=e.getSortedVisibleDatasetMetas(),r=n[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:u}=o[a],{lo:d,hi:f}=lT(o[a],t,r,i);for(let h=d;h<=f;++h){const m=u[h];m.skip||s(m,c,h)}}}function cT(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(s,i){const o=t?Math.abs(s.x-i.x):0,r=n?Math.abs(s.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function Ml(e,t,n,s,i){const o=[];return!i&&!e.isPointInArea(t)||Bo(e,n,t,function(a,l,c){!i&&!Dn(a,e.chartArea,0)||a.inRange(t.x,t.y,s)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function uT(e,t,n,s){let i=[];function o(r,a,l){const{startAngle:c,endAngle:u}=r.getProps(["startAngle","endAngle"],s),{angle:d}=Qy(r,{x:t.x,y:t.y});wo(d,c,u)&&i.push({element:r,datasetIndex:a,index:l})}return Bo(e,n,t,o),i}function dT(e,t,n,s,i,o){let r=[];const a=cT(n);let l=Number.POSITIVE_INFINITY;function c(u,d,f){const h=u.inRange(t.x,t.y,i);if(s&&!h)return;const m=u.getCenterPoint(i);if(!(!!o||e.isPointInArea(m))&&!h)return;const p=a(t,m);p<l?(r=[{element:u,datasetIndex:d,index:f}],l=p):p===l&&r.push({element:u,datasetIndex:d,index:f})}return Bo(e,n,t,c),r}function El(e,t,n,s,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!s?uT(e,t,n,i):dT(e,t,n,s,i,o)}function Yh(e,t,n,s,i){const o=[],r=n==="x"?"inXRange":"inYRange";let a=!1;return Bo(e,n,t,(l,c,u)=>{l[r](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,i))}),s&&!a?[]:o}var fT={evaluateInteractionItems:Bo,modes:{index(e,t,n,s){const i=Ps(t,e),o=n.axis||"x",r=n.includeInvisible||!1,a=n.intersect?Ml(e,i,o,s,r):El(e,i,o,!1,s,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,s){const i=Ps(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;let a=n.intersect?Ml(e,i,o,s,r):El(e,i,o,!1,s,r);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(e,t,n,s){const i=Ps(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;return Ml(e,i,o,s,r)},nearest(e,t,n,s){const i=Ps(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;return El(e,i,o,n.intersect,s,r)},x(e,t,n,s){const i=Ps(t,e);return Yh(e,i,"x",n.intersect,s)},y(e,t,n,s){const i=Ps(t,e);return Yh(e,i,"y",n.intersect,s)}}};const wb=["left","top","right","bottom"];function Li(e,t){return e.filter(n=>n.pos===t)}function Xh(e,t){return e.filter(n=>wb.indexOf(n.pos)===-1&&n.box.axis===t)}function Fi(e,t){return e.sort((n,s)=>{const i=t?s:n,o=t?n:s;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function hT(e){const t=[];let n,s,i,o,r,a;for(n=0,s=(e||[]).length;n<s;++n)i=e[n],{position:o,options:{stack:r,stackWeight:a=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:r&&o+r,stackWeight:a});return t}function gT(e){const t={};for(const n of e){const{stack:s,pos:i,stackWeight:o}=n;if(!s||!wb.includes(i))continue;const r=t[s]||(t[s]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return t}function mT(e,t){const n=gT(e),{vBoxMaxWidth:s,hBoxMaxHeight:i}=t;let o,r,a;for(o=0,r=e.length;o<r;++o){a=e[o];const{fullSize:l}=a.box,c=n[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*s:l&&t.availableWidth,a.height=i):(a.width=s,a.height=u?u*i:l&&t.availableHeight)}return n}function pT(e){const t=hT(e),n=Fi(t.filter(c=>c.box.fullSize),!0),s=Fi(Li(t,"left"),!0),i=Fi(Li(t,"right")),o=Fi(Li(t,"top"),!0),r=Fi(Li(t,"bottom")),a=Xh(t,"x"),l=Xh(t,"y");return{fullSize:n,leftAndTop:s.concat(o),rightAndBottom:i.concat(l).concat(r).concat(a),chartArea:Li(t,"chartArea"),vertical:s.concat(i).concat(l),horizontal:o.concat(r).concat(a)}}function Jh(e,t,n,s){return Math.max(e[n],t[n])+Math.max(e[s],t[s])}function Cb(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 vT(e,t,n,s){const{pos:i,box:o}=n,r=e.maxPadding;if(!Ee(i)){n.size&&(e[i]-=n.size);const d=s[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&Cb(r,o.getPadding());const a=Math.max(0,t.outerWidth-Jh(r,e,"left","right")),l=Math.max(0,t.outerHeight-Jh(r,e,"top","bottom")),c=a!==e.w,u=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function yT(e){const t=e.maxPadding;function n(s){const i=Math.max(t[s]-e[s],0);return e[s]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function bT(e,t){const n=t.maxPadding;function s(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(r=>{o[r]=Math.max(t[r],n[r])}),o}return s(e?["left","right"]:["top","bottom"])}function Hi(e,t,n,s){const i=[];let o,r,a,l,c,u;for(o=0,r=e.length,c=0;o<r;++o){a=e[o],l=a.box,l.update(a.width||t.w,a.height||t.h,bT(a.horizontal,t));const{same:d,other:f}=vT(t,n,a,s);c|=d&&i.length,u=u||f,l.fullSize||i.push(a)}return c&&Hi(i,t,n,s)||u}function ir(e,t,n,s,i){e.top=n,e.left=t,e.right=t+s,e.bottom=n+i,e.width=s,e.height=i}function Zh(e,t,n,s){const i=n.padding;let{x:o,y:r}=t;for(const a of e){const l=a.box,c=s[a.stack]||{count:1,placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){const d=t.w*u,f=c.size||l.height;So(c.start)&&(r=c.start),l.fullSize?ir(l,i.left,r,n.outerWidth-i.right-i.left,f):ir(l,t.left+c.placed,r,d,f),c.start=r,c.placed+=d,r=l.bottom}else{const d=t.h*u,f=c.size||l.width;So(c.start)&&(o=c.start),l.fullSize?ir(l,o,i.top,f,n.outerHeight-i.bottom-i.top):ir(l,o,t.top+c.placed,f,d),c.start=o,c.placed+=d,o=l.right}}t.x=o,t.y=r}var xt={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(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,s){if(!e)return;const i=_t(e.options.layout.padding),o=Math.max(t-i.width,0),r=Math.max(n-i.height,0),a=pT(e.boxes),l=a.vertical,c=a.horizontal;Ne(e.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const u=l.reduce((g,p)=>p.box.options&&p.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/u,hBoxMaxHeight:r/2}),f=Object.assign({},i);Cb(f,_t(s));const h=Object.assign({maxPadding:f,w:o,h:r,x:i.left,y:i.top},i),m=mT(l.concat(c),d);Hi(a.fullSize,h,d,m),Hi(l,h,d,m),Hi(c,h,d,m)&&Hi(l,h,d,m),yT(h),Zh(a.leftAndTop,h,d,m),h.x+=h.w,h.y+=h.h,Zh(a.rightAndBottom,h,d,m),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Ne(a.chartArea,g=>{const p=g.box;Object.assign(p,e.chartArea),p.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class kb{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,s){}removeEventListener(t,n,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,s,i){return n=Math.max(0,n||t.width),s=s||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):s)}}isAttached(t){return!0}updateConfig(t){}}class xT extends kb{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Mr="$chartjs",_T={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Qh=e=>e===null||e==="";function ST(e,t){const n=e.style,s=e.getAttribute("height"),i=e.getAttribute("width");if(e[Mr]={initial:{height:s,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Qh(i)){const o=Lh(e,"width");o!==void 0&&(e.width=o)}if(Qh(s))if(e.style.height==="")e.height=e.width/(t||2);else{const o=Lh(e,"height");o!==void 0&&(e.height=o)}return e}const Pb=CE?{passive:!0}:!1;function wT(e,t,n){e&&e.addEventListener(t,n,Pb)}function CT(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Pb)}function kT(e,t){const n=_T[e.type]||e.type,{x:s,y:i}=Ps(e,t);return{type:n,chart:t,native:e,x:s!==void 0?s:null,y:i!==void 0?i:null}}function da(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function PT(e,t,n){const s=e.canvas,i=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||da(a.addedNodes,s),r=r&&!da(a.removedNodes,s);r&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function AT(e,t,n){const s=e.canvas,i=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||da(a.removedNodes,s),r=r&&!da(a.addedNodes,s);r&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const ko=new Map;let eg=0;function Ab(){const e=window.devicePixelRatio;e!==eg&&(eg=e,ko.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function MT(e,t){ko.size||window.addEventListener("resize",Ab),ko.set(e,t)}function ET(e){ko.delete(e),ko.size||window.removeEventListener("resize",Ab)}function TT(e,t,n){const s=e.canvas,i=s&&Ku(s);if(!i)return;const o=sb((a,l)=>{const c=i.clientWidth;n(a,l),c<i.clientWidth&&n()},window),r=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return r.observe(i),MT(e,o),r}function Tl(e,t,n){n&&n.disconnect(),t==="resize"&&ET(e)}function OT(e,t,n){const s=e.canvas,i=sb(o=>{e.ctx!==null&&n(kT(o,e))},e);return wT(s,t,i),i}class IT extends kb{acquireContext(t,n){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(ST(t,n),s):null}releaseContext(t){const n=t.canvas;if(!n[Mr])return!1;const s=n[Mr].initial;["height","width"].forEach(o=>{const r=s[o];De(r)?n.removeAttribute(o):n.setAttribute(o,r)});const i=s.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[Mr],!0}addEventListener(t,n,s){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),r={attach:PT,detach:AT,resize:TT}[n]||OT;i[n]=r(t,n,s)}removeEventListener(t,n){const s=t.$proxies||(t.$proxies={}),i=s[n];if(!i)return;({attach:Tl,detach:Tl,resize:Tl}[n]||CT)(t,n,i),s[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,s,i){return wE(t,n,s,i)}isAttached(t){const n=t&&Ku(t);return!!(n&&n.isConnected)}}function RT(e){return!Gu()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?xT:IT}var fr;let jn=(fr=class{constructor(){te(this,"x");te(this,"y");te(this,"active",!1);te(this,"options");te(this,"$animations")}tooltipPosition(t){const{x:n,y:s}=this.getProps(["x","y"],t);return{x:n,y:s}}hasValue(){return yi(this.x)&&yi(this.y)}getProps(t,n){const s=this.$animations;if(!n||!s)return this;const i={};return t.forEach(o=>{i[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),i}},te(fr,"defaults",{}),te(fr,"defaultRoutes"),fr);function DT(e,t){const n=e.options.ticks,s=LT(e),i=Math.min(n.maxTicksLimit||s,s),o=n.major.enabled?VT(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>i)return BT(t,c,o,r/i),c;const u=FT(o,t,i);if(r>0){let d,f;const h=r>1?Math.round((l-a)/(r-1)):null;for(or(t,c,u,De(h)?0:a-h,a),d=0,f=r-1;d<f;d++)or(t,c,u,o[d],o[d+1]);return or(t,c,u,l,De(h)?t.length:l+h),c}return or(t,c,u),c}function LT(e){const t=e.options.offset,n=e._tickSize(),s=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(s,i))}function FT(e,t,n){const s=NT(e),i=t.length/n;if(!s)return Math.max(i,1);const o=AM(s);for(let r=0,a=o.length-1;r<a;r++){const l=o[r];if(l>i)return l}return Math.max(i,1)}function VT(e){const t=[];let n,s;for(n=0,s=e.length;n<s;n++)e[n].major&&t.push(n);return t}function BT(e,t,n,s){let i=0,o=n[0],r;for(s=Math.ceil(s),r=0;r<e.length;r++)r===o&&(t.push(e[r]),i++,o=n[i*s])}function or(e,t,n,s,i){const o=Ce(s,0),r=Math.min(Ce(i,e.length),e.length);let a=0,l,c,u;for(n=Math.ceil(n),i&&(l=i-s,n=l/Math.floor(l/n)),u=o;u<0;)a++,u=Math.round(o+a*n);for(c=Math.max(o,0);c<r;c++)c===u&&(t.push(e[c]),a++,u=Math.round(o+a*n))}function NT(e){const t=e.length;let n,s;if(t<2)return!1;for(s=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==s)return!1;return s}const $T=e=>e==="left"?"right":e==="right"?"left":e,tg=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,ng=(e,t)=>Math.min(t||e,e);function sg(e,t){const n=[],s=e.length/t,i=e.length;let o=0;for(;o<i;o+=s)n.push(e[Math.floor(o)]);return n}function zT(e,t,n){const s=e.ticks.length,i=Math.min(t,s-1),o=e._startPixel,r=e._endPixel,a=1e-6;let l=e.getPixelForTick(i),c;if(!(n&&(s===1?c=Math.max(l-o,r-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<o-a||l>r+a)))return l}function HT(e,t){Ne(e,n=>{const s=n.gc,i=s.length/2;let o;if(i>t){for(o=0;o<i;++o)delete n.data[s[o]];s.splice(0,i)}})}function Vi(e){return e.drawTicks?e.tickLength:0}function ig(e,t){if(!e.display)return 0;const n=lt(e.font,t),s=_t(e.padding);return(Ue(e.text)?e.text.length:1)*n.lineHeight+s.height}function jT(e,t){return vs(e,{scale:t,type:"scale"})}function WT(e,t,n){return vs(e,{tick:n,index:t,type:"tick"})}function UT(e,t,n){let s=$u(e);return(n&&t!=="right"||!n&&t==="right")&&(s=$T(s)),s}function GT(e,t,n,s){const{top:i,left:o,bottom:r,right:a,chart:l}=e,{chartArea:c,scales:u}=l;let d=0,f,h,m;const g=r-i,p=a-o;if(e.isHorizontal()){if(h=pt(s,o,a),Ee(n)){const v=Object.keys(n)[0],b=n[v];m=u[v].getPixelForValue(b)+g-t}else n==="center"?m=(c.bottom+c.top)/2+g-t:m=tg(e,n,t);f=a-o}else{if(Ee(n)){const v=Object.keys(n)[0],b=n[v];h=u[v].getPixelForValue(b)-p+t}else n==="center"?h=(c.left+c.right)/2-p+t:h=tg(e,n,t);m=pt(s,r,i),d=n==="left"?-st:st}return{titleX:h,titleY:m,maxWidth:f,rotation:d}}class Zs extends jn{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,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:s,_suggestedMax:i}=this;return t=Lt(t,Number.POSITIVE_INFINITY),n=Lt(n,Number.NEGATIVE_INFINITY),s=Lt(s,Number.POSITIVE_INFINITY),i=Lt(i,Number.NEGATIVE_INFINITY),{min:Lt(t,s),max:Lt(n,i),minDefined:Qe(t),maxDefined:Qe(n)}}getMinMax(t){let{min:n,max:s,minDefined:i,maxDefined:o}=this.getUserBounds(),r;if(i&&o)return{min:n,max:s};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)r=a[l].controller.getMinMax(this,t),i||(n=Math.min(n,r.min)),o||(s=Math.max(s,r.max));return n=o&&n>s?s:n,s=i&&n>s?n:s,{min:Lt(n,Lt(s,n)),max:Lt(s,Lt(n,s))}}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(){He(this.options.beforeUpdate,[this])}update(t,n,s){const{beginAtZero:i,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=tE(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?sg(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||r.source==="auto")&&(this.ticks=DT(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,n,s;this.isHorizontal()?(n=this.left,s=this.right):(n=this.top,s=this.bottom,t=!t),this._startPixel=n,this._endPixel=s,this._reversePixels=t,this._length=s-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){He(this.options.afterUpdate,[this])}beforeSetDimensions(){He(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(){He(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),He(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){He(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let s,i,o;for(s=0,i=t.length;s<i;s++)o=t[s],o.label=He(n.callback,[o.value,s,t],this)}afterTickToLabelConversion(){He(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){He(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,s=ng(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,o=n.maxRotation;let r=i,a,l,c;if(!this._isVisible()||!n.display||i>=o||s<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,h=dt(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/s:h/(s-1),d+6>a&&(a=h/(s-(t.offset?.5:1)),l=this.maxHeight-Vi(t.grid)-n.padding-ig(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),r=Bu(Math.min(Math.asin(dt((u.highest.height+6)/a,-1,1)),Math.asin(dt(l/c,-1,1))-Math.asin(dt(f/c,-1,1)))),r=Math.max(i,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){He(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){He(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:s,title:i,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=ig(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=Vi(o)+l):(t.height=this.maxHeight,t.width=Vi(o)+l),s.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),h=s.padding*2,m=en(this.labelRotation),g=Math.cos(m),p=Math.sin(m);if(a){const v=s.mirror?0:p*d.width+g*f.height;t.height=Math.min(this.maxHeight,t.height+v+h)}else{const v=s.mirror?0:g*d.width+p*f.height;t.width=Math.min(this.maxWidth,t.width+v+h)}this._calculatePadding(c,u,p,g)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,s,i){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?c?(f=i*t.width,h=s*n.height):(f=s*t.height,h=i*n.width):o==="start"?h=n.width:o==="end"?f=t.width:o!=="inner"&&(f=t.width/2,h=n.width/2),this.paddingLeft=Math.max((f-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-d+r)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;o==="start"?(u=0,d=t.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+r,this.paddingBottom=d+r}}_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(){He(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,s;for(n=0,s=t.length;n<s;n++)De(t[n].label)&&(t.splice(n,1),s--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let s=this.ticks;n<s.length&&(s=sg(s,n)),this._labelSizes=t=this._computeLabelSizes(s,s.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,s){const{ctx:i,_longestTextCache:o}=this,r=[],a=[],l=Math.floor(n/ng(n,s));let c=0,u=0,d,f,h,m,g,p,v,b,x,_,A;for(d=0;d<n;d+=l){if(m=t[d].label,g=this._resolveTickFontOptions(d),i.font=p=g.string,v=o[p]=o[p]||{data:{},gc:[]},b=g.lineHeight,x=_=0,!De(m)&&!Ue(m))x=ca(i,v.data,v.gc,x,m),_=b;else if(Ue(m))for(f=0,h=m.length;f<h;++f)A=m[f],!De(A)&&!Ue(A)&&(x=ca(i,v.data,v.gc,x,A),_+=b);r.push(x),a.push(_),c=Math.max(x,c),u=Math.max(_,u)}HT(o,n);const P=r.indexOf(c),C=a.indexOf(u),w=E=>({width:r[E]||0,height:a[E]||0});return{first:w(0),last:w(n-1),widest:w(P),highest:w(C),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return TM(this._alignToPixels?ws(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const s=n[t];return s.$context||(s.$context=WT(this.getContext(),t,s))}return this.$context||(this.$context=jT(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=en(this.labelRotation),s=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,l=o?o.highest.height+r:0;return this.isHorizontal()?l*s>a*i?a/s:l/i:l*i<a*s?l/s:a/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,s=this.chart,i=this.options,{grid:o,position:r,border:a}=i,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=Vi(o),h=[],m=a.setContext(this.getContext()),g=m.display?m.width:0,p=g/2,v=function(K){return ws(s,K,g)};let b,x,_,A,P,C,w,E,O,D,T,L;if(r==="top")b=v(this.bottom),C=this.bottom-f,E=b-p,D=v(t.top)+p,L=t.bottom;else if(r==="bottom")b=v(this.top),D=t.top,L=v(t.bottom)-p,C=b+p,E=this.top+f;else if(r==="left")b=v(this.right),P=this.right-f,w=b-p,O=v(t.left)+p,T=t.right;else if(r==="right")b=v(this.left),O=t.left,T=v(t.right)-p,P=b+p,w=this.left+f;else if(n==="x"){if(r==="center")b=v((t.top+t.bottom)/2+.5);else if(Ee(r)){const K=Object.keys(r)[0],q=r[K];b=v(this.chart.scales[K].getPixelForValue(q))}D=t.top,L=t.bottom,C=b+p,E=C+f}else if(n==="y"){if(r==="center")b=v((t.left+t.right)/2);else if(Ee(r)){const K=Object.keys(r)[0],q=r[K];b=v(this.chart.scales[K].getPixelForValue(q))}P=b-p,w=P-f,O=t.left,T=t.right}const $=Ce(i.ticks.maxTicksLimit,d),j=Math.max(1,Math.ceil(d/$));for(x=0;x<d;x+=j){const K=this.getContext(x),q=o.setContext(K),I=a.setContext(K),V=q.lineWidth,re=q.color,H=I.dash||[],Q=I.dashOffset,Y=q.tickWidth,de=q.tickColor,he=q.tickBorderDash||[],ie=q.tickBorderDashOffset;_=zT(this,x,l),_!==void 0&&(A=ws(s,_,V),c?P=w=O=T=A:C=E=D=L=A,h.push({tx1:P,ty1:C,tx2:w,ty2:E,x1:O,y1:D,x2:T,y2:L,width:V,color:re,borderDash:H,borderDashOffset:Q,tickWidth:Y,tickColor:de,tickBorderDash:he,tickBorderDashOffset:ie}))}return this._ticksLength=d,this._borderValue=b,h}_computeLabelItems(t){const n=this.axis,s=this.options,{position:i,ticks:o}=s,r=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=o,f=Vi(s.grid),h=f+u,m=d?-u:h,g=-en(this.labelRotation),p=[];let v,b,x,_,A,P,C,w,E,O,D,T,L="middle";if(i==="top")P=this.bottom-m,C=this._getXAxisLabelAlignment();else if(i==="bottom")P=this.top+m,C=this._getXAxisLabelAlignment();else if(i==="left"){const j=this._getYAxisLabelAlignment(f);C=j.textAlign,A=j.x}else if(i==="right"){const j=this._getYAxisLabelAlignment(f);C=j.textAlign,A=j.x}else if(n==="x"){if(i==="center")P=(t.top+t.bottom)/2+h;else if(Ee(i)){const j=Object.keys(i)[0],K=i[j];P=this.chart.scales[j].getPixelForValue(K)+h}C=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")A=(t.left+t.right)/2-h;else if(Ee(i)){const j=Object.keys(i)[0],K=i[j];A=this.chart.scales[j].getPixelForValue(K)}C=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?L="top":l==="end"&&(L="bottom"));const $=this._getLabelSizes();for(v=0,b=a.length;v<b;++v){x=a[v],_=x.label;const j=o.setContext(this.getContext(v));w=this.getPixelForTick(v)+o.labelOffset,E=this._resolveTickFontOptions(v),O=E.lineHeight,D=Ue(_)?_.length:1;const K=D/2,q=j.color,I=j.textStrokeColor,V=j.textStrokeWidth;let re=C;r?(A=w,C==="inner"&&(v===b-1?re=this.options.reverse?"left":"right":v===0?re=this.options.reverse?"right":"left":re="center"),i==="top"?c==="near"||g!==0?T=-D*O+O/2:c==="center"?T=-$.highest.height/2-K*O+O:T=-$.highest.height+O/2:c==="near"||g!==0?T=O/2:c==="center"?T=$.highest.height/2-K*O:T=$.highest.height-D*O,d&&(T*=-1),g!==0&&!j.showLabelBackdrop&&(A+=O/2*Math.sin(g))):(P=w,T=(1-D)*O/2);let H;if(j.showLabelBackdrop){const Q=_t(j.backdropPadding),Y=$.heights[v],de=$.widths[v];let he=T-Q.top,ie=0-Q.left;switch(L){case"middle":he-=Y/2;break;case"bottom":he-=Y;break}switch(C){case"center":ie-=de/2;break;case"right":ie-=de;break;case"inner":v===b-1?ie-=de:v>0&&(ie-=de/2);break}H={left:ie,top:he,width:de+Q.width,height:Y+Q.height,color:j.backdropColor}}p.push({label:_,font:E,textOffset:T,options:{rotation:g,color:q,strokeColor:I,strokeWidth:V,textAlign:re,textBaseline:L,translation:[A,P],backdrop:H}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-en(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:s,mirror:i,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,u;return n==="left"?i?(u=this.right+o,s==="near"?c="left":s==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,s==="near"?c="right":s==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,s==="near"?c="right":s==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,s==="near"?c="left":s==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:s,top:i,width:o,height:r}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(s,i,o,r),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,s=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,u)=>{!u.width||!u.color||(s.save(),s.lineWidth=u.width,s.strokeStyle=u.color,s.setLineDash(u.borderDash||[]),s.lineDashOffset=u.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(n.display)for(o=0,r=i.length;o<r;++o){const l=i[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({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:n,options:{border:s,grid:i}}=this,o=s.setContext(this.getContext()),r=s.display?o.width:0;if(!r)return;const a=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,f;this.isHorizontal()?(c=ws(t,this.left,r)-r/2,u=ws(t,this.right,a)+a/2,d=f=l):(d=ws(t,this.top,r)-r/2,f=ws(t,this.bottom,a)+a/2,c=u=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const s=this.ctx,i=this._computeLabelArea();i&&Wa(s,i);const o=this.getLabelItems(t);for(const r of o){const a=r.options,l=r.font,c=r.label,u=r.textOffset;Hs(s,c,0,u,l,a)}i&&Ua(s)}drawTitle(){const{ctx:t,options:{position:n,title:s,reverse:i}}=this;if(!s.display)return;const o=lt(s.font),r=_t(s.padding),a=s.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||Ee(n)?(l+=r.bottom,Ue(s.text)&&(l+=o.lineHeight*(s.text.length-1))):l+=r.top;const{titleX:c,titleY:u,maxWidth:d,rotation:f}=GT(this,l,n,a);Hs(t,s.text,0,0,o,{color:s.color,maxWidth:d,rotation:f,textAlign:UT(a,n,i),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,s=Ce(t.grid&&t.grid.z,-1),i=Ce(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Zs.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",i=[];let o,r;for(o=0,r=n.length;o<r;++o){const a=n[o];a[s]===this.id&&(!t||a.type===t)&&i.push(a)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return lt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class rr{constructor(t,n,s){this.type=t,this.scope=n,this.override=s,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let s;YT(n)&&(s=this.register(n));const i=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,KT(t,r,s),this.override&&et.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const n=this.items,s=t.id,i=this.scope;s in n&&delete n[s],i&&s in et[i]&&(delete et[i][s],this.override&&delete zs[s])}}function KT(e,t,n){const s=_o(Object.create(null),[n?et.get(n):{},et.get(t),e.defaults]);et.set(t,s),e.defaultRoutes&&qT(t,e.defaultRoutes),e.descriptors&&et.describe(t,e.descriptors)}function qT(e,t){Object.keys(t).forEach(n=>{const s=n.split("."),i=s.pop(),o=[e].concat(s).join("."),r=t[n].split("."),a=r.pop(),l=r.join(".");et.route(o,i,l,a)})}function YT(e){return"id"in e&&"defaults"in e}class XT{constructor(){this.controllers=new rr(sn,"datasets",!0),this.elements=new rr(jn,"elements"),this.plugins=new rr(Object,"plugins"),this.scales=new rr(Zs,"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,n,s){[...n].forEach(i=>{const o=s||this._getRegistryForType(i);s||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):Ne(i,r=>{const a=s||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,n,s){const i=Vu(t);He(s["before"+i],[],s),n[t](s),He(s["after"+i],[],s)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const s=this._typedRegistries[n];if(s.isForType(t))return s}return this.plugins}_get(t,n,s){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+s+".");return i}}var dn=new XT;class JT{constructor(){this._init=[]}notify(t,n,s,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),r=this._notify(o,t,n,s);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,n,s,i){i=i||{};for(const o of t){const r=o.plugin,a=r[s],l=[n,i,o.options];if(He(a,l,r)===!1&&i.cancelable)return!1}return!0}invalidate(){De(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const s=t&&t.config,i=Ce(s.options&&s.options.plugins,{}),o=ZT(s);return i===!1&&!n?[]:eO(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],s=this._cache,i=(o,r)=>o.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,s),t,"stop"),this._notify(i(s,n),t,"start")}}function ZT(e){const t={},n=[],s=Object.keys(dn.plugins.items);for(let o=0;o<s.length;o++)n.push(dn.getPlugin(s[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const r=i[o];n.indexOf(r)===-1&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}function QT(e,t){return!t&&e===!1?null:e===!0?{}:e}function eO(e,{plugins:t,localIds:n},s,i){const o=[],r=e.getContext();for(const a of t){const l=a.id,c=QT(s[l],i);c!==null&&o.push({plugin:a,options:tO(e.config,{plugin:a,local:n[l]},c,r)})}return o}function tO(e,{plugin:t,local:n},s,i){const o=e.pluginScopeKeys(t),r=e.getOptionScopes(s,o);return n&&t.defaults&&r.push(t.defaults),e.createResolver(r,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function _c(e,t){const n=et.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function nO(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function sO(e,t){return e===t?"_index_":"_value_"}function og(e){if(e==="x"||e==="y"||e==="r")return e}function iO(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Sc(e,...t){if(og(e))return e;for(const n of t){const s=n.axis||iO(n.position)||e.length>1&&og(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function rg(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function oO(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(n.length)return rg(e,"x",n[0])||rg(e,"y",n[0])}return{}}function rO(e,t){const n=zs[e.type]||{scales:{}},s=t.scales||{},i=_c(e.type,t),o=Object.create(null);return Object.keys(s).forEach(r=>{const a=s[r];if(!Ee(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Sc(r,a,oO(r,e),et.scales[a.type]),c=sO(l,i),u=n.scales||{};o[r]=eo(Object.create(null),[{axis:l},a,u[l],u[c]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,l=r.indexAxis||_c(a,t),u=(zs[a]||{}).scales||{};Object.keys(u).forEach(d=>{const f=nO(d,l),h=r[f+"AxisID"]||f;o[h]=o[h]||Object.create(null),eo(o[h],[{axis:f},s[h],u[d]])})}),Object.keys(o).forEach(r=>{const a=o[r];eo(a,[et.scales[a.type],et.scale])}),o}function Mb(e){const t=e.options||(e.options={});t.plugins=Ce(t.plugins,{}),t.scales=rO(e,t)}function Eb(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function aO(e){return e=e||{},e.data=Eb(e.data),Mb(e),e}const ag=new Map,Tb=new Set;function ar(e,t){let n=ag.get(e);return n||(n=t(),ag.set(e,n),Tb.add(n)),n}const Bi=(e,t,n)=>{const s=us(t,n);s!==void 0&&e.add(s)};class lO{constructor(t){this._config=aO(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=Eb(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(),Mb(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ar(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return ar(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return ar(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,s=this.type;return ar(`${s}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const s=this._scopeCache;let i=s.get(t);return(!i||n)&&(i=new Map,s.set(t,i)),i}getOptionScopes(t,n,s){const{options:i,type:o}=this,r=this._cachedScopes(t,s),a=r.get(n);if(a)return a;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>Bi(l,t,d))),u.forEach(d=>Bi(l,i,d)),u.forEach(d=>Bi(l,zs[o]||{},d)),u.forEach(d=>Bi(l,et,d)),u.forEach(d=>Bi(l,yc,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Tb.has(n)&&r.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,zs[n]||{},et.datasets[n]||{},{type:n},et,yc]}resolveNamedOptions(t,n,s,i=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=lg(this._resolverCache,t,i);let l=r;if(uO(r,n)){o.$shared=!1,s=ds(s)?s():s;const c=this.createResolver(t,s,a);l=bi(r,s,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,s=[""],i){const{resolver:o}=lg(this._resolverCache,t,s);return Ee(n)?bi(o,n,void 0,i):o}}function lg(e,t,n){let s=e.get(t);s||(s=new Map,e.set(t,s));const i=n.join();let o=s.get(i);return o||(o={resolver:ju(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},s.set(i,o)),o}const cO=e=>Ee(e)&&Object.getOwnPropertyNames(e).some(t=>ds(e[t]));function uO(e,t){const{isScriptable:n,isIndexable:s}=cb(e);for(const i of t){const o=n(i),r=s(i),a=(r||o)&&e[i];if(o&&(ds(a)||cO(a))||r&&Ue(a))return!0}return!1}var dO="4.4.3";const fO=["top","bottom","left","right","chartArea"];function cg(e,t){return e==="top"||e==="bottom"||fO.indexOf(e)===-1&&t==="x"}function ug(e,t){return function(n,s){return n[e]===s[e]?n[t]-s[t]:n[e]-s[e]}}function dg(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),He(n&&n.onComplete,[e],t)}function hO(e){const t=e.chart,n=t.options.animation;He(n&&n.onProgress,[e],t)}function Ob(e){return Gu()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Er={},fg=e=>{const t=Ob(e);return Object.values(Er).filter(n=>n.canvas===t).pop()};function gO(e,t,n){const s=Object.keys(e);for(const i of s){const o=+i;if(o>=t){const r=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=r)}}}function mO(e,t,n,s){return!n||e.type==="mouseout"?null:s?t:e}function lr(e,t,n){return e.options.clip?e[n]:t[n]}function pO(e,t){const{xScale:n,yScale:s}=e;return n&&s?{left:lr(n,t,"left"),right:lr(n,t,"right"),top:lr(s,t,"top"),bottom:lr(s,t,"bottom")}:t}class On{static register(...t){dn.add(...t),hg()}static unregister(...t){dn.remove(...t),hg()}constructor(t,n){const s=this.config=new lO(n),i=Ob(t),o=fg(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||RT(i)),this.platform.updateConfig(s);const a=this.platform.acquireContext(i,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=yM(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,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 JT,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=DM(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],Er[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Mn.listen(this,"complete",dg),Mn.listen(this,"progress",hO),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:s,height:i,_aspectRatio:o}=this;return De(t)?n&&o?o:i?s/i: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 dn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Dh(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Oh(this.canvas,this.ctx),this}stop(){return Mn.stop(this),this}resize(t,n){Mn.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const s=this.options,i=this.canvas,o=s.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(i,t,n,o),a=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,Dh(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),He(s.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ne(n,(s,i)=>{s.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,s=this.scales,i=Object.keys(s).reduce((r,a)=>(r[a]=!1,r),{});let o=[];n&&(o=o.concat(Object.keys(n).map(r=>{const a=n[r],l=Sc(r,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Ne(o,r=>{const a=r.options,l=a.id,c=Sc(l,a),u=Ce(a.type,r.dtype);(a.position===void 0||cg(a.position,c)!==cg(r.dposition))&&(a.position=r.dposition),i[l]=!0;let d=null;if(l in s&&s[l].type===u)d=s[l];else{const f=dn.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),s[d.id]=d}d.init(a,t)}),Ne(i,(r,a)=>{r||delete s[a]}),Ne(s,r=>{xt.configure(this,r,r.options),xt.addBox(this,r)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,s=t.length;if(t.sort((i,o)=>i.index-o.index),s>n){for(let i=n;i<s;++i)this._destroyDatasetMeta(i);t.splice(n,s-n)}this._sortedMetasets=t.slice(0).sort(ug("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((s,i)=>{n.filter(o=>o===s._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let s,i;for(this._removeUnreferencedMetasets(),s=0,i=n.length;s<i;s++){const o=n[s];let r=this.getDatasetMeta(s);const a=o.type||this.config.type;if(r.type&&r.type!==a&&(this._destroyDatasetMeta(s),r=this.getDatasetMeta(s)),r.type=a,r.indexAxis=o.indexAxis||_c(a,this.options),r.order=o.order||0,r.index=s,r.label=""+o.label,r.visible=this.isDatasetVisible(s),r.controller)r.controller.updateIndex(s),r.controller.linkScales();else{const l=dn.getController(a),{datasetElementType:c,dataElementType:u}=et.datasets[a];Object.assign(l,{dataElementType:dn.getElement(u),datasetElementType:c&&dn.getElement(c)}),r.controller=new l(this,s),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){Ne(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const s=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),f=!i&&o.indexOf(d)===-1;d.buildOrUpdateElements(f),r=Math.max(+d.getMaxOverflow(),r)}r=this._minPadding=s.layout.autoPadding?r:0,this._updateLayout(r),i||Ne(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ug("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Ne(this.scales,t=>{xt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!Sh(n,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:s,start:i,count:o}of n){const r=s==="_removeElements"?-o:o;gO(t,i,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,s=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),i=s(0);for(let o=1;o<n;o++)if(!Sh(i,s(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;xt.update(this,this.width,this.height,t);const n=this.chartArea,s=n.width<=0||n.height<=0;this._layers=[],Ne(this.boxes,i=>{s&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,s=this.data.datasets.length;n<s;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,s=this.data.datasets.length;n<s;++n)this._updateDataset(n,ds(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const s=this.getDatasetMeta(t),i={meta:s,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(s.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Mn.has(this)?this.attached&&!Mn.running(this)&&Mn.start(this):(this.draw(),dg({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:s,height:i}=this._resizeBeforeDraw;this._resize(s,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,s=[];let i,o;for(i=0,o=n.length;i<o;++i){const r=n[i];(!t||r.visible)&&s.push(r)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,s=t._clip,i=!s.disabled,o=pO(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&Wa(n,{left:s.left===!1?0:o.left-s.left,right:s.right===!1?this.width:o.right+s.right,top:s.top===!1?0:o.top-s.top,bottom:s.bottom===!1?this.height:o.bottom+s.bottom}),t.controller.draw(),i&&Ua(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Dn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,s,i){const o=fT.modes[n];return typeof o=="function"?o(this,t,s,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],s=this._metasets;let i=s.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},s.push(i)),i}getContext(){return this.$context||(this.$context=vs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!n.hidden}setDatasetVisibility(t,n){const s=this.getDatasetMeta(t);s.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,s){const i=s?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,i);So(n)?(o.data[n].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),r.update(o,{visible:s}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Mn.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Oh(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Er[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,n=this.platform,s=(o,r)=>{n.addEventListener(this,o,r),t[o]=r},i=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};Ne(this.options.events,o=>s(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,s=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{i("attach",a),this.attached=!0,this.resize(),s("resize",o),s("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),s("attach",a)},n.isAttached(this.canvas)?a():r()}unbindEvents(){Ne(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ne(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,s){const i=s?"set":"remove";let o,r,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){r=t[a];const c=r&&this.getDatasetMeta(r.datasetIndex).controller;c&&c[i+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],s=t.map(({datasetIndex:o,index:r})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!ra(s,n)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,n))}notifyPlugins(t,n,s){return this._plugins.notify(this,t,n,s)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,s){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),r=o(n,t),a=s?t:o(t,n);r.length&&this.updateHoverStyle(r,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const s={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,i)===!1)return;const o=this._handleEvent(t,n,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,i),(o||s.changed)&&this.render(),this}_handleEvent(t,n,s){const{_active:i=[],options:o}=this,r=n,a=this._getActiveElements(t,i,s,r),l=CM(t),c=mO(t,this._lastEvent,s,l);s&&(this._lastEvent=null,He(o.onHover,[t,a,this],this),l&&He(o.onClick,[t,a,this],this));const u=!ra(a,i);return(u||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,s,i){if(t.type==="mouseout")return[];if(!s)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}te(On,"defaults",et),te(On,"instances",Er),te(On,"overrides",zs),te(On,"registry",dn),te(On,"version",dO),te(On,"getChart",fg);function hg(){return Ne(On.instances,e=>e._plugins.invalidate())}function vO(e,t,n){const{startAngle:s,pixelMargin:i,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(o,r,a,s-c,n+c),l>i?(c=i/l,e.arc(o,r,l,n+c,s-c,!0)):e.arc(o,r,i,n+st,s-st),e.closePath(),e.clip()}function yO(e){return Hu(e,["outerStart","outerEnd","innerStart","innerEnd"])}function bO(e,t,n,s){const i=yO(e.options.borderRadius),o=(n-t)/2,r=Math.min(o,s*t/2),a=l=>{const c=(n-Math.min(o,l))*s/2;return dt(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:dt(i.innerStart,0,r),innerEnd:dt(i.innerEnd,0,r)}}function si(e,t,n,s){return{x:n+e*Math.cos(t),y:s+e*Math.sin(t)}}function fa(e,t,n,s,i,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+s+n-c,0),f=u>0?u+s+n+c:0;let h=0;const m=i-l;if(s){const j=u>0?u-s:0,K=d>0?d-s:0,q=(j+K)/2,I=q!==0?m*q/(q+s):m;h=(m-I)/2}const g=Math.max(.001,m*d-n/qe)/d,p=(m-g)/2,v=l+p+h,b=i-p-h,{outerStart:x,outerEnd:_,innerStart:A,innerEnd:P}=bO(t,f,d,b-v),C=d-x,w=d-_,E=v+x/C,O=b-_/w,D=f+A,T=f+P,L=v+A/D,$=b-P/T;if(e.beginPath(),o){const j=(E+O)/2;if(e.arc(r,a,d,E,j),e.arc(r,a,d,j,O),_>0){const V=si(w,O,r,a);e.arc(V.x,V.y,_,O,b+st)}const K=si(T,b,r,a);if(e.lineTo(K.x,K.y),P>0){const V=si(T,$,r,a);e.arc(V.x,V.y,P,b+st,$+Math.PI)}const q=(b-P/f+(v+A/f))/2;if(e.arc(r,a,f,b-P/f,q,!0),e.arc(r,a,f,q,v+A/f,!0),A>0){const V=si(D,L,r,a);e.arc(V.x,V.y,A,L+Math.PI,v-st)}const I=si(C,v,r,a);if(e.lineTo(I.x,I.y),x>0){const V=si(C,E,r,a);e.arc(V.x,V.y,x,v-st,E)}}else{e.moveTo(r,a);const j=Math.cos(E)*d+r,K=Math.sin(E)*d+a;e.lineTo(j,K);const q=Math.cos(O)*d+r,I=Math.sin(O)*d+a;e.lineTo(q,I)}e.closePath()}function xO(e,t,n,s,i){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){fa(e,t,n,s,l,i);for(let c=0;c<o;++c)e.fill();isNaN(a)||(l=r+(a%Ke||Ke))}return fa(e,t,n,s,l,i),e.fill(),l}function _O(e,t,n,s,i){const{fullCircles:o,startAngle:r,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=f,h?(e.lineWidth=c*2,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let m=t.endAngle;if(o){fa(e,t,n,s,m,i);for(let g=0;g<o;++g)e.stroke();isNaN(a)||(m=r+(a%Ke||Ke))}h&&vO(e,t,m),o||(fa(e,t,n,s,m,i),e.stroke())}class ji extends jn{constructor(n){super();te(this,"circumference");te(this,"endAngle");te(this,"fullCircles");te(this,"innerRadius");te(this,"outerRadius");te(this,"pixelMargin");te(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,n&&Object.assign(this,n)}inRange(n,s,i){const o=this.getProps(["x","y"],i),{angle:r,distance:a}=Qy(o,{x:n,y:s}),{startAngle:l,endAngle:c,innerRadius:u,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),h=(this.options.spacing+this.options.borderWidth)/2,g=Ce(f,c-l)>=Ke||wo(r,l,c),p=In(a,u+h,d+h);return g&&p}getCenterPoint(n){const{x:s,y:i,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:u}=this.options,d=(o+r)/2,f=(a+l+u+c)/2;return{x:s+Math.cos(d)*f,y:i+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:s,circumference:i}=this,o=(s.offset||0)/4,r=(s.spacing||0)/2,a=s.circular;if(this.pixelMargin=s.borderAlign==="inner"?.33:0,this.fullCircles=i>Ke?Math.floor(i/Ke):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(qe,i||0)),u=o*c;n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,xO(n,this,u,r,a),_O(n,this,u,r,a),n.restore()}}te(ji,"id","arc"),te(ji,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),te(ji,"defaultRoutes",{backgroundColor:"backgroundColor"}),te(ji,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function Ib(e,t,n=t){e.lineCap=Ce(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ce(n.borderDash,t.borderDash)),e.lineDashOffset=Ce(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ce(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ce(n.borderWidth,t.borderWidth),e.strokeStyle=Ce(n.borderColor,t.borderColor)}function SO(e,t,n){e.lineTo(n.x,n.y)}function wO(e){return e.stepped?GM:e.tension||e.cubicInterpolationMode==="monotone"?KM:SO}function Rb(e,t,n={}){const s=e.length,{start:i=0,end:o=s-1}=n,{start:r,end:a}=t,l=Math.max(i,r),c=Math.min(o,a),u=i<r&&o<r||i>a&&o>a;return{count:s,start:l,loop:t.loop,ilen:c<l&&!u?s+c-l:c-l}}function CO(e,t,n,s){const{points:i,options:o}=t,{count:r,start:a,loop:l,ilen:c}=Rb(i,n,s),u=wO(o);let{move:d=!0,reverse:f}=s||{},h,m,g;for(h=0;h<=c;++h)m=i[(a+(f?c-h:h))%r],!m.skip&&(d?(e.moveTo(m.x,m.y),d=!1):u(e,g,m,f,o.stepped),g=m);return l&&(m=i[(a+(f?c:0))%r],u(e,g,m,f,o.stepped)),!!l}function kO(e,t,n,s){const i=t.points,{count:o,start:r,ilen:a}=Rb(i,n,s),{move:l=!0,reverse:c}=s||{};let u=0,d=0,f,h,m,g,p,v;const b=_=>(r+(c?a-_:_))%o,x=()=>{g!==p&&(e.lineTo(u,p),e.lineTo(u,g),e.lineTo(u,v))};for(l&&(h=i[b(0)],e.moveTo(h.x,h.y)),f=0;f<=a;++f){if(h=i[b(f)],h.skip)continue;const _=h.x,A=h.y,P=_|0;P===m?(A<g?g=A:A>p&&(p=A),u=(d*u+_)/++d):(x(),e.lineTo(_,A),m=P,d=0,g=p=A),v=A}x()}function wc(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?kO:CO}function PO(e){return e.stepped?kE:e.tension||e.cubicInterpolationMode==="monotone"?PE:As}function AO(e,t,n,s){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,s)&&i.closePath()),Ib(e,t.options),e.stroke(i)}function MO(e,t,n,s){const{segments:i,options:o}=t,r=wc(t);for(const a of i)Ib(e,o,a.style),e.beginPath(),r(e,t,a,{start:n,end:n+s-1})&&e.closePath(),e.stroke()}const EO=typeof Path2D=="function";function TO(e,t,n,s){EO&&!t.options.segment?AO(e,t,n,s):MO(e,t,n,s)}class ss extends jn{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,n){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const i=s.spanGaps?this._loop:this._fullLoop;vE(this._points,s,t,i,n),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=IE(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,s=t.length;return s&&n[t[s-1].end]}interpolate(t,n){const s=this.options,i=t[n],o=this.points,r=bb(this,{property:n,start:i,end:i});if(!r.length)return;const a=[],l=PO(s);let c,u;for(c=0,u=r.length;c<u;++c){const{start:d,end:f}=r[c],h=o[d],m=o[f];if(h===m){a.push(h);continue}const g=Math.abs((i-h[n])/(m[n]-h[n])),p=l(h,m,g,s.stepped);p[n]=t[n],a.push(p)}return a.length===1?a[0]:a}pathSegment(t,n,s){return wc(this)(t,this,n,s)}path(t,n,s){const i=this.segments,o=wc(this);let r=this._loop;n=n||0,s=s||this.points.length-n;for(const a of i)r&=o(t,this,a,{start:n,end:n+s-1});return!!r}draw(t,n,s,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),TO(t,this,s,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}te(ss,"id","line"),te(ss,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),te(ss,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),te(ss,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function gg(e,t,n,s){const i=e.options,{[n]:o}=e.getProps([n],s);return Math.abs(t-o)<i.radius+i.hitRadius}class Tr extends jn{constructor(n){super();te(this,"parsed");te(this,"skip");te(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,s,i){const o=this.options,{x:r,y:a}=this.getProps(["x","y"],i);return Math.pow(n-r,2)+Math.pow(s-a,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(n,s){return gg(this,n,"x",s)}inYRange(n,s){return gg(this,n,"y",s)}getCenterPoint(n){const{x:s,y:i}=this.getProps(["x","y"],n);return{x:s,y:i}}size(n){n=n||this.options||{};let s=n.radius||0;s=Math.max(s,s&&n.hoverRadius||0);const i=s&&n.borderWidth||0;return(s+i)*2}draw(n,s){const i=this.options;this.skip||i.radius<.1||!Dn(this,s,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,bc(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}te(Tr,"id","point"),te(Tr,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),te(Tr,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Db(e,t){const{x:n,y:s,base:i,width:o,height:r}=e.getProps(["x","y","base","width","height"],t);let a,l,c,u,d;return e.horizontal?(d=r/2,a=Math.min(n,i),l=Math.max(n,i),c=s-d,u=s+d):(d=o/2,a=n-d,l=n+d,c=Math.min(s,i),u=Math.max(s,i)),{left:a,top:c,right:l,bottom:u}}function is(e,t,n,s){return e?0:dt(t,n,s)}function OO(e,t,n){const s=e.options.borderWidth,i=e.borderSkipped,o=lb(s);return{t:is(i.top,o.top,0,n),r:is(i.right,o.right,0,t),b:is(i.bottom,o.bottom,0,n),l:is(i.left,o.left,0,t)}}function IO(e,t,n){const{enableBorderRadius:s}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=Fs(i),r=Math.min(t,n),a=e.borderSkipped,l=s||Ee(i);return{topLeft:is(!l||a.top||a.left,o.topLeft,0,r),topRight:is(!l||a.top||a.right,o.topRight,0,r),bottomLeft:is(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:is(!l||a.bottom||a.right,o.bottomRight,0,r)}}function RO(e){const t=Db(e),n=t.right-t.left,s=t.bottom-t.top,i=OO(e,n/2,s/2),o=IO(e,n/2,s/2);return{outer:{x:t.left,y:t.top,w:n,h:s,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:s-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function Ol(e,t,n,s){const i=t===null,o=n===null,a=e&&!(i&&o)&&Db(e,s);return a&&(i||In(t,a.left,a.right))&&(o||In(n,a.top,a.bottom))}function DO(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function LO(e,t){e.rect(t.x,t.y,t.w,t.h)}function Il(e,t,n={}){const s=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-s,r=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+s,y:e.y+i,w:e.w+o,h:e.h+r,radius:e.radius}}class Or extends jn{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:n,options:{borderColor:s,backgroundColor:i}}=this,{inner:o,outer:r}=RO(this),a=DO(r.radius)?Co:LO;t.save(),(r.w!==o.w||r.h!==o.h)&&(t.beginPath(),a(t,Il(r,n,o)),t.clip(),a(t,Il(o,-n,r)),t.fillStyle=s,t.fill("evenodd")),t.beginPath(),a(t,Il(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,s){return Ol(this,t,n,s)}inXRange(t,n){return Ol(this,t,null,n)}inYRange(t,n){return Ol(this,null,t,n)}getCenterPoint(t){const{x:n,y:s,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+i)/2:n,y:o?s:(s+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}te(Or,"id","bar"),te(Or,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),te(Or,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var FO=Object.freeze({__proto__:null,ArcElement:ji,BarElement:Or,LineElement:ss,PointElement:Tr});const Cc=["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)"],mg=Cc.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function Lb(e){return Cc[e%Cc.length]}function Fb(e){return mg[e%mg.length]}function VO(e,t){return e.borderColor=Lb(t),e.backgroundColor=Fb(t),++t}function BO(e,t){return e.backgroundColor=e.data.map(()=>Lb(t++)),t}function NO(e,t){return e.backgroundColor=e.data.map(()=>Fb(t++)),t}function $O(e){let t=0;return(n,s)=>{const i=e.getDatasetMeta(s).controller;i instanceof Os?t=BO(n,t):i instanceof io?t=NO(n,t):i&&(t=VO(n,t))}}function pg(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function zO(e){return e&&(e.borderColor||e.backgroundColor)}var HO={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:s},options:i}=e.config,{elements:o}=i;if(!n.forceOverride&&(pg(s)||zO(i)||o&&pg(o)))return;const r=$O(e);s.forEach(r)}};function jO(e,t,n,s,i){const o=i.samples||s;if(o>=n)return e.slice(t,t+n);const r=[],a=(n-2)/(o-2);let l=0;const c=t+n-1;let u=t,d,f,h,m,g;for(r[l++]=e[u],d=0;d<o-2;d++){let p=0,v=0,b;const x=Math.floor((d+1)*a)+1+t,_=Math.min(Math.floor((d+2)*a)+1,n)+t,A=_-x;for(b=x;b<_;b++)p+=e[b].x,v+=e[b].y;p/=A,v/=A;const P=Math.floor(d*a)+1+t,C=Math.min(Math.floor((d+1)*a)+1,n)+t,{x:w,y:E}=e[u];for(h=m=-1,b=P;b<C;b++)m=.5*Math.abs((w-p)*(e[b].y-E)-(w-e[b].x)*(v-E)),m>h&&(h=m,f=e[b],g=b);r[l++]=f,u=g}return r[l++]=e[c],r}function WO(e,t,n,s){let i=0,o=0,r,a,l,c,u,d,f,h,m,g;const p=[],v=t+n-1,b=e[t].x,_=e[v].x-b;for(r=t;r<t+n;++r){a=e[r],l=(a.x-b)/_*s,c=a.y;const A=l|0;if(A===u)c<m?(m=c,d=r):c>g&&(g=c,f=r),i=(o*i+a.x)/++o;else{const P=r-1;if(!De(d)&&!De(f)){const C=Math.min(d,f),w=Math.max(d,f);C!==h&&C!==P&&p.push({...e[C],x:i}),w!==h&&w!==P&&p.push({...e[w],x:i})}r>0&&P!==h&&p.push(e[P]),p.push(a),u=A,o=0,m=g=c,d=f=h=r}}return p}function Vb(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 vg(e){e.data.datasets.forEach(t=>{Vb(t)})}function UO(e,t){const n=t.length;let s=0,i;const{iScale:o}=e,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=dt(Rn(t,o.axis,r).lo,0,n-1)),c?i=dt(Rn(t,o.axis,a).hi+1,s,n)-s:i=n-s,{start:s,count:i}}var GO={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){vg(e);return}const s=e.width;e.data.datasets.forEach((i,o)=>{const{_data:r,indexAxis:a}=i,l=e.getDatasetMeta(o),c=r||i.data;if(zi([a,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:f}=UO(l,c);const h=n.threshold||4*s;if(f<=h){Vb(i);return}De(r)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let m;switch(n.algorithm){case"lttb":m=jO(c,d,f,s,n);break;case"min-max":m=WO(c,d,f,s);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=m})},destroy(e){vg(e)}};function KO(e,t,n){const s=e.segments,i=e.points,o=t.points,r=[];for(const a of s){let{start:l,end:c}=a;c=Yu(l,c,i);const u=kc(n,i[l],i[c],a.loop);if(!t.segments){r.push({source:a,target:u,start:i[l],end:i[c]});continue}const d=bb(t,u);for(const f of d){const h=kc(n,o[f.start],o[f.end],f.loop),m=yb(a,i,h);for(const g of m)r.push({source:g,target:f,start:{[n]:yg(u,h,"start",Math.max)},end:{[n]:yg(u,h,"end",Math.min)}})}}return r}function kc(e,t,n,s){if(s)return;let i=t[e],o=n[e];return e==="angle"&&(i=Vt(i),o=Vt(o)),{property:e,start:i,end:o}}function qO(e,t){const{x:n=null,y:s=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:r,end:a})=>{a=Yu(r,a,i);const l=i[r],c=i[a];s!==null?(o.push({x:l.x,y:s}),o.push({x:c.x,y:s})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function Yu(e,t,n){for(;t>e;t--){const s=n[t];if(!isNaN(s.x)&&!isNaN(s.y))break}return t}function yg(e,t,n,s){return e&&t?s(e[n],t[n]):e?e[n]:t?t[n]:0}function Bb(e,t){let n=[],s=!1;return Ue(e)?(s=!0,n=e):n=qO(e,t),n.length?new ss({points:n,options:{tension:0},_loop:s,_fullLoop:s}):null}function bg(e){return e&&e.fill!==!1}function YO(e,t,n){let i=e[t].fill;const o=[t];let r;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!Qe(i))return i;if(r=e[i],!r)return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function XO(e,t,n){const s=eI(e);if(Ee(s))return isNaN(s.value)?!1:s;let i=parseFloat(s);return Qe(i)&&Math.floor(i)===i?JO(s[0],t,i,n):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function JO(e,t,n,s){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=s?!1:n}function ZO(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:Ee(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function QO(e,t,n){let s;return e==="start"?s=n:e==="end"?s=t.options.reverse?t.min:t.max:Ee(e)?s=e.value:s=t.getBaseValue(),s}function eI(e){const t=e.options,n=t.fill;let s=Ce(n&&n.target,n);return s===void 0&&(s=!!t.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function tI(e){const{scale:t,index:n,line:s}=e,i=[],o=s.segments,r=s.points,a=nI(t,n);a.push(Bb({x:null,y:t.bottom},s));for(let l=0;l<o.length;l++){const c=o[l];for(let u=c.start;u<=c.end;u++)sI(i,r[u],a)}return new ss({points:i,options:{}})}function nI(e,t){const n=[],s=e.getMatchingVisibleMetas("line");for(let i=0;i<s.length;i++){const o=s[i];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}function sI(e,t,n){const s=[];for(let i=0;i<n.length;i++){const o=n[i],{first:r,last:a,point:l}=iI(o,t,"x");if(!(!l||r&&a)){if(r)s.unshift(l);else if(e.push(l),!a)break}}e.push(...s)}function iI(e,t,n){const s=e.interpolate(t,n);if(!s)return{};const i=s[n],o=e.segments,r=e.points;let a=!1,l=!1;for(let c=0;c<o.length;c++){const u=o[c],d=r[u.start][n],f=r[u.end][n];if(In(i,d,f)){a=i===d,l=i===f;break}}return{first:a,last:l,point:s}}class Nb{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,s){const{x:i,y:o,radius:r}=this;return n=n||{start:0,end:Ke},t.arc(i,o,r,n.end,n.start,!0),!s.bounds}interpolate(t){const{x:n,y:s,radius:i}=this,o=t.angle;return{x:n+Math.cos(o)*i,y:s+Math.sin(o)*i,angle:o}}}function oI(e){const{chart:t,fill:n,line:s}=e;if(Qe(n))return rI(t,n);if(n==="stack")return tI(e);if(n==="shape")return!0;const i=aI(e);return i instanceof Nb?i:Bb(i,s)}function rI(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function aI(e){return(e.scale||{}).getPointPositionForValue?cI(e):lI(e)}function lI(e){const{scale:t={},fill:n}=e,s=ZO(n,t);if(Qe(s)){const i=t.isHorizontal();return{x:i?s:null,y:i?null:s}}return null}function cI(e){const{scale:t,fill:n}=e,s=t.options,i=t.getLabels().length,o=s.reverse?t.max:t.min,r=QO(n,t,o),a=[];if(s.grid.circular){const l=t.getPointPositionForValue(0,o);return new Nb({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(r)})}for(let l=0;l<i;++l)a.push(t.getPointPositionForValue(l,r));return a}function Rl(e,t,n){const s=oI(t),{line:i,scale:o,axis:r}=t,a=i.options,l=a.fill,c=a.backgroundColor,{above:u=c,below:d=c}=l||{};s&&i.points.length&&(Wa(e,n),uI(e,{line:i,target:s,above:u,below:d,area:n,scale:o,axis:r}),Ua(e))}function uI(e,t){const{line:n,target:s,above:i,below:o,area:r,scale:a}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&o!==i&&(xg(e,s,r.top),_g(e,{line:n,target:s,color:i,scale:a,property:l}),e.restore(),e.save(),xg(e,s,r.bottom)),_g(e,{line:n,target:s,color:o,scale:a,property:l}),e.restore()}function xg(e,t,n){const{segments:s,points:i}=t;let o=!0,r=!1;e.beginPath();for(const a of s){const{start:l,end:c}=a,u=i[l],d=i[Yu(l,c,i)];o?(e.moveTo(u.x,u.y),o=!1):(e.lineTo(u.x,n),e.lineTo(u.x,u.y)),r=!!t.pathSegment(e,a,{move:r}),r?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function _g(e,t){const{line:n,target:s,property:i,color:o,scale:r}=t,a=KO(n,s,i);for(const{source:l,target:c,start:u,end:d}of a){const{style:{backgroundColor:f=o}={}}=l,h=s!==!0;e.save(),e.fillStyle=f,dI(e,r,h&&kc(i,u,d)),e.beginPath();const m=!!n.pathSegment(e,l);let g;if(h){m?e.closePath():Sg(e,s,d,i);const p=!!s.pathSegment(e,c,{move:m,reverse:!0});g=m&&p,g||Sg(e,s,u,i)}e.closePath(),e.fill(g?"evenodd":"nonzero"),e.restore()}}function dI(e,t,n){const{top:s,bottom:i}=t.chart.chartArea,{property:o,start:r,end:a}=n||{};o==="x"&&(e.beginPath(),e.rect(r,s,a-r,i-s),e.clip())}function Sg(e,t,n,s){const i=t.interpolate(n,s);i&&e.lineTo(i.x,i.y)}var fI={id:"filler",afterDatasetsUpdate(e,t,n){const s=(e.data.datasets||[]).length,i=[];let o,r,a,l;for(r=0;r<s;++r)o=e.getDatasetMeta(r),a=o.dataset,l=null,a&&a.options&&a instanceof ss&&(l={visible:e.isDatasetVisible(r),index:r,fill:XO(a,r,s),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,i.push(l);for(r=0;r<s;++r)l=i[r],!(!l||l.fill===!1)&&(l.fill=YO(i,r,n.propagate))},beforeDraw(e,t,n){const s=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let r=i.length-1;r>=0;--r){const a=i[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),s&&a.fill&&Rl(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const s=e.getSortedVisibleDatasetMetas();for(let i=s.length-1;i>=0;--i){const o=s[i].$filler;bg(o)&&Rl(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const s=t.meta.$filler;!bg(s)||n.drawTime!=="beforeDatasetDraw"||Rl(e.ctx,s,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const wg=(e,t)=>{let{boxHeight:n=t,boxWidth:s=t}=e;return e.usePointStyle&&(n=Math.min(n,t),s=e.pointStyleWidth||Math.min(s,t)),{boxWidth:s,boxHeight:n,itemHeight:Math.max(t,n)}},hI=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Cg extends jn{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,n,s){this.maxWidth=t,this.maxHeight=n,this._margins=s,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 n=He(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(s=>t.filter(s,this.chart.data))),t.sort&&(n=n.sort((s,i)=>t.sort(s,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const s=t.labels,i=lt(s.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=wg(s,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,o,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,i,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,s,i){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+a;let d=t;o.textAlign="left",o.textBaseline="middle";let f=-1,h=-u;return this.legendItems.forEach((m,g)=>{const p=s+n/2+o.measureText(m.text).width;(g===0||c[c.length-1]+p+2*a>r)&&(d+=u,c[c.length-(g>0?0:1)]=0,h+=u,f++),l[g]={left:0,top:h,row:f,width:p,height:i},c[c.length-1]+=p+a}),d}_fitCols(t,n,s,i){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-t;let d=a,f=0,h=0,m=0,g=0;return this.legendItems.forEach((p,v)=>{const{itemWidth:b,itemHeight:x}=gI(s,n,o,p,i);v>0&&h+x+2*a>u&&(d+=f+a,c.push({width:f,height:h}),m+=f+a,g++,f=h=0),l[v]={left:m,top:h,col:g,width:b,height:x},f=Math.max(f,b),h+=x+a}),d+=f,c.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:s,labels:{padding:i},rtl:o}}=this,r=di(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=pt(s,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=pt(s,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+i}else{let a=0,l=pt(s,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=pt(s,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Wa(t,this),this._draw(),Ua(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:s,ctx:i}=this,{align:o,labels:r}=t,a=et.color,l=di(t.rtl,this.left,this.width),c=lt(r.font),{padding:u}=r,d=c.size,f=d/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:m,boxHeight:g,itemHeight:p}=wg(r,d),v=function(P,C,w){if(isNaN(m)||m<=0||isNaN(g)||g<0)return;i.save();const E=Ce(w.lineWidth,1);if(i.fillStyle=Ce(w.fillStyle,a),i.lineCap=Ce(w.lineCap,"butt"),i.lineDashOffset=Ce(w.lineDashOffset,0),i.lineJoin=Ce(w.lineJoin,"miter"),i.lineWidth=E,i.strokeStyle=Ce(w.strokeStyle,a),i.setLineDash(Ce(w.lineDash,[])),r.usePointStyle){const O={radius:g*Math.SQRT2/2,pointStyle:w.pointStyle,rotation:w.rotation,borderWidth:E},D=l.xPlus(P,m/2),T=C+f;ab(i,O,D,T,r.pointStyleWidth&&m)}else{const O=C+Math.max((d-g)/2,0),D=l.leftForLtr(P,m),T=Fs(w.borderRadius);i.beginPath(),Object.values(T).some(L=>L!==0)?Co(i,{x:D,y:O,w:m,h:g,radius:T}):i.rect(D,O,m,g),i.fill(),E!==0&&i.stroke()}i.restore()},b=function(P,C,w){Hs(i,w.text,P,C+p/2,c,{strikethrough:w.hidden,textAlign:l.textAlign(w.textAlign)})},x=this.isHorizontal(),_=this._computeTitleHeight();x?h={x:pt(o,this.left+u,this.right-s[0]),y:this.top+u+_,line:0}:h={x:this.left+u,y:pt(o,this.top+_+u,this.bottom-n[0].height),line:0},mb(this.ctx,t.textDirection);const A=p+u;this.legendItems.forEach((P,C)=>{i.strokeStyle=P.fontColor,i.fillStyle=P.fontColor;const w=i.measureText(P.text).width,E=l.textAlign(P.textAlign||(P.textAlign=r.textAlign)),O=m+f+w;let D=h.x,T=h.y;l.setWidth(this.width),x?C>0&&D+O+u>this.right&&(T=h.y+=A,h.line++,D=h.x=pt(o,this.left+u,this.right-s[h.line])):C>0&&T+A>this.bottom&&(D=h.x=D+n[h.line].width+u,h.line++,T=h.y=pt(o,this.top+_+u,this.bottom-n[h.line].height));const L=l.x(D);if(v(L,T,P),D=LM(E,D+m+f,x?D+O:this.right,t.rtl),b(l.x(D),T,P),x)h.x+=O+u;else if(typeof P.text!="string"){const $=c.lineHeight;h.y+=$b(P,$)+u}else h.y+=A}),pb(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,s=lt(n.font),i=_t(n.padding);if(!n.display)return;const o=di(t.rtl,this.left,this.width),r=this.ctx,a=n.position,l=s.size/2,c=i.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=pt(t.align,d,this.right-f);else{const m=this.columnSizes.reduce((g,p)=>Math.max(g,p.height),0);u=c+pt(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const h=pt(a,d,d+f);r.textAlign=o.textAlign($u(a)),r.textBaseline="middle",r.strokeStyle=n.color,r.fillStyle=n.color,r.font=s.string,Hs(r,n.text,h,u,s)}_computeTitleHeight(){const t=this.options.title,n=lt(t.font),s=_t(t.padding);return t.display?n.lineHeight+s.height:0}_getLegendItemAt(t,n){let s,i,o;if(In(t,this.left,this.right)&&In(n,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;s<o.length;++s)if(i=o[s],In(t,i.left,i.left+i.width)&&In(n,i.top,i.top+i.height))return this.legendItems[s]}return null}handleEvent(t){const n=this.options;if(!vI(t.type,n))return;const s=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=hI(i,s);i&&!o&&He(n.onLeave,[t,i,this],this),this._hoveredItem=s,s&&!o&&He(n.onHover,[t,s,this],this)}else s&&He(n.onClick,[t,s,this],this)}}function gI(e,t,n,s,i){const o=mI(s,e,t,n),r=pI(i,s,t.lineHeight);return{itemWidth:o,itemHeight:r}}function mI(e,t,n,s){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,r)=>o.length>r.length?o:r)),t+n.size/2+s.measureText(i).width}function pI(e,t,n){let s=e;return typeof t.text!="string"&&(s=$b(t,n)),s}function $b(e,t){const n=e.text?e.text.length:0;return t*n}function vI(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var yI={id:"legend",_element:Cg,start(e,t,n){const s=e.legend=new Cg({ctx:e.ctx,options:n,chart:e});xt.configure(e,s,n),xt.addBox(e,s)},stop(e){xt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const s=e.legend;xt.configure(e,s,n),s.options=n},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,n){const s=t.datasetIndex,i=n.chart;i.isDatasetVisible(s)?(i.hide(s),t.hidden=!0):(i.show(s),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:n,pointStyle:s,textAlign:i,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=_t(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:r&&(a||c.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 Xu extends jn{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,n){const s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Ue(s.text)?s.text.length:1;this._padding=_t(s.padding);const o=i*lt(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:s,bottom:i,right:o,options:r}=this,a=r.align;let l=0,c,u,d;return this.isHorizontal()?(u=pt(a,s,o),d=n+t,c=o-s):(r.position==="left"?(u=s+t,d=pt(a,i,n),l=qe*-.5):(u=o-t,d=pt(a,n,i),l=qe*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const s=lt(n.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Hs(t,n.text,0,0,s,{color:n.color,maxWidth:l,rotation:c,textAlign:$u(n.align),textBaseline:"middle",translation:[r,a]})}}function bI(e,t){const n=new Xu({ctx:e.ctx,options:t,chart:e});xt.configure(e,n,t),xt.addBox(e,n),e.titleBlock=n}var xI={id:"title",_element:Xu,start(e,t,n){bI(e,n)},stop(e){const t=e.titleBlock;xt.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const s=e.titleBlock;xt.configure(e,s,n),s.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const cr=new WeakMap;var _I={id:"subtitle",start(e,t,n){const s=new Xu({ctx:e.ctx,options:n,chart:e});xt.configure(e,s,n),xt.addBox(e,s),cr.set(e,s)},stop(e){xt.removeBox(e,cr.get(e)),cr.delete(e)},beforeUpdate(e,t,n){const s=cr.get(e);xt.configure(e,s,n),s.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Wi={average(e){if(!e.length)return!1;let t,n,s=new Set,i=0,o=0;for(t=0,n=e.length;t<n;++t){const a=e[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();s.add(l.x),i+=l.y,++o}}return{x:[...s].reduce((a,l)=>a+l)/s.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,s=t.y,i=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=e.length;o<r;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=vc(t,c);u<i&&(i=u,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,s=l.y}return{x:n,y:s}}};function un(e,t){return t&&(Ue(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function En(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
`)>-1?e.split(`
|
|
`):e}function SI(e,t){const{element:n,datasetIndex:s,index:i}=t,o=e.getDatasetMeta(s).controller,{label:r,value:a}=o.getLabelAndValue(i);return{chart:e,label:r,parsed:o.getParsed(i),raw:e.data.datasets[s].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:s,element:n}}function kg(e,t){const n=e.chart.ctx,{body:s,footer:i,title:o}=e,{boxWidth:r,boxHeight:a}=t,l=lt(t.bodyFont),c=lt(t.titleFont),u=lt(t.footerFont),d=o.length,f=i.length,h=s.length,m=_t(t.padding);let g=m.height,p=0,v=s.reduce((_,A)=>_+A.before.length+A.lines.length+A.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){const _=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=h*_+(v-h)*l.lineHeight+(v-1)*t.bodySpacing}f&&(g+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let b=0;const x=function(_){p=Math.max(p,n.measureText(_).width+b)};return n.save(),n.font=c.string,Ne(e.title,x),n.font=l.string,Ne(e.beforeBody.concat(e.afterBody),x),b=t.displayColors?r+2+t.boxPadding:0,Ne(s,_=>{Ne(_.before,x),Ne(_.lines,x),Ne(_.after,x)}),b=0,n.font=u.string,Ne(e.footer,x),n.restore(),p+=m.width,{width:p,height:g}}function wI(e,t){const{y:n,height:s}=t;return n<s/2?"top":n>e.height-s/2?"bottom":"center"}function CI(e,t,n,s){const{x:i,width:o}=s,r=n.caretSize+n.caretPadding;if(e==="left"&&i+o+r>t.width||e==="right"&&i-o-r<0)return!0}function kI(e,t,n,s){const{x:i,width:o}=n,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return s==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=r-o/2&&(c="right"),CI(c,e,t,n)&&(c="center"),c}function Pg(e,t,n){const s=n.yAlign||t.yAlign||wI(e,n);return{xAlign:n.xAlign||t.xAlign||kI(e,t,n,s),yAlign:s}}function PI(e,t){let{x:n,width:s}=e;return t==="right"?n-=s:t==="center"&&(n-=s/2),n}function AI(e,t,n){let{y:s,height:i}=e;return t==="top"?s+=n:t==="bottom"?s-=i+n:s-=i/2,s}function Ag(e,t,n,s){const{caretSize:i,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=Fs(r);let m=PI(t,a);const g=AI(t,l,c);return l==="center"?a==="left"?m+=c:a==="right"&&(m-=c):a==="left"?m-=Math.max(u,f)+i:a==="right"&&(m+=Math.max(d,h)+i),{x:dt(m,0,s.width-t.width),y:dt(g,0,s.height-t.height)}}function ur(e,t,n){const s=_t(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-s.right:e.x+s.left}function Mg(e){return un([],En(e))}function MI(e,t,n){return vs(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Eg(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const zb={beforeTitle:Pn,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,s=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex<s)return n[t.dataIndex]}return""},afterTitle:Pn,beforeBody:Pn,beforeLabel:Pn,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 n=e.formattedValue;return De(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Pn,afterBody:Pn,beforeFooter:Pn,footer:Pn,afterFooter:Pn};function kt(e,t,n,s){const i=e[t].call(n,s);return typeof i>"u"?zb[t].call(n,s):i}class Pc extends jn{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 n=this.chart,s=this.options.setContext(this.getContext()),i=s.enabled&&n.options.animation&&s.animations,o=new xb(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=MI(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:s}=n,i=kt(s,"beforeTitle",this,t),o=kt(s,"title",this,t),r=kt(s,"afterTitle",this,t);let a=[];return a=un(a,En(i)),a=un(a,En(o)),a=un(a,En(r)),a}getBeforeBody(t,n){return Mg(kt(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:s}=n,i=[];return Ne(t,o=>{const r={before:[],lines:[],after:[]},a=Eg(s,o);un(r.before,En(kt(a,"beforeLabel",this,o))),un(r.lines,kt(a,"label",this,o)),un(r.after,En(kt(a,"afterLabel",this,o))),i.push(r)}),i}getAfterBody(t,n){return Mg(kt(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:s}=n,i=kt(s,"beforeFooter",this,t),o=kt(s,"footer",this,t),r=kt(s,"afterFooter",this,t);let a=[];return a=un(a,En(i)),a=un(a,En(o)),a=un(a,En(r)),a}_createItems(t){const n=this._active,s=this.chart.data,i=[],o=[],r=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(SI(this.chart,n[l]));return t.filter&&(a=a.filter((u,d,f)=>t.filter(u,d,f,s))),t.itemSort&&(a=a.sort((u,d)=>t.itemSort(u,d,s))),Ne(a,u=>{const d=Eg(t.callbacks,u);i.push(kt(d,"labelColor",this,u)),o.push(kt(d,"labelPointStyle",this,u)),r.push(kt(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,n){const s=this.options.setContext(this.getContext()),i=this._active;let o,r=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=Wi[s.position].call(this,i,this._eventPosition);r=this._createItems(s),this.title=this.getTitle(r,s),this.beforeBody=this.getBeforeBody(r,s),this.body=this.getBody(r,s),this.afterBody=this.getAfterBody(r,s),this.footer=this.getFooter(r,s);const l=this._size=kg(this,s),c=Object.assign({},a,l),u=Pg(this.chart,s,c),d=Ag(s,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,s,i){const o=this.getCaretPosition(t,s,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,s){const{xAlign:i,yAlign:o}=this,{caretSize:r,cornerRadius:a}=s,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=Fs(a),{x:f,y:h}=t,{width:m,height:g}=n;let p,v,b,x,_,A;return o==="center"?(_=h+g/2,i==="left"?(p=f,v=p-r,x=_+r,A=_-r):(p=f+m,v=p+r,x=_-r,A=_+r),b=p):(i==="left"?v=f+Math.max(l,u)+r:i==="right"?v=f+m-Math.max(c,d)-r:v=this.caretX,o==="top"?(x=h,_=x-r,p=v-r,b=v+r):(x=h+g,_=x+r,p=v+r,b=v-r),A=x),{x1:p,x2:v,x3:b,y1:x,y2:_,y3:A}}drawTitle(t,n,s){const i=this.title,o=i.length;let r,a,l;if(o){const c=di(s.rtl,this.x,this.width);for(t.x=ur(this,s.titleAlign,s),n.textAlign=c.textAlign(s.titleAlign),n.textBaseline="middle",r=lt(s.titleFont),a=s.titleSpacing,n.fillStyle=s.titleColor,n.font=r.string,l=0;l<o;++l)n.fillText(i[l],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,l+1===o&&(t.y+=s.titleMarginBottom-a)}}_drawColorBox(t,n,s,i,o){const r=this.labelColors[s],a=this.labelPointStyles[s],{boxHeight:l,boxWidth:c}=o,u=lt(o.bodyFont),d=ur(this,"left",o),f=i.x(d),h=l<u.lineHeight?(u.lineHeight-l)/2:0,m=n.y+h;if(o.usePointStyle){const g={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},p=i.leftForLtr(f,c)+c/2,v=m+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,bc(t,g,p,v),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,bc(t,g,p,v)}else{t.lineWidth=Ee(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const g=i.leftForLtr(f,c),p=i.leftForLtr(i.xPlus(f,1),c-2),v=Fs(r.borderRadius);Object.values(v).some(b=>b!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Co(t,{x:g,y:m,w:c,h:l,radius:v}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),Co(t,{x:p,y:m+1,w:c-2,h:l-2,radius:v}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(g,m,c,l),t.strokeRect(g,m,c,l),t.fillStyle=r.backgroundColor,t.fillRect(p,m+1,c-2,l-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,n,s){const{body:i}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=s,d=lt(s.bodyFont);let f=d.lineHeight,h=0;const m=di(s.rtl,this.x,this.width),g=function(w){n.fillText(w,m.x(t.x+h),t.y+f/2),t.y+=f+o},p=m.textAlign(r);let v,b,x,_,A,P,C;for(n.textAlign=r,n.textBaseline="middle",n.font=d.string,t.x=ur(this,p,s),n.fillStyle=s.bodyColor,Ne(this.beforeBody,g),h=a&&p!=="right"?r==="center"?c/2+u:c+2+u:0,_=0,P=i.length;_<P;++_){for(v=i[_],b=this.labelTextColors[_],n.fillStyle=b,Ne(v.before,g),x=v.lines,a&&x.length&&(this._drawColorBox(n,t,_,m,s),f=Math.max(d.lineHeight,l)),A=0,C=x.length;A<C;++A)g(x[A]),f=d.lineHeight;Ne(v.after,g)}h=0,f=d.lineHeight,Ne(this.afterBody,g),t.y-=o}drawFooter(t,n,s){const i=this.footer,o=i.length;let r,a;if(o){const l=di(s.rtl,this.x,this.width);for(t.x=ur(this,s.footerAlign,s),t.y+=s.footerMarginTop,n.textAlign=l.textAlign(s.footerAlign),n.textBaseline="middle",r=lt(s.footerFont),n.fillStyle=s.footerColor,n.font=r.string,a=0;a<o;++a)n.fillText(i[a],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+s.footerSpacing}}drawBackground(t,n,s,i){const{xAlign:o,yAlign:r}=this,{x:a,y:l}=t,{width:c,height:u}=s,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:m}=Fs(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(a+d,l),r==="top"&&this.drawCaret(t,n,s,i),n.lineTo(a+c-f,l),n.quadraticCurveTo(a+c,l,a+c,l+f),r==="center"&&o==="right"&&this.drawCaret(t,n,s,i),n.lineTo(a+c,l+u-m),n.quadraticCurveTo(a+c,l+u,a+c-m,l+u),r==="bottom"&&this.drawCaret(t,n,s,i),n.lineTo(a+h,l+u),n.quadraticCurveTo(a,l+u,a,l+u-h),r==="center"&&o==="left"&&this.drawCaret(t,n,s,i),n.lineTo(a,l+d),n.quadraticCurveTo(a,l,a+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,s=this.$animations,i=s&&s.x,o=s&&s.y;if(i||o){const r=Wi[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=kg(this,t),l=Object.assign({},r,this._size),c=Pg(n,t,l),u=Ag(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const r=_t(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=s,this.drawBackground(o,t,i,n),mb(t,n.textDirection),o.y+=r.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),pb(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const s=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!ra(s,i),r=this._positionChanged(i,n);(o||r)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,s=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],r=this._getActiveElements(t,o,n,s),a=this._positionChanged(r,t),l=n||!ra(r,o)||a;return l&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,s,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,s);return o.reverse&&r.reverse(),r}_positionChanged(t,n){const{caretX:s,caretY:i,options:o}=this,r=Wi[o.position].call(this,t,n);return r!==!1&&(s!==r.x||i!==r.y)}}te(Pc,"positioners",Wi);var EI={id:"tooltip",_element:Pc,positioners:Wi,afterInit(e,t,n){n&&(e.tooltip=new Pc({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:zb},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"]},TI=Object.freeze({__proto__:null,Colors:HO,Decimation:GO,Filler:fI,Legend:yI,SubTitle:_I,Title:xI,Tooltip:EI});const OI=(e,t,n,s)=>(typeof t=="string"?(n=e.push(t)-1,s.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function II(e,t,n,s){const i=e.indexOf(t);if(i===-1)return OI(e,t,n,s);const o=e.lastIndexOf(t);return i!==o?n:i}const RI=(e,t)=>e===null?null:dt(Math.round(e),0,t);function Tg(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Ac extends Zs{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const s=this.getLabels();for(const{index:i,label:o}of n)s[i]===o&&s.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(De(t))return null;const s=this.getLabels();return n=isFinite(n)&&s[n]===t?n:II(s,t,Ce(n,t),this._addedLabels),RI(n,s.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:s,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(s=0),n||(i=this.getLabels().length-1)),this.min=s,this.max=i}buildTicks(){const t=this.min,n=this.max,s=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(s?0:1),1),this._startValue=this.min-(s?.5:0);for(let r=t;r<=n;r++)i.push({value:r});return i}getLabelForValue(t){return Tg.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 n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}te(Ac,"id","category"),te(Ac,"defaults",{ticks:{callback:Tg}});function DI(e,t){const n=[],{bounds:i,step:o,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,h=o||1,m=u-1,{min:g,max:p}=t,v=!De(r),b=!De(a),x=!De(c),_=(p-g)/(d+1);let A=Ch((p-g)/m/h)*h,P,C,w,E;if(A<1e-14&&!v&&!b)return[{value:g},{value:p}];E=Math.ceil(p/A)-Math.floor(g/A),E>m&&(A=Ch(E*A/m/h)*h),De(l)||(P=Math.pow(10,l),A=Math.ceil(A*P)/P),i==="ticks"?(C=Math.floor(g/A)*A,w=Math.ceil(p/A)*A):(C=g,w=p),v&&b&&o&&MM((a-r)/o,A/1e3)?(E=Math.round(Math.min((a-r)/A,u)),A=(a-r)/E,C=r,w=a):x?(C=v?r:C,w=b?a:w,E=c-1,A=(w-C)/E):(E=(w-C)/A,to(E,Math.round(E),A/1e3)?E=Math.round(E):E=Math.ceil(E));const O=Math.max(kh(A),kh(C));P=Math.pow(10,De(l)?O:l),C=Math.round(C*P)/P,w=Math.round(w*P)/P;let D=0;for(v&&(f&&C!==r?(n.push({value:r}),C<r&&D++,to(Math.round((C+D*A)*P)/P,r,Og(r,_,e))&&D++):C<r&&D++);D<E;++D){const T=Math.round((C+D*A)*P)/P;if(b&&T>a)break;n.push({value:T})}return b&&f&&w!==a?n.length&&to(n[n.length-1].value,a,Og(a,_,e))?n[n.length-1].value=a:n.push({value:a}):(!b||w===a)&&n.push({value:w}),n}function Og(e,t,{horizontal:n,minRotation:s}){const i=en(s),o=(n?Math.sin(i):Math.cos(i))||.001,r=.75*t*(""+e).length;return Math.min(t/o,r)}class ha extends Zs{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,n){return De(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:s}=this.getUserBounds();let{min:i,max:o}=this;const r=l=>i=n?i:l,a=l=>o=s?o:l;if(t){const l=yn(i),c=yn(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:s}=t,i;return s?(i=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const i={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,r=DI(i,o);return t.bounds==="ticks"&&Zy(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let n=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const i=(s-n)/Math.max(t.length-1,1)/2;n-=i,s+=i}this._startValue=n,this._endValue=s,this._valueRange=s-n}getLabelForValue(t){return Vo(t,this.chart.options.locale,this.options.ticks.format)}}class Mc extends ha{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Qe(t)?t:0,this.max=Qe(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,s=en(this.options.ticks.minRotation),i=(t?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}te(Mc,"id","linear"),te(Mc,"defaults",{ticks:{callback:ja.formatters.numeric}});const Po=e=>Math.floor(ns(e)),ks=(e,t)=>Math.pow(10,Po(e)+t);function Ig(e){return e/Math.pow(10,Po(e))===1}function Rg(e,t,n){const s=Math.pow(10,n),i=Math.floor(e/s);return Math.ceil(t/s)-i}function LI(e,t){const n=t-e;let s=Po(n);for(;Rg(e,t,s)>10;)s++;for(;Rg(e,t,s)<10;)s--;return Math.min(s,Po(e))}function FI(e,{min:t,max:n}){t=Lt(e.min,t);const s=[],i=Po(t);let o=LI(t,n),r=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*r)/r,u=Math.floor((t-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,o)),f=Lt(e.min,Math.round((l+u+d*Math.pow(10,o))*r)/r);for(;f<n;)s.push({value:f,major:Ig(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,r=o>=0?1:r),f=Math.round((l+u+d*Math.pow(10,o))*r)/r;const h=Lt(e.max,f);return s.push({value:h,major:Ig(h),significand:d}),s}class Ec extends Zs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const s=ha.prototype.parse.apply(this,[t,n]);if(s===0){this._zero=!0;return}return Qe(s)&&s>0?s:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Qe(t)?Math.max(0,t):null,this.max=Qe(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Qe(this._userMin)&&(this.min=t===ks(this.min,0)?ks(this.min,-1):ks(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let s=this.min,i=this.max;const o=a=>s=t?s:a,r=a=>i=n?i:a;s===i&&(s<=0?(o(1),r(10)):(o(ks(s,-1)),r(ks(i,1)))),s<=0&&o(ks(i,-1)),i<=0&&r(ks(s,1)),this.min=s,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},s=FI(n,this);return t.bounds==="ticks"&&Zy(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(t){return t===void 0?"0":Vo(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=ns(t),this._valueRange=ns(this.max)-ns(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(ns(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}te(Ec,"id","logarithmic"),te(Ec,"defaults",{ticks:{callback:ja.formatters.logarithmic,major:{enabled:!0}}});function Tc(e){const t=e.ticks;if(t.display&&e.display){const n=_t(t.backdropPadding);return Ce(t.font&&t.font.size,et.font.size)+n.height}return 0}function VI(e,t,n){return n=Ue(n)?n:[n],{w:UM(e,t.string,n),h:n.length*t.lineHeight}}function Dg(e,t,n,s,i){return e===s||e===i?{start:t-n/2,end:t+n/2}:e<s||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function BI(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),s=[],i=[],o=e._pointLabels.length,r=e.options.pointLabels,a=r.centerPointLabels?qe/o:0;for(let l=0;l<o;l++){const c=r.setContext(e.getPointLabelContext(l));i[l]=c.padding;const u=e.getPointPosition(l,e.drawingArea+i[l],a),d=lt(c.font),f=VI(e.ctx,d,e._pointLabels[l]);s[l]=f;const h=Vt(e.getIndexAngle(l)+a),m=Math.round(Bu(h)),g=Dg(m,u.x,f.w,0,180),p=Dg(m,u.y,f.h,90,270);NI(n,t,h,g,p)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=HI(e,s,i)}function NI(e,t,n,s,i){const o=Math.abs(Math.sin(n)),r=Math.abs(Math.cos(n));let a=0,l=0;s.start<t.l?(a=(t.l-s.start)/o,e.l=Math.min(e.l,t.l-a)):s.end>t.r&&(a=(s.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.start<t.t?(l=(t.t-i.start)/r,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/r,e.b=Math.max(e.b,t.b+l))}function $I(e,t,n){const s=e.drawingArea,{extra:i,additionalAngle:o,padding:r,size:a}=n,l=e.getPointPosition(t,s+i+r,o),c=Math.round(Bu(Vt(l.angle+st))),u=UI(l.y,a.h,c),d=jI(c),f=WI(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+a.w,bottom:u+a.h}}function zI(e,t){if(!t)return!0;const{left:n,top:s,right:i,bottom:o}=e;return!(Dn({x:n,y:s},t)||Dn({x:n,y:o},t)||Dn({x:i,y:s},t)||Dn({x:i,y:o},t))}function HI(e,t,n){const s=[],i=e._pointLabels.length,o=e.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:Tc(o)/2,additionalAngle:r?qe/i:0};let c;for(let u=0;u<i;u++){l.padding=n[u],l.size=t[u];const d=$I(e,u,l);s.push(d),a==="auto"&&(d.visible=zI(d,c),d.visible&&(c=d))}return s}function jI(e){return e===0||e===180?"center":e<180?"left":"right"}function WI(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function UI(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function GI(e,t,n){const{left:s,top:i,right:o,bottom:r}=n,{backdropColor:a}=t;if(!De(a)){const l=Fs(t.borderRadius),c=_t(t.backdropPadding);e.fillStyle=a;const u=s-c.left,d=i-c.top,f=o-s+c.width,h=r-i+c.height;Object.values(l).some(m=>m!==0)?(e.beginPath(),Co(e,{x:u,y:d,w:f,h,radius:l}),e.fill()):e.fillRect(u,d,f,h)}}function KI(e,t){const{ctx:n,options:{pointLabels:s}}=e;for(let i=t-1;i>=0;i--){const o=e._pointLabelItems[i];if(!o.visible)continue;const r=s.setContext(e.getPointLabelContext(i));GI(n,r,o);const a=lt(r.font),{x:l,y:c,textAlign:u}=o;Hs(n,e._pointLabels[i],l,c+a.lineHeight/2,a,{color:r.color,textAlign:u,textBaseline:"middle"})}}function Hb(e,t,n,s){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Ke);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let r=1;r<s;r++)o=e.getPointPosition(r,t),i.lineTo(o.x,o.y)}}function qI(e,t,n,s,i){const o=e.ctx,r=t.circular,{color:a,lineWidth:l}=t;!r&&!s||!a||!l||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(i.dash),o.lineDashOffset=i.dashOffset,o.beginPath(),Hb(e,n,r,s),o.closePath(),o.stroke(),o.restore())}function YI(e,t,n){return vs(e,{label:n,index:t,type:"pointLabel"})}class Ui extends ha{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=_t(Tc(this.options)/2),n=this.width=this.maxWidth-t.width,s=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+s/2+t.top),this.drawingArea=Math.floor(Math.min(n,s)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=Qe(t)&&!isNaN(t)?t:0,this.max=Qe(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Tc(this.options))}generateTickLabels(t){ha.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,s)=>{const i=He(this.options.pointLabels.callback,[n,s],this);return i||i===0?i:""}).filter((n,s)=>this.chart.getDataVisibility(s))}fit(){const t=this.options;t.display&&t.pointLabels.display?BI(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,s,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((s-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,s,i))}getIndexAngle(t){const n=Ke/(this._pointLabels.length||1),s=this.options.startAngle||0;return Vt(t*n+en(s))}getDistanceFromCenterForValue(t){if(De(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(De(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const s=n[t];return YI(this.getContext(),t,s)}}getPointPosition(t,n,s=0){const i=this.getIndexAngle(t)-st+s;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:s,right:i,bottom:o}=this._pointLabelItems[t];return{left:n,top:s,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const s=this.ctx;s.save(),s.beginPath(),Hb(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),s.closePath(),s.fillStyle=t,s.fill(),s.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:s,grid:i,border:o}=n,r=this._pointLabels.length;let a,l,c;if(n.pointLabels.display&&KI(this,r),i.display&&this.ticks.forEach((u,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),h=i.setContext(f),m=o.setContext(f);qI(this,h,l,r,m)}}),s.display){for(t.save(),a=r-1;a>=0;a--){const u=s.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:f}=u;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,s=n.ticks;if(!s.display)return;const i=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const c=s.setContext(this.getContext(l)),u=lt(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,r=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const d=_t(c.backdropPadding);t.fillRect(-r/2-d.left,-o-u.size/2-d.top,r+d.width,u.size+d.height)}Hs(t,a.label,0,-o,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}te(Ui,"id","radialLinear"),te(Ui,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ja.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),te(Ui,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),te(Ui,"descriptors",{angleLines:{_fallback:"grid"}});const Ka={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}},Mt=Object.keys(Ka);function Lg(e,t){return e-t}function Fg(e,t){if(De(t))return null;const n=e._adapter,{parser:s,round:i,isoWeekday:o}=e._parseOpts;let r=t;return typeof s=="function"&&(r=s(r)),Qe(r)||(r=typeof s=="string"?n.parse(r,s):n.parse(r)),r===null?null:(i&&(r=i==="week"&&(yi(o)||o===!0)?n.startOf(r,"isoWeek",o):n.startOf(r,i)),+r)}function Vg(e,t,n,s){const i=Mt.length;for(let o=Mt.indexOf(e);o<i-1;++o){const r=Ka[Mt[o]],a=r.steps?r.steps:Number.MAX_SAFE_INTEGER;if(r.common&&Math.ceil((n-t)/(a*r.size))<=s)return Mt[o]}return Mt[i-1]}function XI(e,t,n,s,i){for(let o=Mt.length-1;o>=Mt.indexOf(n);o--){const r=Mt[o];if(Ka[r].common&&e._adapter.diff(i,s,r)>=t-1)return r}return Mt[n?Mt.indexOf(n):0]}function JI(e){for(let t=Mt.indexOf(e)+1,n=Mt.length;t<n;++t)if(Ka[Mt[t]].common)return Mt[t]}function Bg(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:s,hi:i}=Nu(n,t),o=n[s]>=t?n[s]:n[i];e[o]=!0}}function ZI(e,t,n,s){const i=e._adapter,o=+i.startOf(t[0].value,s),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+i.add(a,1,s))l=n[a],l>=0&&(t[l].major=!0);return t}function Ng(e,t,n){const s=[],i={},o=t.length;let r,a;for(r=0;r<o;++r)a=t[r],i[a]=r,s.push({value:a,major:!1});return o===0||!n?s:ZI(e,s,i,n)}class Ao extends Zs{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,n={}){const s=t.time||(t.time={}),i=this._adapter=new aT._date(t.adapters.date);i.init(n),eo(s.displayFormats,i.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Fg(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,s=t.time.unit||"day";let{min:i,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function l(c){!r&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!r||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Qe(i)&&!isNaN(i)?i:+n.startOf(Date.now(),s),o=Qe(o)&&!isNaN(o)?o:+n.endOf(Date.now(),s)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],s=t[t.length-1]),{min:n,max:s}}buildTicks(){const t=this.options,n=t.time,s=t.ticks,i=s.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,r=this.max,a=IM(i,o,r);return this._unit=n.unit||(s.autoSkip?Vg(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):XI(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:JI(this._unit),this.initOffsets(i),t.reverse&&a.reverse(),Ng(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,s=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;n=dt(n,0,r),s=dt(s,0,r),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,n=this.min,s=this.max,i=this.options,o=i.time,r=o.unit||Vg(o.minUnit,n,s,this._getLabelCapacity(n)),a=Ce(i.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=yi(l)||l===!0,u={};let d=n,f,h;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(s,n,r)>1e5*a)throw new Error(n+" and "+s+" are too far apart with stepSize of "+a+" "+r);const m=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,h=0;f<s;f=+t.add(f,a,r),h++)Bg(u,f,m);return(f===s||i.bounds==="ticks"||h===1)&&Bg(u,f,m),Object.keys(u).sort(Lg).map(g=>+g)}getLabelForValue(t){const n=this._adapter,s=this.options.time;return s.tooltipFormat?n.format(t,s.tooltipFormat):n.format(t,s.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,r=n||i[o];return this._adapter.format(t,r)}_tickFormatFunction(t,n,s,i){const o=this.options,r=o.ticks.callback;if(r)return He(r,[t,n,s],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],f=s[n],h=c&&d&&f&&f.major;return this._adapter.format(t,i||(h?d:u))}generateTickLabels(t){let n,s,i;for(n=0,s=t.length;n<s;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,s=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+s)*n.factor)}getValueForPixel(t){const n=this._offsets,s=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+s*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,s=this.ctx.measureText(t).width,i=en(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),r=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:s*o+a*r,h:s*r+a*o}}_getLabelCapacity(t){const n=this.options.time,s=n.displayFormats,i=s[n.unit]||s.millisecond,o=this._tickFormatFunction(t,0,Ng(this,[t],this._majorUnit),i),r=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,s;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,s=i.length;n<s;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,s;if(t.length)return t;const i=this.getLabels();for(n=0,s=i.length;n<s;++n)t.push(Fg(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return tb(t.sort(Lg))}}te(Ao,"id","time"),te(Ao,"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 dr(e,t,n){let s=0,i=e.length-1,o,r,a,l;n?(t>=e[s].pos&&t<=e[i].pos&&({lo:s,hi:i}=Rn(e,"pos",t)),{pos:o,time:a}=e[s],{pos:r,time:l}=e[i]):(t>=e[s].time&&t<=e[i].time&&({lo:s,hi:i}=Rn(e,"time",t)),{time:o,pos:a}=e[s],{time:r,pos:l}=e[i]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class Oc extends Ao{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=dr(n,this.min),this._tableRange=dr(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:s}=this,i=[],o=[];let r,a,l,c,u;for(r=0,a=t.length;r<a;++r)c=t[r],c>=n&&c<=s&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:s,pos:1}];for(r=0,a=i.length;r<a;++r)u=i[r+1],l=i[r-1],c=i[r],Math.round((u+l)/2)!==c&&o.push({time:c,pos:r/(a-1)});return o}_generate(){const t=this.min,n=this.max;let s=super.getDataTimestamps();return(!s.includes(t)||!s.length)&&s.splice(0,0,t),(!s.includes(n)||s.length===1)&&s.push(n),s.sort((i,o)=>i-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),s=this.getLabelTimestamps();return n.length&&s.length?t=this.normalize(n.concat(s)):t=n.length?n:s,t=this._cache.all=t,t}getDecimalForValue(t){return(dr(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,s=this.getDecimalForPixel(t)/n.factor-n.end;return dr(this._table,s*this._tableRange+this._minPos,!0)}}te(Oc,"id","timeseries"),te(Oc,"defaults",Ao.defaults);var QI=Object.freeze({__proto__:null,CategoryScale:Ac,LinearScale:Mc,LogarithmicScale:Ec,RadialLinearScale:Ui,TimeScale:Ao,TimeSeriesScale:Oc});const eR=[rT,FO,TI,QI];On.register(...eR);const tR=W({color:String,...gs(),...Oe(),...Xs(),...ms(),...wu(),...dv(),...Jt(),...at(),...rt()},"VSheet"),nR=me()({name:"VSheet",props:tR(),setup(e,t){let{slots:n}=t;const{themeClasses:s}=ht(e),{backgroundColorClasses:i,backgroundColorStyles:o}=xn(le(e,"color")),{borderClasses:r}=qs(e),{dimensionStyles:a}=Js(e),{elevationClasses:l}=Ys(e),{locationStyles:c}=Cu(e),{positionClasses:u}=fv(e),{roundedClasses:d}=an(e);return _e(()=>y(e.tag,{class:["v-sheet",s.value,i.value,r.value,l.value,u.value,d.value,e.class],style:[o.value,a.value,c.value,e.style]},n)),{}}}),sR={class:"d-flex flex-column"},iR={class:"stat-bar d-flex flex-row justify-space-around"},oR={class:"d-flex flex-column"},rR={class:"d-flex flex-column"},aR={class:"d-flex flex-column"},lR={class:"d-flex flex-column"},cR={class:"d-flex flex-column"},uR={class:"role-table d-flex flex-row"},dR=G("thead",null,[G("tr",null,[G("th",{class:"text-left"},"Role"),G("th",{class:"text-left"},"Active"),G("th",{class:"text-left"},"App Count"),G("th",{class:"text-left"},"Games Played"),G("th",{class:"text-left"},"Pick Rate %"),G("th",{class:"text-left"},"% Games With Role")])],-1),fR={class:"text-left"},hR={class:"text-left"},gR={class:"text-left"},mR={class:"text-left"},pR={class:"text-left"},vR=G("canvas",{id:"piechart"},null,-1),yR=G("div",{class:"flex-1-1"},null,-1),bR=$n({__name:"ServerStats",setup(e){const t=Oo(),n=hu(),s=Z(-1),i=d(),o=Z("active"),r=[{title:"Game Types",value:"gametypes"},{title:"Active Characters",value:"active"},{title:"Role Picks",value:"picks"},{title:"Role Applications",value:"apps"}],a=Z({Complete:0,Postponed:0,Pending:0,Fixes:0,Events:0,AverageIP:0,AverageEB:0,TotalIP:0,TotalEB:0}),l=Z({Fixer:{apps:0,picks:0,active:0},Tech:{apps:0,picks:0,active:0},Medtech:{apps:0,picks:0,active:0},Media:{apps:0,picks:0,active:0},Netrunner:{apps:0,picks:0,active:0},Solo:{apps:0,picks:0,active:0},Nomad:{apps:0,picks:0,active:0},Exec:{apps:0,picks:0,active:0},Lawman:{apps:0,picks:0,active:0},Rocker:{apps:0,picks:0,active:0}});let c;async function u(){const g=await ze.post("/api/serverstats/gamestats",{monthId:s.value});a.value=g.data;const p=await ze.post("/api/serverstats/rolestats",{monthId:s.value});l.value=p.data}function d(){const g=[{title:"All Time",value:-1}],p=new Date;for(;p.getUTCFullYear()!=2023||p.getUTCMonth()!=0;)g.push(f(p)),p.setUTCMonth(p.getUTCMonth()-1);return g.push(f(p)),g}function f(g){const p=h(g);return{title:g.toLocaleString("en-us",{month:"short",year:"numeric"}),value:p}}function h(g){return(g.getUTCFullYear()-2023)*12+g.getUTCMonth()}function m(g,p){p==="gametypes"?c.data={labels:["Standard","Postponed","Pending","Event","Fix"],datasets:[{label:"Game Type",data:[a.value.Complete-a.value.Events-a.value.Fixes,a.value.Postponed,a.value.Pending,a.value.Events,a.value.Fixes]}]}:c.data={labels:Object.keys(g),datasets:[{label:p,data:Object.values(g).map(v=>v[p])}]},c.update()}return ue(s,async(g,p)=>{n.replace({query:{monthId:s.value}}),u()}),ue(l,async(g,p)=>{m(g,o.value)}),ue(o,async(g,p)=>{m(l.value,g)}),$t(async()=>{console.log(i),t.query.monthId?s.value=Number(t.query.monthId):n.replace({query:{monthId:-1}}),u(),c=new On(document.getElementById("piechart"),{type:"pie",data:{labels:[],datasets:[]}})}),(g,p)=>(Ct(),tn("div",sR,[y(hc,{class:"date-selector",modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=v=>s.value=v),variant:"underlined",items:Ze(i)},null,8,["modelValue","items"]),G("div",iR,[G("div",oR,[y(Ut,{class:"title"},{default:Ve(()=>[ut("Completed Games")]),_:1}),y(Ut,null,{default:Ve(()=>[ut(ve(a.value.Complete),1)]),_:1})]),G("div",rR,[y(Ut,{class:"title"},{default:Ve(()=>[ut("Postponed Games")]),_:1}),y(Ut,null,{default:Ve(()=>[ut(ve(a.value.Postponed),1)]),_:1})]),G("div",aR,[y(Ut,{class:"title"},{default:Ve(()=>[ut("Events / Fixes")]),_:1}),y(Ut,null,{default:Ve(()=>[ut(ve(a.value.Events)+" / "+ve(a.value.Fixes),1)]),_:1})]),G("div",lR,[y(Ut,{class:"title"},{default:Ve(()=>[ut("Total / Average EB")]),_:1}),y(Ut,null,{default:Ve(()=>[ut(ve(Math.floor(a.value.TotalEB))+" / "+ve(Math.floor(a.value.AverageEB)),1)]),_:1})]),G("div",cR,[y(Ut,{class:"title"},{default:Ve(()=>[ut("Total / Average IP")]),_:1}),y(Ut,null,{default:Ve(()=>[ut(ve(Math.floor(a.value.TotalIP))+" / "+ve(Math.floor(a.value.AverageIP)),1)]),_:1})])]),G("div",uR,[y($s,{class:"flex-1-1"},{default:Ve(()=>[dR,G("tbody",null,[(Ct(!0),tn(Pe,null,Sa(l.value,(v,b)=>(Ct(),tn("tr",null,[G("td",null,ve(b),1),G("td",fR,ve(v.active),1),G("td",hR,ve(v.apps),1),G("td",gR,ve(v.picks),1),G("td",mR,ve(Math.floor(v.picks/v.apps*100))+"%",1),G("td",pR,ve(Math.floor(v.picks/a.value.Complete*100))+"% ",1)]))),256))])]),_:1}),y(nR,{class:"chart d-flex flex-column"},{default:Ve(()=>[y(hc,{modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=v=>o.value=v),items:r},null,8,["modelValue"]),vR,yR]),_:1})])]))}}),xR={path:"/",redirect:"/serverstats"},_R={path:"/games",component:Mk},SR={path:"/games/:gameId",component:LA},wR={path:"/characters",component:zA},CR={path:"/characters/:characterId",component:YA},kR={path:"/serverstats",component:bR},PR=[xR,_R,SR,wR,CR,kR],AR=b1({history:qw(),routes:PR});function MR(e){e.use(pw).use(AR)}const ER=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},TR=W({...Oe(),...cw({fullHeight:!0}),...rt()},"VApp"),OR=me()({name:"VApp",props:TR(),setup(e,t){let{slots:n}=t;const s=ht(e),{layoutClasses:i,getLayoutItem:o,items:r,layoutRef:a}=gw(e),{rtlClasses:l}=Sn();return _e(()=>{var c;return y("div",{ref:a,class:["v-application",s.themeClasses.value,i.value,l.value,e.class],style:[e.style]},[y("div",{class:"v-application__wrap"},[(c=n.default)==null?void 0:c.call(n)])])}),{getLayoutItem:o,items:r,theme:s}}}),IR=W({text:String,...Oe(),...at()},"VToolbarTitle"),RR=me()({name:"VToolbarTitle",props:IR(),setup(e,t){let{slots:n}=t;return _e(()=>{const s=!!(n.default||n.text||e.text);return y(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var i;return[s&&y("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,(i=n.default)==null?void 0:i.call(n)])]}})}),{}}}),DR=[null,"prominent","default","comfortable","compact"],jb=W({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>DR.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...gs(),...Oe(),...ms(),...Jt(),...at({tag:"header"}),...rt()},"VToolbar"),$g=me()({name:"VToolbar",props:jb(),setup(e,t){var h;let{slots:n}=t;const{backgroundColorClasses:s,backgroundColorStyles:i}=xn(le(e,"color")),{borderClasses:o}=qs(e),{elevationClasses:r}=Ys(e),{roundedClasses:a}=an(e),{themeClasses:l}=ht(e),{rtlClasses:c}=Sn(),u=ge(!!(e.extended||(h=n.extension)!=null&&h.call(n))),d=k(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),f=k(()=>u.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return bn({VBtn:{variant:"text"}}),_e(()=>{var v;const m=!!(e.title||n.title),g=!!(n.image||e.image),p=(v=n.extension)==null?void 0:v.call(n);return u.value=!!(e.extended||p),y(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},s.value,o.value,r.value,a.value,l.value,c.value,e.class],style:[i.value,e.style]},{default:()=>[g&&y("div",{key:"image",class:"v-toolbar__image"},[n.image?y(bt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):y(Nv,{key:"image-img",cover:!0,src:e.image},null)]),y(bt,{defaults:{VTabs:{height:fe(d.value)}}},{default:()=>{var b,x,_;return[y("div",{class:"v-toolbar__content",style:{height:fe(d.value)}},[n.prepend&&y("div",{class:"v-toolbar__prepend"},[(b=n.prepend)==null?void 0:b.call(n)]),m&&y(RR,{key:"title",text:e.title},{text:n.title}),(x=n.default)==null?void 0:x.call(n),n.append&&y("div",{class:"v-toolbar__append"},[(_=n.append)==null?void 0:_.call(n)])])]}}),y(bt,{defaults:{VTabs:{height:fe(f.value)}}},{default:()=>[y(Pv,null,{default:()=>[u.value&&y("div",{class:"v-toolbar__extension",style:{height:fe(f.value)}},[p])]})]})]})}),{contentHeight:d,extensionHeight:f}}}),LR=W({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function FR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:n}=t;let s=0;const i=Z(null),o=ge(0),r=ge(0),a=ge(0),l=ge(!1),c=ge(!1),u=k(()=>Number(e.scrollThreshold)),d=k(()=>nn((u.value-o.value)/u.value||0)),f=()=>{const h=i.value;!h||n&&!n.value||(s=o.value,o.value="window"in h?h.pageYOffset:h.scrollTop,c.value=o.value<s,a.value=Math.abs(o.value-u.value))};return ue(c,()=>{r.value=r.value||o.value}),ue(l,()=>{r.value=0}),$t(()=>{ue(()=>e.scrollTarget,h=>{var g;const m=h?document.querySelector(h):window;m&&m!==i.value&&((g=i.value)==null||g.removeEventListener("scroll",f),i.value=m,i.value.addEventListener("scroll",f,{passive:!0}))},{immediate:!0})}),zt(()=>{var h;(h=i.value)==null||h.removeEventListener("scroll",f)}),n&&ue(n,f,{immediate:!0}),{scrollThreshold:u,currentScroll:o,currentThreshold:a,isScrollActive:l,scrollRatio:d,isScrollingUp:c,savedScroll:r}}const VR=W({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...jb(),...uw(),...LR(),height:{type:[Number,String],default:64}},"VAppBar"),BR=me()({name:"VAppBar",props:VR(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const s=Z(),i=Ye(e,"modelValue"),o=k(()=>{var b;const v=new Set(((b=e.scrollBehavior)==null?void 0:b.split(" "))??[]);return{hide:v.has("hide"),inverted:v.has("inverted"),collapse:v.has("collapse"),elevate:v.has("elevate"),fadeImage:v.has("fade-image")}}),r=k(()=>{const v=o.value;return v.hide||v.inverted||v.collapse||v.elevate||v.fadeImage||!i.value}),{currentScroll:a,scrollThreshold:l,isScrollingUp:c,scrollRatio:u}=FR(e,{canScroll:r}),d=k(()=>e.collapse||o.value.collapse&&(o.value.inverted?u.value>0:u.value===0)),f=k(()=>e.flat||o.value.elevate&&(o.value.inverted?a.value>0:a.value===0)),h=k(()=>o.value.fadeImage?o.value.inverted?1-u.value:u.value:void 0),m=k(()=>{var x,_;if(o.value.hide&&o.value.inverted)return 0;const v=((x=s.value)==null?void 0:x.contentHeight)??0,b=((_=s.value)==null?void 0:_.extensionHeight)??0;return v+b});cs(k(()=>!!e.scrollBehavior),()=>{It(()=>{o.value.hide?o.value.inverted?i.value=a.value>l.value:i.value=c.value||a.value<l.value:i.value=!0})});const{ssrBootStyles:g}=Ou(),{layoutItemStyles:p}=fw({id:e.name,order:k(()=>parseInt(e.order,10)),position:le(e,"location"),layoutSize:m,elementSize:ge(void 0),active:i,absolute:le(e,"absolute")});return _e(()=>{const v=$g.filterProps(e);return y($g,be({ref:s,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...p.value,"--v-toolbar-image-opacity":h.value,height:void 0,...g.value},e.style]},v,{collapse:d.value,flat:f.value}),n)}),{}}}),NR=W({scrollable:Boolean,...Oe(),...at({tag:"main"})},"VMain"),$R=me()({name:"VMain",props:NR(),setup(e,t){let{slots:n}=t;const{mainStyles:s}=dw(),{ssrBootStyles:i}=Ou();return _e(()=>y(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[s.value,i.value,e.style]},{default:()=>{var o,r;return[e.scrollable?y("div",{class:"v-main__scroller"},[(o=n.default)==null?void 0:o.call(n)]):(r=n.default)==null?void 0:r.call(n)]}})),{}}}),zR={};function HR(e,t){const n=W0("router-view");return Ct(),wa(OR,null,{default:Ve(()=>[y($R,null,{default:Ve(()=>[y(BR,null,{default:Ve(()=>[y(gn,{to:"/serverstats"},{default:Ve(()=>[ut("Server Stats")]),_:1}),y(gn,{to:"/games"},{default:Ve(()=>[ut("Games")]),_:1}),y(gn,{to:"/characters"},{default:Ve(()=>[ut("Characters")]),_:1})]),_:1}),y(n)]),_:1})]),_:1})}const jR=ER(zR,[["render",HR]]),Wb=v_(jR);MR(Wb);Wb.mount("#app");
|