skill-base 2.0.17 → 2.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/bin/skill-base.js +73 -28
- package/package.json +2 -2
- package/src/cappy.js +162 -50
- package/src/database.js +17 -17
- package/src/index.js +75 -22
- package/src/middleware/admin.js +3 -3
- package/src/middleware/auth.js +22 -22
- package/src/middleware/error.js +4 -4
- package/src/models/skill.js +6 -6
- package/src/models/user.js +10 -10
- package/src/models/version.js +6 -6
- package/src/routes/auth.js +17 -17
- package/src/routes/collaborators.js +28 -28
- package/src/routes/init.js +7 -7
- package/src/routes/publish.js +15 -15
- package/src/routes/skills.js +13 -13
- package/src/routes/users.js +9 -9
- package/src/utils/crypto.js +6 -6
- package/src/utils/detect-language.js +56 -0
- package/src/utils/permission.js +7 -7
- package/src/utils/zip.js +6 -6
- package/static/assets/{index-Bw_H1j6L.js → index-BVgsNsqr.js} +3 -3
- package/static/assets/{index-B3cIFt5P.css → index-ByONPaqz.css} +1 -1
- package/static/index.html +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function OS(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function md(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const tt={},Tr=[],hn=()=>{},Rf=()=>!1,la=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),ca=t=>t.startsWith("onUpdate:"),St=Object.assign,gd=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},AS=Object.prototype.hasOwnProperty,Ke=(t,e)=>AS.call(t,e),Oe=Array.isArray,vr=t=>Si(t)==="[object Map]",Lr=t=>Si(t)==="[object Set]",pu=t=>Si(t)==="[object Date]",Me=t=>typeof t=="function",_t=t=>typeof t=="string",Xt=t=>typeof t=="symbol",Qe=t=>t!==null&&typeof t=="object",Cf=t=>(Qe(t)||Me(t))&&Me(t.then)&&Me(t.catch),yf=Object.prototype.toString,Si=t=>yf.call(t),IS=t=>Si(t).slice(8,-1),Nf=t=>Si(t)==="[object Object]",da=t=>_t(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ti=md(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ua=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},xS=/-\w/g,Pt=ua(t=>t.replace(xS,e=>e.slice(1).toUpperCase())),DS=/\B([A-Z])/g,Zn=ua(t=>t.replace(DS,"-$1").toLowerCase()),_a=ua(t=>t.charAt(0).toUpperCase()+t.slice(1)),Ba=ua(t=>t?`on${_a(t)}`:""),Sn=(t,e)=>!Object.is(t,e),Gi=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},Of=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},pa=t=>{const e=parseFloat(t);return isNaN(e)?t:e},wS=t=>{const e=_t(t)?Number(t):NaN;return isNaN(e)?t:e};let mu;const ma=()=>mu||(mu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ga(t){if(Oe(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=_t(r)?PS(r):ga(r);if(i)for(const a in i)e[a]=i[a]}return e}else if(_t(t)||Qe(t))return t}const LS=/;(?![^(]*\))/g,MS=/:([^]+)/,kS=/\/\*[^]*?\*\//g;function PS(t){const e={};return t.replace(kS,"").split(LS).forEach(n=>{if(n){const r=n.split(MS);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Ye(t){let e="";if(_t(t))e=t;else if(Oe(t))for(let n=0;n<t.length;n++){const r=Ye(t[n]);r&&(e+=r+" ")}else if(Qe(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const US="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",FS=md(US);function Af(t){return!!t||t===""}function BS(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Qn(t[r],e[r]);return n}function Qn(t,e){if(t===e)return!0;let n=pu(t),r=pu(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Xt(t),r=Xt(e),n||r)return t===e;if(n=Oe(t),r=Oe(e),n||r)return n&&r?BS(t,e):!1;if(n=Qe(t),r=Qe(e),n||r){if(!n||!r)return!1;const i=Object.keys(t).length,a=Object.keys(e).length;if(i!==a)return!1;for(const s in t){const o=t.hasOwnProperty(s),l=e.hasOwnProperty(s);if(o&&!l||!o&&l||!Qn(t[s],e[s]))return!1}}return String(t)===String(e)}function fd(t,e){return t.findIndex(n=>Qn(n,e))}const If=t=>!!(t&&t.__v_isRef===!0),Z=t=>_t(t)?t:t==null?"":Oe(t)||Qe(t)&&(t.toString===yf||!Me(t.toString))?If(t)?Z(t.value):JSON.stringify(t,xf,2):String(t),xf=(t,e)=>If(e)?xf(t,e.value):vr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i],a)=>(n[Ga(r,a)+" =>"]=i,n),{})}:Lr(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Ga(n))}:Xt(e)?Ga(e):Qe(e)&&!Oe(e)&&!Nf(e)?String(e):e,Ga=(t,e="")=>{var n;return Xt(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};let Nt;class Df{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Nt,!e&&Nt&&(this.index=(Nt.scopes||(Nt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=Nt;try{return Nt=this,e()}finally{Nt=n}}}on(){++this._on===1&&(this.prevScope=Nt,Nt=this)}off(){this._on>0&&--this._on===0&&(Nt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function wf(t){return new Df(t)}function Lf(){return Nt}function GS(t,e=!1){Nt&&Nt.cleanups.push(t)}let rt;const Ya=new WeakSet;class Mf{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Nt&&Nt.active&&Nt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ya.has(this)&&(Ya.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Pf(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,gu(this),Uf(this);const e=rt,n=nn;rt=this,nn=!0;try{return this.fn()}finally{Ff(this),rt=e,nn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)bd(e);this.deps=this.depsTail=void 0,gu(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ya.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Hc(this)&&this.run()}get dirty(){return Hc(this)}}let kf=0,ni,ri;function Pf(t,e=!1){if(t.flags|=8,e){t.next=ri,ri=t;return}t.next=ni,ni=t}function Ed(){kf++}function Sd(){if(--kf>0)return;if(ri){let e=ri;for(ri=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;ni;){let e=ni;for(ni=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function Uf(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Ff(t){let e,n=t.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),bd(r),YS(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}t.deps=e,t.depsTail=n}function Hc(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Bf(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Bf(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===ui)||(t.globalVersion=ui,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Hc(t))))return;t.flags|=2;const e=t.dep,n=rt,r=nn;rt=t,nn=!0;try{Uf(t);const i=t.fn(t._value);(e.version===0||Sn(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{rt=n,nn=r,Ff(t),t.flags&=-3}}function bd(t,e=!1){const{dep:n,prevSub:r,nextSub:i}=t;if(r&&(r.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)bd(a,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function YS(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let nn=!0;const Gf=[];function Mn(){Gf.push(nn),nn=!1}function kn(){const t=Gf.pop();nn=t===void 0?!0:t}function gu(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=rt;rt=void 0;try{e()}finally{rt=n}}}let ui=0;class qS{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hd{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!rt||!nn||rt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==rt)n=this.activeLink=new qS(rt,this),rt.deps?(n.prevDep=rt.depsTail,rt.depsTail.nextDep=n,rt.depsTail=n):rt.deps=rt.depsTail=n,Yf(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=rt.depsTail,n.nextDep=void 0,rt.depsTail.nextDep=n,rt.depsTail=n,rt.deps===n&&(rt.deps=r)}return n}trigger(e){this.version++,ui++,this.notify(e)}notify(e){Ed();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Sd()}}}function Yf(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)Yf(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const $i=new WeakMap,or=Symbol(""),Vc=Symbol(""),_i=Symbol("");function Ot(t,e,n){if(nn&&rt){let r=$i.get(t);r||$i.set(t,r=new Map);let i=r.get(n);i||(r.set(n,i=new hd),i.map=r,i.key=n),i.track()}}function In(t,e,n,r,i,a){const s=$i.get(t);if(!s){ui++;return}const o=l=>{l&&l.trigger()};if(Ed(),e==="clear")s.forEach(o);else{const l=Oe(t),c=l&&da(n);if(l&&n==="length"){const d=Number(r);s.forEach((u,m)=>{(m==="length"||m===_i||!Xt(m)&&m>=d)&&o(u)})}else switch((n!==void 0||s.has(void 0))&&o(s.get(n)),c&&o(s.get(_i)),e){case"add":l?c&&o(s.get("length")):(o(s.get(or)),vr(t)&&o(s.get(Vc)));break;case"delete":l||(o(s.get(or)),vr(t)&&o(s.get(Vc)));break;case"set":vr(t)&&o(s.get(or));break}}Sd()}function HS(t,e){const n=$i.get(t);return n&&n.get(e)}function fr(t){const e=Ve(t);return e===t?e:(Ot(e,"iterate",_i),qt(t)?e:e.map(rn))}function fa(t){return Ot(t=Ve(t),"iterate",_i),t}function fn(t,e){return Pn(t)?Or(Ln(t)?rn(e):e):rn(e)}const VS={__proto__:null,[Symbol.iterator](){return qa(this,Symbol.iterator,t=>fn(this,t))},concat(...t){return fr(this).concat(...t.map(e=>Oe(e)?fr(e):e))},entries(){return qa(this,"entries",t=>(t[1]=fn(this,t[1]),t))},every(t,e){return yn(this,"every",t,e,void 0,arguments)},filter(t,e){return yn(this,"filter",t,e,n=>n.map(r=>fn(this,r)),arguments)},find(t,e){return yn(this,"find",t,e,n=>fn(this,n),arguments)},findIndex(t,e){return yn(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return yn(this,"findLast",t,e,n=>fn(this,n),arguments)},findLastIndex(t,e){return yn(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return yn(this,"forEach",t,e,void 0,arguments)},includes(...t){return Ha(this,"includes",t)},indexOf(...t){return Ha(this,"indexOf",t)},join(t){return fr(this).join(t)},lastIndexOf(...t){return Ha(this,"lastIndexOf",t)},map(t,e){return yn(this,"map",t,e,void 0,arguments)},pop(){return Hr(this,"pop")},push(...t){return Hr(this,"push",t)},reduce(t,...e){return fu(this,"reduce",t,e)},reduceRight(t,...e){return fu(this,"reduceRight",t,e)},shift(){return Hr(this,"shift")},some(t,e){return yn(this,"some",t,e,void 0,arguments)},splice(...t){return Hr(this,"splice",t)},toReversed(){return fr(this).toReversed()},toSorted(t){return fr(this).toSorted(t)},toSpliced(...t){return fr(this).toSpliced(...t)},unshift(...t){return Hr(this,"unshift",t)},values(){return qa(this,"values",t=>fn(this,t))}};function qa(t,e,n){const r=fa(t),i=r[e]();return r!==t&&!qt(t)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.done||(a.value=n(a.value)),a}),i}const zS=Array.prototype;function yn(t,e,n,r,i,a){const s=fa(t),o=s!==t&&!qt(t),l=s[e];if(l!==zS[e]){const u=l.apply(t,a);return o?rn(u):u}let c=n;s!==t&&(o?c=function(u,m){return n.call(this,fn(t,u),m,t)}:n.length>2&&(c=function(u,m){return n.call(this,u,m,t)}));const d=l.call(s,c,r);return o&&i?i(d):d}function fu(t,e,n,r){const i=fa(t),a=i!==t&&!qt(t);let s=n,o=!1;i!==t&&(a?(o=r.length===0,s=function(c,d,u){return o&&(o=!1,c=fn(t,c)),n.call(this,c,fn(t,d),u,t)}):n.length>3&&(s=function(c,d,u){return n.call(this,c,d,u,t)}));const l=i[e](s,...r);return o?fn(t,l):l}function Ha(t,e,n){const r=Ve(t);Ot(r,"iterate",_i);const i=r[e](...n);return(i===-1||i===!1)&&Ea(n[0])?(n[0]=Ve(n[0]),r[e](...n)):i}function Hr(t,e,n=[]){Mn(),Ed();const r=Ve(t)[e].apply(t,n);return Sd(),kn(),r}const $S=md("__proto__,__v_isRef,__isVue"),qf=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Xt));function WS(t){Xt(t)||(t=String(t));const e=Ve(this);return Ot(e,"has",t),e.hasOwnProperty(t)}class Hf{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const i=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(i?a?rb:Wf:a?$f:zf).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const s=Oe(e);if(!i){let l;if(s&&(l=VS[n]))return l;if(n==="hasOwnProperty")return WS}const o=Reflect.get(e,n,ut(e)?e:r);if((Xt(n)?qf.has(n):$S(n))||(i||Ot(e,"get",n),a))return o;if(ut(o)){const l=s&&da(n)?o:o.value;return i&&Qe(l)?$c(l):l}return Qe(o)?i?$c(o):bi(o):o}}class Vf extends Hf{constructor(e=!1){super(!1,e)}set(e,n,r,i){let a=e[n];const s=Oe(e)&&da(n);if(!this._isShallow){const c=Pn(a);if(!qt(r)&&!Pn(r)&&(a=Ve(a),r=Ve(r)),!s&&ut(a)&&!ut(r))return c||(a.value=r),!0}const o=s?Number(n)<e.length:Ke(e,n),l=Reflect.set(e,n,r,ut(e)?e:i);return e===Ve(i)&&(o?Sn(r,a)&&In(e,"set",n,r):In(e,"add",n,r)),l}deleteProperty(e,n){const r=Ke(e,n);e[n];const i=Reflect.deleteProperty(e,n);return i&&r&&In(e,"delete",n,void 0),i}has(e,n){const r=Reflect.has(e,n);return(!Xt(n)||!qf.has(n))&&Ot(e,"has",n),r}ownKeys(e){return Ot(e,"iterate",Oe(e)?"length":or),Reflect.ownKeys(e)}}class KS extends Hf{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const QS=new Vf,XS=new KS,ZS=new Vf(!0);const zc=t=>t,Di=t=>Reflect.getPrototypeOf(t);function jS(t,e,n){return function(...r){const i=this.__v_raw,a=Ve(i),s=vr(a),o=t==="entries"||t===Symbol.iterator&&s,l=t==="keys"&&s,c=i[t](...r),d=n?zc:e?Or:rn;return!e&&Ot(a,"iterate",l?Vc:or),St(Object.create(c),{next(){const{value:u,done:m}=c.next();return m?{value:u,done:m}:{value:o?[d(u[0]),d(u[1])]:d(u),done:m}}})}}function wi(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function JS(t,e){const n={get(i){const a=this.__v_raw,s=Ve(a),o=Ve(i);t||(Sn(i,o)&&Ot(s,"get",i),Ot(s,"get",o));const{has:l}=Di(s),c=e?zc:t?Or:rn;if(l.call(s,i))return c(a.get(i));if(l.call(s,o))return c(a.get(o));a!==s&&a.get(i)},get size(){const i=this.__v_raw;return!t&&Ot(Ve(i),"iterate",or),i.size},has(i){const a=this.__v_raw,s=Ve(a),o=Ve(i);return t||(Sn(i,o)&&Ot(s,"has",i),Ot(s,"has",o)),i===o?a.has(i):a.has(i)||a.has(o)},forEach(i,a){const s=this,o=s.__v_raw,l=Ve(o),c=e?zc:t?Or:rn;return!t&&Ot(l,"iterate",or),o.forEach((d,u)=>i.call(a,c(d),c(u),s))}};return St(n,t?{add:wi("add"),set:wi("set"),delete:wi("delete"),clear:wi("clear")}:{add(i){const a=Ve(this),s=Di(a),o=Ve(i),l=!e&&!qt(i)&&!Pn(i)?o:i;return s.has.call(a,l)||Sn(i,l)&&s.has.call(a,i)||Sn(o,l)&&s.has.call(a,o)||(a.add(l),In(a,"add",l,l)),this},set(i,a){!e&&!qt(a)&&!Pn(a)&&(a=Ve(a));const s=Ve(this),{has:o,get:l}=Di(s);let c=o.call(s,i);c||(i=Ve(i),c=o.call(s,i));const d=l.call(s,i);return s.set(i,a),c?Sn(a,d)&&In(s,"set",i,a):In(s,"add",i,a),this},delete(i){const a=Ve(this),{has:s,get:o}=Di(a);let l=s.call(a,i);l||(i=Ve(i),l=s.call(a,i)),o&&o.call(a,i);const c=a.delete(i);return l&&In(a,"delete",i,void 0),c},clear(){const i=Ve(this),a=i.size!==0,s=i.clear();return a&&In(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=jS(i,t,e)}),n}function Td(t,e){const n=JS(t,e);return(r,i,a)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(Ke(n,i)&&i in r?n:r,i,a)}const eb={get:Td(!1,!1)},tb={get:Td(!1,!0)},nb={get:Td(!0,!1)};const zf=new WeakMap,$f=new WeakMap,Wf=new WeakMap,rb=new WeakMap;function ib(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ab(t){return t.__v_skip||!Object.isExtensible(t)?0:ib(IS(t))}function bi(t){return Pn(t)?t:vd(t,!1,QS,eb,zf)}function Kf(t){return vd(t,!1,ZS,tb,$f)}function $c(t){return vd(t,!0,XS,nb,Wf)}function vd(t,e,n,r,i){if(!Qe(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const a=ab(t);if(a===0)return t;const s=i.get(t);if(s)return s;const o=new Proxy(t,a===2?r:n);return i.set(t,o),o}function Ln(t){return Pn(t)?Ln(t.__v_raw):!!(t&&t.__v_isReactive)}function Pn(t){return!!(t&&t.__v_isReadonly)}function qt(t){return!!(t&&t.__v_isShallow)}function Ea(t){return t?!!t.__v_raw:!1}function Ve(t){const e=t&&t.__v_raw;return e?Ve(e):t}function Rd(t){return!Ke(t,"__v_skip")&&Object.isExtensible(t)&&Of(t,"__v_skip",!0),t}const rn=t=>Qe(t)?bi(t):t,Or=t=>Qe(t)?$c(t):t;function ut(t){return t?t.__v_isRef===!0:!1}function me(t){return Qf(t,!1)}function sb(t){return Qf(t,!0)}function Qf(t,e){return ut(t)?t:new ob(t,e)}class ob{constructor(e,n){this.dep=new hd,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:Ve(e),this._value=n?e:rn(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||qt(e)||Pn(e);e=r?e:Ve(e),Sn(e,n)&&(this._rawValue=e,this._value=r?e:rn(e),this.dep.trigger())}}function j(t){return ut(t)?t.value:t}const lb={get:(t,e,n)=>e==="__v_raw"?t:j(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return ut(i)&&!ut(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function Xf(t){return Ln(t)?t:new Proxy(t,lb)}function cb(t){const e=Oe(t)?new Array(t.length):{};for(const n in t)e[n]=ub(t,n);return e}class db{constructor(e,n,r){this._object=e,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=Xt(n)?n:String(n),this._raw=Ve(e);let i=!0,a=e;if(!Oe(e)||Xt(this._key)||!da(this._key))do i=!Ea(a)||qt(a);while(i&&(a=a.__v_raw));this._shallow=i}get value(){let e=this._object[this._key];return this._shallow&&(e=j(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&ut(this._raw[this._key])){const n=this._object[this._key];if(ut(n)){n.value=e;return}}this._object[this._key]=e}get dep(){return HS(this._raw,this._key)}}function ub(t,e,n){return new db(t,e,n)}class _b{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new hd(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ui-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&rt!==this)return Pf(this,!0),!0}get value(){const e=this.dep.track();return Bf(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function pb(t,e,n=!1){let r,i;return Me(t)?r=t:(r=t.get,i=t.set),new _b(r,i,n)}const Li={},Wi=new WeakMap;let rr;function mb(t,e=!1,n=rr){if(n){let r=Wi.get(n);r||Wi.set(n,r=[]),r.push(t)}}function gb(t,e,n=tt){const{immediate:r,deep:i,once:a,scheduler:s,augmentJob:o,call:l}=n,c=R=>i?R:qt(R)||i===!1||i===0?xn(R,1):xn(R);let d,u,m,_,f=!1,g=!1;if(ut(t)?(u=()=>t.value,f=qt(t)):Ln(t)?(u=()=>c(t),f=!0):Oe(t)?(g=!0,f=t.some(R=>Ln(R)||qt(R)),u=()=>t.map(R=>{if(ut(R))return R.value;if(Ln(R))return c(R);if(Me(R))return l?l(R,2):R()})):Me(t)?e?u=l?()=>l(t,2):t:u=()=>{if(m){Mn();try{m()}finally{kn()}}const R=rr;rr=d;try{return l?l(t,3,[_]):t(_)}finally{rr=R}}:u=hn,e&&i){const R=u,C=i===!0?1/0:i;u=()=>xn(R(),C)}const S=Lf(),b=()=>{d.stop(),S&&S.active&&gd(S.effects,d)};if(a&&e){const R=e;e=(...C)=>{R(...C),b()}}let h=g?new Array(t.length).fill(Li):Li;const v=R=>{if(!(!(d.flags&1)||!d.dirty&&!R))if(e){const C=d.run();if(i||f||(g?C.some((x,D)=>Sn(x,h[D])):Sn(C,h))){m&&m();const x=rr;rr=d;try{const D=[C,h===Li?void 0:g&&h[0]===Li?[]:h,_];h=C,l?l(e,3,D):e(...D)}finally{rr=x}}}else d.run()};return o&&o(v),d=new Mf(u),d.scheduler=s?()=>s(v,!1):v,_=R=>mb(R,!1,d),m=d.onStop=()=>{const R=Wi.get(d);if(R){if(l)l(R,4);else for(const C of R)C();Wi.delete(d)}},e?r?v(!0):h=d.run():s?s(v.bind(null,!0),!0):d.run(),b.pause=d.pause.bind(d),b.resume=d.resume.bind(d),b.stop=b,b}function xn(t,e=1/0,n){if(e<=0||!Qe(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,ut(t))xn(t.value,e,n);else if(Oe(t))for(let r=0;r<t.length;r++)xn(t[r],e,n);else if(Lr(t)||vr(t))t.forEach(r=>{xn(r,e,n)});else if(Nf(t)){for(const r in t)xn(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&xn(t[r],e,n)}return t}function hi(t,e,n,r){try{return r?t(...r):t()}catch(i){Sa(i,e,n)}}function an(t,e,n,r){if(Me(t)){const i=hi(t,e,n,r);return i&&Cf(i)&&i.catch(a=>{Sa(a,e,n)}),i}if(Oe(t)){const i=[];for(let a=0;a<t.length;a++)i.push(an(t[a],e,n,r));return i}}function Sa(t,e,n,r=!0){const i=e?e.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:s}=e&&e.appContext.config||tt;if(e){let o=e.parent;const l=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const d=o.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](t,l,c)===!1)return}o=o.parent}if(a){Mn(),hi(a,null,10,[t,l,c]),kn();return}}fb(t,n,i,r,s)}function fb(t,e,n,r=!0,i=!1){if(i)throw t;console.error(t)}const Mt=[];let gn=-1;const Rr=[];let zn=null,Sr=0;const Zf=Promise.resolve();let Ki=null;function Ti(t){const e=Ki||Zf;return t?e.then(this?t.bind(this):t):e}function Eb(t){let e=gn+1,n=Mt.length;for(;e<n;){const r=e+n>>>1,i=Mt[r],a=pi(i);a<t||a===t&&i.flags&2?e=r+1:n=r}return e}function Cd(t){if(!(t.flags&1)){const e=pi(t),n=Mt[Mt.length-1];!n||!(t.flags&2)&&e>=pi(n)?Mt.push(t):Mt.splice(Eb(e),0,t),t.flags|=1,jf()}}function jf(){Ki||(Ki=Zf.then(eE))}function Sb(t){Oe(t)?Rr.push(...t):zn&&t.id===-1?zn.splice(Sr+1,0,t):t.flags&1||(Rr.push(t),t.flags|=1),jf()}function Eu(t,e,n=gn+1){for(;n<Mt.length;n++){const r=Mt[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;Mt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Jf(t){if(Rr.length){const e=[...new Set(Rr)].sort((n,r)=>pi(n)-pi(r));if(Rr.length=0,zn){zn.push(...e);return}for(zn=e,Sr=0;Sr<zn.length;Sr++){const n=zn[Sr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}zn=null,Sr=0}}const pi=t=>t.id==null?t.flags&2?-1:1/0:t.id;function eE(t){try{for(gn=0;gn<Mt.length;gn++){const e=Mt[gn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),hi(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;gn<Mt.length;gn++){const e=Mt[gn];e&&(e.flags&=-2)}gn=-1,Mt.length=0,Jf(),Ki=null,(Mt.length||Rr.length)&&eE()}}let Gt=null,tE=null;function Qi(t){const e=Gt;return Gt=t,tE=t&&t.type.__scopeId||null,e}function st(t,e=Gt,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&ji(-1);const a=Qi(e);let s;try{s=t(...i)}finally{Qi(a),r._d&&ji(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Ge(t,e){if(Gt===null)return t;const n=Ra(Gt),r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[a,s,o,l=tt]=e[i];a&&(Me(a)&&(a={mounted:a,updated:a}),a.deep&&xn(s),r.push({dir:a,instance:n,value:s,oldValue:void 0,arg:o,modifiers:l}))}return t}function er(t,e,n,r){const i=t.dirs,a=e&&e.dirs;for(let s=0;s<i.length;s++){const o=i[s];a&&(o.oldValue=a[s].value);let l=o.dir[r];l&&(Mn(),an(l,n,8,[t.el,o,t,e]),kn())}}function Yi(t,e){if(At){let n=At.provides;const r=At.parent&&At.parent.provides;r===n&&(n=At.provides=Object.create(r)),n[t]=e}}function Kt(t,e,n=!1){const r=Id();if(r||cr){let i=cr?cr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return n&&Me(e)?e.call(r&&r.proxy):e}}function bb(){return!!(Id()||cr)}const hb=Symbol.for("v-scx"),Tb=()=>Kt(hb);function lr(t,e,n){return nE(t,e,n)}function nE(t,e,n=tt){const{immediate:r,deep:i,flush:a,once:s}=n,o=St({},n),l=e&&r||!e&&a!=="post";let c;if(fi){if(a==="sync"){const _=Tb();c=_.__watcherHandles||(_.__watcherHandles=[])}else if(!l){const _=()=>{};return _.stop=hn,_.resume=hn,_.pause=hn,_}}const d=At;o.call=(_,f,g)=>an(_,d,f,g);let u=!1;a==="post"?o.scheduler=_=>{yt(_,d&&d.suspense)}:a!=="sync"&&(u=!0,o.scheduler=(_,f)=>{f?_():Cd(_)}),o.augmentJob=_=>{e&&(_.flags|=4),u&&(_.flags|=2,d&&(_.id=d.uid,_.i=d))};const m=gb(t,e,o);return fi&&(c?c.push(m):l&&m()),m}function vb(t,e,n){const r=this.proxy,i=_t(t)?t.includes(".")?rE(r,t):()=>r[t]:t.bind(r,r);let a;Me(e)?a=e:(a=e.handler,n=e);const s=vi(this),o=nE(i,a.bind(r),n);return s(),o}function rE(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const iE=Symbol("_vte"),Rb=t=>t.__isTeleport,ii=t=>t&&(t.disabled||t.disabled===""),Cb=t=>t&&(t.defer||t.defer===""),Su=t=>typeof SVGElement<"u"&&t instanceof SVGElement,bu=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Wc=(t,e)=>{const n=t&&t.to;return _t(n)?e?e(n):null:n},aE={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,a,s,o,l,c){const{mc:d,pc:u,pbc:m,o:{insert:_,querySelector:f,createText:g,createComment:S}}=c,b=ii(e.props);let{shapeFlag:h,children:v,dynamicChildren:R}=e;if(t==null){const C=e.el=g(""),x=e.anchor=g("");_(C,n,r),_(x,n,r);const D=(y,F)=>{h&16&&d(v,y,F,i,a,s,o,l)},N=()=>{const y=e.target=Wc(e.props,f),F=Kc(y,e,g,_);y&&(s!=="svg"&&Su(y)?s="svg":s!=="mathml"&&bu(y)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(y),b||(D(y,F),qi(e,!1)))};b&&(D(n,x),qi(e,!0)),Cb(e.props)||a&&a.pendingBranch?(e.el.__isMounted=!1,yt(()=>{e.el.__isMounted===!1&&(N(),delete e.el.__isMounted)},a)):N()}else{e.el=t.el,e.targetStart=t.targetStart;const C=e.anchor=t.anchor,x=e.target=t.target,D=e.targetAnchor=t.targetAnchor;if(t.el.__isMounted===!1){yt(()=>{aE.process(t,e,n,r,i,a,s,o,l,c)},a);return}const N=ii(t.props),y=N?n:x,F=N?C:D;if(s==="svg"||Su(x)?s="svg":(s==="mathml"||bu(x))&&(s="mathml"),R?(m(t.dynamicChildren,R,y,i,a,s,o),Od(t,e,!0)):l||u(t,e,y,F,i,a,s,o,!1),b)N?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Mi(e,n,C,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const X=e.target=Wc(e.props,f);X&&Mi(e,X,null,c,0)}else N&&Mi(e,x,D,c,1);qi(e,b)}},remove(t,e,n,{um:r,o:{remove:i}},a){const{shapeFlag:s,children:o,anchor:l,targetStart:c,targetAnchor:d,target:u,props:m}=t;if(u&&(i(c),i(d)),a&&i(l),s&16){const _=a||!ii(m);for(let f=0;f<o.length;f++){const g=o[f];r(g,e,n,_,!!g.dynamicChildren)}}},move:Mi,hydrate:yb};function Mi(t,e,n,{o:{insert:r},m:i},a=2){a===0&&r(t.targetAnchor,e,n);const{el:s,anchor:o,shapeFlag:l,children:c,props:d}=t,u=a===2;if(u&&r(s,e,n),(!u||ii(d))&&l&16)for(let m=0;m<c.length;m++)i(c[m],e,n,2);u&&r(o,e,n)}function yb(t,e,n,r,i,a,{o:{nextSibling:s,parentNode:o,querySelector:l,insert:c,createText:d}},u){function m(S,b){let h=b;for(;h;){if(h&&h.nodeType===8){if(h.data==="teleport start anchor")e.targetStart=h;else if(h.data==="teleport anchor"){e.targetAnchor=h,S._lpa=e.targetAnchor&&s(e.targetAnchor);break}}h=s(h)}}function _(S,b){b.anchor=u(s(S),b,o(S),n,r,i,a)}const f=e.target=Wc(e.props,l),g=ii(e.props);if(f){const S=f._lpa||f.firstChild;e.shapeFlag&16&&(g?(_(t,e),m(f,S),e.targetAnchor||Kc(f,e,d,c,o(t)===f?t:null)):(e.anchor=s(t),m(f,S),e.targetAnchor||Kc(f,e,d,c),u(S&&s(S),e,f,n,r,i,a))),qi(e,g)}else g&&e.shapeFlag&16&&(_(t,e),e.targetStart=t,e.targetAnchor=s(t));return e.anchor&&s(e.anchor)}const Nb=aE;function qi(t,e){const n=t.ctx;if(n&&n.ut){let r,i;for(e?(r=t.el,i=t.anchor):(r=t.targetStart,i=t.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Kc(t,e,n,r,i=null){const a=e.targetStart=n(""),s=e.targetAnchor=n("");return a[iE]=s,t&&(r(a,t,i),r(s,t,i)),s}const qn=Symbol("_leaveCb"),Vr=Symbol("_enterCb");function Ob(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ht(()=>{t.isMounted=!0}),uE(()=>{t.isUnmounting=!0}),t}const Wt=[Function,Array],Ab={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wt,onEnter:Wt,onAfterEnter:Wt,onEnterCancelled:Wt,onBeforeLeave:Wt,onLeave:Wt,onAfterLeave:Wt,onLeaveCancelled:Wt,onBeforeAppear:Wt,onAppear:Wt,onAfterAppear:Wt,onAppearCancelled:Wt};function Ib(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Qc(t,e,n,r,i){const{appear:a,mode:s,persisted:o=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:m,onLeave:_,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:S,onAppear:b,onAfterAppear:h,onAppearCancelled:v}=e,R=String(t.key),C=Ib(n,t),x=(y,F)=>{y&&an(y,r,9,F)},D=(y,F)=>{const X=F[1];x(y,F),Oe(y)?y.every(I=>I.length<=1)&&X():y.length<=1&&X()},N={mode:s,persisted:o,beforeEnter(y){let F=l;if(!n.isMounted)if(a)F=S||l;else return;y[qn]&&y[qn](!0);const X=C[R];X&&br(t,X)&&X.el[qn]&&X.el[qn](),x(F,[y])},enter(y){if(C[R]===t)return;let F=c,X=d,I=u;if(!n.isMounted)if(a)F=b||c,X=h||d,I=v||u;else return;let Q=!1;y[Vr]=w=>{Q||(Q=!0,w?x(I,[y]):x(X,[y]),N.delayedLeave&&N.delayedLeave(),y[Vr]=void 0)};const T=y[Vr].bind(null,!1);F?D(F,[y,T]):T()},leave(y,F){const X=String(t.key);if(y[Vr]&&y[Vr](!0),n.isUnmounting)return F();x(m,[y]);let I=!1;y[qn]=T=>{I||(I=!0,F(),T?x(g,[y]):x(f,[y]),y[qn]=void 0,C[X]===t&&delete C[X])};const Q=y[qn].bind(null,!1);C[X]=t,_?D(_,[y,Q]):Q()},clone(y){return Qc(y,e,n,r)}};return N}function mi(t,e){t.shapeFlag&6&&t.component?(t.transition=e,mi(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function sE(t,e=!1,n){let r=[],i=0;for(let a=0;a<t.length;a++){let s=t[a];const o=n==null?s.key:String(n)+String(s.key!=null?s.key:a);s.type===Ue?(s.patchFlag&128&&i++,r=r.concat(sE(s.children,e,o))):(e||s.type!==Un)&&r.push(o!=null?dr(s,{key:o}):s)}if(i>1)for(let a=0;a<r.length;a++)r[a].patchFlag=-2;return r}function Ut(t,e){return Me(t)?St({name:t.name},e,{setup:t}):t}function oE(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function hu(t,e){let n;return!!((n=Object.getOwnPropertyDescriptor(t,e))&&!n.configurable)}const Xi=new WeakMap;function ai(t,e,n,r,i=!1){if(Oe(t)){t.forEach((g,S)=>ai(g,e&&(Oe(e)?e[S]:e),n,r,i));return}if(si(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ai(t,e,n,r.component.subTree);return}const a=r.shapeFlag&4?Ra(r.component):r.el,s=i?null:a,{i:o,r:l}=t,c=e&&e.r,d=o.refs===tt?o.refs={}:o.refs,u=o.setupState,m=Ve(u),_=u===tt?Rf:g=>hu(d,g)?!1:Ke(m,g),f=(g,S)=>!(S&&hu(d,S));if(c!=null&&c!==l){if(Tu(e),_t(c))d[c]=null,_(c)&&(u[c]=null);else if(ut(c)){const g=e;f(c,g.k)&&(c.value=null),g.k&&(d[g.k]=null)}}if(Me(l))hi(l,o,12,[s,d]);else{const g=_t(l),S=ut(l);if(g||S){const b=()=>{if(t.f){const h=g?_(l)?u[l]:d[l]:f()||!t.k?l.value:d[t.k];if(i)Oe(h)&&gd(h,a);else if(Oe(h))h.includes(a)||h.push(a);else if(g)d[l]=[a],_(l)&&(u[l]=d[l]);else{const v=[a];f(l,t.k)&&(l.value=v),t.k&&(d[t.k]=v)}}else g?(d[l]=s,_(l)&&(u[l]=s)):S&&(f(l,t.k)&&(l.value=s),t.k&&(d[t.k]=s))};if(s){const h=()=>{b(),Xi.delete(t)};h.id=-1,Xi.set(t,h),yt(h,n)}else Tu(t),b()}}}function Tu(t){const e=Xi.get(t);e&&(e.flags|=8,Xi.delete(t))}ma().requestIdleCallback;ma().cancelIdleCallback;const si=t=>!!t.type.__asyncLoader,lE=t=>t.type.__isKeepAlive;function xb(t,e){cE(t,"a",e)}function Db(t,e){cE(t,"da",e)}function cE(t,e,n=At){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(ba(e,r,n),n){let i=n.parent;for(;i&&i.parent;)lE(i.parent.vnode)&&wb(r,e,n,i),i=i.parent}}function wb(t,e,n,r){const i=ba(e,t,r,!0);ha(()=>{gd(r[e],i)},n)}function ba(t,e,n=At,r=!1){if(n){const i=n[t]||(n[t]=[]),a=e.__weh||(e.__weh=(...s)=>{Mn();const o=vi(n),l=an(e,n,t,s);return o(),kn(),l});return r?i.unshift(a):i.push(a),a}}const Fn=t=>(e,n=At)=>{(!fi||t==="sp")&&ba(t,(...r)=>e(...r),n)},Lb=Fn("bm"),Ht=Fn("m"),Mb=Fn("bu"),dE=Fn("u"),uE=Fn("bum"),ha=Fn("um"),kb=Fn("sp"),Pb=Fn("rtg"),Ub=Fn("rtc");function Fb(t,e=At){ba("ec",t,e)}const Bb="components";function Bn(t,e){return Yb(Bb,t,!0,e)||t}const Gb=Symbol.for("v-ndc");function Yb(t,e,n=!0,r=!1){const i=Gt||At;if(i){const a=i.type;{const o=yh(a,!1);if(o&&(o===e||o===Pt(e)||o===_a(Pt(e))))return a}const s=vu(i[t]||a[t],e)||vu(i.appContext[t],e);return!s&&r?a:s}}function vu(t,e){return t&&(t[e]||t[Pt(e)]||t[_a(Pt(e))])}function Ct(t,e,n,r){let i;const a=n,s=Oe(t);if(s||_t(t)){const o=s&&Ln(t);let l=!1,c=!1;o&&(l=!qt(t),c=Pn(t),t=fa(t)),i=new Array(t.length);for(let d=0,u=t.length;d<u;d++)i[d]=e(l?c?Or(rn(t[d])):rn(t[d]):t[d],d,void 0,a)}else if(typeof t=="number"){i=new Array(t);for(let o=0;o<t;o++)i[o]=e(o+1,o,void 0,a)}else if(Qe(t))if(t[Symbol.iterator])i=Array.from(t,(o,l)=>e(o,l,void 0,a));else{const o=Object.keys(t);i=new Array(o.length);for(let l=0,c=o.length;l<c;l++){const d=o[l];i[l]=e(t[d],d,l,a)}}else i=[];return i}const Xc=t=>t?xE(t)?Ra(t):Xc(t.parent):null,oi=St(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Xc(t.parent),$root:t=>Xc(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>pE(t),$forceUpdate:t=>t.f||(t.f=()=>{Cd(t.update)}),$nextTick:t=>t.n||(t.n=Ti.bind(t.proxy)),$watch:t=>vb.bind(t)}),Va=(t,e)=>t!==tt&&!t.__isScriptSetup&&Ke(t,e),qb={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:a,accessCache:s,type:o,appContext:l}=t;if(e[0]!=="$"){const m=s[e];if(m!==void 0)switch(m){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return a[e]}else{if(Va(r,e))return s[e]=1,r[e];if(i!==tt&&Ke(i,e))return s[e]=2,i[e];if(Ke(a,e))return s[e]=3,a[e];if(n!==tt&&Ke(n,e))return s[e]=4,n[e];Zc&&(s[e]=0)}}const c=oi[e];let d,u;if(c)return e==="$attrs"&&Ot(t.attrs,"get",""),c(t);if((d=o.__cssModules)&&(d=d[e]))return d;if(n!==tt&&Ke(n,e))return s[e]=4,n[e];if(u=l.config.globalProperties,Ke(u,e))return u[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:a}=t;return Va(i,e)?(i[e]=n,!0):r!==tt&&Ke(r,e)?(r[e]=n,!0):Ke(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(a[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,props:a,type:s}},o){let l;return!!(n[o]||t!==tt&&o[0]!=="$"&&Ke(t,o)||Va(e,o)||Ke(a,o)||Ke(r,o)||Ke(oi,o)||Ke(i.config.globalProperties,o)||(l=s.__cssModules)&&l[o])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Ke(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Ru(t){return Oe(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Zc=!0;function Hb(t){const e=pE(t),n=t.proxy,r=t.ctx;Zc=!1,e.beforeCreate&&Cu(e.beforeCreate,t,"bc");const{data:i,computed:a,methods:s,watch:o,provide:l,inject:c,created:d,beforeMount:u,mounted:m,beforeUpdate:_,updated:f,activated:g,deactivated:S,beforeDestroy:b,beforeUnmount:h,destroyed:v,unmounted:R,render:C,renderTracked:x,renderTriggered:D,errorCaptured:N,serverPrefetch:y,expose:F,inheritAttrs:X,components:I,directives:Q,filters:T}=e;if(c&&Vb(c,r,null),s)for(const k in s){const V=s[k];Me(V)&&(r[k]=V.bind(n))}if(i){const k=i.call(n,n);Qe(k)&&(t.data=bi(k))}if(Zc=!0,a)for(const k in a){const V=a[k],q=Me(V)?V.bind(n,n):Me(V.get)?V.get.bind(n,n):hn,re=!Me(V)&&Me(V.set)?V.set.bind(n):hn,L=Ae({get:q,set:re});Object.defineProperty(r,k,{enumerable:!0,configurable:!0,get:()=>L.value,set:B=>L.value=B})}if(o)for(const k in o)_E(o[k],r,n,k);if(l){const k=Me(l)?l.call(n):l;Reflect.ownKeys(k).forEach(V=>{Yi(V,k[V])})}d&&Cu(d,t,"c");function ue(k,V){Oe(V)?V.forEach(q=>k(q.bind(n))):V&&k(V.bind(n))}if(ue(Lb,u),ue(Ht,m),ue(Mb,_),ue(dE,f),ue(xb,g),ue(Db,S),ue(Fb,N),ue(Ub,x),ue(Pb,D),ue(uE,h),ue(ha,R),ue(kb,y),Oe(F))if(F.length){const k=t.exposed||(t.exposed={});F.forEach(V=>{Object.defineProperty(k,V,{get:()=>n[V],set:q=>n[V]=q,enumerable:!0})})}else t.exposed||(t.exposed={});C&&t.render===hn&&(t.render=C),X!=null&&(t.inheritAttrs=X),I&&(t.components=I),Q&&(t.directives=Q),y&&oE(t)}function Vb(t,e,n=hn){Oe(t)&&(t=jc(t));for(const r in t){const i=t[r];let a;Qe(i)?"default"in i?a=Kt(i.from||r,i.default,!0):a=Kt(i.from||r):a=Kt(i),ut(a)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):e[r]=a}}function Cu(t,e,n){an(Oe(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function _E(t,e,n,r){let i=r.includes(".")?rE(n,r):()=>n[r];if(_t(t)){const a=e[t];Me(a)&&lr(i,a)}else if(Me(t))lr(i,t.bind(n));else if(Qe(t))if(Oe(t))t.forEach(a=>_E(a,e,n,r));else{const a=Me(t.handler)?t.handler.bind(n):e[t.handler];Me(a)&&lr(i,a,t)}}function pE(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=t.appContext,o=a.get(e);let l;return o?l=o:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(c=>Zi(l,c,s,!0)),Zi(l,e,s)),Qe(e)&&a.set(e,l),l}function Zi(t,e,n,r=!1){const{mixins:i,extends:a}=e;a&&Zi(t,a,n,!0),i&&i.forEach(s=>Zi(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const o=zb[s]||n&&n[s];t[s]=o?o(t[s],e[s]):e[s]}return t}const zb={data:yu,props:Nu,emits:Nu,methods:Zr,computed:Zr,beforeCreate:Dt,created:Dt,beforeMount:Dt,mounted:Dt,beforeUpdate:Dt,updated:Dt,beforeDestroy:Dt,beforeUnmount:Dt,destroyed:Dt,unmounted:Dt,activated:Dt,deactivated:Dt,errorCaptured:Dt,serverPrefetch:Dt,components:Zr,directives:Zr,watch:Wb,provide:yu,inject:$b};function yu(t,e){return e?t?function(){return St(Me(t)?t.call(this,this):t,Me(e)?e.call(this,this):e)}:e:t}function $b(t,e){return Zr(jc(t),jc(e))}function jc(t){if(Oe(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Dt(t,e){return t?[...new Set([].concat(t,e))]:e}function Zr(t,e){return t?St(Object.create(null),t,e):e}function Nu(t,e){return t?Oe(t)&&Oe(e)?[...new Set([...t,...e])]:St(Object.create(null),Ru(t),Ru(e??{})):e}function Wb(t,e){if(!t)return e;if(!e)return t;const n=St(Object.create(null),t);for(const r in e)n[r]=Dt(t[r],e[r]);return n}function mE(){return{app:null,config:{isNativeTag:Rf,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 Kb=0;function Qb(t,e){return function(r,i=null){Me(r)||(r=St({},r)),i!=null&&!Qe(i)&&(i=null);const a=mE(),s=new WeakSet,o=[];let l=!1;const c=a.app={_uid:Kb++,_component:r,_props:i,_container:null,_context:a,_instance:null,version:Oh,get config(){return a.config},set config(d){},use(d,...u){return s.has(d)||(d&&Me(d.install)?(s.add(d),d.install(c,...u)):Me(d)&&(s.add(d),d(c,...u))),c},mixin(d){return a.mixins.includes(d)||a.mixins.push(d),c},component(d,u){return u?(a.components[d]=u,c):a.components[d]},directive(d,u){return u?(a.directives[d]=u,c):a.directives[d]},mount(d,u,m){if(!l){const _=c._ceVNode||Be(r,i);return _.appContext=a,m===!0?m="svg":m===!1&&(m=void 0),t(_,d,m),l=!0,c._container=d,d.__vue_app__=c,Ra(_.component)}},onUnmount(d){o.push(d)},unmount(){l&&(an(o,c._instance,16),t(null,c._container),delete c._container.__vue_app__)},provide(d,u){return a.provides[d]=u,c},runWithContext(d){const u=cr;cr=c;try{return d()}finally{cr=u}}};return c}}let cr=null;const Xb=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Pt(e)}Modifiers`]||t[`${Zn(e)}Modifiers`];function Zb(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||tt;let i=n;const a=e.startsWith("update:"),s=a&&Xb(r,e.slice(7));s&&(s.trim&&(i=n.map(d=>_t(d)?d.trim():d)),s.number&&(i=n.map(pa)));let o,l=r[o=Ba(e)]||r[o=Ba(Pt(e))];!l&&a&&(l=r[o=Ba(Zn(e))]),l&&an(l,t,6,i);const c=r[o+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,an(c,t,6,i)}}const jb=new WeakMap;function gE(t,e,n=!1){const r=n?jb:e.emitsCache,i=r.get(t);if(i!==void 0)return i;const a=t.emits;let s={},o=!1;if(!Me(t)){const l=c=>{const d=gE(c,e,!0);d&&(o=!0,St(s,d))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!a&&!o?(Qe(t)&&r.set(t,null),null):(Oe(a)?a.forEach(l=>s[l]=null):St(s,a),Qe(t)&&r.set(t,s),s)}function Ta(t,e){return!t||!la(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ke(t,e[0].toLowerCase()+e.slice(1))||Ke(t,Zn(e))||Ke(t,e))}function Ou(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:o,emit:l,render:c,renderCache:d,props:u,data:m,setupState:_,ctx:f,inheritAttrs:g}=t,S=Qi(t);let b,h;try{if(n.shapeFlag&4){const R=i||r,C=R;b=En(c.call(C,R,d,u,_,m,f)),h=o}else{const R=e;b=En(R.length>1?R(u,{attrs:o,slots:s,emit:l}):R(u,null)),h=e.props?o:Jb(o)}}catch(R){li.length=0,Sa(R,t,1),b=Be(Un)}let v=b;if(h&&g!==!1){const R=Object.keys(h),{shapeFlag:C}=v;R.length&&C&7&&(a&&R.some(ca)&&(h=eh(h,a)),v=dr(v,h,!1,!0))}return n.dirs&&(v=dr(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&mi(v,n.transition),b=v,Qi(S),b}const Jb=t=>{let e;for(const n in t)(n==="class"||n==="style"||la(n))&&((e||(e={}))[n]=t[n]);return e},eh=(t,e)=>{const n={};for(const r in t)(!ca(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function th(t,e,n){const{props:r,children:i,component:a}=t,{props:s,children:o,patchFlag:l}=e,c=a.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Au(r,s,c):!!s;if(l&8){const d=e.dynamicProps;for(let u=0;u<d.length;u++){const m=d[u];if(fE(s,r,m)&&!Ta(c,m))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===s?!1:r?s?Au(r,s,c):!0:!!s;return!1}function Au(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const a=r[i];if(fE(e,t,a)&&!Ta(n,a))return!0}return!1}function fE(t,e,n){const r=t[n],i=e[n];return n==="style"&&Qe(r)&&Qe(i)?!Qn(r,i):r!==i}function nh({vnode:t,parent:e,suspense:n},r){for(;e;){const i=e.subTree;if(i.suspense&&i.suspense.activeBranch===t&&(i.suspense.vnode.el=i.el=r,t=i),i===t)(t=e.vnode).el=r,e=e.parent;else break}n&&n.activeBranch===t&&(n.vnode.el=r)}const EE={},SE=()=>Object.create(EE),bE=t=>Object.getPrototypeOf(t)===EE;function rh(t,e,n,r=!1){const i={},a=SE();t.propsDefaults=Object.create(null),hE(t,e,i,a);for(const s in t.propsOptions[0])s in i||(i[s]=void 0);n?t.props=r?i:Kf(i):t.type.props?t.props=i:t.props=a,t.attrs=a}function ih(t,e,n,r){const{props:i,attrs:a,vnode:{patchFlag:s}}=t,o=Ve(i),[l]=t.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const d=t.vnode.dynamicProps;for(let u=0;u<d.length;u++){let m=d[u];if(Ta(t.emitsOptions,m))continue;const _=e[m];if(l)if(Ke(a,m))_!==a[m]&&(a[m]=_,c=!0);else{const f=Pt(m);i[f]=Jc(l,o,f,_,t,!1)}else _!==a[m]&&(a[m]=_,c=!0)}}}else{hE(t,e,i,a)&&(c=!0);let d;for(const u in o)(!e||!Ke(e,u)&&((d=Zn(u))===u||!Ke(e,d)))&&(l?n&&(n[u]!==void 0||n[d]!==void 0)&&(i[u]=Jc(l,o,u,void 0,t,!0)):delete i[u]);if(a!==o)for(const u in a)(!e||!Ke(e,u))&&(delete a[u],c=!0)}c&&In(t.attrs,"set","")}function hE(t,e,n,r){const[i,a]=t.propsOptions;let s=!1,o;if(e)for(let l in e){if(ti(l))continue;const c=e[l];let d;i&&Ke(i,d=Pt(l))?!a||!a.includes(d)?n[d]=c:(o||(o={}))[d]=c:Ta(t.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,s=!0)}if(a){const l=Ve(n),c=o||tt;for(let d=0;d<a.length;d++){const u=a[d];n[u]=Jc(i,l,u,c[u],t,!Ke(c,u))}}return s}function Jc(t,e,n,r,i,a){const s=t[n];if(s!=null){const o=Ke(s,"default");if(o&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&Me(l)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const d=vi(i);r=c[n]=l.call(null,e),d()}}else r=l;i.ce&&i.ce._setProp(n,r)}s[0]&&(a&&!o?r=!1:s[1]&&(r===""||r===Zn(n))&&(r=!0))}return r}const ah=new WeakMap;function TE(t,e,n=!1){const r=n?ah:e.propsCache,i=r.get(t);if(i)return i;const a=t.props,s={},o=[];let l=!1;if(!Me(t)){const d=u=>{l=!0;const[m,_]=TE(u,e,!0);St(s,m),_&&o.push(..._)};!n&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!a&&!l)return Qe(t)&&r.set(t,Tr),Tr;if(Oe(a))for(let d=0;d<a.length;d++){const u=Pt(a[d]);Iu(u)&&(s[u]=tt)}else if(a)for(const d in a){const u=Pt(d);if(Iu(u)){const m=a[d],_=s[u]=Oe(m)||Me(m)?{type:m}:St({},m),f=_.type;let g=!1,S=!0;if(Oe(f))for(let b=0;b<f.length;++b){const h=f[b],v=Me(h)&&h.name;if(v==="Boolean"){g=!0;break}else v==="String"&&(S=!1)}else g=Me(f)&&f.name==="Boolean";_[0]=g,_[1]=S,(g||Ke(_,"default"))&&o.push(u)}}const c=[s,o];return Qe(t)&&r.set(t,c),c}function Iu(t){return t[0]!=="$"&&!ti(t)}const yd=t=>t==="_"||t==="_ctx"||t==="$stable",Nd=t=>Oe(t)?t.map(En):[En(t)],sh=(t,e,n)=>{if(e._n)return e;const r=st((...i)=>Nd(e(...i)),n);return r._c=!1,r},vE=(t,e,n)=>{const r=t._ctx;for(const i in t){if(yd(i))continue;const a=t[i];if(Me(a))e[i]=sh(i,a,r);else if(a!=null){const s=Nd(a);e[i]=()=>s}}},RE=(t,e)=>{const n=Nd(e);t.slots.default=()=>n},CE=(t,e,n)=>{for(const r in e)(n||!yd(r))&&(t[r]=e[r])},oh=(t,e,n)=>{const r=t.slots=SE();if(t.vnode.shapeFlag&32){const i=e._;i?(CE(r,e,n),n&&Of(r,"_",i,!0)):vE(e,r)}else e&&RE(t,e)},lh=(t,e,n)=>{const{vnode:r,slots:i}=t;let a=!0,s=tt;if(r.shapeFlag&32){const o=e._;o?n&&o===1?a=!1:CE(i,e,n):(a=!e.$stable,vE(e,i)),s=e}else e&&(RE(t,e),s={default:1});if(a)for(const o in i)!yd(o)&&s[o]==null&&delete i[o]},yt=ph;function ch(t){return dh(t)}function dh(t,e){const n=ma();n.__VUE__=!0;const{insert:r,remove:i,patchProp:a,createElement:s,createText:o,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:m,setScopeId:_=hn,insertStaticContent:f}=t,g=(M,G,E,H=null,Y=null,O=null,A=void 0,U=null,J=!!G.dynamicChildren)=>{if(M===G)return;M&&!br(M,G)&&(H=ee(M),B(M,Y,O,!0),M=null),G.patchFlag===-2&&(J=!1,G.dynamicChildren=null);const{type:K,ref:W,shapeFlag:z}=G;switch(K){case va:S(M,G,E,H);break;case Un:b(M,G,E,H);break;case Hi:M==null&&h(G,E,H,A);break;case Ue:I(M,G,E,H,Y,O,A,U,J);break;default:z&1?C(M,G,E,H,Y,O,A,U,J):z&6?Q(M,G,E,H,Y,O,A,U,J):(z&64||z&128)&&K.process(M,G,E,H,Y,O,A,U,J,pe)}W!=null&&Y?ai(W,M&&M.ref,O,G||M,!G):W==null&&M&&M.ref!=null&&ai(M.ref,null,O,M,!0)},S=(M,G,E,H)=>{if(M==null)r(G.el=o(G.children),E,H);else{const Y=G.el=M.el;G.children!==M.children&&c(Y,G.children)}},b=(M,G,E,H)=>{M==null?r(G.el=l(G.children||""),E,H):G.el=M.el},h=(M,G,E,H)=>{[M.el,M.anchor]=f(M.children,G,E,H,M.el,M.anchor)},v=({el:M,anchor:G},E,H)=>{let Y;for(;M&&M!==G;)Y=m(M),r(M,E,H),M=Y;r(G,E,H)},R=({el:M,anchor:G})=>{let E;for(;M&&M!==G;)E=m(M),i(M),M=E;i(G)},C=(M,G,E,H,Y,O,A,U,J)=>{if(G.type==="svg"?A="svg":G.type==="math"&&(A="mathml"),M==null)x(G,E,H,Y,O,A,U,J);else{const K=M.el&&M.el._isVueCE?M.el:null;try{K&&K._beginPatch(),y(M,G,Y,O,A,U,J)}finally{K&&K._endPatch()}}},x=(M,G,E,H,Y,O,A,U)=>{let J,K;const{props:W,shapeFlag:z,transition:P,dirs:ne}=M;if(J=M.el=s(M.type,O,W&&W.is,W),z&8?d(J,M.children):z&16&&N(M.children,J,null,H,Y,za(M,O),A,U),ne&&er(M,null,H,"created"),D(J,M,M.scopeId,A,H),W){for(const Te in W)Te!=="value"&&!ti(Te)&&a(J,Te,null,W[Te],O,H);"value"in W&&a(J,"value",null,W.value,O),(K=W.onVnodeBeforeMount)&&un(K,H,M)}ne&&er(M,null,H,"beforeMount");const ie=uh(Y,P);ie&&P.beforeEnter(J),r(J,G,E),((K=W&&W.onVnodeMounted)||ie||ne)&&yt(()=>{K&&un(K,H,M),ie&&P.enter(J),ne&&er(M,null,H,"mounted")},Y)},D=(M,G,E,H,Y)=>{if(E&&_(M,E),H)for(let O=0;O<H.length;O++)_(M,H[O]);if(Y){let O=Y.subTree;if(G===O||OE(O.type)&&(O.ssContent===G||O.ssFallback===G)){const A=Y.vnode;D(M,A,A.scopeId,A.slotScopeIds,Y.parent)}}},N=(M,G,E,H,Y,O,A,U,J=0)=>{for(let K=J;K<M.length;K++){const W=M[K]=U?An(M[K]):En(M[K]);g(null,W,G,E,H,Y,O,A,U)}},y=(M,G,E,H,Y,O,A)=>{const U=G.el=M.el;let{patchFlag:J,dynamicChildren:K,dirs:W}=G;J|=M.patchFlag&16;const z=M.props||tt,P=G.props||tt;let ne;if(E&&tr(E,!1),(ne=P.onVnodeBeforeUpdate)&&un(ne,E,G,M),W&&er(G,M,E,"beforeUpdate"),E&&tr(E,!0),(z.innerHTML&&P.innerHTML==null||z.textContent&&P.textContent==null)&&d(U,""),K?F(M.dynamicChildren,K,U,E,H,za(G,Y),O):A||V(M,G,U,null,E,H,za(G,Y),O,!1),J>0){if(J&16)X(U,z,P,E,Y);else if(J&2&&z.class!==P.class&&a(U,"class",null,P.class,Y),J&4&&a(U,"style",z.style,P.style,Y),J&8){const ie=G.dynamicProps;for(let Te=0;Te<ie.length;Te++){const be=ie[Te],we=z[be],He=P[be];(He!==we||be==="value")&&a(U,be,we,He,Y,E)}}J&1&&M.children!==G.children&&d(U,G.children)}else!A&&K==null&&X(U,z,P,E,Y);((ne=P.onVnodeUpdated)||W)&&yt(()=>{ne&&un(ne,E,G,M),W&&er(G,M,E,"updated")},H)},F=(M,G,E,H,Y,O,A)=>{for(let U=0;U<G.length;U++){const J=M[U],K=G[U],W=J.el&&(J.type===Ue||!br(J,K)||J.shapeFlag&198)?u(J.el):E;g(J,K,W,null,H,Y,O,A,!0)}},X=(M,G,E,H,Y)=>{if(G!==E){if(G!==tt)for(const O in G)!ti(O)&&!(O in E)&&a(M,O,G[O],null,Y,H);for(const O in E){if(ti(O))continue;const A=E[O],U=G[O];A!==U&&O!=="value"&&a(M,O,U,A,Y,H)}"value"in E&&a(M,"value",G.value,E.value,Y)}},I=(M,G,E,H,Y,O,A,U,J)=>{const K=G.el=M?M.el:o(""),W=G.anchor=M?M.anchor:o("");let{patchFlag:z,dynamicChildren:P,slotScopeIds:ne}=G;ne&&(U=U?U.concat(ne):ne),M==null?(r(K,E,H),r(W,E,H),N(G.children||[],E,W,Y,O,A,U,J)):z>0&&z&64&&P&&M.dynamicChildren&&M.dynamicChildren.length===P.length?(F(M.dynamicChildren,P,E,Y,O,A,U),(G.key!=null||Y&&G===Y.subTree)&&Od(M,G,!0)):V(M,G,E,W,Y,O,A,U,J)},Q=(M,G,E,H,Y,O,A,U,J)=>{G.slotScopeIds=U,M==null?G.shapeFlag&512?Y.ctx.activate(G,E,H,A,J):T(G,E,H,Y,O,A,J):w(M,G,J)},T=(M,G,E,H,Y,O,A)=>{const U=M.component=hh(M,H,Y);if(lE(M)&&(U.ctx.renderer=pe),Th(U,!1,A),U.asyncDep){if(Y&&Y.registerDep(U,ue,A),!M.el){const J=U.subTree=Be(Un);b(null,J,G,E),M.placeholder=J.el}}else ue(U,M,G,E,Y,O,A)},w=(M,G,E)=>{const H=G.component=M.component;if(th(M,G,E))if(H.asyncDep&&!H.asyncResolved){k(H,G,E);return}else H.next=G,H.update();else G.el=M.el,H.vnode=G},ue=(M,G,E,H,Y,O,A)=>{const U=()=>{if(M.isMounted){let{next:z,bu:P,u:ne,parent:ie,vnode:Te}=M;{const nt=yE(M);if(nt){z&&(z.el=Te.el,k(M,z,A)),nt.asyncDep.then(()=>{yt(()=>{M.isUnmounted||K()},Y)});return}}let be=z,we;tr(M,!1),z?(z.el=Te.el,k(M,z,A)):z=Te,P&&Gi(P),(we=z.props&&z.props.onVnodeBeforeUpdate)&&un(we,ie,z,Te),tr(M,!0);const He=Ou(M),Je=M.subTree;M.subTree=He,g(Je,He,u(Je.el),ee(Je),M,Y,O),z.el=He.el,be===null&&nh(M,He.el),ne&&yt(ne,Y),(we=z.props&&z.props.onVnodeUpdated)&&yt(()=>un(we,ie,z,Te),Y)}else{let z;const{el:P,props:ne}=G,{bm:ie,m:Te,parent:be,root:we,type:He}=M,Je=si(G);tr(M,!1),ie&&Gi(ie),!Je&&(z=ne&&ne.onVnodeBeforeMount)&&un(z,be,G),tr(M,!0);{we.ce&&we.ce._hasShadowRoot()&&we.ce._injectChildStyle(He,M.parent?M.parent.type:void 0);const nt=M.subTree=Ou(M);g(null,nt,E,H,M,Y,O),G.el=nt.el}if(Te&&yt(Te,Y),!Je&&(z=ne&&ne.onVnodeMounted)){const nt=G;yt(()=>un(z,be,nt),Y)}(G.shapeFlag&256||be&&si(be.vnode)&&be.vnode.shapeFlag&256)&&M.a&&yt(M.a,Y),M.isMounted=!0,G=E=H=null}};M.scope.on();const J=M.effect=new Mf(U);M.scope.off();const K=M.update=J.run.bind(J),W=M.job=J.runIfDirty.bind(J);W.i=M,W.id=M.uid,J.scheduler=()=>Cd(W),tr(M,!0),K()},k=(M,G,E)=>{G.component=M;const H=M.vnode.props;M.vnode=G,M.next=null,ih(M,G.props,H,E),lh(M,G.children,E),Mn(),Eu(M),kn()},V=(M,G,E,H,Y,O,A,U,J=!1)=>{const K=M&&M.children,W=M?M.shapeFlag:0,z=G.children,{patchFlag:P,shapeFlag:ne}=G;if(P>0){if(P&128){re(K,z,E,H,Y,O,A,U,J);return}else if(P&256){q(K,z,E,H,Y,O,A,U,J);return}}ne&8?(W&16&&Ee(K,Y,O),z!==K&&d(E,z)):W&16?ne&16?re(K,z,E,H,Y,O,A,U,J):Ee(K,Y,O,!0):(W&8&&d(E,""),ne&16&&N(z,E,H,Y,O,A,U,J))},q=(M,G,E,H,Y,O,A,U,J)=>{M=M||Tr,G=G||Tr;const K=M.length,W=G.length,z=Math.min(K,W);let P;for(P=0;P<z;P++){const ne=G[P]=J?An(G[P]):En(G[P]);g(M[P],ne,E,null,Y,O,A,U,J)}K>W?Ee(M,Y,O,!0,!1,z):N(G,E,H,Y,O,A,U,J,z)},re=(M,G,E,H,Y,O,A,U,J)=>{let K=0;const W=G.length;let z=M.length-1,P=W-1;for(;K<=z&&K<=P;){const ne=M[K],ie=G[K]=J?An(G[K]):En(G[K]);if(br(ne,ie))g(ne,ie,E,null,Y,O,A,U,J);else break;K++}for(;K<=z&&K<=P;){const ne=M[z],ie=G[P]=J?An(G[P]):En(G[P]);if(br(ne,ie))g(ne,ie,E,null,Y,O,A,U,J);else break;z--,P--}if(K>z){if(K<=P){const ne=P+1,ie=ne<W?G[ne].el:H;for(;K<=P;)g(null,G[K]=J?An(G[K]):En(G[K]),E,ie,Y,O,A,U,J),K++}}else if(K>P)for(;K<=z;)B(M[K],Y,O,!0),K++;else{const ne=K,ie=K,Te=new Map;for(K=ie;K<=P;K++){const ot=G[K]=J?An(G[K]):En(G[K]);ot.key!=null&&Te.set(ot.key,K)}let be,we=0;const He=P-ie+1;let Je=!1,nt=0;const Pe=new Array(He);for(K=0;K<He;K++)Pe[K]=0;for(K=ne;K<=z;K++){const ot=M[K];if(we>=He){B(ot,Y,O,!0);continue}let it;if(ot.key!=null)it=Te.get(ot.key);else for(be=ie;be<=P;be++)if(Pe[be-ie]===0&&br(ot,G[be])){it=be;break}it===void 0?B(ot,Y,O,!0):(Pe[it-ie]=K+1,it>=nt?nt=it:Je=!0,g(ot,G[it],E,null,Y,O,A,U,J),we++)}const It=Je?_h(Pe):Tr;for(be=It.length-1,K=He-1;K>=0;K--){const ot=ie+K,it=G[ot],ln=G[ot+1],Zt=ot+1<W?ln.el||NE(ln):H;Pe[K]===0?g(null,it,E,Zt,Y,O,A,U,J):Je&&(be<0||K!==It[be]?L(it,E,Zt,2):be--)}}},L=(M,G,E,H,Y=null)=>{const{el:O,type:A,transition:U,children:J,shapeFlag:K}=M;if(K&6){L(M.component.subTree,G,E,H);return}if(K&128){M.suspense.move(G,E,H);return}if(K&64){A.move(M,G,E,pe);return}if(A===Ue){r(O,G,E);for(let z=0;z<J.length;z++)L(J[z],G,E,H);r(M.anchor,G,E);return}if(A===Hi){v(M,G,E);return}if(H!==2&&K&1&&U)if(H===0)U.beforeEnter(O),r(O,G,E),yt(()=>U.enter(O),Y);else{const{leave:z,delayLeave:P,afterLeave:ne}=U,ie=()=>{M.ctx.isUnmounted?i(O):r(O,G,E)},Te=()=>{O._isLeaving&&O[qn](!0),z(O,()=>{ie(),ne&&ne()})};P?P(O,ie,Te):Te()}else r(O,G,E)},B=(M,G,E,H=!1,Y=!1)=>{const{type:O,props:A,ref:U,children:J,dynamicChildren:K,shapeFlag:W,patchFlag:z,dirs:P,cacheIndex:ne,memo:ie}=M;if(z===-2&&(Y=!1),U!=null&&(Mn(),ai(U,null,E,M,!0),kn()),ne!=null&&(G.renderCache[ne]=void 0),W&256){G.ctx.deactivate(M);return}const Te=W&1&&P,be=!si(M);let we;if(be&&(we=A&&A.onVnodeBeforeUnmount)&&un(we,G,M),W&6)oe(M.component,E,H);else{if(W&128){M.suspense.unmount(E,H);return}Te&&er(M,null,G,"beforeUnmount"),W&64?M.type.remove(M,G,E,pe,H):K&&!K.hasOnce&&(O!==Ue||z>0&&z&64)?Ee(K,G,E,!1,!0):(O===Ue&&z&384||!Y&&W&16)&&Ee(J,G,E),H&&te(M)}const He=ie!=null&&ne==null;(be&&(we=A&&A.onVnodeUnmounted)||Te||He)&&yt(()=>{we&&un(we,G,M),Te&&er(M,null,G,"unmounted"),He&&(M.el=null)},E)},te=M=>{const{type:G,el:E,anchor:H,transition:Y}=M;if(G===Ue){ce(E,H);return}if(G===Hi){R(M);return}const O=()=>{i(E),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(M.shapeFlag&1&&Y&&!Y.persisted){const{leave:A,delayLeave:U}=Y,J=()=>A(E,O);U?U(M.el,O,J):J()}else O()},ce=(M,G)=>{let E;for(;M!==G;)E=m(M),i(M),M=E;i(G)},oe=(M,G,E)=>{const{bum:H,scope:Y,job:O,subTree:A,um:U,m:J,a:K}=M;xu(J),xu(K),H&&Gi(H),Y.stop(),O&&(O.flags|=8,B(A,M,G,E)),U&&yt(U,G),yt(()=>{M.isUnmounted=!0},G)},Ee=(M,G,E,H=!1,Y=!1,O=0)=>{for(let A=O;A<M.length;A++)B(M[A],G,E,H,Y)},ee=M=>{if(M.shapeFlag&6)return ee(M.component.subTree);if(M.shapeFlag&128)return M.suspense.next();const G=m(M.anchor||M.el),E=G&&G[iE];return E?m(E):G};let ae=!1;const se=(M,G,E)=>{let H;M==null?G._vnode&&(B(G._vnode,null,null,!0),H=G._vnode.component):g(G._vnode||null,M,G,null,null,null,E),G._vnode=M,ae||(ae=!0,Eu(H),Jf(),ae=!1)},pe={p:g,um:B,m:L,r:te,mt:T,mc:N,pc:V,pbc:F,n:ee,o:t};return{render:se,hydrate:void 0,createApp:Qb(se)}}function za({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function tr({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function uh(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Od(t,e,n=!1){const r=t.children,i=e.children;if(Oe(r)&&Oe(i))for(let a=0;a<r.length;a++){const s=r[a];let o=i[a];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[a]=An(i[a]),o.el=s.el),!n&&o.patchFlag!==-2&&Od(s,o)),o.type===va&&(o.patchFlag===-1&&(o=i[a]=An(o)),o.el=s.el),o.type===Un&&!o.el&&(o.el=s.el)}}function _h(t){const e=t.slice(),n=[0];let r,i,a,s,o;const l=t.length;for(r=0;r<l;r++){const c=t[r];if(c!==0){if(i=n[n.length-1],t[i]<c){e[r]=i,n.push(r);continue}for(a=0,s=n.length-1;a<s;)o=a+s>>1,t[n[o]]<c?a=o+1:s=o;c<t[n[a]]&&(a>0&&(e[r]=n[a-1]),n[a]=r)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=e[s];return n}function yE(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:yE(e)}function xu(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function NE(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?NE(e.subTree):null}const OE=t=>t.__isSuspense;function ph(t,e){e&&e.pendingBranch?Oe(t)?e.effects.push(...t):e.effects.push(t):Sb(t)}const Ue=Symbol.for("v-fgt"),va=Symbol.for("v-txt"),Un=Symbol.for("v-cmt"),Hi=Symbol.for("v-stc"),li=[];let Yt=null;function le(t=!1){li.push(Yt=t?null:[])}function mh(){li.pop(),Yt=li[li.length-1]||null}let gi=1;function ji(t,e=!1){gi+=t,t<0&&Yt&&e&&(Yt.hasOnce=!0)}function AE(t){return t.dynamicChildren=gi>0?Yt||Tr:null,mh(),gi>0&&Yt&&Yt.push(t),t}function de(t,e,n,r,i,a){return AE(p(t,e,n,r,i,a,!0))}function wn(t,e,n,r,i){return AE(Be(t,e,n,r,i,!0))}function Ji(t){return t?t.__v_isVNode===!0:!1}function br(t,e){return t.type===e.type&&t.key===e.key}const IE=({key:t})=>t??null,Vi=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?_t(t)||ut(t)||Me(t)?{i:Gt,r:t,k:e,f:!!n}:t:null);function p(t,e=null,n=null,r=0,i=null,a=t===Ue?0:1,s=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&IE(e),ref:e&&Vi(e),scopeId:tE,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Gt};return o?(Ad(l,n),a&128&&t.normalize(l)):n&&(l.shapeFlag|=_t(n)?8:16),gi>0&&!s&&Yt&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Yt.push(l),l}const Be=gh;function gh(t,e=null,n=null,r=0,i=null,a=!1){if((!t||t===Gb)&&(t=Un),Ji(t)){const o=dr(t,e,!0);return n&&Ad(o,n),gi>0&&!a&&Yt&&(o.shapeFlag&6?Yt[Yt.indexOf(t)]=o:Yt.push(o)),o.patchFlag=-2,o}if(Nh(t)&&(t=t.__vccOpts),e){e=fh(e);let{class:o,style:l}=e;o&&!_t(o)&&(e.class=Ye(o)),Qe(l)&&(Ea(l)&&!Oe(l)&&(l=St({},l)),e.style=ga(l))}const s=_t(t)?1:OE(t)?128:Rb(t)?64:Qe(t)?4:Me(t)?2:0;return p(t,e,n,r,i,s,a,!0)}function fh(t){return t?Ea(t)||bE(t)?St({},t):t:null}function dr(t,e,n=!1,r=!1){const{props:i,ref:a,patchFlag:s,children:o,transition:l}=t,c=e?Eh(i||{},e):i,d={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&IE(c),ref:e&&e.ref?n&&a?Oe(a)?a.concat(Vi(e)):[a,Vi(e)]:Vi(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ue?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&dr(t.ssContent),ssFallback:t.ssFallback&&dr(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&mi(d,l.clone(d)),d}function ve(t=" ",e=0){return Be(va,null,t,e)}function ur(t,e){const n=Be(Hi,null,t);return n.staticCount=e,n}function ke(t="",e=!1){return e?(le(),wn(Un,null,t)):Be(Un,null,t)}function En(t){return t==null||typeof t=="boolean"?Be(Un):Oe(t)?Be(Ue,null,t.slice()):Ji(t)?An(t):Be(va,null,String(t))}function An(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:dr(t)}function Ad(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(Oe(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),Ad(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!bE(e)?e._ctx=Gt:i===3&&Gt&&(Gt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Me(e)?(e={default:e,_ctx:Gt},n=32):(e=String(e),r&64?(n=16,e=[ve(e)]):n=8);t.children=e,t.shapeFlag|=n}function Eh(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=Ye([e.class,r.class]));else if(i==="style")e.style=ga([e.style,r.style]);else if(la(i)){const a=e[i],s=r[i];s&&a!==s&&!(Oe(a)&&a.includes(s))?e[i]=a?[].concat(a,s):s:s==null&&a==null&&!ca(i)&&(e[i]=s)}else i!==""&&(e[i]=r[i])}return e}function un(t,e,n,r=null){an(t,e,7,[n,r])}const Sh=mE();let bh=0;function hh(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||Sh,a={uid:bh++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Df(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:TE(r,i),emitsOptions:gE(r,i),emit:null,emitted:null,propsDefaults:tt,inheritAttrs:r.inheritAttrs,ctx:tt,data:tt,props:tt,attrs:tt,slots:tt,refs:tt,setupState:tt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=e?e.root:a,a.emit=Zb.bind(null,a),t.ce&&t.ce(a),a}let At=null;const Id=()=>At||Gt;let ea,ed;{const t=ma(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),a=>{i.length>1?i.forEach(s=>s(a)):i[0](a)}};ea=e("__VUE_INSTANCE_SETTERS__",n=>At=n),ed=e("__VUE_SSR_SETTERS__",n=>fi=n)}const vi=t=>{const e=At;return ea(t),t.scope.on(),()=>{t.scope.off(),ea(e)}},Du=()=>{At&&At.scope.off(),ea(null)};function xE(t){return t.vnode.shapeFlag&4}let fi=!1;function Th(t,e=!1,n=!1){e&&ed(e);const{props:r,children:i}=t.vnode,a=xE(t);rh(t,r,a,e),oh(t,i,n||e);const s=a?vh(t,e):void 0;return e&&ed(!1),s}function vh(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,qb);const{setup:r}=n;if(r){Mn();const i=t.setupContext=r.length>1?Ch(t):null,a=vi(t),s=hi(r,t,0,[t.props,i]),o=Cf(s);if(kn(),a(),(o||t.sp)&&!si(t)&&oE(t),o){if(s.then(Du,Du),e)return s.then(l=>{wu(t,l)}).catch(l=>{Sa(l,t,0)});t.asyncDep=s}else wu(t,s)}else DE(t)}function wu(t,e,n){Me(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Qe(e)&&(t.setupState=Xf(e)),DE(t)}function DE(t,e,n){const r=t.type;t.render||(t.render=r.render||hn);{const i=vi(t);Mn();try{Hb(t)}finally{kn(),i()}}}const Rh={get(t,e){return Ot(t,"get",""),t[e]}};function Ch(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Rh),slots:t.slots,emit:t.emit,expose:e}}function Ra(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Xf(Rd(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in oi)return oi[n](t)},has(e,n){return n in e||n in oi}})):t.proxy}function yh(t,e=!0){return Me(t)?t.displayName||t.name:t.name||e&&t.__name}function Nh(t){return Me(t)&&"__vccOpts"in t}const Ae=(t,e)=>pb(t,e,fi);function wE(t,e,n){try{ji(-1);const r=arguments.length;return r===2?Qe(e)&&!Oe(e)?Ji(e)?Be(t,null,[e]):Be(t,e):Be(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ji(n)&&(n=[n]),Be(t,e,n))}finally{ji(1)}}const Oh="3.5.31";let td;const Lu=typeof window<"u"&&window.trustedTypes;if(Lu)try{td=Lu.createPolicy("vue",{createHTML:t=>t})}catch{}const LE=td?t=>td.createHTML(t):t=>t,Ah="http://www.w3.org/2000/svg",Ih="http://www.w3.org/1998/Math/MathML",On=typeof document<"u"?document:null,Mu=On&&On.createElement("template"),xh={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e==="svg"?On.createElementNS(Ah,t):e==="mathml"?On.createElementNS(Ih,t):n?On.createElement(t,{is:n}):On.createElement(t);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>On.createTextNode(t),createComment:t=>On.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>On.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,a){const s=n?n.previousSibling:e.lastChild;if(i&&(i===a||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Mu.innerHTML=LE(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const o=Mu.content;if(r==="svg"||r==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}e.insertBefore(o,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Gn="transition",zr="animation",Ar=Symbol("_vtc"),ME={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},Dh=St({},Ab,ME),nr=(t,e=[])=>{Oe(t)?t.forEach(n=>n(...e)):t&&t(...e)},ku=t=>t?Oe(t)?t.some(e=>e.length>1):t.length>1:!1;function wh(t){const e={};for(const I in t)I in ME||(e[I]=t[I]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:c=s,appearToClass:d=o,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=t,f=Lh(i),g=f&&f[0],S=f&&f[1],{onBeforeEnter:b,onEnter:h,onEnterCancelled:v,onLeave:R,onLeaveCancelled:C,onBeforeAppear:x=b,onAppear:D=h,onAppearCancelled:N=v}=e,y=(I,Q,T,w)=>{I._enterCancelled=w,Hn(I,Q?d:o),Hn(I,Q?c:s),T&&T()},F=(I,Q)=>{I._isLeaving=!1,Hn(I,u),Hn(I,_),Hn(I,m),Q&&Q()},X=I=>(Q,T)=>{const w=I?D:h,ue=()=>y(Q,I,T);nr(w,[Q,ue]),Pu(()=>{Hn(Q,I?l:a),pn(Q,I?d:o),ku(w)||Uu(Q,r,g,ue)})};return St(e,{onBeforeEnter(I){nr(b,[I]),pn(I,a),pn(I,s)},onBeforeAppear(I){nr(x,[I]),pn(I,l),pn(I,c)},onEnter:X(!1),onAppear:X(!0),onLeave(I,Q){I._isLeaving=!0;const T=()=>F(I,Q);pn(I,u),I._enterCancelled?(pn(I,m),nd(I)):(nd(I),pn(I,m)),Pu(()=>{I._isLeaving&&(Hn(I,u),pn(I,_),ku(R)||Uu(I,r,S,T))}),nr(R,[I,T])},onEnterCancelled(I){y(I,!1,void 0,!0),nr(v,[I])},onAppearCancelled(I){y(I,!0,void 0,!0),nr(N,[I])},onLeaveCancelled(I){F(I),nr(C,[I])}})}function Lh(t){if(t==null)return null;if(Qe(t))return[$a(t.enter),$a(t.leave)];{const e=$a(t);return[e,e]}}function $a(t){return wS(t)}function pn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Ar]||(t[Ar]=new Set)).add(e)}function Hn(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[Ar];n&&(n.delete(e),n.size||(t[Ar]=void 0))}function Pu(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Mh=0;function Uu(t,e,n,r){const i=t._endId=++Mh,a=()=>{i===t._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:o,propCount:l}=kE(t,e);if(!s)return r();const c=s+"end";let d=0;const u=()=>{t.removeEventListener(c,m),a()},m=_=>{_.target===t&&++d>=l&&u()};setTimeout(()=>{d<l&&u()},o+1),t.addEventListener(c,m)}function kE(t,e){const n=window.getComputedStyle(t),r=f=>(n[f]||"").split(", "),i=r(`${Gn}Delay`),a=r(`${Gn}Duration`),s=Fu(i,a),o=r(`${zr}Delay`),l=r(`${zr}Duration`),c=Fu(o,l);let d=null,u=0,m=0;e===Gn?s>0&&(d=Gn,u=s,m=a.length):e===zr?c>0&&(d=zr,u=c,m=l.length):(u=Math.max(s,c),d=u>0?s>c?Gn:zr:null,m=d?d===Gn?a.length:l.length:0);const _=d===Gn&&/\b(?:transform|all)(?:,|$)/.test(r(`${Gn}Property`).toString());return{type:d,timeout:u,propCount:m,hasTransform:_}}function Fu(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>Bu(n)+Bu(t[r])))}function Bu(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function nd(t){return(t?t.ownerDocument:document).body.offsetHeight}function kh(t,e,n){const r=t[Ar];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Gu=Symbol("_vod"),Ph=Symbol("_vsh"),Uh=Symbol(""),Fh=/(?:^|;)\s*display\s*:/;function Bh(t,e,n){const r=t.style,i=_t(n);let a=!1;if(n&&!i){if(e)if(_t(e))for(const s of e.split(";")){const o=s.slice(0,s.indexOf(":")).trim();n[o]==null&&zi(r,o,"")}else for(const s in e)n[s]==null&&zi(r,s,"");for(const s in n)s==="display"&&(a=!0),zi(r,s,n[s])}else if(i){if(e!==n){const s=r[Uh];s&&(n+=";"+s),r.cssText=n,a=Fh.test(n)}}else e&&t.removeAttribute("style");Gu in t&&(t[Gu]=a?r.display:"",t[Ph]&&(r.display="none"))}const Yu=/\s*!important$/;function zi(t,e,n){if(Oe(n))n.forEach(r=>zi(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=Gh(t,e);Yu.test(n)?t.setProperty(Zn(r),n.replace(Yu,""),"important"):t[r]=n}}const qu=["Webkit","Moz","ms"],Wa={};function Gh(t,e){const n=Wa[e];if(n)return n;let r=Pt(e);if(r!=="filter"&&r in t)return Wa[e]=r;r=_a(r);for(let i=0;i<qu.length;i++){const a=qu[i]+r;if(a in t)return Wa[e]=a}return e}const Hu="http://www.w3.org/1999/xlink";function Vu(t,e,n,r,i,a=FS(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(Hu,e.slice(6,e.length)):t.setAttributeNS(Hu,e,n):n==null||a&&!Af(n)?t.removeAttribute(e):t.setAttribute(e,a?"":Xt(n)?String(n):n)}function zu(t,e,n,r,i){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?LE(n):n);return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const o=a==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(o!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let s=!1;if(n===""||n==null){const o=typeof t[e];o==="boolean"?n=Af(n):n==null&&o==="string"?(n="",s=!0):o==="number"&&(n=0,s=!0)}try{t[e]=n}catch{}s&&t.removeAttribute(i||e)}function Dn(t,e,n,r){t.addEventListener(e,n,r)}function Yh(t,e,n,r){t.removeEventListener(e,n,r)}const $u=Symbol("_vei");function qh(t,e,n,r,i=null){const a=t[$u]||(t[$u]={}),s=a[e];if(r&&s)s.value=r;else{const[o,l]=Hh(e);if(r){const c=a[e]=$h(r,i);Dn(t,o,c,l)}else s&&(Yh(t,o,s,l),a[e]=void 0)}}const Wu=/(?:Once|Passive|Capture)$/;function Hh(t){let e;if(Wu.test(t)){e={};let r;for(;r=t.match(Wu);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Zn(t.slice(2)),e]}let Ka=0;const Vh=Promise.resolve(),zh=()=>Ka||(Vh.then(()=>Ka=0),Ka=Date.now());function $h(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;an(Wh(r,n.value),e,5,[r])};return n.value=t,n.attached=zh(),n}function Wh(t,e){if(Oe(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const Ku=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Kh=(t,e,n,r,i,a)=>{const s=i==="svg";e==="class"?kh(t,r,s):e==="style"?Bh(t,n,r):la(e)?ca(e)||qh(t,e,n,r,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Qh(t,e,r,s))?(zu(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Vu(t,e,r,s,a,e!=="value")):t._isVueCE&&(Xh(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!_t(r)))?zu(t,Pt(e),r,a,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),Vu(t,e,r,s))};function Qh(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&Ku(e)&&Me(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Ku(e)&&_t(n)?!1:e in t}function Xh(t,e){const n=t._def.props;if(!n)return!1;const r=Pt(e);return Array.isArray(n)?n.some(i=>Pt(i)===r):Object.keys(n).some(i=>Pt(i)===r)}const PE=new WeakMap,UE=new WeakMap,ta=Symbol("_moveCb"),Qu=Symbol("_enterCb"),Zh=t=>(delete t.props.mode,t),jh=Zh({name:"TransitionGroup",props:St({},Dh,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Id(),r=Ob();let i,a;return dE(()=>{if(!i.length)return;const s=t.moveClass||`${t.name||"v"}-move`;if(!rT(i[0].el,n.vnode.el,s)){i=[];return}i.forEach(eT),i.forEach(tT);const o=i.filter(nT);nd(n.vnode.el),o.forEach(l=>{const c=l.el,d=c.style;pn(c,s),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[ta]=m=>{m&&m.target!==c||(!m||m.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",u),c[ta]=null,Hn(c,s))};c.addEventListener("transitionend",u)}),i=[]}),()=>{const s=Ve(t),o=wh(s);let l=s.tag||Ue;if(i=[],a)for(let c=0;c<a.length;c++){const d=a[c];d.el&&d.el instanceof Element&&(i.push(d),mi(d,Qc(d,o,r,n)),PE.set(d,FE(d.el)))}a=e.default?sE(e.default()):[];for(let c=0;c<a.length;c++){const d=a[c];d.key!=null&&mi(d,Qc(d,o,r,n))}return Be(l,null,a)}}}),Jh=jh;function eT(t){const e=t.el;e[ta]&&e[ta](),e[Qu]&&e[Qu]()}function tT(t){UE.set(t,FE(t.el))}function nT(t){const e=PE.get(t),n=UE.get(t),r=e.left-n.left,i=e.top-n.top;if(r||i){const a=t.el,s=a.style,o=a.getBoundingClientRect();let l=1,c=1;return a.offsetWidth&&(l=o.width/a.offsetWidth),a.offsetHeight&&(c=o.height/a.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(l-1)<.01&&(l=1),Math.abs(c-1)<.01&&(c=1),s.transform=s.webkitTransform=`translate(${r/l}px,${i/c}px)`,s.transitionDuration="0s",t}}function FE(t){const e=t.getBoundingClientRect();return{left:e.left,top:e.top}}function rT(t,e,n){const r=t.cloneNode(),i=t[Ar];i&&i.forEach(o=>{o.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const a=e.nodeType===1?e:e.parentNode;a.appendChild(r);const{hasTransform:s}=kE(r);return a.removeChild(r),s}const Xn=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Oe(e)?n=>Gi(e,n):e};function iT(t){t.target.composing=!0}function Xu(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Qt=Symbol("_assign");function Zu(t,e,n){return e&&(t=t.trim()),n&&(t=pa(t)),t}const at={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t[Qt]=Xn(i);const a=r||i.props&&i.props.type==="number";Dn(t,e?"change":"input",s=>{s.target.composing||t[Qt](Zu(t.value,n,a))}),(n||a)&&Dn(t,"change",()=>{t.value=Zu(t.value,n,a)}),e||(Dn(t,"compositionstart",iT),Dn(t,"compositionend",Xu),Dn(t,"change",Xu))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},s){if(t[Qt]=Xn(s),t.composing)return;const o=(a||t.type==="number")&&!/^0\d/.test(t.value)?pa(t.value):t.value,l=e??"";if(o===l)return;const c=t.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===t&&t.type!=="range"&&(r&&e===n||i&&t.value.trim()===l)||(t.value=l)}},aT={deep:!0,created(t,e,n){t[Qt]=Xn(n),Dn(t,"change",()=>{const r=t._modelValue,i=xr(t),a=t.checked,s=t[Qt];if(Oe(r)){const o=fd(r,i),l=o!==-1;if(a&&!l)s(r.concat(i));else if(!a&&l){const c=[...r];c.splice(o,1),s(c)}}else if(Lr(r)){const o=new Set(r);a?o.add(i):o.delete(i),s(o)}else s(BE(t,a))})},mounted:ju,beforeUpdate(t,e,n){t[Qt]=Xn(n),ju(t,e,n)}};function ju(t,{value:e,oldValue:n},r){t._modelValue=e;let i;if(Oe(e))i=fd(e,r.props.value)>-1;else if(Lr(e))i=e.has(r.props.value);else{if(e===n)return;i=Qn(e,BE(t,!0))}t.checked!==i&&(t.checked=i)}const jr={created(t,{value:e},n){t.checked=Qn(e,n.props.value),t[Qt]=Xn(n),Dn(t,"change",()=>{t[Qt](xr(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t[Qt]=Xn(r),e!==n&&(t.checked=Qn(e,r.props.value))}},Ir={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=Lr(e);Dn(t,"change",()=>{const a=Array.prototype.filter.call(t.options,s=>s.selected).map(s=>n?pa(xr(s)):xr(s));t[Qt](t.multiple?i?new Set(a):a:a[0]),t._assigning=!0,Ti(()=>{t._assigning=!1})}),t[Qt]=Xn(r)},mounted(t,{value:e}){Ju(t,e)},beforeUpdate(t,e,n){t[Qt]=Xn(n)},updated(t,{value:e}){t._assigning||Ju(t,e)}};function Ju(t,e){const n=t.multiple,r=Oe(e);if(!(n&&!r&&!Lr(e))){for(let i=0,a=t.options.length;i<a;i++){const s=t.options[i],o=xr(s);if(n)if(r){const l=typeof o;l==="string"||l==="number"?s.selected=e.some(c=>String(c)===String(o)):s.selected=fd(e,o)>-1}else s.selected=e.has(o);else if(Qn(xr(s),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function xr(t){return"_value"in t?t._value:t.value}function BE(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const e_={created(t,e,n){ki(t,e,n,null,"created")},mounted(t,e,n){ki(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){ki(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){ki(t,e,n,r,"updated")}};function sT(t,e){switch(t){case"SELECT":return Ir;case"TEXTAREA":return at;default:switch(e){case"checkbox":return aT;case"radio":return jr;default:return at}}}function ki(t,e,n,r,i){const s=sT(t.tagName,n.props&&n.props.type)[i];s&&s(t,e,n,r)}const oT=["ctrl","shift","alt","meta"],lT={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>oT.some(n=>t[`${n}Key`]&&!e.includes(n))},ft=(t,e)=>{if(!t)return t;const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=((i,...a)=>{for(let s=0;s<e.length;s++){const o=lT[e[s]];if(o&&o(i,e))return}return t(i,...a)}))},cT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},dT=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=(i=>{if(!("key"in i))return;const a=Zn(i.key);if(e.some(s=>s===a||cT[s]===a))return t(i)}))},uT=St({patchProp:Kh},xh);let t_;function _T(){return t_||(t_=ch(uT))}const pT=((...t)=>{const e=_T().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=gT(r);if(!i)return;const a=e._component;!Me(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,mT(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e});function mT(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function gT(t){return _t(t)?document.querySelector(t):t}let GE;const Ca=t=>GE=t,YE=Symbol();function rd(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ci;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ci||(ci={}));function fT(){const t=wf(!0),e=t.run(()=>me({}));let n=[],r=[];const i=Rd({install(a){Ca(i),i._a=a,a.provide(YE,i),a.config.globalProperties.$pinia=i,r.forEach(s=>n.push(s)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return i}const qE=()=>{};function n_(t,e,n,r=qE){t.add(e);const i=()=>{t.delete(e)&&r()};return!n&&Lf()&&GS(i),i}function Er(t,...e){t.forEach(n=>{n(...e)})}const ET=t=>t(),r_=Symbol(),Qa=Symbol();function id(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,r)=>t.set(r,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],i=t[n];rd(i)&&rd(r)&&t.hasOwnProperty(n)&&!ut(r)&&!Ln(r)?t[n]=id(i,r):t[n]=r}return t}const ST=Symbol();function bT(t){return!rd(t)||!Object.prototype.hasOwnProperty.call(t,ST)}const{assign:Vn}=Object;function hT(t){return!!(ut(t)&&t.effect)}function TT(t,e,n,r){const{state:i,actions:a,getters:s}=e,o=n.state.value[t];let l;function c(){o||(n.state.value[t]=i?i():{});const d=cb(n.state.value[t]);return Vn(d,a,Object.keys(s||{}).reduce((u,m)=>(u[m]=Rd(Ae(()=>{Ca(n);const _=n._s.get(t);return s[m].call(_,_)})),u),{}))}return l=HE(t,c,e,n,r,!0),l}function HE(t,e,n={},r,i,a){let s;const o=Vn({actions:{}},n),l={deep:!0};let c,d,u=new Set,m=new Set,_;const f=r.state.value[t];!a&&!f&&(r.state.value[t]={});let g;function S(N){let y;c=d=!1,typeof N=="function"?(N(r.state.value[t]),y={type:ci.patchFunction,storeId:t,events:_}):(id(r.state.value[t],N),y={type:ci.patchObject,payload:N,storeId:t,events:_});const F=g=Symbol();Ti().then(()=>{g===F&&(c=!0)}),d=!0,Er(u,y,r.state.value[t])}const b=a?function(){const{state:y}=n,F=y?y():{};this.$patch(X=>{Vn(X,F)})}:qE;function h(){s.stop(),u.clear(),m.clear(),r._s.delete(t)}const v=(N,y="")=>{if(r_ in N)return N[Qa]=y,N;const F=function(){Ca(r);const X=Array.from(arguments),I=new Set,Q=new Set;function T(k){I.add(k)}function w(k){Q.add(k)}Er(m,{args:X,name:F[Qa],store:C,after:T,onError:w});let ue;try{ue=N.apply(this&&this.$id===t?this:C,X)}catch(k){throw Er(Q,k),k}return ue instanceof Promise?ue.then(k=>(Er(I,k),k)).catch(k=>(Er(Q,k),Promise.reject(k))):(Er(I,ue),ue)};return F[r_]=!0,F[Qa]=y,F},R={_p:r,$id:t,$onAction:n_.bind(null,m),$patch:S,$reset:b,$subscribe(N,y={}){const F=n_(u,N,y.detached,()=>X()),X=s.run(()=>lr(()=>r.state.value[t],I=>{(y.flush==="sync"?d:c)&&N({storeId:t,type:ci.direct,events:_},I)},Vn({},l,y)));return F},$dispose:h},C=bi(R);r._s.set(t,C);const D=(r._a&&r._a.runWithContext||ET)(()=>r._e.run(()=>(s=wf()).run(()=>e({action:v}))));for(const N in D){const y=D[N];if(ut(y)&&!hT(y)||Ln(y))a||(f&&bT(y)&&(ut(y)?y.value=f[N]:id(y,f[N])),r.state.value[t][N]=y);else if(typeof y=="function"){const F=v(y,N);D[N]=F,o.actions[N]=y}}return Vn(C,D),Vn(Ve(C),D),Object.defineProperty(C,"$state",{get:()=>r.state.value[t],set:N=>{S(y=>{Vn(y,N)})}}),r._p.forEach(N=>{Vn(C,s.run(()=>N({store:C,app:r._a,pinia:r,options:o})))}),f&&a&&n.hydrate&&n.hydrate(C.$state,f),c=!0,d=!0,C}function VE(t,e,n){let r;const i=typeof e=="function";r=i?n:e;function a(s,o){const l=bb();return s=s||(l?Kt(YE,null):null),s&&Ca(s),s=GE,s._s.has(t)||(i?HE(t,e,r,s):TT(t,r,s)),s._s.get(t)}return a.$id=t,a}const hr=typeof document<"u";function zE(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function vT(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&zE(t.default)}const We=Object.assign;function Xa(t,e){const n={};for(const r in e){const i=e[r];n[r]=sn(i)?i.map(t):t(i)}return n}const di=()=>{},sn=Array.isArray;function i_(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}let dt=(function(t){return t[t.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",t[t.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",t[t.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",t[t.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",t[t.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",t})({});const $E=Symbol("");dt.MATCHER_NOT_FOUND+"",dt.NAVIGATION_GUARD_REDIRECT+"",dt.NAVIGATION_ABORTED+"",dt.NAVIGATION_CANCELLED+"",dt.NAVIGATION_DUPLICATED+"";function Dr(t,e){return We(new Error,{type:t,[$E]:!0},e)}function Nn(t,e){return t instanceof Error&&$E in t&&(e==null||!!(t.type&e))}const RT=["params","query","hash"];function CT(t){if(typeof t=="string")return t;if(t.path!=null)return t.path;const e={};for(const n of RT)n in t&&(e[n]=t[n]);return JSON.stringify(e,null,2)}const yT=Symbol(""),a_=Symbol(""),ya=Symbol(""),xd=Symbol(""),ad=Symbol("");function Mr(){return Kt(ya)}function Na(t){return Kt(xd)}const WE=/#/g,NT=/&/g,OT=/\//g,AT=/=/g,IT=/\?/g,KE=/\+/g,xT=/%5B/g,DT=/%5D/g,QE=/%5E/g,wT=/%60/g,XE=/%7B/g,LT=/%7C/g,ZE=/%7D/g,MT=/%20/g;function Dd(t){return t==null?"":encodeURI(""+t).replace(LT,"|").replace(xT,"[").replace(DT,"]")}function kT(t){return Dd(t).replace(XE,"{").replace(ZE,"}").replace(QE,"^")}function sd(t){return Dd(t).replace(KE,"%2B").replace(MT,"+").replace(WE,"%23").replace(NT,"%26").replace(wT,"`").replace(XE,"{").replace(ZE,"}").replace(QE,"^")}function PT(t){return sd(t).replace(AT,"%3D")}function UT(t){return Dd(t).replace(WE,"%23").replace(IT,"%3F")}function FT(t){return UT(t).replace(OT,"%2F")}function Ei(t){if(t==null)return null;try{return decodeURIComponent(""+t)}catch{}return""+t}const BT=/\/$/,GT=t=>t.replace(BT,"");function Za(t,e,n="/"){let r,i={},a="",s="";const o=e.indexOf("#");let l=e.indexOf("?");return l=o>=0&&l>o?-1:l,l>=0&&(r=e.slice(0,l),a=e.slice(l,o>0?o:e.length),i=t(a.slice(1))),o>=0&&(r=r||e.slice(0,o),s=e.slice(o,e.length)),r=VT(r??e,n),{fullPath:r+a+s,path:r,query:i,hash:Ei(s)}}function YT(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function s_(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function qT(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&wr(e.matched[r],n.matched[i])&&jE(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function wr(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function jE(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(!HT(t[n],e[n]))return!1;return!0}function HT(t,e){return sn(t)?o_(t,e):sn(e)?o_(e,t):(t&&t.valueOf())===(e&&e.valueOf())}function o_(t,e){return sn(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function VT(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let a=n.length-1,s,o;for(s=0;s<r.length;s++)if(o=r[s],o!==".")if(o==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}const Yn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let od=(function(t){return t.pop="pop",t.push="push",t})({}),ja=(function(t){return t.back="back",t.forward="forward",t.unknown="",t})({});function zT(t){if(!t)if(hr){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),GT(t)}const $T=/^[^#]+#/;function WT(t,e){return t.replace($T,"#")+e}function KT(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const Oa=()=>({left:window.scrollX,top:window.scrollY});function QT(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=KT(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function l_(t,e){return(history.state?history.state.position-e:-1)+t}const ld=new Map;function XT(t,e){ld.set(t,e)}function ZT(t){const e=ld.get(t);return ld.delete(t),e}function jT(t){return typeof t=="string"||t&&typeof t=="object"}function JE(t){return typeof t=="string"||typeof t=="symbol"}function JT(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<n.length;++r){const i=n[r].replace(KE," "),a=i.indexOf("="),s=Ei(a<0?i:i.slice(0,a)),o=a<0?null:Ei(i.slice(a+1));if(s in e){let l=e[s];sn(l)||(l=e[s]=[l]),l.push(o)}else e[s]=o}return e}function c_(t){let e="";for(let n in t){const r=t[n];if(n=PT(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(sn(r)?r.map(i=>i&&sd(i)):[r&&sd(r)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+n,i!=null&&(e+="="+i))})}return e}function ev(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=sn(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}function $r(){let t=[];function e(r){return t.push(r),()=>{const i=t.indexOf(r);i>-1&&t.splice(i,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function $n(t,e,n,r,i,a=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,l)=>{const c=m=>{m===!1?l(Dr(dt.NAVIGATION_ABORTED,{from:n,to:e})):m instanceof Error?l(m):jT(m)?l(Dr(dt.NAVIGATION_GUARD_REDIRECT,{from:e,to:m})):(s&&r.enterCallbacks[i]===s&&typeof m=="function"&&s.push(m),o())},d=a(()=>t.call(r&&r.instances[i],e,n,c));let u=Promise.resolve(d);t.length<3&&(u=u.then(c)),u.catch(m=>l(m))})}function Ja(t,e,n,r,i=a=>a()){const a=[];for(const s of t)for(const o in s.components){let l=s.components[o];if(!(e!=="beforeRouteEnter"&&!s.instances[o]))if(zE(l)){const c=(l.__vccOpts||l)[e];c&&a.push($n(c,n,r,s,o,i))}else{let c=l();a.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${o}" at "${s.path}"`);const u=vT(d)?d.default:d;s.mods[o]=d,s.components[o]=u;const m=(u.__vccOpts||u)[e];return m&&$n(m,n,r,s,o,i)()}))}}return a}function tv(t,e){const n=[],r=[],i=[],a=Math.max(e.matched.length,t.matched.length);for(let s=0;s<a;s++){const o=e.matched[s];o&&(t.matched.find(c=>wr(c,o))?r.push(o):n.push(o));const l=t.matched[s];l&&(e.matched.find(c=>wr(c,l))||i.push(l))}return[n,r,i]}let nv=()=>location.protocol+"//"+location.host;function eS(t,e){const{pathname:n,search:r,hash:i}=e,a=t.indexOf("#");if(a>-1){let s=i.includes(t.slice(a))?t.slice(a).length:1,o=i.slice(s);return o[0]!=="/"&&(o="/"+o),s_(o,"")}return s_(n,t)+r+i}function rv(t,e,n,r){let i=[],a=[],s=null;const o=({state:m})=>{const _=eS(t,location),f=n.value,g=e.value;let S=0;if(m){if(n.value=_,e.value=m,s&&s===f){s=null;return}S=g?m.position-g.position:0}else r(_);i.forEach(b=>{b(n.value,f,{delta:S,type:od.pop,direction:S?S>0?ja.forward:ja.back:ja.unknown})})};function l(){s=n.value}function c(m){i.push(m);const _=()=>{const f=i.indexOf(m);f>-1&&i.splice(f,1)};return a.push(_),_}function d(){if(document.visibilityState==="hidden"){const{history:m}=window;if(!m.state)return;m.replaceState(We({},m.state,{scroll:Oa()}),"")}}function u(){for(const m of a)m();a=[],window.removeEventListener("popstate",o),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",o),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:l,listen:c,destroy:u}}function d_(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?Oa():null}}function iv(t){const{history:e,location:n}=window,r={value:eS(t,n)},i={value:e.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function a(l,c,d){const u=t.indexOf("#"),m=u>-1?(n.host&&document.querySelector("base")?t:t.slice(u))+l:nv()+t+l;try{e[d?"replaceState":"pushState"](c,"",m),i.value=c}catch(_){console.error(_),n[d?"replace":"assign"](m)}}function s(l,c){a(l,We({},e.state,d_(i.value.back,l,i.value.forward,!0),c,{position:i.value.position}),!0),r.value=l}function o(l,c){const d=We({},i.value,e.state,{forward:l,scroll:Oa()});a(d.current,d,!0),a(l,We({},d_(r.value,l,null),{position:d.position+1},c),!1),r.value=l}return{location:r,state:i,push:o,replace:s}}function av(t){t=zT(t);const e=iv(t),n=rv(t,e.state,e.location,e.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const i=We({location:"",base:t,go:r,createHref:WT.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}let ar=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.Group=2]="Group",t})({});var Rt=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.ParamRegExp=2]="ParamRegExp",t[t.ParamRegExpEnd=3]="ParamRegExpEnd",t[t.EscapeNext=4]="EscapeNext",t})(Rt||{});const sv={type:ar.Static,value:""},ov=/[a-zA-Z0-9_]/;function lv(t){if(!t)return[[]];if(t==="/")return[[sv]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(_){throw new Error(`ERR (${n})/"${c}": ${_}`)}let n=Rt.Static,r=n;const i=[];let a;function s(){a&&i.push(a),a=[]}let o=0,l,c="",d="";function u(){c&&(n===Rt.Static?a.push({type:ar.Static,value:c}):n===Rt.Param||n===Rt.ParamRegExp||n===Rt.ParamRegExpEnd?(a.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),a.push({type:ar.Param,value:c,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function m(){c+=l}for(;o<t.length;){if(l=t[o++],l==="\\"&&n!==Rt.ParamRegExp){r=n,n=Rt.EscapeNext;continue}switch(n){case Rt.Static:l==="/"?(c&&u(),s()):l===":"?(u(),n=Rt.Param):m();break;case Rt.EscapeNext:m(),n=r;break;case Rt.Param:l==="("?n=Rt.ParamRegExp:ov.test(l)?m():(u(),n=Rt.Static,l!=="*"&&l!=="?"&&l!=="+"&&o--);break;case Rt.ParamRegExp:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:n=Rt.ParamRegExpEnd:d+=l;break;case Rt.ParamRegExpEnd:u(),n=Rt.Static,l!=="*"&&l!=="?"&&l!=="+"&&o--,d="";break;default:e("Unknown state");break}}return n===Rt.ParamRegExp&&e(`Unfinished custom RegExp for param "${c}"`),u(),s(),i}const u_="[^/]+?",cv={sensitive:!1,strict:!1,start:!0,end:!0};var wt=(function(t){return t[t._multiplier=10]="_multiplier",t[t.Root=90]="Root",t[t.Segment=40]="Segment",t[t.SubSegment=30]="SubSegment",t[t.Static=40]="Static",t[t.Dynamic=20]="Dynamic",t[t.BonusCustomRegExp=10]="BonusCustomRegExp",t[t.BonusWildcard=-50]="BonusWildcard",t[t.BonusRepeatable=-20]="BonusRepeatable",t[t.BonusOptional=-8]="BonusOptional",t[t.BonusStrict=.7000000000000001]="BonusStrict",t[t.BonusCaseSensitive=.25]="BonusCaseSensitive",t})(wt||{});const dv=/[.+*?^${}()[\]/\\]/g;function uv(t,e){const n=We({},cv,e),r=[];let i=n.start?"^":"";const a=[];for(const c of t){const d=c.length?[]:[wt.Root];n.strict&&!c.length&&(i+="/");for(let u=0;u<c.length;u++){const m=c[u];let _=wt.Segment+(n.sensitive?wt.BonusCaseSensitive:0);if(m.type===ar.Static)u||(i+="/"),i+=m.value.replace(dv,"\\$&"),_+=wt.Static;else if(m.type===ar.Param){const{value:f,repeatable:g,optional:S,regexp:b}=m;a.push({name:f,repeatable:g,optional:S});const h=b||u_;if(h!==u_){_+=wt.BonusCustomRegExp;try{new RegExp(`(${h})`)}catch(R){throw new Error(`Invalid custom RegExp for param "${f}" (${h}): `+R.message)}}let v=g?`((?:${h})(?:/(?:${h}))*)`:`(${h})`;u||(v=S&&c.length<2?`(?:/${v})`:"/"+v),S&&(v+="?"),i+=v,_+=wt.Dynamic,S&&(_+=wt.BonusOptional),g&&(_+=wt.BonusRepeatable),h===".*"&&(_+=wt.BonusWildcard)}d.push(_)}r.push(d)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=wt.BonusStrict}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function o(c){const d=c.match(s),u={};if(!d)return null;for(let m=1;m<d.length;m++){const _=d[m]||"",f=a[m-1];u[f.name]=_&&f.repeatable?_.split("/"):_}return u}function l(c){let d="",u=!1;for(const m of t){(!u||!d.endsWith("/"))&&(d+="/"),u=!1;for(const _ of m)if(_.type===ar.Static)d+=_.value;else if(_.type===ar.Param){const{value:f,repeatable:g,optional:S}=_,b=f in c?c[f]:"";if(sn(b)&&!g)throw new Error(`Provided param "${f}" is an array but it is not repeatable (* or + modifiers)`);const h=sn(b)?b.join("/"):b;if(!h)if(S)m.length<2&&(d.endsWith("/")?d=d.slice(0,-1):u=!0);else throw new Error(`Missing required param "${f}"`);d+=h}}return d||"/"}return{re:s,score:r,keys:a,parse:o,stringify:l}}function _v(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?t.length===1&&t[0]===wt.Static+wt.Segment?-1:1:t.length>e.length?e.length===1&&e[0]===wt.Static+wt.Segment?1:-1:0}function tS(t,e){let n=0;const r=t.score,i=e.score;for(;n<r.length&&n<i.length;){const a=_v(r[n],i[n]);if(a)return a;n++}if(Math.abs(i.length-r.length)===1){if(__(r))return 1;if(__(i))return-1}return i.length-r.length}function __(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const pv={strict:!1,end:!0,sensitive:!1};function mv(t,e,n){const r=uv(lv(t.path),n),i=We(r,{record:t,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function gv(t,e){const n=[],r=new Map;e=i_(pv,e);function i(u){return r.get(u)}function a(u,m,_){const f=!_,g=m_(u);g.aliasOf=_&&_.record;const S=i_(e,u),b=[g];if("alias"in u){const R=typeof u.alias=="string"?[u.alias]:u.alias;for(const C of R)b.push(m_(We({},g,{components:_?_.record.components:g.components,path:C,aliasOf:_?_.record:g})))}let h,v;for(const R of b){const{path:C}=R;if(m&&C[0]!=="/"){const x=m.record.path,D=x[x.length-1]==="/"?"":"/";R.path=m.record.path+(C&&D+C)}if(h=mv(R,m,S),_?_.alias.push(h):(v=v||h,v!==h&&v.alias.push(h),f&&u.name&&!g_(h)&&s(u.name)),nS(h)&&l(h),g.children){const x=g.children;for(let D=0;D<x.length;D++)a(x[D],h,_&&_.children[D])}_=_||h}return v?()=>{s(v)}:di}function s(u){if(JE(u)){const m=r.get(u);m&&(r.delete(u),n.splice(n.indexOf(m),1),m.children.forEach(s),m.alias.forEach(s))}else{const m=n.indexOf(u);m>-1&&(n.splice(m,1),u.record.name&&r.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function o(){return n}function l(u){const m=Sv(u,n);n.splice(m,0,u),u.record.name&&!g_(u)&&r.set(u.record.name,u)}function c(u,m){let _,f={},g,S;if("name"in u&&u.name){if(_=r.get(u.name),!_)throw Dr(dt.MATCHER_NOT_FOUND,{location:u});S=_.record.name,f=We(p_(m.params,_.keys.filter(v=>!v.optional).concat(_.parent?_.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),u.params&&p_(u.params,_.keys.map(v=>v.name))),g=_.stringify(f)}else if(u.path!=null)g=u.path,_=n.find(v=>v.re.test(g)),_&&(f=_.parse(g),S=_.record.name);else{if(_=m.name?r.get(m.name):n.find(v=>v.re.test(m.path)),!_)throw Dr(dt.MATCHER_NOT_FOUND,{location:u,currentLocation:m});S=_.record.name,f=We({},m.params,u.params),g=_.stringify(f)}const b=[];let h=_;for(;h;)b.unshift(h.record),h=h.parent;return{name:S,path:g,params:f,matched:b,meta:Ev(b)}}t.forEach(u=>a(u));function d(){n.length=0,r.clear()}return{addRoute:a,resolve:c,removeRoute:s,clearRoutes:d,getRoutes:o,getRecordMatcher:i}}function p_(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function m_(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:fv(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function fv(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function g_(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Ev(t){return t.reduce((e,n)=>We(e,n.meta),{})}function Sv(t,e){let n=0,r=e.length;for(;n!==r;){const a=n+r>>1;tS(t,e[a])<0?r=a:n=a+1}const i=bv(t);return i&&(r=e.lastIndexOf(i,r-1)),r}function bv(t){let e=t;for(;e=e.parent;)if(nS(e)&&tS(t,e)===0)return e}function nS({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function f_(t){const e=Kt(ya),n=Kt(xd),r=Ae(()=>{const l=j(t.to);return e.resolve(l)}),i=Ae(()=>{const{matched:l}=r.value,{length:c}=l,d=l[c-1],u=n.matched;if(!d||!u.length)return-1;const m=u.findIndex(wr.bind(null,d));if(m>-1)return m;const _=E_(l[c-2]);return c>1&&E_(d)===_&&u[u.length-1].path!==_?u.findIndex(wr.bind(null,l[c-2])):m}),a=Ae(()=>i.value>-1&&Cv(n.params,r.value.params)),s=Ae(()=>i.value>-1&&i.value===n.matched.length-1&&jE(n.params,r.value.params));function o(l={}){if(Rv(l)){const c=e[j(t.replace)?"replace":"push"](j(t.to)).catch(di);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:Ae(()=>r.value.href),isActive:a,isExactActive:s,navigate:o}}function hv(t){return t.length===1?t[0]:t}const Tv=Ut({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"},viewTransition:Boolean},useLink:f_,setup(t,{slots:e}){const n=bi(f_(t)),{options:r}=Kt(ya),i=Ae(()=>({[S_(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[S_(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=e.default&&hv(e.default(n));return t.custom?a:wE("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}}),vv=Tv;function Rv(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Cv(t,e){for(const n in e){const r=e[n],i=t[n];if(typeof r=="string"){if(r!==i)return!1}else if(!sn(i)||i.length!==r.length||r.some((a,s)=>a.valueOf()!==i[s].valueOf()))return!1}return!0}function E_(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const S_=(t,e,n)=>t??e??n,yv=Ut({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Kt(ad),i=Ae(()=>t.route||r.value),a=Kt(a_,0),s=Ae(()=>{let c=j(a);const{matched:d}=i.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),o=Ae(()=>i.value.matched[s.value]);Yi(a_,Ae(()=>s.value+1)),Yi(yT,o),Yi(ad,i);const l=me();return lr(()=>[l.value,o.value,t.name],([c,d,u],[m,_,f])=>{d&&(d.instances[u]=c,_&&_!==d&&c&&c===m&&(d.leaveGuards.size||(d.leaveGuards=_.leaveGuards),d.updateGuards.size||(d.updateGuards=_.updateGuards))),c&&d&&(!_||!wr(d,_)||!m)&&(d.enterCallbacks[u]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=i.value,d=t.name,u=o.value,m=u&&u.components[d];if(!m)return b_(n.default,{Component:m,route:c});const _=u.props[d],f=_?_===!0?c.params:typeof _=="function"?_(c):_:null,S=wE(m,We({},f,e,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(u.instances[d]=null)},ref:l}));return b_(n.default,{Component:S,route:c})||S}}});function b_(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const Nv=yv;function Ov(t){const e=gv(t.routes,t),n=t.parseQuery||JT,r=t.stringifyQuery||c_,i=t.history,a=$r(),s=$r(),o=$r(),l=sb(Yn);let c=Yn;hr&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Xa.bind(null,ee=>""+ee),u=Xa.bind(null,FT),m=Xa.bind(null,Ei);function _(ee,ae){let se,pe;return JE(ee)?(se=e.getRecordMatcher(ee),pe=ae):pe=ee,e.addRoute(pe,se)}function f(ee){const ae=e.getRecordMatcher(ee);ae&&e.removeRoute(ae)}function g(){return e.getRoutes().map(ee=>ee.record)}function S(ee){return!!e.getRecordMatcher(ee)}function b(ee,ae){if(ae=We({},ae||l.value),typeof ee=="string"){const E=Za(n,ee,ae.path),H=e.resolve({path:E.path},ae),Y=i.createHref(E.fullPath);return We(E,H,{params:m(H.params),hash:Ei(E.hash),redirectedFrom:void 0,href:Y})}let se;if(ee.path!=null)se=We({},ee,{path:Za(n,ee.path,ae.path).path});else{const E=We({},ee.params);for(const H in E)E[H]==null&&delete E[H];se=We({},ee,{params:u(E)}),ae.params=u(ae.params)}const pe=e.resolve(se,ae),ge=ee.hash||"";pe.params=d(m(pe.params));const M=YT(r,We({},ee,{hash:kT(ge),path:pe.path})),G=i.createHref(M);return We({fullPath:M,hash:ge,query:r===c_?ev(ee.query):ee.query||{}},pe,{redirectedFrom:void 0,href:G})}function h(ee){return typeof ee=="string"?Za(n,ee,l.value.path):We({},ee)}function v(ee,ae){if(c!==ee)return Dr(dt.NAVIGATION_CANCELLED,{from:ae,to:ee})}function R(ee){return D(ee)}function C(ee){return R(We(h(ee),{replace:!0}))}function x(ee,ae){const se=ee.matched[ee.matched.length-1];if(se&&se.redirect){const{redirect:pe}=se;let ge=typeof pe=="function"?pe(ee,ae):pe;return typeof ge=="string"&&(ge=ge.includes("?")||ge.includes("#")?ge=h(ge):{path:ge},ge.params={}),We({query:ee.query,hash:ee.hash,params:ge.path!=null?{}:ee.params},ge)}}function D(ee,ae){const se=c=b(ee),pe=l.value,ge=ee.state,M=ee.force,G=ee.replace===!0,E=x(se,pe);if(E)return D(We(h(E),{state:typeof E=="object"?We({},ge,E.state):ge,force:M,replace:G}),ae||se);const H=se;H.redirectedFrom=ae;let Y;return!M&&qT(r,pe,se)&&(Y=Dr(dt.NAVIGATION_DUPLICATED,{to:H,from:pe}),L(pe,pe,!0,!1)),(Y?Promise.resolve(Y):F(H,pe)).catch(O=>Nn(O)?Nn(O,dt.NAVIGATION_GUARD_REDIRECT)?O:re(O):V(O,H,pe)).then(O=>{if(O){if(Nn(O,dt.NAVIGATION_GUARD_REDIRECT))return D(We({replace:G},h(O.to),{state:typeof O.to=="object"?We({},ge,O.to.state):ge,force:M}),ae||H)}else O=I(H,pe,!0,G,ge);return X(H,pe,O),O})}function N(ee,ae){const se=v(ee,ae);return se?Promise.reject(se):Promise.resolve()}function y(ee){const ae=ce.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(ee):ee()}function F(ee,ae){let se;const[pe,ge,M]=tv(ee,ae);se=Ja(pe.reverse(),"beforeRouteLeave",ee,ae);for(const E of pe)E.leaveGuards.forEach(H=>{se.push($n(H,ee,ae))});const G=N.bind(null,ee,ae);return se.push(G),Ee(se).then(()=>{se=[];for(const E of a.list())se.push($n(E,ee,ae));return se.push(G),Ee(se)}).then(()=>{se=Ja(ge,"beforeRouteUpdate",ee,ae);for(const E of ge)E.updateGuards.forEach(H=>{se.push($n(H,ee,ae))});return se.push(G),Ee(se)}).then(()=>{se=[];for(const E of M)if(E.beforeEnter)if(sn(E.beforeEnter))for(const H of E.beforeEnter)se.push($n(H,ee,ae));else se.push($n(E.beforeEnter,ee,ae));return se.push(G),Ee(se)}).then(()=>(ee.matched.forEach(E=>E.enterCallbacks={}),se=Ja(M,"beforeRouteEnter",ee,ae,y),se.push(G),Ee(se))).then(()=>{se=[];for(const E of s.list())se.push($n(E,ee,ae));return se.push(G),Ee(se)}).catch(E=>Nn(E,dt.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function X(ee,ae,se){o.list().forEach(pe=>y(()=>pe(ee,ae,se)))}function I(ee,ae,se,pe,ge){const M=v(ee,ae);if(M)return M;const G=ae===Yn,E=hr?history.state:{};se&&(pe||G?i.replace(ee.fullPath,We({scroll:G&&E&&E.scroll},ge)):i.push(ee.fullPath,ge)),l.value=ee,L(ee,ae,se,G),re()}let Q;function T(){Q||(Q=i.listen((ee,ae,se)=>{if(!oe.listening)return;const pe=b(ee),ge=x(pe,oe.currentRoute.value);if(ge){D(We(ge,{replace:!0,force:!0}),pe).catch(di);return}c=pe;const M=l.value;hr&&XT(l_(M.fullPath,se.delta),Oa()),F(pe,M).catch(G=>Nn(G,dt.NAVIGATION_ABORTED|dt.NAVIGATION_CANCELLED)?G:Nn(G,dt.NAVIGATION_GUARD_REDIRECT)?(D(We(h(G.to),{force:!0}),pe).then(E=>{Nn(E,dt.NAVIGATION_ABORTED|dt.NAVIGATION_DUPLICATED)&&!se.delta&&se.type===od.pop&&i.go(-1,!1)}).catch(di),Promise.reject()):(se.delta&&i.go(-se.delta,!1),V(G,pe,M))).then(G=>{G=G||I(pe,M,!1),G&&(se.delta&&!Nn(G,dt.NAVIGATION_CANCELLED)?i.go(-se.delta,!1):se.type===od.pop&&Nn(G,dt.NAVIGATION_ABORTED|dt.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),X(pe,M,G)}).catch(di)}))}let w=$r(),ue=$r(),k;function V(ee,ae,se){re(ee);const pe=ue.list();return pe.length?pe.forEach(ge=>ge(ee,ae,se)):console.error(ee),Promise.reject(ee)}function q(){return k&&l.value!==Yn?Promise.resolve():new Promise((ee,ae)=>{w.add([ee,ae])})}function re(ee){return k||(k=!ee,T(),w.list().forEach(([ae,se])=>ee?se(ee):ae()),w.reset()),ee}function L(ee,ae,se,pe){const{scrollBehavior:ge}=t;if(!hr||!ge)return Promise.resolve();const M=!se&&ZT(l_(ee.fullPath,0))||(pe||!se)&&history.state&&history.state.scroll||null;return Ti().then(()=>ge(ee,ae,M)).then(G=>G&&QT(G)).catch(G=>V(G,ee,ae))}const B=ee=>i.go(ee);let te;const ce=new Set,oe={currentRoute:l,listening:!0,addRoute:_,removeRoute:f,clearRoutes:e.clearRoutes,hasRoute:S,getRoutes:g,resolve:b,options:t,push:R,replace:C,go:B,back:()=>B(-1),forward:()=>B(1),beforeEach:a.add,beforeResolve:s.add,afterEach:o.add,onError:ue.add,isReady:q,install(ee){ee.component("RouterLink",vv),ee.component("RouterView",Nv),ee.config.globalProperties.$router=oe,Object.defineProperty(ee.config.globalProperties,"$route",{enumerable:!0,get:()=>j(l)}),hr&&!te&&l.value===Yn&&(te=!0,R(i.location).catch(pe=>{}));const ae={};for(const pe in Yn)Object.defineProperty(ae,pe,{get:()=>l.value[pe],enumerable:!0});ee.provide(ya,oe),ee.provide(xd,Kf(ae)),ee.provide(ad,l);const se=ee.unmount;ce.add(ee),ee.unmount=function(){ce.delete(ee),ce.size<1&&(c=Yn,Q&&Q(),Q=null,l.value=Yn,te=!1,k=!1),se()}}};function Ee(ee){return ee.reduce((ae,se)=>ae.then(()=>y(se)),Promise.resolve())}return oe}function h_(t){const e=t.startsWith("/")?t:`/${t}`;return(e.endsWith("/")?e:`${e}/`).replace(/\/+/g,"/")}function Av(){return typeof document<"u"&&document.baseURI?h_(new URL(document.baseURI).pathname):h_("./")}const na=Av(),Iv=`${na==="/"?"":na.slice(0,-1)}/api/v1`;function xv(t){return new URL(t.replace(/^\//,""),window.location.origin+na).pathname}const ra=Iv;async function Ri(t,e={}){const n=t.startsWith("/")?`${ra}${t}`:`${ra}/${t}`,r={...e.headers};e.body&&!(e.body instanceof FormData)&&(r["Content-Type"]="application/json");const i=await fetch(n,{...e,headers:r,credentials:"include"});if(i.status===204)return null;const a=i.headers.get("content-type");let s;if(a&&a.includes("application/json")?s=await i.json():s=await i.text(),!i.ok){const o=new Error(s?.detail||s?.error||s?.message||`请求失败 (${i.status})`);throw o.status=i.status,o.data=s,o}return s}function _r(t){return Ri(t,{method:"GET"})}function Tn(t,e){return Ri(t,{method:"POST",body:e instanceof FormData?e:JSON.stringify(e)})}function T_(t,e){return Ri(t,{method:"PUT",body:e instanceof FormData?e:JSON.stringify(e)})}function rS(t,e){return Ri(t,{method:"PATCH",body:e instanceof FormData?e:JSON.stringify(e)})}function wd(t){return Ri(t,{method:"DELETE"})}async function Dv(){const t=xv("/setup");if(window.location.pathname===t)return!0;try{return(await(await fetch(`${ra}/init/status`)).json()).initialized?!0:(window.location.href=t,!1)}catch(e){return console.error("Failed to check system init status:",e),!0}}const es={login:t=>Tn("/auth/login",t),logout:()=>Tn("/auth/logout"),me:()=>_r("/auth/me")},Kn={list:t=>_r(`/skills${t?`?q=${encodeURIComponent(t)}`:""}`),get:t=>_r(`/skills/${t}`),create:t=>Tn("/skills",t),update:(t,e)=>T_(`/skills/${t}`,e),delete:t=>wd(`/skills/${t}`),upload:t=>Tn("/skills/publish",t),setHead:(t,e)=>T_(`/skills/${t}/head`,{version:e})},sr={list:t=>_r(`/skills/${t}/versions`),downloadUrl:(t,e)=>`${ra}/skills/${t}/versions/${e}/download`,update:(t,e,n)=>rS(`/skills/${t}/versions/${e}`,n)},v_={list:t=>_r(`/skills/${t}/collaborators`),add:(t,e)=>Tn(`/skills/${t}/collaborators`,{username:e}),remove:(t,e)=>wd(`/skills/${t}/collaborators/${e}`)},Jr={list:()=>_r("/users"),create:t=>Tn("/users",t),update:(t,e)=>rS(`/users/${t}`,e),resetPassword:(t,e)=>Tn(`/users/${t}/reset-password`,{new_password:e}),delete:t=>wd(`/users/${t}`)},Ci=VE("auth",()=>{const t=me(null),e=me(!1),n=me(!1),r=me(null),i=Ae(()=>!!t.value),a=Ae(()=>t.value?.role==="admin"),s=Ae(()=>t.value?.username||""),o=Ae(()=>t.value?.name||t.value?.username||"");async function l(_,f){n.value=!0,r.value=null;try{const g=await es.login({username:_,password:f});return t.value=g.user,e.value=!0,!0}catch(g){return r.value=g.message||"登录失败",!1}finally{n.value=!1}}async function c(){try{await es.logout()}finally{t.value=null,e.value=!0}}async function d(_={}){if(!_.force&&e.value)return!!t.value;try{const f=await es.me();return t.value=f,e.value=!0,!0}catch{return t.value=null,e.value=!0,!1}}async function u(_){if(!t.value)return!1;try{const f=await Jr.update(t.value.id,_);return t.value={...t.value,...f},!0}catch(f){return r.value=f.message||"更新失败",!1}}function m(){r.value=null}return{user:t,hasFetchedUser:e,isLoading:n,error:r,isLoggedIn:i,isAdmin:a,username:s,displayName:o,login:l,logout:c,fetchUser:d,updateProfile:u,clearError:m}}),wv={"nav.home":"首页","nav.publish":"发布","nav.settings":"账户设置","nav.admin":"用户管理","nav.logout":"登出","nav.login":"登录","btn.cancel":"取消","common.cancel":"取消","btn.save":"保存修改","btn.add":"添加","btn.edit":"编辑","btn.delete":"删除","btn.confirm":"确认删除","btn.remove":"移除","btn.close":"关闭","btn.reset":"确认重置","btn.back":"返回详情页","time.justNow":"刚刚","time.minutesAgo":"分钟前","time.hoursAgo":"小时前","time.daysAgo":"天前","state.loading":"加载中...","state.noDesc":"暂无描述","state.unknown":"未知","state.noData":"暂无数据","state.empty":"空目录","login.title":"登录 - Skill Base","login.subtitle":"// 内网 Skill 管理平台 · 需要凭证","login.submit":"执行登录","login.loading":"登录中...","login.errUsername":"请输入用户名","login.errPassword":"请输入密码","login.errFailed":"登录失败,请重试","login.unauthorized":"未授权,请重新登录","setup.title":"初始化 - Skill Base","setup.subtitle":"// 首次启动 · 请设置管理员账号","setup.usernameHint":"3-50 个字符","setup.passwordHint":"至少 6 个字符","setup.submit":"创建管理员账号","setup.loading":"创建中...","setup.success":"管理员账号创建成功,即将跳转到登录页...","setup.errUsername":"请输入用户名","setup.errUsernameLength":"用户名需要 3-50 个字符","setup.errPassword":"请输入密码","setup.errPasswordLength":"密码至少需要 6 个字符","setup.errPasswordMismatch":"两次输入的密码不一致","setup.errFailed":"创建失败,请重试","index.searchPlaceholder":"搜索 Skill...","index.fabTitle":"发布新版本","index.noSkills":"暂无 Skill,去发布第一个吧","index.noResults":'未找到包含 "{q}" 的 Skill',"index.noResultsHint":"试试其他关键词?","index.publishBtn":"发布 Skill","index.loadFailed":"加载失败: ","skill.title":"Skill 详情 - Skill Base","skill.breadcrumbHome":"首页","skill.loading":"加载中...","skill.fileDir":"文件目录","skill.selectFile":"选择文件以预览","skill.clickFile":"点击左侧文件查看内容","skill.htmlPreview":"HTML 预览","skill.mdSource":"Markdown 源码","skill.team":"管理团队","skill.addCollaborator":"+ 添加协作者","skill.deleteSkill":"删除 Skill","skill.versionHistory":"版本历史","skill.noVersions":"暂无版本记录","skill.owner":"负责人: ","skill.createdAt":"创建时间: ","skill.uploadedBy":"上传者: ","skill.noChangelog":"无更新说明","skill.selectVersion":"选择版本...","skill.latestTag":"(最新)","skill.download":"下载当前版本","skill.compare":"对比版本","skill.selectVersionFirst":"请先选择版本","skill.fileNotFound":"文件不存在","skill.binaryFile":"二进制文件,无法预览","skill.binaryHint":"请下载 zip 包后在本地查看","skill.previewFailed":"预览失败: ","skill.loadFailed":"加载 Skill 详情失败","skill.missingId":"缺少 Skill ID 参数","skill.loadVersionsFailed":"加载版本列表失败","skill.zipFailed":"下载 zip 失败","skill.versionFailed":"加载版本失败: ","skill.infoLoading":"Skill 信息加载中","skill.needTwoVersions":"至少需要两个版本才能对比","skill.loadInfoFailed":"加载 Skill 信息失败","skill.notFound":"Skill 不存在","skill.notFoundDesc":"该 Skill 可能已被删除或你没有访问权限","skill.backToHome":"返回首页","skill.collaborators":"协作者","skill.noFile":"暂无文件","skill.fullscreen":"全屏","skill.exitFullscreen":"退出全屏","skill.readmeNotFound":"README 不存在","skill.addCollaboratorFailed":"添加协作者失败","skill.removeCollaboratorFailed":"移除协作者失败","skill.deleteFailed":"删除 Skill 失败","skill.editVersionTitleDesc":"编辑版本介绍","skill.editVersionTitleChangelog":"编辑更新日志","skill.editVersionLabelDescription":"版本介绍 (Skill Description)","skill.editVersionLabelChangelog":"更新日志 (Changelog)","skill.editVersionPlaceholderDescription":"当前版本的介绍说明...","skill.editVersionPlaceholderChangelog":"更新日志...","skill.editVersionSuccess":"更新成功","skill.editVersionFailed":"更新失败","collab.modal":"添加协作者","collab.usernameLabel":"用户名","collab.usernamePlaceholder":"输入用户名","collab.owner":"所有者","collab.collaborator":"协作者","collab.disabled":" (已禁用)","collab.noUsers":"未找到用户","collab.enterUsername":"请输入用户名","collab.addSuccess":"协作者添加成功","collab.addFailed":"添加失败","collab.removeConfirm":"确定要移除该协作者吗?","collab.removeSuccess":"协作者已移除","collab.removeFailed":"移除失败","collab.deleteModal":"确认删除","collab.deleteWarning":"⚠️ 此操作不可恢复!将删除该 Skill 的所有版本和数据。","collab.deleteLabel":"请输入 Skill ID 确认删除:","collab.deleteConfirmBtn":"确认删除","collab.deleteWrongId":"请输入正确的 Skill ID 确认删除","collab.deleteSuccess":"Skill 已删除","collab.deleteFailed":"删除失败","publish.title":"发布新版本 - Skill Base","publish.breadcrumbCurrent":"发布新版本","publish.heading":"发布新版本","publish.uploadFile":"上传文件","publish.uploadLabel":"上传文件","publish.dropZoneText":"拖拽 Skill 文件夹或 zip 到此处","publish.dropText":"拖拽 Skill 文件夹或 zip 到此处","publish.dropZoneSubtitle":"或点击选择文件夹","publish.dropSubtitle":"或点击选择文件夹","publish.dropZoneHint":"Skill ID、名称、描述均从包内读取(文件夹名 / zip 文件名 + SKILL.md),不可手改","publish.dropHint":"Skill ID、名称、描述均从包内读取(文件夹名 / zip 文件名 + SKILL.md),不可手改","publish.or":"或","publish.selectZip":"选择 zip 文件...","publish.selectedFiles":"已选择文件","publish.clearFiles":"清除","publish.moreFiles":"还有 {count} 个文件...","publish.totalFiles":"共 {count} 个文件","publish.selectSkill":"选择 Skill","publish.createNewSkill":"-- 创建新 Skill --","publish.createNew":"-- 创建新 Skill --","publish.skillSelectHint":"更新已有 Skill 时请选择与包内 Skill ID 一致的一项;新建则保持「创建新 Skill」","publish.skillId":"Skill ID","publish.idLabel":"Skill ID","publish.skillIdPlaceholder":"上传文件夹或 zip 后自动填入","publish.idPlaceholder":"上传文件夹或 zip 后自动填入","publish.skillIdHint":"由文件夹名或 zip 文件名推导(小写字母、数字、连字符、下划线)","publish.idHint":"由文件夹名或 zip 文件名推导(小写字母、数字、连字符、下划线)","publish.skillName":"Skill 名称","publish.nameLabel":"Skill 名称","publish.skillNamePlaceholder":"上传后从 SKILL.md 读取","publish.namePlaceholder":"上传后从 SKILL.md 读取","publish.description":"描述","publish.descLabel":"描述","publish.descriptionPlaceholder":"上传后从 SKILL.md 读取","publish.descPlaceholder":"上传后从 SKILL.md 读取","publish.charCount":"字","publish.descHint":" / 500 字(与包内一致,截断至 500 字)","publish.changelog":"更新说明","publish.changelogLabel":"更新说明","publish.changelogPlaceholder":`描述本次更新的内容...
|
|
1
|
+
function OS(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function md(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const tt={},Tr=[],hn=()=>{},Rf=()=>!1,la=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),ca=t=>t.startsWith("onUpdate:"),St=Object.assign,gd=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},AS=Object.prototype.hasOwnProperty,Ke=(t,e)=>AS.call(t,e),Oe=Array.isArray,vr=t=>Si(t)==="[object Map]",Lr=t=>Si(t)==="[object Set]",pu=t=>Si(t)==="[object Date]",Me=t=>typeof t=="function",_t=t=>typeof t=="string",Xt=t=>typeof t=="symbol",Qe=t=>t!==null&&typeof t=="object",Cf=t=>(Qe(t)||Me(t))&&Me(t.then)&&Me(t.catch),yf=Object.prototype.toString,Si=t=>yf.call(t),IS=t=>Si(t).slice(8,-1),Nf=t=>Si(t)==="[object Object]",da=t=>_t(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ti=md(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ua=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},xS=/-\w/g,Pt=ua(t=>t.replace(xS,e=>e.slice(1).toUpperCase())),DS=/\B([A-Z])/g,Zn=ua(t=>t.replace(DS,"-$1").toLowerCase()),_a=ua(t=>t.charAt(0).toUpperCase()+t.slice(1)),Ba=ua(t=>t?`on${_a(t)}`:""),Sn=(t,e)=>!Object.is(t,e),Gi=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},Of=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},pa=t=>{const e=parseFloat(t);return isNaN(e)?t:e},wS=t=>{const e=_t(t)?Number(t):NaN;return isNaN(e)?t:e};let mu;const ma=()=>mu||(mu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ga(t){if(Oe(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=_t(r)?PS(r):ga(r);if(i)for(const a in i)e[a]=i[a]}return e}else if(_t(t)||Qe(t))return t}const LS=/;(?![^(]*\))/g,MS=/:([^]+)/,kS=/\/\*[^]*?\*\//g;function PS(t){const e={};return t.replace(kS,"").split(LS).forEach(n=>{if(n){const r=n.split(MS);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Ye(t){let e="";if(_t(t))e=t;else if(Oe(t))for(let n=0;n<t.length;n++){const r=Ye(t[n]);r&&(e+=r+" ")}else if(Qe(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const US="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",FS=md(US);function Af(t){return!!t||t===""}function BS(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Qn(t[r],e[r]);return n}function Qn(t,e){if(t===e)return!0;let n=pu(t),r=pu(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Xt(t),r=Xt(e),n||r)return t===e;if(n=Oe(t),r=Oe(e),n||r)return n&&r?BS(t,e):!1;if(n=Qe(t),r=Qe(e),n||r){if(!n||!r)return!1;const i=Object.keys(t).length,a=Object.keys(e).length;if(i!==a)return!1;for(const s in t){const o=t.hasOwnProperty(s),l=e.hasOwnProperty(s);if(o&&!l||!o&&l||!Qn(t[s],e[s]))return!1}}return String(t)===String(e)}function fd(t,e){return t.findIndex(n=>Qn(n,e))}const If=t=>!!(t&&t.__v_isRef===!0),Z=t=>_t(t)?t:t==null?"":Oe(t)||Qe(t)&&(t.toString===yf||!Me(t.toString))?If(t)?Z(t.value):JSON.stringify(t,xf,2):String(t),xf=(t,e)=>If(e)?xf(t,e.value):vr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i],a)=>(n[Ga(r,a)+" =>"]=i,n),{})}:Lr(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Ga(n))}:Xt(e)?Ga(e):Qe(e)&&!Oe(e)&&!Nf(e)?String(e):e,Ga=(t,e="")=>{var n;return Xt(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};let Nt;class Df{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Nt,!e&&Nt&&(this.index=(Nt.scopes||(Nt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=Nt;try{return Nt=this,e()}finally{Nt=n}}}on(){++this._on===1&&(this.prevScope=Nt,Nt=this)}off(){this._on>0&&--this._on===0&&(Nt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function wf(t){return new Df(t)}function Lf(){return Nt}function GS(t,e=!1){Nt&&Nt.cleanups.push(t)}let rt;const Ya=new WeakSet;class Mf{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Nt&&Nt.active&&Nt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ya.has(this)&&(Ya.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Pf(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,gu(this),Uf(this);const e=rt,n=nn;rt=this,nn=!0;try{return this.fn()}finally{Ff(this),rt=e,nn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)bd(e);this.deps=this.depsTail=void 0,gu(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ya.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Hc(this)&&this.run()}get dirty(){return Hc(this)}}let kf=0,ni,ri;function Pf(t,e=!1){if(t.flags|=8,e){t.next=ri,ri=t;return}t.next=ni,ni=t}function Ed(){kf++}function Sd(){if(--kf>0)return;if(ri){let e=ri;for(ri=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;ni;){let e=ni;for(ni=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function Uf(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Ff(t){let e,n=t.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),bd(r),YS(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}t.deps=e,t.depsTail=n}function Hc(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Bf(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Bf(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===ui)||(t.globalVersion=ui,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Hc(t))))return;t.flags|=2;const e=t.dep,n=rt,r=nn;rt=t,nn=!0;try{Uf(t);const i=t.fn(t._value);(e.version===0||Sn(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{rt=n,nn=r,Ff(t),t.flags&=-3}}function bd(t,e=!1){const{dep:n,prevSub:r,nextSub:i}=t;if(r&&(r.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)bd(a,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function YS(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let nn=!0;const Gf=[];function Mn(){Gf.push(nn),nn=!1}function kn(){const t=Gf.pop();nn=t===void 0?!0:t}function gu(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=rt;rt=void 0;try{e()}finally{rt=n}}}let ui=0;class qS{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hd{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!rt||!nn||rt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==rt)n=this.activeLink=new qS(rt,this),rt.deps?(n.prevDep=rt.depsTail,rt.depsTail.nextDep=n,rt.depsTail=n):rt.deps=rt.depsTail=n,Yf(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=rt.depsTail,n.nextDep=void 0,rt.depsTail.nextDep=n,rt.depsTail=n,rt.deps===n&&(rt.deps=r)}return n}trigger(e){this.version++,ui++,this.notify(e)}notify(e){Ed();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Sd()}}}function Yf(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)Yf(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const $i=new WeakMap,or=Symbol(""),Vc=Symbol(""),_i=Symbol("");function Ot(t,e,n){if(nn&&rt){let r=$i.get(t);r||$i.set(t,r=new Map);let i=r.get(n);i||(r.set(n,i=new hd),i.map=r,i.key=n),i.track()}}function In(t,e,n,r,i,a){const s=$i.get(t);if(!s){ui++;return}const o=l=>{l&&l.trigger()};if(Ed(),e==="clear")s.forEach(o);else{const l=Oe(t),c=l&&da(n);if(l&&n==="length"){const d=Number(r);s.forEach((u,m)=>{(m==="length"||m===_i||!Xt(m)&&m>=d)&&o(u)})}else switch((n!==void 0||s.has(void 0))&&o(s.get(n)),c&&o(s.get(_i)),e){case"add":l?c&&o(s.get("length")):(o(s.get(or)),vr(t)&&o(s.get(Vc)));break;case"delete":l||(o(s.get(or)),vr(t)&&o(s.get(Vc)));break;case"set":vr(t)&&o(s.get(or));break}}Sd()}function HS(t,e){const n=$i.get(t);return n&&n.get(e)}function fr(t){const e=Ve(t);return e===t?e:(Ot(e,"iterate",_i),qt(t)?e:e.map(rn))}function fa(t){return Ot(t=Ve(t),"iterate",_i),t}function fn(t,e){return Pn(t)?Or(Ln(t)?rn(e):e):rn(e)}const VS={__proto__:null,[Symbol.iterator](){return qa(this,Symbol.iterator,t=>fn(this,t))},concat(...t){return fr(this).concat(...t.map(e=>Oe(e)?fr(e):e))},entries(){return qa(this,"entries",t=>(t[1]=fn(this,t[1]),t))},every(t,e){return yn(this,"every",t,e,void 0,arguments)},filter(t,e){return yn(this,"filter",t,e,n=>n.map(r=>fn(this,r)),arguments)},find(t,e){return yn(this,"find",t,e,n=>fn(this,n),arguments)},findIndex(t,e){return yn(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return yn(this,"findLast",t,e,n=>fn(this,n),arguments)},findLastIndex(t,e){return yn(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return yn(this,"forEach",t,e,void 0,arguments)},includes(...t){return Ha(this,"includes",t)},indexOf(...t){return Ha(this,"indexOf",t)},join(t){return fr(this).join(t)},lastIndexOf(...t){return Ha(this,"lastIndexOf",t)},map(t,e){return yn(this,"map",t,e,void 0,arguments)},pop(){return Hr(this,"pop")},push(...t){return Hr(this,"push",t)},reduce(t,...e){return fu(this,"reduce",t,e)},reduceRight(t,...e){return fu(this,"reduceRight",t,e)},shift(){return Hr(this,"shift")},some(t,e){return yn(this,"some",t,e,void 0,arguments)},splice(...t){return Hr(this,"splice",t)},toReversed(){return fr(this).toReversed()},toSorted(t){return fr(this).toSorted(t)},toSpliced(...t){return fr(this).toSpliced(...t)},unshift(...t){return Hr(this,"unshift",t)},values(){return qa(this,"values",t=>fn(this,t))}};function qa(t,e,n){const r=fa(t),i=r[e]();return r!==t&&!qt(t)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.done||(a.value=n(a.value)),a}),i}const zS=Array.prototype;function yn(t,e,n,r,i,a){const s=fa(t),o=s!==t&&!qt(t),l=s[e];if(l!==zS[e]){const u=l.apply(t,a);return o?rn(u):u}let c=n;s!==t&&(o?c=function(u,m){return n.call(this,fn(t,u),m,t)}:n.length>2&&(c=function(u,m){return n.call(this,u,m,t)}));const d=l.call(s,c,r);return o&&i?i(d):d}function fu(t,e,n,r){const i=fa(t),a=i!==t&&!qt(t);let s=n,o=!1;i!==t&&(a?(o=r.length===0,s=function(c,d,u){return o&&(o=!1,c=fn(t,c)),n.call(this,c,fn(t,d),u,t)}):n.length>3&&(s=function(c,d,u){return n.call(this,c,d,u,t)}));const l=i[e](s,...r);return o?fn(t,l):l}function Ha(t,e,n){const r=Ve(t);Ot(r,"iterate",_i);const i=r[e](...n);return(i===-1||i===!1)&&Ea(n[0])?(n[0]=Ve(n[0]),r[e](...n)):i}function Hr(t,e,n=[]){Mn(),Ed();const r=Ve(t)[e].apply(t,n);return Sd(),kn(),r}const $S=md("__proto__,__v_isRef,__isVue"),qf=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Xt));function WS(t){Xt(t)||(t=String(t));const e=Ve(this);return Ot(e,"has",t),e.hasOwnProperty(t)}class Hf{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const i=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(i?a?rb:Wf:a?$f:zf).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const s=Oe(e);if(!i){let l;if(s&&(l=VS[n]))return l;if(n==="hasOwnProperty")return WS}const o=Reflect.get(e,n,ut(e)?e:r);if((Xt(n)?qf.has(n):$S(n))||(i||Ot(e,"get",n),a))return o;if(ut(o)){const l=s&&da(n)?o:o.value;return i&&Qe(l)?$c(l):l}return Qe(o)?i?$c(o):bi(o):o}}class Vf extends Hf{constructor(e=!1){super(!1,e)}set(e,n,r,i){let a=e[n];const s=Oe(e)&&da(n);if(!this._isShallow){const c=Pn(a);if(!qt(r)&&!Pn(r)&&(a=Ve(a),r=Ve(r)),!s&&ut(a)&&!ut(r))return c||(a.value=r),!0}const o=s?Number(n)<e.length:Ke(e,n),l=Reflect.set(e,n,r,ut(e)?e:i);return e===Ve(i)&&(o?Sn(r,a)&&In(e,"set",n,r):In(e,"add",n,r)),l}deleteProperty(e,n){const r=Ke(e,n);e[n];const i=Reflect.deleteProperty(e,n);return i&&r&&In(e,"delete",n,void 0),i}has(e,n){const r=Reflect.has(e,n);return(!Xt(n)||!qf.has(n))&&Ot(e,"has",n),r}ownKeys(e){return Ot(e,"iterate",Oe(e)?"length":or),Reflect.ownKeys(e)}}class KS extends Hf{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const QS=new Vf,XS=new KS,ZS=new Vf(!0);const zc=t=>t,Di=t=>Reflect.getPrototypeOf(t);function jS(t,e,n){return function(...r){const i=this.__v_raw,a=Ve(i),s=vr(a),o=t==="entries"||t===Symbol.iterator&&s,l=t==="keys"&&s,c=i[t](...r),d=n?zc:e?Or:rn;return!e&&Ot(a,"iterate",l?Vc:or),St(Object.create(c),{next(){const{value:u,done:m}=c.next();return m?{value:u,done:m}:{value:o?[d(u[0]),d(u[1])]:d(u),done:m}}})}}function wi(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function JS(t,e){const n={get(i){const a=this.__v_raw,s=Ve(a),o=Ve(i);t||(Sn(i,o)&&Ot(s,"get",i),Ot(s,"get",o));const{has:l}=Di(s),c=e?zc:t?Or:rn;if(l.call(s,i))return c(a.get(i));if(l.call(s,o))return c(a.get(o));a!==s&&a.get(i)},get size(){const i=this.__v_raw;return!t&&Ot(Ve(i),"iterate",or),i.size},has(i){const a=this.__v_raw,s=Ve(a),o=Ve(i);return t||(Sn(i,o)&&Ot(s,"has",i),Ot(s,"has",o)),i===o?a.has(i):a.has(i)||a.has(o)},forEach(i,a){const s=this,o=s.__v_raw,l=Ve(o),c=e?zc:t?Or:rn;return!t&&Ot(l,"iterate",or),o.forEach((d,u)=>i.call(a,c(d),c(u),s))}};return St(n,t?{add:wi("add"),set:wi("set"),delete:wi("delete"),clear:wi("clear")}:{add(i){const a=Ve(this),s=Di(a),o=Ve(i),l=!e&&!qt(i)&&!Pn(i)?o:i;return s.has.call(a,l)||Sn(i,l)&&s.has.call(a,i)||Sn(o,l)&&s.has.call(a,o)||(a.add(l),In(a,"add",l,l)),this},set(i,a){!e&&!qt(a)&&!Pn(a)&&(a=Ve(a));const s=Ve(this),{has:o,get:l}=Di(s);let c=o.call(s,i);c||(i=Ve(i),c=o.call(s,i));const d=l.call(s,i);return s.set(i,a),c?Sn(a,d)&&In(s,"set",i,a):In(s,"add",i,a),this},delete(i){const a=Ve(this),{has:s,get:o}=Di(a);let l=s.call(a,i);l||(i=Ve(i),l=s.call(a,i)),o&&o.call(a,i);const c=a.delete(i);return l&&In(a,"delete",i,void 0),c},clear(){const i=Ve(this),a=i.size!==0,s=i.clear();return a&&In(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=jS(i,t,e)}),n}function Td(t,e){const n=JS(t,e);return(r,i,a)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(Ke(n,i)&&i in r?n:r,i,a)}const eb={get:Td(!1,!1)},tb={get:Td(!1,!0)},nb={get:Td(!0,!1)};const zf=new WeakMap,$f=new WeakMap,Wf=new WeakMap,rb=new WeakMap;function ib(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ab(t){return t.__v_skip||!Object.isExtensible(t)?0:ib(IS(t))}function bi(t){return Pn(t)?t:vd(t,!1,QS,eb,zf)}function Kf(t){return vd(t,!1,ZS,tb,$f)}function $c(t){return vd(t,!0,XS,nb,Wf)}function vd(t,e,n,r,i){if(!Qe(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const a=ab(t);if(a===0)return t;const s=i.get(t);if(s)return s;const o=new Proxy(t,a===2?r:n);return i.set(t,o),o}function Ln(t){return Pn(t)?Ln(t.__v_raw):!!(t&&t.__v_isReactive)}function Pn(t){return!!(t&&t.__v_isReadonly)}function qt(t){return!!(t&&t.__v_isShallow)}function Ea(t){return t?!!t.__v_raw:!1}function Ve(t){const e=t&&t.__v_raw;return e?Ve(e):t}function Rd(t){return!Ke(t,"__v_skip")&&Object.isExtensible(t)&&Of(t,"__v_skip",!0),t}const rn=t=>Qe(t)?bi(t):t,Or=t=>Qe(t)?$c(t):t;function ut(t){return t?t.__v_isRef===!0:!1}function me(t){return Qf(t,!1)}function sb(t){return Qf(t,!0)}function Qf(t,e){return ut(t)?t:new ob(t,e)}class ob{constructor(e,n){this.dep=new hd,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:Ve(e),this._value=n?e:rn(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||qt(e)||Pn(e);e=r?e:Ve(e),Sn(e,n)&&(this._rawValue=e,this._value=r?e:rn(e),this.dep.trigger())}}function j(t){return ut(t)?t.value:t}const lb={get:(t,e,n)=>e==="__v_raw"?t:j(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return ut(i)&&!ut(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function Xf(t){return Ln(t)?t:new Proxy(t,lb)}function cb(t){const e=Oe(t)?new Array(t.length):{};for(const n in t)e[n]=ub(t,n);return e}class db{constructor(e,n,r){this._object=e,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=Xt(n)?n:String(n),this._raw=Ve(e);let i=!0,a=e;if(!Oe(e)||Xt(this._key)||!da(this._key))do i=!Ea(a)||qt(a);while(i&&(a=a.__v_raw));this._shallow=i}get value(){let e=this._object[this._key];return this._shallow&&(e=j(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&ut(this._raw[this._key])){const n=this._object[this._key];if(ut(n)){n.value=e;return}}this._object[this._key]=e}get dep(){return HS(this._raw,this._key)}}function ub(t,e,n){return new db(t,e,n)}class _b{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new hd(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ui-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&rt!==this)return Pf(this,!0),!0}get value(){const e=this.dep.track();return Bf(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function pb(t,e,n=!1){let r,i;return Me(t)?r=t:(r=t.get,i=t.set),new _b(r,i,n)}const Li={},Wi=new WeakMap;let rr;function mb(t,e=!1,n=rr){if(n){let r=Wi.get(n);r||Wi.set(n,r=[]),r.push(t)}}function gb(t,e,n=tt){const{immediate:r,deep:i,once:a,scheduler:s,augmentJob:o,call:l}=n,c=R=>i?R:qt(R)||i===!1||i===0?xn(R,1):xn(R);let d,u,m,_,f=!1,g=!1;if(ut(t)?(u=()=>t.value,f=qt(t)):Ln(t)?(u=()=>c(t),f=!0):Oe(t)?(g=!0,f=t.some(R=>Ln(R)||qt(R)),u=()=>t.map(R=>{if(ut(R))return R.value;if(Ln(R))return c(R);if(Me(R))return l?l(R,2):R()})):Me(t)?e?u=l?()=>l(t,2):t:u=()=>{if(m){Mn();try{m()}finally{kn()}}const R=rr;rr=d;try{return l?l(t,3,[_]):t(_)}finally{rr=R}}:u=hn,e&&i){const R=u,C=i===!0?1/0:i;u=()=>xn(R(),C)}const S=Lf(),b=()=>{d.stop(),S&&S.active&&gd(S.effects,d)};if(a&&e){const R=e;e=(...C)=>{R(...C),b()}}let h=g?new Array(t.length).fill(Li):Li;const v=R=>{if(!(!(d.flags&1)||!d.dirty&&!R))if(e){const C=d.run();if(i||f||(g?C.some((x,D)=>Sn(x,h[D])):Sn(C,h))){m&&m();const x=rr;rr=d;try{const D=[C,h===Li?void 0:g&&h[0]===Li?[]:h,_];h=C,l?l(e,3,D):e(...D)}finally{rr=x}}}else d.run()};return o&&o(v),d=new Mf(u),d.scheduler=s?()=>s(v,!1):v,_=R=>mb(R,!1,d),m=d.onStop=()=>{const R=Wi.get(d);if(R){if(l)l(R,4);else for(const C of R)C();Wi.delete(d)}},e?r?v(!0):h=d.run():s?s(v.bind(null,!0),!0):d.run(),b.pause=d.pause.bind(d),b.resume=d.resume.bind(d),b.stop=b,b}function xn(t,e=1/0,n){if(e<=0||!Qe(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,ut(t))xn(t.value,e,n);else if(Oe(t))for(let r=0;r<t.length;r++)xn(t[r],e,n);else if(Lr(t)||vr(t))t.forEach(r=>{xn(r,e,n)});else if(Nf(t)){for(const r in t)xn(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&xn(t[r],e,n)}return t}function hi(t,e,n,r){try{return r?t(...r):t()}catch(i){Sa(i,e,n)}}function an(t,e,n,r){if(Me(t)){const i=hi(t,e,n,r);return i&&Cf(i)&&i.catch(a=>{Sa(a,e,n)}),i}if(Oe(t)){const i=[];for(let a=0;a<t.length;a++)i.push(an(t[a],e,n,r));return i}}function Sa(t,e,n,r=!0){const i=e?e.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:s}=e&&e.appContext.config||tt;if(e){let o=e.parent;const l=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const d=o.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](t,l,c)===!1)return}o=o.parent}if(a){Mn(),hi(a,null,10,[t,l,c]),kn();return}}fb(t,n,i,r,s)}function fb(t,e,n,r=!0,i=!1){if(i)throw t;console.error(t)}const Mt=[];let gn=-1;const Rr=[];let zn=null,Sr=0;const Zf=Promise.resolve();let Ki=null;function Ti(t){const e=Ki||Zf;return t?e.then(this?t.bind(this):t):e}function Eb(t){let e=gn+1,n=Mt.length;for(;e<n;){const r=e+n>>>1,i=Mt[r],a=pi(i);a<t||a===t&&i.flags&2?e=r+1:n=r}return e}function Cd(t){if(!(t.flags&1)){const e=pi(t),n=Mt[Mt.length-1];!n||!(t.flags&2)&&e>=pi(n)?Mt.push(t):Mt.splice(Eb(e),0,t),t.flags|=1,jf()}}function jf(){Ki||(Ki=Zf.then(eE))}function Sb(t){Oe(t)?Rr.push(...t):zn&&t.id===-1?zn.splice(Sr+1,0,t):t.flags&1||(Rr.push(t),t.flags|=1),jf()}function Eu(t,e,n=gn+1){for(;n<Mt.length;n++){const r=Mt[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;Mt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Jf(t){if(Rr.length){const e=[...new Set(Rr)].sort((n,r)=>pi(n)-pi(r));if(Rr.length=0,zn){zn.push(...e);return}for(zn=e,Sr=0;Sr<zn.length;Sr++){const n=zn[Sr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}zn=null,Sr=0}}const pi=t=>t.id==null?t.flags&2?-1:1/0:t.id;function eE(t){try{for(gn=0;gn<Mt.length;gn++){const e=Mt[gn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),hi(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;gn<Mt.length;gn++){const e=Mt[gn];e&&(e.flags&=-2)}gn=-1,Mt.length=0,Jf(),Ki=null,(Mt.length||Rr.length)&&eE()}}let Gt=null,tE=null;function Qi(t){const e=Gt;return Gt=t,tE=t&&t.type.__scopeId||null,e}function st(t,e=Gt,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&ji(-1);const a=Qi(e);let s;try{s=t(...i)}finally{Qi(a),r._d&&ji(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Ge(t,e){if(Gt===null)return t;const n=Ra(Gt),r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[a,s,o,l=tt]=e[i];a&&(Me(a)&&(a={mounted:a,updated:a}),a.deep&&xn(s),r.push({dir:a,instance:n,value:s,oldValue:void 0,arg:o,modifiers:l}))}return t}function er(t,e,n,r){const i=t.dirs,a=e&&e.dirs;for(let s=0;s<i.length;s++){const o=i[s];a&&(o.oldValue=a[s].value);let l=o.dir[r];l&&(Mn(),an(l,n,8,[t.el,o,t,e]),kn())}}function Yi(t,e){if(At){let n=At.provides;const r=At.parent&&At.parent.provides;r===n&&(n=At.provides=Object.create(r)),n[t]=e}}function Kt(t,e,n=!1){const r=Id();if(r||cr){let i=cr?cr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return n&&Me(e)?e.call(r&&r.proxy):e}}function bb(){return!!(Id()||cr)}const hb=Symbol.for("v-scx"),Tb=()=>Kt(hb);function lr(t,e,n){return nE(t,e,n)}function nE(t,e,n=tt){const{immediate:r,deep:i,flush:a,once:s}=n,o=St({},n),l=e&&r||!e&&a!=="post";let c;if(fi){if(a==="sync"){const _=Tb();c=_.__watcherHandles||(_.__watcherHandles=[])}else if(!l){const _=()=>{};return _.stop=hn,_.resume=hn,_.pause=hn,_}}const d=At;o.call=(_,f,g)=>an(_,d,f,g);let u=!1;a==="post"?o.scheduler=_=>{yt(_,d&&d.suspense)}:a!=="sync"&&(u=!0,o.scheduler=(_,f)=>{f?_():Cd(_)}),o.augmentJob=_=>{e&&(_.flags|=4),u&&(_.flags|=2,d&&(_.id=d.uid,_.i=d))};const m=gb(t,e,o);return fi&&(c?c.push(m):l&&m()),m}function vb(t,e,n){const r=this.proxy,i=_t(t)?t.includes(".")?rE(r,t):()=>r[t]:t.bind(r,r);let a;Me(e)?a=e:(a=e.handler,n=e);const s=vi(this),o=nE(i,a.bind(r),n);return s(),o}function rE(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const iE=Symbol("_vte"),Rb=t=>t.__isTeleport,ii=t=>t&&(t.disabled||t.disabled===""),Cb=t=>t&&(t.defer||t.defer===""),Su=t=>typeof SVGElement<"u"&&t instanceof SVGElement,bu=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Wc=(t,e)=>{const n=t&&t.to;return _t(n)?e?e(n):null:n},aE={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,a,s,o,l,c){const{mc:d,pc:u,pbc:m,o:{insert:_,querySelector:f,createText:g,createComment:S}}=c,b=ii(e.props);let{shapeFlag:h,children:v,dynamicChildren:R}=e;if(t==null){const C=e.el=g(""),x=e.anchor=g("");_(C,n,r),_(x,n,r);const D=(y,F)=>{h&16&&d(v,y,F,i,a,s,o,l)},N=()=>{const y=e.target=Wc(e.props,f),F=Kc(y,e,g,_);y&&(s!=="svg"&&Su(y)?s="svg":s!=="mathml"&&bu(y)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(y),b||(D(y,F),qi(e,!1)))};b&&(D(n,x),qi(e,!0)),Cb(e.props)||a&&a.pendingBranch?(e.el.__isMounted=!1,yt(()=>{e.el.__isMounted===!1&&(N(),delete e.el.__isMounted)},a)):N()}else{e.el=t.el,e.targetStart=t.targetStart;const C=e.anchor=t.anchor,x=e.target=t.target,D=e.targetAnchor=t.targetAnchor;if(t.el.__isMounted===!1){yt(()=>{aE.process(t,e,n,r,i,a,s,o,l,c)},a);return}const N=ii(t.props),y=N?n:x,F=N?C:D;if(s==="svg"||Su(x)?s="svg":(s==="mathml"||bu(x))&&(s="mathml"),R?(m(t.dynamicChildren,R,y,i,a,s,o),Od(t,e,!0)):l||u(t,e,y,F,i,a,s,o,!1),b)N?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Mi(e,n,C,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const X=e.target=Wc(e.props,f);X&&Mi(e,X,null,c,0)}else N&&Mi(e,x,D,c,1);qi(e,b)}},remove(t,e,n,{um:r,o:{remove:i}},a){const{shapeFlag:s,children:o,anchor:l,targetStart:c,targetAnchor:d,target:u,props:m}=t;if(u&&(i(c),i(d)),a&&i(l),s&16){const _=a||!ii(m);for(let f=0;f<o.length;f++){const g=o[f];r(g,e,n,_,!!g.dynamicChildren)}}},move:Mi,hydrate:yb};function Mi(t,e,n,{o:{insert:r},m:i},a=2){a===0&&r(t.targetAnchor,e,n);const{el:s,anchor:o,shapeFlag:l,children:c,props:d}=t,u=a===2;if(u&&r(s,e,n),(!u||ii(d))&&l&16)for(let m=0;m<c.length;m++)i(c[m],e,n,2);u&&r(o,e,n)}function yb(t,e,n,r,i,a,{o:{nextSibling:s,parentNode:o,querySelector:l,insert:c,createText:d}},u){function m(S,b){let h=b;for(;h;){if(h&&h.nodeType===8){if(h.data==="teleport start anchor")e.targetStart=h;else if(h.data==="teleport anchor"){e.targetAnchor=h,S._lpa=e.targetAnchor&&s(e.targetAnchor);break}}h=s(h)}}function _(S,b){b.anchor=u(s(S),b,o(S),n,r,i,a)}const f=e.target=Wc(e.props,l),g=ii(e.props);if(f){const S=f._lpa||f.firstChild;e.shapeFlag&16&&(g?(_(t,e),m(f,S),e.targetAnchor||Kc(f,e,d,c,o(t)===f?t:null)):(e.anchor=s(t),m(f,S),e.targetAnchor||Kc(f,e,d,c),u(S&&s(S),e,f,n,r,i,a))),qi(e,g)}else g&&e.shapeFlag&16&&(_(t,e),e.targetStart=t,e.targetAnchor=s(t));return e.anchor&&s(e.anchor)}const Nb=aE;function qi(t,e){const n=t.ctx;if(n&&n.ut){let r,i;for(e?(r=t.el,i=t.anchor):(r=t.targetStart,i=t.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Kc(t,e,n,r,i=null){const a=e.targetStart=n(""),s=e.targetAnchor=n("");return a[iE]=s,t&&(r(a,t,i),r(s,t,i)),s}const qn=Symbol("_leaveCb"),Vr=Symbol("_enterCb");function Ob(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ht(()=>{t.isMounted=!0}),uE(()=>{t.isUnmounting=!0}),t}const Wt=[Function,Array],Ab={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wt,onEnter:Wt,onAfterEnter:Wt,onEnterCancelled:Wt,onBeforeLeave:Wt,onLeave:Wt,onAfterLeave:Wt,onLeaveCancelled:Wt,onBeforeAppear:Wt,onAppear:Wt,onAfterAppear:Wt,onAppearCancelled:Wt};function Ib(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Qc(t,e,n,r,i){const{appear:a,mode:s,persisted:o=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:m,onLeave:_,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:S,onAppear:b,onAfterAppear:h,onAppearCancelled:v}=e,R=String(t.key),C=Ib(n,t),x=(y,F)=>{y&&an(y,r,9,F)},D=(y,F)=>{const X=F[1];x(y,F),Oe(y)?y.every(I=>I.length<=1)&&X():y.length<=1&&X()},N={mode:s,persisted:o,beforeEnter(y){let F=l;if(!n.isMounted)if(a)F=S||l;else return;y[qn]&&y[qn](!0);const X=C[R];X&&br(t,X)&&X.el[qn]&&X.el[qn](),x(F,[y])},enter(y){if(C[R]===t)return;let F=c,X=d,I=u;if(!n.isMounted)if(a)F=b||c,X=h||d,I=v||u;else return;let Q=!1;y[Vr]=w=>{Q||(Q=!0,w?x(I,[y]):x(X,[y]),N.delayedLeave&&N.delayedLeave(),y[Vr]=void 0)};const T=y[Vr].bind(null,!1);F?D(F,[y,T]):T()},leave(y,F){const X=String(t.key);if(y[Vr]&&y[Vr](!0),n.isUnmounting)return F();x(m,[y]);let I=!1;y[qn]=T=>{I||(I=!0,F(),T?x(g,[y]):x(f,[y]),y[qn]=void 0,C[X]===t&&delete C[X])};const Q=y[qn].bind(null,!1);C[X]=t,_?D(_,[y,Q]):Q()},clone(y){return Qc(y,e,n,r)}};return N}function mi(t,e){t.shapeFlag&6&&t.component?(t.transition=e,mi(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function sE(t,e=!1,n){let r=[],i=0;for(let a=0;a<t.length;a++){let s=t[a];const o=n==null?s.key:String(n)+String(s.key!=null?s.key:a);s.type===Ue?(s.patchFlag&128&&i++,r=r.concat(sE(s.children,e,o))):(e||s.type!==Un)&&r.push(o!=null?dr(s,{key:o}):s)}if(i>1)for(let a=0;a<r.length;a++)r[a].patchFlag=-2;return r}function Ut(t,e){return Me(t)?St({name:t.name},e,{setup:t}):t}function oE(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function hu(t,e){let n;return!!((n=Object.getOwnPropertyDescriptor(t,e))&&!n.configurable)}const Xi=new WeakMap;function ai(t,e,n,r,i=!1){if(Oe(t)){t.forEach((g,S)=>ai(g,e&&(Oe(e)?e[S]:e),n,r,i));return}if(si(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ai(t,e,n,r.component.subTree);return}const a=r.shapeFlag&4?Ra(r.component):r.el,s=i?null:a,{i:o,r:l}=t,c=e&&e.r,d=o.refs===tt?o.refs={}:o.refs,u=o.setupState,m=Ve(u),_=u===tt?Rf:g=>hu(d,g)?!1:Ke(m,g),f=(g,S)=>!(S&&hu(d,S));if(c!=null&&c!==l){if(Tu(e),_t(c))d[c]=null,_(c)&&(u[c]=null);else if(ut(c)){const g=e;f(c,g.k)&&(c.value=null),g.k&&(d[g.k]=null)}}if(Me(l))hi(l,o,12,[s,d]);else{const g=_t(l),S=ut(l);if(g||S){const b=()=>{if(t.f){const h=g?_(l)?u[l]:d[l]:f()||!t.k?l.value:d[t.k];if(i)Oe(h)&&gd(h,a);else if(Oe(h))h.includes(a)||h.push(a);else if(g)d[l]=[a],_(l)&&(u[l]=d[l]);else{const v=[a];f(l,t.k)&&(l.value=v),t.k&&(d[t.k]=v)}}else g?(d[l]=s,_(l)&&(u[l]=s)):S&&(f(l,t.k)&&(l.value=s),t.k&&(d[t.k]=s))};if(s){const h=()=>{b(),Xi.delete(t)};h.id=-1,Xi.set(t,h),yt(h,n)}else Tu(t),b()}}}function Tu(t){const e=Xi.get(t);e&&(e.flags|=8,Xi.delete(t))}ma().requestIdleCallback;ma().cancelIdleCallback;const si=t=>!!t.type.__asyncLoader,lE=t=>t.type.__isKeepAlive;function xb(t,e){cE(t,"a",e)}function Db(t,e){cE(t,"da",e)}function cE(t,e,n=At){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(ba(e,r,n),n){let i=n.parent;for(;i&&i.parent;)lE(i.parent.vnode)&&wb(r,e,n,i),i=i.parent}}function wb(t,e,n,r){const i=ba(e,t,r,!0);ha(()=>{gd(r[e],i)},n)}function ba(t,e,n=At,r=!1){if(n){const i=n[t]||(n[t]=[]),a=e.__weh||(e.__weh=(...s)=>{Mn();const o=vi(n),l=an(e,n,t,s);return o(),kn(),l});return r?i.unshift(a):i.push(a),a}}const Fn=t=>(e,n=At)=>{(!fi||t==="sp")&&ba(t,(...r)=>e(...r),n)},Lb=Fn("bm"),Ht=Fn("m"),Mb=Fn("bu"),dE=Fn("u"),uE=Fn("bum"),ha=Fn("um"),kb=Fn("sp"),Pb=Fn("rtg"),Ub=Fn("rtc");function Fb(t,e=At){ba("ec",t,e)}const Bb="components";function Bn(t,e){return Yb(Bb,t,!0,e)||t}const Gb=Symbol.for("v-ndc");function Yb(t,e,n=!0,r=!1){const i=Gt||At;if(i){const a=i.type;{const o=yh(a,!1);if(o&&(o===e||o===Pt(e)||o===_a(Pt(e))))return a}const s=vu(i[t]||a[t],e)||vu(i.appContext[t],e);return!s&&r?a:s}}function vu(t,e){return t&&(t[e]||t[Pt(e)]||t[_a(Pt(e))])}function Ct(t,e,n,r){let i;const a=n,s=Oe(t);if(s||_t(t)){const o=s&&Ln(t);let l=!1,c=!1;o&&(l=!qt(t),c=Pn(t),t=fa(t)),i=new Array(t.length);for(let d=0,u=t.length;d<u;d++)i[d]=e(l?c?Or(rn(t[d])):rn(t[d]):t[d],d,void 0,a)}else if(typeof t=="number"){i=new Array(t);for(let o=0;o<t;o++)i[o]=e(o+1,o,void 0,a)}else if(Qe(t))if(t[Symbol.iterator])i=Array.from(t,(o,l)=>e(o,l,void 0,a));else{const o=Object.keys(t);i=new Array(o.length);for(let l=0,c=o.length;l<c;l++){const d=o[l];i[l]=e(t[d],d,l,a)}}else i=[];return i}const Xc=t=>t?xE(t)?Ra(t):Xc(t.parent):null,oi=St(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Xc(t.parent),$root:t=>Xc(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>pE(t),$forceUpdate:t=>t.f||(t.f=()=>{Cd(t.update)}),$nextTick:t=>t.n||(t.n=Ti.bind(t.proxy)),$watch:t=>vb.bind(t)}),Va=(t,e)=>t!==tt&&!t.__isScriptSetup&&Ke(t,e),qb={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:a,accessCache:s,type:o,appContext:l}=t;if(e[0]!=="$"){const m=s[e];if(m!==void 0)switch(m){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return a[e]}else{if(Va(r,e))return s[e]=1,r[e];if(i!==tt&&Ke(i,e))return s[e]=2,i[e];if(Ke(a,e))return s[e]=3,a[e];if(n!==tt&&Ke(n,e))return s[e]=4,n[e];Zc&&(s[e]=0)}}const c=oi[e];let d,u;if(c)return e==="$attrs"&&Ot(t.attrs,"get",""),c(t);if((d=o.__cssModules)&&(d=d[e]))return d;if(n!==tt&&Ke(n,e))return s[e]=4,n[e];if(u=l.config.globalProperties,Ke(u,e))return u[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:a}=t;return Va(i,e)?(i[e]=n,!0):r!==tt&&Ke(r,e)?(r[e]=n,!0):Ke(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(a[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,props:a,type:s}},o){let l;return!!(n[o]||t!==tt&&o[0]!=="$"&&Ke(t,o)||Va(e,o)||Ke(a,o)||Ke(r,o)||Ke(oi,o)||Ke(i.config.globalProperties,o)||(l=s.__cssModules)&&l[o])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Ke(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Ru(t){return Oe(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Zc=!0;function Hb(t){const e=pE(t),n=t.proxy,r=t.ctx;Zc=!1,e.beforeCreate&&Cu(e.beforeCreate,t,"bc");const{data:i,computed:a,methods:s,watch:o,provide:l,inject:c,created:d,beforeMount:u,mounted:m,beforeUpdate:_,updated:f,activated:g,deactivated:S,beforeDestroy:b,beforeUnmount:h,destroyed:v,unmounted:R,render:C,renderTracked:x,renderTriggered:D,errorCaptured:N,serverPrefetch:y,expose:F,inheritAttrs:X,components:I,directives:Q,filters:T}=e;if(c&&Vb(c,r,null),s)for(const k in s){const V=s[k];Me(V)&&(r[k]=V.bind(n))}if(i){const k=i.call(n,n);Qe(k)&&(t.data=bi(k))}if(Zc=!0,a)for(const k in a){const V=a[k],q=Me(V)?V.bind(n,n):Me(V.get)?V.get.bind(n,n):hn,re=!Me(V)&&Me(V.set)?V.set.bind(n):hn,L=Ae({get:q,set:re});Object.defineProperty(r,k,{enumerable:!0,configurable:!0,get:()=>L.value,set:B=>L.value=B})}if(o)for(const k in o)_E(o[k],r,n,k);if(l){const k=Me(l)?l.call(n):l;Reflect.ownKeys(k).forEach(V=>{Yi(V,k[V])})}d&&Cu(d,t,"c");function ue(k,V){Oe(V)?V.forEach(q=>k(q.bind(n))):V&&k(V.bind(n))}if(ue(Lb,u),ue(Ht,m),ue(Mb,_),ue(dE,f),ue(xb,g),ue(Db,S),ue(Fb,N),ue(Ub,x),ue(Pb,D),ue(uE,h),ue(ha,R),ue(kb,y),Oe(F))if(F.length){const k=t.exposed||(t.exposed={});F.forEach(V=>{Object.defineProperty(k,V,{get:()=>n[V],set:q=>n[V]=q,enumerable:!0})})}else t.exposed||(t.exposed={});C&&t.render===hn&&(t.render=C),X!=null&&(t.inheritAttrs=X),I&&(t.components=I),Q&&(t.directives=Q),y&&oE(t)}function Vb(t,e,n=hn){Oe(t)&&(t=jc(t));for(const r in t){const i=t[r];let a;Qe(i)?"default"in i?a=Kt(i.from||r,i.default,!0):a=Kt(i.from||r):a=Kt(i),ut(a)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):e[r]=a}}function Cu(t,e,n){an(Oe(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function _E(t,e,n,r){let i=r.includes(".")?rE(n,r):()=>n[r];if(_t(t)){const a=e[t];Me(a)&&lr(i,a)}else if(Me(t))lr(i,t.bind(n));else if(Qe(t))if(Oe(t))t.forEach(a=>_E(a,e,n,r));else{const a=Me(t.handler)?t.handler.bind(n):e[t.handler];Me(a)&&lr(i,a,t)}}function pE(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=t.appContext,o=a.get(e);let l;return o?l=o:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(c=>Zi(l,c,s,!0)),Zi(l,e,s)),Qe(e)&&a.set(e,l),l}function Zi(t,e,n,r=!1){const{mixins:i,extends:a}=e;a&&Zi(t,a,n,!0),i&&i.forEach(s=>Zi(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const o=zb[s]||n&&n[s];t[s]=o?o(t[s],e[s]):e[s]}return t}const zb={data:yu,props:Nu,emits:Nu,methods:Zr,computed:Zr,beforeCreate:Dt,created:Dt,beforeMount:Dt,mounted:Dt,beforeUpdate:Dt,updated:Dt,beforeDestroy:Dt,beforeUnmount:Dt,destroyed:Dt,unmounted:Dt,activated:Dt,deactivated:Dt,errorCaptured:Dt,serverPrefetch:Dt,components:Zr,directives:Zr,watch:Wb,provide:yu,inject:$b};function yu(t,e){return e?t?function(){return St(Me(t)?t.call(this,this):t,Me(e)?e.call(this,this):e)}:e:t}function $b(t,e){return Zr(jc(t),jc(e))}function jc(t){if(Oe(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Dt(t,e){return t?[...new Set([].concat(t,e))]:e}function Zr(t,e){return t?St(Object.create(null),t,e):e}function Nu(t,e){return t?Oe(t)&&Oe(e)?[...new Set([...t,...e])]:St(Object.create(null),Ru(t),Ru(e??{})):e}function Wb(t,e){if(!t)return e;if(!e)return t;const n=St(Object.create(null),t);for(const r in e)n[r]=Dt(t[r],e[r]);return n}function mE(){return{app:null,config:{isNativeTag:Rf,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 Kb=0;function Qb(t,e){return function(r,i=null){Me(r)||(r=St({},r)),i!=null&&!Qe(i)&&(i=null);const a=mE(),s=new WeakSet,o=[];let l=!1;const c=a.app={_uid:Kb++,_component:r,_props:i,_container:null,_context:a,_instance:null,version:Oh,get config(){return a.config},set config(d){},use(d,...u){return s.has(d)||(d&&Me(d.install)?(s.add(d),d.install(c,...u)):Me(d)&&(s.add(d),d(c,...u))),c},mixin(d){return a.mixins.includes(d)||a.mixins.push(d),c},component(d,u){return u?(a.components[d]=u,c):a.components[d]},directive(d,u){return u?(a.directives[d]=u,c):a.directives[d]},mount(d,u,m){if(!l){const _=c._ceVNode||Be(r,i);return _.appContext=a,m===!0?m="svg":m===!1&&(m=void 0),t(_,d,m),l=!0,c._container=d,d.__vue_app__=c,Ra(_.component)}},onUnmount(d){o.push(d)},unmount(){l&&(an(o,c._instance,16),t(null,c._container),delete c._container.__vue_app__)},provide(d,u){return a.provides[d]=u,c},runWithContext(d){const u=cr;cr=c;try{return d()}finally{cr=u}}};return c}}let cr=null;const Xb=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Pt(e)}Modifiers`]||t[`${Zn(e)}Modifiers`];function Zb(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||tt;let i=n;const a=e.startsWith("update:"),s=a&&Xb(r,e.slice(7));s&&(s.trim&&(i=n.map(d=>_t(d)?d.trim():d)),s.number&&(i=n.map(pa)));let o,l=r[o=Ba(e)]||r[o=Ba(Pt(e))];!l&&a&&(l=r[o=Ba(Zn(e))]),l&&an(l,t,6,i);const c=r[o+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,an(c,t,6,i)}}const jb=new WeakMap;function gE(t,e,n=!1){const r=n?jb:e.emitsCache,i=r.get(t);if(i!==void 0)return i;const a=t.emits;let s={},o=!1;if(!Me(t)){const l=c=>{const d=gE(c,e,!0);d&&(o=!0,St(s,d))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!a&&!o?(Qe(t)&&r.set(t,null),null):(Oe(a)?a.forEach(l=>s[l]=null):St(s,a),Qe(t)&&r.set(t,s),s)}function Ta(t,e){return!t||!la(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ke(t,e[0].toLowerCase()+e.slice(1))||Ke(t,Zn(e))||Ke(t,e))}function Ou(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:o,emit:l,render:c,renderCache:d,props:u,data:m,setupState:_,ctx:f,inheritAttrs:g}=t,S=Qi(t);let b,h;try{if(n.shapeFlag&4){const R=i||r,C=R;b=En(c.call(C,R,d,u,_,m,f)),h=o}else{const R=e;b=En(R.length>1?R(u,{attrs:o,slots:s,emit:l}):R(u,null)),h=e.props?o:Jb(o)}}catch(R){li.length=0,Sa(R,t,1),b=Be(Un)}let v=b;if(h&&g!==!1){const R=Object.keys(h),{shapeFlag:C}=v;R.length&&C&7&&(a&&R.some(ca)&&(h=eh(h,a)),v=dr(v,h,!1,!0))}return n.dirs&&(v=dr(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&mi(v,n.transition),b=v,Qi(S),b}const Jb=t=>{let e;for(const n in t)(n==="class"||n==="style"||la(n))&&((e||(e={}))[n]=t[n]);return e},eh=(t,e)=>{const n={};for(const r in t)(!ca(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function th(t,e,n){const{props:r,children:i,component:a}=t,{props:s,children:o,patchFlag:l}=e,c=a.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Au(r,s,c):!!s;if(l&8){const d=e.dynamicProps;for(let u=0;u<d.length;u++){const m=d[u];if(fE(s,r,m)&&!Ta(c,m))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===s?!1:r?s?Au(r,s,c):!0:!!s;return!1}function Au(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const a=r[i];if(fE(e,t,a)&&!Ta(n,a))return!0}return!1}function fE(t,e,n){const r=t[n],i=e[n];return n==="style"&&Qe(r)&&Qe(i)?!Qn(r,i):r!==i}function nh({vnode:t,parent:e,suspense:n},r){for(;e;){const i=e.subTree;if(i.suspense&&i.suspense.activeBranch===t&&(i.suspense.vnode.el=i.el=r,t=i),i===t)(t=e.vnode).el=r,e=e.parent;else break}n&&n.activeBranch===t&&(n.vnode.el=r)}const EE={},SE=()=>Object.create(EE),bE=t=>Object.getPrototypeOf(t)===EE;function rh(t,e,n,r=!1){const i={},a=SE();t.propsDefaults=Object.create(null),hE(t,e,i,a);for(const s in t.propsOptions[0])s in i||(i[s]=void 0);n?t.props=r?i:Kf(i):t.type.props?t.props=i:t.props=a,t.attrs=a}function ih(t,e,n,r){const{props:i,attrs:a,vnode:{patchFlag:s}}=t,o=Ve(i),[l]=t.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const d=t.vnode.dynamicProps;for(let u=0;u<d.length;u++){let m=d[u];if(Ta(t.emitsOptions,m))continue;const _=e[m];if(l)if(Ke(a,m))_!==a[m]&&(a[m]=_,c=!0);else{const f=Pt(m);i[f]=Jc(l,o,f,_,t,!1)}else _!==a[m]&&(a[m]=_,c=!0)}}}else{hE(t,e,i,a)&&(c=!0);let d;for(const u in o)(!e||!Ke(e,u)&&((d=Zn(u))===u||!Ke(e,d)))&&(l?n&&(n[u]!==void 0||n[d]!==void 0)&&(i[u]=Jc(l,o,u,void 0,t,!0)):delete i[u]);if(a!==o)for(const u in a)(!e||!Ke(e,u))&&(delete a[u],c=!0)}c&&In(t.attrs,"set","")}function hE(t,e,n,r){const[i,a]=t.propsOptions;let s=!1,o;if(e)for(let l in e){if(ti(l))continue;const c=e[l];let d;i&&Ke(i,d=Pt(l))?!a||!a.includes(d)?n[d]=c:(o||(o={}))[d]=c:Ta(t.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,s=!0)}if(a){const l=Ve(n),c=o||tt;for(let d=0;d<a.length;d++){const u=a[d];n[u]=Jc(i,l,u,c[u],t,!Ke(c,u))}}return s}function Jc(t,e,n,r,i,a){const s=t[n];if(s!=null){const o=Ke(s,"default");if(o&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&Me(l)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const d=vi(i);r=c[n]=l.call(null,e),d()}}else r=l;i.ce&&i.ce._setProp(n,r)}s[0]&&(a&&!o?r=!1:s[1]&&(r===""||r===Zn(n))&&(r=!0))}return r}const ah=new WeakMap;function TE(t,e,n=!1){const r=n?ah:e.propsCache,i=r.get(t);if(i)return i;const a=t.props,s={},o=[];let l=!1;if(!Me(t)){const d=u=>{l=!0;const[m,_]=TE(u,e,!0);St(s,m),_&&o.push(..._)};!n&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!a&&!l)return Qe(t)&&r.set(t,Tr),Tr;if(Oe(a))for(let d=0;d<a.length;d++){const u=Pt(a[d]);Iu(u)&&(s[u]=tt)}else if(a)for(const d in a){const u=Pt(d);if(Iu(u)){const m=a[d],_=s[u]=Oe(m)||Me(m)?{type:m}:St({},m),f=_.type;let g=!1,S=!0;if(Oe(f))for(let b=0;b<f.length;++b){const h=f[b],v=Me(h)&&h.name;if(v==="Boolean"){g=!0;break}else v==="String"&&(S=!1)}else g=Me(f)&&f.name==="Boolean";_[0]=g,_[1]=S,(g||Ke(_,"default"))&&o.push(u)}}const c=[s,o];return Qe(t)&&r.set(t,c),c}function Iu(t){return t[0]!=="$"&&!ti(t)}const yd=t=>t==="_"||t==="_ctx"||t==="$stable",Nd=t=>Oe(t)?t.map(En):[En(t)],sh=(t,e,n)=>{if(e._n)return e;const r=st((...i)=>Nd(e(...i)),n);return r._c=!1,r},vE=(t,e,n)=>{const r=t._ctx;for(const i in t){if(yd(i))continue;const a=t[i];if(Me(a))e[i]=sh(i,a,r);else if(a!=null){const s=Nd(a);e[i]=()=>s}}},RE=(t,e)=>{const n=Nd(e);t.slots.default=()=>n},CE=(t,e,n)=>{for(const r in e)(n||!yd(r))&&(t[r]=e[r])},oh=(t,e,n)=>{const r=t.slots=SE();if(t.vnode.shapeFlag&32){const i=e._;i?(CE(r,e,n),n&&Of(r,"_",i,!0)):vE(e,r)}else e&&RE(t,e)},lh=(t,e,n)=>{const{vnode:r,slots:i}=t;let a=!0,s=tt;if(r.shapeFlag&32){const o=e._;o?n&&o===1?a=!1:CE(i,e,n):(a=!e.$stable,vE(e,i)),s=e}else e&&(RE(t,e),s={default:1});if(a)for(const o in i)!yd(o)&&s[o]==null&&delete i[o]},yt=ph;function ch(t){return dh(t)}function dh(t,e){const n=ma();n.__VUE__=!0;const{insert:r,remove:i,patchProp:a,createElement:s,createText:o,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:m,setScopeId:_=hn,insertStaticContent:f}=t,g=(M,G,E,H=null,Y=null,O=null,A=void 0,U=null,J=!!G.dynamicChildren)=>{if(M===G)return;M&&!br(M,G)&&(H=ee(M),B(M,Y,O,!0),M=null),G.patchFlag===-2&&(J=!1,G.dynamicChildren=null);const{type:K,ref:W,shapeFlag:z}=G;switch(K){case va:S(M,G,E,H);break;case Un:b(M,G,E,H);break;case Hi:M==null&&h(G,E,H,A);break;case Ue:I(M,G,E,H,Y,O,A,U,J);break;default:z&1?C(M,G,E,H,Y,O,A,U,J):z&6?Q(M,G,E,H,Y,O,A,U,J):(z&64||z&128)&&K.process(M,G,E,H,Y,O,A,U,J,pe)}W!=null&&Y?ai(W,M&&M.ref,O,G||M,!G):W==null&&M&&M.ref!=null&&ai(M.ref,null,O,M,!0)},S=(M,G,E,H)=>{if(M==null)r(G.el=o(G.children),E,H);else{const Y=G.el=M.el;G.children!==M.children&&c(Y,G.children)}},b=(M,G,E,H)=>{M==null?r(G.el=l(G.children||""),E,H):G.el=M.el},h=(M,G,E,H)=>{[M.el,M.anchor]=f(M.children,G,E,H,M.el,M.anchor)},v=({el:M,anchor:G},E,H)=>{let Y;for(;M&&M!==G;)Y=m(M),r(M,E,H),M=Y;r(G,E,H)},R=({el:M,anchor:G})=>{let E;for(;M&&M!==G;)E=m(M),i(M),M=E;i(G)},C=(M,G,E,H,Y,O,A,U,J)=>{if(G.type==="svg"?A="svg":G.type==="math"&&(A="mathml"),M==null)x(G,E,H,Y,O,A,U,J);else{const K=M.el&&M.el._isVueCE?M.el:null;try{K&&K._beginPatch(),y(M,G,Y,O,A,U,J)}finally{K&&K._endPatch()}}},x=(M,G,E,H,Y,O,A,U)=>{let J,K;const{props:W,shapeFlag:z,transition:P,dirs:ne}=M;if(J=M.el=s(M.type,O,W&&W.is,W),z&8?d(J,M.children):z&16&&N(M.children,J,null,H,Y,za(M,O),A,U),ne&&er(M,null,H,"created"),D(J,M,M.scopeId,A,H),W){for(const Te in W)Te!=="value"&&!ti(Te)&&a(J,Te,null,W[Te],O,H);"value"in W&&a(J,"value",null,W.value,O),(K=W.onVnodeBeforeMount)&&un(K,H,M)}ne&&er(M,null,H,"beforeMount");const ie=uh(Y,P);ie&&P.beforeEnter(J),r(J,G,E),((K=W&&W.onVnodeMounted)||ie||ne)&&yt(()=>{K&&un(K,H,M),ie&&P.enter(J),ne&&er(M,null,H,"mounted")},Y)},D=(M,G,E,H,Y)=>{if(E&&_(M,E),H)for(let O=0;O<H.length;O++)_(M,H[O]);if(Y){let O=Y.subTree;if(G===O||OE(O.type)&&(O.ssContent===G||O.ssFallback===G)){const A=Y.vnode;D(M,A,A.scopeId,A.slotScopeIds,Y.parent)}}},N=(M,G,E,H,Y,O,A,U,J=0)=>{for(let K=J;K<M.length;K++){const W=M[K]=U?An(M[K]):En(M[K]);g(null,W,G,E,H,Y,O,A,U)}},y=(M,G,E,H,Y,O,A)=>{const U=G.el=M.el;let{patchFlag:J,dynamicChildren:K,dirs:W}=G;J|=M.patchFlag&16;const z=M.props||tt,P=G.props||tt;let ne;if(E&&tr(E,!1),(ne=P.onVnodeBeforeUpdate)&&un(ne,E,G,M),W&&er(G,M,E,"beforeUpdate"),E&&tr(E,!0),(z.innerHTML&&P.innerHTML==null||z.textContent&&P.textContent==null)&&d(U,""),K?F(M.dynamicChildren,K,U,E,H,za(G,Y),O):A||V(M,G,U,null,E,H,za(G,Y),O,!1),J>0){if(J&16)X(U,z,P,E,Y);else if(J&2&&z.class!==P.class&&a(U,"class",null,P.class,Y),J&4&&a(U,"style",z.style,P.style,Y),J&8){const ie=G.dynamicProps;for(let Te=0;Te<ie.length;Te++){const be=ie[Te],we=z[be],He=P[be];(He!==we||be==="value")&&a(U,be,we,He,Y,E)}}J&1&&M.children!==G.children&&d(U,G.children)}else!A&&K==null&&X(U,z,P,E,Y);((ne=P.onVnodeUpdated)||W)&&yt(()=>{ne&&un(ne,E,G,M),W&&er(G,M,E,"updated")},H)},F=(M,G,E,H,Y,O,A)=>{for(let U=0;U<G.length;U++){const J=M[U],K=G[U],W=J.el&&(J.type===Ue||!br(J,K)||J.shapeFlag&198)?u(J.el):E;g(J,K,W,null,H,Y,O,A,!0)}},X=(M,G,E,H,Y)=>{if(G!==E){if(G!==tt)for(const O in G)!ti(O)&&!(O in E)&&a(M,O,G[O],null,Y,H);for(const O in E){if(ti(O))continue;const A=E[O],U=G[O];A!==U&&O!=="value"&&a(M,O,U,A,Y,H)}"value"in E&&a(M,"value",G.value,E.value,Y)}},I=(M,G,E,H,Y,O,A,U,J)=>{const K=G.el=M?M.el:o(""),W=G.anchor=M?M.anchor:o("");let{patchFlag:z,dynamicChildren:P,slotScopeIds:ne}=G;ne&&(U=U?U.concat(ne):ne),M==null?(r(K,E,H),r(W,E,H),N(G.children||[],E,W,Y,O,A,U,J)):z>0&&z&64&&P&&M.dynamicChildren&&M.dynamicChildren.length===P.length?(F(M.dynamicChildren,P,E,Y,O,A,U),(G.key!=null||Y&&G===Y.subTree)&&Od(M,G,!0)):V(M,G,E,W,Y,O,A,U,J)},Q=(M,G,E,H,Y,O,A,U,J)=>{G.slotScopeIds=U,M==null?G.shapeFlag&512?Y.ctx.activate(G,E,H,A,J):T(G,E,H,Y,O,A,J):w(M,G,J)},T=(M,G,E,H,Y,O,A)=>{const U=M.component=hh(M,H,Y);if(lE(M)&&(U.ctx.renderer=pe),Th(U,!1,A),U.asyncDep){if(Y&&Y.registerDep(U,ue,A),!M.el){const J=U.subTree=Be(Un);b(null,J,G,E),M.placeholder=J.el}}else ue(U,M,G,E,Y,O,A)},w=(M,G,E)=>{const H=G.component=M.component;if(th(M,G,E))if(H.asyncDep&&!H.asyncResolved){k(H,G,E);return}else H.next=G,H.update();else G.el=M.el,H.vnode=G},ue=(M,G,E,H,Y,O,A)=>{const U=()=>{if(M.isMounted){let{next:z,bu:P,u:ne,parent:ie,vnode:Te}=M;{const nt=yE(M);if(nt){z&&(z.el=Te.el,k(M,z,A)),nt.asyncDep.then(()=>{yt(()=>{M.isUnmounted||K()},Y)});return}}let be=z,we;tr(M,!1),z?(z.el=Te.el,k(M,z,A)):z=Te,P&&Gi(P),(we=z.props&&z.props.onVnodeBeforeUpdate)&&un(we,ie,z,Te),tr(M,!0);const He=Ou(M),Je=M.subTree;M.subTree=He,g(Je,He,u(Je.el),ee(Je),M,Y,O),z.el=He.el,be===null&&nh(M,He.el),ne&&yt(ne,Y),(we=z.props&&z.props.onVnodeUpdated)&&yt(()=>un(we,ie,z,Te),Y)}else{let z;const{el:P,props:ne}=G,{bm:ie,m:Te,parent:be,root:we,type:He}=M,Je=si(G);tr(M,!1),ie&&Gi(ie),!Je&&(z=ne&&ne.onVnodeBeforeMount)&&un(z,be,G),tr(M,!0);{we.ce&&we.ce._hasShadowRoot()&&we.ce._injectChildStyle(He,M.parent?M.parent.type:void 0);const nt=M.subTree=Ou(M);g(null,nt,E,H,M,Y,O),G.el=nt.el}if(Te&&yt(Te,Y),!Je&&(z=ne&&ne.onVnodeMounted)){const nt=G;yt(()=>un(z,be,nt),Y)}(G.shapeFlag&256||be&&si(be.vnode)&&be.vnode.shapeFlag&256)&&M.a&&yt(M.a,Y),M.isMounted=!0,G=E=H=null}};M.scope.on();const J=M.effect=new Mf(U);M.scope.off();const K=M.update=J.run.bind(J),W=M.job=J.runIfDirty.bind(J);W.i=M,W.id=M.uid,J.scheduler=()=>Cd(W),tr(M,!0),K()},k=(M,G,E)=>{G.component=M;const H=M.vnode.props;M.vnode=G,M.next=null,ih(M,G.props,H,E),lh(M,G.children,E),Mn(),Eu(M),kn()},V=(M,G,E,H,Y,O,A,U,J=!1)=>{const K=M&&M.children,W=M?M.shapeFlag:0,z=G.children,{patchFlag:P,shapeFlag:ne}=G;if(P>0){if(P&128){re(K,z,E,H,Y,O,A,U,J);return}else if(P&256){q(K,z,E,H,Y,O,A,U,J);return}}ne&8?(W&16&&Ee(K,Y,O),z!==K&&d(E,z)):W&16?ne&16?re(K,z,E,H,Y,O,A,U,J):Ee(K,Y,O,!0):(W&8&&d(E,""),ne&16&&N(z,E,H,Y,O,A,U,J))},q=(M,G,E,H,Y,O,A,U,J)=>{M=M||Tr,G=G||Tr;const K=M.length,W=G.length,z=Math.min(K,W);let P;for(P=0;P<z;P++){const ne=G[P]=J?An(G[P]):En(G[P]);g(M[P],ne,E,null,Y,O,A,U,J)}K>W?Ee(M,Y,O,!0,!1,z):N(G,E,H,Y,O,A,U,J,z)},re=(M,G,E,H,Y,O,A,U,J)=>{let K=0;const W=G.length;let z=M.length-1,P=W-1;for(;K<=z&&K<=P;){const ne=M[K],ie=G[K]=J?An(G[K]):En(G[K]);if(br(ne,ie))g(ne,ie,E,null,Y,O,A,U,J);else break;K++}for(;K<=z&&K<=P;){const ne=M[z],ie=G[P]=J?An(G[P]):En(G[P]);if(br(ne,ie))g(ne,ie,E,null,Y,O,A,U,J);else break;z--,P--}if(K>z){if(K<=P){const ne=P+1,ie=ne<W?G[ne].el:H;for(;K<=P;)g(null,G[K]=J?An(G[K]):En(G[K]),E,ie,Y,O,A,U,J),K++}}else if(K>P)for(;K<=z;)B(M[K],Y,O,!0),K++;else{const ne=K,ie=K,Te=new Map;for(K=ie;K<=P;K++){const ot=G[K]=J?An(G[K]):En(G[K]);ot.key!=null&&Te.set(ot.key,K)}let be,we=0;const He=P-ie+1;let Je=!1,nt=0;const Pe=new Array(He);for(K=0;K<He;K++)Pe[K]=0;for(K=ne;K<=z;K++){const ot=M[K];if(we>=He){B(ot,Y,O,!0);continue}let it;if(ot.key!=null)it=Te.get(ot.key);else for(be=ie;be<=P;be++)if(Pe[be-ie]===0&&br(ot,G[be])){it=be;break}it===void 0?B(ot,Y,O,!0):(Pe[it-ie]=K+1,it>=nt?nt=it:Je=!0,g(ot,G[it],E,null,Y,O,A,U,J),we++)}const It=Je?_h(Pe):Tr;for(be=It.length-1,K=He-1;K>=0;K--){const ot=ie+K,it=G[ot],ln=G[ot+1],Zt=ot+1<W?ln.el||NE(ln):H;Pe[K]===0?g(null,it,E,Zt,Y,O,A,U,J):Je&&(be<0||K!==It[be]?L(it,E,Zt,2):be--)}}},L=(M,G,E,H,Y=null)=>{const{el:O,type:A,transition:U,children:J,shapeFlag:K}=M;if(K&6){L(M.component.subTree,G,E,H);return}if(K&128){M.suspense.move(G,E,H);return}if(K&64){A.move(M,G,E,pe);return}if(A===Ue){r(O,G,E);for(let z=0;z<J.length;z++)L(J[z],G,E,H);r(M.anchor,G,E);return}if(A===Hi){v(M,G,E);return}if(H!==2&&K&1&&U)if(H===0)U.beforeEnter(O),r(O,G,E),yt(()=>U.enter(O),Y);else{const{leave:z,delayLeave:P,afterLeave:ne}=U,ie=()=>{M.ctx.isUnmounted?i(O):r(O,G,E)},Te=()=>{O._isLeaving&&O[qn](!0),z(O,()=>{ie(),ne&&ne()})};P?P(O,ie,Te):Te()}else r(O,G,E)},B=(M,G,E,H=!1,Y=!1)=>{const{type:O,props:A,ref:U,children:J,dynamicChildren:K,shapeFlag:W,patchFlag:z,dirs:P,cacheIndex:ne,memo:ie}=M;if(z===-2&&(Y=!1),U!=null&&(Mn(),ai(U,null,E,M,!0),kn()),ne!=null&&(G.renderCache[ne]=void 0),W&256){G.ctx.deactivate(M);return}const Te=W&1&&P,be=!si(M);let we;if(be&&(we=A&&A.onVnodeBeforeUnmount)&&un(we,G,M),W&6)oe(M.component,E,H);else{if(W&128){M.suspense.unmount(E,H);return}Te&&er(M,null,G,"beforeUnmount"),W&64?M.type.remove(M,G,E,pe,H):K&&!K.hasOnce&&(O!==Ue||z>0&&z&64)?Ee(K,G,E,!1,!0):(O===Ue&&z&384||!Y&&W&16)&&Ee(J,G,E),H&&te(M)}const He=ie!=null&&ne==null;(be&&(we=A&&A.onVnodeUnmounted)||Te||He)&&yt(()=>{we&&un(we,G,M),Te&&er(M,null,G,"unmounted"),He&&(M.el=null)},E)},te=M=>{const{type:G,el:E,anchor:H,transition:Y}=M;if(G===Ue){ce(E,H);return}if(G===Hi){R(M);return}const O=()=>{i(E),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(M.shapeFlag&1&&Y&&!Y.persisted){const{leave:A,delayLeave:U}=Y,J=()=>A(E,O);U?U(M.el,O,J):J()}else O()},ce=(M,G)=>{let E;for(;M!==G;)E=m(M),i(M),M=E;i(G)},oe=(M,G,E)=>{const{bum:H,scope:Y,job:O,subTree:A,um:U,m:J,a:K}=M;xu(J),xu(K),H&&Gi(H),Y.stop(),O&&(O.flags|=8,B(A,M,G,E)),U&&yt(U,G),yt(()=>{M.isUnmounted=!0},G)},Ee=(M,G,E,H=!1,Y=!1,O=0)=>{for(let A=O;A<M.length;A++)B(M[A],G,E,H,Y)},ee=M=>{if(M.shapeFlag&6)return ee(M.component.subTree);if(M.shapeFlag&128)return M.suspense.next();const G=m(M.anchor||M.el),E=G&&G[iE];return E?m(E):G};let ae=!1;const se=(M,G,E)=>{let H;M==null?G._vnode&&(B(G._vnode,null,null,!0),H=G._vnode.component):g(G._vnode||null,M,G,null,null,null,E),G._vnode=M,ae||(ae=!0,Eu(H),Jf(),ae=!1)},pe={p:g,um:B,m:L,r:te,mt:T,mc:N,pc:V,pbc:F,n:ee,o:t};return{render:se,hydrate:void 0,createApp:Qb(se)}}function za({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function tr({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function uh(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Od(t,e,n=!1){const r=t.children,i=e.children;if(Oe(r)&&Oe(i))for(let a=0;a<r.length;a++){const s=r[a];let o=i[a];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[a]=An(i[a]),o.el=s.el),!n&&o.patchFlag!==-2&&Od(s,o)),o.type===va&&(o.patchFlag===-1&&(o=i[a]=An(o)),o.el=s.el),o.type===Un&&!o.el&&(o.el=s.el)}}function _h(t){const e=t.slice(),n=[0];let r,i,a,s,o;const l=t.length;for(r=0;r<l;r++){const c=t[r];if(c!==0){if(i=n[n.length-1],t[i]<c){e[r]=i,n.push(r);continue}for(a=0,s=n.length-1;a<s;)o=a+s>>1,t[n[o]]<c?a=o+1:s=o;c<t[n[a]]&&(a>0&&(e[r]=n[a-1]),n[a]=r)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=e[s];return n}function yE(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:yE(e)}function xu(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function NE(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?NE(e.subTree):null}const OE=t=>t.__isSuspense;function ph(t,e){e&&e.pendingBranch?Oe(t)?e.effects.push(...t):e.effects.push(t):Sb(t)}const Ue=Symbol.for("v-fgt"),va=Symbol.for("v-txt"),Un=Symbol.for("v-cmt"),Hi=Symbol.for("v-stc"),li=[];let Yt=null;function le(t=!1){li.push(Yt=t?null:[])}function mh(){li.pop(),Yt=li[li.length-1]||null}let gi=1;function ji(t,e=!1){gi+=t,t<0&&Yt&&e&&(Yt.hasOnce=!0)}function AE(t){return t.dynamicChildren=gi>0?Yt||Tr:null,mh(),gi>0&&Yt&&Yt.push(t),t}function de(t,e,n,r,i,a){return AE(p(t,e,n,r,i,a,!0))}function wn(t,e,n,r,i){return AE(Be(t,e,n,r,i,!0))}function Ji(t){return t?t.__v_isVNode===!0:!1}function br(t,e){return t.type===e.type&&t.key===e.key}const IE=({key:t})=>t??null,Vi=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?_t(t)||ut(t)||Me(t)?{i:Gt,r:t,k:e,f:!!n}:t:null);function p(t,e=null,n=null,r=0,i=null,a=t===Ue?0:1,s=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&IE(e),ref:e&&Vi(e),scopeId:tE,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Gt};return o?(Ad(l,n),a&128&&t.normalize(l)):n&&(l.shapeFlag|=_t(n)?8:16),gi>0&&!s&&Yt&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Yt.push(l),l}const Be=gh;function gh(t,e=null,n=null,r=0,i=null,a=!1){if((!t||t===Gb)&&(t=Un),Ji(t)){const o=dr(t,e,!0);return n&&Ad(o,n),gi>0&&!a&&Yt&&(o.shapeFlag&6?Yt[Yt.indexOf(t)]=o:Yt.push(o)),o.patchFlag=-2,o}if(Nh(t)&&(t=t.__vccOpts),e){e=fh(e);let{class:o,style:l}=e;o&&!_t(o)&&(e.class=Ye(o)),Qe(l)&&(Ea(l)&&!Oe(l)&&(l=St({},l)),e.style=ga(l))}const s=_t(t)?1:OE(t)?128:Rb(t)?64:Qe(t)?4:Me(t)?2:0;return p(t,e,n,r,i,s,a,!0)}function fh(t){return t?Ea(t)||bE(t)?St({},t):t:null}function dr(t,e,n=!1,r=!1){const{props:i,ref:a,patchFlag:s,children:o,transition:l}=t,c=e?Eh(i||{},e):i,d={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&IE(c),ref:e&&e.ref?n&&a?Oe(a)?a.concat(Vi(e)):[a,Vi(e)]:Vi(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ue?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&dr(t.ssContent),ssFallback:t.ssFallback&&dr(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&mi(d,l.clone(d)),d}function ve(t=" ",e=0){return Be(va,null,t,e)}function ur(t,e){const n=Be(Hi,null,t);return n.staticCount=e,n}function ke(t="",e=!1){return e?(le(),wn(Un,null,t)):Be(Un,null,t)}function En(t){return t==null||typeof t=="boolean"?Be(Un):Oe(t)?Be(Ue,null,t.slice()):Ji(t)?An(t):Be(va,null,String(t))}function An(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:dr(t)}function Ad(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(Oe(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),Ad(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!bE(e)?e._ctx=Gt:i===3&&Gt&&(Gt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Me(e)?(e={default:e,_ctx:Gt},n=32):(e=String(e),r&64?(n=16,e=[ve(e)]):n=8);t.children=e,t.shapeFlag|=n}function Eh(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=Ye([e.class,r.class]));else if(i==="style")e.style=ga([e.style,r.style]);else if(la(i)){const a=e[i],s=r[i];s&&a!==s&&!(Oe(a)&&a.includes(s))?e[i]=a?[].concat(a,s):s:s==null&&a==null&&!ca(i)&&(e[i]=s)}else i!==""&&(e[i]=r[i])}return e}function un(t,e,n,r=null){an(t,e,7,[n,r])}const Sh=mE();let bh=0;function hh(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||Sh,a={uid:bh++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Df(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:TE(r,i),emitsOptions:gE(r,i),emit:null,emitted:null,propsDefaults:tt,inheritAttrs:r.inheritAttrs,ctx:tt,data:tt,props:tt,attrs:tt,slots:tt,refs:tt,setupState:tt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=e?e.root:a,a.emit=Zb.bind(null,a),t.ce&&t.ce(a),a}let At=null;const Id=()=>At||Gt;let ea,ed;{const t=ma(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),a=>{i.length>1?i.forEach(s=>s(a)):i[0](a)}};ea=e("__VUE_INSTANCE_SETTERS__",n=>At=n),ed=e("__VUE_SSR_SETTERS__",n=>fi=n)}const vi=t=>{const e=At;return ea(t),t.scope.on(),()=>{t.scope.off(),ea(e)}},Du=()=>{At&&At.scope.off(),ea(null)};function xE(t){return t.vnode.shapeFlag&4}let fi=!1;function Th(t,e=!1,n=!1){e&&ed(e);const{props:r,children:i}=t.vnode,a=xE(t);rh(t,r,a,e),oh(t,i,n||e);const s=a?vh(t,e):void 0;return e&&ed(!1),s}function vh(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,qb);const{setup:r}=n;if(r){Mn();const i=t.setupContext=r.length>1?Ch(t):null,a=vi(t),s=hi(r,t,0,[t.props,i]),o=Cf(s);if(kn(),a(),(o||t.sp)&&!si(t)&&oE(t),o){if(s.then(Du,Du),e)return s.then(l=>{wu(t,l)}).catch(l=>{Sa(l,t,0)});t.asyncDep=s}else wu(t,s)}else DE(t)}function wu(t,e,n){Me(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Qe(e)&&(t.setupState=Xf(e)),DE(t)}function DE(t,e,n){const r=t.type;t.render||(t.render=r.render||hn);{const i=vi(t);Mn();try{Hb(t)}finally{kn(),i()}}}const Rh={get(t,e){return Ot(t,"get",""),t[e]}};function Ch(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Rh),slots:t.slots,emit:t.emit,expose:e}}function Ra(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Xf(Rd(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in oi)return oi[n](t)},has(e,n){return n in e||n in oi}})):t.proxy}function yh(t,e=!0){return Me(t)?t.displayName||t.name:t.name||e&&t.__name}function Nh(t){return Me(t)&&"__vccOpts"in t}const Ae=(t,e)=>pb(t,e,fi);function wE(t,e,n){try{ji(-1);const r=arguments.length;return r===2?Qe(e)&&!Oe(e)?Ji(e)?Be(t,null,[e]):Be(t,e):Be(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ji(n)&&(n=[n]),Be(t,e,n))}finally{ji(1)}}const Oh="3.5.31";let td;const Lu=typeof window<"u"&&window.trustedTypes;if(Lu)try{td=Lu.createPolicy("vue",{createHTML:t=>t})}catch{}const LE=td?t=>td.createHTML(t):t=>t,Ah="http://www.w3.org/2000/svg",Ih="http://www.w3.org/1998/Math/MathML",On=typeof document<"u"?document:null,Mu=On&&On.createElement("template"),xh={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e==="svg"?On.createElementNS(Ah,t):e==="mathml"?On.createElementNS(Ih,t):n?On.createElement(t,{is:n}):On.createElement(t);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>On.createTextNode(t),createComment:t=>On.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>On.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,a){const s=n?n.previousSibling:e.lastChild;if(i&&(i===a||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Mu.innerHTML=LE(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const o=Mu.content;if(r==="svg"||r==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}e.insertBefore(o,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Gn="transition",zr="animation",Ar=Symbol("_vtc"),ME={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},Dh=St({},Ab,ME),nr=(t,e=[])=>{Oe(t)?t.forEach(n=>n(...e)):t&&t(...e)},ku=t=>t?Oe(t)?t.some(e=>e.length>1):t.length>1:!1;function wh(t){const e={};for(const I in t)I in ME||(e[I]=t[I]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:c=s,appearToClass:d=o,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=t,f=Lh(i),g=f&&f[0],S=f&&f[1],{onBeforeEnter:b,onEnter:h,onEnterCancelled:v,onLeave:R,onLeaveCancelled:C,onBeforeAppear:x=b,onAppear:D=h,onAppearCancelled:N=v}=e,y=(I,Q,T,w)=>{I._enterCancelled=w,Hn(I,Q?d:o),Hn(I,Q?c:s),T&&T()},F=(I,Q)=>{I._isLeaving=!1,Hn(I,u),Hn(I,_),Hn(I,m),Q&&Q()},X=I=>(Q,T)=>{const w=I?D:h,ue=()=>y(Q,I,T);nr(w,[Q,ue]),Pu(()=>{Hn(Q,I?l:a),pn(Q,I?d:o),ku(w)||Uu(Q,r,g,ue)})};return St(e,{onBeforeEnter(I){nr(b,[I]),pn(I,a),pn(I,s)},onBeforeAppear(I){nr(x,[I]),pn(I,l),pn(I,c)},onEnter:X(!1),onAppear:X(!0),onLeave(I,Q){I._isLeaving=!0;const T=()=>F(I,Q);pn(I,u),I._enterCancelled?(pn(I,m),nd(I)):(nd(I),pn(I,m)),Pu(()=>{I._isLeaving&&(Hn(I,u),pn(I,_),ku(R)||Uu(I,r,S,T))}),nr(R,[I,T])},onEnterCancelled(I){y(I,!1,void 0,!0),nr(v,[I])},onAppearCancelled(I){y(I,!0,void 0,!0),nr(N,[I])},onLeaveCancelled(I){F(I),nr(C,[I])}})}function Lh(t){if(t==null)return null;if(Qe(t))return[$a(t.enter),$a(t.leave)];{const e=$a(t);return[e,e]}}function $a(t){return wS(t)}function pn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Ar]||(t[Ar]=new Set)).add(e)}function Hn(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[Ar];n&&(n.delete(e),n.size||(t[Ar]=void 0))}function Pu(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Mh=0;function Uu(t,e,n,r){const i=t._endId=++Mh,a=()=>{i===t._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:o,propCount:l}=kE(t,e);if(!s)return r();const c=s+"end";let d=0;const u=()=>{t.removeEventListener(c,m),a()},m=_=>{_.target===t&&++d>=l&&u()};setTimeout(()=>{d<l&&u()},o+1),t.addEventListener(c,m)}function kE(t,e){const n=window.getComputedStyle(t),r=f=>(n[f]||"").split(", "),i=r(`${Gn}Delay`),a=r(`${Gn}Duration`),s=Fu(i,a),o=r(`${zr}Delay`),l=r(`${zr}Duration`),c=Fu(o,l);let d=null,u=0,m=0;e===Gn?s>0&&(d=Gn,u=s,m=a.length):e===zr?c>0&&(d=zr,u=c,m=l.length):(u=Math.max(s,c),d=u>0?s>c?Gn:zr:null,m=d?d===Gn?a.length:l.length:0);const _=d===Gn&&/\b(?:transform|all)(?:,|$)/.test(r(`${Gn}Property`).toString());return{type:d,timeout:u,propCount:m,hasTransform:_}}function Fu(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>Bu(n)+Bu(t[r])))}function Bu(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function nd(t){return(t?t.ownerDocument:document).body.offsetHeight}function kh(t,e,n){const r=t[Ar];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Gu=Symbol("_vod"),Ph=Symbol("_vsh"),Uh=Symbol(""),Fh=/(?:^|;)\s*display\s*:/;function Bh(t,e,n){const r=t.style,i=_t(n);let a=!1;if(n&&!i){if(e)if(_t(e))for(const s of e.split(";")){const o=s.slice(0,s.indexOf(":")).trim();n[o]==null&&zi(r,o,"")}else for(const s in e)n[s]==null&&zi(r,s,"");for(const s in n)s==="display"&&(a=!0),zi(r,s,n[s])}else if(i){if(e!==n){const s=r[Uh];s&&(n+=";"+s),r.cssText=n,a=Fh.test(n)}}else e&&t.removeAttribute("style");Gu in t&&(t[Gu]=a?r.display:"",t[Ph]&&(r.display="none"))}const Yu=/\s*!important$/;function zi(t,e,n){if(Oe(n))n.forEach(r=>zi(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=Gh(t,e);Yu.test(n)?t.setProperty(Zn(r),n.replace(Yu,""),"important"):t[r]=n}}const qu=["Webkit","Moz","ms"],Wa={};function Gh(t,e){const n=Wa[e];if(n)return n;let r=Pt(e);if(r!=="filter"&&r in t)return Wa[e]=r;r=_a(r);for(let i=0;i<qu.length;i++){const a=qu[i]+r;if(a in t)return Wa[e]=a}return e}const Hu="http://www.w3.org/1999/xlink";function Vu(t,e,n,r,i,a=FS(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(Hu,e.slice(6,e.length)):t.setAttributeNS(Hu,e,n):n==null||a&&!Af(n)?t.removeAttribute(e):t.setAttribute(e,a?"":Xt(n)?String(n):n)}function zu(t,e,n,r,i){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?LE(n):n);return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const o=a==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(o!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let s=!1;if(n===""||n==null){const o=typeof t[e];o==="boolean"?n=Af(n):n==null&&o==="string"?(n="",s=!0):o==="number"&&(n=0,s=!0)}try{t[e]=n}catch{}s&&t.removeAttribute(i||e)}function Dn(t,e,n,r){t.addEventListener(e,n,r)}function Yh(t,e,n,r){t.removeEventListener(e,n,r)}const $u=Symbol("_vei");function qh(t,e,n,r,i=null){const a=t[$u]||(t[$u]={}),s=a[e];if(r&&s)s.value=r;else{const[o,l]=Hh(e);if(r){const c=a[e]=$h(r,i);Dn(t,o,c,l)}else s&&(Yh(t,o,s,l),a[e]=void 0)}}const Wu=/(?:Once|Passive|Capture)$/;function Hh(t){let e;if(Wu.test(t)){e={};let r;for(;r=t.match(Wu);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Zn(t.slice(2)),e]}let Ka=0;const Vh=Promise.resolve(),zh=()=>Ka||(Vh.then(()=>Ka=0),Ka=Date.now());function $h(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;an(Wh(r,n.value),e,5,[r])};return n.value=t,n.attached=zh(),n}function Wh(t,e){if(Oe(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const Ku=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Kh=(t,e,n,r,i,a)=>{const s=i==="svg";e==="class"?kh(t,r,s):e==="style"?Bh(t,n,r):la(e)?ca(e)||qh(t,e,n,r,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Qh(t,e,r,s))?(zu(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Vu(t,e,r,s,a,e!=="value")):t._isVueCE&&(Xh(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!_t(r)))?zu(t,Pt(e),r,a,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),Vu(t,e,r,s))};function Qh(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&Ku(e)&&Me(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Ku(e)&&_t(n)?!1:e in t}function Xh(t,e){const n=t._def.props;if(!n)return!1;const r=Pt(e);return Array.isArray(n)?n.some(i=>Pt(i)===r):Object.keys(n).some(i=>Pt(i)===r)}const PE=new WeakMap,UE=new WeakMap,ta=Symbol("_moveCb"),Qu=Symbol("_enterCb"),Zh=t=>(delete t.props.mode,t),jh=Zh({name:"TransitionGroup",props:St({},Dh,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Id(),r=Ob();let i,a;return dE(()=>{if(!i.length)return;const s=t.moveClass||`${t.name||"v"}-move`;if(!rT(i[0].el,n.vnode.el,s)){i=[];return}i.forEach(eT),i.forEach(tT);const o=i.filter(nT);nd(n.vnode.el),o.forEach(l=>{const c=l.el,d=c.style;pn(c,s),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[ta]=m=>{m&&m.target!==c||(!m||m.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",u),c[ta]=null,Hn(c,s))};c.addEventListener("transitionend",u)}),i=[]}),()=>{const s=Ve(t),o=wh(s);let l=s.tag||Ue;if(i=[],a)for(let c=0;c<a.length;c++){const d=a[c];d.el&&d.el instanceof Element&&(i.push(d),mi(d,Qc(d,o,r,n)),PE.set(d,FE(d.el)))}a=e.default?sE(e.default()):[];for(let c=0;c<a.length;c++){const d=a[c];d.key!=null&&mi(d,Qc(d,o,r,n))}return Be(l,null,a)}}}),Jh=jh;function eT(t){const e=t.el;e[ta]&&e[ta](),e[Qu]&&e[Qu]()}function tT(t){UE.set(t,FE(t.el))}function nT(t){const e=PE.get(t),n=UE.get(t),r=e.left-n.left,i=e.top-n.top;if(r||i){const a=t.el,s=a.style,o=a.getBoundingClientRect();let l=1,c=1;return a.offsetWidth&&(l=o.width/a.offsetWidth),a.offsetHeight&&(c=o.height/a.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(l-1)<.01&&(l=1),Math.abs(c-1)<.01&&(c=1),s.transform=s.webkitTransform=`translate(${r/l}px,${i/c}px)`,s.transitionDuration="0s",t}}function FE(t){const e=t.getBoundingClientRect();return{left:e.left,top:e.top}}function rT(t,e,n){const r=t.cloneNode(),i=t[Ar];i&&i.forEach(o=>{o.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const a=e.nodeType===1?e:e.parentNode;a.appendChild(r);const{hasTransform:s}=kE(r);return a.removeChild(r),s}const Xn=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Oe(e)?n=>Gi(e,n):e};function iT(t){t.target.composing=!0}function Xu(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Qt=Symbol("_assign");function Zu(t,e,n){return e&&(t=t.trim()),n&&(t=pa(t)),t}const at={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t[Qt]=Xn(i);const a=r||i.props&&i.props.type==="number";Dn(t,e?"change":"input",s=>{s.target.composing||t[Qt](Zu(t.value,n,a))}),(n||a)&&Dn(t,"change",()=>{t.value=Zu(t.value,n,a)}),e||(Dn(t,"compositionstart",iT),Dn(t,"compositionend",Xu),Dn(t,"change",Xu))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},s){if(t[Qt]=Xn(s),t.composing)return;const o=(a||t.type==="number")&&!/^0\d/.test(t.value)?pa(t.value):t.value,l=e??"";if(o===l)return;const c=t.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===t&&t.type!=="range"&&(r&&e===n||i&&t.value.trim()===l)||(t.value=l)}},aT={deep:!0,created(t,e,n){t[Qt]=Xn(n),Dn(t,"change",()=>{const r=t._modelValue,i=xr(t),a=t.checked,s=t[Qt];if(Oe(r)){const o=fd(r,i),l=o!==-1;if(a&&!l)s(r.concat(i));else if(!a&&l){const c=[...r];c.splice(o,1),s(c)}}else if(Lr(r)){const o=new Set(r);a?o.add(i):o.delete(i),s(o)}else s(BE(t,a))})},mounted:ju,beforeUpdate(t,e,n){t[Qt]=Xn(n),ju(t,e,n)}};function ju(t,{value:e,oldValue:n},r){t._modelValue=e;let i;if(Oe(e))i=fd(e,r.props.value)>-1;else if(Lr(e))i=e.has(r.props.value);else{if(e===n)return;i=Qn(e,BE(t,!0))}t.checked!==i&&(t.checked=i)}const jr={created(t,{value:e},n){t.checked=Qn(e,n.props.value),t[Qt]=Xn(n),Dn(t,"change",()=>{t[Qt](xr(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t[Qt]=Xn(r),e!==n&&(t.checked=Qn(e,r.props.value))}},Ir={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=Lr(e);Dn(t,"change",()=>{const a=Array.prototype.filter.call(t.options,s=>s.selected).map(s=>n?pa(xr(s)):xr(s));t[Qt](t.multiple?i?new Set(a):a:a[0]),t._assigning=!0,Ti(()=>{t._assigning=!1})}),t[Qt]=Xn(r)},mounted(t,{value:e}){Ju(t,e)},beforeUpdate(t,e,n){t[Qt]=Xn(n)},updated(t,{value:e}){t._assigning||Ju(t,e)}};function Ju(t,e){const n=t.multiple,r=Oe(e);if(!(n&&!r&&!Lr(e))){for(let i=0,a=t.options.length;i<a;i++){const s=t.options[i],o=xr(s);if(n)if(r){const l=typeof o;l==="string"||l==="number"?s.selected=e.some(c=>String(c)===String(o)):s.selected=fd(e,o)>-1}else s.selected=e.has(o);else if(Qn(xr(s),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function xr(t){return"_value"in t?t._value:t.value}function BE(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const e_={created(t,e,n){ki(t,e,n,null,"created")},mounted(t,e,n){ki(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){ki(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){ki(t,e,n,r,"updated")}};function sT(t,e){switch(t){case"SELECT":return Ir;case"TEXTAREA":return at;default:switch(e){case"checkbox":return aT;case"radio":return jr;default:return at}}}function ki(t,e,n,r,i){const s=sT(t.tagName,n.props&&n.props.type)[i];s&&s(t,e,n,r)}const oT=["ctrl","shift","alt","meta"],lT={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>oT.some(n=>t[`${n}Key`]&&!e.includes(n))},ft=(t,e)=>{if(!t)return t;const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=((i,...a)=>{for(let s=0;s<e.length;s++){const o=lT[e[s]];if(o&&o(i,e))return}return t(i,...a)}))},cT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},dT=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=(i=>{if(!("key"in i))return;const a=Zn(i.key);if(e.some(s=>s===a||cT[s]===a))return t(i)}))},uT=St({patchProp:Kh},xh);let t_;function _T(){return t_||(t_=ch(uT))}const pT=((...t)=>{const e=_T().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=gT(r);if(!i)return;const a=e._component;!Me(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,mT(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e});function mT(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function gT(t){return _t(t)?document.querySelector(t):t}let GE;const Ca=t=>GE=t,YE=Symbol();function rd(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ci;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ci||(ci={}));function fT(){const t=wf(!0),e=t.run(()=>me({}));let n=[],r=[];const i=Rd({install(a){Ca(i),i._a=a,a.provide(YE,i),a.config.globalProperties.$pinia=i,r.forEach(s=>n.push(s)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return i}const qE=()=>{};function n_(t,e,n,r=qE){t.add(e);const i=()=>{t.delete(e)&&r()};return!n&&Lf()&&GS(i),i}function Er(t,...e){t.forEach(n=>{n(...e)})}const ET=t=>t(),r_=Symbol(),Qa=Symbol();function id(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,r)=>t.set(r,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],i=t[n];rd(i)&&rd(r)&&t.hasOwnProperty(n)&&!ut(r)&&!Ln(r)?t[n]=id(i,r):t[n]=r}return t}const ST=Symbol();function bT(t){return!rd(t)||!Object.prototype.hasOwnProperty.call(t,ST)}const{assign:Vn}=Object;function hT(t){return!!(ut(t)&&t.effect)}function TT(t,e,n,r){const{state:i,actions:a,getters:s}=e,o=n.state.value[t];let l;function c(){o||(n.state.value[t]=i?i():{});const d=cb(n.state.value[t]);return Vn(d,a,Object.keys(s||{}).reduce((u,m)=>(u[m]=Rd(Ae(()=>{Ca(n);const _=n._s.get(t);return s[m].call(_,_)})),u),{}))}return l=HE(t,c,e,n,r,!0),l}function HE(t,e,n={},r,i,a){let s;const o=Vn({actions:{}},n),l={deep:!0};let c,d,u=new Set,m=new Set,_;const f=r.state.value[t];!a&&!f&&(r.state.value[t]={});let g;function S(N){let y;c=d=!1,typeof N=="function"?(N(r.state.value[t]),y={type:ci.patchFunction,storeId:t,events:_}):(id(r.state.value[t],N),y={type:ci.patchObject,payload:N,storeId:t,events:_});const F=g=Symbol();Ti().then(()=>{g===F&&(c=!0)}),d=!0,Er(u,y,r.state.value[t])}const b=a?function(){const{state:y}=n,F=y?y():{};this.$patch(X=>{Vn(X,F)})}:qE;function h(){s.stop(),u.clear(),m.clear(),r._s.delete(t)}const v=(N,y="")=>{if(r_ in N)return N[Qa]=y,N;const F=function(){Ca(r);const X=Array.from(arguments),I=new Set,Q=new Set;function T(k){I.add(k)}function w(k){Q.add(k)}Er(m,{args:X,name:F[Qa],store:C,after:T,onError:w});let ue;try{ue=N.apply(this&&this.$id===t?this:C,X)}catch(k){throw Er(Q,k),k}return ue instanceof Promise?ue.then(k=>(Er(I,k),k)).catch(k=>(Er(Q,k),Promise.reject(k))):(Er(I,ue),ue)};return F[r_]=!0,F[Qa]=y,F},R={_p:r,$id:t,$onAction:n_.bind(null,m),$patch:S,$reset:b,$subscribe(N,y={}){const F=n_(u,N,y.detached,()=>X()),X=s.run(()=>lr(()=>r.state.value[t],I=>{(y.flush==="sync"?d:c)&&N({storeId:t,type:ci.direct,events:_},I)},Vn({},l,y)));return F},$dispose:h},C=bi(R);r._s.set(t,C);const D=(r._a&&r._a.runWithContext||ET)(()=>r._e.run(()=>(s=wf()).run(()=>e({action:v}))));for(const N in D){const y=D[N];if(ut(y)&&!hT(y)||Ln(y))a||(f&&bT(y)&&(ut(y)?y.value=f[N]:id(y,f[N])),r.state.value[t][N]=y);else if(typeof y=="function"){const F=v(y,N);D[N]=F,o.actions[N]=y}}return Vn(C,D),Vn(Ve(C),D),Object.defineProperty(C,"$state",{get:()=>r.state.value[t],set:N=>{S(y=>{Vn(y,N)})}}),r._p.forEach(N=>{Vn(C,s.run(()=>N({store:C,app:r._a,pinia:r,options:o})))}),f&&a&&n.hydrate&&n.hydrate(C.$state,f),c=!0,d=!0,C}function VE(t,e,n){let r;const i=typeof e=="function";r=i?n:e;function a(s,o){const l=bb();return s=s||(l?Kt(YE,null):null),s&&Ca(s),s=GE,s._s.has(t)||(i?HE(t,e,r,s):TT(t,r,s)),s._s.get(t)}return a.$id=t,a}const hr=typeof document<"u";function zE(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function vT(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&zE(t.default)}const We=Object.assign;function Xa(t,e){const n={};for(const r in e){const i=e[r];n[r]=sn(i)?i.map(t):t(i)}return n}const di=()=>{},sn=Array.isArray;function i_(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}let dt=(function(t){return t[t.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",t[t.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",t[t.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",t[t.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",t[t.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",t})({});const $E=Symbol("");dt.MATCHER_NOT_FOUND+"",dt.NAVIGATION_GUARD_REDIRECT+"",dt.NAVIGATION_ABORTED+"",dt.NAVIGATION_CANCELLED+"",dt.NAVIGATION_DUPLICATED+"";function Dr(t,e){return We(new Error,{type:t,[$E]:!0},e)}function Nn(t,e){return t instanceof Error&&$E in t&&(e==null||!!(t.type&e))}const RT=["params","query","hash"];function CT(t){if(typeof t=="string")return t;if(t.path!=null)return t.path;const e={};for(const n of RT)n in t&&(e[n]=t[n]);return JSON.stringify(e,null,2)}const yT=Symbol(""),a_=Symbol(""),ya=Symbol(""),xd=Symbol(""),ad=Symbol("");function Mr(){return Kt(ya)}function Na(t){return Kt(xd)}const WE=/#/g,NT=/&/g,OT=/\//g,AT=/=/g,IT=/\?/g,KE=/\+/g,xT=/%5B/g,DT=/%5D/g,QE=/%5E/g,wT=/%60/g,XE=/%7B/g,LT=/%7C/g,ZE=/%7D/g,MT=/%20/g;function Dd(t){return t==null?"":encodeURI(""+t).replace(LT,"|").replace(xT,"[").replace(DT,"]")}function kT(t){return Dd(t).replace(XE,"{").replace(ZE,"}").replace(QE,"^")}function sd(t){return Dd(t).replace(KE,"%2B").replace(MT,"+").replace(WE,"%23").replace(NT,"%26").replace(wT,"`").replace(XE,"{").replace(ZE,"}").replace(QE,"^")}function PT(t){return sd(t).replace(AT,"%3D")}function UT(t){return Dd(t).replace(WE,"%23").replace(IT,"%3F")}function FT(t){return UT(t).replace(OT,"%2F")}function Ei(t){if(t==null)return null;try{return decodeURIComponent(""+t)}catch{}return""+t}const BT=/\/$/,GT=t=>t.replace(BT,"");function Za(t,e,n="/"){let r,i={},a="",s="";const o=e.indexOf("#");let l=e.indexOf("?");return l=o>=0&&l>o?-1:l,l>=0&&(r=e.slice(0,l),a=e.slice(l,o>0?o:e.length),i=t(a.slice(1))),o>=0&&(r=r||e.slice(0,o),s=e.slice(o,e.length)),r=VT(r??e,n),{fullPath:r+a+s,path:r,query:i,hash:Ei(s)}}function YT(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function s_(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function qT(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&wr(e.matched[r],n.matched[i])&&jE(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function wr(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function jE(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(!HT(t[n],e[n]))return!1;return!0}function HT(t,e){return sn(t)?o_(t,e):sn(e)?o_(e,t):(t&&t.valueOf())===(e&&e.valueOf())}function o_(t,e){return sn(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function VT(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let a=n.length-1,s,o;for(s=0;s<r.length;s++)if(o=r[s],o!==".")if(o==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}const Yn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let od=(function(t){return t.pop="pop",t.push="push",t})({}),ja=(function(t){return t.back="back",t.forward="forward",t.unknown="",t})({});function zT(t){if(!t)if(hr){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),GT(t)}const $T=/^[^#]+#/;function WT(t,e){return t.replace($T,"#")+e}function KT(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const Oa=()=>({left:window.scrollX,top:window.scrollY});function QT(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=KT(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function l_(t,e){return(history.state?history.state.position-e:-1)+t}const ld=new Map;function XT(t,e){ld.set(t,e)}function ZT(t){const e=ld.get(t);return ld.delete(t),e}function jT(t){return typeof t=="string"||t&&typeof t=="object"}function JE(t){return typeof t=="string"||typeof t=="symbol"}function JT(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<n.length;++r){const i=n[r].replace(KE," "),a=i.indexOf("="),s=Ei(a<0?i:i.slice(0,a)),o=a<0?null:Ei(i.slice(a+1));if(s in e){let l=e[s];sn(l)||(l=e[s]=[l]),l.push(o)}else e[s]=o}return e}function c_(t){let e="";for(let n in t){const r=t[n];if(n=PT(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(sn(r)?r.map(i=>i&&sd(i)):[r&&sd(r)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+n,i!=null&&(e+="="+i))})}return e}function ev(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=sn(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}function $r(){let t=[];function e(r){return t.push(r),()=>{const i=t.indexOf(r);i>-1&&t.splice(i,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function $n(t,e,n,r,i,a=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,l)=>{const c=m=>{m===!1?l(Dr(dt.NAVIGATION_ABORTED,{from:n,to:e})):m instanceof Error?l(m):jT(m)?l(Dr(dt.NAVIGATION_GUARD_REDIRECT,{from:e,to:m})):(s&&r.enterCallbacks[i]===s&&typeof m=="function"&&s.push(m),o())},d=a(()=>t.call(r&&r.instances[i],e,n,c));let u=Promise.resolve(d);t.length<3&&(u=u.then(c)),u.catch(m=>l(m))})}function Ja(t,e,n,r,i=a=>a()){const a=[];for(const s of t)for(const o in s.components){let l=s.components[o];if(!(e!=="beforeRouteEnter"&&!s.instances[o]))if(zE(l)){const c=(l.__vccOpts||l)[e];c&&a.push($n(c,n,r,s,o,i))}else{let c=l();a.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${o}" at "${s.path}"`);const u=vT(d)?d.default:d;s.mods[o]=d,s.components[o]=u;const m=(u.__vccOpts||u)[e];return m&&$n(m,n,r,s,o,i)()}))}}return a}function tv(t,e){const n=[],r=[],i=[],a=Math.max(e.matched.length,t.matched.length);for(let s=0;s<a;s++){const o=e.matched[s];o&&(t.matched.find(c=>wr(c,o))?r.push(o):n.push(o));const l=t.matched[s];l&&(e.matched.find(c=>wr(c,l))||i.push(l))}return[n,r,i]}let nv=()=>location.protocol+"//"+location.host;function eS(t,e){const{pathname:n,search:r,hash:i}=e,a=t.indexOf("#");if(a>-1){let s=i.includes(t.slice(a))?t.slice(a).length:1,o=i.slice(s);return o[0]!=="/"&&(o="/"+o),s_(o,"")}return s_(n,t)+r+i}function rv(t,e,n,r){let i=[],a=[],s=null;const o=({state:m})=>{const _=eS(t,location),f=n.value,g=e.value;let S=0;if(m){if(n.value=_,e.value=m,s&&s===f){s=null;return}S=g?m.position-g.position:0}else r(_);i.forEach(b=>{b(n.value,f,{delta:S,type:od.pop,direction:S?S>0?ja.forward:ja.back:ja.unknown})})};function l(){s=n.value}function c(m){i.push(m);const _=()=>{const f=i.indexOf(m);f>-1&&i.splice(f,1)};return a.push(_),_}function d(){if(document.visibilityState==="hidden"){const{history:m}=window;if(!m.state)return;m.replaceState(We({},m.state,{scroll:Oa()}),"")}}function u(){for(const m of a)m();a=[],window.removeEventListener("popstate",o),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",o),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:l,listen:c,destroy:u}}function d_(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?Oa():null}}function iv(t){const{history:e,location:n}=window,r={value:eS(t,n)},i={value:e.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function a(l,c,d){const u=t.indexOf("#"),m=u>-1?(n.host&&document.querySelector("base")?t:t.slice(u))+l:nv()+t+l;try{e[d?"replaceState":"pushState"](c,"",m),i.value=c}catch(_){console.error(_),n[d?"replace":"assign"](m)}}function s(l,c){a(l,We({},e.state,d_(i.value.back,l,i.value.forward,!0),c,{position:i.value.position}),!0),r.value=l}function o(l,c){const d=We({},i.value,e.state,{forward:l,scroll:Oa()});a(d.current,d,!0),a(l,We({},d_(r.value,l,null),{position:d.position+1},c),!1),r.value=l}return{location:r,state:i,push:o,replace:s}}function av(t){t=zT(t);const e=iv(t),n=rv(t,e.state,e.location,e.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const i=We({location:"",base:t,go:r,createHref:WT.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}let ar=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.Group=2]="Group",t})({});var Rt=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.ParamRegExp=2]="ParamRegExp",t[t.ParamRegExpEnd=3]="ParamRegExpEnd",t[t.EscapeNext=4]="EscapeNext",t})(Rt||{});const sv={type:ar.Static,value:""},ov=/[a-zA-Z0-9_]/;function lv(t){if(!t)return[[]];if(t==="/")return[[sv]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(_){throw new Error(`ERR (${n})/"${c}": ${_}`)}let n=Rt.Static,r=n;const i=[];let a;function s(){a&&i.push(a),a=[]}let o=0,l,c="",d="";function u(){c&&(n===Rt.Static?a.push({type:ar.Static,value:c}):n===Rt.Param||n===Rt.ParamRegExp||n===Rt.ParamRegExpEnd?(a.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),a.push({type:ar.Param,value:c,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function m(){c+=l}for(;o<t.length;){if(l=t[o++],l==="\\"&&n!==Rt.ParamRegExp){r=n,n=Rt.EscapeNext;continue}switch(n){case Rt.Static:l==="/"?(c&&u(),s()):l===":"?(u(),n=Rt.Param):m();break;case Rt.EscapeNext:m(),n=r;break;case Rt.Param:l==="("?n=Rt.ParamRegExp:ov.test(l)?m():(u(),n=Rt.Static,l!=="*"&&l!=="?"&&l!=="+"&&o--);break;case Rt.ParamRegExp:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:n=Rt.ParamRegExpEnd:d+=l;break;case Rt.ParamRegExpEnd:u(),n=Rt.Static,l!=="*"&&l!=="?"&&l!=="+"&&o--,d="";break;default:e("Unknown state");break}}return n===Rt.ParamRegExp&&e(`Unfinished custom RegExp for param "${c}"`),u(),s(),i}const u_="[^/]+?",cv={sensitive:!1,strict:!1,start:!0,end:!0};var wt=(function(t){return t[t._multiplier=10]="_multiplier",t[t.Root=90]="Root",t[t.Segment=40]="Segment",t[t.SubSegment=30]="SubSegment",t[t.Static=40]="Static",t[t.Dynamic=20]="Dynamic",t[t.BonusCustomRegExp=10]="BonusCustomRegExp",t[t.BonusWildcard=-50]="BonusWildcard",t[t.BonusRepeatable=-20]="BonusRepeatable",t[t.BonusOptional=-8]="BonusOptional",t[t.BonusStrict=.7000000000000001]="BonusStrict",t[t.BonusCaseSensitive=.25]="BonusCaseSensitive",t})(wt||{});const dv=/[.+*?^${}()[\]/\\]/g;function uv(t,e){const n=We({},cv,e),r=[];let i=n.start?"^":"";const a=[];for(const c of t){const d=c.length?[]:[wt.Root];n.strict&&!c.length&&(i+="/");for(let u=0;u<c.length;u++){const m=c[u];let _=wt.Segment+(n.sensitive?wt.BonusCaseSensitive:0);if(m.type===ar.Static)u||(i+="/"),i+=m.value.replace(dv,"\\$&"),_+=wt.Static;else if(m.type===ar.Param){const{value:f,repeatable:g,optional:S,regexp:b}=m;a.push({name:f,repeatable:g,optional:S});const h=b||u_;if(h!==u_){_+=wt.BonusCustomRegExp;try{new RegExp(`(${h})`)}catch(R){throw new Error(`Invalid custom RegExp for param "${f}" (${h}): `+R.message)}}let v=g?`((?:${h})(?:/(?:${h}))*)`:`(${h})`;u||(v=S&&c.length<2?`(?:/${v})`:"/"+v),S&&(v+="?"),i+=v,_+=wt.Dynamic,S&&(_+=wt.BonusOptional),g&&(_+=wt.BonusRepeatable),h===".*"&&(_+=wt.BonusWildcard)}d.push(_)}r.push(d)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=wt.BonusStrict}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function o(c){const d=c.match(s),u={};if(!d)return null;for(let m=1;m<d.length;m++){const _=d[m]||"",f=a[m-1];u[f.name]=_&&f.repeatable?_.split("/"):_}return u}function l(c){let d="",u=!1;for(const m of t){(!u||!d.endsWith("/"))&&(d+="/"),u=!1;for(const _ of m)if(_.type===ar.Static)d+=_.value;else if(_.type===ar.Param){const{value:f,repeatable:g,optional:S}=_,b=f in c?c[f]:"";if(sn(b)&&!g)throw new Error(`Provided param "${f}" is an array but it is not repeatable (* or + modifiers)`);const h=sn(b)?b.join("/"):b;if(!h)if(S)m.length<2&&(d.endsWith("/")?d=d.slice(0,-1):u=!0);else throw new Error(`Missing required param "${f}"`);d+=h}}return d||"/"}return{re:s,score:r,keys:a,parse:o,stringify:l}}function _v(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?t.length===1&&t[0]===wt.Static+wt.Segment?-1:1:t.length>e.length?e.length===1&&e[0]===wt.Static+wt.Segment?1:-1:0}function tS(t,e){let n=0;const r=t.score,i=e.score;for(;n<r.length&&n<i.length;){const a=_v(r[n],i[n]);if(a)return a;n++}if(Math.abs(i.length-r.length)===1){if(__(r))return 1;if(__(i))return-1}return i.length-r.length}function __(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const pv={strict:!1,end:!0,sensitive:!1};function mv(t,e,n){const r=uv(lv(t.path),n),i=We(r,{record:t,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function gv(t,e){const n=[],r=new Map;e=i_(pv,e);function i(u){return r.get(u)}function a(u,m,_){const f=!_,g=m_(u);g.aliasOf=_&&_.record;const S=i_(e,u),b=[g];if("alias"in u){const R=typeof u.alias=="string"?[u.alias]:u.alias;for(const C of R)b.push(m_(We({},g,{components:_?_.record.components:g.components,path:C,aliasOf:_?_.record:g})))}let h,v;for(const R of b){const{path:C}=R;if(m&&C[0]!=="/"){const x=m.record.path,D=x[x.length-1]==="/"?"":"/";R.path=m.record.path+(C&&D+C)}if(h=mv(R,m,S),_?_.alias.push(h):(v=v||h,v!==h&&v.alias.push(h),f&&u.name&&!g_(h)&&s(u.name)),nS(h)&&l(h),g.children){const x=g.children;for(let D=0;D<x.length;D++)a(x[D],h,_&&_.children[D])}_=_||h}return v?()=>{s(v)}:di}function s(u){if(JE(u)){const m=r.get(u);m&&(r.delete(u),n.splice(n.indexOf(m),1),m.children.forEach(s),m.alias.forEach(s))}else{const m=n.indexOf(u);m>-1&&(n.splice(m,1),u.record.name&&r.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function o(){return n}function l(u){const m=Sv(u,n);n.splice(m,0,u),u.record.name&&!g_(u)&&r.set(u.record.name,u)}function c(u,m){let _,f={},g,S;if("name"in u&&u.name){if(_=r.get(u.name),!_)throw Dr(dt.MATCHER_NOT_FOUND,{location:u});S=_.record.name,f=We(p_(m.params,_.keys.filter(v=>!v.optional).concat(_.parent?_.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),u.params&&p_(u.params,_.keys.map(v=>v.name))),g=_.stringify(f)}else if(u.path!=null)g=u.path,_=n.find(v=>v.re.test(g)),_&&(f=_.parse(g),S=_.record.name);else{if(_=m.name?r.get(m.name):n.find(v=>v.re.test(m.path)),!_)throw Dr(dt.MATCHER_NOT_FOUND,{location:u,currentLocation:m});S=_.record.name,f=We({},m.params,u.params),g=_.stringify(f)}const b=[];let h=_;for(;h;)b.unshift(h.record),h=h.parent;return{name:S,path:g,params:f,matched:b,meta:Ev(b)}}t.forEach(u=>a(u));function d(){n.length=0,r.clear()}return{addRoute:a,resolve:c,removeRoute:s,clearRoutes:d,getRoutes:o,getRecordMatcher:i}}function p_(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function m_(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:fv(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function fv(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function g_(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Ev(t){return t.reduce((e,n)=>We(e,n.meta),{})}function Sv(t,e){let n=0,r=e.length;for(;n!==r;){const a=n+r>>1;tS(t,e[a])<0?r=a:n=a+1}const i=bv(t);return i&&(r=e.lastIndexOf(i,r-1)),r}function bv(t){let e=t;for(;e=e.parent;)if(nS(e)&&tS(t,e)===0)return e}function nS({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function f_(t){const e=Kt(ya),n=Kt(xd),r=Ae(()=>{const l=j(t.to);return e.resolve(l)}),i=Ae(()=>{const{matched:l}=r.value,{length:c}=l,d=l[c-1],u=n.matched;if(!d||!u.length)return-1;const m=u.findIndex(wr.bind(null,d));if(m>-1)return m;const _=E_(l[c-2]);return c>1&&E_(d)===_&&u[u.length-1].path!==_?u.findIndex(wr.bind(null,l[c-2])):m}),a=Ae(()=>i.value>-1&&Cv(n.params,r.value.params)),s=Ae(()=>i.value>-1&&i.value===n.matched.length-1&&jE(n.params,r.value.params));function o(l={}){if(Rv(l)){const c=e[j(t.replace)?"replace":"push"](j(t.to)).catch(di);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:Ae(()=>r.value.href),isActive:a,isExactActive:s,navigate:o}}function hv(t){return t.length===1?t[0]:t}const Tv=Ut({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"},viewTransition:Boolean},useLink:f_,setup(t,{slots:e}){const n=bi(f_(t)),{options:r}=Kt(ya),i=Ae(()=>({[S_(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[S_(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=e.default&&hv(e.default(n));return t.custom?a:wE("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}}),vv=Tv;function Rv(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Cv(t,e){for(const n in e){const r=e[n],i=t[n];if(typeof r=="string"){if(r!==i)return!1}else if(!sn(i)||i.length!==r.length||r.some((a,s)=>a.valueOf()!==i[s].valueOf()))return!1}return!0}function E_(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const S_=(t,e,n)=>t??e??n,yv=Ut({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Kt(ad),i=Ae(()=>t.route||r.value),a=Kt(a_,0),s=Ae(()=>{let c=j(a);const{matched:d}=i.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),o=Ae(()=>i.value.matched[s.value]);Yi(a_,Ae(()=>s.value+1)),Yi(yT,o),Yi(ad,i);const l=me();return lr(()=>[l.value,o.value,t.name],([c,d,u],[m,_,f])=>{d&&(d.instances[u]=c,_&&_!==d&&c&&c===m&&(d.leaveGuards.size||(d.leaveGuards=_.leaveGuards),d.updateGuards.size||(d.updateGuards=_.updateGuards))),c&&d&&(!_||!wr(d,_)||!m)&&(d.enterCallbacks[u]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=i.value,d=t.name,u=o.value,m=u&&u.components[d];if(!m)return b_(n.default,{Component:m,route:c});const _=u.props[d],f=_?_===!0?c.params:typeof _=="function"?_(c):_:null,S=wE(m,We({},f,e,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(u.instances[d]=null)},ref:l}));return b_(n.default,{Component:S,route:c})||S}}});function b_(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const Nv=yv;function Ov(t){const e=gv(t.routes,t),n=t.parseQuery||JT,r=t.stringifyQuery||c_,i=t.history,a=$r(),s=$r(),o=$r(),l=sb(Yn);let c=Yn;hr&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Xa.bind(null,ee=>""+ee),u=Xa.bind(null,FT),m=Xa.bind(null,Ei);function _(ee,ae){let se,pe;return JE(ee)?(se=e.getRecordMatcher(ee),pe=ae):pe=ee,e.addRoute(pe,se)}function f(ee){const ae=e.getRecordMatcher(ee);ae&&e.removeRoute(ae)}function g(){return e.getRoutes().map(ee=>ee.record)}function S(ee){return!!e.getRecordMatcher(ee)}function b(ee,ae){if(ae=We({},ae||l.value),typeof ee=="string"){const E=Za(n,ee,ae.path),H=e.resolve({path:E.path},ae),Y=i.createHref(E.fullPath);return We(E,H,{params:m(H.params),hash:Ei(E.hash),redirectedFrom:void 0,href:Y})}let se;if(ee.path!=null)se=We({},ee,{path:Za(n,ee.path,ae.path).path});else{const E=We({},ee.params);for(const H in E)E[H]==null&&delete E[H];se=We({},ee,{params:u(E)}),ae.params=u(ae.params)}const pe=e.resolve(se,ae),ge=ee.hash||"";pe.params=d(m(pe.params));const M=YT(r,We({},ee,{hash:kT(ge),path:pe.path})),G=i.createHref(M);return We({fullPath:M,hash:ge,query:r===c_?ev(ee.query):ee.query||{}},pe,{redirectedFrom:void 0,href:G})}function h(ee){return typeof ee=="string"?Za(n,ee,l.value.path):We({},ee)}function v(ee,ae){if(c!==ee)return Dr(dt.NAVIGATION_CANCELLED,{from:ae,to:ee})}function R(ee){return D(ee)}function C(ee){return R(We(h(ee),{replace:!0}))}function x(ee,ae){const se=ee.matched[ee.matched.length-1];if(se&&se.redirect){const{redirect:pe}=se;let ge=typeof pe=="function"?pe(ee,ae):pe;return typeof ge=="string"&&(ge=ge.includes("?")||ge.includes("#")?ge=h(ge):{path:ge},ge.params={}),We({query:ee.query,hash:ee.hash,params:ge.path!=null?{}:ee.params},ge)}}function D(ee,ae){const se=c=b(ee),pe=l.value,ge=ee.state,M=ee.force,G=ee.replace===!0,E=x(se,pe);if(E)return D(We(h(E),{state:typeof E=="object"?We({},ge,E.state):ge,force:M,replace:G}),ae||se);const H=se;H.redirectedFrom=ae;let Y;return!M&&qT(r,pe,se)&&(Y=Dr(dt.NAVIGATION_DUPLICATED,{to:H,from:pe}),L(pe,pe,!0,!1)),(Y?Promise.resolve(Y):F(H,pe)).catch(O=>Nn(O)?Nn(O,dt.NAVIGATION_GUARD_REDIRECT)?O:re(O):V(O,H,pe)).then(O=>{if(O){if(Nn(O,dt.NAVIGATION_GUARD_REDIRECT))return D(We({replace:G},h(O.to),{state:typeof O.to=="object"?We({},ge,O.to.state):ge,force:M}),ae||H)}else O=I(H,pe,!0,G,ge);return X(H,pe,O),O})}function N(ee,ae){const se=v(ee,ae);return se?Promise.reject(se):Promise.resolve()}function y(ee){const ae=ce.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(ee):ee()}function F(ee,ae){let se;const[pe,ge,M]=tv(ee,ae);se=Ja(pe.reverse(),"beforeRouteLeave",ee,ae);for(const E of pe)E.leaveGuards.forEach(H=>{se.push($n(H,ee,ae))});const G=N.bind(null,ee,ae);return se.push(G),Ee(se).then(()=>{se=[];for(const E of a.list())se.push($n(E,ee,ae));return se.push(G),Ee(se)}).then(()=>{se=Ja(ge,"beforeRouteUpdate",ee,ae);for(const E of ge)E.updateGuards.forEach(H=>{se.push($n(H,ee,ae))});return se.push(G),Ee(se)}).then(()=>{se=[];for(const E of M)if(E.beforeEnter)if(sn(E.beforeEnter))for(const H of E.beforeEnter)se.push($n(H,ee,ae));else se.push($n(E.beforeEnter,ee,ae));return se.push(G),Ee(se)}).then(()=>(ee.matched.forEach(E=>E.enterCallbacks={}),se=Ja(M,"beforeRouteEnter",ee,ae,y),se.push(G),Ee(se))).then(()=>{se=[];for(const E of s.list())se.push($n(E,ee,ae));return se.push(G),Ee(se)}).catch(E=>Nn(E,dt.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function X(ee,ae,se){o.list().forEach(pe=>y(()=>pe(ee,ae,se)))}function I(ee,ae,se,pe,ge){const M=v(ee,ae);if(M)return M;const G=ae===Yn,E=hr?history.state:{};se&&(pe||G?i.replace(ee.fullPath,We({scroll:G&&E&&E.scroll},ge)):i.push(ee.fullPath,ge)),l.value=ee,L(ee,ae,se,G),re()}let Q;function T(){Q||(Q=i.listen((ee,ae,se)=>{if(!oe.listening)return;const pe=b(ee),ge=x(pe,oe.currentRoute.value);if(ge){D(We(ge,{replace:!0,force:!0}),pe).catch(di);return}c=pe;const M=l.value;hr&&XT(l_(M.fullPath,se.delta),Oa()),F(pe,M).catch(G=>Nn(G,dt.NAVIGATION_ABORTED|dt.NAVIGATION_CANCELLED)?G:Nn(G,dt.NAVIGATION_GUARD_REDIRECT)?(D(We(h(G.to),{force:!0}),pe).then(E=>{Nn(E,dt.NAVIGATION_ABORTED|dt.NAVIGATION_DUPLICATED)&&!se.delta&&se.type===od.pop&&i.go(-1,!1)}).catch(di),Promise.reject()):(se.delta&&i.go(-se.delta,!1),V(G,pe,M))).then(G=>{G=G||I(pe,M,!1),G&&(se.delta&&!Nn(G,dt.NAVIGATION_CANCELLED)?i.go(-se.delta,!1):se.type===od.pop&&Nn(G,dt.NAVIGATION_ABORTED|dt.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),X(pe,M,G)}).catch(di)}))}let w=$r(),ue=$r(),k;function V(ee,ae,se){re(ee);const pe=ue.list();return pe.length?pe.forEach(ge=>ge(ee,ae,se)):console.error(ee),Promise.reject(ee)}function q(){return k&&l.value!==Yn?Promise.resolve():new Promise((ee,ae)=>{w.add([ee,ae])})}function re(ee){return k||(k=!ee,T(),w.list().forEach(([ae,se])=>ee?se(ee):ae()),w.reset()),ee}function L(ee,ae,se,pe){const{scrollBehavior:ge}=t;if(!hr||!ge)return Promise.resolve();const M=!se&&ZT(l_(ee.fullPath,0))||(pe||!se)&&history.state&&history.state.scroll||null;return Ti().then(()=>ge(ee,ae,M)).then(G=>G&&QT(G)).catch(G=>V(G,ee,ae))}const B=ee=>i.go(ee);let te;const ce=new Set,oe={currentRoute:l,listening:!0,addRoute:_,removeRoute:f,clearRoutes:e.clearRoutes,hasRoute:S,getRoutes:g,resolve:b,options:t,push:R,replace:C,go:B,back:()=>B(-1),forward:()=>B(1),beforeEach:a.add,beforeResolve:s.add,afterEach:o.add,onError:ue.add,isReady:q,install(ee){ee.component("RouterLink",vv),ee.component("RouterView",Nv),ee.config.globalProperties.$router=oe,Object.defineProperty(ee.config.globalProperties,"$route",{enumerable:!0,get:()=>j(l)}),hr&&!te&&l.value===Yn&&(te=!0,R(i.location).catch(pe=>{}));const ae={};for(const pe in Yn)Object.defineProperty(ae,pe,{get:()=>l.value[pe],enumerable:!0});ee.provide(ya,oe),ee.provide(xd,Kf(ae)),ee.provide(ad,l);const se=ee.unmount;ce.add(ee),ee.unmount=function(){ce.delete(ee),ce.size<1&&(c=Yn,Q&&Q(),Q=null,l.value=Yn,te=!1,k=!1),se()}}};function Ee(ee){return ee.reduce((ae,se)=>ae.then(()=>y(se)),Promise.resolve())}return oe}function h_(t){const e=t.startsWith("/")?t:`/${t}`;return(e.endsWith("/")?e:`${e}/`).replace(/\/+/g,"/")}function Av(){return typeof document<"u"&&document.baseURI?h_(new URL(document.baseURI).pathname):h_("./")}const na=Av(),Iv=`${na==="/"?"":na.slice(0,-1)}/api/v1`;function xv(t){return new URL(t.replace(/^\//,""),window.location.origin+na).pathname}const ra=Iv;async function Ri(t,e={}){const n=t.startsWith("/")?`${ra}${t}`:`${ra}/${t}`,r={...e.headers};e.body&&!(e.body instanceof FormData)&&(r["Content-Type"]="application/json");const i=await fetch(n,{...e,headers:r,credentials:"include"});if(i.status===204)return null;const a=i.headers.get("content-type");let s;if(a&&a.includes("application/json")?s=await i.json():s=await i.text(),!i.ok){const o=new Error(s?.detail||s?.error||s?.message||`请求失败 (${i.status})`);throw o.status=i.status,o.data=s,o}return s}function _r(t){return Ri(t,{method:"GET"})}function Tn(t,e){return Ri(t,{method:"POST",body:e instanceof FormData?e:JSON.stringify(e)})}function T_(t,e){return Ri(t,{method:"PUT",body:e instanceof FormData?e:JSON.stringify(e)})}function rS(t,e){return Ri(t,{method:"PATCH",body:e instanceof FormData?e:JSON.stringify(e)})}function wd(t){return Ri(t,{method:"DELETE"})}async function Dv(){const t=xv("/setup");if(window.location.pathname===t)return!0;try{return(await(await fetch(`${ra}/init/status`)).json()).initialized?!0:(window.location.href=t,!1)}catch(e){return console.error("Failed to check system init status:",e),!0}}const es={login:t=>Tn("/auth/login",t),logout:()=>Tn("/auth/logout"),me:()=>_r("/auth/me")},Kn={list:t=>_r(`/skills${t?`?q=${encodeURIComponent(t)}`:""}`),get:t=>_r(`/skills/${t}`),create:t=>Tn("/skills",t),update:(t,e)=>T_(`/skills/${t}`,e),delete:(t,e)=>wd(`/skills/${t}?confirm=${encodeURIComponent(e)}`),upload:t=>Tn("/skills/publish",t),setHead:(t,e)=>T_(`/skills/${t}/head`,{version:e})},sr={list:t=>_r(`/skills/${t}/versions`),downloadUrl:(t,e)=>`${ra}/skills/${t}/versions/${e}/download`,update:(t,e,n)=>rS(`/skills/${t}/versions/${e}`,n)},v_={list:t=>_r(`/skills/${t}/collaborators`),add:(t,e)=>Tn(`/skills/${t}/collaborators`,{username:e}),remove:(t,e)=>wd(`/skills/${t}/collaborators/${e}`)},Jr={list:()=>_r("/users"),create:t=>Tn("/users",t),update:(t,e)=>rS(`/users/${t}`,e),resetPassword:(t,e)=>Tn(`/users/${t}/reset-password`,{new_password:e}),delete:t=>wd(`/users/${t}`)},Ci=VE("auth",()=>{const t=me(null),e=me(!1),n=me(!1),r=me(null),i=Ae(()=>!!t.value),a=Ae(()=>t.value?.role==="admin"),s=Ae(()=>t.value?.username||""),o=Ae(()=>t.value?.name||t.value?.username||"");async function l(_,f){n.value=!0,r.value=null;try{const g=await es.login({username:_,password:f});return t.value=g.user,e.value=!0,!0}catch(g){return r.value=g.message||"登录失败",!1}finally{n.value=!1}}async function c(){try{await es.logout()}finally{t.value=null,e.value=!0}}async function d(_={}){if(!_.force&&e.value)return!!t.value;try{const f=await es.me();return t.value=f,e.value=!0,!0}catch{return t.value=null,e.value=!0,!1}}async function u(_){if(!t.value)return!1;try{const f=await Jr.update(t.value.id,_);return t.value={...t.value,...f},!0}catch(f){return r.value=f.message||"更新失败",!1}}function m(){r.value=null}return{user:t,hasFetchedUser:e,isLoading:n,error:r,isLoggedIn:i,isAdmin:a,username:s,displayName:o,login:l,logout:c,fetchUser:d,updateProfile:u,clearError:m}}),wv={"nav.home":"首页","nav.publish":"发布","nav.settings":"账户设置","nav.admin":"用户管理","nav.logout":"登出","nav.login":"登录","btn.cancel":"取消","common.cancel":"取消","btn.save":"保存修改","btn.add":"添加","btn.edit":"编辑","btn.delete":"删除","btn.confirm":"确认删除","btn.remove":"移除","btn.close":"关闭","btn.reset":"确认重置","btn.back":"返回详情页","time.justNow":"刚刚","time.minutesAgo":"分钟前","time.hoursAgo":"小时前","time.daysAgo":"天前","state.loading":"加载中...","state.noDesc":"暂无描述","state.unknown":"未知","state.noData":"暂无数据","state.empty":"空目录","login.title":"登录 - Skill Base","login.subtitle":"// 内网 Skill 管理平台 · 需要凭证","login.submit":"执行登录","login.loading":"登录中...","login.errUsername":"请输入用户名","login.errPassword":"请输入密码","login.errFailed":"登录失败,请重试","login.unauthorized":"未授权,请重新登录","setup.title":"初始化 - Skill Base","setup.subtitle":"// 首次启动 · 请设置管理员账号","setup.usernameHint":"3-50 个字符","setup.passwordHint":"至少 6 个字符","setup.submit":"创建管理员账号","setup.loading":"创建中...","setup.success":"管理员账号创建成功,即将跳转到登录页...","setup.errUsername":"请输入用户名","setup.errUsernameLength":"用户名需要 3-50 个字符","setup.errPassword":"请输入密码","setup.errPasswordLength":"密码至少需要 6 个字符","setup.errPasswordMismatch":"两次输入的密码不一致","setup.errFailed":"创建失败,请重试","index.searchPlaceholder":"搜索 Skill...","index.fabTitle":"发布新版本","index.noSkills":"暂无 Skill,去发布第一个吧","index.noResults":'未找到包含 "{q}" 的 Skill',"index.noResultsHint":"试试其他关键词?","index.publishBtn":"发布 Skill","index.loadFailed":"加载失败: ","skill.title":"Skill 详情 - Skill Base","skill.breadcrumbHome":"首页","skill.loading":"加载中...","skill.fileDir":"文件目录","skill.selectFile":"选择文件以预览","skill.clickFile":"点击左侧文件查看内容","skill.htmlPreview":"HTML 预览","skill.mdSource":"Markdown 源码","skill.team":"管理团队","skill.addCollaborator":"+ 添加协作者","skill.deleteSkill":"删除 Skill","skill.versionHistory":"版本历史","skill.noVersions":"暂无版本记录","skill.owner":"负责人: ","skill.createdAt":"创建时间: ","skill.uploadedBy":"上传者: ","skill.noChangelog":"无更新说明","skill.selectVersion":"选择版本...","skill.latestTag":"(最新)","skill.download":"下载当前版本","skill.compare":"对比版本","skill.selectVersionFirst":"请先选择版本","skill.fileNotFound":"文件不存在","skill.binaryFile":"二进制文件,无法预览","skill.binaryHint":"请下载 zip 包后在本地查看","skill.previewFailed":"预览失败: ","skill.loadFailed":"加载 Skill 详情失败","skill.missingId":"缺少 Skill ID 参数","skill.loadVersionsFailed":"加载版本列表失败","skill.zipFailed":"下载 zip 失败","skill.versionFailed":"加载版本失败: ","skill.infoLoading":"Skill 信息加载中","skill.needTwoVersions":"至少需要两个版本才能对比","skill.loadInfoFailed":"加载 Skill 信息失败","skill.notFound":"Skill 不存在","skill.notFoundDesc":"该 Skill 可能已被删除或你没有访问权限","skill.backToHome":"返回首页","skill.collaborators":"协作者","skill.noFile":"暂无文件","skill.fullscreen":"全屏","skill.exitFullscreen":"退出全屏","skill.readmeNotFound":"README 不存在","skill.addCollaboratorFailed":"添加协作者失败","skill.removeCollaboratorFailed":"移除协作者失败","skill.deleteFailed":"删除 Skill 失败","skill.editVersionTitleDesc":"编辑版本介绍","skill.editVersionTitleChangelog":"编辑更新日志","skill.editVersionLabelDescription":"版本介绍 (Skill Description)","skill.editVersionLabelChangelog":"更新日志 (Changelog)","skill.editVersionPlaceholderDescription":"当前版本的介绍说明...","skill.editVersionPlaceholderChangelog":"更新日志...","skill.editVersionSuccess":"更新成功","skill.editVersionFailed":"更新失败","collab.modal":"添加协作者","collab.usernameLabel":"用户名","collab.usernamePlaceholder":"输入用户名","collab.owner":"所有者","collab.collaborator":"协作者","collab.disabled":" (已禁用)","collab.noUsers":"未找到用户","collab.enterUsername":"请输入用户名","collab.addSuccess":"协作者添加成功","collab.addFailed":"添加失败","collab.removeConfirm":"确定要移除该协作者吗?","collab.removeSuccess":"协作者已移除","collab.removeFailed":"移除失败","collab.deleteModal":"确认删除","collab.deleteWarning":"⚠️ 此操作不可恢复!将删除该 Skill 的所有版本和数据。","collab.deleteLabel":"请输入 Skill ID 确认删除:","collab.deleteConfirmBtn":"确认删除","collab.deleteWrongId":"请输入正确的 Skill ID 确认删除","collab.deleteSuccess":"Skill 已删除","collab.deleteFailed":"删除失败","publish.title":"发布新版本 - Skill Base","publish.breadcrumbCurrent":"发布新版本","publish.heading":"发布新版本","publish.uploadFile":"上传文件","publish.uploadLabel":"上传文件","publish.dropZoneText":"拖拽 Skill 文件夹或 zip 到此处","publish.dropText":"拖拽 Skill 文件夹或 zip 到此处","publish.dropZoneSubtitle":"或点击选择文件夹","publish.dropSubtitle":"或点击选择文件夹","publish.dropZoneHint":"Skill ID、名称、描述均从包内读取(文件夹名 / zip 文件名 + SKILL.md),不可手改","publish.dropHint":"Skill ID、名称、描述均从包内读取(文件夹名 / zip 文件名 + SKILL.md),不可手改","publish.or":"或","publish.selectZip":"选择 zip 文件...","publish.selectedFiles":"已选择文件","publish.clearFiles":"清除","publish.moreFiles":"还有 {count} 个文件...","publish.totalFiles":"共 {count} 个文件","publish.selectSkill":"选择 Skill","publish.createNewSkill":"-- 创建新 Skill --","publish.createNew":"-- 创建新 Skill --","publish.skillSelectHint":"更新已有 Skill 时请选择与包内 Skill ID 一致的一项;新建则保持「创建新 Skill」","publish.skillId":"Skill ID","publish.idLabel":"Skill ID","publish.skillIdPlaceholder":"上传文件夹或 zip 后自动填入","publish.idPlaceholder":"上传文件夹或 zip 后自动填入","publish.skillIdHint":"由文件夹名或 zip 文件名推导(小写字母、数字、连字符、下划线)","publish.idHint":"由文件夹名或 zip 文件名推导(小写字母、数字、连字符、下划线)","publish.skillName":"Skill 名称","publish.nameLabel":"Skill 名称","publish.skillNamePlaceholder":"上传后从 SKILL.md 读取","publish.namePlaceholder":"上传后从 SKILL.md 读取","publish.description":"描述","publish.descLabel":"描述","publish.descriptionPlaceholder":"上传后从 SKILL.md 读取","publish.descPlaceholder":"上传后从 SKILL.md 读取","publish.charCount":"字","publish.descHint":" / 500 字(与包内一致,截断至 500 字)","publish.changelog":"更新说明","publish.changelogLabel":"更新说明","publish.changelogPlaceholder":`描述本次更新的内容...
|
|
2
2
|
|
|
3
3
|
例如:
|
|
4
4
|
- 新增 xxx 功能
|
|
@@ -6,7 +6,7 @@ function OS(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&
|
|
|
6
6
|
|
|
7
7
|
Example:
|
|
8
8
|
- feat: add new feature
|
|
9
|
-
- fix: resolve issue`,"publish.cancelBtn":"Cancel","publish.publishBtn":"Publish New Version","publish.submitBtn":"Publish New Version","publish.publishing":"Publishing...","publish.uploading":"Uploading...","publish.preparing":"Preparing...","publish.compressing":"Compressing...","publish.completed":"Completed","publish.uploadFailed":"Upload failed","publish.zipError":"Failed to read zip file","publish.successTitle":"Published Successfully!","publish.viewDetail":"View Details","publish.publishAnother":"Publish Another","publish.filesCount":" files","publish.totalSize":"Total size: ","settings.title":"Account Settings - Skill Base","settings.heading":"Account Settings","settings.subtitle":"// Manage your personal info and credentials","settings.basicInfo":"Basic Info","settings.usernameLabel":"Username","settings.usernameHint":"// Username cannot be changed","settings.nameLabel":"Name","settings.namePlaceholder":"Enter your name","settings.nameHint":"// Optional, displayed as skill author","settings.saveBtn":"Save Changes","settings.saving":"Saving...","settings.saveSuccess":"Saved successfully","settings.saveFailed":"Failed to save","settings.cliSection":"CLI Access","settings.cliDesc":"// Get verification code to login with <code>skb</code> CLI tool.","settings.cliLink":"Get CLI Code","settings.passwordSection":"Change Password","settings.oldPassword":"Current Password","settings.newPassword":"New Password","settings.newPasswordHint":"// At least 6 characters","settings.confirmPassword":"Confirm New Password","settings.changePasswordBtn":"Change Password","settings.changing":"Changing...","settings.loadFailed":"Failed to load user info","settings.usernameLenError":"Username must be 1-50 characters","settings.updateSuccess":"Profile updated","settings.updateFailed":"Update failed","settings.noOldPassword":"Please enter current password","settings.newPassTooShort":"New password must be at least 6 characters","settings.passMismatch":"Passwords do not match","settings.changeSuccess":"Password changed successfully","settings.changeFailed":"Failed to change password","settings.wrongPassword":"Current password is incorrect","diff.title":"Version Diff - Skill Base","diff.breadcrumbCurrent":"Version Diff","diff.versionA":"Version A (Old):","diff.versionB":"Version B (New):","diff.selectVersion":"Select version...","diff.recalculate":"Recalculate","diff.file":"File:","diff.allFiles":"All Files","diff.sideBySide":"Side by Side","diff.unified":"Unified","diff.changedFiles":"Changed Files","diff.back":"Back to Detail","diff.missingId":"Missing Skill ID parameter","diff.loadInfoFailed":"Failed to load Skill info","diff.selectBoth":"Please select two versions to compare","diff.loadVersionsFailed":"Failed to load version list","diff.computing":"Computing differences...","diff.computeFailed":"Failed to compute differences","diff.empty":'Select two versions and click "Recalculate" to view differences',"diff.linesAdded":" lines","diff.linesRemoved":" lines","diff.filesChanged":" files changed","diff.added":"Added","diff.deleted":"Deleted","diff.modified":"Modified","diff.binaryDiff":"Binary file, cannot show differences","diff.pageTitle":"Version Diff - ","diff.old":"Old:","diff.new":"New:","diff.clearSelection":"Clear Selection","diff.split":"Split","diff.unifiedView":"Unified","diff.computingDiff":"Computing...","diff.loadFailed":"Load Failed","diff.backToHome":"Back to Home","file.title":"File Preview - Skill Base","file.breadcrumbFile":"File","file.currentVersion":"Current Version:","file.fileDir":"Files","file.selectFile":"Select a file to preview","file.clickFile":"Click a file on the left to view content","file.download":"Download","file.selectOtherVersion":"Select other version...","file.compare":"Compare","file.back":"Back to Detail","file.missingId":"Missing Skill ID parameter","file.loadFailed":"Load failed","file.binaryFile":"Binary file, cannot preview","file.binaryHint":"Download the zip package to view locally","file.largeFile":"File is large, only showing first 100KB","file.noFile":"Cannot read file","cliCode.title":"CLI Code - Skill Base","cliCode.heading":"CLI Verification Code","cliCode.subtitle":"Enter this code in the CLI tool to complete login","cliCode.generating":"Generating code...","cliCode.expires":" until expiration","cliCode.expired":"Expired","cliCode.copyBtn":"Copy Code","cliCode.copied":"Copied","cliCode.regenerate":"Regenerate","cliCode.hintTitle":"How to use:","cliCode.hintText":"Run <code>skb login</code> in the terminal, then enter the code above to complete CLI login.","cliCode.fromCli":"Please enter the code below after successful login","cliCode.generateFailed":"Failed to generate code","cliCode.genFailed":"Generation failed","cliCode.noCopy":"No code to copy","cliCode.copiedToast":"Code copied to clipboard","cliCode.copyFailed":"Copy failed, please try manual copy","cliCode.pressCopy":"Please press Ctrl+C to copy the code","cliCode.newGenerated":"New code generated","cliCode.secureToken":"Generating secure token...","cliCode.usage":"Usage:","cliCode.cliHint":"Run <code>skb login</code> in the terminal, then enter the code above to complete CLI login.","admin.title":"User Management - Skill Base","admin.heading":"User Management","admin.subtitle":"// Manage platform users and permissions","admin.userList":"User List","admin.addUser":"Add User","admin.searchPlaceholder":"Search username...","admin.allStatus":"All Status","admin.active":"Active","admin.disabled":"Disabled","admin.thUsername":"Username","admin.thName":"Name","admin.thRole":"Role","admin.thStatus":"Status","admin.thCreatedAt":"Created At","admin.thActions":"Actions","admin.emptyState":"No user data","admin.prevPage":"Previous","admin.nextPage":"Next","admin.addModal":"Add User","admin.editModal":"Edit User","admin.roleLabel":"Role","admin.roleAdmin":"Admin","admin.roleUser":"User","admin.statusLabel":"Account Status","admin.statusActive":"Account is active","admin.statusDisabled":"Account is disabled","admin.resetPassword":"Reset Password","admin.resetPasswordHint":"Set a new password for user","admin.doReset":"Reset","admin.cancelReset":"Cancel","admin.newPasswordPlaceholder":"Enter new password","admin.cancel":"Cancel","admin.confirmAdd":"Confirm Add","admin.confirmSave":"Save Changes","admin.editUser":"Edit User","admin.fetchError":"Failed to fetch users","admin.addSuccess":"User added successfully","admin.addError":"Failed to add user","admin.editSuccess":"User updated successfully","admin.editError":"Failed to update user","admin.resetSuccess":"Password reset successfully","admin.resetError":"Failed to reset password","admin.usernameRequired":"Please enter username","admin.passwordRequired":"Please enter password","admin.newPasswordRequired":"Please enter new password","admin.close":"Close","admin.name":"Name","admin.password":"Password","admin.generatePassword":"Generate Random Password","admin.toggleVisibility":"Toggle Visibility","admin.adding":"Adding...","admin.saving":"Saving...","admin.resetting":"Resetting...","admin.getUserFailed":"Failed to get user info","admin.loadUsersFailed":"Failed to load user list"};function Mv(t){const e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]+)"));return e&&e[2]?decodeURIComponent(e[2]):null}function kv(t,e,n=365){const r=new Date(Date.now()+n*864e5).toUTCString();document.cookie=t+"="+encodeURIComponent(e)+"; expires="+r+"; path=/"}function Pv(){try{const t=localStorage.getItem("skb-lang");if(t)return t}catch{}return Mv("skb-lang")}const ts=Pv();let cd;ts==="zh"||ts==="en"?cd=ts==="zh":cd=(navigator.language||navigator.languages?.[0]||"en").toLowerCase().startsWith("zh");const ns=me(cd?"zh":"en");function on(){const t=(n,r)=>{let a=(ns.value==="zh"?wv:Lv)[n]||n;return r&&Object.entries(r).forEach(([s,o])=>{a=a.replace(`{${s}}`,String(o))}),a},e=n=>{ns.value=n;try{localStorage.setItem("skb-lang",n)}catch{}kv("skb-lang",n),window.location.reload()};return{t,currentLang:Ae(()=>ns.value),setLang:e}}const Uv={class:"navbar sticky top-0 z-50 bg-base-950/80 backdrop-blur-md border-b border-base-800"},Fv={class:"container max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},Bv={class:"sb-nav-main"},Gv={class:"sb-nav-links"},Yv={class:"sb-nav-link-prefix"},qv={class:"sb-nav-controls"},Hv=["aria-expanded"],Vv={class:"navbar-user"},zv={class:"lang-switcher-menu"},$v={class:"username"},Wv={class:"navbar-user-menu"},Kv=["hidden"],Qv={class:"sb-nav-mobile-panel"},Xv={class:"sb-nav-mobile-links"},Zv={class:"sb-nav-mobile-marker"},jv=Ut({__name:"SkillBaseNav",props:{items:{default:()=>[{href:"/",label:"Home",i18n:"nav.home"},{href:"/publish",label:"Publish",i18n:"nav.publish"}]},currentPath:{default:"/"}},setup(t){const e=t,n=Mr(),r=Ci(),{currentLang:i,setLang:a}=on(),s=me(!1),o=me(!1),l=me(!1),c=Ae(()=>i.value),{t:d}=on(),u=Ae(()=>(!e.items||!Array.isArray(e.items)||e.items.length===0?[{href:"/",label:"Home",i18n:"nav.home"},{href:"/publish",label:"Publish",i18n:"nav.publish"}]:e.items).map(D=>({...D,label:D.i18n?d(D.i18n):D.label})));function m(x){if(!x)return"/";const[D]=x.split(/[?#]/);return(D||"").replace(/\/index\.html$/,"/").replace(/\/+$/,"")||"/"}function _(x){return m(x)===m(e.currentPath)}function f(){s.value=!s.value}function g(){s.value=!1}function S(){l.value=!l.value,l.value&&(o.value=!1)}function b(){o.value=!o.value,o.value&&(l.value=!1)}function h(x){a(x),l.value=!1}async function v(){await r.logout(),o.value=!1,g(),n.push("/login")}function R(){o.value=!1,l.value=!1}function C(){window.innerWidth>=768&&(s.value=!1)}return Ht(async()=>{document.addEventListener("click",R),window.addEventListener("resize",C),await r.fetchUser()}),ha(()=>{document.removeEventListener("click",R),window.removeEventListener("resize",C)}),(x,D)=>{const N=Bn("router-link");return le(),de("nav",Uv,[p("div",Fv,[p("div",Bv,[Be(N,{to:"/",class:"sb-nav-brand text-lg tracking-tight select-none cursor-pointer"},{default:st(()=>[...D[4]||(D[4]=[p("svg",{class:"sb-nav-brand-icon",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[p("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),p("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),p("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})],-1),p("span",{class:"font-mono text-neon-400 font-bold drop-shadow-[0_0_8px_rgba(0,255,163,0.4)]"},"Skill",-1),p("span",{class:"text-white font-bold"},"Base",-1)])]),_:1}),p("div",Gv,[(le(!0),de(Ue,null,Ct(u.value,y=>(le(),wn(N,{key:y.href,to:y.href,class:Ye(["sb-nav-link",{"is-active":_(y.href)}])},{default:st(()=>[p("span",Yv,Z(_(y.href)?"./":""),1),p("span",null,Z(y.label),1)]),_:2},1032,["to","class"]))),128))])]),p("div",qv,[p("button",{type:"button",class:"sb-nav-toggle","aria-expanded":s.value,"aria-label":"Toggle navigation",onClick:f},[...D[5]||(D[5]=[p("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("line",{x1:"4",y1:"7",x2:"20",y2:"7"}),p("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),p("line",{x1:"4",y1:"17",x2:"20",y2:"17"})],-1)])],8,Hv),p("div",Vv,[p("div",{class:Ye(["lang-switcher",{active:l.value}])},[p("button",{type:"button",class:"lang-switcher-trigger navbar-surface-btn",onClick:ft(S,["stop"])},[D[6]||(D[6]=p("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.2"},[p("circle",{cx:"12",cy:"12",r:"10"}),p("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),p("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})],-1)),p("span",null,Z(c.value==="zh"?"中文":"English"),1),D[7]||(D[7]=p("svg",{class:"lang-chevron",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[p("polyline",{points:"6 9 12 15 18 9"})],-1))]),p("div",zv,[p("button",{class:Ye(["lang-switcher-option",{active:c.value==="zh"}]),onClick:D[0]||(D[0]=y=>h("zh"))},"中文",2),p("button",{class:Ye(["lang-switcher-option",{active:c.value==="en"}]),onClick:D[1]||(D[1]=y=>h("en"))},"English",2)])],2),j(r).isLoggedIn?(le(),de("div",{key:0,class:Ye(["navbar-user-dropdown",{active:o.value}])},[p("button",{type:"button",class:"navbar-user-btn navbar-surface-btn",onClick:ft(b,["stop"])},[p("span",$v,Z(j(r).displayName),1),D[8]||(D[8]=p("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("polyline",{points:"6 9 12 15 18 9"})],-1))]),p("div",Wv,[Be(N,{to:"/settings",class:"navbar-user-menu-item",onClick:D[2]||(D[2]=y=>o.value=!1)},{default:st(()=>[D[9]||(D[9]=p("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("circle",{cx:"12",cy:"12",r:"3"}),p("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})],-1)),ve(" "+Z(j(d)("nav.settings")),1)]),_:1}),j(r).isAdmin?(le(),wn(N,{key:0,to:"/admin/users",class:"navbar-user-menu-item",onClick:D[3]||(D[3]=y=>o.value=!1)},{default:st(()=>[D[10]||(D[10]=p("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),p("circle",{cx:"9",cy:"7",r:"4"}),p("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),p("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})],-1)),ve(" "+Z(j(d)("nav.admin")),1)]),_:1})):ke("",!0),D[12]||(D[12]=p("div",{class:"navbar-user-menu-divider"},null,-1)),p("button",{class:"navbar-user-menu-item navbar-user-logout",onClick:v},[D[11]||(D[11]=p("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),p("polyline",{points:"16 17 21 12 16 7"}),p("line",{x1:"21",y1:"12",x2:"9",y2:"12"})],-1)),ve(" "+Z(j(d)("nav.logout")),1)])])],2)):(le(),wn(N,{key:1,to:"/login",class:"btn btn-primary btn-sm"},{default:st(()=>[ve(Z(j(d)("nav.login")),1)]),_:1}))])])]),p("div",{class:"sb-nav-mobile",hidden:!s.value},[p("div",Qv,[p("div",Xv,[(le(!0),de(Ue,null,Ct(u.value,y=>(le(),wn(N,{key:y.href,to:y.href,class:Ye(["sb-nav-mobile-link",{"is-active":_(y.href)}]),onClick:g},{default:st(()=>[p("span",Zv,Z(_(y.href)?"./":"--"),1),p("span",null,Z(y.label),1)]),_:2},1032,["to","class"]))),128))])])],8,Kv)])}}}),vn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},Jv=vn(jv,[["__scopeId","data-v-f78274dd"]]),eR={class:"toast-container"},tR={class:"toast__icon"},nR={key:0,viewBox:"0 0 20 20",fill:"currentColor"},rR={key:1,viewBox:"0 0 20 20",fill:"currentColor"},iR={key:2,viewBox:"0 0 20 20",fill:"currentColor"},aR={key:3,viewBox:"0 0 20 20",fill:"currentColor"},sR={class:"toast__content"},oR={class:"toast__message"},lR=["onClick"],cR=Ut({__name:"Toast",setup(t,{expose:e}){const n=me([]);let r=0;const i=(d,u="info",m=3e3)=>{const _=++r,f={id:_,message:d,type:u,duration:m};n.value.push(f),m>0&&setTimeout(()=>{a(_)},m)},a=d=>{const u=n.value.findIndex(m=>m.id===d);u>-1&&n.value.splice(u,1)};return e({show:i,success:(d,u)=>i(d,"success",u),error:(d,u)=>i(d,"error",u),warning:(d,u)=>i(d,"warning",u),info:(d,u)=>i(d,"info",u)}),(d,u)=>(le(),wn(Nb,{to:"body"},[p("div",eR,[Be(Jh,{name:"toast"},{default:st(()=>[(le(!0),de(Ue,null,Ct(n.value,m=>(le(),de("div",{key:m.id,class:Ye(["toast",[`toast--${m.type}`]])},[p("div",tR,[m.type==="success"?(le(),de("svg",nR,[...u[0]||(u[0]=[p("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"},null,-1)])])):m.type==="error"?(le(),de("svg",rR,[...u[1]||(u[1]=[p("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"},null,-1)])])):m.type==="warning"?(le(),de("svg",iR,[...u[2]||(u[2]=[p("path",{"fill-rule":"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"},null,-1)])])):(le(),de("svg",aR,[...u[3]||(u[3]=[p("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"},null,-1)])]))]),p("div",sR,[p("p",oR,Z(m.message),1)]),p("button",{class:"toast__close",onClick:_=>a(m.id)},[...u[4]||(u[4]=[p("svg",{viewBox:"0 0 20 20",fill:"currentColor"},[p("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)])],8,lR)],2))),128))]),_:1})])]))}}),dR=vn(cR,[["__scopeId","data-v-b4a0e035"]]),Jt=me(null);function uR(){return{setToastRef:s=>{Jt.value=s},show:(s,o="info",l)=>{Jt.value?.show(s,o,l)},success:(s,o)=>{Jt.value?.success(s,o)},error:(s,o)=>{Jt.value?.error(s,o)},warning:(s,o)=>{Jt.value?.warning(s,o)},info:(s,o)=>{Jt.value?.info(s,o)}}}const Ze={show:(t,e="info",n)=>{Jt.value?.show(t,e,n)},success:(t,e)=>{Jt.value?.success(t,e)},error:(t,e)=>{Jt.value?.error(t,e)},warning:(t,e)=>{Jt.value?.warning(t,e)},info:(t,e)=>{Jt.value?.info(t,e)}},_R={id:"app",class:"min-h-screen flex flex-col bg-base-950 text-zinc-300"},pR={class:"flex-1 min-h-0"},mR={key:1,class:"shrink-0 border-t border-zinc-800/80 py-4"},gR={class:"container max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},fR={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 text-[11px] font-mono text-zinc-500"},ER={class:"m-0"},SR=Ut({__name:"App",setup(t){const e=Na(),n=me(null),{setToastRef:r}=uR();Ht(()=>{n.value&&r(n.value)});const i=Ae(()=>!["landing","login","setup"].includes(e.name)),a=Ae(()=>e.path),s=new Date().getFullYear();return(o,l)=>{const c=Bn("router-view");return le(),de("div",_R,[i.value?(le(),wn(Jv,{key:0,"current-path":a.value},null,8,["current-path"])):ke("",!0),p("main",pR,[Be(c)]),i.value?(le(),de("footer",mR,[p("div",gR,[p("div",fR,[p("p",ER,"© "+Z(j(s))+" Skill Base",1),l[0]||(l[0]=p("div",{class:"flex flex-wrap items-center gap-x-4 gap-y-1"},[p("a",{href:"https://skillbase.reaidea.com",target:"_blank",rel:"noopener noreferrer",class:"text-zinc-500 hover:text-zinc-400 transition-colors"},"skillbase.reaidea.com"),p("span",{class:"text-zinc-700 hidden sm:inline","aria-hidden":"true"},"·"),p("a",{href:"https://github.com/ginuim/skill-base",target:"_blank",rel:"noopener noreferrer",class:"text-zinc-500 hover:text-zinc-400 transition-colors"},"GitHub")],-1))])])])):ke("",!0),Be(dR,{ref_key:"toastRef",ref:n},null,512)])}}}),Ld=VE("skills",()=>{const t=me([]),e=me(null),n=me(!1),r=me(!1),i=me(null),a=me(""),s=Ae(()=>[...t.value].sort((x,D)=>new Date(D.updated_at).getTime()-new Date(x.updated_at).getTime())),o=Ae(()=>{if(!a.value.trim())return s.value;const x=a.value.toLowerCase();return s.value.filter(D=>D.name.toLowerCase().includes(x)||D.description.toLowerCase().includes(x))}),l=Ae(()=>e.value?e.value.permission==="owner"||e.value.permission==="collaborator":!1),c=Ae(()=>e.value?.permission==="owner"),d=Ae(()=>e.value?.versions||[]);async function u(x){n.value=!0,i.value=null;try{const D=await Kn.list(x);return t.value=D.skills,!0}catch(D){return i.value=D.message||"获取 Skill 列表失败",!1}finally{n.value=!1}}async function m(x){r.value=!0,i.value=null,e.value=null;try{const D=await Kn.get(x);return e.value=D,!0}catch(D){return i.value=D.message||"获取 Skill 详情失败",e.value=null,!1}finally{r.value=!1}}async function _(x){i.value=null;try{const D=await Kn.create(x);return t.value.unshift(D),D}catch(D){throw i.value=D.message||"创建 Skill 失败",D}}async function f(x,D){i.value=null;try{const N=await Kn.update(x,D),y=t.value.findIndex(F=>F.id===x);return y!==-1&&(t.value[y]={...t.value[y],...N}),e.value?.id===x&&(e.value={...e.value,...N}),N}catch(N){throw i.value=N.message||"更新 Skill 失败",N}}async function g(x){i.value=null;try{return await Kn.delete(x),t.value=t.value.filter(D=>D.id!==x),e.value?.id===x&&(e.value=null),!0}catch(D){return i.value=D.message||"删除 Skill 失败",!1}}async function S(x){try{const D=await sr.list(x);return e.value?.id===x&&(e.value.versions=D.versions),D.versions}catch(D){return i.value=D.message||"获取版本列表失败",[]}}async function b(x,D){try{return await v_.add(x,D),await m(x),!0}catch(N){return i.value=N.message||"添加协作者失败",!1}}async function h(x,D){try{return await v_.remove(x,D),await m(x),!0}catch(N){return i.value=N.message||"移除协作者失败",!1}}function v(x){a.value=x}function R(){e.value=null}function C(){i.value=null}return{skills:t,currentSkill:e,isLoading:n,isLoadingDetail:r,error:i,searchQuery:a,sortedSkills:s,filteredSkills:o,canEditCurrentSkill:l,isOwner:c,currentVersions:d,fetchSkills:u,fetchSkill:m,createSkill:_,updateSkill:f,deleteSkill:g,fetchVersions:S,addCollaborator:b,removeCollaborator:h,setSearchQuery:v,clearCurrentSkill:R,clearError:C}});function iS(t){if(!t)return"";const e=new Date(t),r=new Date().getTime()-e.getTime(),i=Math.floor(r/(1e3*60*60*24));return i===0?"今天":i===1?"昨天":i<7?`${i} 天前`:i<30?`${Math.floor(i/7)} 周前`:i<365?`${Math.floor(i/30)} 个月前`:`${Math.floor(i/365)} 年前`}function bR(t){return t?new Date(t).toLocaleString("zh-CN",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):""}const hR={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-8"},TR={class:"page-header mb-8 text-center"},vR={class:"search-bar"},RR=["placeholder"],CR={key:0,class:"text-sm text-base-400 font-mono mb-6 flex items-center gap-2"},yR={id:"skill-list",class:"skill-grid pb-16"},NR={key:1,class:"empty-state",style:{"grid-column":"1 / -1"}},OR={key:0,class:"empty-state-text"},AR={class:"empty-state-text"},IR={class:"skill-card-header"},xR={class:"skill-card-name"},DR={class:"skill-card-desc"},wR={class:"skill-card-footer"},LR={class:"skill-card-meta"},MR={class:"skill-card-owner"},kR=Ut({__name:"HomeView",setup(t){const e=Ld(),{t:n}=on(),r=me(""),i=me(!0),a=Ae(()=>{if(!r.value)return e.skills;const l=r.value.toLowerCase();return e.skills.filter(c=>c.name.toLowerCase().includes(l)||c.description.toLowerCase().includes(l))});function s(){r.value=""}function o(l){return l?l.length>100?l.substring(0,100)+"...":l:n("state.noDesc")}return Ht(async()=>{await e.fetchSkills(),i.value=!1}),(l,c)=>{const d=Bn("router-link");return le(),de(Ue,null,[p("main",hR,[p("div",TR,[c[3]||(c[3]=p("div",{class:"inline-flex items-center justify-center gap-2 px-3 py-1 bg-base-900 border border-base-800 rounded-full mb-6 text-xs font-mono text-neon-400"},[p("span",{class:"w-2 h-2 rounded-full bg-neon-400 animate-pulse"}),ve(" Skill Directory ")],-1)),p("div",vR,[c[2]||(c[2]=p("div",{class:"search-icon-wrapper"},[p("span",null,"$"),p("span",null,"grep")],-1)),Ge(p("input",{type:"search",id:"searchInput",placeholder:`"${j(n)("index.searchPlaceholder")}"`,autocomplete:"off","onUpdate:modelValue":c[0]||(c[0]=u=>r.value=u)},null,8,RR),[[at,r.value]]),p("button",{type:"button",class:"clear-btn",id:"clearSearch",onClick:s},[...c[1]||(c[1]=[p("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])])]),j(e).skills.length>0?(le(),de("div",CR,[...c[4]||(c[4]=[p("span",{class:"text-neon-400"},"~",-1),p("span",{class:"opacity-50"},"/",-1),p("span",{class:"text-white"},"skills",-1),p("span",{class:"opacity-50 ml-2"},"ls -la",-1)])])):ke("",!0),p("div",yR,[i.value?(le(),de(Ue,{key:0},Ct(6,u=>p("div",{key:u,class:"skeleton-card"},[...c[5]||(c[5]=[p("div",{class:"skeleton-title"},null,-1),p("div",{class:"skeleton-desc"},null,-1),p("div",{class:"skeleton-desc-short"},null,-1),p("div",{class:"skeleton-footer"},null,-1)])])),64)):!a.value||a.value.length===0?(le(),de("div",NR,[c[7]||(c[7]=p("div",{class:"empty-state-icon"},"📦",-1)),r.value?(le(),de("p",OR,Z(j(n)("index.noResults",{q:r.value})),1)):(le(),de(Ue,{key:1},[p("p",AR,Z(j(n)("index.noSkills")),1),Be(d,{to:"/publish",class:"btn btn-primary mt-6"},{default:st(()=>[c[6]||(c[6]=p("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5",class:"mr-1"},[p("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),p("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)),ve(" "+Z(j(n)("index.publishBtn")),1)]),_:1})],64))])):(le(!0),de(Ue,{key:2},Ct(a.value,u=>(le(),wn(d,{key:u.id,to:`/skills/${u.id}`,class:"skill-card"},{default:st(()=>[p("div",IR,[p("h3",xR,Z(u.name),1)]),p("p",DR,Z(o(u.description)),1),p("div",wR,[p("div",LR,[p("span",MR,[c[8]||(c[8]=p("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),p("circle",{cx:"12",cy:"7",r:"4"})],-1)),ve(" "+Z(u.owner?.name||u.owner?.username||j(n)("state.unknown")),1)])]),p("span",null,Z(j(iS)(u.updated_at)),1)])]),_:2},1032,["to"]))),128))])]),Be(d,{to:"/publish",class:"fab",title:j(n)("index.fabTitle")},{default:st(()=>[...c[9]||(c[9]=[p("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),p("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)])]),_:1},8,["title"])],64)}}}),PR=vn(kR,[["__scopeId","data-v-da3c9440"]]),UR={class:"login-container"},FR={class:"login-shell"},BR={class:"login-card"},GR={class:"login-header"},YR={class:"login-subtitle"},qR={key:0,class:"login-error",role:"alert"},HR={class:"login-field"},VR=["disabled"],zR={class:"login-field"},$R=["disabled"],WR={class:"login-actions"},KR=["disabled"],QR={key:0,class:"btn-devtools-icon",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},XR={key:1,class:"spinner"},ZR=Ut({__name:"LoginView",setup(t){const e=Na(),n=Mr(),r=Ci(),{t:i}=on(),a=me(""),s=me("");Ht(async()=>{if(await Dv(),await r.fetchUser())if(e.query.from==="cli")n.push("/cli-code?from=cli");else{const c=e.query.redirect||"/";n.push(c)}});async function o(){if(r.clearError(),await r.login(a.value,s.value))if(e.query.from==="cli")n.push("/cli-code?from=cli");else{const d=e.query.redirect||"/";n.push(d)}}return(l,c)=>(le(),de("div",UR,[p("div",FR,[c[7]||(c[7]=ur('<div class="login-brand" data-v-66bc928a><span class="login-brand-icon" data-v-66bc928a><svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true" data-v-66bc928a><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" data-v-66bc928a></path><polyline points="3.27 6.96 12 12.01 20.73 6.96" data-v-66bc928a></polyline><line x1="12" y1="22.08" x2="12" y2="12" data-v-66bc928a></line></svg></span><span class="login-brand-text" data-v-66bc928a>Skill Base</span></div>',1)),p("div",BR,[c[6]||(c[6]=p("div",{class:"login-card-badge"},"AUTH-REQ",-1)),p("div",GR,[c[2]||(c[2]=p("h1",{class:"login-title"},[p("span",{class:"login-title-prompt"},">"),ve(" Sign In ")],-1)),p("p",YR,Z(j(i)("login.subtitle")),1)]),j(r).error?(le(),de("div",qR,Z(j(r).error),1)):ke("",!0),p("form",{onSubmit:ft(o,["prevent"]),class:"login-form"},[p("div",HR,[c[3]||(c[3]=p("label",{for:"username",class:"login-label"},[p("span",{class:"login-keyword"},"const"),ve(),p("span",{class:"login-label-name"},"username"),ve(),p("span",{class:"login-equals"},"=")],-1)),p("div",null,[Ge(p("input",{type:"text",id:"username","onUpdate:modelValue":c[0]||(c[0]=d=>a.value=d),placeholder:'"operator"',autocomplete:"username",required:"",disabled:j(r).isLoading,class:"login-input"},null,8,VR),[[at,a.value]])])]),p("div",zR,[c[4]||(c[4]=p("label",{for:"password",class:"login-label"},[p("span",{class:"login-keyword"},"const"),ve(),p("span",{class:"login-label-name"},"password"),ve(),p("span",{class:"login-equals"},"=")],-1)),p("div",null,[Ge(p("input",{type:"password",id:"password","onUpdate:modelValue":c[1]||(c[1]=d=>s.value=d),placeholder:"••••••••",autocomplete:"current-password",required:"",disabled:j(r).isLoading,class:"login-input"},null,8,$R),[[at,s.value]])])]),p("div",WR,[p("button",{type:"submit",disabled:j(r).isLoading,class:"login-submit"},[j(r).isLoading?ke("",!0):(le(),de("svg",QR,[...c[5]||(c[5]=[p("polygon",{points:"5 3 19 12 5 21 5 3"},null,-1)])])),j(r).isLoading?(le(),de("span",XR)):ke("",!0),p("span",null,Z(j(r).isLoading?j(i)("login.loading"):j(i)("login.submit")),1)],8,KR)])],32)]),c[8]||(c[8]=p("div",{class:"login-status"},[p("span",{class:"login-status-dot"}),p("span",{class:"login-status-text"},"Secure Connection Established")],-1))])]))}}),jR=vn(ZR,[["__scopeId","data-v-66bc928a"]]),JR="modulepreload",eC=function(t,e){return new URL(t,e).href},R_={},tC=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let c=function(d){return Promise.all(d.map(u=>Promise.resolve(u).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};const s=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");i=c(n.map(d=>{if(d=eC(d,r),d in R_)return;R_[d]=!0;const u=d.endsWith(".css"),m=u?'[rel="stylesheet"]':"";if(r)for(let f=s.length-1;f>=0;f--){const g=s[f];if(g.href===d&&(!u||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${m}`))return;const _=document.createElement("link");if(_.rel=u?"stylesheet":JR,u||(_.as="script"),_.crossOrigin="",_.href=d,l&&_.setAttribute("nonce",l),document.head.appendChild(_),u)return new Promise((f,g)=>{_.addEventListener("load",f),_.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return i.then(s=>{for(const o of s||[])o.status==="rejected"&&a(o.reason);return e().catch(a)})};function Md(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var mr=Md();function aS(t){mr=t}var ir={exec:()=>null};function qe(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(kt.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,e)};return r}var nC=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),kt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},rC=/^(?:[ \t]*(?:\n|$))+/,iC=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,aC=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,yi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,sC=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,kd=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,sS=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,oS=qe(sS).replace(/bull/g,kd).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),oC=qe(sS).replace(/bull/g,kd).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Pd=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,lC=/^[^\n]+/,Ud=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,cC=qe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ud).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),dC=qe(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,kd).getRegex(),Aa="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Fd=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,uC=qe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Fd).replace("tag",Aa).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lS=qe(Pd).replace("hr",yi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Aa).getRegex(),_C=qe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",lS).getRegex(),Bd={blockquote:_C,code:iC,def:cC,fences:aC,heading:sC,hr:yi,html:uC,lheading:oS,list:dC,newline:rC,paragraph:lS,table:ir,text:lC},C_=qe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",yi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Aa).getRegex(),pC={...Bd,lheading:oC,table:C_,paragraph:qe(Pd).replace("hr",yi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",C_).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Aa).getRegex()},mC={...Bd,html:qe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Fd).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ir,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:qe(Pd).replace("hr",yi).replace("heading",` *#{1,6} *[^
|
|
9
|
+
- fix: resolve issue`,"publish.cancelBtn":"Cancel","publish.publishBtn":"Publish New Version","publish.submitBtn":"Publish New Version","publish.publishing":"Publishing...","publish.uploading":"Uploading...","publish.preparing":"Preparing...","publish.compressing":"Compressing...","publish.completed":"Completed","publish.uploadFailed":"Upload failed","publish.zipError":"Failed to read zip file","publish.successTitle":"Published Successfully!","publish.viewDetail":"View Details","publish.publishAnother":"Publish Another","publish.filesCount":" files","publish.totalSize":"Total size: ","settings.title":"Account Settings - Skill Base","settings.heading":"Account Settings","settings.subtitle":"// Manage your personal info and credentials","settings.basicInfo":"Basic Info","settings.usernameLabel":"Username","settings.usernameHint":"// Username cannot be changed","settings.nameLabel":"Name","settings.namePlaceholder":"Enter your name","settings.nameHint":"// Optional, displayed as skill author","settings.saveBtn":"Save Changes","settings.saving":"Saving...","settings.saveSuccess":"Saved successfully","settings.saveFailed":"Failed to save","settings.cliSection":"CLI Access","settings.cliDesc":"// Get verification code to login with <code>skb</code> CLI tool.","settings.cliLink":"Get CLI Code","settings.passwordSection":"Change Password","settings.oldPassword":"Current Password","settings.newPassword":"New Password","settings.newPasswordHint":"// At least 6 characters","settings.confirmPassword":"Confirm New Password","settings.changePasswordBtn":"Change Password","settings.changing":"Changing...","settings.loadFailed":"Failed to load user info","settings.usernameLenError":"Username must be 1-50 characters","settings.updateSuccess":"Profile updated","settings.updateFailed":"Update failed","settings.noOldPassword":"Please enter current password","settings.newPassTooShort":"New password must be at least 6 characters","settings.passMismatch":"Passwords do not match","settings.changeSuccess":"Password changed successfully","settings.changeFailed":"Failed to change password","settings.wrongPassword":"Current password is incorrect","diff.title":"Version Diff - Skill Base","diff.breadcrumbCurrent":"Version Diff","diff.versionA":"Version A (Old):","diff.versionB":"Version B (New):","diff.selectVersion":"Select version...","diff.recalculate":"Recalculate","diff.file":"File:","diff.allFiles":"All Files","diff.sideBySide":"Side by Side","diff.unified":"Unified","diff.changedFiles":"Changed Files","diff.back":"Back to Detail","diff.missingId":"Missing Skill ID parameter","diff.loadInfoFailed":"Failed to load Skill info","diff.selectBoth":"Please select two versions to compare","diff.loadVersionsFailed":"Failed to load version list","diff.computing":"Computing differences...","diff.computeFailed":"Failed to compute differences","diff.empty":'Select two versions and click "Recalculate" to view differences',"diff.linesAdded":" lines","diff.linesRemoved":" lines","diff.filesChanged":" files changed","diff.added":"Added","diff.deleted":"Deleted","diff.modified":"Modified","diff.binaryDiff":"Binary file, cannot show differences","diff.pageTitle":"Version Diff - ","diff.old":"Old:","diff.new":"New:","diff.clearSelection":"Clear Selection","diff.split":"Split","diff.unifiedView":"Unified","diff.computingDiff":"Computing...","diff.loadFailed":"Load Failed","diff.backToHome":"Back to Home","file.title":"File Preview - Skill Base","file.breadcrumbFile":"File","file.currentVersion":"Current Version:","file.fileDir":"Files","file.selectFile":"Select a file to preview","file.clickFile":"Click a file on the left to view content","file.download":"Download","file.selectOtherVersion":"Select other version...","file.compare":"Compare","file.back":"Back to Detail","file.missingId":"Missing Skill ID parameter","file.loadFailed":"Load failed","file.binaryFile":"Binary file, cannot preview","file.binaryHint":"Download the zip package to view locally","file.largeFile":"File is large, only showing first 100KB","file.noFile":"Cannot read file","cliCode.title":"CLI Code - Skill Base","cliCode.heading":"CLI Verification Code","cliCode.subtitle":"Enter this code in the CLI tool to complete login","cliCode.generating":"Generating code...","cliCode.expires":" until expiration","cliCode.expired":"Expired","cliCode.copyBtn":"Copy Code","cliCode.copied":"Copied","cliCode.regenerate":"Regenerate","cliCode.hintTitle":"How to use:","cliCode.hintText":"Run <code>skb login</code> in the terminal, then enter the code above to complete CLI login.","cliCode.fromCli":"Please enter the code below after successful login","cliCode.generateFailed":"Failed to generate code","cliCode.genFailed":"Generation failed","cliCode.noCopy":"No code to copy","cliCode.copiedToast":"Code copied to clipboard","cliCode.copyFailed":"Copy failed, please try manual copy","cliCode.pressCopy":"Please press Ctrl+C to copy the code","cliCode.newGenerated":"New code generated","cliCode.secureToken":"Generating secure token...","cliCode.usage":"Usage:","cliCode.cliHint":"Run <code>skb login</code> in the terminal, then enter the code above to complete CLI login.","admin.title":"User Management - Skill Base","admin.heading":"User Management","admin.subtitle":"// Manage platform users and permissions","admin.userList":"User List","admin.addUser":"Add User","admin.searchPlaceholder":"Search username...","admin.allStatus":"All Status","admin.active":"Active","admin.disabled":"Disabled","admin.thUsername":"Username","admin.thName":"Name","admin.thRole":"Role","admin.thStatus":"Status","admin.thCreatedAt":"Created At","admin.thActions":"Actions","admin.emptyState":"No user data","admin.prevPage":"Previous","admin.nextPage":"Next","admin.addModal":"Add User","admin.editModal":"Edit User","admin.roleLabel":"Role","admin.roleAdmin":"Admin","admin.roleUser":"User","admin.statusLabel":"Account Status","admin.statusActive":"Account is active","admin.statusDisabled":"Account is disabled","admin.resetPassword":"Reset Password","admin.resetPasswordHint":"Set a new password for user","admin.doReset":"Reset","admin.cancelReset":"Cancel","admin.newPasswordPlaceholder":"Enter new password","admin.cancel":"Cancel","admin.confirmAdd":"Confirm Add","admin.confirmSave":"Save Changes","admin.editUser":"Edit User","admin.fetchError":"Failed to fetch users","admin.addSuccess":"User added successfully","admin.addError":"Failed to add user","admin.editSuccess":"User updated successfully","admin.editError":"Failed to update user","admin.resetSuccess":"Password reset successfully","admin.resetError":"Failed to reset password","admin.usernameRequired":"Please enter username","admin.passwordRequired":"Please enter password","admin.newPasswordRequired":"Please enter new password","admin.close":"Close","admin.name":"Name","admin.password":"Password","admin.generatePassword":"Generate Random Password","admin.toggleVisibility":"Toggle Visibility","admin.adding":"Adding...","admin.saving":"Saving...","admin.resetting":"Resetting...","admin.getUserFailed":"Failed to get user info","admin.loadUsersFailed":"Failed to load user list"};function Mv(t){const e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]+)"));return e&&e[2]?decodeURIComponent(e[2]):null}function kv(t,e,n=365){const r=new Date(Date.now()+n*864e5).toUTCString();document.cookie=t+"="+encodeURIComponent(e)+"; expires="+r+"; path=/"}function Pv(){try{const t=localStorage.getItem("skb-lang");if(t)return t}catch{}return Mv("skb-lang")}const ts=Pv();let cd;ts==="zh"||ts==="en"?cd=ts==="zh":cd=(navigator.language||navigator.languages?.[0]||"en").toLowerCase().startsWith("zh");const ns=me(cd?"zh":"en");function on(){const t=(n,r)=>{let a=(ns.value==="zh"?wv:Lv)[n]||n;return r&&Object.entries(r).forEach(([s,o])=>{a=a.replace(`{${s}}`,String(o))}),a},e=n=>{ns.value=n;try{localStorage.setItem("skb-lang",n)}catch{}kv("skb-lang",n),window.location.reload()};return{t,currentLang:Ae(()=>ns.value),setLang:e}}const Uv={class:"navbar sticky top-0 z-50 bg-base-950/80 backdrop-blur-md border-b border-base-800"},Fv={class:"container max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},Bv={class:"sb-nav-main"},Gv={class:"sb-nav-links"},Yv={class:"sb-nav-link-prefix"},qv={class:"sb-nav-controls"},Hv=["aria-expanded"],Vv={class:"navbar-user"},zv={class:"lang-switcher-menu"},$v={class:"username"},Wv={class:"navbar-user-menu"},Kv=["hidden"],Qv={class:"sb-nav-mobile-panel"},Xv={class:"sb-nav-mobile-links"},Zv={class:"sb-nav-mobile-marker"},jv=Ut({__name:"SkillBaseNav",props:{items:{default:()=>[{href:"/",label:"Home",i18n:"nav.home"},{href:"/publish",label:"Publish",i18n:"nav.publish"}]},currentPath:{default:"/"}},setup(t){const e=t,n=Mr(),r=Ci(),{currentLang:i,setLang:a}=on(),s=me(!1),o=me(!1),l=me(!1),c=Ae(()=>i.value),{t:d}=on(),u=Ae(()=>(!e.items||!Array.isArray(e.items)||e.items.length===0?[{href:"/",label:"Home",i18n:"nav.home"},{href:"/publish",label:"Publish",i18n:"nav.publish"}]:e.items).map(D=>({...D,label:D.i18n?d(D.i18n):D.label})));function m(x){if(!x)return"/";const[D]=x.split(/[?#]/);return(D||"").replace(/\/index\.html$/,"/").replace(/\/+$/,"")||"/"}function _(x){return m(x)===m(e.currentPath)}function f(){s.value=!s.value}function g(){s.value=!1}function S(){l.value=!l.value,l.value&&(o.value=!1)}function b(){o.value=!o.value,o.value&&(l.value=!1)}function h(x){a(x),l.value=!1}async function v(){await r.logout(),o.value=!1,g(),n.push("/login")}function R(){o.value=!1,l.value=!1}function C(){window.innerWidth>=768&&(s.value=!1)}return Ht(async()=>{document.addEventListener("click",R),window.addEventListener("resize",C),await r.fetchUser()}),ha(()=>{document.removeEventListener("click",R),window.removeEventListener("resize",C)}),(x,D)=>{const N=Bn("router-link");return le(),de("nav",Uv,[p("div",Fv,[p("div",Bv,[Be(N,{to:"/",class:"sb-nav-brand text-lg tracking-tight select-none cursor-pointer"},{default:st(()=>[...D[4]||(D[4]=[p("svg",{class:"sb-nav-brand-icon",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[p("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),p("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),p("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})],-1),p("span",{class:"font-mono text-neon-400 font-bold drop-shadow-[0_0_8px_rgba(0,255,163,0.4)]"},"Skill",-1),p("span",{class:"text-white font-bold"},"Base",-1)])]),_:1}),p("div",Gv,[(le(!0),de(Ue,null,Ct(u.value,y=>(le(),wn(N,{key:y.href,to:y.href,class:Ye(["sb-nav-link",{"is-active":_(y.href)}])},{default:st(()=>[p("span",Yv,Z(_(y.href)?"./":""),1),p("span",null,Z(y.label),1)]),_:2},1032,["to","class"]))),128))])]),p("div",qv,[p("button",{type:"button",class:"sb-nav-toggle","aria-expanded":s.value,"aria-label":"Toggle navigation",onClick:f},[...D[5]||(D[5]=[p("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("line",{x1:"4",y1:"7",x2:"20",y2:"7"}),p("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),p("line",{x1:"4",y1:"17",x2:"20",y2:"17"})],-1)])],8,Hv),p("div",Vv,[p("div",{class:Ye(["lang-switcher",{active:l.value}])},[p("button",{type:"button",class:"lang-switcher-trigger navbar-surface-btn",onClick:ft(S,["stop"])},[D[6]||(D[6]=p("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.2"},[p("circle",{cx:"12",cy:"12",r:"10"}),p("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),p("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})],-1)),p("span",null,Z(c.value==="zh"?"中文":"English"),1),D[7]||(D[7]=p("svg",{class:"lang-chevron",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[p("polyline",{points:"6 9 12 15 18 9"})],-1))]),p("div",zv,[p("button",{class:Ye(["lang-switcher-option",{active:c.value==="zh"}]),onClick:D[0]||(D[0]=y=>h("zh"))},"中文",2),p("button",{class:Ye(["lang-switcher-option",{active:c.value==="en"}]),onClick:D[1]||(D[1]=y=>h("en"))},"English",2)])],2),j(r).isLoggedIn?(le(),de("div",{key:0,class:Ye(["navbar-user-dropdown",{active:o.value}])},[p("button",{type:"button",class:"navbar-user-btn navbar-surface-btn",onClick:ft(b,["stop"])},[p("span",$v,Z(j(r).displayName),1),D[8]||(D[8]=p("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("polyline",{points:"6 9 12 15 18 9"})],-1))]),p("div",Wv,[Be(N,{to:"/settings",class:"navbar-user-menu-item",onClick:D[2]||(D[2]=y=>o.value=!1)},{default:st(()=>[D[9]||(D[9]=p("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("circle",{cx:"12",cy:"12",r:"3"}),p("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})],-1)),ve(" "+Z(j(d)("nav.settings")),1)]),_:1}),j(r).isAdmin?(le(),wn(N,{key:0,to:"/admin/users",class:"navbar-user-menu-item",onClick:D[3]||(D[3]=y=>o.value=!1)},{default:st(()=>[D[10]||(D[10]=p("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),p("circle",{cx:"9",cy:"7",r:"4"}),p("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),p("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})],-1)),ve(" "+Z(j(d)("nav.admin")),1)]),_:1})):ke("",!0),D[12]||(D[12]=p("div",{class:"navbar-user-menu-divider"},null,-1)),p("button",{class:"navbar-user-menu-item navbar-user-logout",onClick:v},[D[11]||(D[11]=p("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),p("polyline",{points:"16 17 21 12 16 7"}),p("line",{x1:"21",y1:"12",x2:"9",y2:"12"})],-1)),ve(" "+Z(j(d)("nav.logout")),1)])])],2)):(le(),wn(N,{key:1,to:"/login",class:"btn btn-primary btn-sm"},{default:st(()=>[ve(Z(j(d)("nav.login")),1)]),_:1}))])])]),p("div",{class:"sb-nav-mobile",hidden:!s.value},[p("div",Qv,[p("div",Xv,[(le(!0),de(Ue,null,Ct(u.value,y=>(le(),wn(N,{key:y.href,to:y.href,class:Ye(["sb-nav-mobile-link",{"is-active":_(y.href)}]),onClick:g},{default:st(()=>[p("span",Zv,Z(_(y.href)?"./":"--"),1),p("span",null,Z(y.label),1)]),_:2},1032,["to","class"]))),128))])])],8,Kv)])}}}),vn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},Jv=vn(jv,[["__scopeId","data-v-f78274dd"]]),eR={class:"toast-container"},tR={class:"toast__icon"},nR={key:0,viewBox:"0 0 20 20",fill:"currentColor"},rR={key:1,viewBox:"0 0 20 20",fill:"currentColor"},iR={key:2,viewBox:"0 0 20 20",fill:"currentColor"},aR={key:3,viewBox:"0 0 20 20",fill:"currentColor"},sR={class:"toast__content"},oR={class:"toast__message"},lR=["onClick"],cR=Ut({__name:"Toast",setup(t,{expose:e}){const n=me([]);let r=0;const i=(d,u="info",m=3e3)=>{const _=++r,f={id:_,message:d,type:u,duration:m};n.value.push(f),m>0&&setTimeout(()=>{a(_)},m)},a=d=>{const u=n.value.findIndex(m=>m.id===d);u>-1&&n.value.splice(u,1)};return e({show:i,success:(d,u)=>i(d,"success",u),error:(d,u)=>i(d,"error",u),warning:(d,u)=>i(d,"warning",u),info:(d,u)=>i(d,"info",u)}),(d,u)=>(le(),wn(Nb,{to:"body"},[p("div",eR,[Be(Jh,{name:"toast"},{default:st(()=>[(le(!0),de(Ue,null,Ct(n.value,m=>(le(),de("div",{key:m.id,class:Ye(["toast",[`toast--${m.type}`]])},[p("div",tR,[m.type==="success"?(le(),de("svg",nR,[...u[0]||(u[0]=[p("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"},null,-1)])])):m.type==="error"?(le(),de("svg",rR,[...u[1]||(u[1]=[p("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"},null,-1)])])):m.type==="warning"?(le(),de("svg",iR,[...u[2]||(u[2]=[p("path",{"fill-rule":"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"},null,-1)])])):(le(),de("svg",aR,[...u[3]||(u[3]=[p("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"},null,-1)])]))]),p("div",sR,[p("p",oR,Z(m.message),1)]),p("button",{class:"toast__close",onClick:_=>a(m.id)},[...u[4]||(u[4]=[p("svg",{viewBox:"0 0 20 20",fill:"currentColor"},[p("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)])],8,lR)],2))),128))]),_:1})])]))}}),dR=vn(cR,[["__scopeId","data-v-b4a0e035"]]),Jt=me(null);function uR(){return{setToastRef:s=>{Jt.value=s},show:(s,o="info",l)=>{Jt.value?.show(s,o,l)},success:(s,o)=>{Jt.value?.success(s,o)},error:(s,o)=>{Jt.value?.error(s,o)},warning:(s,o)=>{Jt.value?.warning(s,o)},info:(s,o)=>{Jt.value?.info(s,o)}}}const Ze={show:(t,e="info",n)=>{Jt.value?.show(t,e,n)},success:(t,e)=>{Jt.value?.success(t,e)},error:(t,e)=>{Jt.value?.error(t,e)},warning:(t,e)=>{Jt.value?.warning(t,e)},info:(t,e)=>{Jt.value?.info(t,e)}},_R={id:"app",class:"min-h-screen flex flex-col bg-base-950 text-zinc-300"},pR={class:"flex-1 min-h-0"},mR={key:1,class:"shrink-0 border-t border-zinc-800/80 py-4"},gR={class:"container max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},fR={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 text-[11px] font-mono text-zinc-500"},ER={class:"m-0"},SR=Ut({__name:"App",setup(t){const e=Na(),n=me(null),{setToastRef:r}=uR();Ht(()=>{n.value&&r(n.value)});const i=Ae(()=>!["landing","login","setup"].includes(e.name)),a=Ae(()=>e.path),s=new Date().getFullYear();return(o,l)=>{const c=Bn("router-view");return le(),de("div",_R,[i.value?(le(),wn(Jv,{key:0,"current-path":a.value},null,8,["current-path"])):ke("",!0),p("main",pR,[Be(c)]),i.value?(le(),de("footer",mR,[p("div",gR,[p("div",fR,[p("p",ER,"© "+Z(j(s))+" Skill Base",1),l[0]||(l[0]=p("div",{class:"flex flex-wrap items-center gap-x-4 gap-y-1"},[p("a",{href:"https://skillbase.reaidea.com",target:"_blank",rel:"noopener noreferrer",class:"text-zinc-500 hover:text-zinc-400 transition-colors"},"skillbase.reaidea.com"),p("span",{class:"text-zinc-700 hidden sm:inline","aria-hidden":"true"},"·"),p("a",{href:"https://github.com/ginuim/skill-base",target:"_blank",rel:"noopener noreferrer",class:"text-zinc-500 hover:text-zinc-400 transition-colors"},"GitHub")],-1))])])])):ke("",!0),Be(dR,{ref_key:"toastRef",ref:n},null,512)])}}}),Ld=VE("skills",()=>{const t=me([]),e=me(null),n=me(!1),r=me(!1),i=me(null),a=me(""),s=Ae(()=>[...t.value].sort((x,D)=>new Date(D.updated_at).getTime()-new Date(x.updated_at).getTime())),o=Ae(()=>{if(!a.value.trim())return s.value;const x=a.value.toLowerCase();return s.value.filter(D=>D.name.toLowerCase().includes(x)||D.description.toLowerCase().includes(x))}),l=Ae(()=>e.value?e.value.permission==="owner"||e.value.permission==="collaborator":!1),c=Ae(()=>e.value?.permission==="owner"),d=Ae(()=>e.value?.versions||[]);async function u(x){n.value=!0,i.value=null;try{const D=await Kn.list(x);return t.value=D.skills,!0}catch(D){return i.value=D.message||"获取 Skill 列表失败",!1}finally{n.value=!1}}async function m(x){r.value=!0,i.value=null,e.value=null;try{const D=await Kn.get(x);return e.value=D,!0}catch(D){return i.value=D.message||"获取 Skill 详情失败",e.value=null,!1}finally{r.value=!1}}async function _(x){i.value=null;try{const D=await Kn.create(x);return t.value.unshift(D),D}catch(D){throw i.value=D.message||"创建 Skill 失败",D}}async function f(x,D){i.value=null;try{const N=await Kn.update(x,D),y=t.value.findIndex(F=>F.id===x);return y!==-1&&(t.value[y]={...t.value[y],...N}),e.value?.id===x&&(e.value={...e.value,...N}),N}catch(N){throw i.value=N.message||"更新 Skill 失败",N}}async function g(x,D){i.value=null;try{return await Kn.delete(x,D),t.value=t.value.filter(N=>N.id!==x),e.value?.id===x&&(e.value=null),!0}catch(N){return i.value=N.message||"删除 Skill 失败",!1}}async function S(x){try{const D=await sr.list(x);return e.value?.id===x&&(e.value.versions=D.versions),D.versions}catch(D){return i.value=D.message||"获取版本列表失败",[]}}async function b(x,D){try{return await v_.add(x,D),await m(x),!0}catch(N){return i.value=N.message||"添加协作者失败",!1}}async function h(x,D){try{return await v_.remove(x,D),await m(x),!0}catch(N){return i.value=N.message||"移除协作者失败",!1}}function v(x){a.value=x}function R(){e.value=null}function C(){i.value=null}return{skills:t,currentSkill:e,isLoading:n,isLoadingDetail:r,error:i,searchQuery:a,sortedSkills:s,filteredSkills:o,canEditCurrentSkill:l,isOwner:c,currentVersions:d,fetchSkills:u,fetchSkill:m,createSkill:_,updateSkill:f,deleteSkill:g,fetchVersions:S,addCollaborator:b,removeCollaborator:h,setSearchQuery:v,clearCurrentSkill:R,clearError:C}});function iS(t){if(!t)return"";const e=new Date(t),r=new Date().getTime()-e.getTime(),i=Math.floor(r/(1e3*60*60*24));return i===0?"今天":i===1?"昨天":i<7?`${i} 天前`:i<30?`${Math.floor(i/7)} 周前`:i<365?`${Math.floor(i/30)} 个月前`:`${Math.floor(i/365)} 年前`}function bR(t){return t?new Date(t).toLocaleString("zh-CN",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):""}const hR={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-8"},TR={class:"page-header mb-8 text-center"},vR={class:"search-bar"},RR=["placeholder"],CR={key:0,class:"text-sm text-base-400 font-mono mb-6 flex items-center gap-2"},yR={id:"skill-list",class:"skill-grid pb-16"},NR={key:1,class:"empty-state",style:{"grid-column":"1 / -1"}},OR={key:0,class:"empty-state-text"},AR={class:"empty-state-text"},IR={class:"skill-card-header"},xR={class:"skill-card-name"},DR={class:"skill-card-desc"},wR={class:"skill-card-footer"},LR={class:"skill-card-meta"},MR={class:"skill-card-owner"},kR=Ut({__name:"HomeView",setup(t){const e=Ld(),{t:n}=on(),r=me(""),i=me(!0),a=Ae(()=>{if(!r.value)return e.skills;const l=r.value.toLowerCase();return e.skills.filter(c=>c.name.toLowerCase().includes(l)||c.description.toLowerCase().includes(l))});function s(){r.value=""}function o(l){return l?l.length>100?l.substring(0,100)+"...":l:n("state.noDesc")}return Ht(async()=>{await e.fetchSkills(),i.value=!1}),(l,c)=>{const d=Bn("router-link");return le(),de(Ue,null,[p("main",hR,[p("div",TR,[c[3]||(c[3]=p("div",{class:"inline-flex items-center justify-center gap-2 px-3 py-1 bg-base-900 border border-base-800 rounded-full mb-6 text-xs font-mono text-neon-400"},[p("span",{class:"w-2 h-2 rounded-full bg-neon-400 animate-pulse"}),ve(" Skill Directory ")],-1)),p("div",vR,[c[2]||(c[2]=p("div",{class:"search-icon-wrapper"},[p("span",null,"$"),p("span",null,"grep")],-1)),Ge(p("input",{type:"search",id:"searchInput",placeholder:`"${j(n)("index.searchPlaceholder")}"`,autocomplete:"off","onUpdate:modelValue":c[0]||(c[0]=u=>r.value=u)},null,8,RR),[[at,r.value]]),p("button",{type:"button",class:"clear-btn",id:"clearSearch",onClick:s},[...c[1]||(c[1]=[p("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])])]),j(e).skills.length>0?(le(),de("div",CR,[...c[4]||(c[4]=[p("span",{class:"text-neon-400"},"~",-1),p("span",{class:"opacity-50"},"/",-1),p("span",{class:"text-white"},"skills",-1),p("span",{class:"opacity-50 ml-2"},"ls -la",-1)])])):ke("",!0),p("div",yR,[i.value?(le(),de(Ue,{key:0},Ct(6,u=>p("div",{key:u,class:"skeleton-card"},[...c[5]||(c[5]=[p("div",{class:"skeleton-title"},null,-1),p("div",{class:"skeleton-desc"},null,-1),p("div",{class:"skeleton-desc-short"},null,-1),p("div",{class:"skeleton-footer"},null,-1)])])),64)):!a.value||a.value.length===0?(le(),de("div",NR,[c[7]||(c[7]=p("div",{class:"empty-state-icon"},"📦",-1)),r.value?(le(),de("p",OR,Z(j(n)("index.noResults",{q:r.value})),1)):(le(),de(Ue,{key:1},[p("p",AR,Z(j(n)("index.noSkills")),1),Be(d,{to:"/publish",class:"btn btn-primary mt-6"},{default:st(()=>[c[6]||(c[6]=p("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5",class:"mr-1"},[p("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),p("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)),ve(" "+Z(j(n)("index.publishBtn")),1)]),_:1})],64))])):(le(!0),de(Ue,{key:2},Ct(a.value,u=>(le(),wn(d,{key:u.id,to:`/skills/${u.id}`,class:"skill-card"},{default:st(()=>[p("div",IR,[p("h3",xR,Z(u.name),1)]),p("p",DR,Z(o(u.description)),1),p("div",wR,[p("div",LR,[p("span",MR,[c[8]||(c[8]=p("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),p("circle",{cx:"12",cy:"7",r:"4"})],-1)),ve(" "+Z(u.owner?.name||u.owner?.username||j(n)("state.unknown")),1)])]),p("span",null,Z(j(iS)(u.updated_at)),1)])]),_:2},1032,["to"]))),128))])]),Be(d,{to:"/publish",class:"fab",title:j(n)("index.fabTitle")},{default:st(()=>[...c[9]||(c[9]=[p("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),p("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)])]),_:1},8,["title"])],64)}}}),PR=vn(kR,[["__scopeId","data-v-da3c9440"]]),UR={class:"login-container"},FR={class:"login-shell"},BR={class:"login-card"},GR={class:"login-header"},YR={class:"login-subtitle"},qR={key:0,class:"login-error",role:"alert"},HR={class:"login-field"},VR=["disabled"],zR={class:"login-field"},$R=["disabled"],WR={class:"login-actions"},KR=["disabled"],QR={key:0,class:"btn-devtools-icon",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},XR={key:1,class:"spinner"},ZR=Ut({__name:"LoginView",setup(t){const e=Na(),n=Mr(),r=Ci(),{t:i}=on(),a=me(""),s=me("");Ht(async()=>{if(await Dv(),await r.fetchUser())if(e.query.from==="cli")n.push("/cli-code?from=cli");else{const c=e.query.redirect||"/";n.push(c)}});async function o(){if(r.clearError(),await r.login(a.value,s.value))if(e.query.from==="cli")n.push("/cli-code?from=cli");else{const d=e.query.redirect||"/";n.push(d)}}return(l,c)=>(le(),de("div",UR,[p("div",FR,[c[7]||(c[7]=ur('<div class="login-brand" data-v-66bc928a><span class="login-brand-icon" data-v-66bc928a><svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true" data-v-66bc928a><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" data-v-66bc928a></path><polyline points="3.27 6.96 12 12.01 20.73 6.96" data-v-66bc928a></polyline><line x1="12" y1="22.08" x2="12" y2="12" data-v-66bc928a></line></svg></span><span class="login-brand-text" data-v-66bc928a>Skill Base</span></div>',1)),p("div",BR,[c[6]||(c[6]=p("div",{class:"login-card-badge"},"AUTH-REQ",-1)),p("div",GR,[c[2]||(c[2]=p("h1",{class:"login-title"},[p("span",{class:"login-title-prompt"},">"),ve(" Sign In ")],-1)),p("p",YR,Z(j(i)("login.subtitle")),1)]),j(r).error?(le(),de("div",qR,Z(j(r).error),1)):ke("",!0),p("form",{onSubmit:ft(o,["prevent"]),class:"login-form"},[p("div",HR,[c[3]||(c[3]=p("label",{for:"username",class:"login-label"},[p("span",{class:"login-keyword"},"const"),ve(),p("span",{class:"login-label-name"},"username"),ve(),p("span",{class:"login-equals"},"=")],-1)),p("div",null,[Ge(p("input",{type:"text",id:"username","onUpdate:modelValue":c[0]||(c[0]=d=>a.value=d),placeholder:'"operator"',autocomplete:"username",required:"",disabled:j(r).isLoading,class:"login-input"},null,8,VR),[[at,a.value]])])]),p("div",zR,[c[4]||(c[4]=p("label",{for:"password",class:"login-label"},[p("span",{class:"login-keyword"},"const"),ve(),p("span",{class:"login-label-name"},"password"),ve(),p("span",{class:"login-equals"},"=")],-1)),p("div",null,[Ge(p("input",{type:"password",id:"password","onUpdate:modelValue":c[1]||(c[1]=d=>s.value=d),placeholder:"••••••••",autocomplete:"current-password",required:"",disabled:j(r).isLoading,class:"login-input"},null,8,$R),[[at,s.value]])])]),p("div",WR,[p("button",{type:"submit",disabled:j(r).isLoading,class:"login-submit"},[j(r).isLoading?ke("",!0):(le(),de("svg",QR,[...c[5]||(c[5]=[p("polygon",{points:"5 3 19 12 5 21 5 3"},null,-1)])])),j(r).isLoading?(le(),de("span",XR)):ke("",!0),p("span",null,Z(j(r).isLoading?j(i)("login.loading"):j(i)("login.submit")),1)],8,KR)])],32)]),c[8]||(c[8]=p("div",{class:"login-status"},[p("span",{class:"login-status-dot"}),p("span",{class:"login-status-text"},"Secure Connection Established")],-1))])]))}}),jR=vn(ZR,[["__scopeId","data-v-66bc928a"]]),JR="modulepreload",eC=function(t,e){return new URL(t,e).href},R_={},tC=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let c=function(d){return Promise.all(d.map(u=>Promise.resolve(u).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};const s=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");i=c(n.map(d=>{if(d=eC(d,r),d in R_)return;R_[d]=!0;const u=d.endsWith(".css"),m=u?'[rel="stylesheet"]':"";if(r)for(let f=s.length-1;f>=0;f--){const g=s[f];if(g.href===d&&(!u||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${m}`))return;const _=document.createElement("link");if(_.rel=u?"stylesheet":JR,u||(_.as="script"),_.crossOrigin="",_.href=d,l&&_.setAttribute("nonce",l),document.head.appendChild(_),u)return new Promise((f,g)=>{_.addEventListener("load",f),_.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return i.then(s=>{for(const o of s||[])o.status==="rejected"&&a(o.reason);return e().catch(a)})};function Md(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var mr=Md();function aS(t){mr=t}var ir={exec:()=>null};function qe(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(kt.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,e)};return r}var nC=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),kt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},rC=/^(?:[ \t]*(?:\n|$))+/,iC=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,aC=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,yi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,sC=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,kd=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,sS=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,oS=qe(sS).replace(/bull/g,kd).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),oC=qe(sS).replace(/bull/g,kd).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Pd=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,lC=/^[^\n]+/,Ud=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,cC=qe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ud).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),dC=qe(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,kd).getRegex(),Aa="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Fd=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,uC=qe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Fd).replace("tag",Aa).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lS=qe(Pd).replace("hr",yi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Aa).getRegex(),_C=qe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",lS).getRegex(),Bd={blockquote:_C,code:iC,def:cC,fences:aC,heading:sC,hr:yi,html:uC,lheading:oS,list:dC,newline:rC,paragraph:lS,table:ir,text:lC},C_=qe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",yi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Aa).getRegex(),pC={...Bd,lheading:oC,table:C_,paragraph:qe(Pd).replace("hr",yi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",C_).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Aa).getRegex()},mC={...Bd,html:qe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Fd).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ir,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:qe(Pd).replace("hr",yi).replace("heading",` *#{1,6} *[^
|
|
10
10
|
]`).replace("lheading",oS).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},gC=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,fC=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,cS=/^( {2,}|\\)\n(?!\s*$)/,EC=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,kr=/[\p{P}\p{S}]/u,Ia=/[\s\p{P}\p{S}]/u,Gd=/[^\s\p{P}\p{S}]/u,SC=qe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ia).getRegex(),dS=/(?!~)[\p{P}\p{S}]/u,bC=/(?!~)[\s\p{P}\p{S}]/u,hC=/(?:[^\s\p{P}\p{S}]|~)/u,TC=qe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",nC?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),uS=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,vC=qe(uS,"u").replace(/punct/g,kr).getRegex(),RC=qe(uS,"u").replace(/punct/g,dS).getRegex(),_S="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",CC=qe(_S,"gu").replace(/notPunctSpace/g,Gd).replace(/punctSpace/g,Ia).replace(/punct/g,kr).getRegex(),yC=qe(_S,"gu").replace(/notPunctSpace/g,hC).replace(/punctSpace/g,bC).replace(/punct/g,dS).getRegex(),NC=qe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Gd).replace(/punctSpace/g,Ia).replace(/punct/g,kr).getRegex(),OC=qe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,kr).getRegex(),AC="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",IC=qe(AC,"gu").replace(/notPunctSpace/g,Gd).replace(/punctSpace/g,Ia).replace(/punct/g,kr).getRegex(),xC=qe(/\\(punct)/,"gu").replace(/punct/g,kr).getRegex(),DC=qe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),wC=qe(Fd).replace("(?:-->|$)","-->").getRegex(),LC=qe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",wC).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ia=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,MC=qe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ia).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),pS=qe(/^!?\[(label)\]\[(ref)\]/).replace("label",ia).replace("ref",Ud).getRegex(),mS=qe(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ud).getRegex(),kC=qe("reflink|nolink(?!\\()","g").replace("reflink",pS).replace("nolink",mS).getRegex(),y_=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Yd={_backpedal:ir,anyPunctuation:xC,autolink:DC,blockSkip:TC,br:cS,code:fC,del:ir,delLDelim:ir,delRDelim:ir,emStrongLDelim:vC,emStrongRDelimAst:CC,emStrongRDelimUnd:NC,escape:gC,link:MC,nolink:mS,punctuation:SC,reflink:pS,reflinkSearch:kC,tag:LC,text:EC,url:ir},PC={...Yd,link:qe(/^!?\[(label)\]\((.*?)\)/).replace("label",ia).getRegex(),reflink:qe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ia).getRegex()},dd={...Yd,emStrongRDelimAst:yC,emStrongLDelim:RC,delLDelim:OC,delRDelim:IC,url:qe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",y_).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:qe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",y_).getRegex()},UC={...dd,br:qe(cS).replace("{2,}","*").getRegex(),text:qe(dd.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Pi={normal:Bd,gfm:pC,pedantic:mC},Wr={normal:Yd,gfm:dd,breaks:UC,pedantic:PC},FC={"&":"&","<":"<",">":">",'"':""","'":"'"},N_=t=>FC[t];function mn(t,e){if(e){if(kt.escapeTest.test(t))return t.replace(kt.escapeReplace,N_)}else if(kt.escapeTestNoEncode.test(t))return t.replace(kt.escapeReplaceNoEncode,N_);return t}function O_(t){try{t=encodeURI(t).replace(kt.percentDecode,"%")}catch{return null}return t}function A_(t,e){let n=t.replace(kt.findPipe,(a,s,o)=>{let l=!1,c=s;for(;--c>=0&&o[c]==="\\";)l=!l;return l?"|":" |"}),r=n.split(kt.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(kt.slashPipe,"|");return r}function Kr(t,e,n){let r=t.length;if(r===0)return"";let i=0;for(;i<r&&t.charAt(r-i-1)===e;)i++;return t.slice(0,r-i)}function BC(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function GC(t,e=0){let n=e,r="";for(let i of t)if(i===" "){let a=4-n%4;r+=" ".repeat(a),n+=a}else r+=i,n++;return r}function I_(t,e,n,r,i){let a=e.href,s=e.title||null,o=t[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}function YC(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let i=r[1];return e.split(`
|
|
11
11
|
`).map(a=>{let s=a.match(n.other.beginningSpace);if(s===null)return a;let[o]=s;return o.length>=i.length?a.slice(i.length):a}).join(`
|
|
12
12
|
`)}var aa=class{options;rules;lexer;constructor(t){this.options=t||mr}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Kr(n,`
|
|
@@ -77,7 +77,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),gt=fe,et=Ne),Fe===void
|
|
|
77
77
|
`)}function w(z){return z?T(z).split(`
|
|
78
78
|
`).length:1}const ue=new Set([".md",".py",".sh",".bash",".zsh",".js",".jsx",".ts",".tsx",".vue",".json",".yaml",".yml",".toml",".ini",".cfg",".txt",".text",".log",".csv",".html",".htm",".css",".scss",".sass",".less",".xml",".sql",".go",".rs",".java",".c",".cpp",".h",".hpp",".cs",".rb",".php",".swift",".kt",".dockerfile",".gitignore",".env.example"]),k=new Set(["dockerfile","makefile","rakefile","readme","license","changelog",".gitignore",".gitattributes",".editorconfig",".env",".env.example"]),V=Ae(()=>s.value?s.value.permission==="owner"||s.value.permission==="collaborator":!1),q=Ae(()=>{if(!_.value)return!1;const z=_.value.toLowerCase(),P="."+z.split(".").pop(),ne=z.split("/").pop()||"";return ue.has(P)||k.has(ne)||k.has(ne.replace(/^\./,""))}),re=Ae(()=>f.value?je.parse(L.value):""),L=Ae(()=>f.value?T(f.value):""),B=Ae(()=>{const z=w(f.value);return Array.from({length:z},(P,ne)=>ne+1).join(`
|
|
79
79
|
`)}),te=Ae(()=>{const z=w(f.value);return Array.from({length:z},(P,ne)=>ne+1).join(`
|
|
80
|
-
`)});Ht(async()=>{document.title=i("skill.title"),await r.fetchSkill(a.value),await ce(),o.value.length>0&&(l.value=o.value[0].version,await Ee(l.value)),b.value=!1,document.addEventListener("keydown",U)}),lr([()=>I.value,()=>L.value],([z])=>{z&&q.value&&!S.value&&Ti(()=>{fS.highlightElement(z)})});async function ce(){try{const z=await sr.list(a.value);o.value=z.versions||[]}catch(z){console.error("Failed to load versions:",z)}}async function oe(){l.value&&await Ee(l.value)}async function Ee(z){d.value=!0,_.value="",f.value="";try{const P=await fetch(sr.downloadUrl(a.value,z),{credentials:"include"});if(!P.ok)throw new Error("Failed to download version");const ne=await P.arrayBuffer(),Te=await(await tC(async()=>{const{default:be}=await Promise.resolve().then(()=>vx);return{default:be}},void 0,import.meta.url)).default.loadAsync(ne);u.value=Te,m.value=ee(Te)}catch(P){console.error("Failed to load version zip:",P),m.value=[]}finally{d.value=!1}}function ee(z){const P={children:[]};return z.forEach((ne,ie)=>{if(!ne)return;const Te=ne.split("/").filter(Boolean);let be=P;for(let we=0;we<Te.length;we++){const He=Te[we],Je=we===Te.length-1,nt=ie.dir||!Je;let Pe=be.children.find(It=>It.name===He);Pe||(Pe={type:nt?"directory":"file",name:He,path:ne,...nt?{children:[],isOpen:!1}:{}},be.children.push(Pe)),nt&&(be=Pe)}}),ae(P.children),P.children}function ae(z){z.sort((P,ne)=>P.type!==ne.type?P.type==="directory"?-1:1:P.name.localeCompare(ne.name)),z.forEach(P=>{P.children&&ae(P.children)})}async function se(z){if(_.value=z.path,!u.value)return;const P=u.value.file(z.path);if(P)try{const ne=await P.async("string");f.value=ne,S.value&&(g.value="render")}catch{f.value=""}}function pe(z){z.isOpen=!z.isOpen}function ge(z){g.value=z}function M(){l.value&&G(l.value)}function G(z){window.open(sr.downloadUrl(a.value,z),"_blank")}function E(){if(!s.value){Ze.warning(i("skill.infoLoading"));return}if(o.value.length<2){Ze.warning(i("skill.needTwoVersions"));return}const z=o.value[1]?.version||"",P=o.value[0]?.version||"";n.push({path:"/diff",query:{id:a.value,version_a:z,version_b:P}})}async function H(){if(y.value){F.value=!0;try{await r.addCollaborator(a.value,y.value),v.value=!1,y.value="",Ze.success(i("collab.addSuccess"))}catch{Ze.error(i("collab.addFailed"))}finally{F.value=!1}}}async function Y(z){if(confirm(i("collab.removeConfirm")))try{await r.removeCollaborator(a.value,z),Ze.success(i("collab.removeSuccess"))}catch{Ze.error(i("collab.removeFailed"))}}async function O(){if(X.value===String(s.value?.id))try{await r.deleteSkill(a.value),R.value=!1,n.push("/")}catch{Ze.error(i("collab.deleteFailed"))}}function A(){Q.value=!Q.value,document.body.style.overflow=Q.value?"hidden":""}function U(z){z.key==="Escape"&&Q.value&&A()}function J(z,P){x.value=P,P==="description"?D.value={version:z.version,description:s.value?.description??"",changelog:""}:D.value={version:z.version,description:z.description||"",changelog:z.changelog||""},C.value=!0}async function K(){if(!(x.value==="changelog"&&!D.value.version)){N.value=!0;try{if(x.value==="description")await r.updateSkill(a.value,{description:D.value.description});else{const z=o.value.find(ie=>ie.version===D.value.version),P=await sr.update(a.value,D.value.version,{description:z?.description,changelog:D.value.changelog}),ne=o.value.findIndex(ie=>ie.version===P.version);ne!==-1&&(o.value[ne]={...o.value[ne],...P})}C.value=!1,Ze.success(i("skill.editVersionSuccess"))}catch(z){Ze.error(z.message||i("skill.editVersionFailed"))}finally{N.value=!1}}}async function W(z){if(confirm(`确定将 ${z} 设置为 Head 版本吗?`))try{const P=await Kn.setHead(a.value,z);P.ok&&s.value&&(s.value.latest_version=P.latest_version,Ze.success("设置成功"))}catch(P){Ze.error(P.message||"设置失败")}}return(z,P)=>{const ne=Bn("router-link");return le(),de("div",NA,[p("div",OA,[b.value||j(r).isLoadingDetail?(le(),de("div",AA,[...P[20]||(P[20]=[ur('<div class="cube-loader" data-v-413c935d><div class="cube cube-1" data-v-413c935d></div><div class="cube cube-2" data-v-413c935d></div><div class="cube cube-3" data-v-413c935d></div><div class="cube cube-4" data-v-413c935d></div></div>',1)])])):s.value?(le(),de(Ue,{key:2},[p("div",wA,[P[22]||(P[22]=p("span",{class:"text-neon-400"},"~",-1)),P[23]||(P[23]=p("span",{class:"opacity-50"},"/",-1)),Be(ne,{to:"/",class:"hover:text-white transition-colors"},{default:st(()=>[ve(Z(j(i)("skill.breadcrumbHome")),1)]),_:1}),P[24]||(P[24]=p("span",{class:"opacity-50"},"/",-1)),p("span",LA,Z(s.value.name),1)]),p("div",MA,[p("div",kA,"ID: "+Z(s.value.id.toString().substring(0,8)),1),p("h1",PA,[P[25]||(P[25]=p("span",{class:"text-neon-400 font-mono font-normal opacity-70"},">",-1)),ve(" "+Z(s.value.name),1)]),p("div",UA,[p("p",FA,Z(c.value?.description||s.value.description||j(i)("state.noDesc")),1),V.value&&c.value?(le(),de("button",{key:0,onClick:P[0]||(P[0]=ie=>J(c.value,"description")),class:"opacity-0 group-hover:opacity-100 p-1.5 text-base-400 hover:text-neon-400 transition-all flex-shrink-0 bg-base-950 border border-base-800 rounded ml-4",title:"Edit Version Info"},[...P[26]||(P[26]=[p("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})],-1)])])):ke("",!0)]),p("div",BA,[p("div",GA,[Ge(p("select",{"onUpdate:modelValue":P[1]||(P[1]=ie=>l.value=ie),onChange:oe,class:"w-full appearance-none bg-base-950 border border-base-800 text-white font-mono text-sm rounded-lg px-4 py-2.5 focus:outline-none focus:border-neon-500 focus:ring-1 focus:ring-neon-500 transition-colors cursor-pointer"},[(le(!0),de(Ue,null,Ct(o.value,(ie,Te)=>(le(),de("option",{key:ie.id,value:ie.version},Z(ie.version)+" "+Z(Te===0?j(i)("skill.latestTag"):""),9,YA))),128))],544),[[Ir,l.value]]),P[27]||(P[27]=p("svg",{class:"w-4 h-4 absolute right-4 top-3 pointer-events-none text-base-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1))]),p("div",qA,[p("button",{onClick:E,class:"flex items-center justify-center gap-2 bg-transparent text-white border border-base-800 hover:bg-base-800 text-sm font-mono px-5 py-2.5 rounded-lg transition-colors w-full sm:w-auto"},[P[28]||(P[28]=p("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})],-1)),ve(" "+Z(j(i)("skill.compare")),1)]),p("button",{onClick:M,class:"flex items-center justify-center gap-2 bg-transparent border border-neon-500 text-neon-400 hover:bg-neon-400/10 text-sm font-mono px-5 py-2.5 rounded-lg transition-colors w-full sm:w-auto shadow-[0_0_15px_rgba(0,255,163,0.1)] hover:shadow-[0_0_20px_rgba(0,255,163,0.2)]"},[P[29]||(P[29]=p("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)),ve(" "+Z(j(i)("skill.download")),1)])])])]),p("section",HA,[p("div",VA,[P[31]||(P[31]=ur('<div class="px-5 py-3 border-b border-base-800 font-mono text-sm text-base-400 flex items-center gap-2" data-v-413c935d><span class="w-2.5 h-2.5 rounded-full bg-base-800" data-v-413c935d></span><span class="w-2.5 h-2.5 rounded-full bg-base-800" data-v-413c935d></span><span class="w-2.5 h-2.5 rounded-full bg-base-800" data-v-413c935d></span><span class="ml-2 text-white/50" data-v-413c935d>ls -la</span></div>',1)),p("div",zA,[d.value?(le(),de("div",$A,[...P[30]||(P[30]=[p("div",{class:"spinner spinner-sm"},null,-1)])])):m.value.length===0?(le(),de("div",WA,[p("p",KA,Z(j(i)("skill.noFile")),1)])):(le(!0),de(Ue,{key:2},Ct(m.value,ie=>(le(),wn(ES,{key:ie.path,node:ie,"selected-path":_.value,onSelect:se,onToggle:pe},null,8,["node","selected-path"]))),128))])]),p("div",{id:"file-preview-panel",class:Ye(["lg:col-span-3 bg-base-900 border border-base-800 rounded-xl flex flex-col min-h-[400px] max-h-[500px]",{fullscreen:Q.value}])},[p("div",QA,[p("div",null,[p("span",null,[P[32]||(P[32]=ve("cat ",-1)),p("span",XA,Z(_.value||"<file>"),1)])]),p("div",ZA,[S.value?(le(),de("div",jA,[p("button",{onClick:P[2]||(P[2]=ie=>ge("render")),class:Ye(["md-view-btn",g.value==="render"?"is-active":""])},Z(j(i)("skill.htmlPreview")),3),p("button",{onClick:P[3]||(P[3]=ie=>ge("source")),class:Ye(["md-view-btn",g.value==="source"?"is-active":""])},Z(j(i)("skill.mdSource")),3)])):ke("",!0),p("button",{onClick:A,class:"md-view-btn",title:Q.value?j(i)("skill.exitFullscreen"):j(i)("skill.fullscreen")},[Q.value?(le(),de("svg",tI,[...P[34]||(P[34]=[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])])):(le(),de("svg",eI,[...P[33]||(P[33]=[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"},null,-1)])]))],8,JA)])]),p("div",nI,[f.value?S.value&&g.value==="render"?(le(),de("div",{key:1,class:"markdown-body p-6",innerHTML:re.value},null,8,aI)):S.value&&g.value==="source"?(le(),de("div",sI,[p("div",oI,Z(B.value),1),p("pre",lI,[p("code",null,Z(L.value),1)])])):q.value?(le(),de("div",cI,[p("div",dI,Z(te.value),1),p("pre",null,[p("code",{ref_key:"codeBlock",ref:I},Z(L.value),513)])])):(le(),de("div",uI,[p("p",_I,Z(j(i)("skill.binaryFile")),1)])):(le(),de("div",rI,[P[35]||(P[35]=p("div",{class:"flex items-center gap-3 opacity-30 font-mono mb-4"},[p("span",{class:"text-neon-400 animate-pulse"},"_"),p("span",null,"EOF")],-1)),p("p",iI,Z(j(i)("skill.selectFile")),1)]))])],2)]),p("div",pI,[p("div",mI,[p("div",gI,[p("div",fI,[P[36]||(P[36]=p("span",{class:"text-neon-400"},"#",-1)),ve(" "+Z(j(i)("skill.collaborators")),1)]),j(r).isOwner?(le(),de("button",{key:0,onClick:P[4]||(P[4]=ie=>v.value=!0),class:"text-xs text-neon-400 hover:text-white transition-colors"}," + "+Z(j(i)("btn.add")),1)):ke("",!0)]),p("div",EI,[p("div",SI,[p("div",bI,[p("span",hI,Z((s.value.owner?.username||"U").charAt(0).toUpperCase()),1),p("div",null,[p("div",TI,Z(s.value.owner?.name||s.value.owner?.username),1),p("div",vI,Z(s.value.owner?.email||""),1)])]),p("span",RI,Z(j(i)("collab.owner")),1)]),(le(!0),de(Ue,null,Ct(s.value.collaborators,ie=>(le(),de("div",{key:ie.id,class:"flex items-center justify-between"},[p("div",CI,[p("span",yI,Z((ie.username||"U").charAt(0).toUpperCase()),1),p("div",null,[p("div",NI,Z(ie.name||ie.username),1),p("div",OI,Z(ie.email||""),1)])]),p("div",AI,[p("span",II,Z(j(i)("collab.collaborator")),1),j(r).isOwner?(le(),de("button",{key:0,onClick:Te=>Y(ie.id),class:"p-1.5 text-base-400 hover:text-red-400 transition-colors",title:j(i)("btn.remove")},[...P[37]||(P[37]=[p("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)])],8,xI)):ke("",!0)])]))),128))]),j(r).isOwner?(le(),de("div",DI,[p("div",wI,[p("button",{onClick:P[5]||(P[5]=ie=>R.value=!0),class:"w-full py-2 text-xs font-mono text-red-500 border border-red-500/30 rounded bg-red-500/5 hover:bg-red-500/10 transition-colors"},Z(j(i)("skill.deleteSkill")),1)])])):ke("",!0)]),p("div",LI,[p("div",{class:"px-5 py-4 border-b border-base-800 flex items-center justify-between rounded-t-xl cursor-pointer hover:bg-white/5 transition-colors",onClick:P[6]||(P[6]=ie=>h.value=!h.value)},[P[39]||(P[39]=p("div",{class:"flex items-center gap-2 font-mono font-semibold text-white text-sm"},[p("span",{class:"text-neon-400"},"git"),ve(" log ")],-1)),p("span",{class:Ye(["text-base-400 transition-transform",h.value?"-rotate-90":""])},[...P[38]||(P[38]=[p("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("polyline",{points:"6 9 12 15 18 9"})],-1)])],2)]),h.value?ke("",!0):(le(),de("div",MI,[p("div",kI,[P[43]||(P[43]=p("div",{class:"absolute left-[5px] top-0 bottom-2 w-px bg-base-800"},null,-1)),(le(!0),de(Ue,null,Ct(o.value,(ie,Te)=>(le(),de("div",{key:ie.id,class:"relative mb-8 last:mb-0 group cursor-pointer"},[p("span",{class:Ye(["absolute -left-[21px] top-2 w-2.5 h-2.5 rounded-full ring-4 ring-base-900 transition-colors",ie.version===s.value.latest_version?"bg-neon-400 shadow-[0_0_8px_rgba(0,255,163,0.8)]":"bg-base-800 group-hover:bg-neon-500"])},null,2),p("div",PI,[p("div",UI,[p("div",FI,[p("span",{class:Ye(["text-xs px-2 py-0.5 rounded font-mono border transition-colors",ie.version===s.value.latest_version?"text-neon-400 border-neon-500/30 bg-neon-400/5":"text-base-400 border-base-800 group-hover:text-neon-400 group-hover:border-neon-500/30"])},Z(ie.version),3),ie.version===s.value.latest_version?(le(),de("span",BI,"Head")):ke("",!0)]),p("p",{class:Ye(["text-sm font-medium mt-2",ie.version===s.value.latest_version?"text-white":"text-base-200"])},Z(ie.changelog||j(i)("skill.noChangelog")),3),p("p",GI," by @"+Z(ie.uploader?.name||ie.uploader?.username||j(i)("state.unknown")),1)]),p("div",YI,[p("span",{class:"text-xs text-base-400 font-mono whitespace-nowrap text-right",title:j(bR)(ie.created_at)},Z(j(iS)(ie.created_at)),9,qI),V.value&&ie.version!==s.value.latest_version?(le(),de("button",{key:0,title:"Set as Head",class:"flex items-center justify-center p-2 text-base-400 border border-base-800 rounded bg-base-950 hover:text-neon-400 hover:border-neon-500 hover:bg-neon-400/10 transition-all",onClick:ft(be=>W(ie.version),["stop"])},[...P[40]||(P[40]=[p("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 10l7-7m0 0l7 7m-7-7v18"})],-1)])],8,HI)):ke("",!0),V.value?(le(),de("button",{key:1,title:"Edit Version",class:"flex items-center justify-center p-2 text-base-400 border border-base-800 rounded bg-base-950 hover:text-neon-400 hover:border-neon-500 hover:bg-neon-400/10 transition-all",onClick:ft(be=>J(ie,"changelog"),["stop"])},[...P[41]||(P[41]=[p("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})],-1)])],8,VI)):ke("",!0),p("button",{title:j(i)("skill.download"),class:"flex items-center justify-center p-2 text-base-400 border border-base-800 rounded bg-base-950 hover:text-neon-400 hover:border-neon-500 hover:bg-neon-400/10 hover:shadow-[0_0_10px_rgba(0,255,163,0.15)] transition-all",onClick:ft(be=>G(ie.version),["stop"])},[...P[42]||(P[42]=[p("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)])],8,zI)])])]))),128)),o.value.length===0?(le(),de("div",$I,[p("p",WI,Z(j(i)("skill.noVersions")),1)])):ke("",!0)])]))])])],64)):(le(),de("div",IA,[P[21]||(P[21]=p("div",{class:"w-20 h-20 mx-auto mb-6 rounded-full bg-base-800 flex items-center justify-center"},[p("svg",{class:"w-10 h-10 text-base-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1)),p("h3",xA,Z(j(i)("skill.notFound")),1),p("p",DA,Z(j(i)("skill.notFoundDesc")),1),Be(ne,{to:"/",class:"btn-primary px-6 py-3 rounded-lg"},{default:st(()=>[ve(Z(j(i)("skill.backToHome")),1)]),_:1})]))]),v.value?(le(),de("div",{key:0,class:"modal",onClick:P[10]||(P[10]=ft(ie=>v.value=!1,["self"]))},[P[44]||(P[44]=p("div",{class:"modal-overlay"},null,-1)),p("div",KI,[p("div",QI,[p("h3",null,Z(j(i)("collab.modal")),1),p("button",{class:"modal-close",onClick:P[7]||(P[7]=ie=>v.value=!1)},"×")]),p("div",XI,[p("div",ZI,[p("label",null,Z(j(i)("collab.usernameLabel")),1),Ge(p("input",{"onUpdate:modelValue":P[8]||(P[8]=ie=>y.value=ie),type:"text",placeholder:j(i)("collab.usernamePlaceholder"),class:"form-input",onKeyup:dT(H,["enter"])},null,40,jI),[[at,y.value]])])]),p("div",JI,[p("button",{class:"btn btn-secondary",onClick:P[9]||(P[9]=ie=>v.value=!1)},Z(j(i)("btn.cancel")),1),p("button",{class:"btn btn-primary",onClick:H,disabled:!y.value||F.value},[F.value?(le(),de("span",tx)):ke("",!0),ve(" "+Z(j(i)("btn.add")),1)],8,ex)])])])):ke("",!0),R.value?(le(),de("div",{key:1,class:"modal",onClick:P[14]||(P[14]=ft(ie=>R.value=!1,["self"]))},[P[45]||(P[45]=p("div",{class:"modal-overlay"},null,-1)),p("div",nx,[p("div",rx,[p("h3",null,Z(j(i)("collab.deleteModal")),1),p("button",{class:"modal-close",onClick:P[11]||(P[11]=ie=>R.value=!1)},"×")]),p("div",ix,[p("p",ax,Z(j(i)("collab.deleteWarning")),1),p("div",sx,[p("label",null,Z(j(i)("collab.deleteLabel"))+" "+Z(s.value?.id),1),Ge(p("input",{"onUpdate:modelValue":P[12]||(P[12]=ie=>X.value=ie),type:"text",placeholder:"",class:"form-input"},null,512),[[at,X.value]])])]),p("div",ox,[p("button",{class:"btn btn-secondary",onClick:P[13]||(P[13]=ie=>R.value=!1)},Z(j(i)("btn.cancel")),1),p("button",{class:"btn btn-danger",onClick:O,disabled:X.value!==String(s.value?.id)},Z(j(i)("collab.deleteConfirmBtn")),9,lx)])])])):ke("",!0),C.value?(le(),de("div",{key:2,class:"modal",onClick:P[19]||(P[19]=ft(ie=>C.value=!1,["self"]))},[P[46]||(P[46]=p("div",{class:"modal-overlay"},null,-1)),p("div",cx,[p("div",dx,[p("h3",null,Z(x.value==="description"?j(i)("skill.editVersionTitleDesc"):j(i)("skill.editVersionTitleChangelog"))+" ("+Z(D.value.version)+")",1),p("button",{class:"modal-close",onClick:P[15]||(P[15]=ie=>C.value=!1)},"×")]),p("div",ux,[x.value==="description"?(le(),de("div",_x,[p("label",null,Z(j(i)("skill.editVersionLabelDescription")),1),Ge(p("textarea",{"onUpdate:modelValue":P[16]||(P[16]=ie=>D.value.description=ie),placeholder:j(i)("skill.editVersionPlaceholderDescription"),class:"form-input min-h-[100px]"},null,8,px),[[at,D.value.description]])])):ke("",!0),x.value==="changelog"?(le(),de("div",mx,[p("label",null,Z(j(i)("skill.editVersionLabelChangelog")),1),Ge(p("textarea",{"onUpdate:modelValue":P[17]||(P[17]=ie=>D.value.changelog=ie),placeholder:j(i)("skill.editVersionPlaceholderChangelog"),class:"form-input min-h-[100px]"},null,8,gx),[[at,D.value.changelog]])])):ke("",!0)]),p("div",fx,[p("button",{class:"btn btn-secondary",onClick:P[18]||(P[18]=ie=>C.value=!1)},Z(j(i)("btn.cancel")),1),p("button",{class:"btn btn-primary",onClick:K,disabled:N.value},[N.value?(le(),de("span",Sx)):ke("",!0),ve(" "+Z(j(i)("btn.save")),1)],8,Ex)])])])):ke("",!0)])}}}),hx=vn(bx,[["__scopeId","data-v-413c935d"]]);function Fi(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pc={exports:{}};var cf;function Tx(){return cf||(cf=1,(function(t,e){(function(n){t.exports=n()})(function(){return(function n(r,i,a){function s(c,d){if(!i[c]){if(!r[c]){var u=typeof Fi=="function"&&Fi;if(!d&&u)return u(c,!0);if(o)return o(c,!0);var m=new Error("Cannot find module '"+c+"'");throw m.code="MODULE_NOT_FOUND",m}var _=i[c]={exports:{}};r[c][0].call(_.exports,function(f){var g=r[c][1][f];return s(g||f)},_,_.exports,n,r,i,a)}return i[c].exports}for(var o=typeof Fi=="function"&&Fi,l=0;l<a.length;l++)s(a[l]);return s})({1:[function(n,r,i){var a=n("./utils"),s=n("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(l){for(var c,d,u,m,_,f,g,S=[],b=0,h=l.length,v=h,R=a.getTypeOf(l)!=="string";b<l.length;)v=h-b,u=R?(c=l[b++],d=b<h?l[b++]:0,b<h?l[b++]:0):(c=l.charCodeAt(b++),d=b<h?l.charCodeAt(b++):0,b<h?l.charCodeAt(b++):0),m=c>>2,_=(3&c)<<4|d>>4,f=1<v?(15&d)<<2|u>>6:64,g=2<v?63&u:64,S.push(o.charAt(m)+o.charAt(_)+o.charAt(f)+o.charAt(g));return S.join("")},i.decode=function(l){var c,d,u,m,_,f,g=0,S=0,b="data:";if(l.substr(0,b.length)===b)throw new Error("Invalid base64 input, it looks like a data url.");var h,v=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===o.charAt(64)&&v--,l.charAt(l.length-2)===o.charAt(64)&&v--,v%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=s.uint8array?new Uint8Array(0|v):new Array(0|v);g<l.length;)c=o.indexOf(l.charAt(g++))<<2|(m=o.indexOf(l.charAt(g++)))>>4,d=(15&m)<<4|(_=o.indexOf(l.charAt(g++)))>>2,u=(3&_)<<6|(f=o.indexOf(l.charAt(g++))),h[S++]=c,_!==64&&(h[S++]=d),f!==64&&(h[S++]=u);return h}},{"./support":30,"./utils":32}],2:[function(n,r,i){var a=n("./external"),s=n("./stream/DataWorker"),o=n("./stream/Crc32Probe"),l=n("./stream/DataLengthProbe");function c(d,u,m,_,f){this.compressedSize=d,this.uncompressedSize=u,this.crc32=m,this.compression=_,this.compressedContent=f}c.prototype={getContentWorker:function(){var d=new s(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),u=this;return d.on("end",function(){if(this.streamInfo.data_length!==u.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new s(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(d,u,m){return d.pipe(new o).pipe(new l("uncompressedSize")).pipe(u.compressWorker(m)).pipe(new l("compressedSize")).withStreamInfo("compression",u)},r.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var a=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var a=n("./utils"),s=(function(){for(var o,l=[],c=0;c<256;c++){o=c;for(var d=0;d<8;d++)o=1&o?3988292384^o>>>1:o>>>1;l[c]=o}return l})();r.exports=function(o,l){return o!==void 0&&o.length?a.getTypeOf(o)!=="string"?(function(c,d,u,m){var _=s,f=m+u;c^=-1;for(var g=m;g<f;g++)c=c>>>8^_[255&(c^d[g])];return-1^c})(0|l,o,o.length,0):(function(c,d,u,m){var _=s,f=m+u;c^=-1;for(var g=m;g<f;g++)c=c>>>8^_[255&(c^d.charCodeAt(g))];return-1^c})(0|l,o,o.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var a=null;a=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:a}},{lie:37}],7:[function(n,r,i){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",s=n("pako"),o=n("./utils"),l=n("./stream/GenericWorker"),c=a?"uint8array":"array";function d(u,m){l.call(this,"FlateWorker/"+u),this._pako=null,this._pakoAction=u,this._pakoOptions=m,this.meta={}}i.magic="\b\0",o.inherits(d,l),d.prototype.processChunk=function(u){this.meta=u.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(c,u.data),!1)},d.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var u=this;this._pako.onData=function(m){u.push({data:m,meta:u.meta})}},i.compressWorker=function(u){return new d("Deflate",u)},i.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function a(_,f){var g,S="";for(g=0;g<f;g++)S+=String.fromCharCode(255&_),_>>>=8;return S}function s(_,f,g,S,b,h){var v,R,C=_.file,x=_.compression,D=h!==c.utf8encode,N=o.transformTo("string",h(C.name)),y=o.transformTo("string",c.utf8encode(C.name)),F=C.comment,X=o.transformTo("string",h(F)),I=o.transformTo("string",c.utf8encode(F)),Q=y.length!==C.name.length,T=I.length!==F.length,w="",ue="",k="",V=C.dir,q=C.date,re={crc32:0,compressedSize:0,uncompressedSize:0};f&&!g||(re.crc32=_.crc32,re.compressedSize=_.compressedSize,re.uncompressedSize=_.uncompressedSize);var L=0;f&&(L|=8),D||!Q&&!T||(L|=2048);var B=0,te=0;V&&(B|=16),b==="UNIX"?(te=798,B|=(function(oe,Ee){var ee=oe;return oe||(ee=Ee?16893:33204),(65535&ee)<<16})(C.unixPermissions,V)):(te=20,B|=(function(oe){return 63&(oe||0)})(C.dosPermissions)),v=q.getUTCHours(),v<<=6,v|=q.getUTCMinutes(),v<<=5,v|=q.getUTCSeconds()/2,R=q.getUTCFullYear()-1980,R<<=4,R|=q.getUTCMonth()+1,R<<=5,R|=q.getUTCDate(),Q&&(ue=a(1,1)+a(d(N),4)+y,w+="up"+a(ue.length,2)+ue),T&&(k=a(1,1)+a(d(X),4)+I,w+="uc"+a(k.length,2)+k);var ce="";return ce+=`
|
|
80
|
+
`)});Ht(async()=>{document.title=i("skill.title"),await r.fetchSkill(a.value),await ce(),o.value.length>0&&(l.value=o.value[0].version,await Ee(l.value)),b.value=!1,document.addEventListener("keydown",U)}),lr([()=>I.value,()=>L.value],([z])=>{z&&q.value&&!S.value&&Ti(()=>{fS.highlightElement(z)})});async function ce(){try{const z=await sr.list(a.value);o.value=z.versions||[]}catch(z){console.error("Failed to load versions:",z)}}async function oe(){l.value&&await Ee(l.value)}async function Ee(z){d.value=!0,_.value="",f.value="";try{const P=await fetch(sr.downloadUrl(a.value,z),{credentials:"include"});if(!P.ok)throw new Error("Failed to download version");const ne=await P.arrayBuffer(),Te=await(await tC(async()=>{const{default:be}=await Promise.resolve().then(()=>vx);return{default:be}},void 0,import.meta.url)).default.loadAsync(ne);u.value=Te,m.value=ee(Te)}catch(P){console.error("Failed to load version zip:",P),m.value=[]}finally{d.value=!1}}function ee(z){const P={children:[]};return z.forEach((ne,ie)=>{if(!ne)return;const Te=ne.split("/").filter(Boolean);let be=P;for(let we=0;we<Te.length;we++){const He=Te[we],Je=we===Te.length-1,nt=ie.dir||!Je;let Pe=be.children.find(It=>It.name===He);Pe||(Pe={type:nt?"directory":"file",name:He,path:ne,...nt?{children:[],isOpen:!1}:{}},be.children.push(Pe)),nt&&(be=Pe)}}),ae(P.children),P.children}function ae(z){z.sort((P,ne)=>P.type!==ne.type?P.type==="directory"?-1:1:P.name.localeCompare(ne.name)),z.forEach(P=>{P.children&&ae(P.children)})}async function se(z){if(_.value=z.path,!u.value)return;const P=u.value.file(z.path);if(P)try{const ne=await P.async("string");f.value=ne,S.value&&(g.value="render")}catch{f.value=""}}function pe(z){z.isOpen=!z.isOpen}function ge(z){g.value=z}function M(){l.value&&G(l.value)}function G(z){window.open(sr.downloadUrl(a.value,z),"_blank")}function E(){if(!s.value){Ze.warning(i("skill.infoLoading"));return}if(o.value.length<2){Ze.warning(i("skill.needTwoVersions"));return}const z=o.value[1]?.version||"",P=o.value[0]?.version||"";n.push({path:"/diff",query:{id:a.value,version_a:z,version_b:P}})}async function H(){if(y.value){F.value=!0;try{await r.addCollaborator(a.value,y.value),v.value=!1,y.value="",Ze.success(i("collab.addSuccess"))}catch{Ze.error(i("collab.addFailed"))}finally{F.value=!1}}}async function Y(z){if(confirm(i("collab.removeConfirm")))try{await r.removeCollaborator(a.value,z),Ze.success(i("collab.removeSuccess"))}catch{Ze.error(i("collab.removeFailed"))}}async function O(){const z=X.value.trim();if(z===String(s.value?.id))try{if(!await r.deleteSkill(a.value,z))throw new Error(r.error||i("collab.deleteFailed"));R.value=!1,X.value="",n.push("/")}catch{Ze.error(i("collab.deleteFailed"))}}function A(){Q.value=!Q.value,document.body.style.overflow=Q.value?"hidden":""}function U(z){z.key==="Escape"&&Q.value&&A()}function J(z,P){x.value=P,P==="description"?D.value={version:z.version,description:s.value?.description??"",changelog:""}:D.value={version:z.version,description:z.description||"",changelog:z.changelog||""},C.value=!0}async function K(){if(!(x.value==="changelog"&&!D.value.version)){N.value=!0;try{if(x.value==="description")await r.updateSkill(a.value,{description:D.value.description});else{const z=o.value.find(ie=>ie.version===D.value.version),P=await sr.update(a.value,D.value.version,{description:z?.description,changelog:D.value.changelog}),ne=o.value.findIndex(ie=>ie.version===P.version);ne!==-1&&(o.value[ne]={...o.value[ne],...P})}C.value=!1,Ze.success(i("skill.editVersionSuccess"))}catch(z){Ze.error(z.message||i("skill.editVersionFailed"))}finally{N.value=!1}}}async function W(z){if(confirm(`确定将 ${z} 设置为 Head 版本吗?`))try{const P=await Kn.setHead(a.value,z);P.ok&&s.value&&(s.value.latest_version=P.latest_version,Ze.success("设置成功"))}catch(P){Ze.error(P.message||"设置失败")}}return(z,P)=>{const ne=Bn("router-link");return le(),de("div",NA,[p("div",OA,[b.value||j(r).isLoadingDetail?(le(),de("div",AA,[...P[20]||(P[20]=[ur('<div class="cube-loader" data-v-7f4b6eb0><div class="cube cube-1" data-v-7f4b6eb0></div><div class="cube cube-2" data-v-7f4b6eb0></div><div class="cube cube-3" data-v-7f4b6eb0></div><div class="cube cube-4" data-v-7f4b6eb0></div></div>',1)])])):s.value?(le(),de(Ue,{key:2},[p("div",wA,[P[22]||(P[22]=p("span",{class:"text-neon-400"},"~",-1)),P[23]||(P[23]=p("span",{class:"opacity-50"},"/",-1)),Be(ne,{to:"/",class:"hover:text-white transition-colors"},{default:st(()=>[ve(Z(j(i)("skill.breadcrumbHome")),1)]),_:1}),P[24]||(P[24]=p("span",{class:"opacity-50"},"/",-1)),p("span",LA,Z(s.value.name),1)]),p("div",MA,[p("div",kA,"ID: "+Z(s.value.id.toString().substring(0,8)),1),p("h1",PA,[P[25]||(P[25]=p("span",{class:"text-neon-400 font-mono font-normal opacity-70"},">",-1)),ve(" "+Z(s.value.name),1)]),p("div",UA,[p("p",FA,Z(c.value?.description||s.value.description||j(i)("state.noDesc")),1),V.value&&c.value?(le(),de("button",{key:0,onClick:P[0]||(P[0]=ie=>J(c.value,"description")),class:"opacity-0 group-hover:opacity-100 p-1.5 text-base-400 hover:text-neon-400 transition-all flex-shrink-0 bg-base-950 border border-base-800 rounded ml-4",title:"Edit Version Info"},[...P[26]||(P[26]=[p("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})],-1)])])):ke("",!0)]),p("div",BA,[p("div",GA,[Ge(p("select",{"onUpdate:modelValue":P[1]||(P[1]=ie=>l.value=ie),onChange:oe,class:"w-full appearance-none bg-base-950 border border-base-800 text-white font-mono text-sm rounded-lg px-4 py-2.5 focus:outline-none focus:border-neon-500 focus:ring-1 focus:ring-neon-500 transition-colors cursor-pointer"},[(le(!0),de(Ue,null,Ct(o.value,(ie,Te)=>(le(),de("option",{key:ie.id,value:ie.version},Z(ie.version)+" "+Z(Te===0?j(i)("skill.latestTag"):""),9,YA))),128))],544),[[Ir,l.value]]),P[27]||(P[27]=p("svg",{class:"w-4 h-4 absolute right-4 top-3 pointer-events-none text-base-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1))]),p("div",qA,[p("button",{onClick:E,class:"flex items-center justify-center gap-2 bg-transparent text-white border border-base-800 hover:bg-base-800 text-sm font-mono px-5 py-2.5 rounded-lg transition-colors w-full sm:w-auto"},[P[28]||(P[28]=p("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})],-1)),ve(" "+Z(j(i)("skill.compare")),1)]),p("button",{onClick:M,class:"flex items-center justify-center gap-2 bg-transparent border border-neon-500 text-neon-400 hover:bg-neon-400/10 text-sm font-mono px-5 py-2.5 rounded-lg transition-colors w-full sm:w-auto shadow-[0_0_15px_rgba(0,255,163,0.1)] hover:shadow-[0_0_20px_rgba(0,255,163,0.2)]"},[P[29]||(P[29]=p("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)),ve(" "+Z(j(i)("skill.download")),1)])])])]),p("section",HA,[p("div",VA,[P[31]||(P[31]=ur('<div class="px-5 py-3 border-b border-base-800 font-mono text-sm text-base-400 flex items-center gap-2" data-v-7f4b6eb0><span class="w-2.5 h-2.5 rounded-full bg-base-800" data-v-7f4b6eb0></span><span class="w-2.5 h-2.5 rounded-full bg-base-800" data-v-7f4b6eb0></span><span class="w-2.5 h-2.5 rounded-full bg-base-800" data-v-7f4b6eb0></span><span class="ml-2 text-white/50" data-v-7f4b6eb0>ls -la</span></div>',1)),p("div",zA,[d.value?(le(),de("div",$A,[...P[30]||(P[30]=[p("div",{class:"spinner spinner-sm"},null,-1)])])):m.value.length===0?(le(),de("div",WA,[p("p",KA,Z(j(i)("skill.noFile")),1)])):(le(!0),de(Ue,{key:2},Ct(m.value,ie=>(le(),wn(ES,{key:ie.path,node:ie,"selected-path":_.value,onSelect:se,onToggle:pe},null,8,["node","selected-path"]))),128))])]),p("div",{id:"file-preview-panel",class:Ye(["lg:col-span-3 bg-base-900 border border-base-800 rounded-xl flex flex-col min-h-[400px] max-h-[500px]",{fullscreen:Q.value}])},[p("div",QA,[p("div",null,[p("span",null,[P[32]||(P[32]=ve("cat ",-1)),p("span",XA,Z(_.value||"<file>"),1)])]),p("div",ZA,[S.value?(le(),de("div",jA,[p("button",{onClick:P[2]||(P[2]=ie=>ge("render")),class:Ye(["md-view-btn",g.value==="render"?"is-active":""])},Z(j(i)("skill.htmlPreview")),3),p("button",{onClick:P[3]||(P[3]=ie=>ge("source")),class:Ye(["md-view-btn",g.value==="source"?"is-active":""])},Z(j(i)("skill.mdSource")),3)])):ke("",!0),p("button",{onClick:A,class:"md-view-btn",title:Q.value?j(i)("skill.exitFullscreen"):j(i)("skill.fullscreen")},[Q.value?(le(),de("svg",tI,[...P[34]||(P[34]=[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])])):(le(),de("svg",eI,[...P[33]||(P[33]=[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"},null,-1)])]))],8,JA)])]),p("div",nI,[f.value?S.value&&g.value==="render"?(le(),de("div",{key:1,class:"markdown-body p-6",innerHTML:re.value},null,8,aI)):S.value&&g.value==="source"?(le(),de("div",sI,[p("div",oI,Z(B.value),1),p("pre",lI,[p("code",null,Z(L.value),1)])])):q.value?(le(),de("div",cI,[p("div",dI,Z(te.value),1),p("pre",null,[p("code",{ref_key:"codeBlock",ref:I},Z(L.value),513)])])):(le(),de("div",uI,[p("p",_I,Z(j(i)("skill.binaryFile")),1)])):(le(),de("div",rI,[P[35]||(P[35]=p("div",{class:"flex items-center gap-3 opacity-30 font-mono mb-4"},[p("span",{class:"text-neon-400 animate-pulse"},"_"),p("span",null,"EOF")],-1)),p("p",iI,Z(j(i)("skill.selectFile")),1)]))])],2)]),p("div",pI,[p("div",mI,[p("div",gI,[p("div",fI,[P[36]||(P[36]=p("span",{class:"text-neon-400"},"#",-1)),ve(" "+Z(j(i)("skill.collaborators")),1)]),j(r).isOwner?(le(),de("button",{key:0,onClick:P[4]||(P[4]=ie=>v.value=!0),class:"text-xs text-neon-400 hover:text-white transition-colors"}," + "+Z(j(i)("btn.add")),1)):ke("",!0)]),p("div",EI,[p("div",SI,[p("div",bI,[p("span",hI,Z((s.value.owner?.username||"U").charAt(0).toUpperCase()),1),p("div",null,[p("div",TI,Z(s.value.owner?.name||s.value.owner?.username),1),p("div",vI,Z(s.value.owner?.email||""),1)])]),p("span",RI,Z(j(i)("collab.owner")),1)]),(le(!0),de(Ue,null,Ct(s.value.collaborators,ie=>(le(),de("div",{key:ie.id,class:"flex items-center justify-between"},[p("div",CI,[p("span",yI,Z((ie.username||"U").charAt(0).toUpperCase()),1),p("div",null,[p("div",NI,Z(ie.name||ie.username),1),p("div",OI,Z(ie.email||""),1)])]),p("div",AI,[p("span",II,Z(j(i)("collab.collaborator")),1),j(r).isOwner?(le(),de("button",{key:0,onClick:Te=>Y(ie.id),class:"p-1.5 text-base-400 hover:text-red-400 transition-colors",title:j(i)("btn.remove")},[...P[37]||(P[37]=[p("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)])],8,xI)):ke("",!0)])]))),128))]),j(r).isOwner?(le(),de("div",DI,[p("div",wI,[p("button",{onClick:P[5]||(P[5]=ie=>R.value=!0),class:"w-full py-2 text-xs font-mono text-red-500 border border-red-500/30 rounded bg-red-500/5 hover:bg-red-500/10 transition-colors"},Z(j(i)("skill.deleteSkill")),1)])])):ke("",!0)]),p("div",LI,[p("div",{class:"px-5 py-4 border-b border-base-800 flex items-center justify-between rounded-t-xl cursor-pointer hover:bg-white/5 transition-colors",onClick:P[6]||(P[6]=ie=>h.value=!h.value)},[P[39]||(P[39]=p("div",{class:"flex items-center gap-2 font-mono font-semibold text-white text-sm"},[p("span",{class:"text-neon-400"},"git"),ve(" log ")],-1)),p("span",{class:Ye(["text-base-400 transition-transform",h.value?"-rotate-90":""])},[...P[38]||(P[38]=[p("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("polyline",{points:"6 9 12 15 18 9"})],-1)])],2)]),h.value?ke("",!0):(le(),de("div",MI,[p("div",kI,[P[43]||(P[43]=p("div",{class:"absolute left-[5px] top-0 bottom-2 w-px bg-base-800"},null,-1)),(le(!0),de(Ue,null,Ct(o.value,(ie,Te)=>(le(),de("div",{key:ie.id,class:"relative mb-8 last:mb-0 group cursor-pointer"},[p("span",{class:Ye(["absolute -left-[21px] top-2 w-2.5 h-2.5 rounded-full ring-4 ring-base-900 transition-colors",ie.version===s.value.latest_version?"bg-neon-400 shadow-[0_0_8px_rgba(0,255,163,0.8)]":"bg-base-800 group-hover:bg-neon-500"])},null,2),p("div",PI,[p("div",UI,[p("div",FI,[p("span",{class:Ye(["text-xs px-2 py-0.5 rounded font-mono border transition-colors",ie.version===s.value.latest_version?"text-neon-400 border-neon-500/30 bg-neon-400/5":"text-base-400 border-base-800 group-hover:text-neon-400 group-hover:border-neon-500/30"])},Z(ie.version),3),ie.version===s.value.latest_version?(le(),de("span",BI,"Head")):ke("",!0)]),p("p",{class:Ye(["text-sm font-medium mt-2",ie.version===s.value.latest_version?"text-white":"text-base-200"])},Z(ie.changelog||j(i)("skill.noChangelog")),3),p("p",GI," by @"+Z(ie.uploader?.name||ie.uploader?.username||j(i)("state.unknown")),1)]),p("div",YI,[p("span",{class:"text-xs text-base-400 font-mono whitespace-nowrap text-right",title:j(bR)(ie.created_at)},Z(j(iS)(ie.created_at)),9,qI),V.value&&ie.version!==s.value.latest_version?(le(),de("button",{key:0,title:"Set as Head",class:"flex items-center justify-center p-2 text-base-400 border border-base-800 rounded bg-base-950 hover:text-neon-400 hover:border-neon-500 hover:bg-neon-400/10 transition-all",onClick:ft(be=>W(ie.version),["stop"])},[...P[40]||(P[40]=[p("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 10l7-7m0 0l7 7m-7-7v18"})],-1)])],8,HI)):ke("",!0),V.value?(le(),de("button",{key:1,title:"Edit Version",class:"flex items-center justify-center p-2 text-base-400 border border-base-800 rounded bg-base-950 hover:text-neon-400 hover:border-neon-500 hover:bg-neon-400/10 transition-all",onClick:ft(be=>J(ie,"changelog"),["stop"])},[...P[41]||(P[41]=[p("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})],-1)])],8,VI)):ke("",!0),p("button",{title:j(i)("skill.download"),class:"flex items-center justify-center p-2 text-base-400 border border-base-800 rounded bg-base-950 hover:text-neon-400 hover:border-neon-500 hover:bg-neon-400/10 hover:shadow-[0_0_10px_rgba(0,255,163,0.15)] transition-all",onClick:ft(be=>G(ie.version),["stop"])},[...P[42]||(P[42]=[p("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)])],8,zI)])])]))),128)),o.value.length===0?(le(),de("div",$I,[p("p",WI,Z(j(i)("skill.noVersions")),1)])):ke("",!0)])]))])])],64)):(le(),de("div",IA,[P[21]||(P[21]=p("div",{class:"w-20 h-20 mx-auto mb-6 rounded-full bg-base-800 flex items-center justify-center"},[p("svg",{class:"w-10 h-10 text-base-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1)),p("h3",xA,Z(j(i)("skill.notFound")),1),p("p",DA,Z(j(i)("skill.notFoundDesc")),1),Be(ne,{to:"/",class:"btn-primary px-6 py-3 rounded-lg"},{default:st(()=>[ve(Z(j(i)("skill.backToHome")),1)]),_:1})]))]),v.value?(le(),de("div",{key:0,class:"modal",onClick:P[10]||(P[10]=ft(ie=>v.value=!1,["self"]))},[P[44]||(P[44]=p("div",{class:"modal-overlay"},null,-1)),p("div",KI,[p("div",QI,[p("h3",null,Z(j(i)("collab.modal")),1),p("button",{class:"modal-close",onClick:P[7]||(P[7]=ie=>v.value=!1)},"×")]),p("div",XI,[p("div",ZI,[p("label",null,Z(j(i)("collab.usernameLabel")),1),Ge(p("input",{"onUpdate:modelValue":P[8]||(P[8]=ie=>y.value=ie),type:"text",placeholder:j(i)("collab.usernamePlaceholder"),class:"form-input",onKeyup:dT(H,["enter"])},null,40,jI),[[at,y.value]])])]),p("div",JI,[p("button",{class:"btn btn-secondary",onClick:P[9]||(P[9]=ie=>v.value=!1)},Z(j(i)("btn.cancel")),1),p("button",{class:"btn btn-primary",onClick:H,disabled:!y.value||F.value},[F.value?(le(),de("span",tx)):ke("",!0),ve(" "+Z(j(i)("btn.add")),1)],8,ex)])])])):ke("",!0),R.value?(le(),de("div",{key:1,class:"modal",onClick:P[14]||(P[14]=ft(ie=>R.value=!1,["self"]))},[P[45]||(P[45]=p("div",{class:"modal-overlay"},null,-1)),p("div",nx,[p("div",rx,[p("h3",null,Z(j(i)("collab.deleteModal")),1),p("button",{class:"modal-close",onClick:P[11]||(P[11]=ie=>R.value=!1)},"×")]),p("div",ix,[p("p",ax,Z(j(i)("collab.deleteWarning")),1),p("div",sx,[p("label",null,Z(j(i)("collab.deleteLabel"))+" "+Z(s.value?.id),1),Ge(p("input",{"onUpdate:modelValue":P[12]||(P[12]=ie=>X.value=ie),type:"text",placeholder:"",class:"form-input"},null,512),[[at,X.value]])])]),p("div",ox,[p("button",{class:"btn btn-secondary",onClick:P[13]||(P[13]=ie=>R.value=!1)},Z(j(i)("btn.cancel")),1),p("button",{class:"btn btn-danger",onClick:O,disabled:X.value!==String(s.value?.id)},Z(j(i)("collab.deleteConfirmBtn")),9,lx)])])])):ke("",!0),C.value?(le(),de("div",{key:2,class:"modal",onClick:P[19]||(P[19]=ft(ie=>C.value=!1,["self"]))},[P[46]||(P[46]=p("div",{class:"modal-overlay"},null,-1)),p("div",cx,[p("div",dx,[p("h3",null,Z(x.value==="description"?j(i)("skill.editVersionTitleDesc"):j(i)("skill.editVersionTitleChangelog"))+" ("+Z(D.value.version)+")",1),p("button",{class:"modal-close",onClick:P[15]||(P[15]=ie=>C.value=!1)},"×")]),p("div",ux,[x.value==="description"?(le(),de("div",_x,[p("label",null,Z(j(i)("skill.editVersionLabelDescription")),1),Ge(p("textarea",{"onUpdate:modelValue":P[16]||(P[16]=ie=>D.value.description=ie),placeholder:j(i)("skill.editVersionPlaceholderDescription"),class:"form-input min-h-[100px]"},null,8,px),[[at,D.value.description]])])):ke("",!0),x.value==="changelog"?(le(),de("div",mx,[p("label",null,Z(j(i)("skill.editVersionLabelChangelog")),1),Ge(p("textarea",{"onUpdate:modelValue":P[17]||(P[17]=ie=>D.value.changelog=ie),placeholder:j(i)("skill.editVersionPlaceholderChangelog"),class:"form-input min-h-[100px]"},null,8,gx),[[at,D.value.changelog]])])):ke("",!0)]),p("div",fx,[p("button",{class:"btn btn-secondary",onClick:P[18]||(P[18]=ie=>C.value=!1)},Z(j(i)("btn.cancel")),1),p("button",{class:"btn btn-primary",onClick:K,disabled:N.value},[N.value?(le(),de("span",Sx)):ke("",!0),ve(" "+Z(j(i)("btn.save")),1)],8,Ex)])])])):ke("",!0)])}}}),hx=vn(bx,[["__scopeId","data-v-7f4b6eb0"]]);function Fi(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pc={exports:{}};var cf;function Tx(){return cf||(cf=1,(function(t,e){(function(n){t.exports=n()})(function(){return(function n(r,i,a){function s(c,d){if(!i[c]){if(!r[c]){var u=typeof Fi=="function"&&Fi;if(!d&&u)return u(c,!0);if(o)return o(c,!0);var m=new Error("Cannot find module '"+c+"'");throw m.code="MODULE_NOT_FOUND",m}var _=i[c]={exports:{}};r[c][0].call(_.exports,function(f){var g=r[c][1][f];return s(g||f)},_,_.exports,n,r,i,a)}return i[c].exports}for(var o=typeof Fi=="function"&&Fi,l=0;l<a.length;l++)s(a[l]);return s})({1:[function(n,r,i){var a=n("./utils"),s=n("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(l){for(var c,d,u,m,_,f,g,S=[],b=0,h=l.length,v=h,R=a.getTypeOf(l)!=="string";b<l.length;)v=h-b,u=R?(c=l[b++],d=b<h?l[b++]:0,b<h?l[b++]:0):(c=l.charCodeAt(b++),d=b<h?l.charCodeAt(b++):0,b<h?l.charCodeAt(b++):0),m=c>>2,_=(3&c)<<4|d>>4,f=1<v?(15&d)<<2|u>>6:64,g=2<v?63&u:64,S.push(o.charAt(m)+o.charAt(_)+o.charAt(f)+o.charAt(g));return S.join("")},i.decode=function(l){var c,d,u,m,_,f,g=0,S=0,b="data:";if(l.substr(0,b.length)===b)throw new Error("Invalid base64 input, it looks like a data url.");var h,v=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===o.charAt(64)&&v--,l.charAt(l.length-2)===o.charAt(64)&&v--,v%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=s.uint8array?new Uint8Array(0|v):new Array(0|v);g<l.length;)c=o.indexOf(l.charAt(g++))<<2|(m=o.indexOf(l.charAt(g++)))>>4,d=(15&m)<<4|(_=o.indexOf(l.charAt(g++)))>>2,u=(3&_)<<6|(f=o.indexOf(l.charAt(g++))),h[S++]=c,_!==64&&(h[S++]=d),f!==64&&(h[S++]=u);return h}},{"./support":30,"./utils":32}],2:[function(n,r,i){var a=n("./external"),s=n("./stream/DataWorker"),o=n("./stream/Crc32Probe"),l=n("./stream/DataLengthProbe");function c(d,u,m,_,f){this.compressedSize=d,this.uncompressedSize=u,this.crc32=m,this.compression=_,this.compressedContent=f}c.prototype={getContentWorker:function(){var d=new s(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),u=this;return d.on("end",function(){if(this.streamInfo.data_length!==u.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new s(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(d,u,m){return d.pipe(new o).pipe(new l("uncompressedSize")).pipe(u.compressWorker(m)).pipe(new l("compressedSize")).withStreamInfo("compression",u)},r.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var a=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var a=n("./utils"),s=(function(){for(var o,l=[],c=0;c<256;c++){o=c;for(var d=0;d<8;d++)o=1&o?3988292384^o>>>1:o>>>1;l[c]=o}return l})();r.exports=function(o,l){return o!==void 0&&o.length?a.getTypeOf(o)!=="string"?(function(c,d,u,m){var _=s,f=m+u;c^=-1;for(var g=m;g<f;g++)c=c>>>8^_[255&(c^d[g])];return-1^c})(0|l,o,o.length,0):(function(c,d,u,m){var _=s,f=m+u;c^=-1;for(var g=m;g<f;g++)c=c>>>8^_[255&(c^d.charCodeAt(g))];return-1^c})(0|l,o,o.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var a=null;a=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:a}},{lie:37}],7:[function(n,r,i){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",s=n("pako"),o=n("./utils"),l=n("./stream/GenericWorker"),c=a?"uint8array":"array";function d(u,m){l.call(this,"FlateWorker/"+u),this._pako=null,this._pakoAction=u,this._pakoOptions=m,this.meta={}}i.magic="\b\0",o.inherits(d,l),d.prototype.processChunk=function(u){this.meta=u.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(c,u.data),!1)},d.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var u=this;this._pako.onData=function(m){u.push({data:m,meta:u.meta})}},i.compressWorker=function(u){return new d("Deflate",u)},i.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function a(_,f){var g,S="";for(g=0;g<f;g++)S+=String.fromCharCode(255&_),_>>>=8;return S}function s(_,f,g,S,b,h){var v,R,C=_.file,x=_.compression,D=h!==c.utf8encode,N=o.transformTo("string",h(C.name)),y=o.transformTo("string",c.utf8encode(C.name)),F=C.comment,X=o.transformTo("string",h(F)),I=o.transformTo("string",c.utf8encode(F)),Q=y.length!==C.name.length,T=I.length!==F.length,w="",ue="",k="",V=C.dir,q=C.date,re={crc32:0,compressedSize:0,uncompressedSize:0};f&&!g||(re.crc32=_.crc32,re.compressedSize=_.compressedSize,re.uncompressedSize=_.uncompressedSize);var L=0;f&&(L|=8),D||!Q&&!T||(L|=2048);var B=0,te=0;V&&(B|=16),b==="UNIX"?(te=798,B|=(function(oe,Ee){var ee=oe;return oe||(ee=Ee?16893:33204),(65535&ee)<<16})(C.unixPermissions,V)):(te=20,B|=(function(oe){return 63&(oe||0)})(C.dosPermissions)),v=q.getUTCHours(),v<<=6,v|=q.getUTCMinutes(),v<<=5,v|=q.getUTCSeconds()/2,R=q.getUTCFullYear()-1980,R<<=4,R|=q.getUTCMonth()+1,R<<=5,R|=q.getUTCDate(),Q&&(ue=a(1,1)+a(d(N),4)+y,w+="up"+a(ue.length,2)+ue),T&&(k=a(1,1)+a(d(X),4)+I,w+="uc"+a(k.length,2)+k);var ce="";return ce+=`
|
|
81
81
|
\0`,ce+=a(L,2),ce+=x.magic,ce+=a(v,2),ce+=a(R,2),ce+=a(re.crc32,4),ce+=a(re.compressedSize,4),ce+=a(re.uncompressedSize,4),ce+=a(N.length,2),ce+=a(w.length,2),{fileRecord:u.LOCAL_FILE_HEADER+ce+N+w,dirRecord:u.CENTRAL_FILE_HEADER+a(te,2)+ce+a(X.length,2)+"\0\0\0\0"+a(B,4)+a(S,4)+N+w+X}}var o=n("../utils"),l=n("../stream/GenericWorker"),c=n("../utf8"),d=n("../crc32"),u=n("../signature");function m(_,f,g,S){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=f,this.zipPlatform=g,this.encodeFileName=S,this.streamFiles=_,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(m,l),m.prototype.push=function(_){var f=_.meta.percent||0,g=this.entriesCount,S=this._sources.length;this.accumulate?this.contentBuffer.push(_):(this.bytesWritten+=_.data.length,l.prototype.push.call(this,{data:_.data,meta:{currentFile:this.currentFile,percent:g?(f+100*(g-S-1))/g:100}}))},m.prototype.openedSource=function(_){this.currentSourceOffset=this.bytesWritten,this.currentFile=_.file.name;var f=this.streamFiles&&!_.file.dir;if(f){var g=s(_,f,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},m.prototype.closedSource=function(_){this.accumulate=!1;var f=this.streamFiles&&!_.file.dir,g=s(_,f,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),f)this.push({data:(function(S){return u.DATA_DESCRIPTOR+a(S.crc32,4)+a(S.compressedSize,4)+a(S.uncompressedSize,4)})(_),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},m.prototype.flush=function(){for(var _=this.bytesWritten,f=0;f<this.dirRecords.length;f++)this.push({data:this.dirRecords[f],meta:{percent:100}});var g=this.bytesWritten-_,S=(function(b,h,v,R,C){var x=o.transformTo("string",C(R));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+a(b,2)+a(b,2)+a(h,4)+a(v,4)+a(x.length,2)+x})(this.dirRecords.length,g,_,this.zipComment,this.encodeFileName);this.push({data:S,meta:{percent:100}})},m.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},m.prototype.registerPrevious=function(_){this._sources.push(_);var f=this;return _.on("data",function(g){f.processChunk(g)}),_.on("end",function(){f.closedSource(f.previous.streamInfo),f._sources.length?f.prepareNextSource():f.end()}),_.on("error",function(g){f.error(g)}),this},m.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},m.prototype.error=function(_){var f=this._sources;if(!l.prototype.error.call(this,_))return!1;for(var g=0;g<f.length;g++)try{f[g].error(_)}catch{}return!0},m.prototype.lock=function(){l.prototype.lock.call(this);for(var _=this._sources,f=0;f<_.length;f++)_[f].lock()},r.exports=m},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var a=n("../compressions"),s=n("./ZipFileWorker");i.generateWorker=function(o,l,c){var d=new s(l.streamFiles,c,l.platform,l.encodeFileName),u=0;try{o.forEach(function(m,_){u++;var f=(function(h,v){var R=h||v,C=a[R];if(!C)throw new Error(R+" is not a valid compression method !");return C})(_.options.compression,l.compression),g=_.options.compressionOptions||l.compressionOptions||{},S=_.dir,b=_.date;_._compressWorker(f,g).withStreamInfo("file",{name:m,dir:S,date:b,comment:_.comment||"",unixPermissions:_.unixPermissions,dosPermissions:_.dosPermissions}).pipe(d)}),d.entriesCount=u}catch(m){d.error(m)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function a(){if(!(this instanceof a))return new a;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var s=new a;for(var o in this)typeof this[o]!="function"&&(s[o]=this[o]);return s}}(a.prototype=n("./object")).loadAsync=n("./load"),a.support=n("./support"),a.defaults=n("./defaults"),a.version="3.10.1",a.loadAsync=function(s,o){return new a().loadAsync(s,o)},a.external=n("./external"),r.exports=a},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var a=n("./utils"),s=n("./external"),o=n("./utf8"),l=n("./zipEntries"),c=n("./stream/Crc32Probe"),d=n("./nodejsUtils");function u(m){return new s.Promise(function(_,f){var g=m.decompressed.getContentWorker().pipe(new c);g.on("error",function(S){f(S)}).on("end",function(){g.streamInfo.crc32!==m.decompressed.crc32?f(new Error("Corrupted zip : CRC32 mismatch")):_()}).resume()})}r.exports=function(m,_){var f=this;return _=a.extend(_||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),d.isNode&&d.isStream(m)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):a.prepareContent("the loaded zip file",m,!0,_.optimizedBinaryString,_.base64).then(function(g){var S=new l(_);return S.load(g),S}).then(function(g){var S=[s.Promise.resolve(g)],b=g.files;if(_.checkCRC32)for(var h=0;h<b.length;h++)S.push(u(b[h]));return s.Promise.all(S)}).then(function(g){for(var S=g.shift(),b=S.files,h=0;h<b.length;h++){var v=b[h],R=v.fileNameStr,C=a.resolve(v.fileNameStr);f.file(C,v.decompressed,{binary:!0,optimizedBinaryString:!0,date:v.date,dir:v.dir,comment:v.fileCommentStr.length?v.fileCommentStr:null,unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions,createFolders:_.createFolders}),v.dir||(f.file(C).unsafeOriginalName=R)}return S.zipComment.length&&(f.comment=S.zipComment),f})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var a=n("../utils"),s=n("../stream/GenericWorker");function o(l,c){s.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(c)}a.inherits(o,s),o.prototype._bindStream=function(l){var c=this;(this._stream=l).pause(),l.on("data",function(d){c.push({data:d,meta:{percent:0}})}).on("error",function(d){c.isPaused?this.generatedError=d:c.error(d)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},o.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var a=n("readable-stream").Readable;function s(o,l,c){a.call(this,l),this._helper=o;var d=this;o.on("data",function(u,m){d.push(u)||d._helper.pause(),c&&c(m)}).on("error",function(u){d.emit("error",u)}).on("end",function(){d.push(null)})}n("../utils").inherits(s,a),s.prototype._read=function(){this._helper.resume()},r.exports=s},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(a,s){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,s);if(typeof a=="number")throw new Error('The "data" argument must not be a number');return new Buffer(a,s)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var s=new Buffer(a);return s.fill(0),s},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&typeof a.on=="function"&&typeof a.pause=="function"&&typeof a.resume=="function"}}},{}],15:[function(n,r,i){function a(C,x,D){var N,y=o.getTypeOf(x),F=o.extend(D||{},d);F.date=F.date||new Date,F.compression!==null&&(F.compression=F.compression.toUpperCase()),typeof F.unixPermissions=="string"&&(F.unixPermissions=parseInt(F.unixPermissions,8)),F.unixPermissions&&16384&F.unixPermissions&&(F.dir=!0),F.dosPermissions&&16&F.dosPermissions&&(F.dir=!0),F.dir&&(C=b(C)),F.createFolders&&(N=S(C))&&h.call(this,N,!0);var X=y==="string"&&F.binary===!1&&F.base64===!1;D&&D.binary!==void 0||(F.binary=!X),(x instanceof u&&x.uncompressedSize===0||F.dir||!x||x.length===0)&&(F.base64=!1,F.binary=!0,x="",F.compression="STORE",y="string");var I=null;I=x instanceof u||x instanceof l?x:f.isNode&&f.isStream(x)?new g(C,x):o.prepareContent(C,x,F.binary,F.optimizedBinaryString,F.base64);var Q=new m(C,I,F);this.files[C]=Q}var s=n("./utf8"),o=n("./utils"),l=n("./stream/GenericWorker"),c=n("./stream/StreamHelper"),d=n("./defaults"),u=n("./compressedObject"),m=n("./zipObject"),_=n("./generate"),f=n("./nodejsUtils"),g=n("./nodejs/NodejsStreamInputAdapter"),S=function(C){C.slice(-1)==="/"&&(C=C.substring(0,C.length-1));var x=C.lastIndexOf("/");return 0<x?C.substring(0,x):""},b=function(C){return C.slice(-1)!=="/"&&(C+="/"),C},h=function(C,x){return x=x!==void 0?x:d.createFolders,C=b(C),this.files[C]||a.call(this,C,null,{dir:!0,createFolders:x}),this.files[C]};function v(C){return Object.prototype.toString.call(C)==="[object RegExp]"}var R={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(C){var x,D,N;for(x in this.files)N=this.files[x],(D=x.slice(this.root.length,x.length))&&x.slice(0,this.root.length)===this.root&&C(D,N)},filter:function(C){var x=[];return this.forEach(function(D,N){C(D,N)&&x.push(N)}),x},file:function(C,x,D){if(arguments.length!==1)return C=this.root+C,a.call(this,C,x,D),this;if(v(C)){var N=C;return this.filter(function(F,X){return!X.dir&&N.test(F)})}var y=this.files[this.root+C];return y&&!y.dir?y:null},folder:function(C){if(!C)return this;if(v(C))return this.filter(function(y,F){return F.dir&&C.test(y)});var x=this.root+C,D=h.call(this,x),N=this.clone();return N.root=D.name,N},remove:function(C){C=this.root+C;var x=this.files[C];if(x||(C.slice(-1)!=="/"&&(C+="/"),x=this.files[C]),x&&!x.dir)delete this.files[C];else for(var D=this.filter(function(y,F){return F.name.slice(0,C.length)===C}),N=0;N<D.length;N++)delete this.files[D[N].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(C){var x,D={};try{if((D=o.extend(C||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=D.type.toLowerCase(),D.compression=D.compression.toUpperCase(),D.type==="binarystring"&&(D.type="string"),!D.type)throw new Error("No output type specified.");o.checkSupport(D.type),D.platform!=="darwin"&&D.platform!=="freebsd"&&D.platform!=="linux"&&D.platform!=="sunos"||(D.platform="UNIX"),D.platform==="win32"&&(D.platform="DOS");var N=D.comment||this.comment||"";x=_.generateWorker(this,D,N)}catch(y){(x=new l("error")).error(y)}return new c(x,D.type||"string",D.mimeType)},generateAsync:function(C,x){return this.generateInternalStream(C).accumulate(x)},generateNodeStream:function(C,x){return(C=C||{}).type||(C.type="nodebuffer"),this.generateInternalStream(C).toNodejsStream(x)}};r.exports=R},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,i){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,i){var a=n("./DataReader");function s(o){a.call(this,o);for(var l=0;l<this.data.length;l++)o[l]=255&o[l]}n("../utils").inherits(s,a),s.prototype.byteAt=function(o){return this.data[this.zero+o]},s.prototype.lastIndexOfSignature=function(o){for(var l=o.charCodeAt(0),c=o.charCodeAt(1),d=o.charCodeAt(2),u=o.charCodeAt(3),m=this.length-4;0<=m;--m)if(this.data[m]===l&&this.data[m+1]===c&&this.data[m+2]===d&&this.data[m+3]===u)return m-this.zero;return-1},s.prototype.readAndCheckSignature=function(o){var l=o.charCodeAt(0),c=o.charCodeAt(1),d=o.charCodeAt(2),u=o.charCodeAt(3),m=this.readData(4);return l===m[0]&&c===m[1]&&d===m[2]&&u===m[3]},s.prototype.readData=function(o){if(this.checkOffset(o),o===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},r.exports=s},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var a=n("../utils");function s(o){this.data=o,this.length=o.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(o){this.checkIndex(this.index+o)},checkIndex:function(o){if(this.length<this.zero+o||o<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+o+"). Corrupted zip ?")},setIndex:function(o){this.checkIndex(o),this.index=o},skip:function(o){this.setIndex(this.index+o)},byteAt:function(){},readInt:function(o){var l,c=0;for(this.checkOffset(o),l=this.index+o-1;l>=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=o,c},readString:function(o){return a.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},r.exports=s},{"../utils":32}],19:[function(n,r,i){var a=n("./Uint8ArrayReader");function s(o){a.call(this,o)}n("../utils").inherits(s,a),s.prototype.readData=function(o){this.checkOffset(o);var l=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},r.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var a=n("./DataReader");function s(o){a.call(this,o)}n("../utils").inherits(s,a),s.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},s.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},s.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},s.prototype.readData=function(o){this.checkOffset(o);var l=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},r.exports=s},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var a=n("./ArrayReader");function s(o){a.call(this,o)}n("../utils").inherits(s,a),s.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},r.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var a=n("../utils"),s=n("../support"),o=n("./ArrayReader"),l=n("./StringReader"),c=n("./NodeBufferReader"),d=n("./Uint8ArrayReader");r.exports=function(u){var m=a.getTypeOf(u);return a.checkSupport(m),m!=="string"||s.uint8array?m==="nodebuffer"?new c(u):s.uint8array?new d(a.transformTo("uint8array",u)):new o(a.transformTo("array",u)):new l(u)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,i){var a=n("./GenericWorker"),s=n("../utils");function o(l){a.call(this,"ConvertWorker to "+l),this.destType=l}s.inherits(o,a),o.prototype.processChunk=function(l){this.push({data:s.transformTo(this.destType,l.data),meta:l.meta})},r.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var a=n("./GenericWorker"),s=n("../crc32");function o(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(o,a),o.prototype.processChunk=function(l){this.streamInfo.crc32=s(l.data,this.streamInfo.crc32||0),this.push(l)},r.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var a=n("../utils"),s=n("./GenericWorker");function o(l){s.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}a.inherits(o,s),o.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}s.prototype.processChunk.call(this,l)},r.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var a=n("../utils"),s=n("./GenericWorker");function o(l){s.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(d){c.dataIsReady=!0,c.data=d,c.max=d&&d.length||0,c.type=a.getTypeOf(d),c.isPaused||c._tickAndRepeat()},function(d){c.error(d)})}a.inherits(o,s),o.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,a.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(a.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function a(s){this.name=s||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}a.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,o){return this._listeners[s].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,o){if(this._listeners[s])for(var l=0;l<this._listeners[s].length;l++)this._listeners[s][l].call(this,o)},pipe:function(s){return s.registerPrevious(this)},registerPrevious:function(s){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=s.streamInfo,this.mergeStreamInfo(),this.previous=s;var o=this;return s.on("data",function(l){o.processChunk(l)}),s.on("end",function(){o.end()}),s.on("error",function(l){o.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var s=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),s=!0),this.previous&&this.previous.resume(),!s},flush:function(){},processChunk:function(s){this.push(s)},withStreamInfo:function(s,o){return this.extraStreamInfo[s]=o,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var s in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,s)&&(this.streamInfo[s]=this.extraStreamInfo[s])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var s="Worker "+this.name;return this.previous?this.previous+" -> "+s:s}},r.exports=a},{}],29:[function(n,r,i){var a=n("../utils"),s=n("./ConvertWorker"),o=n("./GenericWorker"),l=n("../base64"),c=n("../support"),d=n("../external"),u=null;if(c.nodestream)try{u=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function m(f,g){return new d.Promise(function(S,b){var h=[],v=f._internalType,R=f._outputType,C=f._mimeType;f.on("data",function(x,D){h.push(x),g&&g(D)}).on("error",function(x){h=[],b(x)}).on("end",function(){try{var x=(function(D,N,y){switch(D){case"blob":return a.newBlob(a.transformTo("arraybuffer",N),y);case"base64":return l.encode(N);default:return a.transformTo(D,N)}})(R,(function(D,N){var y,F=0,X=null,I=0;for(y=0;y<N.length;y++)I+=N[y].length;switch(D){case"string":return N.join("");case"array":return Array.prototype.concat.apply([],N);case"uint8array":for(X=new Uint8Array(I),y=0;y<N.length;y++)X.set(N[y],F),F+=N[y].length;return X;case"nodebuffer":return Buffer.concat(N);default:throw new Error("concat : unsupported type '"+D+"'")}})(v,h),C);S(x)}catch(D){b(D)}h=[]}).resume()})}function _(f,g,S){var b=g;switch(g){case"blob":case"arraybuffer":b="uint8array";break;case"base64":b="string"}try{this._internalType=b,this._outputType=g,this._mimeType=S,a.checkSupport(b),this._worker=f.pipe(new s(b)),f.lock()}catch(h){this._worker=new o("error"),this._worker.error(h)}}_.prototype={accumulate:function(f){return m(this,f)},on:function(f,g){var S=this;return f==="data"?this._worker.on(f,function(b){g.call(S,b.data,b.meta)}):this._worker.on(f,function(){a.delay(g,arguments,S)}),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(f){if(a.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:this._outputType!=="nodebuffer"},f)}},r.exports=_},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var a=new ArrayBuffer(0);try{i.blob=new Blob([a],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(a),i.blob=s.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,i){for(var a=n("./utils"),s=n("./support"),o=n("./nodejsUtils"),l=n("./stream/GenericWorker"),c=new Array(256),d=0;d<256;d++)c[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;c[254]=c[254]=1;function u(){l.call(this,"utf-8 decode"),this.leftOver=null}function m(){l.call(this,"utf-8 encode")}i.utf8encode=function(_){return s.nodebuffer?o.newBufferFrom(_,"utf-8"):(function(f){var g,S,b,h,v,R=f.length,C=0;for(h=0;h<R;h++)(64512&(S=f.charCodeAt(h)))==55296&&h+1<R&&(64512&(b=f.charCodeAt(h+1)))==56320&&(S=65536+(S-55296<<10)+(b-56320),h++),C+=S<128?1:S<2048?2:S<65536?3:4;for(g=s.uint8array?new Uint8Array(C):new Array(C),h=v=0;v<C;h++)(64512&(S=f.charCodeAt(h)))==55296&&h+1<R&&(64512&(b=f.charCodeAt(h+1)))==56320&&(S=65536+(S-55296<<10)+(b-56320),h++),S<128?g[v++]=S:(S<2048?g[v++]=192|S>>>6:(S<65536?g[v++]=224|S>>>12:(g[v++]=240|S>>>18,g[v++]=128|S>>>12&63),g[v++]=128|S>>>6&63),g[v++]=128|63&S);return g})(_)},i.utf8decode=function(_){return s.nodebuffer?a.transformTo("nodebuffer",_).toString("utf-8"):(function(f){var g,S,b,h,v=f.length,R=new Array(2*v);for(g=S=0;g<v;)if((b=f[g++])<128)R[S++]=b;else if(4<(h=c[b]))R[S++]=65533,g+=h-1;else{for(b&=h===2?31:h===3?15:7;1<h&&g<v;)b=b<<6|63&f[g++],h--;1<h?R[S++]=65533:b<65536?R[S++]=b:(b-=65536,R[S++]=55296|b>>10&1023,R[S++]=56320|1023&b)}return R.length!==S&&(R.subarray?R=R.subarray(0,S):R.length=S),a.applyFromCharCode(R)})(_=a.transformTo(s.uint8array?"uint8array":"array",_))},a.inherits(u,l),u.prototype.processChunk=function(_){var f=a.transformTo(s.uint8array?"uint8array":"array",_.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var g=f;(f=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),f.set(g,this.leftOver.length)}else f=this.leftOver.concat(f);this.leftOver=null}var S=(function(h,v){var R;for((v=v||h.length)>h.length&&(v=h.length),R=v-1;0<=R&&(192&h[R])==128;)R--;return R<0||R===0?v:R+c[h[R]]>v?R:v})(f),b=f;S!==f.length&&(s.uint8array?(b=f.subarray(0,S),this.leftOver=f.subarray(S,f.length)):(b=f.slice(0,S),this.leftOver=f.slice(S,f.length))),this.push({data:i.utf8decode(b),meta:_.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=u,a.inherits(m,l),m.prototype.processChunk=function(_){this.push({data:i.utf8encode(_.data),meta:_.meta})},i.Utf8EncodeWorker=m},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var a=n("./support"),s=n("./base64"),o=n("./nodejsUtils"),l=n("./external");function c(g){return g}function d(g,S){for(var b=0;b<g.length;++b)S[b]=255&g.charCodeAt(b);return S}n("setimmediate"),i.newBlob=function(g,S){i.checkSupport("blob");try{return new Blob([g],{type:S})}catch{try{var b=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return b.append(g),b.getBlob(S)}catch{throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(g,S,b){var h=[],v=0,R=g.length;if(R<=b)return String.fromCharCode.apply(null,g);for(;v<R;)S==="array"||S==="nodebuffer"?h.push(String.fromCharCode.apply(null,g.slice(v,Math.min(v+b,R)))):h.push(String.fromCharCode.apply(null,g.subarray(v,Math.min(v+b,R)))),v+=b;return h.join("")},stringifyByChar:function(g){for(var S="",b=0;b<g.length;b++)S+=String.fromCharCode(g[b]);return S},applyCanBeUsed:{uint8array:(function(){try{return a.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return a.nodebuffer&&String.fromCharCode.apply(null,o.allocBuffer(1)).length===1}catch{return!1}})()}};function m(g){var S=65536,b=i.getTypeOf(g),h=!0;if(b==="uint8array"?h=u.applyCanBeUsed.uint8array:b==="nodebuffer"&&(h=u.applyCanBeUsed.nodebuffer),h)for(;1<S;)try{return u.stringifyByChunk(g,b,S)}catch{S=Math.floor(S/2)}return u.stringifyByChar(g)}function _(g,S){for(var b=0;b<g.length;b++)S[b]=g[b];return S}i.applyFromCharCode=m;var f={};f.string={string:c,array:function(g){return d(g,new Array(g.length))},arraybuffer:function(g){return f.string.uint8array(g).buffer},uint8array:function(g){return d(g,new Uint8Array(g.length))},nodebuffer:function(g){return d(g,o.allocBuffer(g.length))}},f.array={string:m,array:c,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return o.newBufferFrom(g)}},f.arraybuffer={string:function(g){return m(new Uint8Array(g))},array:function(g){return _(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:c,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return o.newBufferFrom(new Uint8Array(g))}},f.uint8array={string:m,array:function(g){return _(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:c,nodebuffer:function(g){return o.newBufferFrom(g)}},f.nodebuffer={string:m,array:function(g){return _(g,new Array(g.length))},arraybuffer:function(g){return f.nodebuffer.uint8array(g).buffer},uint8array:function(g){return _(g,new Uint8Array(g.length))},nodebuffer:c},i.transformTo=function(g,S){if(S=S||"",!g)return S;i.checkSupport(g);var b=i.getTypeOf(S);return f[b][g](S)},i.resolve=function(g){for(var S=g.split("/"),b=[],h=0;h<S.length;h++){var v=S[h];v==="."||v===""&&h!==0&&h!==S.length-1||(v===".."?b.pop():b.push(v))}return b.join("/")},i.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":a.nodebuffer&&o.isBuffer(g)?"nodebuffer":a.uint8array&&g instanceof Uint8Array?"uint8array":a.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(g){if(!a[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(g){var S,b,h="";for(b=0;b<(g||"").length;b++)h+="\\x"+((S=g.charCodeAt(b))<16?"0":"")+S.toString(16).toUpperCase();return h},i.delay=function(g,S,b){setImmediate(function(){g.apply(b||null,S||[])})},i.inherits=function(g,S){function b(){}b.prototype=S.prototype,g.prototype=new b},i.extend=function(){var g,S,b={};for(g=0;g<arguments.length;g++)for(S in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],S)&&b[S]===void 0&&(b[S]=arguments[g][S]);return b},i.prepareContent=function(g,S,b,h,v){return l.Promise.resolve(S).then(function(R){return a.blob&&(R instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(R))!==-1)&&typeof FileReader<"u"?new l.Promise(function(C,x){var D=new FileReader;D.onload=function(N){C(N.target.result)},D.onerror=function(N){x(N.target.error)},D.readAsArrayBuffer(R)}):R}).then(function(R){var C=i.getTypeOf(R);return C?(C==="arraybuffer"?R=i.transformTo("uint8array",R):C==="string"&&(v?R=s.decode(R):b&&h!==!0&&(R=(function(x){return d(x,a.uint8array?new Uint8Array(x.length):new Array(x.length))})(R))),R):l.Promise.reject(new Error("Can't read the data of '"+g+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,i){var a=n("./reader/readerFor"),s=n("./utils"),o=n("./signature"),l=n("./zipEntry"),c=n("./support");function d(u){this.files=[],this.loadOptions=u}d.prototype={checkSignature:function(u){if(!this.reader.readAndCheckSignature(u)){this.reader.index-=4;var m=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(m)+", expected "+s.pretty(u)+")")}},isSignature:function(u,m){var _=this.reader.index;this.reader.setIndex(u);var f=this.reader.readString(4)===m;return this.reader.setIndex(_),f},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var u=this.reader.readData(this.zipCommentLength),m=c.uint8array?"uint8array":"array",_=s.transformTo(m,u);this.zipComment=this.loadOptions.decodeFileName(_)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var u,m,_,f=this.zip64EndOfCentralSize-44;0<f;)u=this.reader.readInt(2),m=this.reader.readInt(4),_=this.reader.readData(m),this.zip64ExtensibleData[u]={id:u,length:m,value:_}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var u,m;for(u=0;u<this.files.length;u++)m=this.files[u],this.reader.setIndex(m.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),m.readLocalPart(this.reader),m.handleUTF8(),m.processAttributes()},readCentralDir:function(){var u;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(u=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(u);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var u=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(u<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(u);var m=u;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(u=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(u),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var _=this.centralDirOffset+this.centralDirSize;this.zip64&&(_+=20,_+=12+this.zip64EndOfCentralSize);var f=m-_;if(0<f)this.isSignature(m,o.CENTRAL_FILE_HEADER)||(this.reader.zero=f);else if(f<0)throw new Error("Corrupted zip: missing "+Math.abs(f)+" bytes.")},prepareReader:function(u){this.reader=a(u)},load:function(u){this.prepareReader(u),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=d},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var a=n("./reader/readerFor"),s=n("./utils"),o=n("./compressedObject"),l=n("./crc32"),c=n("./utf8"),d=n("./compressions"),u=n("./support");function m(_,f){this.options=_,this.loadOptions=f}m.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(_){var f,g;if(_.skip(22),this.fileNameLength=_.readInt(2),g=_.readInt(2),this.fileName=_.readData(this.fileNameLength),_.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((f=(function(S){for(var b in d)if(Object.prototype.hasOwnProperty.call(d,b)&&d[b].magic===S)return d[b];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,f,_.readData(this.compressedSize))},readCentralPart:function(_){this.versionMadeBy=_.readInt(2),_.skip(2),this.bitFlag=_.readInt(2),this.compressionMethod=_.readString(2),this.date=_.readDate(),this.crc32=_.readInt(4),this.compressedSize=_.readInt(4),this.uncompressedSize=_.readInt(4);var f=_.readInt(2);if(this.extraFieldsLength=_.readInt(2),this.fileCommentLength=_.readInt(2),this.diskNumberStart=_.readInt(2),this.internalFileAttributes=_.readInt(2),this.externalFileAttributes=_.readInt(4),this.localHeaderOffset=_.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");_.skip(f),this.readExtraFields(_),this.parseZIP64ExtraField(_),this.fileComment=_.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var _=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),_==0&&(this.dosPermissions=63&this.externalFileAttributes),_==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var _=a(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=_.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=_.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=_.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=_.readInt(4))}},readExtraFields:function(_){var f,g,S,b=_.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});_.index+4<b;)f=_.readInt(2),g=_.readInt(2),S=_.readData(g),this.extraFields[f]={id:f,length:g,value:S};_.setIndex(b)},handleUTF8:function(){var _=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var f=this.findExtraFieldUnicodePath();if(f!==null)this.fileNameStr=f;else{var g=s.transformTo(_,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var S=this.findExtraFieldUnicodeComment();if(S!==null)this.fileCommentStr=S;else{var b=s.transformTo(_,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(b)}}},findExtraFieldUnicodePath:function(){var _=this.extraFields[28789];if(_){var f=a(_.value);return f.readInt(1)!==1||l(this.fileName)!==f.readInt(4)?null:c.utf8decode(f.readData(_.length-5))}return null},findExtraFieldUnicodeComment:function(){var _=this.extraFields[25461];if(_){var f=a(_.value);return f.readInt(1)!==1||l(this.fileComment)!==f.readInt(4)?null:c.utf8decode(f.readData(_.length-5))}return null}},r.exports=m},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function a(f,g,S){this.name=f,this.dir=S.dir,this.date=S.date,this.comment=S.comment,this.unixPermissions=S.unixPermissions,this.dosPermissions=S.dosPermissions,this._data=g,this._dataBinary=S.binary,this.options={compression:S.compression,compressionOptions:S.compressionOptions}}var s=n("./stream/StreamHelper"),o=n("./stream/DataWorker"),l=n("./utf8"),c=n("./compressedObject"),d=n("./stream/GenericWorker");a.prototype={internalStream:function(f){var g=null,S="string";try{if(!f)throw new Error("No output type specified.");var b=(S=f.toLowerCase())==="string"||S==="text";S!=="binarystring"&&S!=="text"||(S="string"),g=this._decompressWorker();var h=!this._dataBinary;h&&!b&&(g=g.pipe(new l.Utf8EncodeWorker)),!h&&b&&(g=g.pipe(new l.Utf8DecodeWorker))}catch(v){(g=new d("error")).error(v)}return new s(g,S,"")},async:function(f,g){return this.internalStream(f).accumulate(g)},nodeStream:function(f,g){return this.internalStream(f||"nodebuffer").toNodejsStream(g)},_compressWorker:function(f,g){if(this._data instanceof c&&this._data.compression.magic===f.magic)return this._data.getCompressedWorker();var S=this._decompressWorker();return this._dataBinary||(S=S.pipe(new l.Utf8EncodeWorker)),c.createWorkerFrom(S,f,g)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof d?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],m=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},_=0;_<u.length;_++)a.prototype[u[_]]=m;r.exports=a},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(a){var s,o,l=a.MutationObserver||a.WebKitMutationObserver;if(l){var c=0,d=new l(f),u=a.document.createTextNode("");d.observe(u,{characterData:!0}),s=function(){u.data=c=++c%2}}else if(a.setImmediate||a.MessageChannel===void 0)s="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var g=a.document.createElement("script");g.onreadystatechange=function(){f(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},a.document.documentElement.appendChild(g)}:function(){setTimeout(f,0)};else{var m=new a.MessageChannel;m.port1.onmessage=f,s=function(){m.port2.postMessage(0)}}var _=[];function f(){var g,S;o=!0;for(var b=_.length;b;){for(S=_,_=[],g=-1;++g<b;)S[g]();b=_.length}o=!1}r.exports=function(g){_.push(g)!==1||o||s()}}).call(this,typeof Ui<"u"?Ui:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var a=n("immediate");function s(){}var o={},l=["REJECTED"],c=["FULFILLED"],d=["PENDING"];function u(b){if(typeof b!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,b!==s&&g(this,b)}function m(b,h,v){this.promise=b,typeof h=="function"&&(this.onFulfilled=h,this.callFulfilled=this.otherCallFulfilled),typeof v=="function"&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}function _(b,h,v){a(function(){var R;try{R=h(v)}catch(C){return o.reject(b,C)}R===b?o.reject(b,new TypeError("Cannot resolve promise with itself")):o.resolve(b,R)})}function f(b){var h=b&&b.then;if(b&&(typeof b=="object"||typeof b=="function")&&typeof h=="function")return function(){h.apply(b,arguments)}}function g(b,h){var v=!1;function R(D){v||(v=!0,o.reject(b,D))}function C(D){v||(v=!0,o.resolve(b,D))}var x=S(function(){h(C,R)});x.status==="error"&&R(x.value)}function S(b,h){var v={};try{v.value=b(h),v.status="success"}catch(R){v.status="error",v.value=R}return v}(r.exports=u).prototype.finally=function(b){if(typeof b!="function")return this;var h=this.constructor;return this.then(function(v){return h.resolve(b()).then(function(){return v})},function(v){return h.resolve(b()).then(function(){throw v})})},u.prototype.catch=function(b){return this.then(null,b)},u.prototype.then=function(b,h){if(typeof b!="function"&&this.state===c||typeof h!="function"&&this.state===l)return this;var v=new this.constructor(s);return this.state!==d?_(v,this.state===c?b:h,this.outcome):this.queue.push(new m(v,b,h)),v},m.prototype.callFulfilled=function(b){o.resolve(this.promise,b)},m.prototype.otherCallFulfilled=function(b){_(this.promise,this.onFulfilled,b)},m.prototype.callRejected=function(b){o.reject(this.promise,b)},m.prototype.otherCallRejected=function(b){_(this.promise,this.onRejected,b)},o.resolve=function(b,h){var v=S(f,h);if(v.status==="error")return o.reject(b,v.value);var R=v.value;if(R)g(b,R);else{b.state=c,b.outcome=h;for(var C=-1,x=b.queue.length;++C<x;)b.queue[C].callFulfilled(h)}return b},o.reject=function(b,h){b.state=l,b.outcome=h;for(var v=-1,R=b.queue.length;++v<R;)b.queue[v].callRejected(h);return b},u.resolve=function(b){return b instanceof this?b:o.resolve(new this(s),b)},u.reject=function(b){var h=new this(s);return o.reject(h,b)},u.all=function(b){var h=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=b.length,R=!1;if(!v)return this.resolve([]);for(var C=new Array(v),x=0,D=-1,N=new this(s);++D<v;)y(b[D],D);return N;function y(F,X){h.resolve(F).then(function(I){C[X]=I,++x!==v||R||(R=!0,o.resolve(N,C))},function(I){R||(R=!0,o.reject(N,I))})}},u.race=function(b){var h=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=b.length,R=!1;if(!v)return this.resolve([]);for(var C=-1,x=new this(s);++C<v;)D=b[C],h.resolve(D).then(function(N){R||(R=!0,o.resolve(x,N))},function(N){R||(R=!0,o.reject(x,N))});var D;return x}},{immediate:36}],38:[function(n,r,i){var a={};(0,n("./lib/utils/common").assign)(a,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=a},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var a=n("./zlib/deflate"),s=n("./utils/common"),o=n("./utils/strings"),l=n("./zlib/messages"),c=n("./zlib/zstream"),d=Object.prototype.toString,u=0,m=-1,_=0,f=8;function g(b){if(!(this instanceof g))return new g(b);this.options=s.assign({level:m,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:_,to:""},b||{});var h=this.options;h.raw&&0<h.windowBits?h.windowBits=-h.windowBits:h.gzip&&0<h.windowBits&&h.windowBits<16&&(h.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var v=a.deflateInit2(this.strm,h.level,h.method,h.windowBits,h.memLevel,h.strategy);if(v!==u)throw new Error(l[v]);if(h.header&&a.deflateSetHeader(this.strm,h.header),h.dictionary){var R;if(R=typeof h.dictionary=="string"?o.string2buf(h.dictionary):d.call(h.dictionary)==="[object ArrayBuffer]"?new Uint8Array(h.dictionary):h.dictionary,(v=a.deflateSetDictionary(this.strm,R))!==u)throw new Error(l[v]);this._dict_set=!0}}function S(b,h){var v=new g(h);if(v.push(b,!0),v.err)throw v.msg||l[v.err];return v.result}g.prototype.push=function(b,h){var v,R,C=this.strm,x=this.options.chunkSize;if(this.ended)return!1;R=h===~~h?h:h===!0?4:0,typeof b=="string"?C.input=o.string2buf(b):d.call(b)==="[object ArrayBuffer]"?C.input=new Uint8Array(b):C.input=b,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new s.Buf8(x),C.next_out=0,C.avail_out=x),(v=a.deflate(C,R))!==1&&v!==u)return this.onEnd(v),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||R!==4&&R!==2)||(this.options.to==="string"?this.onData(o.buf2binstring(s.shrinkBuf(C.output,C.next_out))):this.onData(s.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&v!==1);return R===4?(v=a.deflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===u):R!==2||(this.onEnd(u),!(C.avail_out=0))},g.prototype.onData=function(b){this.chunks.push(b)},g.prototype.onEnd=function(b){b===u&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},i.Deflate=g,i.deflate=S,i.deflateRaw=function(b,h){return(h=h||{}).raw=!0,S(b,h)},i.gzip=function(b,h){return(h=h||{}).gzip=!0,S(b,h)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var a=n("./zlib/inflate"),s=n("./utils/common"),o=n("./utils/strings"),l=n("./zlib/constants"),c=n("./zlib/messages"),d=n("./zlib/zstream"),u=n("./zlib/gzheader"),m=Object.prototype.toString;function _(g){if(!(this instanceof _))return new _(g);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},g||{});var S=this.options;S.raw&&0<=S.windowBits&&S.windowBits<16&&(S.windowBits=-S.windowBits,S.windowBits===0&&(S.windowBits=-15)),!(0<=S.windowBits&&S.windowBits<16)||g&&g.windowBits||(S.windowBits+=32),15<S.windowBits&&S.windowBits<48&&(15&S.windowBits)==0&&(S.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var b=a.inflateInit2(this.strm,S.windowBits);if(b!==l.Z_OK)throw new Error(c[b]);this.header=new u,a.inflateGetHeader(this.strm,this.header)}function f(g,S){var b=new _(S);if(b.push(g,!0),b.err)throw b.msg||c[b.err];return b.result}_.prototype.push=function(g,S){var b,h,v,R,C,x,D=this.strm,N=this.options.chunkSize,y=this.options.dictionary,F=!1;if(this.ended)return!1;h=S===~~S?S:S===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof g=="string"?D.input=o.binstring2buf(g):m.call(g)==="[object ArrayBuffer]"?D.input=new Uint8Array(g):D.input=g,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new s.Buf8(N),D.next_out=0,D.avail_out=N),(b=a.inflate(D,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&y&&(x=typeof y=="string"?o.string2buf(y):m.call(y)==="[object ArrayBuffer]"?new Uint8Array(y):y,b=a.inflateSetDictionary(this.strm,x)),b===l.Z_BUF_ERROR&&F===!0&&(b=l.Z_OK,F=!1),b!==l.Z_STREAM_END&&b!==l.Z_OK)return this.onEnd(b),!(this.ended=!0);D.next_out&&(D.avail_out!==0&&b!==l.Z_STREAM_END&&(D.avail_in!==0||h!==l.Z_FINISH&&h!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(v=o.utf8border(D.output,D.next_out),R=D.next_out-v,C=o.buf2string(D.output,v),D.next_out=R,D.avail_out=N-R,R&&s.arraySet(D.output,D.output,v,R,0),this.onData(C)):this.onData(s.shrinkBuf(D.output,D.next_out)))),D.avail_in===0&&D.avail_out===0&&(F=!0)}while((0<D.avail_in||D.avail_out===0)&&b!==l.Z_STREAM_END);return b===l.Z_STREAM_END&&(h=l.Z_FINISH),h===l.Z_FINISH?(b=a.inflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===l.Z_OK):h!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(D.avail_out=0))},_.prototype.onData=function(g){this.chunks.push(g)},_.prototype.onEnd=function(g){g===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},i.Inflate=_,i.inflate=f,i.inflateRaw=function(g,S){return(S=S||{}).raw=!0,f(g,S)},i.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,i){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(l){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var d=c.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var u in d)d.hasOwnProperty(u)&&(l[u]=d[u])}}return l},i.shrinkBuf=function(l,c){return l.length===c?l:l.subarray?l.subarray(0,c):(l.length=c,l)};var s={arraySet:function(l,c,d,u,m){if(c.subarray&&l.subarray)l.set(c.subarray(d,d+u),m);else for(var _=0;_<u;_++)l[m+_]=c[d+_]},flattenChunks:function(l){var c,d,u,m,_,f;for(c=u=0,d=l.length;c<d;c++)u+=l[c].length;for(f=new Uint8Array(u),c=m=0,d=l.length;c<d;c++)_=l[c],f.set(_,m),m+=_.length;return f}},o={arraySet:function(l,c,d,u,m){for(var _=0;_<u;_++)l[m+_]=c[d+_]},flattenChunks:function(l){return[].concat.apply([],l)}};i.setTyped=function(l){l?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,s)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,o))},i.setTyped(a)},{}],42:[function(n,r,i){var a=n("./common"),s=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch{s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{o=!1}for(var l=new a.Buf8(256),c=0;c<256;c++)l[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function d(u,m){if(m<65537&&(u.subarray&&o||!u.subarray&&s))return String.fromCharCode.apply(null,a.shrinkBuf(u,m));for(var _="",f=0;f<m;f++)_+=String.fromCharCode(u[f]);return _}l[254]=l[254]=1,i.string2buf=function(u){var m,_,f,g,S,b=u.length,h=0;for(g=0;g<b;g++)(64512&(_=u.charCodeAt(g)))==55296&&g+1<b&&(64512&(f=u.charCodeAt(g+1)))==56320&&(_=65536+(_-55296<<10)+(f-56320),g++),h+=_<128?1:_<2048?2:_<65536?3:4;for(m=new a.Buf8(h),g=S=0;S<h;g++)(64512&(_=u.charCodeAt(g)))==55296&&g+1<b&&(64512&(f=u.charCodeAt(g+1)))==56320&&(_=65536+(_-55296<<10)+(f-56320),g++),_<128?m[S++]=_:(_<2048?m[S++]=192|_>>>6:(_<65536?m[S++]=224|_>>>12:(m[S++]=240|_>>>18,m[S++]=128|_>>>12&63),m[S++]=128|_>>>6&63),m[S++]=128|63&_);return m},i.buf2binstring=function(u){return d(u,u.length)},i.binstring2buf=function(u){for(var m=new a.Buf8(u.length),_=0,f=m.length;_<f;_++)m[_]=u.charCodeAt(_);return m},i.buf2string=function(u,m){var _,f,g,S,b=m||u.length,h=new Array(2*b);for(_=f=0;_<b;)if((g=u[_++])<128)h[f++]=g;else if(4<(S=l[g]))h[f++]=65533,_+=S-1;else{for(g&=S===2?31:S===3?15:7;1<S&&_<b;)g=g<<6|63&u[_++],S--;1<S?h[f++]=65533:g<65536?h[f++]=g:(g-=65536,h[f++]=55296|g>>10&1023,h[f++]=56320|1023&g)}return d(h,f)},i.utf8border=function(u,m){var _;for((m=m||u.length)>u.length&&(m=u.length),_=m-1;0<=_&&(192&u[_])==128;)_--;return _<0||_===0?m:_+l[u[_]]>m?_:m}},{"./common":41}],43:[function(n,r,i){r.exports=function(a,s,o,l){for(var c=65535&a|0,d=a>>>16&65535|0,u=0;o!==0;){for(o-=u=2e3<o?2e3:o;d=d+(c=c+s[l++]|0)|0,--u;);c%=65521,d%=65521}return c|d<<16|0}},{}],44:[function(n,r,i){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,i){var a=(function(){for(var s,o=[],l=0;l<256;l++){s=l;for(var c=0;c<8;c++)s=1&s?3988292384^s>>>1:s>>>1;o[l]=s}return o})();r.exports=function(s,o,l,c){var d=a,u=c+l;s^=-1;for(var m=c;m<u;m++)s=s>>>8^d[255&(s^o[m])];return-1^s}},{}],46:[function(n,r,i){var a,s=n("../utils/common"),o=n("./trees"),l=n("./adler32"),c=n("./crc32"),d=n("./messages"),u=0,m=4,_=0,f=-2,g=-1,S=4,b=2,h=8,v=9,R=286,C=30,x=19,D=2*R+1,N=15,y=3,F=258,X=F+y+1,I=42,Q=113,T=1,w=2,ue=3,k=4;function V(E,H){return E.msg=d[H],H}function q(E){return(E<<1)-(4<E?9:0)}function re(E){for(var H=E.length;0<=--H;)E[H]=0}function L(E){var H=E.state,Y=H.pending;Y>E.avail_out&&(Y=E.avail_out),Y!==0&&(s.arraySet(E.output,H.pending_buf,H.pending_out,Y,E.next_out),E.next_out+=Y,H.pending_out+=Y,E.total_out+=Y,E.avail_out-=Y,H.pending-=Y,H.pending===0&&(H.pending_out=0))}function B(E,H){o._tr_flush_block(E,0<=E.block_start?E.block_start:-1,E.strstart-E.block_start,H),E.block_start=E.strstart,L(E.strm)}function te(E,H){E.pending_buf[E.pending++]=H}function ce(E,H){E.pending_buf[E.pending++]=H>>>8&255,E.pending_buf[E.pending++]=255&H}function oe(E,H){var Y,O,A=E.max_chain_length,U=E.strstart,J=E.prev_length,K=E.nice_match,W=E.strstart>E.w_size-X?E.strstart-(E.w_size-X):0,z=E.window,P=E.w_mask,ne=E.prev,ie=E.strstart+F,Te=z[U+J-1],be=z[U+J];E.prev_length>=E.good_match&&(A>>=2),K>E.lookahead&&(K=E.lookahead);do if(z[(Y=H)+J]===be&&z[Y+J-1]===Te&&z[Y]===z[U]&&z[++Y]===z[U+1]){U+=2,Y++;do;while(z[++U]===z[++Y]&&z[++U]===z[++Y]&&z[++U]===z[++Y]&&z[++U]===z[++Y]&&z[++U]===z[++Y]&&z[++U]===z[++Y]&&z[++U]===z[++Y]&&z[++U]===z[++Y]&&U<ie);if(O=F-(ie-U),U=ie-F,J<O){if(E.match_start=H,K<=(J=O))break;Te=z[U+J-1],be=z[U+J]}}while((H=ne[H&P])>W&&--A!=0);return J<=E.lookahead?J:E.lookahead}function Ee(E){var H,Y,O,A,U,J,K,W,z,P,ne=E.w_size;do{if(A=E.window_size-E.lookahead-E.strstart,E.strstart>=ne+(ne-X)){for(s.arraySet(E.window,E.window,ne,ne,0),E.match_start-=ne,E.strstart-=ne,E.block_start-=ne,H=Y=E.hash_size;O=E.head[--H],E.head[H]=ne<=O?O-ne:0,--Y;);for(H=Y=ne;O=E.prev[--H],E.prev[H]=ne<=O?O-ne:0,--Y;);A+=ne}if(E.strm.avail_in===0)break;if(J=E.strm,K=E.window,W=E.strstart+E.lookahead,z=A,P=void 0,P=J.avail_in,z<P&&(P=z),Y=P===0?0:(J.avail_in-=P,s.arraySet(K,J.input,J.next_in,P,W),J.state.wrap===1?J.adler=l(J.adler,K,P,W):J.state.wrap===2&&(J.adler=c(J.adler,K,P,W)),J.next_in+=P,J.total_in+=P,P),E.lookahead+=Y,E.lookahead+E.insert>=y)for(U=E.strstart-E.insert,E.ins_h=E.window[U],E.ins_h=(E.ins_h<<E.hash_shift^E.window[U+1])&E.hash_mask;E.insert&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[U+y-1])&E.hash_mask,E.prev[U&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=U,U++,E.insert--,!(E.lookahead+E.insert<y)););}while(E.lookahead<X&&E.strm.avail_in!==0)}function ee(E,H){for(var Y,O;;){if(E.lookahead<X){if(Ee(E),E.lookahead<X&&H===u)return T;if(E.lookahead===0)break}if(Y=0,E.lookahead>=y&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+y-1])&E.hash_mask,Y=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),Y!==0&&E.strstart-Y<=E.w_size-X&&(E.match_length=oe(E,Y)),E.match_length>=y)if(O=o._tr_tally(E,E.strstart-E.match_start,E.match_length-y),E.lookahead-=E.match_length,E.match_length<=E.max_lazy_match&&E.lookahead>=y){for(E.match_length--;E.strstart++,E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+y-1])&E.hash_mask,Y=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart,--E.match_length!=0;);E.strstart++}else E.strstart+=E.match_length,E.match_length=0,E.ins_h=E.window[E.strstart],E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+1])&E.hash_mask;else O=o._tr_tally(E,0,E.window[E.strstart]),E.lookahead--,E.strstart++;if(O&&(B(E,!1),E.strm.avail_out===0))return T}return E.insert=E.strstart<y-1?E.strstart:y-1,H===m?(B(E,!0),E.strm.avail_out===0?ue:k):E.last_lit&&(B(E,!1),E.strm.avail_out===0)?T:w}function ae(E,H){for(var Y,O,A;;){if(E.lookahead<X){if(Ee(E),E.lookahead<X&&H===u)return T;if(E.lookahead===0)break}if(Y=0,E.lookahead>=y&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+y-1])&E.hash_mask,Y=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),E.prev_length=E.match_length,E.prev_match=E.match_start,E.match_length=y-1,Y!==0&&E.prev_length<E.max_lazy_match&&E.strstart-Y<=E.w_size-X&&(E.match_length=oe(E,Y),E.match_length<=5&&(E.strategy===1||E.match_length===y&&4096<E.strstart-E.match_start)&&(E.match_length=y-1)),E.prev_length>=y&&E.match_length<=E.prev_length){for(A=E.strstart+E.lookahead-y,O=o._tr_tally(E,E.strstart-1-E.prev_match,E.prev_length-y),E.lookahead-=E.prev_length-1,E.prev_length-=2;++E.strstart<=A&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+y-1])&E.hash_mask,Y=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),--E.prev_length!=0;);if(E.match_available=0,E.match_length=y-1,E.strstart++,O&&(B(E,!1),E.strm.avail_out===0))return T}else if(E.match_available){if((O=o._tr_tally(E,0,E.window[E.strstart-1]))&&B(E,!1),E.strstart++,E.lookahead--,E.strm.avail_out===0)return T}else E.match_available=1,E.strstart++,E.lookahead--}return E.match_available&&(O=o._tr_tally(E,0,E.window[E.strstart-1]),E.match_available=0),E.insert=E.strstart<y-1?E.strstart:y-1,H===m?(B(E,!0),E.strm.avail_out===0?ue:k):E.last_lit&&(B(E,!1),E.strm.avail_out===0)?T:w}function se(E,H,Y,O,A){this.good_length=E,this.max_lazy=H,this.nice_length=Y,this.max_chain=O,this.func=A}function pe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=h,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(2*D),this.dyn_dtree=new s.Buf16(2*(2*C+1)),this.bl_tree=new s.Buf16(2*(2*x+1)),re(this.dyn_ltree),re(this.dyn_dtree),re(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(N+1),this.heap=new s.Buf16(2*R+1),re(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*R+1),re(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ge(E){var H;return E&&E.state?(E.total_in=E.total_out=0,E.data_type=b,(H=E.state).pending=0,H.pending_out=0,H.wrap<0&&(H.wrap=-H.wrap),H.status=H.wrap?I:Q,E.adler=H.wrap===2?0:1,H.last_flush=u,o._tr_init(H),_):V(E,f)}function M(E){var H=ge(E);return H===_&&(function(Y){Y.window_size=2*Y.w_size,re(Y.head),Y.max_lazy_match=a[Y.level].max_lazy,Y.good_match=a[Y.level].good_length,Y.nice_match=a[Y.level].nice_length,Y.max_chain_length=a[Y.level].max_chain,Y.strstart=0,Y.block_start=0,Y.lookahead=0,Y.insert=0,Y.match_length=Y.prev_length=y-1,Y.match_available=0,Y.ins_h=0})(E.state),H}function G(E,H,Y,O,A,U){if(!E)return f;var J=1;if(H===g&&(H=6),O<0?(J=0,O=-O):15<O&&(J=2,O-=16),A<1||v<A||Y!==h||O<8||15<O||H<0||9<H||U<0||S<U)return V(E,f);O===8&&(O=9);var K=new pe;return(E.state=K).strm=E,K.wrap=J,K.gzhead=null,K.w_bits=O,K.w_size=1<<K.w_bits,K.w_mask=K.w_size-1,K.hash_bits=A+7,K.hash_size=1<<K.hash_bits,K.hash_mask=K.hash_size-1,K.hash_shift=~~((K.hash_bits+y-1)/y),K.window=new s.Buf8(2*K.w_size),K.head=new s.Buf16(K.hash_size),K.prev=new s.Buf16(K.w_size),K.lit_bufsize=1<<A+6,K.pending_buf_size=4*K.lit_bufsize,K.pending_buf=new s.Buf8(K.pending_buf_size),K.d_buf=1*K.lit_bufsize,K.l_buf=3*K.lit_bufsize,K.level=H,K.strategy=U,K.method=Y,M(E)}a=[new se(0,0,0,0,function(E,H){var Y=65535;for(Y>E.pending_buf_size-5&&(Y=E.pending_buf_size-5);;){if(E.lookahead<=1){if(Ee(E),E.lookahead===0&&H===u)return T;if(E.lookahead===0)break}E.strstart+=E.lookahead,E.lookahead=0;var O=E.block_start+Y;if((E.strstart===0||E.strstart>=O)&&(E.lookahead=E.strstart-O,E.strstart=O,B(E,!1),E.strm.avail_out===0)||E.strstart-E.block_start>=E.w_size-X&&(B(E,!1),E.strm.avail_out===0))return T}return E.insert=0,H===m?(B(E,!0),E.strm.avail_out===0?ue:k):(E.strstart>E.block_start&&(B(E,!1),E.strm.avail_out),T)}),new se(4,4,8,4,ee),new se(4,5,16,8,ee),new se(4,6,32,32,ee),new se(4,4,16,16,ae),new se(8,16,32,32,ae),new se(8,16,128,128,ae),new se(8,32,128,256,ae),new se(32,128,258,1024,ae),new se(32,258,258,4096,ae)],i.deflateInit=function(E,H){return G(E,H,h,15,8,0)},i.deflateInit2=G,i.deflateReset=M,i.deflateResetKeep=ge,i.deflateSetHeader=function(E,H){return E&&E.state?E.state.wrap!==2?f:(E.state.gzhead=H,_):f},i.deflate=function(E,H){var Y,O,A,U;if(!E||!E.state||5<H||H<0)return E?V(E,f):f;if(O=E.state,!E.output||!E.input&&E.avail_in!==0||O.status===666&&H!==m)return V(E,E.avail_out===0?-5:f);if(O.strm=E,Y=O.last_flush,O.last_flush=H,O.status===I)if(O.wrap===2)E.adler=0,te(O,31),te(O,139),te(O,8),O.gzhead?(te(O,(O.gzhead.text?1:0)+(O.gzhead.hcrc?2:0)+(O.gzhead.extra?4:0)+(O.gzhead.name?8:0)+(O.gzhead.comment?16:0)),te(O,255&O.gzhead.time),te(O,O.gzhead.time>>8&255),te(O,O.gzhead.time>>16&255),te(O,O.gzhead.time>>24&255),te(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),te(O,255&O.gzhead.os),O.gzhead.extra&&O.gzhead.extra.length&&(te(O,255&O.gzhead.extra.length),te(O,O.gzhead.extra.length>>8&255)),O.gzhead.hcrc&&(E.adler=c(E.adler,O.pending_buf,O.pending,0)),O.gzindex=0,O.status=69):(te(O,0),te(O,0),te(O,0),te(O,0),te(O,0),te(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),te(O,3),O.status=Q);else{var J=h+(O.w_bits-8<<4)<<8;J|=(2<=O.strategy||O.level<2?0:O.level<6?1:O.level===6?2:3)<<6,O.strstart!==0&&(J|=32),J+=31-J%31,O.status=Q,ce(O,J),O.strstart!==0&&(ce(O,E.adler>>>16),ce(O,65535&E.adler)),E.adler=1}if(O.status===69)if(O.gzhead.extra){for(A=O.pending;O.gzindex<(65535&O.gzhead.extra.length)&&(O.pending!==O.pending_buf_size||(O.gzhead.hcrc&&O.pending>A&&(E.adler=c(E.adler,O.pending_buf,O.pending-A,A)),L(E),A=O.pending,O.pending!==O.pending_buf_size));)te(O,255&O.gzhead.extra[O.gzindex]),O.gzindex++;O.gzhead.hcrc&&O.pending>A&&(E.adler=c(E.adler,O.pending_buf,O.pending-A,A)),O.gzindex===O.gzhead.extra.length&&(O.gzindex=0,O.status=73)}else O.status=73;if(O.status===73)if(O.gzhead.name){A=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>A&&(E.adler=c(E.adler,O.pending_buf,O.pending-A,A)),L(E),A=O.pending,O.pending===O.pending_buf_size)){U=1;break}U=O.gzindex<O.gzhead.name.length?255&O.gzhead.name.charCodeAt(O.gzindex++):0,te(O,U)}while(U!==0);O.gzhead.hcrc&&O.pending>A&&(E.adler=c(E.adler,O.pending_buf,O.pending-A,A)),U===0&&(O.gzindex=0,O.status=91)}else O.status=91;if(O.status===91)if(O.gzhead.comment){A=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>A&&(E.adler=c(E.adler,O.pending_buf,O.pending-A,A)),L(E),A=O.pending,O.pending===O.pending_buf_size)){U=1;break}U=O.gzindex<O.gzhead.comment.length?255&O.gzhead.comment.charCodeAt(O.gzindex++):0,te(O,U)}while(U!==0);O.gzhead.hcrc&&O.pending>A&&(E.adler=c(E.adler,O.pending_buf,O.pending-A,A)),U===0&&(O.status=103)}else O.status=103;if(O.status===103&&(O.gzhead.hcrc?(O.pending+2>O.pending_buf_size&&L(E),O.pending+2<=O.pending_buf_size&&(te(O,255&E.adler),te(O,E.adler>>8&255),E.adler=0,O.status=Q)):O.status=Q),O.pending!==0){if(L(E),E.avail_out===0)return O.last_flush=-1,_}else if(E.avail_in===0&&q(H)<=q(Y)&&H!==m)return V(E,-5);if(O.status===666&&E.avail_in!==0)return V(E,-5);if(E.avail_in!==0||O.lookahead!==0||H!==u&&O.status!==666){var K=O.strategy===2?(function(W,z){for(var P;;){if(W.lookahead===0&&(Ee(W),W.lookahead===0)){if(z===u)return T;break}if(W.match_length=0,P=o._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++,P&&(B(W,!1),W.strm.avail_out===0))return T}return W.insert=0,z===m?(B(W,!0),W.strm.avail_out===0?ue:k):W.last_lit&&(B(W,!1),W.strm.avail_out===0)?T:w})(O,H):O.strategy===3?(function(W,z){for(var P,ne,ie,Te,be=W.window;;){if(W.lookahead<=F){if(Ee(W),W.lookahead<=F&&z===u)return T;if(W.lookahead===0)break}if(W.match_length=0,W.lookahead>=y&&0<W.strstart&&(ne=be[ie=W.strstart-1])===be[++ie]&&ne===be[++ie]&&ne===be[++ie]){Te=W.strstart+F;do;while(ne===be[++ie]&&ne===be[++ie]&&ne===be[++ie]&&ne===be[++ie]&&ne===be[++ie]&&ne===be[++ie]&&ne===be[++ie]&&ne===be[++ie]&&ie<Te);W.match_length=F-(Te-ie),W.match_length>W.lookahead&&(W.match_length=W.lookahead)}if(W.match_length>=y?(P=o._tr_tally(W,1,W.match_length-y),W.lookahead-=W.match_length,W.strstart+=W.match_length,W.match_length=0):(P=o._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++),P&&(B(W,!1),W.strm.avail_out===0))return T}return W.insert=0,z===m?(B(W,!0),W.strm.avail_out===0?ue:k):W.last_lit&&(B(W,!1),W.strm.avail_out===0)?T:w})(O,H):a[O.level].func(O,H);if(K!==ue&&K!==k||(O.status=666),K===T||K===ue)return E.avail_out===0&&(O.last_flush=-1),_;if(K===w&&(H===1?o._tr_align(O):H!==5&&(o._tr_stored_block(O,0,0,!1),H===3&&(re(O.head),O.lookahead===0&&(O.strstart=0,O.block_start=0,O.insert=0))),L(E),E.avail_out===0))return O.last_flush=-1,_}return H!==m?_:O.wrap<=0?1:(O.wrap===2?(te(O,255&E.adler),te(O,E.adler>>8&255),te(O,E.adler>>16&255),te(O,E.adler>>24&255),te(O,255&E.total_in),te(O,E.total_in>>8&255),te(O,E.total_in>>16&255),te(O,E.total_in>>24&255)):(ce(O,E.adler>>>16),ce(O,65535&E.adler)),L(E),0<O.wrap&&(O.wrap=-O.wrap),O.pending!==0?_:1)},i.deflateEnd=function(E){var H;return E&&E.state?(H=E.state.status)!==I&&H!==69&&H!==73&&H!==91&&H!==103&&H!==Q&&H!==666?V(E,f):(E.state=null,H===Q?V(E,-3):_):f},i.deflateSetDictionary=function(E,H){var Y,O,A,U,J,K,W,z,P=H.length;if(!E||!E.state||(U=(Y=E.state).wrap)===2||U===1&&Y.status!==I||Y.lookahead)return f;for(U===1&&(E.adler=l(E.adler,H,P,0)),Y.wrap=0,P>=Y.w_size&&(U===0&&(re(Y.head),Y.strstart=0,Y.block_start=0,Y.insert=0),z=new s.Buf8(Y.w_size),s.arraySet(z,H,P-Y.w_size,Y.w_size,0),H=z,P=Y.w_size),J=E.avail_in,K=E.next_in,W=E.input,E.avail_in=P,E.next_in=0,E.input=H,Ee(Y);Y.lookahead>=y;){for(O=Y.strstart,A=Y.lookahead-(y-1);Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[O+y-1])&Y.hash_mask,Y.prev[O&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=O,O++,--A;);Y.strstart=O,Y.lookahead=y-1,Ee(Y)}return Y.strstart+=Y.lookahead,Y.block_start=Y.strstart,Y.insert=Y.lookahead,Y.lookahead=0,Y.match_length=Y.prev_length=y-1,Y.match_available=0,E.next_in=K,E.input=W,E.avail_in=J,Y.wrap=U,_},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,i){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,r,i){r.exports=function(a,s){var o,l,c,d,u,m,_,f,g,S,b,h,v,R,C,x,D,N,y,F,X,I,Q,T,w;o=a.state,l=a.next_in,T=a.input,c=l+(a.avail_in-5),d=a.next_out,w=a.output,u=d-(s-a.avail_out),m=d+(a.avail_out-257),_=o.dmax,f=o.wsize,g=o.whave,S=o.wnext,b=o.window,h=o.hold,v=o.bits,R=o.lencode,C=o.distcode,x=(1<<o.lenbits)-1,D=(1<<o.distbits)-1;e:do{v<15&&(h+=T[l++]<<v,v+=8,h+=T[l++]<<v,v+=8),N=R[h&x];t:for(;;){if(h>>>=y=N>>>24,v-=y,(y=N>>>16&255)===0)w[d++]=65535&N;else{if(!(16&y)){if((64&y)==0){N=R[(65535&N)+(h&(1<<y)-1)];continue t}if(32&y){o.mode=12;break e}a.msg="invalid literal/length code",o.mode=30;break e}F=65535&N,(y&=15)&&(v<y&&(h+=T[l++]<<v,v+=8),F+=h&(1<<y)-1,h>>>=y,v-=y),v<15&&(h+=T[l++]<<v,v+=8,h+=T[l++]<<v,v+=8),N=C[h&D];n:for(;;){if(h>>>=y=N>>>24,v-=y,!(16&(y=N>>>16&255))){if((64&y)==0){N=C[(65535&N)+(h&(1<<y)-1)];continue n}a.msg="invalid distance code",o.mode=30;break e}if(X=65535&N,v<(y&=15)&&(h+=T[l++]<<v,(v+=8)<y&&(h+=T[l++]<<v,v+=8)),_<(X+=h&(1<<y)-1)){a.msg="invalid distance too far back",o.mode=30;break e}if(h>>>=y,v-=y,(y=d-u)<X){if(g<(y=X-y)&&o.sane){a.msg="invalid distance too far back",o.mode=30;break e}if(Q=b,(I=0)===S){if(I+=f-y,y<F){for(F-=y;w[d++]=b[I++],--y;);I=d-X,Q=w}}else if(S<y){if(I+=f+S-y,(y-=S)<F){for(F-=y;w[d++]=b[I++],--y;);if(I=0,S<F){for(F-=y=S;w[d++]=b[I++],--y;);I=d-X,Q=w}}}else if(I+=S-y,y<F){for(F-=y;w[d++]=b[I++],--y;);I=d-X,Q=w}for(;2<F;)w[d++]=Q[I++],w[d++]=Q[I++],w[d++]=Q[I++],F-=3;F&&(w[d++]=Q[I++],1<F&&(w[d++]=Q[I++]))}else{for(I=d-X;w[d++]=w[I++],w[d++]=w[I++],w[d++]=w[I++],2<(F-=3););F&&(w[d++]=w[I++],1<F&&(w[d++]=w[I++]))}break}}break}}while(l<c&&d<m);l-=F=v>>3,h&=(1<<(v-=F<<3))-1,a.next_in=l,a.next_out=d,a.avail_in=l<c?c-l+5:5-(l-c),a.avail_out=d<m?m-d+257:257-(d-m),o.hold=h,o.bits=v}},{}],49:[function(n,r,i){var a=n("../utils/common"),s=n("./adler32"),o=n("./crc32"),l=n("./inffast"),c=n("./inftrees"),d=1,u=2,m=0,_=-2,f=1,g=852,S=592;function b(I){return(I>>>24&255)+(I>>>8&65280)+((65280&I)<<8)+((255&I)<<24)}function h(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(I){var Q;return I&&I.state?(Q=I.state,I.total_in=I.total_out=Q.total=0,I.msg="",Q.wrap&&(I.adler=1&Q.wrap),Q.mode=f,Q.last=0,Q.havedict=0,Q.dmax=32768,Q.head=null,Q.hold=0,Q.bits=0,Q.lencode=Q.lendyn=new a.Buf32(g),Q.distcode=Q.distdyn=new a.Buf32(S),Q.sane=1,Q.back=-1,m):_}function R(I){var Q;return I&&I.state?((Q=I.state).wsize=0,Q.whave=0,Q.wnext=0,v(I)):_}function C(I,Q){var T,w;return I&&I.state?(w=I.state,Q<0?(T=0,Q=-Q):(T=1+(Q>>4),Q<48&&(Q&=15)),Q&&(Q<8||15<Q)?_:(w.window!==null&&w.wbits!==Q&&(w.window=null),w.wrap=T,w.wbits=Q,R(I))):_}function x(I,Q){var T,w;return I?(w=new h,(I.state=w).window=null,(T=C(I,Q))!==m&&(I.state=null),T):_}var D,N,y=!0;function F(I){if(y){var Q;for(D=new a.Buf32(512),N=new a.Buf32(32),Q=0;Q<144;)I.lens[Q++]=8;for(;Q<256;)I.lens[Q++]=9;for(;Q<280;)I.lens[Q++]=7;for(;Q<288;)I.lens[Q++]=8;for(c(d,I.lens,0,288,D,0,I.work,{bits:9}),Q=0;Q<32;)I.lens[Q++]=5;c(u,I.lens,0,32,N,0,I.work,{bits:5}),y=!1}I.lencode=D,I.lenbits=9,I.distcode=N,I.distbits=5}function X(I,Q,T,w){var ue,k=I.state;return k.window===null&&(k.wsize=1<<k.wbits,k.wnext=0,k.whave=0,k.window=new a.Buf8(k.wsize)),w>=k.wsize?(a.arraySet(k.window,Q,T-k.wsize,k.wsize,0),k.wnext=0,k.whave=k.wsize):(w<(ue=k.wsize-k.wnext)&&(ue=w),a.arraySet(k.window,Q,T-w,ue,k.wnext),(w-=ue)?(a.arraySet(k.window,Q,T-w,w,0),k.wnext=w,k.whave=k.wsize):(k.wnext+=ue,k.wnext===k.wsize&&(k.wnext=0),k.whave<k.wsize&&(k.whave+=ue))),0}i.inflateReset=R,i.inflateReset2=C,i.inflateResetKeep=v,i.inflateInit=function(I){return x(I,15)},i.inflateInit2=x,i.inflate=function(I,Q){var T,w,ue,k,V,q,re,L,B,te,ce,oe,Ee,ee,ae,se,pe,ge,M,G,E,H,Y,O,A=0,U=new a.Buf8(4),J=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!I||!I.state||!I.output||!I.input&&I.avail_in!==0)return _;(T=I.state).mode===12&&(T.mode=13),V=I.next_out,ue=I.output,re=I.avail_out,k=I.next_in,w=I.input,q=I.avail_in,L=T.hold,B=T.bits,te=q,ce=re,H=m;e:for(;;)switch(T.mode){case f:if(T.wrap===0){T.mode=13;break}for(;B<16;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}if(2&T.wrap&&L===35615){U[T.check=0]=255&L,U[1]=L>>>8&255,T.check=o(T.check,U,2,0),B=L=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&L)<<8)+(L>>8))%31){I.msg="incorrect header check",T.mode=30;break}if((15&L)!=8){I.msg="unknown compression method",T.mode=30;break}if(B-=4,E=8+(15&(L>>>=4)),T.wbits===0)T.wbits=E;else if(E>T.wbits){I.msg="invalid window size",T.mode=30;break}T.dmax=1<<E,I.adler=T.check=1,T.mode=512&L?10:12,B=L=0;break;case 2:for(;B<16;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}if(T.flags=L,(255&T.flags)!=8){I.msg="unknown compression method",T.mode=30;break}if(57344&T.flags){I.msg="unknown header flags set",T.mode=30;break}T.head&&(T.head.text=L>>8&1),512&T.flags&&(U[0]=255&L,U[1]=L>>>8&255,T.check=o(T.check,U,2,0)),B=L=0,T.mode=3;case 3:for(;B<32;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}T.head&&(T.head.time=L),512&T.flags&&(U[0]=255&L,U[1]=L>>>8&255,U[2]=L>>>16&255,U[3]=L>>>24&255,T.check=o(T.check,U,4,0)),B=L=0,T.mode=4;case 4:for(;B<16;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}T.head&&(T.head.xflags=255&L,T.head.os=L>>8),512&T.flags&&(U[0]=255&L,U[1]=L>>>8&255,T.check=o(T.check,U,2,0)),B=L=0,T.mode=5;case 5:if(1024&T.flags){for(;B<16;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}T.length=L,T.head&&(T.head.extra_len=L),512&T.flags&&(U[0]=255&L,U[1]=L>>>8&255,T.check=o(T.check,U,2,0)),B=L=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(q<(oe=T.length)&&(oe=q),oe&&(T.head&&(E=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),a.arraySet(T.head.extra,w,k,oe,E)),512&T.flags&&(T.check=o(T.check,w,oe,k)),q-=oe,k+=oe,T.length-=oe),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(q===0)break e;for(oe=0;E=w[k+oe++],T.head&&E&&T.length<65536&&(T.head.name+=String.fromCharCode(E)),E&&oe<q;);if(512&T.flags&&(T.check=o(T.check,w,oe,k)),q-=oe,k+=oe,E)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=8;case 8:if(4096&T.flags){if(q===0)break e;for(oe=0;E=w[k+oe++],T.head&&E&&T.length<65536&&(T.head.comment+=String.fromCharCode(E)),E&&oe<q;);if(512&T.flags&&(T.check=o(T.check,w,oe,k)),q-=oe,k+=oe,E)break e}else T.head&&(T.head.comment=null);T.mode=9;case 9:if(512&T.flags){for(;B<16;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}if(L!==(65535&T.check)){I.msg="header crc mismatch",T.mode=30;break}B=L=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),I.adler=T.check=0,T.mode=12;break;case 10:for(;B<32;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}I.adler=T.check=b(L),B=L=0,T.mode=11;case 11:if(T.havedict===0)return I.next_out=V,I.avail_out=re,I.next_in=k,I.avail_in=q,T.hold=L,T.bits=B,2;I.adler=T.check=1,T.mode=12;case 12:if(Q===5||Q===6)break e;case 13:if(T.last){L>>>=7&B,B-=7&B,T.mode=27;break}for(;B<3;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}switch(T.last=1&L,B-=1,3&(L>>>=1)){case 0:T.mode=14;break;case 1:if(F(T),T.mode=20,Q!==6)break;L>>>=2,B-=2;break e;case 2:T.mode=17;break;case 3:I.msg="invalid block type",T.mode=30}L>>>=2,B-=2;break;case 14:for(L>>>=7&B,B-=7&B;B<32;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}if((65535&L)!=(L>>>16^65535)){I.msg="invalid stored block lengths",T.mode=30;break}if(T.length=65535&L,B=L=0,T.mode=15,Q===6)break e;case 15:T.mode=16;case 16:if(oe=T.length){if(q<oe&&(oe=q),re<oe&&(oe=re),oe===0)break e;a.arraySet(ue,w,k,oe,V),q-=oe,k+=oe,re-=oe,V+=oe,T.length-=oe;break}T.mode=12;break;case 17:for(;B<14;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}if(T.nlen=257+(31&L),L>>>=5,B-=5,T.ndist=1+(31&L),L>>>=5,B-=5,T.ncode=4+(15&L),L>>>=4,B-=4,286<T.nlen||30<T.ndist){I.msg="too many length or distance symbols",T.mode=30;break}T.have=0,T.mode=18;case 18:for(;T.have<T.ncode;){for(;B<3;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}T.lens[J[T.have++]]=7&L,L>>>=3,B-=3}for(;T.have<19;)T.lens[J[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,Y={bits:T.lenbits},H=c(0,T.lens,0,19,T.lencode,0,T.work,Y),T.lenbits=Y.bits,H){I.msg="invalid code lengths set",T.mode=30;break}T.have=0,T.mode=19;case 19:for(;T.have<T.nlen+T.ndist;){for(;se=(A=T.lencode[L&(1<<T.lenbits)-1])>>>16&255,pe=65535&A,!((ae=A>>>24)<=B);){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}if(pe<16)L>>>=ae,B-=ae,T.lens[T.have++]=pe;else{if(pe===16){for(O=ae+2;B<O;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}if(L>>>=ae,B-=ae,T.have===0){I.msg="invalid bit length repeat",T.mode=30;break}E=T.lens[T.have-1],oe=3+(3&L),L>>>=2,B-=2}else if(pe===17){for(O=ae+3;B<O;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}B-=ae,E=0,oe=3+(7&(L>>>=ae)),L>>>=3,B-=3}else{for(O=ae+7;B<O;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}B-=ae,E=0,oe=11+(127&(L>>>=ae)),L>>>=7,B-=7}if(T.have+oe>T.nlen+T.ndist){I.msg="invalid bit length repeat",T.mode=30;break}for(;oe--;)T.lens[T.have++]=E}}if(T.mode===30)break;if(T.lens[256]===0){I.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,Y={bits:T.lenbits},H=c(d,T.lens,0,T.nlen,T.lencode,0,T.work,Y),T.lenbits=Y.bits,H){I.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,Y={bits:T.distbits},H=c(u,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,Y),T.distbits=Y.bits,H){I.msg="invalid distances set",T.mode=30;break}if(T.mode=20,Q===6)break e;case 20:T.mode=21;case 21:if(6<=q&&258<=re){I.next_out=V,I.avail_out=re,I.next_in=k,I.avail_in=q,T.hold=L,T.bits=B,l(I,ce),V=I.next_out,ue=I.output,re=I.avail_out,k=I.next_in,w=I.input,q=I.avail_in,L=T.hold,B=T.bits,T.mode===12&&(T.back=-1);break}for(T.back=0;se=(A=T.lencode[L&(1<<T.lenbits)-1])>>>16&255,pe=65535&A,!((ae=A>>>24)<=B);){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}if(se&&(240&se)==0){for(ge=ae,M=se,G=pe;se=(A=T.lencode[G+((L&(1<<ge+M)-1)>>ge)])>>>16&255,pe=65535&A,!(ge+(ae=A>>>24)<=B);){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}L>>>=ge,B-=ge,T.back+=ge}if(L>>>=ae,B-=ae,T.back+=ae,T.length=pe,se===0){T.mode=26;break}if(32&se){T.back=-1,T.mode=12;break}if(64&se){I.msg="invalid literal/length code",T.mode=30;break}T.extra=15&se,T.mode=22;case 22:if(T.extra){for(O=T.extra;B<O;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}T.length+=L&(1<<T.extra)-1,L>>>=T.extra,B-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;se=(A=T.distcode[L&(1<<T.distbits)-1])>>>16&255,pe=65535&A,!((ae=A>>>24)<=B);){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}if((240&se)==0){for(ge=ae,M=se,G=pe;se=(A=T.distcode[G+((L&(1<<ge+M)-1)>>ge)])>>>16&255,pe=65535&A,!(ge+(ae=A>>>24)<=B);){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}L>>>=ge,B-=ge,T.back+=ge}if(L>>>=ae,B-=ae,T.back+=ae,64&se){I.msg="invalid distance code",T.mode=30;break}T.offset=pe,T.extra=15&se,T.mode=24;case 24:if(T.extra){for(O=T.extra;B<O;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}T.offset+=L&(1<<T.extra)-1,L>>>=T.extra,B-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){I.msg="invalid distance too far back",T.mode=30;break}T.mode=25;case 25:if(re===0)break e;if(oe=ce-re,T.offset>oe){if((oe=T.offset-oe)>T.whave&&T.sane){I.msg="invalid distance too far back",T.mode=30;break}Ee=oe>T.wnext?(oe-=T.wnext,T.wsize-oe):T.wnext-oe,oe>T.length&&(oe=T.length),ee=T.window}else ee=ue,Ee=V-T.offset,oe=T.length;for(re<oe&&(oe=re),re-=oe,T.length-=oe;ue[V++]=ee[Ee++],--oe;);T.length===0&&(T.mode=21);break;case 26:if(re===0)break e;ue[V++]=T.length,re--,T.mode=21;break;case 27:if(T.wrap){for(;B<32;){if(q===0)break e;q--,L|=w[k++]<<B,B+=8}if(ce-=re,I.total_out+=ce,T.total+=ce,ce&&(I.adler=T.check=T.flags?o(T.check,ue,ce,V-ce):s(T.check,ue,ce,V-ce)),ce=re,(T.flags?L:b(L))!==T.check){I.msg="incorrect data check",T.mode=30;break}B=L=0}T.mode=28;case 28:if(T.wrap&&T.flags){for(;B<32;){if(q===0)break e;q--,L+=w[k++]<<B,B+=8}if(L!==(4294967295&T.total)){I.msg="incorrect length check",T.mode=30;break}B=L=0}T.mode=29;case 29:H=1;break e;case 30:H=-3;break e;case 31:return-4;default:return _}return I.next_out=V,I.avail_out=re,I.next_in=k,I.avail_in=q,T.hold=L,T.bits=B,(T.wsize||ce!==I.avail_out&&T.mode<30&&(T.mode<27||Q!==4))&&X(I,I.output,I.next_out,ce-I.avail_out)?(T.mode=31,-4):(te-=I.avail_in,ce-=I.avail_out,I.total_in+=te,I.total_out+=ce,T.total+=ce,T.wrap&&ce&&(I.adler=T.check=T.flags?o(T.check,ue,ce,I.next_out-ce):s(T.check,ue,ce,I.next_out-ce)),I.data_type=T.bits+(T.last?64:0)+(T.mode===12?128:0)+(T.mode===20||T.mode===15?256:0),(te==0&&ce===0||Q===4)&&H===m&&(H=-5),H)},i.inflateEnd=function(I){if(!I||!I.state)return _;var Q=I.state;return Q.window&&(Q.window=null),I.state=null,m},i.inflateGetHeader=function(I,Q){var T;return I&&I.state?(2&(T=I.state).wrap)==0?_:((T.head=Q).done=!1,m):_},i.inflateSetDictionary=function(I,Q){var T,w=Q.length;return I&&I.state?(T=I.state).wrap!==0&&T.mode!==11?_:T.mode===11&&s(1,Q,w,0)!==T.check?-3:X(I,Q,w,w)?(T.mode=31,-4):(T.havedict=1,m):_},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,i){var a=n("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(d,u,m,_,f,g,S,b){var h,v,R,C,x,D,N,y,F,X=b.bits,I=0,Q=0,T=0,w=0,ue=0,k=0,V=0,q=0,re=0,L=0,B=null,te=0,ce=new a.Buf16(16),oe=new a.Buf16(16),Ee=null,ee=0;for(I=0;I<=15;I++)ce[I]=0;for(Q=0;Q<_;Q++)ce[u[m+Q]]++;for(ue=X,w=15;1<=w&&ce[w]===0;w--);if(w<ue&&(ue=w),w===0)return f[g++]=20971520,f[g++]=20971520,b.bits=1,0;for(T=1;T<w&&ce[T]===0;T++);for(ue<T&&(ue=T),I=q=1;I<=15;I++)if(q<<=1,(q-=ce[I])<0)return-1;if(0<q&&(d===0||w!==1))return-1;for(oe[1]=0,I=1;I<15;I++)oe[I+1]=oe[I]+ce[I];for(Q=0;Q<_;Q++)u[m+Q]!==0&&(S[oe[u[m+Q]]++]=Q);if(D=d===0?(B=Ee=S,19):d===1?(B=s,te-=257,Ee=o,ee-=257,256):(B=l,Ee=c,-1),I=T,x=g,V=Q=L=0,R=-1,C=(re=1<<(k=ue))-1,d===1&&852<re||d===2&&592<re)return 1;for(;;){for(N=I-V,F=S[Q]<D?(y=0,S[Q]):S[Q]>D?(y=Ee[ee+S[Q]],B[te+S[Q]]):(y=96,0),h=1<<I-V,T=v=1<<k;f[x+(L>>V)+(v-=h)]=N<<24|y<<16|F|0,v!==0;);for(h=1<<I-1;L&h;)h>>=1;if(h!==0?(L&=h-1,L+=h):L=0,Q++,--ce[I]==0){if(I===w)break;I=u[m+S[Q]]}if(ue<I&&(L&C)!==R){for(V===0&&(V=ue),x+=T,q=1<<(k=I-V);k+V<w&&!((q-=ce[k+V])<=0);)k++,q<<=1;if(re+=1<<k,d===1&&852<re||d===2&&592<re)return 1;f[R=L&C]=ue<<24|k<<16|x-g|0}}return L!==0&&(f[x+L]=I-V<<24|64<<16|0),b.bits=ue,0}},{"../utils/common":41}],51:[function(n,r,i){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,r,i){var a=n("../utils/common"),s=0,o=1;function l(A){for(var U=A.length;0<=--U;)A[U]=0}var c=0,d=29,u=256,m=u+1+d,_=30,f=19,g=2*m+1,S=15,b=16,h=7,v=256,R=16,C=17,x=18,D=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],N=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],X=new Array(2*(m+2));l(X);var I=new Array(2*_);l(I);var Q=new Array(512);l(Q);var T=new Array(256);l(T);var w=new Array(d);l(w);var ue,k,V,q=new Array(_);function re(A,U,J,K,W){this.static_tree=A,this.extra_bits=U,this.extra_base=J,this.elems=K,this.max_length=W,this.has_stree=A&&A.length}function L(A,U){this.dyn_tree=A,this.max_code=0,this.stat_desc=U}function B(A){return A<256?Q[A]:Q[256+(A>>>7)]}function te(A,U){A.pending_buf[A.pending++]=255&U,A.pending_buf[A.pending++]=U>>>8&255}function ce(A,U,J){A.bi_valid>b-J?(A.bi_buf|=U<<A.bi_valid&65535,te(A,A.bi_buf),A.bi_buf=U>>b-A.bi_valid,A.bi_valid+=J-b):(A.bi_buf|=U<<A.bi_valid&65535,A.bi_valid+=J)}function oe(A,U,J){ce(A,J[2*U],J[2*U+1])}function Ee(A,U){for(var J=0;J|=1&A,A>>>=1,J<<=1,0<--U;);return J>>>1}function ee(A,U,J){var K,W,z=new Array(S+1),P=0;for(K=1;K<=S;K++)z[K]=P=P+J[K-1]<<1;for(W=0;W<=U;W++){var ne=A[2*W+1];ne!==0&&(A[2*W]=Ee(z[ne]++,ne))}}function ae(A){var U;for(U=0;U<m;U++)A.dyn_ltree[2*U]=0;for(U=0;U<_;U++)A.dyn_dtree[2*U]=0;for(U=0;U<f;U++)A.bl_tree[2*U]=0;A.dyn_ltree[2*v]=1,A.opt_len=A.static_len=0,A.last_lit=A.matches=0}function se(A){8<A.bi_valid?te(A,A.bi_buf):0<A.bi_valid&&(A.pending_buf[A.pending++]=A.bi_buf),A.bi_buf=0,A.bi_valid=0}function pe(A,U,J,K){var W=2*U,z=2*J;return A[W]<A[z]||A[W]===A[z]&&K[U]<=K[J]}function ge(A,U,J){for(var K=A.heap[J],W=J<<1;W<=A.heap_len&&(W<A.heap_len&&pe(U,A.heap[W+1],A.heap[W],A.depth)&&W++,!pe(U,K,A.heap[W],A.depth));)A.heap[J]=A.heap[W],J=W,W<<=1;A.heap[J]=K}function M(A,U,J){var K,W,z,P,ne=0;if(A.last_lit!==0)for(;K=A.pending_buf[A.d_buf+2*ne]<<8|A.pending_buf[A.d_buf+2*ne+1],W=A.pending_buf[A.l_buf+ne],ne++,K===0?oe(A,W,U):(oe(A,(z=T[W])+u+1,U),(P=D[z])!==0&&ce(A,W-=w[z],P),oe(A,z=B(--K),J),(P=N[z])!==0&&ce(A,K-=q[z],P)),ne<A.last_lit;);oe(A,v,U)}function G(A,U){var J,K,W,z=U.dyn_tree,P=U.stat_desc.static_tree,ne=U.stat_desc.has_stree,ie=U.stat_desc.elems,Te=-1;for(A.heap_len=0,A.heap_max=g,J=0;J<ie;J++)z[2*J]!==0?(A.heap[++A.heap_len]=Te=J,A.depth[J]=0):z[2*J+1]=0;for(;A.heap_len<2;)z[2*(W=A.heap[++A.heap_len]=Te<2?++Te:0)]=1,A.depth[W]=0,A.opt_len--,ne&&(A.static_len-=P[2*W+1]);for(U.max_code=Te,J=A.heap_len>>1;1<=J;J--)ge(A,z,J);for(W=ie;J=A.heap[1],A.heap[1]=A.heap[A.heap_len--],ge(A,z,1),K=A.heap[1],A.heap[--A.heap_max]=J,A.heap[--A.heap_max]=K,z[2*W]=z[2*J]+z[2*K],A.depth[W]=(A.depth[J]>=A.depth[K]?A.depth[J]:A.depth[K])+1,z[2*J+1]=z[2*K+1]=W,A.heap[1]=W++,ge(A,z,1),2<=A.heap_len;);A.heap[--A.heap_max]=A.heap[1],(function(be,we){var He,Je,nt,Pe,It,ot,it=we.dyn_tree,ln=we.max_code,Zt=we.stat_desc.static_tree,jn=we.stat_desc.has_stree,ze=we.stat_desc.extra_bits,cn=we.stat_desc.extra_base,xt=we.stat_desc.max_length,Ft=0;for(Pe=0;Pe<=S;Pe++)be.bl_count[Pe]=0;for(it[2*be.heap[be.heap_max]+1]=0,He=be.heap_max+1;He<g;He++)xt<(Pe=it[2*it[2*(Je=be.heap[He])+1]+1]+1)&&(Pe=xt,Ft++),it[2*Je+1]=Pe,ln<Je||(be.bl_count[Pe]++,It=0,cn<=Je&&(It=ze[Je-cn]),ot=it[2*Je],be.opt_len+=ot*(Pe+It),jn&&(be.static_len+=ot*(Zt[2*Je+1]+It)));if(Ft!==0){do{for(Pe=xt-1;be.bl_count[Pe]===0;)Pe--;be.bl_count[Pe]--,be.bl_count[Pe+1]+=2,be.bl_count[xt]--,Ft-=2}while(0<Ft);for(Pe=xt;Pe!==0;Pe--)for(Je=be.bl_count[Pe];Je!==0;)ln<(nt=be.heap[--He])||(it[2*nt+1]!==Pe&&(be.opt_len+=(Pe-it[2*nt+1])*it[2*nt],it[2*nt+1]=Pe),Je--)}})(A,U),ee(z,Te,A.bl_count)}function E(A,U,J){var K,W,z=-1,P=U[1],ne=0,ie=7,Te=4;for(P===0&&(ie=138,Te=3),U[2*(J+1)+1]=65535,K=0;K<=J;K++)W=P,P=U[2*(K+1)+1],++ne<ie&&W===P||(ne<Te?A.bl_tree[2*W]+=ne:W!==0?(W!==z&&A.bl_tree[2*W]++,A.bl_tree[2*R]++):ne<=10?A.bl_tree[2*C]++:A.bl_tree[2*x]++,z=W,Te=(ne=0)===P?(ie=138,3):W===P?(ie=6,3):(ie=7,4))}function H(A,U,J){var K,W,z=-1,P=U[1],ne=0,ie=7,Te=4;for(P===0&&(ie=138,Te=3),K=0;K<=J;K++)if(W=P,P=U[2*(K+1)+1],!(++ne<ie&&W===P)){if(ne<Te)for(;oe(A,W,A.bl_tree),--ne!=0;);else W!==0?(W!==z&&(oe(A,W,A.bl_tree),ne--),oe(A,R,A.bl_tree),ce(A,ne-3,2)):ne<=10?(oe(A,C,A.bl_tree),ce(A,ne-3,3)):(oe(A,x,A.bl_tree),ce(A,ne-11,7));z=W,Te=(ne=0)===P?(ie=138,3):W===P?(ie=6,3):(ie=7,4)}}l(q);var Y=!1;function O(A,U,J,K){ce(A,(c<<1)+(K?1:0),3),(function(W,z,P,ne){se(W),te(W,P),te(W,~P),a.arraySet(W.pending_buf,W.window,z,P,W.pending),W.pending+=P})(A,U,J)}i._tr_init=function(A){Y||((function(){var U,J,K,W,z,P=new Array(S+1);for(W=K=0;W<d-1;W++)for(w[W]=K,U=0;U<1<<D[W];U++)T[K++]=W;for(T[K-1]=W,W=z=0;W<16;W++)for(q[W]=z,U=0;U<1<<N[W];U++)Q[z++]=W;for(z>>=7;W<_;W++)for(q[W]=z<<7,U=0;U<1<<N[W]-7;U++)Q[256+z++]=W;for(J=0;J<=S;J++)P[J]=0;for(U=0;U<=143;)X[2*U+1]=8,U++,P[8]++;for(;U<=255;)X[2*U+1]=9,U++,P[9]++;for(;U<=279;)X[2*U+1]=7,U++,P[7]++;for(;U<=287;)X[2*U+1]=8,U++,P[8]++;for(ee(X,m+1,P),U=0;U<_;U++)I[2*U+1]=5,I[2*U]=Ee(U,5);ue=new re(X,D,u+1,m,S),k=new re(I,N,0,_,S),V=new re(new Array(0),y,0,f,h)})(),Y=!0),A.l_desc=new L(A.dyn_ltree,ue),A.d_desc=new L(A.dyn_dtree,k),A.bl_desc=new L(A.bl_tree,V),A.bi_buf=0,A.bi_valid=0,ae(A)},i._tr_stored_block=O,i._tr_flush_block=function(A,U,J,K){var W,z,P=0;0<A.level?(A.strm.data_type===2&&(A.strm.data_type=(function(ne){var ie,Te=4093624447;for(ie=0;ie<=31;ie++,Te>>>=1)if(1&Te&&ne.dyn_ltree[2*ie]!==0)return s;if(ne.dyn_ltree[18]!==0||ne.dyn_ltree[20]!==0||ne.dyn_ltree[26]!==0)return o;for(ie=32;ie<u;ie++)if(ne.dyn_ltree[2*ie]!==0)return o;return s})(A)),G(A,A.l_desc),G(A,A.d_desc),P=(function(ne){var ie;for(E(ne,ne.dyn_ltree,ne.l_desc.max_code),E(ne,ne.dyn_dtree,ne.d_desc.max_code),G(ne,ne.bl_desc),ie=f-1;3<=ie&&ne.bl_tree[2*F[ie]+1]===0;ie--);return ne.opt_len+=3*(ie+1)+5+5+4,ie})(A),W=A.opt_len+3+7>>>3,(z=A.static_len+3+7>>>3)<=W&&(W=z)):W=z=J+5,J+4<=W&&U!==-1?O(A,U,J,K):A.strategy===4||z===W?(ce(A,2+(K?1:0),3),M(A,X,I)):(ce(A,4+(K?1:0),3),(function(ne,ie,Te,be){var we;for(ce(ne,ie-257,5),ce(ne,Te-1,5),ce(ne,be-4,4),we=0;we<be;we++)ce(ne,ne.bl_tree[2*F[we]+1],3);H(ne,ne.dyn_ltree,ie-1),H(ne,ne.dyn_dtree,Te-1)})(A,A.l_desc.max_code+1,A.d_desc.max_code+1,P+1),M(A,A.dyn_ltree,A.dyn_dtree)),ae(A),K&&se(A)},i._tr_tally=function(A,U,J){return A.pending_buf[A.d_buf+2*A.last_lit]=U>>>8&255,A.pending_buf[A.d_buf+2*A.last_lit+1]=255&U,A.pending_buf[A.l_buf+A.last_lit]=255&J,A.last_lit++,U===0?A.dyn_ltree[2*J]++:(A.matches++,U--,A.dyn_ltree[2*(T[J]+u+1)]++,A.dyn_dtree[2*B(U)]++),A.last_lit===A.lit_bufsize-1},i._tr_align=function(A){ce(A,2,3),oe(A,v,X),(function(U){U.bi_valid===16?(te(U,U.bi_buf),U.bi_buf=0,U.bi_valid=0):8<=U.bi_valid&&(U.pending_buf[U.pending++]=255&U.bi_buf,U.bi_buf>>=8,U.bi_valid-=8)})(A)}},{"../utils/common":41}],53:[function(n,r,i){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,i){(function(a){(function(s,o){if(!s.setImmediate){var l,c,d,u,m=1,_={},f=!1,g=s.document,S=Object.getPrototypeOf&&Object.getPrototypeOf(s);S=S&&S.setTimeout?S:s,l={}.toString.call(s.process)==="[object process]"?function(R){process.nextTick(function(){h(R)})}:(function(){if(s.postMessage&&!s.importScripts){var R=!0,C=s.onmessage;return s.onmessage=function(){R=!1},s.postMessage("","*"),s.onmessage=C,R}})()?(u="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",v,!1):s.attachEvent("onmessage",v),function(R){s.postMessage(u+R,"*")}):s.MessageChannel?((d=new MessageChannel).port1.onmessage=function(R){h(R.data)},function(R){d.port2.postMessage(R)}):g&&"onreadystatechange"in g.createElement("script")?(c=g.documentElement,function(R){var C=g.createElement("script");C.onreadystatechange=function(){h(R),C.onreadystatechange=null,c.removeChild(C),C=null},c.appendChild(C)}):function(R){setTimeout(h,0,R)},S.setImmediate=function(R){typeof R!="function"&&(R=new Function(""+R));for(var C=new Array(arguments.length-1),x=0;x<C.length;x++)C[x]=arguments[x+1];var D={callback:R,args:C};return _[m]=D,l(m),m++},S.clearImmediate=b}function b(R){delete _[R]}function h(R){if(f)setTimeout(h,0,R);else{var C=_[R];if(C){f=!0;try{(function(x){var D=x.callback,N=x.args;switch(N.length){case 0:D();break;case 1:D(N[0]);break;case 2:D(N[0],N[1]);break;case 3:D(N[0],N[1],N[2]);break;default:D.apply(o,N)}})(C)}finally{b(R),f=!1}}}}function v(R){R.source===s&&typeof R.data=="string"&&R.data.indexOf(u)===0&&h(+R.data.slice(u.length))}})(typeof self>"u"?a===void 0?this:a:self)}).call(this,typeof Ui<"u"?Ui:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Pc)),Pc.exports}var SS=Tx();const Cr=gS(SS),vx=OS({__proto__:null,default:Cr},[SS]),Rx={class:"page-content"},Cx={class:"container mx-auto px-4 sm:px-6 lg:px-8 pb-16",style:{"max-width":"720px"}},yx={class:"text-sm text-base-400 font-mono mb-6 flex items-center gap-2"},Nx={class:"card publish-card relative overflow-hidden p-8"},Ox={class:"text-2xl font-bold text-white mb-8 flex items-center gap-3"},Ax={class:"form-group"},Ix={class:"form-label font-mono text-base-400 mb-2 block required"},xx={class:"drop-zone-text"},Dx={class:"drop-zone-subtitle"},wx={class:"drop-zone-hint"},Lx={class:"text-center"},Mx={class:"btn btn-secondary zip-select-btn px-4 py-2 rounded-lg cursor-pointer"},kx={class:"file-preview-header"},Px={id:"file-preview-list",class:"file-preview-list"},Ux={key:0,class:"mt-2 text-neon-400"},Fx={id:"file-preview-summary",class:"file-preview-summary"},Bx={class:"form-group"},Gx={for:"skill-select",class:"form-label font-mono text-base-400 mb-2 block"},Yx=["disabled"],qx={value:""},Hx=["value"],Vx={class:"form-hint"},zx={class:"skill-meta-readonly space-y-4 pt-4 border-t border-base-800"},$x={class:"form-group"},Wx={for:"skill-id",class:"form-label font-mono text-base-400 mb-2 block required"},Kx=["placeholder"],Qx={class:"form-hint"},Xx={class:"form-group"},Zx={for:"skill-name",class:"form-label font-mono text-base-400 mb-2 block required"},jx=["placeholder"],Jx={class:"form-group"},eD={for:"skill-description",class:"form-label font-mono text-base-400 mb-2 block required"},tD=["placeholder"],nD={class:"form-hint"},rD={class:"text-neon-400"},iD={class:"form-group pt-4 border-t border-base-800"},aD={for:"changelog",class:"form-label font-mono text-base-400 mb-2 block"},sD=["disabled","placeholder"],oD={key:0,class:"p-4 rounded-lg bg-red-500/10 border border-red-500/20 text-red-400 text-sm"},lD={key:1,class:"progress-container visible"},cD={class:"progress-bar-wrapper"},dD={class:"progress-text"},uD={class:"flex gap-4 justify-end pt-6 border-t border-base-800 mt-8"},_D=["disabled"],pD={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},mD={key:1,class:"spinner spinner-sm"},Bi=500,gD=Ut({__name:"PublishView",setup(t){const e=Mr(),{t:n}=on(),r=me(),i=me(),a=me([]),s=me([]),o=me(null),l=me(""),c=me(!1),d=me(!1),u=me(0),m=me(""),_=me(""),f=me(""),g=me({skillId:"",name:"",description:"",changelog:""}),S=Ae(()=>f.value===""),b=Ae(()=>S.value?g.value.name&&s.value.length>0:s.value.length>0);Ht(async()=>{try{const k=await Kn.list();a.value=k.skills.filter(V=>V.permission==="owner"||V.permission==="collaborator")}catch(k){console.error("Failed to load skills:",k)}});function h(k){if(!k||typeof k!="string")return"";let V=k.trim().replace(/\.zip$/i,"");return V=V.toLowerCase().replace(/[\s_]+/g,"-").replace(/[^a-z0-9\-]+/g,""),V=V.replace(/-+/g,"-").replace(/^-|-$/g,""),!V||!/^[a-z0-9\-_]+$/.test(V)?"":V}function v(k){const V=k.filter(q=>/(^|\/)SKILL\.md$/i.test(q));return V.length?V.slice().sort((q,re)=>q.length-re.length)[0]:null}function R(k){const V={},q=k.split(/\r?\n/);let re=0;for(;re<q.length;){const L=q[re];if(L===void 0){re+=1;continue}const B=L.match(/^([\w-]+):\s*(.*)$/);if(!B||!B[1]){re+=1;continue}const te=B[1];let ce=B[2]?.trimEnd()||"";if([">","|",">-",">+","|-","|+"].includes(ce)){re+=1;const Ee=[];for(;re<q.length;){const ee=q[re];if(ee===void 0||ee.match(/^([\w-]+):\s/)&&!ee.startsWith(" ")&&Ee.length)break;if(ee.startsWith(" ")||ee===""&&Ee.length)Ee.push(ee.startsWith(" ")?ee.slice(2):"");else{if(Ee.length)break;if(ee===""){re+=1;continue}else break}re+=1}V[te]=Ee.join(`
|
|
82
82
|
`).trim();continue}V[te]=ce.replace(/^["'](.+)["']$/,"$1").trim(),re+=1}return V}function C(k){let V=k,q="",re="";const L=k.match(/^---\r?\n([\s\S]*?)\r?\n---\s*\r?\n?/);if(L&&L[1]){const B=R(L[1]);q=(B.name||"").trim(),re=(B.description||"").trim(),V=k.slice(L[0].length)}if(!q){const B=V.match(/^#\s+(.+)$/m);B&&B[1]&&(q=B[1].trim())}if(!re){const te=V.replace(/^#\s+.+$/m,"").trim().split(/\n\n+/).find(ce=>{const oe=ce.trim();return oe&&!oe.startsWith("#")&&!oe.startsWith("```")});te&&(re=te.replace(/\s*\n\s*/g," ").trim())}return re.length>Bi&&(re=re.slice(0,Bi)),{name:q,description:re}}function x(k,V){k&&(g.value.skillId=k),g.value.name=V.name||"",g.value.description=V.description||""}async function D(k,V){const q=v(V);if(!q)return null;const re=k.file(q);return re?re.async("string"):null}function N(){r.value?.click()}async function y(k){const q=k.target.files;if(!q||q.length===0)return;_.value="",s.value=[];let re=0;const L=new Cr,B=[];try{for(let ee=0;ee<q.length;ee++){const ae=q[ee];if(!ae)continue;const se=ae.webkitRelativePath;L.file(se,ae),B.push(se),s.value.push({name:se,size:ae.size}),re+=ae.size}if(!v(B)){_.value="上传的目录中未找到 SKILL.md 文件";return}const te=await D(L,B),ce=te!=null?C(te):{name:"",description:""},oe=q[0],Ee=oe?h(oe.webkitRelativePath.split("/")[0]||""):"";o.value=await L.generateAsync({type:"blob"}),l.value="skill-package.zip",x(Ee,ce)}catch(te){_.value="处理文件失败: "+te.message}}async function F(k){const q=k.target.files?.[0];if(!q)return;if(_.value="",!q.name.toLowerCase().endsWith(".zip")){_.value="请选择 .zip 文件";return}const re=h(q.name);await X(q,re),i.value&&(i.value.value="")}async function X(k,V){try{const q=await Cr.loadAsync(k),re=[];if(q.forEach((te,ce)=>{ce.dir||re.push(te)}),!v(re)){_.value="zip 中未找到 SKILL.md";return}const L=await D(q,re),B=L!=null?C(L):{name:"",description:""};o.value=k,l.value=k.name,s.value=re.map(te=>({name:te,size:0})),x(V,B)}catch(q){_.value="读取 zip 失败: "+q.message}}async function I(k){c.value=!1,_.value="";const V=k.dataTransfer?.items;if(!V||V.length===0)return;const q=V[0];if(!q||q.kind!=="file"){_.value="请拖拽文件夹或 zip 文件";return}const re=q.webkitGetAsEntry();if(!re){_.value="无法读取拖拽项";return}if(re.isFile&&re.name.toLowerCase().endsWith(".zip")){const oe=await new Promise((ee,ae)=>{re.file(ee,ae)}),Ee=h(oe.name);await X(oe,Ee);return}let L="";re.isDirectory&&(L=h(re.name));const B=new Cr,te=[];s.value=[];let ce=0;try{for(let ee=0;ee<V.length;ee++){const ae=V[ee];if(ae&&ae.kind==="file"){const se=ae.webkitGetAsEntry();se&&await Q(se,B,"",te,(pe,ge)=>{s.value.push({name:ge,size:pe}),ce+=pe})}}if(!v(te)){_.value="上传的目录中未找到 SKILL.md 文件";return}const oe=await D(B,te),Ee=oe!=null?C(oe):{name:"",description:""};o.value=await B.generateAsync({type:"blob"}),l.value="skill-package.zip",x(L,Ee)}catch(oe){_.value="处理文件失败: "+oe.message}}async function Q(k,V,q,re,L){if(k.isFile){const B=await new Promise((ce,oe)=>{k.file(ce,oe)}),te=q+k.name;V.file(te,B),re.push(te),L&&L(B.size,te)}else if(k.isDirectory){const B=q+k.name+"/",te=k.createReader(),ce=await new Promise((oe,Ee)=>{const ee=[],ae=()=>{te.readEntries(se=>{se.length===0?oe(ee):(ee.push(...se),ae())},Ee)};ae()});for(const oe of ce)await Q(oe,V,B,re,L)}}function T(){s.value=[],o.value=null,l.value="",g.value.skillId="",g.value.name="",g.value.description="",r.value&&(r.value.value=""),i.value&&(i.value.value="")}function w(k){return k<1024?k+" B":k<1024*1024?(k/1024).toFixed(1)+" KB":(k/(1024*1024)).toFixed(1)+" MB"}async function ue(){if(!o.value||d.value)return;_.value="";const k=g.value.skillId.trim();if(!k){_.value="无法从上传包得到 Skill ID,请使用合法文件夹名或 zip 文件名";return}if(!/^[a-z0-9\-_]+$/.test(k)){_.value="Skill ID 只能包含小写字母、数字、下划线和连字符";return}if(f.value&&f.value!==k){_.value="上传包的 Skill ID 与下拉框所选已有 Skill 不一致,请重新选择或更换压缩包";return}if(S.value){if(!g.value.name.trim()){_.value="SKILL.md 中缺少可用的 Skill 名称";return}const q=g.value.description.trim();if(!q){_.value="SKILL.md 中缺少描述";return}if(q.length>Bi){_.value=`描述不能超过 ${Bi} 字`;return}}d.value=!0,u.value=0,m.value=n("publish.preparing");try{m.value=n("publish.uploading");const V=setInterval(()=>{u.value<90&&(u.value+=Math.random()*15)},200),q=new FormData;q.append("zip_file",o.value,l.value),q.append("skill_id",k),S.value&&(q.append("name",g.value.name.trim()),q.append("description",g.value.description.trim())),g.value.changelog.trim()&&q.append("changelog",g.value.changelog.trim());const re=await Kn.upload(q);clearInterval(V),u.value=100,m.value=n("publish.completed"),setTimeout(()=>{e.push("/")},1e3)}catch(V){_.value=V.message||n("publish.uploadFailed"),d.value=!1}}return(k,V)=>{const q=Bn("router-link");return le(),de("main",Rx,[p("div",Cx,[p("div",yx,[V[8]||(V[8]=p("span",{class:"text-neon-400"},"~",-1)),V[9]||(V[9]=p("span",{class:"opacity-50"},"/",-1)),Be(q,{to:"/",class:"hover:text-white transition-colors"},{default:st(()=>[...V[7]||(V[7]=[ve("home",-1)])]),_:1}),V[10]||(V[10]=p("span",{class:"opacity-50"},"/",-1)),V[11]||(V[11]=p("span",{class:"text-white"},"publish",-1))]),p("div",Nx,[V[18]||(V[18]=p("div",{class:"absolute top-0 right-0 bg-base-800 text-base-400 text-[10px] font-mono px-2 py-1 rounded-bl-lg opacity-50 select-none"},"CMD-PUB",-1)),p("h1",Ox,[V[12]||(V[12]=p("span",{class:"text-neon-400 font-mono font-normal opacity-70"},">",-1)),p("span",null,Z(j(n)("publish.title")),1)]),p("form",{onSubmit:ft(ue,["prevent"]),class:"space-y-6"},[p("div",Ax,[p("label",Ix,Z(j(n)("publish.uploadFile")),1),p("div",{id:"drop-zone",class:Ye(["drop-zone",{"drag-over":c.value}]),onDragover:V[0]||(V[0]=ft(re=>c.value=!0,["prevent"])),onDragleave:V[1]||(V[1]=ft(re=>c.value=!1,["prevent"])),onDrop:ft(I,["prevent"]),onClick:N},[V[13]||(V[13]=ur('<div class="drop-zone-icon" data-v-2271b8c9><svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-2271b8c9><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" data-v-2271b8c9></path><polyline points="17 8 12 3 7 8" data-v-2271b8c9></polyline><line x1="12" y1="3" x2="12" y2="15" data-v-2271b8c9></line></svg></div>',1)),p("div",xx,Z(j(n)("publish.dropZoneText")),1),p("div",Dx,Z(j(n)("publish.dropZoneSubtitle")),1),p("div",wx,Z(j(n)("publish.dropZoneHint")),1)],34),p("input",{ref_key:"fileInput",ref:r,type:"file",webkitdirectory:"",directory:"",multiple:"",class:"hidden",onChange:y},null,544),V[15]||(V[15]=p("div",{class:"divider"},[p("span",null,"OR")],-1)),p("div",Lx,[p("label",Mx,[V[14]||(V[14]=p("span",{class:"text-neon-400"},"📎",-1)),p("span",null,Z(j(n)("publish.selectZip")),1),p("input",{type:"file",ref_key:"zipInput",ref:i,class:"hidden",accept:".zip",onChange:F},null,544)])]),p("div",{id:"file-preview",class:Ye(["file-preview",{visible:s.value.length>0}])},[p("div",kx,[p("span",null,Z(j(n)("publish.selectedFiles")),1),p("button",{type:"button",class:"file-preview-clear",onClick:T},"[ clear ]")]),p("div",Px,[(le(!0),de(Ue,null,Ct(s.value.slice(0,20),re=>(le(),de("div",{key:re.name,class:"file-item"},Z(re.name)+" ("+Z(w(re.size))+") ",1))),128)),s.value.length>20?(le(),de("div",Ux,Z(j(n)("publish.moreFiles",{count:s.value.length-20})),1)):ke("",!0)]),p("div",Fx,Z(j(n)("publish.totalFiles",{count:s.value.length})),1)],2)]),p("div",Bx,[p("label",Gx,Z(j(n)("publish.selectSkill")),1),Ge(p("select",{id:"skill-select","onUpdate:modelValue":V[2]||(V[2]=re=>f.value=re),class:"rounded-lg px-4 py-2.5 w-full",disabled:d.value},[p("option",qx,"-- "+Z(j(n)("publish.createNewSkill"))+" --",1),(le(!0),de(Ue,null,Ct(a.value,re=>(le(),de("option",{key:re.id,value:re.id},Z(re.name),9,Hx))),128))],8,Yx),[[Ir,f.value]]),p("p",Vx,Z(j(n)("publish.skillSelectHint")),1)]),p("div",zx,[p("div",$x,[p("label",Wx,Z(j(n)("publish.skillId")),1),Ge(p("input",{type:"text",id:"skill-id","onUpdate:modelValue":V[3]||(V[3]=re=>g.value.skillId=re),readonly:"",placeholder:j(n)("publish.skillIdPlaceholder"),pattern:"[a-z0-9\\-_]+",class:"rounded-lg px-4 py-2.5 w-full"},null,8,Kx),[[at,g.value.skillId]]),p("p",Qx,Z(j(n)("publish.skillIdHint")),1)]),p("div",Xx,[p("label",Zx,Z(j(n)("publish.skillName")),1),Ge(p("input",{type:"text",id:"skill-name","onUpdate:modelValue":V[4]||(V[4]=re=>g.value.name=re),readonly:"",placeholder:j(n)("publish.skillNamePlaceholder"),class:"rounded-lg px-4 py-2.5 w-full"},null,8,jx),[[at,g.value.name]])]),p("div",Jx,[p("label",eD,Z(j(n)("publish.description")),1),Ge(p("textarea",{id:"skill-description","onUpdate:modelValue":V[5]||(V[5]=re=>g.value.description=re),rows:"3",readonly:"",maxlength:"500",placeholder:j(n)("publish.descriptionPlaceholder"),class:"rounded-lg px-4 py-2.5 w-full"},null,8,tD),[[at,g.value.description]]),p("p",nD,[p("span",rD,Z(g.value.description.length),1),V[16]||(V[16]=ve(" / 500 chars",-1))])])]),p("div",iD,[p("label",aD,Z(j(n)("publish.changelog")),1),Ge(p("textarea",{id:"changelog","onUpdate:modelValue":V[6]||(V[6]=re=>g.value.changelog=re),rows:"4",disabled:d.value,placeholder:j(n)("publish.changelogPlaceholder"),class:"rounded-lg px-4 py-2.5 w-full"},null,8,sD),[[at,g.value.changelog]])]),_.value?(le(),de("div",oD,Z(_.value),1)):ke("",!0),d.value?(le(),de("div",lD,[p("div",cD,[p("div",{class:"progress-bar",style:ga({width:u.value+"%"})},null,4)]),p("p",dD,Z(m.value),1)])):ke("",!0),p("div",uD,[Be(q,{to:"/",class:"btn btn-secondary px-6 py-2.5 rounded-lg"},{default:st(()=>[ve(Z(j(n)("common.cancel")),1)]),_:1}),p("button",{type:"submit",id:"submit-btn",disabled:!b.value||d.value,class:"btn btn-primary px-6 py-2.5 rounded-lg flex items-center gap-2"},[d.value?ke("",!0):(le(),de("svg",pD,[...V[17]||(V[17]=[p("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},null,-1),p("polyline",{points:"17 8 12 3 7 8"},null,-1),p("line",{x1:"12",y1:"3",x2:"12",y2:"15"},null,-1)])])),d.value?(le(),de("span",mD)):ke("",!0),ve(" "+Z(d.value?j(n)("publish.publishing"):j(n)("publish.publishBtn")),1)],8,_D)])],32)])])])}}}),fD=vn(gD,[["__scopeId","data-v-2271b8c9"]]),ED={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-8"},SD={class:"max-w-2xl mx-auto"},bD={class:"text-sm text-base-400 font-mono mb-6 flex items-center gap-2"},hD={class:"text-white"},TD={class:"skill-card p-8 relative overflow-hidden"},vD={class:"mb-8 border-b border-base-800 pb-6"},RD={class:"text-2xl font-bold text-white mb-2 flex items-center gap-3"},CD={class:"text-base-400 text-sm font-mono"},yD={class:"mb-10"},ND={class:"flex items-center gap-2 text-lg font-semibold text-white pb-3 border-b border-base-800 font-mono"},OD={class:"font-mono text-xs text-base-500 mt-1"},AD=["placeholder"],ID={class:"font-mono text-xs text-base-500 mt-1"},xD={class:"pt-2"},DD=["disabled"],wD={key:0,class:"spinner spinner-sm"},LD={class:"mb-10"},MD={class:"flex items-center gap-2 text-lg font-semibold text-white pb-3 border-b border-base-800 font-mono"},kD={class:"mt-6"},PD=["innerHTML"],UD={class:"flex items-center gap-2 text-lg font-semibold text-white pb-3 border-b border-base-800 font-mono"},FD={class:"font-mono text-xs text-base-500 mt-1"},BD={class:"pt-2"},GD=["disabled"],YD={key:0,class:"spinner spinner-sm"},qD=Ut({__name:"SettingsView",setup(t){const e=Ci(),{t:n}=on(),r=me({username:"",name:""}),i=me(!1),a=me({current:"",new:"",confirm:""}),s=me(!1),o=Ae(()=>a.value.current&&a.value.new&&a.value.confirm&&a.value.new===a.value.confirm);Ht(()=>{l()});function l(){r.value={username:e.username||"",name:e.user?.name||""}}async function c(){i.value=!0;try{await e.updateProfile({name:r.value.name}),Ze.success(n("settings.saveSuccess"))}catch{Ze.error(n("settings.saveFailed"))}finally{i.value=!1}}async function d(){if(!a.value.current){Ze.warning(n("settings.noOldPassword"));return}if(a.value.new.length<6){Ze.warning(n("settings.newPassTooShort"));return}if(a.value.new!==a.value.confirm){Ze.warning(n("settings.passMismatch"));return}s.value=!0;try{const u=await Tn("/auth/me/change-password",{old_password:a.value.current,new_password:a.value.new});u.ok?(Ze.success(n("settings.changeSuccess")),a.value={current:"",new:"",confirm:""}):Ze.error(u.detail||n("settings.changeFailed"))}catch(u){u.data?.error==="wrong_password"?Ze.error(n("settings.wrongPassword")):Ze.error(u.message||n("settings.changeFailed"))}finally{s.value=!1}}return(u,m)=>{const _=Bn("router-link");return le(),de("main",ED,[p("div",SD,[p("div",bD,[m[5]||(m[5]=p("span",{class:"text-neon-400"},"~",-1)),m[6]||(m[6]=p("span",{class:"opacity-50"},"/",-1)),Be(_,{to:"/",class:"hover:text-white transition-colors"},{default:st(()=>[ve(Z(j(n)("nav.home")),1)]),_:1}),m[7]||(m[7]=p("span",{class:"opacity-50"},"/",-1)),p("span",hD,Z(j(n)("nav.settings")),1)]),p("div",TD,[m[18]||(m[18]=p("div",{class:"absolute top-0 right-0 bg-base-800 text-base-400 text-[10px] font-mono px-2 py-1 rounded-bl-lg opacity-50 select-none"},"CFG-USER",-1)),p("div",vD,[p("h1",RD,[m[8]||(m[8]=p("span",{class:"text-neon-400 font-mono font-normal opacity-70"},">",-1)),p("span",null,Z(j(n)("settings.heading")),1)]),p("p",CD,Z(j(n)("settings.subtitle")),1)]),p("div",yD,[p("h2",ND,[m[9]||(m[9]=p("span",{class:"text-neon-400"},"#",-1)),ve(" "+Z(j(n)("settings.basicInfo")),1)]),p("form",{onSubmit:ft(c,["prevent"]),class:"space-y-5 mt-6"},[p("div",null,[m[10]||(m[10]=p("label",{class:"font-mono text-base-400 mb-2 block text-sm"},[p("span",{class:"text-neon-400 opacity-70"},"let"),ve(),p("span",{class:"text-white"},"username"),ve(),p("span",{class:"text-neon-400 opacity-70"},"=")],-1)),Ge(p("input",{type:"text","onUpdate:modelValue":m[0]||(m[0]=f=>r.value.username=f),disabled:"",class:"w-full bg-base-950 border border-base-800 rounded-lg px-4 py-3 font-mono text-white opacity-50 cursor-not-allowed"},null,512),[[at,r.value.username]]),p("p",OD,Z(j(n)("settings.usernameHint")),1)]),p("div",null,[m[11]||(m[11]=p("label",{class:"font-mono text-base-400 mb-2 block text-sm"},[p("span",{class:"text-neon-400 opacity-70"},"let"),ve(),p("span",{class:"text-white"},"name"),ve(),p("span",{class:"text-neon-400 opacity-70"},"=")],-1)),Ge(p("input",{type:"text","onUpdate:modelValue":m[1]||(m[1]=f=>r.value.name=f),placeholder:j(n)("settings.namePlaceholder"),class:"w-full bg-base-950 border border-base-800 rounded-lg px-4 py-3 font-mono text-white focus:border-neon-400 focus:outline-none focus:ring-1 focus:ring-neon-400 transition-colors"},null,8,AD),[[at,r.value.name]]),p("p",ID,Z(j(n)("settings.nameHint")),1)]),p("div",xD,[p("button",{type:"submit",disabled:i.value,class:"btn-primary px-6 py-2.5 rounded-lg font-mono flex items-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed"},[i.value?(le(),de("span",wD)):(le(),de(Ue,{key:1},[ve(Z(j(n)("settings.saveBtn")),1)],64))],8,DD)])],32)]),p("div",LD,[p("h2",MD,[m[12]||(m[12]=p("span",{class:"text-neon-400"},"#",-1)),ve(" "+Z(j(n)("settings.cliSection")),1)]),p("div",kD,[p("p",{class:"text-base-400 text-sm font-mono mb-4",innerHTML:j(n)("settings.cliDesc")},null,8,PD),Be(_,{to:"/cli-code",class:"inline-flex items-center gap-2 rounded-lg px-4 py-3 font-mono text-sm border border-neon-400/20 text-neon-400 bg-neon-400/5 hover:bg-neon-400/10 transition-colors"},{default:st(()=>[m[13]||(m[13]=p("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",class:"w-4 h-4"},[p("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),p("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})],-1)),p("span",null,Z(j(n)("settings.cliLink")),1)]),_:1})])]),p("div",null,[p("h2",UD,[m[14]||(m[14]=p("span",{class:"text-neon-400"},"#",-1)),ve(" "+Z(j(n)("settings.passwordSection")),1)]),p("form",{onSubmit:ft(d,["prevent"]),class:"space-y-5 mt-6"},[p("div",null,[m[15]||(m[15]=p("label",{class:"font-mono text-base-400 mb-2 block text-sm"},[p("span",{class:"text-neon-400 opacity-70"},"let"),ve(),p("span",{class:"text-white"},"current_password"),ve(),p("span",{class:"text-neon-400 opacity-70"},"=")],-1)),Ge(p("input",{type:"password","onUpdate:modelValue":m[2]||(m[2]=f=>a.value.current=f),required:"",class:"w-full bg-base-950 border border-base-800 rounded-lg px-4 py-3 font-mono text-white focus:border-neon-400 focus:outline-none focus:ring-1 focus:ring-neon-400 transition-colors"},null,512),[[at,a.value.current]])]),p("div",null,[m[16]||(m[16]=p("label",{class:"font-mono text-base-400 mb-2 block text-sm"},[p("span",{class:"text-neon-400 opacity-70"},"let"),ve(),p("span",{class:"text-white"},"new_password"),ve(),p("span",{class:"text-neon-400 opacity-70"},"=")],-1)),Ge(p("input",{type:"password","onUpdate:modelValue":m[3]||(m[3]=f=>a.value.new=f),required:"",class:"w-full bg-base-950 border border-base-800 rounded-lg px-4 py-3 font-mono text-white focus:border-neon-400 focus:outline-none focus:ring-1 focus:ring-neon-400 transition-colors"},null,512),[[at,a.value.new]]),p("p",FD,Z(j(n)("settings.newPasswordHint")),1)]),p("div",null,[m[17]||(m[17]=p("label",{class:"font-mono text-base-400 mb-2 block text-sm"},[p("span",{class:"text-neon-400 opacity-70"},"let"),ve(),p("span",{class:"text-white"},"confirm_password"),ve(),p("span",{class:"text-neon-400 opacity-70"},"=")],-1)),Ge(p("input",{type:"password","onUpdate:modelValue":m[4]||(m[4]=f=>a.value.confirm=f),required:"",class:"w-full bg-base-950 border border-base-800 rounded-lg px-4 py-3 font-mono text-white focus:border-neon-400 focus:outline-none focus:ring-1 focus:ring-neon-400 transition-colors"},null,512),[[at,a.value.confirm]])]),p("div",BD,[p("button",{type:"submit",disabled:s.value||!o.value,class:"btn-primary px-6 py-2.5 rounded-lg font-mono flex items-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed"},[s.value?(le(),de("span",YD)):(le(),de(Ue,{key:1},[ve(Z(j(n)("settings.changePasswordBtn")),1)],64))],8,GD)])],32)])])])])}}});async function HD(t){if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.writeText(t),!0}catch(e){console.error("navigator.clipboard.writeText 失败:",e)}try{const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();const n=document.execCommand("copy");return document.body.removeChild(e),n}catch(e){return console.error("document.execCommand 失败:",e),!1}}const VD={class:"min-h-screen"},zD={class:"container mx-auto px-4 sm:px-6 lg:px-8 pt-8 pb-0",style:{"max-width":"520px"}},$D={class:"text-sm text-base-400 font-mono mb-6 flex items-center gap-2"},WD={class:"page-content"},KD={class:"container mx-auto px-4 sm:px-6 lg:px-8 pt-0 pb-16",style:{"max-width":"520px"}},QD={class:"card cli-code-card relative overflow-hidden p-8"},XD={class:"cli-code-header mb-8 text-left"},ZD={class:"text-2xl font-bold text-white mb-2 flex items-center gap-3"},jD={class:"text-base-400 text-sm font-mono"},JD={key:0,class:"cli-code-loading py-8 text-center"},ew={class:"text-base-400 text-sm font-mono mt-4"},tw={key:1},nw={class:"cli-code-display rounded-xl p-8 mb-8 flex flex-col items-center"},rw={class:"cli-code-value text-4xl sm:text-5xl font-mono tracking-widest text-center select-all"},iw={class:"cli-code-timer font-mono mt-6 flex items-center gap-2 text-base-400"},aw={class:"cli-code-actions flex flex-col sm:flex-row gap-4 justify-center"},sw=["disabled"],ow={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},lw={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},cw=["disabled"],dw={class:"cli-code-hint mt-8 p-4 rounded-lg text-left"},uw={class:"block mb-2 font-mono text-neon-400"},_w=["innerHTML"],pw=Ut({__name:"CliCodeView",setup(t){const e=Ci(),{t:n}=on(),r=me(""),i=me(!1),a=me(!1),s=me(null),o=me(null),l=me(0),c=Ae(()=>l.value<=0),d=Ae(()=>l.value>0&&l.value<=6e4),u=Ae(()=>{if(c.value)return n("cliCode.expired");const S=Math.floor(l.value/6e4),b=Math.floor(l.value%6e4/1e3);return`${`${S}:${String(b).padStart(2,"0")}`}${n("cliCode.expires")}`});Ht(async()=>{await e.fetchUser()&&m()}),ha(()=>{o.value&&clearInterval(o.value)});async function m(){i.value=!0;try{const S=await Tn("/auth/cli-code/generate");r.value=S.code,s.value=new Date(S.expires_at),_()}catch{Ze.error(n("cliCode.genFailed"))}finally{i.value=!1}}function _(){o.value&&clearInterval(o.value),f(),o.value=window.setInterval(f,1e3)}function f(){if(!s.value){l.value=0;return}const S=new Date;l.value=Math.max(0,s.value.getTime()-S.getTime()),l.value<=0&&o.value&&clearInterval(o.value)}async function g(){if(!r.value)return;await HD(r.value)?(a.value=!0,setTimeout(()=>{a.value=!1},2e3)):Ze.error(n("cliCode.copyFailed")||"复制失败")}return(S,b)=>{const h=Bn("router-link");return le(),de("div",VD,[p("div",zD,[p("div",$D,[b[1]||(b[1]=p("span",{class:"text-neon-400"},"~",-1)),b[2]||(b[2]=p("span",{class:"opacity-50"},"/",-1)),Be(h,{to:"/",class:"hover:text-white transition-colors"},{default:st(()=>[...b[0]||(b[0]=[ve("home",-1)])]),_:1}),b[3]||(b[3]=p("span",{class:"opacity-50"},"/",-1)),b[4]||(b[4]=p("span",{class:"text-white"},"cli-code",-1))])]),p("main",WD,[p("div",KD,[p("div",QD,[b[11]||(b[11]=p("div",{class:"absolute top-0 right-0 bg-base-800 text-base-400 text-[10px] font-mono px-2 py-1 rounded-bl-lg opacity-50 select-none"},"AUTH-CLI",-1)),p("div",XD,[p("h1",ZD,[b[5]||(b[5]=p("span",{class:"text-neon-400 font-mono font-normal opacity-70"},">",-1)),p("span",null,Z(j(n)("cliCode.heading")),1)]),p("p",jD,"// "+Z(j(n)("cliCode.subtitle")),1)]),i.value?(le(),de("div",JD,[b[6]||(b[6]=p("div",{class:"spinner mx-auto"},null,-1)),p("div",ew,Z(j(n)("cliCode.secureToken")),1)])):(le(),de("div",tw,[p("div",nw,[p("div",rw,Z(r.value||"----"),1),p("div",iw,[b[7]||(b[7]=p("svg",{class:"cli-code-timer-icon w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("circle",{cx:"12",cy:"12",r:"10"}),p("polyline",{points:"12 6 12 12 16 14"})],-1)),p("span",{class:Ye({"text-red-400":d.value,"text-red-500":c.value})},Z(u.value),3)])]),p("div",aw,[p("button",{onClick:g,disabled:!r.value||i.value,class:"btn btn-primary flex-1 py-3 font-mono text-sm rounded-lg flex items-center justify-center gap-2"},[a.value?(le(),de("svg",lw,[...b[9]||(b[9]=[p("polyline",{points:"20 6 9 17 4 12"},null,-1)])])):(le(),de("svg",ow,[...b[8]||(b[8]=[p("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"},null,-1),p("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},null,-1)])])),p("span",null,Z(a.value?j(n)("cliCode.copied"):j(n)("cliCode.copyBtn")),1)],8,sw),p("button",{onClick:m,disabled:i.value,class:"btn btn-secondary flex-1 py-3 font-mono text-sm rounded-lg flex items-center justify-center gap-2"},[b[10]||(b[10]=p("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("polyline",{points:"23 4 23 10 17 10"}),p("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})],-1)),p("span",null,Z(j(n)("cliCode.regenerate")),1)],8,cw)])])),p("div",dw,[p("strong",uw,"# "+Z(j(n)("cliCode.usage")),1),p("span",{class:"font-mono text-sm",innerHTML:j(n)("cliCode.cliHint")},null,8,_w)])])])])])}}}),mw=vn(pw,[["__scopeId","data-v-89896a33"]]),gw={class:"setup-container"},fw={class:"setup-shell"},Ew={class:"lang-switcher-menu"},Sw={class:"setup-card"},bw={class:"setup-header"},hw={class:"setup-subtitle"},Tw={key:0,class:"setup-error",role:"alert"},vw={key:1,class:"setup-success",role:"status"},Rw={class:"setup-field"},Cw=["disabled"],yw={class:"setup-hint"},Nw={class:"setup-field"},Ow=["disabled"],Aw={class:"setup-hint"},Iw={class:"setup-field"},xw=["disabled"],Dw={class:"setup-actions"},ww=["disabled"],Lw=Ut({__name:"SetupView",setup(t){const e=Mr(),{t:n,setLang:r,currentLang:i}=on(),a=Ae(()=>i.value),s=me(!1),o=Ae(()=>a.value==="zh"?"中文":"English"),l=me(""),c=me(""),d=me(""),u=me(!1),m=me(""),_=me("");function f(){s.value=!s.value}function g(v){r(v),s.value=!1}async function S(){try{(await _r("/init/status")).initialized&&e.push("/")}catch(v){console.error("Failed to check init status:",v)}}async function b(){m.value="",_.value="";const v=l.value.trim(),R=c.value,C=d.value;if(!v){m.value=n("setup.errUsername");return}if(v.length<3||v.length>50){m.value=n("setup.errUsernameLength");return}if(!R){m.value=n("setup.errPassword");return}if(R.length<6){m.value=n("setup.errPasswordLength");return}if(R!==C){m.value=n("setup.errPasswordMismatch");return}u.value=!0;try{await Tn("/init/setup",{username:v,password:R}),_.value=n("setup.success"),setTimeout(()=>{e.push("/login")},2e3)}catch(x){m.value=x.message||n("setup.errFailed")}finally{u.value=!1}}function h(v){v.target.closest(".lang-switcher")||(s.value=!1)}return Ht(()=>{S(),document.addEventListener("click",h)}),(v,R)=>(le(),de("div",gw,[p("div",fw,[p("div",{class:Ye(["lang-switcher",{active:s.value}])},[p("button",{class:"lang-switcher-trigger",onClick:f},[R[6]||(R[6]=p("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[p("circle",{cx:"12",cy:"12",r:"10"}),p("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),p("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})],-1)),p("span",null,Z(o.value),1),(le(),de("svg",{class:Ye(["lang-chevron",{rotated:s.value}]),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[...R[5]||(R[5]=[p("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2))]),p("div",Ew,[p("button",{class:Ye(["lang-switcher-option",{active:a.value==="zh"}]),onClick:R[0]||(R[0]=C=>g("zh"))}," 中文 ",2),p("button",{class:Ye(["lang-switcher-option",{active:a.value==="en"}]),onClick:R[1]||(R[1]=C=>g("en"))}," English ",2)])],2),R[13]||(R[13]=ur('<div class="setup-brand" data-v-0ec8dc37><span class="setup-brand-icon" data-v-0ec8dc37><svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true" data-v-0ec8dc37><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" data-v-0ec8dc37></path><polyline points="3.27 6.96 12 12.01 20.73 6.96" data-v-0ec8dc37></polyline><line x1="12" y1="22.08" x2="12" y2="12" data-v-0ec8dc37></line></svg></span><span class="setup-brand-text" data-v-0ec8dc37>Skill Base</span></div>',1)),p("div",Sw,[R[12]||(R[12]=p("div",{class:"setup-card-badge"},"INIT-SYS",-1)),p("div",bw,[R[7]||(R[7]=p("h1",{class:"setup-title"},[p("span",{class:"setup-title-prompt"},">"),ve(" Setup ")],-1)),p("p",hw,Z(j(n)("setup.subtitle")),1)]),m.value?(le(),de("div",Tw,Z(m.value),1)):ke("",!0),_.value?(le(),de("div",vw,Z(_.value),1)):ke("",!0),p("form",{onSubmit:ft(b,["prevent"]),class:"setup-form"},[p("div",Rw,[R[8]||(R[8]=p("label",{for:"username",class:"setup-label"},[p("span",{class:"setup-keyword"},"let"),ve(),p("span",{class:"setup-label-name"},"admin_username"),ve(),p("span",{class:"setup-equals"},"=")],-1)),p("div",null,[Ge(p("input",{type:"text",id:"username","onUpdate:modelValue":R[2]||(R[2]=C=>l.value=C),placeholder:"admin",autocomplete:"username",required:"",minlength:"3",maxlength:"50",disabled:u.value,class:"setup-input"},null,8,Cw),[[at,l.value]])]),p("p",yw,Z(j(n)("setup.usernameHint")),1)]),p("div",Nw,[R[9]||(R[9]=p("label",{for:"password",class:"setup-label"},[p("span",{class:"setup-keyword"},"let"),ve(),p("span",{class:"setup-label-name"},"password"),ve(),p("span",{class:"setup-equals"},"=")],-1)),p("div",null,[Ge(p("input",{type:"password",id:"password","onUpdate:modelValue":R[3]||(R[3]=C=>c.value=C),placeholder:"••••••••",autocomplete:"new-password",required:"",minlength:"6",disabled:u.value,class:"setup-input"},null,8,Ow),[[at,c.value]])]),p("p",Aw,Z(j(n)("setup.passwordHint")),1)]),p("div",Iw,[R[10]||(R[10]=p("label",{for:"confirmPassword",class:"setup-label"},[p("span",{class:"setup-keyword"},"let"),ve(),p("span",{class:"setup-label-name"},"confirm_password"),ve(),p("span",{class:"setup-equals"},"=")],-1)),p("div",null,[Ge(p("input",{type:"password",id:"confirmPassword","onUpdate:modelValue":R[4]||(R[4]=C=>d.value=C),placeholder:"••••••••",autocomplete:"new-password",required:"",minlength:"6",disabled:u.value,class:"setup-input"},null,8,xw),[[at,d.value]])])]),p("div",Dw,[p("button",{type:"submit",disabled:u.value,class:"setup-submit"},[R[11]||(R[11]=p("svg",{class:"btn-devtools-icon",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[p("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})],-1)),p("span",null,Z(u.value?j(n)("setup.loading"):j(n)("setup.submit")),1)],8,ww)])],32)]),R[14]||(R[14]=p("div",{class:"setup-status"},[p("span",{class:"setup-status-dot"}),p("span",{class:"setup-status-text"},"System Initialization")],-1))])]))}}),Mw=vn(Lw,[["__scopeId","data-v-0ec8dc37"]]);class Hd{diff(e,n,r={}){let i;typeof r=="function"?(i=r,r={}):"callback"in r&&(i=r.callback);const a=this.castInput(e,r),s=this.castInput(n,r),o=this.removeEmpty(this.tokenize(a,r)),l=this.removeEmpty(this.tokenize(s,r));return this.diffWithOptionsObj(o,l,r,i)}diffWithOptionsObj(e,n,r,i){var a;const s=h=>{if(h=this.postProcess(h,r),i){setTimeout(function(){i(h)},0);return}else return h},o=n.length,l=e.length;let c=1,d=o+l;r.maxEditLength!=null&&(d=Math.min(d,r.maxEditLength));const u=(a=r.timeout)!==null&&a!==void 0?a:1/0,m=Date.now()+u,_=[{oldPos:-1,lastComponent:void 0}];let f=this.extractCommon(_[0],n,e,0,r);if(_[0].oldPos+1>=l&&f+1>=o)return s(this.buildValues(_[0].lastComponent,n,e));let g=-1/0,S=1/0;const b=()=>{for(let h=Math.max(g,-c);h<=Math.min(S,c);h+=2){let v;const R=_[h-1],C=_[h+1];R&&(_[h-1]=void 0);let x=!1;if(C){const N=C.oldPos-h;x=C&&0<=N&&N<o}const D=R&&R.oldPos+1<l;if(!x&&!D){_[h]=void 0;continue}if(!D||x&&R.oldPos<C.oldPos?v=this.addToPath(C,!0,!1,0,r):v=this.addToPath(R,!1,!0,1,r),f=this.extractCommon(v,n,e,h,r),v.oldPos+1>=l&&f+1>=o)return s(this.buildValues(v.lastComponent,n,e))||!0;_[h]=v,v.oldPos+1>=l&&(S=Math.min(S,h-1)),f+1>=o&&(g=Math.max(g,h+1))}c++};if(i)(function h(){setTimeout(function(){if(c>d||Date.now()>m)return i(void 0);b()||h()},0)})();else for(;c<=d&&Date.now()<=m;){const h=b();if(h)return h}}addToPath(e,n,r,i,a){const s=e.lastComponent;return s&&!a.oneChangePerToken&&s.added===n&&s.removed===r?{oldPos:e.oldPos+i,lastComponent:{count:s.count+1,added:n,removed:r,previousComponent:s.previousComponent}}:{oldPos:e.oldPos+i,lastComponent:{count:1,added:n,removed:r,previousComponent:s}}}extractCommon(e,n,r,i,a){const s=n.length,o=r.length;let l=e.oldPos,c=l-i,d=0;for(;c+1<s&&l+1<o&&this.equals(r[l+1],n[c+1],a);)c++,l++,d++,a.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return d&&!a.oneChangePerToken&&(e.lastComponent={count:d,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=l,c}equals(e,n,r){return r.comparator?r.comparator(e,n):e===n||!!r.ignoreCase&&e.toLowerCase()===n.toLowerCase()}removeEmpty(e){const n=[];for(let r=0;r<e.length;r++)e[r]&&n.push(e[r]);return n}castInput(e,n){return e}tokenize(e,n){return Array.from(e)}join(e){return e.join("")}postProcess(e,n){return e}get useLongestToken(){return!1}buildValues(e,n,r){const i=[];let a;for(;e;)i.push(e),a=e.previousComponent,delete e.previousComponent,e=a;i.reverse();const s=i.length;let o=0,l=0,c=0;for(;o<s;o++){const d=i[o];if(d.removed)d.value=this.join(r.slice(c,c+d.count)),c+=d.count;else{if(!d.added&&this.useLongestToken){let u=n.slice(l,l+d.count);u=u.map(function(m,_){const f=r[c+_];return f.length>m.length?f:m}),d.value=this.join(u)}else d.value=this.join(n.slice(l,l+d.count));l+=d.count,d.added||(c+=d.count)}}return i}}class kw extends Hd{}const Pw=new kw;function Uw(t,e,n){return Pw.diff(t,e,n)}const df="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class Fw extends Hd{tokenize(e){const n=new RegExp(`(\\r?\\n)|[${df}]+|[^\\S\\n\\r]+|[^${df}]`,"ug");return e.match(n)||[]}}const Bw=new Fw;function Gw(t,e,n){return Bw.diff(t,e,n)}class Yw extends Hd{constructor(){super(...arguments),this.tokenize=Hw}equals(e,n,r){return r.ignoreWhitespace?((!r.newlineIsToken||!e.includes(`
|
|
83
83
|
`))&&(e=e.trim()),(!r.newlineIsToken||!n.includes(`
|