From 4a1b9f5caf1dfbf302aba19f80cf5db2ca1777b1 Mon Sep 17 00:00:00 2001 From: ParisNeo Date: Sat, 6 May 2023 21:14:15 +0200 Subject: [PATCH] upgraded requirements and new UI --- requirements.txt | 2 +- requirements_dev.txt | 2 +- web/dist/assets/index-0a458d4e.js | 11 +++++++++++ web/dist/assets/index-63dc5996.js | 11 ----------- web/dist/index.html | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 web/dist/assets/index-0a458d4e.js delete mode 100644 web/dist/assets/index-63dc5996.js diff --git a/requirements.txt b/requirements.txt index 1ff6b98c..30f2e148 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,4 +15,4 @@ transformers accelerate gevent gevent-websocket -pyaipersonality==0.0.5 \ No newline at end of file +pyaipersonality==latest \ No newline at end of file diff --git a/requirements_dev.txt b/requirements_dev.txt index 650f77d9..2ce4a07c 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -7,4 +7,4 @@ markdown pyllamacpp==2.0.0 gpt4all-j transformers -pyaipersonality \ No newline at end of file +pyaipersonality==latest \ No newline at end of file diff --git a/web/dist/assets/index-0a458d4e.js b/web/dist/assets/index-0a458d4e.js new file mode 100644 index 00000000..3e7eb082 --- /dev/null +++ b/web/dist/assets/index-0a458d4e.js @@ -0,0 +1,11 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function Ai(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}function Oi(e){if(G(e)){const t={};for(let n=0;n{if(n){const r=n.split(mu);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ie(e){let t="";if(Ee(e))t=e;else if(G(e))for(let n=0;nus(n,t))}const lt=e=>Ee(e)?e:e==null?"":G(e)||ge(e)&&(e.toString===$a||!Z(e.toString))?JSON.stringify(e,Ha,2):String(e),Ha=(e,t)=>t&&t.__v_isRef?Ha(e,t.value):wn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:fs(t)?{[`Set(${t.size})`]:[...t.values()]}:ge(t)&&!G(t)&&!za(t)?String(t):t,me={},bn=[],dt=()=>{},Eu=()=>!1,ju=/^on[^a-z]/,ds=e=>ju.test(e),Ci=e=>e.startsWith("onUpdate:"),Ne=Object.assign,Ti=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ku=Object.prototype.hasOwnProperty,ie=(e,t)=>ku.call(e,t),G=Array.isArray,wn=e=>Pn(e)==="[object Map]",fs=e=>Pn(e)==="[object Set]",po=e=>Pn(e)==="[object Date]",Au=e=>Pn(e)==="[object RegExp]",Z=e=>typeof e=="function",Ee=e=>typeof e=="string",rr=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Va=e=>ge(e)&&Z(e.then)&&Z(e.catch),$a=Object.prototype.toString,Pn=e=>$a.call(e),Ou=e=>Pn(e).slice(8,-1),za=e=>Pn(e)==="[object Object]",Si=e=>Ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Rr=Ai(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Cu=/-(\w)/g,_t=hs(e=>e.replace(Cu,(t,n)=>n?n.toUpperCase():"")),Tu=/\B([A-Z])/g,pn=hs(e=>e.replace(Tu,"-$1").toLowerCase()),ps=hs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ls=hs(e=>e?`on${ps(e)}`:""),sr=(e,t)=>!Object.is(e,t),_n=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Gs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let go;const Su=()=>go||(go=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let ot;class Mu{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ot,!t&&ot&&(this.index=(ot.scopes||(ot.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ot;try{return ot=this,t()}finally{ot=n}}}on(){ot=this}off(){ot=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Ua=e=>(e.w&Gt)>0,Ka=e=>(e.n&Gt)>0,Pu=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":G(e)?Si(n)&&a.push(o.get("length")):(a.push(o.get(un)),wn(e)&&a.push(o.get(Xs)));break;case"delete":G(e)||(a.push(o.get(un)),wn(e)&&a.push(o.get(Xs)));break;case"set":wn(e)&&a.push(o.get(un));break}if(a.length===1)a[0]&&Qs(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);Qs(Mi(l))}}function Qs(e,t){const n=G(e)?e:[...e];for(const r of n)r.computed&&mo(r);for(const r of n)r.computed||mo(r)}function mo(e,t){(e!==ct||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Bu=Ai("__proto__,__v_isRef,__isVue"),Ga=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(rr)),Du=Li(),Nu=Li(!1,!0),Fu=Li(!0),vo=Hu();function Hu(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ae(this);for(let i=0,o=this.length;i{e[t]=function(...n){In();const r=ae(this)[t].apply(this,n);return Bn(),r}}),e}function Vu(e){const t=ae(this);return Ue(t,"has",e),t.hasOwnProperty(e)}function Li(e=!1,t=!1){return function(r,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?rd:Za:t?Qa:Xa).get(r))return r;const o=G(r);if(!e){if(o&&ie(vo,s))return Reflect.get(vo,s,i);if(s==="hasOwnProperty")return Vu}const a=Reflect.get(r,s,i);return(rr(s)?Ga.has(s):Bu(s))||(e||Ue(r,"get",s),t)?a:De(a)?o&&Si(s)?a:a.value:ge(a)?e?el(a):Dn(a):a}}const $u=Ya(),zu=Ya(!0);function Ya(e=!1){return function(n,r,s,i){let o=n[r];if(kn(o)&&De(o)&&!De(s))return!1;if(!e&&(!Wr(s)&&!kn(s)&&(o=ae(o),s=ae(s)),!G(n)&&De(o)&&!De(s)))return o.value=s,!0;const a=G(n)&&Si(r)?Number(r)e,gs=e=>Reflect.getPrototypeOf(e);function vr(e,t,n=!1,r=!1){e=e.__v_raw;const s=ae(e),i=ae(t);n||(t!==i&&Ue(s,"get",t),Ue(s,"get",i));const{has:o}=gs(s),a=r?Pi:n?Di:ir;if(o.call(s,t))return a(e.get(t));if(o.call(s,i))return a(e.get(i));e!==s&&e.get(t)}function xr(e,t=!1){const n=this.__v_raw,r=ae(n),s=ae(e);return t||(e!==s&&Ue(r,"has",e),Ue(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function br(e,t=!1){return e=e.__v_raw,!t&&Ue(ae(e),"iterate",un),Reflect.get(e,"size",e)}function xo(e){e=ae(e);const t=ae(this);return gs(t).has.call(t,e)||(t.add(e),St(t,"add",e,e)),this}function bo(e,t){t=ae(t);const n=ae(this),{has:r,get:s}=gs(n);let i=r.call(n,e);i||(e=ae(e),i=r.call(n,e));const o=s.call(n,e);return n.set(e,t),i?sr(t,o)&&St(n,"set",e,t):St(n,"add",e,t),this}function wo(e){const t=ae(this),{has:n,get:r}=gs(t);let s=n.call(t,e);s||(e=ae(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&St(t,"delete",e,void 0),i}function _o(){const e=ae(this),t=e.size!==0,n=e.clear();return t&&St(e,"clear",void 0,void 0),n}function wr(e,t){return function(r,s){const i=this,o=i.__v_raw,a=ae(o),l=t?Pi:e?Di:ir;return!e&&Ue(a,"iterate",un),o.forEach((c,u)=>r.call(s,l(c),l(u),i))}}function _r(e,t,n){return function(...r){const s=this.__v_raw,i=ae(s),o=wn(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=s[e](...r),u=n?Pi:t?Di:ir;return!t&&Ue(i,"iterate",l?Xs:un),{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 Bt(e){return function(...t){return e==="delete"?!1:this}}function Yu(){const e={get(i){return vr(this,i)},get size(){return br(this)},has:xr,add:xo,set:bo,delete:wo,clear:_o,forEach:wr(!1,!1)},t={get(i){return vr(this,i,!1,!0)},get size(){return br(this)},has:xr,add:xo,set:bo,delete:wo,clear:_o,forEach:wr(!1,!0)},n={get(i){return vr(this,i,!0)},get size(){return br(this,!0)},has(i){return xr.call(this,i,!0)},add:Bt("add"),set:Bt("set"),delete:Bt("delete"),clear:Bt("clear"),forEach:wr(!0,!1)},r={get(i){return vr(this,i,!0,!0)},get size(){return br(this,!0)},has(i){return xr.call(this,i,!0)},add:Bt("add"),set:Bt("set"),delete:Bt("delete"),clear:Bt("clear"),forEach:wr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=_r(i,!1,!1),n[i]=_r(i,!0,!1),t[i]=_r(i,!1,!0),r[i]=_r(i,!0,!0)}),[e,n,t,r]}const[Ju,Xu,Qu,Zu]=Yu();function Ii(e,t){const n=t?e?Zu:Qu:e?Xu:Ju;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ie(n,s)&&s in r?n:r,s,i)}const ed={get:Ii(!1,!1)},td={get:Ii(!1,!0)},nd={get:Ii(!0,!1)},Xa=new WeakMap,Qa=new WeakMap,Za=new WeakMap,rd=new WeakMap;function sd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function id(e){return e.__v_skip||!Object.isExtensible(e)?0:sd(Ou(e))}function Dn(e){return kn(e)?e:Bi(e,!1,Ja,ed,Xa)}function od(e){return Bi(e,!1,Gu,td,Qa)}function el(e){return Bi(e,!0,qu,nd,Za)}function Bi(e,t,n,r,s){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=id(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function En(e){return kn(e)?En(e.__v_raw):!!(e&&e.__v_isReactive)}function kn(e){return!!(e&&e.__v_isReadonly)}function Wr(e){return!!(e&&e.__v_isShallow)}function tl(e){return En(e)||kn(e)}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function nl(e){return Kr(e,"__v_skip",!0),e}const ir=e=>ge(e)?Dn(e):e,Di=e=>ge(e)?el(e):e;function rl(e){Wt&&ct&&(e=ae(e),qa(e.dep||(e.dep=Mi())))}function sl(e,t){e=ae(e);const n=e.dep;n&&Qs(n)}function De(e){return!!(e&&e.__v_isRef===!0)}function ad(e){return il(e,!1)}function ld(e){return il(e,!0)}function il(e,t){return De(e)?e:new cd(e,t)}class cd{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ae(t),this._value=n?t:ir(t)}get value(){return rl(this),this._value}set value(t){const n=this.__v_isShallow||Wr(t)||kn(t);t=n?t:ae(t),sr(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ir(t),sl(this))}}function We(e){return De(e)?e.value:e}const ud={get:(e,t,n)=>We(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return De(s)&&!De(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function ol(e){return En(e)?e:new Proxy(e,ud)}var al;class dd{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[al]=!1,this._dirty=!0,this.effect=new Ri(t,()=>{this._dirty||(this._dirty=!0,sl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=ae(this);return rl(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}al="__v_isReadonly";function fd(e,t,n=!1){let r,s;const i=Z(e);return i?(r=e,s=dt):(r=e.get,s=e.set),new dd(r,s,i||!s,n)}function qt(e,t,n,r){let s;try{s=r?e(...r):e()}catch(i){ys(i,t,n)}return s}function tt(e,t,n,r){if(Z(e)){const i=qt(e,t,n,r);return i&&Va(i)&&i.catch(o=>{ys(o,t,n)}),i}const s=[];for(let i=0;i>>1;ar(Be[r])yt&&Be.splice(t,1)}function yd(e){G(e)?jn.push(...e):(!Ot||!Ot.includes(e,e.allowRecurse?Zt+1:Zt))&&jn.push(e),cl()}function Eo(e,t=or?yt+1:0){for(;tar(n)-ar(r)),Zt=0;Zte.id==null?1/0:e.id,md=(e,t)=>{const n=ar(e)-ar(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function dl(e){Zs=!1,or=!0,Be.sort(md);const t=dt;try{for(yt=0;ytEe(p)?p.trim():p)),d&&(s=n.map(Gs))}let a,l=r[a=Ls(t)]||r[a=Ls(_t(t))];!l&&i&&(l=r[a=Ls(pn(t))]),l&&tt(l,e,6,s);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,tt(c,e,6,s)}}function fl(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!Z(e)){const l=c=>{const u=fl(c,t,!0);u&&(a=!0,Ne(o,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(ge(e)&&r.set(e,null),null):(G(i)?i.forEach(l=>o[l]=null):Ne(o,i),ge(e)&&r.set(e,o),o)}function ms(e,t){return!e||!ds(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,pn(t))||ie(e,t))}let qe=null,vs=null;function qr(e){const t=qe;return qe=e,vs=e&&e.type.__scopeId||null,t}function xd(e){vs=e}function bd(){vs=null}function Ut(e,t=qe,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Po(-1);const i=qr(t);let o;try{o=e(...s)}finally{qr(i),r._d&&Po(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Ps(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:i,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:f,setupState:p,ctx:g,inheritAttrs:y}=e;let _,w;const x=qr(e);try{if(n.shapeFlag&4){const E=s||r;_=gt(u.call(E,E,d,i,p,f,g)),w=l}else{const E=t;_=gt(E.length>1?E(i,{attrs:l,slots:a,emit:c}):E(i,null)),w=t.props?l:wd(l)}}catch(E){Xn.length=0,ys(E,e,1),_=ve(ft)}let b=_;if(w&&y!==!1){const E=Object.keys(w),{shapeFlag:S}=b;E.length&&S&7&&(o&&E.some(Ci)&&(w=_d(w,o)),b=Mt(b,w))}return n.dirs&&(b=Mt(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),_=b,qr(x),_}const wd=e=>{let t;for(const n in e)(n==="class"||n==="style"||ds(n))&&((t||(t={}))[n]=e[n]);return t},_d=(e,t)=>{const n={};for(const r in e)(!Ci(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ed(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?jo(r,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function kd(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):yd(e)}function Lr(e,t){if(_e){let n=_e.provides;const r=_e.parent&&_e.parent.provides;r===n&&(n=_e.provides=Object.create(r)),n[e]=t}}function Ct(e,t,n=!1){const r=_e||qe;if(r){const s=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Z(t)?t.call(r.proxy):t}}const Er={};function Gn(e,t,n){return pl(e,t,n)}function pl(e,t,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:o}=me){const a=Lu()===(_e==null?void 0:_e.scope)?_e:null;let l,c=!1,u=!1;if(De(e)?(l=()=>e.value,c=Wr(e)):En(e)?(l=()=>e,r=!0):G(e)?(u=!0,c=e.some(b=>En(b)||Wr(b)),l=()=>e.map(b=>{if(De(b))return b.value;if(En(b))return ln(b);if(Z(b))return qt(b,a,2)})):Z(e)?t?l=()=>qt(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return d&&d(),tt(e,a,3,[f])}:l=dt,t&&r){const b=l;l=()=>ln(b())}let d,f=b=>{d=w.onStop=()=>{qt(b,a,4)}},p;if(cr)if(f=dt,t?n&&tt(t,a,3,[l(),u?[]:void 0,f]):l(),s==="sync"){const b=bf();p=b.__watcherHandles||(b.__watcherHandles=[])}else return dt;let g=u?new Array(e.length).fill(Er):Er;const y=()=>{if(w.active)if(t){const b=w.run();(r||c||(u?b.some((E,S)=>sr(E,g[S])):sr(b,g)))&&(d&&d(),tt(t,a,3,[b,g===Er?void 0:u&&g[0]===Er?[]:g,f]),g=b)}else w.run()};y.allowRecurse=!!t;let _;s==="sync"?_=y:s==="post"?_=()=>Te(y,a&&a.suspense):(y.pre=!0,a&&(y.id=a.uid),_=()=>Fi(y));const w=new Ri(l,_);t?n?y():g=w.run():s==="post"?Te(w.run.bind(w),a&&a.suspense):w.run();const x=()=>{w.stop(),a&&a.scope&&Ti(a.scope.effects,w)};return p&&p.push(x),x}function Ad(e,t,n){const r=this.proxy,s=Ee(e)?e.includes(".")?gl(r,e):()=>r[e]:e.bind(r,r);let i;Z(t)?i=t:(i=t.handler,n=t);const o=_e;An(this);const a=pl(s,i.bind(r),n);return o?An(o):dn(),a}function gl(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{ln(n,t)});else if(za(e))for(const n in e)ln(e[n],t);return e}function Od(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ws(()=>{e.isMounted=!0}),Hi(()=>{e.isUnmounting=!0}),e}const Je=[Function,Array],Cd={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Je,onEnter:Je,onAfterEnter:Je,onEnterCancelled:Je,onBeforeLeave:Je,onLeave:Je,onAfterLeave:Je,onLeaveCancelled:Je,onBeforeAppear:Je,onAppear:Je,onAfterAppear:Je,onAppearCancelled:Je},setup(e,{slots:t}){const n=Il(),r=Od();let s;return()=>{const i=t.default&&ml(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const y of i)if(y.type!==ft){o=y;break}}const a=ae(e),{mode:l}=a;if(r.isLeaving)return Is(o);const c=ko(o);if(!c)return Is(o);const u=ei(c,a,r,n);Gr(c,u);const d=n.subTree,f=d&&ko(d);let p=!1;const{getTransitionKey:g}=c.type;if(g){const y=g();s===void 0?s=y:y!==s&&(s=y,p=!0)}if(f&&f.type!==ft&&(!Kt(c,f)||p)){const y=ei(f,a,r,n);if(Gr(f,y),l==="out-in")return r.isLeaving=!0,y.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Is(o);l==="in-out"&&c.type!==ft&&(y.delayLeave=(_,w,x)=>{const b=yl(r,f);b[String(f.key)]=f,_._leaveCb=()=>{w(),_._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=x})}return o}}},Td=Cd;function yl(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ei(e,t,n,r){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:y,onAppear:_,onAfterAppear:w,onAppearCancelled:x}=t,b=String(e.key),E=yl(n,e),S=(I,W)=>{I&&tt(I,r,9,W)},P=(I,W)=>{const K=W[1];S(I,W),G(I)?I.every(X=>X.length<=1)&&K():I.length<=1&&K()},D={mode:i,persisted:o,beforeEnter(I){let W=a;if(!n.isMounted)if(s)W=y||a;else return;I._leaveCb&&I._leaveCb(!0);const K=E[b];K&&Kt(e,K)&&K.el._leaveCb&&K.el._leaveCb(),S(W,[I])},enter(I){let W=l,K=c,X=u;if(!n.isMounted)if(s)W=_||l,K=w||c,X=x||u;else return;let ce=!1;const ue=I._enterCb=we=>{ce||(ce=!0,we?S(X,[I]):S(K,[I]),D.delayedLeave&&D.delayedLeave(),I._enterCb=void 0)};W?P(W,[I,ue]):ue()},leave(I,W){const K=String(e.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return W();S(d,[I]);let X=!1;const ce=I._leaveCb=ue=>{X||(X=!0,W(),ue?S(g,[I]):S(p,[I]),I._leaveCb=void 0,E[K]===e&&delete E[K])};E[K]=e,f?P(f,[I,ce]):ce()},clone(I){return ei(I,t,n,r)}};return D}function Is(e){if(xs(e))return e=Mt(e),e.children=null,e}function ko(e){return xs(e)?e.children?e.children[0]:void 0:e}function Gr(e,t){e.shapeFlag&6&&e.component?Gr(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 ml(e,t=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,xs=e=>e.type.__isKeepAlive,Sd={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Il(),r=n.ctx;if(!r.renderer)return()=>{const x=t.default&&t.default();return x&&x.length===1?x[0]:x};const s=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=r,f=d("div");r.activate=(x,b,E,S,P)=>{const D=x.component;c(x,b,E,0,a),l(D.vnode,x,b,E,D,a,S,x.slotScopeIds,P),Te(()=>{D.isDeactivated=!1,D.a&&_n(D.a);const I=x.props&&x.props.onVnodeMounted;I&&Xe(I,D.parent,x)},a)},r.deactivate=x=>{const b=x.component;c(x,f,null,1,a),Te(()=>{b.da&&_n(b.da);const E=x.props&&x.props.onVnodeUnmounted;E&&Xe(E,b.parent,x),b.isDeactivated=!0},a)};function p(x){Bs(x),u(x,n,a,!0)}function g(x){s.forEach((b,E)=>{const S=oi(b.type);S&&(!x||!x(S))&&y(E)})}function y(x){const b=s.get(x);!o||!Kt(b,o)?p(b):o&&Bs(o),s.delete(x),i.delete(x)}Gn(()=>[e.include,e.exclude],([x,b])=>{x&&g(E=>Wn(x,E)),b&&g(E=>!Wn(b,E))},{flush:"post",deep:!0});let _=null;const w=()=>{_!=null&&s.set(_,Ds(n.subTree))};return ws(w),bl(w),Hi(()=>{s.forEach(x=>{const{subTree:b,suspense:E}=n,S=Ds(b);if(x.type===S.type&&x.key===S.key){Bs(S);const P=S.component.da;P&&Te(P,E);return}p(x)})}),()=>{if(_=null,!t.default)return null;const x=t.default(),b=x[0];if(x.length>1)return o=null,x;if(!Jr(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return o=null,b;let E=Ds(b);const S=E.type,P=oi(Yn(E)?E.type.__asyncResolved||{}:S),{include:D,exclude:I,max:W}=e;if(D&&(!P||!Wn(D,P))||I&&P&&Wn(I,P))return o=E,b;const K=E.key==null?S:E.key,X=s.get(K);return E.el&&(E=Mt(E),b.shapeFlag&128&&(b.ssContent=E)),_=K,X?(E.el=X.el,E.component=X.component,E.transition&&Gr(E,E.transition),E.shapeFlag|=512,i.delete(K),i.add(K)):(i.add(K),W&&i.size>parseInt(W,10)&&y(i.values().next().value)),E.shapeFlag|=256,o=E,hl(b.type)?b:E}}},Md=Sd;function Wn(e,t){return G(e)?e.some(n=>Wn(n,t)):Ee(e)?e.split(",").includes(t):Au(e)?e.test(t):!1}function Rd(e,t){xl(e,"a",t)}function Ld(e,t){xl(e,"da",t)}function xl(e,t,n=_e){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(bs(t,r,n),n){let s=n.parent;for(;s&&s.parent;)xs(s.parent.vnode)&&Pd(r,t,n,s),s=s.parent}}function Pd(e,t,n,r){const s=bs(t,e,r,!0);wl(()=>{Ti(r[t],s)},n)}function Bs(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ds(e){return e.shapeFlag&128?e.ssContent:e}function bs(e,t,n=_e,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;In(),An(n);const a=tt(t,n,e,o);return dn(),Bn(),a});return r?s.unshift(i):s.push(i),i}}const Pt=e=>(t,n=_e)=>(!cr||e==="sp")&&bs(e,(...r)=>t(...r),n),Id=Pt("bm"),ws=Pt("m"),Bd=Pt("bu"),bl=Pt("u"),Hi=Pt("bum"),wl=Pt("um"),Dd=Pt("sp"),Nd=Pt("rtg"),Fd=Pt("rtc");function Hd(e,t=_e){bs("ec",e,t)}function Pe(e,t){const n=qe;if(n===null)return e;const r=js(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;it(o,a,void 0,i&&i[a]));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,l=o.length;ae?Bl(e)?js(e)||e.proxy:ti(e.parent):null,Jn=Ne(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=>ti(e.parent),$root:e=>ti(e.root),$emit:e=>e.emit,$options:e=>$i(e),$forceUpdate:e=>e.f||(e.f=()=>Fi(e.update)),$nextTick:e=>e.n||(e.n=Me.bind(e.proxy)),$watch:e=>Ad.bind(e)}),Ns=(e,t)=>e!==me&&!e.__isScriptSetup&&ie(e,t),$d={get({_:e},t){const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Ns(r,t))return o[t]=1,r[t];if(s!==me&&ie(s,t))return o[t]=2,s[t];if((c=e.propsOptions[0])&&ie(c,t))return o[t]=3,i[t];if(n!==me&&ie(n,t))return o[t]=4,n[t];ni&&(o[t]=0)}}const u=Jn[t];let d,f;if(u)return t==="$attrs"&&Ue(e,"get",t),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==me&&ie(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,ie(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return Ns(s,t)?(s[t]=n,!0):r!==me&&ie(r,t)?(r[t]=n,!0):ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||e!==me&&ie(e,o)||Ns(t,o)||(a=i[0])&&ie(a,o)||ie(r,o)||ie(Jn,o)||ie(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let ni=!0;function zd(e){const t=$i(e),n=e.proxy,r=e.ctx;ni=!1,t.beforeCreate&&Co(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:g,activated:y,deactivated:_,beforeDestroy:w,beforeUnmount:x,destroyed:b,unmounted:E,render:S,renderTracked:P,renderTriggered:D,errorCaptured:I,serverPrefetch:W,expose:K,inheritAttrs:X,components:ce,directives:ue,filters:we}=t;if(c&&Ud(c,r,null,e.appContext.config.unwrapInjectedRef),o)for(const q in o){const ee=o[q];Z(ee)&&(r[q]=ee.bind(n))}if(s){const q=s.call(n,n);ge(q)&&(e.data=Dn(q))}if(ni=!0,i)for(const q in i){const ee=i[q],he=Z(ee)?ee.bind(n,n):Z(ee.get)?ee.get.bind(n,n):dt,Fe=!Z(ee)&&Z(ee.set)?ee.set.bind(n):dt,xe=et({get:he,set:Fe});Object.defineProperty(r,q,{enumerable:!0,configurable:!0,get:()=>xe.value,set:pe=>xe.value=pe})}if(a)for(const q in a)jl(a[q],r,n,q);if(l){const q=Z(l)?l.call(n):l;Reflect.ownKeys(q).forEach(ee=>{Lr(ee,q[ee])})}u&&Co(u,e,"c");function ne(q,ee){G(ee)?ee.forEach(he=>q(he.bind(n))):ee&&q(ee.bind(n))}if(ne(Id,d),ne(ws,f),ne(Bd,p),ne(bl,g),ne(Rd,y),ne(Ld,_),ne(Hd,I),ne(Fd,P),ne(Nd,D),ne(Hi,x),ne(wl,E),ne(Dd,W),G(K))if(K.length){const q=e.exposed||(e.exposed={});K.forEach(ee=>{Object.defineProperty(q,ee,{get:()=>n[ee],set:he=>n[ee]=he})})}else e.exposed||(e.exposed={});S&&e.render===dt&&(e.render=S),X!=null&&(e.inheritAttrs=X),ce&&(e.components=ce),ue&&(e.directives=ue)}function Ud(e,t,n=dt,r=!1){G(e)&&(e=ri(e));for(const s in e){const i=e[s];let o;ge(i)?"default"in i?o=Ct(i.from||s,i.default,!0):o=Ct(i.from||s):o=Ct(i),De(o)&&r?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[s]=o}}function Co(e,t,n){tt(G(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function jl(e,t,n,r){const s=r.includes(".")?gl(n,r):()=>n[r];if(Ee(e)){const i=t[e];Z(i)&&Gn(s,i)}else if(Z(e))Gn(s,e.bind(n));else if(ge(e))if(G(e))e.forEach(i=>jl(i,t,n,r));else{const i=Z(e.handler)?e.handler.bind(n):t[e.handler];Z(i)&&Gn(s,i,e)}}function $i(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(c=>Yr(l,c,o,!0)),Yr(l,t,o)),ge(t)&&i.set(t,l),l}function Yr(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Yr(e,i,n,!0),s&&s.forEach(o=>Yr(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Kd[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Kd={data:To,props:Qt,emits:Qt,methods:Qt,computed:Qt,beforeCreate:He,created:He,beforeMount:He,mounted:He,beforeUpdate:He,updated:He,beforeDestroy:He,beforeUnmount:He,destroyed:He,unmounted:He,activated:He,deactivated:He,errorCaptured:He,serverPrefetch:He,components:Qt,directives:Qt,watch:qd,provide:To,inject:Wd};function To(e,t){return t?e?function(){return Ne(Z(e)?e.call(this,this):e,Z(t)?t.call(this,this):t)}:t:e}function Wd(e,t){return Qt(ri(e),ri(t))}function ri(e){if(G(e)){const t={};for(let n=0;n0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,p]=Al(d,t,!0);Ne(o,f),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return ge(e)&&r.set(e,bn),bn;if(G(i))for(let u=0;u-1,p[1]=y<0||g-1||ie(p,"default"))&&a.push(d)}}}const c=[o,a];return ge(e)&&r.set(e,c),c}function So(e){return e[0]!=="$"}function Mo(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ro(e,t){return Mo(e)===Mo(t)}function Lo(e,t){return G(t)?t.findIndex(n=>Ro(n,e)):Z(t)&&Ro(t,e)?0:-1}const Ol=e=>e[0]==="_"||e==="$stable",zi=e=>G(e)?e.map(gt):[gt(e)],Jd=(e,t,n)=>{if(t._n)return t;const r=Ut((...s)=>zi(t(...s)),n);return r._c=!1,r},Cl=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ol(s))continue;const i=e[s];if(Z(i))t[s]=Jd(s,i,r);else if(i!=null){const o=zi(i);t[s]=()=>o}}},Tl=(e,t)=>{const n=zi(t);e.slots.default=()=>n},Xd=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ae(t),Kr(t,"_",n)):Cl(t,e.slots={})}else e.slots={},t&&Tl(e,t);Kr(e.slots,Es,1)},Qd=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=me;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(Ne(s,t),!n&&a===1&&delete s._):(i=!t.$stable,Cl(t,s)),o=t}else t&&(Tl(e,t),o={default:1});if(i)for(const a in s)!Ol(a)&&!(a in o)&&delete s[a]};function Sl(){return{app:null,config:{isNativeTag:Eu,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 Zd=0;function ef(e,t){return function(r,s=null){Z(r)||(r=Object.assign({},r)),s!=null&&!ge(s)&&(s=null);const i=Sl(),o=new Set;let a=!1;const l=i.app={_uid:Zd++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:wf,get config(){return i.config},set config(c){},use(c,...u){return o.has(c)||(c&&Z(c.install)?(o.add(c),c.install(l,...u)):Z(c)&&(o.add(c),c(l,...u))),l},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),l},component(c,u){return u?(i.components[c]=u,l):i.components[c]},directive(c,u){return u?(i.directives[c]=u,l):i.directives[c]},mount(c,u,d){if(!a){const f=ve(r,s);return f.appContext=i,u&&t?t(f,c):e(f,c,d),a=!0,l._container=c,c.__vue_app__=l,js(f.component)||f.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return i.provides[c]=u,l}};return l}}function ii(e,t,n,r,s=!1){if(G(e)){e.forEach((f,p)=>ii(f,t&&(G(t)?t[p]:t),n,r,s));return}if(Yn(r)&&!s)return;const i=r.shapeFlag&4?js(r.component)||r.component.proxy:r.el,o=s?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===me?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(Ee(c)?(u[c]=null,ie(d,c)&&(d[c]=null)):De(c)&&(c.value=null)),Z(l))qt(l,a,12,[o,u]);else{const f=Ee(l),p=De(l);if(f||p){const g=()=>{if(e.f){const y=f?ie(d,l)?d[l]:u[l]:l.value;s?G(y)&&Ti(y,i):G(y)?y.includes(i)||y.push(i):f?(u[l]=[i],ie(d,l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else f?(u[l]=o,ie(d,l)&&(d[l]=o)):p&&(l.value=o,e.k&&(u[e.k]=o))};o?(g.id=-1,Te(g,n)):g()}}}const Te=kd;function tf(e){return nf(e)}function nf(e,t){const n=Su();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=dt,insertStaticContent:g}=e,y=(h,m,j,A=null,C=null,R=null,F=!1,M=null,L=!!m.dynamicChildren)=>{if(h===m)return;h&&!Kt(h,m)&&(A=B(h),pe(h,C,R,!0),h=null),m.patchFlag===-2&&(L=!1,m.dynamicChildren=null);const{type:T,ref:z,shapeFlag:H}=m;switch(T){case _s:_(h,m,j,A);break;case ft:w(h,m,j,A);break;case Pr:h==null&&x(m,j,A,F);break;case Ae:ce(h,m,j,A,C,R,F,M,L);break;default:H&1?S(h,m,j,A,C,R,F,M,L):H&6?ue(h,m,j,A,C,R,F,M,L):(H&64||H&128)&&T.process(h,m,j,A,C,R,F,M,L,re)}z!=null&&C&&ii(z,h&&h.ref,R,m||h,!m)},_=(h,m,j,A)=>{if(h==null)r(m.el=a(m.children),j,A);else{const C=m.el=h.el;m.children!==h.children&&c(C,m.children)}},w=(h,m,j,A)=>{h==null?r(m.el=l(m.children||""),j,A):m.el=h.el},x=(h,m,j,A)=>{[h.el,h.anchor]=g(h.children,m,j,A,h.el,h.anchor)},b=({el:h,anchor:m},j,A)=>{let C;for(;h&&h!==m;)C=f(h),r(h,j,A),h=C;r(m,j,A)},E=({el:h,anchor:m})=>{let j;for(;h&&h!==m;)j=f(h),s(h),h=j;s(m)},S=(h,m,j,A,C,R,F,M,L)=>{F=F||m.type==="svg",h==null?P(m,j,A,C,R,F,M,L):W(h,m,C,R,F,M,L)},P=(h,m,j,A,C,R,F,M)=>{let L,T;const{type:z,props:H,shapeFlag:$,transition:J,dirs:te}=h;if(L=h.el=o(h.type,R,H&&H.is,H),$&8?u(L,h.children):$&16&&I(h.children,L,null,A,C,R&&z!=="foreignObject",F,M),te&&Jt(h,null,A,"created"),D(L,h,h.scopeId,F,A),H){for(const le in H)le!=="value"&&!Rr(le)&&i(L,le,null,H[le],R,h.children,A,C,N);"value"in H&&i(L,"value",null,H.value),(T=H.onVnodeBeforeMount)&&Xe(T,A,h)}te&&Jt(h,null,A,"beforeMount");const de=(!C||C&&!C.pendingBranch)&&J&&!J.persisted;de&&J.beforeEnter(L),r(L,m,j),((T=H&&H.onVnodeMounted)||de||te)&&Te(()=>{T&&Xe(T,A,h),de&&J.enter(L),te&&Jt(h,null,A,"mounted")},C)},D=(h,m,j,A,C)=>{if(j&&p(h,j),A)for(let R=0;R{for(let T=L;T{const M=m.el=h.el;let{patchFlag:L,dynamicChildren:T,dirs:z}=m;L|=h.patchFlag&16;const H=h.props||me,$=m.props||me;let J;j&&Xt(j,!1),(J=$.onVnodeBeforeUpdate)&&Xe(J,j,m,h),z&&Jt(m,h,j,"beforeUpdate"),j&&Xt(j,!0);const te=C&&m.type!=="foreignObject";if(T?K(h.dynamicChildren,T,M,j,A,te,R):F||ee(h,m,M,null,j,A,te,R,!1),L>0){if(L&16)X(M,m,H,$,j,A,C);else if(L&2&&H.class!==$.class&&i(M,"class",null,$.class,C),L&4&&i(M,"style",H.style,$.style,C),L&8){const de=m.dynamicProps;for(let le=0;le{J&&Xe(J,j,m,h),z&&Jt(m,h,j,"updated")},A)},K=(h,m,j,A,C,R,F)=>{for(let M=0;M{if(j!==A){if(j!==me)for(const M in j)!Rr(M)&&!(M in A)&&i(h,M,j[M],null,F,m.children,C,R,N);for(const M in A){if(Rr(M))continue;const L=A[M],T=j[M];L!==T&&M!=="value"&&i(h,M,T,L,F,m.children,C,R,N)}"value"in A&&i(h,"value",j.value,A.value)}},ce=(h,m,j,A,C,R,F,M,L)=>{const T=m.el=h?h.el:a(""),z=m.anchor=h?h.anchor:a("");let{patchFlag:H,dynamicChildren:$,slotScopeIds:J}=m;J&&(M=M?M.concat(J):J),h==null?(r(T,j,A),r(z,j,A),I(m.children,j,z,C,R,F,M,L)):H>0&&H&64&&$&&h.dynamicChildren?(K(h.dynamicChildren,$,j,C,R,F,M),(m.key!=null||C&&m===C.subTree)&&Ml(h,m,!0)):ee(h,m,j,z,C,R,F,M,L)},ue=(h,m,j,A,C,R,F,M,L)=>{m.slotScopeIds=M,h==null?m.shapeFlag&512?C.ctx.activate(m,j,A,F,L):we(m,j,A,C,R,F,L):Re(h,m,L)},we=(h,m,j,A,C,R,F)=>{const M=h.component=hf(h,A,C);if(xs(h)&&(M.ctx.renderer=re),pf(M),M.asyncDep){if(C&&C.registerDep(M,ne),!h.el){const L=M.subTree=ve(ft);w(null,L,m,j)}return}ne(M,h,m,j,C,R,F)},Re=(h,m,j)=>{const A=m.component=h.component;if(Ed(h,m,j))if(A.asyncDep&&!A.asyncResolved){q(A,m,j);return}else A.next=m,gd(A.update),A.update();else m.el=h.el,A.vnode=m},ne=(h,m,j,A,C,R,F)=>{const M=()=>{if(h.isMounted){let{next:z,bu:H,u:$,parent:J,vnode:te}=h,de=z,le;Xt(h,!1),z?(z.el=te.el,q(h,z,F)):z=te,H&&_n(H),(le=z.props&&z.props.onVnodeBeforeUpdate)&&Xe(le,J,z,te),Xt(h,!0);const ke=Ps(h),it=h.subTree;h.subTree=ke,y(it,ke,d(it.el),B(it),h,C,R),z.el=ke.el,de===null&&jd(h,ke.el),$&&Te($,C),(le=z.props&&z.props.onVnodeUpdated)&&Te(()=>Xe(le,J,z,te),C)}else{let z;const{el:H,props:$}=m,{bm:J,m:te,parent:de}=h,le=Yn(m);if(Xt(h,!1),J&&_n(J),!le&&(z=$&&$.onVnodeBeforeMount)&&Xe(z,de,m),Xt(h,!0),H&&Q){const ke=()=>{h.subTree=Ps(h),Q(H,h.subTree,h,C,null)};le?m.type.__asyncLoader().then(()=>!h.isUnmounted&&ke()):ke()}else{const ke=h.subTree=Ps(h);y(null,ke,j,A,h,C,R),m.el=ke.el}if(te&&Te(te,C),!le&&(z=$&&$.onVnodeMounted)){const ke=m;Te(()=>Xe(z,de,ke),C)}(m.shapeFlag&256||de&&Yn(de.vnode)&&de.vnode.shapeFlag&256)&&h.a&&Te(h.a,C),h.isMounted=!0,m=j=A=null}},L=h.effect=new Ri(M,()=>Fi(T),h.scope),T=h.update=()=>L.run();T.id=h.uid,Xt(h,!0),T()},q=(h,m,j)=>{m.component=h;const A=h.vnode.props;h.vnode=m,h.next=null,Yd(h,m.props,A,j),Qd(h,m.children,j),In(),Eo(),Bn()},ee=(h,m,j,A,C,R,F,M,L=!1)=>{const T=h&&h.children,z=h?h.shapeFlag:0,H=m.children,{patchFlag:$,shapeFlag:J}=m;if($>0){if($&128){Fe(T,H,j,A,C,R,F,M,L);return}else if($&256){he(T,H,j,A,C,R,F,M,L);return}}J&8?(z&16&&N(T,C,R),H!==T&&u(j,H)):z&16?J&16?Fe(T,H,j,A,C,R,F,M,L):N(T,C,R,!0):(z&8&&u(j,""),J&16&&I(H,j,A,C,R,F,M,L))},he=(h,m,j,A,C,R,F,M,L)=>{h=h||bn,m=m||bn;const T=h.length,z=m.length,H=Math.min(T,z);let $;for($=0;$z?N(h,C,R,!0,!1,H):I(m,j,A,C,R,F,M,L,H)},Fe=(h,m,j,A,C,R,F,M,L)=>{let T=0;const z=m.length;let H=h.length-1,$=z-1;for(;T<=H&&T<=$;){const J=h[T],te=m[T]=L?Ft(m[T]):gt(m[T]);if(Kt(J,te))y(J,te,j,null,C,R,F,M,L);else break;T++}for(;T<=H&&T<=$;){const J=h[H],te=m[$]=L?Ft(m[$]):gt(m[$]);if(Kt(J,te))y(J,te,j,null,C,R,F,M,L);else break;H--,$--}if(T>H){if(T<=$){const J=$+1,te=J$)for(;T<=H;)pe(h[T],C,R,!0),T++;else{const J=T,te=T,de=new Map;for(T=te;T<=$;T++){const Ke=m[T]=L?Ft(m[T]):gt(m[T]);Ke.key!=null&&de.set(Ke.key,T)}let le,ke=0;const it=$-te+1;let gn=!1,uo=0;const Hn=new Array(it);for(T=0;T=it){pe(Ke,C,R,!0);continue}let pt;if(Ke.key!=null)pt=de.get(Ke.key);else for(le=te;le<=$;le++)if(Hn[le-te]===0&&Kt(Ke,m[le])){pt=le;break}pt===void 0?pe(Ke,C,R,!0):(Hn[pt-te]=T+1,pt>=uo?uo=pt:gn=!0,y(Ke,m[pt],j,null,C,R,F,M,L),ke++)}const fo=gn?rf(Hn):bn;for(le=fo.length-1,T=it-1;T>=0;T--){const Ke=te+T,pt=m[Ke],ho=Ke+1{const{el:R,type:F,transition:M,children:L,shapeFlag:T}=h;if(T&6){xe(h.component.subTree,m,j,A);return}if(T&128){h.suspense.move(m,j,A);return}if(T&64){F.move(h,m,j,re);return}if(F===Ae){r(R,m,j);for(let H=0;HM.enter(R),C);else{const{leave:H,delayLeave:$,afterLeave:J}=M,te=()=>r(R,m,j),de=()=>{H(R,()=>{te(),J&&J()})};$?$(R,te,de):de()}else r(R,m,j)},pe=(h,m,j,A=!1,C=!1)=>{const{type:R,props:F,ref:M,children:L,dynamicChildren:T,shapeFlag:z,patchFlag:H,dirs:$}=h;if(M!=null&&ii(M,null,j,h,!0),z&256){m.ctx.deactivate(h);return}const J=z&1&&$,te=!Yn(h);let de;if(te&&(de=F&&F.onVnodeBeforeUnmount)&&Xe(de,m,h),z&6)k(h.component,j,A);else{if(z&128){h.suspense.unmount(j,A);return}J&&Jt(h,null,m,"beforeUnmount"),z&64?h.type.remove(h,m,j,C,re,A):T&&(R!==Ae||H>0&&H&64)?N(T,m,j,!1,!0):(R===Ae&&H&384||!C&&z&16)&&N(L,m,j),A&&Le(h)}(te&&(de=F&&F.onVnodeUnmounted)||J)&&Te(()=>{de&&Xe(de,m,h),J&&Jt(h,null,m,"unmounted")},j)},Le=h=>{const{type:m,el:j,anchor:A,transition:C}=h;if(m===Ae){je(j,A);return}if(m===Pr){E(h);return}const R=()=>{s(j),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(h.shapeFlag&1&&C&&!C.persisted){const{leave:F,delayLeave:M}=C,L=()=>F(j,R);M?M(h.el,R,L):L()}else R()},je=(h,m)=>{let j;for(;h!==m;)j=f(h),s(h),h=j;s(m)},k=(h,m,j)=>{const{bum:A,scope:C,update:R,subTree:F,um:M}=h;A&&_n(A),C.stop(),R&&(R.active=!1,pe(F,h,m,j)),M&&Te(M,m),Te(()=>{h.isUnmounted=!0},m),m&&m.pendingBranch&&!m.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===m.pendingId&&(m.deps--,m.deps===0&&m.resolve())},N=(h,m,j,A=!1,C=!1,R=0)=>{for(let F=R;Fh.shapeFlag&6?B(h.component.subTree):h.shapeFlag&128?h.suspense.next():f(h.anchor||h.el),V=(h,m,j)=>{h==null?m._vnode&&pe(m._vnode,null,null,!0):y(m._vnode||null,h,m,null,null,null,j),Eo(),ul(),m._vnode=h},re={p:y,um:pe,m:xe,r:Le,mt:we,mc:I,pc:ee,pbc:K,n:B,o:e};let ye,Q;return t&&([ye,Q]=t(re)),{render:V,hydrate:ye,createApp:ef(V,ye)}}function Xt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ml(e,t,n=!1){const r=e.children,s=t.children;if(G(r)&&G(s))for(let i=0;i>1,e[n[a]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const sf=e=>e.__isTeleport,Ae=Symbol(void 0),_s=Symbol(void 0),ft=Symbol(void 0),Pr=Symbol(void 0),Xn=[];let ut=null;function U(e=!1){Xn.push(ut=e?null:[])}function of(){Xn.pop(),ut=Xn[Xn.length-1]||null}let lr=1;function Po(e){lr+=e}function Rl(e){return e.dynamicChildren=lr>0?ut||bn:null,of(),lr>0&&ut&&ut.push(e),e}function Y(e,t,n,r,s,i){return Rl(v(e,t,n,r,s,i,!0))}function cn(e,t,n,r,s){return Rl(ve(e,t,n,r,s,!0))}function Jr(e){return e?e.__v_isVNode===!0:!1}function Kt(e,t){return e.type===t.type&&e.key===t.key}const Es="__vInternal",Ll=({key:e})=>e??null,Ir=({ref:e,ref_key:t,ref_for:n})=>e!=null?Ee(e)||De(e)||Z(e)?{i:qe,r:e,k:t,f:!!n}:e:null;function v(e,t=null,n=null,r=0,s=null,i=e===Ae?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ll(t),ref:t&&Ir(t),scopeId:vs,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:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:qe};return a?(Ui(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Ee(n)?8:16),lr>0&&!o&&ut&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&ut.push(l),l}const ve=af;function af(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===_l)&&(e=ft),Jr(e)){const a=Mt(e,t,!0);return n&&Ui(a,n),lr>0&&!i&&ut&&(a.shapeFlag&6?ut[ut.indexOf(e)]=a:ut.push(a)),a.patchFlag|=-2,a}if(vf(e)&&(e=e.__vccOpts),t){t=lf(t);let{class:a,style:l}=t;a&&!Ee(a)&&(t.class=Ie(a)),ge(l)&&(tl(l)&&!G(l)&&(l=Ne({},l)),t.style=Oi(l))}const o=Ee(e)?1:hl(e)?128:sf(e)?64:ge(e)?4:Z(e)?2:0;return v(e,t,n,r,s,o,i,!0)}function lf(e){return e?tl(e)||Es in e?Ne({},e):e:null}function Mt(e,t,n=!1){const{props:r,ref:s,patchFlag:i,children:o}=e,a=t?uf(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Ll(a),ref:t&&t.ref?n&&s?G(s)?s.concat(Ir(t)):[s,Ir(t)]:Ir(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ae?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mt(e.ssContent),ssFallback:e.ssFallback&&Mt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function cf(e=" ",t=0){return ve(_s,null,e,t)}function Pl(e,t){const n=ve(Pr,null,e);return n.staticCount=t,n}function be(e="",t=!1){return t?(U(),cn(ft,null,e)):ve(ft,null,e)}function gt(e){return e==null||typeof e=="boolean"?ve(ft):G(e)?ve(Ae,null,e.slice()):typeof e=="object"?Ft(e):ve(_s,null,String(e))}function Ft(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Mt(e)}function Ui(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(G(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Ui(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Es in t)?t._ctx=qe:s===3&&qe&&(qe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Z(t)?(t={default:t,_ctx:qe},n=32):(t=String(t),r&64?(n=16,t=[cf(t)]):n=8);e.children=t,e.shapeFlag|=n}function uf(...e){const t={};for(let n=0;n_e||qe,An=e=>{_e=e,e.scope.on()},dn=()=>{_e&&_e.scope.off(),_e=null};function Bl(e){return e.vnode.shapeFlag&4}let cr=!1;function pf(e,t=!1){cr=t;const{props:n,children:r}=e.vnode,s=Bl(e);Gd(e,n,s,t),Xd(e,r);const i=s?gf(e,t):void 0;return cr=!1,i}function gf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=nl(new Proxy(e.ctx,$d));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?mf(e):null;An(e),In();const i=qt(r,e,0,[e.props,s]);if(Bn(),dn(),Va(i)){if(i.then(dn,dn),t)return i.then(o=>{Io(e,o,t)}).catch(o=>{ys(o,e,0)});e.asyncDep=i}else Io(e,i,t)}else Dl(e,t)}function Io(e,t,n){Z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=ol(t)),Dl(e,n)}let Bo;function Dl(e,t,n){const r=e.type;if(!e.render){if(!t&&Bo&&!r.render){const s=r.template||$i(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=Ne(Ne({isCustomElement:i,delimiters:a},o),l);r.render=Bo(s,c)}}e.render=r.render||dt}An(e),In(),zd(e),Bn(),dn()}function yf(e){return new Proxy(e.attrs,{get(t,n){return Ue(e,"get","$attrs"),t[n]}})}function mf(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=yf(e))},slots:e.slots,emit:e.emit,expose:t}}function js(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ol(nl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Jn)return Jn[n](e)},has(t,n){return n in t||n in Jn}}))}function oi(e,t=!0){return Z(e)?e.displayName||e.name:e.name||t&&e.__name}function vf(e){return Z(e)&&"__vccOpts"in e}const et=(e,t)=>fd(e,t,cr);function Nl(e,t,n){const r=arguments.length;return r===2?ge(t)&&!G(t)?Jr(t)?ve(e,null,[t]):ve(e,t):ve(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Jr(n)&&(n=[n]),ve(e,t,n))}const xf=Symbol(""),bf=()=>Ct(xf),wf="3.2.47",_f="http://www.w3.org/2000/svg",tn=typeof document<"u"?document:null,Do=tn&&tn.createElement("template"),Ef={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?tn.createElementNS(_f,e):tn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>tn.createTextNode(e),createComment:e=>tn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Do.innerHTML=r?`${e}`:e;const a=Do.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function jf(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function kf(e,t,n){const r=e.style,s=Ee(n);if(n&&!s){if(t&&!Ee(t))for(const i in t)n[i]==null&&ai(r,i,"");for(const i in n)ai(r,i,n[i])}else{const i=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const No=/\s*!important$/;function ai(e,t,n){if(G(n))n.forEach(r=>ai(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Af(e,t);No.test(n)?e.setProperty(pn(r),n.replace(No,""),"important"):e[r]=n}}const Fo=["Webkit","Moz","ms"],Fs={};function Af(e,t){const n=Fs[t];if(n)return n;let r=_t(t);if(r!=="filter"&&r in e)return Fs[t]=r;r=ps(r);for(let s=0;sHs||(Rf.then(()=>Hs=0),Hs=Date.now());function Pf(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;tt(If(r,n.value),t,5,[r])};return n.value=e,n.attached=Lf(),n}function If(e,t){if(G(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const $o=/^on[a-z]/,Bf=(e,t,n,r,s=!1,i,o,a,l)=>{t==="class"?jf(e,r,s):t==="style"?kf(e,n,r):ds(t)?Ci(t)||Sf(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Df(e,t,r,s))?Cf(e,t,r,i,o,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Of(e,t,r,s))};function Df(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&$o.test(t)&&Z(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||$o.test(t)&&Ee(n)?!1:t in e}const Nf={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};Td.props;const Xr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return G(t)?n=>_n(t,n):t};function Ff(e){e.target.composing=!0}function zo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ve={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=Xr(s);const i=r||s.props&&s.props.type==="number";nn(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=Gs(a)),e._assign(a)}),n&&nn(e,"change",()=>{e.value=e.value.trim()}),t||(nn(e,"compositionstart",Ff),nn(e,"compositionend",zo),nn(e,"change",zo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},i){if(e._assign=Xr(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(s||e.type==="number")&&Gs(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},Hf={deep:!0,created(e,t,n){e._assign=Xr(n),nn(e,"change",()=>{const r=e._modelValue,s=Vf(e),i=e.checked,o=e._assign;if(G(r)){const a=Fa(r,s),l=a!==-1;if(i&&!l)o(r.concat(s));else if(!i&&l){const c=[...r];c.splice(a,1),o(c)}}else if(fs(r)){const a=new Set(r);i?a.add(s):a.delete(s),o(a)}else o(Fl(e,i))})},mounted:Uo,beforeUpdate(e,t,n){e._assign=Xr(n),Uo(e,t,n)}};function Uo(e,{value:t,oldValue:n},r){e._modelValue=t,G(t)?e.checked=Fa(t,r.props.value)>-1:fs(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=us(t,Fl(e,!0)))}function Vf(e){return"_value"in e?e._value:e.value}function Fl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const $f=["ctrl","shift","alt","meta"],zf={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)=>$f.some(n=>e[`${n}Key`]&&!t.includes(n))},Se=(e,t)=>(n,...r)=>{for(let s=0;sn=>{if(!("key"in n))return;const r=pn(n.key);if(t.some(s=>s===r||Uf[s]===r))return e(n)},Kf=Ne({patchProp:Bf},Ef);let Ko;function Wf(){return Ko||(Ko=tf(Kf))}const qf=(...e)=>{const t=Wf().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Gf(r);if(!s)return;const i=t._component;!Z(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function Gf(e){return Ee(e)?document.querySelector(e):e}/*! + * vue-router v4.1.6 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */const mn=typeof window<"u";function Yf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const fe=Object.assign;function Vs(e,t){const n={};for(const r in t){const s=t[r];n[r]=ht(s)?s.map(e):e(s)}return n}const Qn=()=>{},ht=Array.isArray,Jf=/\/$/,Xf=e=>e.replace(Jf,"");function $s(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=th(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:o}}function Qf(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Wo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Zf(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&On(t.matched[r],n.matched[s])&&Hl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function On(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Hl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!eh(e[n],t[n]))return!1;return!0}function eh(e,t){return ht(e)?qo(e,t):ht(t)?qo(t,e):e===t}function qo(e,t){return ht(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function th(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let s=n.length-1,i,o;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var ur;(function(e){e.pop="pop",e.push="push"})(ur||(ur={}));var Zn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Zn||(Zn={}));function nh(e){if(!e)if(mn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Xf(e)}const rh=/^[^#]+#/;function sh(e,t){return e.replace(rh,"#")+t}function ih(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ks=()=>({left:window.pageXOffset,top:window.pageYOffset});function oh(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=ih(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Go(e,t){return(history.state?history.state.position-t:-1)+e}const ci=new Map;function ah(e,t){ci.set(e,t)}function lh(e){const t=ci.get(e);return ci.delete(e),t}let ch=()=>location.protocol+"//"+location.host;function Vl(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),Wo(l,"")}return Wo(n,e)+r+s}function uh(e,t,n,r){let s=[],i=[],o=null;const a=({state:f})=>{const p=Vl(e,location),g=n.value,y=t.value;let _=0;if(f){if(n.value=p,t.value=f,o&&o===g){o=null;return}_=y?f.position-y.position:0}else r(p);s.forEach(w=>{w(n.value,g,{delta:_,type:ur.pop,direction:_?_>0?Zn.forward:Zn.back:Zn.unknown})})};function l(){o=n.value}function c(f){s.push(f);const p=()=>{const g=s.indexOf(f);g>-1&&s.splice(g,1)};return i.push(p),p}function u(){const{history:f}=window;f.state&&f.replaceState(fe({},f.state,{scroll:ks()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:c,destroy:d}}function Yo(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?ks():null}}function dh(e){const{history:t,location:n}=window,r={value:Vl(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:ch()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),s.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function o(l,c){const u=fe({},t.state,Yo(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});i(l,u,!0),r.value=l}function a(l,c){const u=fe({},s.value,t.state,{forward:l,scroll:ks()});i(u.current,u,!0);const d=fe({},Yo(r.value,l,null),{position:u.position+1},c);i(l,d,!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function fh(e){e=nh(e);const t=dh(e),n=uh(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=fe({location:"",base:e,go:r,createHref:sh.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function hh(e){return typeof e=="string"||e&&typeof e=="object"}function $l(e){return typeof e=="string"||typeof e=="symbol"}const Dt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},zl=Symbol("");var Jo;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Jo||(Jo={}));function Cn(e,t){return fe(new Error,{type:e,[zl]:!0},t)}function At(e,t){return e instanceof Error&&zl in e&&(t==null||!!(e.type&t))}const Xo="[^/]+?",ph={sensitive:!1,strict:!1,start:!0,end:!0},gh=/[.+*?^${}()[\]/\\]/g;function yh(e,t){const n=fe({},ph,t),r=[];let s=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function vh(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const xh={type:0,value:""},bh=/[a-zA-Z0-9_]/;function wh(e){if(!e)return[[]];if(e==="/")return[[xh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,c="",u="";function d(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.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{o(x)}:Qn}function o(u){if($l(u)){const d=r.get(u);d&&(r.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&r.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function l(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!Ul(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!ea(u)&&r.set(u.record.name,u)}function c(u,d){let f,p={},g,y;if("name"in u&&u.name){if(f=r.get(u.name),!f)throw Cn(1,{location:u});y=f.record.name,p=fe(Zo(d.params,f.keys.filter(x=>!x.optional).map(x=>x.name)),u.params&&Zo(u.params,f.keys.map(x=>x.name))),g=f.stringify(p)}else if("path"in u)g=u.path,f=n.find(x=>x.re.test(g)),f&&(p=f.parse(g),y=f.record.name);else{if(f=d.name?r.get(d.name):n.find(x=>x.re.test(d.path)),!f)throw Cn(1,{location:u,currentLocation:d});y=f.record.name,p=fe({},d.params,u.params),g=f.stringify(p)}const _=[];let w=f;for(;w;)_.unshift(w.record),w=w.parent;return{name:y,path:g,params:p,matched:_,meta:Ah(_)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function Zo(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function jh(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:kh(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 kh(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function ea(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ah(e){return e.reduce((t,n)=>fe(t,n.meta),{})}function ta(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Ul(e,t){return t.children.some(n=>n===e||Ul(e,n))}const Kl=/#/g,Oh=/&/g,Ch=/\//g,Th=/=/g,Sh=/\?/g,Wl=/\+/g,Mh=/%5B/g,Rh=/%5D/g,ql=/%5E/g,Lh=/%60/g,Gl=/%7B/g,Ph=/%7C/g,Yl=/%7D/g,Ih=/%20/g;function Ki(e){return encodeURI(""+e).replace(Ph,"|").replace(Mh,"[").replace(Rh,"]")}function Bh(e){return Ki(e).replace(Gl,"{").replace(Yl,"}").replace(ql,"^")}function ui(e){return Ki(e).replace(Wl,"%2B").replace(Ih,"+").replace(Kl,"%23").replace(Oh,"%26").replace(Lh,"`").replace(Gl,"{").replace(Yl,"}").replace(ql,"^")}function Dh(e){return ui(e).replace(Th,"%3D")}function Nh(e){return Ki(e).replace(Kl,"%23").replace(Sh,"%3F")}function Fh(e){return e==null?"":Nh(e).replace(Ch,"%2F")}function Qr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Hh(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&ui(i)):[r&&ui(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Vh(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ht(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const $h=Symbol(""),ra=Symbol(""),Wi=Symbol(""),Jl=Symbol(""),di=Symbol("");function Vn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Ht(e,t,n,r,s){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((o,a)=>{const l=d=>{d===!1?a(Cn(4,{from:n,to:t})):d instanceof Error?a(d):hh(d)?a(Cn(2,{from:t,to:d})):(i&&r.enterCallbacks[s]===i&&typeof d=="function"&&i.push(d),o())},c=e.call(r&&r.instances[s],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(d=>a(d))})}function zs(e,t,n,r){const s=[];for(const i of e)for(const o in i.components){let a=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(zh(a)){const c=(a.__vccOpts||a)[t];c&&s.push(Ht(c,n,r,i,o))}else{let l=a();s.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const u=Yf(c)?c.default:c;i.components[o]=u;const f=(u.__vccOpts||u)[t];return f&&Ht(f,n,r,i,o)()}))}}return s}function zh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function sa(e){const t=Ct(Wi),n=Ct(Jl),r=et(()=>t.resolve(We(e.to))),s=et(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(On.bind(null,u));if(f>-1)return f;const p=ia(l[c-2]);return c>1&&ia(u)===p&&d[d.length-1].path!==p?d.findIndex(On.bind(null,l[c-2])):f}),i=et(()=>s.value>-1&&Wh(n.params,r.value.params)),o=et(()=>s.value>-1&&s.value===n.matched.length-1&&Hl(n.params,r.value.params));function a(l={}){return Kh(l)?t[We(e.replace)?"replace":"push"](We(e.to)).catch(Qn):Promise.resolve()}return{route:r,href:et(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}const Uh=vl({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:sa,setup(e,{slots:t}){const n=Dn(sa(e)),{options:r}=Ct(Wi),s=et(()=>({[oa(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[oa(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Nl("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),rn=Uh;function Kh(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 Wh(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!ht(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function ia(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const oa=(e,t,n)=>e??t??n,qh=vl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ct(di),s=et(()=>e.route||r.value),i=Ct(ra,0),o=et(()=>{let c=We(i);const{matched:u}=s.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=et(()=>s.value.matched[o.value]);Lr(ra,et(()=>o.value+1)),Lr($h,a),Lr(di,s);const l=ad();return Gn(()=>[l.value,a.value,e.name],([c,u,d],[f,p,g])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!On(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(y=>y(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return aa(n.default,{Component:f,route:c});const p=d.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,_=Nl(f,fe({},g,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return aa(n.default,{Component:_,route:c})||_}}});function aa(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Xl=qh;function Gh(e){const t=Eh(e.routes,e),n=e.parseQuery||Hh,r=e.stringifyQuery||na,s=e.history,i=Vn(),o=Vn(),a=Vn(),l=ld(Dt);let c=Dt;mn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Vs.bind(null,k=>""+k),d=Vs.bind(null,Fh),f=Vs.bind(null,Qr);function p(k,N){let B,V;return $l(k)?(B=t.getRecordMatcher(k),V=N):V=k,t.addRoute(V,B)}function g(k){const N=t.getRecordMatcher(k);N&&t.removeRoute(N)}function y(){return t.getRoutes().map(k=>k.record)}function _(k){return!!t.getRecordMatcher(k)}function w(k,N){if(N=fe({},N||l.value),typeof k=="string"){const h=$s(n,k,N.path),m=t.resolve({path:h.path},N),j=s.createHref(h.fullPath);return fe(h,m,{params:f(m.params),hash:Qr(h.hash),redirectedFrom:void 0,href:j})}let B;if("path"in k)B=fe({},k,{path:$s(n,k.path,N.path).path});else{const h=fe({},k.params);for(const m in h)h[m]==null&&delete h[m];B=fe({},k,{params:d(k.params)}),N.params=d(N.params)}const V=t.resolve(B,N),re=k.hash||"";V.params=u(f(V.params));const ye=Qf(r,fe({},k,{hash:Bh(re),path:V.path})),Q=s.createHref(ye);return fe({fullPath:ye,hash:re,query:r===na?Vh(k.query):k.query||{}},V,{redirectedFrom:void 0,href:Q})}function x(k){return typeof k=="string"?$s(n,k,l.value.path):fe({},k)}function b(k,N){if(c!==k)return Cn(8,{from:N,to:k})}function E(k){return D(k)}function S(k){return E(fe(x(k),{replace:!0}))}function P(k){const N=k.matched[k.matched.length-1];if(N&&N.redirect){const{redirect:B}=N;let V=typeof B=="function"?B(k):B;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=x(V):{path:V},V.params={}),fe({query:k.query,hash:k.hash,params:"path"in V?{}:k.params},V)}}function D(k,N){const B=c=w(k),V=l.value,re=k.state,ye=k.force,Q=k.replace===!0,h=P(B);if(h)return D(fe(x(h),{state:typeof h=="object"?fe({},re,h.state):re,force:ye,replace:Q}),N||B);const m=B;m.redirectedFrom=N;let j;return!ye&&Zf(r,V,B)&&(j=Cn(16,{to:m,from:V}),Fe(V,V,!0,!1)),(j?Promise.resolve(j):W(m,V)).catch(A=>At(A)?At(A,2)?A:he(A):q(A,m,V)).then(A=>{if(A){if(At(A,2))return D(fe({replace:Q},x(A.to),{state:typeof A.to=="object"?fe({},re,A.to.state):re,force:ye}),N||m)}else A=X(m,V,!0,Q,re);return K(m,V,A),A})}function I(k,N){const B=b(k,N);return B?Promise.reject(B):Promise.resolve()}function W(k,N){let B;const[V,re,ye]=Yh(k,N);B=zs(V.reverse(),"beforeRouteLeave",k,N);for(const h of V)h.leaveGuards.forEach(m=>{B.push(Ht(m,k,N))});const Q=I.bind(null,k,N);return B.push(Q),yn(B).then(()=>{B=[];for(const h of i.list())B.push(Ht(h,k,N));return B.push(Q),yn(B)}).then(()=>{B=zs(re,"beforeRouteUpdate",k,N);for(const h of re)h.updateGuards.forEach(m=>{B.push(Ht(m,k,N))});return B.push(Q),yn(B)}).then(()=>{B=[];for(const h of k.matched)if(h.beforeEnter&&!N.matched.includes(h))if(ht(h.beforeEnter))for(const m of h.beforeEnter)B.push(Ht(m,k,N));else B.push(Ht(h.beforeEnter,k,N));return B.push(Q),yn(B)}).then(()=>(k.matched.forEach(h=>h.enterCallbacks={}),B=zs(ye,"beforeRouteEnter",k,N),B.push(Q),yn(B))).then(()=>{B=[];for(const h of o.list())B.push(Ht(h,k,N));return B.push(Q),yn(B)}).catch(h=>At(h,8)?h:Promise.reject(h))}function K(k,N,B){for(const V of a.list())V(k,N,B)}function X(k,N,B,V,re){const ye=b(k,N);if(ye)return ye;const Q=N===Dt,h=mn?history.state:{};B&&(V||Q?s.replace(k.fullPath,fe({scroll:Q&&h&&h.scroll},re)):s.push(k.fullPath,re)),l.value=k,Fe(k,N,B,Q),he()}let ce;function ue(){ce||(ce=s.listen((k,N,B)=>{if(!je.listening)return;const V=w(k),re=P(V);if(re){D(fe(re,{replace:!0}),V).catch(Qn);return}c=V;const ye=l.value;mn&&ah(Go(ye.fullPath,B.delta),ks()),W(V,ye).catch(Q=>At(Q,12)?Q:At(Q,2)?(D(Q.to,V).then(h=>{At(h,20)&&!B.delta&&B.type===ur.pop&&s.go(-1,!1)}).catch(Qn),Promise.reject()):(B.delta&&s.go(-B.delta,!1),q(Q,V,ye))).then(Q=>{Q=Q||X(V,ye,!1),Q&&(B.delta&&!At(Q,8)?s.go(-B.delta,!1):B.type===ur.pop&&At(Q,20)&&s.go(-1,!1)),K(V,ye,Q)}).catch(Qn)}))}let we=Vn(),Re=Vn(),ne;function q(k,N,B){he(k);const V=Re.list();return V.length?V.forEach(re=>re(k,N,B)):console.error(k),Promise.reject(k)}function ee(){return ne&&l.value!==Dt?Promise.resolve():new Promise((k,N)=>{we.add([k,N])})}function he(k){return ne||(ne=!k,ue(),we.list().forEach(([N,B])=>k?B(k):N()),we.reset()),k}function Fe(k,N,B,V){const{scrollBehavior:re}=e;if(!mn||!re)return Promise.resolve();const ye=!B&&lh(Go(k.fullPath,0))||(V||!B)&&history.state&&history.state.scroll||null;return Me().then(()=>re(k,N,ye)).then(Q=>Q&&oh(Q)).catch(Q=>q(Q,k,N))}const xe=k=>s.go(k);let pe;const Le=new Set,je={currentRoute:l,listening:!0,addRoute:p,removeRoute:g,hasRoute:_,getRoutes:y,resolve:w,options:e,push:E,replace:S,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:Re.add,isReady:ee,install(k){const N=this;k.component("RouterLink",rn),k.component("RouterView",Xl),k.config.globalProperties.$router=N,Object.defineProperty(k.config.globalProperties,"$route",{enumerable:!0,get:()=>We(l)}),mn&&!pe&&l.value===Dt&&(pe=!0,E(s.location).catch(re=>{}));const B={};for(const re in Dt)B[re]=et(()=>l.value[re]);k.provide(Wi,N),k.provide(Jl,Dn(B)),k.provide(di,l);const V=k.unmount;Le.add(k),k.unmount=function(){Le.delete(k),Le.size<1&&(c=Dt,ce&&ce(),ce=null,l.value=Dt,pe=!1,ne=!1),V()}}};return je}function yn(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function Yh(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oOn(c,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(c=>On(c,l))||s.push(l))}return[n,r,s]}const Ql="/assets/logo-9d653710.svg";var Jh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fi={},Qh={get exports(){return fi},set exports(e){fi=e}};(function(e,t){(function(r,s){e.exports=s()})(typeof self<"u"?self:Jh,function(){return function(n){var r={};function s(i){if(r[i])return r[i].exports;var o=r[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,s),o.l=!0,o.exports}return s.m=n,s.c=r,s.d=function(i,o,a){s.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:a})},s.r=function(i){Object.defineProperty(i,"__esModule",{value:!0})},s.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return s.d(o,"a",o),o},s.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},s.p="",s(s.s=0)}({"./dist/icons.json":function(n){n.exports={activity:'',airplay:'',"alert-circle":'',"alert-octagon":'',"alert-triangle":'',"align-center":'',"align-justify":'',"align-left":'',"align-right":'',anchor:'',aperture:'',archive:'',"arrow-down-circle":'',"arrow-down-left":'',"arrow-down-right":'',"arrow-down":'',"arrow-left-circle":'',"arrow-left":'',"arrow-right-circle":'',"arrow-right":'',"arrow-up-circle":'',"arrow-up-left":'',"arrow-up-right":'',"arrow-up":'',"at-sign":'',award:'',"bar-chart-2":'',"bar-chart":'',"battery-charging":'',battery:'',"bell-off":'',bell:'',bluetooth:'',bold:'',"book-open":'',book:'',bookmark:'',box:'',briefcase:'',calendar:'',"camera-off":'',camera:'',cast:'',"check-circle":'',"check-square":'',check:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',"chevrons-down":'',"chevrons-left":'',"chevrons-right":'',"chevrons-up":'',chrome:'',circle:'',clipboard:'',clock:'',"cloud-drizzle":'',"cloud-lightning":'',"cloud-off":'',"cloud-rain":'',"cloud-snow":'',cloud:'',code:'',codepen:'',codesandbox:'',coffee:'',columns:'',command:'',compass:'',copy:'',"corner-down-left":'',"corner-down-right":'',"corner-left-down":'',"corner-left-up":'',"corner-right-down":'',"corner-right-up":'',"corner-up-left":'',"corner-up-right":'',cpu:'',"credit-card":'',crop:'',crosshair:'',database:'',delete:'',disc:'',"divide-circle":'',"divide-square":'',divide:'',"dollar-sign":'',"download-cloud":'',download:'',dribbble:'',droplet:'',"edit-2":'',"edit-3":'',edit:'',"external-link":'',"eye-off":'',eye:'',facebook:'',"fast-forward":'',feather:'',figma:'',"file-minus":'',"file-plus":'',"file-text":'',file:'',film:'',filter:'',flag:'',"folder-minus":'',"folder-plus":'',folder:'',framer:'',frown:'',gift:'',"git-branch":'',"git-commit":'',"git-merge":'',"git-pull-request":'',github:'',gitlab:'',globe:'',grid:'',"hard-drive":'',hash:'',headphones:'',heart:'',"help-circle":'',hexagon:'',home:'',image:'',inbox:'',info:'',instagram:'',italic:'',key:'',layers:'',layout:'',"life-buoy":'',"link-2":'',link:'',linkedin:'',list:'',loader:'',lock:'',"log-in":'',"log-out":'',mail:'',"map-pin":'',map:'',"maximize-2":'',maximize:'',meh:'',menu:'',"message-circle":'',"message-square":'',"mic-off":'',mic:'',"minimize-2":'',minimize:'',"minus-circle":'',"minus-square":'',minus:'',monitor:'',moon:'',"more-horizontal":'',"more-vertical":'',"mouse-pointer":'',move:'',music:'',"navigation-2":'',navigation:'',octagon:'',package:'',paperclip:'',"pause-circle":'',pause:'',"pen-tool":'',percent:'',"phone-call":'',"phone-forwarded":'',"phone-incoming":'',"phone-missed":'',"phone-off":'',"phone-outgoing":'',phone:'',"pie-chart":'',"play-circle":'',play:'',"plus-circle":'',"plus-square":'',plus:'',pocket:'',power:'',printer:'',radio:'',"refresh-ccw":'',"refresh-cw":'',repeat:'',rewind:'',"rotate-ccw":'',"rotate-cw":'',rss:'',save:'',scissors:'',search:'',send:'',server:'',settings:'',"share-2":'',share:'',"shield-off":'',shield:'',"shopping-bag":'',"shopping-cart":'',shuffle:'',sidebar:'',"skip-back":'',"skip-forward":'',slack:'',slash:'',sliders:'',smartphone:'',smile:'',speaker:'',square:'',star:'',"stop-circle":'',sun:'',sunrise:'',sunset:'',table:'',tablet:'',tag:'',target:'',terminal:'',thermometer:'',"thumbs-down":'',"thumbs-up":'',"toggle-left":'',"toggle-right":'',tool:'',"trash-2":'',trash:'',trello:'',"trending-down":'',"trending-up":'',triangle:'',truck:'',tv:'',twitch:'',twitter:'',type:'',umbrella:'',underline:'',unlock:'',"upload-cloud":'',upload:'',"user-check":'',"user-minus":'',"user-plus":'',"user-x":'',user:'',users:'',"video-off":'',video:'',voicemail:'',"volume-1":'',"volume-2":'',"volume-x":'',volume:'',watch:'',"wifi-off":'',wifi:'',wind:'',"x-circle":'',"x-octagon":'',"x-square":'',x:'',youtube:'',"zap-off":'',zap:'',"zoom-in":'',"zoom-out":''}},"./node_modules/classnames/dedupe.js":function(n,r,s){var i,o;/*! + Copyright (c) 2016 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(){var a=function(){function l(){}l.prototype=Object.create(null);function c(w,x){for(var b=x.length,E=0;E1?arguments[1]:void 0,x=w!==void 0,b=0,E=d(g),S,P,D,I;if(x&&(w=i(w,_>2?arguments[2]:void 0,2)),E!=null&&!(y==Array&&l(E)))for(I=E.call(g),P=new y;!(D=I.next()).done;b++)u(P,b,x?a(I,w,[D.value,b],!0):D.value);else for(S=c(g.length),P=new y(S);S>b;b++)u(P,b,x?w(g[b],b):g[b]);return P.length=b,P}},"./node_modules/core-js/internals/array-includes.js":function(n,r,s){var i=s("./node_modules/core-js/internals/to-indexed-object.js"),o=s("./node_modules/core-js/internals/to-length.js"),a=s("./node_modules/core-js/internals/to-absolute-index.js");n.exports=function(l){return function(c,u,d){var f=i(c),p=o(f.length),g=a(d,p),y;if(l&&u!=u){for(;p>g;)if(y=f[g++],y!=y)return!0}else for(;p>g;g++)if((l||g in f)&&f[g]===u)return l||g||0;return!l&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(n,r,s){var i=s("./node_modules/core-js/internals/a-function.js");n.exports=function(o,a,l){if(i(o),a===void 0)return o;switch(l){case 0:return function(){return o.call(a)};case 1:return function(c){return o.call(a,c)};case 2:return function(c,u){return o.call(a,c,u)};case 3:return function(c,u,d){return o.call(a,c,u,d)}}return function(){return o.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(n,r,s){var i=s("./node_modules/core-js/internals/an-object.js");n.exports=function(o,a,l,c){try{return c?a(i(l)[0],l[1]):a(l)}catch(d){var u=o.return;throw u!==void 0&&i(u.call(o)),d}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(n,r,s){var i=s("./node_modules/core-js/internals/well-known-symbol.js"),o=i("iterator"),a=!1;try{var l=0,c={next:function(){return{done:!!l++}},return:function(){a=!0}};c[o]=function(){return this},Array.from(c,function(){throw 2})}catch{}n.exports=function(u,d){if(!d&&!a)return!1;var f=!1;try{var p={};p[o]=function(){return{next:function(){return{done:f=!0}}}},u(p)}catch{}return f}},"./node_modules/core-js/internals/classof-raw.js":function(n,r){var s={}.toString;n.exports=function(i){return s.call(i).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(n,r,s){var i=s("./node_modules/core-js/internals/classof-raw.js"),o=s("./node_modules/core-js/internals/well-known-symbol.js"),a=o("toStringTag"),l=i(function(){return arguments}())=="Arguments",c=function(u,d){try{return u[d]}catch{}};n.exports=function(u){var d,f,p;return u===void 0?"Undefined":u===null?"Null":typeof(f=c(d=Object(u),a))=="string"?f:l?i(d):(p=i(d))=="Object"&&typeof d.callee=="function"?"Arguments":p}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(n,r,s){var i=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/own-keys.js"),a=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),l=s("./node_modules/core-js/internals/object-define-property.js");n.exports=function(c,u){for(var d=o(u),f=l.f,p=a.f,g=0;g",S="java"+b+":",P;for(_.style.display="none",c.appendChild(_),_.src=String(S),P=_.contentWindow.document,P.open(),P.write(x+b+E+"document.F=Object"+x+"/"+b+E),P.close(),y=P.F;w--;)delete y[p][a[w]];return y()};n.exports=Object.create||function(w,x){var b;return w!==null?(g[p]=i(w),b=new g,g[p]=null,b[f]=w):b=y(),x===void 0?b:o(b,x)},l[f]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(n,r,s){var i=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/object-keys.js");n.exports=i?Object.defineProperties:function(u,d){a(u);for(var f=l(d),p=f.length,g=0,y;p>g;)o.f(u,y=f[g++],d[y]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(n,r,s){var i=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/ie8-dom-define.js"),a=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/to-primitive.js"),c=Object.defineProperty;r.f=i?c:function(d,f,p){if(a(d),f=l(f,!0),a(p),o)try{return c(d,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(d[f]=p.value),d}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(n,r,s){var i=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js"),l=s("./node_modules/core-js/internals/to-indexed-object.js"),c=s("./node_modules/core-js/internals/to-primitive.js"),u=s("./node_modules/core-js/internals/has.js"),d=s("./node_modules/core-js/internals/ie8-dom-define.js"),f=Object.getOwnPropertyDescriptor;r.f=i?f:function(g,y){if(g=l(g),y=c(y,!0),d)try{return f(g,y)}catch{}if(u(g,y))return a(!o.f.call(g,y),g[y])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(n,r,s){var i=s("./node_modules/core-js/internals/object-keys-internal.js"),o=s("./node_modules/core-js/internals/enum-bug-keys.js"),a=o.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(c){return i(c,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(n,r){r.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(n,r,s){var i=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/to-object.js"),a=s("./node_modules/core-js/internals/shared-key.js"),l=s("./node_modules/core-js/internals/correct-prototype-getter.js"),c=a("IE_PROTO"),u=Object.prototype;n.exports=l?Object.getPrototypeOf:function(d){return d=o(d),i(d,c)?d[c]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?u:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(n,r,s){var i=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/to-indexed-object.js"),a=s("./node_modules/core-js/internals/array-includes.js"),l=s("./node_modules/core-js/internals/hidden-keys.js"),c=a(!1);n.exports=function(u,d){var f=o(u),p=0,g=[],y;for(y in f)!i(l,y)&&i(f,y)&&g.push(y);for(;d.length>p;)i(f,y=d[p++])&&(~c(g,y)||g.push(y));return g}},"./node_modules/core-js/internals/object-keys.js":function(n,r,s){var i=s("./node_modules/core-js/internals/object-keys-internal.js"),o=s("./node_modules/core-js/internals/enum-bug-keys.js");n.exports=Object.keys||function(l){return i(l,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(n,r,s){var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!i.call({1:2},1);r.f=a?function(c){var u=o(this,c);return!!u&&u.enumerable}:i},"./node_modules/core-js/internals/object-set-prototype-of.js":function(n,r,s){var i=s("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,a={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(a,[]),o=a instanceof Array}catch{}return function(u,d){return i(u,d),o?l.call(u,d):u.__proto__=d,u}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(n,r,s){var i=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/object-get-own-property-names.js"),a=s("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=s("./node_modules/core-js/internals/an-object.js"),c=i.Reflect;n.exports=c&&c.ownKeys||function(d){var f=o.f(l(d)),p=a.f;return p?f.concat(p(d)):f}},"./node_modules/core-js/internals/path.js":function(n,r,s){n.exports=s("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(n,r,s){var i=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/hide.js"),l=s("./node_modules/core-js/internals/has.js"),c=s("./node_modules/core-js/internals/set-global.js"),u=s("./node_modules/core-js/internals/function-to-string.js"),d=s("./node_modules/core-js/internals/internal-state.js"),f=d.get,p=d.enforce,g=String(u).split("toString");o("inspectSource",function(y){return u.call(y)}),(n.exports=function(y,_,w,x){var b=x?!!x.unsafe:!1,E=x?!!x.enumerable:!1,S=x?!!x.noTargetGet:!1;if(typeof w=="function"&&(typeof _=="string"&&!l(w,"name")&&a(w,"name",_),p(w).source=g.join(typeof _=="string"?_:"")),y===i){E?y[_]=w:c(_,w);return}else b?!S&&y[_]&&(E=!0):delete y[_];E?y[_]=w:a(y,_,w)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||u.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(n,r){n.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"./node_modules/core-js/internals/set-global.js":function(n,r,s){var i=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/hide.js");n.exports=function(a,l){try{o(i,a,l)}catch{i[a]=l}return l}},"./node_modules/core-js/internals/set-to-string-tag.js":function(n,r,s){var i=s("./node_modules/core-js/internals/object-define-property.js").f,o=s("./node_modules/core-js/internals/has.js"),a=s("./node_modules/core-js/internals/well-known-symbol.js"),l=a("toStringTag");n.exports=function(c,u,d){c&&!o(c=d?c:c.prototype,l)&&i(c,l,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(n,r,s){var i=s("./node_modules/core-js/internals/shared.js"),o=s("./node_modules/core-js/internals/uid.js"),a=i("keys");n.exports=function(l){return a[l]||(a[l]=o(l))}},"./node_modules/core-js/internals/shared.js":function(n,r,s){var i=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/set-global.js"),a=s("./node_modules/core-js/internals/is-pure.js"),l="__core-js_shared__",c=i[l]||o(l,{});(n.exports=function(u,d){return c[u]||(c[u]=d!==void 0?d:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(n,r,s){var i=s("./node_modules/core-js/internals/to-integer.js"),o=s("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a,l,c){var u=String(o(a)),d=i(l),f=u.length,p,g;return d<0||d>=f?c?"":void 0:(p=u.charCodeAt(d),p<55296||p>56319||d+1===f||(g=u.charCodeAt(d+1))<56320||g>57343?c?u.charAt(d):p:c?u.slice(d,d+2):(p-55296<<10)+(g-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(n,r,s){var i=s("./node_modules/core-js/internals/to-integer.js"),o=Math.max,a=Math.min;n.exports=function(l,c){var u=i(l);return u<0?o(u+c,0):a(u,c)}},"./node_modules/core-js/internals/to-indexed-object.js":function(n,r,s){var i=s("./node_modules/core-js/internals/indexed-object.js"),o=s("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a){return i(o(a))}},"./node_modules/core-js/internals/to-integer.js":function(n,r){var s=Math.ceil,i=Math.floor;n.exports=function(o){return isNaN(o=+o)?0:(o>0?i:s)(o)}},"./node_modules/core-js/internals/to-length.js":function(n,r,s){var i=s("./node_modules/core-js/internals/to-integer.js"),o=Math.min;n.exports=function(a){return a>0?o(i(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(n,r,s){var i=s("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(o){return Object(i(o))}},"./node_modules/core-js/internals/to-primitive.js":function(n,r,s){var i=s("./node_modules/core-js/internals/is-object.js");n.exports=function(o,a){if(!i(o))return o;var l,c;if(a&&typeof(l=o.toString)=="function"&&!i(c=l.call(o))||typeof(l=o.valueOf)=="function"&&!i(c=l.call(o))||!a&&typeof(l=o.toString)=="function"&&!i(c=l.call(o)))return c;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(n,r){var s=0,i=Math.random();n.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++s+i).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(n,r,s){var i=s("./node_modules/core-js/internals/is-object.js"),o=s("./node_modules/core-js/internals/an-object.js");n.exports=function(a,l){if(o(a),!i(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(n,r,s){var i=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/uid.js"),l=s("./node_modules/core-js/internals/native-symbol.js"),c=i.Symbol,u=o("wks");n.exports=function(d){return u[d]||(u[d]=l&&c[d]||(l?c:a)("Symbol."+d))}},"./node_modules/core-js/modules/es.array.from.js":function(n,r,s){var i=s("./node_modules/core-js/internals/export.js"),o=s("./node_modules/core-js/internals/array-from.js"),a=s("./node_modules/core-js/internals/check-correctness-of-iteration.js"),l=!a(function(c){Array.from(c)});i({target:"Array",stat:!0,forced:l},{from:o})},"./node_modules/core-js/modules/es.string.iterator.js":function(n,r,s){var i=s("./node_modules/core-js/internals/string-at.js"),o=s("./node_modules/core-js/internals/internal-state.js"),a=s("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",c=o.set,u=o.getterFor(l);a(String,"String",function(d){c(this,{type:l,string:String(d),index:0})},function(){var f=u(this),p=f.string,g=f.index,y;return g>=p.length?{value:void 0,done:!0}:(y=i(p,g,!0),f.index+=y.length,{value:y,done:!1})})},"./node_modules/webpack/buildin/global.js":function(n,r){var s;s=function(){return this}();try{s=s||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(s=window)}n.exports=s},"./src/default-attrs.json":function(n){n.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(y){for(var _=1;_2&&arguments[2]!==void 0?arguments[2]:[];f(this,y),this.name=_,this.contents=w,this.tags=x,this.attrs=i({},u.default,{class:"feather feather-"+_})}return o(y,[{key:"toSvg",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=i({},this.attrs,w,{class:(0,l.default)(this.attrs.class,w.class)});return""+this.contents+""}},{key:"toString",value:function(){return this.contents}}]),y}();function g(y){return Object.keys(y).map(function(_){return _+'="'+y[_]+'"'}).join(" ")}r.default=p},"./src/icons.js":function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var i=s("./src/icon.js"),o=d(i),a=s("./dist/icons.json"),l=d(a),c=s("./src/tags.json"),u=d(c);function d(f){return f&&f.__esModule?f:{default:f}}r.default=Object.keys(l.default).map(function(f){return new o.default(f,l.default[f],u.default[f])}).reduce(function(f,p){return f[p.name]=p,f},{})},"./src/index.js":function(n,r,s){var i=s("./src/icons.js"),o=d(i),a=s("./src/to-svg.js"),l=d(a),c=s("./src/replace.js"),u=d(c);function d(f){return f&&f.__esModule?f:{default:f}}n.exports={icons:o.default,toSvg:l.default,replace:u.default}},"./src/replace.js":function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(g){for(var y=1;y0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var y=document.querySelectorAll("[data-feather]");Array.from(y).forEach(function(_){return f(_,g)})}function f(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=p(g),w=_["data-feather"];delete _["data-feather"];var x=c.default[w].toSvg(i({},y,_,{class:(0,a.default)(y.class,_.class)})),b=new DOMParser().parseFromString(x,"image/svg+xml"),E=b.querySelector("svg");g.parentNode.replaceChild(E,g)}function p(g){return Array.from(g.attributes).reduce(function(y,_){return y[_.name]=_.value,y},{})}r.default=d},"./src/tags.json":function(n){n.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-bouy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var i=s("./src/icons.js"),o=a(i);function a(c){return c&&c.__esModule?c:{default:c}}function l(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!c)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[c])throw new Error("No icon matching '"+c+"'. See the complete list of icons at https://feathericons.com");return o.default[c].toSvg(u)}r.default=l},0:function(n,r,s){s("./node_modules/core-js/es/array/from.js"),n.exports=s("./src/index.js")}})})})(Qh);const mt=Xh(fi),Zh={class:"container flex flex-col sm:flex-row item-center gap-2 py-1"},ep={class:"items-center justify-between hidden w-full md:flex md:w-auto md:order-1"},tp={class:"flex flex-col font-medium p-4 md:p-0 mt-4 md:flex-row md:space-x-8 md:mt-0"},np=v("a",{href:"#",class:"hover:text-primary duration-150"},"Discussions",-1),rp=v("a",{href:"#",class:"hover:text-primary duration-150"},"Settings",-1),sp=v("a",{href:"#",class:"hover:text-primary duration-150"},"Extensions",-1),ip=v("a",{href:"#",class:"hover:text-primary duration-150"},"Training",-1),op=v("a",{href:"#",class:"hover:text-primary duration-150"},"Help",-1),Zl={__name:"Navigation",setup(e){return(t,n)=>(U(),Y("div",Zh,[v("div",ep,[v("ul",tp,[v("li",null,[ve(We(rn),{to:{name:"discussions"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Ut(()=>[np]),_:1})]),v("li",null,[ve(We(rn),{to:{name:"settings"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Ut(()=>[rp]),_:1})]),v("li",null,[ve(We(rn),{to:{name:"extensions"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Ut(()=>[sp]),_:1})]),v("li",null,[ve(We(rn),{to:{name:"training"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Ut(()=>[ip]),_:1})]),v("li",null,[ve(We(rn),{to:{name:"help"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Ut(()=>[op]),_:1})])])])]))}},ap={class:"top-0 shadow-lg"},lp={class:"container flex flex-col lg:flex-row item-center gap-2 py-2"},cp=v("div",{class:"flex items-center gap-3 flex-1"},[v("img",{class:"w-12 hover:scale-95 duration-150",title:"GPT4ALL-UI",src:Ql,alt:"Logo"}),v("p",{class:"text-2xl"},"GPT4ALL-UI")],-1),up={class:"flex gap-3 flex-1 items-center justify-end"},dp=v("a",{href:"https://github.com/nomic-ai/gpt4all-ui",target:"_blank"},[v("div",{class:"text-2xl hover:text-primary duration-150",title:"Visit repository page"},[v("i",{"data-feather":"github"})])],-1),fp=v("i",{"data-feather":"sun"},null,-1),hp=[fp],pp=v("i",{"data-feather":"moon"},null,-1),gp=[pp],yp=v("body",null,null,-1),mp={name:"TopBar",data(){return{sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches}},mounted(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),Me(()=>{mt.replace()})},created(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches},methods:{themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none");return}this.sunIcon.classList.add("display-none")},themeSwitch(){if(document.documentElement.classList.contains("dark")){document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"),this.iconToggle();return}document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.iconToggle()},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")}},components:{Navigation:Zl}},vp=Object.assign(mp,{setup(e){return(t,n)=>(U(),Y(Ae,null,[v("header",ap,[v("nav",lp,[ve(We(rn),{to:{name:"discussions"}},{default:Ut(()=>[cp]),_:1}),v("div",up,[dp,v("div",{class:"sun text-2xl w-6 hover:text-primary duration-150",title:"Swith to Light theme",onClick:n[0]||(n[0]=r=>t.themeSwitch())},hp),v("div",{class:"moon text-2xl w-6 hover:text-primary duration-150",title:"Swith to Dark theme",onClick:n[1]||(n[1]=r=>t.themeSwitch())},gp)])]),ve(Zl)]),yp],64))}}),kt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},xp={class:"flex flex-col h-screen max-h-screen font-sans bg-bg-light text-slate-950 dark:bg-bg-dark dark:text-slate-50"},bp={class:"flex overflow-hidden flex-grow"},wp={__name:"App",setup(e){return(t,n)=>(U(),Y("div",xp,[ve(vp),v("div",bp,[ve(We(Xl),null,{default:Ut(({Component:r})=>[(U(),cn(Md,null,[(U(),cn(Vd(r)))],1024))]),_:1})])]))}},_p={setup(){return{}}};function Ep(e,t,n,r,s,i){return U(),Y("div",null," Extensions ")}const jp=kt(_p,[["render",Ep]]),kp={setup(){return{}}};function Ap(e,t,n,r,s,i){return U(),Y("div",null," Help ")}const Op=kt(kp,[["render",Ap]]);function ec(e,t){return function(){return e.apply(t,arguments)}}const{toString:Cp}=Object.prototype,{getPrototypeOf:qi}=Object,As=(e=>t=>{const n=Cp.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),It=e=>(e=e.toLowerCase(),t=>As(t)===e),Os=e=>t=>typeof t===e,{isArray:Nn}=Array,dr=Os("undefined");function Tp(e){return e!==null&&!dr(e)&&e.constructor!==null&&!dr(e.constructor)&&Rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tc=It("ArrayBuffer");function Sp(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tc(e.buffer),t}const Mp=Os("string"),Rt=Os("function"),nc=Os("number"),Gi=e=>e!==null&&typeof e=="object",Rp=e=>e===!0||e===!1,Br=e=>{if(As(e)!=="object")return!1;const t=qi(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Lp=It("Date"),Pp=It("File"),Ip=It("Blob"),Bp=It("FileList"),Dp=e=>Gi(e)&&Rt(e.pipe),Np=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Rt(e.append)&&((t=As(e))==="formdata"||t==="object"&&Rt(e.toString)&&e.toString()==="[object FormData]"))},Fp=It("URLSearchParams"),Hp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Nn(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const sc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ic=e=>!dr(e)&&e!==sc;function hi(){const{caseless:e}=ic(this)&&this||{},t={},n=(r,s)=>{const i=e&&rc(t,s)||s;Br(t[i])&&Br(r)?t[i]=hi(t[i],r):Br(r)?t[i]=hi({},r):Nn(r)?t[i]=r.slice():t[i]=r};for(let r=0,s=arguments.length;r(pr(t,(s,i)=>{n&&Rt(s)?e[i]=ec(s,n):e[i]=s},{allOwnKeys:r}),e),$p=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zp=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Up=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&qi(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Kp=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Wp=e=>{if(!e)return null;if(Nn(e))return e;let t=e.length;if(!nc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},qp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&qi(Uint8Array)),Gp=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Yp=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Jp=It("HTMLFormElement"),Xp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),la=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Qp=It("RegExp"),oc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};pr(n,(s,i)=>{t(s,i,e)!==!1&&(r[i]=s)}),Object.defineProperties(e,r)},Zp=e=>{oc(e,(t,n)=>{if(Rt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Rt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},e1=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Nn(e)?r(e):r(String(e).split(t)),n},t1=()=>{},n1=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Us="abcdefghijklmnopqrstuvwxyz",ca="0123456789",ac={DIGIT:ca,ALPHA:Us,ALPHA_DIGIT:Us+Us.toUpperCase()+ca},r1=(e=16,t=ac.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function s1(e){return!!(e&&Rt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const i1=e=>{const t=new Array(10),n=(r,s)=>{if(Gi(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const i=Nn(r)?[]:{};return pr(r,(o,a)=>{const l=n(o,s+1);!dr(l)&&(i[a]=l)}),t[s]=void 0,i}}return r};return n(e,0)},O={isArray:Nn,isArrayBuffer:tc,isBuffer:Tp,isFormData:Np,isArrayBufferView:Sp,isString:Mp,isNumber:nc,isBoolean:Rp,isObject:Gi,isPlainObject:Br,isUndefined:dr,isDate:Lp,isFile:Pp,isBlob:Ip,isRegExp:Qp,isFunction:Rt,isStream:Dp,isURLSearchParams:Fp,isTypedArray:qp,isFileList:Bp,forEach:pr,merge:hi,extend:Vp,trim:Hp,stripBOM:$p,inherits:zp,toFlatObject:Up,kindOf:As,kindOfTest:It,endsWith:Kp,toArray:Wp,forEachEntry:Gp,matchAll:Yp,isHTMLForm:Jp,hasOwnProperty:la,hasOwnProp:la,reduceDescriptors:oc,freezeMethods:Zp,toObjectSet:e1,toCamelCase:Xp,noop:t1,toFiniteNumber:n1,findKey:rc,global:sc,isContextDefined:ic,ALPHABET:ac,generateString:r1,isSpecCompliantForm:s1,toJSONObject:i1};function oe(e,t,n,r,s){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),r&&(this.request=r),s&&(this.response=s)}O.inherits(oe,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:O.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const lc=oe.prototype,cc={};["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=>{cc[e]={value:e}});Object.defineProperties(oe,cc);Object.defineProperty(lc,"isAxiosError",{value:!0});oe.from=(e,t,n,r,s,i)=>{const o=Object.create(lc);return O.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),oe.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const o1=null;function pi(e){return O.isPlainObject(e)||O.isArray(e)}function uc(e){return O.endsWith(e,"[]")?e.slice(0,-2):e}function ua(e,t,n){return e?e.concat(t).map(function(s,i){return s=uc(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function a1(e){return O.isArray(e)&&!e.some(pi)}const l1=O.toFlatObject(O,{},null,function(t){return/^is[A-Z]/.test(t)});function Cs(e,t,n){if(!O.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=O.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,_){return!O.isUndefined(_[y])});const r=n.metaTokens,s=n.visitor||u,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(t);if(!O.isFunction(s))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(O.isDate(g))return g.toISOString();if(!l&&O.isBlob(g))throw new oe("Blob is not supported. Use a Buffer instead.");return O.isArrayBuffer(g)||O.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,y,_){let w=g;if(g&&!_&&typeof g=="object"){if(O.endsWith(y,"{}"))y=r?y:y.slice(0,-2),g=JSON.stringify(g);else if(O.isArray(g)&&a1(g)||(O.isFileList(g)||O.endsWith(y,"[]"))&&(w=O.toArray(g)))return y=uc(y),w.forEach(function(b,E){!(O.isUndefined(b)||b===null)&&t.append(o===!0?ua([y],E,i):o===null?y:y+"[]",c(b))}),!1}return pi(g)?!0:(t.append(ua(_,y,i),c(g)),!1)}const d=[],f=Object.assign(l1,{defaultVisitor:u,convertValue:c,isVisitable:pi});function p(g,y){if(!O.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(g),O.forEach(g,function(w,x){(!(O.isUndefined(w)||w===null)&&s.call(t,w,O.isString(x)?x.trim():x,y,f))===!0&&p(w,y?y.concat(x):[x])}),d.pop()}}if(!O.isObject(e))throw new TypeError("data must be an object");return p(e),t}function da(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Yi(e,t){this._pairs=[],e&&Cs(e,this,t)}const dc=Yi.prototype;dc.append=function(t,n){this._pairs.push([t,n])};dc.toString=function(t){const n=t?function(r){return t.call(this,r,da)}:da;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function c1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fc(e,t,n){if(!t)return e;const r=n&&n.encode||c1,s=n&&n.serialize;let i;if(s?i=s(t,n):i=O.isURLSearchParams(t)?t.toString():new Yi(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class u1{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){O.forEach(this.handlers,function(r){r!==null&&t(r)})}}const fa=u1,hc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},d1=typeof URLSearchParams<"u"?URLSearchParams:Yi,f1=typeof FormData<"u"?FormData:null,h1=typeof Blob<"u"?Blob:null,p1=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),g1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),vt={isBrowser:!0,classes:{URLSearchParams:d1,FormData:f1,Blob:h1},isStandardBrowserEnv:p1,isStandardBrowserWebWorkerEnv:g1,protocols:["http","https","file","blob","url","data"]};function y1(e,t){return Cs(e,new vt.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return vt.isNode&&O.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function m1(e){return O.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function v1(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r=n.length;return o=!o&&O.isArray(s)?s.length:o,l?(O.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!O.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&O.isArray(s[o])&&(s[o]=v1(s[o])),!a)}if(O.isFormData(e)&&O.isFunction(e.entries)){const n={};return O.forEachEntry(e,(r,s)=>{t(m1(r),s,n,0)}),n}return null}const x1={"Content-Type":void 0};function b1(e,t,n){if(O.isString(e))try{return(t||JSON.parse)(e),O.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ts={transitional:hc,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=O.isObject(t);if(i&&O.isHTMLForm(t)&&(t=new FormData(t)),O.isFormData(t))return s&&s?JSON.stringify(pc(t)):t;if(O.isArrayBuffer(t)||O.isBuffer(t)||O.isStream(t)||O.isFile(t)||O.isBlob(t))return t;if(O.isArrayBufferView(t))return t.buffer;if(O.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return y1(t,this.formSerializer).toString();if((a=O.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Cs(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),b1(t)):t}],transformResponse:[function(t){const n=this.transitional||Ts.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&O.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?oe.from(a,oe.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:vt.classes.FormData,Blob:vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};O.forEach(["delete","get","head"],function(t){Ts.headers[t]={}});O.forEach(["post","put","patch"],function(t){Ts.headers[t]=O.merge(x1)});const Ji=Ts,w1=O.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"]),_1=e=>{const t={};let n,r,s;return e&&e.split(` +`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&w1[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ha=Symbol("internals");function $n(e){return e&&String(e).trim().toLowerCase()}function Dr(e){return e===!1||e==null?e:O.isArray(e)?e.map(Dr):String(e)}function E1(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const j1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ks(e,t,n,r,s){if(O.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!O.isString(t)){if(O.isString(r))return t.indexOf(r)!==-1;if(O.isRegExp(r))return r.test(t)}}function k1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function A1(e,t){const n=O.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}class Ss{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,l,c){const u=$n(l);if(!u)throw new Error("header name must be a non-empty string");const d=O.findKey(s,u);(!d||s[d]===void 0||c===!0||c===void 0&&s[d]!==!1)&&(s[d||l]=Dr(a))}const o=(a,l)=>O.forEach(a,(c,u)=>i(c,u,l));return O.isPlainObject(t)||t instanceof this.constructor?o(t,n):O.isString(t)&&(t=t.trim())&&!j1(t)?o(_1(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=$n(t),t){const r=O.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return E1(s);if(O.isFunction(n))return n.call(this,s,r);if(O.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=$n(t),t){const r=O.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ks(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=$n(o),o){const a=O.findKey(r,o);a&&(!n||Ks(r,r[a],a,n))&&(delete r[a],s=!0)}}return O.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Ks(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return O.forEach(this,(s,i)=>{const o=O.findKey(r,i);if(o){n[o]=Dr(s),delete n[i];return}const a=t?k1(i):String(i).trim();a!==i&&delete n[i],n[a]=Dr(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return O.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&O.isArray(r)?r.join(", "):r)}),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 r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ha]=this[ha]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=$n(o);r[a]||(A1(s,o),r[a]=!0)}return O.isArray(t)?t.forEach(i):i(t),this}}Ss.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.freezeMethods(Ss.prototype);O.freezeMethods(Ss);const Tt=Ss;function Ws(e,t){const n=this||Ji,r=t||n,s=Tt.from(r.headers);let i=r.data;return O.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function gc(e){return!!(e&&e.__CANCEL__)}function gr(e,t,n){oe.call(this,e??"canceled",oe.ERR_CANCELED,t,n),this.name="CanceledError"}O.inherits(gr,oe,{__CANCEL__:!0});function O1(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new oe("Request failed with status code "+n.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const C1=vt.isStandardBrowserEnv?function(){return{write:function(n,r,s,i,o,a){const l=[];l.push(n+"="+encodeURIComponent(r)),O.isNumber(s)&&l.push("expires="+new Date(s).toGMTString()),O.isString(i)&&l.push("path="+i),O.isString(o)&&l.push("domain="+o),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function T1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function S1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function yc(e,t){return e&&!T1(t)?S1(e,t):t}const M1=vt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{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 r=s(window.location.href),function(o){const a=O.isString(o)?s(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function R1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function L1(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];o||(o=c),n[s]=l,r[s]=c;let d=i,f=0;for(;d!==s;)f+=n[d++],d=d%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o{const i=s.loaded,o=s.lengthComputable?s.total:void 0,a=i-n,l=r(a),c=i<=o;n=i;const u={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&c?(o-i)/l:void 0,event:s};u[t?"download":"upload"]=!0,e(u)}}const P1=typeof XMLHttpRequest<"u",I1=P1&&function(e){return new Promise(function(n,r){let s=e.data;const i=Tt.from(e.headers).normalize(),o=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}O.isFormData(s)&&(vt.isStandardBrowserEnv||vt.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+g))}const u=yc(e.baseURL,e.url);c.open(e.method.toUpperCase(),fc(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function d(){if(!c)return;const p=Tt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),y={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:p,config:e,request:c};O1(function(w){n(w),l()},function(w){r(w),l()},y),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(r(new oe("Request aborted",oe.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new oe("Network Error",oe.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||hc;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),r(new oe(g,y.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,e,c)),c=null},vt.isStandardBrowserEnv){const p=(e.withCredentials||M1(u))&&e.xsrfCookieName&&C1.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}s===void 0&&i.setContentType(null),"setRequestHeader"in c&&O.forEach(i.toJSON(),function(g,y){c.setRequestHeader(y,g)}),O.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&o!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",pa(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",pa(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{c&&(r(!p||p.type?new gr(null,e,c):p),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=R1(u);if(f&&vt.protocols.indexOf(f)===-1){r(new oe("Unsupported protocol "+f+":",oe.ERR_BAD_REQUEST,e));return}c.send(s||null)})},Nr={http:o1,xhr:I1};O.forEach(Nr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const B1={getAdapter:e=>{e=O.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let s=0;se instanceof Tt?e.toJSON():e;function Tn(e,t){t=t||{};const n={};function r(c,u,d){return O.isPlainObject(c)&&O.isPlainObject(u)?O.merge.call({caseless:d},c,u):O.isPlainObject(u)?O.merge({},u):O.isArray(u)?u.slice():u}function s(c,u,d){if(O.isUndefined(u)){if(!O.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function i(c,u){if(!O.isUndefined(u))return r(void 0,u)}function o(c,u){if(O.isUndefined(u)){if(!O.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,u)=>s(ya(c),ya(u),!0)};return O.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const d=l[u]||s,f=d(e[u],t[u],u);O.isUndefined(f)&&d!==a||(n[u]=f)}),n}const mc="1.3.6",Xi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xi[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ma={};Xi.transitional=function(t,n,r){function s(i,o){return"[Axios v"+mc+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(t===!1)throw new oe(s(o," has been removed"+(n?" in "+n:"")),oe.ERR_DEPRECATED);return n&&!ma[o]&&(ma[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};function D1(e,t,n){if(typeof e!="object")throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const a=e[i],l=a===void 0||o(a,i,e);if(l!==!0)throw new oe("option "+i+" must be "+l,oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new oe("Unknown option "+i,oe.ERR_BAD_OPTION)}}const gi={assertOptions:D1,validators:Xi},Nt=gi.validators;class Zr{constructor(t){this.defaults=t,this.interceptors={request:new fa,response:new fa}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Tn(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&gi.assertOptions(r,{silentJSONParsing:Nt.transitional(Nt.boolean),forcedJSONParsing:Nt.transitional(Nt.boolean),clarifyTimeoutError:Nt.transitional(Nt.boolean)},!1),s!=null&&(O.isFunction(s)?n.paramsSerializer={serialize:s}:gi.assertOptions(s,{encode:Nt.function,serialize:Nt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=i&&O.merge(i.common,i[n.method]),o&&O.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=Tt.concat(o,i);const a=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let u,d=0,f;if(!l){const g=[ga.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,c),f=g.length,u=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,a){r.reason||(r.reason=new gr(i,o,a),n(r.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 Qi(function(s){t=s}),cancel:t}}}const N1=Qi;function F1(e){return function(n){return e.apply(null,n)}}function H1(e){return O.isObject(e)&&e.isAxiosError===!0}const yi={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(yi).forEach(([e,t])=>{yi[t]=e});const V1=yi;function vc(e){const t=new Fr(e),n=ec(Fr.prototype.request,t);return O.extend(n,Fr.prototype,t,{allOwnKeys:!0}),O.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return vc(Tn(e,s))},n}const Ce=vc(Ji);Ce.Axios=Fr;Ce.CanceledError=gr;Ce.CancelToken=N1;Ce.isCancel=gc;Ce.VERSION=mc;Ce.toFormData=Cs;Ce.AxiosError=oe;Ce.Cancel=Ce.CanceledError;Ce.all=function(t){return Promise.all(t)};Ce.spread=F1;Ce.isAxiosError=H1;Ce.mergeConfig=Tn;Ce.AxiosHeaders=Tt;Ce.formToJSON=e=>pc(O.isHTMLForm(e)?new FormData(e):e);Ce.HttpStatusCode=V1;Ce.default=Ce;const Qe=Ce,$1={data(){return{show:!1,message:""}},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(e){this.message=e,this.show=!0}}},z1={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},U1={class:"bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},K1={class:"text-lg font-medium"},W1={class:"mt-4 flex justify-end"};function q1(e,t,n,r,s,i){return s.show?(U(),Y("div",z1,[v("div",U1,[v("h3",K1,lt(s.message),1),v("div",W1,[v("button",{onClick:t[0]||(t[0]=(...o)=>i.hide&&i.hide(...o)),class:"bg-secondary text-white px-4 py-2 rounded-lg shadow-lg hover:bg-secondary-dark"}," OK ")])])])):be("",!0)}const G1=kt($1,[["render",q1]]);const Y1={components:{MessageBox:G1},setup(){return{}},data(){return{bec_collapsed:!0,pc_collapsed:!0,mc_collapsed:!0,backendsArr:[],modelsArr:[],persLangArr:[],persCatgArr:[],persArr:[],langArr:[],configFile:{}}},methods:{onMessageBoxOk(){console.log("OK button clicked")},refresh(){this.api_get_req("list_backends").then(e=>{this.backendsArr=e}),this.api_get_req("list_models").then(e=>{this.modelsArr=e}),this.api_get_req("list_personalities_languages").then(e=>{this.persLangArr=e}),this.api_get_req("list_personalities_categories").then(e=>{this.persCatgArr=e}),this.api_get_req("list_personalities").then(e=>{this.persArr=e}),this.api_get_req("list_languages").then(e=>{this.langArr=e}),this.api_get_req("get_config").then(e=>{this.configFile=e})},toggleAccordion(){this.showAccordion=!this.showAccordion},update_setting(e,t,n=void 0){Qe.post("/update_setting",{setting_name:e,setting_value:t}).then(r=>{if(r)return n!==void 0&&n(),r.data}).catch(r=>({status:!1}))},save_configuration(){Qe.post("/save_settings",{}).then(e=>{if(e)return e.status?this.$refs.messageBox.showMessage("Settings saved"):this.$refs.messageBox.showMessage("Couldn't save settings!"),e.data}).catch(e=>(console.log(e),this.$refs.messageBox.showMessage("Couldn't save settings!"),{status:!1}))},reset_configuration(){this.$refs.yesNoDialog.askQuestion("Are you sure?
This will delete all your configurations and get back to default configuration.").then(e=>{e&&Qe.post("/reset_settings",{}).then(t=>{if(t)return t.status?this.$refs.messageBox.showMessage("Settings have been reset correctly"):this.$refs.messageBox.showMessage("Couldn't reset settings!"),t.data}).catch(t=>(console.log(t),this.$refs.messageBox.showMessage("Couldn't reset settings!"),{status:!1}))})},update_backend(e){res=update_setting("backend",e),res.status&&console.log("Backend changed")},async api_get_req(e){try{const t=await Qe.get("/"+e);if(t)return t.data}catch(t){return console.log(t),[]}}},async mounted(){this.backendsArr=await this.api_get_req("list_backends"),this.modelsArr=await this.api_get_req("list_models"),this.persLangArr=await this.api_get_req("list_personalities_languages"),this.persCatgArr=await this.api_get_req("list_personalities_categories"),this.persArr=await this.api_get_req("list_personalities"),this.langArr=await this.api_get_req("list_languages"),this.configFile=await this.api_get_req("get_config")}},J1={class:"overflow-y-scroll flex flex-col no-scrollbar shadow-lg w-full bg-bg-light-tone dark:bg-bg-dark-tone"},X1={class:"flex flex-row justify-start"},Q1={class:"overflow-y-scroll flex-col no-scrollbar shadow-lg bg-bg-light-tone dark:bg-bg-dark-tone"},Z1=v("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[v("path",{d:"M5 3H19C20.1046 3 21 3.89543 21 5V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19V5C3 3.89543 3.89543 3 5 3Z"}),v("path",{d:"M17 8L12 13L7 8"})],-1),e2=[Z1],t2={class:"overflow-y-scroll flex-col no-scrollbar shadow-lg bg-bg-light-tone dark:bg-bg-dark-tone"},n2=v("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1),r2=[n2],s2={class:"flex flex-row"},i2=v("path",{d:"M9 19l7-7-7-7","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},null,-1),o2=[i2],a2=v("h3",{class:"text-lg font-semibold"},"Backend Configuration",-1),l2={class:"m-2"},c2=v("label",{for:"backend",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"}," Backend: ",-1),u2={class:"m-2"},d2=v("label",{for:"model",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"}," Model: ",-1),f2={id:"model",class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},h2={class:"flex flex-row"},p2=v("path",{d:"M9 19l7-7-7-7","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},null,-1),g2=[p2],y2=v("h3",{class:"text-lg font-semibold"},"Personality Configuration",-1),m2={class:"m-2"},v2=v("label",{for:"persLang",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"}," Personalities Languages: ",-1),x2={class:"m-2"},b2=v("label",{for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"}," Personalities Category: ",-1),w2={class:"m-2"},_2=v("label",{for:"persona",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"}," Personality: ",-1),E2={class:"flex flex-row"},j2=v("path",{d:"M9 19l7-7-7-7","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},null,-1),k2=[j2],A2=v("h3",{class:"text-lg font-semibold"},"Model Configuration",-1),O2={class:"m-2"},C2=v("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1),T2={class:"m-2"},S2={class:"flex flex-col align-bottom"},M2={class:"relative"},R2=v("p",{class:"absolute left-0 mt-6"},[v("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1),L2={class:"absolute right-0"},P2={class:"m-2"},I2={class:"flex flex-col align-bottom"},B2={class:"relative"},D2=v("p",{class:"absolute left-0 mt-6"},[v("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1),N2={class:"absolute right-0"},F2={class:"m-2"},H2={class:"flex flex-col align-bottom"},V2={class:"relative"},$2=v("p",{class:"absolute left-0 mt-6"},[v("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1),z2={class:"absolute right-0"},U2={class:"m-2"},K2={class:"flex flex-col align-bottom"},W2={class:"relative"},q2=v("p",{class:"absolute left-0 mt-6"},[v("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1),G2={class:"absolute right-0"},Y2={class:"m-2"},J2={class:"flex flex-col align-bottom"},X2={class:"relative"},Q2=v("p",{class:"absolute left-0 mt-6"},[v("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1),Z2={class:"absolute right-0"},eg={class:"m-2"},tg={class:"flex flex-col align-bottom"},ng={class:"relative"},rg=v("p",{class:"absolute left-0 mt-6"},[v("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1),sg={class:"absolute right-0"};function ig(e,t,n,r,s,i){const o=Ao("YesNoDialog"),a=Ao("MessageBox");return U(),Y(Ae,null,[v("div",J1,[v("div",X1,[v("div",Q1,[v("button",{title:"Save configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90 mr-2",onClick:t[0]||(t[0]=l=>i.save_configuration())},e2)]),v("div",t2,[v("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90 mr-2",onClick:t[1]||(t[1]=l=>i.reset_configuration())},r2)])]),v("div",s2,[v("button",{onClick:t[2]||(t[2]=l=>s.bec_collapsed=!s.bec_collapsed)},[(U(),Y("svg",{class:Ie(["h-6 w-6 hover:text-secondary duration-75 active:scale-90",{"rotate-90":!s.bec_collapsed}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},o2,2))]),a2]),v("div",{class:Ie({hidden:s.bec_collapsed})},[v("div",l2,[c2,v("select",{id:"backend",onChange:t[3]||(t[3]=l=>i.update_backend(l.target.value)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(U(!0),Y(Ae,null,en(s.backendsArr,l=>(U(),Y("option",null,lt(l),1))),256))],32)]),v("div",u2,[d2,v("select",f2,[(U(!0),Y(Ae,null,en(s.modelsArr,l=>(U(),Y("option",null,lt(l),1))),256))])])],2),v("div",h2,[v("button",{onClick:t[4]||(t[4]=l=>s.pc_collapsed=!s.pc_collapsed)},[(U(),Y("svg",{class:Ie(["h-6 w-6 hover:text-secondary duration-75 active:scale-90",{"rotate-90":!s.pc_collapsed}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},g2,2))]),y2]),v("div",{class:Ie({hidden:s.pc_collapsed})},[v("div",m2,[v2,v("select",{id:"persLang",onChange:t[5]||(t[5]=l=>i.update_setting("personality_language",l.target.value,i.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(U(!0),Y(Ae,null,en(s.persLangArr,l=>(U(),Y("option",null,lt(l),1))),256))],32)]),v("div",x2,[b2,v("select",{id:"persCat",onChange:t[6]||(t[6]=l=>i.update_setting("personality_category",l.target.value,i.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(U(!0),Y(Ae,null,en(s.persCatgArr,l=>(U(),Y("option",null,lt(l),1))),256))],32)]),v("div",w2,[_2,v("select",{id:"persona",onChange:t[7]||(t[7]=l=>i.update_setting("personality",l.target.value,i.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(U(!0),Y(Ae,null,en(s.persArr,l=>(U(),Y("option",null,lt(l),1))),256))],32)])],2),v("div",E2,[v("button",{onClick:t[8]||(t[8]=l=>s.mc_collapsed=!s.mc_collapsed)},[(U(),Y("svg",{class:Ie(["h-6 w-6 hover:text-secondary duration-75 active:scale-90",{"rotate-90":!s.mc_collapsed}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},k2,2))]),A2]),v("div",{class:Ie({hidden:s.mc_collapsed})},[v("div",O2,[C2,Pe(v("input",{type:"text",id:"seed","onUpdate:modelValue":t[9]||(t[9]=l=>s.configFile.seed=l),class:"bg-gray-50 border border-gray-300 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ve,s.configFile.seed]])]),v("div",T2,[v("div",S2,[v("div",M2,[R2,v("p",L2,[Pe(v("input",{type:"text",id:"temp-val","onUpdate:modelValue":t[10]||(t[10]=l=>s.configFile.temp=l),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ve,s.configFile.temp]])])]),Pe(v("input",{id:"temperature",onChange:t[11]||(t[11]=l=>i.update_setting("temperature",l.target.value)),type:"range","onUpdate:modelValue":t[12]||(t[12]=l=>s.configFile.temp=l),min:"0",max:"5",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ve,s.configFile.temp]])])]),v("div",P2,[v("div",I2,[v("div",B2,[D2,v("p",N2,[Pe(v("input",{type:"text",id:"predict-val","onUpdate:modelValue":t[13]||(t[13]=l=>s.configFile.n_predict=l),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ve,s.configFile.n_predict]])])]),Pe(v("input",{id:"predict",onChange:t[14]||(t[14]=l=>i.update_setting("n_predict",l.target.value)),type:"range","onUpdate:modelValue":t[15]||(t[15]=l=>s.configFile.n_predict=l),min:"0",max:"2048",step:"32",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ve,s.configFile.n_predict]])])]),v("div",F2,[v("div",H2,[v("div",V2,[$2,v("p",z2,[Pe(v("input",{type:"text",id:"top_k-val","onUpdate:modelValue":t[16]||(t[16]=l=>s.configFile.top_k=l),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ve,s.configFile.top_k]])])]),Pe(v("input",{id:"top_k",onChange:t[17]||(t[17]=l=>i.update_setting("top_k",l.target.value)),type:"range","onUpdate:modelValue":t[18]||(t[18]=l=>s.configFile.top_k=l),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ve,s.configFile.top_k]])])]),v("div",U2,[v("div",K2,[v("div",W2,[q2,v("p",G2,[Pe(v("input",{type:"text",id:"top_p-val","onUpdate:modelValue":t[19]||(t[19]=l=>s.configFile.top_p=l),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ve,s.configFile.top_p]])])]),Pe(v("input",{id:"top_p",onChange:t[20]||(t[20]=l=>i.update_setting("top_p",l.target.value)),type:"range","onUpdate:modelValue":t[21]||(t[21]=l=>s.configFile.top_p=l),min:"0",max:"1",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ve,s.configFile.top_p]])])]),v("div",Y2,[v("div",J2,[v("div",X2,[Q2,v("p",Z2,[Pe(v("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":t[22]||(t[22]=l=>s.configFile.repeat_penalty=l),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ve,s.configFile.repeat_penalty]])])]),Pe(v("input",{id:"repeat_penalty",onChange:t[23]||(t[23]=l=>i.update_setting("repeat_penalty",l.target.value)),type:"range","onUpdate:modelValue":t[24]||(t[24]=l=>s.configFile.repeat_penalty=l),min:"0",max:"2",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ve,s.configFile.repeat_penalty]])])]),v("div",eg,[v("div",tg,[v("div",ng,[rg,v("p",sg,[Pe(v("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":t[25]||(t[25]=l=>s.configFile.repeat_last_n=l),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ve,s.configFile.repeat_last_n]])])]),Pe(v("input",{id:"repeat_last_n",onChange:t[26]||(t[26]=l=>i.update_setting("repeat_last_n",l.target.value)),type:"range","onUpdate:modelValue":t[27]||(t[27]=l=>s.configFile.repeat_last_n=l),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ve,s.configFile.repeat_last_n]])])])],2)]),ve(o,{ref:"yesNoDialog"},null,512),ve(a,{ref:"messageBox"},null,512)],64)}const og=kt(Y1,[["render",ig]]),ag={setup(){return{}}};function lg(e,t,n,r,s,i){return U(),Y("div",null," Training ")}const cg=kt(ag,[["render",lg]]),ug={name:"Discussion",emits:["delete","select","editTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},chnageTitle(e){this.newTitle=e},checkedChangeEvent(e,t){this.$emit("checked",e,t)}},mounted(){this.newTitle=this.title,Me(()=>{mt.replace()})},watch:{showConfirmation(){Me(()=>{mt.replace()})},editTitleMode(e){this.showConfirmation=e,this.editTitle=e},checkBoxValue(e,t){this.checkBoxValue_local=e}}},dg=["id"],fg={class:"flex flex-row items-center gap-2"},hg={key:0},pg=["title"],gg=["value"],yg={class:"flex items-center flex-1 max-h-6"},mg={key:0,class:"flex gap-3 flex-1 items-center justify-end duration-75"},vg=v("i",{"data-feather":"check"},null,-1),xg=[vg],bg=v("i",{"data-feather":"x"},null,-1),wg=[bg],_g={key:1,class:"flex gap-3 flex-1 items-center justify-end duration-75"},Eg=v("i",{"data-feather":"x"},null,-1),jg=[Eg],kg=v("i",{"data-feather":"check"},null,-1),Ag=[kg],Og={key:2,class:"flex gap-3 flex-1 items-center justify-end invisible group-hover:visible duration-75"},Cg=v("i",{"data-feather":"edit-2"},null,-1),Tg=[Cg],Sg=v("i",{"data-feather":"trash"},null,-1),Mg=[Sg];function Rg(e,t,n,r,s,i){return U(),Y("div",{class:Ie([n.selected?"bg-bg-light-discussion dark:bg-bg-dark-discussion shadow-md":"","container flex sm:flex-row item-center shadow-sm gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"]),id:"dis-"+n.id,onClick:t[13]||(t[13]=Se(o=>i.selectEvent(),["stop"]))},[v("div",fg,[n.isCheckbox?(U(),Y("div",hg,[Pe(v("input",{type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:t[0]||(t[0]=Se(()=>{},["stop"])),"onUpdate:modelValue":t[1]||(t[1]=o=>s.checkBoxValue_local=o),onInput:t[2]||(t[2]=o=>i.checkedChangeEvent(o,n.id))},null,544),[[Hf,s.checkBoxValue_local]])])):be("",!0),n.selected?(U(),Y("div",{key:1,class:Ie(["min-h-full w-2 rounded-xl self-stretch",n.loading?"animate-bounce bg-accent ":" bg-secondary "])},null,2)):be("",!0),n.selected?be("",!0):(U(),Y("div",{key:2,class:Ie(["w-2",n.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent ":" "])},null,2))]),s.editTitle?be("",!0):(U(),Y("p",{key:0,title:n.title,class:"truncate w-full"},lt(n.title?n.title==="untitled"?"New discussion":n.title:"New discussion"),9,pg)),s.editTitle?(U(),Y("input",{key:1,type:"text",id:"title-box",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:n.title,required:"",onKeydown:[t[3]||(t[3]=li(Se(o=>i.editTitleEvent(),["exact"]),["enter"])),t[4]||(t[4]=li(Se(o=>s.editTitleMode=!1,["exact"]),["esc"]))],onInput:t[5]||(t[5]=o=>i.chnageTitle(o.target.value)),onClick:t[6]||(t[6]=Se(()=>{},["stop"]))},null,40,gg)):be("",!0),v("div",yg,[s.showConfirmation&&!s.editTitleMode?(U(),Y("div",mg,[v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:t[7]||(t[7]=Se(o=>i.deleteEvent(),["stop"]))},xg),v("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:t[8]||(t[8]=Se(o=>s.showConfirmation=!1,["stop"]))},wg)])):be("",!0),s.showConfirmation&&s.editTitleMode?(U(),Y("div",_g,[v("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:t[9]||(t[9]=Se(o=>s.editTitleMode=!1,["stop"]))},jg),v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:t[10]||(t[10]=Se(o=>i.editTitleEvent(),["stop"]))},Ag)])):be("",!0),s.showConfirmation?be("",!0):(U(),Y("div",Og,[v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:t[11]||(t[11]=Se(o=>s.editTitleMode=!0,["stop"]))},Tg),v("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:t[12]||(t[12]=Se(o=>s.showConfirmation=!0,["stop"]))},Mg)]))])],10,dg)}const xc=kt(ug,[["render",Rg]]),Lg={name:"Message",props:{message:Object},data(){return{senderImg:""}},mounted(){Me(()=>{mt.replace()})}},Pg={class:"group rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex-row p-4 pb-2"},Ig={class:"w-30 flex"},Bg={class:"w-10 h-10 rounded-lg object-fill drop-shadow-md group-even:bg-primary bg-secondary"},Dg=["src"],Ng={class:"drop-shadow-sm py-0 px-2 text-lg text-opacity-95 font-bold"},Fg={class:"-mt-4 ml-10 mr-0 pt-1 px-2 max-w-screen-2xl"},Hg={class:"invisible group-hover:visible flex flex-row mt-3 -mb-2"},Vg=Pl('
',5),$g={class:"flex flex-row items-center"},zg=v("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2",title:"Downvote"},[v("i",{"data-feather":"thumbs-down"})],-1);function Ug(e,t,n,r,s,i){return U(),Y("div",Pg,[v("div",Ig,[v("div",Bg,[s.senderImg?(U(),Y("img",{key:0,src:s.senderImg,class:"w-10 h-10 rounded-full object-fill"},null,8,Dg)):be("",!0)]),v("p",Ng,lt(n.message.sender),1)]),v("div",Fg,lt(n.message.content),1),v("div",Hg,[Vg,v("div",$g,[zg,n.message.rank!=0?(U(),Y("div",{key:0,class:Ie(["rounded-full px-2 text-sm flex items-center justify-center font-bold",n.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},lt(n.message.rank),3)):be("",!0)])])])}const bc=kt(Lg,[["render",Ug]]),Kg={name:"ChatBox",emits:["messageSentEvent","stopGenerating"],props:{loading:!1},setup(){return{}},data(){return{message:""}},methods:{sendMessageEvent(e){this.$emit("messageSentEvent",e)},submitOnEnter(e){e.which===13&&(e.preventDefault(),e.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},stopGenerating(){this.$emit("stopGenerating")}},watch:{loading(e,t){Me(()=>{mt.replace()})}},mounted(){Me(()=>{mt.replace()})},activated(){}},Wg={class:"flex-none sticky bottom-0 p-0 items-center justify-center px-32 self-center w-full"},qg={key:0,class:"flex items-center justify-center w-full"},Gg={class:"flex flex-row p-2 rounded-t-lg"},Yg=v("label",{for:"chat",class:"sr-only"},"Send message",-1),Jg={class:"flex items-center gap-2 px-3 py-3 rounded-t-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},Xg={class:"inline-flex justify-center rounded-full"},Qg=v("i",{"data-feather":"send"},null,-1),Zg=v("span",{class:"sr-only"},"Send message",-1),e0=[Qg,Zg],t0={key:1,title:"Waiting for reply"},n0=v("div",{role:"status"},[v("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),v("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),v("span",{class:"sr-only"},"Loading...")],-1),r0=[n0];function s0(e,t,n,r,s,i){return U(),Y("div",Wg,[n.loading?(U(),Y("div",qg,[v("div",Gg,[v("button",{type:"button",class:"bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel hover:bg-bg-light-tone focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:hover:bg-bg-dark-tone focus:outline-none dark:focus:ring-blue-800",onClick:t[0]||(t[0]=Se((...o)=>i.stopGenerating&&i.stopGenerating(...o),["stop"]))}," Stop generating ")])])):be("",!0),v("form",null,[Yg,v("div",Jg,[Pe(v("textarea",{id:"chat",rows:"1","onUpdate:modelValue":t[1]||(t[1]=o=>s.message=o),class:"block min-h-11 no-scrollbar p-2.5 w-full text-sm text-gray-900 bg-bg-light rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Send message...",onKeydown:t[2]||(t[2]=li(Se(o=>i.submitOnEnter(o),["exact"]),["enter"]))},null,544),[[Ve,s.message]]),v("div",Xg,[n.loading?be("",!0):(U(),Y("button",{key:0,type:"button",onClick:t[3]||(t[3]=(...o)=>i.submit&&i.submit(...o)),class:"w-6 hover:text-secondary duration-75 active:scale-90"},e0)),n.loading?(U(),Y("div",t0,r0)):be("",!0)])])])])}const wc=kt(Kg,[["render",s0]]),i0={name:"WelcomeComponent",setup(){return{}}},o0={class:"flex flex-col text-center"},a0=Pl('
Logo

GPT4ALL-UI


Welcome, please create a new discussion or select existing one to start

',1),l0=[a0];function c0(e,t,n,r,s,i){return U(),Y("div",o0,l0)}const _c=kt(i0,[["render",c0]]),Et=Object.create(null);Et.open="0";Et.close="1";Et.ping="2";Et.pong="3";Et.message="4";Et.upgrade="5";Et.noop="6";const Hr=Object.create(null);Object.keys(Et).forEach(e=>{Hr[Et[e]]=e});const u0={type:"error",data:"parser error"},d0=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",f0=typeof ArrayBuffer=="function",h0=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Ec=({type:e,data:t},n,r)=>d0&&t instanceof Blob?n?r(t):va(t,r):f0&&(t instanceof ArrayBuffer||h0(t))?n?r(t):va(new Blob([t]),r):r(Et[e]+(t||"")),va=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)},xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,s=0,i,o,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),u=new Uint8Array(c);for(r=0;r>4,u[s++]=(o&15)<<4|a>>2,u[s++]=(a&3)<<6|l&63;return c},g0=typeof ArrayBuffer=="function",jc=(e,t)=>{if(typeof e!="string")return{type:"message",data:kc(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:y0(e.substring(1),t)}:Hr[n]?e.length>1?{type:Hr[n],data:e.substring(1)}:{type:Hr[n]}:u0},y0=(e,t)=>{if(g0){const n=p0(e);return kc(n,t)}else return{base64:!0,data:e}},kc=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},Ac=String.fromCharCode(30),m0=(e,t)=>{const n=e.length,r=new Array(n);let s=0;e.forEach((i,o)=>{Ec(i,!1,a=>{r[o]=a,++s===n&&t(r.join(Ac))})})},v0=(e,t)=>{const n=e.split(Ac),r=[];for(let s=0;stypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function Cc(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const b0=Ze.setTimeout,w0=Ze.clearTimeout;function Ms(e,t){t.useNativeTimers?(e.setTimeoutFn=b0.bind(Ze),e.clearTimeoutFn=w0.bind(Ze)):(e.setTimeoutFn=Ze.setTimeout.bind(Ze),e.clearTimeoutFn=Ze.clearTimeout.bind(Ze))}const _0=1.33;function E0(e){return typeof e=="string"?j0(e):Math.ceil((e.byteLength||e.size)*_0)}function j0(e){let t=0,n=0;for(let r=0,s=e.length;r=57344?n+=3:(r++,n+=4);return n}class k0 extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Tc extends Oe{constructor(t){super(),this.writable=!1,Ms(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new k0(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=jc(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}}const Sc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),mi=64,A0={};let ba=0,jr=0,wa;function _a(e){let t="";do t=Sc[e%mi]+t,e=Math.floor(e/mi);while(e>0);return t}function Mc(){const e=_a(+new Date);return e!==wa?(ba=0,wa=e):e+"."+_a(ba++)}for(;jr{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};v0(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,m0(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Mc()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const s=Rc(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(s.length?"?"+s:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new bt(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(s,i)=>{this.onError("xhr post error",s,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class bt extends Oe{constructor(t,n){super(),Ms(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=Cc(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new Pc(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=bt.requestsCount++,bt.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=T0,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete bt.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}bt.requestsCount=0;bt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ea);else if(typeof addEventListener=="function"){const e="onpagehide"in Ze?"pagehide":"unload";addEventListener(e,Ea,!1)}}function Ea(){for(let e in bt.requests)bt.requests.hasOwnProperty(e)&&bt.requests[e].abort()}const Ic=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),kr=Ze.WebSocket||Ze.MozWebSocket,ja=!0,R0="arraybuffer",ka=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class L0 extends Tc{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=ka?{}:Cc(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=ja&&!ka?n?new kr(t,n):new kr(t):new kr(t,n,r)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType||R0,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const o={};try{ja&&this.ws.send(i)}catch{}s&&Ic(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=Mc()),this.supportsBinary||(t.b64=1);const s=Rc(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(s.length?"?"+s:"")}check(){return!!kr}}const P0={websocket:L0,polling:M0},I0=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,B0=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function vi(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let s=I0.exec(e||""),i={},o=14;for(;o--;)i[B0[o]]=s[o]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=D0(i,i.path),i.queryKey=N0(i,i.query),i}function D0(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function N0(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,s,i){s&&(n[s]=i)}),n}let Bc=class vn extends Oe{constructor(t,n={}){super(),this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=vi(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=vi(n.host).host),Ms(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=O0(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Oc,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new P0[t](r)}open(){let t;if(this.opts.rememberUpgrade&&vn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;vn.priorWebsocketSuccess=!1;const s=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;vn.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(u(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,u(),n.close(),n=null)}const o=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function a(){o("transport closed")}function l(){o("socket closed")}function c(d){n&&d.name!==n.name&&i()}const u=()=>{n.removeListener("open",s),n.removeListener("error",o),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",s),n.once("error",o),n.once("close",a),this.once("close",l),this.once("upgrading",c),n.open()}onOpen(){if(this.readyState="open",vn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,s){if(typeof n=="function"&&(s=n,n=void 0),typeof r=="function"&&(s=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),s&&this.once("flush",s),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){vn.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const s=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Dc=Object.prototype.toString,$0=typeof Blob=="function"||typeof Blob<"u"&&Dc.call(Blob)==="[object BlobConstructor]",z0=typeof File=="function"||typeof File<"u"&&Dc.call(File)==="[object FileConstructor]";function Zi(e){return H0&&(e instanceof ArrayBuffer||V0(e))||$0&&e instanceof Blob||z0&&e instanceof File}function Vr(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num0;case se.ACK:case se.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class G0{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=K0(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Y0=Object.freeze(Object.defineProperty({__proto__:null,Decoder:eo,Encoder:q0,get PacketType(){return se},protocol:W0},Symbol.toStringTag,{value:"Module"}));function at(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const J0=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Nc extends Oe{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[at(t,"open",this.onopen.bind(this)),at(t,"packet",this.onpacket.bind(this)),at(t,"error",this.onerror.bind(this)),at(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(J0.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:se.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const o=this.ids++,a=n.pop();this._registerAckCallback(o,a),r.id=o}const s=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!s||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){var r;const s=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(s===void 0){this.acks[t]=n;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let o=0;o{this.io.clearTimeoutFn(i),n.apply(this,[null,...o])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((s,i)=>{n.push((o,a)=>r?o?i(o):s(a):s(o)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((s,...i)=>r!==this._queue[0]?void 0:(s!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(s)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:se.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case se.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case se.EVENT:case se.BINARY_EVENT:this.onevent(t);break;case se.ACK:case se.BINARY_ACK:this.onack(t);break;case se.DISCONNECT:this.ondisconnect();break;case se.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...s){r||(r=!0,n.packet({type:se.ACK,id:t,data:s}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:se.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Fn.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Fn.prototype.reset=function(){this.attempts=0};Fn.prototype.setMin=function(e){this.ms=e};Fn.prototype.setMax=function(e){this.max=e};Fn.prototype.setJitter=function(e){this.jitter=e};class wi extends Oe{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Ms(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Fn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const s=n.parser||Y0;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Bc(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const s=at(n,"open",function(){r.onopen(),t&&t()}),i=at(n,"error",o=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",o),t?t(o):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const o=this._timeout;o===0&&s();const a=this.setTimeoutFn(()=>{s(),n.close(),n.emit("error",new Error("timeout"))},o);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(s),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(at(t,"ping",this.onping.bind(this)),at(t,"data",this.ondata.bind(this)),at(t,"error",this.onerror.bind(this)),at(t,"close",this.onclose.bind(this)),at(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Ic(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Nc(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(s=>{s?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",s)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const zn={};function $r(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=F0(e,t.path||"/socket.io"),r=n.source,s=n.id,i=n.path,o=zn[s]&&i in zn[s].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let l;return a?l=new wi(r,t):(zn[s]||(zn[s]=new wi(r,t)),l=zn[s]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign($r,{Manager:wi,Socket:Nc,io:$r,connect:$r});const to=Dn({connected:!1}),xt=new $r("http://localhost:9600");xt.onopen=()=>{console.log("WebSocket connection established.")};xt.onclose=e=>{console.log("WebSocket connection closed:",e.code,e.reason)};xt.onerror=e=>{console.error("WebSocket error:",e),xt.disconnect()};xt.on("connect",()=>{to.connected=!0,console.log("WebSocket connected (websocket)")});xt.on("disconnect",()=>{to.connected=!1,console.log("WebSocket disonnected (websocket)")});var X0=function(){function e(t,n){n===void 0&&(n=[]),this._eventType=t,this._eventFunctions=n}return e.prototype.init=function(){var t=this;this._eventFunctions.forEach(function(n){typeof window<"u"&&window.addEventListener(t._eventType,n)})},e}(),es=globalThis&&globalThis.__assign||function(){return es=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u")return!1;var t=Ge(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function uy(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!nt(i)||!jt(i)||(Object.assign(i.style,r),Object.keys(s).forEach(function(o){var a=s[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function dy(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var s=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(l,c){return l[c]="",l},{});!nt(s)||!jt(s)||(Object.assign(s.style,a),Object.keys(i).forEach(function(l){s.removeAttribute(l)}))})}}const fy={name:"applyStyles",enabled:!0,phase:"write",fn:uy,effect:dy,requires:["computeStyles"]};function wt(e){return e.split("-")[0]}var fn=Math.max,ss=Math.min,Mn=Math.round;function _i(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Yc(){return!/^((?!chrome|android).)*safari/i.test(_i())}function Rn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,i=1;t&&nt(e)&&(s=e.offsetWidth>0&&Mn(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Mn(r.height)/e.offsetHeight||1);var o=hn(e)?Ge(e):window,a=o.visualViewport,l=!Yc()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/s,u=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/s,f=r.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function so(e){var t=Rn(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Jc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ro(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Lt(e){return Ge(e).getComputedStyle(e)}function hy(e){return["table","td","th"].indexOf(jt(e))>=0}function Yt(e){return((hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rs(e){return jt(e)==="html"?e:e.assignedSlot||e.parentNode||(ro(e)?e.host:null)||Yt(e)}function Ta(e){return!nt(e)||Lt(e).position==="fixed"?null:e.offsetParent}function py(e){var t=/firefox/i.test(_i()),n=/Trident/i.test(_i());if(n&&nt(e)){var r=Lt(e);if(r.position==="fixed")return null}var s=Rs(e);for(ro(s)&&(s=s.host);nt(s)&&["html","body"].indexOf(jt(s))<0;){var i=Lt(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function mr(e){for(var t=Ge(e),n=Ta(e);n&&hy(n)&&Lt(n).position==="static";)n=Ta(n);return n&&(jt(n)==="html"||jt(n)==="body"&&Lt(n).position==="static")?t:n||py(e)||t}function io(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function er(e,t,n){return fn(e,ss(t,n))}function gy(e,t,n){var r=er(e,t,n);return r>n?n:r}function Xc(){return{top:0,right:0,bottom:0,left:0}}function Qc(e){return Object.assign({},Xc(),e)}function Zc(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var yy=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Qc(typeof t!="number"?t:Zc(t,yr))};function my(e){var t,n=e.state,r=e.name,s=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=wt(n.placement),l=io(a),c=[ze,st].indexOf(a)>=0,u=c?"height":"width";if(!(!i||!o)){var d=yy(s.padding,n),f=so(i),p=l==="y"?$e:ze,g=l==="y"?rt:st,y=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],_=o[l]-n.rects.reference[l],w=mr(i),x=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,b=y/2-_/2,E=d[p],S=x-f[u]-d[g],P=x/2-f[u]/2+b,D=er(E,P,S),I=l;n.modifiersData[r]=(t={},t[I]=D,t.centerOffset=D-P,t)}}function vy(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||Jc(t.elements.popper,s)&&(t.elements.arrow=s))}const xy={name:"arrow",enabled:!0,phase:"main",fn:my,effect:vy,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ln(e){return e.split("-")[1]}var by={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wy(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:Mn(n*s)/s||0,y:Mn(r*s)/s||0}}function Sa(e){var t,n=e.popper,r=e.popperRect,s=e.placement,i=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,g=o.y,y=g===void 0?0:g,_=typeof u=="function"?u({x:p,y}):{x:p,y};p=_.x,y=_.y;var w=o.hasOwnProperty("x"),x=o.hasOwnProperty("y"),b=ze,E=$e,S=window;if(c){var P=mr(n),D="clientHeight",I="clientWidth";if(P===Ge(n)&&(P=Yt(n),Lt(P).position!=="static"&&a==="absolute"&&(D="scrollHeight",I="scrollWidth")),P=P,s===$e||(s===ze||s===st)&&i===fr){E=rt;var W=d&&P===S&&S.visualViewport?S.visualViewport.height:P[D];y-=W-r.height,y*=l?1:-1}if(s===ze||(s===$e||s===rt)&&i===fr){b=st;var K=d&&P===S&&S.visualViewport?S.visualViewport.width:P[I];p-=K-r.width,p*=l?1:-1}}var X=Object.assign({position:a},c&&by),ce=u===!0?wy({x:p,y},Ge(n)):{x:p,y};if(p=ce.x,y=ce.y,l){var ue;return Object.assign({},X,(ue={},ue[E]=x?"0":"",ue[b]=w?"0":"",ue.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",ue))}return Object.assign({},X,(t={},t[E]=x?y+"px":"",t[b]=w?p+"px":"",t.transform="",t))}function _y(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:wt(t.placement),variation:Ln(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Sa(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Sa(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ey={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_y,data:{}};var Ar={passive:!0};function jy(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,i=s===void 0?!0:s,o=r.resize,a=o===void 0?!0:o,l=Ge(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,Ar)}),a&&l.addEventListener("resize",n.update,Ar),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Ar)}),a&&l.removeEventListener("resize",n.update,Ar)}}const ky={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jy,data:{}};var Ay={left:"right",right:"left",bottom:"top",top:"bottom"};function Ur(e){return e.replace(/left|right|bottom|top/g,function(t){return Ay[t]})}var Oy={start:"end",end:"start"};function Ma(e){return e.replace(/start|end/g,function(t){return Oy[t]})}function oo(e){var t=Ge(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ao(e){return Rn(Yt(e)).left+oo(e).scrollLeft}function Cy(e,t){var n=Ge(e),r=Yt(e),s=n.visualViewport,i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;var c=Yc();(c||!c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a+ao(e),y:l}}function Ty(e){var t,n=Yt(e),r=oo(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=fn(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=fn(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-r.scrollLeft+ao(e),l=-r.scrollTop;return Lt(s||n).direction==="rtl"&&(a+=fn(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:o,x:a,y:l}}function lo(e){var t=Lt(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function eu(e){return["html","body","#document"].indexOf(jt(e))>=0?e.ownerDocument.body:nt(e)&&lo(e)?e:eu(Rs(e))}function tr(e,t){var n;t===void 0&&(t=[]);var r=eu(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ge(r),o=s?[i].concat(i.visualViewport||[],lo(r)?r:[]):r,a=t.concat(o);return s?a:a.concat(tr(Rs(o)))}function Ei(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sy(e,t){var n=Rn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ra(e,t,n){return t===qc?Ei(Cy(e,n)):hn(t)?Sy(t,n):Ei(Ty(Yt(e)))}function My(e){var t=tr(Rs(e)),n=["absolute","fixed"].indexOf(Lt(e).position)>=0,r=n&&nt(e)?mr(e):e;return hn(r)?t.filter(function(s){return hn(s)&&Jc(s,r)&&jt(s)!=="body"}):[]}function Ry(e,t,n,r){var s=t==="clippingParents"?My(e):[].concat(t),i=[].concat(s,[n]),o=i[0],a=i.reduce(function(l,c){var u=Ra(e,c,r);return l.top=fn(u.top,l.top),l.right=ss(u.right,l.right),l.bottom=ss(u.bottom,l.bottom),l.left=fn(u.left,l.left),l},Ra(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function tu(e){var t=e.reference,n=e.element,r=e.placement,s=r?wt(r):null,i=r?Ln(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(s){case $e:l={x:o,y:t.y-n.height};break;case rt:l={x:o,y:t.y+t.height};break;case st:l={x:t.x+t.width,y:a};break;case ze:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=s?io(s):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Sn:l[c]=l[c]-(t[u]/2-n[u]/2);break;case fr:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function hr(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?Q0:a,c=n.rootBoundary,u=c===void 0?qc:c,d=n.elementContext,f=d===void 0?Un:d,p=n.altBoundary,g=p===void 0?!1:p,y=n.padding,_=y===void 0?0:y,w=Qc(typeof _!="number"?_:Zc(_,yr)),x=f===Un?Z0:Un,b=e.rects.popper,E=e.elements[g?x:f],S=Ry(hn(E)?E:E.contextElement||Yt(e.elements.popper),l,u,o),P=Rn(e.elements.reference),D=tu({reference:P,element:b,strategy:"absolute",placement:s}),I=Ei(Object.assign({},b,D)),W=f===Un?I:P,K={top:S.top-W.top+w.top,bottom:W.bottom-S.bottom+w.bottom,left:S.left-W.left+w.left,right:W.right-S.right+w.right},X=e.modifiersData.offset;if(f===Un&&X){var ce=X[s];Object.keys(K).forEach(function(ue){var we=[st,rt].indexOf(ue)>=0?1:-1,Re=[$e,rt].indexOf(ue)>=0?"y":"x";K[ue]+=ce[Re]*we})}return K}function Ly(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,i=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Gc:l,u=Ln(r),d=u?a?Ca:Ca.filter(function(g){return Ln(g)===u}):yr,f=d.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=d);var p=f.reduce(function(g,y){return g[y]=hr(e,{placement:y,boundary:s,rootBoundary:i,padding:o})[wt(y)],g},{});return Object.keys(p).sort(function(g,y){return p[g]-p[y]})}function Py(e){if(wt(e)===no)return[];var t=Ur(e);return[Ma(e),t,Ma(t)]}function Iy(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,y=n.allowedAutoPlacements,_=t.options.placement,w=wt(_),x=w===_,b=l||(x||!g?[Ur(_)]:Py(_)),E=[_].concat(b).reduce(function(je,k){return je.concat(wt(k)===no?Ly(t,{placement:k,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:y}):k)},[]),S=t.rects.reference,P=t.rects.popper,D=new Map,I=!0,W=E[0],K=0;K=0,Re=we?"width":"height",ne=hr(t,{placement:X,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),q=we?ue?st:ze:ue?rt:$e;S[Re]>P[Re]&&(q=Ur(q));var ee=Ur(q),he=[];if(i&&he.push(ne[ce]<=0),a&&he.push(ne[q]<=0,ne[ee]<=0),he.every(function(je){return je})){W=X,I=!1;break}D.set(X,he)}if(I)for(var Fe=g?3:1,xe=function(k){var N=E.find(function(B){var V=D.get(B);if(V)return V.slice(0,k).every(function(re){return re})});if(N)return W=N,"break"},pe=Fe;pe>0;pe--){var Le=xe(pe);if(Le==="break")break}t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}}const By={name:"flip",enabled:!0,phase:"main",fn:Iy,requiresIfExists:["offset"],data:{_skip:!1}};function La(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Pa(e){return[$e,st,rt,ze].some(function(t){return e[t]>=0})}function Dy(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,o=hr(t,{elementContext:"reference"}),a=hr(t,{altBoundary:!0}),l=La(o,r),c=La(a,s,i),u=Pa(l),d=Pa(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Ny={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Dy};function Fy(e,t,n){var r=wt(e),s=[ze,$e].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],a=i[1];return o=o||0,a=(a||0)*s,[ze,st].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function Hy(e){var t=e.state,n=e.options,r=e.name,s=n.offset,i=s===void 0?[0,0]:s,o=Gc.reduce(function(u,d){return u[d]=Fy(d,t.rects,i),u},{}),a=o[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}const Vy={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hy};function $y(e){var t=e.state,n=e.name;t.modifiersData[n]=tu({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const zy={name:"popperOffsets",enabled:!0,phase:"read",fn:$y,data:{}};function Uy(e){return e==="x"?"y":"x"}function Ky(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,g=n.tetherOffset,y=g===void 0?0:g,_=hr(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),w=wt(t.placement),x=Ln(t.placement),b=!x,E=io(w),S=Uy(E),P=t.modifiersData.popperOffsets,D=t.rects.reference,I=t.rects.popper,W=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,K=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),X=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ce={x:0,y:0};if(P){if(i){var ue,we=E==="y"?$e:ze,Re=E==="y"?rt:st,ne=E==="y"?"height":"width",q=P[E],ee=q+_[we],he=q-_[Re],Fe=p?-I[ne]/2:0,xe=x===Sn?D[ne]:I[ne],pe=x===Sn?-I[ne]:-D[ne],Le=t.elements.arrow,je=p&&Le?so(Le):{width:0,height:0},k=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Xc(),N=k[we],B=k[Re],V=er(0,D[ne],je[ne]),re=b?D[ne]/2-Fe-V-N-K.mainAxis:xe-V-N-K.mainAxis,ye=b?-D[ne]/2+Fe+V+B+K.mainAxis:pe+V+B+K.mainAxis,Q=t.elements.arrow&&mr(t.elements.arrow),h=Q?E==="y"?Q.clientTop||0:Q.clientLeft||0:0,m=(ue=X==null?void 0:X[E])!=null?ue:0,j=q+re-m-h,A=q+ye-m,C=er(p?ss(ee,j):ee,q,p?fn(he,A):he);P[E]=C,ce[E]=C-q}if(a){var R,F=E==="x"?$e:ze,M=E==="x"?rt:st,L=P[S],T=S==="y"?"height":"width",z=L+_[F],H=L-_[M],$=[$e,ze].indexOf(w)!==-1,J=(R=X==null?void 0:X[S])!=null?R:0,te=$?z:L-D[T]-I[T]-J+K.altAxis,de=$?L+D[T]+I[T]-J-K.altAxis:H,le=p&&$?gy(te,L,de):er(p?te:z,L,p?de:H);P[S]=le,ce[S]=le-L}t.modifiersData[r]=ce}}const Wy={name:"preventOverflow",enabled:!0,phase:"main",fn:Ky,requiresIfExists:["offset"]};function qy(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gy(e){return e===Ge(e)||!nt(e)?oo(e):qy(e)}function Yy(e){var t=e.getBoundingClientRect(),n=Mn(t.width)/e.offsetWidth||1,r=Mn(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Jy(e,t,n){n===void 0&&(n=!1);var r=nt(t),s=nt(t)&&Yy(t),i=Yt(t),o=Rn(e,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((jt(t)!=="body"||lo(i))&&(a=Gy(t)),nt(t)?(l=Rn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=ao(i))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function Xy(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&s(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),r}function Qy(e){var t=Xy(e);return cy.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function Zy(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function em(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ia={placement:"bottom",modifiers:[],strategy:"absolute"};function Ba(){for(var e=arguments.length,t=new Array(e),n=0;n(xd("data-v-5ac9e2c3"),e=e(),bd(),e),im={class:"overflow-y-scroll flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone"},om={class:"z-10 sticky top-0 flex-col bg-bg-light-tone dark:bg-bg-dark-tone shadow-md"},am={class:"flex-row p-4 items-center gap-3 flex-0 w-full"},lm={class:"relative"},cm=Ye(()=>v("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[v("div",{class:"scale-75"},[v("i",{"data-feather":"search"})])],-1)),um={class:"absolute inset-y-0 right-0 flex items-center pr-3"},dm=Ye(()=>v("i",{"data-feather":"x"},null,-1)),fm=[dm],hm={class:"flex-row p-4 pt-0 flex items-center gap-3 flex-0"},pm=Ye(()=>v("i",{"data-feather":"plus"},null,-1)),gm=[pm],ym=Ye(()=>v("i",{"data-feather":"check-square"},null,-1)),mm=[ym],vm=Ye(()=>v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},[v("i",{"data-feather":"refresh-ccw"})],-1)),xm=Ye(()=>v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Export database",type:"button"},[v("i",{"data-feather":"database"})],-1)),bm={key:0,class:"h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark"},wm={key:1,class:"flex flex-row flex-grow p-4 pt-0 items-center"},_m={class:"flex flex-row flex-grow gap-3"},Em={key:0},jm={class:"flex flex-row gap-3"},km=Ye(()=>v("i",{"data-feather":"list"},null,-1)),Am=[km],Om=Ye(()=>v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a file",type:"button"},[v("i",{"data-feather":"log-out"})],-1)),Cm={key:0,class:"flex flex-row gap-3"},Tm=Ye(()=>v("i",{"data-feather":"trash"},null,-1)),Sm=[Tm],Mm={key:1,class:"flex gap-3 flex-1 items-center justify-end group-hover:visible duration-75"},Rm=Ye(()=>v("i",{"data-feather":"check"},null,-1)),Lm=[Rm],Pm=Ye(()=>v("i",{"data-feather":"x"},null,-1)),Im=[Pm],Bm={class:"relative overflow-y-scroll no-scrollbar"},Dm={key:0,class:"gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"},Nm=Ye(()=>v("p",{class:"px-3"},"No discussions are found",-1)),Fm=[Nm],Hm=Ye(()=>v("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex height-64"},null,-1)),Vm={class:"overflow-y-scroll flex flex-col no-scrollbar flex-grow",id:"messages-list"},$m={class:"sticky bottom-0"},zm={setup(){},data(){return{list:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isGenerating:!1,isCheckbox:!1,isSelectAll:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav")}},methods:{async list_discussions(){try{const e=await Qe.get("/list_discussions");if(e)return this.createDiscussionList(e.data),e.data}catch(e){return console.log("Error: Could not list discussions",e),[]}},async load_discussion(e){try{if(e){this.loading=!0,this.setDiscussionLoading(e,this.loading);const t=await Qe.post("/load_discussion",{id:e});this.loading=!1,this.setDiscussionLoading(e,this.loading),t&&(this.discussionArr=t.data.filter(r=>r.type==0),this.discussionArr[this.discussionArr.length-1]&&Me(()=>{const r=document.getElementById("messages-list");this.scrollBottom(r)}))}}catch(t){console.log(t),this.loading=!1,this.setDiscussionLoading(e,this.loading)}},async new_discussion(e){try{const t=await Qe.get("/new_discussion",{params:{title:e}});if(t)return t.data}catch(t){return console.log("Error: Could not create new discussion",t),{}}},async delete_discussion(e){try{if(e){this.loading=!0,this.setDiscussionLoading(e,this.loading);const t=await Qe.post("/delete_discussion",{id:e});this.loading=!1,this.setDiscussionLoading(e,this.loading)}}catch(t){console.log("Error: Could not delete discussion",t),this.loading=!1,this.setDiscussionLoading(e,this.loading)}},async edit_title(e,t){try{if(e){this.loading=!0,this.setDiscussionLoading(e,this.loading);const n=await Qe.post("/edit_title",{id:e,title:t});if(this.loading=!1,this.setDiscussionLoading(e,this.loading),n.status==200){const r=this.list.findIndex(i=>i.id==e),s=this.list[r];s.title=t,this.tempList=this.list}}}catch(n){console.log("Error: Could not edit title",n),this.loading=!1,this.setDiscussionLoading(e,this.loading)}},async stop_gen(){try{const e=await Qe.get("/stop_gen");if(e)return e.data}catch(e){return console.log("Error: Could not stop generating",e),{}}},filterDiscussions(){this.filterInProgress||(this.filterInProgress=!0,setTimeout(()=>{this.list=this.tempList.filter(e=>e.title&&e.title.includes(this.filterTitle)),this.filterInProgress=!1},100))},async selectDiscussion(e){e&&(this.currentDiscussion=e,this.setPageTitle(e),localStorage.setItem("selected_discussion",this.currentDiscussion.id),await this.load_discussion(e.id),this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content),Me(()=>{const t=document.getElementById("dis-"+e.id);this.scrollToElement(t)}))},scrollToElement(e){e?e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}):console.log("Error: scrollToElement")},scrollBottom(e){e?e.scrollTo({top:e.scrollHeight,behavior:"smooth"}):console.log("Error: scrollBottom")},createUserMsg(e){let t={content:e.message,id:e.id,rank:0,sender:e.user};this.discussionArr.push(t),Me(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)})},updateLastUserMsg(e){const t=this.discussionArr[this.discussionArr.length-1];t.content=e.message,t.id=e.id,t.rank=e.rank,t.sender=e.user},createBotMsg(e){this.updateLastUserMsg(e);let t={content:"..typing",id:e.response_id,rank:0,sender:e.bot};this.discussionArr.push(t),Me(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)}),(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,usrMessage.content)},sendMsg(e){this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Qe.get("/get_generation_status",{}).then(t=>{if(t)if(console.log(t.data.status),t.data.status)console.log("Already generating");else{xt.emit("generate_msg",{prompt:e});let n={message:e,id:this.discussionArr[this.discussionArr.length-1].id+1,rank:0,user:"user"};this.createUserMsg(n)}}).catch(t=>{console.log("Error: Could not get generation status",t)})},steamMessageContent(e){const t=this.discussionArr[this.discussionArr.length-1];t.content=e.data},async changeTitleUsingUserMSG(e,t){const n=this.list.findIndex(s=>s.id==e),r=this.list[n];t&&(r.title=t,this.tempList=this.list),await this.edit_title(e,t)},async createNewDiscussion(){const e=await this.new_discussion();await this.list_discussions();const t=this.list.findIndex(r=>r.id==e.id),n=this.list[t];this.selectDiscussion(n),Me(()=>{const r=document.getElementById("dis-"+e.id);this.scrollToElement(r)})},loadLastUsedDiscussion(){const e=localStorage.getItem("selected_discussion");if(e){const t=this.list.findIndex(r=>r.id==e),n=this.list[t];n&&this.selectDiscussion(n)}},async deleteDiscussion(e){const t=this.list.findIndex(n=>n.id==e);this.list[t],await this.delete_discussion(e),this.currentDiscussion.id==e&&(this.currentDiscussion={},this.discussionArr=[],this.setPageTitle()),this.list.splice(this.list.findIndex(n=>n.id==e),1),this.createDiscussionList(this.list)},async deleteDiscussionMulti(){const e=this.selectedDiscussions;for(let t=0;tr.id==n.id),1)}this.tempList=this.list,this.isCheckbox=!1,console.log("Multi delete done")},async editTitle(e){const t=this.list.findIndex(r=>r.id==e.id),n=this.list[t];n.title=e.title,n.loading=!0,await this.edit_title(e.id,e.title),n.loading=!1},checkUncheckDiscussion(e,t){const n=this.list.findIndex(s=>s.id==t),r=this.list[n];r.checkBoxValue=e.target.checked,this.tempList=this.list},selectAllDiscussions(){this.isSelectAll=!this.tempList.filter(e=>e.checkBoxValue==!1).length>0;for(let e=0;e({id:n.id,title:n.title,selected:!1,loading:!1,checkBoxValue:!1}));this.list=t,this.tempList=t}},setDiscussionLoading(e,t){const n=this.list.findIndex(s=>s.id==e),r=this.list[n];r.loading=t},setPageTitle(e){if(e)if(e.id){const t=e.title?e.title==="untitled"?"New discussion":e.title:"New discussion";document.title="GPT4ALL - WEBUI - "+t}else{const t=e||"Welcome";document.title="GPT4ALL - WEBUI - "+t}else{const t=e||"Welcome";document.title="GPT4ALL - WEBUI - "+t}},stopGenerating(){this.stop_gen(),this.isGenerating=!1,console.log("Stopped generating")},finalMsgEvent(e){console.log("final",e),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),this.chime.play()}},async created(){this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,Me(()=>{mt.replace()}),xt.on("infos",this.createBotMsg),xt.on("message",this.steamMessageContent),xt.on("final",this.finalMsgEvent)},activated(){console.log("Websocket connected (activated)",this.socketConnected),this.isCreated&&this.loadLastUsedDiscussion()},components:{Discussion:xc,Message:bc,ChatBox:wc,WelcomeComponent:_c},watch:{filterTitle(e,t){e==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(e,t){Me(()=>{mt.replace()}),e||(this.isSelectAll=!1)},socketConnected(e,t){console.log("Websocket connected (watch)",e)},showConfirmation(){Me(()=>{mt.replace()})}},computed:{socketConnected(){return to.connected},selectedDiscussions(){return Me(()=>{mt.replace()}),this.list.filter(e=>e.checkBoxValue==!0)}}},Um=Object.assign(zm,{__name:"DiscussionsView",setup(e){return ws(()=>{rm()}),Qe.defaults.baseURL="/",(t,n)=>(U(),Y(Ae,null,[v("div",im,[v("div",om,[v("form",am,[v("div",lm,[cm,v("div",um,[v("div",{class:Ie(["hover:text-secondary duration-75 active:scale-90",t.filterTitle?"visible":"invisible"]),title:"Clear",onClick:n[0]||(n[0]=r=>t.filterTitle="")},fm,2)]),Pe(v("input",{type:"search",id:"default-search",class:"block w-full p-2 pl-10 pr-10 text-sm border border-gray-300 rounded-lg bg-bg-light focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary",placeholder:"Search...",title:"Filter discussions by title","onUpdate:modelValue":n[1]||(n[1]=r=>t.filterTitle=r),onInput:n[2]||(n[2]=r=>t.filterDiscussions())},null,544),[[Ve,t.filterTitle]])])]),v("div",hm,[v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:n[3]||(n[3]=r=>t.createNewDiscussion())},gm),v("button",{class:Ie(["text-2xl hover:text-secondary duration-75 active:scale-90",t.isCheckbox?"text-secondary":""]),title:"Edit discussion list",type:"button",onClick:n[4]||(n[4]=r=>t.isCheckbox=!t.isCheckbox)},mm,2),vm,xm]),t.isCheckbox?(U(),Y("hr",bm)):be("",!0),t.isCheckbox?(U(),Y("div",wm,[v("div",_m,[t.selectedDiscussions.length>0?(U(),Y("p",Em,"Selected: "+lt(t.selectedDiscussions.length),1)):be("",!0)]),v("div",jm,[v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:n[5]||(n[5]=Se((...r)=>t.selectAllDiscussions&&t.selectAllDiscussions(...r),["stop"]))},Am),Om,t.selectedDiscussions.length>0?(U(),Y("div",Cm,[t.showConfirmation?be("",!0):(U(),Y("button",{key:0,class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:n[6]||(n[6]=Se(r=>t.showConfirmation=!0,["stop"]))},Sm)),t.showConfirmation?(U(),Y("div",Mm,[v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:n[7]||(n[7]=Se((...r)=>t.deleteDiscussionMulti&&t.deleteDiscussionMulti(...r),["stop"]))},Lm),v("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:n[8]||(n[8]=Se(r=>t.showConfirmation=!1,["stop"]))},Im)])):be("",!0)])):be("",!0)])])):be("",!0)]),v("div",Bm,[v("div",{class:Ie(["mx-4 flex-grow",t.filterInProgress?"opacity-20 pointer-events-none":""])},[(U(!0),Y(Ae,null,en(t.list,(r,s)=>(U(),cn(xc,{key:s,id:r.id,title:r.title,selected:t.currentDiscussion.id==r.id,loading:r.loading,isCheckbox:t.isCheckbox,checkBoxValue:r.checkBoxValue,onSelect:i=>t.selectDiscussion(r),onDelete:i=>t.deleteDiscussion(r.id),onEditTitle:t.editTitle,onChecked:t.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onEditTitle","onChecked"]))),128)),t.list.length<1?(U(),Y("div",Dm,Fm)):be("",!0),Hm],2)])]),v("div",Vm,[v("div",null,[(U(!0),Y(Ae,null,en(t.discussionArr,(r,s)=>(U(),cn(bc,{key:s,message:r,onClick:n[9]||(n[9]=i=>t.scrollToElement(i.target)),id:"msg-"+r.id,ref_for:!0,ref:"messages"},null,8,["message","id"]))),128)),t.discussionArr.length<1?(U(),cn(_c,{key:0})):be("",!0)]),v("div",$m,[t.discussionArr.length>0?(U(),cn(wc,{key:0,onMessageSentEvent:t.sendMsg,loading:t.isGenerating,onStopGenerating:t.stopGenerating},null,8,["onMessageSentEvent","loading","onStopGenerating"])):be("",!0)])])],64))}}),Km=kt(Um,[["__scopeId","data-v-5ac9e2c3"]]),Wm=Gh({history:fh("/"),routes:[{path:"/extensions/",name:"extensions",component:jp},{path:"/help/",name:"help",component:Op},{path:"/settings/",name:"settings",component:og},{path:"/training/",name:"training",component:cg},{path:"/",name:"discussions",component:Km}]});const gu=qf(wp);gu.use(Wm);gu.mount("#app"); diff --git a/web/dist/assets/index-63dc5996.js b/web/dist/assets/index-63dc5996.js deleted file mode 100644 index 441fae9c..00000000 --- a/web/dist/assets/index-63dc5996.js +++ /dev/null @@ -1,11 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function ki(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}function Oi(e){if(G(e)){const t={};for(let n=0;n{if(n){const r=n.split(gu);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ie(e){let t="";if(Ee(e))t=e;else if(G(e))for(let n=0;nus(n,t))}const gt=e=>Ee(e)?e:e==null?"":G(e)||ge(e)&&(e.toString===Ha||!Z(e.toString))?JSON.stringify(e,Na,2):String(e),Na=(e,t)=>t&&t.__v_isRef?Na(e,t.value):wn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:fs(t)?{[`Set(${t.size})`]:[...t.values()]}:ge(t)&&!G(t)&&!Va(t)?String(t):t,me={},bn=[],ut=()=>{},wu=()=>!1,_u=/^on[^a-z]/,ds=e=>_u.test(e),Ci=e=>e.startsWith("onUpdate:"),Ne=Object.assign,Ti=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Eu=Object.prototype.hasOwnProperty,ie=(e,t)=>Eu.call(e,t),G=Array.isArray,wn=e=>Pn(e)==="[object Map]",fs=e=>Pn(e)==="[object Set]",ho=e=>Pn(e)==="[object Date]",ju=e=>Pn(e)==="[object RegExp]",Z=e=>typeof e=="function",Ee=e=>typeof e=="string",rr=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Fa=e=>ge(e)&&Z(e.then)&&Z(e.catch),Ha=Object.prototype.toString,Pn=e=>Ha.call(e),Au=e=>Pn(e).slice(8,-1),Va=e=>Pn(e)==="[object Object]",Si=e=>Ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mr=ki(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ku=/-(\w)/g,_t=hs(e=>e.replace(ku,(t,n)=>n?n.toUpperCase():"")),Ou=/\B([A-Z])/g,pn=hs(e=>e.replace(Ou,"-$1").toLowerCase()),ps=hs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ls=hs(e=>e?`on${ps(e)}`:""),sr=(e,t)=>!Object.is(e,t),_n=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Gs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let po;const Cu=()=>po||(po=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let it;class Tu{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=it,!t&&it&&(this.index=(it.scopes||(it.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=it;try{return it=this,t()}finally{it=n}}}on(){it=this}off(){it=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},$a=e=>(e.w&Gt)>0,za=e=>(e.n&Gt)>0,Mu=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":G(e)?Si(n)&&a.push(o.get("length")):(a.push(o.get(un)),wn(e)&&a.push(o.get(Xs)));break;case"delete":G(e)||(a.push(o.get(un)),wn(e)&&a.push(o.get(Xs)));break;case"set":wn(e)&&a.push(o.get(un));break}if(a.length===1)a[0]&&Qs(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);Qs(Ri(l))}}function Qs(e,t){const n=G(e)?e:[...e];for(const r of n)r.computed&&yo(r);for(const r of n)r.computed||yo(r)}function yo(e,t){(e!==lt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Pu=ki("__proto__,__v_isRef,__isVue"),Wa=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(rr)),Iu=Li(),Bu=Li(!1,!0),Du=Li(!0),mo=Nu();function Nu(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ae(this);for(let i=0,o=this.length;i{e[t]=function(...n){In();const r=ae(this)[t].apply(this,n);return Bn(),r}}),e}function Fu(e){const t=ae(this);return Ue(t,"has",e),t.hasOwnProperty(e)}function Li(e=!1,t=!1){return function(r,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?td:Xa:t?Ja:Ya).get(r))return r;const o=G(r);if(!e){if(o&&ie(mo,s))return Reflect.get(mo,s,i);if(s==="hasOwnProperty")return Fu}const a=Reflect.get(r,s,i);return(rr(s)?Wa.has(s):Pu(s))||(e||Ue(r,"get",s),t)?a:De(a)?o&&Si(s)?a:a.value:ge(a)?e?Qa(a):Dn(a):a}}const Hu=qa(),Vu=qa(!0);function qa(e=!1){return function(n,r,s,i){let o=n[r];if(An(o)&&De(o)&&!De(s))return!1;if(!e&&(!Wr(s)&&!An(s)&&(o=ae(o),s=ae(s)),!G(n)&&De(o)&&!De(s)))return o.value=s,!0;const a=G(n)&&Si(r)?Number(r)e,gs=e=>Reflect.getPrototypeOf(e);function vr(e,t,n=!1,r=!1){e=e.__v_raw;const s=ae(e),i=ae(t);n||(t!==i&&Ue(s,"get",t),Ue(s,"get",i));const{has:o}=gs(s),a=r?Pi:n?Di:ir;if(o.call(s,t))return a(e.get(t));if(o.call(s,i))return a(e.get(i));e!==s&&e.get(t)}function xr(e,t=!1){const n=this.__v_raw,r=ae(n),s=ae(e);return t||(e!==s&&Ue(r,"has",e),Ue(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function br(e,t=!1){return e=e.__v_raw,!t&&Ue(ae(e),"iterate",un),Reflect.get(e,"size",e)}function vo(e){e=ae(e);const t=ae(this);return gs(t).has.call(t,e)||(t.add(e),Tt(t,"add",e,e)),this}function xo(e,t){t=ae(t);const n=ae(this),{has:r,get:s}=gs(n);let i=r.call(n,e);i||(e=ae(e),i=r.call(n,e));const o=s.call(n,e);return n.set(e,t),i?sr(t,o)&&Tt(n,"set",e,t):Tt(n,"add",e,t),this}function bo(e){const t=ae(this),{has:n,get:r}=gs(t);let s=n.call(t,e);s||(e=ae(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&Tt(t,"delete",e,void 0),i}function wo(){const e=ae(this),t=e.size!==0,n=e.clear();return t&&Tt(e,"clear",void 0,void 0),n}function wr(e,t){return function(r,s){const i=this,o=i.__v_raw,a=ae(o),l=t?Pi:e?Di:ir;return!e&&Ue(a,"iterate",un),o.forEach((c,u)=>r.call(s,l(c),l(u),i))}}function _r(e,t,n){return function(...r){const s=this.__v_raw,i=ae(s),o=wn(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=s[e](...r),u=n?Pi:t?Di:ir;return!t&&Ue(i,"iterate",l?Xs:un),{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 Bt(e){return function(...t){return e==="delete"?!1:this}}function qu(){const e={get(i){return vr(this,i)},get size(){return br(this)},has:xr,add:vo,set:xo,delete:bo,clear:wo,forEach:wr(!1,!1)},t={get(i){return vr(this,i,!1,!0)},get size(){return br(this)},has:xr,add:vo,set:xo,delete:bo,clear:wo,forEach:wr(!1,!0)},n={get(i){return vr(this,i,!0)},get size(){return br(this,!0)},has(i){return xr.call(this,i,!0)},add:Bt("add"),set:Bt("set"),delete:Bt("delete"),clear:Bt("clear"),forEach:wr(!0,!1)},r={get(i){return vr(this,i,!0,!0)},get size(){return br(this,!0)},has(i){return xr.call(this,i,!0)},add:Bt("add"),set:Bt("set"),delete:Bt("delete"),clear:Bt("clear"),forEach:wr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=_r(i,!1,!1),n[i]=_r(i,!0,!1),t[i]=_r(i,!1,!0),r[i]=_r(i,!0,!0)}),[e,n,t,r]}const[Gu,Yu,Ju,Xu]=qu();function Ii(e,t){const n=t?e?Xu:Ju:e?Yu:Gu;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ie(n,s)&&s in r?n:r,s,i)}const Qu={get:Ii(!1,!1)},Zu={get:Ii(!1,!0)},ed={get:Ii(!0,!1)},Ya=new WeakMap,Ja=new WeakMap,Xa=new WeakMap,td=new WeakMap;function nd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rd(e){return e.__v_skip||!Object.isExtensible(e)?0:nd(Au(e))}function Dn(e){return An(e)?e:Bi(e,!1,Ga,Qu,Ya)}function sd(e){return Bi(e,!1,Wu,Zu,Ja)}function Qa(e){return Bi(e,!0,Ku,ed,Xa)}function Bi(e,t,n,r,s){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=rd(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function En(e){return An(e)?En(e.__v_raw):!!(e&&e.__v_isReactive)}function An(e){return!!(e&&e.__v_isReadonly)}function Wr(e){return!!(e&&e.__v_isShallow)}function Za(e){return En(e)||An(e)}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function el(e){return Kr(e,"__v_skip",!0),e}const ir=e=>ge(e)?Dn(e):e,Di=e=>ge(e)?Qa(e):e;function tl(e){Wt&<&&(e=ae(e),Ka(e.dep||(e.dep=Ri())))}function nl(e,t){e=ae(e);const n=e.dep;n&&Qs(n)}function De(e){return!!(e&&e.__v_isRef===!0)}function id(e){return rl(e,!1)}function od(e){return rl(e,!0)}function rl(e,t){return De(e)?e:new ad(e,t)}class ad{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ae(t),this._value=n?t:ir(t)}get value(){return tl(this),this._value}set value(t){const n=this.__v_isShallow||Wr(t)||An(t);t=n?t:ae(t),sr(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ir(t),nl(this))}}function We(e){return De(e)?e.value:e}const ld={get:(e,t,n)=>We(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return De(s)&&!De(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function sl(e){return En(e)?e:new Proxy(e,ld)}var il;class cd{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[il]=!1,this._dirty=!0,this.effect=new Mi(t,()=>{this._dirty||(this._dirty=!0,nl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=ae(this);return tl(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}il="__v_isReadonly";function ud(e,t,n=!1){let r,s;const i=Z(e);return i?(r=e,s=ut):(r=e.get,s=e.set),new cd(r,s,i||!s,n)}function qt(e,t,n,r){let s;try{s=r?e(...r):e()}catch(i){ys(i,t,n)}return s}function et(e,t,n,r){if(Z(e)){const i=qt(e,t,n,r);return i&&Fa(i)&&i.catch(o=>{ys(o,t,n)}),i}const s=[];for(let i=0;i>>1;ar(Be[r])yt&&Be.splice(t,1)}function pd(e){G(e)?jn.push(...e):(!kt||!kt.includes(e,e.allowRecurse?Zt+1:Zt))&&jn.push(e),al()}function _o(e,t=or?yt+1:0){for(;tar(n)-ar(r)),Zt=0;Zte.id==null?1/0:e.id,gd=(e,t)=>{const n=ar(e)-ar(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function cl(e){Zs=!1,or=!0,Be.sort(gd);const t=ut;try{for(yt=0;ytEe(p)?p.trim():p)),d&&(s=n.map(Gs))}let a,l=r[a=Ls(t)]||r[a=Ls(_t(t))];!l&&i&&(l=r[a=Ls(pn(t))]),l&&et(l,e,6,s);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,et(c,e,6,s)}}function ul(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!Z(e)){const l=c=>{const u=ul(c,t,!0);u&&(a=!0,Ne(o,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(ge(e)&&r.set(e,null),null):(G(i)?i.forEach(l=>o[l]=null):Ne(o,i),ge(e)&&r.set(e,o),o)}function ms(e,t){return!e||!ds(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,pn(t))||ie(e,t))}let qe=null,vs=null;function qr(e){const t=qe;return qe=e,vs=e&&e.type.__scopeId||null,t}function md(e){vs=e}function vd(){vs=null}function Ut(e,t=qe,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Mo(-1);const i=qr(t);let o;try{o=e(...s)}finally{qr(i),r._d&&Mo(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Ps(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:i,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:f,setupState:p,ctx:g,inheritAttrs:y}=e;let _,w;const x=qr(e);try{if(n.shapeFlag&4){const E=s||r;_=pt(u.call(E,E,d,i,p,f,g)),w=l}else{const E=t;_=pt(E.length>1?E(i,{attrs:l,slots:a,emit:c}):E(i,null)),w=t.props?l:xd(l)}}catch(E){Xn.length=0,ys(E,e,1),_=xe(dt)}let b=_;if(w&&y!==!1){const E=Object.keys(w),{shapeFlag:S}=b;E.length&&S&7&&(o&&E.some(Ci)&&(w=bd(w,o)),b=St(b,w))}return n.dirs&&(b=St(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),_=b,qr(x),_}const xd=e=>{let t;for(const n in e)(n==="class"||n==="style"||ds(n))&&((t||(t={}))[n]=e[n]);return t},bd=(e,t)=>{const n={};for(const r in e)(!Ci(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function wd(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Eo(r,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function Ed(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):pd(e)}function Lr(e,t){if(_e){let n=_e.provides;const r=_e.parent&&_e.parent.provides;r===n&&(n=_e.provides=Object.create(r)),n[e]=t}}function Ot(e,t,n=!1){const r=_e||qe;if(r){const s=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Z(t)?t.call(r.proxy):t}}const Er={};function Gn(e,t,n){return fl(e,t,n)}function fl(e,t,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:o}=me){const a=Ru()===(_e==null?void 0:_e.scope)?_e:null;let l,c=!1,u=!1;if(De(e)?(l=()=>e.value,c=Wr(e)):En(e)?(l=()=>e,r=!0):G(e)?(u=!0,c=e.some(b=>En(b)||Wr(b)),l=()=>e.map(b=>{if(De(b))return b.value;if(En(b))return ln(b);if(Z(b))return qt(b,a,2)})):Z(e)?t?l=()=>qt(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return d&&d(),et(e,a,3,[f])}:l=ut,t&&r){const b=l;l=()=>ln(b())}let d,f=b=>{d=w.onStop=()=>{qt(b,a,4)}},p;if(cr)if(f=ut,t?n&&et(t,a,3,[l(),u?[]:void 0,f]):l(),s==="sync"){const b=xf();p=b.__watcherHandles||(b.__watcherHandles=[])}else return ut;let g=u?new Array(e.length).fill(Er):Er;const y=()=>{if(w.active)if(t){const b=w.run();(r||c||(u?b.some((E,S)=>sr(E,g[S])):sr(b,g)))&&(d&&d(),et(t,a,3,[b,g===Er?void 0:u&&g[0]===Er?[]:g,f]),g=b)}else w.run()};y.allowRecurse=!!t;let _;s==="sync"?_=y:s==="post"?_=()=>Te(y,a&&a.suspense):(y.pre=!0,a&&(y.id=a.uid),_=()=>Fi(y));const w=new Mi(l,_);t?n?y():g=w.run():s==="post"?Te(w.run.bind(w),a&&a.suspense):w.run();const x=()=>{w.stop(),a&&a.scope&&Ti(a.scope.effects,w)};return p&&p.push(x),x}function jd(e,t,n){const r=this.proxy,s=Ee(e)?e.includes(".")?hl(r,e):()=>r[e]:e.bind(r,r);let i;Z(t)?i=t:(i=t.handler,n=t);const o=_e;kn(this);const a=fl(s,i.bind(r),n);return o?kn(o):dn(),a}function hl(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{ln(n,t)});else if(Va(e))for(const n in e)ln(e[n],t);return e}function Ad(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ws(()=>{e.isMounted=!0}),Hi(()=>{e.isUnmounting=!0}),e}const Je=[Function,Array],kd={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Je,onEnter:Je,onAfterEnter:Je,onEnterCancelled:Je,onBeforeLeave:Je,onLeave:Je,onAfterLeave:Je,onLeaveCancelled:Je,onBeforeAppear:Je,onAppear:Je,onAfterAppear:Je,onAppearCancelled:Je},setup(e,{slots:t}){const n=Ll(),r=Ad();let s;return()=>{const i=t.default&&gl(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const y of i)if(y.type!==dt){o=y;break}}const a=ae(e),{mode:l}=a;if(r.isLeaving)return Is(o);const c=jo(o);if(!c)return Is(o);const u=ei(c,a,r,n);Gr(c,u);const d=n.subTree,f=d&&jo(d);let p=!1;const{getTransitionKey:g}=c.type;if(g){const y=g();s===void 0?s=y:y!==s&&(s=y,p=!0)}if(f&&f.type!==dt&&(!Kt(c,f)||p)){const y=ei(f,a,r,n);if(Gr(f,y),l==="out-in")return r.isLeaving=!0,y.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Is(o);l==="in-out"&&c.type!==dt&&(y.delayLeave=(_,w,x)=>{const b=pl(r,f);b[String(f.key)]=f,_._leaveCb=()=>{w(),_._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=x})}return o}}},Od=kd;function pl(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ei(e,t,n,r){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:y,onAppear:_,onAfterAppear:w,onAppearCancelled:x}=t,b=String(e.key),E=pl(n,e),S=(I,W)=>{I&&et(I,r,9,W)},P=(I,W)=>{const K=W[1];S(I,W),G(I)?I.every(X=>X.length<=1)&&K():I.length<=1&&K()},D={mode:i,persisted:o,beforeEnter(I){let W=a;if(!n.isMounted)if(s)W=y||a;else return;I._leaveCb&&I._leaveCb(!0);const K=E[b];K&&Kt(e,K)&&K.el._leaveCb&&K.el._leaveCb(),S(W,[I])},enter(I){let W=l,K=c,X=u;if(!n.isMounted)if(s)W=_||l,K=w||c,X=x||u;else return;let ce=!1;const ue=I._enterCb=be=>{ce||(ce=!0,be?S(X,[I]):S(K,[I]),D.delayedLeave&&D.delayedLeave(),I._enterCb=void 0)};W?P(W,[I,ue]):ue()},leave(I,W){const K=String(e.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return W();S(d,[I]);let X=!1;const ce=I._leaveCb=ue=>{X||(X=!0,W(),ue?S(g,[I]):S(p,[I]),I._leaveCb=void 0,E[K]===e&&delete E[K])};E[K]=e,f?P(f,[I,ce]):ce()},clone(I){return ei(I,t,n,r)}};return D}function Is(e){if(xs(e))return e=St(e),e.children=null,e}function jo(e){return xs(e)?e.children?e.children[0]:void 0:e}function Gr(e,t){e.shapeFlag&6&&e.component?Gr(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 gl(e,t=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,xs=e=>e.type.__isKeepAlive,Cd={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ll(),r=n.ctx;if(!r.renderer)return()=>{const x=t.default&&t.default();return x&&x.length===1?x[0]:x};const s=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=r,f=d("div");r.activate=(x,b,E,S,P)=>{const D=x.component;c(x,b,E,0,a),l(D.vnode,x,b,E,D,a,S,x.slotScopeIds,P),Te(()=>{D.isDeactivated=!1,D.a&&_n(D.a);const I=x.props&&x.props.onVnodeMounted;I&&Xe(I,D.parent,x)},a)},r.deactivate=x=>{const b=x.component;c(x,f,null,1,a),Te(()=>{b.da&&_n(b.da);const E=x.props&&x.props.onVnodeUnmounted;E&&Xe(E,b.parent,x),b.isDeactivated=!0},a)};function p(x){Bs(x),u(x,n,a,!0)}function g(x){s.forEach((b,E)=>{const S=oi(b.type);S&&(!x||!x(S))&&y(E)})}function y(x){const b=s.get(x);!o||!Kt(b,o)?p(b):o&&Bs(o),s.delete(x),i.delete(x)}Gn(()=>[e.include,e.exclude],([x,b])=>{x&&g(E=>Wn(x,E)),b&&g(E=>!Wn(b,E))},{flush:"post",deep:!0});let _=null;const w=()=>{_!=null&&s.set(_,Ds(n.subTree))};return ws(w),vl(w),Hi(()=>{s.forEach(x=>{const{subTree:b,suspense:E}=n,S=Ds(b);if(x.type===S.type&&x.key===S.key){Bs(S);const P=S.component.da;P&&Te(P,E);return}p(x)})}),()=>{if(_=null,!t.default)return null;const x=t.default(),b=x[0];if(x.length>1)return o=null,x;if(!Jr(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return o=null,b;let E=Ds(b);const S=E.type,P=oi(Yn(E)?E.type.__asyncResolved||{}:S),{include:D,exclude:I,max:W}=e;if(D&&(!P||!Wn(D,P))||I&&P&&Wn(I,P))return o=E,b;const K=E.key==null?S:E.key,X=s.get(K);return E.el&&(E=St(E),b.shapeFlag&128&&(b.ssContent=E)),_=K,X?(E.el=X.el,E.component=X.component,E.transition&&Gr(E,E.transition),E.shapeFlag|=512,i.delete(K),i.add(K)):(i.add(K),W&&i.size>parseInt(W,10)&&y(i.values().next().value)),E.shapeFlag|=256,o=E,dl(b.type)?b:E}}},Td=Cd;function Wn(e,t){return G(e)?e.some(n=>Wn(n,t)):Ee(e)?e.split(",").includes(t):ju(e)?e.test(t):!1}function Sd(e,t){ml(e,"a",t)}function Rd(e,t){ml(e,"da",t)}function ml(e,t,n=_e){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(bs(t,r,n),n){let s=n.parent;for(;s&&s.parent;)xs(s.parent.vnode)&&Md(r,t,n,s),s=s.parent}}function Md(e,t,n,r){const s=bs(t,e,r,!0);xl(()=>{Ti(r[t],s)},n)}function Bs(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ds(e){return e.shapeFlag&128?e.ssContent:e}function bs(e,t,n=_e,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;In(),kn(n);const a=et(t,n,e,o);return dn(),Bn(),a});return r?s.unshift(i):s.push(i),i}}const Lt=e=>(t,n=_e)=>(!cr||e==="sp")&&bs(e,(...r)=>t(...r),n),Ld=Lt("bm"),ws=Lt("m"),Pd=Lt("bu"),vl=Lt("u"),Hi=Lt("bum"),xl=Lt("um"),Id=Lt("sp"),Bd=Lt("rtg"),Dd=Lt("rtc");function Nd(e,t=_e){bs("ec",e,t)}function Pe(e,t){const n=qe;if(n===null)return e;const r=js(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;it(o,a,void 0,i&&i[a]));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,l=o.length;ae?Pl(e)?js(e)||e.proxy:ti(e.parent):null,Jn=Ne(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=>ti(e.parent),$root:e=>ti(e.root),$emit:e=>e.emit,$options:e=>Vi(e),$forceUpdate:e=>e.f||(e.f=()=>Fi(e.update)),$nextTick:e=>e.n||(e.n=Re.bind(e.proxy)),$watch:e=>jd.bind(e)}),Ns=(e,t)=>e!==me&&!e.__isScriptSetup&&ie(e,t),Vd={get({_:e},t){const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Ns(r,t))return o[t]=1,r[t];if(s!==me&&ie(s,t))return o[t]=2,s[t];if((c=e.propsOptions[0])&&ie(c,t))return o[t]=3,i[t];if(n!==me&&ie(n,t))return o[t]=4,n[t];ni&&(o[t]=0)}}const u=Jn[t];let d,f;if(u)return t==="$attrs"&&Ue(e,"get",t),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==me&&ie(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,ie(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return Ns(s,t)?(s[t]=n,!0):r!==me&&ie(r,t)?(r[t]=n,!0):ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||e!==me&&ie(e,o)||Ns(t,o)||(a=i[0])&&ie(a,o)||ie(r,o)||ie(Jn,o)||ie(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let ni=!0;function $d(e){const t=Vi(e),n=e.proxy,r=e.ctx;ni=!1,t.beforeCreate&&ko(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:g,activated:y,deactivated:_,beforeDestroy:w,beforeUnmount:x,destroyed:b,unmounted:E,render:S,renderTracked:P,renderTriggered:D,errorCaptured:I,serverPrefetch:W,expose:K,inheritAttrs:X,components:ce,directives:ue,filters:be}=t;if(c&&zd(c,r,null,e.appContext.config.unwrapInjectedRef),o)for(const q in o){const ee=o[q];Z(ee)&&(r[q]=ee.bind(n))}if(s){const q=s.call(n,n);ge(q)&&(e.data=Dn(q))}if(ni=!0,i)for(const q in i){const ee=i[q],he=Z(ee)?ee.bind(n,n):Z(ee.get)?ee.get.bind(n,n):ut,Fe=!Z(ee)&&Z(ee.set)?ee.set.bind(n):ut,ve=Ze({get:he,set:Fe});Object.defineProperty(r,q,{enumerable:!0,configurable:!0,get:()=>ve.value,set:pe=>ve.value=pe})}if(a)for(const q in a)_l(a[q],r,n,q);if(l){const q=Z(l)?l.call(n):l;Reflect.ownKeys(q).forEach(ee=>{Lr(ee,q[ee])})}u&&ko(u,e,"c");function ne(q,ee){G(ee)?ee.forEach(he=>q(he.bind(n))):ee&&q(ee.bind(n))}if(ne(Ld,d),ne(ws,f),ne(Pd,p),ne(vl,g),ne(Sd,y),ne(Rd,_),ne(Nd,I),ne(Dd,P),ne(Bd,D),ne(Hi,x),ne(xl,E),ne(Id,W),G(K))if(K.length){const q=e.exposed||(e.exposed={});K.forEach(ee=>{Object.defineProperty(q,ee,{get:()=>n[ee],set:he=>n[ee]=he})})}else e.exposed||(e.exposed={});S&&e.render===ut&&(e.render=S),X!=null&&(e.inheritAttrs=X),ce&&(e.components=ce),ue&&(e.directives=ue)}function zd(e,t,n=ut,r=!1){G(e)&&(e=ri(e));for(const s in e){const i=e[s];let o;ge(i)?"default"in i?o=Ot(i.from||s,i.default,!0):o=Ot(i.from||s):o=Ot(i),De(o)&&r?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[s]=o}}function ko(e,t,n){et(G(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function _l(e,t,n,r){const s=r.includes(".")?hl(n,r):()=>n[r];if(Ee(e)){const i=t[e];Z(i)&&Gn(s,i)}else if(Z(e))Gn(s,e.bind(n));else if(ge(e))if(G(e))e.forEach(i=>_l(i,t,n,r));else{const i=Z(e.handler)?e.handler.bind(n):t[e.handler];Z(i)&&Gn(s,i,e)}}function Vi(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(c=>Yr(l,c,o,!0)),Yr(l,t,o)),ge(t)&&i.set(t,l),l}function Yr(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Yr(e,i,n,!0),s&&s.forEach(o=>Yr(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Ud[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Ud={data:Oo,props:Qt,emits:Qt,methods:Qt,computed:Qt,beforeCreate:He,created:He,beforeMount:He,mounted:He,beforeUpdate:He,updated:He,beforeDestroy:He,beforeUnmount:He,destroyed:He,unmounted:He,activated:He,deactivated:He,errorCaptured:He,serverPrefetch:He,components:Qt,directives:Qt,watch:Wd,provide:Oo,inject:Kd};function Oo(e,t){return t?e?function(){return Ne(Z(e)?e.call(this,this):e,Z(t)?t.call(this,this):t)}:t:e}function Kd(e,t){return Qt(ri(e),ri(t))}function ri(e){if(G(e)){const t={};for(let n=0;n0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,p]=jl(d,t,!0);Ne(o,f),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return ge(e)&&r.set(e,bn),bn;if(G(i))for(let u=0;u-1,p[1]=y<0||g-1||ie(p,"default"))&&a.push(d)}}}const c=[o,a];return ge(e)&&r.set(e,c),c}function Co(e){return e[0]!=="$"}function To(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function So(e,t){return To(e)===To(t)}function Ro(e,t){return G(t)?t.findIndex(n=>So(n,e)):Z(t)&&So(t,e)?0:-1}const Al=e=>e[0]==="_"||e==="$stable",$i=e=>G(e)?e.map(pt):[pt(e)],Yd=(e,t,n)=>{if(t._n)return t;const r=Ut((...s)=>$i(t(...s)),n);return r._c=!1,r},kl=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Al(s))continue;const i=e[s];if(Z(i))t[s]=Yd(s,i,r);else if(i!=null){const o=$i(i);t[s]=()=>o}}},Ol=(e,t)=>{const n=$i(t);e.slots.default=()=>n},Jd=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ae(t),Kr(t,"_",n)):kl(t,e.slots={})}else e.slots={},t&&Ol(e,t);Kr(e.slots,Es,1)},Xd=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=me;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(Ne(s,t),!n&&a===1&&delete s._):(i=!t.$stable,kl(t,s)),o=t}else t&&(Ol(e,t),o={default:1});if(i)for(const a in s)!Al(a)&&!(a in o)&&delete s[a]};function Cl(){return{app:null,config:{isNativeTag:wu,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 Qd=0;function Zd(e,t){return function(r,s=null){Z(r)||(r=Object.assign({},r)),s!=null&&!ge(s)&&(s=null);const i=Cl(),o=new Set;let a=!1;const l=i.app={_uid:Qd++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:bf,get config(){return i.config},set config(c){},use(c,...u){return o.has(c)||(c&&Z(c.install)?(o.add(c),c.install(l,...u)):Z(c)&&(o.add(c),c(l,...u))),l},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),l},component(c,u){return u?(i.components[c]=u,l):i.components[c]},directive(c,u){return u?(i.directives[c]=u,l):i.directives[c]},mount(c,u,d){if(!a){const f=xe(r,s);return f.appContext=i,u&&t?t(f,c):e(f,c,d),a=!0,l._container=c,c.__vue_app__=l,js(f.component)||f.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return i.provides[c]=u,l}};return l}}function ii(e,t,n,r,s=!1){if(G(e)){e.forEach((f,p)=>ii(f,t&&(G(t)?t[p]:t),n,r,s));return}if(Yn(r)&&!s)return;const i=r.shapeFlag&4?js(r.component)||r.component.proxy:r.el,o=s?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===me?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(Ee(c)?(u[c]=null,ie(d,c)&&(d[c]=null)):De(c)&&(c.value=null)),Z(l))qt(l,a,12,[o,u]);else{const f=Ee(l),p=De(l);if(f||p){const g=()=>{if(e.f){const y=f?ie(d,l)?d[l]:u[l]:l.value;s?G(y)&&Ti(y,i):G(y)?y.includes(i)||y.push(i):f?(u[l]=[i],ie(d,l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else f?(u[l]=o,ie(d,l)&&(d[l]=o)):p&&(l.value=o,e.k&&(u[e.k]=o))};o?(g.id=-1,Te(g,n)):g()}}}const Te=Ed;function ef(e){return tf(e)}function tf(e,t){const n=Cu();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=ut,insertStaticContent:g}=e,y=(h,m,j,k=null,C=null,M=null,F=!1,R=null,L=!!m.dynamicChildren)=>{if(h===m)return;h&&!Kt(h,m)&&(k=B(h),pe(h,C,M,!0),h=null),m.patchFlag===-2&&(L=!1,m.dynamicChildren=null);const{type:T,ref:z,shapeFlag:H}=m;switch(T){case _s:_(h,m,j,k);break;case dt:w(h,m,j,k);break;case Pr:h==null&&x(m,j,k,F);break;case Oe:ce(h,m,j,k,C,M,F,R,L);break;default:H&1?S(h,m,j,k,C,M,F,R,L):H&6?ue(h,m,j,k,C,M,F,R,L):(H&64||H&128)&&T.process(h,m,j,k,C,M,F,R,L,re)}z!=null&&C&&ii(z,h&&h.ref,M,m||h,!m)},_=(h,m,j,k)=>{if(h==null)r(m.el=a(m.children),j,k);else{const C=m.el=h.el;m.children!==h.children&&c(C,m.children)}},w=(h,m,j,k)=>{h==null?r(m.el=l(m.children||""),j,k):m.el=h.el},x=(h,m,j,k)=>{[h.el,h.anchor]=g(h.children,m,j,k,h.el,h.anchor)},b=({el:h,anchor:m},j,k)=>{let C;for(;h&&h!==m;)C=f(h),r(h,j,k),h=C;r(m,j,k)},E=({el:h,anchor:m})=>{let j;for(;h&&h!==m;)j=f(h),s(h),h=j;s(m)},S=(h,m,j,k,C,M,F,R,L)=>{F=F||m.type==="svg",h==null?P(m,j,k,C,M,F,R,L):W(h,m,C,M,F,R,L)},P=(h,m,j,k,C,M,F,R)=>{let L,T;const{type:z,props:H,shapeFlag:$,transition:Y,dirs:te}=h;if(L=h.el=o(h.type,M,H&&H.is,H),$&8?u(L,h.children):$&16&&I(h.children,L,null,k,C,M&&z!=="foreignObject",F,R),te&&Jt(h,null,k,"created"),D(L,h,h.scopeId,F,k),H){for(const le in H)le!=="value"&&!Mr(le)&&i(L,le,null,H[le],M,h.children,k,C,N);"value"in H&&i(L,"value",null,H.value),(T=H.onVnodeBeforeMount)&&Xe(T,k,h)}te&&Jt(h,null,k,"beforeMount");const de=(!C||C&&!C.pendingBranch)&&Y&&!Y.persisted;de&&Y.beforeEnter(L),r(L,m,j),((T=H&&H.onVnodeMounted)||de||te)&&Te(()=>{T&&Xe(T,k,h),de&&Y.enter(L),te&&Jt(h,null,k,"mounted")},C)},D=(h,m,j,k,C)=>{if(j&&p(h,j),k)for(let M=0;M{for(let T=L;T{const R=m.el=h.el;let{patchFlag:L,dynamicChildren:T,dirs:z}=m;L|=h.patchFlag&16;const H=h.props||me,$=m.props||me;let Y;j&&Xt(j,!1),(Y=$.onVnodeBeforeUpdate)&&Xe(Y,j,m,h),z&&Jt(m,h,j,"beforeUpdate"),j&&Xt(j,!0);const te=C&&m.type!=="foreignObject";if(T?K(h.dynamicChildren,T,R,j,k,te,M):F||ee(h,m,R,null,j,k,te,M,!1),L>0){if(L&16)X(R,m,H,$,j,k,C);else if(L&2&&H.class!==$.class&&i(R,"class",null,$.class,C),L&4&&i(R,"style",H.style,$.style,C),L&8){const de=m.dynamicProps;for(let le=0;le{Y&&Xe(Y,j,m,h),z&&Jt(m,h,j,"updated")},k)},K=(h,m,j,k,C,M,F)=>{for(let R=0;R{if(j!==k){if(j!==me)for(const R in j)!Mr(R)&&!(R in k)&&i(h,R,j[R],null,F,m.children,C,M,N);for(const R in k){if(Mr(R))continue;const L=k[R],T=j[R];L!==T&&R!=="value"&&i(h,R,T,L,F,m.children,C,M,N)}"value"in k&&i(h,"value",j.value,k.value)}},ce=(h,m,j,k,C,M,F,R,L)=>{const T=m.el=h?h.el:a(""),z=m.anchor=h?h.anchor:a("");let{patchFlag:H,dynamicChildren:$,slotScopeIds:Y}=m;Y&&(R=R?R.concat(Y):Y),h==null?(r(T,j,k),r(z,j,k),I(m.children,j,z,C,M,F,R,L)):H>0&&H&64&&$&&h.dynamicChildren?(K(h.dynamicChildren,$,j,C,M,F,R),(m.key!=null||C&&m===C.subTree)&&Tl(h,m,!0)):ee(h,m,j,z,C,M,F,R,L)},ue=(h,m,j,k,C,M,F,R,L)=>{m.slotScopeIds=R,h==null?m.shapeFlag&512?C.ctx.activate(m,j,k,F,L):be(m,j,k,C,M,F,L):Me(h,m,L)},be=(h,m,j,k,C,M,F)=>{const R=h.component=ff(h,k,C);if(xs(h)&&(R.ctx.renderer=re),hf(R),R.asyncDep){if(C&&C.registerDep(R,ne),!h.el){const L=R.subTree=xe(dt);w(null,L,m,j)}return}ne(R,h,m,j,C,M,F)},Me=(h,m,j)=>{const k=m.component=h.component;if(wd(h,m,j))if(k.asyncDep&&!k.asyncResolved){q(k,m,j);return}else k.next=m,hd(k.update),k.update();else m.el=h.el,k.vnode=m},ne=(h,m,j,k,C,M,F)=>{const R=()=>{if(h.isMounted){let{next:z,bu:H,u:$,parent:Y,vnode:te}=h,de=z,le;Xt(h,!1),z?(z.el=te.el,q(h,z,F)):z=te,H&&_n(H),(le=z.props&&z.props.onVnodeBeforeUpdate)&&Xe(le,Y,z,te),Xt(h,!0);const Ae=Ps(h),st=h.subTree;h.subTree=Ae,y(st,Ae,d(st.el),B(st),h,C,M),z.el=Ae.el,de===null&&_d(h,Ae.el),$&&Te($,C),(le=z.props&&z.props.onVnodeUpdated)&&Te(()=>Xe(le,Y,z,te),C)}else{let z;const{el:H,props:$}=m,{bm:Y,m:te,parent:de}=h,le=Yn(m);if(Xt(h,!1),Y&&_n(Y),!le&&(z=$&&$.onVnodeBeforeMount)&&Xe(z,de,m),Xt(h,!0),H&&Q){const Ae=()=>{h.subTree=Ps(h),Q(H,h.subTree,h,C,null)};le?m.type.__asyncLoader().then(()=>!h.isUnmounted&&Ae()):Ae()}else{const Ae=h.subTree=Ps(h);y(null,Ae,j,k,h,C,M),m.el=Ae.el}if(te&&Te(te,C),!le&&(z=$&&$.onVnodeMounted)){const Ae=m;Te(()=>Xe(z,de,Ae),C)}(m.shapeFlag&256||de&&Yn(de.vnode)&&de.vnode.shapeFlag&256)&&h.a&&Te(h.a,C),h.isMounted=!0,m=j=k=null}},L=h.effect=new Mi(R,()=>Fi(T),h.scope),T=h.update=()=>L.run();T.id=h.uid,Xt(h,!0),T()},q=(h,m,j)=>{m.component=h;const k=h.vnode.props;h.vnode=m,h.next=null,Gd(h,m.props,k,j),Xd(h,m.children,j),In(),_o(),Bn()},ee=(h,m,j,k,C,M,F,R,L=!1)=>{const T=h&&h.children,z=h?h.shapeFlag:0,H=m.children,{patchFlag:$,shapeFlag:Y}=m;if($>0){if($&128){Fe(T,H,j,k,C,M,F,R,L);return}else if($&256){he(T,H,j,k,C,M,F,R,L);return}}Y&8?(z&16&&N(T,C,M),H!==T&&u(j,H)):z&16?Y&16?Fe(T,H,j,k,C,M,F,R,L):N(T,C,M,!0):(z&8&&u(j,""),Y&16&&I(H,j,k,C,M,F,R,L))},he=(h,m,j,k,C,M,F,R,L)=>{h=h||bn,m=m||bn;const T=h.length,z=m.length,H=Math.min(T,z);let $;for($=0;$z?N(h,C,M,!0,!1,H):I(m,j,k,C,M,F,R,L,H)},Fe=(h,m,j,k,C,M,F,R,L)=>{let T=0;const z=m.length;let H=h.length-1,$=z-1;for(;T<=H&&T<=$;){const Y=h[T],te=m[T]=L?Ft(m[T]):pt(m[T]);if(Kt(Y,te))y(Y,te,j,null,C,M,F,R,L);else break;T++}for(;T<=H&&T<=$;){const Y=h[H],te=m[$]=L?Ft(m[$]):pt(m[$]);if(Kt(Y,te))y(Y,te,j,null,C,M,F,R,L);else break;H--,$--}if(T>H){if(T<=$){const Y=$+1,te=Y$)for(;T<=H;)pe(h[T],C,M,!0),T++;else{const Y=T,te=T,de=new Map;for(T=te;T<=$;T++){const Ke=m[T]=L?Ft(m[T]):pt(m[T]);Ke.key!=null&&de.set(Ke.key,T)}let le,Ae=0;const st=$-te+1;let gn=!1,co=0;const Hn=new Array(st);for(T=0;T=st){pe(Ke,C,M,!0);continue}let ht;if(Ke.key!=null)ht=de.get(Ke.key);else for(le=te;le<=$;le++)if(Hn[le-te]===0&&Kt(Ke,m[le])){ht=le;break}ht===void 0?pe(Ke,C,M,!0):(Hn[ht-te]=T+1,ht>=co?co=ht:gn=!0,y(Ke,m[ht],j,null,C,M,F,R,L),Ae++)}const uo=gn?nf(Hn):bn;for(le=uo.length-1,T=st-1;T>=0;T--){const Ke=te+T,ht=m[Ke],fo=Ke+1{const{el:M,type:F,transition:R,children:L,shapeFlag:T}=h;if(T&6){ve(h.component.subTree,m,j,k);return}if(T&128){h.suspense.move(m,j,k);return}if(T&64){F.move(h,m,j,re);return}if(F===Oe){r(M,m,j);for(let H=0;HR.enter(M),C);else{const{leave:H,delayLeave:$,afterLeave:Y}=R,te=()=>r(M,m,j),de=()=>{H(M,()=>{te(),Y&&Y()})};$?$(M,te,de):de()}else r(M,m,j)},pe=(h,m,j,k=!1,C=!1)=>{const{type:M,props:F,ref:R,children:L,dynamicChildren:T,shapeFlag:z,patchFlag:H,dirs:$}=h;if(R!=null&&ii(R,null,j,h,!0),z&256){m.ctx.deactivate(h);return}const Y=z&1&&$,te=!Yn(h);let de;if(te&&(de=F&&F.onVnodeBeforeUnmount)&&Xe(de,m,h),z&6)A(h.component,j,k);else{if(z&128){h.suspense.unmount(j,k);return}Y&&Jt(h,null,m,"beforeUnmount"),z&64?h.type.remove(h,m,j,C,re,k):T&&(M!==Oe||H>0&&H&64)?N(T,m,j,!1,!0):(M===Oe&&H&384||!C&&z&16)&&N(L,m,j),k&&Le(h)}(te&&(de=F&&F.onVnodeUnmounted)||Y)&&Te(()=>{de&&Xe(de,m,h),Y&&Jt(h,null,m,"unmounted")},j)},Le=h=>{const{type:m,el:j,anchor:k,transition:C}=h;if(m===Oe){je(j,k);return}if(m===Pr){E(h);return}const M=()=>{s(j),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(h.shapeFlag&1&&C&&!C.persisted){const{leave:F,delayLeave:R}=C,L=()=>F(j,M);R?R(h.el,M,L):L()}else M()},je=(h,m)=>{let j;for(;h!==m;)j=f(h),s(h),h=j;s(m)},A=(h,m,j)=>{const{bum:k,scope:C,update:M,subTree:F,um:R}=h;k&&_n(k),C.stop(),M&&(M.active=!1,pe(F,h,m,j)),R&&Te(R,m),Te(()=>{h.isUnmounted=!0},m),m&&m.pendingBranch&&!m.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===m.pendingId&&(m.deps--,m.deps===0&&m.resolve())},N=(h,m,j,k=!1,C=!1,M=0)=>{for(let F=M;Fh.shapeFlag&6?B(h.component.subTree):h.shapeFlag&128?h.suspense.next():f(h.anchor||h.el),V=(h,m,j)=>{h==null?m._vnode&&pe(m._vnode,null,null,!0):y(m._vnode||null,h,m,null,null,null,j),_o(),ll(),m._vnode=h},re={p:y,um:pe,m:ve,r:Le,mt:be,mc:I,pc:ee,pbc:K,n:B,o:e};let ye,Q;return t&&([ye,Q]=t(re)),{render:V,hydrate:ye,createApp:Zd(V,ye)}}function Xt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Tl(e,t,n=!1){const r=e.children,s=t.children;if(G(r)&&G(s))for(let i=0;i>1,e[n[a]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const rf=e=>e.__isTeleport,Oe=Symbol(void 0),_s=Symbol(void 0),dt=Symbol(void 0),Pr=Symbol(void 0),Xn=[];let ct=null;function U(e=!1){Xn.push(ct=e?null:[])}function sf(){Xn.pop(),ct=Xn[Xn.length-1]||null}let lr=1;function Mo(e){lr+=e}function Sl(e){return e.dynamicChildren=lr>0?ct||bn:null,sf(),lr>0&&ct&&ct.push(e),e}function J(e,t,n,r,s,i){return Sl(v(e,t,n,r,s,i,!0))}function cn(e,t,n,r,s){return Sl(xe(e,t,n,r,s,!0))}function Jr(e){return e?e.__v_isVNode===!0:!1}function Kt(e,t){return e.type===t.type&&e.key===t.key}const Es="__vInternal",Rl=({key:e})=>e??null,Ir=({ref:e,ref_key:t,ref_for:n})=>e!=null?Ee(e)||De(e)||Z(e)?{i:qe,r:e,k:t,f:!!n}:e:null;function v(e,t=null,n=null,r=0,s=null,i=e===Oe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Rl(t),ref:t&&Ir(t),scopeId:vs,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:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:qe};return a?(zi(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Ee(n)?8:16),lr>0&&!o&&ct&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&ct.push(l),l}const xe=of;function of(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===wl)&&(e=dt),Jr(e)){const a=St(e,t,!0);return n&&zi(a,n),lr>0&&!i&&ct&&(a.shapeFlag&6?ct[ct.indexOf(e)]=a:ct.push(a)),a.patchFlag|=-2,a}if(mf(e)&&(e=e.__vccOpts),t){t=af(t);let{class:a,style:l}=t;a&&!Ee(a)&&(t.class=Ie(a)),ge(l)&&(Za(l)&&!G(l)&&(l=Ne({},l)),t.style=Oi(l))}const o=Ee(e)?1:dl(e)?128:rf(e)?64:ge(e)?4:Z(e)?2:0;return v(e,t,n,r,s,o,i,!0)}function af(e){return e?Za(e)||Es in e?Ne({},e):e:null}function St(e,t,n=!1){const{props:r,ref:s,patchFlag:i,children:o}=e,a=t?cf(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Rl(a),ref:t&&t.ref?n&&s?G(s)?s.concat(Ir(t)):[s,Ir(t)]:Ir(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Oe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&St(e.ssContent),ssFallback:e.ssFallback&&St(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function lf(e=" ",t=0){return xe(_s,null,e,t)}function Ml(e,t){const n=xe(Pr,null,e);return n.staticCount=t,n}function we(e="",t=!1){return t?(U(),cn(dt,null,e)):xe(dt,null,e)}function pt(e){return e==null||typeof e=="boolean"?xe(dt):G(e)?xe(Oe,null,e.slice()):typeof e=="object"?Ft(e):xe(_s,null,String(e))}function Ft(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:St(e)}function zi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(G(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),zi(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Es in t)?t._ctx=qe:s===3&&qe&&(qe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Z(t)?(t={default:t,_ctx:qe},n=32):(t=String(t),r&64?(n=16,t=[lf(t)]):n=8);e.children=t,e.shapeFlag|=n}function cf(...e){const t={};for(let n=0;n_e||qe,kn=e=>{_e=e,e.scope.on()},dn=()=>{_e&&_e.scope.off(),_e=null};function Pl(e){return e.vnode.shapeFlag&4}let cr=!1;function hf(e,t=!1){cr=t;const{props:n,children:r}=e.vnode,s=Pl(e);qd(e,n,s,t),Jd(e,r);const i=s?pf(e,t):void 0;return cr=!1,i}function pf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=el(new Proxy(e.ctx,Vd));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?yf(e):null;kn(e),In();const i=qt(r,e,0,[e.props,s]);if(Bn(),dn(),Fa(i)){if(i.then(dn,dn),t)return i.then(o=>{Lo(e,o,t)}).catch(o=>{ys(o,e,0)});e.asyncDep=i}else Lo(e,i,t)}else Il(e,t)}function Lo(e,t,n){Z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=sl(t)),Il(e,n)}let Po;function Il(e,t,n){const r=e.type;if(!e.render){if(!t&&Po&&!r.render){const s=r.template||Vi(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=Ne(Ne({isCustomElement:i,delimiters:a},o),l);r.render=Po(s,c)}}e.render=r.render||ut}kn(e),In(),$d(e),Bn(),dn()}function gf(e){return new Proxy(e.attrs,{get(t,n){return Ue(e,"get","$attrs"),t[n]}})}function yf(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=gf(e))},slots:e.slots,emit:e.emit,expose:t}}function js(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sl(el(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Jn)return Jn[n](e)},has(t,n){return n in t||n in Jn}}))}function oi(e,t=!0){return Z(e)?e.displayName||e.name:e.name||t&&e.__name}function mf(e){return Z(e)&&"__vccOpts"in e}const Ze=(e,t)=>ud(e,t,cr);function Bl(e,t,n){const r=arguments.length;return r===2?ge(t)&&!G(t)?Jr(t)?xe(e,null,[t]):xe(e,t):xe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Jr(n)&&(n=[n]),xe(e,t,n))}const vf=Symbol(""),xf=()=>Ot(vf),bf="3.2.47",wf="http://www.w3.org/2000/svg",tn=typeof document<"u"?document:null,Io=tn&&tn.createElement("template"),_f={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?tn.createElementNS(wf,e):tn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>tn.createTextNode(e),createComment:e=>tn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Io.innerHTML=r?`${e}`:e;const a=Io.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Ef(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function jf(e,t,n){const r=e.style,s=Ee(n);if(n&&!s){if(t&&!Ee(t))for(const i in t)n[i]==null&&ai(r,i,"");for(const i in n)ai(r,i,n[i])}else{const i=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const Bo=/\s*!important$/;function ai(e,t,n){if(G(n))n.forEach(r=>ai(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Af(e,t);Bo.test(n)?e.setProperty(pn(r),n.replace(Bo,""),"important"):e[r]=n}}const Do=["Webkit","Moz","ms"],Fs={};function Af(e,t){const n=Fs[t];if(n)return n;let r=_t(t);if(r!=="filter"&&r in e)return Fs[t]=r;r=ps(r);for(let s=0;sHs||(Rf.then(()=>Hs=0),Hs=Date.now());function Lf(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;et(Pf(r,n.value),t,5,[r])};return n.value=e,n.attached=Mf(),n}function Pf(e,t){if(G(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Ho=/^on[a-z]/,If=(e,t,n,r,s=!1,i,o,a,l)=>{t==="class"?Ef(e,r,s):t==="style"?jf(e,n,r):ds(t)?Ci(t)||Tf(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Bf(e,t,r,s))?Of(e,t,r,i,o,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),kf(e,t,r,s))};function Bf(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Ho.test(t)&&Z(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ho.test(t)&&Ee(n)?!1:t in e}const Df={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};Od.props;const Xr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return G(t)?n=>_n(t,n):t};function Nf(e){e.target.composing=!0}function Vo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ve={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=Xr(s);const i=r||s.props&&s.props.type==="number";nn(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=Gs(a)),e._assign(a)}),n&&nn(e,"change",()=>{e.value=e.value.trim()}),t||(nn(e,"compositionstart",Nf),nn(e,"compositionend",Vo),nn(e,"change",Vo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},i){if(e._assign=Xr(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(s||e.type==="number")&&Gs(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},Ff={deep:!0,created(e,t,n){e._assign=Xr(n),nn(e,"change",()=>{const r=e._modelValue,s=Hf(e),i=e.checked,o=e._assign;if(G(r)){const a=Da(r,s),l=a!==-1;if(i&&!l)o(r.concat(s));else if(!i&&l){const c=[...r];c.splice(a,1),o(c)}}else if(fs(r)){const a=new Set(r);i?a.add(s):a.delete(s),o(a)}else o(Dl(e,i))})},mounted:$o,beforeUpdate(e,t,n){e._assign=Xr(n),$o(e,t,n)}};function $o(e,{value:t,oldValue:n},r){e._modelValue=t,G(t)?e.checked=Da(t,r.props.value)>-1:fs(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=us(t,Dl(e,!0)))}function Hf(e){return"_value"in e?e._value:e.value}function Dl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Vf=["ctrl","shift","alt","meta"],$f={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)=>Vf.some(n=>e[`${n}Key`]&&!t.includes(n))},Se=(e,t)=>(n,...r)=>{for(let s=0;sn=>{if(!("key"in n))return;const r=pn(n.key);if(t.some(s=>s===r||zf[s]===r))return e(n)},Uf=Ne({patchProp:If},_f);let zo;function Kf(){return zo||(zo=ef(Uf))}const Wf=(...e)=>{const t=Kf().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=qf(r);if(!s)return;const i=t._component;!Z(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function qf(e){return Ee(e)?document.querySelector(e):e}/*! - * vue-router v4.1.6 - * (c) 2022 Eduardo San Martin Morote - * @license MIT - */const mn=typeof window<"u";function Gf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const fe=Object.assign;function Vs(e,t){const n={};for(const r in t){const s=t[r];n[r]=ft(s)?s.map(e):e(s)}return n}const Qn=()=>{},ft=Array.isArray,Yf=/\/$/,Jf=e=>e.replace(Yf,"");function $s(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=eh(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:o}}function Xf(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Uo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Qf(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&On(t.matched[r],n.matched[s])&&Nl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function On(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Nl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Zf(e[n],t[n]))return!1;return!0}function Zf(e,t){return ft(e)?Ko(e,t):ft(t)?Ko(t,e):e===t}function Ko(e,t){return ft(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function eh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let s=n.length-1,i,o;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var ur;(function(e){e.pop="pop",e.push="push"})(ur||(ur={}));var Zn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Zn||(Zn={}));function th(e){if(!e)if(mn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Jf(e)}const nh=/^[^#]+#/;function rh(e,t){return e.replace(nh,"#")+t}function sh(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const As=()=>({left:window.pageXOffset,top:window.pageYOffset});function ih(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=sh(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Wo(e,t){return(history.state?history.state.position-t:-1)+e}const ci=new Map;function oh(e,t){ci.set(e,t)}function ah(e){const t=ci.get(e);return ci.delete(e),t}let lh=()=>location.protocol+"//"+location.host;function Fl(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),Uo(l,"")}return Uo(n,e)+r+s}function ch(e,t,n,r){let s=[],i=[],o=null;const a=({state:f})=>{const p=Fl(e,location),g=n.value,y=t.value;let _=0;if(f){if(n.value=p,t.value=f,o&&o===g){o=null;return}_=y?f.position-y.position:0}else r(p);s.forEach(w=>{w(n.value,g,{delta:_,type:ur.pop,direction:_?_>0?Zn.forward:Zn.back:Zn.unknown})})};function l(){o=n.value}function c(f){s.push(f);const p=()=>{const g=s.indexOf(f);g>-1&&s.splice(g,1)};return i.push(p),p}function u(){const{history:f}=window;f.state&&f.replaceState(fe({},f.state,{scroll:As()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:c,destroy:d}}function qo(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?As():null}}function uh(e){const{history:t,location:n}=window,r={value:Fl(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:lh()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),s.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function o(l,c){const u=fe({},t.state,qo(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});i(l,u,!0),r.value=l}function a(l,c){const u=fe({},s.value,t.state,{forward:l,scroll:As()});i(u.current,u,!0);const d=fe({},qo(r.value,l,null),{position:u.position+1},c);i(l,d,!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function dh(e){e=th(e);const t=uh(e),n=ch(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=fe({location:"",base:e,go:r,createHref:rh.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function fh(e){return typeof e=="string"||e&&typeof e=="object"}function Hl(e){return typeof e=="string"||typeof e=="symbol"}const Dt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Vl=Symbol("");var Go;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Go||(Go={}));function Cn(e,t){return fe(new Error,{type:e,[Vl]:!0},t)}function At(e,t){return e instanceof Error&&Vl in e&&(t==null||!!(e.type&t))}const Yo="[^/]+?",hh={sensitive:!1,strict:!1,start:!0,end:!0},ph=/[.+*?^${}()[\]/\\]/g;function gh(e,t){const n=fe({},hh,t),r=[];let s=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function mh(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const vh={type:0,value:""},xh=/[a-zA-Z0-9_]/;function bh(e){if(!e)return[[]];if(e==="/")return[[vh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,c="",u="";function d(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.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{o(x)}:Qn}function o(u){if(Hl(u)){const d=r.get(u);d&&(r.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&r.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function l(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!$l(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!Qo(u)&&r.set(u.record.name,u)}function c(u,d){let f,p={},g,y;if("name"in u&&u.name){if(f=r.get(u.name),!f)throw Cn(1,{location:u});y=f.record.name,p=fe(Xo(d.params,f.keys.filter(x=>!x.optional).map(x=>x.name)),u.params&&Xo(u.params,f.keys.map(x=>x.name))),g=f.stringify(p)}else if("path"in u)g=u.path,f=n.find(x=>x.re.test(g)),f&&(p=f.parse(g),y=f.record.name);else{if(f=d.name?r.get(d.name):n.find(x=>x.re.test(d.path)),!f)throw Cn(1,{location:u,currentLocation:d});y=f.record.name,p=fe({},d.params,u.params),g=f.stringify(p)}const _=[];let w=f;for(;w;)_.unshift(w.record),w=w.parent;return{name:y,path:g,params:p,matched:_,meta:Ah(_)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function Xo(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Eh(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:jh(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 jh(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function Qo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ah(e){return e.reduce((t,n)=>fe(t,n.meta),{})}function Zo(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function $l(e,t){return t.children.some(n=>n===e||$l(e,n))}const zl=/#/g,kh=/&/g,Oh=/\//g,Ch=/=/g,Th=/\?/g,Ul=/\+/g,Sh=/%5B/g,Rh=/%5D/g,Kl=/%5E/g,Mh=/%60/g,Wl=/%7B/g,Lh=/%7C/g,ql=/%7D/g,Ph=/%20/g;function Ui(e){return encodeURI(""+e).replace(Lh,"|").replace(Sh,"[").replace(Rh,"]")}function Ih(e){return Ui(e).replace(Wl,"{").replace(ql,"}").replace(Kl,"^")}function ui(e){return Ui(e).replace(Ul,"%2B").replace(Ph,"+").replace(zl,"%23").replace(kh,"%26").replace(Mh,"`").replace(Wl,"{").replace(ql,"}").replace(Kl,"^")}function Bh(e){return ui(e).replace(Ch,"%3D")}function Dh(e){return Ui(e).replace(zl,"%23").replace(Th,"%3F")}function Nh(e){return e==null?"":Dh(e).replace(Oh,"%2F")}function Qr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Fh(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&ui(i)):[r&&ui(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Hh(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ft(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Vh=Symbol(""),ta=Symbol(""),Ki=Symbol(""),Gl=Symbol(""),di=Symbol("");function Vn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Ht(e,t,n,r,s){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((o,a)=>{const l=d=>{d===!1?a(Cn(4,{from:n,to:t})):d instanceof Error?a(d):fh(d)?a(Cn(2,{from:t,to:d})):(i&&r.enterCallbacks[s]===i&&typeof d=="function"&&i.push(d),o())},c=e.call(r&&r.instances[s],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(d=>a(d))})}function zs(e,t,n,r){const s=[];for(const i of e)for(const o in i.components){let a=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if($h(a)){const c=(a.__vccOpts||a)[t];c&&s.push(Ht(c,n,r,i,o))}else{let l=a();s.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const u=Gf(c)?c.default:c;i.components[o]=u;const f=(u.__vccOpts||u)[t];return f&&Ht(f,n,r,i,o)()}))}}return s}function $h(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function na(e){const t=Ot(Ki),n=Ot(Gl),r=Ze(()=>t.resolve(We(e.to))),s=Ze(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(On.bind(null,u));if(f>-1)return f;const p=ra(l[c-2]);return c>1&&ra(u)===p&&d[d.length-1].path!==p?d.findIndex(On.bind(null,l[c-2])):f}),i=Ze(()=>s.value>-1&&Kh(n.params,r.value.params)),o=Ze(()=>s.value>-1&&s.value===n.matched.length-1&&Nl(n.params,r.value.params));function a(l={}){return Uh(l)?t[We(e.replace)?"replace":"push"](We(e.to)).catch(Qn):Promise.resolve()}return{route:r,href:Ze(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}const zh=yl({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:na,setup(e,{slots:t}){const n=Dn(na(e)),{options:r}=Ot(Ki),s=Ze(()=>({[sa(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[sa(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Bl("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),rn=zh;function Uh(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 Kh(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!ft(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function ra(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const sa=(e,t,n)=>e??t??n,Wh=yl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ot(di),s=Ze(()=>e.route||r.value),i=Ot(ta,0),o=Ze(()=>{let c=We(i);const{matched:u}=s.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=Ze(()=>s.value.matched[o.value]);Lr(ta,Ze(()=>o.value+1)),Lr(Vh,a),Lr(di,s);const l=id();return Gn(()=>[l.value,a.value,e.name],([c,u,d],[f,p,g])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!On(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(y=>y(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return ia(n.default,{Component:f,route:c});const p=d.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,_=Bl(f,fe({},g,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return ia(n.default,{Component:_,route:c})||_}}});function ia(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Yl=Wh;function qh(e){const t=_h(e.routes,e),n=e.parseQuery||Fh,r=e.stringifyQuery||ea,s=e.history,i=Vn(),o=Vn(),a=Vn(),l=od(Dt);let c=Dt;mn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Vs.bind(null,A=>""+A),d=Vs.bind(null,Nh),f=Vs.bind(null,Qr);function p(A,N){let B,V;return Hl(A)?(B=t.getRecordMatcher(A),V=N):V=A,t.addRoute(V,B)}function g(A){const N=t.getRecordMatcher(A);N&&t.removeRoute(N)}function y(){return t.getRoutes().map(A=>A.record)}function _(A){return!!t.getRecordMatcher(A)}function w(A,N){if(N=fe({},N||l.value),typeof A=="string"){const h=$s(n,A,N.path),m=t.resolve({path:h.path},N),j=s.createHref(h.fullPath);return fe(h,m,{params:f(m.params),hash:Qr(h.hash),redirectedFrom:void 0,href:j})}let B;if("path"in A)B=fe({},A,{path:$s(n,A.path,N.path).path});else{const h=fe({},A.params);for(const m in h)h[m]==null&&delete h[m];B=fe({},A,{params:d(A.params)}),N.params=d(N.params)}const V=t.resolve(B,N),re=A.hash||"";V.params=u(f(V.params));const ye=Xf(r,fe({},A,{hash:Ih(re),path:V.path})),Q=s.createHref(ye);return fe({fullPath:ye,hash:re,query:r===ea?Hh(A.query):A.query||{}},V,{redirectedFrom:void 0,href:Q})}function x(A){return typeof A=="string"?$s(n,A,l.value.path):fe({},A)}function b(A,N){if(c!==A)return Cn(8,{from:N,to:A})}function E(A){return D(A)}function S(A){return E(fe(x(A),{replace:!0}))}function P(A){const N=A.matched[A.matched.length-1];if(N&&N.redirect){const{redirect:B}=N;let V=typeof B=="function"?B(A):B;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=x(V):{path:V},V.params={}),fe({query:A.query,hash:A.hash,params:"path"in V?{}:A.params},V)}}function D(A,N){const B=c=w(A),V=l.value,re=A.state,ye=A.force,Q=A.replace===!0,h=P(B);if(h)return D(fe(x(h),{state:typeof h=="object"?fe({},re,h.state):re,force:ye,replace:Q}),N||B);const m=B;m.redirectedFrom=N;let j;return!ye&&Qf(r,V,B)&&(j=Cn(16,{to:m,from:V}),Fe(V,V,!0,!1)),(j?Promise.resolve(j):W(m,V)).catch(k=>At(k)?At(k,2)?k:he(k):q(k,m,V)).then(k=>{if(k){if(At(k,2))return D(fe({replace:Q},x(k.to),{state:typeof k.to=="object"?fe({},re,k.to.state):re,force:ye}),N||m)}else k=X(m,V,!0,Q,re);return K(m,V,k),k})}function I(A,N){const B=b(A,N);return B?Promise.reject(B):Promise.resolve()}function W(A,N){let B;const[V,re,ye]=Gh(A,N);B=zs(V.reverse(),"beforeRouteLeave",A,N);for(const h of V)h.leaveGuards.forEach(m=>{B.push(Ht(m,A,N))});const Q=I.bind(null,A,N);return B.push(Q),yn(B).then(()=>{B=[];for(const h of i.list())B.push(Ht(h,A,N));return B.push(Q),yn(B)}).then(()=>{B=zs(re,"beforeRouteUpdate",A,N);for(const h of re)h.updateGuards.forEach(m=>{B.push(Ht(m,A,N))});return B.push(Q),yn(B)}).then(()=>{B=[];for(const h of A.matched)if(h.beforeEnter&&!N.matched.includes(h))if(ft(h.beforeEnter))for(const m of h.beforeEnter)B.push(Ht(m,A,N));else B.push(Ht(h.beforeEnter,A,N));return B.push(Q),yn(B)}).then(()=>(A.matched.forEach(h=>h.enterCallbacks={}),B=zs(ye,"beforeRouteEnter",A,N),B.push(Q),yn(B))).then(()=>{B=[];for(const h of o.list())B.push(Ht(h,A,N));return B.push(Q),yn(B)}).catch(h=>At(h,8)?h:Promise.reject(h))}function K(A,N,B){for(const V of a.list())V(A,N,B)}function X(A,N,B,V,re){const ye=b(A,N);if(ye)return ye;const Q=N===Dt,h=mn?history.state:{};B&&(V||Q?s.replace(A.fullPath,fe({scroll:Q&&h&&h.scroll},re)):s.push(A.fullPath,re)),l.value=A,Fe(A,N,B,Q),he()}let ce;function ue(){ce||(ce=s.listen((A,N,B)=>{if(!je.listening)return;const V=w(A),re=P(V);if(re){D(fe(re,{replace:!0}),V).catch(Qn);return}c=V;const ye=l.value;mn&&oh(Wo(ye.fullPath,B.delta),As()),W(V,ye).catch(Q=>At(Q,12)?Q:At(Q,2)?(D(Q.to,V).then(h=>{At(h,20)&&!B.delta&&B.type===ur.pop&&s.go(-1,!1)}).catch(Qn),Promise.reject()):(B.delta&&s.go(-B.delta,!1),q(Q,V,ye))).then(Q=>{Q=Q||X(V,ye,!1),Q&&(B.delta&&!At(Q,8)?s.go(-B.delta,!1):B.type===ur.pop&&At(Q,20)&&s.go(-1,!1)),K(V,ye,Q)}).catch(Qn)}))}let be=Vn(),Me=Vn(),ne;function q(A,N,B){he(A);const V=Me.list();return V.length?V.forEach(re=>re(A,N,B)):console.error(A),Promise.reject(A)}function ee(){return ne&&l.value!==Dt?Promise.resolve():new Promise((A,N)=>{be.add([A,N])})}function he(A){return ne||(ne=!A,ue(),be.list().forEach(([N,B])=>A?B(A):N()),be.reset()),A}function Fe(A,N,B,V){const{scrollBehavior:re}=e;if(!mn||!re)return Promise.resolve();const ye=!B&&ah(Wo(A.fullPath,0))||(V||!B)&&history.state&&history.state.scroll||null;return Re().then(()=>re(A,N,ye)).then(Q=>Q&&ih(Q)).catch(Q=>q(Q,A,N))}const ve=A=>s.go(A);let pe;const Le=new Set,je={currentRoute:l,listening:!0,addRoute:p,removeRoute:g,hasRoute:_,getRoutes:y,resolve:w,options:e,push:E,replace:S,go:ve,back:()=>ve(-1),forward:()=>ve(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:Me.add,isReady:ee,install(A){const N=this;A.component("RouterLink",rn),A.component("RouterView",Yl),A.config.globalProperties.$router=N,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>We(l)}),mn&&!pe&&l.value===Dt&&(pe=!0,E(s.location).catch(re=>{}));const B={};for(const re in Dt)B[re]=Ze(()=>l.value[re]);A.provide(Ki,N),A.provide(Gl,Dn(B)),A.provide(di,l);const V=A.unmount;Le.add(A),A.unmount=function(){Le.delete(A),Le.size<1&&(c=Dt,ce&&ce(),ce=null,l.value=Dt,pe=!1,ne=!1),V()}}};return je}function yn(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function Gh(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oOn(c,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(c=>On(c,l))||s.push(l))}return[n,r,s]}const Jl="/assets/logo-9d653710.svg";var Yh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fi={},Xh={get exports(){return fi},set exports(e){fi=e}};(function(e,t){(function(r,s){e.exports=s()})(typeof self<"u"?self:Yh,function(){return function(n){var r={};function s(i){if(r[i])return r[i].exports;var o=r[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,s),o.l=!0,o.exports}return s.m=n,s.c=r,s.d=function(i,o,a){s.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:a})},s.r=function(i){Object.defineProperty(i,"__esModule",{value:!0})},s.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return s.d(o,"a",o),o},s.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},s.p="",s(s.s=0)}({"./dist/icons.json":function(n){n.exports={activity:'',airplay:'',"alert-circle":'',"alert-octagon":'',"alert-triangle":'',"align-center":'',"align-justify":'',"align-left":'',"align-right":'',anchor:'',aperture:'',archive:'',"arrow-down-circle":'',"arrow-down-left":'',"arrow-down-right":'',"arrow-down":'',"arrow-left-circle":'',"arrow-left":'',"arrow-right-circle":'',"arrow-right":'',"arrow-up-circle":'',"arrow-up-left":'',"arrow-up-right":'',"arrow-up":'',"at-sign":'',award:'',"bar-chart-2":'',"bar-chart":'',"battery-charging":'',battery:'',"bell-off":'',bell:'',bluetooth:'',bold:'',"book-open":'',book:'',bookmark:'',box:'',briefcase:'',calendar:'',"camera-off":'',camera:'',cast:'',"check-circle":'',"check-square":'',check:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',"chevrons-down":'',"chevrons-left":'',"chevrons-right":'',"chevrons-up":'',chrome:'',circle:'',clipboard:'',clock:'',"cloud-drizzle":'',"cloud-lightning":'',"cloud-off":'',"cloud-rain":'',"cloud-snow":'',cloud:'',code:'',codepen:'',codesandbox:'',coffee:'',columns:'',command:'',compass:'',copy:'',"corner-down-left":'',"corner-down-right":'',"corner-left-down":'',"corner-left-up":'',"corner-right-down":'',"corner-right-up":'',"corner-up-left":'',"corner-up-right":'',cpu:'',"credit-card":'',crop:'',crosshair:'',database:'',delete:'',disc:'',"divide-circle":'',"divide-square":'',divide:'',"dollar-sign":'',"download-cloud":'',download:'',dribbble:'',droplet:'',"edit-2":'',"edit-3":'',edit:'',"external-link":'',"eye-off":'',eye:'',facebook:'',"fast-forward":'',feather:'',figma:'',"file-minus":'',"file-plus":'',"file-text":'',file:'',film:'',filter:'',flag:'',"folder-minus":'',"folder-plus":'',folder:'',framer:'',frown:'',gift:'',"git-branch":'',"git-commit":'',"git-merge":'',"git-pull-request":'',github:'',gitlab:'',globe:'',grid:'',"hard-drive":'',hash:'',headphones:'',heart:'',"help-circle":'',hexagon:'',home:'',image:'',inbox:'',info:'',instagram:'',italic:'',key:'',layers:'',layout:'',"life-buoy":'',"link-2":'',link:'',linkedin:'',list:'',loader:'',lock:'',"log-in":'',"log-out":'',mail:'',"map-pin":'',map:'',"maximize-2":'',maximize:'',meh:'',menu:'',"message-circle":'',"message-square":'',"mic-off":'',mic:'',"minimize-2":'',minimize:'',"minus-circle":'',"minus-square":'',minus:'',monitor:'',moon:'',"more-horizontal":'',"more-vertical":'',"mouse-pointer":'',move:'',music:'',"navigation-2":'',navigation:'',octagon:'',package:'',paperclip:'',"pause-circle":'',pause:'',"pen-tool":'',percent:'',"phone-call":'',"phone-forwarded":'',"phone-incoming":'',"phone-missed":'',"phone-off":'',"phone-outgoing":'',phone:'',"pie-chart":'',"play-circle":'',play:'',"plus-circle":'',"plus-square":'',plus:'',pocket:'',power:'',printer:'',radio:'',"refresh-ccw":'',"refresh-cw":'',repeat:'',rewind:'',"rotate-ccw":'',"rotate-cw":'',rss:'',save:'',scissors:'',search:'',send:'',server:'',settings:'',"share-2":'',share:'',"shield-off":'',shield:'',"shopping-bag":'',"shopping-cart":'',shuffle:'',sidebar:'',"skip-back":'',"skip-forward":'',slack:'',slash:'',sliders:'',smartphone:'',smile:'',speaker:'',square:'',star:'',"stop-circle":'',sun:'',sunrise:'',sunset:'',table:'',tablet:'',tag:'',target:'',terminal:'',thermometer:'',"thumbs-down":'',"thumbs-up":'',"toggle-left":'',"toggle-right":'',tool:'',"trash-2":'',trash:'',trello:'',"trending-down":'',"trending-up":'',triangle:'',truck:'',tv:'',twitch:'',twitter:'',type:'',umbrella:'',underline:'',unlock:'',"upload-cloud":'',upload:'',"user-check":'',"user-minus":'',"user-plus":'',"user-x":'',user:'',users:'',"video-off":'',video:'',voicemail:'',"volume-1":'',"volume-2":'',"volume-x":'',volume:'',watch:'',"wifi-off":'',wifi:'',wind:'',"x-circle":'',"x-octagon":'',"x-square":'',x:'',youtube:'',"zap-off":'',zap:'',"zoom-in":'',"zoom-out":''}},"./node_modules/classnames/dedupe.js":function(n,r,s){var i,o;/*! - Copyright (c) 2016 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(){var a=function(){function l(){}l.prototype=Object.create(null);function c(w,x){for(var b=x.length,E=0;E1?arguments[1]:void 0,x=w!==void 0,b=0,E=d(g),S,P,D,I;if(x&&(w=i(w,_>2?arguments[2]:void 0,2)),E!=null&&!(y==Array&&l(E)))for(I=E.call(g),P=new y;!(D=I.next()).done;b++)u(P,b,x?a(I,w,[D.value,b],!0):D.value);else for(S=c(g.length),P=new y(S);S>b;b++)u(P,b,x?w(g[b],b):g[b]);return P.length=b,P}},"./node_modules/core-js/internals/array-includes.js":function(n,r,s){var i=s("./node_modules/core-js/internals/to-indexed-object.js"),o=s("./node_modules/core-js/internals/to-length.js"),a=s("./node_modules/core-js/internals/to-absolute-index.js");n.exports=function(l){return function(c,u,d){var f=i(c),p=o(f.length),g=a(d,p),y;if(l&&u!=u){for(;p>g;)if(y=f[g++],y!=y)return!0}else for(;p>g;g++)if((l||g in f)&&f[g]===u)return l||g||0;return!l&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(n,r,s){var i=s("./node_modules/core-js/internals/a-function.js");n.exports=function(o,a,l){if(i(o),a===void 0)return o;switch(l){case 0:return function(){return o.call(a)};case 1:return function(c){return o.call(a,c)};case 2:return function(c,u){return o.call(a,c,u)};case 3:return function(c,u,d){return o.call(a,c,u,d)}}return function(){return o.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(n,r,s){var i=s("./node_modules/core-js/internals/an-object.js");n.exports=function(o,a,l,c){try{return c?a(i(l)[0],l[1]):a(l)}catch(d){var u=o.return;throw u!==void 0&&i(u.call(o)),d}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(n,r,s){var i=s("./node_modules/core-js/internals/well-known-symbol.js"),o=i("iterator"),a=!1;try{var l=0,c={next:function(){return{done:!!l++}},return:function(){a=!0}};c[o]=function(){return this},Array.from(c,function(){throw 2})}catch{}n.exports=function(u,d){if(!d&&!a)return!1;var f=!1;try{var p={};p[o]=function(){return{next:function(){return{done:f=!0}}}},u(p)}catch{}return f}},"./node_modules/core-js/internals/classof-raw.js":function(n,r){var s={}.toString;n.exports=function(i){return s.call(i).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(n,r,s){var i=s("./node_modules/core-js/internals/classof-raw.js"),o=s("./node_modules/core-js/internals/well-known-symbol.js"),a=o("toStringTag"),l=i(function(){return arguments}())=="Arguments",c=function(u,d){try{return u[d]}catch{}};n.exports=function(u){var d,f,p;return u===void 0?"Undefined":u===null?"Null":typeof(f=c(d=Object(u),a))=="string"?f:l?i(d):(p=i(d))=="Object"&&typeof d.callee=="function"?"Arguments":p}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(n,r,s){var i=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/own-keys.js"),a=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),l=s("./node_modules/core-js/internals/object-define-property.js");n.exports=function(c,u){for(var d=o(u),f=l.f,p=a.f,g=0;g",S="java"+b+":",P;for(_.style.display="none",c.appendChild(_),_.src=String(S),P=_.contentWindow.document,P.open(),P.write(x+b+E+"document.F=Object"+x+"/"+b+E),P.close(),y=P.F;w--;)delete y[p][a[w]];return y()};n.exports=Object.create||function(w,x){var b;return w!==null?(g[p]=i(w),b=new g,g[p]=null,b[f]=w):b=y(),x===void 0?b:o(b,x)},l[f]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(n,r,s){var i=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/object-keys.js");n.exports=i?Object.defineProperties:function(u,d){a(u);for(var f=l(d),p=f.length,g=0,y;p>g;)o.f(u,y=f[g++],d[y]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(n,r,s){var i=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/ie8-dom-define.js"),a=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/to-primitive.js"),c=Object.defineProperty;r.f=i?c:function(d,f,p){if(a(d),f=l(f,!0),a(p),o)try{return c(d,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(d[f]=p.value),d}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(n,r,s){var i=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js"),l=s("./node_modules/core-js/internals/to-indexed-object.js"),c=s("./node_modules/core-js/internals/to-primitive.js"),u=s("./node_modules/core-js/internals/has.js"),d=s("./node_modules/core-js/internals/ie8-dom-define.js"),f=Object.getOwnPropertyDescriptor;r.f=i?f:function(g,y){if(g=l(g),y=c(y,!0),d)try{return f(g,y)}catch{}if(u(g,y))return a(!o.f.call(g,y),g[y])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(n,r,s){var i=s("./node_modules/core-js/internals/object-keys-internal.js"),o=s("./node_modules/core-js/internals/enum-bug-keys.js"),a=o.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(c){return i(c,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(n,r){r.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(n,r,s){var i=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/to-object.js"),a=s("./node_modules/core-js/internals/shared-key.js"),l=s("./node_modules/core-js/internals/correct-prototype-getter.js"),c=a("IE_PROTO"),u=Object.prototype;n.exports=l?Object.getPrototypeOf:function(d){return d=o(d),i(d,c)?d[c]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?u:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(n,r,s){var i=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/to-indexed-object.js"),a=s("./node_modules/core-js/internals/array-includes.js"),l=s("./node_modules/core-js/internals/hidden-keys.js"),c=a(!1);n.exports=function(u,d){var f=o(u),p=0,g=[],y;for(y in f)!i(l,y)&&i(f,y)&&g.push(y);for(;d.length>p;)i(f,y=d[p++])&&(~c(g,y)||g.push(y));return g}},"./node_modules/core-js/internals/object-keys.js":function(n,r,s){var i=s("./node_modules/core-js/internals/object-keys-internal.js"),o=s("./node_modules/core-js/internals/enum-bug-keys.js");n.exports=Object.keys||function(l){return i(l,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(n,r,s){var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!i.call({1:2},1);r.f=a?function(c){var u=o(this,c);return!!u&&u.enumerable}:i},"./node_modules/core-js/internals/object-set-prototype-of.js":function(n,r,s){var i=s("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,a={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(a,[]),o=a instanceof Array}catch{}return function(u,d){return i(u,d),o?l.call(u,d):u.__proto__=d,u}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(n,r,s){var i=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/object-get-own-property-names.js"),a=s("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=s("./node_modules/core-js/internals/an-object.js"),c=i.Reflect;n.exports=c&&c.ownKeys||function(d){var f=o.f(l(d)),p=a.f;return p?f.concat(p(d)):f}},"./node_modules/core-js/internals/path.js":function(n,r,s){n.exports=s("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(n,r,s){var i=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/hide.js"),l=s("./node_modules/core-js/internals/has.js"),c=s("./node_modules/core-js/internals/set-global.js"),u=s("./node_modules/core-js/internals/function-to-string.js"),d=s("./node_modules/core-js/internals/internal-state.js"),f=d.get,p=d.enforce,g=String(u).split("toString");o("inspectSource",function(y){return u.call(y)}),(n.exports=function(y,_,w,x){var b=x?!!x.unsafe:!1,E=x?!!x.enumerable:!1,S=x?!!x.noTargetGet:!1;if(typeof w=="function"&&(typeof _=="string"&&!l(w,"name")&&a(w,"name",_),p(w).source=g.join(typeof _=="string"?_:"")),y===i){E?y[_]=w:c(_,w);return}else b?!S&&y[_]&&(E=!0):delete y[_];E?y[_]=w:a(y,_,w)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||u.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(n,r){n.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"./node_modules/core-js/internals/set-global.js":function(n,r,s){var i=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/hide.js");n.exports=function(a,l){try{o(i,a,l)}catch{i[a]=l}return l}},"./node_modules/core-js/internals/set-to-string-tag.js":function(n,r,s){var i=s("./node_modules/core-js/internals/object-define-property.js").f,o=s("./node_modules/core-js/internals/has.js"),a=s("./node_modules/core-js/internals/well-known-symbol.js"),l=a("toStringTag");n.exports=function(c,u,d){c&&!o(c=d?c:c.prototype,l)&&i(c,l,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(n,r,s){var i=s("./node_modules/core-js/internals/shared.js"),o=s("./node_modules/core-js/internals/uid.js"),a=i("keys");n.exports=function(l){return a[l]||(a[l]=o(l))}},"./node_modules/core-js/internals/shared.js":function(n,r,s){var i=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/set-global.js"),a=s("./node_modules/core-js/internals/is-pure.js"),l="__core-js_shared__",c=i[l]||o(l,{});(n.exports=function(u,d){return c[u]||(c[u]=d!==void 0?d:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(n,r,s){var i=s("./node_modules/core-js/internals/to-integer.js"),o=s("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a,l,c){var u=String(o(a)),d=i(l),f=u.length,p,g;return d<0||d>=f?c?"":void 0:(p=u.charCodeAt(d),p<55296||p>56319||d+1===f||(g=u.charCodeAt(d+1))<56320||g>57343?c?u.charAt(d):p:c?u.slice(d,d+2):(p-55296<<10)+(g-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(n,r,s){var i=s("./node_modules/core-js/internals/to-integer.js"),o=Math.max,a=Math.min;n.exports=function(l,c){var u=i(l);return u<0?o(u+c,0):a(u,c)}},"./node_modules/core-js/internals/to-indexed-object.js":function(n,r,s){var i=s("./node_modules/core-js/internals/indexed-object.js"),o=s("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a){return i(o(a))}},"./node_modules/core-js/internals/to-integer.js":function(n,r){var s=Math.ceil,i=Math.floor;n.exports=function(o){return isNaN(o=+o)?0:(o>0?i:s)(o)}},"./node_modules/core-js/internals/to-length.js":function(n,r,s){var i=s("./node_modules/core-js/internals/to-integer.js"),o=Math.min;n.exports=function(a){return a>0?o(i(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(n,r,s){var i=s("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(o){return Object(i(o))}},"./node_modules/core-js/internals/to-primitive.js":function(n,r,s){var i=s("./node_modules/core-js/internals/is-object.js");n.exports=function(o,a){if(!i(o))return o;var l,c;if(a&&typeof(l=o.toString)=="function"&&!i(c=l.call(o))||typeof(l=o.valueOf)=="function"&&!i(c=l.call(o))||!a&&typeof(l=o.toString)=="function"&&!i(c=l.call(o)))return c;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(n,r){var s=0,i=Math.random();n.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++s+i).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(n,r,s){var i=s("./node_modules/core-js/internals/is-object.js"),o=s("./node_modules/core-js/internals/an-object.js");n.exports=function(a,l){if(o(a),!i(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(n,r,s){var i=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/uid.js"),l=s("./node_modules/core-js/internals/native-symbol.js"),c=i.Symbol,u=o("wks");n.exports=function(d){return u[d]||(u[d]=l&&c[d]||(l?c:a)("Symbol."+d))}},"./node_modules/core-js/modules/es.array.from.js":function(n,r,s){var i=s("./node_modules/core-js/internals/export.js"),o=s("./node_modules/core-js/internals/array-from.js"),a=s("./node_modules/core-js/internals/check-correctness-of-iteration.js"),l=!a(function(c){Array.from(c)});i({target:"Array",stat:!0,forced:l},{from:o})},"./node_modules/core-js/modules/es.string.iterator.js":function(n,r,s){var i=s("./node_modules/core-js/internals/string-at.js"),o=s("./node_modules/core-js/internals/internal-state.js"),a=s("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",c=o.set,u=o.getterFor(l);a(String,"String",function(d){c(this,{type:l,string:String(d),index:0})},function(){var f=u(this),p=f.string,g=f.index,y;return g>=p.length?{value:void 0,done:!0}:(y=i(p,g,!0),f.index+=y.length,{value:y,done:!1})})},"./node_modules/webpack/buildin/global.js":function(n,r){var s;s=function(){return this}();try{s=s||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(s=window)}n.exports=s},"./src/default-attrs.json":function(n){n.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(y){for(var _=1;_2&&arguments[2]!==void 0?arguments[2]:[];f(this,y),this.name=_,this.contents=w,this.tags=x,this.attrs=i({},u.default,{class:"feather feather-"+_})}return o(y,[{key:"toSvg",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=i({},this.attrs,w,{class:(0,l.default)(this.attrs.class,w.class)});return""+this.contents+""}},{key:"toString",value:function(){return this.contents}}]),y}();function g(y){return Object.keys(y).map(function(_){return _+'="'+y[_]+'"'}).join(" ")}r.default=p},"./src/icons.js":function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var i=s("./src/icon.js"),o=d(i),a=s("./dist/icons.json"),l=d(a),c=s("./src/tags.json"),u=d(c);function d(f){return f&&f.__esModule?f:{default:f}}r.default=Object.keys(l.default).map(function(f){return new o.default(f,l.default[f],u.default[f])}).reduce(function(f,p){return f[p.name]=p,f},{})},"./src/index.js":function(n,r,s){var i=s("./src/icons.js"),o=d(i),a=s("./src/to-svg.js"),l=d(a),c=s("./src/replace.js"),u=d(c);function d(f){return f&&f.__esModule?f:{default:f}}n.exports={icons:o.default,toSvg:l.default,replace:u.default}},"./src/replace.js":function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(g){for(var y=1;y0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var y=document.querySelectorAll("[data-feather]");Array.from(y).forEach(function(_){return f(_,g)})}function f(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=p(g),w=_["data-feather"];delete _["data-feather"];var x=c.default[w].toSvg(i({},y,_,{class:(0,a.default)(y.class,_.class)})),b=new DOMParser().parseFromString(x,"image/svg+xml"),E=b.querySelector("svg");g.parentNode.replaceChild(E,g)}function p(g){return Array.from(g.attributes).reduce(function(y,_){return y[_.name]=_.value,y},{})}r.default=d},"./src/tags.json":function(n){n.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-bouy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var i=s("./src/icons.js"),o=a(i);function a(c){return c&&c.__esModule?c:{default:c}}function l(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!c)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[c])throw new Error("No icon matching '"+c+"'. See the complete list of icons at https://feathericons.com");return o.default[c].toSvg(u)}r.default=l},0:function(n,r,s){s("./node_modules/core-js/es/array/from.js"),n.exports=s("./src/index.js")}})})})(Xh);const mt=Jh(fi),Qh={class:"container flex flex-col sm:flex-row item-center gap-2 py-1"},Zh={class:"items-center justify-between hidden w-full md:flex md:w-auto md:order-1"},ep={class:"flex flex-col font-medium p-4 md:p-0 mt-4 md:flex-row md:space-x-8 md:mt-0"},tp=v("a",{href:"#",class:"hover:text-primary duration-150"},"Discussions",-1),np=v("a",{href:"#",class:"hover:text-primary duration-150"},"Settings",-1),rp=v("a",{href:"#",class:"hover:text-primary duration-150"},"Extensions",-1),sp=v("a",{href:"#",class:"hover:text-primary duration-150"},"Training",-1),ip=v("a",{href:"#",class:"hover:text-primary duration-150"},"Help",-1),Xl={__name:"Navigation",setup(e){return(t,n)=>(U(),J("div",Qh,[v("div",Zh,[v("ul",ep,[v("li",null,[xe(We(rn),{to:{name:"discussions"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Ut(()=>[tp]),_:1})]),v("li",null,[xe(We(rn),{to:{name:"settings"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Ut(()=>[np]),_:1})]),v("li",null,[xe(We(rn),{to:{name:"extensions"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Ut(()=>[rp]),_:1})]),v("li",null,[xe(We(rn),{to:{name:"training"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Ut(()=>[sp]),_:1})]),v("li",null,[xe(We(rn),{to:{name:"help"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Ut(()=>[ip]),_:1})])])])]))}},op={class:"top-0 shadow-lg"},ap={class:"container flex flex-col lg:flex-row item-center gap-2 py-2"},lp=v("div",{class:"flex items-center gap-3 flex-1"},[v("img",{class:"w-12 hover:scale-95 duration-150",title:"GPT4ALL-UI",src:Jl,alt:"Logo"}),v("p",{class:"text-2xl"},"GPT4ALL-UI")],-1),cp={class:"flex gap-3 flex-1 items-center justify-end"},up=v("a",{href:"https://github.com/nomic-ai/gpt4all-ui",target:"_blank"},[v("div",{class:"text-2xl hover:text-primary duration-150",title:"Visit repository page"},[v("i",{"data-feather":"github"})])],-1),dp=v("i",{"data-feather":"sun"},null,-1),fp=[dp],hp=v("i",{"data-feather":"moon"},null,-1),pp=[hp],gp=v("body",null,null,-1),yp={name:"TopBar",data(){return{sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches}},mounted(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),Re(()=>{mt.replace()})},created(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches},methods:{themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none");return}this.sunIcon.classList.add("display-none")},themeSwitch(){if(document.documentElement.classList.contains("dark")){document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"),this.iconToggle();return}document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.iconToggle()},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")}},components:{Navigation:Xl}},mp=Object.assign(yp,{setup(e){return(t,n)=>(U(),J(Oe,null,[v("header",op,[v("nav",ap,[xe(We(rn),{to:{name:"discussions"}},{default:Ut(()=>[lp]),_:1}),v("div",cp,[up,v("div",{class:"sun text-2xl w-6 hover:text-primary duration-150",title:"Swith to Light theme",onClick:n[0]||(n[0]=r=>t.themeSwitch())},fp),v("div",{class:"moon text-2xl w-6 hover:text-primary duration-150",title:"Swith to Dark theme",onClick:n[1]||(n[1]=r=>t.themeSwitch())},pp)])]),xe(Xl)]),gp],64))}}),Pt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},vp={class:"flex flex-col h-screen max-h-screen font-sans bg-bg-light text-slate-950 dark:bg-bg-dark dark:text-slate-50"},xp={class:"flex overflow-hidden flex-grow"},bp={__name:"App",setup(e){return(t,n)=>(U(),J("div",vp,[xe(mp),v("div",xp,[xe(We(Yl),null,{default:Ut(({Component:r})=>[(U(),cn(Td,null,[(U(),cn(Fd(r)))],1024))]),_:1})])]))}},wp={setup(){return{}}};function _p(e,t,n,r,s,i){return U(),J("div",null," Extensions ")}const Ep=Pt(wp,[["render",_p]]),jp={setup(){return{}}};function Ap(e,t,n,r,s,i){return U(),J("div",null," Help ")}const kp=Pt(jp,[["render",Ap]]);function Ql(e,t){return function(){return e.apply(t,arguments)}}const{toString:Op}=Object.prototype,{getPrototypeOf:Wi}=Object,ks=(e=>t=>{const n=Op.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),It=e=>(e=e.toLowerCase(),t=>ks(t)===e),Os=e=>t=>typeof t===e,{isArray:Nn}=Array,dr=Os("undefined");function Cp(e){return e!==null&&!dr(e)&&e.constructor!==null&&!dr(e.constructor)&&Rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Zl=It("ArrayBuffer");function Tp(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Zl(e.buffer),t}const Sp=Os("string"),Rt=Os("function"),ec=Os("number"),qi=e=>e!==null&&typeof e=="object",Rp=e=>e===!0||e===!1,Br=e=>{if(ks(e)!=="object")return!1;const t=Wi(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Mp=It("Date"),Lp=It("File"),Pp=It("Blob"),Ip=It("FileList"),Bp=e=>qi(e)&&Rt(e.pipe),Dp=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Rt(e.append)&&((t=ks(e))==="formdata"||t==="object"&&Rt(e.toString)&&e.toString()==="[object FormData]"))},Np=It("URLSearchParams"),Fp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Nn(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const nc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),rc=e=>!dr(e)&&e!==nc;function hi(){const{caseless:e}=rc(this)&&this||{},t={},n=(r,s)=>{const i=e&&tc(t,s)||s;Br(t[i])&&Br(r)?t[i]=hi(t[i],r):Br(r)?t[i]=hi({},r):Nn(r)?t[i]=r.slice():t[i]=r};for(let r=0,s=arguments.length;r(pr(t,(s,i)=>{n&&Rt(s)?e[i]=Ql(s,n):e[i]=s},{allOwnKeys:r}),e),Vp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$p=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},zp=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Wi(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Up=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Kp=e=>{if(!e)return null;if(Nn(e))return e;let t=e.length;if(!ec(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Wp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wi(Uint8Array)),qp=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Gp=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Yp=It("HTMLFormElement"),Jp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),oa=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Xp=It("RegExp"),sc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};pr(n,(s,i)=>{t(s,i,e)!==!1&&(r[i]=s)}),Object.defineProperties(e,r)},Qp=e=>{sc(e,(t,n)=>{if(Rt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Rt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Zp=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Nn(e)?r(e):r(String(e).split(t)),n},e1=()=>{},t1=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Us="abcdefghijklmnopqrstuvwxyz",aa="0123456789",ic={DIGIT:aa,ALPHA:Us,ALPHA_DIGIT:Us+Us.toUpperCase()+aa},n1=(e=16,t=ic.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function r1(e){return!!(e&&Rt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const s1=e=>{const t=new Array(10),n=(r,s)=>{if(qi(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const i=Nn(r)?[]:{};return pr(r,(o,a)=>{const l=n(o,s+1);!dr(l)&&(i[a]=l)}),t[s]=void 0,i}}return r};return n(e,0)},O={isArray:Nn,isArrayBuffer:Zl,isBuffer:Cp,isFormData:Dp,isArrayBufferView:Tp,isString:Sp,isNumber:ec,isBoolean:Rp,isObject:qi,isPlainObject:Br,isUndefined:dr,isDate:Mp,isFile:Lp,isBlob:Pp,isRegExp:Xp,isFunction:Rt,isStream:Bp,isURLSearchParams:Np,isTypedArray:Wp,isFileList:Ip,forEach:pr,merge:hi,extend:Hp,trim:Fp,stripBOM:Vp,inherits:$p,toFlatObject:zp,kindOf:ks,kindOfTest:It,endsWith:Up,toArray:Kp,forEachEntry:qp,matchAll:Gp,isHTMLForm:Yp,hasOwnProperty:oa,hasOwnProp:oa,reduceDescriptors:sc,freezeMethods:Qp,toObjectSet:Zp,toCamelCase:Jp,noop:e1,toFiniteNumber:t1,findKey:tc,global:nc,isContextDefined:rc,ALPHABET:ic,generateString:n1,isSpecCompliantForm:r1,toJSONObject:s1};function oe(e,t,n,r,s){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),r&&(this.request=r),s&&(this.response=s)}O.inherits(oe,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:O.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const oc=oe.prototype,ac={};["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=>{ac[e]={value:e}});Object.defineProperties(oe,ac);Object.defineProperty(oc,"isAxiosError",{value:!0});oe.from=(e,t,n,r,s,i)=>{const o=Object.create(oc);return O.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),oe.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const i1=null;function pi(e){return O.isPlainObject(e)||O.isArray(e)}function lc(e){return O.endsWith(e,"[]")?e.slice(0,-2):e}function la(e,t,n){return e?e.concat(t).map(function(s,i){return s=lc(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function o1(e){return O.isArray(e)&&!e.some(pi)}const a1=O.toFlatObject(O,{},null,function(t){return/^is[A-Z]/.test(t)});function Cs(e,t,n){if(!O.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=O.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,_){return!O.isUndefined(_[y])});const r=n.metaTokens,s=n.visitor||u,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(t);if(!O.isFunction(s))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(O.isDate(g))return g.toISOString();if(!l&&O.isBlob(g))throw new oe("Blob is not supported. Use a Buffer instead.");return O.isArrayBuffer(g)||O.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,y,_){let w=g;if(g&&!_&&typeof g=="object"){if(O.endsWith(y,"{}"))y=r?y:y.slice(0,-2),g=JSON.stringify(g);else if(O.isArray(g)&&o1(g)||(O.isFileList(g)||O.endsWith(y,"[]"))&&(w=O.toArray(g)))return y=lc(y),w.forEach(function(b,E){!(O.isUndefined(b)||b===null)&&t.append(o===!0?la([y],E,i):o===null?y:y+"[]",c(b))}),!1}return pi(g)?!0:(t.append(la(_,y,i),c(g)),!1)}const d=[],f=Object.assign(a1,{defaultVisitor:u,convertValue:c,isVisitable:pi});function p(g,y){if(!O.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(g),O.forEach(g,function(w,x){(!(O.isUndefined(w)||w===null)&&s.call(t,w,O.isString(x)?x.trim():x,y,f))===!0&&p(w,y?y.concat(x):[x])}),d.pop()}}if(!O.isObject(e))throw new TypeError("data must be an object");return p(e),t}function ca(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Gi(e,t){this._pairs=[],e&&Cs(e,this,t)}const cc=Gi.prototype;cc.append=function(t,n){this._pairs.push([t,n])};cc.toString=function(t){const n=t?function(r){return t.call(this,r,ca)}:ca;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function l1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function uc(e,t,n){if(!t)return e;const r=n&&n.encode||l1,s=n&&n.serialize;let i;if(s?i=s(t,n):i=O.isURLSearchParams(t)?t.toString():new Gi(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class c1{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){O.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ua=c1,dc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},u1=typeof URLSearchParams<"u"?URLSearchParams:Gi,d1=typeof FormData<"u"?FormData:null,f1=typeof Blob<"u"?Blob:null,h1=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),p1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),vt={isBrowser:!0,classes:{URLSearchParams:u1,FormData:d1,Blob:f1},isStandardBrowserEnv:h1,isStandardBrowserWebWorkerEnv:p1,protocols:["http","https","file","blob","url","data"]};function g1(e,t){return Cs(e,new vt.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return vt.isNode&&O.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function y1(e){return O.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function m1(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r=n.length;return o=!o&&O.isArray(s)?s.length:o,l?(O.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!O.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&O.isArray(s[o])&&(s[o]=m1(s[o])),!a)}if(O.isFormData(e)&&O.isFunction(e.entries)){const n={};return O.forEachEntry(e,(r,s)=>{t(y1(r),s,n,0)}),n}return null}const v1={"Content-Type":void 0};function x1(e,t,n){if(O.isString(e))try{return(t||JSON.parse)(e),O.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ts={transitional:dc,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=O.isObject(t);if(i&&O.isHTMLForm(t)&&(t=new FormData(t)),O.isFormData(t))return s&&s?JSON.stringify(fc(t)):t;if(O.isArrayBuffer(t)||O.isBuffer(t)||O.isStream(t)||O.isFile(t)||O.isBlob(t))return t;if(O.isArrayBufferView(t))return t.buffer;if(O.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return g1(t,this.formSerializer).toString();if((a=O.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Cs(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),x1(t)):t}],transformResponse:[function(t){const n=this.transitional||Ts.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&O.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?oe.from(a,oe.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:vt.classes.FormData,Blob:vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};O.forEach(["delete","get","head"],function(t){Ts.headers[t]={}});O.forEach(["post","put","patch"],function(t){Ts.headers[t]=O.merge(v1)});const Yi=Ts,b1=O.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"]),w1=e=>{const t={};let n,r,s;return e&&e.split(` -`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&b1[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},da=Symbol("internals");function $n(e){return e&&String(e).trim().toLowerCase()}function Dr(e){return e===!1||e==null?e:O.isArray(e)?e.map(Dr):String(e)}function _1(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const E1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ks(e,t,n,r,s){if(O.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!O.isString(t)){if(O.isString(r))return t.indexOf(r)!==-1;if(O.isRegExp(r))return r.test(t)}}function j1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function A1(e,t){const n=O.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}class Ss{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,l,c){const u=$n(l);if(!u)throw new Error("header name must be a non-empty string");const d=O.findKey(s,u);(!d||s[d]===void 0||c===!0||c===void 0&&s[d]!==!1)&&(s[d||l]=Dr(a))}const o=(a,l)=>O.forEach(a,(c,u)=>i(c,u,l));return O.isPlainObject(t)||t instanceof this.constructor?o(t,n):O.isString(t)&&(t=t.trim())&&!E1(t)?o(w1(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=$n(t),t){const r=O.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return _1(s);if(O.isFunction(n))return n.call(this,s,r);if(O.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=$n(t),t){const r=O.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ks(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=$n(o),o){const a=O.findKey(r,o);a&&(!n||Ks(r,r[a],a,n))&&(delete r[a],s=!0)}}return O.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Ks(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return O.forEach(this,(s,i)=>{const o=O.findKey(r,i);if(o){n[o]=Dr(s),delete n[i];return}const a=t?j1(i):String(i).trim();a!==i&&delete n[i],n[a]=Dr(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return O.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&O.isArray(r)?r.join(", "):r)}),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 r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[da]=this[da]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=$n(o);r[a]||(A1(s,o),r[a]=!0)}return O.isArray(t)?t.forEach(i):i(t),this}}Ss.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.freezeMethods(Ss.prototype);O.freezeMethods(Ss);const Ct=Ss;function Ws(e,t){const n=this||Yi,r=t||n,s=Ct.from(r.headers);let i=r.data;return O.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function hc(e){return!!(e&&e.__CANCEL__)}function gr(e,t,n){oe.call(this,e??"canceled",oe.ERR_CANCELED,t,n),this.name="CanceledError"}O.inherits(gr,oe,{__CANCEL__:!0});function k1(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new oe("Request failed with status code "+n.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const O1=vt.isStandardBrowserEnv?function(){return{write:function(n,r,s,i,o,a){const l=[];l.push(n+"="+encodeURIComponent(r)),O.isNumber(s)&&l.push("expires="+new Date(s).toGMTString()),O.isString(i)&&l.push("path="+i),O.isString(o)&&l.push("domain="+o),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function C1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function T1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function pc(e,t){return e&&!C1(t)?T1(e,t):t}const S1=vt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{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 r=s(window.location.href),function(o){const a=O.isString(o)?s(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function R1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function M1(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];o||(o=c),n[s]=l,r[s]=c;let d=i,f=0;for(;d!==s;)f+=n[d++],d=d%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o{const i=s.loaded,o=s.lengthComputable?s.total:void 0,a=i-n,l=r(a),c=i<=o;n=i;const u={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&c?(o-i)/l:void 0,event:s};u[t?"download":"upload"]=!0,e(u)}}const L1=typeof XMLHttpRequest<"u",P1=L1&&function(e){return new Promise(function(n,r){let s=e.data;const i=Ct.from(e.headers).normalize(),o=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}O.isFormData(s)&&(vt.isStandardBrowserEnv||vt.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+g))}const u=pc(e.baseURL,e.url);c.open(e.method.toUpperCase(),uc(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function d(){if(!c)return;const p=Ct.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),y={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:p,config:e,request:c};k1(function(w){n(w),l()},function(w){r(w),l()},y),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(r(new oe("Request aborted",oe.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new oe("Network Error",oe.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||dc;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),r(new oe(g,y.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,e,c)),c=null},vt.isStandardBrowserEnv){const p=(e.withCredentials||S1(u))&&e.xsrfCookieName&&O1.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}s===void 0&&i.setContentType(null),"setRequestHeader"in c&&O.forEach(i.toJSON(),function(g,y){c.setRequestHeader(y,g)}),O.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&o!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",fa(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",fa(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{c&&(r(!p||p.type?new gr(null,e,c):p),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=R1(u);if(f&&vt.protocols.indexOf(f)===-1){r(new oe("Unsupported protocol "+f+":",oe.ERR_BAD_REQUEST,e));return}c.send(s||null)})},Nr={http:i1,xhr:P1};O.forEach(Nr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const I1={getAdapter:e=>{e=O.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let s=0;se instanceof Ct?e.toJSON():e;function Tn(e,t){t=t||{};const n={};function r(c,u,d){return O.isPlainObject(c)&&O.isPlainObject(u)?O.merge.call({caseless:d},c,u):O.isPlainObject(u)?O.merge({},u):O.isArray(u)?u.slice():u}function s(c,u,d){if(O.isUndefined(u)){if(!O.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function i(c,u){if(!O.isUndefined(u))return r(void 0,u)}function o(c,u){if(O.isUndefined(u)){if(!O.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,u)=>s(pa(c),pa(u),!0)};return O.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const d=l[u]||s,f=d(e[u],t[u],u);O.isUndefined(f)&&d!==a||(n[u]=f)}),n}const gc="1.3.6",Ji={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ji[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ga={};Ji.transitional=function(t,n,r){function s(i,o){return"[Axios v"+gc+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(t===!1)throw new oe(s(o," has been removed"+(n?" in "+n:"")),oe.ERR_DEPRECATED);return n&&!ga[o]&&(ga[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};function B1(e,t,n){if(typeof e!="object")throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const a=e[i],l=a===void 0||o(a,i,e);if(l!==!0)throw new oe("option "+i+" must be "+l,oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new oe("Unknown option "+i,oe.ERR_BAD_OPTION)}}const gi={assertOptions:B1,validators:Ji},Nt=gi.validators;class Zr{constructor(t){this.defaults=t,this.interceptors={request:new ua,response:new ua}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Tn(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&gi.assertOptions(r,{silentJSONParsing:Nt.transitional(Nt.boolean),forcedJSONParsing:Nt.transitional(Nt.boolean),clarifyTimeoutError:Nt.transitional(Nt.boolean)},!1),s!=null&&(O.isFunction(s)?n.paramsSerializer={serialize:s}:gi.assertOptions(s,{encode:Nt.function,serialize:Nt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=i&&O.merge(i.common,i[n.method]),o&&O.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=Ct.concat(o,i);const a=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let u,d=0,f;if(!l){const g=[ha.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,c),f=g.length,u=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,a){r.reason||(r.reason=new gr(i,o,a),n(r.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 Xi(function(s){t=s}),cancel:t}}}const D1=Xi;function N1(e){return function(n){return e.apply(null,n)}}function F1(e){return O.isObject(e)&&e.isAxiosError===!0}const yi={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(yi).forEach(([e,t])=>{yi[t]=e});const H1=yi;function yc(e){const t=new Fr(e),n=Ql(Fr.prototype.request,t);return O.extend(n,Fr.prototype,t,{allOwnKeys:!0}),O.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return yc(Tn(e,s))},n}const Ce=yc(Yi);Ce.Axios=Fr;Ce.CanceledError=gr;Ce.CancelToken=D1;Ce.isCancel=hc;Ce.VERSION=gc;Ce.toFormData=Cs;Ce.AxiosError=oe;Ce.Cancel=Ce.CanceledError;Ce.all=function(t){return Promise.all(t)};Ce.spread=N1;Ce.isAxiosError=F1;Ce.mergeConfig=Tn;Ce.AxiosHeaders=Ct;Ce.formToJSON=e=>fc(O.isHTMLForm(e)?new FormData(e):e);Ce.HttpStatusCode=H1;Ce.default=Ce;const ot=Ce;const V1={setup(){return{}},data(){return{bec_collapsed:!0,pc_collapsed:!0,mc_collapsed:!0,backendsArr:[],modelsArr:[],persLangArr:[],persCatgArr:[],persArr:[],langArr:[],configFile:{}}},methods:{refresh(){this.api_get_req("list_backends").then(e=>{this.backendsArr=e}),this.api_get_req("list_models").then(e=>{this.modelsArr=e}),this.api_get_req("list_personalities_languages").then(e=>{this.persLangArr=e}),this.api_get_req("list_personalities_categories").then(e=>{this.persCatgArr=e}),this.api_get_req("list_personalities").then(e=>{this.persArr=e}),this.api_get_req("list_languages").then(e=>{this.langArr=e}),this.api_get_req("get_config").then(e=>{this.configFile=e})},toggleAccordion(){this.showAccordion=!this.showAccordion},update_setting(e,t,n=void 0){ot.post("/update_setting",{setting_name:e,setting_value:t}).then(r=>{if(r)return n!==void 0&&n(),r.data}).catch(r=>({status:!1}))},save_configuration(){ot.post("/save_settings",{}).then(e=>{if(e)return e.status?this.$refs.messageBox.showMessage("Settings saved"):this.$refs.messageBox.showMessage("Couldn't save settings!"),e.data}).catch(e=>(console.log(e),{status:!1}))},update_backend(e){res=update_setting("backend",e),res.status&&console.log("Backend changed")},async api_get_req(e){try{const t=await ot.get("/"+e);if(t)return t.data}catch(t){return console.log(t),[]}}},async mounted(){this.backendsArr=await this.api_get_req("list_backends"),this.modelsArr=await this.api_get_req("list_models"),this.persLangArr=await this.api_get_req("list_personalities_languages"),this.persCatgArr=await this.api_get_req("list_personalities_categories"),this.persArr=await this.api_get_req("list_personalities"),this.langArr=await this.api_get_req("list_languages"),this.configFile=await this.api_get_req("get_config")}},$1={class:"overflow-y-scroll flex flex-col no-scrollbar shadow-lg w-full bg-bg-light-tone dark:bg-bg-dark-tone"},z1={class:"flex flex-row justify-start"},U1={class:"overflow-y-scroll flex-col no-scrollbar shadow-lg bg-bg-light-tone dark:bg-bg-dark-tone"},K1=v("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[v("path",{d:"M5 3H19C20.1046 3 21 3.89543 21 5V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19V5C3 3.89543 3.89543 3 5 3Z"}),v("path",{d:"M17 8L12 13L7 8"})],-1),W1=[K1],q1={class:"overflow-y-scroll flex-col no-scrollbar shadow-lg bg-bg-light-tone dark:bg-bg-dark-tone"},G1=v("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1),Y1=[G1],J1={class:"flex flex-row"},X1=v("path",{d:"M9 19l7-7-7-7","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},null,-1),Q1=[X1],Z1=v("h3",{class:"text-lg font-semibold"},"Backend Configuration",-1),e2={class:"m-2"},t2=v("label",{for:"backend",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"}," Backend: ",-1),n2={class:"m-2"},r2=v("label",{for:"model",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"}," Model: ",-1),s2={id:"model",class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},i2={class:"flex flex-row"},o2=v("path",{d:"M9 19l7-7-7-7","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},null,-1),a2=[o2],l2=v("h3",{class:"text-lg font-semibold"},"Personality Configuration",-1),c2={class:"m-2"},u2=v("label",{for:"persLang",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"}," Personalities Languages: ",-1),d2={class:"m-2"},f2=v("label",{for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"}," Personalities Category: ",-1),h2={class:"m-2"},p2=v("label",{for:"persona",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"}," Personality: ",-1),g2={class:"flex flex-row"},y2=v("path",{d:"M9 19l7-7-7-7","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},null,-1),m2=[y2],v2=v("h3",{class:"text-lg font-semibold"},"Model Configuration",-1),x2={class:"m-2"},b2=v("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1),w2={class:"m-2"},_2={class:"flex flex-col align-bottom"},E2={class:"relative"},j2=v("p",{class:"absolute left-0 mt-6"},[v("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1),A2={class:"absolute right-0"},k2={class:"m-2"},O2={class:"flex flex-col align-bottom"},C2={class:"relative"},T2=v("p",{class:"absolute left-0 mt-6"},[v("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1),S2={class:"absolute right-0"},R2={class:"m-2"},M2={class:"flex flex-col align-bottom"},L2={class:"relative"},P2=v("p",{class:"absolute left-0 mt-6"},[v("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1),I2={class:"absolute right-0"},B2={class:"m-2"},D2={class:"flex flex-col align-bottom"},N2={class:"relative"},F2=v("p",{class:"absolute left-0 mt-6"},[v("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1),H2={class:"absolute right-0"},V2={class:"m-2"},$2={class:"flex flex-col align-bottom"},z2={class:"relative"},U2=v("p",{class:"absolute left-0 mt-6"},[v("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1),K2={class:"absolute right-0"},W2={class:"m-2"},q2={class:"flex flex-col align-bottom"},G2={class:"relative"},Y2=v("p",{class:"absolute left-0 mt-6"},[v("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1),J2={class:"absolute right-0"};function X2(e,t,n,r,s,i){return U(),J("div",$1,[v("div",z1,[v("div",U1,[v("button",{title:"Save configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90 mr-2",onClick:t[0]||(t[0]=o=>i.save_configuration())},W1)]),v("div",q1,[v("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90 mr-2",onClick:t[1]||(t[1]=o=>i.save_configuration())},Y1)])]),v("div",J1,[v("button",{onClick:t[2]||(t[2]=o=>s.bec_collapsed=!s.bec_collapsed)},[(U(),J("svg",{class:Ie(["h-6 w-6 hover:text-secondary duration-75 active:scale-90",{"rotate-90":!s.bec_collapsed}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Q1,2))]),Z1]),v("div",{class:Ie({hidden:s.bec_collapsed})},[v("div",e2,[t2,v("select",{id:"backend",onChange:t[3]||(t[3]=o=>i.update_backend(o.target.value)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(U(!0),J(Oe,null,en(s.backendsArr,o=>(U(),J("option",null,gt(o),1))),256))],32)]),v("div",n2,[r2,v("select",s2,[(U(!0),J(Oe,null,en(s.modelsArr,o=>(U(),J("option",null,gt(o),1))),256))])])],2),v("div",i2,[v("button",{onClick:t[4]||(t[4]=o=>s.pc_collapsed=!s.pc_collapsed)},[(U(),J("svg",{class:Ie(["h-6 w-6 hover:text-secondary duration-75 active:scale-90",{"rotate-90":!s.pc_collapsed}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},a2,2))]),l2]),v("div",{class:Ie({hidden:s.pc_collapsed})},[v("div",c2,[u2,v("select",{id:"persLang",onChange:t[5]||(t[5]=o=>i.update_setting("personality_language",o.target.value,i.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(U(!0),J(Oe,null,en(s.persLangArr,o=>(U(),J("option",null,gt(o),1))),256))],32)]),v("div",d2,[f2,v("select",{id:"persCat",onChange:t[6]||(t[6]=o=>i.update_setting("personality_category",o.target.value,i.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(U(!0),J(Oe,null,en(s.persCatgArr,o=>(U(),J("option",null,gt(o),1))),256))],32)]),v("div",h2,[p2,v("select",{id:"persona",onChange:t[7]||(t[7]=o=>i.update_setting("personality",o.target.value,i.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(U(!0),J(Oe,null,en(s.persArr,o=>(U(),J("option",null,gt(o),1))),256))],32)])],2),v("div",g2,[v("button",{onClick:t[8]||(t[8]=o=>s.mc_collapsed=!s.mc_collapsed)},[(U(),J("svg",{class:Ie(["h-6 w-6 hover:text-secondary duration-75 active:scale-90",{"rotate-90":!s.mc_collapsed}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m2,2))]),v2]),v("div",{class:Ie({hidden:s.mc_collapsed})},[v("div",x2,[b2,Pe(v("input",{type:"text",id:"seed","onUpdate:modelValue":t[9]||(t[9]=o=>s.configFile.seed=o),class:"bg-gray-50 border border-gray-300 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ve,s.configFile.seed]])]),v("div",w2,[v("div",_2,[v("div",E2,[j2,v("p",A2,[Pe(v("input",{type:"text",id:"temp-val","onUpdate:modelValue":t[10]||(t[10]=o=>s.configFile.temp=o),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ve,s.configFile.temp]])])]),Pe(v("input",{id:"temperature",onChange:t[11]||(t[11]=o=>i.update_setting("temperature",o.target.value)),type:"range","onUpdate:modelValue":t[12]||(t[12]=o=>s.configFile.temp=o),min:"0",max:"5",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ve,s.configFile.temp]])])]),v("div",k2,[v("div",O2,[v("div",C2,[T2,v("p",S2,[Pe(v("input",{type:"text",id:"predict-val","onUpdate:modelValue":t[13]||(t[13]=o=>s.configFile.n_predict=o),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ve,s.configFile.n_predict]])])]),Pe(v("input",{id:"predict",onChange:t[14]||(t[14]=o=>i.update_setting("n_predict",o.target.value)),type:"range","onUpdate:modelValue":t[15]||(t[15]=o=>s.configFile.n_predict=o),min:"0",max:"2048",step:"32",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ve,s.configFile.n_predict]])])]),v("div",R2,[v("div",M2,[v("div",L2,[P2,v("p",I2,[Pe(v("input",{type:"text",id:"top_k-val","onUpdate:modelValue":t[16]||(t[16]=o=>s.configFile.top_k=o),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ve,s.configFile.top_k]])])]),Pe(v("input",{id:"top_k",onChange:t[17]||(t[17]=o=>i.update_setting("top_k",o.target.value)),type:"range","onUpdate:modelValue":t[18]||(t[18]=o=>s.configFile.top_k=o),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ve,s.configFile.top_k]])])]),v("div",B2,[v("div",D2,[v("div",N2,[F2,v("p",H2,[Pe(v("input",{type:"text",id:"top_p-val","onUpdate:modelValue":t[19]||(t[19]=o=>s.configFile.top_p=o),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ve,s.configFile.top_p]])])]),Pe(v("input",{id:"top_p",onChange:t[20]||(t[20]=o=>i.update_setting("top_p",o.target.value)),type:"range","onUpdate:modelValue":t[21]||(t[21]=o=>s.configFile.top_p=o),min:"0",max:"1",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ve,s.configFile.top_p]])])]),v("div",V2,[v("div",$2,[v("div",z2,[U2,v("p",K2,[Pe(v("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":t[22]||(t[22]=o=>s.configFile.repeat_penalty=o),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ve,s.configFile.repeat_penalty]])])]),Pe(v("input",{id:"repeat_penalty",onChange:t[23]||(t[23]=o=>i.update_setting("repeat_penalty",o.target.value)),type:"range","onUpdate:modelValue":t[24]||(t[24]=o=>s.configFile.repeat_penalty=o),min:"0",max:"2",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ve,s.configFile.repeat_penalty]])])]),v("div",W2,[v("div",q2,[v("div",G2,[Y2,v("p",J2,[Pe(v("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":t[25]||(t[25]=o=>s.configFile.repeat_last_n=o),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ve,s.configFile.repeat_last_n]])])]),Pe(v("input",{id:"repeat_last_n",onChange:t[26]||(t[26]=o=>i.update_setting("repeat_last_n",o.target.value)),type:"range","onUpdate:modelValue":t[27]||(t[27]=o=>s.configFile.repeat_last_n=o),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ve,s.configFile.repeat_last_n]])])])],2)])}const Q2=Pt(V1,[["render",X2]]),Z2={setup(){return{}}};function e0(e,t,n,r,s,i){return U(),J("div",null," Training ")}const t0=Pt(Z2,[["render",e0]]),n0={name:"Discussion",emits:["delete","select","editTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},chnageTitle(e){this.newTitle=e},checkedChangeEvent(e,t){this.$emit("checked",e,t)}},mounted(){this.newTitle=this.title,Re(()=>{mt.replace()})},watch:{showConfirmation(){Re(()=>{mt.replace()})},editTitleMode(e){this.showConfirmation=e,this.editTitle=e},checkBoxValue(e,t){this.checkBoxValue_local=e}}},r0=["id"],s0={class:"flex flex-row items-center gap-2"},i0={key:0},o0=["title"],a0=["value"],l0={class:"flex items-center flex-1 max-h-6"},c0={key:0,class:"flex gap-3 flex-1 items-center justify-end duration-75"},u0=v("i",{"data-feather":"check"},null,-1),d0=[u0],f0=v("i",{"data-feather":"x"},null,-1),h0=[f0],p0={key:1,class:"flex gap-3 flex-1 items-center justify-end duration-75"},g0=v("i",{"data-feather":"x"},null,-1),y0=[g0],m0=v("i",{"data-feather":"check"},null,-1),v0=[m0],x0={key:2,class:"flex gap-3 flex-1 items-center justify-end invisible group-hover:visible duration-75"},b0=v("i",{"data-feather":"edit-2"},null,-1),w0=[b0],_0=v("i",{"data-feather":"trash"},null,-1),E0=[_0];function j0(e,t,n,r,s,i){return U(),J("div",{class:Ie([n.selected?"bg-bg-light-discussion dark:bg-bg-dark-discussion shadow-md":"","container flex sm:flex-row item-center shadow-sm gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"]),id:"dis-"+n.id,onClick:t[13]||(t[13]=Se(o=>i.selectEvent(),["stop"]))},[v("div",s0,[n.isCheckbox?(U(),J("div",i0,[Pe(v("input",{type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:t[0]||(t[0]=Se(()=>{},["stop"])),"onUpdate:modelValue":t[1]||(t[1]=o=>s.checkBoxValue_local=o),onInput:t[2]||(t[2]=o=>i.checkedChangeEvent(o,n.id))},null,544),[[Ff,s.checkBoxValue_local]])])):we("",!0),n.selected?(U(),J("div",{key:1,class:Ie(["min-h-full w-2 rounded-xl self-stretch",n.loading?"animate-bounce bg-accent ":" bg-secondary "])},null,2)):we("",!0),n.selected?we("",!0):(U(),J("div",{key:2,class:Ie(["w-2",n.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent ":" "])},null,2))]),s.editTitle?we("",!0):(U(),J("p",{key:0,title:n.title,class:"truncate w-full"},gt(n.title?n.title==="untitled"?"New discussion":n.title:"New discussion"),9,o0)),s.editTitle?(U(),J("input",{key:1,type:"text",id:"title-box",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:n.title,required:"",onKeydown:[t[3]||(t[3]=li(Se(o=>i.editTitleEvent(),["exact"]),["enter"])),t[4]||(t[4]=li(Se(o=>s.editTitleMode=!1,["exact"]),["esc"]))],onInput:t[5]||(t[5]=o=>i.chnageTitle(o.target.value)),onClick:t[6]||(t[6]=Se(()=>{},["stop"]))},null,40,a0)):we("",!0),v("div",l0,[s.showConfirmation&&!s.editTitleMode?(U(),J("div",c0,[v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:t[7]||(t[7]=Se(o=>i.deleteEvent(),["stop"]))},d0),v("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:t[8]||(t[8]=Se(o=>s.showConfirmation=!1,["stop"]))},h0)])):we("",!0),s.showConfirmation&&s.editTitleMode?(U(),J("div",p0,[v("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:t[9]||(t[9]=Se(o=>s.editTitleMode=!1,["stop"]))},y0),v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:t[10]||(t[10]=Se(o=>i.editTitleEvent(),["stop"]))},v0)])):we("",!0),s.showConfirmation?we("",!0):(U(),J("div",x0,[v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:t[11]||(t[11]=Se(o=>s.editTitleMode=!0,["stop"]))},w0),v("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:t[12]||(t[12]=Se(o=>s.showConfirmation=!0,["stop"]))},E0)]))])],10,r0)}const mc=Pt(n0,[["render",j0]]),A0={name:"Message",props:{message:Object},data(){return{senderImg:""}},mounted(){Re(()=>{mt.replace()})}},k0={class:"group rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex-row p-4 pb-2"},O0={class:"w-30 flex"},C0={class:"w-10 h-10 rounded-lg object-fill drop-shadow-md group-even:bg-primary bg-secondary"},T0=["src"],S0={class:"drop-shadow-sm py-0 px-2 text-lg text-opacity-95 font-bold"},R0={class:"-mt-4 ml-10 mr-0 pt-1 px-2 max-w-screen-2xl"},M0={class:"invisible group-hover:visible flex flex-row mt-3 -mb-2"},L0=Ml('
',5),P0={class:"flex flex-row items-center"},I0=v("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2",title:"Downvote"},[v("i",{"data-feather":"thumbs-down"})],-1);function B0(e,t,n,r,s,i){return U(),J("div",k0,[v("div",O0,[v("div",C0,[s.senderImg?(U(),J("img",{key:0,src:s.senderImg,class:"w-10 h-10 rounded-full object-fill"},null,8,T0)):we("",!0)]),v("p",S0,gt(n.message.sender),1)]),v("div",R0,gt(n.message.content),1),v("div",M0,[L0,v("div",P0,[I0,n.message.rank!=0?(U(),J("div",{key:0,class:Ie(["rounded-full px-2 text-sm flex items-center justify-center font-bold",n.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},gt(n.message.rank),3)):we("",!0)])])])}const vc=Pt(A0,[["render",B0]]),D0={name:"ChatBox",emits:["messageSentEvent","stopGenerating"],props:{loading:!1},setup(){return{}},data(){return{message:""}},methods:{sendMessageEvent(e){this.$emit("messageSentEvent",e)},submitOnEnter(e){e.which===13&&(e.preventDefault(),e.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},stopGenerating(){this.$emit("stopGenerating")}},watch:{loading(e,t){Re(()=>{mt.replace()})}},mounted(){Re(()=>{mt.replace()})},activated(){}},N0={class:"flex-none sticky bottom-0 p-0 items-center justify-center px-32 self-center w-full"},F0={key:0,class:"flex items-center justify-center w-full"},H0={class:"flex flex-row p-2 rounded-t-lg"},V0=v("label",{for:"chat",class:"sr-only"},"Send message",-1),$0={class:"flex items-center gap-2 px-3 py-3 rounded-t-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},z0={class:"inline-flex justify-center rounded-full"},U0=v("i",{"data-feather":"send"},null,-1),K0=v("span",{class:"sr-only"},"Send message",-1),W0=[U0,K0],q0={key:1,title:"Waiting for reply"},G0=v("div",{role:"status"},[v("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),v("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),v("span",{class:"sr-only"},"Loading...")],-1),Y0=[G0];function J0(e,t,n,r,s,i){return U(),J("div",N0,[n.loading?(U(),J("div",F0,[v("div",H0,[v("button",{type:"button",class:"bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel hover:bg-bg-light-tone focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:hover:bg-bg-dark-tone focus:outline-none dark:focus:ring-blue-800",onClick:t[0]||(t[0]=Se((...o)=>i.stopGenerating&&i.stopGenerating(...o),["stop"]))}," Stop generating ")])])):we("",!0),v("form",null,[V0,v("div",$0,[Pe(v("textarea",{id:"chat",rows:"1","onUpdate:modelValue":t[1]||(t[1]=o=>s.message=o),class:"block min-h-11 no-scrollbar p-2.5 w-full text-sm text-gray-900 bg-bg-light rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Send message...",onKeydown:t[2]||(t[2]=li(Se(o=>i.submitOnEnter(o),["exact"]),["enter"]))},null,544),[[Ve,s.message]]),v("div",z0,[n.loading?we("",!0):(U(),J("button",{key:0,type:"button",onClick:t[3]||(t[3]=(...o)=>i.submit&&i.submit(...o)),class:"w-6 hover:text-secondary duration-75 active:scale-90"},W0)),n.loading?(U(),J("div",q0,Y0)):we("",!0)])])])])}const xc=Pt(D0,[["render",J0]]),X0={name:"WelcomeComponent",setup(){return{}}},Q0={class:"flex flex-col text-center"},Z0=Ml('
Logo

GPT4ALL-UI


Welcome, please create a new discussion or select existing one to start

',1),eg=[Z0];function tg(e,t,n,r,s,i){return U(),J("div",Q0,eg)}const bc=Pt(X0,[["render",tg]]),Et=Object.create(null);Et.open="0";Et.close="1";Et.ping="2";Et.pong="3";Et.message="4";Et.upgrade="5";Et.noop="6";const Hr=Object.create(null);Object.keys(Et).forEach(e=>{Hr[Et[e]]=e});const ng={type:"error",data:"parser error"},rg=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",sg=typeof ArrayBuffer=="function",ig=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,wc=({type:e,data:t},n,r)=>rg&&t instanceof Blob?n?r(t):ya(t,r):sg&&(t instanceof ArrayBuffer||ig(t))?n?r(t):ya(new Blob([t]),r):r(Et[e]+(t||"")),ya=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)},ma="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,s=0,i,o,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),u=new Uint8Array(c);for(r=0;r>4,u[s++]=(o&15)<<4|a>>2,u[s++]=(a&3)<<6|l&63;return c},ag=typeof ArrayBuffer=="function",_c=(e,t)=>{if(typeof e!="string")return{type:"message",data:Ec(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:lg(e.substring(1),t)}:Hr[n]?e.length>1?{type:Hr[n],data:e.substring(1)}:{type:Hr[n]}:ng},lg=(e,t)=>{if(ag){const n=og(e);return Ec(n,t)}else return{base64:!0,data:e}},Ec=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},jc=String.fromCharCode(30),cg=(e,t)=>{const n=e.length,r=new Array(n);let s=0;e.forEach((i,o)=>{wc(i,!1,a=>{r[o]=a,++s===n&&t(r.join(jc))})})},ug=(e,t)=>{const n=e.split(jc),r=[];for(let s=0;stypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function kc(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const fg=Qe.setTimeout,hg=Qe.clearTimeout;function Rs(e,t){t.useNativeTimers?(e.setTimeoutFn=fg.bind(Qe),e.clearTimeoutFn=hg.bind(Qe)):(e.setTimeoutFn=Qe.setTimeout.bind(Qe),e.clearTimeoutFn=Qe.clearTimeout.bind(Qe))}const pg=1.33;function gg(e){return typeof e=="string"?yg(e):Math.ceil((e.byteLength||e.size)*pg)}function yg(e){let t=0,n=0;for(let r=0,s=e.length;r=57344?n+=3:(r++,n+=4);return n}class mg extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Oc extends ke{constructor(t){super(),this.writable=!1,Rs(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new mg(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=_c(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}}const Cc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),mi=64,vg={};let va=0,jr=0,xa;function ba(e){let t="";do t=Cc[e%mi]+t,e=Math.floor(e/mi);while(e>0);return t}function Tc(){const e=ba(+new Date);return e!==xa?(va=0,xa=e):e+"."+ba(va++)}for(;jr{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};ug(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,cg(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Tc()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const s=Sc(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(s.length?"?"+s:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new bt(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(s,i)=>{this.onError("xhr post error",s,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class bt extends ke{constructor(t,n){super(),Rs(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=kc(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new Mc(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=bt.requestsCount++,bt.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=wg,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete bt.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}bt.requestsCount=0;bt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",wa);else if(typeof addEventListener=="function"){const e="onpagehide"in Qe?"pagehide":"unload";addEventListener(e,wa,!1)}}function wa(){for(let e in bt.requests)bt.requests.hasOwnProperty(e)&&bt.requests[e].abort()}const Lc=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),Ar=Qe.WebSocket||Qe.MozWebSocket,_a=!0,jg="arraybuffer",Ea=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Ag extends Oc{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=Ea?{}:kc(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=_a&&!Ea?n?new Ar(t,n):new Ar(t):new Ar(t,n,r)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType||jg,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const o={};try{_a&&this.ws.send(i)}catch{}s&&Lc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=Tc()),this.supportsBinary||(t.b64=1);const s=Sc(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(s.length?"?"+s:"")}check(){return!!Ar}}const kg={websocket:Ag,polling:Eg},Og=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Cg=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function vi(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let s=Og.exec(e||""),i={},o=14;for(;o--;)i[Cg[o]]=s[o]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Tg(i,i.path),i.queryKey=Sg(i,i.query),i}function Tg(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Sg(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,s,i){s&&(n[s]=i)}),n}let Pc=class vn extends ke{constructor(t,n={}){super(),this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=vi(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=vi(n.host).host),Rs(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=xg(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Ac,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new kg[t](r)}open(){let t;if(this.opts.rememberUpgrade&&vn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;vn.priorWebsocketSuccess=!1;const s=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;vn.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(u(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,u(),n.close(),n=null)}const o=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function a(){o("transport closed")}function l(){o("socket closed")}function c(d){n&&d.name!==n.name&&i()}const u=()=>{n.removeListener("open",s),n.removeListener("error",o),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",s),n.once("error",o),n.once("close",a),this.once("close",l),this.once("upgrading",c),n.open()}onOpen(){if(this.readyState="open",vn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,s){if(typeof n=="function"&&(s=n,n=void 0),typeof r=="function"&&(s=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),s&&this.once("flush",s),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){vn.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const s=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Ic=Object.prototype.toString,Pg=typeof Blob=="function"||typeof Blob<"u"&&Ic.call(Blob)==="[object BlobConstructor]",Ig=typeof File=="function"||typeof File<"u"&&Ic.call(File)==="[object FileConstructor]";function Qi(e){return Mg&&(e instanceof ArrayBuffer||Lg(e))||Pg&&e instanceof Blob||Ig&&e instanceof File}function Vr(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num0;case se.ACK:case se.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Hg{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=Dg(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Vg=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Zi,Encoder:Fg,get PacketType(){return se},protocol:Ng},Symbol.toStringTag,{value:"Module"}));function at(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const $g=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Bc extends ke{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[at(t,"open",this.onopen.bind(this)),at(t,"packet",this.onpacket.bind(this)),at(t,"error",this.onerror.bind(this)),at(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if($g.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:se.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const o=this.ids++,a=n.pop();this._registerAckCallback(o,a),r.id=o}const s=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!s||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){var r;const s=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(s===void 0){this.acks[t]=n;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let o=0;o{this.io.clearTimeoutFn(i),n.apply(this,[null,...o])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((s,i)=>{n.push((o,a)=>r?o?i(o):s(a):s(o)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((s,...i)=>r!==this._queue[0]?void 0:(s!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(s)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:se.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case se.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case se.EVENT:case se.BINARY_EVENT:this.onevent(t);break;case se.ACK:case se.BINARY_ACK:this.onack(t);break;case se.DISCONNECT:this.ondisconnect();break;case se.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...s){r||(r=!0,n.packet({type:se.ACK,id:t,data:s}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:se.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Fn.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Fn.prototype.reset=function(){this.attempts=0};Fn.prototype.setMin=function(e){this.ms=e};Fn.prototype.setMax=function(e){this.max=e};Fn.prototype.setJitter=function(e){this.jitter=e};class wi extends ke{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Rs(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Fn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const s=n.parser||Vg;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Pc(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const s=at(n,"open",function(){r.onopen(),t&&t()}),i=at(n,"error",o=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",o),t?t(o):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const o=this._timeout;o===0&&s();const a=this.setTimeoutFn(()=>{s(),n.close(),n.emit("error",new Error("timeout"))},o);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(s),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(at(t,"ping",this.onping.bind(this)),at(t,"data",this.ondata.bind(this)),at(t,"error",this.onerror.bind(this)),at(t,"close",this.onclose.bind(this)),at(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Lc(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Bc(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(s=>{s?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",s)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const zn={};function $r(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Rg(e,t.path||"/socket.io"),r=n.source,s=n.id,i=n.path,o=zn[s]&&i in zn[s].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let l;return a?l=new wi(r,t):(zn[s]||(zn[s]=new wi(r,t)),l=zn[s]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign($r,{Manager:wi,Socket:Bc,io:$r,connect:$r});const eo=Dn({connected:!1}),xt=new $r("http://localhost:9600");xt.onopen=()=>{console.log("WebSocket connection established.")};xt.onclose=e=>{console.log("WebSocket connection closed:",e.code,e.reason)};xt.onerror=e=>{console.error("WebSocket error:",e),xt.disconnect()};xt.on("connect",()=>{eo.connected=!0,console.log("WebSocket connected (websocket)")});xt.on("disconnect",()=>{eo.connected=!1,console.log("WebSocket disonnected (websocket)")});var zg=function(){function e(t,n){n===void 0&&(n=[]),this._eventType=t,this._eventFunctions=n}return e.prototype.init=function(){var t=this;this._eventFunctions.forEach(function(n){typeof window<"u"&&window.addEventListener(t._eventType,n)})},e}(),es=globalThis&&globalThis.__assign||function(){return es=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u")return!1;var t=Ge(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ny(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!tt(i)||!jt(i)||(Object.assign(i.style,r),Object.keys(s).forEach(function(o){var a=s[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function ry(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var s=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(l,c){return l[c]="",l},{});!tt(s)||!jt(s)||(Object.assign(s.style,a),Object.keys(i).forEach(function(l){s.removeAttribute(l)}))})}}const sy={name:"applyStyles",enabled:!0,phase:"write",fn:ny,effect:ry,requires:["computeStyles"]};function wt(e){return e.split("-")[0]}var fn=Math.max,ss=Math.min,Rn=Math.round;function _i(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function qc(){return!/^((?!chrome|android).)*safari/i.test(_i())}function Mn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,i=1;t&&tt(e)&&(s=e.offsetWidth>0&&Rn(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Rn(r.height)/e.offsetHeight||1);var o=hn(e)?Ge(e):window,a=o.visualViewport,l=!qc()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/s,u=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/s,f=r.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function ro(e){var t=Mn(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Gc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&no(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Mt(e){return Ge(e).getComputedStyle(e)}function iy(e){return["table","td","th"].indexOf(jt(e))>=0}function Yt(e){return((hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ms(e){return jt(e)==="html"?e:e.assignedSlot||e.parentNode||(no(e)?e.host:null)||Yt(e)}function Oa(e){return!tt(e)||Mt(e).position==="fixed"?null:e.offsetParent}function oy(e){var t=/firefox/i.test(_i()),n=/Trident/i.test(_i());if(n&&tt(e)){var r=Mt(e);if(r.position==="fixed")return null}var s=Ms(e);for(no(s)&&(s=s.host);tt(s)&&["html","body"].indexOf(jt(s))<0;){var i=Mt(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function mr(e){for(var t=Ge(e),n=Oa(e);n&&iy(n)&&Mt(n).position==="static";)n=Oa(n);return n&&(jt(n)==="html"||jt(n)==="body"&&Mt(n).position==="static")?t:n||oy(e)||t}function so(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function er(e,t,n){return fn(e,ss(t,n))}function ay(e,t,n){var r=er(e,t,n);return r>n?n:r}function Yc(){return{top:0,right:0,bottom:0,left:0}}function Jc(e){return Object.assign({},Yc(),e)}function Xc(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ly=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Jc(typeof t!="number"?t:Xc(t,yr))};function cy(e){var t,n=e.state,r=e.name,s=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=wt(n.placement),l=so(a),c=[ze,rt].indexOf(a)>=0,u=c?"height":"width";if(!(!i||!o)){var d=ly(s.padding,n),f=ro(i),p=l==="y"?$e:ze,g=l==="y"?nt:rt,y=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],_=o[l]-n.rects.reference[l],w=mr(i),x=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,b=y/2-_/2,E=d[p],S=x-f[u]-d[g],P=x/2-f[u]/2+b,D=er(E,P,S),I=l;n.modifiersData[r]=(t={},t[I]=D,t.centerOffset=D-P,t)}}function uy(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||Gc(t.elements.popper,s)&&(t.elements.arrow=s))}const dy={name:"arrow",enabled:!0,phase:"main",fn:cy,effect:uy,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ln(e){return e.split("-")[1]}var fy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hy(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:Rn(n*s)/s||0,y:Rn(r*s)/s||0}}function Ca(e){var t,n=e.popper,r=e.popperRect,s=e.placement,i=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,g=o.y,y=g===void 0?0:g,_=typeof u=="function"?u({x:p,y}):{x:p,y};p=_.x,y=_.y;var w=o.hasOwnProperty("x"),x=o.hasOwnProperty("y"),b=ze,E=$e,S=window;if(c){var P=mr(n),D="clientHeight",I="clientWidth";if(P===Ge(n)&&(P=Yt(n),Mt(P).position!=="static"&&a==="absolute"&&(D="scrollHeight",I="scrollWidth")),P=P,s===$e||(s===ze||s===rt)&&i===fr){E=nt;var W=d&&P===S&&S.visualViewport?S.visualViewport.height:P[D];y-=W-r.height,y*=l?1:-1}if(s===ze||(s===$e||s===nt)&&i===fr){b=rt;var K=d&&P===S&&S.visualViewport?S.visualViewport.width:P[I];p-=K-r.width,p*=l?1:-1}}var X=Object.assign({position:a},c&&fy),ce=u===!0?hy({x:p,y},Ge(n)):{x:p,y};if(p=ce.x,y=ce.y,l){var ue;return Object.assign({},X,(ue={},ue[E]=x?"0":"",ue[b]=w?"0":"",ue.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",ue))}return Object.assign({},X,(t={},t[E]=x?y+"px":"",t[b]=w?p+"px":"",t.transform="",t))}function py(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:wt(t.placement),variation:Ln(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ca(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ca(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:py,data:{}};var kr={passive:!0};function yy(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,i=s===void 0?!0:s,o=r.resize,a=o===void 0?!0:o,l=Ge(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,kr)}),a&&l.addEventListener("resize",n.update,kr),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,kr)}),a&&l.removeEventListener("resize",n.update,kr)}}const my={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yy,data:{}};var vy={left:"right",right:"left",bottom:"top",top:"bottom"};function Ur(e){return e.replace(/left|right|bottom|top/g,function(t){return vy[t]})}var xy={start:"end",end:"start"};function Ta(e){return e.replace(/start|end/g,function(t){return xy[t]})}function io(e){var t=Ge(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function oo(e){return Mn(Yt(e)).left+io(e).scrollLeft}function by(e,t){var n=Ge(e),r=Yt(e),s=n.visualViewport,i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;var c=qc();(c||!c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a+oo(e),y:l}}function wy(e){var t,n=Yt(e),r=io(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=fn(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=fn(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-r.scrollLeft+oo(e),l=-r.scrollTop;return Mt(s||n).direction==="rtl"&&(a+=fn(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:o,x:a,y:l}}function ao(e){var t=Mt(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function Qc(e){return["html","body","#document"].indexOf(jt(e))>=0?e.ownerDocument.body:tt(e)&&ao(e)?e:Qc(Ms(e))}function tr(e,t){var n;t===void 0&&(t=[]);var r=Qc(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ge(r),o=s?[i].concat(i.visualViewport||[],ao(r)?r:[]):r,a=t.concat(o);return s?a:a.concat(tr(Ms(o)))}function Ei(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _y(e,t){var n=Mn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Sa(e,t,n){return t===Kc?Ei(by(e,n)):hn(t)?_y(t,n):Ei(wy(Yt(e)))}function Ey(e){var t=tr(Ms(e)),n=["absolute","fixed"].indexOf(Mt(e).position)>=0,r=n&&tt(e)?mr(e):e;return hn(r)?t.filter(function(s){return hn(s)&&Gc(s,r)&&jt(s)!=="body"}):[]}function jy(e,t,n,r){var s=t==="clippingParents"?Ey(e):[].concat(t),i=[].concat(s,[n]),o=i[0],a=i.reduce(function(l,c){var u=Sa(e,c,r);return l.top=fn(u.top,l.top),l.right=ss(u.right,l.right),l.bottom=ss(u.bottom,l.bottom),l.left=fn(u.left,l.left),l},Sa(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Zc(e){var t=e.reference,n=e.element,r=e.placement,s=r?wt(r):null,i=r?Ln(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(s){case $e:l={x:o,y:t.y-n.height};break;case nt:l={x:o,y:t.y+t.height};break;case rt:l={x:t.x+t.width,y:a};break;case ze:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=s?so(s):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Sn:l[c]=l[c]-(t[u]/2-n[u]/2);break;case fr:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function hr(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?Ug:a,c=n.rootBoundary,u=c===void 0?Kc:c,d=n.elementContext,f=d===void 0?Un:d,p=n.altBoundary,g=p===void 0?!1:p,y=n.padding,_=y===void 0?0:y,w=Jc(typeof _!="number"?_:Xc(_,yr)),x=f===Un?Kg:Un,b=e.rects.popper,E=e.elements[g?x:f],S=jy(hn(E)?E:E.contextElement||Yt(e.elements.popper),l,u,o),P=Mn(e.elements.reference),D=Zc({reference:P,element:b,strategy:"absolute",placement:s}),I=Ei(Object.assign({},b,D)),W=f===Un?I:P,K={top:S.top-W.top+w.top,bottom:W.bottom-S.bottom+w.bottom,left:S.left-W.left+w.left,right:W.right-S.right+w.right},X=e.modifiersData.offset;if(f===Un&&X){var ce=X[s];Object.keys(K).forEach(function(ue){var be=[rt,nt].indexOf(ue)>=0?1:-1,Me=[$e,nt].indexOf(ue)>=0?"y":"x";K[ue]+=ce[Me]*be})}return K}function Ay(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,i=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Wc:l,u=Ln(r),d=u?a?ka:ka.filter(function(g){return Ln(g)===u}):yr,f=d.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=d);var p=f.reduce(function(g,y){return g[y]=hr(e,{placement:y,boundary:s,rootBoundary:i,padding:o})[wt(y)],g},{});return Object.keys(p).sort(function(g,y){return p[g]-p[y]})}function ky(e){if(wt(e)===to)return[];var t=Ur(e);return[Ta(e),t,Ta(t)]}function Oy(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,y=n.allowedAutoPlacements,_=t.options.placement,w=wt(_),x=w===_,b=l||(x||!g?[Ur(_)]:ky(_)),E=[_].concat(b).reduce(function(je,A){return je.concat(wt(A)===to?Ay(t,{placement:A,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:y}):A)},[]),S=t.rects.reference,P=t.rects.popper,D=new Map,I=!0,W=E[0],K=0;K=0,Me=be?"width":"height",ne=hr(t,{placement:X,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),q=be?ue?rt:ze:ue?nt:$e;S[Me]>P[Me]&&(q=Ur(q));var ee=Ur(q),he=[];if(i&&he.push(ne[ce]<=0),a&&he.push(ne[q]<=0,ne[ee]<=0),he.every(function(je){return je})){W=X,I=!1;break}D.set(X,he)}if(I)for(var Fe=g?3:1,ve=function(A){var N=E.find(function(B){var V=D.get(B);if(V)return V.slice(0,A).every(function(re){return re})});if(N)return W=N,"break"},pe=Fe;pe>0;pe--){var Le=ve(pe);if(Le==="break")break}t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}}const Cy={name:"flip",enabled:!0,phase:"main",fn:Oy,requiresIfExists:["offset"],data:{_skip:!1}};function Ra(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ma(e){return[$e,rt,nt,ze].some(function(t){return e[t]>=0})}function Ty(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,o=hr(t,{elementContext:"reference"}),a=hr(t,{altBoundary:!0}),l=Ra(o,r),c=Ra(a,s,i),u=Ma(l),d=Ma(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Sy={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ty};function Ry(e,t,n){var r=wt(e),s=[ze,$e].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],a=i[1];return o=o||0,a=(a||0)*s,[ze,rt].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function My(e){var t=e.state,n=e.options,r=e.name,s=n.offset,i=s===void 0?[0,0]:s,o=Wc.reduce(function(u,d){return u[d]=Ry(d,t.rects,i),u},{}),a=o[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}const Ly={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:My};function Py(e){var t=e.state,n=e.name;t.modifiersData[n]=Zc({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Iy={name:"popperOffsets",enabled:!0,phase:"read",fn:Py,data:{}};function By(e){return e==="x"?"y":"x"}function Dy(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,g=n.tetherOffset,y=g===void 0?0:g,_=hr(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),w=wt(t.placement),x=Ln(t.placement),b=!x,E=so(w),S=By(E),P=t.modifiersData.popperOffsets,D=t.rects.reference,I=t.rects.popper,W=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,K=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),X=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ce={x:0,y:0};if(P){if(i){var ue,be=E==="y"?$e:ze,Me=E==="y"?nt:rt,ne=E==="y"?"height":"width",q=P[E],ee=q+_[be],he=q-_[Me],Fe=p?-I[ne]/2:0,ve=x===Sn?D[ne]:I[ne],pe=x===Sn?-I[ne]:-D[ne],Le=t.elements.arrow,je=p&&Le?ro(Le):{width:0,height:0},A=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Yc(),N=A[be],B=A[Me],V=er(0,D[ne],je[ne]),re=b?D[ne]/2-Fe-V-N-K.mainAxis:ve-V-N-K.mainAxis,ye=b?-D[ne]/2+Fe+V+B+K.mainAxis:pe+V+B+K.mainAxis,Q=t.elements.arrow&&mr(t.elements.arrow),h=Q?E==="y"?Q.clientTop||0:Q.clientLeft||0:0,m=(ue=X==null?void 0:X[E])!=null?ue:0,j=q+re-m-h,k=q+ye-m,C=er(p?ss(ee,j):ee,q,p?fn(he,k):he);P[E]=C,ce[E]=C-q}if(a){var M,F=E==="x"?$e:ze,R=E==="x"?nt:rt,L=P[S],T=S==="y"?"height":"width",z=L+_[F],H=L-_[R],$=[$e,ze].indexOf(w)!==-1,Y=(M=X==null?void 0:X[S])!=null?M:0,te=$?z:L-D[T]-I[T]-Y+K.altAxis,de=$?L+D[T]+I[T]-Y-K.altAxis:H,le=p&&$?ay(te,L,de):er(p?te:z,L,p?de:H);P[S]=le,ce[S]=le-L}t.modifiersData[r]=ce}}const Ny={name:"preventOverflow",enabled:!0,phase:"main",fn:Dy,requiresIfExists:["offset"]};function Fy(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Hy(e){return e===Ge(e)||!tt(e)?io(e):Fy(e)}function Vy(e){var t=e.getBoundingClientRect(),n=Rn(t.width)/e.offsetWidth||1,r=Rn(t.height)/e.offsetHeight||1;return n!==1||r!==1}function $y(e,t,n){n===void 0&&(n=!1);var r=tt(t),s=tt(t)&&Vy(t),i=Yt(t),o=Mn(e,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((jt(t)!=="body"||ao(i))&&(a=Hy(t)),tt(t)?(l=Mn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=oo(i))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function zy(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&s(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),r}function Uy(e){var t=zy(e);return ty.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function Ky(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Wy(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var La={placement:"bottom",modifiers:[],strategy:"absolute"};function Pa(){for(var e=arguments.length,t=new Array(e),n=0;n(md("data-v-5ac9e2c3"),e=e(),vd(),e),Xy={class:"overflow-y-scroll flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone"},Qy={class:"z-10 sticky top-0 flex-col bg-bg-light-tone dark:bg-bg-dark-tone shadow-md"},Zy={class:"flex-row p-4 items-center gap-3 flex-0 w-full"},em={class:"relative"},tm=Ye(()=>v("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[v("div",{class:"scale-75"},[v("i",{"data-feather":"search"})])],-1)),nm={class:"absolute inset-y-0 right-0 flex items-center pr-3"},rm=Ye(()=>v("i",{"data-feather":"x"},null,-1)),sm=[rm],im={class:"flex-row p-4 pt-0 flex items-center gap-3 flex-0"},om=Ye(()=>v("i",{"data-feather":"plus"},null,-1)),am=[om],lm=Ye(()=>v("i",{"data-feather":"check-square"},null,-1)),cm=[lm],um=Ye(()=>v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},[v("i",{"data-feather":"refresh-ccw"})],-1)),dm=Ye(()=>v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Export database",type:"button"},[v("i",{"data-feather":"database"})],-1)),fm={key:0,class:"h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark"},hm={key:1,class:"flex flex-row flex-grow p-4 pt-0 items-center"},pm={class:"flex flex-row flex-grow gap-3"},gm={key:0},ym={class:"flex flex-row gap-3"},mm=Ye(()=>v("i",{"data-feather":"list"},null,-1)),vm=[mm],xm=Ye(()=>v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a file",type:"button"},[v("i",{"data-feather":"log-out"})],-1)),bm={key:0,class:"flex flex-row gap-3"},wm=Ye(()=>v("i",{"data-feather":"trash"},null,-1)),_m=[wm],Em={key:1,class:"flex gap-3 flex-1 items-center justify-end group-hover:visible duration-75"},jm=Ye(()=>v("i",{"data-feather":"check"},null,-1)),Am=[jm],km=Ye(()=>v("i",{"data-feather":"x"},null,-1)),Om=[km],Cm={class:"relative overflow-y-scroll no-scrollbar"},Tm={key:0,class:"gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"},Sm=Ye(()=>v("p",{class:"px-3"},"No discussions are found",-1)),Rm=[Sm],Mm=Ye(()=>v("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex height-64"},null,-1)),Lm={class:"overflow-y-scroll flex flex-col no-scrollbar flex-grow",id:"messages-list"},Pm={class:"sticky bottom-0"},Im={setup(){},data(){return{list:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isGenerating:!1,isCheckbox:!1,isSelectAll:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav")}},methods:{async list_discussions(){try{const e=await ot.get("/list_discussions");if(e)return this.createDiscussionList(e.data),e.data}catch(e){return console.log("Error: Could not list discussions",e),[]}},async load_discussion(e){try{if(e){this.loading=!0,this.setDiscussionLoading(e,this.loading);const t=await ot.post("/load_discussion",{id:e});this.loading=!1,this.setDiscussionLoading(e,this.loading),t&&(this.discussionArr=t.data.filter(r=>r.type==0),this.discussionArr[this.discussionArr.length-1]&&Re(()=>{const r=document.getElementById("messages-list");this.scrollBottom(r)}))}}catch(t){console.log(t),this.loading=!1,this.setDiscussionLoading(e,this.loading)}},async new_discussion(e){try{const t=await ot.get("/new_discussion",{params:{title:e}});if(t)return t.data}catch(t){return console.log("Error: Could not create new discussion",t),{}}},async delete_discussion(e){try{if(e){this.loading=!0,this.setDiscussionLoading(e,this.loading);const t=await ot.post("/delete_discussion",{id:e});this.loading=!1,this.setDiscussionLoading(e,this.loading)}}catch(t){console.log("Error: Could not delete discussion",t),this.loading=!1,this.setDiscussionLoading(e,this.loading)}},async edit_title(e,t){try{if(e){this.loading=!0,this.setDiscussionLoading(e,this.loading);const n=await ot.post("/edit_title",{id:e,title:t});if(this.loading=!1,this.setDiscussionLoading(e,this.loading),n.status==200){const r=this.list.findIndex(i=>i.id==e),s=this.list[r];s.title=t,this.tempList=this.list}}}catch(n){console.log("Error: Could not edit title",n),this.loading=!1,this.setDiscussionLoading(e,this.loading)}},async stop_gen(){try{const e=await ot.get("/stop_gen");if(e)return e.data}catch(e){return console.log("Error: Could not stop generating",e),{}}},filterDiscussions(){this.filterInProgress||(this.filterInProgress=!0,setTimeout(()=>{this.list=this.tempList.filter(e=>e.title&&e.title.includes(this.filterTitle)),this.filterInProgress=!1},100))},async selectDiscussion(e){e&&(this.currentDiscussion=e,this.setPageTitle(e),localStorage.setItem("selected_discussion",this.currentDiscussion.id),await this.load_discussion(e.id),this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content),Re(()=>{const t=document.getElementById("dis-"+e.id);this.scrollToElement(t)}))},scrollToElement(e){e?e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}):console.log("Error: scrollToElement")},scrollBottom(e){e?e.scrollTo({top:e.scrollHeight,behavior:"smooth"}):console.log("Error: scrollBottom")},createUserMsg(e){let t={content:e.message,id:e.id,rank:0,sender:e.user};this.discussionArr.push(t),Re(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)})},updateLastUserMsg(e){const t=this.discussionArr[this.discussionArr.length-1];t.content=e.message,t.id=e.id,t.rank=e.rank,t.sender=e.user},createBotMsg(e){this.updateLastUserMsg(e);let t={content:"..typing",id:e.response_id,rank:0,sender:e.bot};this.discussionArr.push(t),Re(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)}),(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,usrMessage.content)},sendMsg(e){this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),ot.get("/get_generation_status",{}).then(t=>{if(t)if(console.log(t.data.status),t.data.status)console.log("Already generating");else{xt.emit("generate_msg",{prompt:e});let n={message:e,id:this.discussionArr[this.discussionArr.length-1].id+1,rank:0,user:"user"};this.createUserMsg(n)}}).catch(t=>{console.log("Error: Could not get generation status",t)})},steamMessageContent(e){const t=this.discussionArr[this.discussionArr.length-1];t.content=e.data},async changeTitleUsingUserMSG(e,t){const n=this.list.findIndex(s=>s.id==e),r=this.list[n];t&&(r.title=t,this.tempList=this.list),await this.edit_title(e,t)},async createNewDiscussion(){const e=await this.new_discussion();await this.list_discussions();const t=this.list.findIndex(r=>r.id==e.id),n=this.list[t];this.selectDiscussion(n),Re(()=>{const r=document.getElementById("dis-"+e.id);this.scrollToElement(r)})},loadLastUsedDiscussion(){const e=localStorage.getItem("selected_discussion");if(e){const t=this.list.findIndex(r=>r.id==e),n=this.list[t];n&&this.selectDiscussion(n)}},async deleteDiscussion(e){const t=this.list.findIndex(n=>n.id==e);this.list[t],await this.delete_discussion(e),this.currentDiscussion.id==e&&(this.currentDiscussion={},this.discussionArr=[],this.setPageTitle()),this.list.splice(this.list.findIndex(n=>n.id==e),1),this.createDiscussionList(this.list)},async deleteDiscussionMulti(){const e=this.selectedDiscussions;for(let t=0;tr.id==n.id),1)}this.tempList=this.list,this.isCheckbox=!1,console.log("Multi delete done")},async editTitle(e){const t=this.list.findIndex(r=>r.id==e.id),n=this.list[t];n.title=e.title,n.loading=!0,await this.edit_title(e.id,e.title),n.loading=!1},checkUncheckDiscussion(e,t){const n=this.list.findIndex(s=>s.id==t),r=this.list[n];r.checkBoxValue=e.target.checked,this.tempList=this.list},selectAllDiscussions(){this.isSelectAll=!this.tempList.filter(e=>e.checkBoxValue==!1).length>0;for(let e=0;e({id:n.id,title:n.title,selected:!1,loading:!1,checkBoxValue:!1}));this.list=t,this.tempList=t}},setDiscussionLoading(e,t){const n=this.list.findIndex(s=>s.id==e),r=this.list[n];r.loading=t},setPageTitle(e){if(e)if(e.id){const t=e.title?e.title==="untitled"?"New discussion":e.title:"New discussion";document.title="GPT4ALL - WEBUI - "+t}else{const t=e||"Welcome";document.title="GPT4ALL - WEBUI - "+t}else{const t=e||"Welcome";document.title="GPT4ALL - WEBUI - "+t}},stopGenerating(){this.stop_gen(),this.isGenerating=!1,console.log("Stopped generating")},finalMsgEvent(e){console.log("final",e),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),this.chime.play()}},async created(){this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,Re(()=>{mt.replace()}),xt.on("infos",this.createBotMsg),xt.on("message",this.steamMessageContent),xt.on("final",this.finalMsgEvent)},activated(){console.log("Websocket connected (activated)",this.socketConnected),this.isCreated&&this.loadLastUsedDiscussion()},components:{Discussion:mc,Message:vc,ChatBox:xc,WelcomeComponent:bc},watch:{filterTitle(e,t){e==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(e,t){Re(()=>{mt.replace()}),e||(this.isSelectAll=!1)},socketConnected(e,t){console.log("Websocket connected (watch)",e)},showConfirmation(){Re(()=>{mt.replace()})}},computed:{socketConnected(){return eo.connected},selectedDiscussions(){return Re(()=>{mt.replace()}),this.list.filter(e=>e.checkBoxValue==!0)}}},Bm=Object.assign(Im,{__name:"DiscussionsView",setup(e){return ws(()=>{Yy()}),ot.defaults.baseURL="/",(t,n)=>(U(),J(Oe,null,[v("div",Xy,[v("div",Qy,[v("form",Zy,[v("div",em,[tm,v("div",nm,[v("div",{class:Ie(["hover:text-secondary duration-75 active:scale-90",t.filterTitle?"visible":"invisible"]),title:"Clear",onClick:n[0]||(n[0]=r=>t.filterTitle="")},sm,2)]),Pe(v("input",{type:"search",id:"default-search",class:"block w-full p-2 pl-10 pr-10 text-sm border border-gray-300 rounded-lg bg-bg-light focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary",placeholder:"Search...",title:"Filter discussions by title","onUpdate:modelValue":n[1]||(n[1]=r=>t.filterTitle=r),onInput:n[2]||(n[2]=r=>t.filterDiscussions())},null,544),[[Ve,t.filterTitle]])])]),v("div",im,[v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:n[3]||(n[3]=r=>t.createNewDiscussion())},am),v("button",{class:Ie(["text-2xl hover:text-secondary duration-75 active:scale-90",t.isCheckbox?"text-secondary":""]),title:"Edit discussion list",type:"button",onClick:n[4]||(n[4]=r=>t.isCheckbox=!t.isCheckbox)},cm,2),um,dm]),t.isCheckbox?(U(),J("hr",fm)):we("",!0),t.isCheckbox?(U(),J("div",hm,[v("div",pm,[t.selectedDiscussions.length>0?(U(),J("p",gm,"Selected: "+gt(t.selectedDiscussions.length),1)):we("",!0)]),v("div",ym,[v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:n[5]||(n[5]=Se((...r)=>t.selectAllDiscussions&&t.selectAllDiscussions(...r),["stop"]))},vm),xm,t.selectedDiscussions.length>0?(U(),J("div",bm,[t.showConfirmation?we("",!0):(U(),J("button",{key:0,class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:n[6]||(n[6]=Se(r=>t.showConfirmation=!0,["stop"]))},_m)),t.showConfirmation?(U(),J("div",Em,[v("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:n[7]||(n[7]=Se((...r)=>t.deleteDiscussionMulti&&t.deleteDiscussionMulti(...r),["stop"]))},Am),v("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:n[8]||(n[8]=Se(r=>t.showConfirmation=!1,["stop"]))},Om)])):we("",!0)])):we("",!0)])])):we("",!0)]),v("div",Cm,[v("div",{class:Ie(["mx-4 flex-grow",t.filterInProgress?"opacity-20 pointer-events-none":""])},[(U(!0),J(Oe,null,en(t.list,(r,s)=>(U(),cn(mc,{key:s,id:r.id,title:r.title,selected:t.currentDiscussion.id==r.id,loading:r.loading,isCheckbox:t.isCheckbox,checkBoxValue:r.checkBoxValue,onSelect:i=>t.selectDiscussion(r),onDelete:i=>t.deleteDiscussion(r.id),onEditTitle:t.editTitle,onChecked:t.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onEditTitle","onChecked"]))),128)),t.list.length<1?(U(),J("div",Tm,Rm)):we("",!0),Mm],2)])]),v("div",Lm,[v("div",null,[(U(!0),J(Oe,null,en(t.discussionArr,(r,s)=>(U(),cn(vc,{key:s,message:r,onClick:n[9]||(n[9]=i=>t.scrollToElement(i.target)),id:"msg-"+r.id,ref_for:!0,ref:"messages"},null,8,["message","id"]))),128)),t.discussionArr.length<1?(U(),cn(bc,{key:0})):we("",!0)]),v("div",Pm,[t.discussionArr.length>0?(U(),cn(xc,{key:0,onMessageSentEvent:t.sendMsg,loading:t.isGenerating,onStopGenerating:t.stopGenerating},null,8,["onMessageSentEvent","loading","onStopGenerating"])):we("",!0)])])],64))}}),Dm=Pt(Bm,[["__scopeId","data-v-5ac9e2c3"]]),Nm=qh({history:dh("/"),routes:[{path:"/extensions/",name:"extensions",component:Ep},{path:"/help/",name:"help",component:kp},{path:"/settings/",name:"settings",component:Q2},{path:"/training/",name:"training",component:t0},{path:"/",name:"discussions",component:Dm}]});const hu=Wf(bp);hu.use(Nm);hu.mount("#app"); diff --git a/web/dist/index.html b/web/dist/index.html index cbf85bdf..028857ec 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -6,7 +6,7 @@ GPT4All - WEBUI - +